@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
package/fesm5/datorama-core.js
CHANGED
|
@@ -14137,9 +14137,25 @@ var GridService = /** @class */ (function () {
|
|
|
14137
14137
|
this.initPivotSecondaryColsProcess(params);
|
|
14138
14138
|
params.gridOptions.enableV2_1 = true;
|
|
14139
14139
|
params.gridOptions.saveSettings = false;
|
|
14140
|
+
params.gridOptions.ensureDomOrder = true;
|
|
14141
|
+
params.gridOptions.suppressColumnVirtualisation = true;
|
|
14142
|
+
params.gridOptions.defaultColDef.cellClass = this.getPivotCellClass.bind(this);
|
|
14143
|
+
params.gridOptions.autoGroupColumnDef.cellClass = this.getPivotCellClass.bind(this);
|
|
14140
14144
|
}
|
|
14141
14145
|
return params.gridOptions;
|
|
14142
14146
|
};
|
|
14147
|
+
GridService.prototype.getPivotCellClass = function (params) {
|
|
14148
|
+
var _a = params.node, leafGroup = _a.leafGroup, childIndex = _a.childIndex;
|
|
14149
|
+
var cellClass = '';
|
|
14150
|
+
if (leafGroup) {
|
|
14151
|
+
var isEven = childIndex % 2 === 0;
|
|
14152
|
+
cellClass += 'leaf-cell';
|
|
14153
|
+
if (isEven) {
|
|
14154
|
+
cellClass += ' even';
|
|
14155
|
+
}
|
|
14156
|
+
}
|
|
14157
|
+
return cellClass;
|
|
14158
|
+
};
|
|
14143
14159
|
GridService.prototype.normalizeColumns = function (colDefs, gridOptions) {
|
|
14144
14160
|
var _this = this;
|
|
14145
14161
|
if (gridOptions === void 0) { gridOptions = null; }
|