ag-grid-enterprise 33.3.1 → 33.3.2

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.
@@ -31811,7 +31811,7 @@ class FindService extends ag_grid_community_1.BeanStub {
31811
31811
  }
31812
31812
  const nodeWillBeHiddenByOpenParent = node.level > 0 &&
31813
31813
  gos.get('groupHideOpenParents') &&
31814
- node.parent?.childrenAfterSort?.[0] === node &&
31814
+ node.parent?.getFirstChild() === node &&
31815
31815
  !node.parent?.expanded;
31816
31816
  for (const column of allCols) {
31817
31817
  if ((0, ag_grid_community_1.isRowNumberCol)(column) || (0, ag_grid_community_1.isColumnSelectionCol)(column)) {
@@ -32589,7 +32589,7 @@ class LicenseManager {
32589
32589
  }
32590
32590
  }
32591
32591
  exports.LicenseManager = LicenseManager;
32592
- LicenseManager.RELEASE_INFORMATION = 'MTc0NzgyMDY5ODM3Nw==';
32592
+ LicenseManager.RELEASE_INFORMATION = 'MTc0ODQ1MzQ2MTA5Mg==';
32593
32593
 
32594
32594
 
32595
32595
  /***/ }),
@@ -37181,7 +37181,9 @@ class PivotResultColsService extends ag_grid_community_1.BeanStub {
37181
37181
  }
37182
37182
  if (colDefs) {
37183
37183
  this.processPivotResultColDef(colDefs);
37184
- const balancedTreeResult = (0, ag_grid_community_1._createColumnTreeWithIds)(this.beans, colDefs, false, this.pivotResultCols?.tree || this.previousPivotResultCols || undefined, source);
37184
+ // if the attempt has come from the API, can't guarantee the user has provided IDs.
37185
+ const createColTreeFunc = source === 'api' ? ag_grid_community_1._createColumnTree : ag_grid_community_1._createColumnTreeWithIds;
37186
+ const balancedTreeResult = createColTreeFunc(this.beans, colDefs, false, this.pivotResultCols?.tree || this.previousPivotResultCols || undefined, source);
37185
37187
  (0, ag_grid_community_1._destroyColumnTree)(this.beans, this.pivotResultCols?.tree, balancedTreeResult.columnTree);
37186
37188
  const tree = balancedTreeResult.columnTree;
37187
37189
  const treeDepth = balancedTreeResult.treeDepth;
@@ -41849,10 +41851,6 @@ class BaseExpansionService extends ag_grid_community_1.BeanStub {
41849
41851
  rowNode.dispatchRowEvent('expandedChanged');
41850
41852
  const event = { ...(0, ag_grid_community_1._createGlobalRowEvent)(rowNode, this.gos, 'rowGroupOpened'), expanded, event: e || null };
41851
41853
  this.dispatchExpandedEvent(event, forceSync);
41852
- // when using footers we need to refresh the group row, as the aggregation
41853
- // values jump between group and footer, because the footer can be callback
41854
- // we refresh regardless as the output of the callback could be a moving target
41855
- this.beans.rowRenderer.refreshCells({ rowNodes: [rowNode] });
41856
41854
  }
41857
41855
  isExpandable(rowNode) {
41858
41856
  if (rowNode.footer) {
@@ -41975,6 +41973,11 @@ class ClientSideExpansionService extends baseExpansionService_1.BaseExpansionSer
41975
41973
  const func = () => {
41976
41974
  this.rowModel.onRowGroupOpened();
41977
41975
  this.events.forEach((e) => this.eventSvc.dispatchEvent(e));
41976
+ // when using footers we need to refresh the group row, as the aggregation
41977
+ // values jump between group and footer, because the footer can be callback
41978
+ // we refresh regardless as the output of the callback could be a moving target
41979
+ const nodes = this.events.map((e) => e.node);
41980
+ this.beans.rowRenderer.refreshCells({ rowNodes: nodes });
41978
41981
  this.events = [];
41979
41982
  };
41980
41983
  if (forceSync) {
@@ -43002,7 +43005,7 @@ function _isHiddenParent(node, ancestor, gos) {
43002
43005
  return false;
43003
43006
  }
43004
43007
  for (let i = 0; i < levelDiff; i++) {
43005
- const isFirstChild = currentNode.parent?.childrenAfterSort?.[0] === currentNode;
43008
+ const isFirstChild = currentNode.parent?.getFirstChild() === currentNode;
43006
43009
  if (!isFirstChild) {
43007
43010
  return false;
43008
43011
  }
@@ -43125,7 +43128,8 @@ class ShowRowGroupColValueService extends ag_grid_community_1.BeanStub {
43125
43128
  const valueSvc = this.beans.valueSvc;
43126
43129
  const { displayedNode, value } = groupValue;
43127
43130
  const groupedCol = displayedNode.rowGroupColumn;
43128
- const isShowingGroupCell = groupedCol && column?.isRowGroupDisplayed(groupedCol.colId);
43131
+ const isFullWidthGroup = displayedNode.group && !column;
43132
+ const isShowingGroupCell = groupedCol && (isFullWidthGroup || column?.isRowGroupDisplayed(groupedCol.colId));
43129
43133
  // for grouped cells; try to use the underlying col formatter
43130
43134
  if (isShowingGroupCell) {
43131
43135
  // if exporting, check if we should use the value formatter for export
@@ -43178,7 +43182,7 @@ class ShowRowGroupColValueService extends ag_grid_community_1.BeanStub {
43178
43182
  }
43179
43183
  let pointer = node;
43180
43184
  while (pointer && pointer.rowGroupColumn?.getId() != showRowGroup) {
43181
- const isFirstChild = pointer === pointer.parent?.childrenAfterSort?.[0];
43185
+ const isFirstChild = pointer === pointer.parent?.getFirstChild();
43182
43186
  if (!isShowOpenedGroupValue && !isFirstChild) {
43183
43187
  // if not first child and not showOpenedGroup then groupHideOpenParents doesn't
43184
43188
  // display the parent value
@@ -46180,6 +46184,10 @@ class ServerSideExpansionService extends baseExpansionService_1.BaseExpansionSer
46180
46184
  }
46181
46185
  dispatchExpandedEvent(event) {
46182
46186
  this.eventSvc.dispatchEvent(event);
46187
+ // when using footers we need to refresh the group row, as the aggregation
46188
+ // values jump between group and footer, because the footer can be callback
46189
+ // we refresh regardless as the output of the callback could be a moving target
46190
+ this.beans.rowRenderer.refreshCells({ rowNodes: [event.node] });
46183
46191
  }
46184
46192
  }
46185
46193
  exports.ServerSideExpansionService = ServerSideExpansionService;
@@ -48274,6 +48282,10 @@ class LazyStore extends ag_grid_community_1.BeanStub {
48274
48282
  getCache() {
48275
48283
  return this.cache;
48276
48284
  }
48285
+ getFirstNode() {
48286
+ const firstNode = this.cache.getNodes().getBy('index', 0);
48287
+ return firstNode?.node ?? null;
48288
+ }
48277
48289
  }
48278
48290
  exports.LazyStore = LazyStore;
48279
48291
 
@@ -55113,7 +55125,7 @@ exports.clearTreeRowFlags = clearTreeRowFlags;
55113
55125
  Object.defineProperty(exports, "__esModule", ({ value: true }));
55114
55126
  exports.VERSION = void 0;
55115
55127
  // DO NOT UPDATE MANUALLY: Generated from script during build time
55116
- exports.VERSION = '33.3.1';
55128
+ exports.VERSION = '33.3.2';
55117
55129
 
55118
55130
 
55119
55131
  /***/ }),
@@ -59809,6 +59821,7 @@ __export(main_exports, {
59809
59821
  _combineAttributesAndGridOptions: () => _combineAttributesAndGridOptions,
59810
59822
  _convertColumnEventSourceType: () => _convertColumnEventSourceType,
59811
59823
  _createCellId: () => _createCellId,
59824
+ _createColumnTree: () => _createColumnTree,
59812
59825
  _createColumnTreeWithIds: () => _createColumnTreeWithIds,
59813
59826
  _createElement: () => _createElement,
59814
59827
  _createGlobalRowEvent: () => _createGlobalRowEvent,
@@ -60885,7 +60898,7 @@ function _defaultComparator(valueA, valueB, accentedCompare = false) {
60885
60898
  var BASE_URL = "https://www.ag-grid.com";
60886
60899
 
60887
60900
  // packages/ag-grid-community/src/version.ts
60888
- var VERSION = "33.3.1";
60901
+ var VERSION = "33.3.2";
60889
60902
 
60890
60903
  // packages/ag-grid-community/src/validation/logging.ts
60891
60904
  var MAX_URL_LENGTH = 2e3;
@@ -68707,6 +68720,12 @@ var RowNode = class {
68707
68720
  this.dispatchRowEvent("uiLevelChanged");
68708
68721
  }
68709
68722
  }
68723
+ getFirstChild() {
68724
+ if (this.childStore) {
68725
+ return this.childStore.getFirstNode();
68726
+ }
68727
+ return this.childrenAfterSort?.[0] ?? null;
68728
+ }
68710
68729
  };
68711
68730
 
68712
68731
  // packages/ag-grid-community/src/entities/rowNodeUtils.ts
@@ -94746,13 +94765,13 @@ var RowRenderer = class extends BeanStub {
94746
94765
  indexesToDraw.push(i);
94747
94766
  }
94748
94767
  const pagination = this.beans.pagination;
94749
- const focusedRow = this.beans.focusSvc?.getFocusedCell()?.rowIndex;
94750
- if (focusedRow != null && (focusedRow < this.firstRenderedRow || focusedRow > this.lastRenderedRow) && (!pagination || pagination.isRowInPage(focusedRow))) {
94751
- indexesToDraw.push(focusedRow);
94768
+ const focusedRowIndex = this.beans.focusSvc?.getFocusedCell()?.rowIndex;
94769
+ if (focusedRowIndex != null && (focusedRowIndex < this.firstRenderedRow || focusedRowIndex > this.lastRenderedRow) && (!pagination || pagination.isRowInPage(focusedRowIndex)) && focusedRowIndex < this.rowModel.getRowCount()) {
94770
+ indexesToDraw.push(focusedRowIndex);
94752
94771
  }
94753
94772
  const checkRowToDraw = (rowComp) => {
94754
94773
  const index = rowComp.rowNode.rowIndex;
94755
- if (index == null || index === focusedRow) {
94774
+ if (index == null || index === focusedRowIndex) {
94756
94775
  return;
94757
94776
  }
94758
94777
  if (index < this.firstRenderedRow || index > this.lastRenderedRow) {
@@ -97115,6 +97134,7 @@ var BaseGridSerializingSession = class {
97115
97134
  isFullWidthGroup ? void 0 : column,
97116
97135
  // full width group doesn't have a column
97117
97136
  pointer,
97137
+ true,
97118
97138
  true
97119
97139
  );
97120
97140
  concatenatedGroupValue = ` -> ${valueFormatted2 ?? value2 ?? ""}${concatenatedGroupValue}`;
@@ -97126,7 +97146,7 @@ var BaseGridSerializingSession = class {
97126
97146
  valueFormatted: concatenatedGroupValue
97127
97147
  };
97128
97148
  }
97129
- const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true);
97149
+ const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true, true);
97130
97150
  return {
97131
97151
  value: value ?? "",
97132
97152
  valueFormatted