@refinitiv-ui/efx-grid 6.0.13 → 6.0.15

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.
Files changed (47) hide show
  1. package/lib/column-format-dialog/index.d.ts +2 -1
  2. package/lib/column-format-dialog/index.js +2 -1
  3. package/lib/column-selection-dialog/index.d.ts +2 -1
  4. package/lib/column-selection-dialog/index.js +2 -1
  5. package/lib/core/dist/core.js +1220 -161
  6. package/lib/core/dist/core.min.js +1 -1
  7. package/lib/core/es6/data/DataCache.js +1 -1
  8. package/lib/core/es6/data/DataTable.d.ts +18 -3
  9. package/lib/core/es6/data/DataTable.js +203 -17
  10. package/lib/core/es6/data/DataView.d.ts +8 -1
  11. package/lib/core/es6/data/DataView.js +30 -2
  12. package/lib/core/es6/data/Segment.d.ts +37 -12
  13. package/lib/core/es6/data/Segment.js +584 -60
  14. package/lib/core/es6/data/SegmentCollection.d.ts +16 -2
  15. package/lib/core/es6/data/SegmentCollection.js +238 -80
  16. package/lib/core/es6/grid/Core.js +1 -1
  17. package/lib/filter-dialog/index.d.ts +2 -1
  18. package/lib/filter-dialog/index.js +2 -1
  19. package/lib/grid/index.d.ts +2 -1
  20. package/lib/grid/index.js +3 -2
  21. package/lib/row-segmenting/es6/RowSegmenting.d.ts +2 -0
  22. package/lib/row-segmenting/es6/RowSegmenting.js +26 -3
  23. package/lib/rt-grid/dist/rt-grid.js +1194 -158
  24. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  25. package/lib/rt-grid/es6/Grid.d.ts +4 -0
  26. package/lib/rt-grid/es6/Grid.js +75 -0
  27. package/lib/rt-grid/es6/RowDefinition.d.ts +4 -0
  28. package/lib/rt-grid/es6/RowDefinition.js +79 -2
  29. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -0
  30. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +194 -366
  31. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +10 -3
  32. package/lib/tr-grid-column-stack/es6/ColumnStack.js +93 -36
  33. package/lib/tr-grid-util/es6/RowPainter.d.ts +2 -1
  34. package/lib/tr-grid-util/es6/RowPainter.js +7 -1
  35. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +1 -0
  36. package/lib/tr-grid-util/es6/jet/mockDataAPI.js +191 -52
  37. package/lib/types/es6/ColumnGrouping.d.ts +1 -0
  38. package/lib/types/es6/ColumnStack.d.ts +10 -3
  39. package/lib/types/es6/Core/data/DataTable.d.ts +18 -3
  40. package/lib/types/es6/Core/data/DataView.d.ts +8 -1
  41. package/lib/types/es6/Core/data/Segment.d.ts +36 -11
  42. package/lib/types/es6/Core/data/SegmentCollection.d.ts +15 -1
  43. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +6 -1
  44. package/lib/types/es6/RealtimeGrid/Grid.d.ts +2 -0
  45. package/lib/types/es6/RowSegmenting.d.ts +2 -0
  46. package/lib/versions.json +4 -4
  47. package/package.json +15 -2
@@ -1,6 +1,7 @@
1
1
  import Ext from "../../../../tr-grid-util/es6/Ext.js";
2
2
  import DataCache from "./DataCache.js";
3
3
  import Util from "../grid/util/util.js";
4
+ import Segment from "./Segment.js"; // eslint-disable-line
4
5
  import SegmentCollection from "./SegmentCollection.js";
5
6
 
6
7
  declare namespace DataTable {
@@ -41,7 +42,7 @@ declare class DataTable extends DataCache {
41
42
 
42
43
  public unshiftRow(opt_values?: { [key: string]: any }|null, opt_rid?: string|null|null): string;
43
44
 
44
- public insertRow(rowRef?: string|number|null|null, values?: { [key: string]: any }|null, rid?: string|null|null): string;
45
+ public insertRow(rowRef?: (string|number|null)|null, values?: { [key: string]: any }|null, rid?: string|null|null): string;
45
46
 
46
47
  public insertAfter(rowRef: string|number|null, opt_values?: any, opt_rid?: string|null): string;
47
48
 
@@ -83,6 +84,10 @@ declare class DataTable extends DataCache {
83
84
 
84
85
  public isSegmentSeparator(rid: string): boolean;
85
86
 
87
+ public getSegment(rid: string): Segment|null;
88
+
89
+ public getSegmentLevel(rid: string): number;
90
+
86
91
  public getSegmentParentRowId(rid: string): string;
87
92
 
88
93
  public getSegmentValues(rids?: (string)[]|null): (number)[]|null;
@@ -91,7 +96,7 @@ declare class DataTable extends DataCache {
91
96
 
92
97
  public fillSegments(): boolean;
93
98
 
94
- public addSegmentChild(segmentId: string, rid: string): boolean;
99
+ public addSegmentChild(segmentId: string, rid: string, dataId?: string|null): boolean;
95
100
 
96
101
  public addSegmentChildren(segmentId: string, rids: (string)[]|null): boolean;
97
102
 
@@ -105,7 +110,15 @@ declare class DataTable extends DataCache {
105
110
 
106
111
  public getSegmentChildIds(segmentId: string): (string)[]|null;
107
112
 
108
- public sortSegments(compare: ((...params: any[]) => any)|null): void;
113
+ public sortSegments(compare: ((...params: any[]) => any)|null): boolean;
114
+
115
+ public setClassificationSource(dc: DataCache|null): void;
116
+
117
+ public setSegmentClassification(segmentId: string, fields: string|(string)[]|null): boolean;
118
+
119
+ public classifySegments(): boolean;
120
+
121
+ public requestClassifying(): void;
109
122
 
110
123
  public dispatchGlobalChange(suppressEvent?: boolean|null): void;
111
124
 
@@ -119,6 +132,8 @@ declare function prevFrozen(ary: (any)[][], opt_cidList?: (string)[]|null, opt_r
119
132
 
120
133
  declare function cid(): null;
121
134
 
135
+ declare function removalList(sortingDefs: (any[])[]|null): boolean;
136
+
122
137
  declare function logic(a: number, b: number, order: number, sortingDefs: (any[])[]|null): number;
123
138
 
124
139
  export default DataTable;
@@ -3,6 +3,7 @@ import DataCache from "./DataCache.js";
3
3
  import DataTable from "./DataTable.js";
4
4
  import WrappedView from "./WrappedView.js"; // eslint-disable-line
5
5
  import ColumnStats from "./ColumnStats.js";
6
+ import Segment from "./Segment.js"; // eslint-disable-line
6
7
  import EventDispatcher from "../grid/event/EventDispatcher.js";
7
8
  import Util from "../grid/util/util.js";
8
9
  import { Conflator } from "../../../../tr-grid-util/es6/Conflator.js";
@@ -233,6 +234,10 @@ declare class DataView extends EventDispatcher {
233
234
 
234
235
  public isSegmentSeparator(rid: string): boolean;
235
236
 
237
+ public getSegment(rid: string): Segment|null;
238
+
239
+ public getSegmentLevel(rid: string): number;
240
+
236
241
  public getSegmentParentRowId(rid: string): string;
237
242
 
238
243
  public collapseSegment(rowRef: string|number|null, collapsed?: boolean|null): boolean;
@@ -247,7 +252,7 @@ declare class DataView extends EventDispatcher {
247
252
 
248
253
  public fillSegments(): void;
249
254
 
250
- public addSegmentChild(segmentRef: string|number|null, rowRef: string|number|null): boolean;
255
+ public addSegmentChild(segmentRef: string|number|null, rowRef: string|number|null, dataId?: string|null): boolean;
251
256
 
252
257
  public addSegmentChildren(segmentRef: string|number|null, rowRefs: (string|number)[]|null): boolean;
253
258
 
@@ -263,6 +268,8 @@ declare class DataView extends EventDispatcher {
263
268
 
264
269
  public sortSegments(compare: ((...params: any[]) => any)|null): void;
265
270
 
271
+ public setSegmentClassification(segmentRef: string|number|null, fields: string|(string)[]|null): boolean;
272
+
266
273
  public getWrapSize(): number;
267
274
 
268
275
  public getWrappedViews(): (WrappedView)[]|null;
@@ -1,20 +1,27 @@
1
-
1
+ import Ext from "../../../../tr-grid-util/es6/Ext.js";
2
+ import EventDispatcher from "../../../../tr-grid-util/es6/EventDispatcher.js";
2
3
 
3
4
  declare class Segment {
4
5
 
5
- constructor(rid: string);
6
+ constructor(rid: string, sharedObj: any);
7
+
8
+ public dispose(): void;
6
9
 
7
10
  public getId(): string;
8
11
 
9
- public addChild(rid: string, objMap?: any): boolean;
12
+ public getParentId(): string;
13
+
14
+ public getSubSegmentIds(out_ary?: (string)[]|null): (string)[]|null;
10
15
 
11
- public addChildren(rids: (string)[]|null, objMap?: any): boolean;
16
+ public addChild(rid: string, dataId?: string|null): boolean;
17
+
18
+ public addChildren(rids: (string)[]|null): boolean;
12
19
 
13
20
  public containsChild(rid: string): boolean;
14
21
 
15
- public removeChild(rid: string, objMap?: any): boolean;
22
+ public removeChild(rid: string): boolean;
16
23
 
17
- public removeChildren(rids: (string)[]|null, objMap?: any): boolean;
24
+ public removeChildren(rids: (string)[]|null): boolean;
18
25
 
19
26
  public removeAllChildren(objMap?: any): boolean;
20
27
 
@@ -22,22 +29,40 @@ declare class Segment {
22
29
 
23
30
  public getChildCount(): number;
24
31
 
32
+ public getClassification(): (string)[]|null;
33
+
34
+ public setClassification(fields: string|(string)[]|null): boolean;
35
+
36
+ public classify(rows?: { [key: string]: any }|null): boolean;
37
+
38
+ public hasSubSegments(): boolean;
39
+
40
+ public isSubSegment(): boolean;
41
+
42
+ public getFirstAncestor(): Segment|null;
43
+
44
+ public getAllSubSegments(out_ary?: (Segment)[]|null): (Segment)[]|null;
45
+
46
+ public getSegmentLevel(): number;
47
+
48
+ public setRowData(rows?: any, clsSource?: any): void;
49
+
50
+ public getSubSegmentName(row?: any): string;
51
+
25
52
  public collapse(bool?: boolean|null): boolean;
26
53
 
27
54
  public expand(bool?: boolean|null): boolean;
28
55
 
29
56
  public isCollapsed(): boolean;
30
57
 
31
- public getCollapsingStates(objMap?: any): any;
32
-
33
- public getValue(): number;
34
-
35
- public setValue(val: number): void;
58
+ public getCollapsingStates(objMap?: any, parentState?: boolean|null): number;
36
59
 
37
60
  public getOrder(): number;
38
61
 
39
62
  public setOrder(val: number): void;
40
63
 
64
+ public log(lines: (string)[]|null): (string)[]|null;
65
+
41
66
  }
42
67
 
43
68
  export default Segment;
@@ -1,9 +1,13 @@
1
+ import Ext from "../../../../tr-grid-util/es6/Ext.js";
2
+ import EventDispatcher from "../../../../tr-grid-util/es6/EventDispatcher.js";
1
3
  import Segment from "./Segment.js";
2
4
 
3
5
  declare class SegmentCollection {
4
6
 
5
7
  constructor();
6
8
 
9
+ public dispose(): void;
10
+
7
11
  public addSegment(rid: string): boolean;
8
12
 
9
13
  public addSegments(rids: (string)[]|null): boolean;
@@ -34,7 +38,7 @@ declare class SegmentCollection {
34
38
 
35
39
  public getCollapsedRows(): any;
36
40
 
37
- public addSegmentChild(segmentId: string, rid: string): boolean;
41
+ public addSegmentChild(segmentId: string, rid: string, dataId?: string|null): boolean;
38
42
 
39
43
  public addSegmentChildren(segmentId: string, rids: (string)[]|null): boolean;
40
44
 
@@ -54,6 +58,16 @@ declare class SegmentCollection {
54
58
 
55
59
  public getSegmentValues(rids: (string)[]): (number)[]|null;
56
60
 
61
+ public logStructure(): string;
62
+
63
+ public logRowIdMap(): string;
64
+
65
+ public setSegmentClassification(segmentId: string, fields: string|(string)[]|null): boolean;
66
+
67
+ public hasClassification(): boolean;
68
+
69
+ public classify(rows: { [key: string]: any }|null): boolean;
70
+
57
71
  }
58
72
 
59
73
  export default SegmentCollection;
@@ -43,7 +43,8 @@ declare namespace ColumnDefinition {
43
43
  keepModel?: boolean|null,
44
44
  stationary?: boolean|null,
45
45
  leftPinned?: boolean|null,
46
- rightPinned?: boolean|null
46
+ rightPinned?: boolean|null,
47
+ info?: any
47
48
  };
48
49
 
49
50
  }
@@ -144,6 +145,10 @@ declare class ColumnDefinition {
144
145
 
145
146
  public clearUserModel(): void;
146
147
 
148
+ public setColumnInfo(obj: any): void;
149
+
150
+ public getColumnInfo(): any;
151
+
147
152
  }
148
153
 
149
154
  declare const COL_DEF: string;
@@ -273,6 +273,8 @@ declare class Grid extends EventDispatcher {
273
273
 
274
274
  public toggleChain(rowRef: Grid.RowReference|null): void;
275
275
 
276
+ public setClassification(rowRef: Grid.RowReference|null, fields: (string)[]|null): boolean;
277
+
276
278
  public focus(): void;
277
279
 
278
280
  public requestRowRefresh(): void;
@@ -47,6 +47,8 @@ declare class RowSegmentingPlugin extends GridPlugin {
47
47
 
48
48
  public setSegmentSeparator(rowRef: string|number|null, enabled?: boolean|null): boolean;
49
49
 
50
+ public setSegmentClassification(rowRef: string|number|null, fields: string|(string)[]|null): boolean;
51
+
50
52
  public unsetAllSegmentSeparators(): boolean;
51
53
 
52
54
  public hasSegmentation(): boolean;
package/lib/versions.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "tr-grid-util": "1.3.79",
2
+ "tr-grid-util": "1.3.81",
3
3
  "@grid/column-dragging": "1.0.10",
4
- "@grid/row-segmenting": "1.0.20",
4
+ "@grid/row-segmenting": "1.0.21",
5
5
  "@grid/statistics-row": "1.0.13",
6
6
  "@grid/zoom": "1.0.11",
7
7
  "tr-grid-auto-tooltip": "1.1.5",
@@ -9,10 +9,10 @@
9
9
  "tr-grid-checkbox": "1.0.59",
10
10
  "tr-grid-column-fitter": "1.0.39",
11
11
  "tr-grid-column-formatting": "0.9.34",
12
- "tr-grid-column-grouping": "1.0.24",
12
+ "tr-grid-column-grouping": "1.0.28",
13
13
  "tr-grid-column-resizing": "1.0.26",
14
14
  "tr-grid-column-selection": "1.0.25",
15
- "tr-grid-column-stack": "1.0.42",
15
+ "tr-grid-column-stack": "1.0.43",
16
16
  "tr-grid-conditional-coloring": "1.0.57",
17
17
  "tr-grid-content-wrap": "1.0.19",
18
18
  "tr-grid-contextmenu": "1.0.38",
package/package.json CHANGED
@@ -11,6 +11,18 @@
11
11
  "*": {
12
12
  "extensions": [
13
13
  "lib/types/index.d.ts"
14
+ ],
15
+ "column-selection-dialog": [
16
+ "lib/column-selection-dialog/lib/column-selection-dialog.d.ts"
17
+ ],
18
+ "column-format-dialog": [
19
+ "lib/column-format-dialog/lib/column-format-dialog.d.ts"
20
+ ],
21
+ "filter-dialog": [
22
+ "lib/filter-dialog/lib/filter-dialog.d.ts"
23
+ ],
24
+ "grid": [
25
+ "lib/grid/lib/efx-grid.d.ts"
14
26
  ]
15
27
  }
16
28
  },
@@ -36,7 +48,8 @@
36
48
  "./filter-dialog/themes/solar/charcoal": "./lib/filter-dialog/themes/solar/charcoal.js",
37
49
  "./filter-dialog/themes/solar/pearl": "./lib/filter-dialog/themes/solar/pearl.js",
38
50
  "./extensions": "./lib/index.js",
39
- "./window-exporter": "./lib/window-exporter.js"
51
+ "./window-exporter": "./lib/window-exporter.js",
52
+ "./grid": "./lib/grid/lib/efx-grid.js"
40
53
  },
41
54
  "peerDependencies": {
42
55
  "@refinitiv-ui/core": "^6.2.0",
@@ -45,5 +58,5 @@
45
58
  "publishConfig": {
46
59
  "access": "public"
47
60
  },
48
- "version": "6.0.13"
61
+ "version": "6.0.15"
49
62
  }