@adaptabletools/adaptable 11.0.0-canary.1 → 11.0.0-canary.5
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/base.css +138 -68
- package/bundle.cjs.js +97 -93
- 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 +10 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
- package/src/AdaptableOptions/AlertOptions.js +2 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +1 -1
- 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 +0 -4
- 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 +2 -2
- package/src/Api/AdaptableApi.d.ts +1 -0
- package/src/Api/AlertApi.d.ts +2 -3
- 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/AlertApiImpl.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +15 -9
- package/src/Api/Implementation/ApiBase.d.ts +2 -0
- package/src/Api/Implementation/ApiBase.js +3 -0
- 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.js +4 -5
- 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/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +2 -4
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- 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 +5 -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 +6 -4
- package/src/Utilities/ExpressionFunctions/aggregationExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- 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/DataService.js +6 -1
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +16 -11
- 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 +3 -1
- 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/BaseAlertRulesWizardSection.d.ts +2 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +15 -4
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- 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/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 +16 -4
- 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 +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -5
- 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 +3 -1
- 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 +126 -73
- package/src/agGrid/agGridHelper.js +2 -3
- 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.js +3 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
- package/src/components/ExpressionEditor/index.js +9 -2
- 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 +64 -24
- package/src/metamodel/adaptable.metamodel.js +187 -99
- package/src/types.d.ts +4 -2
- 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
|
*/
|
|
@@ -77,6 +77,9 @@ export interface AdaptableOptions {
|
|
|
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
|
+
}
|
|
@@ -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,7 +23,6 @@ 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
|
/**
|
|
@@ -33,7 +30,6 @@ export interface QueryLanguageOptions {
|
|
|
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
|
defaultAggregationFunctions?: ExpressionFunctionMap;
|
|
39
35
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
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/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
|
*
|
|
@@ -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;
|
|
@@ -16,7 +16,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
16
|
}
|
|
17
17
|
getAdaptableFormByName(name) {
|
|
18
18
|
var _a;
|
|
19
|
-
const alertForms = this.
|
|
19
|
+
const alertForms = this.getAlertOptions().alertForms || [];
|
|
20
20
|
return (_a = alertForms.find((f) => f.name === name)) === null || _a === void 0 ? void 0 : _a.form;
|
|
21
21
|
}
|
|
22
22
|
getAlertDefinitions() {
|
|
@@ -57,7 +57,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
57
57
|
}
|
|
58
58
|
actions.forEach((action) => {
|
|
59
59
|
var _a;
|
|
60
|
-
const buttonOnClick = (_a = this.
|
|
60
|
+
const buttonOnClick = (_a = this.getAlertOptions().actionHandlers) === null || _a === void 0 ? void 0 : _a.find((x) => x.name === action);
|
|
61
61
|
buttonOnClick === null || buttonOnClick === void 0 ? void 0 : buttonOnClick.handler(button, context);
|
|
62
62
|
this.adaptable.api.alertApi.executeAlertAction(action, {
|
|
63
63
|
alertDefinition: context.alert.alertDefinition,
|
|
@@ -92,7 +92,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
92
92
|
highlightStyle: {
|
|
93
93
|
BackColor: backgroundColor,
|
|
94
94
|
},
|
|
95
|
-
timeout: this.
|
|
95
|
+
timeout: this.getAlertOptions().cellHighlightDuration,
|
|
96
96
|
});
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
@@ -132,9 +132,12 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
132
132
|
// 3 things we always do with an alert are:
|
|
133
133
|
// 1. Dispatch the Alert (so it appears in the toolbar)
|
|
134
134
|
this.addUidToAdaptableObject(alertToShow);
|
|
135
|
-
this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.
|
|
135
|
+
this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.getAlertOptions().maxAlertsInStore));
|
|
136
136
|
// 2. Publish the Alert Fired Event
|
|
137
|
-
const alertFiredInfo = {
|
|
137
|
+
const alertFiredInfo = {
|
|
138
|
+
adaptableApi: this.adaptable.api,
|
|
139
|
+
alert: alertToShow,
|
|
140
|
+
};
|
|
138
141
|
const results = await this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
|
|
139
142
|
const showPopup = results.reduce((endResult, aResult) => {
|
|
140
143
|
return endResult && aResult !== false;
|
|
@@ -175,7 +178,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
175
178
|
this.adaptable.api.gridApi.refreshCells([alertNode], [dataChangedInfo.column.columnId]);
|
|
176
179
|
setTimeout(() => {
|
|
177
180
|
this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
|
|
178
|
-
}, this.adaptable.adaptableOptions.
|
|
181
|
+
}, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
if (alertProperties.HighlightRow && dataChangedInfo) {
|
|
@@ -187,7 +190,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
187
190
|
this.adaptable.api.gridApi.refreshRowNode(alertNode);
|
|
188
191
|
setTimeout(() => {
|
|
189
192
|
this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
|
|
190
|
-
}, this.adaptable.adaptableOptions.
|
|
193
|
+
}, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
|
|
191
194
|
}
|
|
192
195
|
}
|
|
193
196
|
if (alertProperties.LogToConsole) {
|
|
@@ -196,7 +199,10 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
201
|
publishAlertFiredEvent(alertToFire) {
|
|
199
|
-
const alertFiredInfo = {
|
|
202
|
+
const alertFiredInfo = {
|
|
203
|
+
adaptableApi: this.adaptable.api,
|
|
204
|
+
alert: alertToFire,
|
|
205
|
+
};
|
|
200
206
|
this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
|
|
201
207
|
}
|
|
202
208
|
displayMessageAlertPopup(alertToDisplayAsPopup) {
|
|
@@ -242,7 +248,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
242
248
|
}
|
|
243
249
|
getAlertDescription(alertDefinition, dataChangedInfo) {
|
|
244
250
|
var _a;
|
|
245
|
-
const alertMessageFunction = (_a = this.adaptable.adaptableOptions.
|
|
251
|
+
const alertMessageFunction = (_a = this.adaptable.adaptableOptions.alertOptions) === null || _a === void 0 ? void 0 : _a.alertMessageText;
|
|
246
252
|
if (alertMessageFunction) {
|
|
247
253
|
const returnText = alertMessageFunction(alertDefinition, dataChangedInfo);
|
|
248
254
|
if (returnText) {
|
|
@@ -12,6 +12,7 @@ import { NotificationsOptions } from '../../AdaptableOptions/NotificationsOption
|
|
|
12
12
|
import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
|
|
13
13
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
14
14
|
import { QueryLanguageOptions } from '../../AdaptableOptions/QueryLanguageOptions';
|
|
15
|
+
import { AlertOptions } from '../../AdaptableOptions/AlertOptions';
|
|
15
16
|
export declare abstract class ApiBase {
|
|
16
17
|
protected adaptable: IAdaptable;
|
|
17
18
|
/**
|
|
@@ -46,6 +47,7 @@ export declare abstract class ApiBase {
|
|
|
46
47
|
protected getOptions(): AdaptableOptions;
|
|
47
48
|
protected getContainerOptions(): ContainerOptions;
|
|
48
49
|
protected getNotificationsOptions(): NotificationsOptions;
|
|
50
|
+
protected getAlertOptions(): AlertOptions;
|
|
49
51
|
protected getDashboardOptions(): DashboardOptions;
|
|
50
52
|
protected getEditOptions(): EditOptions;
|
|
51
53
|
protected getExportOptions(): ExportOptions;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const isEqual_1 = tslib_1.__importDefault(require("lodash
|
|
8
|
+
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
9
9
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
10
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
11
11
|
const react_dom_1 = tslib_1.__importDefault(require("react-dom"));
|
|
@@ -45,10 +45,8 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
45
45
|
return this.getFlashingCellDefinitions().filter((fc) => !fc.IsSuspended);
|
|
46
46
|
}
|
|
47
47
|
getFlashingCellFlashTarget(flashingCellDefinition) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
: 'row';
|
|
51
|
-
return flashTarget;
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = flashingCellDefinition.FlashTarget) !== null && _a !== void 0 ? _a : 'cell';
|
|
52
50
|
}
|
|
53
51
|
showFlashingCell(flashingCellToShow) {
|
|
54
52
|
this.addUidToAdaptableObject(flashingCellToShow);
|