Skip to content

Commit

Permalink
Update to release v3.5.3 fixes #1073
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jul 25, 2023
1 parent 36fe95b commit cfc1a8e
Show file tree
Hide file tree
Showing 55 changed files with 71 additions and 65 deletions.
6 changes: 6 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log: `yii2-grid`
=======================

## Version 3.5.3

**Date:** 25-Jul-2023

- (enh #1073): Fix bug in `GridView::replacePart`.

## Version 3.5.2

**Date:** 25-Jul-2023
Expand Down
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 - 2023
* @package yii2-grid
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/EnumColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion 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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridEditedRowAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridLinkSorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion 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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/GridViewInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
24 changes: 12 additions & 12 deletions src/GridViewTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down Expand Up @@ -296,10 +296,10 @@ trait GridViewTrait

/**
* @var array tags to replace in the rendered layout. Enter this as `$key => $callback` pairs, where:
* - `$key`: _string_, defines the flag.
* - `$callback`: _string_|_array_, the callback function name that will return the value to be replaced. This can be a
* global function name or a callback setting in an array format as understood by PHP's `call_user_func_array`
* method. For example:
* - `$key`: _string_, the token string that will be replaced.
* - `$callback`: _string_|_array_, the callback function name that will return the value to be replaced. This can
* be a global function name or a callback setting in an array format as understood by PHP's
* `call_user_func_array` method. For example:
*
* ```php
* function renderTag1() { // global function
Expand Down Expand Up @@ -489,7 +489,7 @@ trait GridViewTrait
* scrolling (e.g. in cases where you have a fixed bootstrap navbar on top). For example:
*
* ```
* 'headerContainer' => ['class' => 'kv-table-header, 'style' => 'top: 50px'] // to set an offset
* 'headerContainer' => ['class' => 'kv-table-header', 'style' => 'top: 50px'] // to set an offset
* ```
*/
public $headerContainer = ['class' => 'kv-table-header'];
Expand All @@ -508,12 +508,12 @@ trait GridViewTrait
public $footerContainer = ['class' => 'kv-table-footer'];

/**
* @deprecated since release v3.5.2
* @deprecated since release v3.5.3
*/
public $floatOverflowContainer = false;

/**
* @deprecated since release v3.5.2
* @deprecated since release v3.5.3
*/
public $floatHeaderOptions = [];

Expand Down Expand Up @@ -693,7 +693,7 @@ trait GridViewTrait
* configuration options are read specific to each file type:
* - `HTML`: The following properties can be set as array key-value pairs:
* - `cssFile`: _string_, the css file that will be used in the exported HTML file. Defaults to:
* `https://maxcdn.bootstrapcdn.com/bootstrap/3.5.2/css/bootstrap.min.css`.
* `https://maxcdn.bootstrapcdn.com/bootstrap/3.5.3/css/bootstrap.min.css`.
* - `CSV` and `TEXT`: The following properties can be set as array key-value pairs:
* - `colDelimiter`: _string_, the column delimiter string for TEXT and CSV downloads.
* - `rowDelimiter`: _string_, the row delimiter string for TEXT and CSV downloads.
Expand Down Expand Up @@ -1693,7 +1693,7 @@ protected function endPjax()
* Replaces token within the grid's property value using custom callable.
*
* @param string $prop the template property in this module
* @param string $needle
* @param string $needle the token to be replaced.
* @param string|array $callback the callback function name
* @param array $params arguments to the callback
*/
Expand All @@ -1712,15 +1712,15 @@ protected function replacePart($prop, $needle, $callback, $params = [])
$exists = is_callable($callback);
}
if (Lib::strpos($this->$prop, $needle) !== false) {
$this->$prop = Lib::strtr($this->layout,
$this->$prop = Lib::strtr($this->$prop,
[$needle => $exists ? call_user_func_array($callback, $params) : '']);
}
}

/**
* Replaces layout token part using custom callable.
*
* @param string $needle
* @param string $needle the token to be replaced.
* @param string|array $callback the callback function name
* @param array $params arguments to the callback
*/
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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*/

namespace kartik\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/kv-grid-edited-row.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*
* Gridview edited row styling and enhancements
*/
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/kv-grid-edited-row.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*
* Gridview edited row styling and enhancements
*/.table-striped>tbody>tr.kv-row-edit-highlight,.table>tbody>tr.kv-row-edit-highlight,tr.kv-row-edit-highlight{border-top:2px #a7a70a ridge;border-bottom:2px #a7a70a ridge;background-color:rgba(255,255,0,.2)}.table-striped>tbody>tr.kv-row-edit-highlight:hover,.table>tbody>tr.kv-row-edit-highlight:hover,tr.kv-row-edit-highlight:hover{background-color:rgba(255,255,0,.3)}
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 <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2023
* @version 3.5.2
* @version 3.5.3
*
* Gridview ExpandRowColumn styling and enhancements
*
Expand Down
Loading

0 comments on commit cfc1a8e

Please sign in to comment.