ag-grid-community 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.
@@ -857,7 +857,7 @@ function _defaultComparator(valueA, valueB, accentedCompare = false) {
857
857
  var BASE_URL = "https://www.ag-grid.com";
858
858
 
859
859
  // packages/ag-grid-community/src/version.ts
860
- var VERSION = "33.3.1";
860
+ var VERSION = "33.3.2";
861
861
 
862
862
  // packages/ag-grid-community/src/validation/logging.ts
863
863
  var MAX_URL_LENGTH = 2e3;
@@ -8679,6 +8679,12 @@ var RowNode = class {
8679
8679
  this.dispatchRowEvent("uiLevelChanged");
8680
8680
  }
8681
8681
  }
8682
+ getFirstChild() {
8683
+ if (this.childStore) {
8684
+ return this.childStore.getFirstNode();
8685
+ }
8686
+ return this.childrenAfterSort?.[0] ?? null;
8687
+ }
8682
8688
  };
8683
8689
 
8684
8690
  // packages/ag-grid-community/src/entities/rowNodeUtils.ts
@@ -34718,13 +34724,13 @@ var RowRenderer = class extends BeanStub {
34718
34724
  indexesToDraw.push(i);
34719
34725
  }
34720
34726
  const pagination = this.beans.pagination;
34721
- const focusedRow = this.beans.focusSvc?.getFocusedCell()?.rowIndex;
34722
- if (focusedRow != null && (focusedRow < this.firstRenderedRow || focusedRow > this.lastRenderedRow) && (!pagination || pagination.isRowInPage(focusedRow))) {
34723
- indexesToDraw.push(focusedRow);
34727
+ const focusedRowIndex = this.beans.focusSvc?.getFocusedCell()?.rowIndex;
34728
+ if (focusedRowIndex != null && (focusedRowIndex < this.firstRenderedRow || focusedRowIndex > this.lastRenderedRow) && (!pagination || pagination.isRowInPage(focusedRowIndex)) && focusedRowIndex < this.rowModel.getRowCount()) {
34729
+ indexesToDraw.push(focusedRowIndex);
34724
34730
  }
34725
34731
  const checkRowToDraw = (rowComp) => {
34726
34732
  const index = rowComp.rowNode.rowIndex;
34727
- if (index == null || index === focusedRow) {
34733
+ if (index == null || index === focusedRowIndex) {
34728
34734
  return;
34729
34735
  }
34730
34736
  if (index < this.firstRenderedRow || index > this.lastRenderedRow) {
@@ -37087,6 +37093,7 @@ var BaseGridSerializingSession = class {
37087
37093
  isFullWidthGroup ? void 0 : column,
37088
37094
  // full width group doesn't have a column
37089
37095
  pointer,
37096
+ true,
37090
37097
  true
37091
37098
  );
37092
37099
  concatenatedGroupValue = ` -> ${valueFormatted2 ?? value2 ?? ""}${concatenatedGroupValue}`;
@@ -37098,7 +37105,7 @@ var BaseGridSerializingSession = class {
37098
37105
  valueFormatted: concatenatedGroupValue
37099
37106
  };
37100
37107
  }
37101
- const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true);
37108
+ const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true, true);
37102
37109
  return {
37103
37110
  value: value ?? "",
37104
37111
  valueFormatted
@@ -51070,6 +51077,7 @@ export {
51070
51077
  _combineAttributesAndGridOptions,
51071
51078
  _convertColumnEventSourceType,
51072
51079
  _createCellId,
51080
+ _createColumnTree,
51073
51081
  _createColumnTreeWithIds,
51074
51082
  _createElement,
51075
51083
  _createGlobalRowEvent,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "33.3.1",
3
+ "version": "33.3.2",
4
4
  "description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
5
5
  "main": "./dist/package/main.cjs.js",
6
6
  "types": "./dist/types/src/main.d.ts",
@@ -119,7 +119,7 @@
119
119
  ],
120
120
  "homepage": "https://www.ag-grid.com/",
121
121
  "dependencies": {
122
- "ag-charts-types": "11.3.1"
122
+ "ag-charts-types": "11.3.2"
123
123
  },
124
124
  "devDependencies": {
125
125
  "source-map-loader": "^5.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "33.3.1",
3
+ "version": "33.3.2",
4
4
  "description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
5
5
  "main": "./dist/package/main.cjs.js",
6
6
  "types": "./dist/types/src/main.d.ts",
@@ -119,7 +119,7 @@
119
119
  ],
120
120
  "homepage": "https://www.ag-grid.com/",
121
121
  "dependencies": {
122
- "ag-charts-types": "11.3.1"
122
+ "ag-charts-types": "11.3.2"
123
123
  },
124
124
  "devDependencies": {
125
125
  "source-map-loader": "^5.0.0",
@@ -317,4 +317,5 @@ export declare class RowNode<TData = any> implements IEventEmitter<RowNodeEventT
317
317
  setRowIndex(rowIndex: number | null): void;
318
318
  setAllChildrenCount(allChildrenCount: number | null): void;
319
319
  setUiLevel(uiLevel: number): void;
320
+ getFirstChild(): RowNode<TData> | null;
320
321
  }
@@ -1,9 +1,14 @@
1
1
  import type { Bean } from '../context/bean';
2
+ import type { IRowNode } from './iRowNode';
2
3
  export interface IServerSideStore extends Bean {
3
4
  getStoreBounds(): {
4
5
  topPx: number;
5
6
  heightPx: number;
6
7
  };
8
+ /**
9
+ * Returns the first child of the group (index 0), if the node is not loaded, returns null.
10
+ */
11
+ getFirstNode(): IRowNode | null;
7
12
  }
8
13
  export interface StoreRefreshAfterParams {
9
14
  valueColChanged: boolean;
@@ -1,4 +1,4 @@
1
- export { _updateColumnState, _addColumnDefaultAndTypes, _createColumnTreeWithIds } from './columns/columnFactoryUtils';
1
+ export { _updateColumnState, _addColumnDefaultAndTypes, _createColumnTree, _createColumnTreeWithIds, } from './columns/columnFactoryUtils';
2
2
  export type { ColumnGroupService } from './columns/columnGroups/columnGroupService';
3
3
  export type { ColumnModel } from './columns/columnModel';
4
4
  export { ColumnCollections as _ColumnCollections, ColKey } from './columns/columnModel';
@@ -1 +1 @@
1
- export declare const VERSION = "33.3.1";
1
+ export declare const VERSION = "33.3.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "33.3.1",
3
+ "version": "33.3.2",
4
4
  "description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
5
5
  "main": "./dist/package/main.cjs.js",
6
6
  "types": "./dist/types/src/main.d.ts",
@@ -119,7 +119,7 @@
119
119
  ],
120
120
  "homepage": "https://www.ag-grid.com/",
121
121
  "dependencies": {
122
- "ag-charts-types": "11.3.1"
122
+ "ag-charts-types": "11.3.2"
123
123
  },
124
124
  "devDependencies": {
125
125
  "source-map-loader": "^5.0.0",