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.
@@ -1929,7 +1929,7 @@ var SortStage = class extends import_core8.BeanStub {
1929
1929
  };
1930
1930
 
1931
1931
  // community-modules/client-side-row-model/src/version.ts
1932
- var VERSION = "32.3.7";
1932
+ var VERSION = "32.3.8";
1933
1933
 
1934
1934
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
1935
1935
  var ClientSideRowModelCoreModule = (0, import_core9._defineModule)({
@@ -19847,7 +19847,7 @@ function _defineModule(definition) {
19847
19847
  }
19848
19848
 
19849
19849
  // community-modules/core/src/version.ts
19850
- var VERSION = "32.3.7";
19850
+ var VERSION = "32.3.8";
19851
19851
 
19852
19852
  // community-modules/core/src/filter/columnFilterApi.ts
19853
19853
  function isColumnFilterPresent(beans) {
@@ -44168,6 +44168,10 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
44168
44168
  constructor() {
44169
44169
  super(...arguments);
44170
44170
  this.beanName = "gos";
44171
+ // Used to hold user events until the grid is ready
44172
+ // Required to support React 19 StrictMode. See IFrameworkOverrides.runWhenReadyAsync but also is likely a good idea that onGridReady is the first event fired.
44173
+ this.gridReadyFired = false;
44174
+ this.queueEvents = [];
44171
44175
  this.domDataKey = "__AG_" + Math.random().toString();
44172
44176
  this.propertyEventService = new LocalEventService();
44173
44177
  // responsible for calling the onXXX functions on gridOptions
@@ -44183,12 +44187,25 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
44183
44187
  if (alwaysSync && !restrictToSyncOnly || !alwaysSync && restrictToSyncOnly) {
44184
44188
  return;
44185
44189
  }
44186
- const eventHandlerName = ComponentUtil.getCallbackForEvent(eventName);
44187
- const eventHandler = this.gridOptions[eventHandlerName];
44188
- if (typeof eventHandler === "function") {
44189
- this.frameworkOverrides.wrapOutgoing(() => {
44190
- eventHandler(event);
44191
- });
44190
+ const fireEvent = (name, e) => {
44191
+ const eventHandler = this.gridOptions[ComponentUtil.getCallbackForEvent(name)];
44192
+ if (typeof eventHandler === "function") {
44193
+ this.frameworkOverrides.wrapOutgoing(() => eventHandler(event));
44194
+ }
44195
+ };
44196
+ if (this.gridReadyFired) {
44197
+ fireEvent(eventName, event);
44198
+ } else {
44199
+ if (eventName === "gridReady") {
44200
+ fireEvent(eventName, event);
44201
+ this.gridReadyFired = true;
44202
+ for (const q of this.queueEvents) {
44203
+ fireEvent(q.eventName, q.event);
44204
+ }
44205
+ this.queueEvents = [];
44206
+ } else {
44207
+ this.queueEvents.push({ eventName, event });
44208
+ }
44192
44209
  }
44193
44210
  };
44194
44211
  };
@@ -44216,6 +44233,10 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
44216
44233
  }
44217
44234
  });
44218
44235
  }
44236
+ destroy() {
44237
+ super.destroy();
44238
+ this.queueEvents = [];
44239
+ }
44219
44240
  /**
44220
44241
  * Get the raw value of the GridOptions property provided.
44221
44242
  * @param property
@@ -48009,7 +48030,7 @@ var GridSerializer = class extends import_core6.BeanStub {
48009
48030
  };
48010
48031
 
48011
48032
  // community-modules/csv-export/src/version.ts
48012
- var VERSION = "32.3.7";
48033
+ var VERSION = "32.3.8";
48013
48034
 
48014
48035
  // community-modules/csv-export/src/csvExportModule.ts
48015
48036
  var CsvExportCoreModule = (0, import_core7._defineModule)({
@@ -49266,7 +49287,7 @@ function getInfiniteRowCount(beans) {
49266
49287
  }
49267
49288
 
49268
49289
  // community-modules/infinite-row-model/src/version.ts
49269
- var VERSION = "32.3.7";
49290
+ var VERSION = "32.3.8";
49270
49291
 
49271
49292
  // community-modules/infinite-row-model/src/infiniteRowModelModule.ts
49272
49293
  var InfiniteRowModelCoreModule = (0, import_core4._defineModule)({