@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.
@@ -12101,7 +12101,7 @@ const defaultGridOptions = Object.assign({
12101
12101
  [DatoGridColumnTypes.ItemsCount]: Object.assign(Object.assign({}, stringColDef), { cellRenderer: 'DatoGridItemsCountCellComponent' }),
12102
12102
  [DatoGridColumnTypes.Initials]: Object.assign(Object.assign({}, stringColDef), { cellRenderer: 'DatoGridInitialsCellComponent' }),
12103
12103
  [DatoGridColumnTypes.Avatar]: Object.assign(Object.assign({}, stringColDef), { cellRenderer: 'DatoGridAvatarCellComponent' })
12104
- }, multiSortKey: 'ctrl', suppressPaginationPanel: true, pagination: true, deltaColumnMode: true, loadingOverlayComponentFramework: DatoGridV2LoaderComponent, noRowsOverlayComponentFramework: DatoGridV2NoDataOverlayComponent, defaultColDef: {
12104
+ }, multiSortKey: 'ctrl', suppressPaginationPanel: true, pagination: true, paginateChildRows: true, deltaColumnMode: true, loadingOverlayComponentFramework: DatoGridV2LoaderComponent, noRowsOverlayComponentFramework: DatoGridV2NoDataOverlayComponent, defaultColDef: {
12105
12105
  minWidth: GridMinWidths.Default,
12106
12106
  sortable: true,
12107
12107
  resizable: true,
@@ -13456,8 +13456,8 @@ let GridService = class GridService {
13456
13456
  * Refer docs - https://www.ag-grid.com/angular-data-grid/cell-styles/#cell-class-rules */
13457
13457
  getPivotModeCellClassRules() {
13458
13458
  return {
13459
- 'primary-0-background-color': this.isLeafGroupEvenCell.bind(this),
13460
- 'primary-100-background-color pointer dato-simple-bold': this.isRowGroupValuedCell.bind(this)
13459
+ 'even-row-group-leaf-cell': this.isLeafGroupEvenCell.bind(this),
13460
+ 'row-group-root-cell': this.isRowGroupValuedCell.bind(this)
13461
13461
  };
13462
13462
  }
13463
13463
  isLeafGroupEvenCell(params) {
@@ -13951,12 +13951,6 @@ let DatoGridControllerComponent = class DatoGridControllerComponent {
13951
13951
  });
13952
13952
  }
13953
13953
  normalizeOptions() {
13954
- /**
13955
- * When treeData is enabled, Pagination must be turned off
13956
- */
13957
- if (this.gridOptions.treeData) {
13958
- this.gridOptions = Object.assign(Object.assign({}, this.gridOptions), { pagination: false });
13959
- }
13960
13954
  const params = {
13961
13955
  gridOptions: this.gridOptions,
13962
13956
  customHeadersTemplates: this.customHeadersTemplates,
@@ -14691,7 +14685,7 @@ let DatoGridPaginationV2Component = class DatoGridPaginationV2Component {
14691
14685
  */
14692
14686
  calculateRowsCount(totalRows) {
14693
14687
  this.totalPages = totalRows ? Math.ceil(totalRows / this.rowsPerPage) : this.gridApi.paginationGetTotalPages();
14694
- this.rowCount = this.gridApi.getDisplayedRowCount();
14688
+ this.rowCount = this.gridApi.paginationGetRowCount();
14695
14689
  this.setRowsDisplayRange(this.pageNumbersDisplay.currentPage);
14696
14690
  this.cdr.detectChanges();
14697
14691
  }