@datorama/core 22.12.4 → 22.12.5-beta.1
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.
- package/bundles/datorama-core.umd.js +13 -4
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +1 -1
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +14 -5
- package/esm2015/lib/icon/icon.types.js +1 -1
- package/esm2015/lib/version.js +1 -1
- package/esm5/lib/grid-v2/grid-store/grid.service.js +14 -5
- package/esm5/lib/icon/icon.types.js +1 -1
- package/esm5/lib/version.js +1 -1
- package/fesm2015/datorama-core.js +13 -4
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +13 -4
- package/fesm5/datorama-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -12711,11 +12711,20 @@ let GridService = class GridService {
|
|
|
12711
12711
|
let cellClass = ``;
|
|
12712
12712
|
if (gridQuery && gridQuery.api) {
|
|
12713
12713
|
const { columns } = gridQuery.api;
|
|
12714
|
-
const
|
|
12715
|
-
const
|
|
12716
|
-
|
|
12714
|
+
const originalColumns = columns.getAllColumns();
|
|
12715
|
+
const originalColumn = originalColumns.find((col) => {
|
|
12716
|
+
const { showRowGroup: cellColumnGroupId, pivotValueColumn, colId } = params.colDef;
|
|
12717
|
+
const cellPivotColumnId = pivotValueColumn && pivotValueColumn.getColId();
|
|
12718
|
+
const cellColumnId = cellColumnGroupId || cellPivotColumnId || colId;
|
|
12719
|
+
return col.getColId() === cellColumnId;
|
|
12717
12720
|
});
|
|
12718
|
-
const
|
|
12721
|
+
const allDisplayedColumns = columns.getAllDisplayedColumns();
|
|
12722
|
+
const displayedColumn = allDisplayedColumns.find(col => col.getColId() === params.colDef.colId);
|
|
12723
|
+
const colIndex = allDisplayedColumns.indexOf(displayedColumn);
|
|
12724
|
+
const originalCellClass = originalColumn.getColDef().cellClass;
|
|
12725
|
+
if (originalCellClass && typeof originalCellClass === 'string') {
|
|
12726
|
+
cellClass += `${originalCellClass} `;
|
|
12727
|
+
}
|
|
12719
12728
|
if (rowGroupIndex <= colIndex) {
|
|
12720
12729
|
if (leafGroup) {
|
|
12721
12730
|
if (childIndex % 2 === 0) {
|