@refinitiv-ui/efx-grid 6.0.54 → 6.0.56

Sign up to get free protection for your applications and to get access to all the features.
@@ -26053,7 +26053,7 @@ Core_Core.prototype._batches = null;
26053
26053
  * @return {string}
26054
26054
  */
26055
26055
  Core_Core.getVersion = function () {
26056
- return "5.1.71";
26056
+ return "5.1.72";
26057
26057
  };
26058
26058
  /** {@link ElementWrapper#dispose}
26059
26059
  * @override
@@ -29936,18 +29936,21 @@ Core_Core.prototype.getValidColumnList = function (colIds, columnMap) {
29936
29936
  };
29937
29937
 
29938
29938
  /** @public
29939
- * @description Create mapping object from an array of strings
29940
- * @param {Array.<string>=} colIds
29939
+ * @description Create mapping object from an array of strings or column indices
29940
+ * @param {Array.<string|number>=} colRefs
29941
29941
  * @return {!Object} Column mapping object
29942
29942
  */
29943
- Core_Core.prototype.createColumnMap = function (colIds) {
29944
- if(!colIds){
29945
- colIds = this.getColumnIds();
29943
+ Core_Core.prototype.createColumnMap = function (colRefs) {
29944
+ if(!colRefs){
29945
+ colRefs = this.getColumnIds();
29946
29946
  }
29947
29947
  var mappingObj = {};
29948
- var count = colIds.length;
29948
+ var count = colRefs.length;
29949
29949
  for(var i = 0; i < count; i++){
29950
- var colId = colIds[i];
29950
+ var colId = colRefs[i];
29951
+ if(typeof colId === "number"){
29952
+ colId = this.getColumnId(colId);
29953
+ }
29951
29954
  if(colId){
29952
29955
  mappingObj[colId] = true;
29953
29956
  }