@refinitiv-ui/efx-grid 6.0.135 → 6.0.137
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +18 -16
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +2 -2
- package/lib/core/es6/grid/LayoutGrid.js +16 -14
- package/lib/filter-dialog/lib/filter-dialog.d.ts +1 -0
- package/lib/filter-dialog/lib/filter-dialog.js +74 -80
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +11 -18
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/RowDefinition.js +11 -18
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -1
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +14 -4
- package/lib/versions.json +3 -3
- package/package.json +1 -1
@@ -515,8 +515,7 @@ RowDefinition.prototype.getConfigObject = function(rowOptions) {
|
|
515
515
|
obj["collapsed"] = val;
|
516
516
|
}
|
517
517
|
|
518
|
-
|
519
|
-
val = this._view.isHiddenRow(this._rowId);
|
518
|
+
val = this._view ? this._view.isHiddenRow(this._rowId) : false;
|
520
519
|
if(val) {
|
521
520
|
obj["hidden"] = val;
|
522
521
|
}
|
@@ -1090,19 +1089,6 @@ RowDefinition.deregisterFromView = function(rowIds, rowDef) {
|
|
1090
1089
|
rowDef._deregisterFromView(rowIds);
|
1091
1090
|
return rowIds;
|
1092
1091
|
};
|
1093
|
-
/** @private
|
1094
|
-
* @param {string} ric
|
1095
|
-
* @return {Object}
|
1096
|
-
*/
|
1097
|
-
RowDefinition.prototype._getChildStaticRowData = function(ric) {
|
1098
|
-
if(this._staticValues) {
|
1099
|
-
let childValues = this._staticValues[RowDefinition._childDataField];
|
1100
|
-
if(childValues) {
|
1101
|
-
return childValues[ric] || null;
|
1102
|
-
}
|
1103
|
-
}
|
1104
|
-
return null;
|
1105
|
-
};
|
1106
1092
|
|
1107
1093
|
/** @public
|
1108
1094
|
* @ignore
|
@@ -1157,9 +1143,16 @@ RowDefinition.prototype.addConstituent = function(ric) {
|
|
1157
1143
|
"parent": this
|
1158
1144
|
};
|
1159
1145
|
|
1160
|
-
|
1161
|
-
if(
|
1162
|
-
|
1146
|
+
// Get child static values stored in this row
|
1147
|
+
if(this._staticValues) {
|
1148
|
+
let children = this._staticValues[RowDefinition._childDataField];
|
1149
|
+
if(children) {
|
1150
|
+
let childValues = children[ric];
|
1151
|
+
if(childValues) {
|
1152
|
+
rowOptions["values"] = childValues;
|
1153
|
+
children[ric] = null;
|
1154
|
+
}
|
1155
|
+
}
|
1163
1156
|
}
|
1164
1157
|
|
1165
1158
|
return new RowDefinition(rowOptions); // childDef is added to this._children in the constructor
|
@@ -37,7 +37,8 @@ declare namespace RowFilteringPlugin {
|
|
37
37
|
itemList?: any[]|null,
|
38
38
|
additionalItems?: any[]|null,
|
39
39
|
compactMode?: boolean|null,
|
40
|
-
blankValues?: (boolean|string)|null
|
40
|
+
blankValues?: (boolean|string)|null,
|
41
|
+
dateTimeFormat?: string|null
|
41
42
|
};
|
42
43
|
|
43
44
|
type FilterEntry = {
|
@@ -91,7 +91,8 @@ The expression can take various forms:<br>
|
|
91
91
|
* @property {Array=} itemList Item list to be shown in the dialog. If this is not specified, the list will be collected from existing data on the grid
|
92
92
|
* @property {Array=} additionalItems Additional items to be put on the itemList
|
93
93
|
* @property {boolean=} compactMode=false force compact mode in dialog
|
94
|
-
* @property {(boolean|string)=} blankValues Display a "(Blanks)" item in the filter dialog to represent an empty value. If a string is passed, it will be used as the label for the blank item
|
94
|
+
* @property {(boolean|string)=} blankValues=false Display a "(Blanks)" item in the filter dialog to represent an empty value. If a string is passed, it will be used as the label for the blank item
|
95
|
+
* @property {string=} dateTimeFormat="dd-MM-yy" Specifies the string format for the date time picker in the filter dialog based on date-fns format, follow https://date-fns.org/v3.6.0/docs/format.
|
95
96
|
*/
|
96
97
|
|
97
98
|
/** @typedef {Object} RowFilteringPlugin~FilterEntry
|
@@ -1721,7 +1722,9 @@ RowFilteringPlugin._createDialog = function() {
|
|
1721
1722
|
}
|
1722
1723
|
return tag ? document.createElement(tag) : null;
|
1723
1724
|
};
|
1724
|
-
/**
|
1725
|
+
/** Prepare user's array expression to be displayed in Filter Dialog. Convert date string to date object. Format raw value for text input
|
1726
|
+
* @public
|
1727
|
+
* @ignore
|
1725
1728
|
* @function
|
1726
1729
|
* @param {Array} exp
|
1727
1730
|
* @param {string} field
|
@@ -1748,11 +1751,12 @@ RowFilteringPlugin._formatArrayExpression = function(exp, field, formatter) {
|
|
1748
1751
|
if(formattedVal) {
|
1749
1752
|
ary.rawValue = val;
|
1750
1753
|
ary.formattedValue = formattedVal;
|
1754
|
+
ary[1] = formattedVal;
|
1751
1755
|
} else {
|
1752
|
-
|
1756
|
+
ary[1] = val;
|
1753
1757
|
}
|
1758
|
+
|
1754
1759
|
}
|
1755
|
-
ary[1] = formattedVal;
|
1756
1760
|
return ary;
|
1757
1761
|
}
|
1758
1762
|
return null;
|
@@ -1869,6 +1873,7 @@ RowFilteringPlugin.prototype.openDialog = function(colIndex, runtimeDialogOption
|
|
1869
1873
|
advancedFilter: true,
|
1870
1874
|
compactMode: false,
|
1871
1875
|
fieldDataType: "",
|
1876
|
+
dateTimeFormat: "dd-MM-yy",
|
1872
1877
|
lang: "",
|
1873
1878
|
rawDataAccessor: null,
|
1874
1879
|
formattedDataAccessor: null,
|
@@ -2033,6 +2038,11 @@ RowFilteringPlugin._overrideConfig = function(config, userConfig) {
|
|
2033
2038
|
config.advancedFilter = advancedFilter;
|
2034
2039
|
}
|
2035
2040
|
|
2041
|
+
let dateTimeFormat = userConfig["dateTimeFormat"];
|
2042
|
+
if (dateTimeFormat != null) {
|
2043
|
+
config.dateTimeFormat = dateTimeFormat;
|
2044
|
+
}
|
2045
|
+
|
2036
2046
|
let compactMode = userConfig["compactMode"];
|
2037
2047
|
if (compactMode != null) {
|
2038
2048
|
config.compactMode = compactMode;
|
package/lib/versions.json
CHANGED
@@ -19,12 +19,12 @@
|
|
19
19
|
"tr-grid-contextmenu": "1.0.44",
|
20
20
|
"tr-grid-filter-input": "0.9.43",
|
21
21
|
"tr-grid-heat-map": "1.0.30",
|
22
|
-
"tr-grid-in-cell-editing": "1.0.
|
22
|
+
"tr-grid-in-cell-editing": "1.0.93",
|
23
23
|
"tr-grid-pagination": "1.0.24",
|
24
24
|
"tr-grid-percent-bar": "1.0.24",
|
25
25
|
"tr-grid-range-bar": "2.0.9",
|
26
26
|
"tr-grid-row-dragging": "1.0.38",
|
27
|
-
"tr-grid-row-filtering": "1.0.
|
27
|
+
"tr-grid-row-filtering": "1.0.87",
|
28
28
|
"tr-grid-row-grouping": "1.0.88",
|
29
29
|
"tr-grid-row-selection": "1.0.33",
|
30
30
|
"tr-grid-rowcoloring": "1.0.26",
|
@@ -32,6 +32,6 @@
|
|
32
32
|
"tr-grid-titlewrap": "1.0.22",
|
33
33
|
"@grid/formatters": "1.0.55",
|
34
34
|
"@grid/column-selection-dialog": "4.0.57",
|
35
|
-
"@grid/filter-dialog": "4.0.
|
35
|
+
"@grid/filter-dialog": "4.0.79",
|
36
36
|
"@grid/column-format-dialog": "4.0.45"
|
37
37
|
}
|
package/package.json
CHANGED