@refinitiv-ui/efx-grid 6.0.68 → 6.0.70
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/column-selection-dialog/lib/column-selection-dialog.js +19 -7
- package/lib/core/dist/core.js +30 -2
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.d.ts +2 -0
- package/lib/core/es6/grid/Core.js +30 -2
- package/lib/filter-dialog/lib/filter-dialog.js +73 -32
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +52 -17
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +5 -2
- package/lib/rt-grid/es6/Grid.js +22 -15
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +32 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +13 -4
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +5 -5
- package/lib/tr-grid-printer/es6/CellWriter.js +6 -6
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +7 -6
- package/lib/tr-grid-printer/es6/GridPrinter.js +4 -2
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +1 -1
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +1 -1
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +65 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -2
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +225 -114
- package/lib/tr-grid-row-selection/es6/RowSelection.js +14 -32
- package/lib/tr-grid-util/es6/GridPlugin.js +52 -0
- package/lib/types/es6/Core/grid/Core.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +5 -2
- package/lib/types/es6/RowFiltering.d.ts +2 -2
- package/lib/versions.json +11 -11
- package/package.json +1 -1
@@ -764,6 +764,58 @@ GridPlugin.prototype._activateColumnRenderer = function(colIndex, id, renderer)
|
|
764
764
|
}
|
765
765
|
};
|
766
766
|
|
767
|
+
/** @private
|
768
|
+
* @param {number=} colIndex
|
769
|
+
* @param {number=} rowIndex
|
770
|
+
* @param {Object=} context
|
771
|
+
* @return {!Object}
|
772
|
+
*/
|
773
|
+
GridPlugin.prototype._mockMouseEvent = function(colIndex, rowIndex, context) {
|
774
|
+
if (colIndex == null) {
|
775
|
+
colIndex = 0;
|
776
|
+
}
|
777
|
+
|
778
|
+
if (rowIndex == null) {
|
779
|
+
rowIndex = 0;
|
780
|
+
}
|
781
|
+
|
782
|
+
var evt = context ? context : {};
|
783
|
+
|
784
|
+
if (colIndex >= 0 && rowIndex >= 0) {
|
785
|
+
var grid = this._activeGrid || this._hosts[0];
|
786
|
+
var cell = grid ? grid.getCell(evt.sectionType || "content", colIndex, rowIndex) : null;
|
787
|
+
evt.target = cell ? cell.getElement() : null;
|
788
|
+
}
|
789
|
+
|
790
|
+
return evt;
|
791
|
+
};
|
792
|
+
|
793
|
+
var keyMap = {
|
794
|
+
"left": 37,
|
795
|
+
"right": 39,
|
796
|
+
"up": 38,
|
797
|
+
"down": 40,
|
798
|
+
"tab": 9
|
799
|
+
};
|
800
|
+
|
801
|
+
/** @private
|
802
|
+
* @param {number|string} keyCode
|
803
|
+
* @param {Object=} context
|
804
|
+
* @return {!Object}
|
805
|
+
*/
|
806
|
+
GridPlugin.prototype._mockKeyboardEvent = function(keyCode, context) {
|
807
|
+
var evt = context ? context : {};
|
808
|
+
evt.preventDefault = function(){};
|
809
|
+
evt.stopPropagation = function(){};
|
810
|
+
|
811
|
+
if (typeof keyCode === "string") {
|
812
|
+
keyCode = keyCode.toLowerCase();
|
813
|
+
keyCode = keyMap[keyCode];
|
814
|
+
}
|
815
|
+
evt.keyCode = keyCode;
|
816
|
+
|
817
|
+
return evt;
|
818
|
+
};
|
767
819
|
/** Export the plugin to the given object by attaching it to tr and tr.grid namespaces
|
768
820
|
* @public
|
769
821
|
* @function
|
@@ -75,7 +75,6 @@ declare namespace Grid {
|
|
75
75
|
contentRightPadding?: number|null,
|
76
76
|
contentBottomPadding?: number|null,
|
77
77
|
dataConflationRate?: number|null,
|
78
|
-
dataComposed?: ((...params: any[]) => any)|null,
|
79
78
|
autoDateConversion?: boolean|null,
|
80
79
|
textSelect?: boolean|null,
|
81
80
|
lang?: string|null,
|
@@ -86,7 +85,11 @@ declare namespace Grid {
|
|
86
85
|
timeSeriesExpansion?: boolean|null,
|
87
86
|
childDataField?: string|null,
|
88
87
|
topSection?: boolean|null,
|
89
|
-
sorting?: SortableTitlePlugin.Options|null
|
88
|
+
sorting?: SortableTitlePlugin.Options|null,
|
89
|
+
dataComposed?: ((...params: any[]) => any)|null,
|
90
|
+
beforeContentBinding?: ((...params: any[]) => any)|null,
|
91
|
+
firstRendered?: ((...params: any[]) => any)|null,
|
92
|
+
afterContentBinding?: ((...params: any[]) => any)|null
|
90
93
|
};
|
91
94
|
|
92
95
|
type RowReference = number|string|RowDefinition|null;
|
@@ -113,7 +113,7 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
113
113
|
|
114
114
|
public getColumnFilterStates(): any[];
|
115
115
|
|
116
|
-
public getUniqueValues(field: string, formatter?: ((...params: any[]) => any)|null, fmtField?: string|null, rawDataAccessor?: ((...params: any[]) => any)|null, formattedDataAccessor?: ((...params: any[]) => any)|null): any;
|
116
|
+
public getUniqueValues(field: string, formatter?: ((...params: any[]) => any)|null, fmtField?: string|null, rawDataAccessor?: ((...params: any[]) => any)|null, formattedDataAccessor?: ((...params: any[]) => any)|null, filterFuncs?: ((...params: any[]) => any)|null, selectedItems?: any): any;
|
117
117
|
|
118
118
|
public openDialog(colIndex: number, runtimeDialogOptions?: RowFilteringPlugin.FilterDialogOptions|null): void;
|
119
119
|
|
@@ -123,7 +123,7 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
123
123
|
|
124
124
|
}
|
125
125
|
|
126
|
-
declare function
|
126
|
+
declare function colSettings(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
127
127
|
|
128
128
|
declare function crf(enabled?: boolean|null): void;
|
129
129
|
|
package/lib/versions.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"tr-grid-util": "1.3.
|
3
|
-
"tr-grid-printer": "1.0.
|
2
|
+
"tr-grid-util": "1.3.133",
|
3
|
+
"tr-grid-printer": "1.0.17",
|
4
4
|
"@grid/column-dragging": "1.0.14",
|
5
|
-
"@grid/row-segmenting": "1.0.
|
5
|
+
"@grid/row-segmenting": "1.0.29",
|
6
6
|
"@grid/statistics-row": "1.0.15",
|
7
7
|
"@grid/zoom": "1.0.11",
|
8
8
|
"tr-grid-auto-tooltip": "1.1.6",
|
@@ -12,9 +12,9 @@
|
|
12
12
|
"tr-grid-column-formatting": "0.9.35",
|
13
13
|
"tr-grid-column-grouping": "1.0.57",
|
14
14
|
"tr-grid-column-resizing": "1.0.28",
|
15
|
-
"tr-grid-column-selection": "1.0.
|
15
|
+
"tr-grid-column-selection": "1.0.31",
|
16
16
|
"tr-grid-column-stack": "1.0.72",
|
17
|
-
"tr-grid-conditional-coloring": "1.0.
|
17
|
+
"tr-grid-conditional-coloring": "1.0.66",
|
18
18
|
"tr-grid-content-wrap": "1.0.20",
|
19
19
|
"tr-grid-contextmenu": "1.0.40",
|
20
20
|
"tr-grid-filter-input": "0.9.33",
|
@@ -23,15 +23,15 @@
|
|
23
23
|
"tr-grid-pagination": "1.0.24",
|
24
24
|
"tr-grid-percent-bar": "1.0.22",
|
25
25
|
"tr-grid-range-bar": "2.0.5",
|
26
|
-
"tr-grid-row-dragging": "1.0.
|
27
|
-
"tr-grid-row-filtering": "1.0.
|
26
|
+
"tr-grid-row-dragging": "1.0.30",
|
27
|
+
"tr-grid-row-filtering": "1.0.62",
|
28
28
|
"tr-grid-row-grouping": "1.0.82",
|
29
|
-
"tr-grid-row-selection": "1.0.
|
30
|
-
"tr-grid-rowcoloring": "1.0.
|
29
|
+
"tr-grid-row-selection": "1.0.25",
|
30
|
+
"tr-grid-rowcoloring": "1.0.25",
|
31
31
|
"tr-grid-textformatting": "1.0.46",
|
32
32
|
"tr-grid-titlewrap": "1.0.19",
|
33
33
|
"@grid/formatters": "1.0.50",
|
34
|
-
"@grid/column-selection-dialog": "4.0.
|
35
|
-
"@grid/filter-dialog": "4.0.
|
34
|
+
"@grid/column-selection-dialog": "4.0.54",
|
35
|
+
"@grid/filter-dialog": "4.0.58",
|
36
36
|
"@grid/column-format-dialog": "4.0.44"
|
37
37
|
}
|
package/package.json
CHANGED