@adaptabletools/adaptable-cjs 19.2.2-canary.0 → 19.2.2-canary.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "19.2.2-canary.0",
3
+ "version": "19.2.2-canary.1",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -125,6 +125,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
125
125
  */
126
126
  private adaptableStatusPanelKeys;
127
127
  _PRIVATE_adaptableJSXElement: JSX.Element;
128
+ private DANGER_updateGridOptionsMonkeyPatcher;
128
129
  constructor();
129
130
  static forEachAdaptable(fn: (adaptable: AdaptableAgGrid) => void): void;
130
131
  private static collectInstance;
@@ -3078,6 +3078,7 @@ class AdaptableAgGrid {
3078
3078
  }
3079
3079
  }
3080
3080
  DANGER_AG_GRID_BEANS_MAP[this._agGridId] = null;
3081
+ this.DANGER_updateGridOptionsMonkeyPatcher = null;
3081
3082
  if ((config === null || config === void 0 ? void 0 : config.destroyApi) === true || (config === null || config === void 0 ? void 0 : config.destroyAgGrid) === true) {
3082
3083
  (_b = this.agGridAdapter.getAgGridApi()) === null || _b === void 0 ? void 0 : _b.destroy();
3083
3084
  }
@@ -4079,6 +4080,7 @@ class AdaptableAgGrid {
4079
4080
  };
4080
4081
  });
4081
4082
  }
4083
+ // #gridOpts_monkey_patch
4082
4084
  // we need to intercept some of the GridOptions updates and refresh the Adaptable state
4083
4085
  monkeyPatchingGridOptionsUpdates(agGridApi) {
4084
4086
  var _a;
@@ -4087,7 +4089,7 @@ class AdaptableAgGrid {
4087
4089
  this.logger.consoleError('Could not get hold of GridOptionsService! This is a critical error and will prevent Adaptable from working correctly.');
4088
4090
  }
4089
4091
  const self = this;
4090
- gridOptionsService.updateGridOptions = function ({ options, force, source = 'api', }) {
4092
+ this.DANGER_updateGridOptionsMonkeyPatcher = function ({ options, force, source = 'api', }) {
4091
4093
  // `columnDefs`
4092
4094
  const passedColumnDefs = options.columnDefs;
4093
4095
  if (passedColumnDefs) {
@@ -4114,6 +4116,7 @@ class AdaptableAgGrid {
4114
4116
  // we mutated the options array, so it's OK to use the 'arguments' object
4115
4117
  GridOptionsService_updateGridOptions.apply(this, arguments);
4116
4118
  };
4119
+ gridOptionsService.updateGridOptions = this.DANGER_updateGridOptionsMonkeyPatcher;
4117
4120
  }
4118
4121
  DANGER_getPrivateAgGridBeans() {
4119
4122
  const beans = DANGER_AG_GRID_BEANS_MAP[this._agGridId];
@@ -12,6 +12,7 @@ class AgGridOptionsService {
12
12
  this.colDefPropertyCache.clear();
13
13
  this.gridOptionsPropertyCache = null;
14
14
  this.colDefPropertyCache = null;
15
+ this.adaptableInstance = null;
15
16
  }
16
17
  setGridOptionsProperty(gridOptions, propertyName, propertyGetter) {
17
18
  if (this.adaptableInstance.lifecycleState === 'preDestroyed') {
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
5
- PUBLISH_TIMESTAMP: 1732879068584 || Date.now(),
6
- VERSION: "19.2.2-canary.0" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1732886841433 || Date.now(),
6
+ VERSION: "19.2.2-canary.1" || '--current-version--',
7
7
  };