@adaptabletools/adaptable 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",
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;
@@ -3074,6 +3074,7 @@ export class AdaptableAgGrid {
3074
3074
  }
3075
3075
  }
3076
3076
  DANGER_AG_GRID_BEANS_MAP[this._agGridId] = null;
3077
+ this.DANGER_updateGridOptionsMonkeyPatcher = null;
3077
3078
  if ((config === null || config === void 0 ? void 0 : config.destroyApi) === true || (config === null || config === void 0 ? void 0 : config.destroyAgGrid) === true) {
3078
3079
  (_b = this.agGridAdapter.getAgGridApi()) === null || _b === void 0 ? void 0 : _b.destroy();
3079
3080
  }
@@ -4075,6 +4076,7 @@ export class AdaptableAgGrid {
4075
4076
  };
4076
4077
  });
4077
4078
  }
4079
+ // #gridOpts_monkey_patch
4078
4080
  // we need to intercept some of the GridOptions updates and refresh the Adaptable state
4079
4081
  monkeyPatchingGridOptionsUpdates(agGridApi) {
4080
4082
  var _a;
@@ -4083,7 +4085,7 @@ export class AdaptableAgGrid {
4083
4085
  this.logger.consoleError('Could not get hold of GridOptionsService! This is a critical error and will prevent Adaptable from working correctly.');
4084
4086
  }
4085
4087
  const self = this;
4086
- gridOptionsService.updateGridOptions = function ({ options, force, source = 'api', }) {
4088
+ this.DANGER_updateGridOptionsMonkeyPatcher = function ({ options, force, source = 'api', }) {
4087
4089
  // `columnDefs`
4088
4090
  const passedColumnDefs = options.columnDefs;
4089
4091
  if (passedColumnDefs) {
@@ -4110,6 +4112,7 @@ export class AdaptableAgGrid {
4110
4112
  // we mutated the options array, so it's OK to use the 'arguments' object
4111
4113
  GridOptionsService_updateGridOptions.apply(this, arguments);
4112
4114
  };
4115
+ gridOptionsService.updateGridOptions = this.DANGER_updateGridOptionsMonkeyPatcher;
4113
4116
  }
4114
4117
  DANGER_getPrivateAgGridBeans() {
4115
4118
  const beans = DANGER_AG_GRID_BEANS_MAP[this._agGridId];
@@ -9,6 +9,7 @@ export class AgGridOptionsService {
9
9
  this.colDefPropertyCache.clear();
10
10
  this.gridOptionsPropertyCache = null;
11
11
  this.colDefPropertyCache = null;
12
+ this.adaptableInstance = null;
12
13
  }
13
14
  setGridOptionsProperty(gridOptions, propertyName, propertyGetter) {
14
15
  if (this.adaptableInstance.lifecycleState === 'preDestroyed') {
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  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" || '',
3
- PUBLISH_TIMESTAMP: 1732879039214 || Date.now(),
4
- VERSION: "19.2.2-canary.0" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1732886810388 || Date.now(),
4
+ VERSION: "19.2.2-canary.1" || '--current-version--',
5
5
  };