Skip to content

Commit

Permalink
Updates to release v3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Sep 20, 2018
1 parent ddd430c commit aecb3f4
Show file tree
Hide file tree
Showing 48 changed files with 69 additions and 54 deletions.
8 changes: 8 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Change Log: `yii2-grid`
=======================

## Version 3.2.2

**Date:** 20-Sep-2018

- Enhance ExpandRowColumn default row css for Bootstrap 4.x.
- Enhance styling and behavior for Bootstrap 4.x.
- (bug #826): Update Ukrainian Translations.

## Version 3.2.1

**Date:** 12-Sep-2018
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,4 @@ echo GridView::widget([

## License

**yii2-grid** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.
**yii2-grid** is released under the BSD-3-Clause License. See the bundled `LICENSE.md` for details.
2 changes: 1 addition & 1 deletion src/ActionColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2018
* @package yii2-grid
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/ActionColumnAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/BooleanColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/CheckboxColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/CheckboxColumnAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/ColumnTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/DataColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/Demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/EditableColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/EditableColumnAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/EditableColumnAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
7 changes: 5 additions & 2 deletions src/ExpandRowColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down Expand Up @@ -192,7 +192,7 @@ class ExpandRowColumn extends DataColumn
/**
* @var string the CSS class for the detail content table row.
*/
public $detailRowCssClass = GridView::TYPE_INFO;
public $detailRowCssClass;

/**
* @var string|integer the animation duration to slide up/down the detail row.
Expand Down Expand Up @@ -231,6 +231,9 @@ protected static function parseData($data, $model, $key, $index, $column)
*/
public function init()
{
if (!isset($this->detailRowCssClass)) {
$this->detailRowCssClass = $this->grid->isBs4() ? 'table-' . GridView::TYPE_INFO : GridView::TYPE_INFO;
}
$this->initColumnSettings([
'hiddenFromExport' => true,
'mergeHeader' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/ExpandRowColumnAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/FormulaColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridExportAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridFloatHeadAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridGroupAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridPerfectScrollbarAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridResizeColumnsAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridResizeStoreAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridToggleDataAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
12 changes: 6 additions & 6 deletions src/GridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down Expand Up @@ -1075,18 +1075,18 @@ public function init()
if (!isset($this->panelPrefix)) {
$this->panelPrefix = $this->isBs4() ? 'card' : 'panel panel-';
}
if (!$this->toggleData) {
parent::init();
return;
}
$isBs4 = $this->isBs4();
$this->_toggleDataKey = '_tog' . hash('crc32', $this->options['id']);
if ($isBs4) {
Html::addCssClass($this->options, 'kv-grid-bs4');
$this->setPagerOptionClass('linkContainerOptions', 'page-item');
$this->setPagerOptionClass('linkOptions', 'page-link');
$this->setPagerOptionClass('disabledListItemSubTagOptions', 'page-link');
}
if (!$this->toggleData) {
parent::init();
return;
}
$this->_toggleDataKey = '_tog' . hash('crc32', $this->options['id']);
/**
* @var Request $request
*/
Expand Down
2 changes: 1 addition & 1 deletion src/GridViewAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/RadioColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/RadioColumnAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/SerialColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/kv-grid-expand.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*
* Gridview ExpandRowColumn styling and enhancements
*
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/kv-grid-expand.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/assets/css/kv-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
* @version 3.2.1
* @version 3.2.2
*
* Yii2 Gridview widget styling and enhancements for Bootstrap.
*
Expand All @@ -14,6 +14,10 @@
/**
* Table column heading sort styles for BS4
*/
.kv-grid-bs4 .card .kv-grid-table {
margin: 0
}

.kv-grid-bs4 a.asc:after,
.kv-grid-bs4 a.desc:after {
/*noinspection CssNoGenericFontName*/
Expand Down
Loading

0 comments on commit aecb3f4

Please sign in to comment.