@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
|
@@ -47,199 +47,203 @@ import { ColumnMenuApi } from './ColumnMenuApi';
|
|
|
47
47
|
import { ContextMenuApi } from './ContextMenuApi';
|
|
48
48
|
import { RowFormApi } from './RowFormApi';
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Run-time access to an AdapTable instance.
|
|
51
|
+
*
|
|
52
|
+
* Each property is the API for one module. Call the module API for that module's
|
|
53
|
+
* behaviour; use `gridApi` for row data, selection and cell values, and `agGridApi`
|
|
54
|
+
* only when AdapTable does not wrap the AG Grid call.
|
|
51
55
|
*/
|
|
52
56
|
export interface AdaptableApi {
|
|
53
57
|
/**
|
|
54
|
-
* AG Grid API
|
|
58
|
+
* The AG Grid API. Prefer the AdapTable APIs on this object; use this when AdapTable does not wrap the call.
|
|
55
59
|
*/
|
|
56
60
|
agGridApi: AgGridApi;
|
|
57
61
|
/**
|
|
58
|
-
*
|
|
62
|
+
* Action Columns and the controls they render: buttons, toggles, links, selects, commands, menus and forms.
|
|
59
63
|
*/
|
|
60
64
|
actionColumnApi: ActionColumnApi;
|
|
61
65
|
/**
|
|
62
|
-
*
|
|
66
|
+
* Alert Definitions and fired alerts: add, edit, suspend, evaluate and display them.
|
|
63
67
|
*/
|
|
64
68
|
alertApi: AlertApi;
|
|
65
69
|
/**
|
|
66
|
-
*
|
|
70
|
+
* Application State: the key/value entries the host application stores alongside AdapTable State.
|
|
67
71
|
*/
|
|
68
72
|
applicationApi: ApplicationApi;
|
|
69
73
|
/**
|
|
70
|
-
*
|
|
74
|
+
* Bulk Update: the value that will be written across the selected cells.
|
|
71
75
|
*/
|
|
72
76
|
bulkUpdateApi: BulkUpdateApi;
|
|
73
77
|
/**
|
|
74
|
-
*
|
|
78
|
+
* Calculated Columns and the expressions that produce their values.
|
|
75
79
|
*/
|
|
76
80
|
calculatedColumnApi: CalculatedColumnApi;
|
|
77
81
|
/**
|
|
78
|
-
*
|
|
82
|
+
* Working days and holidays, using the weekends and holiday list in Calendar Options.
|
|
79
83
|
*/
|
|
80
84
|
calendarApi: CalendarApi;
|
|
81
85
|
/**
|
|
82
|
-
*
|
|
86
|
+
* The Cell Summary operation for the current selection, and its value.
|
|
83
87
|
*/
|
|
84
88
|
cellSummaryApi: CellSummaryApi;
|
|
85
89
|
/**
|
|
86
|
-
*
|
|
90
|
+
* Chart Definitions, currently open charts, and the containers they are shown in.
|
|
87
91
|
*/
|
|
88
92
|
chartingApi: ChartingApi;
|
|
89
93
|
/**
|
|
90
|
-
*
|
|
94
|
+
* Columns: lookup by id or friendly name, data type, and the matching AG Grid column definition.
|
|
91
95
|
*/
|
|
92
96
|
columnApi: ColumnApi;
|
|
93
97
|
/**
|
|
94
|
-
*
|
|
98
|
+
* The Column Menu: open it, and build its items.
|
|
95
99
|
*/
|
|
96
100
|
columnMenuApi: ColumnMenuApi;
|
|
97
101
|
/**
|
|
98
|
-
*
|
|
102
|
+
* The Context Menu: build its items.
|
|
99
103
|
*/
|
|
100
104
|
contextMenuApi: ContextMenuApi;
|
|
101
105
|
/**
|
|
102
|
-
*
|
|
106
|
+
* Cell Comments: threads, and adding or deleting a comment.
|
|
103
107
|
*/
|
|
104
108
|
commentApi: CommentApi;
|
|
105
109
|
/**
|
|
106
|
-
*
|
|
110
|
+
* Column Scope: which columns an object applies to, and whether a column is in a scope.
|
|
107
111
|
*/
|
|
108
112
|
columnScopeApi: ColumnScopeApi;
|
|
109
113
|
/**
|
|
110
|
-
*
|
|
114
|
+
* Custom Sorts: non-standard sort orders for a column's values.
|
|
111
115
|
*/
|
|
112
116
|
customSortApi: CustomSortApi;
|
|
113
117
|
/**
|
|
114
|
-
*
|
|
118
|
+
* The Dashboard: tabs, toolbars, visibility and floating position.
|
|
115
119
|
*/
|
|
116
120
|
dashboardApi: DashboardApi;
|
|
117
121
|
/**
|
|
118
|
-
*
|
|
119
|
-
|
|
122
|
+
* Data Change History: the record of cell value changes.
|
|
123
|
+
*/
|
|
120
124
|
dataChangeHistoryApi: DataChangeHistoryApi;
|
|
121
125
|
/**
|
|
122
|
-
*
|
|
126
|
+
* Data Import. Opens the Data Import wizard.
|
|
123
127
|
*/
|
|
124
128
|
dataImportApi: DataImportApi;
|
|
125
129
|
/**
|
|
126
|
-
*
|
|
130
|
+
* Data Sets: the named sets of rows the grid can switch between.
|
|
127
131
|
*/
|
|
128
132
|
dataSetApi: DataSetApi;
|
|
129
133
|
/**
|
|
130
|
-
*
|
|
134
|
+
* Entitlements: the access level of each module.
|
|
131
135
|
*/
|
|
132
136
|
entitlementApi: EntitlementApi;
|
|
133
137
|
/**
|
|
134
|
-
*
|
|
138
|
+
* AdapTable events. `on` subscribes and returns an unsubscribe function; `off` removes a listener.
|
|
135
139
|
*/
|
|
136
140
|
eventApi: EventApi;
|
|
137
141
|
/**
|
|
138
|
-
*
|
|
142
|
+
* Reports: run an export, and manage report definitions, formats, destinations and schedules.
|
|
139
143
|
*/
|
|
140
144
|
exportApi: ExportApi;
|
|
141
145
|
/**
|
|
142
|
-
*
|
|
146
|
+
* AdapTableQL expressions: validate, evaluate and open the expression editor.
|
|
143
147
|
*/
|
|
144
148
|
expressionApi: ExpressionApi;
|
|
145
149
|
/**
|
|
146
|
-
*
|
|
150
|
+
* FDC3: broadcast contexts and raise intents from the grid.
|
|
147
151
|
*/
|
|
148
152
|
fdc3Api: Fdc3Api;
|
|
149
153
|
/**
|
|
150
|
-
*
|
|
154
|
+
* Filtering. `columnFilterApi` is per-column filters, `gridFilterApi` is the grid filter, and `clearAllFilters` clears both.
|
|
151
155
|
*/
|
|
152
156
|
filterApi: FilterApi;
|
|
153
157
|
/**
|
|
154
|
-
*
|
|
158
|
+
* Flashing Cells: which cells flash when their value changes, and in which direction.
|
|
155
159
|
*/
|
|
156
160
|
flashingCellApi: FlashingCellApi;
|
|
157
161
|
/**
|
|
158
|
-
*
|
|
162
|
+
* Format Columns: cell styles and display formats, including conditions.
|
|
159
163
|
*/
|
|
160
164
|
formatColumnApi: FormatColumnApi;
|
|
161
165
|
/**
|
|
162
|
-
*
|
|
166
|
+
* Free Text Columns and the text values stored against each row.
|
|
163
167
|
*/
|
|
164
168
|
freeTextColumnApi: FreeTextColumnApi;
|
|
165
169
|
/**
|
|
166
|
-
*
|
|
170
|
+
* Grid data and selection: rows, cell values, filtering, sorting, row nodes and edited cells.
|
|
167
171
|
*/
|
|
168
172
|
gridApi: GridApi;
|
|
169
173
|
/**
|
|
170
|
-
*
|
|
174
|
+
* Layouts: the current Table or Pivot Layout, and creating, selecting and extending Layouts.
|
|
171
175
|
*/
|
|
172
176
|
layoutApi: LayoutApi;
|
|
173
177
|
/**
|
|
174
|
-
*
|
|
178
|
+
* Named Queries: saved AdapTableQL queries that can be run on their own.
|
|
175
179
|
*/
|
|
176
180
|
namedQueryApi: NamedQueryApi;
|
|
177
181
|
/**
|
|
178
|
-
*
|
|
182
|
+
* Notes attached to cells.
|
|
179
183
|
*/
|
|
180
184
|
noteApi: NoteApi;
|
|
181
185
|
/**
|
|
182
|
-
*
|
|
186
|
+
* The Adaptable Options this instance was created with. Each getter returns one options section, read-only.
|
|
183
187
|
*/
|
|
184
188
|
optionsApi: OptionsApi;
|
|
185
189
|
/**
|
|
186
|
-
*
|
|
190
|
+
* Plus / Minus: the nudges that increment or decrement a numeric cell.
|
|
187
191
|
*/
|
|
188
192
|
plusMinusApi: PlusMinusApi;
|
|
189
193
|
/**
|
|
190
|
-
*
|
|
194
|
+
* Installed plugins. `getipushpullPluginApi`, `getOpenFinPluginApi` and `getInteropioPluginApi` return the plugin API when that plugin is loaded.
|
|
191
195
|
*/
|
|
192
196
|
pluginsApi: PluginsApi;
|
|
193
197
|
/**
|
|
194
|
-
*
|
|
198
|
+
* Quick Search: the current search text and the styles used for matches.
|
|
195
199
|
*/
|
|
196
200
|
quickSearchApi: QuickSearchApi;
|
|
197
201
|
/**
|
|
198
|
-
*
|
|
202
|
+
* Row Forms. Opens the form to create, clone or edit a row, and deletes a row by primary key.
|
|
199
203
|
*/
|
|
200
204
|
rowFormApi: RowFormApi;
|
|
201
205
|
/**
|
|
202
|
-
*
|
|
206
|
+
* The Settings Panel. Open it on a module, or on a custom settings panel.
|
|
203
207
|
*/
|
|
204
208
|
settingsPanelApi: SettingsPanelApi;
|
|
205
209
|
/**
|
|
206
|
-
*
|
|
210
|
+
* Shortcuts: keystrokes that change a numeric cell by a fixed amount.
|
|
207
211
|
*/
|
|
208
212
|
shortcutApi: ShortcutApi;
|
|
209
213
|
/**
|
|
210
|
-
*
|
|
214
|
+
* Smart Edit: the arithmetic operation applied to the selected numeric cells.
|
|
211
215
|
*/
|
|
212
216
|
smartEditApi: SmartEditApi;
|
|
213
217
|
/**
|
|
214
|
-
*
|
|
218
|
+
* AdapTable State: initial state, the full state, and the state of one module.
|
|
215
219
|
*/
|
|
216
220
|
stateApi: StateApi;
|
|
217
221
|
/**
|
|
218
|
-
*
|
|
222
|
+
* The Status Bar and the AdapTable panels placed in it.
|
|
219
223
|
*/
|
|
220
224
|
statusBarApi: StatusBarApi;
|
|
221
225
|
/**
|
|
222
|
-
*
|
|
226
|
+
* Styled Columns: gradient, percent bar, badge, bullet chart, rating, sparkline, range bar and icon styles.
|
|
223
227
|
*/
|
|
224
228
|
styledColumnApi: StyledColumnApi;
|
|
225
229
|
/**
|
|
226
|
-
*
|
|
230
|
+
* The System Status message shown in the toolbar and tool panel.
|
|
227
231
|
*/
|
|
228
232
|
systemStatusApi: SystemStatusApi;
|
|
229
233
|
/**
|
|
230
|
-
*
|
|
234
|
+
* Team Sharing: objects shared between users, and importing a shared entity.
|
|
231
235
|
*/
|
|
232
236
|
teamSharingApi: TeamSharingApi;
|
|
233
237
|
/**
|
|
234
|
-
*
|
|
238
|
+
* Themes: the current theme, and the shipped and user themes that can be selected.
|
|
235
239
|
*/
|
|
236
240
|
themeApi: ThemeApi;
|
|
237
241
|
/**
|
|
238
|
-
*
|
|
242
|
+
* The Tool Panel beside the grid, including custom tool panels.
|
|
239
243
|
*/
|
|
240
244
|
toolPanelApi: ToolPanelApi;
|
|
241
245
|
/**
|
|
242
|
-
*
|
|
246
|
+
* User Interface: custom icons, editable and read-only cell styles, object tags, the progress indicator, custom windows, and showing or hiding the AdapTable UI.
|
|
243
247
|
*/
|
|
244
248
|
userInterfaceApi: UserInterfaceApi;
|
|
245
249
|
/**
|
package/src/Api/AlertApi.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { IRowNode } from 'ag-grid-enterprise';
|
|
|
8
8
|
*/
|
|
9
9
|
export type AlertSettingsPanelTab = 'Alerts' | 'Alert Definitions';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Alert Definitions and fired alerts: read, edit, suspend, evaluate and display them.
|
|
12
12
|
*/
|
|
13
13
|
export interface AlertApi {
|
|
14
14
|
/**
|
|
@@ -23,6 +23,7 @@ export interface AlertApi {
|
|
|
23
23
|
* `'Alert Definitions'` (the alert configuration). Pass `tab` to open a specific tab.
|
|
24
24
|
* When omitted, it opens the `'Alerts'` tab if there are any live alerts, otherwise the
|
|
25
25
|
* `'Alert Definitions'` tab.
|
|
26
|
+
* @param tab Tab to open. Omit it to open `'Alerts'` when live alerts exist, otherwise `'Alert Definitions'`
|
|
26
27
|
*/
|
|
27
28
|
openAlertSettingsPanel(tab?: AlertSettingsPanelTab): void;
|
|
28
29
|
/**
|
|
@@ -31,11 +32,13 @@ export interface AlertApi {
|
|
|
31
32
|
*/
|
|
32
33
|
getAlertDefinitions(): AlertDefinition[];
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* Alert Definitions that are currently suspended.
|
|
36
|
+
* @returns The suspended definitions
|
|
35
37
|
*/
|
|
36
38
|
getSuspendedAlertDefinitions(): AlertDefinition[];
|
|
37
39
|
/**
|
|
38
|
-
*
|
|
40
|
+
* Alert Definitions that are currently active (not suspended).
|
|
41
|
+
* @returns The active definitions
|
|
39
42
|
*/
|
|
40
43
|
getActiveAlertDefinitions(): AlertDefinition[];
|
|
41
44
|
/**
|
|
@@ -64,13 +67,13 @@ export interface AlertApi {
|
|
|
64
67
|
editAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
65
68
|
/**
|
|
66
69
|
* Deletes given Alert Definition from Adaptable State
|
|
67
|
-
* @param alertDefinition
|
|
70
|
+
* @param alertDefinition Alert Definition to delete
|
|
68
71
|
*/
|
|
69
72
|
deleteAlertDefinition(alertDefinition: AlertDefinition): void;
|
|
70
73
|
/**
|
|
71
74
|
* Suspends Alert Definition
|
|
72
|
-
* @param alertDefinition Alert to suspend
|
|
73
|
-
*
|
|
75
|
+
* @param alertDefinition Alert Definition to suspend
|
|
76
|
+
* @returns The suspended Alert Definition
|
|
74
77
|
*/
|
|
75
78
|
suspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
76
79
|
/**
|
|
@@ -100,11 +103,13 @@ export interface AlertApi {
|
|
|
100
103
|
* non-live, suspended or never-evaluated definitions / rows.
|
|
101
104
|
* @param alertDefinition the live Alert Definition
|
|
102
105
|
* @param rowNode the row, for per-row rules
|
|
106
|
+
* @returns `'Firing'` while the rule holds, `'Normal'` when it does not, or `undefined` when the definition is not live, is suspended, or has not been evaluated
|
|
103
107
|
*/
|
|
104
108
|
getAlertRuleState(alertDefinition: AlertDefinition, rowNode?: IRowNode): 'Normal' | 'Firing' | undefined;
|
|
105
109
|
/**
|
|
106
110
|
* Find all Alert Definitions which match the given criteria
|
|
107
|
-
* @param alertLookupCriteria
|
|
111
|
+
* @param alertLookupCriteria Ids, names or other properties to match
|
|
112
|
+
* @returns Every Alert Definition that matches
|
|
108
113
|
*/
|
|
109
114
|
findAlertDefinitions(alertLookupCriteria: AdaptableObjectLookupCriteria): AlertDefinition[];
|
|
110
115
|
/**
|
|
@@ -113,14 +118,16 @@ export interface AlertApi {
|
|
|
113
118
|
*/
|
|
114
119
|
displayAdaptableAlertNotification(alert: AdaptableAlert): void;
|
|
115
120
|
/**
|
|
116
|
-
* Displays the given Adaptable Alert
|
|
117
|
-
* @param
|
|
121
|
+
* Displays the given Adaptable Alert.
|
|
122
|
+
* @param alertToShow The alert to display
|
|
118
123
|
*/
|
|
119
124
|
displayAdaptableAlert(alertToShow: AdaptableAlert): Promise<void>;
|
|
120
125
|
/**
|
|
121
126
|
* Creates Alert based on given parameters and displays it.
|
|
122
|
-
* @param alertHeader Header of the Alert
|
|
127
|
+
* @param alertHeader Header of the Alert. When the alert is a popup, this is the window title
|
|
123
128
|
* @param alertMessage Main message of the alert
|
|
129
|
+
* @param messageType `Success`, `Info`, `Warning` or `Error`
|
|
130
|
+
* @param alertProperties How the alert is presented: notification, popup, or both
|
|
124
131
|
*/
|
|
125
132
|
showAlert(alertHeader: string, alertMessage: string, messageType: AdaptableMessageType, alertProperties?: AlertPresentationProperties): Promise<void>;
|
|
126
133
|
/**
|
|
@@ -130,7 +137,7 @@ export interface AlertApi {
|
|
|
130
137
|
*/
|
|
131
138
|
showAlertInfo(alertHeader: string, alertMessage: string): Promise<void>;
|
|
132
139
|
/**
|
|
133
|
-
* Creates an Adaptable Alert
|
|
140
|
+
* Creates an Adaptable Alert from the header and message and displays it as a Success alert.
|
|
134
141
|
* @param alertHeader Header of the Alert (if shown in a popup its the Title of the Window)
|
|
135
142
|
* @param alertMessage Main message of the alert
|
|
136
143
|
*/
|
|
@@ -148,7 +155,8 @@ export interface AlertApi {
|
|
|
148
155
|
*/
|
|
149
156
|
showAlertError(alertHeader: string, alertMessage: string): Promise<void>;
|
|
150
157
|
/**
|
|
151
|
-
* Fires a scheduled
|
|
158
|
+
* Fires a scheduled Alert Definition now: its notification, system status message, or other behaviour.
|
|
159
|
+
* @param alertDefinition Scheduled Alert Definition to run
|
|
152
160
|
*/
|
|
153
161
|
applyScheduledAlertDefinition(alertDefinition: AlertDefinition): void;
|
|
154
162
|
}
|
|
@@ -4,11 +4,13 @@ import { ApplicationState, ApplicationDataEntry } from '../AdaptableState/Applic
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ApplicationApi {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* The Application section of Adaptable State.
|
|
8
|
+
* @returns The current Application State
|
|
8
9
|
*/
|
|
9
10
|
getApplicationState(): ApplicationState;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Every key/value entry in Application State.
|
|
13
|
+
* @returns The entries, in state order
|
|
12
14
|
*/
|
|
13
15
|
getApplicationDataEntries(): ApplicationDataEntry[];
|
|
14
16
|
/**
|
|
@@ -39,12 +41,14 @@ export interface ApplicationApi {
|
|
|
39
41
|
* Gets Application Data Entry with given key
|
|
40
42
|
*
|
|
41
43
|
* @param key the Key of the Application Data Entry to retrieve
|
|
44
|
+
* @returns The entry with that key, or `undefined` when no entry has it
|
|
42
45
|
*/
|
|
43
46
|
getApplicationDataEntryByKey(key: string): ApplicationDataEntry | undefined;
|
|
44
47
|
/**
|
|
45
48
|
* Gets Application Data Entry with given value
|
|
46
49
|
*
|
|
47
50
|
* @param value the Value of the Application Data Entry to retrieve
|
|
51
|
+
* @returns Every entry whose value is `value`. Empty when none match
|
|
48
52
|
*/
|
|
49
53
|
getApplicationDataEntriesByValue(value: any): ApplicationDataEntry[];
|
|
50
54
|
}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
**/
|
|
4
4
|
export interface BulkUpdateApi {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The value Bulk Update will write into the selected cells.
|
|
7
|
+
* @returns The current Bulk Update value. Empty when none has been entered
|
|
7
8
|
*/
|
|
8
9
|
getBulkUpdateValue(): string;
|
|
9
10
|
/**
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { CalculatedColumn, CalculatedColumnState } from '../AdaptableState/CalculatedColumnState';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Calculated Columns, whose values come from an AdapTableQL expression.
|
|
4
4
|
**/
|
|
5
5
|
export interface CalculatedColumnApi {
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves Calculated Column section from Adaptable State
|
|
8
|
+
* @returns Calculated Column section from Adaptable State
|
|
8
9
|
*/
|
|
9
10
|
getCalculatedColumnState(): CalculatedColumnState;
|
|
10
11
|
/**
|
|
11
12
|
* Retrieves all Calculated Columns in Adaptable State
|
|
13
|
+
* @returns All Calculated Columns in Adaptable State
|
|
12
14
|
*/
|
|
13
15
|
getCalculatedColumns(): CalculatedColumn[];
|
|
14
16
|
/**
|
|
15
17
|
* Retrieves all Aggregated Calculated Columns in Adaptable State
|
|
18
|
+
* @returns All Aggregated Calculated Columns in Adaptable State
|
|
16
19
|
*/
|
|
17
20
|
getAggregatedCalculatedColumns(): CalculatedColumn[];
|
|
18
21
|
/**
|
package/src/Api/CalendarApi.d.ts
CHANGED
|
@@ -9,55 +9,65 @@ export interface CalendarApi {
|
|
|
9
9
|
* Returns the next working day after `from` (defaults to today).
|
|
10
10
|
* Never returns `from` itself.
|
|
11
11
|
* @param from Optional start date (defaults to today)
|
|
12
|
+
* @returns The next working day after `from` (defaults to today). Never returns `from` itself
|
|
12
13
|
*/
|
|
13
14
|
getNextWorkingDay(from?: Date): Date;
|
|
14
15
|
/**
|
|
15
16
|
* Returns the previous working day before `from` (defaults to today).
|
|
16
17
|
* Never returns `from` itself.
|
|
17
18
|
* @param from Optional start date (defaults to today)
|
|
19
|
+
* @returns The previous working day before `from` (defaults to today). Never returns `from` itself
|
|
18
20
|
*/
|
|
19
21
|
getPreviousWorkingDay(from?: Date): Date;
|
|
20
22
|
/**
|
|
21
23
|
* True when the date is neither a weekend day nor a configured holiday.
|
|
22
24
|
* @param dateToCheck Date to check
|
|
25
|
+
* @returns True when the date is neither a weekend day nor a configured holiday
|
|
23
26
|
*/
|
|
24
27
|
isWorkingDay(dateToCheck: Date): boolean;
|
|
25
28
|
/**
|
|
26
29
|
* True when the date is in the configured holiday list.
|
|
27
30
|
* Weekends are not holidays unless also listed in `calendarOptions.holidays`.
|
|
28
31
|
* @param dateToCheck Date to check
|
|
32
|
+
* @returns True when the date is in the configured holiday list. Weekends are not holidays unless also listed in `calendarOptions.holidays`
|
|
29
33
|
*/
|
|
30
34
|
isHoliday(dateToCheck: Date): boolean;
|
|
31
35
|
/**
|
|
32
36
|
* True when the date falls on a configured weekend day
|
|
33
37
|
* (`calendarOptions.weekendDays`, default Saturday/Sunday).
|
|
34
38
|
* @param dateToCheck Date to check
|
|
39
|
+
* @returns True when the date falls on a configured weekend day (`calendarOptions.weekendDays`, default Saturday/Sunday)
|
|
35
40
|
*/
|
|
36
41
|
isWeekend(dateToCheck: Date): boolean;
|
|
37
42
|
/**
|
|
38
43
|
* First day of the week for week-number / start-of-week Expression Functions
|
|
39
44
|
* (`calendarOptions.weekStartsOn`, default `0` = Sunday).
|
|
45
|
+
* @returns First day of the week for week-number / start-of-week Expression Functions (`calendarOptions.weekStartsOn`, default `0` = Sunday)
|
|
40
46
|
*/
|
|
41
47
|
getWeekStartsOn(): number;
|
|
42
48
|
/**
|
|
43
49
|
* Returns true if both dates are the same calendar day (time ignored).
|
|
44
50
|
* @param date1 1st Date
|
|
45
51
|
* @param date2 2nd Date
|
|
52
|
+
* @returns `true` when both dates are the same calendar day (time ignored)
|
|
46
53
|
*/
|
|
47
54
|
isSameDay(date1: Date, date2: Date): boolean;
|
|
48
55
|
/**
|
|
49
56
|
* Returns true if the given date is today
|
|
50
57
|
* @param dateToCheck Date to Check
|
|
58
|
+
* @returns `true` when the given date is today
|
|
51
59
|
*/
|
|
52
60
|
isToday(dateToCheck: Date): boolean;
|
|
53
61
|
/**
|
|
54
62
|
* Returns true if the given date is yesterday
|
|
55
63
|
* @param dateToCheck Date to Check
|
|
64
|
+
* @returns `true` when the given date is yesterday
|
|
56
65
|
*/
|
|
57
66
|
isYesterday(dateToCheck: Date): boolean;
|
|
58
67
|
/**
|
|
59
68
|
* Returns true if the given date is tomorrow
|
|
60
69
|
* @param dateToCheck Date to Check
|
|
70
|
+
* @returns `true` when the given date is tomorrow
|
|
61
71
|
*/
|
|
62
72
|
isTomorrow(dateToCheck: Date): boolean;
|
|
63
73
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { CustomCellSummaryOperation } from '../AdaptableState/Common/CellSummary';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The summary calculated for the selected cells, such as sum or average, and the value it produces.
|
|
4
4
|
*/
|
|
5
5
|
export interface CellSummaryApi {
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves all Custom Cell Summary Operations
|
|
8
|
+
* @returns All Custom Cell Summary Operations
|
|
8
9
|
*/
|
|
9
10
|
getCustomCellSummaryOperations(): CustomCellSummaryOperation[];
|
|
10
11
|
/**
|
|
11
12
|
* Retrieves currently selected Cell Summary Operation
|
|
13
|
+
* @returns Currently selected Cell Summary Operation
|
|
12
14
|
*/
|
|
13
15
|
getCurrentCellSummaryOperation(): CustomCellSummaryOperation | string;
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
17
|
+
* Selects which summary to show for the current cell selection.
|
|
18
|
+
* @param operation Operation name, or a custom operation
|
|
16
19
|
*/
|
|
17
20
|
setCurrentCellSummaryOperation(operation: CustomCellSummaryOperation | string): void;
|
|
18
21
|
/**
|
|
@@ -21,10 +24,13 @@ export interface CellSummaryApi {
|
|
|
21
24
|
openCellSummaryPopupSettingsPanel(): void;
|
|
22
25
|
/**
|
|
23
26
|
* Retrieves the value of the current selected Cell Summary Operation
|
|
27
|
+
* @returns The value of the current selected Cell Summary Operation
|
|
24
28
|
*/
|
|
25
29
|
getCurrentCellSummaryOperationValue(): number;
|
|
26
30
|
/**
|
|
27
|
-
*
|
|
31
|
+
* The result of a summary operation for the current selection.
|
|
32
|
+
* @param operation Operation to evaluate
|
|
33
|
+
* @returns The result of a summary operation for the current selection
|
|
28
34
|
*/
|
|
29
35
|
getCellSummaryOperationValue(operation: CustomCellSummaryOperation | string): any;
|
|
30
36
|
}
|
package/src/Api/ChartingApi.d.ts
CHANGED
|
@@ -3,41 +3,50 @@ import { ExternalChartDefinition } from '../AdaptableState/ChartingState';
|
|
|
3
3
|
import { ChartContainer, ChartDefinition } from '../types';
|
|
4
4
|
import { ChartingOpenState } from './Events/ChartChanged';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Charts saved in AdapTable, and external chart definitions. Includes which charts are open.
|
|
7
7
|
*/
|
|
8
8
|
export interface ChartingApi {
|
|
9
9
|
/**
|
|
10
10
|
* Whether AdapTable's Charting functionality is available
|
|
11
|
+
* @returns `true` when AdapTable's Charting functionality is available
|
|
11
12
|
*/
|
|
12
13
|
isChartingEnabled(): boolean;
|
|
13
14
|
/**
|
|
14
15
|
* Retrieves current user-generated Charts
|
|
16
|
+
* @returns Current user-generated Charts
|
|
15
17
|
*/
|
|
16
18
|
getCurrentChartModels(): ChartModel[];
|
|
17
19
|
/**
|
|
18
20
|
* Retrieves persisted Charts from Adaptable State
|
|
21
|
+
* @returns Persisted Charts from Adaptable State
|
|
19
22
|
*/
|
|
20
23
|
getPersistedCharts(): ChartModel[];
|
|
21
24
|
/**
|
|
22
25
|
* Retrieves all adaptable Chart definitions
|
|
26
|
+
* @returns All adaptable Chart definitions
|
|
23
27
|
*/
|
|
24
28
|
getChartDefinitions(): ChartDefinition[];
|
|
25
29
|
/**
|
|
26
30
|
* Retrieves all adaptable external Chart definitions
|
|
31
|
+
* @returns All adaptable external Chart definitions
|
|
27
32
|
*/
|
|
28
33
|
getExternalChartDefinitions(): ExternalChartDefinition[];
|
|
29
34
|
/**
|
|
30
35
|
* Retrieves Chart definition by uuid
|
|
31
36
|
* @param uuid Chart uuid
|
|
37
|
+
* @returns Chart definition by uuid
|
|
32
38
|
*/
|
|
33
39
|
getChartDefinitionByUuid(uuid: string): ChartDefinition | undefined;
|
|
34
40
|
/**
|
|
35
41
|
* Retrieves Chart definition by name
|
|
36
42
|
* @param name Chart name
|
|
43
|
+
* @returns Chart definition by name
|
|
37
44
|
*/
|
|
38
45
|
getChartDefinitionByName(name: string): ChartDefinition | undefined;
|
|
39
46
|
/**
|
|
40
|
-
*
|
|
47
|
+
* The AG Grid chart reference for a chart AdapTable has open.
|
|
48
|
+
* @param chartId Id of the chart
|
|
49
|
+
* @returns The AG Grid chart reference for a chart AdapTable has open
|
|
41
50
|
*/
|
|
42
51
|
getChartRef(chartId: string): ChartRef | undefined;
|
|
43
52
|
/**
|
|
@@ -46,6 +55,7 @@ export interface ChartingApi {
|
|
|
46
55
|
saveCurrentCharts(): void;
|
|
47
56
|
/**
|
|
48
57
|
* Displays all persisted Charts
|
|
58
|
+
* @returns The chart references for the charts that were opened
|
|
49
59
|
*/
|
|
50
60
|
showPersistedCharts(): ChartRef[];
|
|
51
61
|
/**
|
|
@@ -53,6 +63,7 @@ export interface ChartingApi {
|
|
|
53
63
|
*
|
|
54
64
|
* @param chartDefinition Chart Definition
|
|
55
65
|
* @param container container element or container name
|
|
66
|
+
* @returns The chart reference for the chart that was opened
|
|
56
67
|
*/
|
|
57
68
|
showChartDefinition(chartDefinition: ChartDefinition, container?: HTMLElement | string): ChartRef;
|
|
58
69
|
/**
|
|
@@ -64,6 +75,7 @@ export interface ChartingApi {
|
|
|
64
75
|
* Displays a Chart; if Chart is already open, 2nd Chart is not opened
|
|
65
76
|
* @param chartDefinition Chart to show
|
|
66
77
|
* @param container Container in which to display the Chart
|
|
78
|
+
* @returns The chart reference. When the chart is already open, that chart is returned and another is not opened
|
|
67
79
|
*/
|
|
68
80
|
showChartDefinitionOnce(chartDefinition: ChartDefinition, container?: HTMLElement | string): ChartRef | undefined;
|
|
69
81
|
/**
|
|
@@ -88,19 +100,21 @@ export interface ChartingApi {
|
|
|
88
100
|
addChartDefinition(chartDefinition: ChartDefinition): void;
|
|
89
101
|
/**
|
|
90
102
|
* Get info about all saved charts, incl. their open state
|
|
103
|
+
* @returns Info about all saved charts, incl. their open state
|
|
91
104
|
*/
|
|
92
105
|
getChartingOpenState(): ChartingOpenState;
|
|
93
106
|
/**
|
|
94
107
|
* Retrieve name of container in which Chart is open; returns null if Chart is not open
|
|
95
|
-
* @param chartDefinition Chart to
|
|
108
|
+
* @param chartDefinition Chart to look up
|
|
109
|
+
* @returns Retrieve name of container in which Chart is open; returns null if Chart is not open
|
|
96
110
|
*/
|
|
97
111
|
getOpenChartContainer(chartDefinition: ChartDefinition): ChartContainer | null;
|
|
98
112
|
/**
|
|
99
113
|
* Add new external chart definition
|
|
100
114
|
*
|
|
101
115
|
* @param chartDef external chart definition
|
|
102
|
-
* @param options
|
|
103
|
-
* @param options.saveChartBehaviour
|
|
116
|
+
* @param options How the chart is saved. Omit it to use the default
|
|
117
|
+
* @param options.saveChartBehaviour `'manual'` asks for a name. `'auto'` saves without asking
|
|
104
118
|
*/
|
|
105
119
|
addExternalChartDefinition(chartDef: ExternalChartDefinition, options?: {
|
|
106
120
|
saveChartBehaviour: 'auto' | 'manual';
|
|
@@ -116,8 +130,9 @@ export interface ChartingApi {
|
|
|
116
130
|
*/
|
|
117
131
|
deleteExternalChartDefinition(chartDefinition: ExternalChartDefinition): void;
|
|
118
132
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @param name
|
|
133
|
+
* An external chart definition looked up by name.
|
|
134
|
+
* @param name Name of the external chart
|
|
135
|
+
* @returns An external chart definition looked up by name
|
|
121
136
|
*/
|
|
122
137
|
getExternalChartDefinitionByName(name: string): ExternalChartDefinition | undefined;
|
|
123
138
|
}
|