@adaptabletools/adaptable-cjs 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.
Files changed (52) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/StateOptions.d.ts +1 -1
  3. package/src/AdaptableState/AdaptableState.d.ts +2 -2
  4. package/src/AdaptableState/AlertState.d.ts +2 -2
  5. package/src/AdaptableState/ApplicationState.d.ts +2 -2
  6. package/src/AdaptableState/{ConfigState.d.ts → BaseState.d.ts} +1 -1
  7. package/src/AdaptableState/CalculatedColumnState.d.ts +2 -2
  8. package/src/AdaptableState/ChartingState.d.ts +2 -2
  9. package/src/AdaptableState/CommentState.d.ts +2 -2
  10. package/src/AdaptableState/CustomSortState.d.ts +2 -2
  11. package/src/AdaptableState/DashboardState.d.ts +2 -2
  12. package/src/AdaptableState/ExportState.d.ts +2 -2
  13. package/src/AdaptableState/FlashingCellState.d.ts +2 -2
  14. package/src/AdaptableState/FormatColumnState.d.ts +2 -2
  15. package/src/AdaptableState/FreeTextColumnState.d.ts +2 -2
  16. package/src/AdaptableState/IPushPullState.d.ts +2 -2
  17. package/src/AdaptableState/LayoutState.d.ts +2 -2
  18. package/src/AdaptableState/NamedQueryState.d.ts +2 -2
  19. package/src/AdaptableState/NoteState.d.ts +2 -2
  20. package/src/AdaptableState/OpenFinState.d.ts +2 -2
  21. package/src/AdaptableState/PlusMinusState.d.ts +2 -2
  22. package/src/AdaptableState/PopupState.d.ts +2 -2
  23. package/src/AdaptableState/QuickSearchState.d.ts +2 -2
  24. package/src/AdaptableState/ScheduleState.d.ts +2 -2
  25. package/src/AdaptableState/ShortcutState.d.ts +2 -2
  26. package/src/AdaptableState/StatusBarState.d.ts +2 -2
  27. package/src/AdaptableState/StyledColumnState.d.ts +2 -2
  28. package/src/AdaptableState/TeamSharingState.d.ts +2 -2
  29. package/src/AdaptableState/ThemeState.d.ts +2 -2
  30. package/src/AdaptableState/ToolPanelState.d.ts +2 -2
  31. package/src/Api/AdaptableApi.d.ts +2 -2
  32. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  33. package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
  34. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  35. package/src/Api/Implementation/ApiBase.js +2 -2
  36. package/src/Api/Implementation/{ConfigApiImpl.d.ts → StateApiImpl.d.ts} +5 -5
  37. package/src/Api/Implementation/{ConfigApiImpl.js → StateApiImpl.js} +5 -5
  38. package/src/Api/Internal/EventInternalApi.js +1 -1
  39. package/src/Api/{ConfigApi.d.ts → StateApi.d.ts} +4 -4
  40. package/src/Redux/Store/AdaptableReduxMerger.d.ts +2 -2
  41. package/src/Redux/Store/AdaptableStore.d.ts +3 -3
  42. package/src/Strategy/AdaptableModuleBase.js +2 -3
  43. package/src/View/StateManagement/StateManagementPopup.js +2 -2
  44. package/src/View/StateManagement/StateManagementViewPanel.js +2 -2
  45. package/src/View/StateManagement/components/ExportDropdown.js +2 -2
  46. package/src/env.js +2 -2
  47. package/src/metamodel/adaptable.metamodel.d.ts +11 -11
  48. package/src/metamodel/adaptable.metamodel.js +1 -1
  49. package/src/types.d.ts +4 -4
  50. package/tsconfig.cjs.tsbuildinfo +1 -1
  51. /package/src/AdaptableState/{ConfigState.js → BaseState.js} +0 -0
  52. /package/src/Api/{ConfigApi.js → StateApi.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "20.0.0-canary.23",
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 configApi.reloadInitialState
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 { ConfigState } from './ConfigState';
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]: ConfigState;
31
+ [s: string]: BaseState;
32
32
  }
33
33
  /**
34
34
  * The state object of Adaptable which is persisted
@@ -1,4 +1,4 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
1
+ import { BaseState } from './BaseState';
2
2
  /**
3
3
  * Adaptable State Section for the Application Module
4
4
  **/
5
- export interface ApplicationState extends ConfigState {
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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, ConfigState } from '../types';
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 ConfigState {
6
+ export interface CommentState extends BaseState {
7
7
  /**
8
8
  * Collection of AdapTable Comments
9
9
  */
@@ -1,9 +1,9 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
6
+ export interface CustomSortState extends BaseState {
7
7
  /**
8
8
  * Collection of Custom Sort objects.
9
9
  */
@@ -1,10 +1,10 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
14
+ export interface FormatColumnState extends BaseState {
15
15
  /**
16
16
  * Collection of Format Columns
17
17
  */
@@ -1,10 +1,10 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
7
+ export interface IPushPullState extends BaseState {
8
8
  IsIPushPullRunning?: boolean;
9
9
  IPushPullDomainsPages?: IPushPullDomain[];
10
10
  IPushPullLoginErrorMessage?: string;
@@ -1,4 +1,4 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
2
+ import { BaseState } from './BaseState';
3
3
  /**
4
4
  * Adaptable State Section for Note Module
5
5
  */
6
- export interface NoteState extends ConfigState {
6
+ export interface NoteState extends BaseState {
7
7
  /**
8
8
  * Collection of AdapTable Notes
9
9
  */
@@ -1,10 +1,10 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
7
+ export interface OpenFinState extends BaseState {
8
8
  CurrentLiveOpenFinReport?: OpenFinReport;
9
9
  OpenFinCurrentReportName?: string;
10
10
  }
@@ -1,11 +1,11 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
2
+ import { BaseState } from './BaseState';
3
3
  /**
4
4
  * Adaptable State Section for Quick Search Module
5
5
  */
6
- export interface QuickSearchState extends ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from '../types';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
10
+ export interface StyledColumnState extends BaseState {
11
11
  /**
12
12
  * Collection of Special Column Styles
13
13
  */
@@ -1,4 +1,4 @@
1
- import { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigState } from './ConfigState';
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 ConfigState {
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 { ConfigApi } from './ConfigApi';
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
- configApi: ConfigApi;
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 { ConfigApi } from '../ConfigApi';
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
- configApi: ConfigApi;
60
+ stateApi: StateApi;
61
61
  customSortApi: CustomSortApi;
62
62
  dashboardApi: DashboardApi;
63
63
  dataSetApi: DataSetApi;
@@ -8,7 +8,7 @@ const PluginsApiImpl_1 = require("./PluginsApiImpl");
8
8
  const BulkUpdateApiImpl_1 = require("./BulkUpdateApiImpl");
9
9
  const CalculatedColumnApiImpl_1 = require("./CalculatedColumnApiImpl");
10
10
  const CellSummaryApiImpl_1 = require("./CellSummaryApiImpl");
11
- const ConfigApiImpl_1 = require("./ConfigApiImpl");
11
+ const StateApiImpl_1 = require("./StateApiImpl");
12
12
  const CustomSortApiImpl_1 = require("./CustomSortApiImpl");
13
13
  const DashboardApiImpl_1 = require("./DashboardApiImpl");
14
14
  const ToolPanelApiImpl_1 = require("./ToolPanelApiImpl");
@@ -70,7 +70,7 @@ class AdaptableApiImpl {
70
70
  this.columnApi = new ColumnApiImpl_1.ColumnApiImpl(adaptable);
71
71
  this.columnMenuApi = new ColumnMenuApiImpl_1.ColumnMenuApiImpl(adaptable);
72
72
  this.contextMenuApi = new ContextMenuApiImpl_1.ContextMenuApiImpl(adaptable);
73
- this.configApi = new ConfigApiImpl_1.ConfigApiImpl(adaptable);
73
+ this.stateApi = new StateApiImpl_1.StateApiImpl(adaptable);
74
74
  this.customSortApi = new CustomSortApiImpl_1.CustomSortApiImpl(adaptable);
75
75
  this.dashboardApi = new DashboardApiImpl_1.DashboardApiImpl(adaptable);
76
76
  this.dataSetApi = new DataSetApiImpl_1.DataSetApiImpl(adaptable);
@@ -131,7 +131,7 @@ class AdaptableApiImpl {
131
131
  this.cellSummaryApi = null;
132
132
  this.chartingApi = null;
133
133
  this.columnApi = null;
134
- this.configApi = null;
134
+ this.stateApi = null;
135
135
  this.customSortApi = null;
136
136
  this.dashboardApi = null;
137
137
  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, ConfigApi, 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';
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 getConfigApi(): ConfigApi;
108
+ protected getStateApi(): StateApi;
109
109
  protected getCustomSortApi(): CustomSortApi;
110
110
  protected getDashboardApi(): DashboardApi;
111
111
  protected getDataSetApi(): DataSetApi;
@@ -243,8 +243,8 @@ class ApiBase {
243
243
  getColumnApi() {
244
244
  return this.getAdaptableApi().columnApi;
245
245
  }
246
- getConfigApi() {
247
- return this.getAdaptableApi().configApi;
246
+ getStateApi() {
247
+ return this.getAdaptableApi().stateApi;
248
248
  }
249
249
  getCustomSortApi() {
250
250
  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 { ConfigState } from '../../AdaptableState/ConfigState';
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 { ConfigApi } from '../ConfigApi';
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 ConfigApiImpl extends ApiBase implements ConfigApi {
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(): ConfigState[];
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): ConfigState | string;
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;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigApiImpl = void 0;
3
+ exports.StateApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const AdaptableStore_1 = require("../../Redux/Store/AdaptableStore");
6
6
  const ApiBase_1 = require("./ApiBase");
@@ -27,7 +27,7 @@ const SmartEditRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers
27
27
  const ThemeRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ThemeRedux"));
28
28
  const ToolPanelRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ToolPanelRedux"));
29
29
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
30
- class ConfigApiImpl extends ApiBase_1.ApiBase {
30
+ class StateApiImpl extends ApiBase_1.ApiBase {
31
31
  configInit() {
32
32
  this.dispatchAction((0, AdaptableStore_1.InitState)());
33
33
  }
@@ -44,14 +44,14 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
44
44
  Helper_1.default.copyToClipboard(stringifiedState);
45
45
  }
46
46
  getPredefinedConfig() {
47
- (0, logDeprecation_1.logDeprecation)(this.getAdatableLogger(), 'ConfigApi', 'getPredefinedConfig', 'getInitialState');
47
+ (0, logDeprecation_1.logDeprecation)(this.getAdatableLogger(), 'StateApi', 'getPredefinedConfig', 'getInitialState');
48
48
  return this.getInitialState();
49
49
  }
50
50
  getInitialState() {
51
51
  return this._adaptable.adaptableOptions.initialState;
52
52
  }
53
53
  reloadPredefinedConfig(newPredefinedConfig) {
54
- (0, logDeprecation_1.logDeprecation)(this.getAdatableLogger(), 'ConfigApi', 'reloadPredefinedConfig', 'reloadInitialState');
54
+ (0, logDeprecation_1.logDeprecation)(this.getAdatableLogger(), 'StateApi', 'reloadPredefinedConfig', 'reloadInitialState');
55
55
  this.reloadInitialState(newPredefinedConfig);
56
56
  }
57
57
  reloadInitialState(newInitialState) {
@@ -393,4 +393,4 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
393
393
  }
394
394
  }
395
395
  }
396
- exports.ConfigApiImpl = ConfigApiImpl;
396
+ exports.StateApiImpl = StateApiImpl;
@@ -7,7 +7,7 @@ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
7
7
  class EventInternalApi extends ApiBase_1.ApiBase {
8
8
  fireGridSortedEvent() {
9
9
  if (this.isAdapTableReady()) {
10
- const adaptableSortState = this.getConfigApi().getAdaptableSortState();
10
+ const adaptableSortState = this.getStateApi().getAdaptableSortState();
11
11
  const gridSortedInfo = {
12
12
  adaptableSortState: adaptableSortState,
13
13
  ...this.getAdaptableInternalApi().buildBaseContext(),