@adaptabletools/adaptable-cjs 19.2.1 → 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.1",
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",
@@ -1,11 +1,11 @@
1
1
  import { IRowNode } from '@ag-grid-community/core';
2
2
  import { ActionColumnContext, ActionRowSubmittedInfo, AdaptableButton, AdaptableColumn, BaseContext, FormContext } from '../types';
3
3
  /**
4
- * Options related to Action Rows, Action Row Buttons and Action Row Forms
4
+ * Options relating to Action Rows, Action Row Buttons and Action Row Forms
5
5
  */
6
6
  export interface ActionRowOptions<TData = any> {
7
7
  /**
8
- * Action buttons to display for each row
8
+ * Action Row Buttons to display
9
9
  * @defaultValue undefined
10
10
  */
11
11
  actionRowButtons?: ((context: ActionRowButtonsContext) => ActionRowButtonType[]) | ActionRowButtonType[];
@@ -15,7 +15,7 @@ export interface ActionRowOptions<TData = any> {
15
15
  */
16
16
  actionRowButtonOptions?: ActionRowButtonOptions<TData>;
17
17
  /**
18
- * Options for managing the Form which the Action Row displays
18
+ * Options for managing the Form which some Action Row buttons opens
19
19
  * @defaultValue undefined
20
20
  */
21
21
  actionRowFormOptions?: ActionRowFormOptions<TData>;
@@ -30,13 +30,13 @@ export interface ActionRowOptions<TData = any> {
30
30
  */
31
31
  disableInlineEditing?: boolean;
32
32
  /**
33
- * Function called when auto-handling 'create' or 'clone' Action Row Button; returned row value should be valid pk value
33
+ * Function called when auto-handling 'create' or 'clone' Action Row Button; returned row value should be a valid pk value
34
34
  * @defaultValue undefined
35
35
  */
36
36
  setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext<TData>) => any;
37
37
  }
38
38
  /**
39
- * The context for the SetPrimaryKeyValueContext function
39
+ * Context for the setPrimaryKeyValue function
40
40
  */
41
41
  export interface SetPrimaryKeyValueContext<TData = any> extends BaseContext {
42
42
  /**
@@ -54,7 +54,7 @@ export interface ActionRowButtonOptions<TData = any> {
54
54
  */
55
55
  customConfiguration?: (context: ActionRowButtonConfigurationContext) => Partial<AdaptableButton<ActionColumnContext<TData>>> | undefined;
56
56
  /**
57
- * Action Row Buttons position: 'pinnedLeft' | 'pinnedRight
57
+ * Action Row Buttons position: 'pinnedLeft' or 'pinnedRight
58
58
  * @defaultValue 'pinnedLeft'
59
59
  */
60
60
  position?: 'pinnedLeft' | 'pinnedRight';
@@ -17,6 +17,11 @@ export interface SettingsPanelOptions {
17
17
  * @defaultValue `ConfigurationIcon`
18
18
  */
19
19
  icon?: 'ConfigurationIcon' | 'ApplicationIcon' | AdaptableIcon;
20
+ /**
21
+ * Whether to show Icons for each Module in the Setting Panel
22
+ * @defaultValue true
23
+ * @gridInfoItem
24
+ */
20
25
  showModuleIcons?: boolean;
21
26
  /**
22
27
  * Whether a Settings Panel button should always be displayed in `ModuleButtons` area of Dashboard
@@ -111,7 +111,8 @@ class AdaptableApiImpl {
111
111
  this.internalApi = new AdaptableInternalApi_1.AdaptableInternalApi(adaptable);
112
112
  }
113
113
  get agGridApi() {
114
- return this.adaptable.agGridAdapter.getAgGridApi();
114
+ var _a, _b;
115
+ return (_b = (_a = this.adaptable) === null || _a === void 0 ? void 0 : _a.agGridAdapter) === null || _b === void 0 ? void 0 : _b.getAgGridApi();
115
116
  }
116
117
  /**
117
118
  * This is only meant to be called by the Adaptable instance.
@@ -122,6 +123,9 @@ class AdaptableApiImpl {
122
123
  }
123
124
  this.destroyed = true;
124
125
  this.eventApi.destroy();
126
+ this.exportApi.internalApi.destroy();
127
+ this.internalApi = null;
128
+ this.adaptable = null;
125
129
  this.optionsApi = null;
126
130
  this.alertApi = null;
127
131
  this.applicationApi = null;
@@ -162,6 +166,18 @@ class AdaptableApiImpl {
162
166
  this.toolPanelApi = null;
163
167
  this.userInterfaceApi = null;
164
168
  this.fdc3Api = null;
169
+ this.actionColumnApi = null;
170
+ this.actionRowApi = null;
171
+ this.calendarApi = null;
172
+ this.columnFilterApi = null;
173
+ this.columnMenuApi = null;
174
+ this.commentApi = null;
175
+ this.contextMenuApi = null;
176
+ this.dataImportApi = null;
177
+ this.entitlementApi = null;
178
+ this.gridFilterApi = null;
179
+ this.noteApi = null;
180
+ this.styledColumnApi = null;
165
181
  }
166
182
  destroy(config) {
167
183
  this.adaptable.destroy(config);
@@ -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
  }
@@ -3107,53 +3108,58 @@ class AdaptableAgGrid {
3107
3108
  this.columnMinMaxValuesCache = null;
3108
3109
  this.lifecycleState = 'preDestroyed';
3109
3110
  AdaptableAgGrid.dismissInstance(this);
3111
+ // !! this has to be before clearing up references to container and/or adaptableOptions
3112
+ if (config === null || config === void 0 ? void 0 : config.unmount) {
3113
+ const abContainerElement = this.getAdaptableContainerElement();
3114
+ if (abContainerElement != null) {
3115
+ (_g = this.unmountReactRoot) === null || _g === void 0 ? void 0 : _g.call(this);
3116
+ }
3117
+ this.unmountReactRoot = null;
3118
+ }
3110
3119
  this.DANGER_USE_GETTER_adaptableContainerElement = null;
3111
3120
  this.DANGER_USE_GETTER_agGridContainerElement = null;
3112
- (_g = this.adaptableStore) === null || _g === void 0 ? void 0 : _g.destroy();
3121
+ this.debouncedSaveGridLayout = null;
3122
+ this.debouncedSetColumnIntoStore = null;
3123
+ this.debouncedSetSelectedCells = null;
3124
+ this.debouncedSetSelectedRows = null;
3125
+ (_h = this.adaptableStore) === null || _h === void 0 ? void 0 : _h.destroy();
3113
3126
  this.adaptableStore = null;
3114
- (_h = this.adaptableModules) === null || _h === void 0 ? void 0 : _h.clear();
3127
+ (_j = this.adaptableModules) === null || _j === void 0 ? void 0 : _j.clear();
3115
3128
  this.adaptableModules = null;
3116
3129
  this.adaptableOptions = null;
3117
3130
  this.adaptableStatusPanelKeys = null;
3118
- (_k = (_j = this.CalculatedColumnExpressionService) === null || _j === void 0 ? void 0 : _j.destroy) === null || _k === void 0 ? void 0 : _k.call(_j);
3131
+ (_l = (_k = this.CalculatedColumnExpressionService) === null || _k === void 0 ? void 0 : _k.destroy) === null || _l === void 0 ? void 0 : _l.call(_k);
3119
3132
  this.CalculatedColumnExpressionService = null;
3120
- (_m = (_l = this.DataService) === null || _l === void 0 ? void 0 : _l.destroy) === null || _m === void 0 ? void 0 : _m.call(_l);
3133
+ (_o = (_m = this.DataService) === null || _m === void 0 ? void 0 : _m.destroy) === null || _o === void 0 ? void 0 : _o.call(_m);
3121
3134
  this.DataService = null;
3122
- (_p = (_o = this.Fdc3Service) === null || _o === void 0 ? void 0 : _o.destroy) === null || _p === void 0 ? void 0 : _p.call(_o);
3135
+ (_q = (_p = this.Fdc3Service) === null || _p === void 0 ? void 0 : _p.destroy) === null || _q === void 0 ? void 0 : _q.call(_p);
3123
3136
  this.Fdc3Service = null;
3124
- (_r = (_q = this.ModuleService) === null || _q === void 0 ? void 0 : _q.destroy) === null || _r === void 0 ? void 0 : _r.call(_q);
3137
+ (_s = (_r = this.ModuleService) === null || _r === void 0 ? void 0 : _r.destroy) === null || _s === void 0 ? void 0 : _s.call(_r);
3125
3138
  this.ModuleService = null;
3126
- (_t = (_s = this.ValidationService) === null || _s === void 0 ? void 0 : _s.destroy) === null || _t === void 0 ? void 0 : _t.call(_s);
3139
+ (_u = (_t = this.ValidationService) === null || _t === void 0 ? void 0 : _t.destroy) === null || _u === void 0 ? void 0 : _u.call(_t);
3127
3140
  this.ValidationService = null;
3128
- (_v = (_u = this.QueryLanguageService) === null || _u === void 0 ? void 0 : _u.destroy) === null || _v === void 0 ? void 0 : _v.call(_u);
3141
+ (_w = (_v = this.QueryLanguageService) === null || _v === void 0 ? void 0 : _v.destroy) === null || _w === void 0 ? void 0 : _w.call(_v);
3129
3142
  this.QueryLanguageService = null;
3130
- (_x = (_w = this.AlertService) === null || _w === void 0 ? void 0 : _w.destroy) === null || _x === void 0 ? void 0 : _x.call(_w);
3143
+ (_y = (_x = this.AlertService) === null || _x === void 0 ? void 0 : _x.destroy) === null || _y === void 0 ? void 0 : _y.call(_x);
3131
3144
  this.AlertService = null;
3132
- (_z = (_y = this.TeamSharingService) === null || _y === void 0 ? void 0 : _y.destroy) === null || _z === void 0 ? void 0 : _z.call(_y);
3145
+ (_0 = (_z = this.TeamSharingService) === null || _z === void 0 ? void 0 : _z.destroy) === null || _0 === void 0 ? void 0 : _0.call(_z);
3133
3146
  this.TeamSharingService = null;
3134
- (_1 = (_0 = this.RowEditService) === null || _0 === void 0 ? void 0 : _0.destroy) === null || _1 === void 0 ? void 0 : _1.call(_0);
3147
+ (_2 = (_1 = this.RowEditService) === null || _1 === void 0 ? void 0 : _1.destroy) === null || _2 === void 0 ? void 0 : _2.call(_1);
3135
3148
  this.RowEditService = null;
3136
- (_3 = (_2 = this.MetamodelService) === null || _2 === void 0 ? void 0 : _2.destroy) === null || _3 === void 0 ? void 0 : _3.call(_2);
3149
+ (_4 = (_3 = this.MetamodelService) === null || _3 === void 0 ? void 0 : _3.destroy) === null || _4 === void 0 ? void 0 : _4.call(_3);
3137
3150
  this.MetamodelService = null;
3138
- (_5 = (_4 = this.LicenseService) === null || _4 === void 0 ? void 0 : _4.destroy) === null || _5 === void 0 ? void 0 : _5.call(_4);
3151
+ (_6 = (_5 = this.LicenseService) === null || _5 === void 0 ? void 0 : _5.destroy) === null || _6 === void 0 ? void 0 : _6.call(_5);
3139
3152
  this.LicenseService = null;
3140
- (_7 = (_6 = this.FlashingCellService) === null || _6 === void 0 ? void 0 : _6.destroy) === null || _7 === void 0 ? void 0 : _7.call(_6);
3153
+ (_8 = (_7 = this.FlashingCellService) === null || _7 === void 0 ? void 0 : _7.destroy) === null || _8 === void 0 ? void 0 : _8.call(_7);
3141
3154
  this.FlashingCellService = null;
3142
- (_9 = (_8 = this.ThemeService) === null || _8 === void 0 ? void 0 : _8.destroy) === null || _9 === void 0 ? void 0 : _9.call(_8);
3155
+ (_10 = (_9 = this.ThemeService) === null || _9 === void 0 ? void 0 : _9.destroy) === null || _10 === void 0 ? void 0 : _10.call(_9);
3143
3156
  this.ThemeService = null;
3144
- (_11 = (_10 = this.ChartingService) === null || _10 === void 0 ? void 0 : _10.destroy) === null || _11 === void 0 ? void 0 : _11.call(_10);
3157
+ (_12 = (_11 = this.ChartingService) === null || _11 === void 0 ? void 0 : _11.destroy) === null || _12 === void 0 ? void 0 : _12.call(_11);
3145
3158
  this.ChartingService = null;
3146
- (_13 = (_12 = this.CellPopupService) === null || _12 === void 0 ? void 0 : _12.destroy) === null || _13 === void 0 ? void 0 : _13.call(_12);
3159
+ (_14 = (_13 = this.CellPopupService) === null || _13 === void 0 ? void 0 : _13.destroy) === null || _14 === void 0 ? void 0 : _14.call(_13);
3147
3160
  this.CellPopupService = null;
3148
- (_14 = this.unmountLoadingScreen) === null || _14 === void 0 ? void 0 : _14.call(this);
3161
+ (_15 = this.unmountLoadingScreen) === null || _15 === void 0 ? void 0 : _15.call(this);
3149
3162
  this.unmountLoadingScreen = null;
3150
- if (config === null || config === void 0 ? void 0 : config.unmount) {
3151
- const abContainerElement = this.getAdaptableContainerElement();
3152
- if (abContainerElement != null) {
3153
- (_15 = this.unmountReactRoot) === null || _15 === void 0 ? void 0 : _15.call(this);
3154
- }
3155
- this.unmountReactRoot = null;
3156
- }
3157
3163
  }
3158
3164
  canExportToExcel() {
3159
3165
  return this.agGridAdapter.isModulePresent(core_1.ModuleNames.ExcelExportModule);
@@ -4074,6 +4080,7 @@ class AdaptableAgGrid {
4074
4080
  };
4075
4081
  });
4076
4082
  }
4083
+ // #gridOpts_monkey_patch
4077
4084
  // we need to intercept some of the GridOptions updates and refresh the Adaptable state
4078
4085
  monkeyPatchingGridOptionsUpdates(agGridApi) {
4079
4086
  var _a;
@@ -4082,7 +4089,7 @@ class AdaptableAgGrid {
4082
4089
  this.logger.consoleError('Could not get hold of GridOptionsService! This is a critical error and will prevent Adaptable from working correctly.');
4083
4090
  }
4084
4091
  const self = this;
4085
- gridOptionsService.updateGridOptions = function ({ options, force, source = 'api', }) {
4092
+ this.DANGER_updateGridOptionsMonkeyPatcher = function ({ options, force, source = 'api', }) {
4086
4093
  // `columnDefs`
4087
4094
  const passedColumnDefs = options.columnDefs;
4088
4095
  if (passedColumnDefs) {
@@ -4109,6 +4116,7 @@ class AdaptableAgGrid {
4109
4116
  // we mutated the options array, so it's OK to use the 'arguments' object
4110
4117
  GridOptionsService_updateGridOptions.apply(this, arguments);
4111
4118
  };
4119
+ gridOptionsService.updateGridOptions = this.DANGER_updateGridOptionsMonkeyPatcher;
4112
4120
  }
4113
4121
  DANGER_getPrivateAgGridBeans() {
4114
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: 1732629462338 || Date.now(),
6
- VERSION: "19.2.1" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1732886841433 || Date.now(),
6
+ VERSION: "19.2.2-canary.1" || '--current-version--',
7
7
  };