@adaptabletools/adaptable 10.0.4-canary.4 → 11.0.0-canary.2
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/LICENSE.md +1 -1
- package/agGrid.d.ts +2 -2
- package/base.css +216 -47
- package/bundle.cjs.js +118 -113
- package/index.css +257 -49
- package/package.json +4 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -7
- package/src/AdaptableOptions/AdaptableOptions.d.ts +19 -3
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
- package/src/AdaptableOptions/DashboardOptions.d.ts +7 -9
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +2 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
- package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
- package/src/AdaptableOptions/NotificationsOptions.d.ts +2 -8
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +87 -0
- package/src/{Api/ChartApi.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +34 -0
- package/src/Api/AdaptableApi.d.ts +9 -7
- package/src/Api/AlertApi.d.ts +4 -79
- package/src/Api/ChartingApi.d.ts +9 -0
- package/src/Api/{Events/FlashingAlertFired.js → ChartingApi.js} +0 -0
- package/src/Api/ColumnApi.d.ts +11 -1
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/DataChangeHistoryApi.d.ts +4 -0
- package/src/Api/EventApi.d.ts +8 -8
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
- package/src/Api/{SparklineColumnApi.js → Events/FlashingCellDisplayed.js} +0 -0
- package/src/Api/Events/GridDataChanged.d.ts +3 -1
- package/src/Api/Events/SearchChanged.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +89 -0
- package/src/{PredefinedConfig/ChartState.js → Api/FlashingCellApi.js} +0 -0
- package/src/Api/GridApi.d.ts +28 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +4 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
- package/src/Api/Implementation/AlertApiImpl.js +40 -107
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ChartingApiImpl.js +10 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ColumnApiImpl.js +9 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +0 -21
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +24 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +111 -0
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +13 -8
- package/src/Api/Implementation/GridApiImpl.js +39 -17
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -7
- package/src/Api/Implementation/InternalApiImpl.js +5 -18
- package/src/Api/Implementation/LayoutApiImpl.js +12 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
- package/src/Api/Implementation/PluginsApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/QueryApiImpl.js +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +5 -5
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +4 -9
- package/src/Api/PluginsApi.d.ts +0 -2
- package/src/Api/SmartEditApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -4
- package/src/PredefinedConfig/AlertState.d.ts +13 -54
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
- package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.d.ts → AdaptableFlashingCell.d.ts} +6 -6
- package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.js → AdaptableFlashingCell.js} +0 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
- package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +16 -20
- package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
- package/src/PredefinedConfig/Common/Schedule.js +0 -14
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DashboardState.d.ts +6 -5
- package/src/PredefinedConfig/FlashingCellState.d.ts +65 -0
- package/src/PredefinedConfig/{SparklineColumnState.js → FlashingCellState.js} +0 -0
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +2 -2
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -10
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -5
- package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +17 -8
- package/src/PredefinedConfig/ThemeState.d.ts +2 -1
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
- package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +3 -13
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +55 -0
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +100 -0
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +1 -3
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -25
- package/src/Redux/ActionsReducers/SystemRedux.js +94 -60
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +90 -66
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -3
- package/src/Strategy/AlertModule.d.ts +14 -5
- package/src/Strategy/AlertModule.js +40 -123
- package/src/Strategy/CalculatedColumnModule.d.ts +28 -0
- package/src/Strategy/CalculatedColumnModule.js +34 -0
- package/src/Strategy/ChartingModule.d.ts +7 -0
- package/src/Strategy/ChartingModule.js +15 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +12 -0
- package/src/Strategy/ConditionalStyleModule.js +28 -0
- package/src/Strategy/CustomSortModule.d.ts +12 -1
- package/src/Strategy/CustomSortModule.js +26 -0
- package/src/Strategy/DashboardModule.d.ts +0 -1
- package/src/Strategy/DashboardModule.js +1 -7
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSourceModule.d.ts +9 -1
- package/src/Strategy/DataSourceModule.js +28 -0
- package/src/Strategy/ExportModule.d.ts +12 -0
- package/src/Strategy/ExportModule.js +43 -0
- package/src/Strategy/FilterModule.d.ts +8 -1
- package/src/Strategy/FilterModule.js +28 -0
- package/src/Strategy/FlashingCellModule.d.ts +33 -0
- package/src/Strategy/FlashingCellModule.js +219 -0
- package/src/Strategy/FormatColumnModule.d.ts +11 -1
- package/src/Strategy/FormatColumnModule.js +35 -0
- package/src/Strategy/FreeTextColumnModule.d.ts +9 -1
- package/src/Strategy/FreeTextColumnModule.js +45 -0
- package/src/Strategy/GridInfoModule.js +58 -36
- package/src/Strategy/Interface/IModule.d.ts +70 -1
- package/src/Strategy/LayoutModule.js +15 -3
- package/src/Strategy/PlusMinusModule.d.ts +11 -0
- package/src/Strategy/PlusMinusModule.js +34 -0
- package/src/Strategy/QueryModule.d.ts +20 -0
- package/src/Strategy/QueryModule.js +25 -0
- package/src/Strategy/ScheduleModule.d.ts +17 -1
- package/src/Strategy/ScheduleModule.js +148 -2
- package/src/Strategy/SetingsPanelModule.d.ts +11 -0
- package/src/Strategy/SetingsPanelModule.js +30 -0
- package/src/Strategy/ShortcutModule.d.ts +11 -0
- package/src/Strategy/ShortcutModule.js +22 -0
- package/src/Strategy/ToolPanelModule.js +1 -1
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +8 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +15 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.d.ts +4 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +19 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +9 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +9 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +22 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.js +26 -0
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExpressionViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +10 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +6 -0
- package/src/Strategy/Utilities/getRuleViewItems.js +15 -0
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getScopeViewItems.js +20 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getStyleViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/getStyleViewItems.js +15 -0
- package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
- package/src/Utilities/Constants/ConfigConstants.js +1 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
- package/src/Utilities/Constants/GeneralConstants.js +1 -12
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -2
- package/src/Utilities/Constants/ModuleConstants.js +4 -3
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +26 -18
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +7 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +35 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
- package/src/Utilities/Helpers/StyleHelper.js +4 -1
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- package/src/Utilities/MenuItem.d.ts +1 -1
- package/src/Utilities/MenuItem.js +2 -2
- package/src/Utilities/ObjectFactory.d.ts +6 -17
- package/src/Utilities/ObjectFactory.js +14 -84
- package/src/Utilities/Services/AlertService.d.ts +3 -3
- package/src/Utilities/Services/AlertService.js +11 -17
- package/src/Utilities/Services/EntitlementService.d.ts +1 -0
- package/src/Utilities/Services/EntitlementService.js +9 -1
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -7
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +1 -0
- package/src/Utilities/Services/ModuleService.js +13 -17
- package/src/Utilities/Services/TeamSharingService.js +3 -4
- package/src/View/AdaptableView.js +3 -9
- package/src/View/AdaptableViewFactory.js +0 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +6 -6
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/AlertEmptyView.d.ts +5 -0
- package/src/View/Alert/AlertEmptyView.js +16 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +10 -5
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +8 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -7
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -6
- package/src/View/Alert/Wizard/AlertWizard.js +20 -6
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +5 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +5 -4
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.d.ts +2 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +2 -0
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +16 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +17 -40
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +20 -3
- package/src/View/CellSummary/CellSummaryPopup.js +2 -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.d.ts +14 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +82 -0
- package/src/View/Components/AdaptableObjectList/index.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/index.js +5 -0
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.js +3 -2
- package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonEdit.js +4 -6
- package/src/View/Components/Buttons/ButtonShare.js +3 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +1 -1
- package/src/View/Components/Buttons/{SuspendToggleButton.d.ts → SuspendToggleButton/SuspendToggleButton.d.ts} +5 -3
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +19 -0
- package/src/View/Components/Buttons/SuspendToggleButton/index.d.ts +1 -0
- package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -0
- package/src/View/Components/ExternalRenderer.d.ts +14 -0
- package/src/View/Components/ExternalRenderer.js +32 -0
- package/src/View/Components/FilterForm/QuickFilterForm.js +8 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +4 -4
- package/src/View/Components/Panels/PanelWithImage.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +20 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +120 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +35 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +9 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +67 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.d.ts +6 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +13 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +63 -0
- package/src/View/Components/Popups/{PopupContext.d.ts → AdaptablePopup/PopupContext.d.ts} +0 -0
- package/src/View/Components/Popups/{PopupContext.js → AdaptablePopup/PopupContext.js} +0 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +10 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +22 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +7 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +29 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.js +28 -0
- package/src/View/Components/Popups/AdaptablePopup/index.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/index.js +5 -0
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +12 -4
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +6 -6
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +19 -5
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -4
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +18 -3
- package/src/View/Dashboard/Dashboard.d.ts +0 -1
- package/src/View/Dashboard/Dashboard.js +13 -83
- package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
- package/src/View/Dashboard/DashboardPopup.js +38 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -4
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +3 -3
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +3 -3
- package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +1 -2
- package/src/View/DataSource/Wizard/DataSourceWizard.js +17 -2
- package/src/View/Export/ReportExportDropdown.d.ts +5 -0
- package/src/View/Export/ReportExportDropdown.js +37 -0
- package/src/View/Export/Wizard/NewReportWizard.js +15 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -2
- package/src/View/FlashingCell/FlashingCellStyle.d.ts +7 -0
- package/src/View/FlashingCell/FlashingCellStyle.js +20 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.d.ts → FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts} +3 -3
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.js → FlashingCell/Wizard/FlashingCellRulesWizardSection.js} +14 -14
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.d.ts → FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts} +1 -2
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.js → FlashingCell/Wizard/FlashingCellScopeWizardSection.js} +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +10 -0
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +66 -0
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +15 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.js → FlashingCell/Wizard/FlashingCellStyleWizardSection.js} +17 -16
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.d.ts +6 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +97 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.d.ts +3 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +30 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +18 -14
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +17 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +15 -10
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +19 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
- package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +22 -16
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutPopup.js +4 -6
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +3 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.d.ts +1 -2
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +18 -4
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +17 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +7 -8
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +9 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.d.ts +5 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +59 -48
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +9 -9
- package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +1 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +75 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -6
- package/src/View/Shortcut/Wizard/ShortcutWizard.d.ts +1 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +31 -4
- package/src/View/Shortcut/shortcutKeys.js +0 -1
- package/src/View/SmartEdit/SmartEditPopup.js +2 -2
- package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +62 -0
- package/src/View/StateManagement/StateManagementPopup.js +16 -15
- package/src/View/SystemStatus/SystemStatusPopup.js +3 -3
- package/src/View/TeamSharing/TeamSharingPopup.js +2 -2
- package/src/View/Theme/ThemePopup.js +5 -7
- package/src/View/UIHelper.d.ts +3 -5
- package/src/View/UIHelper.js +35 -49
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +5 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -2
- package/src/agGrid/Adaptable.d.ts +24 -11
- package/src/agGrid/Adaptable.js +227 -81
- package/src/agGrid/agGridHelper.d.ts +2 -2
- package/src/agGrid/agGridHelper.js +21 -6
- package/src/agGrid/agGridMenuHelper.js +11 -7
- package/src/components/ApplicationIcon.d.ts +5 -0
- package/src/components/ApplicationIcon.js +13 -0
- package/src/components/Dashboard/Dashboard.js +1 -1
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dialog/index.d.ts +4 -1
- package/src/components/Dialog/index.js +10 -3
- package/src/components/DropdownButton/index.d.ts +1 -0
- package/src/components/DropdownButton/index.js +2 -2
- package/src/components/EllipsisContainer/index.js +1 -1
- package/src/components/EmptyContent/index.js +2 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/PopupWithFooter.js +2 -7
- package/src/components/StylePreview.d.ts +8 -0
- package/src/components/StylePreview.js +11 -0
- package/src/components/Tag/Tag.d.ts +3 -0
- package/src/components/Tag/Tag.js +11 -0
- package/src/components/Tag/index.d.ts +1 -0
- package/src/components/Tag/index.js +5 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/ToggleButton/index.d.ts +1 -0
- package/src/components/ToggleButton/index.js +8 -4
- package/src/components/WindowModal/WindowModal.d.ts +23 -0
- package/src/components/WindowModal/WindowModal.js +102 -0
- package/src/components/WindowModal/index.d.ts +1 -0
- package/src/components/WindowModal/index.js +4 -0
- package/src/components/icons/column-add.d.ts +3 -0
- package/src/components/icons/column-add.js +10 -0
- package/src/components/icons/index.js +6 -0
- package/src/components/icons/menu.d.ts +3 -0
- package/src/components/icons/menu.js +7 -0
- package/src/components/icons/state-management.js +1 -1
- package/src/components/icons/tool-panel.d.ts +3 -0
- package/src/components/icons/tool-panel.js +7 -0
- package/src/components/utils/useDraggable.d.ts +3 -1
- package/src/components/utils/useDraggable.js +15 -2
- package/src/metamodel/adaptable.metamodel.d.ts +93 -105
- package/src/metamodel/adaptable.metamodel.js +425 -455
- package/src/types.d.ts +10 -11
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
- package/src/Api/ChartApi.d.ts +0 -20
- package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
- package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
- package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
- package/src/Api/SparklineColumnApi.d.ts +0 -23
- package/src/PredefinedConfig/ChartState.d.ts +0 -144
- package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
- package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
- package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
- package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
- package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
- package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
- package/src/View/Alert/AlertPopup.d.ts +0 -42
- package/src/View/Alert/AlertPopup.js +0 -205
- package/src/View/Alert/FlashingAlertEntityRow.d.ts +0 -7
- package/src/View/Alert/FlashingAlertEntityRow.js +0 -22
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.d.ts +0 -10
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js +0 -60
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.d.ts +0 -10
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.d.ts +0 -6
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.js +0 -89
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.d.ts +0 -9
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.js +0 -28
- package/src/View/CalculatedColumn/CalculatedColumnPopup.d.ts +0 -25
- package/src/View/CalculatedColumn/CalculatedColumnPopup.js +0 -117
- package/src/View/Components/Buttons/SuspendToggleButton.js +0 -17
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
- package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
- package/src/View/Components/Popups/AdaptableChart.js +0 -40
- package/src/View/Components/Popups/AdaptablePopup.d.ts +0 -23
- package/src/View/Components/Popups/AdaptablePopup.js +0 -59
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.d.ts +0 -5
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.js +0 -26
- package/src/View/ConditionalStyle/ConditionalStylePopup.d.ts +0 -30
- package/src/View/ConditionalStyle/ConditionalStylePopup.js +0 -144
- package/src/View/CustomSort/CustomSortEntityRow.d.ts +0 -12
- package/src/View/CustomSort/CustomSortEntityRow.js +0 -32
- package/src/View/CustomSort/CustomSortPopup.d.ts +0 -27
- package/src/View/CustomSort/CustomSortPopup.js +0 -138
- package/src/View/DataSource/DataSourceEntityRow.d.ts +0 -12
- package/src/View/DataSource/DataSourceEntityRow.js +0 -29
- package/src/View/DataSource/DataSourcePopup.d.ts +0 -28
- package/src/View/DataSource/DataSourcePopup.js +0 -97
- package/src/View/Export/ExportPopup.d.ts +0 -34
- package/src/View/Export/ExportPopup.js +0 -139
- package/src/View/Export/ReportEntityRow.d.ts +0 -10
- package/src/View/Export/ReportEntityRow.js +0 -49
- package/src/View/Export/Wizard/ReportWizard.d.ts +0 -7
- package/src/View/Export/Wizard/ReportWizard.js +0 -50
- package/src/View/Filter/FilterEntityRow.d.ts +0 -12
- package/src/View/Filter/FilterEntityRow.js +0 -20
- package/src/View/Filter/FilterPopup.d.ts +0 -20
- package/src/View/Filter/FilterPopup.js +0 -50
- package/src/View/FormatColumn/FormatColumnEntityRow.d.ts +0 -9
- package/src/View/FormatColumn/FormatColumnEntityRow.js +0 -103
- package/src/View/FormatColumn/FormatColumnPopup.d.ts +0 -27
- package/src/View/FormatColumn/FormatColumnPopup.js +0 -133
- package/src/View/FreeTextColumn/FreeTextColumnEntityRow.d.ts +0 -5
- package/src/View/FreeTextColumn/FreeTextColumnEntityRow.js +0 -31
- package/src/View/FreeTextColumn/FreeTextColumnPopup.d.ts +0 -25
- package/src/View/FreeTextColumn/FreeTextColumnPopup.js +0 -118
- package/src/View/PlusMinus/PlusMinusEntityRow.d.ts +0 -9
- package/src/View/PlusMinus/PlusMinusEntityRow.js +0 -24
- package/src/View/PlusMinus/PlusMinusPopup.d.ts +0 -30
- package/src/View/PlusMinus/PlusMinusPopup.js +0 -124
- package/src/View/Query/NamedQueryEntityRow.d.ts +0 -8
- package/src/View/Query/NamedQueryEntityRow.js +0 -21
- package/src/View/Query/QueryPopup.d.ts +0 -28
- package/src/View/Query/QueryPopup.js +0 -114
- package/src/View/Schedule/ScheduleEntityRow.d.ts +0 -5
- package/src/View/Schedule/ScheduleEntityRow.js +0 -58
- package/src/View/Schedule/SchedulePopup.d.ts +0 -58
- package/src/View/Schedule/SchedulePopup.js +0 -317
- package/src/View/Shortcut/ShortcutEntityRow.d.ts +0 -17
- package/src/View/Shortcut/ShortcutEntityRow.js +0 -47
- package/src/View/Shortcut/ShortcutPopup.d.ts +0 -30
- package/src/View/Shortcut/ShortcutPopup.js +0 -121
- package/src/components/ChartContainer/index.d.ts +0 -15
- package/src/components/ChartContainer/index.js +0 -22
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlashingCellReducer = exports.FlashingCellReady = exports.FlashingCellDefinitionUnSuspend = exports.FlashingCellDefinitionSuspend = exports.FlashingCellDefinitionDelete = exports.FlashingCellDefinitionEdit = exports.FlashingCellDefinitionSet = exports.FlashingCellDefinitionAdd = exports.FLASHING_ALERT_DEFINITION_SET = exports.FLASHING_CELL_READY = exports.FLASHING_ALERT_DEFINITION_UN_SUSPEND = exports.FLASHING_ALERT_DEFINITION_SUSPEND = exports.FLASHING_ALERT_DEFINITION_DELETE = exports.FLASHING_ALERT_DEFINITION_EDIT = exports.FLASHING_ALERT_DEFINITION_ADD = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
6
|
+
const utils_1 = require("./utils");
|
|
7
|
+
/**
|
|
8
|
+
* @ReduxAction A Flashing Alert Definition has been added
|
|
9
|
+
*/
|
|
10
|
+
exports.FLASHING_ALERT_DEFINITION_ADD = 'FLASHING_ALERT_DEFINITION_ADD';
|
|
11
|
+
/**
|
|
12
|
+
* @ReduxAction A Flashing Alert Definition has been edited
|
|
13
|
+
*/
|
|
14
|
+
exports.FLASHING_ALERT_DEFINITION_EDIT = 'FLASHING_ALERT_DEFINITION_EDIT';
|
|
15
|
+
/**
|
|
16
|
+
* @ReduxAction A Flashing Alert Definition has been deleted
|
|
17
|
+
*/
|
|
18
|
+
exports.FLASHING_ALERT_DEFINITION_DELETE = 'FLASHING_ALERT_DEFINITION_DELETE';
|
|
19
|
+
/**
|
|
20
|
+
* @ReduxAction Flashing Alert Definition Style is suspended
|
|
21
|
+
*/
|
|
22
|
+
exports.FLASHING_ALERT_DEFINITION_SUSPEND = 'FLASHING_ALERT_DEFINITION_SUSPEND';
|
|
23
|
+
/**
|
|
24
|
+
* @ReduxAction Flashing Alert Definition is un-suspended, or activated
|
|
25
|
+
*/
|
|
26
|
+
exports.FLASHING_ALERT_DEFINITION_UN_SUSPEND = 'FLASHING_ALERT_DEFINITION_UN_SUSPEND';
|
|
27
|
+
/**
|
|
28
|
+
* @ReduxAction Flashing cell Module is ready
|
|
29
|
+
*/
|
|
30
|
+
exports.FLASHING_CELL_READY = 'FLASHING_CELL_READY';
|
|
31
|
+
exports.FLASHING_ALERT_DEFINITION_SET = 'FLASHING_ALERT_DEFINITION_SET';
|
|
32
|
+
exports.FlashingCellDefinitionAdd = (flashingCellDefinition) => ({
|
|
33
|
+
type: exports.FLASHING_ALERT_DEFINITION_ADD,
|
|
34
|
+
flashingCellDefinition,
|
|
35
|
+
});
|
|
36
|
+
exports.FlashingCellDefinitionSet = (flashingCellDefinitions) => ({
|
|
37
|
+
type: exports.FLASHING_ALERT_DEFINITION_SET,
|
|
38
|
+
flashingCellDefinitions,
|
|
39
|
+
});
|
|
40
|
+
exports.FlashingCellDefinitionEdit = (flashingCellDefinition) => ({
|
|
41
|
+
type: exports.FLASHING_ALERT_DEFINITION_EDIT,
|
|
42
|
+
flashingCellDefinition,
|
|
43
|
+
});
|
|
44
|
+
exports.FlashingCellDefinitionDelete = (flashingCellDefinition) => ({
|
|
45
|
+
type: exports.FLASHING_ALERT_DEFINITION_DELETE,
|
|
46
|
+
flashingCellDefinition,
|
|
47
|
+
});
|
|
48
|
+
exports.FlashingCellDefinitionSuspend = (flashingCellDefinition) => ({
|
|
49
|
+
type: exports.FLASHING_ALERT_DEFINITION_SUSPEND,
|
|
50
|
+
flashingCellDefinition,
|
|
51
|
+
});
|
|
52
|
+
exports.FlashingCellDefinitionUnSuspend = (flashingCellDefinition) => ({
|
|
53
|
+
type: exports.FLASHING_ALERT_DEFINITION_UN_SUSPEND,
|
|
54
|
+
flashingCellDefinition,
|
|
55
|
+
});
|
|
56
|
+
exports.FlashingCellReady = (alertState) => ({
|
|
57
|
+
type: exports.FLASHING_CELL_READY,
|
|
58
|
+
alertState,
|
|
59
|
+
});
|
|
60
|
+
const initialState = {
|
|
61
|
+
FlashingCellDefinitions: [],
|
|
62
|
+
};
|
|
63
|
+
exports.FlashingCellReducer = (state = initialState, action) => {
|
|
64
|
+
let flashingCellDefinitions;
|
|
65
|
+
switch (action.type) {
|
|
66
|
+
case exports.FLASHING_ALERT_DEFINITION_SET: {
|
|
67
|
+
const actionFlashingCellDefinition = action
|
|
68
|
+
.flashingCellDefinitions;
|
|
69
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: actionFlashingCellDefinition });
|
|
70
|
+
}
|
|
71
|
+
case exports.FLASHING_ALERT_DEFINITION_ADD: {
|
|
72
|
+
const actionFlashingCellDefinition = action
|
|
73
|
+
.flashingCellDefinition;
|
|
74
|
+
AdaptableHelper_1.default.addUuidAndSource(actionFlashingCellDefinition);
|
|
75
|
+
flashingCellDefinitions = [].concat(state.FlashingCellDefinitions);
|
|
76
|
+
flashingCellDefinitions.push(actionFlashingCellDefinition);
|
|
77
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: flashingCellDefinitions });
|
|
78
|
+
}
|
|
79
|
+
case exports.FLASHING_ALERT_DEFINITION_EDIT: {
|
|
80
|
+
const actionFlashingCellDefinition = action
|
|
81
|
+
.flashingCellDefinition;
|
|
82
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.map((abObject) => abObject.Uuid === actionFlashingCellDefinition.Uuid
|
|
83
|
+
? actionFlashingCellDefinition
|
|
84
|
+
: abObject) });
|
|
85
|
+
}
|
|
86
|
+
case exports.FLASHING_ALERT_DEFINITION_DELETE: {
|
|
87
|
+
const actionFlashingCellDefinition = action
|
|
88
|
+
.flashingCellDefinition;
|
|
89
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.filter((abObject) => abObject.Uuid !== actionFlashingCellDefinition.Uuid) });
|
|
90
|
+
}
|
|
91
|
+
case exports.FLASHING_ALERT_DEFINITION_SUSPEND: {
|
|
92
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: utils_1.changeIsSuspendInList(action.flashingCellDefinition, state.FlashingCellDefinitions, true) });
|
|
93
|
+
}
|
|
94
|
+
case exports.FLASHING_ALERT_DEFINITION_UN_SUSPEND: {
|
|
95
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: utils_1.changeIsSuspendInList(action.flashingCellDefinition, state.FlashingCellDefinitions, false) });
|
|
96
|
+
}
|
|
97
|
+
default:
|
|
98
|
+
return state;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
@@ -53,9 +53,7 @@ export interface PopupShowConfirmationAction extends Redux.Action {
|
|
|
53
53
|
}
|
|
54
54
|
export interface PopupClearParamAction extends Redux.Action {
|
|
55
55
|
}
|
|
56
|
-
export
|
|
57
|
-
}
|
|
58
|
-
export declare const PopupShowScreen: (componentModule: AdaptableModule, componentName: string, params?: ModuleParams, popupProps?: {
|
|
56
|
+
export declare const PopupShowScreen: (componentModule?: AdaptableModule, componentName?: string, params?: ModuleParams, popupProps?: {
|
|
59
57
|
[key: string]: any;
|
|
60
58
|
}) => PopupShowScreenAction;
|
|
61
59
|
export declare const PopupHideScreen: () => PopupHideScreenAction;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
2
|
import { SystemState } from '../../PredefinedConfig/SystemState';
|
|
3
|
-
import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
|
|
3
|
+
import { CellHighlightInfo, RowHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
|
|
4
4
|
import { PreviewInfo } from '../../Utilities/Interface/Preview';
|
|
5
|
-
import { ChartVisibility } from '../../PredefinedConfig/Common/ChartEnums';
|
|
6
5
|
import { ExportCustomDestinationPopup, Report } from '../../PredefinedConfig/ExportState';
|
|
7
|
-
import { ChartData } from '../../PredefinedConfig/ChartState';
|
|
8
6
|
import { BulkUpdateValidationResult } from '../../Strategy/Interface/IBulkUpdateModule';
|
|
9
7
|
import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
|
|
10
8
|
import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
|
|
11
9
|
import { SystemStatusMessageInfo } from '../../PredefinedConfig/Common/SystemStatusMessageInfo';
|
|
12
10
|
import { CachedQuery } from '../../PredefinedConfig/QueryState';
|
|
13
|
-
import {
|
|
11
|
+
import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFlashingCell';
|
|
14
12
|
import { MathOperation, SummaryOperation } from '../../PredefinedConfig/Common/Enums';
|
|
15
13
|
import { DataChangedInfo } from '../../PredefinedConfig/Common/DataChangedInfo';
|
|
16
14
|
export declare const FLASHING_ALERT_ROW_KEY = "__ROW";
|
|
@@ -34,11 +32,12 @@ export declare const SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = "SYSTEM_BULK_UPDA
|
|
|
34
32
|
export declare const SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = "SYSTEM_BULK_UPDATE_SET_VALID_SELECTION";
|
|
35
33
|
export declare const SYSTEM_BULK_UPDATE_SET_PREVIEW = "SYSTEM_BULK_UPDATE_SET_PREVIEW";
|
|
36
34
|
export declare const SYSTEM_BULK_UPDATE_CHANGE_VALUE = "SYSTEM_BULK_UPDATE_CHANGE_VALUE";
|
|
37
|
-
export declare const SYSTEM_CHART_SET_CHART_DATA = "SYSTEM_CHART_SET_CHART_DATA";
|
|
38
|
-
export declare const SYSTEM_CHART_SET_CHART_VISIBILITY = "SYSTEM_CHART_SET_CHART_VISIBILITY";
|
|
39
35
|
export declare const SYSTEM_HIGHLIGHT_CELL_ADD = "SYSTEM_HIGHLIGHT_CELL_ADD";
|
|
40
36
|
export declare const SYSTEM_HIGHLIGHT_CELL_DELETE = "SYSTEM_HIGHLIGHT_CELL_DELETE";
|
|
41
37
|
export declare const SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = "SYSTEM_HIGHLIGHT_CELL_DELETE_ALL";
|
|
38
|
+
export declare const SYSTEM_HIGHLIGHT_ROW_ADD = "SYSTEM_HIGHLIGHT_ROW_ADD";
|
|
39
|
+
export declare const SYSTEM_HIGHLIGHT_ROW_DELETE = "SYSTEM_HIGHLIGHT_ROW_DELETE";
|
|
40
|
+
export declare const SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = "SYSTEM_HIGHLIGHT_ROW_DELETE_ALL";
|
|
42
41
|
export declare const SYSTEM_SET_NEW_COLUMN_LIST_ORDER = "SYSTEM_SET_NEW_COLUMN_LIST_ORDER";
|
|
43
42
|
export declare const SYSTEM_SET_LAST_APPLIED_SHORTCUT = "SYSTEM_SET_LAST_APPLIED_SHORTCUT";
|
|
44
43
|
export declare const SYSTEM_CACHED_QUERY_ADD = "SYSTEM_CACHED_QUERY_ADD";
|
|
@@ -61,14 +60,24 @@ export declare const SYSTEM_DATA_CHANGE_HISTORY_ENABLE = "SYSTEM_DATA_CHANGE_HIS
|
|
|
61
60
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_DISABLE = "SYSTEM_DATA_CHANGE_HISTORY_DISABLE";
|
|
62
61
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = "SYSTEM_DATA_CHANGE_HISTORY_SUSPEND";
|
|
63
62
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_RESUME = "SYSTEM_DATA_CHANGE_HISTORY_RESUME";
|
|
63
|
+
export declare const SYSTEM_SETTINGS_PANEL_SET = "SYSTEM_SETTINGS_PANEL_SET";
|
|
64
64
|
export interface SystemHighlightCellAddAction extends Redux.Action {
|
|
65
65
|
cellHighlightInfo: CellHighlightInfo;
|
|
66
66
|
}
|
|
67
67
|
export interface SystemHighlightCellDeleteAction extends Redux.Action {
|
|
68
|
-
|
|
68
|
+
primaryKeyValue: CellHighlightInfo['primaryKeyValue'];
|
|
69
|
+
columnId: CellHighlightInfo['columnId'];
|
|
69
70
|
}
|
|
70
71
|
export interface SystemHighlightCellDeleteAllAction extends Redux.Action {
|
|
71
72
|
}
|
|
73
|
+
export interface SystemHighlightRowAddAction extends Redux.Action {
|
|
74
|
+
rowHighlightInfo: RowHighlightInfo;
|
|
75
|
+
}
|
|
76
|
+
export interface SystemHighlightRowDeleteAction extends Redux.Action {
|
|
77
|
+
primaryKeyValue: RowHighlightInfo['primaryKeyValue'];
|
|
78
|
+
}
|
|
79
|
+
export interface SystemHighlightRowDeleteAllAction extends Redux.Action {
|
|
80
|
+
}
|
|
72
81
|
export interface SystemAlertAddAction extends Redux.Action {
|
|
73
82
|
alert: AdaptableAlert;
|
|
74
83
|
maxAlerts: number;
|
|
@@ -82,14 +91,14 @@ export interface SystemAlertDeleteAllAction extends Redux.Action {
|
|
|
82
91
|
export interface SystemAlertRemoveHighlightAction extends Redux.Action {
|
|
83
92
|
alert: AdaptableAlert;
|
|
84
93
|
}
|
|
85
|
-
export interface
|
|
86
|
-
|
|
94
|
+
export interface SystemFlashingCellAddAction extends Redux.Action {
|
|
95
|
+
flashingCell: AdaptableFlashingCell;
|
|
87
96
|
}
|
|
88
|
-
export interface
|
|
89
|
-
|
|
97
|
+
export interface SystemFlashingCellDeleteAction extends Redux.Action {
|
|
98
|
+
flashingCell: AdaptableFlashingCell;
|
|
90
99
|
}
|
|
91
|
-
export interface
|
|
92
|
-
|
|
100
|
+
export interface SystemFlashingCellDeleteAllAction extends Redux.Action {
|
|
101
|
+
flashingCells: AdaptableFlashingCell[];
|
|
93
102
|
}
|
|
94
103
|
export interface SystemStatusMessageInfoAddAction extends Redux.Action {
|
|
95
104
|
systemStatusMessageInfo: SystemStatusMessageInfo;
|
|
@@ -140,12 +149,6 @@ export interface BulkUpdateChangeValueAction extends Redux.Action {
|
|
|
140
149
|
export interface BulkUpdateSetValidSelectionAction extends Redux.Action {
|
|
141
150
|
bulkUpdateValidationResult: BulkUpdateValidationResult;
|
|
142
151
|
}
|
|
143
|
-
export interface ChartSetChartDataAction extends Redux.Action {
|
|
144
|
-
chartData: ChartData;
|
|
145
|
-
}
|
|
146
|
-
export interface ChartSetChartVisibiityAction extends Redux.Action {
|
|
147
|
-
chartVisibility: ChartVisibility;
|
|
148
|
-
}
|
|
149
152
|
export interface CalculatedColumnSetErrorMessageAction extends Redux.Action {
|
|
150
153
|
errorMsg: string;
|
|
151
154
|
}
|
|
@@ -197,16 +200,23 @@ export interface SystemExportCustomDestinationPopupShowAction extends Redux.Acti
|
|
|
197
200
|
export interface SystemExportCustomDestinationPopupHideAction extends Redux.Action {
|
|
198
201
|
data: ExportCustomDestinationPopup;
|
|
199
202
|
}
|
|
203
|
+
export interface SystemSettingsPanelSetAction extends Redux.Action {
|
|
204
|
+
name: string;
|
|
205
|
+
settings: SystemState['SettingsPanel']['0'];
|
|
206
|
+
}
|
|
200
207
|
export declare const SystemHighlightCellAdd: (cellHighlightInfo: CellHighlightInfo) => SystemHighlightCellAddAction;
|
|
201
|
-
export declare const SystemHighlightCellDelete: (
|
|
208
|
+
export declare const SystemHighlightCellDelete: (primaryKeyValue: CellHighlightInfo['primaryKeyValue'], columnId: CellHighlightInfo['columnId']) => SystemHighlightCellDeleteAction;
|
|
202
209
|
export declare const SystemHighlightCellDeleteAll: () => SystemHighlightCellDeleteAllAction;
|
|
210
|
+
export declare const SystemHighlightRowAdd: (rowHighlightInfo: RowHighlightInfo) => SystemHighlightRowAddAction;
|
|
211
|
+
export declare const SystemHighlightRowDelete: (primaryKeyValue: RowHighlightInfo['primaryKeyValue']) => SystemHighlightRowDeleteAction;
|
|
212
|
+
export declare const SystemHighlightRowDeleteAll: () => SystemHighlightRowDeleteAllAction;
|
|
203
213
|
export declare const SystemAlertAdd: (alert: AdaptableAlert, maxAlerts: number) => SystemAlertAddAction;
|
|
204
214
|
export declare const SystemAlertDelete: (alert: AdaptableAlert) => SystemAlertDeleteAction;
|
|
205
215
|
export declare const SystemAlertDeleteAll: (alerts: AdaptableAlert[]) => SystemAlertDeleteAllAction;
|
|
206
216
|
export declare const SystemAlertRemoveHighlight: (alert: AdaptableAlert) => SystemAlertRemoveHighlightAction;
|
|
207
|
-
export declare const
|
|
208
|
-
export declare const
|
|
209
|
-
export declare const
|
|
217
|
+
export declare const SystemFlashingCellAdd: (flashingCell: AdaptableFlashingCell) => SystemFlashingCellAddAction;
|
|
218
|
+
export declare const SystemFlashingCellDelete: (flashingCell: AdaptableFlashingCell) => SystemFlashingCellDeleteAction;
|
|
219
|
+
export declare const SystemFlashingCellDeleteAll: (flashingCells: AdaptableFlashingCell[]) => SystemFlashingCellDeleteAllAction;
|
|
210
220
|
export declare const SystemStatusMessageInfoAdd: (SystemStatusMessageInfo: SystemStatusMessageInfo, MaxSystemStatusMessagesInStore: number) => SystemStatusMessageInfoAddAction;
|
|
211
221
|
export declare const SystemStatusMessageInfoDelete: (SystemStatusMessageInfo: SystemStatusMessageInfo) => SystemStatusMessageInfoDeleteAction;
|
|
212
222
|
export declare const SystemStatusMessageInfoDeleteAll: () => SystemStatusMessageInfoDeleteAllAction;
|
|
@@ -219,8 +229,6 @@ export declare const BulkUpdateCheckCellSelection: () => BulkUpdateCheckCellSele
|
|
|
219
229
|
export declare const BulkUpdateSetValidSelection: (bulkUpdateValidationResult: BulkUpdateValidationResult) => BulkUpdateSetValidSelectionAction;
|
|
220
230
|
export declare const BulkUpdateSetPreview: (BulkUpdatePreviewInfo: PreviewInfo) => BulkUpdateSetPreviewAction;
|
|
221
231
|
export declare const BulkUpdateChangeValue: (bulkUpdateValue: string) => BulkUpdateChangeValueAction;
|
|
222
|
-
export declare const ChartSetChartData: (chartData: ChartData) => ChartSetChartDataAction;
|
|
223
|
-
export declare const ChartSetChartVisibility: (ChartVisibility: ChartVisibility) => ChartSetChartVisibiityAction;
|
|
224
232
|
export declare const SetNewColumnListOrder: (VisibleColumnList: string[]) => SetNewColumnListOrderAction;
|
|
225
233
|
export declare const SetLastAppliedShortcut: (gridCell: GridCell | undefined) => SetLastAppliedShortcutAction;
|
|
226
234
|
export declare const SystemCachedQueryAdd: (cachedQuery: CachedQuery) => SystemCachedQueryAddAction;
|
|
@@ -237,6 +245,7 @@ export declare const SystemDataChangeHistorySuspend: () => SystemDataChangeHisto
|
|
|
237
245
|
export declare const SystemDataChangeHistoryResume: () => SystemDataChangeHistoryResumeAction;
|
|
238
246
|
export declare const SystemExportCustomDestinationPopupShow: (data: ExportCustomDestinationPopup) => SystemExportCustomDestinationPopupShowAction;
|
|
239
247
|
export declare const SystemExportCustomDestinationPopupHide: (data: ExportCustomDestinationPopup) => SystemExportCustomDestinationPopupHideAction;
|
|
248
|
+
export declare const SystemSettingsPanelSet: (name: string, settings: SystemState['SettingsPanel']['0']) => SystemSettingsPanelSetAction;
|
|
240
249
|
export declare const getSystemExportCustomDestinationPopups: (state: {
|
|
241
250
|
System: SystemState;
|
|
242
251
|
}) => ExportCustomDestinationPopup[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.
|
|
3
|
+
exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_ALERT_DELETE_ALL = exports.SYSTEM_FLASHING_ALERT_DELETE = exports.SYSTEM_FLASHING_ALERT_ADD = exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_ALERT_ROW_KEY = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
5
5
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
6
6
|
/*
|
|
@@ -34,13 +34,14 @@ exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = 'SYSTEM_BULK_UPDATE_CHECK_CELL
|
|
|
34
34
|
exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = 'SYSTEM_BULK_UPDATE_SET_VALID_SELECTION';
|
|
35
35
|
exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = 'SYSTEM_BULK_UPDATE_SET_PREVIEW';
|
|
36
36
|
exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = 'SYSTEM_BULK_UPDATE_CHANGE_VALUE';
|
|
37
|
-
// Chart Management
|
|
38
|
-
exports.SYSTEM_CHART_SET_CHART_DATA = 'SYSTEM_CHART_SET_CHART_DATA';
|
|
39
|
-
exports.SYSTEM_CHART_SET_CHART_VISIBILITY = 'SYSTEM_CHART_SET_CHART_VISIBILITY';
|
|
40
37
|
// Cell Highlight
|
|
41
38
|
exports.SYSTEM_HIGHLIGHT_CELL_ADD = 'SYSTEM_HIGHLIGHT_CELL_ADD';
|
|
42
39
|
exports.SYSTEM_HIGHLIGHT_CELL_DELETE = 'SYSTEM_HIGHLIGHT_CELL_DELETE';
|
|
43
40
|
exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = 'SYSTEM_HIGHLIGHT_CELL_DELETE_ALL';
|
|
41
|
+
// Rows Highlight
|
|
42
|
+
exports.SYSTEM_HIGHLIGHT_ROW_ADD = 'SYSTEM_HIGHLIGHT_ROW_ADD';
|
|
43
|
+
exports.SYSTEM_HIGHLIGHT_ROW_DELETE = 'SYSTEM_HIGHLIGHT_ROW_DELETE';
|
|
44
|
+
exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = 'SYSTEM_HIGHLIGHT_ROW_DELETE_ALL';
|
|
44
45
|
// Columns
|
|
45
46
|
exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = 'SYSTEM_SET_NEW_COLUMN_LIST_ORDER';
|
|
46
47
|
// Shortcut
|
|
@@ -69,17 +70,31 @@ exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = 'SYSTEM_DATA_CHANGE_HISTORY_ENABLE';
|
|
|
69
70
|
exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = 'SYSTEM_DATA_CHANGE_HISTORY_DISABLE';
|
|
70
71
|
exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = 'SYSTEM_DATA_CHANGE_HISTORY_SUSPEND';
|
|
71
72
|
exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = 'SYSTEM_DATA_CHANGE_HISTORY_RESUME';
|
|
73
|
+
// Settings panel
|
|
74
|
+
exports.SYSTEM_SETTINGS_PANEL_SET = 'SYSTEM_SETTINGS_PANEL_SET';
|
|
72
75
|
exports.SystemHighlightCellAdd = (cellHighlightInfo) => ({
|
|
73
76
|
type: exports.SYSTEM_HIGHLIGHT_CELL_ADD,
|
|
74
77
|
cellHighlightInfo: cellHighlightInfo,
|
|
75
78
|
});
|
|
76
|
-
exports.SystemHighlightCellDelete = (
|
|
79
|
+
exports.SystemHighlightCellDelete = (primaryKeyValue, columnId) => ({
|
|
77
80
|
type: exports.SYSTEM_HIGHLIGHT_CELL_DELETE,
|
|
78
|
-
|
|
81
|
+
primaryKeyValue,
|
|
82
|
+
columnId,
|
|
79
83
|
});
|
|
80
84
|
exports.SystemHighlightCellDeleteAll = () => ({
|
|
81
85
|
type: exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL,
|
|
82
86
|
});
|
|
87
|
+
exports.SystemHighlightRowAdd = (rowHighlightInfo) => ({
|
|
88
|
+
type: exports.SYSTEM_HIGHLIGHT_ROW_ADD,
|
|
89
|
+
rowHighlightInfo: rowHighlightInfo,
|
|
90
|
+
});
|
|
91
|
+
exports.SystemHighlightRowDelete = (primaryKeyValue) => ({
|
|
92
|
+
type: exports.SYSTEM_HIGHLIGHT_ROW_DELETE,
|
|
93
|
+
primaryKeyValue: primaryKeyValue,
|
|
94
|
+
});
|
|
95
|
+
exports.SystemHighlightRowDeleteAll = () => ({
|
|
96
|
+
type: exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL,
|
|
97
|
+
});
|
|
83
98
|
exports.SystemAlertAdd = (alert, maxAlerts) => ({
|
|
84
99
|
type: exports.SYSTEM_ALERT_ADD,
|
|
85
100
|
alert: alert,
|
|
@@ -97,17 +112,17 @@ exports.SystemAlertRemoveHighlight = (alert) => ({
|
|
|
97
112
|
type: exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT,
|
|
98
113
|
alert: alert,
|
|
99
114
|
});
|
|
100
|
-
exports.
|
|
115
|
+
exports.SystemFlashingCellAdd = (flashingCell) => ({
|
|
101
116
|
type: exports.SYSTEM_FLASHING_ALERT_ADD,
|
|
102
|
-
|
|
117
|
+
flashingCell: flashingCell,
|
|
103
118
|
});
|
|
104
|
-
exports.
|
|
119
|
+
exports.SystemFlashingCellDelete = (flashingCell) => ({
|
|
105
120
|
type: exports.SYSTEM_FLASHING_ALERT_DELETE,
|
|
106
|
-
|
|
121
|
+
flashingCell: flashingCell,
|
|
107
122
|
});
|
|
108
|
-
exports.
|
|
123
|
+
exports.SystemFlashingCellDeleteAll = (flashingCells) => ({
|
|
109
124
|
type: exports.SYSTEM_FLASHING_ALERT_DELETE_ALL,
|
|
110
|
-
|
|
125
|
+
flashingCells: flashingCells,
|
|
111
126
|
});
|
|
112
127
|
exports.SystemStatusMessageInfoAdd = (SystemStatusMessageInfo, MaxSystemStatusMessagesInStore) => ({
|
|
113
128
|
type: exports.SYSTEM_STATUS_MESSAGE_INFO_ADD,
|
|
@@ -155,14 +170,6 @@ exports.BulkUpdateChangeValue = (bulkUpdateValue) => ({
|
|
|
155
170
|
type: exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE,
|
|
156
171
|
bulkUpdateValue,
|
|
157
172
|
});
|
|
158
|
-
exports.ChartSetChartData = (chartData) => ({
|
|
159
|
-
type: exports.SYSTEM_CHART_SET_CHART_DATA,
|
|
160
|
-
chartData,
|
|
161
|
-
});
|
|
162
|
-
exports.ChartSetChartVisibility = (ChartVisibility) => ({
|
|
163
|
-
type: exports.SYSTEM_CHART_SET_CHART_VISIBILITY,
|
|
164
|
-
chartVisibility: ChartVisibility,
|
|
165
|
-
});
|
|
166
173
|
exports.SetNewColumnListOrder = (VisibleColumnList) => ({
|
|
167
174
|
type: exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER,
|
|
168
175
|
visibleColumnList: VisibleColumnList,
|
|
@@ -221,22 +228,26 @@ exports.SystemExportCustomDestinationPopupHide = (data) => ({
|
|
|
221
228
|
type: exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE,
|
|
222
229
|
data,
|
|
223
230
|
});
|
|
231
|
+
exports.SystemSettingsPanelSet = (name, settings) => ({
|
|
232
|
+
type: exports.SYSTEM_SETTINGS_PANEL_SET,
|
|
233
|
+
name,
|
|
234
|
+
settings,
|
|
235
|
+
});
|
|
224
236
|
exports.getSystemExportCustomDestinationPopups = (state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.System.Export.CustomDestinationPopups) !== null && _a !== void 0 ? _a : []; };
|
|
225
237
|
const initialState = {
|
|
226
238
|
AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
|
|
227
239
|
Export: {
|
|
228
240
|
CustomDestinationPopups: GeneralConstants_1.EMPTY_ARRAY,
|
|
229
241
|
},
|
|
230
|
-
|
|
231
|
-
|
|
242
|
+
AdaptableFlashingCells: {},
|
|
243
|
+
AdaptableFlashingCellsMap: {},
|
|
232
244
|
SystemStatusMessages: GeneralConstants_1.EMPTY_ARRAY,
|
|
233
245
|
HighlightedCells: GeneralConstants_1.EMPTY_ARRAY,
|
|
246
|
+
HighlightedRows: GeneralConstants_1.EMPTY_ARRAY,
|
|
234
247
|
IsValidSmartEditSelection: false,
|
|
235
248
|
SmartEditPreviewInfo: null,
|
|
236
249
|
BulkUpdateValidationResult: { IsValid: false, Column: null },
|
|
237
250
|
BulkUpdatePreviewInfo: null,
|
|
238
|
-
ChartData: null,
|
|
239
|
-
ChartVisibility: GeneralConstants_1.SYSTEM_DEFAULT_CHART_VISIBILITY,
|
|
240
251
|
CalculatedColumnErrorMessage: GeneralConstants_1.EMPTY_STRING,
|
|
241
252
|
ReportErrorMessage: GeneralConstants_1.EMPTY_STRING,
|
|
242
253
|
LastAppliedShortCut: null,
|
|
@@ -256,6 +267,7 @@ const initialState = {
|
|
|
256
267
|
enableTime: null,
|
|
257
268
|
suspendTime: null,
|
|
258
269
|
},
|
|
270
|
+
SettingsPanel: {},
|
|
259
271
|
};
|
|
260
272
|
exports.SystemReducer = (state = initialState, action) => {
|
|
261
273
|
var _a;
|
|
@@ -284,54 +296,59 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
284
296
|
return Object.assign(Object.assign({}, state), { AdaptableAlerts: state.AdaptableAlerts.map((abObject) => {
|
|
285
297
|
if (abObject.Uuid === adaptableAlert.Uuid) {
|
|
286
298
|
// AdaptableAlerts are still linked to the live AlertDefinitions, so we have to decouple them
|
|
287
|
-
|
|
288
|
-
|
|
299
|
+
const newAbObject = Object.assign({}, abObject);
|
|
300
|
+
newAbObject.alertDefinition = Helper_1.cloneObject(abObject.alertDefinition);
|
|
301
|
+
delete newAbObject.alertDefinition.AlertProperties.HighlightCell;
|
|
302
|
+
delete newAbObject.alertDefinition.AlertProperties.HighlightRow;
|
|
303
|
+
return newAbObject;
|
|
289
304
|
}
|
|
290
305
|
return abObject;
|
|
291
306
|
}) });
|
|
292
307
|
}
|
|
293
308
|
case exports.SYSTEM_FLASHING_ALERT_ADD: {
|
|
294
|
-
const {
|
|
295
|
-
const { rowPrimaryKey } =
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
const secondaryIds = Object.keys(
|
|
299
|
-
if (
|
|
309
|
+
const { flashingCell: FlashingCell } = action;
|
|
310
|
+
const { rowPrimaryKey } = FlashingCell;
|
|
311
|
+
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
312
|
+
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
313
|
+
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
314
|
+
if (FlashingCell.flashTarget === 'row') {
|
|
300
315
|
secondaryIds.push(exports.FLASHING_ALERT_ROW_KEY);
|
|
301
316
|
}
|
|
302
317
|
secondaryIds.forEach((COL_ID) => {
|
|
303
|
-
|
|
318
|
+
AdaptableFlashingCells[rowPrimaryKey][COL_ID] = FlashingCell.Uuid;
|
|
319
|
+
});
|
|
320
|
+
const AdaptableFlashingCellsMap = Object.assign({}, state.AdaptableFlashingCellsMap);
|
|
321
|
+
AdaptableFlashingCellsMap[FlashingCell.Uuid] = FlashingCell;
|
|
322
|
+
return Object.assign({}, state, {
|
|
323
|
+
AdaptableFlashingCells: AdaptableFlashingCells,
|
|
324
|
+
AdaptableFlashingCellsMap: AdaptableFlashingCellsMap,
|
|
304
325
|
});
|
|
305
|
-
const AdaptableFlashingAlertsMap = Object.assign({}, state.AdaptableFlashingAlertsMap);
|
|
306
|
-
AdaptableFlashingAlertsMap[FlashingAlert.Uuid] = FlashingAlert;
|
|
307
|
-
return Object.assign({}, state, { AdaptableFlashingAlerts, AdaptableFlashingAlertsMap });
|
|
308
326
|
}
|
|
309
327
|
case exports.SYSTEM_FLASHING_ALERT_DELETE: {
|
|
310
|
-
const {
|
|
311
|
-
const { rowPrimaryKey } =
|
|
312
|
-
const
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
const secondaryIds = Object.keys(
|
|
316
|
-
if (
|
|
328
|
+
const { flashingCell: FlashingCell } = action;
|
|
329
|
+
const { rowPrimaryKey } = FlashingCell;
|
|
330
|
+
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
331
|
+
const AdaptableFlashingCellsMap = Object.assign({}, state.AdaptableFlashingCellsMap);
|
|
332
|
+
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
333
|
+
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
334
|
+
if (FlashingCell.flashTarget === 'row') {
|
|
317
335
|
secondaryIds.push(exports.FLASHING_ALERT_ROW_KEY);
|
|
318
336
|
}
|
|
319
337
|
secondaryIds.forEach((COL_ID) => {
|
|
320
|
-
if (
|
|
321
|
-
delete
|
|
338
|
+
if (AdaptableFlashingCells[rowPrimaryKey][COL_ID] === FlashingCell.Uuid) {
|
|
339
|
+
delete AdaptableFlashingCells[rowPrimaryKey][COL_ID];
|
|
322
340
|
}
|
|
323
341
|
});
|
|
324
|
-
if (!Object.keys(
|
|
325
|
-
delete
|
|
342
|
+
if (!Object.keys(AdaptableFlashingCells[rowPrimaryKey]).length) {
|
|
343
|
+
delete AdaptableFlashingCells[rowPrimaryKey];
|
|
326
344
|
}
|
|
327
|
-
delete
|
|
328
|
-
return Object.assign(Object.assign({}, state), {
|
|
329
|
-
AdaptableFlashingAlertsMap });
|
|
345
|
+
delete AdaptableFlashingCellsMap[FlashingCell.Uuid];
|
|
346
|
+
return Object.assign(Object.assign({}, state), { AdaptableFlashingCells: AdaptableFlashingCells, AdaptableFlashingCellsMap: AdaptableFlashingCellsMap });
|
|
330
347
|
}
|
|
331
348
|
case exports.SYSTEM_FLASHING_ALERT_DELETE_ALL: {
|
|
332
349
|
return Object.assign({}, state, {
|
|
333
|
-
|
|
334
|
-
|
|
350
|
+
AdaptableFlashingCells: {},
|
|
351
|
+
AdaptableFlashingCellsMap: {},
|
|
335
352
|
});
|
|
336
353
|
}
|
|
337
354
|
case exports.SYSTEM_HIGHLIGHT_CELL_ADD: {
|
|
@@ -342,7 +359,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
342
359
|
}
|
|
343
360
|
case exports.SYSTEM_HIGHLIGHT_CELL_DELETE: {
|
|
344
361
|
const actionTypedDelete = action;
|
|
345
|
-
const actionId = `${actionTypedDelete.
|
|
362
|
+
const actionId = `${actionTypedDelete.columnId}-${actionTypedDelete.primaryKeyValue}`;
|
|
346
363
|
return Object.assign({}, state, {
|
|
347
364
|
HighlightedCells: state.HighlightedCells.filter((celHighlightInfo) => {
|
|
348
365
|
const id = `${celHighlightInfo.columnId}-${celHighlightInfo.primaryKeyValue}`;
|
|
@@ -355,6 +372,26 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
355
372
|
HighlightedCells: [],
|
|
356
373
|
});
|
|
357
374
|
}
|
|
375
|
+
case exports.SYSTEM_HIGHLIGHT_ROW_ADD: {
|
|
376
|
+
const actionTypedAdd = action;
|
|
377
|
+
return Object.assign({}, state, {
|
|
378
|
+
HighlightedRows: [...state.HighlightedRows, actionTypedAdd.rowHighlightInfo],
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
case exports.SYSTEM_HIGHLIGHT_ROW_DELETE: {
|
|
382
|
+
const actionTypedDelete = action;
|
|
383
|
+
const actionId = actionTypedDelete.primaryKeyValue;
|
|
384
|
+
return Object.assign({}, state, {
|
|
385
|
+
HighlightedRows: state.HighlightedRows.filter((rowHighlightInfo) => {
|
|
386
|
+
return rowHighlightInfo.primaryKeyValue !== actionId;
|
|
387
|
+
}),
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
case exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL: {
|
|
391
|
+
return Object.assign({}, state, {
|
|
392
|
+
HighlightedRows: [],
|
|
393
|
+
});
|
|
394
|
+
}
|
|
358
395
|
case exports.SYSTEM_STATUS_MESSAGE_INFO_ADD: {
|
|
359
396
|
const actionTypedAdd = action;
|
|
360
397
|
systemStatusMessages = [].concat(state.SystemStatusMessages);
|
|
@@ -398,13 +435,6 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
398
435
|
return Object.assign({}, state, {
|
|
399
436
|
BulkUpdateValue: action.bulkUpdateValue,
|
|
400
437
|
});
|
|
401
|
-
// Chart Actions
|
|
402
|
-
case exports.SYSTEM_CHART_SET_CHART_DATA:
|
|
403
|
-
return Object.assign({}, state, { ChartData: action.chartData });
|
|
404
|
-
case exports.SYSTEM_CHART_SET_CHART_VISIBILITY:
|
|
405
|
-
return Object.assign({}, state, {
|
|
406
|
-
ChartVisibility: action.chartVisibility,
|
|
407
|
-
});
|
|
408
438
|
case exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT: {
|
|
409
439
|
return Object.assign({}, state, {
|
|
410
440
|
LastAppliedShortCut: action.gridCell,
|
|
@@ -493,6 +523,10 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
493
523
|
case exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME: {
|
|
494
524
|
return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { currentMode: 'ACTIVE', suspendTime: null }) });
|
|
495
525
|
}
|
|
526
|
+
case exports.SYSTEM_SETTINGS_PANEL_SET: {
|
|
527
|
+
const setSettingsAction = action;
|
|
528
|
+
return Object.assign(Object.assign({}, state), { SettingsPanel: Object.assign(Object.assign({}, state === null || state === void 0 ? void 0 : state.SettingsPanel), { [setSettingsAction.name]: setSettingsAction.settings }) });
|
|
529
|
+
}
|
|
496
530
|
default:
|
|
497
531
|
return state;
|
|
498
532
|
}
|
|
@@ -60,7 +60,7 @@ exports.ToolPanelReady = (toolPanelState) => ({
|
|
|
60
60
|
const initialState = {
|
|
61
61
|
// default ToolPanels are set in ToolPanelModule.updateOldConfig() because we have to evaluate the ToolPanelOptions (for CustomToolPanel)
|
|
62
62
|
ToolPanels: undefined,
|
|
63
|
-
ModuleButtons: [],
|
|
63
|
+
ModuleButtons: ['SettingsPanel'],
|
|
64
64
|
};
|
|
65
65
|
exports.ToolPanelReducer = (state = initialState, action) => {
|
|
66
66
|
var _a, _b, _c, _d;
|