@adaptabletools/adaptable 24.0.0-canary.5 → 24.0.0-canary.6
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/devtools.d.ts +182 -1
- package/index.css +271 -102
- package/package.json +2 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -4
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +5 -5
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +3 -3
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +6 -4
- package/src/AdaptableOptions/StateOptions.d.ts +37 -13
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/QuickSearchState.d.ts +4 -0
- package/src/Api/Implementation/ColumnScopeApiImpl.js +3 -3
- package/src/Api/Implementation/StateApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StateApiImpl.js +4 -3
- package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
- package/src/Api/Internal/StateInternalApi.d.ts +1 -1
- package/src/Api/Internal/StateInternalApi.js +2 -2
- package/src/Api/StateApi.d.ts +2 -2
- package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +0 -4
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -7
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.d.ts +8 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +12 -12
- package/src/Redux/Store/AdaptableStore.d.ts +8 -5
- package/src/Redux/Store/AdaptableStore.js +47 -19
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +5 -5
- package/src/Redux/Store/Interface/IStorageEngine.d.ts +4 -4
- package/src/Redux/Store/StateOptionsGuards.d.ts +58 -0
- package/src/Redux/Store/StateOptionsGuards.js +112 -0
- package/src/Redux/Store/isTransientReduxAction.d.ts +5 -0
- package/src/Redux/Store/isTransientReduxAction.js +19 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -0
- package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
- package/src/Utilities/Constants/ReduxConstants.js +5 -5
- package/src/Utilities/Helpers/AlertTypeHelper.d.ts +1 -1
- package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +14 -0
- package/src/Utilities/Helpers/SettingsPanelHelper.js +37 -1
- package/src/Utilities/Helpers/UIHelper.d.ts +6 -3
- package/src/Utilities/Helpers/UIHelper.js +8 -4
- package/src/Utilities/ObjectFactory.js +3 -3
- package/src/View/Dashboard/DashboardPopupSections.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +62 -25
- package/src/View/StyledColumn/RangesComponent.js +6 -6
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +2 -2
- package/src/View/Wizard/CollapsibleWizardCard.d.ts +3 -1
- package/src/View/Wizard/CollapsibleWizardCard.js +17 -9
- package/src/agGrid/AdaptableAgGrid.d.ts +4 -4
- package/src/agGrid/AdaptableAgGrid.js +2 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
- package/src/agGrid/AgGridColumnAdapter.js +4 -4
- package/src/components/aql/QueryBuilder/QueryBuilderInputs.js +1 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/normalizeLayoutModel.d.ts +1 -1
- package/src/layout-manager/src/simplifyLayoutModel.d.ts +1 -1
- package/src/migration/AdaptableUpgradeHelper.d.ts +7 -2
- package/src/migration/VersionUpgrade17.js +13 -8
- package/src/setupDevTools.js +442 -103
- package/src/types.d.ts +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/vendor/components/Button/index.d.ts +1 -1
- package/vendor/components/Button/index.d.ts.map +1 -1
- package/vendor/components/Button/index.js.map +1 -1
- package/vendor/components/CheckBox/index.d.ts +1 -1
- package/vendor/components/CheckBox/index.d.ts.map +1 -1
- package/vendor/components/CheckBox/index.js.map +1 -1
- package/vendor/components/ColorPicker/colorPickerTab.d.ts +4 -0
- package/vendor/components/ColorPicker/colorPickerTab.d.ts.map +1 -0
- package/vendor/components/ColorPicker/colorPickerTab.js +50 -0
- package/vendor/components/ColorPicker/colorPickerTab.js.map +1 -0
- package/vendor/components/ColorPicker/index.d.ts +31 -0
- package/vendor/components/ColorPicker/index.d.ts.map +1 -0
- package/vendor/components/ColorPicker/index.js +132 -0
- package/vendor/components/ColorPicker/index.js.map +1 -0
- package/vendor/components/ColorPicker/themeColors.d.ts +24 -0
- package/vendor/components/ColorPicker/themeColors.d.ts.map +1 -0
- package/vendor/components/ColorPicker/themeColors.js +52 -0
- package/vendor/components/ColorPicker/themeColors.js.map +1 -0
- package/vendor/components/Combobox/VirtualizedList.d.ts +1 -1
- package/vendor/components/Combobox/VirtualizedList.d.ts.map +1 -1
- package/vendor/components/Combobox/VirtualizedList.js.map +1 -1
- package/vendor/components/Combobox/index.d.ts +1 -1
- package/vendor/components/Combobox/index.d.ts.map +1 -1
- package/vendor/components/Combobox/index.js.map +1 -1
- package/vendor/components/index.css +213 -0
- package/vendor/components/index.d.ts +2 -0
- package/vendor/components/index.d.ts.map +1 -1
- package/vendor/components/index.js +1 -0
- package/vendor/components/index.js.map +1 -1
- package/vendor/components/ui/combobox.d.ts.map +1 -1
- package/vendor/components/ui/combobox.js +1 -1
- package/vendor/components/ui/combobox.js.map +1 -1
package/devtools.d.ts
CHANGED
|
@@ -1,4 +1,175 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { VisibleSettingsPanelNavigationGroup, VisibleSettingsPanelNavigationItem } from './src/Utilities/Helpers/SettingsPanelHelper';
|
|
2
|
+
import type { AdaptableApi, AdaptableColumnDataType, AdaptableModule, AdaptablePersistentState, AdaptableState } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* One AdapTable instance as reported by `window.__ADAPTABLE_DEVTOOLS__.listInstances()`.
|
|
5
|
+
*/
|
|
6
|
+
export type DevToolsInstanceInfo = {
|
|
7
|
+
adaptableId: string;
|
|
8
|
+
adaptableVersion: string;
|
|
9
|
+
agGridVersion: string;
|
|
10
|
+
adaptableStateKey: string;
|
|
11
|
+
primaryKey?: string;
|
|
12
|
+
userName?: string;
|
|
13
|
+
gridRuntime: DevToolsGridRuntime;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Column description returned by `window.__ADAPTABLE_DEVTOOLS__.getColumns()`.
|
|
17
|
+
*
|
|
18
|
+
* `id` and `dataType` match the `columns` input of the AdapTable MCP server's
|
|
19
|
+
* `check_state` and `check_expression` tools.
|
|
20
|
+
*/
|
|
21
|
+
export type DevToolsColumnInfo = {
|
|
22
|
+
/** AdapTable column id (AG Grid `colId`) */
|
|
23
|
+
id: string;
|
|
24
|
+
friendlyName: string;
|
|
25
|
+
dataType: AdaptableColumnDataType;
|
|
26
|
+
field?: string;
|
|
27
|
+
columnTypes?: string[];
|
|
28
|
+
visible: boolean;
|
|
29
|
+
readOnly: boolean;
|
|
30
|
+
isPrimaryKey: boolean;
|
|
31
|
+
isGrouped: boolean;
|
|
32
|
+
pinned: 'left' | 'right' | false;
|
|
33
|
+
isGeneratedRowGroupColumn: boolean;
|
|
34
|
+
isGeneratedPivotResultColumn: boolean;
|
|
35
|
+
isCalculatedColumn: boolean;
|
|
36
|
+
isFreeTextColumn: boolean;
|
|
37
|
+
isActionColumn: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Snapshot of the facts shown in the Settings Panel `Grid Info` section,
|
|
41
|
+
* returned by `window.__ADAPTABLE_DEVTOOLS__.getGridInfo()`.
|
|
42
|
+
*/
|
|
43
|
+
export type DevToolsGridInfo = {
|
|
44
|
+
adaptableId: string;
|
|
45
|
+
adaptableVersion: string;
|
|
46
|
+
agGridVersion: string;
|
|
47
|
+
adaptableStateKey: string;
|
|
48
|
+
userName?: string;
|
|
49
|
+
primaryKey?: string;
|
|
50
|
+
isAutogeneratedPrimaryKey: boolean;
|
|
51
|
+
licenseKey?: string;
|
|
52
|
+
layout: {
|
|
53
|
+
name: string;
|
|
54
|
+
type: 'Table' | 'Pivot';
|
|
55
|
+
rowGroups: string[];
|
|
56
|
+
pivotColumns: string[];
|
|
57
|
+
sorts: {
|
|
58
|
+
columnId: string;
|
|
59
|
+
sortOrder: string;
|
|
60
|
+
}[];
|
|
61
|
+
};
|
|
62
|
+
columnFilters: string;
|
|
63
|
+
gridFilter?: string;
|
|
64
|
+
rows: {
|
|
65
|
+
all: number;
|
|
66
|
+
visible: number;
|
|
67
|
+
selected: number;
|
|
68
|
+
};
|
|
69
|
+
columns: {
|
|
70
|
+
all: number;
|
|
71
|
+
visible: number;
|
|
72
|
+
calculated: string[];
|
|
73
|
+
freeText: string[];
|
|
74
|
+
action: string[];
|
|
75
|
+
};
|
|
76
|
+
modules: {
|
|
77
|
+
available: AdaptableModule[];
|
|
78
|
+
unavailable: AdaptableModule[];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export type DevToolsLogLevel = 'info' | 'success' | 'warn' | 'error' | 'perf';
|
|
82
|
+
/**
|
|
83
|
+
* A log message AdapTable wrote, kept in the in-page buffer regardless of
|
|
84
|
+
* `localStorage.debug`.
|
|
85
|
+
*/
|
|
86
|
+
export type DevToolsLogEntry = {
|
|
87
|
+
timestamp: number;
|
|
88
|
+
adaptableId: string;
|
|
89
|
+
channel: string;
|
|
90
|
+
level: DevToolsLogLevel;
|
|
91
|
+
/** Message arguments, each formatted as a string (objects as JSON) */
|
|
92
|
+
args: string[];
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* A state-changing Redux action AdapTable dispatched (transient UI actions are skipped).
|
|
96
|
+
*/
|
|
97
|
+
export type DevToolsActionEntry = {
|
|
98
|
+
timestamp: number;
|
|
99
|
+
actionName: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* In-page API exposed as `window.__ADAPTABLE_DEVTOOLS__` as soon as AdapTable
|
|
103
|
+
* loads in a browser.
|
|
104
|
+
*
|
|
105
|
+
* Built for tools that evaluate JavaScript in the page (coding agents using
|
|
106
|
+
* Chrome DevTools MCP, Playwright `page.evaluate`, the browser console): every
|
|
107
|
+
* method returns plain JSON unless noted, so the result survives serialization.
|
|
108
|
+
*
|
|
109
|
+
* `adaptableId` can be omitted whenever exactly one AdapTable instance is
|
|
110
|
+
* mounted; with several instances, pass the id (see `listInstances()`).
|
|
111
|
+
* Unknown ids throw an `Error` naming the mounted instances.
|
|
112
|
+
*
|
|
113
|
+
* ```ts
|
|
114
|
+
* window.__ADAPTABLE_DEVTOOLS__.listInstances();
|
|
115
|
+
* window.__ADAPTABLE_DEVTOOLS__.getState('Trades', 'Layout');
|
|
116
|
+
* window.__ADAPTABLE_DEVTOOLS__.getLogs('Trades', { level: 'error' });
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* The AdapTable DevTools Chrome extension uses the same functions.
|
|
120
|
+
*/
|
|
121
|
+
export interface AdaptableDevToolsGlobal {
|
|
122
|
+
/** Short usage text for anyone who only has the global */
|
|
123
|
+
help(): string;
|
|
124
|
+
/** Every mounted AdapTable instance with versions, identity and row counts */
|
|
125
|
+
listInstances(): DevToolsInstanceInfo[];
|
|
126
|
+
/**
|
|
127
|
+
* Full AdapTable State (including the transient `Internal`, `Popup`, `Comment` and
|
|
128
|
+
* `Plugins` sections), serialized. Pass `section` (e.g. `'Layout'`, `'FormatColumn'`)
|
|
129
|
+
* for one section only.
|
|
130
|
+
*/
|
|
131
|
+
getState(adaptableId?: string, section?: keyof AdaptableState | string): any;
|
|
132
|
+
/**
|
|
133
|
+
* Persistent (user) state: what AdapTable saves to storage. Use it as the `state`
|
|
134
|
+
* argument of the MCP `check_state` and `migrate_state` tools.
|
|
135
|
+
*/
|
|
136
|
+
getPersistentState(adaptableId?: string): AdaptablePersistentState;
|
|
137
|
+
/** Columns AdapTable knows about, with data types and visibility */
|
|
138
|
+
getColumns(adaptableId?: string): DevToolsColumnInfo[];
|
|
139
|
+
/** The facts shown in the Settings Panel Grid Info section */
|
|
140
|
+
getGridInfo(adaptableId?: string): DevToolsGridInfo;
|
|
141
|
+
/**
|
|
142
|
+
* Most recent AdapTable log messages (default 100, newest last), optionally
|
|
143
|
+
* filtered by level or channel substring. Messages are buffered whether or not
|
|
144
|
+
* `localStorage.debug` is set.
|
|
145
|
+
*/
|
|
146
|
+
getLogs(adaptableId?: string, options?: {
|
|
147
|
+
level?: DevToolsLogLevel | DevToolsLogLevel[];
|
|
148
|
+
channel?: string;
|
|
149
|
+
limit?: number;
|
|
150
|
+
}): DevToolsLogEntry[];
|
|
151
|
+
/** Most recent state-changing actions (default 50, newest last) */
|
|
152
|
+
getRecentActions(adaptableId?: string, limit?: number): DevToolsActionEntry[];
|
|
153
|
+
/** Restores a state snapshot (as returned by `getState` or `getPersistentState`) */
|
|
154
|
+
restoreState(adaptableId: string | undefined, state: AdaptablePersistentState): Promise<void>;
|
|
155
|
+
/** Opens the Settings Panel, at a Module section when given */
|
|
156
|
+
openSettingsPanel(adaptableId?: string, moduleName?: AdaptableModule): void;
|
|
157
|
+
/**
|
|
158
|
+
* Sets `localStorage.debug` (e.g. `'Adaptable:Trades:*'`, `'Adaptable:*:error'`),
|
|
159
|
+
* `null` removes it. Returns the previous value. Channels created after the call
|
|
160
|
+
* pick it up at once; reload the page to apply it to every channel.
|
|
161
|
+
*/
|
|
162
|
+
setLogging(pattern: string | null): string | null;
|
|
163
|
+
/** Toggles `localStorage.adaptableProfileTracks` (Chrome Performance panel tracks) */
|
|
164
|
+
enableProfiling(enabled?: boolean): void;
|
|
165
|
+
/** The live `AdaptableApi` of an instance (not serializable; for in-page use) */
|
|
166
|
+
getApi(adaptableId?: string): AdaptableApi;
|
|
167
|
+
}
|
|
168
|
+
declare global {
|
|
169
|
+
interface Window {
|
|
170
|
+
__ADAPTABLE_DEVTOOLS__?: AdaptableDevToolsGlobal;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
2
173
|
export type DevToolsMessageAddress = 'adaptable-devtools-contentscript' | 'adaptable-devtools-contentscript-panel' | 'adaptable-devtools-background' | 'adaptable-page';
|
|
3
174
|
export type DevToolsGenericMessage = {
|
|
4
175
|
source: DevToolsMessageAddress;
|
|
@@ -25,11 +196,17 @@ export type DevToolsGridRuntime = {
|
|
|
25
196
|
visibleRowsCount: number;
|
|
26
197
|
selectedRowsCount: number;
|
|
27
198
|
};
|
|
199
|
+
export type DevToolsSettingsPanelNavigationItem = VisibleSettingsPanelNavigationItem;
|
|
200
|
+
export type DevToolsSettingsPanelNavigationGroup = VisibleSettingsPanelNavigationGroup;
|
|
28
201
|
export type DevToolsMountPayload = {
|
|
29
202
|
adaptableId: string;
|
|
30
203
|
adaptableVersion: string;
|
|
31
204
|
agGridVersion: string;
|
|
32
205
|
licenseKey?: string;
|
|
206
|
+
userName?: string;
|
|
207
|
+
primaryKey?: string;
|
|
208
|
+
/** Grouped modules visible in the Settings Panel sidebar for this instance. */
|
|
209
|
+
settingsPanelNavigation?: DevToolsSettingsPanelNavigationGroup[];
|
|
33
210
|
};
|
|
34
211
|
export type DevToolsHostPageLogMessage = {
|
|
35
212
|
type: Extract<DevToolsHostPageMessageType, 'log'>;
|
|
@@ -65,6 +242,10 @@ export type DevToolsHostPageMessage = {
|
|
|
65
242
|
state: any;
|
|
66
243
|
actionName?: string;
|
|
67
244
|
gridRuntime?: DevToolsGridRuntime;
|
|
245
|
+
licenseKey?: string;
|
|
246
|
+
userName?: string;
|
|
247
|
+
primaryKey?: string;
|
|
248
|
+
settingsPanelNavigation?: DevToolsSettingsPanelNavigationGroup[];
|
|
68
249
|
};
|
|
69
250
|
} | DevToolsHostPageLogMessage);
|
|
70
251
|
export type DevToolsHookFn = (adaptableId: string, options: null | DevToolsFnOptions) => void;
|