@refinitiv-ui/efx-grid 6.0.53 → 6.0.55

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.
@@ -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(colIds?: (string)[]|null): any;
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.70";
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>=} colIds
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 (colIds) {
4453
- if(!colIds){
4454
- colIds = this.getColumnIds();
4452
+ Core.prototype.createColumnMap = function (colRefs) {
4453
+ if(!colRefs){
4454
+ colRefs = this.getColumnIds();
4455
4455
  }
4456
4456
  var mappingObj = {};
4457
- var count = colIds.length;
4457
+ var count = colRefs.length;
4458
4458
  for(var i = 0; i < count; i++){
4459
- var colId = colIds[i];
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
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.53" };
3
+ window.EFX_GRID = { version: "6.0.55" };