@datorama/core 22.10.9-rc.1 → 22.10.9-rc.3

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.
@@ -14336,9 +14336,25 @@
14336
14336
  this.initPivotSecondaryColsProcess(params);
14337
14337
  params.gridOptions.enableV2_1 = true;
14338
14338
  params.gridOptions.saveSettings = false;
14339
+ params.gridOptions.ensureDomOrder = true;
14340
+ params.gridOptions.suppressColumnVirtualisation = true;
14341
+ params.gridOptions.defaultColDef.cellClass = this.getPivotCellClass.bind(this);
14342
+ params.gridOptions.autoGroupColumnDef.cellClass = this.getPivotCellClass.bind(this);
14339
14343
  }
14340
14344
  return params.gridOptions;
14341
14345
  };
14346
+ GridService.prototype.getPivotCellClass = function (params) {
14347
+ var _a = params.node, leafGroup = _a.leafGroup, childIndex = _a.childIndex;
14348
+ var cellClass = '';
14349
+ if (leafGroup) {
14350
+ var isEven = childIndex % 2 === 0;
14351
+ cellClass += 'leaf-cell';
14352
+ if (isEven) {
14353
+ cellClass += ' even';
14354
+ }
14355
+ }
14356
+ return cellClass;
14357
+ };
14342
14358
  GridService.prototype.normalizeColumns = function (colDefs, gridOptions) {
14343
14359
  var _this = this;
14344
14360
  if (gridOptions === void 0) { gridOptions = null; }