@datorama/core 22.13.0-beta.5 → 22.13.0-beta.7

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 CHANGED
@@ -5207,7 +5207,7 @@ dato-list-v2 .checkmark {
5207
5207
  line-height: 19px;
5208
5208
  }
5209
5209
 
5210
- .simple-bold, .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-group-cell .ag-header-group-cell-label span {
5210
+ .simple-bold, .dato-grid.pivot-style .ag-row.ag-row-group .ag-cell.row-group-root-cell, .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-group-cell .ag-header-group-cell-label span {
5211
5211
  font-size: 14px;
5212
5212
  font-weight: 600;
5213
5213
  line-height: 19px;
@@ -11745,7 +11745,7 @@ dato-button-group.is-round-edges dato-button:last-of-type button {
11745
11745
  line-height: 19px;
11746
11746
  }
11747
11747
 
11748
- .simple-bold, .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-group-cell .ag-header-group-cell-label span {
11748
+ .simple-bold, .dato-grid.pivot-style .ag-row.ag-row-group .ag-cell.row-group-root-cell, .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-group-cell .ag-header-group-cell-label span {
11749
11749
  font-size: 14px;
11750
11750
  font-weight: 600;
11751
11751
  line-height: 19px;
@@ -15198,6 +15198,15 @@ dato-input input:disabled:hover {
15198
15198
  background-color: themify(primary-50);
15199
15199
  }
15200
15200
 
15201
+ .dato-grid.pivot-style .ag-row.ag-row-group .ag-cell.even-row-group-leaf-cell {
15202
+ background-color: themify(primary-0);
15203
+ }
15204
+
15205
+ .dato-grid.pivot-style .ag-row.ag-row-group .ag-cell.row-group-root-cell {
15206
+ cursor: pointer;
15207
+ background-color: themify(primary-100);
15208
+ }
15209
+
15201
15210
  .dato-grid.pivot-style .ag-cell {
15202
15211
  color: themify(primary-500);
15203
15212
  }
@@ -13794,7 +13794,7 @@
13794
13794
  _a$3[exports.DatoGridColumnTypes.ItemsCount] = __assign(__assign({}, stringColDef), { cellRenderer: 'DatoGridItemsCountCellComponent' }),
13795
13795
  _a$3[exports.DatoGridColumnTypes.Initials] = __assign(__assign({}, stringColDef), { cellRenderer: 'DatoGridInitialsCellComponent' }),
13796
13796
  _a$3[exports.DatoGridColumnTypes.Avatar] = __assign(__assign({}, stringColDef), { cellRenderer: 'DatoGridAvatarCellComponent' }),
13797
- _a$3), multiSortKey: 'ctrl', suppressPaginationPanel: true, pagination: true, deltaColumnMode: true, loadingOverlayComponentFramework: DatoGridV2LoaderComponent, noRowsOverlayComponentFramework: DatoGridV2NoDataOverlayComponent, defaultColDef: {
13797
+ _a$3), multiSortKey: 'ctrl', suppressPaginationPanel: true, pagination: true, paginateChildRows: true, deltaColumnMode: true, loadingOverlayComponentFramework: DatoGridV2LoaderComponent, noRowsOverlayComponentFramework: DatoGridV2NoDataOverlayComponent, defaultColDef: {
13798
13798
  minWidth: exports.GridMinWidths.Default,
13799
13799
  sortable: true,
13800
13800
  resizable: true,
@@ -15295,8 +15295,8 @@
15295
15295
  * Refer docs - https://www.ag-grid.com/angular-data-grid/cell-styles/#cell-class-rules */
15296
15296
  GridService.prototype.getPivotModeCellClassRules = function () {
15297
15297
  return {
15298
- 'primary-0-background-color': this.isLeafGroupEvenCell.bind(this),
15299
- 'primary-100-background-color pointer dato-simple-bold': this.isRowGroupValuedCell.bind(this)
15298
+ 'even-row-group-leaf-cell': this.isLeafGroupEvenCell.bind(this),
15299
+ 'row-group-root-cell': this.isRowGroupValuedCell.bind(this)
15300
15300
  };
15301
15301
  };
15302
15302
  GridService.prototype.isLeafGroupEvenCell = function (params) {
@@ -15819,12 +15819,6 @@
15819
15819
  });
15820
15820
  };
15821
15821
  DatoGridControllerComponent.prototype.normalizeOptions = function () {
15822
- /**
15823
- * When treeData is enabled, Pagination must be turned off
15824
- */
15825
- if (this.gridOptions.treeData) {
15826
- this.gridOptions = __assign(__assign({}, this.gridOptions), { pagination: false });
15827
- }
15828
15822
  var params = {
15829
15823
  gridOptions: this.gridOptions,
15830
15824
  customHeadersTemplates: this.customHeadersTemplates,
@@ -16661,7 +16655,7 @@
16661
16655
  */
16662
16656
  DatoGridPaginationV2Component.prototype.calculateRowsCount = function (totalRows) {
16663
16657
  this.totalPages = totalRows ? Math.ceil(totalRows / this.rowsPerPage) : this.gridApi.paginationGetTotalPages();
16664
- this.rowCount = this.gridApi.getDisplayedRowCount();
16658
+ this.rowCount = this.gridApi.paginationGetRowCount();
16665
16659
  this.setRowsDisplayRange(this.pageNumbersDisplay.currentPage);
16666
16660
  this.cdr.detectChanges();
16667
16661
  };