@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.
package/bundle.scss CHANGED
@@ -14320,10 +14320,6 @@ dato-input input:disabled:hover {
14320
14320
  */
14321
14321
  }
14322
14322
 
14323
- .dato-grid.pivot-style .ag-row.ag-row-group .bottom-border {
14324
- border-bottom: 1px solid themify(primary-200);
14325
- }
14326
-
14327
14323
  .dato-grid.pivot-style .ag-row.ag-row-group:not(.ag-row-hover) {
14328
14324
  background-color: themify(primary-50);
14329
14325
  }
@@ -13736,7 +13736,7 @@
13736
13736
  type: exports.DatoGridColumnTypes.String,
13737
13737
  menuTabs: ['filterMenuTab'],
13738
13738
  headerComponentFramework: DatoGridColumnHeaderComponent
13739
- }, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: exports.GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1, pivotGridStyle: false }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
13739
+ }, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: exports.GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1, usePivotGridStyle: false }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
13740
13740
  var DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
13741
13741
  CLIENT: 200,
13742
13742
  SERVER: 250
@@ -14355,10 +14355,11 @@
14355
14355
  this.initPivotSecondaryColsProcess(params);
14356
14356
  params.gridOptions.saveSettings = false;
14357
14357
  }
14358
- if (params.gridOptions.pivotGridStyle) {
14359
- params.gridOptions.rowHeight = 30;
14358
+ if (params.gridOptions.usePivotGridStyle) {
14359
+ var rowHeight_1 = 30;
14360
+ params.gridOptions.rowHeight = rowHeight_1;
14360
14361
  params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
14361
- var style = { lineHeight: '30px' };
14362
+ var style = { lineHeight: rowHeight_1 + "px" };
14362
14363
  if (params.colDef.type === exports.DatoGridColumnTypes.Number) {
14363
14364
  style.textAlign = 'end';
14364
14365
  }
@@ -14651,7 +14652,7 @@
14651
14652
  }
14652
14653
  this.updateSettings({ sort: sortToApply });
14653
14654
  this.api.grid.setSortModel([sortToApply]);
14654
- if (this.gridRef.gridOptions.pivotGridStyle) {
14655
+ if (this.gridRef.gridOptions.usePivotGridStyle) {
14655
14656
  this.api.grid.redrawRows();
14656
14657
  }
14657
14658
  }
@@ -16201,7 +16202,7 @@
16201
16202
  });
16202
16203
  Object.defineProperty(DatoGridV2Component.prototype, "isPivotStyle", {
16203
16204
  get: function () {
16204
- return this.gridOptions ? this.gridOptions.pivotGridStyle : false;
16205
+ return this.gridOptions && this.gridOptions.usePivotGridStyle;
16205
16206
  },
16206
16207
  enumerable: true,
16207
16208
  configurable: true
@@ -25627,7 +25628,7 @@
25627
25628
  };
25628
25629
  }
25629
25630
 
25630
- window.coreVersion = '22.12.0';
25631
+ window.coreVersion = '22.12.1';
25631
25632
 
25632
25633
  exports.APP_TRANSLATE = APP_TRANSLATE;
25633
25634
  exports.AceService = AceService;