@refinitiv-ui/efx-grid 6.0.58 → 6.0.59
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +4 -4
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +3 -3
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +8 -8
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +3 -3
- package/lib/rt-grid/es6/Grid.js +8 -8
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +3 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +64 -8
- package/lib/tr-grid-util/es6/ElementObserver.js +4 -2
- package/lib/tr-grid-util/es6/ElementWrapper.js +3 -2
- package/lib/tr-grid-util/es6/GridPlugin.js +5 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +4 -2
- package/lib/tr-grid-util/es6/SubTable.js +136 -72
- package/lib/tr-grid-util/es6/Table.d.ts +25 -10
- package/lib/tr-grid-util/es6/Table.js +103 -78
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +1 -1
- package/lib/types/es6/ColumnStack.d.ts +3 -1
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +3 -3
- package/lib/types/es6/TextFormatting.d.ts +1 -1
- package/lib/versions.json +2 -2
- package/package.json +1 -1
@@ -781,9 +781,9 @@ SortableTitlePlugin.prototype.sortColumns = function (sortOptions, opt_arg) {
|
|
781
781
|
var states = [];
|
782
782
|
for (var i = 0; i < sortOptions.length; i++) {
|
783
783
|
var opt = sortOptions[i];
|
784
|
-
var colRef = opt["
|
785
|
-
if(colRef
|
786
|
-
colRef = opt["
|
784
|
+
var colRef = opt["colId"] || opt["field"];
|
785
|
+
if(colRef == null) {
|
786
|
+
colRef = opt["colIndex"];
|
787
787
|
}
|
788
788
|
var state = this._prepareSorting(
|
789
789
|
colRef,
|
package/lib/grid/index.js
CHANGED
@@ -45767,16 +45767,16 @@ Grid.prototype.replaceColumn = function (columnOption, colRef) {
|
|
45767
45767
|
}
|
45768
45768
|
|
45769
45769
|
var colDef = this.getColumnDefinition(colIndex);
|
45770
|
-
if(colDef.getChildren()) { // Parent time series field doesn't provide hidden property
|
45770
|
+
if(colDef && colDef.getChildren().length > 0) { // Parent time series field doesn't provide hidden property
|
45771
45771
|
colConfig["hidden"] = false;
|
45772
45772
|
}
|
45773
45773
|
|
45774
|
-
if(colConfig.id == null) {
|
45774
|
+
if(colDef && colConfig.id == null) {
|
45775
45775
|
colConfig.id = colDef.getId(); // retain ID
|
45776
45776
|
}
|
45777
45777
|
this._grid.startBatch("reset");
|
45778
|
+
this.removeColumn(colIndex);
|
45778
45779
|
this.insertColumn(colConfig, colIndex);
|
45779
|
-
this.removeColumn(colIndex + 1); // remove existing column after insert
|
45780
45780
|
this._grid.stopBatch("reset");
|
45781
45781
|
};
|
45782
45782
|
|
@@ -46481,9 +46481,9 @@ Grid.prototype._initDuplicateRicData = function(rowDef) {
|
|
46481
46481
|
}
|
46482
46482
|
};
|
46483
46483
|
/** @public
|
46484
|
-
* @param {
|
46484
|
+
* @param {(RowDefinition~Options|string)=} rowOption
|
46485
46485
|
* @param {Grid~RowReference=} rowRef Reference (i.e. row index, row id, or row definition) of the insert position
|
46486
|
-
* @returns {
|
46486
|
+
* @returns {RowDefinition}
|
46487
46487
|
* @example
|
46488
46488
|
* var grid = new rt.Grid(grid_div, options);
|
46489
46489
|
* grid.insertRow({"ric": "RIC"}, 0); // A new row is added at the top
|
@@ -46514,7 +46514,7 @@ Grid.prototype.insertRow = function(rowOption, rowRef) {
|
|
46514
46514
|
return rowDef;
|
46515
46515
|
};
|
46516
46516
|
/** @public
|
46517
|
-
* @param {Array.<
|
46517
|
+
* @param {Array.<RowDefinition~Options|string>} rowOptions Array of row option object
|
46518
46518
|
* @param {Grid~RowReference=} rowRef Reference (i.e. row index, row id, or row definition) of the insert position
|
46519
46519
|
* @param {Array.<string>=} opt_fields
|
46520
46520
|
* @example
|
@@ -48164,8 +48164,8 @@ Grid.prototype._logData = function(rowDefs, options) {
|
|
48164
48164
|
/** @public
|
48165
48165
|
* @description Replace existing row with a new row. Row ID would be changed, after row is replaced.
|
48166
48166
|
* @param {Grid~RowReference} rowRef Reference (i.e. row index, row id, or row definition) of the insert position
|
48167
|
-
* @param {
|
48168
|
-
* @returns {
|
48167
|
+
* @param {(RowDefinition~Options|string)=} rowOption
|
48168
|
+
* @returns {RowDefinition}
|
48169
48169
|
*/
|
48170
48170
|
Grid.prototype.replaceRow = function(rowRef, rowOption) {
|
48171
48171
|
var rowId = this._getRowId(rowRef);
|