@adaptabletools/adaptable 19.2.1 → 19.2.2-canary.0
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 +1 -1
- package/src/AdaptableOptions/ActionRowOptions.d.ts +6 -6
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +5 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +17 -1
- package/src/agGrid/AdaptableAgGrid.js +30 -25
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.2-canary.0",
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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'
|
|
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
|
|
@@ -108,7 +108,8 @@ export class AdaptableApiImpl {
|
|
|
108
108
|
this.internalApi = new AdaptableInternalApi(adaptable);
|
|
109
109
|
}
|
|
110
110
|
get agGridApi() {
|
|
111
|
-
|
|
111
|
+
var _a, _b;
|
|
112
|
+
return (_b = (_a = this.adaptable) === null || _a === void 0 ? void 0 : _a.agGridAdapter) === null || _b === void 0 ? void 0 : _b.getAgGridApi();
|
|
112
113
|
}
|
|
113
114
|
/**
|
|
114
115
|
* This is only meant to be called by the Adaptable instance.
|
|
@@ -119,6 +120,9 @@ export class AdaptableApiImpl {
|
|
|
119
120
|
}
|
|
120
121
|
this.destroyed = true;
|
|
121
122
|
this.eventApi.destroy();
|
|
123
|
+
this.exportApi.internalApi.destroy();
|
|
124
|
+
this.internalApi = null;
|
|
125
|
+
this.adaptable = null;
|
|
122
126
|
this.optionsApi = null;
|
|
123
127
|
this.alertApi = null;
|
|
124
128
|
this.applicationApi = null;
|
|
@@ -159,6 +163,18 @@ export class AdaptableApiImpl {
|
|
|
159
163
|
this.toolPanelApi = null;
|
|
160
164
|
this.userInterfaceApi = null;
|
|
161
165
|
this.fdc3Api = null;
|
|
166
|
+
this.actionColumnApi = null;
|
|
167
|
+
this.actionRowApi = null;
|
|
168
|
+
this.calendarApi = null;
|
|
169
|
+
this.columnFilterApi = null;
|
|
170
|
+
this.columnMenuApi = null;
|
|
171
|
+
this.commentApi = null;
|
|
172
|
+
this.contextMenuApi = null;
|
|
173
|
+
this.dataImportApi = null;
|
|
174
|
+
this.entitlementApi = null;
|
|
175
|
+
this.gridFilterApi = null;
|
|
176
|
+
this.noteApi = null;
|
|
177
|
+
this.styledColumnApi = null;
|
|
162
178
|
}
|
|
163
179
|
destroy(config) {
|
|
164
180
|
this.adaptable.destroy(config);
|
|
@@ -3103,53 +3103,58 @@ export class AdaptableAgGrid {
|
|
|
3103
3103
|
this.columnMinMaxValuesCache = null;
|
|
3104
3104
|
this.lifecycleState = 'preDestroyed';
|
|
3105
3105
|
AdaptableAgGrid.dismissInstance(this);
|
|
3106
|
+
// !! this has to be before clearing up references to container and/or adaptableOptions
|
|
3107
|
+
if (config === null || config === void 0 ? void 0 : config.unmount) {
|
|
3108
|
+
const abContainerElement = this.getAdaptableContainerElement();
|
|
3109
|
+
if (abContainerElement != null) {
|
|
3110
|
+
(_g = this.unmountReactRoot) === null || _g === void 0 ? void 0 : _g.call(this);
|
|
3111
|
+
}
|
|
3112
|
+
this.unmountReactRoot = null;
|
|
3113
|
+
}
|
|
3106
3114
|
this.DANGER_USE_GETTER_adaptableContainerElement = null;
|
|
3107
3115
|
this.DANGER_USE_GETTER_agGridContainerElement = null;
|
|
3108
|
-
|
|
3116
|
+
this.debouncedSaveGridLayout = null;
|
|
3117
|
+
this.debouncedSetColumnIntoStore = null;
|
|
3118
|
+
this.debouncedSetSelectedCells = null;
|
|
3119
|
+
this.debouncedSetSelectedRows = null;
|
|
3120
|
+
(_h = this.adaptableStore) === null || _h === void 0 ? void 0 : _h.destroy();
|
|
3109
3121
|
this.adaptableStore = null;
|
|
3110
|
-
(
|
|
3122
|
+
(_j = this.adaptableModules) === null || _j === void 0 ? void 0 : _j.clear();
|
|
3111
3123
|
this.adaptableModules = null;
|
|
3112
3124
|
this.adaptableOptions = null;
|
|
3113
3125
|
this.adaptableStatusPanelKeys = null;
|
|
3114
|
-
(
|
|
3126
|
+
(_l = (_k = this.CalculatedColumnExpressionService) === null || _k === void 0 ? void 0 : _k.destroy) === null || _l === void 0 ? void 0 : _l.call(_k);
|
|
3115
3127
|
this.CalculatedColumnExpressionService = null;
|
|
3116
|
-
(
|
|
3128
|
+
(_o = (_m = this.DataService) === null || _m === void 0 ? void 0 : _m.destroy) === null || _o === void 0 ? void 0 : _o.call(_m);
|
|
3117
3129
|
this.DataService = null;
|
|
3118
|
-
(
|
|
3130
|
+
(_q = (_p = this.Fdc3Service) === null || _p === void 0 ? void 0 : _p.destroy) === null || _q === void 0 ? void 0 : _q.call(_p);
|
|
3119
3131
|
this.Fdc3Service = null;
|
|
3120
|
-
(
|
|
3132
|
+
(_s = (_r = this.ModuleService) === null || _r === void 0 ? void 0 : _r.destroy) === null || _s === void 0 ? void 0 : _s.call(_r);
|
|
3121
3133
|
this.ModuleService = null;
|
|
3122
|
-
(
|
|
3134
|
+
(_u = (_t = this.ValidationService) === null || _t === void 0 ? void 0 : _t.destroy) === null || _u === void 0 ? void 0 : _u.call(_t);
|
|
3123
3135
|
this.ValidationService = null;
|
|
3124
|
-
(
|
|
3136
|
+
(_w = (_v = this.QueryLanguageService) === null || _v === void 0 ? void 0 : _v.destroy) === null || _w === void 0 ? void 0 : _w.call(_v);
|
|
3125
3137
|
this.QueryLanguageService = null;
|
|
3126
|
-
(
|
|
3138
|
+
(_y = (_x = this.AlertService) === null || _x === void 0 ? void 0 : _x.destroy) === null || _y === void 0 ? void 0 : _y.call(_x);
|
|
3127
3139
|
this.AlertService = null;
|
|
3128
|
-
(
|
|
3140
|
+
(_0 = (_z = this.TeamSharingService) === null || _z === void 0 ? void 0 : _z.destroy) === null || _0 === void 0 ? void 0 : _0.call(_z);
|
|
3129
3141
|
this.TeamSharingService = null;
|
|
3130
|
-
(
|
|
3142
|
+
(_2 = (_1 = this.RowEditService) === null || _1 === void 0 ? void 0 : _1.destroy) === null || _2 === void 0 ? void 0 : _2.call(_1);
|
|
3131
3143
|
this.RowEditService = null;
|
|
3132
|
-
(
|
|
3144
|
+
(_4 = (_3 = this.MetamodelService) === null || _3 === void 0 ? void 0 : _3.destroy) === null || _4 === void 0 ? void 0 : _4.call(_3);
|
|
3133
3145
|
this.MetamodelService = null;
|
|
3134
|
-
(
|
|
3146
|
+
(_6 = (_5 = this.LicenseService) === null || _5 === void 0 ? void 0 : _5.destroy) === null || _6 === void 0 ? void 0 : _6.call(_5);
|
|
3135
3147
|
this.LicenseService = null;
|
|
3136
|
-
(
|
|
3148
|
+
(_8 = (_7 = this.FlashingCellService) === null || _7 === void 0 ? void 0 : _7.destroy) === null || _8 === void 0 ? void 0 : _8.call(_7);
|
|
3137
3149
|
this.FlashingCellService = null;
|
|
3138
|
-
(
|
|
3150
|
+
(_10 = (_9 = this.ThemeService) === null || _9 === void 0 ? void 0 : _9.destroy) === null || _10 === void 0 ? void 0 : _10.call(_9);
|
|
3139
3151
|
this.ThemeService = null;
|
|
3140
|
-
(
|
|
3152
|
+
(_12 = (_11 = this.ChartingService) === null || _11 === void 0 ? void 0 : _11.destroy) === null || _12 === void 0 ? void 0 : _12.call(_11);
|
|
3141
3153
|
this.ChartingService = null;
|
|
3142
|
-
(
|
|
3154
|
+
(_14 = (_13 = this.CellPopupService) === null || _13 === void 0 ? void 0 : _13.destroy) === null || _14 === void 0 ? void 0 : _14.call(_13);
|
|
3143
3155
|
this.CellPopupService = null;
|
|
3144
|
-
(
|
|
3156
|
+
(_15 = this.unmountLoadingScreen) === null || _15 === void 0 ? void 0 : _15.call(this);
|
|
3145
3157
|
this.unmountLoadingScreen = null;
|
|
3146
|
-
if (config === null || config === void 0 ? void 0 : config.unmount) {
|
|
3147
|
-
const abContainerElement = this.getAdaptableContainerElement();
|
|
3148
|
-
if (abContainerElement != null) {
|
|
3149
|
-
(_15 = this.unmountReactRoot) === null || _15 === void 0 ? void 0 : _15.call(this);
|
|
3150
|
-
}
|
|
3151
|
-
this.unmountReactRoot = null;
|
|
3152
|
-
}
|
|
3153
3158
|
}
|
|
3154
3159
|
canExportToExcel() {
|
|
3155
3160
|
return this.agGridAdapter.isModulePresent(ModuleNames.ExcelExportModule);
|
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:
|
|
4
|
-
VERSION: "19.2.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1732879039214 || Date.now(),
|
|
4
|
+
VERSION: "19.2.2-canary.0" || '--current-version--',
|
|
5
5
|
};
|