@datorama/core 22.12.1-beta.3 → 22.12.1

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.
@@ -11945,9 +11945,6 @@ let DatoGridColumnHeaderComponent = class DatoGridColumnHeaderComponent {
11945
11945
  else {
11946
11946
  this.params.setSort(sort);
11947
11947
  }
11948
- if (gridQuery.getGridOptions().pivotGridStyle) {
11949
- this.params.api.redrawRows();
11950
- }
11951
11948
  });
11952
11949
  this.sortingInfo$ = gridQuery
11953
11950
  .waitForGrid(() => gridQuery.gridRef.sortChanged)
@@ -12052,7 +12049,7 @@ const defaultGridOptions = Object.assign({
12052
12049
  type: DatoGridColumnTypes.String,
12053
12050
  menuTabs: ['filterMenuTab'],
12054
12051
  headerComponentFramework: DatoGridColumnHeaderComponent
12055
- }, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1, pivotGridStyle: false }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
12052
+ }, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1, usePivotGridStyle: false }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
12056
12053
  const DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
12057
12054
  CLIENT: 200,
12058
12055
  SERVER: 250
@@ -12630,10 +12627,11 @@ let GridService = class GridService {
12630
12627
  this.initPivotSecondaryColsProcess(params);
12631
12628
  params.gridOptions.saveSettings = false;
12632
12629
  }
12633
- if (params.gridOptions.pivotGridStyle) {
12634
- params.gridOptions.rowHeight = 30;
12630
+ if (params.gridOptions.usePivotGridStyle) {
12631
+ const rowHeight = 30;
12632
+ params.gridOptions.rowHeight = rowHeight;
12635
12633
  params.gridOptions.defaultColDef = Object.assign(Object.assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: params => {
12636
- const style = { lineHeight: '30px' };
12634
+ const style = { lineHeight: `${rowHeight}px` };
12637
12635
  if (params.colDef.type === DatoGridColumnTypes.Number) {
12638
12636
  style.textAlign = 'end';
12639
12637
  }
@@ -12890,6 +12888,9 @@ let GridService = class GridService {
12890
12888
  }
12891
12889
  this.updateSettings({ sort: sortToApply });
12892
12890
  this.api.grid.setSortModel([sortToApply]);
12891
+ if (this.gridRef.gridOptions.usePivotGridStyle) {
12892
+ this.api.grid.redrawRows();
12893
+ }
12893
12894
  }
12894
12895
  }
12895
12896
  }
@@ -14285,7 +14286,7 @@ let DatoGridV2Component = class DatoGridV2Component {
14285
14286
  return this.gridOptions ? this.gridOptions.enableV2_1 : false;
14286
14287
  }
14287
14288
  get isPivotStyle() {
14288
- return this.gridOptions ? this.gridOptions.pivotGridStyle : false;
14289
+ return this.gridOptions && this.gridOptions.usePivotGridStyle;
14289
14290
  }
14290
14291
  };
14291
14292
  DatoGridV2Component.ctorParameters = () => [
@@ -22862,7 +22863,7 @@ function fixNgLeaks() {
22862
22863
  };
22863
22864
  }
22864
22865
 
22865
- window.coreVersion = '22.12.0';
22866
+ window.coreVersion = '22.12.1';
22866
22867
 
22867
22868
  /**
22868
22869
  * @license