Skip to content

Commit

Permalink
v1.9.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 15, 2024
1 parent e9cb730 commit 40f4792
Show file tree
Hide file tree
Showing 22 changed files with 78 additions and 65 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"vitexsoftware/ease-html": ">= 1.25"
"vitexsoftware/ease-html": "^1.32"
},
"autoload": {
"psr-4": {
Expand Down
10 changes: 8 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
php-vitexsoftware-ease-bootstrap4 (1.8.0) UNRELEASED; urgency=medium
php-vitexsoftware-ease-bootstrap4 (1.9.0) UNRELEASED; urgency=medium

* Semantic versioning

-- vitex <[email protected]> Fri, 15 Nov 2024 18:36:22 +0100

php-vitexsoftware-ease-bootstrap4 (1.8.0) unstable; urgency=medium

* ProgressBarr added

-- vitex <[email protected]> Sun, 25 Aug 2024 11:42:01 +0200
-- vitex <[email protected]> Fri, 15 Nov 2024 18:35:43 +0100

php-vitexsoftware-ease-bootstrap4 (1.7) unstable; urgency=medium

Expand Down
10 changes: 5 additions & 5 deletions src/Ease/TWB4/Alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class Alert extends DivTag
/**
* Bootstrap4's Alert.
*
* @see https://v4-alpha.getbootstrap.com/components/alerts/
* @see https://getbootstrap.com/docs/4.0/components/alerts/
*
* @param string $type success|info|warning|danger
* @param mixed $content to insert in
* @param array $properties additional
* @param string $type success|info|warning|danger
* @param mixed $content to insert in
* @param array<string,string> $properties additional
*/
public function __construct($type, $content = null, array $properties = [])
public function __construct(string $type, $content = null, array $properties = [])
{
$properties['role'] = 'alert';
parent::__construct($content, $properties);
Expand Down
8 changes: 4 additions & 4 deletions src/Ease/TWB4/Badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class Badge extends \Ease\Html\SpanTag
/**
* Návěstí bootstrapu.
*
* @see http://getbootstrap.com/components/#badges
* @see https://getbootstrap.com/docs/4.6/components/badge/
*
* @param string $type success|info|warning|danger
* @param mixed $content to insert in
* @param array $properties additional
* @param string $type success|info|warning|danger
* @param mixed $content to insert in
* @param array<string,string> $properties additional
*/
public function __construct($type, $content = null, array $properties = [])
{
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/TWB4/Breadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class Breadcrumb extends \Ease\Html\NavTag
/**
* Bootstrap's Breadcrumb.
*
* @see https://getbootstrap.com/docs/4.0/components/breadcrumb/
* @see https://getbootstrap.com/docs/4.1/components/breadcrumb/
*
* @param mixed $content to insert in
* @param array $properties additional
* @param mixed $content to insert in
* @param array<string,string> $properties additional
*/
public function __construct($content = null, array $properties = [])
{
Expand Down
6 changes: 6 additions & 0 deletions src/Ease/TWB4/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
*/
class Card extends DivTag
{
/**
* Card.
*
* @param string $content
* @param array<string,string> $properties
*/
public function __construct($content = null, array $properties = [])
{
if (\is_array($properties) && \array_key_exists('class', $properties)) {
Expand Down
10 changes: 5 additions & 5 deletions src/Ease/TWB4/Carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
*/
class Carousel extends DivTag
{
public $slides = [];
public $captions = [];
public $showCaptions = false;
public $showIndicators = false;
public $showControls = false;
public array $slides = [];
public array $captions = [];
public bool $showCaptions = false;
public bool $showIndicators = false;
public bool $showControls = false;
public int $activeSlide = 0;

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Ease/TWB4/Col.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class Col extends \Ease\Html\DivTag
*
* @see http://getbootstrap.com/css/#grid
*
* @param int $size Velikost políčka 1 - 12
* @param mixed $content Obsah políčka
* @param string $target Typ zařízení xs|sm|md|lg
* @param array $properties Další vlastnosti tagu
* @param int $size Column size 1 - 12
* @param mixed $content Content to put into Col div
* @param string $target Device type xs|sm|md|lg
* @param array<string,string> $properties Additional properties
*/
public function __construct(
$size,
Expand Down
2 changes: 1 addition & 1 deletion src/Ease/TWB4/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Container extends \Ease\Html\DivTag
* Twitter Bootrstap Container.
*
* @param mixed $content
* @param array $properties of Container Row
* @param array<string,string> $properties of Container Row
*/
public function __construct($content = null, array $properties = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Ease/TWB4/ContainerFluid.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class ContainerFluid extends \Ease\Html\DivTag
/**
* Twitter Bootrstap fluid Container.
*
* @param mixed $content
* @param array $properties of Container Row
* @param mixed $content
* @param array<string,string> $properties of Container Row
*/
public function __construct($content = null, array $properties = [])
{
Expand Down
2 changes: 1 addition & 1 deletion src/Ease/TWB4/DropdownLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class DropdownLink extends \Ease\Html\DivTag
{
private \Ease\Html\DivTag $dropdownMenu = null;
private \Ease\Html\DivTag $dropdownMenu;

/**
* Dropdown menu.
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/TWB4/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Label extends Card
/**
* TWB3 Backward compatibility Label.
*
* @param string $type alert|success|danger| etc...
* @param mixed $content Content inside label
* @param array $properties additional properties for Card
* @param string $type alert|success|danger| etc...
* @param mixed $content Content inside label
* @param array<string,string> $properties additional properties for Card
*/
public function __construct($type, $content, array $properties = [])
{
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/TWB4/LinkButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class LinkButton extends \Ease\Html\ATag
/**
* Odkazové tlačítko twbootstrabu.
*
* @param string $href cíl odkazu
* @param mixed $contents obsah tlačítka
* @param string $href URL
* @param mixed $contents Button Label
* @param string $type primary|info|success|warning|danger|inverse|link
* @param array $properties dodatečné vlastnosti
* @param array<string,string> $properties additional properties
*/
public function __construct(
$href,
Expand Down
3 changes: 2 additions & 1 deletion src/Ease/TWB4/NavItemDropDown.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class NavItemDropDown extends \Ease\Html\DivTag
/**
* DropDown menu.
*
* @param string $heading
* @param string $heading
* @param array<mixed> $items
*/
public function __construct($heading, array $items = [])
{
Expand Down
14 changes: 7 additions & 7 deletions src/Ease/TWB4/Navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,23 @@ public function addMenuItem($content, $enabled = true, $placement = 'left')
/**
* Add Dropdown menu to nav.
*
* @param string $label submenu label
* @param array $items ['url'=>'label','url2'=>'label2','divider1'=>'',...]
* @param string $placement "left" is default
* @param string $label submenu label
* @param array<string,string> $items ['url'=>'label','url2'=>'label2','divider1'=>'',...]
* @param string $placement "left" is default
*
* @return NavItemDropDown
*/
public function addDropDownMenu($label, $items, $placement = 'left')
public function addDropDownMenu(string $label, array $items, string $placement = 'left')
{
return $this->addMenuItem(new NavItemDropDown($label, $items), true, $placement);
}

/**
* Navbar collapse helper.
*
* @return \Ease\Html\DivTagnavbar collapse
* @return \Ease\Html\DivTag navbar collapse
*/
public function navbarCollapse()
public function navbarCollapse(): DivTag
{
return new DivTag(
[$this->leftContent, $this->rightContent],
Expand All @@ -151,7 +151,7 @@ public function finalize(): void
parent::finalize();
}

public function navBarToggler()
public function navBarToggler(): ButtonTag
{
return new ButtonTag(
new SpanTag(
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/TWB4/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ class Panel extends Card
/**
* Panel Head.
*/
public \Ease\Html\DivTag $header;
public DivTag $header;

/**
* Panel's body.
*/
public \Ease\Html\DivTag $body;
public DivTag $body;

/**
* footer content.
*/
public \Ease\Html\DivTag $footer;
public DivTag $footer;

/**
* Panel type.
Expand Down
6 changes: 3 additions & 3 deletions src/Ease/TWB4/PillBadge.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
/**
* Rounded Bootstrap4's Badge.
*/
class PillBadge extends \Ease\Html\Span
class PillBadge extends \Ease\Html\SpanTag
{
/**
* Rounded Bootstrap4's Badge.
*
* @see http://getbootstrap.com/components/#badges
* @see https://getbootstrap.com/docs/4.1/components/badge/
*
* @param string $type success|info|warning|danger
* @param mixed $content to insert in
* @param array $properties additional
* @param array<string,string> $properties additional properties
*/
public function __construct($type, $content = null, array $properties = [])
{
Expand Down
10 changes: 5 additions & 5 deletions src/Ease/TWB4/ProgressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class ProgressBar extends \Ease\Html\DivTag
/**
* ProgressBar.
*
* @see https://getbootstrap.com/docs/4.0/components/progress/
* @see https://getbootstrap.com/docs/4.1/components/progress/
*
* @param int $value 0-100
* @param string $label progress bar caption
* @param string $tweaks progress-bar-striped progress-bar-animated bg-info
* @param array $properties of main div of progress bar
* @param int $value 0-100
* @param string $label progress bar caption
* @param string $tweaks progress-bar-striped progress-bar-animated bg-info
* @param array<string,string> $properties additional properties
*/
public function __construct($value = 0, $label = '', $tweaks = '', array $properties = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Ease/TWB4/Row.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class Row extends \Ease\Html\DivTag
/**
* Twitter Bootrstap Row.
*
* @param mixed $content Initial content
* @param array $properties Of Row Div
* @param mixed $content Initial content
* @param array<string,string> $properties Of Row Div
*/
public function __construct($content = null, array $properties = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Ease/TWB4/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Table extends \Ease\Html\TableTag
/**
* TWB4 Table.
*
* @param mixed $content tag content
* @param array $properties table tag options
* @param mixed $content tag content
* @param array<string,string> $properties table tag options
*/
public function __construct($content = null, array $properties = [])
{
Expand Down
12 changes: 6 additions & 6 deletions src/Ease/TWB4/WebPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function __construct(string $pageTitle = '')

public function addToHeader($content)
{
if (null === $this->header) {
if ( $this->header) {
$this->header = new \Ease\Html\HeaderTag();
}

Expand All @@ -74,7 +74,7 @@ public function addToHeader($content)

public function addToMain($content)
{
if (null === $this->main) {
if (isset($this->main) ) {
$this->main = new \Ease\Html\MainTag();
}

Expand All @@ -83,7 +83,7 @@ public function addToMain($content)

public function addToFooter($content)
{
if (null === $this->footer) {
if (isset($this->footer) ) {
$this->footer = new \Ease\Html\FooterTag();
}

Expand All @@ -92,15 +92,15 @@ public function addToFooter($content)

public function finalize(): void
{
if ((null === $this->header) === false) {
if (isset($this->header)) {
$this->addAsFirst($this->header);
}

if ((null === $this->main) === false) {
if (isset($this->main)) {
$this->addItem($this->main);
}

if ((null === $this->footer) === false) {
if (isset($this->footer)) {
$this->addItem($this->footer);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Ease/TWB4/Well.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class Well extends Card
/**
* Twitter Bootrstap Well.
*
* @param mixed $content
* @param mixed $properties
* @param mixed $content
* @param array<string,string> $properties
*/
public function __construct($content = null, array $properties = [])
{
Expand Down

0 comments on commit 40f4792

Please sign in to comment.