@refinitiv-ui/efx-grid 6.0.53 → 6.0.55
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +99 -65
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.d.ts +1 -1
- package/lib/core/es6/grid/Core.js +18 -8
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +397 -241
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/FieldDefinition.d.ts +2 -2
- package/lib/rt-grid/es6/FieldDefinition.js +43 -52
- package/lib/rt-grid/es6/Grid.d.ts +5 -1
- package/lib/rt-grid/es6/Grid.js +69 -36
- package/lib/statistics-row/es6/StatisticsRow.js +1 -1
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +9 -9
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +8 -2
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +2 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +69 -1
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +5 -26
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +34 -2
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +5 -1
- package/lib/tr-grid-util/es6/GroupDefinitions.js +81 -57
- package/lib/types/es6/AutoTooltip.d.ts +9 -9
- package/lib/types/es6/ColumnGrouping.d.ts +2 -0
- package/lib/types/es6/Core/grid/Core.d.ts +1 -1
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +2 -2
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +5 -1
- package/lib/versions.json +6 -6
- package/package.json +1 -1
@@ -407,7 +407,7 @@ declare class Core extends ElementWrapper {
|
|
407
407
|
|
408
408
|
public getValidColumnList(colIds: (string)[]|null, columnMap?: any): (string)[];
|
409
409
|
|
410
|
-
public createColumnMap(
|
410
|
+
public createColumnMap(colRefs?: (string|number)[]|null): any;
|
411
411
|
|
412
412
|
public startBatch(batchType: string): boolean;
|
413
413
|
|
@@ -562,7 +562,7 @@ Core.prototype._batches = null;
|
|
562
562
|
* @return {string}
|
563
563
|
*/
|
564
564
|
Core.getVersion = function () {
|
565
|
-
return "5.1.
|
565
|
+
return "5.1.72";
|
566
566
|
};
|
567
567
|
/** {@link ElementWrapper#dispose}
|
568
568
|
* @override
|
@@ -4445,18 +4445,21 @@ Core.prototype.getValidColumnList = function (colIds, columnMap) {
|
|
4445
4445
|
};
|
4446
4446
|
|
4447
4447
|
/** @public
|
4448
|
-
* @description Create mapping object from an array of strings
|
4449
|
-
* @param {Array.<string>=}
|
4448
|
+
* @description Create mapping object from an array of strings or column indices
|
4449
|
+
* @param {Array.<string|number>=} colRefs
|
4450
4450
|
* @return {!Object} Column mapping object
|
4451
4451
|
*/
|
4452
|
-
Core.prototype.createColumnMap = function (
|
4453
|
-
if(!
|
4454
|
-
|
4452
|
+
Core.prototype.createColumnMap = function (colRefs) {
|
4453
|
+
if(!colRefs){
|
4454
|
+
colRefs = this.getColumnIds();
|
4455
4455
|
}
|
4456
4456
|
var mappingObj = {};
|
4457
|
-
var count =
|
4457
|
+
var count = colRefs.length;
|
4458
4458
|
for(var i = 0; i < count; i++){
|
4459
|
-
var colId =
|
4459
|
+
var colId = colRefs[i];
|
4460
|
+
if(typeof colId === "number"){
|
4461
|
+
colId = this.getColumnId(colId);
|
4462
|
+
}
|
4460
4463
|
if(colId){
|
4461
4464
|
mappingObj[colId] = true;
|
4462
4465
|
}
|
@@ -4489,7 +4492,14 @@ Core.prototype.stopBatch = function (batchType) {
|
|
4489
4492
|
if(!batchType){
|
4490
4493
|
return false;
|
4491
4494
|
}
|
4495
|
+
// The "columnVisibilityChanged" event is blocked while the "reset" batch operation is in progress, so this event will not be fired until the batch operation succeeds.
|
4496
|
+
if(batchType === "reset") {
|
4497
|
+
this._disableEvent("columnVisibilityChanged", true);
|
4498
|
+
}
|
4492
4499
|
this._dispatch("afterBatchOperation", { batches: this._batches, batchType: batchType });
|
4500
|
+
if(batchType === "reset") {
|
4501
|
+
this._disableEvent("columnVisibilityChanged", false);
|
4502
|
+
}
|
4493
4503
|
|
4494
4504
|
delete this._batches[batchType];
|
4495
4505
|
if(isEmptyObject(this._batches)){
|
package/lib/grid/index.js
CHANGED