@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.
@@ -13429,9 +13429,6 @@ var DatoGridColumnHeaderComponent = /** @class */ (function () {
13429
13429
  else {
13430
13430
  _this.params.setSort(sort);
13431
13431
  }
13432
- if (gridQuery.getGridOptions().pivotGridStyle) {
13433
- _this.params.api.redrawRows();
13434
- }
13435
13432
  });
13436
13433
  this.sortingInfo$ = gridQuery
13437
13434
  .waitForGrid(function () { return gridQuery.gridRef.sortChanged; })
@@ -13540,7 +13537,7 @@ var defaultGridOptions = __assign({
13540
13537
  type: DatoGridColumnTypes.String,
13541
13538
  menuTabs: ['filterMenuTab'],
13542
13539
  headerComponentFramework: DatoGridColumnHeaderComponent
13543
- }, 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 } : {}));
13544
13541
  var DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
13545
13542
  CLIENT: 200,
13546
13543
  SERVER: 250
@@ -14159,10 +14156,11 @@ var GridService = /** @class */ (function () {
14159
14156
  this.initPivotSecondaryColsProcess(params);
14160
14157
  params.gridOptions.saveSettings = false;
14161
14158
  }
14162
- if (params.gridOptions.pivotGridStyle) {
14163
- params.gridOptions.rowHeight = 30;
14159
+ if (params.gridOptions.usePivotGridStyle) {
14160
+ var rowHeight_1 = 30;
14161
+ params.gridOptions.rowHeight = rowHeight_1;
14164
14162
  params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
14165
- var style = { lineHeight: '30px' };
14163
+ var style = { lineHeight: rowHeight_1 + "px" };
14166
14164
  if (params.colDef.type === DatoGridColumnTypes.Number) {
14167
14165
  style.textAlign = 'end';
14168
14166
  }
@@ -14455,6 +14453,9 @@ var GridService = /** @class */ (function () {
14455
14453
  }
14456
14454
  this.updateSettings({ sort: sortToApply });
14457
14455
  this.api.grid.setSortModel([sortToApply]);
14456
+ if (this.gridRef.gridOptions.usePivotGridStyle) {
14457
+ this.api.grid.redrawRows();
14458
+ }
14458
14459
  }
14459
14460
  }
14460
14461
  };
@@ -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