@refinitiv-ui/efx-grid 6.0.11 → 6.0.13

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.
@@ -37,12 +37,12 @@ declare namespace ColumnFormatDialog {
37
37
 
38
38
  type Config = {
39
39
  data: any,
40
- supportHighlightApplyToSwitch?: boolean,
41
- supportValueFormatOptions?: ColumnFormatDialog.SupportValueFormatOptions,
42
- supportDisplayStyleOptions?: ColumnFormatDialog.SupportDisplayStyleOptions,
43
- fields?: (string)[],
44
- confirm?: ((...params: any[]) => any),
45
- cancel?: ((...params: any[]) => any)
40
+ supportHighlightApplyToSwitch?: boolean|null,
41
+ supportValueFormatOptions?: ColumnFormatDialog.SupportValueFormatOptions|null,
42
+ supportDisplayStyleOptions?: ColumnFormatDialog.SupportDisplayStyleOptions|null,
43
+ fields?: (string)[]|null,
44
+ confirm?: ((...params: any[]) => any)|null,
45
+ cancel?: ((...params: any[]) => any)|null
46
46
  };
47
47
 
48
48
  }
@@ -51,7 +51,7 @@ declare class ColumnFormatDialog extends BasicElement {
51
51
 
52
52
  constructor();
53
53
 
54
- public init(userConfig?: ColumnFormatDialog.Config): void;
54
+ public init(userConfig?: ColumnFormatDialog.Config|null): void;
55
55
 
56
56
  public show(): void;
57
57
 
@@ -67,7 +67,7 @@ declare global {
67
67
  }
68
68
  namespace JSX {
69
69
  interface IntrinsicElements {
70
- "column-format-dialog": ColumnFormatDialog & JSXInterface.HTMLAttributes;
70
+ "column-format-dialog": ColumnFormatDialog | JSXInterface.HTMLAttributes;
71
71
  }
72
72
  }
73
73
  }
@@ -10,86 +10,86 @@ import { Table } from "../../tr-grid-util/es6/Table.js";
10
10
  declare namespace PreviewTable {
11
11
 
12
12
  type Bar = {
13
- isShowValue?: boolean,
14
- isUsedMovement?: boolean
13
+ isShowValue?: boolean|null,
14
+ isUsedMovement?: boolean|null
15
15
  };
16
16
 
17
17
  type ConfigDateTime = {
18
- formatDate?: string,
18
+ formatDate?: string|null,
19
19
  isUsedGMT: boolean
20
20
  };
21
21
 
22
22
  type ConfigDisplayColor = {
23
- background?: string,
24
- textColor?: string
23
+ background?: string|null,
24
+ textColor?: string|null
25
25
  };
26
26
 
27
27
  type Conditional = {
28
- isShowValue?: boolean,
29
- isUsedMovement?: boolean,
30
- conditionSequence: ((...params: any[]) => any),
31
- colors: Colors
28
+ isShowValue?: boolean|null,
29
+ isUsedMovement?: boolean|null,
30
+ conditionSequence: ((...params: any[]) => any)|null,
31
+ colors: Colors|null
32
32
  };
33
33
 
34
34
  type ConfigDisplayStyle = {
35
35
  mode: string,
36
- alignment?: string,
37
- bar?: Bar,
38
- heatmap?: Heatmap,
39
- conditionalColor: Conditional
36
+ alignment?: string|null,
37
+ bar?: Bar|null,
38
+ heatmap?: Heatmap|null,
39
+ conditionalColor: Conditional|null
40
40
  };
41
41
 
42
42
  type ConfigUpdateStyleValue = {
43
- isTextChangedStyle?: boolean,
44
- isCellChangedStyle?: boolean,
45
- colors?: string,
46
- isBackgroundBlink?: boolean
43
+ isTextChangedStyle?: boolean|null,
44
+ isCellChangedStyle?: boolean|null,
45
+ colors?: string|null,
46
+ isBackgroundBlink?: boolean|null
47
47
  };
48
48
 
49
49
  type ConfigValueFormat = {
50
50
  mode: string,
51
- decimalPlaces?: number,
52
- isUsedSeparator?: boolean,
53
- isShowPlusSignh?: boolean,
54
- scaled?: string,
55
- isPercentMultiply100?: boolean
51
+ decimalPlaces?: number|null,
52
+ isUsedSeparator?: boolean|null,
53
+ isShowPlusSignh?: boolean|null,
54
+ scaled?: string|null,
55
+ isPercentMultiply100?: boolean|null
56
56
  };
57
57
 
58
58
  type DisplayStyleTapGeneralMode = {
59
- aligment?: string
59
+ aligment?: string|null
60
60
  };
61
61
 
62
62
  type DisplayStyleTapBarMode = {
63
- showValues?: boolean,
64
- useMovementColor?: boolean,
65
- alignment?: string
63
+ showValues?: boolean|null,
64
+ useMovementColor?: boolean|null,
65
+ alignment?: string|null
66
66
  };
67
67
 
68
68
  type DisplayStyleTapHeatMapMode = {
69
- mode?: string,
70
- midPoint?: number,
71
- alignment?: string
69
+ mode?: string|null,
70
+ midPoint?: number|null,
71
+ alignment?: string|null
72
72
  };
73
73
 
74
74
  type DisplayStyleTap = {
75
- mode?: string,
76
- general?: DisplayStyleTapGeneralMode,
77
- bar?: DisplayStyleTapBarMode,
78
- heatmap?: DisplayStyleTapHeatMapMode
75
+ mode?: string|null,
76
+ general?: DisplayStyleTapGeneralMode|null,
77
+ bar?: DisplayStyleTapBarMode|null,
78
+ heatmap?: DisplayStyleTapHeatMapMode|null
79
79
  };
80
80
 
81
81
  type FormatTab = {
82
- formatType?: string,
83
- decimalPlaces?: string,
84
- separator?: boolean,
85
- plusSign?: boolean,
86
- scalingUnit?: string,
87
- multiplyBy100?: boolean
82
+ formatType?: string|null,
83
+ decimalPlaces?: string|null,
84
+ separator?: boolean|null,
85
+ plusSign?: boolean|null,
86
+ scalingUnit?: string|null,
87
+ multiplyBy100?: boolean|null
88
88
  };
89
89
 
90
90
  type Heatmap = {
91
- midPoint?: string,
92
- applied?: string
91
+ midPoint?: string|null,
92
+ applied?: string|null
93
93
  };
94
94
 
95
95
  type Colors = {
@@ -101,7 +101,7 @@ declare namespace PreviewTable {
101
101
 
102
102
  declare class PreviewTable extends ElementWrapper {
103
103
 
104
- constructor(elem: Element);
104
+ constructor(elem: Element|null);
105
105
 
106
106
  public getStructureFormat(): any;
107
107
 
@@ -109,7 +109,7 @@ declare class PreviewTable extends ElementWrapper {
109
109
 
110
110
  public setDateFormatString(formatDate: string): void;
111
111
 
112
- public setDateFormatUseGMT(isUsedGMT?: boolean): void;
112
+ public setDateFormatUseGMT(isUsedGMT?: boolean|null): void;
113
113
 
114
114
  public setDateFormatLanguage(language: string): void;
115
115
 
@@ -123,15 +123,15 @@ declare class PreviewTable extends ElementWrapper {
123
123
 
124
124
  public setDisplayStylePercentBarIsUsedMovement(isUsedMovement: boolean): void;
125
125
 
126
- public setDisplayStyleConditional(condition: PreviewTable.Conditional): void;
126
+ public setDisplayStyleConditional(condition: PreviewTable.Conditional|null): void;
127
127
 
128
128
  public setFormatType(type: string): void;
129
129
 
130
- public setUpdateStyleValueCell(isCellChangedStyle?: boolean): void;
130
+ public setUpdateStyleValueCell(isCellChangedStyle?: boolean|null): void;
131
131
 
132
- public setUpdateStyleValueText(isTextChangedStyle?: boolean): void;
132
+ public setUpdateStyleValueText(isTextChangedStyle?: boolean|null): void;
133
133
 
134
- public setUpdateStyleValueCellBlinking(isBackgroundBlink?: boolean): void;
134
+ public setUpdateStyleValueCellBlinking(isBackgroundBlink?: boolean|null): void;
135
135
 
136
136
  public setValueFormatDecimalPlaces(decimalPlaces: number): void;
137
137
 
@@ -13,16 +13,16 @@ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
13
13
  declare namespace ColumnSelectionDialog {
14
14
 
15
15
  type Config = {
16
- data: (any)[],
17
- visibleItems?: (any)[],
18
- defaultItems?: (any)[],
19
- confirm?: ((...params: any[]) => any),
20
- cancel?: ((...params: any[]) => any),
21
- excludedColumns?: number,
22
- excludedLeftColumns?: number,
23
- excludedRightColumns?: number,
24
- unmovableColumns?: number,
25
- descriptionBox?: boolean
16
+ data: (any)[]|null,
17
+ visibleItems?: (any)[]|null,
18
+ defaultItems?: (any)[]|null,
19
+ confirm?: ((...params: any[]) => any)|null,
20
+ cancel?: ((...params: any[]) => any)|null,
21
+ excludedColumns?: number|null,
22
+ excludedLeftColumns?: number|null,
23
+ excludedRightColumns?: number|null,
24
+ unmovableColumns?: number|null,
25
+ descriptionBox?: boolean|null
26
26
  };
27
27
 
28
28
  }
@@ -31,7 +31,7 @@ declare class ColumnSelectionDialog extends BasicElement {
31
31
 
32
32
  constructor();
33
33
 
34
- public init(options?: ColumnSelectionDialog.Config): void;
34
+ public init(options?: ColumnSelectionDialog.Config|null): void;
35
35
 
36
36
  public show(): void;
37
37
 
@@ -45,7 +45,7 @@ declare global {
45
45
  }
46
46
  namespace JSX {
47
47
  interface IntrinsicElements {
48
- "column-selection-dialog": ColumnSelectionDialog & JSXInterface.HTMLAttributes;
48
+ "column-selection-dialog": ColumnSelectionDialog | JSXInterface.HTMLAttributes;
49
49
  }
50
50
  }
51
51
  }
@@ -10,17 +10,17 @@ declare class CheckboxList extends BasicElement {
10
10
 
11
11
  constructor();
12
12
 
13
- public setData(list: (any)[]): void;
13
+ public setData(list: (any)[]|null): void;
14
14
 
15
- public updateData(list?: (any)[]): void;
15
+ public updateData(list?: (any)[]|null): void;
16
16
 
17
17
  public getSelectedItems(): (object)[];
18
18
 
19
- public selectAll(selected?: boolean): void;
19
+ public selectAll(selected?: boolean|null): void;
20
20
 
21
21
  public deselectAll(): void;
22
22
 
23
- public filter(inputFilter?: (string|((...params: any[]) => any))): void;
23
+ public filter(inputFilter?: (string|((...params: any[]) => any))|null): void;
24
24
 
25
25
  }
26
26
 
@@ -30,7 +30,7 @@ declare global {
30
30
  }
31
31
  namespace JSX {
32
32
  interface IntrinsicElements {
33
- "checkbox-list": CheckboxList & JSXInterface.HTMLAttributes;
33
+ "checkbox-list": CheckboxList | JSXInterface.HTMLAttributes;
34
34
  }
35
35
  }
36
36
  }
@@ -24,13 +24,13 @@ declare namespace FilterDialog {
24
24
 
25
25
  type Config = {
26
26
  data: any,
27
- sortState?: string,
28
- sortUI?: boolean,
29
- filterUI?: boolean,
30
- filterChanged?: ((...params: any[]) => any),
31
- confirm?: ((...params: any[]) => any),
32
- cancel?: ((...params: any[]) => any),
33
- sortChanged?: ((...params: any[]) => any)
27
+ sortState?: string|null,
28
+ sortUI?: boolean|null,
29
+ filterUI?: boolean|null,
30
+ filterChanged?: ((...params: any[]) => any)|null,
31
+ confirm?: ((...params: any[]) => any)|null,
32
+ cancel?: ((...params: any[]) => any)|null,
33
+ sortChanged?: ((...params: any[]) => any)|null
34
34
  };
35
35
 
36
36
  }
@@ -39,7 +39,7 @@ declare class FilterDialog extends BasicElement {
39
39
 
40
40
  constructor();
41
41
 
42
- public init(options: FilterDialog.Config): void;
42
+ public init(options: FilterDialog.Config|null): void;
43
43
 
44
44
  public show(): void;
45
45
 
@@ -57,7 +57,7 @@ declare global {
57
57
  }
58
58
  namespace JSX {
59
59
  interface IntrinsicElements {
60
- "filter-dialog": FilterDialog & JSXInterface.HTMLAttributes;
60
+ "filter-dialog": FilterDialog | JSXInterface.HTMLAttributes;
61
61
  }
62
62
  }
63
63
  }
package/lib/grid/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import "./lib/efx-grid.js";
2
- window.EFX_GRID = { version: "6.0.11" };
2
+ window.EFX_GRID = { version: "6.0.13" };
@@ -45,7 +45,7 @@ declare global {
45
45
  }
46
46
  namespace JSX {
47
47
  interface IntrinsicElements {
48
- "efx-grid": Grid & JSXInterface.HTMLAttributes;
48
+ "efx-grid": Grid | JSXInterface.HTMLAttributes;
49
49
  }
50
50
  }
51
51
  }
@@ -286,7 +286,7 @@ class Grid extends ResponsiveElement {
286
286
  if (!extList['ConditionalColoringPlugin']) {
287
287
  extensions.push(new ConditionalColoringPlugin());
288
288
  }
289
- if (!extList['RowSegmentingPlugin']) {
289
+ if (!extList['RowGroupingPlugin'] && !extList['RowSegmentingPlugin']) {
290
290
  extensions.push(new RowSegmentingPlugin());
291
291
  }
292
292
  if (!extList['ColumnDraggingPlugin']) {
@@ -13612,6 +13612,7 @@ PredefinedFormula.remove = function(field) {
13612
13612
  * @property {boolean=} stationary=false If enabled, the column order cannot be changed (i.e., this column and any column to its left cannot be moved)
13613
13613
  * @property {boolean=} leftPinned=false If enabled, the column will not be part of the scrollable area and is pinned to the left side
13614
13614
  * @property {boolean=} rightPinned=false If enabled, the column will not be part of the scrollable area and is pinned to the right side
13615
+ * @property {Object=} info=null Store additional information
13615
13616
  */
13616
13617
 
13617
13618
  /** mapping of field type to javascript type
@@ -13804,6 +13805,10 @@ ColumnDefinition.prototype._textSelect = false;
13804
13805
  * @private
13805
13806
  */
13806
13807
  ColumnDefinition.prototype._userModel = null;
13808
+ /** @type {Object}
13809
+ * @private
13810
+ */
13811
+ ColumnDefinition.prototype._info = null;
13807
13812
  //#endregion Private Members
13808
13813
 
13809
13814
 
@@ -13963,6 +13968,11 @@ ColumnDefinition.prototype.initialize = function(columnOption) {
13963
13968
  this._textSelect = val;
13964
13969
  }
13965
13970
 
13971
+ val = columnOption["info"];
13972
+ if(val) {
13973
+ this._info = val;
13974
+ }
13975
+
13966
13976
  this._userModel = columnOption;
13967
13977
  };
13968
13978
 
@@ -14238,6 +14248,10 @@ ColumnDefinition.prototype.getClasses = function() {
14238
14248
  ColumnDefinition.prototype.getConfigObject = function(colOptions) {
14239
14249
  var obj = colOptions || {};
14240
14250
 
14251
+ if(this._info){
14252
+ obj["info"] = this._info;
14253
+ }
14254
+
14241
14255
  if(this._field !== "" && !this._field.match(/^COLUMN_/)) {
14242
14256
  obj["field"] = this._field;
14243
14257
  }
@@ -14576,6 +14590,21 @@ ColumnDefinition.prototype.clearUserModel = function() {
14576
14590
  this._userModel = null;
14577
14591
  };
14578
14592
 
14593
+ /** @public
14594
+ * @param {Object} obj
14595
+ */
14596
+ ColumnDefinition.prototype.setColumnInfo = function(obj) {
14597
+ this._info = obj;
14598
+ };
14599
+
14600
+ /** @public
14601
+ * @return {Object}
14602
+ */
14603
+ ColumnDefinition.prototype.getColumnInfo = function() {
14604
+ return this._info;
14605
+ };
14606
+
14607
+
14579
14608
 
14580
14609
  /* harmony default export */ var js_ColumnDefinition = (ColumnDefinition);
14581
14610