@adaptabletools/adaptable 24.0.0-canary.8 → 24.0.0
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 +0 -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/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 +6 -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 +18 -9
- 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/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/env.js +2 -2
- package/src/migration/legacyAdaptableQuery.d.ts +29 -4
- package/src/setupDevTools.js +223 -0
- package/src/types.d.ts +0 -2
- package/tsconfig.esm.tsbuildinfo +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,17 +1,45 @@
|
|
|
1
1
|
import { ScreenPopup, ConfirmationPopup, PromptPopup, WindowPopup, FormPopup } from '../Utilities/Interface/MessagePopups';
|
|
2
2
|
import { BaseState } from './BaseState';
|
|
3
3
|
import { ProgressIndicatorConfig } from './Common/ProgressIndicatorConfig';
|
|
4
|
+
/**
|
|
5
|
+
* Progress indicator for this session, plus whether it is currently showing.
|
|
6
|
+
*
|
|
7
|
+
* Session state only. It is not part of Initial State and it is not persisted.
|
|
8
|
+
*/
|
|
4
9
|
export interface ProgressIndicator extends ProgressIndicatorConfig {
|
|
10
|
+
/**
|
|
11
|
+
* Whether the progress indicator is on screen.
|
|
12
|
+
*/
|
|
5
13
|
active: boolean;
|
|
6
14
|
}
|
|
7
15
|
/**
|
|
8
|
-
*
|
|
16
|
+
* Popups open in this session.
|
|
17
|
+
*
|
|
18
|
+
* Session state only. It is not part of Initial State and it is not persisted. Each property is always present. Its `ShowScreenPopup`, `ShowConfirmationPopup` or equivalent flag is false when that popup is closed.
|
|
9
19
|
*/
|
|
10
20
|
export interface PopupState extends BaseState {
|
|
21
|
+
/**
|
|
22
|
+
* Full-screen popup, when one is open.
|
|
23
|
+
*/
|
|
11
24
|
ScreenPopup: ScreenPopup;
|
|
25
|
+
/**
|
|
26
|
+
* Window popup, when one is open.
|
|
27
|
+
*/
|
|
12
28
|
WindowPopup: WindowPopup;
|
|
29
|
+
/**
|
|
30
|
+
* Form popup, when one is open.
|
|
31
|
+
*/
|
|
13
32
|
FormPopup: FormPopup;
|
|
33
|
+
/**
|
|
34
|
+
* Confirmation popup, when one is open.
|
|
35
|
+
*/
|
|
14
36
|
ConfirmationPopup: ConfirmationPopup;
|
|
37
|
+
/**
|
|
38
|
+
* Prompt popup, when one is open.
|
|
39
|
+
*/
|
|
15
40
|
PromptPopup: PromptPopup;
|
|
41
|
+
/**
|
|
42
|
+
* Progress indicator and whether it is showing.
|
|
43
|
+
*/
|
|
16
44
|
ProgressIndicator: ProgressIndicator;
|
|
17
45
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
2
2
|
import { BaseState } from './BaseState';
|
|
3
3
|
/**
|
|
4
|
-
* Adaptable State
|
|
4
|
+
* Quick Search section of Adaptable State, including Initial State.
|
|
5
|
+
*
|
|
6
|
+
* `QuickSearchText` is the search restored at startup. `CellMatchStyle` highlights matching cells. `TextMatchStyle` and `CurrentTextMatchStyle` highlight the matching text inside a cell; those two styles are not available with the Server-Side Row Model.
|
|
5
7
|
*/
|
|
6
8
|
export interface QuickSearchState extends BaseState {
|
|
7
9
|
/**
|
|
@@ -13,13 +15,13 @@ export interface QuickSearchState extends BaseState {
|
|
|
13
15
|
*/
|
|
14
16
|
CellMatchStyle?: Omit<AdaptableStyle, 'ClassName'>;
|
|
15
17
|
/**
|
|
16
|
-
* Style used to highlight matching text within a cell (not
|
|
18
|
+
* Style used to highlight matching text within a cell (not available with the Server-Side Row Model)
|
|
17
19
|
*
|
|
18
20
|
* @defaultValue `var(--ab-color-quick-search-match)` background and `var(--ab-color-quick-search-match-foreground)` text
|
|
19
21
|
*/
|
|
20
22
|
TextMatchStyle?: Omit<AdaptableStyle, 'ClassName'>;
|
|
21
23
|
/**
|
|
22
|
-
* Style used to highlight
|
|
24
|
+
* Style used to highlight the current match within a cell (not available with the Server-Side Row Model)
|
|
23
25
|
*
|
|
24
26
|
* @defaultValue `var(--ab-color-quick-search-current-match)` background, `var(--ab-color-quick-search-current-match-foreground)` text, bold
|
|
25
27
|
*/
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { IRowNode } from 'ag-grid-enterprise';
|
|
2
2
|
import { AdaptableColumn } from '../Common/AdaptableColumn';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* A cell located by its primary key and column id.
|
|
5
|
+
*
|
|
6
|
+
* Used wherever AdapTable names one cell: Notes, Comments, highlights and other cell lookups.
|
|
5
7
|
*/
|
|
6
8
|
export type CellAddress = {
|
|
7
9
|
/**
|
|
8
|
-
* Value in
|
|
10
|
+
* Value in the primary key column for the row.
|
|
9
11
|
*/
|
|
10
12
|
PrimaryKeyValue: string | number;
|
|
11
13
|
/**
|
|
12
|
-
*
|
|
14
|
+
* Column id of the cell.
|
|
13
15
|
*/
|
|
14
16
|
ColumnId: string;
|
|
15
17
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* A rectangular cell selection passed to `selectCellRange`.
|
|
3
|
+
*
|
|
4
|
+
* `columnIds` is required. The rows are resolved from primary keys when `primaryKeyValueEnd` is set: the start row is `primaryKeyValueStart` and the end row is `primaryKeyValueEnd`. When `primaryKeyValueEnd` is omitted, both rows are resolved from `rowIndexStart` and `rowIndexEnd`. A range with only `primaryKeyValueStart` is resolved by row index. Omit `rowIndexEnd` and the range is the single start row.
|
|
4
5
|
*/
|
|
5
6
|
export interface GridCellRange {
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* Column ids in the selection. Required.
|
|
8
9
|
*/
|
|
9
10
|
columnIds: string[];
|
|
10
11
|
/**
|
|
11
|
-
* Primary
|
|
12
|
+
* Primary key of the first row. Used when `primaryKeyValueEnd` is set.
|
|
12
13
|
*/
|
|
13
14
|
primaryKeyValueStart?: any;
|
|
14
15
|
/**
|
|
15
|
-
* Primary
|
|
16
|
+
* Primary key of the last row. When this is set, both row ends are resolved by primary key.
|
|
16
17
|
*/
|
|
17
18
|
primaryKeyValueEnd?: any;
|
|
18
19
|
/**
|
|
19
|
-
* Index of row
|
|
20
|
+
* Index of the first row. Used when `primaryKeyValueEnd` is omitted.
|
|
20
21
|
*/
|
|
21
22
|
rowIndexStart?: any;
|
|
22
23
|
/**
|
|
23
|
-
* Index of row
|
|
24
|
+
* Index of the last row. Used when `primaryKeyValueEnd` is omitted. When this is omitted too, the range is the single start row.
|
|
24
25
|
*/
|
|
25
26
|
rowIndexEnd?: any;
|
|
26
27
|
}
|
|
@@ -9,7 +9,7 @@ export interface SelectedCellInfo<TData = any> {
|
|
|
9
9
|
*/
|
|
10
10
|
columns: AdaptableColumn<TData>[];
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Selected cells. Each entry has the cell value, the Primary Key value and the column. Empty when nothing is selected.
|
|
13
13
|
*/
|
|
14
14
|
gridCells: GridCell<TData>[];
|
|
15
15
|
}
|
|
@@ -2,16 +2,20 @@ import { BaseState } from './BaseState';
|
|
|
2
2
|
import { ColumnScope, NumberScopeDataType } from './Common/ColumnScope';
|
|
3
3
|
import { SuspendableObject } from '../types';
|
|
4
4
|
/**
|
|
5
|
-
* Adaptable State
|
|
5
|
+
* Shortcut section of Adaptable State, including Initial State.
|
|
6
|
+
*
|
|
7
|
+
* Each shortcut updates a numeric cell while its editor is open and `ShortcutKey` is pressed. The cell value is the first operand and `ShortcutValue` is the second. `ShortcutOperation` is `'Add'`, `'Subtract'`, `'Multiply'` or `'Divide'`. The first shortcut whose key and scope match is used. A `ShortcutValue` of `0` is ignored.
|
|
6
8
|
*/
|
|
7
9
|
export interface ShortcutState extends BaseState {
|
|
8
10
|
/**
|
|
9
|
-
*
|
|
11
|
+
* Shortcuts to apply. Each one names numeric columns, a key, an operation and the second operand.
|
|
10
12
|
*/
|
|
11
13
|
Shortcuts?: Shortcut[];
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* A key that updates a numeric cell with an arithmetic operation.
|
|
17
|
+
*
|
|
18
|
+
* `Scope` is numeric columns only. Pressing `ShortcutKey` sets the cell to `cellValue` combined with `ShortcutValue` by `ShortcutOperation`. Suspend with `IsSuspended`.
|
|
15
19
|
*/
|
|
16
20
|
export interface Shortcut extends SuspendableObject {
|
|
17
21
|
/**
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BaseState } from '../types';
|
|
2
2
|
import { AdaptableStatusBarPanel } from './Common/Types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Status Bar section of Adaptable State, including Initial State.
|
|
5
|
+
*
|
|
6
|
+
* Each entry is one AG Grid status panel. Its `Key` must match `gridOptions.statusBar.statusPanels[].key`, and that panel's `statusPanel` must be `'AdaptableStatusPanel'`. AG Grid places the panel with `align`: `'left'`, `'center'` or `'right'`. When `StatusBars` is omitted, no AdapTable status bars are shown.
|
|
5
7
|
*/
|
|
6
8
|
export interface StatusBarState extends BaseState {
|
|
7
9
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @defaultValue null
|
|
10
|
+
* Status bars to show. Each `Key` matches an AG Grid `statusPanels` entry whose component is `AdaptableStatusPanel`.
|
|
10
11
|
*/
|
|
11
12
|
StatusBars?: AdaptableStatusBar[];
|
|
12
13
|
}
|
|
@@ -15,15 +16,15 @@ export interface StatusBarState extends BaseState {
|
|
|
15
16
|
*/
|
|
16
17
|
export declare const ADAPTABLE_STATUS_PANEL = "AdaptableStatusPanel";
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* One AdapTable status bar, rendered inside an AG Grid status panel.
|
|
19
20
|
*/
|
|
20
21
|
export interface AdaptableStatusBar {
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Must equal the `key` of an AG Grid `statusPanels` entry (AG Grid spells the property `key`). That entry's `statusPanel` is `'AdaptableStatusPanel'`.
|
|
23
24
|
*/
|
|
24
25
|
Key: string;
|
|
25
26
|
/**
|
|
26
|
-
*
|
|
27
|
+
* AdapTable module panels drawn inside this status bar.
|
|
27
28
|
*/
|
|
28
29
|
StatusBarPanels?: AdaptableStatusBarPanel[];
|
|
29
30
|
}
|
|
@@ -10,60 +10,92 @@ import { RangeBarStyle } from './StyledColumns/RangeBarStyle';
|
|
|
10
10
|
import { RatingStyle } from './StyledColumns/RatingStyle';
|
|
11
11
|
import { SparklineStyle } from './StyledColumns/SparklineStyle';
|
|
12
12
|
/**
|
|
13
|
-
* Adaptable State
|
|
13
|
+
* Styled Column section of Adaptable State, including Initial State.
|
|
14
|
+
*
|
|
15
|
+
* Each entry replaces the normal cell rendering of one column with a single visual style.
|
|
14
16
|
*/
|
|
15
17
|
export interface StyledColumnState extends BaseState {
|
|
16
18
|
/**
|
|
17
|
-
*
|
|
19
|
+
* Styled Columns to apply. Each one names a column and sets exactly one style property.
|
|
18
20
|
*/
|
|
19
21
|
StyledColumns?: StyledColumn[];
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
24
|
+
* One column drawn with a Styled Column.
|
|
25
|
+
*
|
|
26
|
+
* Set exactly one of `GradientStyle`, `PercentBarStyle`, `BulletChartStyle`, `RangeBarStyle`, `RatingStyle`, `IconStyle`, `BadgeStyle` or `SparklineStyle`. The Settings Panel edits them as alternatives and clears the others when the type changes.
|
|
27
|
+
*
|
|
28
|
+
* If a cell-renderer style is combined with another, AdapTable uses the first match in this order: Percent Bar, Bullet Chart, Range Bar, Rating, Icon, Badge, Sparkline. `GradientStyle` is the cell background rather than a replacement renderer, so it still paints when it is set.
|
|
29
|
+
*
|
|
30
|
+
* Suspend with `IsSuspended` (inherited from {@link SuspendableObject}). A suspended Styled Column is kept in state and is not drawn.
|
|
23
31
|
*/
|
|
24
32
|
export interface StyledColumn extends SuspendableObject {
|
|
25
33
|
/**
|
|
26
|
-
*
|
|
34
|
+
* Name shown in the Settings Panel and used by `styledColumnApi` to find this definition.
|
|
35
|
+
*
|
|
36
|
+
* Unique among Styled Columns.
|
|
27
37
|
*/
|
|
28
38
|
Name: string;
|
|
29
39
|
/**
|
|
30
|
-
*
|
|
40
|
+
* `colId` of the column this style draws.
|
|
41
|
+
*
|
|
42
|
+
* AdapTable uses the first Styled Column with this `ColumnId`.
|
|
31
43
|
*/
|
|
32
44
|
ColumnId: string;
|
|
33
45
|
/**
|
|
34
|
-
* Which
|
|
46
|
+
* Which row kinds draw the style: data (leaf) rows, group rows, summary rows and grand-total rows.
|
|
47
|
+
*
|
|
48
|
+
* Each `Exclude*` flag turns that kind off. When `RowScope` is omitted, Badge draws on every row kind and every other style draws on every kind except group rows.
|
|
49
|
+
*
|
|
50
|
+
* Sparkline ignores this for non-data rows: it only draws on leaf rows, because the cell value has to be the array of points.
|
|
35
51
|
*/
|
|
36
52
|
RowScope?: RowScope;
|
|
37
53
|
/**
|
|
38
|
-
*
|
|
54
|
+
* Numeric column. Tints the cell background by where the value sits in a range.
|
|
55
|
+
*
|
|
56
|
+
* The cell text stays. Set `CellRanges` for bands (a traffic-light scale), or `ZeroCentred` for a diverging colour either side of 0. `ColumnComparison` measures this cell against another column. `RangeValueType` is `Number` (the default) or `Percentage` (0–100).
|
|
39
57
|
*/
|
|
40
58
|
GradientStyle?: GradientStyle;
|
|
41
59
|
/**
|
|
42
|
-
*
|
|
60
|
+
* Numeric column. Draws a bar whose length is the cell value on the column's scale.
|
|
61
|
+
*
|
|
62
|
+
* `CellRanges` colours the bar by which band the value falls in. `Origin` is where the bar grows from: `Auto` (the default), `Zero`, `Min`, or a fixed number. `ColumnComparison` measures the cell against another column.
|
|
43
63
|
*/
|
|
44
64
|
PercentBarStyle?: PercentBarStyle;
|
|
45
65
|
/**
|
|
46
|
-
*
|
|
66
|
+
* Numeric-array column. The cell value is the series, and AG Grid's sparkline renderer draws it.
|
|
67
|
+
*
|
|
68
|
+
* `options` is an AG Charts sparkline options object (`type: 'line'`, `'bar'`, `'area'` or `'column'`). Only leaf data rows are drawn.
|
|
47
69
|
*/
|
|
48
70
|
SparklineStyle?: SparklineStyle;
|
|
49
71
|
/**
|
|
50
|
-
*
|
|
72
|
+
* Any column. Draws the cell value as a pill. A `numberArray` or `textArray` column draws one pill per element; other array types are drawn as a single value.
|
|
73
|
+
*
|
|
74
|
+
* `Badges` is the list of pill definitions. A `Rule` is an AdapTableQL boolean expression, evaluated per cell (and per element on a number or text array). Rules are tried in list order and the first match wins. A badge with no `Rule` is the fallback when no rule matches; if several have no rule, the first of those is used. `Density`, `Spacing` and `OverflowMode` (`Truncate`, `Wrap` or `Scroll`) apply to the whole column.
|
|
51
75
|
*/
|
|
52
76
|
BadgeStyle?: BadgeStyle;
|
|
53
77
|
/**
|
|
54
|
-
*
|
|
78
|
+
* Numeric column. Draws a bullet chart in the cell: the value as a bar, a target as a marker, and optional qualitative bands behind the bar.
|
|
79
|
+
*
|
|
80
|
+
* `CellRanges` colours those background bands (poor / ok / good). They are not a colour switch for the bar itself, which is what Percent Bar uses `CellRanges` for. `TargetProperties` supplies the target. `Orientation` is `Horizontal` (the default) or `Vertical`; a vertical chart needs a tall row.
|
|
55
81
|
*/
|
|
56
82
|
BulletChartStyle?: BulletChartStyle;
|
|
57
83
|
/**
|
|
58
|
-
*
|
|
84
|
+
* Numeric column. Draws a row of icons (stars by default) filled in proportion to the cell value.
|
|
85
|
+
*
|
|
86
|
+
* `Max` is both the number of icons and the top of the scale, in the same units as the cell value. The default is 5, so a value of 4 fills four of five stars. The value is clamped to `[0, Max]`. `AllowHalf` (the default) fills the boundary icon by the fraction; otherwise the value rounds to a whole icon. `Icon` is `Star`, `Heart`, `Circle` or `Thumb`.
|
|
59
87
|
*/
|
|
60
88
|
RatingStyle?: RatingStyle;
|
|
61
89
|
/**
|
|
62
|
-
*
|
|
90
|
+
* Numeric column. Draws a track from `Min` to `Max` and a marker at the cell value.
|
|
91
|
+
*
|
|
92
|
+
* `Min` and `Max` are required. Each can be a number, another column's `colId` (that row's value), or `Col-Min`, `Col-Max`, `Col-Avg` or `Col-Median` across the visible rows. `Reference` is an optional second marker (a target or a previous close). `CellRanges` draws background bands on the track.
|
|
63
93
|
*/
|
|
64
94
|
RangeBarStyle?: RangeBarStyle;
|
|
65
95
|
/**
|
|
66
|
-
*
|
|
96
|
+
* Scalar column. Looks the cell value up in `Mappings` (and an optional `Preset`) and draws the matching icon.
|
|
97
|
+
*
|
|
98
|
+
* Array columns are not supported; use `BadgeStyle` to draw one glyph per array element. `Preset` is `Flags`, `Currencies`, `Trend` or `Status`. `MatchMode` is `Exact` (the default) or `CaseInsensitive`. When nothing matches, `FallbackProperties.Mode` is `Hide` (the default), `ShowText` or `Icon`.
|
|
67
99
|
*/
|
|
68
100
|
IconStyle?: IconStyle;
|
|
69
101
|
}
|
|
@@ -138,18 +138,35 @@ export interface CustomSharedEntity<T = any> {
|
|
|
138
138
|
Tags?: AdaptableObjectTag[];
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* How one module imports a shared object.
|
|
142
|
+
*
|
|
143
|
+
* Used while a Team Share is applied. It is not part of Initial State. `ModuleEntities` are the objects already in that module. `AddAction` adds an imported object. `EditAction` updates an existing one.
|
|
142
144
|
*/
|
|
143
145
|
export interface TeamSharingImportInfo<T extends AdaptableObject> {
|
|
146
|
+
/**
|
|
147
|
+
* Objects of this module that are already in local state.
|
|
148
|
+
*/
|
|
144
149
|
ModuleEntities: T[];
|
|
150
|
+
/**
|
|
151
|
+
* Action creator that adds one imported object.
|
|
152
|
+
*/
|
|
145
153
|
AddAction: (entity: T) => any;
|
|
154
|
+
/**
|
|
155
|
+
* Action creator that updates one imported object.
|
|
156
|
+
*/
|
|
146
157
|
EditAction: (entity: T) => any;
|
|
147
158
|
}
|
|
148
159
|
/**
|
|
149
160
|
* Describes an AdaptableObject which is being Team Shared
|
|
150
161
|
*/
|
|
151
162
|
export interface AdaptableSharedEntityConfig {
|
|
163
|
+
/**
|
|
164
|
+
* Description stored on the shared object.
|
|
165
|
+
*/
|
|
152
166
|
description: string;
|
|
167
|
+
/**
|
|
168
|
+
* `Snapshot` shares the object once (`Revision` stays 1). `Active` keeps it linked and increases `Revision` when the object changes.
|
|
169
|
+
*/
|
|
153
170
|
type: SharedEntityType;
|
|
154
171
|
}
|
|
155
172
|
/**
|
|
@@ -174,15 +191,42 @@ export interface CustomSharedEntityConfig {
|
|
|
174
191
|
Tags?: AdaptableObjectTag[];
|
|
175
192
|
}
|
|
176
193
|
/**
|
|
177
|
-
*
|
|
194
|
+
* How a Team Share behaves.
|
|
195
|
+
*
|
|
196
|
+
* `Snapshot` is a one-time copy (`Revision` stays 1). `Active` stays linked to the original and its `Revision` increases when that object changes.
|
|
178
197
|
*/
|
|
179
198
|
export type SharedEntityType = 'Snapshot' | 'Active';
|
|
199
|
+
/**
|
|
200
|
+
* One shared object and the Redux action that imports it.
|
|
201
|
+
*
|
|
202
|
+
* Produced while an import is running. It is not part of Initial State.
|
|
203
|
+
*/
|
|
180
204
|
export interface TeamSharingImportStep {
|
|
205
|
+
/**
|
|
206
|
+
* Shared AdapTable object being imported.
|
|
207
|
+
*/
|
|
181
208
|
sharedEntity: AdaptableSharedEntity;
|
|
209
|
+
/**
|
|
210
|
+
* Redux action that applies this object to local state.
|
|
211
|
+
*/
|
|
182
212
|
importAction: Redux.Action;
|
|
183
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Active shares whose remote revision is newer than the revision last applied locally.
|
|
216
|
+
*
|
|
217
|
+
* Keyed by the shared entity `Uuid`. Session data used to decide whether to show an update. It is not part of Initial State.
|
|
218
|
+
*/
|
|
184
219
|
export type SharedEntityActiveStatus = Record<TypeUuid, {
|
|
220
|
+
/**
|
|
221
|
+
* The remote shared object.
|
|
222
|
+
*/
|
|
185
223
|
sharedEntity: AdaptableSharedEntity;
|
|
224
|
+
/**
|
|
225
|
+
* Revision of the copy last applied locally.
|
|
226
|
+
*/
|
|
186
227
|
importedRevision: number;
|
|
228
|
+
/**
|
|
229
|
+
* Revision currently on the shared object.
|
|
230
|
+
*/
|
|
187
231
|
sharedRevision: number;
|
|
188
232
|
}>;
|
|
@@ -6,11 +6,13 @@ import { TypeHint } from './Common/Types';
|
|
|
6
6
|
*/
|
|
7
7
|
export type SystemThemeName = TypeHint<string, 'light' | 'dark' | 'os'>;
|
|
8
8
|
/**
|
|
9
|
-
* Theme section of Adaptable State
|
|
9
|
+
* Theme section of Adaptable State, including Initial State.
|
|
10
|
+
*
|
|
11
|
+
* `CurrentTheme` is `'light'` (the default), `'dark'`, or `'os'`. `SystemThemes` limits which shipped themes are offered. Omit it to offer all of them.
|
|
10
12
|
*/
|
|
11
13
|
export interface ThemeState extends BaseState {
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Shipped theme that is active: `'light'`, `'dark'`, or `'os'` (follows the operating system). When omitted, the theme is `'light'`.
|
|
14
16
|
*/
|
|
15
17
|
CurrentTheme?: SystemThemeName;
|
|
16
18
|
/**
|
|
@@ -53,10 +55,30 @@ export type SystemThemeEntry = SystemThemeName | SystemThemeOptions;
|
|
|
53
55
|
* @deprecated User-defined themes are deprecated; customise shipped themes via CSS variables and use SystemThemeOptions for AG Grid pairing
|
|
54
56
|
*/
|
|
55
57
|
export interface AdaptableTheme extends AdaptableObject {
|
|
58
|
+
/**
|
|
59
|
+
* Theme name. For a shipped theme this is `light`, `dark` or `os`.
|
|
60
|
+
*/
|
|
56
61
|
Name: string;
|
|
62
|
+
/**
|
|
63
|
+
* Text shown for this theme in the theme list.
|
|
64
|
+
*/
|
|
57
65
|
Description: string;
|
|
66
|
+
/**
|
|
67
|
+
* CSS class of a legacy AG Grid theme.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated Unused with the AG Grid Theming API. Pair a shipped theme with an AG Grid mode via {@link SystemThemeOptions.AgThemeMode}.
|
|
70
|
+
*/
|
|
58
71
|
AgGridClassName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* CSS variables this theme sets, keyed by variable name (for example `--ab-color-primary`).
|
|
74
|
+
*/
|
|
59
75
|
CSSVariables?: Record<string, string>;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the theme is a light or dark palette. Used when AdapTable picks contrasting UI colours.
|
|
78
|
+
*/
|
|
60
79
|
Variant?: 'light' | 'dark';
|
|
80
|
+
/**
|
|
81
|
+
* AG Grid theme mode applied with this theme: `light`, `dark`, `dark-blue`, or a custom mode defined in AG Grid.
|
|
82
|
+
*/
|
|
61
83
|
AgThemeMode?: TypeHint<string, 'light' | 'dark' | 'dark-blue'>;
|
|
62
84
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableModuleButtons, AdaptableToolPanel } from './Common/Types';
|
|
3
3
|
/**
|
|
4
|
-
* Adaptable State
|
|
4
|
+
* Tool Panel section of Adaptable State, including Initial State.
|
|
5
|
+
*
|
|
6
|
+
* `ToolPanels` is the list of panels and whether each is expanded or collapsed. When it is omitted, AdapTable shows a collapsed panel for every module and for every custom tool panel. `ModuleButtons` are the shortcut buttons in the tool panel; the default is an empty list.
|
|
5
7
|
*/
|
|
6
8
|
export interface ToolPanelState extends BaseState {
|
|
7
9
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
+
* Tool panels to show, and whether each is expanded or collapsed.
|
|
11
|
+
*
|
|
12
|
+
* When omitted, every module and every custom tool panel is included, collapsed.
|
|
10
13
|
*/
|
|
11
14
|
ToolPanels?: AdaptableToolPanelDefinition[];
|
|
12
15
|
/**
|
|
@@ -16,7 +19,9 @@ export interface ToolPanelState extends BaseState {
|
|
|
16
19
|
ModuleButtons?: AdaptableModuleButtons;
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
22
|
+
* One tool panel.
|
|
23
|
+
*
|
|
24
|
+
* `Name` is an AdapTable module or a custom panel from Tool Panel Options. `VisibilityMode` is `'expanded'` (the panel body is open) or `'collapsed'` (only the header is shown). The default is `'collapsed'`.
|
|
20
25
|
*/
|
|
21
26
|
export interface AdaptableToolPanelDefinition {
|
|
22
27
|
/**
|
|
@@ -24,7 +29,7 @@ export interface AdaptableToolPanelDefinition {
|
|
|
24
29
|
*/
|
|
25
30
|
Name: AdaptableToolPanel | string;
|
|
26
31
|
/**
|
|
27
|
-
*
|
|
32
|
+
* `'expanded'` shows the panel body. `'collapsed'` shows only the header.
|
|
28
33
|
* @defaultValue 'collapsed'
|
|
29
34
|
*/
|
|
30
35
|
VisibilityMode?: 'expanded' | 'collapsed';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
2
|
/**
|
|
3
|
-
* Adaptable State
|
|
3
|
+
* User Interface section of Adaptable State, including Initial State.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* `HideAdaptableUI` hides the Dashboard, Tool Panel, Status Bar, and the column and context menus. The default is false.
|
|
6
6
|
*/
|
|
7
7
|
export interface UserInterfaceState extends BaseState {
|
|
8
8
|
/**
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ActionColumn } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The Action Columns in the grid, looked up together or by column id.
|
|
4
4
|
*/
|
|
5
5
|
export interface ActionColumnApi {
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves the Action Columns provided in Action Column Options
|
|
8
|
+
* @returns The Action Columns provided in Action Column Options
|
|
8
9
|
*/
|
|
9
10
|
getActionColumns(): ActionColumn[];
|
|
10
11
|
/**
|
|
11
12
|
* Returns Action Column with given Id
|
|
12
13
|
* @param columnId id of Action Column
|
|
14
|
+
* @returns Action Column with given Id
|
|
13
15
|
*/
|
|
14
16
|
getActionColumnForColumnId(columnId: string): ActionColumn | undefined;
|
|
15
17
|
}
|