@refinitiv-ui/efx-grid 6.0.129 → 6.0.130
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +39 -10
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +39 -10
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +76 -32
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +2 -0
- package/lib/rt-grid/es6/Grid.js +50 -12
- package/lib/rt-grid/es6/RowDefinition.d.ts +1 -1
- package/lib/rt-grid/es6/RowDefinition.js +26 -20
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +2 -1
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +8 -2
- package/lib/types/es6/ColumnGrouping.d.ts +2 -1
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +1 -1
- package/lib/versions.json +3 -3
- package/package.json +1 -1
package/lib/core/dist/core.js
CHANGED
@@ -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.
|
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
|
-
|
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);
|