@refinitiv-ui/efx-grid 6.0.88 → 6.0.90
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/core/dist/core.js +2 -2
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.d.ts +0 -2
- package/lib/core/es6/grid/Core.js +2 -2
- package/lib/grid/index.js +1 -1
- package/lib/row-segmenting/es6/RowSegmenting.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +7 -4
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +5 -2
- package/lib/rt-grid/es6/RowDefinition.d.ts +0 -4
- package/lib/rt-grid/es6/RowDefinition.js +2 -2
- package/lib/statistics-row/es6/StatisticsRow.d.ts +1 -0
- package/lib/statistics-row/es6/StatisticsRow.js +18 -2
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +0 -4
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +2 -2
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +3 -1
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +41 -2
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +0 -2
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +1 -1
- package/lib/types/es6/Core/grid/Core.d.ts +0 -2
- package/lib/types/es6/InCellEditing.d.ts +0 -4
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +0 -4
- package/lib/types/es6/RowFiltering.d.ts +2 -0
- package/lib/types/es6/StatisticsRow.d.ts +1 -0
- package/lib/types/es6/TitleWrap.d.ts +0 -2
- package/lib/versions.json +8 -8
- package/package.json +1 -1
package/lib/rt-grid/es6/Grid.js
CHANGED
@@ -439,7 +439,6 @@ let Grid = function(placeholder, config) {
|
|
439
439
|
t._connector.addEventListener("fieldRemoved", t._onFieldRemoved.bind(t));
|
440
440
|
|
441
441
|
t.initialize(config);
|
442
|
-
t.initSubscription();
|
443
442
|
|
444
443
|
StyleLoader.applyStyle(t._grid);
|
445
444
|
};
|
@@ -824,7 +823,10 @@ Grid.prototype.getCoreGrid = function () {
|
|
824
823
|
* @param {Grid~GridOptions=} gridOption
|
825
824
|
*/
|
826
825
|
Grid.prototype.initialize = function(gridOption) {
|
827
|
-
if (!gridOption) {
|
826
|
+
if (!gridOption) {
|
827
|
+
this.initSubscription();
|
828
|
+
return;
|
829
|
+
}
|
828
830
|
// TODO: clear all data before re-initialization
|
829
831
|
let t = this; // For minimizing file size
|
830
832
|
t._initializing = true;
|
@@ -1116,6 +1118,7 @@ Grid.prototype.initialize = function(gridOption) {
|
|
1116
1118
|
// Tell all plugins that the initialization phase has ended
|
1117
1119
|
let extObjects = grid.getPluginList().map(grid.getPlugin.bind(grid));
|
1118
1120
|
t._processExtension(extObjects, "afterInit");
|
1121
|
+
t.initSubscription();
|
1119
1122
|
};
|
1120
1123
|
|
1121
1124
|
/** @public
|
@@ -57,8 +57,6 @@ declare class RowDefinition {
|
|
57
57
|
|
58
58
|
public setStaticRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]|null): void;
|
59
59
|
|
60
|
-
public _getStaticRowData(): { [key: string]: any };
|
61
|
-
|
62
60
|
public updateRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]|null): void;
|
63
61
|
|
64
62
|
public setStaticData(field: string, value: any): void;
|
@@ -109,8 +107,6 @@ declare class RowDefinition {
|
|
109
107
|
|
110
108
|
public static deregisterFromView(rowIds: (string)[]|null, rowDef: RowDefinition|null): (string)[]|null;
|
111
109
|
|
112
|
-
public _toRealTimeRow(): void;
|
113
|
-
|
114
110
|
public unlinkChain(): void;
|
115
111
|
|
116
112
|
public collapseChain(): boolean;
|
@@ -587,7 +587,7 @@ RowDefinition.prototype.setStaticRowData = function(data, opt_fields) {
|
|
587
587
|
this.setRowData(data);
|
588
588
|
}
|
589
589
|
};
|
590
|
-
/** @
|
590
|
+
/** @private
|
591
591
|
* @return {Object.<string, *>}
|
592
592
|
*/
|
593
593
|
RowDefinition.prototype._getStaticRowData = function() {
|
@@ -1006,7 +1006,7 @@ RowDefinition.prototype.addConstituent = function(ric) {
|
|
1006
1006
|
};
|
1007
1007
|
|
1008
1008
|
/** Used to convert autogenerated row to regular real-time row
|
1009
|
-
* @
|
1009
|
+
* @private
|
1010
1010
|
*/
|
1011
1011
|
RowDefinition.prototype._toRealTimeRow = function() {
|
1012
1012
|
if(!this._ric) { // Empty row
|
@@ -8,6 +8,7 @@ declare namespace StatisticsRowPlugin {
|
|
8
8
|
invalidText?: string|null,
|
9
9
|
noColoring?: boolean|null,
|
10
10
|
noFormatting?: boolean|null,
|
11
|
+
useAllData?: boolean|null,
|
11
12
|
postCalculation?: ((...params: any[]) => any)|null,
|
12
13
|
postRendering?: ((...params: any[]) => any)|null
|
13
14
|
};
|
@@ -7,6 +7,7 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
7
7
|
* @property {string=} invalidText="" Text to be shown for invalid statistic (i.e. Not a Number value)
|
8
8
|
* @property {boolean=} noColoring=false If enabled, all conditional coloring (i.e. tick coloring) will not automatically be applied.
|
9
9
|
* @property {boolean=} noFormatting=false If enabled, all formatting (i.e. decimal places) will not automatically be applied.
|
10
|
+
* @property {boolean=} useAllData=true If disabled, filtered out rows will not be included in the calculation.
|
10
11
|
* @property {Function=} postCalculation Function handler excuted after statistics calculation and before default rendering
|
11
12
|
* @property {Function=} postRendering Function handler excuted after default rendering
|
12
13
|
*/
|
@@ -163,7 +164,10 @@ StatisticsRowPlugin.prototype._ccExt = null;
|
|
163
164
|
* @private
|
164
165
|
*/
|
165
166
|
StatisticsRowPlugin.prototype._disabledUIs = false;
|
166
|
-
|
167
|
+
/** @type {boolean}
|
168
|
+
* @private
|
169
|
+
*/
|
170
|
+
StatisticsRowPlugin.prototype._useAllData = true;
|
167
171
|
/** @public
|
168
172
|
* @return {string}
|
169
173
|
*/
|
@@ -248,6 +252,9 @@ StatisticsRowPlugin.prototype.config = function (options) {
|
|
248
252
|
if(extOptions.noFormatting != null) {
|
249
253
|
this._noFormatting = extOptions.noFormatting ? true : false;
|
250
254
|
}
|
255
|
+
if(extOptions.useAllData != null) {
|
256
|
+
this._useAllData = extOptions.useAllData ? true : false;
|
257
|
+
}
|
251
258
|
this.addListener(extOptions, "postCalculation");
|
252
259
|
this.addListener(extOptions, "postRendering");
|
253
260
|
|
@@ -314,6 +321,10 @@ StatisticsRowPlugin.prototype.getConfigObject = function (gridOptions) {
|
|
314
321
|
extOptions.noFormatting = this._noFormatting;
|
315
322
|
}
|
316
323
|
|
324
|
+
if(!this._useAllData) {
|
325
|
+
extOptions.useAllData = this._useAllData;
|
326
|
+
}
|
327
|
+
|
317
328
|
return obj;
|
318
329
|
};
|
319
330
|
|
@@ -619,7 +630,12 @@ StatisticsRowPlugin.prototype._onPostSectionDataBinding = function (e) {
|
|
619
630
|
var colCount = host.getColumnCount();
|
620
631
|
var dv = host.getDataSource();
|
621
632
|
var dt = dv.getDataSource();
|
622
|
-
var rows
|
633
|
+
var rows;
|
634
|
+
if(this._useAllData) {
|
635
|
+
rows = dt.getAllRowData(); // Slow: A new copy of data is created
|
636
|
+
} else {
|
637
|
+
rows = dv.getAllRowData();
|
638
|
+
}
|
623
639
|
var rowCount = rows.length;
|
624
640
|
|
625
641
|
var fields = null;
|
@@ -89,10 +89,6 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
89
89
|
|
90
90
|
public _getRowIndex(rowId: string): number;
|
91
91
|
|
92
|
-
public _getRowId(rowIndex: number): string;
|
93
|
-
|
94
|
-
public getActiveGrid(): any|null|null;
|
95
|
-
|
96
92
|
public getActiveColIndex(): number;
|
97
93
|
|
98
94
|
public getActiveRowIndex(): number;
|
@@ -959,7 +959,7 @@ InCellEditingPlugin.prototype._getRowIndex = function (rowId) {
|
|
959
959
|
};
|
960
960
|
|
961
961
|
/**
|
962
|
-
* @
|
962
|
+
* @private
|
963
963
|
* @param {number} rowIndex
|
964
964
|
* @return {!string} return empty string if not found
|
965
965
|
*/
|
@@ -971,7 +971,7 @@ InCellEditingPlugin.prototype._getRowId = function (rowIndex) {
|
|
971
971
|
return "";
|
972
972
|
};
|
973
973
|
|
974
|
-
/** @
|
974
|
+
/** @private
|
975
975
|
* @return {Object|null} core grid object
|
976
976
|
*/
|
977
977
|
InCellEditingPlugin.prototype.getActiveGrid = function () {
|
@@ -128,7 +128,9 @@ PercentBarPlugin.prototype.initialize = function (host, options) {
|
|
128
128
|
ElfUtil.getThemeColors(this._onThemeLoaded).then(this._onThemeLoaded)["catch"](this._onThemeLoaded);
|
129
129
|
}
|
130
130
|
};
|
131
|
-
/** @override
|
131
|
+
/** @override
|
132
|
+
* @ignore
|
133
|
+
*/
|
132
134
|
|
133
135
|
|
134
136
|
PercentBarPlugin.prototype._afterInit = function () {
|
@@ -131,6 +131,8 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
131
131
|
|
132
132
|
declare function colSettings(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
133
133
|
|
134
|
+
declare function selCount(sortOrder: string): void;
|
135
|
+
|
134
136
|
declare function crf(enabled?: boolean|null): void;
|
135
137
|
|
136
138
|
export default RowFilteringPlugin;
|
@@ -79,8 +79,8 @@ The expression can take various forms:<br>
|
|
79
79
|
|
80
80
|
/** @typedef {Object} RowFilteringPlugin~FilterDialogOptions
|
81
81
|
* @description Options that specify UIs of filter dialog
|
82
|
-
* @property {boolean=} sortUI show/hide sort UI
|
83
|
-
* @property {boolean=} filterUI show/hide filter UI
|
82
|
+
* @property {boolean=} sortUI=true show/hide sort UI
|
83
|
+
* @property {boolean=} filterUI=true show/hide filter UI
|
84
84
|
* @property {string=} fieldDataType data type of column
|
85
85
|
* @property {string=} lang dialog language
|
86
86
|
* @property {Function=} rawDataAccessor In case you have custom data type for the specified field, data getter is needed to retrieve raw value for filtering
|
@@ -472,6 +472,10 @@ RowFilteringPlugin.prototype.getConfigObject = function (gridOptions) {
|
|
472
472
|
column.filterState = ctx;
|
473
473
|
}
|
474
474
|
}
|
475
|
+
var filterIcon = colSettings.filterIcon;
|
476
|
+
if (!filterIcon) {
|
477
|
+
column.filterIcon = false;
|
478
|
+
}
|
475
479
|
}
|
476
480
|
var extOptions = obj.rowFiltering;
|
477
481
|
var dirty = false;
|
@@ -1859,6 +1863,27 @@ RowFilteringPlugin._getFilterBuilder = function () {
|
|
1859
1863
|
return RowFilteringPlugin._filterBuilder;
|
1860
1864
|
};
|
1861
1865
|
|
1866
|
+
/** @public
|
1867
|
+
* @ignore
|
1868
|
+
* @param {*} val
|
1869
|
+
*/
|
1870
|
+
RowFilteringPlugin.prototype.mockDialogFilterChange = function (val) {
|
1871
|
+
if (this._filterDialog) {
|
1872
|
+
var arg = {
|
1873
|
+
detail: {}
|
1874
|
+
};
|
1875
|
+
if (Array.isArray(val)) {
|
1876
|
+
if (Array.isArray(val[0])) {
|
1877
|
+
arg.detail.conditions = val;
|
1878
|
+
} else {
|
1879
|
+
arg.detail.value = val;
|
1880
|
+
}
|
1881
|
+
} else {
|
1882
|
+
arg.detail.value = val;
|
1883
|
+
}
|
1884
|
+
this._onDialogFilterChanged(arg);
|
1885
|
+
}
|
1886
|
+
};
|
1862
1887
|
/** @private
|
1863
1888
|
* @param {Object} e
|
1864
1889
|
*/
|
@@ -1957,6 +1982,20 @@ RowFilteringPlugin.prototype._onDialogFilterChanged = function (e) {
|
|
1957
1982
|
"colIndex": colIndex
|
1958
1983
|
});
|
1959
1984
|
};
|
1985
|
+
|
1986
|
+
/** @public
|
1987
|
+
* @ignore
|
1988
|
+
* @param {string} sortOrder
|
1989
|
+
*/
|
1990
|
+
RowFilteringPlugin.prototype.mockDialogSortChange = function (sortOrder) {
|
1991
|
+
if (this._filterDialog) {
|
1992
|
+
var arg = {
|
1993
|
+
detail: {}
|
1994
|
+
};
|
1995
|
+
arg.detail.value = sortOrder;
|
1996
|
+
this._onDialogSortChanged(arg);
|
1997
|
+
}
|
1998
|
+
};
|
1960
1999
|
/** @private
|
1961
2000
|
* @param {Object} e
|
1962
2001
|
*/
|
@@ -15,8 +15,6 @@ declare class TitleWrapPlugin extends GridPlugin {
|
|
15
15
|
|
16
16
|
public getConfigObject(gridOptions?: any): any;
|
17
17
|
|
18
|
-
public _adjustRowHeightRefByHost(host: any, sectionRef: any, from?: number|null, to?: number|null): boolean;
|
19
|
-
|
20
18
|
public adjustRowHeight(sectionRef: any, from?: number|null, to?: number|null): boolean;
|
21
19
|
|
22
20
|
public adjustRowHeightAt(sectionRef: any, rowIndex: number): boolean;
|
@@ -166,7 +166,7 @@ TitleWrapPlugin.prototype._onRecalculation = function () {
|
|
166
166
|
this.adjustRowHeight("title");
|
167
167
|
};
|
168
168
|
/** adjust row height using specific grid at a reference to other grid
|
169
|
-
* @
|
169
|
+
* @private
|
170
170
|
* @param {Object} host core grid instance
|
171
171
|
* @param {Object} sectionRef grid SectionReference
|
172
172
|
* @param {number=} from
|
@@ -365,8 +365,6 @@ declare class Core extends ElementWrapper {
|
|
365
365
|
|
366
366
|
public requestRowRefresh(): void;
|
367
367
|
|
368
|
-
public _requestScrollbarUpdate(): void;
|
369
|
-
|
370
368
|
public deactivateRendering(disabled?: boolean|null): void;
|
371
369
|
|
372
370
|
public reserveRightSpace(size: number): boolean;
|
@@ -89,10 +89,6 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
89
89
|
|
90
90
|
public _getRowIndex(rowId: string): number;
|
91
91
|
|
92
|
-
public _getRowId(rowIndex: number): string;
|
93
|
-
|
94
|
-
public getActiveGrid(): any|null|null;
|
95
|
-
|
96
92
|
public getActiveColIndex(): number;
|
97
93
|
|
98
94
|
public getActiveRowIndex(): number;
|
@@ -57,8 +57,6 @@ declare class RowDefinition {
|
|
57
57
|
|
58
58
|
public setStaticRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]|null): void;
|
59
59
|
|
60
|
-
public _getStaticRowData(): { [key: string]: any };
|
61
|
-
|
62
60
|
public updateRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]|null): void;
|
63
61
|
|
64
62
|
public setStaticData(field: string, value: any): void;
|
@@ -109,8 +107,6 @@ declare class RowDefinition {
|
|
109
107
|
|
110
108
|
public static deregisterFromView(rowIds: (string)[]|null, rowDef: RowDefinition|null): (string)[]|null;
|
111
109
|
|
112
|
-
public _toRealTimeRow(): void;
|
113
|
-
|
114
110
|
public unlinkChain(): void;
|
115
111
|
|
116
112
|
public collapseChain(): boolean;
|
@@ -131,6 +131,8 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
131
131
|
|
132
132
|
declare function colSettings(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
133
133
|
|
134
|
+
declare function selCount(sortOrder: string): void;
|
135
|
+
|
134
136
|
declare function crf(enabled?: boolean|null): void;
|
135
137
|
|
136
138
|
export default RowFilteringPlugin;
|
@@ -8,6 +8,7 @@ declare namespace StatisticsRowPlugin {
|
|
8
8
|
invalidText?: string|null,
|
9
9
|
noColoring?: boolean|null,
|
10
10
|
noFormatting?: boolean|null,
|
11
|
+
useAllData?: boolean|null,
|
11
12
|
postCalculation?: ((...params: any[]) => any)|null,
|
12
13
|
postRendering?: ((...params: any[]) => any)|null
|
13
14
|
};
|
@@ -15,8 +15,6 @@ declare class TitleWrapPlugin extends GridPlugin {
|
|
15
15
|
|
16
16
|
public getConfigObject(gridOptions?: any): any;
|
17
17
|
|
18
|
-
public _adjustRowHeightRefByHost(host: any, sectionRef: any, from?: number|null, to?: number|null): boolean;
|
19
|
-
|
20
18
|
public adjustRowHeight(sectionRef: any, from?: number|null, to?: number|null): boolean;
|
21
19
|
|
22
20
|
public adjustRowHeightAt(sectionRef: any, rowIndex: number): boolean;
|
package/lib/versions.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"tr-grid-util": "1.3.140",
|
3
3
|
"tr-grid-printer": "1.0.17",
|
4
|
-
"@grid/column-dragging": "1.0.
|
5
|
-
"@grid/row-segmenting": "1.0.
|
6
|
-
"@grid/statistics-row": "1.0.
|
4
|
+
"@grid/column-dragging": "1.0.18",
|
5
|
+
"@grid/row-segmenting": "1.0.31",
|
6
|
+
"@grid/statistics-row": "1.0.17",
|
7
7
|
"@grid/zoom": "1.0.11",
|
8
8
|
"tr-grid-auto-tooltip": "1.1.6",
|
9
9
|
"tr-grid-cell-selection": "1.0.35",
|
@@ -19,17 +19,17 @@
|
|
19
19
|
"tr-grid-contextmenu": "1.0.41",
|
20
20
|
"tr-grid-filter-input": "0.9.39",
|
21
21
|
"tr-grid-heat-map": "1.0.29",
|
22
|
-
"tr-grid-in-cell-editing": "1.0.
|
22
|
+
"tr-grid-in-cell-editing": "1.0.82",
|
23
23
|
"tr-grid-pagination": "1.0.24",
|
24
|
-
"tr-grid-percent-bar": "1.0.
|
24
|
+
"tr-grid-percent-bar": "1.0.24",
|
25
25
|
"tr-grid-range-bar": "2.0.8",
|
26
|
-
"tr-grid-row-dragging": "1.0.
|
27
|
-
"tr-grid-row-filtering": "1.0.
|
26
|
+
"tr-grid-row-dragging": "1.0.32",
|
27
|
+
"tr-grid-row-filtering": "1.0.71",
|
28
28
|
"tr-grid-row-grouping": "1.0.86",
|
29
29
|
"tr-grid-row-selection": "1.0.27",
|
30
30
|
"tr-grid-rowcoloring": "1.0.25",
|
31
31
|
"tr-grid-textformatting": "1.0.48",
|
32
|
-
"tr-grid-titlewrap": "1.0.
|
32
|
+
"tr-grid-titlewrap": "1.0.22",
|
33
33
|
"@grid/formatters": "1.0.51",
|
34
34
|
"@grid/column-selection-dialog": "4.0.57",
|
35
35
|
"@grid/filter-dialog": "4.0.63",
|
package/package.json
CHANGED