@refinitiv-ui/efx-grid 6.0.129 → 6.0.130

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.
@@ -25895,7 +25895,7 @@ Core_Core.prototype._hasPendingRowChange = false;
25895
25895
  * @return {string}
25896
25896
  */
25897
25897
  Core_Core.getVersion = function () {
25898
- return "5.1.129";
25898
+ return "5.1.130";
25899
25899
  };
25900
25900
  /** {@link ElementWrapper#dispose}
25901
25901
  * @override
@@ -27626,21 +27626,45 @@ Core_Core.prototype.setColumnBackgroundColor = function(colIndex, color) {
27626
27626
  }
27627
27627
 
27628
27628
  if(settings.getType() !== "content") {
27629
- let rowCount = section.getRowCount();
27630
- for(let r = 0; r < rowCount; r++) {
27631
- let cellSpan = section.getCellColSpan(colIndex, r);
27632
- if(cellSpan > 1) { continue; }
27633
- let cell = section.getCell(colIndex, r);
27634
- if(cell) {
27635
- cell.setStyle("backgroundColor", color);
27636
- }
27637
- }
27629
+ this._applyCellsBackgroundColor(section, colIndex, color);
27638
27630
  } else {
27639
27631
  let column = section.getColumn(colIndex);
27640
27632
  column.setStyle("backgroundColor", color);
27641
27633
  }
27642
27634
  }
27643
27635
  };
27636
+ /** @private
27637
+ * @param {ILayoutGrid} section
27638
+ * @param {number} colIndex
27639
+ * @param {string} color
27640
+ */
27641
+ Core_Core.prototype._applyCellsBackgroundColor = function(section, colIndex, color) {
27642
+ let rowCount = section.getRowCount();
27643
+ for(let r = 0; r < rowCount; r++) {
27644
+ let cellSpan = section.getCellColSpan(colIndex, r);
27645
+ if(cellSpan > 1) { continue; }
27646
+ let cell = section.getCell(colIndex, r);
27647
+ if(cell) {
27648
+ cell.setStyle("backgroundColor", color);
27649
+ }
27650
+ }
27651
+ };
27652
+ /** @public
27653
+ * @ignore
27654
+ * @param {ILayoutGrid} section
27655
+ */
27656
+ Core_Core.prototype.applyColumnsBackgroundColor = function(section) {
27657
+ if(!section) {
27658
+ return;
27659
+ }
27660
+
27661
+ let colCount = section.getColumnCount();
27662
+ for(let c = 0; c < colCount; c++) {
27663
+ let colDef = this._getColumnDef(c);
27664
+ let color = colDef["backgroundColor"] || "";
27665
+ this._applyCellsBackgroundColor(section, c, color);
27666
+ }
27667
+ };
27644
27668
 
27645
27669
  /** @public
27646
27670
  * @param {number} colIndex
@@ -30898,6 +30922,11 @@ Core_Core.prototype._onRowCountChanged = function (e) {
30898
30922
 
30899
30923
  this._updateColumnSeparators();
30900
30924
  if(prevRowCount < newRowCount) {
30925
+ // Apply column background color
30926
+ let settings = this.getSectionSettings(section);
30927
+ if(settings.getType() !== "content") {
30928
+ this.applyColumnsBackgroundColor(section);
30929
+ }
30901
30930
  this._dispatch("rowAdded", e);
30902
30931
  } else if(prevRowCount > newRowCount) {
30903
30932
  this._dispatch("rowRemoved", e);