@refinitiv-ui/efx-grid 6.0.68 → 6.0.70

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -447,5 +447,7 @@ declare function path(obj: ElementWrapper|Element|Event|MouseEvent, context?: an
447
447
 
448
448
  declare function cellElement(): ElementWrapper;
449
449
 
450
+ declare function toR(): void;
451
+
450
452
  export default Core;
451
453
  export { Core };
@@ -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 field(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
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.131",
3
- "tr-grid-printer": "1.0.16",
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.28",
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.29",
15
+ "tr-grid-column-selection": "1.0.31",
16
16
  "tr-grid-column-stack": "1.0.72",
17
- "tr-grid-conditional-coloring": "1.0.65",
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.29",
27
- "tr-grid-row-filtering": "1.0.61",
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.24",
30
- "tr-grid-rowcoloring": "1.0.24",
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.53",
35
- "@grid/filter-dialog": "4.0.57",
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
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "version": "6.0.68"
69
+ "version": "6.0.70"
70
70
  }