@adaptabletools/adaptable 11.0.0-canary.2 → 11.0.0-canary.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +1 -1
- package/agGrid.js +3 -3
- package/base.css +138 -68
- package/bundle.cjs.js +131 -127
- package/index.css +140 -68
- package/package.json +33 -33
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -2
- package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
- package/src/AdaptableOptions/AlertOptions.js +2 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
- package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
- package/src/AdaptableOptions/QueryLanguageOptions.d.ts +3 -7
- package/src/AdaptableOptions/StateOptions.d.ts +2 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +6 -0
- package/src/Api/AlertApi.d.ts +2 -3
- package/src/Api/ColumnApi.d.ts +0 -4
- package/src/Api/EventApi.d.ts +8 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +0 -12
- package/src/Api/GridApi.d.ts +5 -4
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +19 -10
- package/src/Api/Implementation/ApiBase.d.ts +2 -0
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -5
- package/src/Api/Implementation/DashboardApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
- package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
- package/src/Api/Implementation/GridApiImpl.js +4 -0
- package/src/Api/Implementation/InternalApiImpl.js +2 -2
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +12 -1
- package/src/Api/Implementation/QueryApiImpl.js +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +6 -7
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/OpenFinApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +29 -0
- package/src/Api/QueryLanguageApi.d.ts +10 -10
- package/src/Api/SettingsPanelApi.d.ts +17 -0
- package/src/Api/SettingsPanelApi.js +2 -0
- package/src/Api/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +4 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -4
- package/src/PredefinedConfig/Common/AdaptableQuery.js +3 -3
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -2
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
- package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
- package/src/PredefinedConfig/SystemState.d.ts +2 -1
- package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
- package/src/Redux/ActionsReducers/GridRedux.js +3 -1
- package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
- package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
- package/src/Redux/Store/AdaptableStore.js +18 -6
- package/src/Strategy/AlertModule.js +14 -4
- package/src/Strategy/ConditionalStyleModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +34 -18
- package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
- package/src/Strategy/FreeTextColumnModule.js +10 -0
- package/src/Strategy/LayoutModule.js +1 -6
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +5 -3
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -6
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +7 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +42 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +36 -0
- package/src/Utilities/ExpressionFunctions/groupingMap.js +104 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Helpers/CalendarHelper.js +220 -55
- package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
- package/src/Utilities/ObjectFactory.js +5 -2
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/DataService.js +6 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/QueryLanguageService.js +21 -16
- package/src/Utilities/Services/ReportService.js +7 -3
- package/src/Utilities/Services/TeamSharingService.js +5 -3
- package/src/View/AdaptablePopover/index.js +6 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
- package/src/View/AdaptableWizardView/helper.js +5 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -5
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/EntityRulesEditor/index.js +9 -9
- package/src/View/Components/FilterForm/FilterForm.js +0 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
- package/src/View/Components/ScopeComponent.js +4 -1
- package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.d.ts +2 -1
- package/src/View/Components/ValueSelector/index.js +5 -5
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +17 -5
- package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
- package/src/View/Dashboard/Dashboard.js +5 -5
- package/src/View/Dashboard/DashboardPopup.js +8 -6
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/View/Export/Wizard/NewReportWizard.js +13 -3
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -4
- package/src/View/Filter/FilterViewPanel.js +1 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +11 -6
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
- package/src/View/Query/ExpandedQueryPopup.js +9 -2
- package/src/View/Query/QueryViewPanel.js +15 -10
- package/src/View/Query/Wizard/NamedQueryWizard.js +6 -4
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/UIHelper.js +4 -1
- package/src/View/Wizard/AdaptableWizard.js +13 -4
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
- package/src/agGrid/Adaptable.d.ts +2 -5
- package/src/agGrid/Adaptable.js +127 -75
- package/src/agGrid/agGridHelper.js +3 -8
- package/src/agGrid/agGridMenuHelper.js +5 -9
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/ApplicationIcon.d.ts +1 -0
- package/src/components/ApplicationIcon.js +2 -2
- package/src/components/Dashboard/Dashboard.js +4 -1
- package/src/components/Dashboard/DashboardManager.d.ts +5 -3
- package/src/components/Dashboard/DashboardManager.js +33 -27
- package/src/components/Dropdown/index.js +8 -1
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
- package/src/components/ExpressionEditor/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +12 -5
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +1 -1
- package/src/components/SizedContainer/index.js +7 -1
- package/src/components/WindowModal/WindowModal.js +4 -1
- package/src/metamodel/adaptable.metamodel.d.ts +75 -24
- package/src/metamodel/adaptable.metamodel.js +223 -115
- package/src/types.d.ts +6 -3
- package/themes/dark.css +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -21,6 +21,7 @@ import { DataChangeHistoryOptions } from './DataChangeHistoryOptions';
|
|
|
21
21
|
import { SettingsPanelOptions } from './SettingsPanelOptions';
|
|
22
22
|
import { GridOptions, Module } from '@ag-grid-community/all-modules';
|
|
23
23
|
import { FlashingCellOptions } from './FlashingCellOptions';
|
|
24
|
+
import { AlertOptions } from './AlertOptions';
|
|
24
25
|
/**
|
|
25
26
|
* Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides AG Grid, Predefined Config and other information required to ensure a full, rich user experience
|
|
26
27
|
*/
|
|
@@ -59,7 +60,6 @@ export interface AdaptableOptions {
|
|
|
59
60
|
/**
|
|
60
61
|
* Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities
|
|
61
62
|
*
|
|
62
|
-
* @see https://docs.adaptabletools.com/docs/key-topics/primary-key
|
|
63
63
|
* @defaultValue false
|
|
64
64
|
* @gridInfoItem
|
|
65
65
|
*/
|
|
@@ -72,11 +72,14 @@ export interface AdaptableOptions {
|
|
|
72
72
|
*/
|
|
73
73
|
userName?: string;
|
|
74
74
|
/**
|
|
75
|
-
* The AG Grid object which AdapTable interacts with. Note: if using React or Angular
|
|
75
|
+
* The AG Grid object which AdapTable interacts with. Note: if using AdapTable React or AdapTable Angular, no need to populate this property as AdapTable wires it up differently
|
|
76
76
|
*
|
|
77
77
|
* @defaultValue n/a (Mandatory)
|
|
78
78
|
*/
|
|
79
79
|
gridOptions?: GridOptions;
|
|
80
|
+
/**
|
|
81
|
+
* AG Grid Modules that should be provided - needs to be provided separately
|
|
82
|
+
*/
|
|
80
83
|
modules?: Module[];
|
|
81
84
|
/**
|
|
82
85
|
* Options for managing Notifications in AdapTable
|
|
@@ -84,6 +87,12 @@ export interface AdaptableOptions {
|
|
|
84
87
|
* @gridInfoContainer
|
|
85
88
|
*/
|
|
86
89
|
notificationsOptions?: NotificationsOptions;
|
|
90
|
+
/**
|
|
91
|
+
* Options for managing Alerts in AdapTable
|
|
92
|
+
*
|
|
93
|
+
* @gridInfoContainer
|
|
94
|
+
*/
|
|
95
|
+
alertOptions?: AlertOptions;
|
|
87
96
|
/**
|
|
88
97
|
* Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed
|
|
89
98
|
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
|
|
2
|
+
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
3
|
+
import { ButtonContext } from '../PredefinedConfig/Common/AdaptableButton';
|
|
4
|
+
import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
|
|
5
|
+
import { DataChangedInfo } from '../types';
|
|
6
|
+
/**
|
|
7
|
+
* Options related to Alerts in Adaptable.
|
|
8
|
+
*/
|
|
9
|
+
export interface AlertOptions {
|
|
10
|
+
/**
|
|
11
|
+
* How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue 20
|
|
14
|
+
* @gridInfoItem
|
|
15
|
+
*/
|
|
16
|
+
maxAlertsInStore?: number;
|
|
17
|
+
/**
|
|
18
|
+
* How long (in ms) a cell will be highlighted
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue 3000
|
|
21
|
+
* @gridInfoItem
|
|
22
|
+
*/
|
|
23
|
+
cellHighlightDuration?: number;
|
|
24
|
+
/**
|
|
25
|
+
* onClick Handlers for Alert Buttons (defined in Alert State)
|
|
26
|
+
*/
|
|
27
|
+
actionHandlers?: ActionHandler[];
|
|
28
|
+
/**
|
|
29
|
+
* Full definitions of Alert Forms - the names of which are provided in Alert State
|
|
30
|
+
*/
|
|
31
|
+
alertForms?: AlertForm[];
|
|
32
|
+
/**
|
|
33
|
+
* Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue 'rawValue'
|
|
36
|
+
* @gridInfoItem
|
|
37
|
+
*/
|
|
38
|
+
dataChangeDetectionPolicy?: 'rawValue' | 'formattedValue';
|
|
39
|
+
/**
|
|
40
|
+
* Function providing Message to display in Alert; if empty, AdapTable provides dynamically
|
|
41
|
+
*/
|
|
42
|
+
alertMessageText?: (alertDefinition: AlertDefinition, dataChangedInfo?: DataChangedInfo) => string | undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Handles a Form Button Action
|
|
46
|
+
*/
|
|
47
|
+
export declare type ActionHandler = {
|
|
48
|
+
/**
|
|
49
|
+
* Name of the Handler
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Handler function to call when the Button is clicked
|
|
54
|
+
*/
|
|
55
|
+
handler: (button: AlertButton<AlertButtonContext>, context: AlertButtonContext) => void;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Form to show in an Alert
|
|
59
|
+
*/
|
|
60
|
+
export declare type AlertForm = {
|
|
61
|
+
/**
|
|
62
|
+
* Name of the Form
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* The Form to display in the Alert
|
|
67
|
+
*/
|
|
68
|
+
form: AdaptableForm<AlertButtonContext>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Context required by functions when using an Alert Button
|
|
72
|
+
*/
|
|
73
|
+
export interface AlertButtonContext extends ButtonContext {
|
|
74
|
+
/**
|
|
75
|
+
* Alert that has been triggered
|
|
76
|
+
*/
|
|
77
|
+
alert: AdaptableAlert;
|
|
78
|
+
/**
|
|
79
|
+
* Data in the Alert Form
|
|
80
|
+
*/
|
|
81
|
+
formData?: AdaptableFormData;
|
|
82
|
+
}
|
|
@@ -17,7 +17,7 @@ export interface ContainerOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
agGridContainer?: string | HTMLElement;
|
|
19
19
|
/**
|
|
20
|
-
* how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by React or Angular
|
|
20
|
+
* how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by AdapTable React or AdapTable Angular)
|
|
21
21
|
*
|
|
22
22
|
* @defaultValue 60s
|
|
23
23
|
* @gridInfoItem
|
|
@@ -29,7 +29,7 @@ export interface ContainerOptions {
|
|
|
29
29
|
* @defaultValue undefined
|
|
30
30
|
* @gridInfoItem
|
|
31
31
|
*/
|
|
32
|
-
modalContainer?: string;
|
|
32
|
+
modalContainer?: string | HTMLElement;
|
|
33
33
|
/**
|
|
34
34
|
* Div to show System Status messages - string Id or HTMLElement
|
|
35
35
|
*
|
|
@@ -11,7 +11,7 @@ export interface EntitlementOptions {
|
|
|
11
11
|
*/
|
|
12
12
|
moduleEntitlements?: Entitlement[] | ((adaptableModule: AdaptableModule, userName: string, adaptableId: string, defaultAccessLevel: AccessLevel) => AccessLevel | undefined);
|
|
13
13
|
/**
|
|
14
|
-
* AccessLevel to use when an Entitlement is not explicitly set;
|
|
14
|
+
* AccessLevel to use when an Entitlement is not explicitly set; can be hardcoded value or a function to invoke
|
|
15
15
|
*
|
|
16
16
|
* @defaultValue 'Full'
|
|
17
17
|
* @gridInfoItem
|
|
@@ -38,7 +38,7 @@ export interface FilterOptions {
|
|
|
38
38
|
*/
|
|
39
39
|
useAdaptableFilterForm?: boolean | string[];
|
|
40
40
|
/**
|
|
41
|
-
* Styles Adaptable Filter Form to match AG Grid's
|
|
41
|
+
* Styles Adaptable Filter Form to match AG Grid's styling (if using Balham theme)
|
|
42
42
|
*
|
|
43
43
|
* @defaultValue true
|
|
44
44
|
* @gridInfoItem
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
|
|
2
|
-
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
3
|
-
import { ButtonContext } from '../PredefinedConfig/Common/AdaptableButton';
|
|
4
|
-
import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
|
|
5
|
-
import { DataChangedInfo } from '../types';
|
|
6
1
|
/**
|
|
7
|
-
* Options related to
|
|
2
|
+
* Options related to System Status Messages and Notifications in Adaptable.
|
|
8
3
|
*/
|
|
9
4
|
export interface NotificationsOptions {
|
|
10
|
-
/**
|
|
11
|
-
* How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue 20
|
|
14
|
-
* @gridInfoItem
|
|
15
|
-
*/
|
|
16
|
-
maxAlertsInStore?: number;
|
|
17
5
|
/**
|
|
18
6
|
* How many Notifications can be displayed at one time
|
|
19
7
|
*
|
|
@@ -35,13 +23,6 @@ export interface NotificationsOptions {
|
|
|
35
23
|
* @gridInfoItem
|
|
36
24
|
*/
|
|
37
25
|
duration?: number | 'always';
|
|
38
|
-
/**
|
|
39
|
-
* How long (in ms) a cell will be highlighted
|
|
40
|
-
*
|
|
41
|
-
* @defaultValue 3000
|
|
42
|
-
* @gridInfoItem
|
|
43
|
-
*/
|
|
44
|
-
cellHighlightDuration?: number;
|
|
45
26
|
/**
|
|
46
27
|
* Shows a Progress Bar in the Notification
|
|
47
28
|
*
|
|
@@ -77,21 +58,6 @@ export interface NotificationsOptions {
|
|
|
77
58
|
* @gridInfoItem
|
|
78
59
|
*/
|
|
79
60
|
transition?: 'Bounce' | 'Slide' | 'Zoom' | 'Flip';
|
|
80
|
-
/**
|
|
81
|
-
* onClick Handlers for Alert Buttons (defined in Alert State)
|
|
82
|
-
*/
|
|
83
|
-
actionHandlers?: ActionHandler[];
|
|
84
|
-
/**
|
|
85
|
-
* Full definitions of Alert Forms - the names of which are provided in Alert State
|
|
86
|
-
*/
|
|
87
|
-
alertForms?: AlertForm[];
|
|
88
|
-
/**
|
|
89
|
-
* Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data
|
|
90
|
-
*
|
|
91
|
-
* @defaultValue 'rawValue'
|
|
92
|
-
* @gridInfoItem
|
|
93
|
-
*/
|
|
94
|
-
dataChangeDetectionPolicy?: 'rawValue' | 'formattedValue';
|
|
95
61
|
/**
|
|
96
62
|
* Display an Alert when a System Status Message is set
|
|
97
63
|
*
|
|
@@ -111,49 +77,6 @@ export interface NotificationsOptions {
|
|
|
111
77
|
* @defaultValue false
|
|
112
78
|
*/
|
|
113
79
|
showApplicationIcon?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Function providing Message to display in Alert; if empty, AdapTable provides dynamically
|
|
116
|
-
*/
|
|
117
|
-
alertMessageText?: (alertDefinition: AlertDefinition, dataChangedInfo?: DataChangedInfo) => string | undefined;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Handles a Form Button Action
|
|
121
|
-
*/
|
|
122
|
-
export declare type ActionHandler = {
|
|
123
|
-
/**
|
|
124
|
-
* Name of the Handler
|
|
125
|
-
*/
|
|
126
|
-
name: string;
|
|
127
|
-
/**
|
|
128
|
-
* Handler function to call when the Button is clicked
|
|
129
|
-
*/
|
|
130
|
-
handler: (button: AlertButton<AlertButtonContext>, context: AlertButtonContext) => void;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Form to show in an Alert
|
|
134
|
-
*/
|
|
135
|
-
export declare type AlertForm = {
|
|
136
|
-
/**
|
|
137
|
-
* Name of the Form
|
|
138
|
-
*/
|
|
139
|
-
name: string;
|
|
140
|
-
/**
|
|
141
|
-
* The Form to display in the Alert
|
|
142
|
-
*/
|
|
143
|
-
form: AdaptableForm<AlertButtonContext>;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Context required by functions when using an Alert Button
|
|
147
|
-
*/
|
|
148
|
-
export interface AlertButtonContext extends ButtonContext {
|
|
149
|
-
/**
|
|
150
|
-
* Alert that has been triggered
|
|
151
|
-
*/
|
|
152
|
-
alert: AdaptableAlert;
|
|
153
|
-
/**
|
|
154
|
-
* Data in the Alert Form
|
|
155
|
-
*/
|
|
156
|
-
formData?: AdaptableFormData;
|
|
157
80
|
}
|
|
158
81
|
/**
|
|
159
82
|
* Different positions offered by Notifications
|
|
@@ -9,7 +9,6 @@ export interface QueryLanguageOptions {
|
|
|
9
9
|
*
|
|
10
10
|
* @defaultValue null (sets all)
|
|
11
11
|
* @gridInfoItem
|
|
12
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#boolean-functions
|
|
13
12
|
*/
|
|
14
13
|
defaultBooleanFunctions?: ExpressionFunctionMap;
|
|
15
14
|
/**
|
|
@@ -17,7 +16,6 @@ export interface QueryLanguageOptions {
|
|
|
17
16
|
*
|
|
18
17
|
* @defaultValue null (sets all)
|
|
19
18
|
* @gridInfoItem
|
|
20
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#scalar-functions
|
|
21
19
|
*/
|
|
22
20
|
defaultScalarFunctions?: ExpressionFunctionMap;
|
|
23
21
|
/**
|
|
@@ -25,17 +23,15 @@ export interface QueryLanguageOptions {
|
|
|
25
23
|
*
|
|
26
24
|
* @defaultValue null (sets all)
|
|
27
25
|
* @gridInfoItem
|
|
28
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#observable-functions
|
|
29
26
|
*/
|
|
30
27
|
defaultObservableFunctions?: ExpressionFunctionMap;
|
|
31
28
|
/**
|
|
32
|
-
*
|
|
29
|
+
* Aggregated Boolean Expression Functions available in AdapTableQL
|
|
33
30
|
*
|
|
34
31
|
* @defaultValue null (sets all)
|
|
35
32
|
* @gridInfoItem
|
|
36
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#aggregation-functions
|
|
37
33
|
*/
|
|
38
|
-
|
|
34
|
+
defaultAggregatedBooleanFunctions?: ExpressionFunctionMap;
|
|
39
35
|
/**
|
|
40
36
|
* Module specific ExpressionFunctions; if not defined, it falls back to the defined default values
|
|
41
37
|
*
|
|
@@ -74,5 +70,5 @@ export interface ModuleExpressionFunctions {
|
|
|
74
70
|
booleanFunctions?: ExpressionFunctionMap;
|
|
75
71
|
scalarFunctions?: ExpressionFunctionMap;
|
|
76
72
|
observableFunctions?: ExpressionFunctionMap;
|
|
77
|
-
|
|
73
|
+
aggregatedBooleanFunctions?: ExpressionFunctionMap;
|
|
78
74
|
}
|
|
@@ -44,10 +44,11 @@ export declare type AdaptableStateFunctionConfig = {
|
|
|
44
44
|
* Used by the `persistState` function property in StateOptions
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
|
-
*
|
|
47
|
+
* ```
|
|
48
48
|
* persistState = (state, {adaptableId, adaptableStateKey}) => {
|
|
49
49
|
* localStorage.setItem(adaptableStateKey, JSON.stringify(state))
|
|
50
50
|
* }
|
|
51
|
+
* ```
|
|
51
52
|
*/
|
|
52
53
|
export interface AdaptablePersistStateFunction {
|
|
53
54
|
(state: any, { adaptableId, adaptableStateKey, userName, url }: AdaptableStateFunctionConfig): Promise<any>;
|
|
@@ -11,13 +11,13 @@ export interface TeamSharingOptions {
|
|
|
11
11
|
*/
|
|
12
12
|
enableTeamSharing: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Async function which retrieves available Shared Entities that user can download and merge automatically with Adaptable State
|
|
15
15
|
*
|
|
16
16
|
* @defaultValue null
|
|
17
17
|
*/
|
|
18
18
|
getSharedEntities: (adaptableId: string) => Promise<SharedEntity[]>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Async function which uploads Shared Entities so they can be downloaded by other members of the team
|
|
21
21
|
*
|
|
22
22
|
* @defaultValue null
|
|
23
23
|
*/
|
|
@@ -25,20 +25,17 @@ export interface ToolPanelOptions {
|
|
|
25
25
|
* Key of icon to be used (beside the label) for Adaptable ToolPanel Component
|
|
26
26
|
*
|
|
27
27
|
* @defaultValue 'menu'
|
|
28
|
-
* @see https://www.ag-grid.com/javascript-grid/side-bar/#sidebardef-configuration
|
|
29
28
|
* @gridInfoItem
|
|
30
29
|
*/
|
|
31
30
|
iconKey?: string;
|
|
32
31
|
/**
|
|
33
32
|
* The initial width of AdapTable ToolPanel
|
|
34
33
|
* @defaultValue var(--ab-cmp-toolpanel__width)
|
|
35
|
-
* @see https://docs.adaptabletools.com/docs/theming/css-variables#toolpanel
|
|
36
34
|
*/
|
|
37
35
|
width?: number;
|
|
38
36
|
/**
|
|
39
37
|
* The min width of AdapTable ToolPanel
|
|
40
38
|
* @defaultValue var(--ab-cmp-toolpanel__width)
|
|
41
|
-
* @see https://docs.adaptabletools.com/docs/theming/css-variables#toolpanel
|
|
42
39
|
*/
|
|
43
40
|
minWidth?: number;
|
|
44
41
|
/**
|
|
@@ -89,7 +89,7 @@ export interface UserInterfaceOptions {
|
|
|
89
89
|
/**
|
|
90
90
|
* Which sections to show in the Grid Info Screen
|
|
91
91
|
*
|
|
92
|
-
* @defaultValue ['GridSummary', 'AdaptableOptions','ColumnInfo']
|
|
92
|
+
* @defaultValue ['GridSummary', 'AdaptableOptions', 'ColumnInfo']
|
|
93
93
|
*/
|
|
94
94
|
gridInfoSections?: GridInfoSections;
|
|
95
95
|
}
|
|
@@ -120,7 +120,7 @@ export interface EditLookUpPermittedValues extends BasePermittedValues {
|
|
|
120
120
|
export interface FilterPermittedValues extends BasePermittedValues {
|
|
121
121
|
/**
|
|
122
122
|
* Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed
|
|
123
|
-
* @
|
|
123
|
+
* @defaultValue false
|
|
124
124
|
*/
|
|
125
125
|
suppressFilterSearchBar?: boolean;
|
|
126
126
|
values: (params: FilterPermittedValuesParams) => any[] | Promise<any[]>;
|
|
@@ -139,7 +139,7 @@ export interface BulkUpdatePermittedValues extends BasePermittedValues {
|
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
141
|
* Use PermittedValues instead
|
|
142
|
-
* @deprecated
|
|
142
|
+
* @deprecated use PermittedValues instead
|
|
143
143
|
*/
|
|
144
144
|
export declare type CellValuesList = PermittedValues;
|
|
145
145
|
/**
|
|
@@ -35,6 +35,7 @@ import { PredicateApi } from './PredicateApi';
|
|
|
35
35
|
import { DataChangeHistoryApi } from './DataChangeHistoryApi';
|
|
36
36
|
import { FlashingCellApi } from './FlashingCellApi';
|
|
37
37
|
import { ChartingApi } from './ChartingApi';
|
|
38
|
+
import { SettingsPanelApi } from './SettingsPanelApi';
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
41
|
* The `AdaptableApi` provides developers with run-time access to AdapTable.
|
|
@@ -147,6 +148,10 @@ export interface AdaptableApi {
|
|
|
147
148
|
* Provides access to the Schedule Module
|
|
148
149
|
*/
|
|
149
150
|
scheduleApi: ScheduleApi;
|
|
151
|
+
/**
|
|
152
|
+
* Provides access to the Settings Panel
|
|
153
|
+
*/
|
|
154
|
+
settingsPanelApi: SettingsPanelApi;
|
|
150
155
|
/**
|
|
151
156
|
* Manages the `Scope` object - used widely to determine where objects are applied
|
|
152
157
|
*/
|
|
@@ -185,6 +190,7 @@ export interface AdaptableApi {
|
|
|
185
190
|
chartingApi: ChartingApi;
|
|
186
191
|
/**
|
|
187
192
|
* Api methods used *internally* within AdapTable.
|
|
193
|
+
* @internal
|
|
188
194
|
*/
|
|
189
195
|
internalApi: InternalApi;
|
|
190
196
|
/**
|
package/src/Api/AlertApi.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ import { AdaptableScope } from '../PredefinedConfig/Common/AdaptableScope';
|
|
|
4
4
|
import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
5
5
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
6
6
|
import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
|
|
7
|
-
import { AlertButtonContext } from '../
|
|
8
|
-
import { AdaptableMessageType, AlertProperties } from '../types';
|
|
7
|
+
import { AdaptableMessageType, AlertButtonContext, AlertProperties } from '../types';
|
|
9
8
|
/**
|
|
10
9
|
* Provides run-time access to Alert function and associated State
|
|
11
10
|
*/
|
|
@@ -158,7 +157,7 @@ export interface AlertApi {
|
|
|
158
157
|
suspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
159
158
|
/**
|
|
160
159
|
* Activates a suspended Alert Definition
|
|
161
|
-
* @param alertDefinition Alert to Un-suspend (activate)
|
|
160
|
+
* @param alertDefinition - Alert to Un-suspend (activate)
|
|
162
161
|
* @returns alert definition
|
|
163
162
|
*/
|
|
164
163
|
unSuspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -35,10 +35,6 @@ export interface ColumnApi {
|
|
|
35
35
|
* Returns all boolean Columns
|
|
36
36
|
*/
|
|
37
37
|
getBooleanColumns(): AdaptableColumn[];
|
|
38
|
-
/**
|
|
39
|
-
* Returns all numeric array Columns
|
|
40
|
-
*/
|
|
41
|
-
getNumericArrayColumns(): AdaptableColumn[];
|
|
42
38
|
/**
|
|
43
39
|
* Returns all Sortable Columns
|
|
44
40
|
*/
|
package/src/Api/EventApi.d.ts
CHANGED
|
@@ -195,9 +195,14 @@ export interface EventApi {
|
|
|
195
195
|
off(eventName: 'LiveDataChanged', callback: (liveDataChangedInfo: LiveDataChangedInfo) => void): void;
|
|
196
196
|
/**
|
|
197
197
|
* Fired when Adaptable is up and running - has no arguments.
|
|
198
|
-
* @param eventName
|
|
199
|
-
* @param callback An `AdaptableReadyInfo` object which contains the adaptableApi and GridOptions
|
|
200
|
-
* @returns the unsubscribe function
|
|
198
|
+
* @param eventName - AdaptableReady
|
|
199
|
+
* @param callback - An `AdaptableReadyInfo` object which contains the adaptableApi and GridOptions
|
|
200
|
+
* @returns the unsubscribe function
|
|
201
|
+
*
|
|
202
|
+
* @example Use as
|
|
203
|
+
* ```
|
|
204
|
+
* adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo: AdaptableReadyInfo) => { .....[do stuff]...})
|
|
205
|
+
* ```
|
|
201
206
|
*/
|
|
202
207
|
on(eventName: 'AdaptableReady', callback: (adaptableReadyInfo: AdaptableReadyInfo) => void): VoidFunction;
|
|
203
208
|
/**
|
|
@@ -5,13 +5,15 @@ import { BaseEventInfo } from './BaseEventInfo';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface GridDataChangedInfo extends BaseEventInfo {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Data rows that have been added, updated, or deleted
|
|
9
9
|
*/
|
|
10
10
|
dataRows: any[];
|
|
11
11
|
/**
|
|
12
12
|
* Trigger for row change: 'Add', 'Edit' or 'Delete'
|
|
13
|
-
}
|
|
14
13
|
*/
|
|
15
14
|
rowTrigger: 'Add' | 'Edit' | 'Delete';
|
|
15
|
+
/**
|
|
16
|
+
* AG Grid Row Nodes that were affected by the Change
|
|
17
|
+
*/
|
|
16
18
|
rowNodes: RowNode[];
|
|
17
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SystemStatusMessageInfo } from '../../PredefinedConfig/Common/SystemStatusMessageInfo';
|
|
2
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
3
|
/**
|
|
4
|
-
* Object returned by the `SystemStatusMessageDisplayed
|
|
4
|
+
* Object returned by the `SystemStatusMessageDisplayed` event
|
|
5
5
|
*/
|
|
6
6
|
export interface SystemStatusMessageDisplayedInfo extends BaseEventInfo {
|
|
7
7
|
/**
|
|
@@ -34,18 +34,6 @@ export interface FreeTextColumnApi {
|
|
|
34
34
|
editFreeTextColumn(freeTextColumn: Partial<FreeTextColumn> & {
|
|
35
35
|
ColumnId: string;
|
|
36
36
|
}): FreeTextColumn;
|
|
37
|
-
/**
|
|
38
|
-
* Creates new FreeTextColumn and adds it to Adaptable State
|
|
39
|
-
* @param columnId the id for the column - try to keep this small and unique (and dont use spaces)
|
|
40
|
-
* @param param.columnName the name for the column - optional - if not provided, will default to the columnId
|
|
41
|
-
* @param param.defaultValue the default value that will appear in the Column unless overrident - leave blank if you dont require a default value
|
|
42
|
-
* @returns free text column
|
|
43
|
-
*/
|
|
44
|
-
createFreeTextColumn(param: {
|
|
45
|
-
columnId: string;
|
|
46
|
-
columnName?: string;
|
|
47
|
-
defaultValue: string;
|
|
48
|
-
}): FreeTextColumn;
|
|
49
37
|
/**
|
|
50
38
|
* Deletes existing FreeTextColumn from Adaptable State
|
|
51
39
|
* @param columnId name of FreeTextColumn to delete
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
|
|
|
5
5
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
6
6
|
import { DataUpdateConfig } from '../PredefinedConfig/Common/DataUpdateConfig';
|
|
7
7
|
import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
|
|
8
|
-
import { CellHighlightInfo
|
|
8
|
+
import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
|
|
9
|
+
import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
|
|
9
10
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
10
11
|
import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
11
12
|
import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
|
|
@@ -41,19 +42,19 @@ export interface GridApi {
|
|
|
41
42
|
* @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
|
|
42
43
|
* @param config batch option and callback function to run post update
|
|
43
44
|
*/
|
|
44
|
-
updateGridData(dataRows: any[], config?: DataUpdateConfig):
|
|
45
|
+
updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
|
|
45
46
|
/**
|
|
46
47
|
* Adds rows to Adaptable (and AG Grid)
|
|
47
48
|
* @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
|
|
48
49
|
* @param config batch option and callback function to run post addition
|
|
49
50
|
*/
|
|
50
|
-
addGridData(dataRows: any[], config?: DataUpdateConfig):
|
|
51
|
+
addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
|
|
51
52
|
/**
|
|
52
53
|
* Deletes rows from Adaptable (and AG Grid)
|
|
53
54
|
* @param dataRows rows which should be deleted
|
|
54
55
|
* @param config batch option and callback function to run post deletion
|
|
55
56
|
*/
|
|
56
|
-
deleteGridData(dataRows: any[], config?: DataUpdateConfig):
|
|
57
|
+
deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
|
|
57
58
|
/**
|
|
58
59
|
* Updates cell in Adaptable (first performs Cell & Server Validation)
|
|
59
60
|
* @param columnId column to update
|
|
@@ -59,7 +59,7 @@ export interface IPushPullApi {
|
|
|
59
59
|
/**
|
|
60
60
|
* Retrieves all the ipushpull domain to which the current user has access
|
|
61
61
|
*
|
|
62
|
-
* An `IPushPullDomain
|
|
62
|
+
* An `IPushPullDomain` contains 3 properties:
|
|
63
63
|
*
|
|
64
64
|
* - **Name**: the name of the Domain / Folder
|
|
65
65
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
|
-
import { AdaptableApi } from '../../types';
|
|
2
|
+
import { AdaptableApi, SettingsPanelApi } from '../../types';
|
|
3
3
|
import { AlertApi } from '../AlertApi';
|
|
4
4
|
import { BulkUpdateApi } from '../BulkUpdateApi';
|
|
5
5
|
import { CalculatedColumnApi } from '../CalculatedColumnApi';
|
|
@@ -71,6 +71,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
71
71
|
userInterfaceApi: UserInterfaceApi;
|
|
72
72
|
queryApi: QueryApi;
|
|
73
73
|
queryLanguageApi: QueryLanguageApi;
|
|
74
|
+
settingsPanelApi: SettingsPanelApi;
|
|
74
75
|
toolPanelApi: ToolPanelApi;
|
|
75
76
|
teamSharingApi: TeamSharingApi;
|
|
76
77
|
scopeApi: ScopeApi;
|
|
@@ -38,6 +38,7 @@ const DataChangeHistoryApiImpl_1 = require("./DataChangeHistoryApiImpl");
|
|
|
38
38
|
const QueryLanguageApiImpl_1 = require("./QueryLanguageApiImpl");
|
|
39
39
|
const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
|
|
40
40
|
const ChartingApiImpl_1 = require("./ChartingApiImpl");
|
|
41
|
+
const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
|
|
41
42
|
class AdaptableApiImpl {
|
|
42
43
|
constructor(adaptable) {
|
|
43
44
|
this.adaptable = adaptable;
|
|
@@ -69,6 +70,7 @@ class AdaptableApiImpl {
|
|
|
69
70
|
this.smartEditApi = new SmartEditApiImpl_1.SmartEditApiImpl(adaptable);
|
|
70
71
|
this.filterApi = new FilterApiImpl_1.FilterApiImpl(adaptable);
|
|
71
72
|
this.systemStatusApi = new SystemStatusApiImpl_1.SystemStatusApiImpl(adaptable);
|
|
73
|
+
this.settingsPanelApi = new SettingsPanelApiImpl_1.SettingsPanelApiImpl(adaptable);
|
|
72
74
|
this.themeApi = new ThemeApiImpl_1.ThemeApiImpl(adaptable);
|
|
73
75
|
this.userInterfaceApi = new UserInterfaceApiImpl_1.UserInterfaceApiImpl(adaptable);
|
|
74
76
|
this.queryApi = new QueryApiImpl_1.QueryApiImpl(adaptable);
|
|
@@ -6,8 +6,7 @@ import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
|
|
|
6
6
|
import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
7
7
|
import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
|
|
8
8
|
import { AdaptableForm, AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
9
|
-
import { AlertButtonContext } from '../../
|
|
10
|
-
import { AdaptableMessageType } from '../../types';
|
|
9
|
+
import { AdaptableMessageType, AlertButtonContext } from '../../types';
|
|
11
10
|
export declare class AlertApiImpl extends ApiBase implements AlertApi {
|
|
12
11
|
getAlertState(): AlertState;
|
|
13
12
|
getAdaptableFormByName(name: string): AdaptableForm<AlertButtonContext> | undefined;
|