ag-grid-community 32.3.7 → 32.3.8

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.
@@ -17540,7 +17540,7 @@ function _defineModule(definition) {
17540
17540
  }
17541
17541
 
17542
17542
  // community-modules/core/src/version.ts
17543
- var VERSION = "32.3.7";
17543
+ var VERSION = "32.3.8";
17544
17544
 
17545
17545
  // community-modules/core/src/filter/columnFilterApi.ts
17546
17546
  function isColumnFilterPresent(beans) {
@@ -41861,6 +41861,10 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
41861
41861
  constructor() {
41862
41862
  super(...arguments);
41863
41863
  this.beanName = "gos";
41864
+ // Used to hold user events until the grid is ready
41865
+ // Required to support React 19 StrictMode. See IFrameworkOverrides.runWhenReadyAsync but also is likely a good idea that onGridReady is the first event fired.
41866
+ this.gridReadyFired = false;
41867
+ this.queueEvents = [];
41864
41868
  this.domDataKey = "__AG_" + Math.random().toString();
41865
41869
  this.propertyEventService = new LocalEventService();
41866
41870
  // responsible for calling the onXXX functions on gridOptions
@@ -41876,12 +41880,25 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
41876
41880
  if (alwaysSync && !restrictToSyncOnly || !alwaysSync && restrictToSyncOnly) {
41877
41881
  return;
41878
41882
  }
41879
- const eventHandlerName = ComponentUtil.getCallbackForEvent(eventName);
41880
- const eventHandler = this.gridOptions[eventHandlerName];
41881
- if (typeof eventHandler === "function") {
41882
- this.frameworkOverrides.wrapOutgoing(() => {
41883
- eventHandler(event);
41884
- });
41883
+ const fireEvent = (name, e) => {
41884
+ const eventHandler = this.gridOptions[ComponentUtil.getCallbackForEvent(name)];
41885
+ if (typeof eventHandler === "function") {
41886
+ this.frameworkOverrides.wrapOutgoing(() => eventHandler(event));
41887
+ }
41888
+ };
41889
+ if (this.gridReadyFired) {
41890
+ fireEvent(eventName, event);
41891
+ } else {
41892
+ if (eventName === "gridReady") {
41893
+ fireEvent(eventName, event);
41894
+ this.gridReadyFired = true;
41895
+ for (const q of this.queueEvents) {
41896
+ fireEvent(q.eventName, q.event);
41897
+ }
41898
+ this.queueEvents = [];
41899
+ } else {
41900
+ this.queueEvents.push({ eventName, event });
41901
+ }
41885
41902
  }
41886
41903
  };
41887
41904
  };
@@ -41909,6 +41926,10 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
41909
41926
  }
41910
41927
  });
41911
41928
  }
41929
+ destroy() {
41930
+ super.destroy();
41931
+ this.queueEvents = [];
41932
+ }
41912
41933
  /**
41913
41934
  * Get the raw value of the GridOptions property provided.
41914
41935
  * @param property
@@ -46854,7 +46875,7 @@ var SortStage = class extends BeanStub {
46854
46875
  };
46855
46876
 
46856
46877
  // community-modules/client-side-row-model/src/version.ts
46857
- var VERSION2 = "32.3.7";
46878
+ var VERSION2 = "32.3.8";
46858
46879
 
46859
46880
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
46860
46881
  var ClientSideRowModelCoreModule = _defineModule({
@@ -47547,7 +47568,7 @@ var GridSerializer = class extends BeanStub {
47547
47568
  });
47548
47569
  }
47549
47570
  };
47550
- var VERSION3 = "32.3.7";
47571
+ var VERSION3 = "32.3.8";
47551
47572
  var CsvExportCoreModule = _defineModule({
47552
47573
  version: VERSION3,
47553
47574
  moduleName: `${"@ag-grid-community/csv-export" /* CsvExportModule */}-core`,
@@ -48738,7 +48759,7 @@ function purgeInfiniteCache(beans) {
48738
48759
  function getInfiniteRowCount(beans) {
48739
48760
  return beans.rowModelHelperService?.getInfiniteRowModel()?.getRowCount();
48740
48761
  }
48741
- var VERSION4 = "32.3.7";
48762
+ var VERSION4 = "32.3.8";
48742
48763
  var InfiniteRowModelCoreModule = _defineModule({
48743
48764
  version: VERSION4,
48744
48765
  moduleName: `${"@ag-grid-community/infinite-row-model" /* InfiniteRowModelModule */}-core`,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "32.3.7",
3
+ "version": "32.3.8",
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/main.d.ts",
@@ -88,19 +88,19 @@
88
88
  ],
89
89
  "homepage": "https://www.ag-grid.com/",
90
90
  "dependencies": {
91
- "ag-charts-types": "10.3.7"
91
+ "ag-charts-types": "10.3.8"
92
92
  },
93
93
  "devDependencies": {
94
94
  "source-map-loader": "^5.0.0",
95
95
  "gulp": "^4.0.0",
96
96
  "gulp-replace": "^1.0.0",
97
97
  "gulp-rename": "^2.0.0",
98
- "@ag-grid-community/client-side-row-model": "32.3.7",
99
- "@ag-grid-community/core": "32.3.7",
100
- "@ag-grid-community/csv-export": "32.3.7",
101
- "@ag-grid-community/infinite-row-model": "32.3.7",
102
- "@ag-grid-community/styles": "32.3.7",
103
- "@ag-grid-community/theming": "32.3.7",
98
+ "@ag-grid-community/client-side-row-model": "32.3.8",
99
+ "@ag-grid-community/core": "32.3.8",
100
+ "@ag-grid-community/csv-export": "32.3.8",
101
+ "@ag-grid-community/infinite-row-model": "32.3.8",
102
+ "@ag-grid-community/styles": "32.3.8",
103
+ "@ag-grid-community/theming": "32.3.8",
104
104
  "ts-loader": "^9.5.1",
105
105
  "style-loader": "^3.3.4",
106
106
  "css-loader": "^6.10.0",
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.7";
1
+ export declare const VERSION = "32.3.8";
@@ -60,11 +60,14 @@ export declare class GridOptionsService extends BeanStub implements NamedBean {
60
60
  environment: Environment;
61
61
  private api;
62
62
  private gridId;
63
+ private gridReadyFired;
64
+ private queueEvents;
63
65
  wireBeans(beans: BeanCollection): void;
64
66
  private domDataKey;
65
67
  private get gridOptionsContext();
66
68
  private propertyEventService;
67
69
  postConstruct(): void;
70
+ destroy(): void;
68
71
  /**
69
72
  * Get the raw value of the GridOptions property provided.
70
73
  * @param property
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.7";
1
+ export declare const VERSION = "32.3.8";
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.7";
1
+ export declare const VERSION = "32.3.8";
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.7";
1
+ export declare const VERSION = "32.3.8";
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.7";
1
+ export declare const VERSION = "32.3.8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "32.3.7",
3
+ "version": "32.3.8",
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/main.d.ts",
@@ -88,19 +88,19 @@
88
88
  ],
89
89
  "homepage": "https://www.ag-grid.com/",
90
90
  "dependencies": {
91
- "ag-charts-types": "10.3.7"
91
+ "ag-charts-types": "10.3.8"
92
92
  },
93
93
  "devDependencies": {
94
94
  "source-map-loader": "^5.0.0",
95
95
  "gulp": "^4.0.0",
96
96
  "gulp-replace": "^1.0.0",
97
97
  "gulp-rename": "^2.0.0",
98
- "@ag-grid-community/client-side-row-model": "32.3.7",
99
- "@ag-grid-community/core": "32.3.7",
100
- "@ag-grid-community/csv-export": "32.3.7",
101
- "@ag-grid-community/infinite-row-model": "32.3.7",
102
- "@ag-grid-community/styles": "32.3.7",
103
- "@ag-grid-community/theming": "32.3.7",
98
+ "@ag-grid-community/client-side-row-model": "32.3.8",
99
+ "@ag-grid-community/core": "32.3.8",
100
+ "@ag-grid-community/csv-export": "32.3.8",
101
+ "@ag-grid-community/infinite-row-model": "32.3.8",
102
+ "@ag-grid-community/styles": "32.3.8",
103
+ "@ag-grid-community/theming": "32.3.8",
104
104
  "ts-loader": "^9.5.1",
105
105
  "style-loader": "^3.3.4",
106
106
  "css-loader": "^6.10.0",