@adaptabletools/adaptable 14.0.0-canary.1 → 14.0.0-canary.2
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/bundle.cjs.js +188 -188
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Api/AdaptableApi.d.ts +9 -1
- package/src/Api/ConfigApi.d.ts +1 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
- package/src/Api/Implementation/ApiBase.d.ts +6 -1
- package/src/Api/Implementation/ApiBase.js +15 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ConfigApiImpl.js +3 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +36 -0
- package/src/Api/Implementation/OptionsApiImpl.js +100 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +6 -0
- package/src/Api/Internal/AdaptableInternalApi.js +6 -0
- package/src/Api/OptionsApi.d.ts +131 -0
- package/src/Api/OptionsApi.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +11 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "14.0.0-canary.
|
|
3
|
+
"version": "14.0.0-canary.2",
|
|
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",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1671469051327;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -39,6 +39,7 @@ import { ChartingApi } from './ChartingApi';
|
|
|
39
39
|
import { SettingsPanelApi } from './SettingsPanelApi';
|
|
40
40
|
import { StatusBarApi } from './StatusBarApi';
|
|
41
41
|
import { StyledColumnApi } from './StyledColumnApi';
|
|
42
|
+
import { OptionsApi } from './OptionsApi';
|
|
42
43
|
/**
|
|
43
44
|
*
|
|
44
45
|
* The `AdaptableApi` provides developers with run-time access to AdapTable.
|
|
@@ -46,6 +47,10 @@ import { StyledColumnApi } from './StyledColumnApi';
|
|
|
46
47
|
* Has a huge number of classes each dedicated to a specific AdapTable Module or functionality
|
|
47
48
|
*/
|
|
48
49
|
export interface AdaptableApi {
|
|
50
|
+
/**
|
|
51
|
+
* Provides access to the Adaptable Options
|
|
52
|
+
*/
|
|
53
|
+
optionsApi: OptionsApi;
|
|
49
54
|
/**
|
|
50
55
|
* Provides access to Action Rows and Columns
|
|
51
56
|
*/
|
|
@@ -151,7 +156,7 @@ export interface AdaptableApi {
|
|
|
151
156
|
*/
|
|
152
157
|
queryApi: QueryApi;
|
|
153
158
|
/**
|
|
154
|
-
*
|
|
159
|
+
* Manages AdapTableQL (Query Language)
|
|
155
160
|
*/
|
|
156
161
|
queryLanguageApi: QueryLanguageApi;
|
|
157
162
|
/**
|
|
@@ -178,6 +183,9 @@ export interface AdaptableApi {
|
|
|
178
183
|
* Provides access to the Smart Edit Module
|
|
179
184
|
*/
|
|
180
185
|
smartEditApi: SmartEditApi;
|
|
186
|
+
/**
|
|
187
|
+
* Provides access to the Styled Column Module
|
|
188
|
+
*/
|
|
181
189
|
styledColumnApi: StyledColumnApi;
|
|
182
190
|
/**
|
|
183
191
|
* Methods related to displaying System Status and application health messages
|
package/src/Api/ConfigApi.d.ts
CHANGED
|
@@ -22,11 +22,7 @@ import { QueryState } from '../PredefinedConfig/QueryState';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ConfigApi {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
configInit(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Changes the key used for persisting the Adaptablestate into localStorage
|
|
25
|
+
* Changes the key used for persisting the AdaptableState into localStorage
|
|
30
26
|
* @param adaptableStateKey key for persisting the AdaptableState into localStorage
|
|
31
27
|
*/
|
|
32
28
|
setAdaptableStateKey(adaptableStateKey: string, config?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
2
|
import { AdaptableInternalApi } from '../Internal/AdaptableInternalApi';
|
|
3
|
-
import { AdaptableApi, SettingsPanelApi } from '../../types';
|
|
3
|
+
import { AdaptableApi, OptionsApi, SettingsPanelApi } from '../../types';
|
|
4
4
|
import { AlertApi } from '../AlertApi';
|
|
5
5
|
import { BulkUpdateApi } from '../BulkUpdateApi';
|
|
6
6
|
import { CalendarApi } from '../CalendarApi';
|
|
@@ -44,6 +44,7 @@ import { StyledColumnApi } from '../StyledColumnApi';
|
|
|
44
44
|
export declare class AdaptableApiImpl implements AdaptableApi {
|
|
45
45
|
protected adaptable: IAdaptable;
|
|
46
46
|
internalApi: AdaptableInternalApi;
|
|
47
|
+
optionsApi: OptionsApi;
|
|
47
48
|
actionApi: ActionApi;
|
|
48
49
|
applicationApi: ApplicationApi;
|
|
49
50
|
alertApi: AlertApi;
|
|
@@ -43,11 +43,13 @@ const ActionApiImpl_1 = require("./ActionApiImpl");
|
|
|
43
43
|
const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
|
|
44
44
|
const CalendarApiImpl_1 = require("./CalendarApiImpl");
|
|
45
45
|
const EntitlementApiImpl_1 = require("./EntitlementApiImpl");
|
|
46
|
+
const OptionsApiImpl_1 = require("./OptionsApiImpl");
|
|
46
47
|
class AdaptableApiImpl {
|
|
47
48
|
constructor(adaptable) {
|
|
48
49
|
this.adaptable = adaptable;
|
|
49
50
|
this.destroyed = false;
|
|
50
51
|
this.adaptable = adaptable;
|
|
52
|
+
this.optionsApi = new OptionsApiImpl_1.OptionsApiImpl(adaptable);
|
|
51
53
|
this.actionApi = new ActionApiImpl_1.ActionApiImpl(adaptable);
|
|
52
54
|
this.applicationApi = new ApplicationApiImpl_1.ApplicationApiImpl(adaptable);
|
|
53
55
|
this.alertApi = new AlertApiImpl_1.AlertApiImpl(adaptable);
|
|
@@ -101,6 +103,7 @@ class AdaptableApiImpl {
|
|
|
101
103
|
}
|
|
102
104
|
this.destroyed = true;
|
|
103
105
|
this.eventApi.destroy();
|
|
106
|
+
this.optionsApi = null;
|
|
104
107
|
this.alertApi = null;
|
|
105
108
|
this.applicationApi = null;
|
|
106
109
|
this.bulkUpdateApi = null;
|
|
@@ -7,7 +7,7 @@ import { ModuleInfo } from '../../Strategy/Interface/IModule';
|
|
|
7
7
|
import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
8
8
|
import { AdaptableApi } from '../AdaptableApi';
|
|
9
9
|
import { ExportOptions } from '../../AdaptableOptions/ExportOptions';
|
|
10
|
-
import { ActionApi, ActionOptions, AlertApi, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CellSummaryApi, ChartingApi, ColumnApi, ConfigApi, ContainerOptions, CustomSortApi, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataSetApi, EditOptions, EntitlementApi, EventApi, ExportApi, FilterApi, FilterOptions, FlashingCellApi, FormatColumnApi, FreeTextColumnApi, GeneralOptions, GridApi, LayoutApi, LayoutAssociatedObject, LayoutOptions, MenuOptions, PluginsApi, PlusMinusApi, PredicateApi, QueryApi, QueryLanguageApi, QuickSearchApi, ScheduleApi, ScopeApi, SearchOptions, SettingsPanelApi, ShortcutApi, SmartEditApi, StateOptions, StatusBarApi, StyledColumnApi, SystemStatusApi, TeamSharingApi, TeamSharingOptions, ThemeApi, ToolPanelApi, UserInterfaceApi, UserInterfaceOptions } from '../../types';
|
|
10
|
+
import { ActionApi, ActionOptions, AlertApi, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CellSummaryApi, ChartingApi, ChartingOptions, ColumnApi, ConfigApi, ContainerOptions, CustomSortApi, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, FilterApi, FilterOptions, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FreeTextColumnApi, GeneralOptions, GridApi, LayoutApi, LayoutAssociatedObject, LayoutOptions, MenuOptions, PluginsApi, PlusMinusApi, PredicateApi, QueryApi, QueryLanguageApi, QuickSearchApi, ScheduleApi, ScopeApi, SearchOptions, SettingsPanelApi, SettingsPanelOptions, ShortcutApi, SmartEditApi, StateOptions, StatusBarApi, StyledColumnApi, SystemStatusApi, TeamSharingApi, TeamSharingOptions, ThemeApi, ToolPanelApi, UserInterfaceApi, UserInterfaceOptions } from '../../types';
|
|
11
11
|
import { NotificationsOptions } from '../../AdaptableOptions/NotificationsOptions';
|
|
12
12
|
import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
|
|
13
13
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
@@ -70,6 +70,11 @@ export declare abstract class ApiBase {
|
|
|
70
70
|
protected getUserInterfaceOptions(): UserInterfaceOptions;
|
|
71
71
|
protected getToolPanelOptions(): ToolPanelOptions;
|
|
72
72
|
protected getExpressionOptions(): ExpressionOptions;
|
|
73
|
+
protected getChartingOptions(): ChartingOptions;
|
|
74
|
+
protected getDataChangeHistoryOptions(): DataChangeHistoryOptions;
|
|
75
|
+
protected getEntitlementOptions(): EntitlementOptions;
|
|
76
|
+
protected getFlashingCellOptions(): FlashingCellOptions;
|
|
77
|
+
protected getSettingsPanelOptions(): SettingsPanelOptions;
|
|
73
78
|
protected getAdaptableApi(): AdaptableApi;
|
|
74
79
|
protected getActionApi(): ActionApi;
|
|
75
80
|
protected getApplicationApi(): ApplicationApi;
|
|
@@ -139,6 +139,21 @@ class ApiBase {
|
|
|
139
139
|
getExpressionOptions() {
|
|
140
140
|
return this.getAdaptableQLOptions().expressionOptions;
|
|
141
141
|
}
|
|
142
|
+
getChartingOptions() {
|
|
143
|
+
return this.adaptable.adaptableOptions.chartingOptions;
|
|
144
|
+
}
|
|
145
|
+
getDataChangeHistoryOptions() {
|
|
146
|
+
return this.adaptable.adaptableOptions.dataChangeHistoryOptions;
|
|
147
|
+
}
|
|
148
|
+
getEntitlementOptions() {
|
|
149
|
+
return this.adaptable.adaptableOptions.entitlementOptions;
|
|
150
|
+
}
|
|
151
|
+
getFlashingCellOptions() {
|
|
152
|
+
return this.adaptable.adaptableOptions.flashingCellOptions;
|
|
153
|
+
}
|
|
154
|
+
getSettingsPanelOptions() {
|
|
155
|
+
return this.adaptable.adaptableOptions.settingsPanelOptions;
|
|
156
|
+
}
|
|
142
157
|
getAdaptableApi() {
|
|
143
158
|
return this.adaptable.api;
|
|
144
159
|
}
|
|
@@ -17,7 +17,7 @@ import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState'
|
|
|
17
17
|
import { ToolPanelState } from '../../PredefinedConfig/ToolPanelState';
|
|
18
18
|
import { ConfigApi } from '../ConfigApi';
|
|
19
19
|
import { AdaptableModule, AdaptableStateKey } from '../../PredefinedConfig/Common/Types';
|
|
20
|
-
import { AdaptableSearchState, AdaptableSortState, ScheduleState } from '../../types';
|
|
20
|
+
import { AdaptableOptions, AdaptableSearchState, AdaptableSortState, ScheduleState } from '../../types';
|
|
21
21
|
import { QueryState } from '../../PredefinedConfig/QueryState';
|
|
22
22
|
import { PredefinedConfig } from '../../PredefinedConfig/PredefinedConfig';
|
|
23
23
|
import { ChartingState } from '../../PredefinedConfig/ChartingState';
|
|
@@ -35,6 +35,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
35
35
|
}): void;
|
|
36
36
|
getAdaptableSearchState(): AdaptableSearchState;
|
|
37
37
|
getAdaptableSortState(): AdaptableSortState;
|
|
38
|
+
getAdaptableOptions(): Readonly<AdaptableOptions>;
|
|
38
39
|
setAdaptableStateKey(adaptableStateKey: string, config?: {
|
|
39
40
|
predefinedConfig: PredefinedConfig;
|
|
40
41
|
flushCurrentState?: boolean;
|
|
@@ -113,6 +113,9 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
113
113
|
};
|
|
114
114
|
return adaptableSortState;
|
|
115
115
|
}
|
|
116
|
+
getAdaptableOptions() {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
116
119
|
setAdaptableStateKey(adaptableStateKey, config) {
|
|
117
120
|
return new Promise((resolve, reject) => {
|
|
118
121
|
this.adaptable.api.internalApi.executeWithProgressIndicator(`Initialising...`, () => {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ApiBase } from './ApiBase';
|
|
2
|
+
import { GridOptions } from '@ag-grid-community/core';
|
|
3
|
+
import { ActionOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, GeneralOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, SearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../../types';
|
|
4
|
+
export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
5
|
+
getAdaptableId(): string;
|
|
6
|
+
getAdaptableStateKey(): string;
|
|
7
|
+
getAgGridOptions(): GridOptions;
|
|
8
|
+
getAutogeneratePrimaryKey(): boolean;
|
|
9
|
+
getLicenseKey(): string;
|
|
10
|
+
getPrimaryKey(): string;
|
|
11
|
+
getUserName(): string;
|
|
12
|
+
getAdaptableOptions(): AdaptableOptions;
|
|
13
|
+
getActionOptions(): ActionOptions;
|
|
14
|
+
getColumnOptions(): ColumnOptions;
|
|
15
|
+
getContainerOptions(): ContainerOptions;
|
|
16
|
+
getNotificationsOptions(): NotificationsOptions;
|
|
17
|
+
getAlertOptions(): AlertOptions;
|
|
18
|
+
getDashboardOptions(): DashboardOptions;
|
|
19
|
+
getEditOptions(): EditOptions;
|
|
20
|
+
getExportOptions(): ExportOptions;
|
|
21
|
+
getGeneralOptions(): GeneralOptions;
|
|
22
|
+
getLayoutOptions(): LayoutOptions;
|
|
23
|
+
getMenuOptions(): MenuOptions;
|
|
24
|
+
getFilterOptions(): FilterOptions;
|
|
25
|
+
getAdaptableQLOptions(): AdaptableQLOptions;
|
|
26
|
+
getSearchOptions(): SearchOptions;
|
|
27
|
+
getStateOptions(): StateOptions;
|
|
28
|
+
getTeamSharingOptions(): TeamSharingOptions;
|
|
29
|
+
getUserInterfaceOptions(): UserInterfaceOptions;
|
|
30
|
+
getToolPanelOptions(): ToolPanelOptions;
|
|
31
|
+
getChartingOptions(): ChartingOptions;
|
|
32
|
+
getDataChangeHistoryOptions(): DataChangeHistoryOptions;
|
|
33
|
+
getEntitlementOptions(): EntitlementOptions;
|
|
34
|
+
getFlashingCellOptions(): FlashingCellOptions;
|
|
35
|
+
getSettingsPanelOptions(): SettingsPanelOptions;
|
|
36
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OptionsApiImpl = void 0;
|
|
4
|
+
const ApiBase_1 = require("./ApiBase");
|
|
5
|
+
class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
6
|
+
getAdaptableId() {
|
|
7
|
+
return this.adaptable.adaptableOptions.adaptableId;
|
|
8
|
+
}
|
|
9
|
+
getAdaptableStateKey() {
|
|
10
|
+
return this.adaptable.adaptableOptions.adaptableStateKey;
|
|
11
|
+
}
|
|
12
|
+
getAgGridOptions() {
|
|
13
|
+
return this.adaptable.adaptableOptions.gridOptions;
|
|
14
|
+
}
|
|
15
|
+
getAutogeneratePrimaryKey() {
|
|
16
|
+
return this.adaptable.adaptableOptions.autogeneratePrimaryKey;
|
|
17
|
+
}
|
|
18
|
+
getLicenseKey() {
|
|
19
|
+
return this.adaptable.adaptableOptions.licenseKey;
|
|
20
|
+
}
|
|
21
|
+
getPrimaryKey() {
|
|
22
|
+
return this.adaptable.adaptableOptions.primaryKey;
|
|
23
|
+
}
|
|
24
|
+
getUserName() {
|
|
25
|
+
return this.adaptable.adaptableOptions.userName;
|
|
26
|
+
}
|
|
27
|
+
getAdaptableOptions() {
|
|
28
|
+
return this.getOptions();
|
|
29
|
+
}
|
|
30
|
+
getActionOptions() {
|
|
31
|
+
return this.getOptions().actionOptions;
|
|
32
|
+
}
|
|
33
|
+
getColumnOptions() {
|
|
34
|
+
return this.getOptions().columnOptions;
|
|
35
|
+
}
|
|
36
|
+
getContainerOptions() {
|
|
37
|
+
return this.getOptions().containerOptions;
|
|
38
|
+
}
|
|
39
|
+
getNotificationsOptions() {
|
|
40
|
+
return this.getOptions().notificationsOptions;
|
|
41
|
+
}
|
|
42
|
+
getAlertOptions() {
|
|
43
|
+
return this.getOptions().alertOptions;
|
|
44
|
+
}
|
|
45
|
+
getDashboardOptions() {
|
|
46
|
+
return this.getOptions().dashboardOptions;
|
|
47
|
+
}
|
|
48
|
+
getEditOptions() {
|
|
49
|
+
return this.getOptions().editOptions;
|
|
50
|
+
}
|
|
51
|
+
getExportOptions() {
|
|
52
|
+
return this.getOptions().exportOptions;
|
|
53
|
+
}
|
|
54
|
+
getGeneralOptions() {
|
|
55
|
+
return this.getOptions().generalOptions;
|
|
56
|
+
}
|
|
57
|
+
getLayoutOptions() {
|
|
58
|
+
return this.getOptions().layoutOptions;
|
|
59
|
+
}
|
|
60
|
+
getMenuOptions() {
|
|
61
|
+
return this.getOptions().menuOptions;
|
|
62
|
+
}
|
|
63
|
+
getFilterOptions() {
|
|
64
|
+
return this.getOptions().filterOptions;
|
|
65
|
+
}
|
|
66
|
+
getAdaptableQLOptions() {
|
|
67
|
+
return this.getOptions().adaptableQLOptions;
|
|
68
|
+
}
|
|
69
|
+
getSearchOptions() {
|
|
70
|
+
return this.getOptions().searchOptions;
|
|
71
|
+
}
|
|
72
|
+
getStateOptions() {
|
|
73
|
+
return this.getOptions().stateOptions;
|
|
74
|
+
}
|
|
75
|
+
getTeamSharingOptions() {
|
|
76
|
+
return this.getOptions().teamSharingOptions;
|
|
77
|
+
}
|
|
78
|
+
getUserInterfaceOptions() {
|
|
79
|
+
return this.getOptions().userInterfaceOptions;
|
|
80
|
+
}
|
|
81
|
+
getToolPanelOptions() {
|
|
82
|
+
return this.getOptions().toolPanelOptions;
|
|
83
|
+
}
|
|
84
|
+
getChartingOptions() {
|
|
85
|
+
return this.getOptions().chartingOptions;
|
|
86
|
+
}
|
|
87
|
+
getDataChangeHistoryOptions() {
|
|
88
|
+
return this.getOptions().dataChangeHistoryOptions;
|
|
89
|
+
}
|
|
90
|
+
getEntitlementOptions() {
|
|
91
|
+
return this.getOptions().entitlementOptions;
|
|
92
|
+
}
|
|
93
|
+
getFlashingCellOptions() {
|
|
94
|
+
return this.getOptions().flashingCellOptions;
|
|
95
|
+
}
|
|
96
|
+
getSettingsPanelOptions() {
|
|
97
|
+
return this.getOptions().settingsPanelOptions;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.OptionsApiImpl = OptionsApiImpl;
|
|
@@ -46,11 +46,17 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
46
46
|
isGridInTreeMode(): boolean;
|
|
47
47
|
getToolbarTitle(): string;
|
|
48
48
|
buildDataChangedInfo(config: Pick<CellDataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): CellDataChangedInfo;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated use `OptionsApi.getPrimaryKey()`
|
|
51
|
+
*/
|
|
49
52
|
getPrimaryKey(): any;
|
|
50
53
|
getAdaptableInstance(): IAdaptable;
|
|
51
54
|
getAgGridInstance(): any;
|
|
52
55
|
getPredefinedConfig(): any;
|
|
53
56
|
getState(): AdaptableState;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated use OptionsApi.getAdaptableOptions()
|
|
59
|
+
*/
|
|
54
60
|
getAdaptableOptions(): AdaptableOptions;
|
|
55
61
|
getValidationService(): IValidationService;
|
|
56
62
|
getModuleService(): IModuleService;
|
|
@@ -79,6 +79,9 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
79
79
|
var _a;
|
|
80
80
|
return Object.assign(Object.assign({}, config), { rowData: (_a = config.rowNode) === null || _a === void 0 ? void 0 : _a.data, changedAt: Date.now() });
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use `OptionsApi.getPrimaryKey()`
|
|
84
|
+
*/
|
|
82
85
|
getPrimaryKey() {
|
|
83
86
|
return this.adaptable.adaptableOptions.primaryKey;
|
|
84
87
|
}
|
|
@@ -94,6 +97,9 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
94
97
|
getState() {
|
|
95
98
|
return this.getAdaptableState();
|
|
96
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated use OptionsApi.getAdaptableOptions()
|
|
102
|
+
*/
|
|
97
103
|
getAdaptableOptions() {
|
|
98
104
|
return this.getOptions();
|
|
99
105
|
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { GridOptions } from '@ag-grid-community/core';
|
|
2
|
+
import { ActionOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, GeneralOptions, LayoutOptions, MenuOptions, NotificationsOptions, SearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Range of functions to access AdaptableOptions
|
|
5
|
+
*/
|
|
6
|
+
export interface OptionsApi {
|
|
7
|
+
/**
|
|
8
|
+
* Returns `AdaptableOptions.adaptableId`
|
|
9
|
+
*/
|
|
10
|
+
getAdaptableId(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Returns `AdaptableOptions.adaptableStateKey`
|
|
13
|
+
*/
|
|
14
|
+
getAdaptableStateKey(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Returns `AdaptableOptions.autogeneratePrimaryKey`
|
|
17
|
+
*/
|
|
18
|
+
getAutogeneratePrimaryKey(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns `AdaptableOptions.gridOptions`
|
|
21
|
+
*/
|
|
22
|
+
getAgGridOptions(): GridOptions;
|
|
23
|
+
/**
|
|
24
|
+
* Returns `AdaptableOptions.licenseKey`
|
|
25
|
+
*/
|
|
26
|
+
getLicenseKey(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns `AdaptableOptions.primaryKey`
|
|
29
|
+
*/
|
|
30
|
+
getPrimaryKey(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Returns `AdaptableOptions.userName`
|
|
33
|
+
*/
|
|
34
|
+
getUserName(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Returns provided `AdaptableOptions`
|
|
37
|
+
*/
|
|
38
|
+
getAdaptableOptions(): AdaptableOptions;
|
|
39
|
+
/**
|
|
40
|
+
* Returns `AdaptableOptions.actionOptions`
|
|
41
|
+
*/
|
|
42
|
+
getActionOptions(): Readonly<ActionOptions>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns `AdaptableOptions.alertOptions`
|
|
45
|
+
*/
|
|
46
|
+
getAlertOptions(): Readonly<AlertOptions>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns `AdaptableOptions.adaptableQLOptions`
|
|
49
|
+
*/
|
|
50
|
+
getAdaptableQLOptions(): Readonly<AdaptableQLOptions>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns `AdaptableOptions.chartingOptions`
|
|
53
|
+
*/
|
|
54
|
+
getChartingOptions(): Readonly<ChartingOptions>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns `AdaptableOptions.containerOptions`
|
|
57
|
+
*/
|
|
58
|
+
getContainerOptions(): Readonly<ContainerOptions>;
|
|
59
|
+
/**
|
|
60
|
+
* Returns `AdaptableOptions.columnOptions`
|
|
61
|
+
*/
|
|
62
|
+
getColumnOptions(): Readonly<ColumnOptions>;
|
|
63
|
+
/**
|
|
64
|
+
* Returns `AdaptableOptions.dashboardOptions`
|
|
65
|
+
*/
|
|
66
|
+
getDashboardOptions(): Readonly<DashboardOptions>;
|
|
67
|
+
/**
|
|
68
|
+
* Returns `AdaptableOptions.dataChangeHistoryOptions`
|
|
69
|
+
*/
|
|
70
|
+
getDataChangeHistoryOptions(): Readonly<DataChangeHistoryOptions>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns `AdaptableOptions.editOptions`
|
|
73
|
+
*/
|
|
74
|
+
getEditOptions(): Readonly<EditOptions>;
|
|
75
|
+
/**
|
|
76
|
+
* Returns `AdaptableOptions.entitlementOptions`
|
|
77
|
+
*/
|
|
78
|
+
getEntitlementOptions(): Readonly<EntitlementOptions>;
|
|
79
|
+
/**
|
|
80
|
+
* Returns `AdaptableOptions.exportOptions`
|
|
81
|
+
*/
|
|
82
|
+
getExportOptions(): Readonly<ExportOptions>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns `AdaptableOptions.filterOptions`
|
|
85
|
+
*/
|
|
86
|
+
getFilterOptions(): Readonly<FilterOptions>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns `AdaptableOptions.flashingCellOptions`
|
|
89
|
+
*/
|
|
90
|
+
getFlashingCellOptions(): Readonly<FlashingCellOptions>;
|
|
91
|
+
/**
|
|
92
|
+
* Returns `AdaptableOptions.generalOptions`
|
|
93
|
+
*/
|
|
94
|
+
getGeneralOptions(): Readonly<GeneralOptions>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns `AdaptableOptions.layoutOptions`
|
|
97
|
+
*/
|
|
98
|
+
getLayoutOptions(): Readonly<LayoutOptions>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns `AdaptableOptions.menuOptions`
|
|
101
|
+
*/
|
|
102
|
+
getMenuOptions(): Readonly<MenuOptions>;
|
|
103
|
+
/**
|
|
104
|
+
* Returns `AdaptableOptions.notificationsOptions`
|
|
105
|
+
*/
|
|
106
|
+
getNotificationsOptions(): Readonly<NotificationsOptions>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns `AdaptableOptions.searchOptions`
|
|
109
|
+
*/
|
|
110
|
+
getSearchOptions(): Readonly<SearchOptions>;
|
|
111
|
+
/**
|
|
112
|
+
* Returns `AdaptableOptions.settingsPanelOptions`
|
|
113
|
+
*/
|
|
114
|
+
getSettingsPanelOptions(): Readonly<SettingsPanelOptions>;
|
|
115
|
+
/**
|
|
116
|
+
* Returns `AdaptableOptions.stateOptions`
|
|
117
|
+
*/
|
|
118
|
+
getStateOptions(): Readonly<StateOptions>;
|
|
119
|
+
/**
|
|
120
|
+
* Returns `AdaptableOptions.teamSharingOptions`
|
|
121
|
+
*/
|
|
122
|
+
getTeamSharingOptions(): Readonly<TeamSharingOptions>;
|
|
123
|
+
/**
|
|
124
|
+
* Returns `AdaptableOptions.toolPanelOptions`
|
|
125
|
+
*/
|
|
126
|
+
getToolPanelOptions(): Readonly<ToolPanelOptions>;
|
|
127
|
+
/**
|
|
128
|
+
* Returns `AdaptableOptions.userInterfaceOptions`
|
|
129
|
+
*/
|
|
130
|
+
getUserInterfaceOptions(): Readonly<UserInterfaceOptions>;
|
|
131
|
+
}
|
|
@@ -4139,6 +4139,17 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4139
4139
|
kind: string;
|
|
4140
4140
|
description: string;
|
|
4141
4141
|
};
|
|
4142
|
+
OptionsApi: {
|
|
4143
|
+
name: string;
|
|
4144
|
+
kind: string;
|
|
4145
|
+
description: string;
|
|
4146
|
+
properties: {
|
|
4147
|
+
name: string;
|
|
4148
|
+
kind: string;
|
|
4149
|
+
description: string;
|
|
4150
|
+
uiLabel: string;
|
|
4151
|
+
}[];
|
|
4152
|
+
};
|
|
4142
4153
|
OrganizationColumn: {
|
|
4143
4154
|
name: string;
|
|
4144
4155
|
kind: string;
|