ag-grid-community 31.0.0 → 31.0.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.
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
3
- * @version v31.0.0
3
+ * @version v31.0.1
4
4
  * @link https://www.ag-grid.com/
5
5
  * @license MIT
6
6
  */
7
- // @ag-grid-community/all-modules v31.0.0
7
+ // @ag-grid-community/all-modules v31.0.1
8
8
  define("agGrid", [], function() { return /******/ (function(modules) { // webpackBootstrap
9
9
  /******/ // The module cache
10
10
  /******/ var installedModules = {};
@@ -738,7 +738,7 @@ __webpack_require__.r(__webpack_exports__);
738
738
  /* harmony import */ var _events_mjs__WEBPACK_IMPORTED_MODULE_167__ = __webpack_require__(21);
739
739
  /* empty/unused harmony star reexport *//**
740
740
  * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
741
- * @version v31.0.0
741
+ * @version v31.0.1
742
742
  * @link https://www.ag-grid.com/
743
743
  * @license MIT
744
744
  */
@@ -4120,7 +4120,7 @@ let ColumnModel = class ColumnModel extends _context_beanStub_mjs__WEBPACK_IMPOR
4120
4120
  this.addManagedPropertyListeners(['groupDisplayType', 'treeData', 'treeDataDisplayType', 'groupHideOpenParents'], () => this.buildAutoGroupColumns());
4121
4121
  this.addManagedPropertyListener('autoGroupColumnDef', () => this.onAutoGroupColumnDefChanged());
4122
4122
  this.addManagedPropertyListeners(['defaultColDef', 'columnTypes', 'suppressFieldDotNotation'], (params) => this.onSharedColDefChanged(params.source));
4123
- this.addManagedPropertyListener('pivotMode', () => this.setPivotMode(this.gridOptionsService.get('pivotMode')));
4123
+ this.addManagedPropertyListener('pivotMode', event => this.setPivotMode(this.gridOptionsService.get('pivotMode'), event.source));
4124
4124
  this.addManagedListener(this.eventService, _events_mjs__WEBPACK_IMPORTED_MODULE_2__["Events"].EVENT_FIRST_DATA_RENDERED, () => this.onFirstDataRendered());
4125
4125
  }
4126
4126
  buildAutoGroupColumns() {
@@ -18312,7 +18312,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
18312
18312
 
18313
18313
  class GroupCellRendererCtrl extends _context_beanStub_mjs__WEBPACK_IMPORTED_MODULE_1__["BeanStub"] {
18314
18314
  init(comp, eGui, eCheckbox, eExpanded, eContracted, compClass, params) {
18315
- var _a, _b;
18315
+ var _a, _b, _c, _d;
18316
18316
  this.params = params;
18317
18317
  this.eGui = eGui;
18318
18318
  this.eCheckbox = eCheckbox;
@@ -18344,8 +18344,9 @@ class GroupCellRendererCtrl extends _context_beanStub_mjs__WEBPACK_IMPORTED_MODU
18344
18344
  this.findDisplayedGroupNode();
18345
18345
  if (!topLevelFooter) {
18346
18346
  const showingFooterTotal = params.node.footer && params.node.rowGroupIndex === this.columnModel.getRowGroupColumns().findIndex(c => { var _a; return c.getColId() === ((_a = params.colDef) === null || _a === void 0 ? void 0 : _a.showRowGroup); });
18347
- // if we're not showing a group value
18348
- const isAlwaysShowing = this.gridOptionsService.get('groupDisplayType') === 'singleColumn' || this.gridOptionsService.get('treeData');
18347
+ // if we're always showing a group value
18348
+ const isAlwaysShowing = this.gridOptionsService.get('groupDisplayType') != 'multipleColumns' || this.gridOptionsService.get('treeData');
18349
+ // if the cell is populated with a parent value due to `showOpenedGroup`
18349
18350
  const showOpenGroupValue = (isAlwaysShowing || (this.gridOptionsService.get('showOpenedGroup') && !params.node.footer && ((!params.node.group ||
18350
18351
  (params.node.rowGroupIndex != null &&
18351
18352
  params.node.rowGroupIndex > this.columnModel.getRowGroupColumns().findIndex(c => { var _a; return c.getColId() === ((_a = params.colDef) === null || _a === void 0 ? void 0 : _a.showRowGroup); }))))));
@@ -18353,8 +18354,10 @@ class GroupCellRendererCtrl extends _context_beanStub_mjs__WEBPACK_IMPORTED_MODU
18353
18354
  const leafWithValues = !node.group && (((_a = this.params.colDef) === null || _a === void 0 ? void 0 : _a.field) || ((_b = this.params.colDef) === null || _b === void 0 ? void 0 : _b.valueGetter));
18354
18355
  // doesn't have expand/collapse chevron
18355
18356
  const isExpandable = this.isExpandable();
18357
+ // is showing pivot leaf cell
18358
+ const showPivotModeLeafValue = this.columnModel.isPivotMode() && node.leafGroup && ((_c = node.rowGroupColumn) === null || _c === void 0 ? void 0 : _c.getColId()) === ((_d = params.column) === null || _d === void 0 ? void 0 : _d.getColDef().showRowGroup);
18356
18359
  // if not showing any values or chevron, skip cell.
18357
- const canSkipRenderingCell = !this.showingValueForOpenedParent && !isExpandable && !leafWithValues && !showOpenGroupValue && !showingFooterTotal;
18360
+ const canSkipRenderingCell = !this.showingValueForOpenedParent && !isExpandable && !leafWithValues && !showOpenGroupValue && !showingFooterTotal && !showPivotModeLeafValue;
18358
18361
  if (canSkipRenderingCell) {
18359
18362
  return;
18360
18363
  }
@@ -36691,7 +36694,7 @@ class HeaderCellCtrl extends _abstractCell_abstractHeaderCellCtrl_mjs__WEBPACK_I
36691
36694
  return;
36692
36695
  }
36693
36696
  comp.addOrRemoveCssClass('ag-header-span-total', isSpanningTotal);
36694
- const pivotMode = gridOptionsService.get('pivotMode');
36697
+ const pivotMode = columnModel.isPivotMode();
36695
36698
  const groupHeaderHeight = pivotMode
36696
36699
  ? columnModel.getPivotGroupHeaderHeight()
36697
36700
  : columnModel.getGroupHeaderHeight();
@@ -54410,7 +54413,7 @@ let StateService = class StateService extends _context_beanStub_mjs__WEBPACK_IMP
54410
54413
  });
54411
54414
  defaultState.pivot = null;
54412
54415
  defaultState.pivotIndex = null;
54413
- this.columnModel.setPivotMode(pivotState.pivotMode);
54416
+ this.gridOptionsService.updateGridOptions({ options: { pivotMode: pivotState.pivotMode }, source: 'gridInitializing' });
54414
54417
  }
54415
54418
  if (columnPinningState) {
54416
54419
  columnPinningState.leftColIds.forEach(colId => {
@@ -57270,7 +57273,7 @@ ImmutableService = __decorate([
57270
57273
  __webpack_require__.r(__webpack_exports__);
57271
57274
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
57272
57275
  // DO NOT UPDATE MANUALLY: Generated from script during build time
57273
- const VERSION = '31.0.0';
57276
+ const VERSION = '31.0.1';
57274
57277
 
57275
57278
 
57276
57279
  /***/ }),
@@ -58118,7 +58121,7 @@ GridSerializer = __decorate([
58118
58121
  __webpack_require__.r(__webpack_exports__);
58119
58122
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
58120
58123
  // DO NOT UPDATE MANUALLY: Generated from script during build time
58121
- const VERSION = '31.0.0';
58124
+ const VERSION = '31.0.1';
58122
58125
 
58123
58126
 
58124
58127
  /***/ }),
@@ -59170,7 +59173,7 @@ __decorate([
59170
59173
  __webpack_require__.r(__webpack_exports__);
59171
59174
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
59172
59175
  // DO NOT UPDATE MANUALLY: Generated from script during build time
59173
- const VERSION = '31.0.0';
59176
+ const VERSION = '31.0.1';
59174
59177
 
59175
59178
 
59176
59179
  /***/ }),