@refinitiv-ui/efx-grid 6.0.107 → 6.0.109

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.
@@ -50,6 +50,8 @@ declare class FilterInputPlugin extends GridPlugin {
50
50
 
51
51
  public setInputValue(colIndex: number, value: any): void;
52
52
 
53
+ public disableColumnInput(colIndex: number, disabled?: boolean|null): void;
54
+
53
55
  public refresh(delayMs?: number|null): void;
54
56
 
55
57
  public setFilterLogic(colIndex: number, func: ((...params: any[]) => any)|null, ctx?: any): void;
@@ -871,6 +871,25 @@ FilterInputPlugin.prototype.setInputValue = function (colIndex, value) {
871
871
  }
872
872
  };
873
873
  /** @public
874
+ * @param {number} colIndex
875
+ * @param {boolean=} disabled
876
+ */
877
+
878
+
879
+ FilterInputPlugin.prototype.disableColumnInput = function (colIndex, disabled) {
880
+ var inputElem = this.getColumnInput(colIndex);
881
+
882
+ if (inputElem) {
883
+ disabled = disabled != null ? disabled : true;
884
+
885
+ if (disabled) {
886
+ inputElem.setAttribute("disabled", "");
887
+ } else {
888
+ inputElem.removeAttribute("disabled");
889
+ }
890
+ }
891
+ };
892
+ /** @public
874
893
  * @ignore
875
894
  * @param {number} colIndex
876
895
  * @return {Object}
@@ -129,6 +129,10 @@ declare class RowFilteringPlugin extends GridPlugin {
129
129
 
130
130
  public enableSeparatorFiltering(enabled?: boolean|null): void;
131
131
 
132
+ public showColumnFilterIcon(colIndex: number, shown?: boolean|null): void;
133
+
134
+ public hideColumnFilterIcon(colIndex: number, hidden?: boolean|null): void;
135
+
132
136
  }
133
137
 
134
138
  declare function colSettings(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
@@ -1333,8 +1333,11 @@ RowFilteringPlugin.prototype.refresh = function() {
1333
1333
  * @param {number} colIndex
1334
1334
  */
1335
1335
  RowFilteringPlugin.prototype._updateColumnIcon = function(colIndex) {
1336
- let cfo = this._getColumnFilterOption(colIndex); // colData["rowFiltering"]["filterOption"]
1337
1336
  let colSettings = this._getUserColumnSettings(colIndex); // colData["rowFiltering"]
1337
+ if(colSettings.hiddenIcon) {
1338
+ return;
1339
+ }
1340
+ let cfo = this._getColumnFilterOption(colIndex); // colData["rowFiltering"]["filterOption"]
1338
1341
  let iconActivation = colSettings.filterIcon == false ? "none" : this._iconActivation;
1339
1342
  let hasFilter = cfo ? cfo._filters.length : 0;
1340
1343
 
@@ -2267,6 +2270,38 @@ RowFilteringPlugin.prototype.enableSeparatorFiltering = function (enabled) {
2267
2270
  }
2268
2271
  };
2269
2272
 
2273
+ /**
2274
+ * @public
2275
+ * @param {number} colIndex
2276
+ * @param {boolean=} shown
2277
+ */
2278
+ RowFilteringPlugin.prototype.showColumnFilterIcon = function(colIndex, shown) {
2279
+ this.hideColumnFilterIcon(colIndex, shown == null ? false : !shown);
2280
+ };
2281
+ /**
2282
+ * @public
2283
+ * @param {number} colIndex
2284
+ * @param {boolean=} hidden
2285
+ */
2286
+ RowFilteringPlugin.prototype.hideColumnFilterIcon = function(colIndex, hidden) {
2287
+ hidden = hidden != null ? !!hidden : true;
2288
+ let colSettings = this._getUserColumnSettings(colIndex);
2289
+ if(colSettings.hiddenIcon !== hidden) {
2290
+ let cssVal = hidden ? "none" : "";
2291
+ let icons = this.getColumnFilterIcons(colIndex);
2292
+ for(let i = 0; i < icons.length; i++) {
2293
+ icons[i].style.display = cssVal;
2294
+ }
2295
+
2296
+ let filterInput = this._getPlugin("FilterInputPlugin", this._hosts[0]);
2297
+ if(filterInput && filterInput.disableColumnInput) {
2298
+ filterInput.disableColumnInput(colIndex, hidden);
2299
+ }
2300
+
2301
+ colSettings.hiddenIcon = hidden;
2302
+ }
2303
+ };
2304
+
2270
2305
 
2271
2306
 
2272
2307
  export default RowFilteringPlugin;
@@ -400,9 +400,9 @@ GroupDefinitions.prototype.setGroup = function (groupId, groupDef) {
400
400
  if(curDef) { // Replace
401
401
  this.removeAllChildren(groupId);
402
402
  }
403
- let parentDef = this._childToParent[groupId];
404
- if(parentDef) {
405
- newDef.parentId = parentDef.id;
403
+ let parentId = this._childToParent[groupId];
404
+ if(parentId) {
405
+ newDef.parentId = parentId;
406
406
  }
407
407
  this._groupMap[groupId] = newDef;
408
408
 
@@ -371,8 +371,6 @@ declare class Core extends ElementWrapper {
371
371
 
372
372
  public reserveRightSpace(size: number): boolean;
373
373
 
374
- public getHiddenInput(): Element|null;
375
-
376
374
  public focus(): void;
377
375
 
378
376
  public isBinding(): boolean;
@@ -391,6 +389,8 @@ declare class Core extends ElementWrapper {
391
389
 
392
390
  public isSelectedColumn(colIndex: number): boolean;
393
391
 
392
+ public updateColumnBounds(): void;
393
+
394
394
  public getColumnRect(startColIndex: number, endColIndex: number): any;
395
395
 
396
396
  public getRowRect(startRowIndex: number, endRowIndex: number): any;
@@ -50,6 +50,8 @@ declare class FilterInputPlugin extends GridPlugin {
50
50
 
51
51
  public setInputValue(colIndex: number, value: any): void;
52
52
 
53
+ public disableColumnInput(colIndex: number, disabled?: boolean|null): void;
54
+
53
55
  public refresh(delayMs?: number|null): void;
54
56
 
55
57
  public setFilterLogic(colIndex: number, func: ((...params: any[]) => any)|null, ctx?: any): void;
@@ -26,6 +26,7 @@ declare namespace RowFilteringPlugin {
26
26
  type FilterDialogOptions = {
27
27
  sortUI?: boolean|null,
28
28
  filterUI?: boolean|null,
29
+ advancedFilter?: boolean|null,
29
30
  fieldDataType?: string|null,
30
31
  lang?: string|null,
31
32
  rawDataAccessor?: ((...params: any[]) => any)|null,
@@ -33,6 +34,7 @@ declare namespace RowFilteringPlugin {
33
34
  sortLogic?: ((...params: any[]) => any)|null,
34
35
  itemList?: any[]|null,
35
36
  additionalItems?: any[]|null,
37
+ compactMode?: boolean|null,
36
38
  blankValues?: (boolean|string)|null
37
39
  };
38
40
 
@@ -127,6 +129,10 @@ declare class RowFilteringPlugin extends GridPlugin {
127
129
 
128
130
  public enableSeparatorFiltering(enabled?: boolean|null): void;
129
131
 
132
+ public showColumnFilterIcon(colIndex: number, shown?: boolean|null): void;
133
+
134
+ public hideColumnFilterIcon(colIndex: number, hidden?: boolean|null): void;
135
+
130
136
  }
131
137
 
132
138
  declare function colSettings(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
package/lib/versions.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "tr-grid-util": "1.3.152",
2
+ "tr-grid-util": "1.3.153",
3
3
  "tr-grid-printer": "1.0.18",
4
4
  "@grid/column-dragging": "1.0.20",
5
5
  "@grid/row-segmenting": "1.0.31",
@@ -10,27 +10,27 @@
10
10
  "tr-grid-checkbox": "1.0.67",
11
11
  "tr-grid-column-fitter": "1.0.41",
12
12
  "tr-grid-column-formatting": "0.9.36",
13
- "tr-grid-column-grouping": "1.0.61",
13
+ "tr-grid-column-grouping": "1.0.62",
14
14
  "tr-grid-column-resizing": "1.0.29",
15
15
  "tr-grid-column-selection": "1.0.33",
16
16
  "tr-grid-column-stack": "1.0.75",
17
17
  "tr-grid-conditional-coloring": "1.0.70",
18
18
  "tr-grid-content-wrap": "1.0.20",
19
19
  "tr-grid-contextmenu": "1.0.41",
20
- "tr-grid-filter-input": "0.9.39",
20
+ "tr-grid-filter-input": "0.9.40",
21
21
  "tr-grid-heat-map": "1.0.29",
22
22
  "tr-grid-in-cell-editing": "1.0.87",
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.8",
26
26
  "tr-grid-row-dragging": "1.0.35",
27
- "tr-grid-row-filtering": "1.0.77",
27
+ "tr-grid-row-filtering": "1.0.78",
28
28
  "tr-grid-row-grouping": "1.0.88",
29
29
  "tr-grid-row-selection": "1.0.30",
30
30
  "tr-grid-rowcoloring": "1.0.25",
31
31
  "tr-grid-textformatting": "1.0.48",
32
32
  "tr-grid-titlewrap": "1.0.22",
33
- "@grid/formatters": "1.0.53",
33
+ "@grid/formatters": "1.0.55",
34
34
  "@grid/column-selection-dialog": "4.0.57",
35
35
  "@grid/filter-dialog": "4.0.65",
36
36
  "@grid/column-format-dialog": "4.0.45"
package/package.json CHANGED
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "version": "6.0.107"
70
+ "version": "6.0.109"
71
71
  }