@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.
@@ -13537,7 +13537,7 @@ var defaultGridOptions = __assign({
13537
13537
  type: DatoGridColumnTypes.String,
13538
13538
  menuTabs: ['filterMenuTab'],
13539
13539
  headerComponentFramework: DatoGridColumnHeaderComponent
13540
- }, 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 } : {}));
13540
+ }, 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 } : {}));
13541
13541
  var DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
13542
13542
  CLIENT: 200,
13543
13543
  SERVER: 250
@@ -14156,10 +14156,11 @@ var GridService = /** @class */ (function () {
14156
14156
  this.initPivotSecondaryColsProcess(params);
14157
14157
  params.gridOptions.saveSettings = false;
14158
14158
  }
14159
- if (params.gridOptions.pivotGridStyle) {
14160
- params.gridOptions.rowHeight = 30;
14159
+ if (params.gridOptions.usePivotGridStyle) {
14160
+ var rowHeight_1 = 30;
14161
+ params.gridOptions.rowHeight = rowHeight_1;
14161
14162
  params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
14162
- var style = { lineHeight: '30px' };
14163
+ var style = { lineHeight: rowHeight_1 + "px" };
14163
14164
  if (params.colDef.type === DatoGridColumnTypes.Number) {
14164
14165
  style.textAlign = 'end';
14165
14166
  }
@@ -14452,7 +14453,7 @@ var GridService = /** @class */ (function () {
14452
14453
  }
14453
14454
  this.updateSettings({ sort: sortToApply });
14454
14455
  this.api.grid.setSortModel([sortToApply]);
14455
- if (this.gridRef.gridOptions.pivotGridStyle) {
14456
+ if (this.gridRef.gridOptions.usePivotGridStyle) {
14456
14457
  this.api.grid.redrawRows();
14457
14458
  }
14458
14459
  }
@@ -16002,7 +16003,7 @@ var DatoGridV2Component = /** @class */ (function () {
16002
16003
  });
16003
16004
  Object.defineProperty(DatoGridV2Component.prototype, "isPivotStyle", {
16004
16005
  get: function () {
16005
- return this.gridOptions ? this.gridOptions.pivotGridStyle : false;
16006
+ return this.gridOptions && this.gridOptions.usePivotGridStyle;
16006
16007
  },
16007
16008
  enumerable: true,
16008
16009
  configurable: true
@@ -25428,7 +25429,7 @@ function fixNgLeaks() {
25428
25429
  };
25429
25430
  }
25430
25431
 
25431
- window.coreVersion = '22.12.0';
25432
+ window.coreVersion = '22.12.1';
25432
25433
 
25433
25434
  /**
25434
25435
  * @license