@refinitiv-ui/efx-grid 6.0.50 → 6.0.51

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.
@@ -112,7 +112,7 @@ declare class DataTable extends DataCache {
112
112
 
113
113
  public getSegmentChildIds(segmentId: string): (string)[]|null;
114
114
 
115
- public sortSeparators(sortLogics: ((...params: any[]) => any)|(((...params: any[]) => any))[]|null, sortOrders: (number)[]|null, cids: (string)[]|null): boolean;
115
+ public sortSeparators(sortLogics: ((...params: any[]) => any)|(((...params: any[]) => any))[]|any|null, sortOrders?: (number)[]|null, cids?: (string)[]|null): boolean;
116
116
 
117
117
  public sortSegments(compare: ((...params: any[]) => any)|null): boolean;
118
118
 
@@ -1258,9 +1258,9 @@ DataTable.prototype.getSegmentChildIds = function(segmentId) {
1258
1258
  };
1259
1259
  /** Sort all of existing segments by multiple sort logics
1260
1260
  * @public
1261
- * @param {Function|Array.<Function>} sortLogics
1262
- * @param {Array.<number>} sortOrders
1263
- * @param {Array.<string>} cids
1261
+ * @param {Function|Array.<Function>|Object} sortLogics
1262
+ * @param {Array.<number>=} sortOrders
1263
+ * @param {Array.<string>=} cids
1264
1264
  * @return {boolean}
1265
1265
  */
1266
1266
  DataTable.prototype.sortSeparators = function (sortLogics, sortOrders, cids) {
@@ -272,7 +272,7 @@ declare class DataView extends EventDispatcher {
272
272
 
273
273
  public getSegmentChildIds(segmentRef: string|number|null): (string)[]|null;
274
274
 
275
- public sortSeparators(sortLogics: (((...params: any[]) => any))[]|null, sortOrders: (number)[]|null, cids: (string)[]|null): void;
275
+ public sortSeparators(sortLogics: ((...params: any[]) => any)|(((...params: any[]) => any))[]|any|null, sortOrders?: (number)[]|null, cids?: (string)[]|null): void;
276
276
 
277
277
  public sortSegments(compare: ((...params: any[]) => any)|null): void;
278
278
 
@@ -2552,9 +2552,9 @@ DataView.prototype.getSegmentChildIds = function(segmentRef) {
2552
2552
  };
2553
2553
  /** Sort all of existing segments by multiple sort logics
2554
2554
  * @public
2555
- * @param {Array.<Function>} sortLogics
2556
- * @param {Array.<number>} sortOrders
2557
- * @param {Array.<string>} cids
2555
+ * @param {Function|Array.<Function>|Object} sortLogics
2556
+ * @param {Array.<number>=} sortOrders
2557
+ * @param {Array.<string>=} cids
2558
2558
  */
2559
2559
  DataView.prototype.sortSeparators = function (sortLogics, sortOrders, cids) {
2560
2560
  this._dt.sortSeparators(sortLogics, sortOrders, cids);
@@ -562,7 +562,7 @@ Core.prototype._batches = null;
562
562
  * @return {string}
563
563
  */
564
564
  Core.getVersion = function () {
565
- return "5.1.69";
565
+ return "5.1.70";
566
566
  };
567
567
  /** {@link ElementWrapper#dispose}
568
568
  * @override
@@ -1372,10 +1372,12 @@ SortableTitlePlugin.prototype.sortSeparators = function (comparer) {
1372
1372
  var sortOrders = [];
1373
1373
  var sortFields = [];
1374
1374
  var sortStateCount = this._sortStates.length;
1375
+ var rowDefField = SortableTitlePlugin._toRowDefField();
1375
1376
  for(var i = 0; i < sortStateCount; i++){
1376
1377
  var sortState = this._sortStates[i];
1378
+ var field = this._rowDefMode ? rowDefField : sortState["field"];
1377
1379
  sortOrders.push(sortState["sortOrder"]);
1378
- sortFields.push(sortState["field"]);
1380
+ sortFields.push(field);
1379
1381
  }
1380
1382
  dv.sortSeparators(sortLogics, sortOrders, sortFields);
1381
1383
  }
package/lib/grid/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.50" };
3
+ window.EFX_GRID = { version: "6.0.51" };
@@ -16116,8 +16116,7 @@ ColumnDefinition.prototype._retrieveNestedFields = function(fields) {
16116
16116
  */
16117
16117
  ColumnDefinition.prototype._defaultRenderer = function(e) {
16118
16118
  var rowDef = /** @type{RowDefinition} */(e["dataValue"]);
16119
- var data = rowDef.getData(this._field);
16120
- e["cell"].setContent(data);
16119
+ e["cell"].setContent(rowDef ? rowDef.getData(this._field) : null);
16121
16120
  };
16122
16121
  /** @private
16123
16122
  * @param {Object} e