@adaptabletools/adaptable 11.0.0-canary.3 → 11.0.0-canary.7
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 +5 -4
- package/agGrid.js +9 -7
- package/base.css +135 -69
- package/bundle.cjs.js +104 -99
- package/index.css +136 -69
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -7
- package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +34 -9
- package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
- 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/FilterOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
- package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
- package/src/AdaptableOptions/StateOptions.d.ts +9 -8
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -2
- 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/CalculatedColumnApi.d.ts +2 -9
- 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 +13 -2
- 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 +5 -2
- package/src/Api/Implementation/ApiBase.js +8 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
- package/src/Api/Implementation/GridApiImpl.js +27 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
- package/src/Api/Implementation/InternalApiImpl.js +7 -6
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +11 -0
- package/src/Api/Implementation/QueryApiImpl.js +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +20 -8
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
- package/src/Api/InternalApi.d.ts +2 -3
- 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/QueryApi.d.ts +2 -2
- package/src/Api/QueryLanguageApi.d.ts +23 -10
- package/src/Api/SettingsPanelApi.d.ts +16 -0
- package/src/Api/SettingsPanelApi.js +2 -0
- package/src/Api/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +8 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -4
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -5
- package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -6
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- 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/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +3 -1
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +3 -1
- 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/Selection/GridCellRange.d.ts +3 -1
- 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/AdaptableReduxMerger.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +34 -8
- package/src/Strategy/AlertModule.js +16 -6
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ChartingModule.d.ts +3 -3
- package/src/Strategy/ChartingModule.js +2 -2
- package/src/Strategy/ConditionalStyleModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
- package/src/Strategy/FreeTextColumnModule.js +11 -0
- package/src/Strategy/LayoutModule.js +1 -6
- package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
- package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
- package/src/Strategy/ToolPanelModule.js +5 -3
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +1 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +2 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +23 -17
- 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 +24 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +339 -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.d.ts +2 -2
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/groupingMap.js +105 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -2
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
- package/src/Utilities/Helpers/CalendarHelper.js +220 -55
- package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/AlertService.js +8 -4
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
- package/src/Utilities/Services/DataService.js +6 -1
- package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +9 -3
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +11 -4
- package/src/Utilities/Services/QueryLanguageService.js +92 -28
- package/src/Utilities/Services/ReportService.js +6 -2
- 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 +10 -5
- 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/AlertDisplayWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +11 -12
- package/src/View/Components/FilterForm/FilterForm.js +0 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +6 -5
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -88
- 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/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/AdaptablePopupAlert.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- 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/ToolPanel/CustomToolPanelContent.js +5 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.js +1 -1
- 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 +7 -0
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
- package/src/View/Dashboard/Dashboard.js +2 -3
- package/src/View/Dashboard/DashboardPopup.js +3 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- 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 +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +6 -2
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/Query/ExpandedQueryPopup.js +9 -2
- package/src/View/Query/QueryViewPanel.js +3 -1
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -2
- package/src/View/UIHelper.js +4 -1
- package/src/View/Wizard/AdaptableWizard.js +12 -3
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -1
- package/src/agGrid/Adaptable.d.ts +3 -3
- package/src/agGrid/Adaptable.js +117 -77
- package/src/agGrid/agGridHelper.js +4 -9
- package/src/agGrid/agGridMenuHelper.js +4 -8
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
- 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/Datepicker/index.d.ts +1 -1
- package/src/components/Dropdown/index.js +8 -1
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +5 -2
- package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -2
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
- package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
- package/src/components/ExpressionEditor/index.d.ts +2 -1
- package/src/components/ExpressionEditor/index.js +20 -6
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Logo/index.js +8 -7
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SizedContainer/index.js +7 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -1
- package/src/metamodel/adaptable.metamodel.d.ts +114 -59
- package/src/metamodel/adaptable.metamodel.js +373 -242
- package/src/types.d.ts +9 -6
- package/themes/dark.css +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/src/Api/OpenFinApi.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { OpenFinState, OpenFinReport, OpenFinSchedule } from '../PredefinedConfi
|
|
|
2
2
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
3
3
|
import { OpenFinPluginOptions } from '../AdaptableOptions/OpenFinPluginOptions';
|
|
4
4
|
import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
|
|
5
|
+
import { AlertOptions } from '../AdaptableOptions/AlertOptions';
|
|
5
6
|
/**
|
|
6
7
|
* Provides run-time access to the OpenFin Plugin
|
|
7
8
|
*/
|
|
@@ -44,6 +45,10 @@ export interface OpenFinApi {
|
|
|
44
45
|
* Gets the Notification section from Adaptable Options
|
|
45
46
|
*/
|
|
46
47
|
getNotificationsOptions(): NotificationsOptions;
|
|
48
|
+
/**
|
|
49
|
+
* Gets the Alert section from Adaptable Options
|
|
50
|
+
*/
|
|
51
|
+
getAlertOptions(): AlertOptions;
|
|
47
52
|
/**
|
|
48
53
|
* Retrieves all Schedules that send data to Excel via OpenFin
|
|
49
54
|
*/
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -7,12 +7,41 @@ import { FinanceApi } from './FinanceApi';
|
|
|
7
7
|
* API methods dealing with AdapTable plugins
|
|
8
8
|
*/
|
|
9
9
|
export interface PluginsApi {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the Plugin State (internal only)
|
|
12
|
+
*/
|
|
10
13
|
getPluginsState(): PluginsState;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the State for a given Plugin
|
|
16
|
+
* @param pluginId plugin state to retrieve
|
|
17
|
+
*/
|
|
11
18
|
getPluginState(pluginId: string): any;
|
|
19
|
+
/**
|
|
20
|
+
* Registers a Plugin (internal method)
|
|
21
|
+
* @param pluginId Plugin to register
|
|
22
|
+
* @param initialPluginState any state the Plugin requires
|
|
23
|
+
*/
|
|
12
24
|
registerPlugin(pluginId: string, initialPluginState: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the initial state for a given plugin (internal method)
|
|
27
|
+
* @param pluginId Plugin to set state for
|
|
28
|
+
* @param pluginState State to set
|
|
29
|
+
*/
|
|
13
30
|
setPluginState(pluginId: string, pluginState: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* Returns ipushpull API class in Adaptable API
|
|
33
|
+
*/
|
|
14
34
|
getipushpullPluginApi(): IPushPullApi;
|
|
35
|
+
/**
|
|
36
|
+
* Returns Glue42 API class in Adaptable API
|
|
37
|
+
*/
|
|
15
38
|
getGlue42PluginApi(): Glue42Api;
|
|
39
|
+
/**
|
|
40
|
+
* Returns OpenFin API class in Adaptable API
|
|
41
|
+
*/
|
|
16
42
|
getOpenFinPluginApi(): OpenFinApi;
|
|
43
|
+
/**
|
|
44
|
+
* Returns Finance API class in Adaptable API
|
|
45
|
+
*/
|
|
17
46
|
getFinancePluginApi(): FinanceApi;
|
|
18
47
|
}
|
package/src/Api/QueryApi.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface QueryApi {
|
|
|
45
45
|
showExpandedQueryPopup(): void;
|
|
46
46
|
/**
|
|
47
47
|
* Set a Query as Current Query
|
|
48
|
-
* @param query Query to set
|
|
48
|
+
* @param query - Query to set
|
|
49
49
|
*/
|
|
50
50
|
setCurrentQuery(query: string): void;
|
|
51
51
|
/**
|
|
@@ -53,7 +53,7 @@ export interface QueryApi {
|
|
|
53
53
|
*/
|
|
54
54
|
clearCurrentQuery(): void;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Returns the Current Query
|
|
57
57
|
*/
|
|
58
58
|
getCurrentQuery(): string | undefined;
|
|
59
59
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
2
2
|
import { ExpressionFunctionMap } from '../types';
|
|
3
|
+
import { AdaptableQuery } from '../PredefinedConfig/Common/AdaptableQuery';
|
|
3
4
|
/**
|
|
4
5
|
* Manages AdapTableQL (Query Language)
|
|
5
6
|
*/
|
|
@@ -13,21 +14,28 @@ export interface QueryLanguageApi {
|
|
|
13
14
|
isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
14
15
|
/**
|
|
15
16
|
* Whether the given ObservableExpression is valid
|
|
16
|
-
* @param
|
|
17
|
-
* @param module module specific query
|
|
18
|
-
* @param validationErrorMessage optional validation error message; if provided, the error will be logged
|
|
17
|
+
* @param expression - ObservableExpression to check
|
|
18
|
+
* @param module - module specific query
|
|
19
|
+
* @param validationErrorMessage - optional validation error message; if provided, the error will be logged
|
|
19
20
|
*/
|
|
20
21
|
isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
21
22
|
/**
|
|
22
|
-
* Whether the given
|
|
23
|
-
* @param
|
|
24
|
-
* @param module module specific query
|
|
25
|
-
* @param validationErrorMessage optional validation error message; if provided, the error will be logged
|
|
23
|
+
* Whether the given AggregatedBooleanExpression is valid
|
|
24
|
+
* @param expression - AggregatedBooleanExpression to check
|
|
25
|
+
* @param module - module specific query
|
|
26
|
+
* @param validationErrorMessage - optional validation error message; if provided, the error will be logged
|
|
27
|
+
*/
|
|
28
|
+
isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the given AggregatedScalarExpression is valid
|
|
31
|
+
* @param expression - AggregatedScalarExpression to check
|
|
32
|
+
* @param module - module specific query
|
|
33
|
+
* @param validationErrorMessage - optional validation error message; if provided, the error will be logged
|
|
26
34
|
*/
|
|
27
|
-
|
|
35
|
+
isValidAggregatedScalarExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
28
36
|
/**
|
|
29
|
-
* Returns all Columns referenced in a
|
|
30
|
-
* @param
|
|
37
|
+
* Returns all Columns referenced in a QueryExpression
|
|
38
|
+
* @param expression - expression to check
|
|
31
39
|
*/
|
|
32
40
|
getColumnsFromExpression(expression: string): string[];
|
|
33
41
|
/**
|
|
@@ -43,4 +51,9 @@ export interface QueryLanguageApi {
|
|
|
43
51
|
* @param expression expression to be run
|
|
44
52
|
*/
|
|
45
53
|
getASTForExpression(expression: string): any;
|
|
54
|
+
/**
|
|
55
|
+
* Returns the Expression string of the given AdaptableQuery, which may be either a Boolean, an AggregatedBoolean, a Scalar, an AggregatedScalar or an ObservableExpression expression
|
|
56
|
+
* @param query - the AdaptableQuery
|
|
57
|
+
*/
|
|
58
|
+
getAdaptableQueryExpression(query: Partial<AdaptableQuery>): string | undefined;
|
|
46
59
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AdaptableModule } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Provides run-time access to the Settings Panel
|
|
4
|
+
**/
|
|
5
|
+
export interface SettingsPanelApi {
|
|
6
|
+
/**
|
|
7
|
+
* Opens Settings Panel and displays specified Module (if provided) or first available one
|
|
8
|
+
* @param moduleName name of Module to display
|
|
9
|
+
*/
|
|
10
|
+
showSettingsPanel(moduleName?: AdaptableModule): void;
|
|
11
|
+
/**
|
|
12
|
+
* Opens Settings Panel with the Custom Settings Panel, provided by name, displayed
|
|
13
|
+
* @param name name of Custom Settings Panel to display
|
|
14
|
+
*/
|
|
15
|
+
showCustomSettingsPanel(name: string): void;
|
|
16
|
+
}
|
|
@@ -25,13 +25,16 @@ export interface UserInterfaceApi {
|
|
|
25
25
|
*/
|
|
26
26
|
getPermittedValuesForColumn(column: AdaptableColumn): any[];
|
|
27
27
|
/**
|
|
28
|
-
* Retrieves Permitted values for filtering by column values in Floating Filter and
|
|
28
|
+
* Retrieves Permitted values for filtering by column values in Floating Filter and Quick Filter Bar
|
|
29
29
|
*/
|
|
30
30
|
getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Retrieves Permitted values for Custom
|
|
32
|
+
* Retrieves Permitted values for Custom Sort Module
|
|
33
33
|
*/
|
|
34
34
|
getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves Permitted values for Bulk Update Module
|
|
37
|
+
*/
|
|
35
38
|
getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
|
|
36
39
|
/**
|
|
37
40
|
* Retrieves `editLookUpItems` property from User Interface Options
|
|
@@ -8,19 +8,17 @@ import { AdaptableButton, ButtonContext } from './Common/AdaptableButton';
|
|
|
8
8
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
9
9
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
10
10
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
11
|
-
import {
|
|
11
|
+
import { AdaptableAggregatedBooleanQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
|
|
12
12
|
import { ButtonStyle } from './Common/ButtonStyle';
|
|
13
|
-
import { AlertButtonContext } from '../
|
|
13
|
+
import { AlertButtonContext } from '../types';
|
|
14
14
|
/**
|
|
15
15
|
* Predefined Configuration for Alert Module
|
|
16
16
|
*/
|
|
17
17
|
export interface AlertState extends ConfigState {
|
|
18
18
|
/**
|
|
19
19
|
* Alert Definitions - will trigger Alerts when rule is met
|
|
20
|
-
* @defaultValue null
|
|
21
20
|
*/
|
|
22
21
|
AlertDefinitions?: AlertDefinition[];
|
|
23
|
-
FlashingAlertDefinitions?: any[];
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* The Alert Definition object used in the Alert function
|
|
@@ -62,7 +60,11 @@ export interface AlertDefinitionPredicate extends AdaptablePredicate {
|
|
|
62
60
|
*/
|
|
63
61
|
export declare type AlertRule = XOR<{
|
|
64
62
|
Predicate: AlertDefinitionPredicate;
|
|
65
|
-
},
|
|
63
|
+
}, AdaptableAlertQuery>;
|
|
64
|
+
/**
|
|
65
|
+
* Alert Query which may be either a Boolean, Observable or AggregatedBoolean Expression
|
|
66
|
+
*/
|
|
67
|
+
export declare type AdaptableAlertQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery, AdaptableAggregatedBooleanQuery>>;
|
|
66
68
|
export declare type AdaptableAlertAction = 'highlight-cell' | 'jump-to-cell' | 'jump-to-row' | 'jump-to-column' | 'suspend' | 'undo';
|
|
67
69
|
/**
|
|
68
70
|
* Defines a button that appears in an Alert Form
|
|
@@ -116,7 +118,7 @@ export interface AlertProperties {
|
|
|
116
118
|
LogToConsole?: boolean;
|
|
117
119
|
/**
|
|
118
120
|
* Automatically prevent any cell edit which triggered the Alert (i.e. validation)
|
|
119
|
-
* @
|
|
121
|
+
* @defaultValue false
|
|
120
122
|
*/
|
|
121
123
|
PreventEdit?: boolean;
|
|
122
124
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ConfigState } from './ConfigState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
|
-
import { AdaptableScalarQuery } from './Common/AdaptableQuery';
|
|
3
|
+
import { AdaptableAggregatedScalarQuery, AdaptableScalarQuery } from './Common/AdaptableQuery';
|
|
4
4
|
import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
|
|
5
|
+
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
5
6
|
/**
|
|
6
7
|
* Predefined Configuration for Calculated Column Module
|
|
7
8
|
**/
|
|
8
9
|
export interface CalculatedColumnState extends ConfigState {
|
|
9
10
|
/**
|
|
10
11
|
* Collection of Calculated Columns
|
|
11
|
-
* @defaultValue empty
|
|
12
12
|
*/
|
|
13
13
|
CalculatedColumns?: CalculatedColumn[];
|
|
14
14
|
}
|
|
@@ -29,9 +29,9 @@ export interface CalculatedColumn extends AdaptableObject {
|
|
|
29
29
|
*/
|
|
30
30
|
CalculatedColumnSettings?: CalculatedColumnSettings;
|
|
31
31
|
/**
|
|
32
|
-
* Scalar
|
|
32
|
+
* Scalar/AggregatedScalar Query used by AdapTableQL to evaluate Column's value
|
|
33
33
|
*/
|
|
34
|
-
Query?:
|
|
34
|
+
Query?: AdaptableCalculatedColumnQuery;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Set of optional properties that define a Calculated Column's behaviour
|
|
@@ -47,3 +47,7 @@ export interface CalculatedColumnSettings extends SpecialColumnSettings {
|
|
|
47
47
|
*/
|
|
48
48
|
ShowToolTip?: boolean;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Calculated Column Query which may be a Scalar or an AggregatedScalar Expression
|
|
52
|
+
*/
|
|
53
|
+
export declare type AdaptableCalculatedColumnQuery = XOR<AdaptableScalarQuery, AdaptableAggregatedScalarQuery>;
|
|
@@ -8,12 +8,14 @@ export interface AdaptableScalarQuery {
|
|
|
8
8
|
export interface AdaptableObservableQuery {
|
|
9
9
|
ObservableExpression: string;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
12
|
-
|
|
11
|
+
export interface AdaptableAggregatedBooleanQuery {
|
|
12
|
+
AggregatedBooleanExpression: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AdaptableAggregatedScalarQuery {
|
|
15
|
+
AggregatedScalarExpression: string;
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
|
-
* An AdaptableQuery can be either a Boolean, Scalar, Observable or
|
|
18
|
+
* An AdaptableQuery can be either a Boolean, Scalar, Observable, AggregatedBoolean, or AggregatedScalar expression
|
|
16
19
|
*/
|
|
17
|
-
export declare type AdaptableQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableScalarQuery, XOR<AdaptableObservableQuery,
|
|
18
|
-
export declare const getAdaptableQueryExpression: (query: Partial<AdaptableQuery>) => string | undefined;
|
|
20
|
+
export declare type AdaptableQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableScalarQuery, XOR<AdaptableObservableQuery, XOR<AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery>>>>;
|
|
19
21
|
export declare const isReactiveQuery: (query: Partial<AdaptableQuery>) => boolean;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isReactiveQuery =
|
|
4
|
-
exports.getAdaptableQueryExpression = (query) => {
|
|
5
|
-
var _a, _b, _c;
|
|
6
|
-
return ((_c = (_b = (_a = query.BooleanExpression) !== null && _a !== void 0 ? _a : query.ScalarExpression) !== null && _b !== void 0 ? _b : query.ObservableExpression) !== null && _c !== void 0 ? _c : query.AggregationExpression);
|
|
7
|
-
};
|
|
3
|
+
exports.isReactiveQuery = void 0;
|
|
8
4
|
exports.isReactiveQuery = (query) => {
|
|
9
|
-
return !!query.ObservableExpression || !!query.
|
|
5
|
+
return !!query.ObservableExpression || !!query.AggregatedBooleanExpression;
|
|
10
6
|
};
|
|
@@ -15,19 +15,8 @@ export interface CellHighlightInfo {
|
|
|
15
15
|
* Time after which Cell should be unhilighted
|
|
16
16
|
*/
|
|
17
17
|
timeout?: number;
|
|
18
|
-
highlightStyle: AdaptableStyle;
|
|
19
|
-
}
|
|
20
|
-
export interface RowHighlightInfo {
|
|
21
|
-
/**
|
|
22
|
-
* Primary key value for the row to be highlighted
|
|
23
|
-
*/
|
|
24
|
-
primaryKeyValue: any;
|
|
25
|
-
/**
|
|
26
|
-
* Timeout after which the highlight is removed
|
|
27
|
-
*/
|
|
28
|
-
timeout?: number;
|
|
29
18
|
/**
|
|
30
|
-
* Highlight
|
|
19
|
+
* Adaptable Style to use in the Cell Highlight
|
|
31
20
|
*/
|
|
32
21
|
highlightStyle: AdaptableStyle;
|
|
33
22
|
}
|
|
@@ -6,8 +6,6 @@ var DataType;
|
|
|
6
6
|
(function (DataType) {
|
|
7
7
|
DataType["String"] = "String";
|
|
8
8
|
DataType["Number"] = "Number";
|
|
9
|
-
// FIXME AFL keep it or extend it to support https://www.ag-grid.com/javascript-data-grid/sparklines-data/ ?
|
|
10
|
-
DataType["NumberArray"] = "NumberArray";
|
|
11
9
|
DataType["Boolean"] = "Boolean";
|
|
12
10
|
DataType["Date"] = "Date";
|
|
13
11
|
DataType["Object"] = "Object";
|
|
@@ -22,7 +22,7 @@ export interface FDC3Context {
|
|
|
22
22
|
[key: string]: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
* @
|
|
25
|
+
* @internal
|
|
26
26
|
* Custom properties and metadata. This can be extended in specific context object.
|
|
27
27
|
*/
|
|
28
28
|
[key: string]: unknown;
|
|
@@ -32,23 +32,15 @@ export interface FDC3Context {
|
|
|
32
32
|
*/
|
|
33
33
|
export interface InstrumentContext extends FDC3Context {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Context type is always 'instrument'
|
|
36
36
|
*/
|
|
37
37
|
type: 'instrument';
|
|
38
38
|
/**
|
|
39
|
-
* Free text name of
|
|
39
|
+
* Free text name of instrument
|
|
40
40
|
*/
|
|
41
41
|
name: string;
|
|
42
42
|
/**
|
|
43
|
-
* The instrument data
|
|
44
|
-
* * `ticker`: a ticker
|
|
45
|
-
* * `ISIN`: [ISIN](https://www.isin.org/isin/)
|
|
46
|
-
* * `CUSIP`: [CUSIP](https://www.cusip.com/cusip/index.htm)
|
|
47
|
-
* * `SEDOL`: [SEDOL](https://www.londonstockexchange.com/products-and-services/reference-data/sedol-master-file/sedol-master-file.htm)
|
|
48
|
-
* * `RIC`: [Reuters Instrument Code (RIC)](https://en.wikipedia.org/wiki/Reuters_Instrument_Code)
|
|
49
|
-
* * `BBG`: [Bloomberg Ticker](https://www.bloomberg.com/professional/product/market-data/)
|
|
50
|
-
* * `PERMID`: [PERMID](https://permid.org/)
|
|
51
|
-
* * `FIGI`: [FIGI](https://www.openfigi.com/about/figi)
|
|
43
|
+
* The instrument data
|
|
52
44
|
*/
|
|
53
45
|
id: {
|
|
54
46
|
[key: string]: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AdaptableStyle } from '../../../types';
|
|
2
|
+
export interface RowHighlightInfo {
|
|
3
|
+
/**
|
|
4
|
+
* Primary key value for the row to be highlighted
|
|
5
|
+
*/
|
|
6
|
+
primaryKeyValue: any;
|
|
7
|
+
/**
|
|
8
|
+
* Timeout after which the highlight is removed
|
|
9
|
+
*/
|
|
10
|
+
timeout?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Highlight style
|
|
13
|
+
*/
|
|
14
|
+
highlightStyle: AdaptableStyle;
|
|
15
|
+
}
|
|
@@ -22,8 +22,10 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
22
22
|
export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
23
23
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
24
24
|
export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'Theme' | 'ToolPanel';
|
|
25
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
25
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'CustomSettingsPanelModule';
|
|
26
26
|
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
27
27
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
28
28
|
__subType?: true;
|
|
29
29
|
}) | Literals;
|
|
30
|
+
export declare type AdaptableQLModules = AdaptableQLModule[];
|
|
31
|
+
export declare type AdaptableQLModule = 'Filter' | 'Query';
|
|
@@ -20,10 +20,12 @@ export declare type FlashingCellRule = XOR<{
|
|
|
20
20
|
export interface FlashingCellState extends ConfigState {
|
|
21
21
|
/**
|
|
22
22
|
* Flashing Cell Definitions - will colour cells/rows when rule is met
|
|
23
|
-
* @defaultValue null
|
|
24
23
|
*/
|
|
25
24
|
FlashingCellDefinitions?: FlashingCellDefinition[];
|
|
26
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* What should flash? row, cell or aggregated cell
|
|
28
|
+
*/
|
|
27
29
|
export declare type FlashTargetTypes = 'row' | 'cell' | 'aggFuncCell';
|
|
28
30
|
/**
|
|
29
31
|
* The Flashing Cell Definition
|
|
@@ -39,7 +39,7 @@ export interface FreeTextColumn extends AdaptableObject {
|
|
|
39
39
|
* Whether Column is String, Number, Boolean or Date
|
|
40
40
|
* @defaultValue 'String'
|
|
41
41
|
*/
|
|
42
|
-
DataType
|
|
42
|
+
DataType: 'String' | 'Number' | 'Boolean' | 'Date';
|
|
43
43
|
/**
|
|
44
44
|
* Additional optional properties for Column (e.g. filterable, resizable)
|
|
45
45
|
*/
|
|
@@ -7,12 +7,10 @@ import { ColumnSort } from './Common/ColumnSort';
|
|
|
7
7
|
export interface LayoutState extends ConfigState {
|
|
8
8
|
/**
|
|
9
9
|
* Layout which will be loaded when AdapTable starts - must match `Name` property in Layout
|
|
10
|
-
* @defaultValue ''
|
|
11
10
|
*/
|
|
12
11
|
CurrentLayout?: string;
|
|
13
12
|
/**
|
|
14
13
|
* Collection of Layout objects - listed in Layout toolbar and Tool Panel
|
|
15
|
-
* @defaultValue null
|
|
16
14
|
*/
|
|
17
15
|
Layouts?: Layout[];
|
|
18
16
|
}
|
|
@@ -23,7 +23,7 @@ import { QueryState } from './QueryState';
|
|
|
23
23
|
*/
|
|
24
24
|
export interface PredefinedConfig {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Collection of `AlertDefinitions` which will fire Alerts when the rule is met
|
|
27
27
|
*/
|
|
28
28
|
Alert?: AlertState;
|
|
29
29
|
/**
|
|
@@ -58,6 +58,10 @@ export interface PredefinedConfig {
|
|
|
58
58
|
* Stores Filters in AdapTable - both System and Column (predicate) Filters
|
|
59
59
|
*/
|
|
60
60
|
Filter?: FilterState;
|
|
61
|
+
/***
|
|
62
|
+
* Objects which define which cells flash in response to data changes
|
|
63
|
+
*/
|
|
64
|
+
FlashingCell?: FlashingCellState;
|
|
61
65
|
/**
|
|
62
66
|
* Supplies a collection of *FormatColumn* objects that will style an entire column in a single way (and not subject to a rule like with Conditional Style).
|
|
63
67
|
*/
|
|
@@ -98,5 +102,4 @@ export interface PredefinedConfig {
|
|
|
98
102
|
* Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)
|
|
99
103
|
*/
|
|
100
104
|
ToolPanel?: ToolPanelState;
|
|
101
|
-
FlashingCell?: FlashingCellState;
|
|
102
105
|
}
|
|
@@ -6,7 +6,8 @@ import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPu
|
|
|
6
6
|
import { Glue42State, Glue42Report } from './Glue42State';
|
|
7
7
|
import { OpenFinState, OpenFinReport } from './OpenFinState';
|
|
8
8
|
import { AdaptableAlert } from './Common/AdaptableAlert';
|
|
9
|
-
import { CellHighlightInfo
|
|
9
|
+
import { CellHighlightInfo } from './Common/CellHighlightInfo';
|
|
10
|
+
import { RowHighlightInfo } from './Common/RowHighlightInfo';
|
|
10
11
|
import { SystemStatusMessageInfo } from './Common/SystemStatusMessageInfo';
|
|
11
12
|
import { CachedQuery } from './QueryState';
|
|
12
13
|
import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
|
|
@@ -37,19 +37,25 @@ exports.ApplicationReducer = (state = initialState, action) => {
|
|
|
37
37
|
const actionTypedAdd = action;
|
|
38
38
|
applicationDataEntries = [].concat(state.ApplicationDataEntries);
|
|
39
39
|
applicationDataEntries.push(actionTypedAdd.applicationDataEntry);
|
|
40
|
-
return Object.assign({}, state, {
|
|
40
|
+
return Object.assign({}, state, {
|
|
41
|
+
ApplicationDataEntries: applicationDataEntries,
|
|
42
|
+
});
|
|
41
43
|
case exports.APPLICATION_DATA_ENTRY_EDIT:
|
|
42
44
|
const actionTypedUpdate = action;
|
|
43
45
|
applicationDataEntries = [].concat(state.ApplicationDataEntries);
|
|
44
46
|
index = applicationDataEntries.findIndex((fe) => fe.Key == actionTypedUpdate.applicationDataEntry.Key);
|
|
45
47
|
applicationDataEntries[index] = actionTypedUpdate.applicationDataEntry;
|
|
46
|
-
return Object.assign({}, state, {
|
|
48
|
+
return Object.assign({}, state, {
|
|
49
|
+
ApplicationDataEntries: applicationDataEntries,
|
|
50
|
+
});
|
|
47
51
|
case exports.APPLICATION_DATA_ENTRY_DELETE:
|
|
48
52
|
const actionTypedDelete = action;
|
|
49
53
|
applicationDataEntries = [].concat(state.ApplicationDataEntries);
|
|
50
54
|
index = applicationDataEntries.findIndex((a) => a.Key == actionTypedDelete.applicationDataEntry.Key);
|
|
51
55
|
applicationDataEntries.splice(index, 1);
|
|
52
|
-
return Object.assign({}, state, {
|
|
56
|
+
return Object.assign({}, state, {
|
|
57
|
+
ApplicationDataEntries: applicationDataEntries,
|
|
58
|
+
});
|
|
53
59
|
default:
|
|
54
60
|
return state;
|
|
55
61
|
}
|
|
@@ -64,28 +64,24 @@ exports.FlashingCellReducer = (state = initialState, action) => {
|
|
|
64
64
|
let flashingCellDefinitions;
|
|
65
65
|
switch (action.type) {
|
|
66
66
|
case exports.FLASHING_ALERT_DEFINITION_SET: {
|
|
67
|
-
const actionFlashingCellDefinition = action
|
|
68
|
-
.flashingCellDefinitions;
|
|
67
|
+
const actionFlashingCellDefinition = action.flashingCellDefinitions;
|
|
69
68
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: actionFlashingCellDefinition });
|
|
70
69
|
}
|
|
71
70
|
case exports.FLASHING_ALERT_DEFINITION_ADD: {
|
|
72
|
-
const actionFlashingCellDefinition = action
|
|
73
|
-
.flashingCellDefinition;
|
|
71
|
+
const actionFlashingCellDefinition = action.flashingCellDefinition;
|
|
74
72
|
AdaptableHelper_1.default.addUuidAndSource(actionFlashingCellDefinition);
|
|
75
73
|
flashingCellDefinitions = [].concat(state.FlashingCellDefinitions);
|
|
76
74
|
flashingCellDefinitions.push(actionFlashingCellDefinition);
|
|
77
75
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: flashingCellDefinitions });
|
|
78
76
|
}
|
|
79
77
|
case exports.FLASHING_ALERT_DEFINITION_EDIT: {
|
|
80
|
-
const actionFlashingCellDefinition = action
|
|
81
|
-
.flashingCellDefinition;
|
|
78
|
+
const actionFlashingCellDefinition = action.flashingCellDefinition;
|
|
82
79
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.map((abObject) => abObject.Uuid === actionFlashingCellDefinition.Uuid
|
|
83
80
|
? actionFlashingCellDefinition
|
|
84
81
|
: abObject) });
|
|
85
82
|
}
|
|
86
83
|
case exports.FLASHING_ALERT_DEFINITION_DELETE: {
|
|
87
|
-
const actionFlashingCellDefinition = action
|
|
88
|
-
.flashingCellDefinition;
|
|
84
|
+
const actionFlashingCellDefinition = action.flashingCellDefinition;
|
|
89
85
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.filter((abObject) => abObject.Uuid !== actionFlashingCellDefinition.Uuid) });
|
|
90
86
|
}
|
|
91
87
|
case exports.FLASHING_ALERT_DEFINITION_SUSPEND: {
|
|
@@ -177,7 +177,9 @@ exports.GridReducer = (state = initialState, action) => {
|
|
|
177
177
|
const removeColumn = action.column;
|
|
178
178
|
return Object.assign(Object.assign({}, state), { Columns: state.Columns.filter((abObject) => abObject.Uuid !== removeColumn.Uuid) });
|
|
179
179
|
case exports.GRID_SET_SORT:
|
|
180
|
-
return Object.assign({}, state, {
|
|
180
|
+
return Object.assign({}, state, {
|
|
181
|
+
ColumnSorts: action.columnSorts,
|
|
182
|
+
});
|
|
181
183
|
case exports.GRID_CLEAR_SORT:
|
|
182
184
|
return Object.assign({}, state, { ColumnSorts: undefined });
|
|
183
185
|
case exports.GRID_SET_SELECTED_CELLS:
|