@adaptabletools/adaptable 24.0.0-canary.7 → 24.0.0-canary.9
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/agGrid.d.ts +2 -3
- package/agGrid.js +2 -3
- package/aql.d.ts +29 -1
- package/aql.js +49 -1
- package/devtools.d.ts +55 -1
- package/index.css +7 -19
- package/index.d.ts +2 -3
- package/index.js +2 -3
- package/package.json +1 -1
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
- package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +6 -0
- package/src/AdaptableOptions/EditOptions.d.ts +18 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
- package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
- package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
- package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +10 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +87 -2
- package/src/AdaptableState/AdaptableState.d.ts +98 -4
- package/src/AdaptableState/AlertState.d.ts +20 -21
- package/src/AdaptableState/ApplicationState.d.ts +5 -3
- package/src/AdaptableState/BaseState.d.ts +9 -2
- package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
- package/src/AdaptableState/ChartingState.d.ts +10 -5
- package/src/AdaptableState/CommentState.d.ts +10 -4
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +6 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
- package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
- package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
- package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
- package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
- package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
- package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
- package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
- package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
- package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
- package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
- package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
- package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
- package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
- package/src/AdaptableState/Common/Enums.d.ts +21 -0
- package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
- package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
- package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
- package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
- package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
- package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/RowScope.d.ts +3 -1
- package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
- package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
- package/src/AdaptableState/Common/Schedule.d.ts +10 -2
- package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
- package/src/AdaptableState/Common/Types.d.ts +9 -0
- package/src/AdaptableState/CustomSortState.d.ts +8 -5
- package/src/AdaptableState/DashboardState.d.ts +14 -10
- package/src/AdaptableState/ExportState.d.ts +12 -4
- package/src/AdaptableState/FlashingCellState.d.ts +8 -5
- package/src/AdaptableState/FormatColumnState.d.ts +28 -8
- package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
- package/src/AdaptableState/IPushPullState.d.ts +39 -3
- package/src/AdaptableState/InitialState.d.ts +9 -9
- package/src/AdaptableState/InternalState.d.ts +183 -3
- package/src/AdaptableState/LayoutState.d.ts +64 -21
- package/src/AdaptableState/NamedQueryState.d.ts +16 -4
- package/src/AdaptableState/NoteState.d.ts +7 -3
- package/src/AdaptableState/OpenFinState.d.ts +12 -2
- package/src/AdaptableState/PlusMinusState.d.ts +8 -4
- package/src/AdaptableState/PopupState.d.ts +29 -1
- package/src/AdaptableState/QuickSearchState.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
- package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
- package/src/AdaptableState/ShortcutState.d.ts +7 -3
- package/src/AdaptableState/StatusBarState.d.ts +7 -6
- package/src/AdaptableState/StyledColumnState.d.ts +46 -14
- package/src/AdaptableState/TeamSharingState.d.ts +46 -2
- package/src/AdaptableState/ThemeState.d.ts +24 -2
- package/src/AdaptableState/ToolPanelState.d.ts +10 -5
- package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
- package/src/AdaptableState/Uuid.d.ts +6 -0
- package/src/Api/ActionColumnApi.d.ts +3 -1
- package/src/Api/AdaptableApi.d.ts +54 -50
- package/src/Api/AlertApi.d.ts +20 -12
- package/src/Api/ApplicationApi.d.ts +6 -2
- package/src/Api/BulkUpdateApi.d.ts +2 -1
- package/src/Api/CalculatedColumnApi.d.ts +4 -1
- package/src/Api/CalendarApi.d.ts +10 -0
- package/src/Api/CellSummaryApi.d.ts +9 -3
- package/src/Api/ChartingApi.d.ts +22 -7
- package/src/Api/ColumnApi.d.ts +71 -4
- package/src/Api/ColumnFilterApi.d.ts +13 -3
- package/src/Api/ColumnMenuApi.d.ts +13 -2
- package/src/Api/ColumnScopeApi.d.ts +27 -1
- package/src/Api/CommentApi.d.ts +10 -7
- package/src/Api/ContextMenuApi.d.ts +11 -1
- package/src/Api/CustomSortApi.d.ts +6 -2
- package/src/Api/DashboardApi.d.ts +30 -9
- package/src/Api/DataChangeHistoryApi.d.ts +9 -3
- package/src/Api/DataImportApi.d.ts +1 -1
- package/src/Api/EntitlementApi.d.ts +6 -1
- package/src/Api/EventApi.d.ts +67 -19
- package/src/Api/Events/AdaptableReady.d.ts +6 -2
- package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
- package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
- package/src/Api/Events/AlertFired.d.ts +8 -2
- package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
- package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
- package/src/Api/Events/CellChanged.d.ts +6 -2
- package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
- package/src/Api/Events/ChartChanged.d.ts +16 -8
- package/src/Api/Events/CommentChanged.d.ts +8 -2
- package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
- package/src/Api/Events/DashboardChanged.d.ts +27 -6
- package/src/Api/Events/DataImported.d.ts +8 -4
- package/src/Api/Events/DataSetSelected.d.ts +6 -2
- package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
- package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
- package/src/Api/Events/GridFilterApplied.d.ts +11 -3
- package/src/Api/Events/GridSorted.d.ts +6 -2
- package/src/Api/Events/LayoutChanged.d.ts +36 -5
- package/src/Api/Events/LiveDataChanged.d.ts +21 -5
- package/src/Api/Events/NoteChanged.d.ts +5 -1
- package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
- package/src/Api/Events/RowChanged.d.ts +6 -2
- package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
- package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
- package/src/Api/Events/ThemeSelected.d.ts +6 -2
- package/src/Api/ExportApi.d.ts +59 -32
- package/src/Api/ExpressionApi.d.ts +24 -1
- package/src/Api/Fdc3Api.d.ts +16 -3
- package/src/Api/FlashingCellApi.d.ts +6 -1
- package/src/Api/FormatColumnApi.d.ts +18 -11
- package/src/Api/FreeTextColumnApi.d.ts +4 -2
- package/src/Api/GridApi.d.ts +92 -19
- package/src/Api/IPushPullApi.d.ts +19 -2
- package/src/Api/Internal/EventInternalApi.d.ts +2 -1
- package/src/Api/Internal/EventInternalApi.js +7 -0
- package/src/Api/InteropioPluginApi.d.ts +2 -1
- package/src/Api/LayoutApi.d.ts +29 -15
- package/src/Api/NamedQueryApi.d.ts +10 -6
- package/src/Api/NoteApi.d.ts +15 -11
- package/src/Api/OpenFinApi.d.ts +8 -2
- package/src/Api/OptionsApi.d.ts +43 -1
- package/src/Api/PluginsApi.d.ts +6 -1
- package/src/Api/PlusMinusApi.d.ts +2 -1
- package/src/Api/QuickSearchApi.d.ts +6 -1
- package/src/Api/RowFormApi.d.ts +8 -7
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/SmartEditApi.d.ts +4 -1
- package/src/Api/StateApi.d.ts +30 -2
- package/src/Api/StatusBarApi.d.ts +2 -0
- package/src/Api/StyledColumnApi.d.ts +23 -12
- package/src/Api/SystemStatusApi.d.ts +18 -6
- package/src/Api/TeamSharingApi.d.ts +8 -1
- package/src/Api/ThemeApi.d.ts +17 -8
- package/src/Api/ToolPanelApi.d.ts +12 -7
- package/src/Api/UserInterfaceApi.d.ts +10 -1
- package/src/Redux/Store/AdaptableStore.js +1 -1
- package/src/View/Filter/ColumnFilter/ColumnFilterNew.js +14 -9
- package/src/agGrid/Adaptable.d.ts +0 -12
- package/src/agGrid/Adaptable.js +0 -52
- package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
- package/src/agGrid/AdaptableLogger.d.ts +74 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
- package/src/agGrid/index.d.ts +1 -6
- package/src/agGrid/index.js +1 -3
- package/src/aql/ExpressionEvaluation.d.ts +27 -0
- package/src/aql/types.d.ts +22 -0
- package/src/components/ColorField/index.d.ts +2 -3
- package/src/components/ColorField/index.js +22 -2
- package/src/components/aql/QueryBuilder/GroupEditor.js +1 -1
- package/src/components/aql/QueryBuilder/QueryBuilder.d.ts +5 -0
- package/src/components/aql/QueryBuilder/QueryBuilder.js +1 -1
- package/src/components/aql/QueryBuilder/context.d.ts +7 -0
- package/src/components/aql/QueryBuilder/context.js +3 -1
- package/src/env.js +2 -2
- package/src/migration/legacyAdaptableQuery.d.ts +29 -4
- package/src/setupDevTools.js +223 -0
- package/src/types.d.ts +1 -3
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/vendor/components/ColorField/index.d.ts +12 -2
- package/vendor/components/ColorField/index.d.ts.map +1 -1
- package/vendor/components/ColorField/index.js +3 -4
- package/vendor/components/ColorField/index.js.map +1 -1
- package/vendor/components/ColorPicker/index.d.ts +50 -11
- package/vendor/components/ColorPicker/index.d.ts.map +1 -1
- package/vendor/components/ColorPicker/index.js +172 -54
- package/vendor/components/ColorPicker/index.js.map +1 -1
- package/vendor/components/ColorPicker/themeColors.d.ts +42 -1
- package/vendor/components/ColorPicker/themeColors.d.ts.map +1 -1
- package/vendor/components/ColorPicker/themeColors.js +131 -1
- package/vendor/components/ColorPicker/themeColors.js.map +1 -1
- package/vendor/components/index.css +6 -0
- package/vendor/components/index.d.ts +2 -2
- package/vendor/components/index.d.ts.map +1 -1
- package/vendor/components/index.js +1 -1
- package/vendor/components/index.js.map +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
- package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
- package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
- package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
- package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
- package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
- package/src/View/AdaptableWizardView/Wizard.js +0 -98
- package/src/View/AdaptableWizardView/index.d.ts +0 -4
- package/src/View/AdaptableWizardView/index.js +0 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AdaptableIcon } from '../AdaptableState/Common/AdaptableIcon';
|
|
2
|
+
import { AdaptableModule } from '../AdaptableState/Common/Types';
|
|
2
3
|
import { DateInputOptions } from './DateInputOptions';
|
|
3
4
|
import { AdaptableObjectTag } from '../AdaptableState/Common/AdaptableObject';
|
|
4
5
|
import { AdaptableStyle } from '../AdaptableState/Common/AdaptableStyle';
|
|
@@ -29,6 +30,10 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
29
30
|
*
|
|
30
31
|
*/
|
|
31
32
|
dateInputOptions?: DateInputOptions;
|
|
33
|
+
/**
|
|
34
|
+
* Options for the Colour Picker, including which colours to display
|
|
35
|
+
*/
|
|
36
|
+
colourPickerOptions?: ColourPickerOptions;
|
|
32
37
|
/**
|
|
33
38
|
* Style to set for editable Cells
|
|
34
39
|
*/
|
|
@@ -80,7 +85,6 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
80
85
|
/**
|
|
81
86
|
* Hides confirmation dialog which displays whenever an AdaptableObject is deleted
|
|
82
87
|
* @defaultValue false
|
|
83
|
-
* @noCodeItem
|
|
84
88
|
*/
|
|
85
89
|
disableDeleteConfirmation?: boolean;
|
|
86
90
|
/**
|
|
@@ -109,7 +113,6 @@ export interface LoadingScreenOptions<TData = any> {
|
|
|
109
113
|
/**
|
|
110
114
|
* Display Loading Screen when AdapTable initialises
|
|
111
115
|
* @defaultValue true
|
|
112
|
-
* @noCodeItem
|
|
113
116
|
*/
|
|
114
117
|
showLoadingScreen?: boolean;
|
|
115
118
|
/**
|
|
@@ -130,6 +133,88 @@ export interface LoadingScreenOptions<TData = any> {
|
|
|
130
133
|
*/
|
|
131
134
|
loadingScreenText?: string;
|
|
132
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Options for the Colour Picker.
|
|
138
|
+
*/
|
|
139
|
+
export interface ColourPickerOptions {
|
|
140
|
+
/**
|
|
141
|
+
* Colour Picker tabs to display in order provided; `Custom`, `Palette`, or both
|
|
142
|
+
*
|
|
143
|
+
* @defaultValue ['Custom', 'Palette']
|
|
144
|
+
*/
|
|
145
|
+
tabs?: ColourPickerTab[];
|
|
146
|
+
/**
|
|
147
|
+
* Orders Palette swatches around the colour wheel; if `false`, each colour stays the order supplied
|
|
148
|
+
*
|
|
149
|
+
* @defaultValue true
|
|
150
|
+
*/
|
|
151
|
+
orderPaletteColours?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Leave out duplicates of swatches already displayed
|
|
154
|
+
*
|
|
155
|
+
* @defaultValue true
|
|
156
|
+
*/
|
|
157
|
+
removeDuplicates?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Chooses which of the supplied colours (theme & colour palette) the Palette tab shows
|
|
160
|
+
*/
|
|
161
|
+
filterColours?: (context: ColourPickerFilterContext) => ColourPickerFilterResult | void;
|
|
162
|
+
/**
|
|
163
|
+
* Show **Theme** and **Palette** headings on the Palette tab (if both have colours)
|
|
164
|
+
*
|
|
165
|
+
* @defaultValue false
|
|
166
|
+
*/
|
|
167
|
+
showGroupLabels?: boolean;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Colour Picker tabs: `Custom` is free colour picker, `Palette` is list of swatches
|
|
171
|
+
*/
|
|
172
|
+
export type ColourPickerTab = 'Custom' | 'Palette';
|
|
173
|
+
/**
|
|
174
|
+
* A colour the Colour Picker can offer. `value` is what gets stored
|
|
175
|
+
*/
|
|
176
|
+
export interface ColourPickerColour {
|
|
177
|
+
/**
|
|
178
|
+
* The CSS value that gets stored, e.g. `var(--ab-color-success)`.
|
|
179
|
+
*/
|
|
180
|
+
value: string;
|
|
181
|
+
/** The name shown for the colour, e.g. "Success" or "Palette 3". */
|
|
182
|
+
label: string;
|
|
183
|
+
/**
|
|
184
|
+
* The colour as the active theme paints it
|
|
185
|
+
*/
|
|
186
|
+
hex?: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Colours available when Colour Picker opens, and module being edited.
|
|
190
|
+
*/
|
|
191
|
+
export interface ColourPickerFilterContext {
|
|
192
|
+
/**
|
|
193
|
+
* Available Theme colours
|
|
194
|
+
*/
|
|
195
|
+
themeColours: ColourPickerColour[];
|
|
196
|
+
/**
|
|
197
|
+
* Available Palette colours
|
|
198
|
+
*/
|
|
199
|
+
paletteColours: ColourPickerColour[];
|
|
200
|
+
/**
|
|
201
|
+
* Module being edited
|
|
202
|
+
*/
|
|
203
|
+
module?: AdaptableModule;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Colours to show - must be in list provided (otherwise ignored)
|
|
207
|
+
*/
|
|
208
|
+
export interface ColourPickerFilterResult {
|
|
209
|
+
/**
|
|
210
|
+
* Theme colours to keep. A colour not in the supplied list is ignored.
|
|
211
|
+
*/
|
|
212
|
+
themeColours: ColourPickerColour[];
|
|
213
|
+
/**
|
|
214
|
+
* Palette colours to keep. A colour not in the supplied list is ignored.
|
|
215
|
+
*/
|
|
216
|
+
paletteColours: ColourPickerColour[];
|
|
217
|
+
}
|
|
133
218
|
/**
|
|
134
219
|
* Context used when evaluating Object Tags
|
|
135
220
|
*/
|
|
@@ -25,47 +25,141 @@ import { NamedQueryState } from './NamedQueryState';
|
|
|
25
25
|
import { CommentState } from './CommentState';
|
|
26
26
|
import { UserInterfaceState } from './UserInterfaceState';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Full AdapTable State in the store: the persisted sections plus the sections that are never saved.
|
|
29
|
+
*
|
|
30
|
+
* {@link AdaptablePersistentState} is what `loadState` / `saveState` round-trip, and what `InitialState` seeds.
|
|
31
|
+
* {@link AdaptableTransientState} exists only for the current session.
|
|
32
|
+
*
|
|
33
|
+
* Each section has its own `Revision`. When a later Initial State has a higher Revision for a section, that section is replaced (`Override`) or merged so user-created objects are kept (`KeepUserDefined`). See {@link BaseState.Revision}.
|
|
29
34
|
*/
|
|
30
35
|
export interface AdaptableState extends AdaptablePersistentState, AdaptableTransientState {
|
|
31
36
|
[s: string]: BaseState;
|
|
32
37
|
}
|
|
33
38
|
/**
|
|
34
|
-
*
|
|
39
|
+
* AdapTable State that is persisted.
|
|
40
|
+
*
|
|
41
|
+
* This is the object passed to `stateOptions.loadState`, `saveState`, `persistState` and `applyState`.
|
|
42
|
+
* Supply the same section names in `InitialState`. Initial State is applied only when nothing has been persisted yet for this grid; after that, raising a section's `Revision` is how a new Initial State updates that section.
|
|
35
43
|
*
|
|
36
|
-
*
|
|
44
|
+
* `TeamSharing` is persisted, but it is not part of Initial State. Shares are created at run time.
|
|
37
45
|
*/
|
|
38
46
|
export interface AdaptablePersistentState {
|
|
47
|
+
/**
|
|
48
|
+
* Developer-owned key/value entries, stored with the rest of AdapTable State.
|
|
49
|
+
*
|
|
50
|
+
* Set from Initial State. There is no UI for editing these entries.
|
|
51
|
+
*/
|
|
39
52
|
Application: ApplicationState;
|
|
53
|
+
/**
|
|
54
|
+
* Alert definitions. Each rule, schedule or data-change alert fires when its condition is met.
|
|
55
|
+
*/
|
|
40
56
|
Alert: AlertState;
|
|
57
|
+
/**
|
|
58
|
+
* Calculated Columns. Each column's `Expression` is evaluated to produce the cell value.
|
|
59
|
+
*/
|
|
41
60
|
CalculatedColumn: CalculatedColumnState;
|
|
61
|
+
/**
|
|
62
|
+
* Named charts. Each definition wraps an AG Chart model.
|
|
63
|
+
*/
|
|
42
64
|
Charting: ChartingState;
|
|
65
|
+
/**
|
|
66
|
+
* Custom Sorts. A column listed here sorts by the given value order instead of the default comparison.
|
|
67
|
+
*/
|
|
43
68
|
CustomSort: CustomSortState;
|
|
69
|
+
/**
|
|
70
|
+
* Dashboard: tabs, which toolbars are on each tab, and whether the Dashboard is collapsed, floating or hidden.
|
|
71
|
+
*/
|
|
44
72
|
Dashboard: DashboardState;
|
|
73
|
+
/**
|
|
74
|
+
* Reports and report schedules used by Export.
|
|
75
|
+
*/
|
|
45
76
|
Export: ExportState;
|
|
77
|
+
/**
|
|
78
|
+
* Flashing Cell rules. Matching cells or rows flash when their data changes.
|
|
79
|
+
*/
|
|
46
80
|
FlashingCell: FlashingCellState;
|
|
81
|
+
/**
|
|
82
|
+
* Format Columns: styles and display formats, applied to a column scope, optionally when a `Rule` is true.
|
|
83
|
+
*/
|
|
47
84
|
FormatColumn: FormatColumnState;
|
|
85
|
+
/**
|
|
86
|
+
* Free Text Columns. Cell values are stored here, not in the grid's data source.
|
|
87
|
+
*/
|
|
48
88
|
FreeTextColumn: FreeTextColumnState;
|
|
89
|
+
/**
|
|
90
|
+
* Layouts: column visibility, order, sizing, sorting, grouping, aggregations, filters and the current Layout.
|
|
91
|
+
*
|
|
92
|
+
* Initial State must include a Layout unless `layoutOptions.autoCreateLayout` creates one.
|
|
93
|
+
*/
|
|
49
94
|
Layout: LayoutState;
|
|
95
|
+
/**
|
|
96
|
+
* Named Queries. An expression saved here can be referred to by name from other modules.
|
|
97
|
+
*/
|
|
50
98
|
NamedQuery: NamedQueryState;
|
|
99
|
+
/**
|
|
100
|
+
* Cell Notes. A Note is one piece of text on a cell, separate from Comments and from Free Text Columns.
|
|
101
|
+
*/
|
|
51
102
|
Note: NoteState;
|
|
103
|
+
/**
|
|
104
|
+
* Plus Minus nudges. Each nudge names a column and how much `+` / `-` (or a custom shortcut) changes the cell.
|
|
105
|
+
*/
|
|
52
106
|
PlusMinus: PlusMinusState;
|
|
107
|
+
/**
|
|
108
|
+
* Quick Search text, and whether matches are highlighted or non-matching rows are filtered out.
|
|
109
|
+
*/
|
|
53
110
|
QuickSearch: QuickSearchState;
|
|
111
|
+
/**
|
|
112
|
+
* Keyboard shortcuts that write a value into the edited cell, used to speed up entry and block mistyped values.
|
|
113
|
+
*/
|
|
54
114
|
Shortcut: ShortcutState;
|
|
115
|
+
/**
|
|
116
|
+
* Status Bar panels and the order they appear in.
|
|
117
|
+
*/
|
|
55
118
|
StatusBar: StatusBarState;
|
|
119
|
+
/**
|
|
120
|
+
* Styled Columns: badges, bars, sparklines, gradients and the other cell renderers that are not a Format Column.
|
|
121
|
+
*/
|
|
56
122
|
StyledColumn: StyledColumnState;
|
|
123
|
+
/**
|
|
124
|
+
* Team Sharing entities. Persisted, but not supplied in Initial State.
|
|
125
|
+
*
|
|
126
|
+
* `Snapshot` is a one-time copy. `Active` stays linked and its `Revision` increases when the shared object changes.
|
|
127
|
+
*/
|
|
57
128
|
TeamSharing: TeamSharingState;
|
|
129
|
+
/**
|
|
130
|
+
* Current theme (`light`, `dark` or `os`) and which shipped themes are offered.
|
|
131
|
+
*/
|
|
58
132
|
Theme: ThemeState;
|
|
133
|
+
/**
|
|
134
|
+
* Tool Panel: which module controls are visible and their order.
|
|
135
|
+
*/
|
|
59
136
|
ToolPanel: ToolPanelState;
|
|
137
|
+
/**
|
|
138
|
+
* Which AdapTable UI surfaces are shown: Dashboard, Tool Panel, Status Bar, column menu, context menu and the rest.
|
|
139
|
+
*/
|
|
60
140
|
UserInterface: UserInterfaceState;
|
|
61
141
|
}
|
|
62
142
|
/**
|
|
63
|
-
*
|
|
143
|
+
* AdapTable State that is never persisted and is not part of Initial State.
|
|
64
144
|
*/
|
|
65
145
|
export interface AdaptableTransientState {
|
|
146
|
+
/**
|
|
147
|
+
* Session bookkeeping: current selection, in-flight module data and similar runtime fields.
|
|
148
|
+
*/
|
|
66
149
|
Internal: InternalState;
|
|
150
|
+
/**
|
|
151
|
+
* Which popup or form is open.
|
|
152
|
+
*/
|
|
67
153
|
Popup: PopupState;
|
|
154
|
+
/**
|
|
155
|
+
* Comment threads for this session.
|
|
156
|
+
*
|
|
157
|
+
* Comments are not in the persisted snapshot. Load them with `commentOptions.loadCommentThreads` and save them with `commentOptions.persistCommentThreads`.
|
|
158
|
+
*/
|
|
68
159
|
Comment: CommentState;
|
|
160
|
+
/**
|
|
161
|
+
* State owned by plugins, keyed by plugin id (for example ipushpull and OpenFin session data).
|
|
162
|
+
*/
|
|
69
163
|
Plugins: {
|
|
70
164
|
[key: string]: any;
|
|
71
165
|
};
|
|
@@ -9,23 +9,24 @@ import { ButtonStyle } from './Common/ButtonStyle';
|
|
|
9
9
|
import { Schedule } from './Common/Schedule';
|
|
10
10
|
import { AlertFormContext, BaseContext, NotificationsOptions, SuspendableObject } from '../types';
|
|
11
11
|
/**
|
|
12
|
-
* Adaptable State
|
|
12
|
+
* Alert section of Adaptable State, including Initial State.
|
|
13
|
+
*
|
|
14
|
+
* Each definition fires when its condition is met. A rule-based alert sets `Scope` and `Rule`. A row-change alert sets `RowChangeTrigger` (`'Added'` or `'Removed'`). A scheduled alert sets `Schedule` and has no rule. `MessageType` sets the colour and icon. `MessageHeader` is the title and `MessageText` is the body.
|
|
13
15
|
*/
|
|
14
16
|
export interface AlertState extends BaseState {
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
18
|
+
* Alerts to evaluate. Each one is a rule-based alert (`Scope` + `Rule`), a row-change alert (`RowChangeTrigger`), or a scheduled alert (`Schedule`).
|
|
17
19
|
*/
|
|
18
20
|
AlertDefinitions?: AlertDefinition[];
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* Category of an Alert Definition, stored on {@link AlertDefinitionBase.Type}.
|
|
22
24
|
*
|
|
23
|
-
*
|
|
24
|
-
* inferred from Rule / Schedule shape via migration and runtime fallback.
|
|
25
|
+
* When `Type` is omitted it is inferred: a `Schedule` is `Scheduled`, a `RowChangeTrigger` is `RowChange`, and a `Rule` is `DataChange`, `RelativeChange`, `Validation`, `Aggregation` or `Observable` from the expression.
|
|
25
26
|
*/
|
|
26
27
|
export type AlertType = 'DataChange' | 'RelativeChange' | 'Validation' | 'RowChange' | 'Aggregation' | 'Observable' | 'Scheduled';
|
|
27
28
|
/**
|
|
28
|
-
* Runtime constants matching {@link AlertType}
|
|
29
|
+
* Runtime constants matching {@link AlertType}.
|
|
29
30
|
*/
|
|
30
31
|
export declare const AlertType: {
|
|
31
32
|
readonly DataChange: "DataChange";
|
|
@@ -38,7 +39,9 @@ export declare const AlertType: {
|
|
|
38
39
|
};
|
|
39
40
|
export declare const ALERT_TYPES: readonly AlertType[];
|
|
40
41
|
/**
|
|
41
|
-
* Fields
|
|
42
|
+
* Fields every alert definition has.
|
|
43
|
+
*
|
|
44
|
+
* `Name` identifies the alert. `MessageType` is required and sets the colour, icon and log level (`'Info'`, `'Success'`, `'Warning'` or `'Error'`). `MessageHeader` is the notification title. `MessageText` is the body. Suspend with `IsSuspended`.
|
|
42
45
|
*/
|
|
43
46
|
export interface AlertDefinitionBase extends SuspendableObject {
|
|
44
47
|
/**
|
|
@@ -46,9 +49,7 @@ export interface AlertDefinitionBase extends SuspendableObject {
|
|
|
46
49
|
*/
|
|
47
50
|
Name: string;
|
|
48
51
|
/**
|
|
49
|
-
* Alert category
|
|
50
|
-
* Optional for one release so legacy InitialState migrates via VersionUpgrade24;
|
|
51
|
-
* when omitted, inferred from Rule / Schedule.
|
|
52
|
+
* Alert category. When omitted, inferred from `Rule` or `Schedule`. See {@link AlertType}.
|
|
52
53
|
*/
|
|
53
54
|
Type?: AlertType;
|
|
54
55
|
/**
|
|
@@ -60,7 +61,9 @@ export interface AlertDefinitionBase extends SuspendableObject {
|
|
|
60
61
|
*/
|
|
61
62
|
MessageHeader?: string;
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* Body of the displayed alert. The title is {@link AlertDefinitionBase.MessageHeader}.
|
|
65
|
+
*
|
|
66
|
+
* Tokens such as the column and the old and new values are substituted when the alert fires. When omitted, a rule-based alert uses the scope and the rule, and a row-change alert uses a count of the rows that were added or removed. `alertOptions.alertMessageText` overrides this text when it returns a string.
|
|
64
67
|
*/
|
|
65
68
|
MessageText?: string;
|
|
66
69
|
}
|
|
@@ -112,9 +115,7 @@ export interface AlertTriggerPolicy {
|
|
|
112
115
|
/**
|
|
113
116
|
* Alert that fires when a row is added to or removed from the grid.
|
|
114
117
|
*
|
|
115
|
-
*
|
|
116
|
-
* row event, with an optional per-row {@link RowChangeAlertDefinition.Rule}
|
|
117
|
-
* (`[make] = 'Toyota'`) evaluated on the added / removed row.
|
|
118
|
+
* Set `Type` to `'RowChange'` and `RowChangeTrigger` to `'Added'` or `'Removed'`. `Scope` is `{ All: true }`. `Rule` is an optional per-row boolean expression (`[make] = 'Toyota'`); when it is omitted every matching row event fires.
|
|
118
119
|
*/
|
|
119
120
|
export interface RowChangeAlertDefinition extends AlertDefinitionBase {
|
|
120
121
|
Type: 'RowChange';
|
|
@@ -167,9 +168,7 @@ export type AlertDefinition = RuleBasedAlertDefinition | RowChangeAlertDefinitio
|
|
|
167
168
|
*/
|
|
168
169
|
export type GridAlertDefinition = RuleBasedAlertDefinition | RowChangeAlertDefinition;
|
|
169
170
|
/**
|
|
170
|
-
* Row Change
|
|
171
|
-
* `Type: 'RowChange'` definitions with a `ROW_ADDED{}` rule and no trigger
|
|
172
|
-
* are not matched: `VersionUpgrade24` rewrites them on load.
|
|
171
|
+
* True when the alert is a Row Change alert: `Type` is `'RowChange'` and `RowChangeTrigger` is set.
|
|
173
172
|
*/
|
|
174
173
|
export declare const isRowChangeAlertDefinition: (alertDefinition: AlertDefinition | undefined | null) => alertDefinition is RowChangeAlertDefinition;
|
|
175
174
|
/**
|
|
@@ -217,11 +216,11 @@ export interface AlertPresentationProperties {
|
|
|
217
216
|
*/
|
|
218
217
|
DisplayNotification?: boolean;
|
|
219
218
|
/**
|
|
220
|
-
*
|
|
219
|
+
* How long the notification stays visible. When omitted, `notificationsOptions.duration` is used.
|
|
221
220
|
*/
|
|
222
221
|
NotificationDuration?: NotificationsOptions['duration'];
|
|
223
222
|
/**
|
|
224
|
-
* Shows
|
|
223
|
+
* Shows the alert text in the element named by `containerOptions.alertContainer`
|
|
225
224
|
*/
|
|
226
225
|
ShowInDiv?: boolean;
|
|
227
226
|
/**
|
|
@@ -238,11 +237,11 @@ export interface AlertPresentationProperties {
|
|
|
238
237
|
*/
|
|
239
238
|
export interface RuleAlertProperties extends AlertPresentationProperties {
|
|
240
239
|
/**
|
|
241
|
-
* Colours
|
|
240
|
+
* Colours the cell that triggered the alert. `true` uses the colour for `MessageType`. An {@link AdaptableStyle} is applied instead of that colour.
|
|
242
241
|
*/
|
|
243
242
|
HighlightCell?: boolean | AdaptableStyle;
|
|
244
243
|
/**
|
|
245
|
-
* Colours
|
|
244
|
+
* Colours the row that triggered the alert. `true` uses the colour for `MessageType`. An {@link AdaptableStyle} is applied instead of that colour.
|
|
246
245
|
*/
|
|
247
246
|
HighlightRow?: boolean | AdaptableStyle;
|
|
248
247
|
/**
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
2
|
/**
|
|
3
|
-
* Adaptable State
|
|
4
|
-
|
|
3
|
+
* Application section of Adaptable State, including Initial State.
|
|
4
|
+
*
|
|
5
|
+
* A place to store your own key/value data with the rest of AdapTable State. There is no Application UI. Each `Value` must be stringifiable, because the section is persisted.
|
|
6
|
+
*/
|
|
5
7
|
export interface ApplicationState extends BaseState {
|
|
6
8
|
/**
|
|
7
9
|
* Array of Key / Value pairs enabling custom data to be stored in Adaptable State.
|
|
@@ -17,7 +19,7 @@ export interface ApplicationDataEntry {
|
|
|
17
19
|
*/
|
|
18
20
|
Key: string;
|
|
19
21
|
/**
|
|
20
|
-
* Value
|
|
22
|
+
* Value stored for `Key`. It must be stringifiable, because it is saved with the rest of AdapTable State.
|
|
21
23
|
*/
|
|
22
24
|
Value: any;
|
|
23
25
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Base
|
|
2
|
+
* Base of every AdapTable State section.
|
|
3
|
+
*
|
|
4
|
+
* `Revision` is how a newer Initial State updates one section without touching the others.
|
|
3
5
|
*/
|
|
4
6
|
export interface BaseState {
|
|
5
7
|
/**
|
|
6
|
-
* Version
|
|
8
|
+
* Version of this section.
|
|
9
|
+
*
|
|
10
|
+
* A number, or `{ Key, UpdateStrategy }`. AdapTable compares `Key` (or the number) with the Revision already persisted for this section. When the Initial State key is higher, the section is updated:
|
|
11
|
+
*
|
|
12
|
+
* - `Override` (the default) replaces the persisted section with the Initial State section.
|
|
13
|
+
* - `KeepUserDefined` applies the Initial State section, then appends objects the user added (their `Source` is not `InitialState`) back onto each array.
|
|
7
14
|
*/
|
|
8
15
|
Revision?: number | {
|
|
9
16
|
Key: number;
|
|
@@ -4,20 +4,24 @@ import { expressionContainsAggregation, expressionContainsObservableCall, type E
|
|
|
4
4
|
import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
|
|
5
5
|
export { expressionContainsAggregation, expressionContainsObservableCall };
|
|
6
6
|
/**
|
|
7
|
-
* Adaptable State
|
|
8
|
-
|
|
7
|
+
* Calculated Column section of Adaptable State, including Initial State.
|
|
8
|
+
*
|
|
9
|
+
* Each entry adds a column whose cells are the result of an AdapTableQL expression. The column is not in the grid data source. `ColumnId` is the id of the column AdapTable creates. `CalculatedColumnSettings.DataType` is required. `Type` can be omitted; it is inferred from the expression.
|
|
10
|
+
*/
|
|
9
11
|
export interface CalculatedColumnState extends BaseState {
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* Calculated Columns to add. `ColumnId` is the id of the column AdapTable creates.
|
|
12
14
|
*/
|
|
13
15
|
CalculatedColumns?: CalculatedColumn[];
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
18
|
+
* A column whose value is an AdapTableQL expression, stored in Adaptable State.
|
|
19
|
+
*
|
|
20
|
+
* `ColumnId` is the id of the new column. `Expression` is required. `CalculatedColumnSettings.DataType` is required and is the type AdapTable uses for filters and expressions. `Type` is optional and is inferred from the expression: a per-row expression is `Standard`, an expression that reads change history is `Observable`, and an aggregation, cumulative, quantile or window expression is evaluated over rows.
|
|
17
21
|
*/
|
|
18
22
|
export interface CalculatedColumn extends AdaptableObject {
|
|
19
23
|
/**
|
|
20
|
-
*
|
|
24
|
+
* Id of the column AdapTable creates. It is not the id of a column already in the data source.
|
|
21
25
|
*/
|
|
22
26
|
ColumnId: string;
|
|
23
27
|
/**
|
|
@@ -108,9 +112,7 @@ export declare const supportsCompactExpressionEditor: (calculatedColumn: Pick<Ca
|
|
|
108
112
|
* evaluation follows the expression's {@link ExpressionKind} — see
|
|
109
113
|
* {@link expressionKindForCalculatedColumnType}.
|
|
110
114
|
*
|
|
111
|
-
*
|
|
112
|
-
* inferred from {@link CalculatedColumn.Expression} via
|
|
113
|
-
* {@link inferCalculatedColumnTypeFromExpression}.
|
|
115
|
+
* Stored on {@link CalculatedColumn.Type}. When `Type` is omitted it is inferred from {@link CalculatedColumn.Expression}.
|
|
114
116
|
*/
|
|
115
117
|
export type CalculatedColumnType = 'Standard' | 'Observable' | 'Aggregated' | 'Cumulative' | 'Quantile' | 'Window';
|
|
116
118
|
export declare const CALCULATED_COLUMN_TYPES: readonly CalculatedColumnType[];
|
|
@@ -4,8 +4,9 @@ import { BaseState } from './BaseState';
|
|
|
4
4
|
export declare const isExternalChartDefinition: (chartDefinition: ChartDefinition | ExternalChartDefinition) => chartDefinition is ExternalChartDefinition;
|
|
5
5
|
export declare const isAgChartDefinition: (chartDefinition: ChartDefinition | ExternalChartDefinition) => chartDefinition is ChartDefinition;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* A chart stored by the application, not an AG Grid chart.
|
|
8
|
+
*
|
|
9
|
+
* Distinguished from {@link ChartDefinition} by `Data` (an AG Grid chart has `Model` instead). `Name` must not match an AG Grid chart name. `IsPersisted` defaults to true, which keeps the chart in Adaptable State.
|
|
9
10
|
*/
|
|
10
11
|
export interface ExternalChartDefinition<T = unknown> extends AdaptableObject {
|
|
11
12
|
/**
|
|
@@ -23,7 +24,9 @@ export interface ExternalChartDefinition<T = unknown> extends AdaptableObject {
|
|
|
23
24
|
IsPersisted?: boolean;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
|
-
*
|
|
27
|
+
* An AG Grid chart saved in Adaptable State.
|
|
28
|
+
*
|
|
29
|
+
* Distinguished from {@link ExternalChartDefinition} by `Model`. `Name` is unique and is how a layout opens the chart.
|
|
27
30
|
*/
|
|
28
31
|
export interface ChartDefinition extends AdaptableObject {
|
|
29
32
|
/**
|
|
@@ -36,7 +39,9 @@ export interface ChartDefinition extends AdaptableObject {
|
|
|
36
39
|
Model: ChartModel;
|
|
37
40
|
}
|
|
38
41
|
/**
|
|
39
|
-
*
|
|
42
|
+
* Charting section of Adaptable State, including Initial State.
|
|
43
|
+
*
|
|
44
|
+
* `ChartDefinitions` are AG Grid charts (`Name` + `Model`). `ExternalChartDefinitions` are application charts (`Name` + `Data`). A layout opens a saved chart by name.
|
|
40
45
|
*/
|
|
41
46
|
export interface ChartingState extends BaseState {
|
|
42
47
|
/**
|
|
@@ -49,6 +54,6 @@ export interface ChartingState extends BaseState {
|
|
|
49
54
|
ExternalChartDefinitions?: ExternalChartDefinition<unknown>[];
|
|
50
55
|
}
|
|
51
56
|
/**
|
|
52
|
-
* Aggregation
|
|
57
|
+
* Aggregation used when a chart summarises a numeric column: `sum`, `min`, `max`, `count`, `avg`, `first` or `last`.
|
|
53
58
|
*/
|
|
54
59
|
export type ChartingAggFunc = 'sum' | 'min' | 'max' | 'count' | 'avg' | 'first' | 'last';
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { CellAddress, BaseState } from '../types';
|
|
2
2
|
import { TypeUuid } from './Uuid';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Comment threads for the current session.
|
|
5
|
+
*
|
|
6
|
+
* This section is not persisted and is not part of Initial State. Load threads with `commentOptions.loadCommentThreads` and save them with `commentOptions.persistCommentThreads`.
|
|
5
7
|
*/
|
|
6
8
|
export interface CommentState extends BaseState {
|
|
7
9
|
/**
|
|
8
|
-
*
|
|
10
|
+
* Comment threads for this session. Each thread belongs to one cell (`PrimaryKeyValue` and `ColumnId`) and holds its `Comments` in order.
|
|
9
11
|
*/
|
|
10
12
|
CommentThreads?: CommentThread[];
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* One comment in a cell's thread.
|
|
16
|
+
*
|
|
17
|
+
* `Value` is the text. `Timestamp` is when it was written. `Author.UserName` is who wrote it. `Uuid` identifies the comment.
|
|
14
18
|
*/
|
|
15
19
|
export interface AdaptableComment {
|
|
16
20
|
/**
|
|
@@ -37,7 +41,9 @@ export interface AdaptableComment {
|
|
|
37
41
|
AdaptableId?: string;
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* Every comment on one cell.
|
|
45
|
+
*
|
|
46
|
+
* The cell is `PrimaryKeyValue` plus `ColumnId` (from `CellAddress`). `Comments` is the thread, in order.
|
|
41
47
|
*/
|
|
42
48
|
export interface CommentThread extends CellAddress {
|
|
43
49
|
/**
|
|
@@ -3,11 +3,15 @@ import { CellDataChangedInfo } from './CellDataChangedInfo';
|
|
|
3
3
|
import { AlertDefinition } from '../AlertState';
|
|
4
4
|
import { RowDataChangedInfo } from './RowDataChangedInfo';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* An alert that has fired.
|
|
7
|
+
*
|
|
8
|
+
* This is the runtime alert, not the {@link AlertDefinition} that defines the rule. `alertType` is `'cellChanged'`, `'rowChanged'` or `'generic'`. `header` is the title and `message` is the body. `alertDefinition` is the rule.
|
|
7
9
|
*/
|
|
8
10
|
export type AdaptableAlert<TData = any> = AdaptableCellChangedAlert<TData> | AdaptableRowChangedAlert<TData> | AdaptableGenericAlert;
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
12
|
+
* Kind of a fired alert: `'generic'`, `'cellChange'` or `'rowChange'`.
|
|
13
|
+
*
|
|
14
|
+
* The `alertType` field on a fired alert uses `'cellChanged'` and `'rowChanged'` for the last two.
|
|
11
15
|
*/
|
|
12
16
|
export type AdaptableAlertType = 'generic' | 'cellChange' | 'rowChange';
|
|
13
17
|
/**
|
|
@@ -3,7 +3,9 @@ import { Identifiable } from './AdaptableObject';
|
|
|
3
3
|
import { AdaptableIcon } from './AdaptableIcon';
|
|
4
4
|
import { BaseContext } from '../../types';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* A button on a form, alert or toolbar.
|
|
7
|
+
*
|
|
8
|
+
* `label` is the text. `onClick` runs when it is clicked and receives the button and the form or event context. `buttonStyle` and `icon` are optional. `disabled` and `hidden` are functions that return whether the button is disabled or hidden.
|
|
7
9
|
*/
|
|
8
10
|
export interface AdaptableButton<CONTEXT_TYPE extends BaseContext> extends Identifiable {
|
|
9
11
|
/**
|
|
@@ -7,7 +7,9 @@ import { ColumnFilter } from './ColumnFilter';
|
|
|
7
7
|
*/
|
|
8
8
|
export type AdaptableColumnDataType = 'text' | 'number' | 'boolean' | 'date' | 'object' | 'textArray' | 'numberArray' | 'tupleArray' | 'objectArray' | 'groupColumn' | 'unknown';
|
|
9
9
|
/**
|
|
10
|
-
* Column
|
|
10
|
+
* Column types AdapTable assigns.
|
|
11
|
+
*
|
|
12
|
+
* `'calculatedColumn'`, `'freeTextColumn'`, `'actionColumn'` and `'fdc3Column'` mark columns AdapTable created. `'hiddenColumn'` is kept out of the grid. The `pivot*Total` names mark pivot total columns.
|
|
11
13
|
*/
|
|
12
14
|
export type AdaptableColumnTypeName = 'hiddenColumn' | 'calculatedColumn' | 'freeTextColumn' | 'actionColumn' | 'fdc3Column' | 'pivotAnyTotal' | 'pivotGrandTotal' | 'pivotColumnTotal' | 'pivotAggregationTotal';
|
|
13
15
|
export declare const HIDDEN_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
@@ -212,19 +214,54 @@ export interface AdaptableColumn<TData = any> extends AdaptableColumnBase {
|
|
|
212
214
|
/**
|
|
213
215
|
* Key properties of a Column (used in Layout Editor)
|
|
214
216
|
*/
|
|
217
|
+
/**
|
|
218
|
+
* What a column allows, as shown in the Layout editor.
|
|
219
|
+
*
|
|
220
|
+
* Each flag is read from the column. `true` means that action is available.
|
|
221
|
+
*/
|
|
215
222
|
export interface AdaptableColumnProperties {
|
|
223
|
+
/**
|
|
224
|
+
* Whether the column can be sorted.
|
|
225
|
+
*/
|
|
216
226
|
sortable: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Whether the column can be filtered.
|
|
229
|
+
*/
|
|
217
230
|
filterable: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Whether the column can be dragged to a new position.
|
|
233
|
+
*/
|
|
218
234
|
moveable: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Whether the column can be row-grouped.
|
|
237
|
+
*/
|
|
219
238
|
groupable: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Whether the column can be used as a pivot column.
|
|
241
|
+
*/
|
|
220
242
|
pivotable: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Whether the column can show an aggregation.
|
|
245
|
+
*/
|
|
221
246
|
aggregatable: boolean;
|
|
222
247
|
}
|
|
223
248
|
/**
|
|
224
249
|
* Summary of a Column including filters and all unique values
|
|
225
250
|
*/
|
|
251
|
+
/**
|
|
252
|
+
* One column as shown in Column Info: the column, its Column Filter, and the distinct values currently in the grid.
|
|
253
|
+
*/
|
|
226
254
|
export interface AdaptableColumnSummary {
|
|
255
|
+
/**
|
|
256
|
+
* Column this summary describes.
|
|
257
|
+
*/
|
|
227
258
|
column: AdaptableColumn;
|
|
259
|
+
/**
|
|
260
|
+
* Column Filter on this column in the current Layout. Absent when the column is not filtered.
|
|
261
|
+
*/
|
|
228
262
|
columnFilter: ColumnFilter;
|
|
263
|
+
/**
|
|
264
|
+
* Distinct cell values in this column, each with how many rows have that value.
|
|
265
|
+
*/
|
|
229
266
|
uniqueGridCells: UniqueGridCell[];
|
|
230
267
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ColumnFilter } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Filters currently applied.
|
|
4
|
+
*
|
|
5
|
+
* `gridFilter` is the Grid Filter expression, absent when there is none. `columnFilters` are the Column Filters in the current layout.
|
|
4
6
|
*/
|
|
5
7
|
export interface AdaptableFilterState {
|
|
6
8
|
/**
|
|
@@ -2,7 +2,9 @@ import { Identifiable } from './AdaptableObject';
|
|
|
2
2
|
import { CellDataChangedInfo } from '../../types';
|
|
3
3
|
import { FlashingCellDefinition } from '../../../types';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* A cell or row that has just flashed.
|
|
6
|
+
*
|
|
7
|
+
* `flashingCellDefinition` is the rule. `cellDataChangedInfo` is the change that triggered it, when there is one. `direction` is `up`, `down` or `neutral`. `flashTarget` is what flashed (cell or row).
|
|
6
8
|
*/
|
|
7
9
|
export interface AdaptableFlashingCell extends Identifiable {
|
|
8
10
|
/**
|