@datorama/core 22.9.9 → 22.10.0

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.
@@ -14134,9 +14134,36 @@ var GridService = /** @class */ (function () {
14134
14134
  this.initPivotSecondaryColsProcess(params);
14135
14135
  params.gridOptions.enableV2_1 = true;
14136
14136
  params.gridOptions.saveSettings = false;
14137
+ params.gridOptions.defaultColDef.cellClass = this.getPivotCellClass.bind(this);
14138
+ params.gridOptions.autoGroupColumnDef.cellClass = this.getPivotCellClass.bind(this);
14137
14139
  }
14138
14140
  return params.gridOptions;
14139
14141
  };
14142
+ GridService.prototype.getPivotCellClass = function (params) {
14143
+ var _a = params.node, leafGroup = _a.leafGroup, childIndex = _a.childIndex, rowGroupIndex = _a.rowGroupIndex;
14144
+ var gridQuery = params.colDef.headerComponentParams.gridQuery;
14145
+ var cellClass = "";
14146
+ if (gridQuery && gridQuery.api) {
14147
+ var columns = gridQuery.api.columns;
14148
+ var allDisplayedColumns = columns.getAllDisplayedColumns();
14149
+ var col = allDisplayedColumns.find(function (column) {
14150
+ return column.getColId() === params.colDef.colId;
14151
+ });
14152
+ var colIndex = allDisplayedColumns.indexOf(col);
14153
+ if (rowGroupIndex <= colIndex) {
14154
+ if (leafGroup) {
14155
+ if (childIndex % 2 === 0) {
14156
+ /** If row is even */
14157
+ cellClass += ' primary-100-background-color';
14158
+ }
14159
+ }
14160
+ else {
14161
+ cellClass += 'primary-0-background-color pointer dato-simple-bold';
14162
+ }
14163
+ }
14164
+ }
14165
+ return cellClass;
14166
+ };
14140
14167
  GridService.prototype.normalizeColumns = function (colDefs, gridOptions) {
14141
14168
  var _this = this;
14142
14169
  if (gridOptions === void 0) { gridOptions = null; }
@@ -25327,7 +25354,7 @@ function fixNgLeaks() {
25327
25354
  };
25328
25355
  }
25329
25356
 
25330
- window.coreVersion = '22.9.9';
25357
+ window.coreVersion = '22.10.0';
25331
25358
 
25332
25359
  /**
25333
25360
  * @license