@refinitiv-ui/efx-grid 6.0.51 → 6.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +10 -6
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +10 -6
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +5 -5
- package/lib/tr-grid-filter-input/es6/FilterInput.js +1 -1
- package/lib/versions.json +2 -2
- package/package.json +1 -1
@@ -1077,14 +1077,18 @@ ColumnDefinition.prototype._defaultRenderer = function(e) {
|
|
1077
1077
|
*/
|
1078
1078
|
ColumnDefinition.prototype._customRenderer = function(e) {
|
1079
1079
|
var rowDef = /** @type{RowDefinition} */(e["dataValue"]);
|
1080
|
-
var rowData = rowDef.getRowData();
|
1081
1080
|
|
1082
1081
|
var arg = this._eventArg; // Reuse the same object
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
arg["
|
1082
|
+
if(rowDef) {
|
1083
|
+
var rowData = rowDef.getRowData();
|
1084
|
+
arg["rowDef"] = rowDef;
|
1085
|
+
arg["rowData"] = rowData;
|
1086
|
+
arg["rowIndex"] = e["rowIndex"];
|
1087
|
+
if(rowData) {
|
1088
|
+
arg["data"] = rowData[this._field];
|
1089
|
+
} else {
|
1090
|
+
arg["data"] = null;
|
1091
|
+
}
|
1088
1092
|
} else {
|
1089
1093
|
arg["data"] = null;
|
1090
1094
|
}
|
@@ -1506,12 +1506,12 @@ ColumnStackPlugin.prototype._addRefToStack = function (stackOption, colIndex) {
|
|
1506
1506
|
/** Remove unique ref of the specified index from the stack
|
1507
1507
|
* @private
|
1508
1508
|
* @param {Object} stackOption
|
1509
|
-
* @param {string}
|
1509
|
+
* @param {string} colId For removing state
|
1510
1510
|
* @param {number} colIndex For updating UI
|
1511
1511
|
* @return {boolean}
|
1512
1512
|
*/
|
1513
|
-
ColumnStackPlugin.prototype._removeRefFromStack = function (stackOption,
|
1514
|
-
if(!this._groupDefs.removeGroupChild(stackOption.id,
|
1513
|
+
ColumnStackPlugin.prototype._removeRefFromStack = function (stackOption, colId, colIndex) {
|
1514
|
+
if(!this._groupDefs.removeGroupChild(stackOption.id, colId)) {
|
1515
1515
|
return false;
|
1516
1516
|
}
|
1517
1517
|
|
@@ -1787,7 +1787,7 @@ ColumnStackPlugin.prototype.removeColumnFromStack = function(colRef) {
|
|
1787
1787
|
}
|
1788
1788
|
|
1789
1789
|
var colIndices = this.getColumnIndices(children);
|
1790
|
-
this._removeRefFromStack(stack,
|
1790
|
+
this._removeRefFromStack(stack, colId, colIndex);
|
1791
1791
|
|
1792
1792
|
this.moveColumnById(colIndex, colIndices[memberCount - 1] + 1); // This assumes that the column order is already in correct position
|
1793
1793
|
|
@@ -1890,7 +1890,7 @@ ColumnStackPlugin.prototype.addStackChild = function(stackId, colRef) {
|
|
1890
1890
|
*/
|
1891
1891
|
ColumnStackPlugin.prototype.removeStackChild = function(stackId, colRef) {
|
1892
1892
|
if(stackId === this.getStackId(colRef)) {
|
1893
|
-
this.removeColumnFromStack(
|
1893
|
+
this.removeColumnFromStack(colRef);
|
1894
1894
|
}
|
1895
1895
|
};
|
1896
1896
|
/** @public
|
@@ -1056,7 +1056,7 @@ FilterInputPlugin._transformToLowercaseString = function (data) {
|
|
1056
1056
|
if (data instanceof Date) {
|
1057
1057
|
dataStr = data.toDateString().toLowerCase();
|
1058
1058
|
} else {
|
1059
|
-
dataStr = (data + "").toLocaleLowerCase;
|
1059
|
+
dataStr = (data + "").toLocaleLowerCase();
|
1060
1060
|
}
|
1061
1061
|
} else if (data) {
|
1062
1062
|
dataStr = data.toLowerCase();
|
package/lib/versions.json
CHANGED
@@ -13,11 +13,11 @@
|
|
13
13
|
"tr-grid-column-grouping": "1.0.52",
|
14
14
|
"tr-grid-column-resizing": "1.0.28",
|
15
15
|
"tr-grid-column-selection": "1.0.28",
|
16
|
-
"tr-grid-column-stack": "1.0.
|
16
|
+
"tr-grid-column-stack": "1.0.68",
|
17
17
|
"tr-grid-conditional-coloring": "1.0.61",
|
18
18
|
"tr-grid-content-wrap": "1.0.20",
|
19
19
|
"tr-grid-contextmenu": "1.0.39",
|
20
|
-
"tr-grid-filter-input": "0.9.
|
20
|
+
"tr-grid-filter-input": "0.9.33",
|
21
21
|
"tr-grid-heat-map": "1.0.29",
|
22
22
|
"tr-grid-in-cell-editing": "1.0.78",
|
23
23
|
"tr-grid-pagination": "1.0.24",
|
package/package.json
CHANGED