@refinitiv-ui/efx-grid 6.0.154 → 6.0.156

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 values = e["changes"];
4020
- if(!values) {
4019
+ let changes = e["changes"];
4020
+ if(!changes) {
4021
4021
  if(e["initialChanges"]) {
4022
- values = e["changes"] = e["initialChanges"]; // Need to keep e["changes"] for backward compatibility.
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
- if(!e["rowData"]) {
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 field, value, dataType, colDef;
4047
- for(field in values) {
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 = values[field];
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
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "version": "6.0.154"
72
+ "version": "6.0.156"
73
73
  }