@datorama/core 22.12.1-beta.4 → 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.
@@ -12049,7 +12049,7 @@ const defaultGridOptions = Object.assign({
12049
12049
  type: DatoGridColumnTypes.String,
12050
12050
  menuTabs: ['filterMenuTab'],
12051
12051
  headerComponentFramework: DatoGridColumnHeaderComponent
12052
- }, 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 } : {}));
12053
12053
  const DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
12054
12054
  CLIENT: 200,
12055
12055
  SERVER: 250
@@ -12627,10 +12627,11 @@ let GridService = class GridService {
12627
12627
  this.initPivotSecondaryColsProcess(params);
12628
12628
  params.gridOptions.saveSettings = false;
12629
12629
  }
12630
- if (params.gridOptions.pivotGridStyle) {
12631
- params.gridOptions.rowHeight = 30;
12630
+ if (params.gridOptions.usePivotGridStyle) {
12631
+ const rowHeight = 30;
12632
+ params.gridOptions.rowHeight = rowHeight;
12632
12633
  params.gridOptions.defaultColDef = Object.assign(Object.assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: params => {
12633
- const style = { lineHeight: '30px' };
12634
+ const style = { lineHeight: `${rowHeight}px` };
12634
12635
  if (params.colDef.type === DatoGridColumnTypes.Number) {
12635
12636
  style.textAlign = 'end';
12636
12637
  }
@@ -12887,7 +12888,7 @@ let GridService = class GridService {
12887
12888
  }
12888
12889
  this.updateSettings({ sort: sortToApply });
12889
12890
  this.api.grid.setSortModel([sortToApply]);
12890
- if (this.gridRef.gridOptions.pivotGridStyle) {
12891
+ if (this.gridRef.gridOptions.usePivotGridStyle) {
12891
12892
  this.api.grid.redrawRows();
12892
12893
  }
12893
12894
  }
@@ -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