@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.
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} +3 -3
  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.esm.tsbuildinfo +1 -1
  51. /package/src/AdaptableState/{ConfigState.js → BaseState.js} +0 -0
  52. /package/src/Api/{ConfigApi.js → StateApi.js} +0 -0
@@ -8,7 +8,7 @@ import { DashboardState } from '../AdaptableState/DashboardState';
8
8
  import { CustomSortState } from '../AdaptableState/CustomSortState';
9
9
  import { CalculatedColumnState } from '../AdaptableState/CalculatedColumnState';
10
10
  import { AlertState } from '../AdaptableState/AlertState';
11
- import { ConfigState } from '../AdaptableState/ConfigState';
11
+ import { BaseState } from '../AdaptableState/BaseState';
12
12
  import { PlusMinusState } from '../AdaptableState/PlusMinusState';
13
13
  import { ApplicationState } from '../AdaptableState/ApplicationState';
14
14
  import { AdaptablePersistentState, AdaptableState } from '../AdaptableState/AdaptableState';
@@ -19,7 +19,7 @@ import { AdaptableSearchState, AdaptableSortState, ChartingState, FlashingCellSt
19
19
  /**
20
20
  * Range of functions to access Initial and Full Adaptable State
21
21
  */
22
- export interface ConfigApi {
22
+ export interface StateApi {
23
23
  /**
24
24
  * Changes the key used for persisting the AdaptableState into localStorage. Optionally provides a initialState to load.
25
25
  * @param adaptableStateKey - key for persisting the AdaptableState into localStorage
@@ -62,7 +62,7 @@ export interface ConfigApi {
62
62
  * Loads supplied user state, replacing (NOT merging) existing User(persisted) State.
63
63
  * @param state
64
64
  */
65
- loadUserState(config: InitialState): void;
65
+ loadUserState(state: InitialState): void;
66
66
  /**
67
67
  * Retrieves ALL state which is currently stored by Adaptable (both persistent and transient/internal)
68
68
  */
@@ -94,7 +94,7 @@ export interface ConfigApi {
94
94
  * @param stateKey section of State to return
95
95
  * @param returnJson whether to return section as JSON or object
96
96
  */
97
- getUserStateByStateKey(stateKey: AdaptableStateKey, returnJson?: boolean): ConfigState | string;
97
+ getUserStateByStateKey(stateKey: AdaptableStateKey, returnJson?: boolean): BaseState | string;
98
98
  /**
99
99
  * Adds '1' to current revision number of State element
100
100
  * @param stateKey Adaptable State Key to update
@@ -1,4 +1,4 @@
1
- import { ConfigState } from '../../AdaptableState/ConfigState';
1
+ import { BaseState } from '../../AdaptableState/BaseState';
2
2
  import { AdaptableState } from '../../AdaptableState/AdaptableState';
3
3
  export declare function AddStateSource(stateObject: any, source: 'Config' | 'User'): any;
4
4
  export declare function ProcessKeepUserDefinedRevision(configState: any, currentUserState: any): any;
@@ -7,7 +7,7 @@ export declare function MergeState(oldState: any, newState: any): any;
7
7
  type TypeReducer = (state: AdaptableState, action: {
8
8
  type: string;
9
9
  State?: {
10
- [s: string]: ConfigState;
10
+ [s: string]: BaseState;
11
11
  };
12
12
  }) => AdaptableState;
13
13
  export declare const mergeReducer: (rootReducer: TypeReducer, LOAD_STATE_TYPE: string) => TypeReducer;
@@ -1,7 +1,7 @@
1
1
  import * as Redux from 'redux';
2
2
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
3
3
  import { AdaptableState } from '../../AdaptableState/AdaptableState';
4
- import { ConfigState } from '../../AdaptableState/ConfigState';
4
+ import { BaseState } from '../../AdaptableState/BaseState';
5
5
  import { IAdaptableStore, LoadStoreConfig } from './Interface/IAdaptableStore';
6
6
  type EmitterCallback = (data?: any) => any;
7
7
  type EmitterAnyCallback = (eventName: string, data?: any) => any;
@@ -13,12 +13,12 @@ export interface InitStateAction extends Redux.Action {
13
13
  }
14
14
  export interface LoadStateAction extends Redux.Action {
15
15
  State: {
16
- [s: string]: ConfigState;
16
+ [s: string]: BaseState;
17
17
  };
18
18
  }
19
19
  export declare const InitState: () => ResetUserDataAction;
20
20
  export declare const LoadState: (State: {
21
- [s: string]: ConfigState;
21
+ [s: string]: BaseState;
22
22
  }) => LoadStateAction;
23
23
  export declare class AdaptableStore implements IAdaptableStore {
24
24
  TheStore: Redux.Store<AdaptableState, Redux.Action>;
@@ -17,7 +17,7 @@ export class AdaptableModuleBase {
17
17
  this.api = api;
18
18
  this.api.eventApi.on('AdaptableReady', () => {
19
19
  this.onAdaptableReady();
20
- this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
20
+ this.api.stateApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
21
21
  });
22
22
  this.api.eventApi.on('AdaptableStateReloaded', (adaptableStateReloadedInfo) => {
23
23
  this.onAdaptableStateReloaded(adaptableStateReloadedInfo);
@@ -67,8 +67,7 @@ export class AdaptableModuleBase {
67
67
  // override where necessary in base classes
68
68
  }
69
69
  setModuleEntitlement() {
70
- this.AccessLevel = this.api.entitlementApi
71
- .getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
70
+ this.AccessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
72
71
  }
73
72
  createModuleMenuItem(source) {
74
73
  if (this.isModuleAvailable() && this.moduleInfo.Popup) {
@@ -11,11 +11,11 @@ export const StateManagementPopup = (props) => {
11
11
  React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "user-state", header: 'User State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginRight: 2, mb: 2 },
12
12
  React.createElement(HelpBlock, { marginBottom: 2 }, 'Clear all current user state that has been persisted'),
13
13
  React.createElement(HelpBlock, { style: { color: 'var(--ab-color-warn)' } }, 'This will cause this window to close and any State you have previously created will be lost, and the Initial Adaptable State will be reapplied'),
14
- React.createElement(ClearButton, { "data-name": "clear-user-state-button", tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onClick: () => props.api.configApi.reloadInitialState() }, "Clear User State")),
14
+ React.createElement(ClearButton, { "data-name": "clear-user-state-button", tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onClick: () => props.api.stateApi.reloadInitialState() }, "Clear User State")),
15
15
  React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: 'Initial Adaptable State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
16
16
  React.createElement(HelpBlock, { marginTop: 2 }, 'Load Initial Adaptable State (from a .json file) - this will cause this window to close'),
17
17
  ' ',
18
- React.createElement(LoadButton, { tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onLoad: (json) => props.api.configApi.reloadInitialState(json), "data-name": "load-predefined-config-button" }, "Load Initial Adaptable State")),
18
+ React.createElement(LoadButton, { tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onLoad: (json) => props.api.stateApi.reloadInitialState(json), "data-name": "load-predefined-config-button" }, "Load Initial Adaptable State")),
19
19
  React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "adaptable-state", header: 'Export Adaptable State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
20
20
  React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, 'Exports the currently persisted Adaptable State'),
21
21
  ' ',
@@ -10,8 +10,8 @@ export const StateManagementViewPanel = (props) => {
10
10
  const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
11
11
  return (React.createElement(Flex, { flexDirection: isToolbar ? 'row' : 'column', className: join(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__StateManagement__wrap`) },
12
12
  React.createElement(Flex, { flexDirection: "row" },
13
- React.createElement(LoadButton, { tooltip: "Load Initial Adaptable State", variant: "text", icon: "upload", onLoad: (json) => props.api.configApi.reloadInitialState(json), accessLevel: props.accessLevel }, !isToolbar && 'Load'),
14
- React.createElement(ClearButton, { icon: "delete", tooltip: "Clear User State", variant: "text", onClick: () => props.api.configApi.reloadInitialState(), accessLevel: props.accessLevel }, !isToolbar && 'Clear')),
13
+ React.createElement(LoadButton, { tooltip: "Load Initial Adaptable State", variant: "text", icon: "upload", onLoad: (json) => props.api.stateApi.reloadInitialState(json), accessLevel: props.accessLevel }, !isToolbar && 'Load'),
14
+ React.createElement(ClearButton, { icon: "delete", tooltip: "Clear User State", variant: "text", onClick: () => props.api.stateApi.reloadInitialState(), accessLevel: props.accessLevel }, !isToolbar && 'Clear')),
15
15
  React.createElement(ExportDropdown, { api: props.api, type: "adaptableState" }, "All State"),
16
16
  React.createElement(ExportDropdown, { api: props.api, type: "initialState" }, "Initial Adaptable State")));
17
17
  };
@@ -5,11 +5,11 @@ export const ExportDropdown = (props) => {
5
5
  const handleChange = (destination) => {
6
6
  switch (props.type) {
7
7
  case 'adaptableState':
8
- const adaptableState = props.api.configApi.getPersistedState();
8
+ const adaptableState = props.api.stateApi.getPersistedState();
9
9
  handleExportState(destination, 'adaptableState', adaptableState);
10
10
  break;
11
11
  case 'initialState':
12
- const initialState = props.api.configApi.getInitialState();
12
+ const initialState = props.api.stateApi.getInitialState();
13
13
  handleExportState(destination, 'initialState', initialState);
14
14
  break;
15
15
  }
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  NEXT_PUBLIC_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: 1742557782744 || Date.now(),
4
- VERSION: "20.0.0-canary.23" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1742562389225 || Date.now(),
4
+ VERSION: "20.0.0-canary.24" || '--current-version--',
5
5
  };
@@ -1525,6 +1525,17 @@ export declare const ADAPTABLE_METAMODEL: {
1525
1525
  isOpt?: undefined;
1526
1526
  })[];
1527
1527
  };
1528
+ BaseState: {
1529
+ name: string;
1530
+ kind: string;
1531
+ desc: string;
1532
+ props: {
1533
+ name: string;
1534
+ kind: string;
1535
+ desc: string;
1536
+ isOpt: boolean;
1537
+ }[];
1538
+ };
1528
1539
  BroadcastConfig: {
1529
1540
  name: string;
1530
1541
  kind: string;
@@ -2106,17 +2117,6 @@ export declare const ADAPTABLE_METAMODEL: {
2106
2117
  ref: string;
2107
2118
  })[];
2108
2119
  };
2109
- ConfigState: {
2110
- name: string;
2111
- kind: string;
2112
- desc: string;
2113
- props: {
2114
- name: string;
2115
- kind: string;
2116
- desc: string;
2117
- isOpt: boolean;
2118
- }[];
2119
- };
2120
2120
  ContainerOptions: {
2121
2121
  name: string;
2122
2122
  kind: string;