@datorama/core 22.10.9-rc.2 → 22.10.9-rc.4
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 +7 -130
- package/bundles/datorama-core.umd.js +20 -9
- 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/esm2015/lib/grid-v2/grid-store/grid.service.js +21 -10
- package/esm5/lib/grid-v2/grid-store/grid.service.js +21 -10
- package/fesm2015/datorama-core.js +20 -9
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +20 -9
- package/fesm5/datorama-core.js.map +1 -1
- package/package.json +1 -1
package/bundle.scss
CHANGED
|
@@ -14313,145 +14313,22 @@ dato-input input:disabled:hover {
|
|
|
14313
14313
|
}
|
|
14314
14314
|
|
|
14315
14315
|
.dato-grid.pivot-mode .ag-row.ag-row-group {
|
|
14316
|
-
/**
|
|
14317
|
-
|
|
14318
|
-
|
|
14316
|
+
/**
|
|
14317
|
+
Because in pivot mode we style the cells themselves,
|
|
14318
|
+
we need to reflect the hover state to those cells also
|
|
14319
|
+
*/
|
|
14319
14320
|
}
|
|
14320
14321
|
|
|
14321
14322
|
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover) {
|
|
14322
|
-
background-color:
|
|
14323
|
-
}
|
|
14324
|
-
|
|
14325
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-0 .ag-cell.ag-cell-value:nth-child(n+1):not(.leaf-cell) {
|
|
14326
|
-
background-color: themify(primary-0);
|
|
14327
|
-
}
|
|
14328
|
-
|
|
14329
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-0 .ag-cell.ag-cell-value:nth-child(n+1).even {
|
|
14330
|
-
background-color: themify(primary-100);
|
|
14331
|
-
}
|
|
14332
|
-
|
|
14333
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-1 .ag-cell.ag-cell-value:nth-child(n+2):not(.leaf-cell) {
|
|
14334
|
-
background-color: themify(primary-0);
|
|
14335
|
-
}
|
|
14336
|
-
|
|
14337
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-1 .ag-cell.ag-cell-value:nth-child(n+2).even {
|
|
14338
|
-
background-color: themify(primary-100);
|
|
14339
|
-
}
|
|
14340
|
-
|
|
14341
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-2 .ag-cell.ag-cell-value:nth-child(n+3):not(.leaf-cell) {
|
|
14342
|
-
background-color: themify(primary-0);
|
|
14343
|
-
}
|
|
14344
|
-
|
|
14345
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-2 .ag-cell.ag-cell-value:nth-child(n+3).even {
|
|
14346
|
-
background-color: themify(primary-100);
|
|
14347
|
-
}
|
|
14348
|
-
|
|
14349
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-3 .ag-cell.ag-cell-value:nth-child(n+4):not(.leaf-cell) {
|
|
14350
|
-
background-color: themify(primary-0);
|
|
14351
|
-
}
|
|
14352
|
-
|
|
14353
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-3 .ag-cell.ag-cell-value:nth-child(n+4).even {
|
|
14354
|
-
background-color: themify(primary-100);
|
|
14355
|
-
}
|
|
14356
|
-
|
|
14357
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-4 .ag-cell.ag-cell-value:nth-child(n+5):not(.leaf-cell) {
|
|
14358
|
-
background-color: themify(primary-0);
|
|
14359
|
-
}
|
|
14360
|
-
|
|
14361
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-4 .ag-cell.ag-cell-value:nth-child(n+5).even {
|
|
14362
|
-
background-color: themify(primary-100);
|
|
14363
|
-
}
|
|
14364
|
-
|
|
14365
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-5 .ag-cell.ag-cell-value:nth-child(n+6):not(.leaf-cell) {
|
|
14366
|
-
background-color: themify(primary-0);
|
|
14367
|
-
}
|
|
14368
|
-
|
|
14369
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-5 .ag-cell.ag-cell-value:nth-child(n+6).even {
|
|
14370
|
-
background-color: themify(primary-100);
|
|
14371
|
-
}
|
|
14372
|
-
|
|
14373
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-6 .ag-cell.ag-cell-value:nth-child(n+7):not(.leaf-cell) {
|
|
14374
|
-
background-color: themify(primary-0);
|
|
14375
|
-
}
|
|
14376
|
-
|
|
14377
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-6 .ag-cell.ag-cell-value:nth-child(n+7).even {
|
|
14378
|
-
background-color: themify(primary-100);
|
|
14379
|
-
}
|
|
14380
|
-
|
|
14381
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-7 .ag-cell.ag-cell-value:nth-child(n+8):not(.leaf-cell) {
|
|
14382
|
-
background-color: themify(primary-0);
|
|
14383
|
-
}
|
|
14384
|
-
|
|
14385
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-7 .ag-cell.ag-cell-value:nth-child(n+8).even {
|
|
14386
|
-
background-color: themify(primary-100);
|
|
14387
|
-
}
|
|
14388
|
-
|
|
14389
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-8 .ag-cell.ag-cell-value:nth-child(n+9):not(.leaf-cell) {
|
|
14390
|
-
background-color: themify(primary-0);
|
|
14391
|
-
}
|
|
14392
|
-
|
|
14393
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-8 .ag-cell.ag-cell-value:nth-child(n+9).even {
|
|
14394
|
-
background-color: themify(primary-100);
|
|
14395
|
-
}
|
|
14396
|
-
|
|
14397
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-9 .ag-cell.ag-cell-value:nth-child(n+10):not(.leaf-cell) {
|
|
14398
|
-
background-color: themify(primary-0);
|
|
14399
|
-
}
|
|
14400
|
-
|
|
14401
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-9 .ag-cell.ag-cell-value:nth-child(n+10).even {
|
|
14402
|
-
background-color: themify(primary-100);
|
|
14403
|
-
}
|
|
14404
|
-
|
|
14405
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-10 .ag-cell.ag-cell-value:nth-child(n+11):not(.leaf-cell) {
|
|
14406
|
-
background-color: themify(primary-0);
|
|
14407
|
-
}
|
|
14408
|
-
|
|
14409
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-10 .ag-cell.ag-cell-value:nth-child(n+11).even {
|
|
14410
|
-
background-color: themify(primary-100);
|
|
14411
|
-
}
|
|
14412
|
-
|
|
14413
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-11 .ag-cell.ag-cell-value:nth-child(n+12):not(.leaf-cell) {
|
|
14414
|
-
background-color: themify(primary-0);
|
|
14415
|
-
}
|
|
14416
|
-
|
|
14417
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-11 .ag-cell.ag-cell-value:nth-child(n+12).even {
|
|
14418
|
-
background-color: themify(primary-100);
|
|
14419
|
-
}
|
|
14420
|
-
|
|
14421
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-12 .ag-cell.ag-cell-value:nth-child(n+13):not(.leaf-cell) {
|
|
14422
|
-
background-color: themify(primary-0);
|
|
14423
|
-
}
|
|
14424
|
-
|
|
14425
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-12 .ag-cell.ag-cell-value:nth-child(n+13).even {
|
|
14426
|
-
background-color: themify(primary-100);
|
|
14427
|
-
}
|
|
14428
|
-
|
|
14429
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-13 .ag-cell.ag-cell-value:nth-child(n+14):not(.leaf-cell) {
|
|
14430
|
-
background-color: themify(primary-0);
|
|
14431
|
-
}
|
|
14432
|
-
|
|
14433
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-13 .ag-cell.ag-cell-value:nth-child(n+14).even {
|
|
14434
|
-
background-color: themify(primary-100);
|
|
14435
|
-
}
|
|
14436
|
-
|
|
14437
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-14 .ag-cell.ag-cell-value:nth-child(n+15):not(.leaf-cell) {
|
|
14438
|
-
background-color: themify(primary-0);
|
|
14439
|
-
}
|
|
14440
|
-
|
|
14441
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group:not(.ag-row-hover).ag-row-level-14 .ag-cell.ag-cell-value:nth-child(n+15).even {
|
|
14442
|
-
background-color: themify(primary-100);
|
|
14443
|
-
}
|
|
14444
|
-
|
|
14445
|
-
.dato-grid.pivot-mode .ag-row.ag-row-group.ag-row-hover .ag-cell.ag-cell-value:not(.leaf-cell) {
|
|
14446
|
-
cursor: pointer;
|
|
14323
|
+
background-color: themify(primary-50);
|
|
14447
14324
|
}
|
|
14448
14325
|
|
|
14449
14326
|
.dato-grid.pivot-mode .ag-cell {
|
|
14450
14327
|
color: themify(primary-500);
|
|
14451
14328
|
}
|
|
14452
14329
|
|
|
14453
|
-
.dato-grid.pivot-mode .ag-cell
|
|
14454
|
-
|
|
14330
|
+
.dato-grid.pivot-mode .ag-cell .ag-row-group-leaf-indent {
|
|
14331
|
+
margin: 0 !important;
|
|
14455
14332
|
}
|
|
14456
14333
|
|
|
14457
14334
|
.dato-grid.pivot-mode .ag-header .ag-header-row .ag-header-cell {
|
|
@@ -14336,21 +14336,32 @@
|
|
|
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
14339
|
params.gridOptions.defaultColDef.cellClass = this.getPivotCellClass.bind(this);
|
|
14342
14340
|
params.gridOptions.autoGroupColumnDef.cellClass = this.getPivotCellClass.bind(this);
|
|
14343
14341
|
}
|
|
14344
14342
|
return params.gridOptions;
|
|
14345
14343
|
};
|
|
14346
14344
|
GridService.prototype.getPivotCellClass = function (params) {
|
|
14347
|
-
var _a = params.node, leafGroup = _a.leafGroup, childIndex = _a.childIndex;
|
|
14348
|
-
var
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14345
|
+
var _a = params.node, leafGroup = _a.leafGroup, childIndex = _a.childIndex, rowGroupIndex = _a.rowGroupIndex;
|
|
14346
|
+
var gridQuery = params.colDef.headerComponentParams.gridQuery;
|
|
14347
|
+
var cellClass = "";
|
|
14348
|
+
if (gridQuery) {
|
|
14349
|
+
var columns = gridQuery.api.columns;
|
|
14350
|
+
var allDisplayedColumns = columns.getAllDisplayedColumns();
|
|
14351
|
+
var col = allDisplayedColumns.find(function (column) {
|
|
14352
|
+
return column.getColId() === params.colDef.colId;
|
|
14353
|
+
});
|
|
14354
|
+
var colIndex = allDisplayedColumns.indexOf(col);
|
|
14355
|
+
if (rowGroupIndex <= colIndex) {
|
|
14356
|
+
if (leafGroup) {
|
|
14357
|
+
if (childIndex % 2 === 0) {
|
|
14358
|
+
/** If row is even */
|
|
14359
|
+
cellClass += ' primary-100-background-color';
|
|
14360
|
+
}
|
|
14361
|
+
}
|
|
14362
|
+
else {
|
|
14363
|
+
cellClass += 'primary-0-background-color pointer dato-simple-bold';
|
|
14364
|
+
}
|
|
14354
14365
|
}
|
|
14355
14366
|
}
|
|
14356
14367
|
return cellClass;
|