@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.
@@ -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 allDisplayedColumns = columns.getAllDisplayedColumns();
12715
- const col = allDisplayedColumns.find(column => {
12716
- return column.getColId() === params.colDef.colId;
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 colIndex = allDisplayedColumns.indexOf(col);
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) {