@refinitiv-ui/efx-grid 6.0.50 → 6.0.51
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +10 -8
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.d.ts +1 -1
- package/lib/core/es6/data/DataTable.js +3 -3
- package/lib/core/es6/data/DataView.d.ts +1 -1
- package/lib/core/es6/data/DataView.js +3 -3
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +3 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +1 -2
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +1 -2
- package/lib/types/es6/Core/data/DataTable.d.ts +1 -1
- package/lib/types/es6/Core/data/DataView.d.ts +3 -1
- package/lib/types/es6/Core/data/Segment.d.ts +2 -0
- package/package.json +1 -1
@@ -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
|
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
|
1262
|
-
* @param {Array.<number
|
1263
|
-
* @param {Array.<string
|
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
|
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
|
2556
|
-
* @param {Array.<number
|
2557
|
-
* @param {Array.<string
|
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);
|
@@ -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(
|
1380
|
+
sortFields.push(field);
|
1379
1381
|
}
|
1380
1382
|
dv.sortSeparators(sortLogics, sortOrders, sortFields);
|
1381
1383
|
}
|
package/lib/grid/index.js
CHANGED
@@ -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
|
-
|
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
|