@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.
- package/bundle.scss +245 -279
- package/bundles/datorama-core.umd.js +16 -0
- 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/datorama-core.metadata.json +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +17 -1
- package/esm5/lib/grid-v2/grid-store/grid.service.js +17 -1
- package/fesm2015/datorama-core.js +16 -0
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +16 -0
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid-store/grid.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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; }
|