@adaptabletools/adaptable 20.0.0-canary.23 → 20.0.0-canary.24
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/StateOptions.d.ts +1 -1
- package/src/AdaptableState/AdaptableState.d.ts +2 -2
- package/src/AdaptableState/AlertState.d.ts +2 -2
- package/src/AdaptableState/ApplicationState.d.ts +2 -2
- package/src/AdaptableState/{ConfigState.d.ts → BaseState.d.ts} +1 -1
- package/src/AdaptableState/CalculatedColumnState.d.ts +2 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/CommentState.d.ts +2 -2
- package/src/AdaptableState/CustomSortState.d.ts +2 -2
- package/src/AdaptableState/DashboardState.d.ts +2 -2
- package/src/AdaptableState/ExportState.d.ts +2 -2
- package/src/AdaptableState/FlashingCellState.d.ts +2 -2
- package/src/AdaptableState/FormatColumnState.d.ts +2 -2
- package/src/AdaptableState/FreeTextColumnState.d.ts +2 -2
- package/src/AdaptableState/IPushPullState.d.ts +2 -2
- package/src/AdaptableState/LayoutState.d.ts +2 -2
- package/src/AdaptableState/NamedQueryState.d.ts +2 -2
- package/src/AdaptableState/NoteState.d.ts +2 -2
- package/src/AdaptableState/OpenFinState.d.ts +2 -2
- package/src/AdaptableState/PlusMinusState.d.ts +2 -2
- package/src/AdaptableState/PopupState.d.ts +2 -2
- package/src/AdaptableState/QuickSearchState.d.ts +2 -2
- package/src/AdaptableState/ScheduleState.d.ts +2 -2
- package/src/AdaptableState/ShortcutState.d.ts +2 -2
- package/src/AdaptableState/StatusBarState.d.ts +2 -2
- package/src/AdaptableState/StyledColumnState.d.ts +2 -2
- package/src/AdaptableState/TeamSharingState.d.ts +2 -2
- package/src/AdaptableState/ThemeState.d.ts +2 -2
- package/src/AdaptableState/ToolPanelState.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
- package/src/Api/Implementation/ApiBase.d.ts +2 -2
- package/src/Api/Implementation/ApiBase.js +2 -2
- package/src/Api/Implementation/{ConfigApiImpl.d.ts → StateApiImpl.d.ts} +5 -5
- package/src/Api/Implementation/{ConfigApiImpl.js → StateApiImpl.js} +3 -3
- package/src/Api/Internal/EventInternalApi.js +1 -1
- package/src/Api/{ConfigApi.d.ts → StateApi.d.ts} +4 -4
- package/src/Redux/Store/AdaptableReduxMerger.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.d.ts +3 -3
- package/src/Strategy/AdaptableModuleBase.js +2 -3
- package/src/View/StateManagement/StateManagementPopup.js +2 -2
- package/src/View/StateManagement/StateManagementViewPanel.js +2 -2
- package/src/View/StateManagement/components/ExportDropdown.js +2 -2
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +11 -11
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +4 -4
- package/tsconfig.esm.tsbuildinfo +1 -1
- /package/src/AdaptableState/{ConfigState.js → BaseState.js} +0 -0
- /package/src/Api/{ConfigApi.js → StateApi.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "20.0.0-canary.
|
|
3
|
+
"version": "20.0.0-canary.24",
|
|
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",
|
|
@@ -72,7 +72,7 @@ export interface AdaptablePersistStateFunction {
|
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* Allows clearing state when a custom persistState is used.
|
|
75
|
-
* Only called by
|
|
75
|
+
* Only called by StateApi.reloadInitialState
|
|
76
76
|
*/
|
|
77
77
|
export interface AdaptableClearStateFunction {
|
|
78
78
|
(adaptableStateFunctionConfig: AdaptableStateFunctionConfig): Promise<any>;
|
|
@@ -14,7 +14,7 @@ import { QuickSearchState } from './QuickSearchState';
|
|
|
14
14
|
import { ShortcutState } from './ShortcutState';
|
|
15
15
|
import { TeamSharingState } from './TeamSharingState';
|
|
16
16
|
import { ThemeState } from './ThemeState';
|
|
17
|
-
import {
|
|
17
|
+
import { BaseState } from './BaseState';
|
|
18
18
|
import { ApplicationState } from './ApplicationState';
|
|
19
19
|
import { ToolPanelState } from './ToolPanelState';
|
|
20
20
|
import { FlashingCellState } from './FlashingCellState';
|
|
@@ -28,7 +28,7 @@ import { CommentState } from './CommentState';
|
|
|
28
28
|
* The main state object of Adaptable
|
|
29
29
|
*/
|
|
30
30
|
export interface AdaptableState extends AdaptablePersistentState, AdaptableTransientState {
|
|
31
|
-
[s: string]:
|
|
31
|
+
[s: string]: BaseState;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* The state object of Adaptable which is persisted
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { ColumnScope } from './Common/ColumnScope';
|
|
3
3
|
import { AdaptableColumnPredicate } from './Common/AdaptablePredicate';
|
|
4
4
|
import { TypeHint } from './Common/Types';
|
|
@@ -14,7 +14,7 @@ import { AlertFormContext, BaseContext, NotificationsOptions } from '../types';
|
|
|
14
14
|
/**
|
|
15
15
|
* Adaptable State section for Alert Module
|
|
16
16
|
*/
|
|
17
|
-
export interface AlertState extends
|
|
17
|
+
export interface AlertState extends BaseState {
|
|
18
18
|
/**
|
|
19
19
|
* Alert Definitions - will trigger Alerts when rule is met
|
|
20
20
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
/**
|
|
3
3
|
* Adaptable State Section for the Application Module
|
|
4
4
|
**/
|
|
5
|
-
export interface ApplicationState extends
|
|
5
|
+
export interface ApplicationState extends BaseState {
|
|
6
6
|
/**
|
|
7
7
|
* Array of Key / Value pairs enabling custom data to be stored in Adaptable State.
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Base Interface for all Adaptable State objects; contains`Revision` property, used for versioning
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface BaseState {
|
|
5
5
|
/**
|
|
6
6
|
* Version number of the Item - allows developers to update one section in Initial Adaptable State while keeping others unchanged
|
|
7
7
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
3
|
import { AdaptableAggregatedScalarQuery, AdaptableScalarQuery } from './Common/AdaptableQuery';
|
|
4
4
|
import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
|
|
@@ -6,7 +6,7 @@ import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
|
6
6
|
/**
|
|
7
7
|
* Adaptable State Section for Calculated Column Module
|
|
8
8
|
**/
|
|
9
|
-
export interface CalculatedColumnState extends
|
|
9
|
+
export interface CalculatedColumnState extends BaseState {
|
|
10
10
|
/**
|
|
11
11
|
* Collection of Calculated Columns
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChartModel } from 'ag-grid-enterprise';
|
|
2
2
|
import { AdaptableObject } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import { BaseState } from './BaseState';
|
|
4
4
|
export declare const isExternalChartDefinition: (chartDefinition: ChartDefinition | ExternalChartDefinition) => chartDefinition is ExternalChartDefinition<unknown>;
|
|
5
5
|
export declare const isAgChartDefinition: (chartDefinition: ChartDefinition | ExternalChartDefinition) => chartDefinition is ChartDefinition;
|
|
6
6
|
/**
|
|
@@ -38,7 +38,7 @@ export interface ChartDefinition extends AdaptableObject {
|
|
|
38
38
|
/**
|
|
39
39
|
* Persists AG Grid Charts in Adaptable State
|
|
40
40
|
*/
|
|
41
|
-
export interface ChartingState extends
|
|
41
|
+
export interface ChartingState extends BaseState {
|
|
42
42
|
/**
|
|
43
43
|
* Wrappers around AG Grid Chart Models
|
|
44
44
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CellAddress,
|
|
1
|
+
import { CellAddress, BaseState } from '../types';
|
|
2
2
|
import { TypeUuid } from './Uuid';
|
|
3
3
|
/**
|
|
4
4
|
* Internal State used for Comments Module
|
|
5
5
|
*/
|
|
6
|
-
export interface CommentState extends
|
|
6
|
+
export interface CommentState extends BaseState {
|
|
7
7
|
/**
|
|
8
8
|
* Collection of AdapTable Comments
|
|
9
9
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
3
3
|
/**
|
|
4
4
|
* Adaptable State Section for Custom Sort Module
|
|
5
5
|
*/
|
|
6
|
-
export interface CustomSortState extends
|
|
6
|
+
export interface CustomSortState extends BaseState {
|
|
7
7
|
/**
|
|
8
8
|
* Collection of Custom Sort objects.
|
|
9
9
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableDashboardToolbars, AdaptableModuleButtons } from './Common/Types';
|
|
3
3
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
4
4
|
/**
|
|
5
5
|
* Adaptable State Section for the AdapTable Dashboard
|
|
6
6
|
*/
|
|
7
|
-
export interface DashboardState extends
|
|
7
|
+
export interface DashboardState extends BaseState {
|
|
8
8
|
/**
|
|
9
9
|
* Named group of Toolbars
|
|
10
10
|
* @defaultValue Empty Array
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { BaseSchedule } from './Common/Schedule';
|
|
3
3
|
import { ColumnScope } from './Common/ColumnScope';
|
|
4
4
|
import { AdaptableColumnBase } from './Common/AdaptableColumn';
|
|
@@ -9,7 +9,7 @@ import { ExportDestinationType } from '../AdaptableOptions/ExportOptions';
|
|
|
9
9
|
/**
|
|
10
10
|
* Adaptable State Section for Export Module
|
|
11
11
|
*/
|
|
12
|
-
export interface ExportState extends
|
|
12
|
+
export interface ExportState extends BaseState {
|
|
13
13
|
/**
|
|
14
14
|
* Selected Report Type - in Export Toolbar & Tool Panel
|
|
15
15
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
3
3
|
import { AdaptableColumnPredicate, ColumnScope } from '../types';
|
|
4
4
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
@@ -8,7 +8,7 @@ import { SuspendableObject } from '../../types';
|
|
|
8
8
|
/**
|
|
9
9
|
* Adaptable State Section for Flashing Cell module
|
|
10
10
|
*/
|
|
11
|
-
export interface FlashingCellState extends
|
|
11
|
+
export interface FlashingCellState extends BaseState {
|
|
12
12
|
/**
|
|
13
13
|
* Flashing Cell Definitions - will colour cells/rows when rule is met
|
|
14
14
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
3
3
|
import { AdaptableFormat } from './Common/AdaptableFormat';
|
|
4
4
|
import { ColumnScope } from './Common/ColumnScope';
|
|
@@ -11,7 +11,7 @@ import { AdaptableColumnPredicate } from './Common/AdaptablePredicate';
|
|
|
11
11
|
/**
|
|
12
12
|
* Adaptable State Section for Format Column Module
|
|
13
13
|
*/
|
|
14
|
-
export interface FormatColumnState extends
|
|
14
|
+
export interface FormatColumnState extends BaseState {
|
|
15
15
|
/**
|
|
16
16
|
* Collection of Format Columns
|
|
17
17
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
3
|
import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
|
|
4
4
|
/**
|
|
5
5
|
* Adaptable State Section for the Free Text Column Module
|
|
6
6
|
*/
|
|
7
|
-
export interface FreeTextColumnState extends
|
|
7
|
+
export interface FreeTextColumnState extends BaseState {
|
|
8
8
|
/**
|
|
9
9
|
* Collection of Free Text Columns
|
|
10
10
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseSchedule } from './Common/Schedule';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
|
-
import {
|
|
3
|
+
import { BaseState } from './BaseState';
|
|
4
4
|
/**
|
|
5
5
|
* Internal State used by AdapTable for managing the ipushpull plugin
|
|
6
6
|
*/
|
|
7
|
-
export interface IPushPullState extends
|
|
7
|
+
export interface IPushPullState extends BaseState {
|
|
8
8
|
IsIPushPullRunning?: boolean;
|
|
9
9
|
IPushPullDomainsPages?: IPushPullDomain[];
|
|
10
10
|
IPushPullLoginErrorMessage?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
3
|
import { ColumnSort } from './Common/ColumnSort';
|
|
4
4
|
import { ColumnFilter, GridFilter } from '../types';
|
|
@@ -16,7 +16,7 @@ export type LayoutArray = NonEmptyArray<Layout>;
|
|
|
16
16
|
/**
|
|
17
17
|
* Adaptable State Section for Layout Module, containing collection of Layouts and name of Current Layout
|
|
18
18
|
*/
|
|
19
|
-
export interface LayoutState extends
|
|
19
|
+
export interface LayoutState extends BaseState {
|
|
20
20
|
/**
|
|
21
21
|
* Layout to be loaded when AdapTable starts (using `Name` property in Layout); if not provided the first Layout is used
|
|
22
22
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
|
|
3
3
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
4
4
|
/**
|
|
5
5
|
* Adaptable State Section for Named Query Module
|
|
6
6
|
*/
|
|
7
|
-
export interface NamedQueryState extends
|
|
7
|
+
export interface NamedQueryState extends BaseState {
|
|
8
8
|
/**
|
|
9
9
|
* Named Queries which can be referenced in other Expressions
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AdaptableObject } from '../types';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseState } from './BaseState';
|
|
3
3
|
/**
|
|
4
4
|
* Adaptable State Section for Note Module
|
|
5
5
|
*/
|
|
6
|
-
export interface NoteState extends
|
|
6
|
+
export interface NoteState extends BaseState {
|
|
7
7
|
/**
|
|
8
8
|
* Collection of AdapTable Notes
|
|
9
9
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
3
|
import { BaseSchedule } from './Common/Schedule';
|
|
4
4
|
/**
|
|
5
5
|
* Internal State used by AdapTable for managing the OpenFin plugin
|
|
6
6
|
*/
|
|
7
|
-
export interface OpenFinState extends
|
|
7
|
+
export interface OpenFinState extends BaseState {
|
|
8
8
|
CurrentLiveOpenFinReport?: OpenFinReport;
|
|
9
9
|
OpenFinCurrentReportName?: string;
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { ColumnScope } from './Common/ColumnScope';
|
|
3
3
|
import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
|
|
4
4
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
5
5
|
/**
|
|
6
6
|
* Adaptable State Section for Plus Minus Module
|
|
7
7
|
*/
|
|
8
|
-
export interface PlusMinusState extends
|
|
8
|
+
export interface PlusMinusState extends BaseState {
|
|
9
9
|
/**
|
|
10
10
|
* Array of Plus Minus Nudges
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScreenPopup, ConfirmationPopup, PromptPopup, WindowPopup, FormPopup } from '../Utilities/Interface/MessagePopups';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseState } from './BaseState';
|
|
3
3
|
import { ProgressIndicatorConfig } from './Common/ProgressIndicatorConfig';
|
|
4
4
|
export interface ProgressIndicator extends ProgressIndicatorConfig {
|
|
5
5
|
active: boolean;
|
|
@@ -7,7 +7,7 @@ export interface ProgressIndicator extends ProgressIndicatorConfig {
|
|
|
7
7
|
/**
|
|
8
8
|
* Internal state to manage open popups - NOT persisted by Redux
|
|
9
9
|
*/
|
|
10
|
-
export interface PopupState extends
|
|
10
|
+
export interface PopupState extends BaseState {
|
|
11
11
|
ScreenPopup: ScreenPopup;
|
|
12
12
|
WindowPopup: WindowPopup;
|
|
13
13
|
FormPopup: FormPopup;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseState } from './BaseState';
|
|
3
3
|
/**
|
|
4
4
|
* Adaptable State Section for Quick Search Module
|
|
5
5
|
*/
|
|
6
|
-
export interface QuickSearchState extends
|
|
6
|
+
export interface QuickSearchState extends BaseState {
|
|
7
7
|
/**
|
|
8
8
|
* Last Quick Search that was run (and will run again at start up)
|
|
9
9
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { IPushPullSchedule } from './IPushPullState';
|
|
3
3
|
import { OpenFinSchedule } from './OpenFinState';
|
|
4
4
|
import { AdaptableMessageType, ReportSchedule } from '../types';
|
|
@@ -7,7 +7,7 @@ import { BaseSchedule } from './Common/Schedule';
|
|
|
7
7
|
* Adaptable State Section for the Schedule Module
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
export interface ScheduleState extends
|
|
10
|
+
export interface ScheduleState extends BaseState {
|
|
11
11
|
/**
|
|
12
12
|
* Schedules connected to Reports (created in the Export function)
|
|
13
13
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { ColumnScope } from './Common/ColumnScope';
|
|
3
3
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
4
4
|
/**
|
|
5
5
|
* Adaptable State Section for Shortcut Module
|
|
6
6
|
*/
|
|
7
|
-
export interface ShortcutState extends
|
|
7
|
+
export interface ShortcutState extends BaseState {
|
|
8
8
|
/**
|
|
9
9
|
* Collection of Shortcuts - designed to speed up data entry
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from '../types';
|
|
2
2
|
import { AdaptableStatusBarPanel } from './Common/Types';
|
|
3
3
|
/**
|
|
4
4
|
* Adaptable State Section for the Adaptable Status Bar
|
|
5
5
|
*/
|
|
6
|
-
export interface StatusBarState extends
|
|
6
|
+
export interface StatusBarState extends BaseState {
|
|
7
7
|
/**
|
|
8
8
|
* Adaptable Status Bars to display - can be unlimited and displayed in 3 locations
|
|
9
9
|
* @defaultValue null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
3
3
|
import { AdaptableCustomIcon, AdaptableSystemIcon, AdaptablePredicate, AdaptableStyle, AdaptableBooleanQuery } from '../types';
|
|
4
4
|
import { TypeHint } from './Common/Types';
|
|
@@ -7,7 +7,7 @@ import { AgSparklineOptions } from 'ag-charts-types';
|
|
|
7
7
|
/**
|
|
8
8
|
* Adaptable State Section for Styled Column Module
|
|
9
9
|
*/
|
|
10
|
-
export interface StyledColumnState extends
|
|
10
|
+
export interface StyledColumnState extends BaseState {
|
|
11
11
|
/**
|
|
12
12
|
* Collection of Special Column Styles
|
|
13
13
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableObject, AdaptableObjectTag } from './Common/AdaptableObject';
|
|
3
3
|
import { AdaptableModule } from '../types';
|
|
4
4
|
import { TypeUuid } from './Uuid';
|
|
@@ -6,7 +6,7 @@ import * as Redux from 'redux';
|
|
|
6
6
|
/**
|
|
7
7
|
* State for Team Sharing; internal so not designed to be provided as part of Initial Adaptable State
|
|
8
8
|
*/
|
|
9
|
-
export interface TeamSharingState extends
|
|
9
|
+
export interface TeamSharingState extends BaseState {
|
|
10
10
|
/**
|
|
11
11
|
* List of objects currently being Team Shared
|
|
12
12
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
3
|
import { TypeHint } from './Common/Types';
|
|
4
4
|
/**
|
|
5
5
|
* Theme section of Adaptable State
|
|
6
6
|
*/
|
|
7
|
-
export interface ThemeState extends
|
|
7
|
+
export interface ThemeState extends BaseState {
|
|
8
8
|
/**
|
|
9
9
|
* Name of current theme (or theme to set at startup); leave blank if using 'Light Theme', set to 'dark' for 'Dark Theme' or provide name of Custom Theme
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableModuleButtons, AdaptableToolPanel } from './Common/Types';
|
|
3
3
|
/**
|
|
4
4
|
* Adaptable State Section for the AdapTable ToolPanel
|
|
5
5
|
*/
|
|
6
|
-
export interface ToolPanelState extends
|
|
6
|
+
export interface ToolPanelState extends BaseState {
|
|
7
7
|
/**
|
|
8
8
|
* Adaptable Tool Panels which are viaible
|
|
9
9
|
* @defaultValue ToolPanels for all available Modules (subject to Entitlement rules)
|
|
@@ -5,7 +5,7 @@ import { BulkUpdateApi } from './BulkUpdateApi';
|
|
|
5
5
|
import { CalendarApi } from './CalendarApi';
|
|
6
6
|
import { CalculatedColumnApi } from './CalculatedColumnApi';
|
|
7
7
|
import { CellSummaryApi } from './CellSummaryApi';
|
|
8
|
-
import {
|
|
8
|
+
import { StateApi } from './StateApi';
|
|
9
9
|
import { CustomSortApi } from './CustomSortApi';
|
|
10
10
|
import { DashboardApi } from './DashboardApi';
|
|
11
11
|
import { ToolPanelApi } from './ToolPanelApi';
|
|
@@ -95,7 +95,7 @@ export interface AdaptableApi {
|
|
|
95
95
|
/**
|
|
96
96
|
* Methods giving access to Adaptable State
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
stateApi: StateApi;
|
|
99
99
|
/**
|
|
100
100
|
* Provides access to the Custom Sort Module
|
|
101
101
|
*/
|
|
@@ -6,7 +6,7 @@ import { BulkUpdateApi } from '../BulkUpdateApi';
|
|
|
6
6
|
import { CalendarApi } from '../CalendarApi';
|
|
7
7
|
import { CalculatedColumnApi } from '../CalculatedColumnApi';
|
|
8
8
|
import { CellSummaryApi } from '../CellSummaryApi';
|
|
9
|
-
import {
|
|
9
|
+
import { StateApi } from '../StateApi';
|
|
10
10
|
import { CustomSortApi } from '../CustomSortApi';
|
|
11
11
|
import { DashboardApi } from '../DashboardApi';
|
|
12
12
|
import { ToolPanelApi } from '../ToolPanelApi';
|
|
@@ -57,7 +57,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
57
57
|
calculatedColumnApi: CalculatedColumnApi;
|
|
58
58
|
cellSummaryApi: CellSummaryApi;
|
|
59
59
|
columnApi: ColumnApi;
|
|
60
|
-
|
|
60
|
+
stateApi: StateApi;
|
|
61
61
|
customSortApi: CustomSortApi;
|
|
62
62
|
dashboardApi: DashboardApi;
|
|
63
63
|
dataSetApi: DataSetApi;
|
|
@@ -5,7 +5,7 @@ import { PluginsApiImpl } from './PluginsApiImpl';
|
|
|
5
5
|
import { BulkUpdateApiImpl } from './BulkUpdateApiImpl';
|
|
6
6
|
import { CalculatedColumnApiImpl } from './CalculatedColumnApiImpl';
|
|
7
7
|
import { CellSummaryApiImpl } from './CellSummaryApiImpl';
|
|
8
|
-
import {
|
|
8
|
+
import { StateApiImpl } from './StateApiImpl';
|
|
9
9
|
import { CustomSortApiImpl } from './CustomSortApiImpl';
|
|
10
10
|
import { DashboardApiImpl } from './DashboardApiImpl';
|
|
11
11
|
import { ToolPanelApiImpl } from './ToolPanelApiImpl';
|
|
@@ -67,7 +67,7 @@ export class AdaptableApiImpl {
|
|
|
67
67
|
this.columnApi = new ColumnApiImpl(adaptable);
|
|
68
68
|
this.columnMenuApi = new ColumnMenuApiImpl(adaptable);
|
|
69
69
|
this.contextMenuApi = new ContextMenuApiImpl(adaptable);
|
|
70
|
-
this.
|
|
70
|
+
this.stateApi = new StateApiImpl(adaptable);
|
|
71
71
|
this.customSortApi = new CustomSortApiImpl(adaptable);
|
|
72
72
|
this.dashboardApi = new DashboardApiImpl(adaptable);
|
|
73
73
|
this.dataSetApi = new DataSetApiImpl(adaptable);
|
|
@@ -128,7 +128,7 @@ export class AdaptableApiImpl {
|
|
|
128
128
|
this.cellSummaryApi = null;
|
|
129
129
|
this.chartingApi = null;
|
|
130
130
|
this.columnApi = null;
|
|
131
|
-
this.
|
|
131
|
+
this.stateApi = null;
|
|
132
132
|
this.customSortApi = null;
|
|
133
133
|
this.dashboardApi = null;
|
|
134
134
|
this.dataChangeHistoryApi = null;
|
|
@@ -8,7 +8,7 @@ import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
|
8
8
|
import { AdaptableApi } from '../AdaptableApi';
|
|
9
9
|
import { GridApi as AgGridApi } from 'ag-grid-enterprise';
|
|
10
10
|
import { ExportOptions } from '../../AdaptableOptions/ExportOptions';
|
|
11
|
-
import { ActionColumnApi, ActionColumnOptions, AlertApi, AlertOptions, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CalendarOptions, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, FilterApi, ColumnOptions, CommentOptions,
|
|
11
|
+
import { ActionColumnApi, ActionColumnOptions, AlertApi, AlertOptions, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CalendarOptions, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, FilterApi, ColumnOptions, CommentOptions, StateApi, ContainerOptions, CustomSortApi, CustomSortOptions, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, ExpressionApi, ExpressionOptions, Fdc3Api, Fdc3Options, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FormatColumnOptions, FreeTextColumnApi, GridApi, GridFilterApi, LayoutApi, LayoutAssociatedObject, LayoutOptions, NamedQueryApi, NoteOptions, NotificationsOptions, PluginsApi, PlusMinusApi, PredicateApi, PredicateOptions, QuickSearchApi, QuickSearchOptions, ScheduleApi, ColumnScopeApi, SettingsPanelApi, SettingsPanelOptions, ShortcutApi, SmartEditApi, StateOptions, StatusBarApi, StyledColumnApi, SystemStatusApi, TeamSharingApi, TeamSharingOptions, ThemeApi, ToolPanelApi, ToolPanelOptions, UserInterfaceApi, UserInterfaceOptions, ColumnMenuOptions, ContextMenuOptions, FilterOptions, ColumnFilterApi, OptionsApi } from '../../types';
|
|
12
12
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
13
13
|
import { AdaptableInternalApi } from '../Internal/AdaptableInternalApi';
|
|
14
14
|
import { AdaptableLogger } from '../../agGrid/AdaptableLogger';
|
|
@@ -105,7 +105,7 @@ export declare abstract class ApiBase {
|
|
|
105
105
|
protected getCalculatedColumnApi(): CalculatedColumnApi;
|
|
106
106
|
protected getCellSummaryApi(): CellSummaryApi;
|
|
107
107
|
protected getColumnApi(): ColumnApi;
|
|
108
|
-
protected
|
|
108
|
+
protected getStateApi(): StateApi;
|
|
109
109
|
protected getCustomSortApi(): CustomSortApi;
|
|
110
110
|
protected getDashboardApi(): DashboardApi;
|
|
111
111
|
protected getDataSetApi(): DataSetApi;
|
|
@@ -239,8 +239,8 @@ export class ApiBase {
|
|
|
239
239
|
getColumnApi() {
|
|
240
240
|
return this.getAdaptableApi().columnApi;
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
return this.getAdaptableApi().
|
|
242
|
+
getStateApi() {
|
|
243
|
+
return this.getAdaptableApi().stateApi;
|
|
244
244
|
}
|
|
245
245
|
getCustomSortApi() {
|
|
246
246
|
return this.getAdaptableApi().customSortApi;
|
|
@@ -9,19 +9,19 @@ import { DashboardState } from '../../AdaptableState/DashboardState';
|
|
|
9
9
|
import { CustomSortState } from '../../AdaptableState/CustomSortState';
|
|
10
10
|
import { CalculatedColumnState } from '../../AdaptableState/CalculatedColumnState';
|
|
11
11
|
import { AlertState } from '../../AdaptableState/AlertState';
|
|
12
|
-
import {
|
|
12
|
+
import { BaseState } from '../../AdaptableState/BaseState';
|
|
13
13
|
import { AdaptablePersistentState, AdaptableState } from '../../AdaptableState/AdaptableState';
|
|
14
14
|
import { ApiBase } from './ApiBase';
|
|
15
15
|
import { ApplicationState } from '../../AdaptableState/ApplicationState';
|
|
16
16
|
import { FreeTextColumnState } from '../../AdaptableState/FreeTextColumnState';
|
|
17
17
|
import { ToolPanelState } from '../../AdaptableState/ToolPanelState';
|
|
18
|
-
import {
|
|
18
|
+
import { StateApi } from '../StateApi';
|
|
19
19
|
import { AdaptableModule, AdaptableStateKey } from '../../AdaptableState/Common/Types';
|
|
20
20
|
import { AdaptableOptions, AdaptableSearchState, AdaptableSortState, FlashingCellState, InitialState, NamedQueryState, ScheduleState, StatusBarState, StyledColumnState } from '../../types';
|
|
21
21
|
import { PredefinedConfig } from '../../AdaptableState/InitialState';
|
|
22
22
|
import { ChartingState } from '../../AdaptableState/ChartingState';
|
|
23
23
|
import { NoteState } from '../../AdaptableState/NoteState';
|
|
24
|
-
export declare class
|
|
24
|
+
export declare class StateApiImpl extends ApiBase implements StateApi {
|
|
25
25
|
configInit(): void;
|
|
26
26
|
copyAllStateToClipboard(): void;
|
|
27
27
|
copyUserStateToClipboard(): void;
|
|
@@ -31,7 +31,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
31
31
|
reloadInitialState(newInitialState?: InitialState): void;
|
|
32
32
|
getAllState(): AdaptableState;
|
|
33
33
|
getPersistedState(): AdaptablePersistentState;
|
|
34
|
-
getAllUserState():
|
|
34
|
+
getAllUserState(): BaseState[];
|
|
35
35
|
loadUserState(state: InitialState): void;
|
|
36
36
|
getAdaptableSearchState(): AdaptableSearchState;
|
|
37
37
|
getAdaptableSortState(): AdaptableSortState;
|
|
@@ -43,7 +43,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
43
43
|
}): Promise<void>;
|
|
44
44
|
getDescriptionForModule(module: AdaptableModule): string;
|
|
45
45
|
getHelpPageForModule(module: AdaptableModule): string;
|
|
46
|
-
getUserStateByStateKey(stateKey: AdaptableStateKey, returnJson?: boolean):
|
|
46
|
+
getUserStateByStateKey(stateKey: AdaptableStateKey, returnJson?: boolean): BaseState | string;
|
|
47
47
|
incrementUserStateRevision(stateKey: AdaptableStateKey): void;
|
|
48
48
|
getAlertState(returnJson?: boolean): AlertState;
|
|
49
49
|
getApplicationState(returnJson?: boolean): ApplicationState;
|
|
@@ -23,7 +23,7 @@ import * as SmartEditRedux from '../../Redux/ActionsReducers/SmartEditRedux';
|
|
|
23
23
|
import * as ThemeRedux from '../../Redux/ActionsReducers/ThemeRedux';
|
|
24
24
|
import * as ToolPanelRedux from '../../Redux/ActionsReducers/ToolPanelRedux';
|
|
25
25
|
import { logDeprecation } from '../../Utilities/logDeprecation';
|
|
26
|
-
export class
|
|
26
|
+
export class StateApiImpl extends ApiBase {
|
|
27
27
|
configInit() {
|
|
28
28
|
this.dispatchAction(InitState());
|
|
29
29
|
}
|
|
@@ -40,14 +40,14 @@ export class ConfigApiImpl extends ApiBase {
|
|
|
40
40
|
Helper.copyToClipboard(stringifiedState);
|
|
41
41
|
}
|
|
42
42
|
getPredefinedConfig() {
|
|
43
|
-
logDeprecation(this.getAdatableLogger(), '
|
|
43
|
+
logDeprecation(this.getAdatableLogger(), 'StateApi', 'getPredefinedConfig', 'getInitialState');
|
|
44
44
|
return this.getInitialState();
|
|
45
45
|
}
|
|
46
46
|
getInitialState() {
|
|
47
47
|
return this._adaptable.adaptableOptions.initialState;
|
|
48
48
|
}
|
|
49
49
|
reloadPredefinedConfig(newPredefinedConfig) {
|
|
50
|
-
logDeprecation(this.getAdatableLogger(), '
|
|
50
|
+
logDeprecation(this.getAdatableLogger(), 'StateApi', 'reloadPredefinedConfig', 'reloadInitialState');
|
|
51
51
|
this.reloadInitialState(newPredefinedConfig);
|
|
52
52
|
}
|
|
53
53
|
reloadInitialState(newInitialState) {
|
|
@@ -3,7 +3,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
3
3
|
export class EventInternalApi extends ApiBase {
|
|
4
4
|
fireGridSortedEvent() {
|
|
5
5
|
if (this.isAdapTableReady()) {
|
|
6
|
-
const adaptableSortState = this.
|
|
6
|
+
const adaptableSortState = this.getStateApi().getAdaptableSortState();
|
|
7
7
|
const gridSortedInfo = {
|
|
8
8
|
adaptableSortState: adaptableSortState,
|
|
9
9
|
...this.getAdaptableInternalApi().buildBaseContext(),
|