@refinitiv-ui/efx-grid 6.0.153 → 6.0.155
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.
- package/lib/core/dist/core.js +158 -59
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.d.ts +2 -2
- package/lib/core/es6/data/DataTable.js +48 -55
- package/lib/core/es6/data/DataView.d.ts +1 -1
- package/lib/core/es6/data/DataView.js +14 -2
- package/lib/core/es6/data/Segment.d.ts +4 -0
- package/lib/core/es6/data/Segment.js +78 -1
- package/lib/core/es6/data/SegmentCollection.d.ts +2 -0
- package/lib/core/es6/data/SegmentCollection.js +17 -0
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +669 -349
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +9 -8
- package/lib/types/es6/Core/data/DataTable.d.ts +2 -2
- package/lib/types/es6/Core/data/DataView.d.ts +1 -1
- package/lib/types/es6/Core/data/Segment.d.ts +4 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +2 -0
- package/package.json +1 -1
package/lib/rt-grid/es6/Grid.js
CHANGED
@@ -4016,16 +4016,17 @@ Grid.prototype._onFormulaDataRequired = function(e) {
|
|
4016
4016
|
* @param {Object} e
|
4017
4017
|
*/
|
4018
4018
|
Grid.prototype._onDataComposed = function(e) {
|
4019
|
-
let
|
4020
|
-
if(!
|
4019
|
+
let changes = e["changes"];
|
4020
|
+
if(!changes) {
|
4021
4021
|
if(e["initialChanges"]) {
|
4022
|
-
|
4022
|
+
changes = e["changes"] = e["initialChanges"]; // Need to keep e["changes"] for backward compatibility.
|
4023
4023
|
} else {
|
4024
4024
|
return; // Cannot do data composition if there is no change in data
|
4025
4025
|
}
|
4026
4026
|
}
|
4027
4027
|
|
4028
|
-
|
4028
|
+
let rowData = e["rowData"];
|
4029
|
+
if(!rowData) {
|
4029
4030
|
return; // Row could already be removed or global change event is sent
|
4030
4031
|
}
|
4031
4032
|
|
@@ -4043,9 +4044,9 @@ Grid.prototype._onDataComposed = function(e) {
|
|
4043
4044
|
}
|
4044
4045
|
|
4045
4046
|
if(this._autoDateConversion) { // auto data conversion
|
4046
|
-
let
|
4047
|
-
for(field in
|
4048
|
-
colDef = this._getColumnDefinition(field);
|
4047
|
+
let dataType;
|
4048
|
+
for(let field in changes) {
|
4049
|
+
let colDef = this._getColumnDefinition(field);
|
4049
4050
|
if(colDef) {
|
4050
4051
|
dataType = colDef.getDataType();
|
4051
4052
|
} else {
|
@@ -4053,7 +4054,7 @@ Grid.prototype._onDataComposed = function(e) {
|
|
4053
4054
|
}
|
4054
4055
|
|
4055
4056
|
if(dataType === "datetime") {
|
4056
|
-
value =
|
4057
|
+
let value = rowData[field];
|
4057
4058
|
rowDef.setData(field + "_RAW", value);
|
4058
4059
|
value = DateTime.toDateObject(value);
|
4059
4060
|
rowDef.setData(field, value); // TODO: Check if this trigger data change multiple times
|
@@ -66,7 +66,7 @@ declare class DataTable extends DataCache {
|
|
66
66
|
|
67
67
|
public setDataSource(source: any): void;
|
68
68
|
|
69
|
-
public sortOnce(cid: string|(string)[]|null, sortOrders?: string|number|(string|number)[]|null, customComparer?: DataTable.SortLogic|null, contextObj?: any): boolean;
|
69
|
+
public sortOnce(cid: string|(string)[]|null, sortOrders?: (string|number|(string|number)[])|null, customComparer?: DataTable.SortLogic|null, contextObj?: any): boolean;
|
70
70
|
|
71
71
|
public setSortingLogic(func: DataTable.SortLogic|null): void;
|
72
72
|
|
@@ -122,7 +122,7 @@ declare class DataTable extends DataCache {
|
|
122
122
|
|
123
123
|
public getSegmentChildIds(segmentId: string): (string)[]|null;
|
124
124
|
|
125
|
-
public sortSeparators(sortLogics: ((...params: any[]) => any)|(((...params: any[]) => any))[]|any|null, sortOrders?: (number)[]|null, cids?: (string)[]|null): boolean;
|
125
|
+
public sortSeparators(sortLogics: ((...params: any[]) => any)|(((...params: any[]) => any))[]|any|null, sortOrders?: (number|string)[]|null, cids?: (string)[]|null): boolean;
|
126
126
|
|
127
127
|
public sortSegments(compare: ((...params: any[]) => any)|null): boolean;
|
128
128
|
|
@@ -294,7 +294,7 @@ declare class DataView extends EventDispatcher {
|
|
294
294
|
|
295
295
|
public getSegmentChildIds(segmentRef: string|number|null): (string)[]|null;
|
296
296
|
|
297
|
-
public sortSeparators(sortLogics: ((...params: any[]) => any)|(((...params: any[]) => any))[]|any|null, sortOrders?: (number)[]|null, cids?: (string)[]|null): void;
|
297
|
+
public sortSeparators(sortLogics: ((...params: any[]) => any)|(((...params: any[]) => any))[]|any|null, sortOrders?: (number|(number)[])|null, cids?: (string|(string)[])|null): void;
|
298
298
|
|
299
299
|
public sortSegments(compare: ((...params: any[]) => any)|null): void;
|
300
300
|
|
@@ -63,6 +63,10 @@ declare class Segment extends EventDispatcher {
|
|
63
63
|
|
64
64
|
public getSubSegmentName(row?: any): string;
|
65
65
|
|
66
|
+
public sortSegments(comparer: ((...params: any[]) => any)): boolean;
|
67
|
+
|
68
|
+
public getFlattenTreeIds(ary: (string)[]|null): (string)[];
|
69
|
+
|
66
70
|
public collapse(bool?: boolean|null): boolean;
|
67
71
|
|
68
72
|
public expand(bool?: boolean|null): boolean;
|
@@ -30,6 +30,8 @@ declare class SegmentCollection extends EventDispatcher {
|
|
30
30
|
|
31
31
|
public getSegmentIds(): (string)[];
|
32
32
|
|
33
|
+
public sortSegments(comparer: ((...params: any[]) => any)): (Segment)[];
|
34
|
+
|
33
35
|
public collapseSegments(segmentIds: (string)[]|null, bool?: boolean|null): boolean;
|
34
36
|
|
35
37
|
public collapseSegment(segmentId: string, bool?: boolean|null): boolean;
|
package/package.json
CHANGED