release version 2.0.0

This commit is contained in:
Alexander Makarov 2021-08-07 00:38:53 +03:00
parent a37e608e60
commit 5c642f8811
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
29 changed files with 137 additions and 17 deletions

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);
@ -9,10 +14,8 @@ use yii\web\AssetBundle;
class BootstrapAsset extends AssetBundle class BootstrapAsset extends AssetBundle
{ {
public $sourcePath = '@bower/bootstrap/dist'; public $sourcePath = '@bower/bootstrap/dist';
public $css = [ public $css = [
'css/bootstrap.css', 'css/bootstrap.css',
]; ];
public $js = []; public $js = [];
} }

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -5,6 +5,8 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
declare(strict_types=1);
namespace yii\bootstrap5; namespace yii\bootstrap5;
use RuntimeException; use RuntimeException;

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);
@ -45,7 +50,6 @@ class Carousel extends Widget
'<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>', '<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>',
'<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>', '<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>',
]; ];
/** /**
* @var bool whether carousel indicators (<ol> tag with anchors to items) should be displayed or not. * @var bool whether carousel indicators (<ol> tag with anchors to items) should be displayed or not.
*/ */

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -5,6 +5,8 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
declare(strict_types=1);
namespace yii\bootstrap5; namespace yii\bootstrap5;
use Yii; use Yii;

View File

@ -1,9 +1,12 @@
<?php <?php
/** /**
* @package yii2-bootstrap5 * @link http://www.yiiframework.com/
* @author Simon Karlen <simi.albi@gmail.com> * @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/ */
declare(strict_types=1);
namespace yii\bootstrap5; namespace yii\bootstrap5;
use yii\helpers\ArrayHelper; use yii\helpers\ArrayHelper;
@ -42,22 +45,18 @@ class Offcanvas extends Widget
* @var string Where to place the offcanvas. Can be of of the [[PLACEMENT_*]] constants. * @var string Where to place the offcanvas. Can be of of the [[PLACEMENT_*]] constants.
*/ */
public $placement = self::PLACEMENT_START; public $placement = self::PLACEMENT_START;
/** /**
* @var boolean Whether to enable backdrop or not. Defaults to `true`. * @var boolean Whether to enable backdrop or not. Defaults to `true`.
*/ */
public $backdrop = true; public $backdrop = true;
/** /**
* @var boolean Whether to enable body scrolling or not. Defaults to `false`. * @var boolean Whether to enable body scrolling or not. Defaults to `false`.
*/ */
public $scrolling = false; public $scrolling = false;
/** /**
* @var string The title content in the offcanvas container. * @var string The title content in the offcanvas container.
*/ */
public $title; public $title;
/** /**
* @var array|false the options for rendering the close button tag. * @var array|false the options for rendering the close button tag.
* The close button is displayed in the header of the offcanvas container. Clicking * The close button is displayed in the header of the offcanvas container. Clicking
@ -72,7 +71,6 @@ class Offcanvas extends Widget
* for the supported HTML attributes. * for the supported HTML attributes.
*/ */
public $closeButton = []; public $closeButton = [];
/** /**
* @var array|false the options for rendering the toggle button tag. * @var array|false the options for rendering the toggle button tag.
* The toggle button is used to toggle the visibility of the modal window. * The toggle button is used to toggle the visibility of the modal window.
@ -88,13 +86,11 @@ class Offcanvas extends Widget
* for the supported HTML attributes. * for the supported HTML attributes.
*/ */
public $toggleButton = false; public $toggleButton = false;
/** /**
* @var array Additional header options. * @var array Additional header options.
* @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
*/ */
public $headerOptions = []; public $headerOptions = [];
/** /**
* @var array Additional title options. * @var array Additional title options.
* *
@ -105,13 +101,13 @@ class Offcanvas extends Widget
* @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
*/ */
public $titleOptions = []; public $titleOptions = [];
/** /**
* @var array Additional body options. * @var array Additional body options.
* @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
*/ */
public $bodyOptions = []; public $bodyOptions = [];
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -1,9 +1,12 @@
<?php <?php
/** /**
* @package yii2-bootstrap5 * @link http://www.yiiframework.com/
* @author Simon Karlen <simi.albi@gmail.com> * @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/ */
declare(strict_types=1);
namespace yii\bootstrap5; namespace yii\bootstrap5;
use yii\helpers\ArrayHelper; use yii\helpers\ArrayHelper;
@ -35,7 +38,6 @@ class Popover extends Widget
const PLACEMENT_BOTTOM = 'bottom'; const PLACEMENT_BOTTOM = 'bottom';
const PLACEMENT_LEFT = 'left'; const PLACEMENT_LEFT = 'left';
const PLACEMENT_RIGHT = 'right'; const PLACEMENT_RIGHT = 'right';
const TRIGGER_CLICK = 'click'; const TRIGGER_CLICK = 'click';
const TRIGGER_HOVER = 'hover'; const TRIGGER_HOVER = 'hover';
const TRIGGER_FOCUS = 'focus'; const TRIGGER_FOCUS = 'focus';
@ -81,6 +83,7 @@ class Popover extends Widget
*/ */
public $toggleButton = false; public $toggleButton = false;
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1); declare(strict_types=1);

View File

@ -368,7 +368,7 @@ class TabsTest extends TestCase
<div id="w0-tab1" class="tab-pane"><div>Content 2</div></div></div> <div id="w0-tab1" class="tab-pane"><div>Content 2</div></div></div>
HTML; HTML;
$this->assertEquals($expected, $html); $this->assertEqualsWithoutLE($expected, $html);
} }
public function testHeaderOptions() public function testHeaderOptions()