@refinitiv-ui/efx-grid 6.0.12 → 6.0.14

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 (42) hide show
  1. package/lib/core/dist/core.js +1209 -160
  2. package/lib/core/dist/core.min.js +1 -1
  3. package/lib/core/es6/data/DataCache.js +1 -1
  4. package/lib/core/es6/data/DataTable.d.ts +18 -3
  5. package/lib/core/es6/data/DataTable.js +203 -17
  6. package/lib/core/es6/data/DataView.d.ts +8 -1
  7. package/lib/core/es6/data/DataView.js +30 -2
  8. package/lib/core/es6/data/Segment.d.ts +36 -11
  9. package/lib/core/es6/data/Segment.js +575 -59
  10. package/lib/core/es6/data/SegmentCollection.d.ts +15 -1
  11. package/lib/core/es6/data/SegmentCollection.js +236 -80
  12. package/lib/core/es6/grid/Core.js +1 -1
  13. package/lib/grid/index.js +1 -1
  14. package/lib/grid/lib/efx-grid.js +1 -1
  15. package/lib/row-segmenting/es6/RowSegmenting.d.ts +2 -0
  16. package/lib/row-segmenting/es6/RowSegmenting.js +26 -3
  17. package/lib/rt-grid/dist/rt-grid.js +1144 -158
  18. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  19. package/lib/rt-grid/es6/ColumnDefinition.d.ts +6 -1
  20. package/lib/rt-grid/es6/ColumnDefinition.js +29 -0
  21. package/lib/rt-grid/es6/Grid.d.ts +2 -0
  22. package/lib/rt-grid/es6/Grid.js +53 -0
  23. package/lib/rt-grid/es6/RowDefinition.js +22 -2
  24. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -0
  25. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +194 -366
  26. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +24 -4
  27. package/lib/tr-grid-column-stack/es6/ColumnStack.js +177 -52
  28. package/lib/tr-grid-util/es6/RowPainter.d.ts +2 -1
  29. package/lib/tr-grid-util/es6/RowPainter.js +7 -1
  30. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +1 -0
  31. package/lib/tr-grid-util/es6/jet/mockDataAPI.js +191 -52
  32. package/lib/types/es6/ColumnGrouping.d.ts +1 -0
  33. package/lib/types/es6/ColumnStack.d.ts +24 -4
  34. package/lib/types/es6/Core/data/DataTable.d.ts +18 -3
  35. package/lib/types/es6/Core/data/DataView.d.ts +8 -1
  36. package/lib/types/es6/Core/data/Segment.d.ts +36 -11
  37. package/lib/types/es6/Core/data/SegmentCollection.d.ts +15 -1
  38. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +6 -1
  39. package/lib/types/es6/RealtimeGrid/Grid.d.ts +2 -0
  40. package/lib/types/es6/RowSegmenting.d.ts +2 -0
  41. package/lib/versions.json +4 -4
  42. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { DataGenerator } from "./DataGenerator.js";
2
+ import { DateTime } from "../DateTime.js";
2
3
 
3
4
  /**
4
5
  * @private
@@ -24,6 +25,7 @@ function setInvalidFields(fields) {
24
25
  }
25
26
  }
26
27
 
28
+
27
29
  var dataGen = new DataGenerator();
28
30
 
29
31
  /** @private
@@ -125,70 +127,207 @@ Adc.request = function (payload, mockResponse) {
125
127
  return Promise.resolve(JSON.stringify(mockResponse));
126
128
  }
127
129
 
128
- var i, f, len, row;
129
- var identifiers = payload.identifiers;
130
- var formula = payload.formula.split(",");
131
- var fields = [];
130
+ // build row header
131
+ var rows = [];
132
+ var i, f, len, row, j;
133
+ var identifiers, formula, fields, invalidDict;
134
+ if(payload.output === "Col,date|,Row,In|,va,T,NoEmptyTickers") {
132
135
 
133
- // _invalidFieldDict is a dictionary of non exist field
134
- // so we must remove invalid field to make "mocking api" return result more like a "real api".
135
- var invalidDict = _invalidFieldDict;
136
- for (i = 0; i < formula.length; i++) {
137
- f = formula[i];
138
- if (!invalidDict[f]) {
139
- fields.push(f);
136
+ identifiers = payload.identifiers;
137
+ formula = payload.formula.trim().split(/(?=,TR.)/);// TODO: check each field with another way, this doesn't work when user use some comma (,) formula
138
+ fields = [];
139
+
140
+ // _invalidFieldDict is a dictionary of non exist field
141
+ // so we must remove invalid field to make "mocking api" return result more like a "real api".
142
+ invalidDict = _invalidFieldDict;
143
+ for (i = 0; i < formula.length; i++) {
144
+ f = formula[i];
145
+ if (!invalidDict[f]) {
146
+ fields.push(f);
147
+ }
140
148
  }
141
- }
142
149
 
143
- // build row header
144
- var rows = [];
145
- rows[0] = [{
146
- "h": true,
147
- "i": "instrument",
148
- "v": "Instrument"
149
- }];
150
- for (i = 0; i < fields.length; i++) {
151
- f = fields[i];
152
- rows[0].push({
150
+ var fieldCount = fields.length;
151
+ // formula = payload.formula.trim().split(",TR"); // TODO: split wit
152
+
153
+ rows.push([
154
+ {
155
+ "h": true,
156
+ "i": "instrument",
157
+ "v": "Instrument"
158
+ },
159
+ {
160
+ "h": true,
161
+ "i": "date",
162
+ "v": "Date"
163
+ }
164
+ ]);
165
+
166
+ for (var index = 0; index < fieldCount; index++) {
167
+ var timeSeriesField = fields[index];
168
+
169
+ var regex = /TR.(.*)(?=\()/;
170
+ var result = timeSeriesField.match(regex);
171
+ var field = result[0].replace("TR.", "");
172
+ var phrase = timeSeriesField.toLowerCase();
173
+ var startDateRegex = /sdate=(.*)[,]/;
174
+ var endDateRegex = /edate=(.*)[)]/;
175
+ var startDateMatch = phrase.match(startDateRegex);
176
+ var endDateMatch = phrase.match(endDateRegex);
177
+
178
+ var startDate = startDateMatch ? startDateMatch[1] : DateTime.format(new Date(), "YYYY-MM-DD");
179
+ var endDate = endDateMatch[1];
180
+
181
+ var swapDateTmp;
182
+ if(startDate > endDate) {
183
+ swapDateTmp = startDate;
184
+ startDate = endDate;
185
+ endDate = swapDateTmp;
186
+ }
187
+
188
+ var msBetweenDate = (+new Date(endDate)) - (+new Date(startDate));
189
+
190
+ var msInDay = 1000 * 60 * 60 * 24;
191
+ var betweenDay = msBetweenDate / msInDay;
192
+ // var betweenDay = Math.floor(Math.random() * 10); // For random length
193
+
194
+
195
+ for (i = 0; i <= betweenDay; i++) {
196
+ var date = new Date(new Date(startDate).setDate(new Date(startDate).getDate() + i));
197
+ var fieldValue = {
198
+ "h": true,
199
+ "v": DateTime.format(date, "YYYY-MM-DDT00:00:00")
200
+ };
201
+ if(index === 0) { // add header 1 time
202
+ rows[0].push(fieldValue);
203
+ }
204
+ }
205
+
206
+ var rics = identifiers;
207
+ for (i = 0; i < rics.length; i++) {
208
+
209
+ var ric = rics[i];
210
+ var rowValue = [
211
+ ric,
212
+ field
213
+ ];
214
+ for (j = 1; j <= betweenDay + 1; j++) {
215
+ var generatedValue = DataGenerator.generateRecord(field);
216
+ rowValue.push(generatedValue[field]);
217
+
218
+ }
219
+ rows.push(rowValue);
220
+ }
221
+ // The example rows should be look like
222
+ /*
223
+ [
224
+ [
225
+ {
226
+ "h": true,
227
+ "i": "instrument",
228
+ "v": "Instrument"
229
+ },
230
+ {
231
+ "h": true,
232
+ "i": "date",
233
+ "v": "Date"
234
+ },
235
+ {
236
+ "h": true,
237
+ "v": "2011-08-11T00:00:00"
238
+ },
239
+ {
240
+ "h": true,
241
+ "v": "2011-08-12T00:00:00"
242
+ },
243
+ {
244
+ "h": true,
245
+ "v": "2011-08-15T00:00:00"
246
+ }
247
+ ],
248
+ [
249
+ "IBM",
250
+ "Price Close", // NOTE: this cannot be detech we join it with space Ex. PriceClose
251
+ 159.25449372,
252
+ 160.6585848,
253
+ 165.23382036
254
+ ],
255
+ [
256
+ "GOOGL.O",
257
+ "Price Close",
258
+ 14.066881653,
259
+ 14.107921423,
260
+ 13.944262828
261
+ ]
262
+ ]
263
+ */
264
+ }
265
+
266
+ } else {
267
+
268
+ identifiers = payload.identifiers;
269
+ formula = payload.formula.trim().split(","); // TODO: check each field with another way, this doesn't work when user use some comma (,) formula
270
+ fields = [];
271
+
272
+ // _invalidFieldDict is a dictionary of non exist field
273
+ // so we must remove invalid field to make "mocking api" return result more like a "real api".
274
+ invalidDict = _invalidFieldDict;
275
+ for (i = 0; i < formula.length; i++) {
276
+ f = formula[i];
277
+ if (!invalidDict[f]) {
278
+ fields.push(f);
279
+ }
280
+ }
281
+
282
+ rows[0] = [{
153
283
  "h": true,
154
- "r": f.toUpperCase()
155
- // "v": "Price Close", // Doesn't use
156
- // "p": "I_TRP_PH_PriceClose" // Doesn't use this property
157
- });
158
- }
284
+ "i": "instrument",
285
+ "v": "Instrument"
286
+ }];
287
+ for (i = 0; i < fields.length; i++) {
288
+ f = fields[i];
289
+ rows[0].push({
290
+ "h": true,
291
+ "r": f.toUpperCase().trim()
292
+ // "v": "Price Close", // Doesn't use
293
+ // "p": "I_TRP_PH_PriceClose" // Doesn't use this property
294
+ });
295
+ }
159
296
 
160
- // build data
161
- var rowMap = {};
297
+ // build data
298
+ var rowMap = {};
162
299
 
163
- len = identifiers.length;
164
- var rowData = dataGen.generate(fields, len);
165
- for (i = 0; i < len; ++i) {
166
- var inst = identifiers[i];
167
- row = rowMap[inst];
168
- if (!row) {
169
- row = rowMap[inst] = rowData[i];
170
- row.unshift(inst); // prepend instrument on each row
300
+ len = identifiers.length;
301
+ var rowData = dataGen.generate(fields, len);
302
+ for (i = 0; i < len; ++i) {
303
+ var inst = identifiers[i];
304
+ row = rowMap[inst];
305
+ if (!row) {
306
+ row = rowMap[inst] = rowData[i];
307
+ row.unshift(inst); // prepend instrument on each row
308
+ }
309
+ rows.push(row);
171
310
  }
172
- rows.push(row);
173
- }
174
311
 
175
- // There is a chance that rtk will return multiple row data per instrument
176
- // so we must create mock up for this case
177
- if (rows.length > 0) {
178
- var chance = dataGen.randInt(1, 10);
179
- if (chance <= 3) { // chance 30%
180
- var pos = dataGen.randInt(0, rows.length - 1); // random row pos
181
- row = rows[pos];
182
- len = row.length;
183
- var mockupRow = new Array(len);
184
- mockupRow[0] = row[0]; // 1st index is for instrument
185
- for (i = 1; i < len; i++) {
186
- mockupRow[i] = ''; // real case will return null or empty string
312
+ // There is a chance that rtk will return multiple row data per instrument
313
+ // so we must create mock up for this case
314
+ if (rows.length > 0) {
315
+ var chance = dataGen.randInt(1, 10);
316
+ if (chance <= 3) { // chance 30%
317
+ var pos = dataGen.randInt(0, rows.length - 1); // random row pos
318
+ row = rows[pos];
319
+ len = row.length;
320
+ var mockupRow = new Array(len);
321
+ mockupRow[0] = row[0]; // 1st index is for instrument
322
+ for (i = 1; i < len; i++) {
323
+ mockupRow[i] = ''; // real case will return null or empty string
324
+ }
325
+ rows.splice(pos + 1, 0, mockupRow);
187
326
  }
188
- rows.splice(pos + 1, 0, mockupRow);
189
327
  }
190
328
  }
191
329
 
330
+
192
331
  /*
193
332
  response type is :
194
333
  {
@@ -1,4 +1,5 @@
1
1
  import { Ext } from "../../tr-grid-util/es6/Ext.js";
2
+ import { cloneObject } from "../../tr-grid-util/es6/Util.js";
2
3
  import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
3
4
  import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
4
5
 
@@ -10,12 +10,13 @@ import { preventDefault } from "../../tr-grid-util/es6/EventDispatcher.js";
10
10
  declare namespace ColumnStackPlugin {
11
11
 
12
12
  type Options = {
13
- fields: (string)[]|null
13
+ fields: (string)[]|null,
14
+ stacks: (ColumnStackPlugin.StackDefinition)[]|null
14
15
  };
15
16
 
16
17
  type ColumnOptions = {
17
18
  stackId?: string|null,
18
- stack?: (string|StackOptions)|null
19
+ stack?: (string|ColumnStackPlugin.StackOptions)|null
19
20
  };
20
21
 
21
22
  type StackOptions = {
@@ -24,6 +25,21 @@ declare namespace ColumnStackPlugin {
24
25
  collapsed?: boolean|null
25
26
  };
26
27
 
28
+ type StackDefinition = {
29
+ id: string,
30
+ spreading?: boolean|null,
31
+ collapsed?: boolean|null,
32
+ children: (string)[]|null,
33
+ name?: string|null,
34
+ activeColumn?: string|null
35
+ };
36
+
37
+ type StackConfiguration = {
38
+ spreading?: boolean|null,
39
+ collapsed?: boolean|null,
40
+ activeColumn?: string|null
41
+ };
42
+
27
43
  }
28
44
 
29
45
  declare class ColumnStackPlugin extends GridPlugin {
@@ -66,9 +82,9 @@ declare class ColumnStackPlugin extends GridPlugin {
66
82
 
67
83
  public getStackId(colIndex: number): string;
68
84
 
69
- public stackColumns(colRefs?: (number|string)[]|null, stackId?: string|null, options?: any, sort?: boolean|null): boolean;
85
+ public stackColumns(colRefs?: (number|string)[]|null, stackId?: string|null, options?: ColumnStackPlugin.StackConfiguration|null): boolean;
70
86
 
71
- public setStack(colRefs?: (number|string)[]|null): boolean;
87
+ public setStack(colRefs?: (number|string)[]|null, activeColRef?: number|string|null): boolean;
72
88
 
73
89
  public unstackColumns(colIndices?: (number)[]|null): boolean;
74
90
 
@@ -90,6 +106,10 @@ declare class ColumnStackPlugin extends GridPlugin {
90
106
 
91
107
  public reorderStackColumns(colRefs: (number|string)[]|null, stackId: string): void;
92
108
 
109
+ public setStackName(stackId: string, name: string): void;
110
+
111
+ public getStackName(stackId: string): string;
112
+
93
113
  }
94
114
 
95
115
  export default ColumnStackPlugin;
@@ -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.41",
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
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "version": "6.0.12"
48
+ "version": "6.0.14"
49
49
  }