@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.
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
  }
@@ -13628,9 +13628,6 @@
13628
13628
  else {
13629
13629
  _this.params.setSort(sort);
13630
13630
  }
13631
- if (gridQuery.getGridOptions().pivotGridStyle) {
13632
- _this.params.api.redrawRows();
13633
- }
13634
13631
  });
13635
13632
  this.sortingInfo$ = gridQuery
13636
13633
  .waitForGrid(function () { return gridQuery.gridRef.sortChanged; })
@@ -13739,7 +13736,7 @@
13739
13736
  type: exports.DatoGridColumnTypes.String,
13740
13737
  menuTabs: ['filterMenuTab'],
13741
13738
  headerComponentFramework: DatoGridColumnHeaderComponent
13742
- }, 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 } : {}));
13743
13740
  var DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
13744
13741
  CLIENT: 200,
13745
13742
  SERVER: 250
@@ -14358,10 +14355,11 @@
14358
14355
  this.initPivotSecondaryColsProcess(params);
14359
14356
  params.gridOptions.saveSettings = false;
14360
14357
  }
14361
- if (params.gridOptions.pivotGridStyle) {
14362
- params.gridOptions.rowHeight = 30;
14358
+ if (params.gridOptions.usePivotGridStyle) {
14359
+ var rowHeight_1 = 30;
14360
+ params.gridOptions.rowHeight = rowHeight_1;
14363
14361
  params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
14364
- var style = { lineHeight: '30px' };
14362
+ var style = { lineHeight: rowHeight_1 + "px" };
14365
14363
  if (params.colDef.type === exports.DatoGridColumnTypes.Number) {
14366
14364
  style.textAlign = 'end';
14367
14365
  }
@@ -14654,6 +14652,9 @@
14654
14652
  }
14655
14653
  this.updateSettings({ sort: sortToApply });
14656
14654
  this.api.grid.setSortModel([sortToApply]);
14655
+ if (this.gridRef.gridOptions.usePivotGridStyle) {
14656
+ this.api.grid.redrawRows();
14657
+ }
14657
14658
  }
14658
14659
  }
14659
14660
  };
@@ -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;