@adaptabletools/adaptable 10.0.4-canary.4 → 10.0.4-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/agGrid.d.ts +2 -2
- package/base.css +202 -33
- package/bundle.cjs.js +100 -97
- package/index.css +243 -33
- package/package.json +3 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
- package/src/AdaptableOptions/DashboardOptions.d.ts +2 -2
- 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/MenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +4 -3
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +75 -0
- package/src/{Api/Events/FlashingAlertFired.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +29 -0
- package/src/Api/AdaptableApi.d.ts +3 -1
- package/src/Api/AlertApi.d.ts +4 -79
- package/src/Api/DataChangeHistoryApi.d.ts +4 -0
- package/src/Api/EventApi.d.ts +8 -8
- package/src/Api/Events/AdaptableReady.d.ts +2 -2
- package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
- package/src/{PredefinedConfig/Common/AdaptableFlashingAlert.js → Api/Events/FlashingCellDisplayed.js} +0 -0
- package/src/Api/Events/GridDataChanged.d.ts +3 -1
- package/src/Api/FlashingCellApi.d.ts +78 -0
- package/src/Api/FlashingCellApi.js +2 -0
- package/src/Api/GridApi.d.ts +28 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
- package/src/Api/Implementation/AlertApiImpl.js +40 -107
- package/src/Api/Implementation/ConfigApiImpl.js +0 -5
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +20 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +96 -0
- 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 -2
- package/src/Api/Implementation/InternalApiImpl.js +5 -4
- package/src/Api/Implementation/LayoutApiImpl.js +12 -0
- 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 -4
- package/src/Api/SmartEditApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- 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/AdaptableFlashingCell.js +2 -0
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
- package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.d.ts +2 -2
- package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
- package/src/PredefinedConfig/Common/Schedule.js +0 -14
- package/src/PredefinedConfig/Common/Types.d.ts +4 -3
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DashboardState.d.ts +3 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +70 -0
- package/src/PredefinedConfig/FlashingCellState.js +2 -0
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +2 -2
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -0
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -5
- package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +17 -4
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
- package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
- package/src/Redux/ActionsReducers/DashboardRedux.js +1 -1
- 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 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -13
- package/src/Redux/ActionsReducers/SystemRedux.js +94 -40
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +2 -1
- package/src/Redux/Store/AdaptableStore.js +80 -45
- 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 +29 -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 +27 -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 -0
- 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 +27 -0
- package/src/Strategy/ScheduleModule.d.ts +17 -1
- package/src/Strategy/ScheduleModule.js +148 -2
- package/src/Strategy/SetingsPanelModule.d.ts +10 -0
- package/src/Strategy/SetingsPanelModule.js +24 -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/getFormatColumnSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -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/ModuleConstants.d.ts +2 -0
- package/src/Utilities/Constants/ModuleConstants.js +3 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +11 -4
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +6 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +35 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -1
- package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
- package/src/Utilities/Helpers/StyleHelper.js +4 -1
- package/src/Utilities/MenuItem.d.ts +1 -1
- package/src/Utilities/MenuItem.js +2 -2
- package/src/Utilities/ObjectFactory.d.ts +6 -7
- package/src/Utilities/ObjectFactory.js +13 -20
- 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 +8 -0
- 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 +6 -6
- package/src/Utilities/Services/TeamSharingService.js +3 -4
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableViewFactory.js +0 -26
- 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.js +4 -6
- package/src/View/Alert/Wizard/AlertWizard.js +17 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +4 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- 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 +17 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -16
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +18 -2
- 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/Panels/PanelWithImage.d.ts +4 -4
- package/src/View/Components/Panels/PanelWithImage.js +2 -2
- package/src/View/Components/Popups/AdaptableChart.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +20 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +119 -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/ToolPanelPopup.js +4 -3
- package/src/View/Components/ValueSelector/index.js +4 -4
- 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 +21 -68
- package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
- package/src/View/Dashboard/DashboardPopup.js +30 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -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/FlashingAlertDurationWizardSection.d.ts → FlashingCell/Wizard/FlashingCellDurationWizardSection.d.ts} +4 -4
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js → FlashingCell/Wizard/FlashingCellDurationWizardSection.js} +6 -6
- 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} +10 -10
- 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/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 +99 -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 +7 -7
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +18 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
- package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +21 -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 +14 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- 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/SmartEdit/SmartEditPopup.js +2 -2
- 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 -1
- package/src/View/UIHelper.js +35 -16
- 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 +14 -6
- package/src/agGrid/Adaptable.js +194 -57
- package/src/agGrid/agGridHelper.d.ts +1 -0
- package/src/agGrid/agGridHelper.js +14 -2
- package/src/components/ApplicationIcon.d.ts +5 -0
- package/src/components/ApplicationIcon.js +13 -0
- 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 +87 -0
- package/src/components/WindowModal/index.d.ts +1 -0
- package/src/components/WindowModal/index.js +4 -0
- package/src/components/icons/index.js +4 -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 +14 -2
- package/src/metamodel/adaptable.metamodel.d.ts +53 -32
- package/src/metamodel/adaptable.metamodel.js +216 -197
- package/src/types.d.ts +8 -6
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
- 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/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/Popups/AdaptablePopup.d.ts +0 -23
- package/src/View/Components/Popups/AdaptablePopup.js +0 -59
- 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
|
@@ -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.ChartSetChartVisibility = exports.ChartSetChartData = 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.
|
|
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.ChartSetChartVisibility = exports.ChartSetChartData = 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_CHART_SET_CHART_VISIBILITY = exports.SYSTEM_CHART_SET_CHART_DATA = 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
|
/*
|
|
@@ -41,6 +41,10 @@ exports.SYSTEM_CHART_SET_CHART_VISIBILITY = 'SYSTEM_CHART_SET_CHART_VISIBILITY';
|
|
|
41
41
|
exports.SYSTEM_HIGHLIGHT_CELL_ADD = 'SYSTEM_HIGHLIGHT_CELL_ADD';
|
|
42
42
|
exports.SYSTEM_HIGHLIGHT_CELL_DELETE = 'SYSTEM_HIGHLIGHT_CELL_DELETE';
|
|
43
43
|
exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = 'SYSTEM_HIGHLIGHT_CELL_DELETE_ALL';
|
|
44
|
+
// Rows Highlight
|
|
45
|
+
exports.SYSTEM_HIGHLIGHT_ROW_ADD = 'SYSTEM_HIGHLIGHT_ROW_ADD';
|
|
46
|
+
exports.SYSTEM_HIGHLIGHT_ROW_DELETE = 'SYSTEM_HIGHLIGHT_ROW_DELETE';
|
|
47
|
+
exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = 'SYSTEM_HIGHLIGHT_ROW_DELETE_ALL';
|
|
44
48
|
// Columns
|
|
45
49
|
exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = 'SYSTEM_SET_NEW_COLUMN_LIST_ORDER';
|
|
46
50
|
// Shortcut
|
|
@@ -69,17 +73,31 @@ exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = 'SYSTEM_DATA_CHANGE_HISTORY_ENABLE';
|
|
|
69
73
|
exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = 'SYSTEM_DATA_CHANGE_HISTORY_DISABLE';
|
|
70
74
|
exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = 'SYSTEM_DATA_CHANGE_HISTORY_SUSPEND';
|
|
71
75
|
exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = 'SYSTEM_DATA_CHANGE_HISTORY_RESUME';
|
|
76
|
+
// Settings panel
|
|
77
|
+
exports.SYSTEM_SETTINGS_PANEL_SET = 'SYSTEM_SETTINGS_PANEL_SET';
|
|
72
78
|
exports.SystemHighlightCellAdd = (cellHighlightInfo) => ({
|
|
73
79
|
type: exports.SYSTEM_HIGHLIGHT_CELL_ADD,
|
|
74
80
|
cellHighlightInfo: cellHighlightInfo,
|
|
75
81
|
});
|
|
76
|
-
exports.SystemHighlightCellDelete = (
|
|
82
|
+
exports.SystemHighlightCellDelete = (primaryKeyValue, columnId) => ({
|
|
77
83
|
type: exports.SYSTEM_HIGHLIGHT_CELL_DELETE,
|
|
78
|
-
|
|
84
|
+
primaryKeyValue,
|
|
85
|
+
columnId,
|
|
79
86
|
});
|
|
80
87
|
exports.SystemHighlightCellDeleteAll = () => ({
|
|
81
88
|
type: exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL,
|
|
82
89
|
});
|
|
90
|
+
exports.SystemHighlightRowAdd = (rowHighlightInfo) => ({
|
|
91
|
+
type: exports.SYSTEM_HIGHLIGHT_ROW_ADD,
|
|
92
|
+
rowHighlightInfo: rowHighlightInfo,
|
|
93
|
+
});
|
|
94
|
+
exports.SystemHighlightRowDelete = (primaryKeyValue) => ({
|
|
95
|
+
type: exports.SYSTEM_HIGHLIGHT_ROW_DELETE,
|
|
96
|
+
primaryKeyValue: primaryKeyValue,
|
|
97
|
+
});
|
|
98
|
+
exports.SystemHighlightRowDeleteAll = () => ({
|
|
99
|
+
type: exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL,
|
|
100
|
+
});
|
|
83
101
|
exports.SystemAlertAdd = (alert, maxAlerts) => ({
|
|
84
102
|
type: exports.SYSTEM_ALERT_ADD,
|
|
85
103
|
alert: alert,
|
|
@@ -97,17 +115,17 @@ exports.SystemAlertRemoveHighlight = (alert) => ({
|
|
|
97
115
|
type: exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT,
|
|
98
116
|
alert: alert,
|
|
99
117
|
});
|
|
100
|
-
exports.
|
|
118
|
+
exports.SystemFlashingCellAdd = (flashingCell) => ({
|
|
101
119
|
type: exports.SYSTEM_FLASHING_ALERT_ADD,
|
|
102
|
-
|
|
120
|
+
flashingCell: flashingCell,
|
|
103
121
|
});
|
|
104
|
-
exports.
|
|
122
|
+
exports.SystemFlashingCellDelete = (flashingCell) => ({
|
|
105
123
|
type: exports.SYSTEM_FLASHING_ALERT_DELETE,
|
|
106
|
-
|
|
124
|
+
flashingCell: flashingCell,
|
|
107
125
|
});
|
|
108
|
-
exports.
|
|
126
|
+
exports.SystemFlashingCellDeleteAll = (flashingCells) => ({
|
|
109
127
|
type: exports.SYSTEM_FLASHING_ALERT_DELETE_ALL,
|
|
110
|
-
|
|
128
|
+
flashingCells: flashingCells,
|
|
111
129
|
});
|
|
112
130
|
exports.SystemStatusMessageInfoAdd = (SystemStatusMessageInfo, MaxSystemStatusMessagesInStore) => ({
|
|
113
131
|
type: exports.SYSTEM_STATUS_MESSAGE_INFO_ADD,
|
|
@@ -221,16 +239,22 @@ exports.SystemExportCustomDestinationPopupHide = (data) => ({
|
|
|
221
239
|
type: exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE,
|
|
222
240
|
data,
|
|
223
241
|
});
|
|
242
|
+
exports.SystemSettingsPanelSet = (name, settings) => ({
|
|
243
|
+
type: exports.SYSTEM_SETTINGS_PANEL_SET,
|
|
244
|
+
name,
|
|
245
|
+
settings,
|
|
246
|
+
});
|
|
224
247
|
exports.getSystemExportCustomDestinationPopups = (state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.System.Export.CustomDestinationPopups) !== null && _a !== void 0 ? _a : []; };
|
|
225
248
|
const initialState = {
|
|
226
249
|
AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
|
|
227
250
|
Export: {
|
|
228
251
|
CustomDestinationPopups: GeneralConstants_1.EMPTY_ARRAY,
|
|
229
252
|
},
|
|
230
|
-
|
|
231
|
-
|
|
253
|
+
AdaptableFlashingCells: {},
|
|
254
|
+
AdaptableFlashingCellsMap: {},
|
|
232
255
|
SystemStatusMessages: GeneralConstants_1.EMPTY_ARRAY,
|
|
233
256
|
HighlightedCells: GeneralConstants_1.EMPTY_ARRAY,
|
|
257
|
+
HighlightedRows: GeneralConstants_1.EMPTY_ARRAY,
|
|
234
258
|
IsValidSmartEditSelection: false,
|
|
235
259
|
SmartEditPreviewInfo: null,
|
|
236
260
|
BulkUpdateValidationResult: { IsValid: false, Column: null },
|
|
@@ -256,6 +280,7 @@ const initialState = {
|
|
|
256
280
|
enableTime: null,
|
|
257
281
|
suspendTime: null,
|
|
258
282
|
},
|
|
283
|
+
SettingsPanel: {},
|
|
259
284
|
};
|
|
260
285
|
exports.SystemReducer = (state = initialState, action) => {
|
|
261
286
|
var _a;
|
|
@@ -284,54 +309,59 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
284
309
|
return Object.assign(Object.assign({}, state), { AdaptableAlerts: state.AdaptableAlerts.map((abObject) => {
|
|
285
310
|
if (abObject.Uuid === adaptableAlert.Uuid) {
|
|
286
311
|
// AdaptableAlerts are still linked to the live AlertDefinitions, so we have to decouple them
|
|
287
|
-
|
|
288
|
-
|
|
312
|
+
const newAbObject = Object.assign({}, abObject);
|
|
313
|
+
newAbObject.alertDefinition = Helper_1.cloneObject(abObject.alertDefinition);
|
|
314
|
+
delete newAbObject.alertDefinition.AlertProperties.HighlightCell;
|
|
315
|
+
delete newAbObject.alertDefinition.AlertProperties.HighlightRow;
|
|
316
|
+
return newAbObject;
|
|
289
317
|
}
|
|
290
318
|
return abObject;
|
|
291
319
|
}) });
|
|
292
320
|
}
|
|
293
321
|
case exports.SYSTEM_FLASHING_ALERT_ADD: {
|
|
294
|
-
const {
|
|
295
|
-
const { rowPrimaryKey } =
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
const secondaryIds = Object.keys(
|
|
299
|
-
if (
|
|
322
|
+
const { flashingCell: FlashingCell } = action;
|
|
323
|
+
const { rowPrimaryKey } = FlashingCell;
|
|
324
|
+
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
325
|
+
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
326
|
+
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
327
|
+
if (FlashingCell.flashTarget === 'row') {
|
|
300
328
|
secondaryIds.push(exports.FLASHING_ALERT_ROW_KEY);
|
|
301
329
|
}
|
|
302
330
|
secondaryIds.forEach((COL_ID) => {
|
|
303
|
-
|
|
331
|
+
AdaptableFlashingCells[rowPrimaryKey][COL_ID] = FlashingCell.Uuid;
|
|
332
|
+
});
|
|
333
|
+
const AdaptableFlashingCellsMap = Object.assign({}, state.AdaptableFlashingCellsMap);
|
|
334
|
+
AdaptableFlashingCellsMap[FlashingCell.Uuid] = FlashingCell;
|
|
335
|
+
return Object.assign({}, state, {
|
|
336
|
+
AdaptableFlashingCells: AdaptableFlashingCells,
|
|
337
|
+
AdaptableFlashingCellsMap: AdaptableFlashingCellsMap,
|
|
304
338
|
});
|
|
305
|
-
const AdaptableFlashingAlertsMap = Object.assign({}, state.AdaptableFlashingAlertsMap);
|
|
306
|
-
AdaptableFlashingAlertsMap[FlashingAlert.Uuid] = FlashingAlert;
|
|
307
|
-
return Object.assign({}, state, { AdaptableFlashingAlerts, AdaptableFlashingAlertsMap });
|
|
308
339
|
}
|
|
309
340
|
case exports.SYSTEM_FLASHING_ALERT_DELETE: {
|
|
310
|
-
const {
|
|
311
|
-
const { rowPrimaryKey } =
|
|
312
|
-
const
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
const secondaryIds = Object.keys(
|
|
316
|
-
if (
|
|
341
|
+
const { flashingCell: FlashingCell } = action;
|
|
342
|
+
const { rowPrimaryKey } = FlashingCell;
|
|
343
|
+
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
344
|
+
const AdaptableFlashingCellsMap = Object.assign({}, state.AdaptableFlashingCellsMap);
|
|
345
|
+
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
346
|
+
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
347
|
+
if (FlashingCell.flashTarget === 'row') {
|
|
317
348
|
secondaryIds.push(exports.FLASHING_ALERT_ROW_KEY);
|
|
318
349
|
}
|
|
319
350
|
secondaryIds.forEach((COL_ID) => {
|
|
320
|
-
if (
|
|
321
|
-
delete
|
|
351
|
+
if (AdaptableFlashingCells[rowPrimaryKey][COL_ID] === FlashingCell.Uuid) {
|
|
352
|
+
delete AdaptableFlashingCells[rowPrimaryKey][COL_ID];
|
|
322
353
|
}
|
|
323
354
|
});
|
|
324
|
-
if (!Object.keys(
|
|
325
|
-
delete
|
|
355
|
+
if (!Object.keys(AdaptableFlashingCells[rowPrimaryKey]).length) {
|
|
356
|
+
delete AdaptableFlashingCells[rowPrimaryKey];
|
|
326
357
|
}
|
|
327
|
-
delete
|
|
328
|
-
return Object.assign(Object.assign({}, state), {
|
|
329
|
-
AdaptableFlashingAlertsMap });
|
|
358
|
+
delete AdaptableFlashingCellsMap[FlashingCell.Uuid];
|
|
359
|
+
return Object.assign(Object.assign({}, state), { AdaptableFlashingCells: AdaptableFlashingCells, AdaptableFlashingCellsMap: AdaptableFlashingCellsMap });
|
|
330
360
|
}
|
|
331
361
|
case exports.SYSTEM_FLASHING_ALERT_DELETE_ALL: {
|
|
332
362
|
return Object.assign({}, state, {
|
|
333
|
-
|
|
334
|
-
|
|
363
|
+
AdaptableFlashingCells: {},
|
|
364
|
+
AdaptableFlashingCellsMap: {},
|
|
335
365
|
});
|
|
336
366
|
}
|
|
337
367
|
case exports.SYSTEM_HIGHLIGHT_CELL_ADD: {
|
|
@@ -342,7 +372,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
342
372
|
}
|
|
343
373
|
case exports.SYSTEM_HIGHLIGHT_CELL_DELETE: {
|
|
344
374
|
const actionTypedDelete = action;
|
|
345
|
-
const actionId = `${actionTypedDelete.
|
|
375
|
+
const actionId = `${actionTypedDelete.columnId}-${actionTypedDelete.primaryKeyValue}`;
|
|
346
376
|
return Object.assign({}, state, {
|
|
347
377
|
HighlightedCells: state.HighlightedCells.filter((celHighlightInfo) => {
|
|
348
378
|
const id = `${celHighlightInfo.columnId}-${celHighlightInfo.primaryKeyValue}`;
|
|
@@ -355,6 +385,26 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
355
385
|
HighlightedCells: [],
|
|
356
386
|
});
|
|
357
387
|
}
|
|
388
|
+
case exports.SYSTEM_HIGHLIGHT_ROW_ADD: {
|
|
389
|
+
const actionTypedAdd = action;
|
|
390
|
+
return Object.assign({}, state, {
|
|
391
|
+
HighlightedRows: [...state.HighlightedRows, actionTypedAdd.rowHighlightInfo],
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
case exports.SYSTEM_HIGHLIGHT_ROW_DELETE: {
|
|
395
|
+
const actionTypedDelete = action;
|
|
396
|
+
const actionId = actionTypedDelete.primaryKeyValue;
|
|
397
|
+
return Object.assign({}, state, {
|
|
398
|
+
HighlightedRows: state.HighlightedRows.filter((rowHighlightInfo) => {
|
|
399
|
+
return rowHighlightInfo.primaryKeyValue !== actionId;
|
|
400
|
+
}),
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
case exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL: {
|
|
404
|
+
return Object.assign({}, state, {
|
|
405
|
+
HighlightedRows: [],
|
|
406
|
+
});
|
|
407
|
+
}
|
|
358
408
|
case exports.SYSTEM_STATUS_MESSAGE_INFO_ADD: {
|
|
359
409
|
const actionTypedAdd = action;
|
|
360
410
|
systemStatusMessages = [].concat(state.SystemStatusMessages);
|
|
@@ -493,6 +543,10 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
493
543
|
case exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME: {
|
|
494
544
|
return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { currentMode: 'ACTIVE', suspendTime: null }) });
|
|
495
545
|
}
|
|
546
|
+
case exports.SYSTEM_SETTINGS_PANEL_SET: {
|
|
547
|
+
const setSettingsAction = action;
|
|
548
|
+
return Object.assign(Object.assign({}, state), { SettingsPanel: Object.assign(Object.assign({}, state === null || state === void 0 ? void 0 : state.SettingsPanel), { [setSettingsAction.name]: setSettingsAction.settings }) });
|
|
549
|
+
}
|
|
496
550
|
default:
|
|
497
551
|
return state;
|
|
498
552
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ToolPanelReducer = exports.ToolPanelReady = exports.ToolPanelSetModuleButtons = exports.ToolPanelCollapseToolPanel = exports.ToolPanelExpandToolPanel = exports.ToolPanelHideToolPanel = exports.ToolPanelShowToolPanel = exports.ToolPanelSetToolPanels = exports.TOOLPANEL_READY = exports.TOOLPANEL_SET_MODULE_BUTTONS = exports.TOOLPANEL_COLLAPSE_TOOLPANEL = exports.TOOLPANEL_EXPAND_TOOLPANEL = exports.TOOLPANEL_HIDE_TOOLPANEL = exports.TOOLPANEL_SHOW_TOOLPANEL = exports.TOOLPANEL_SET_TOOLPANELS = void 0;
|
|
4
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
4
5
|
/**
|
|
5
6
|
* @ReduxAction Tool Panels have been set in AdapTable ToolPanel Component
|
|
6
7
|
*/
|
|
@@ -60,7 +61,7 @@ exports.ToolPanelReady = (toolPanelState) => ({
|
|
|
60
61
|
const initialState = {
|
|
61
62
|
// default ToolPanels are set in ToolPanelModule.updateOldConfig() because we have to evaluate the ToolPanelOptions (for CustomToolPanel)
|
|
62
63
|
ToolPanels: undefined,
|
|
63
|
-
ModuleButtons:
|
|
64
|
+
ModuleButtons: GeneralConstants_1.EMPTY_ARRAY,
|
|
64
65
|
};
|
|
65
66
|
exports.ToolPanelReducer = (state = initialState, action) => {
|
|
66
67
|
var _a, _b, _c, _d;
|
|
@@ -9,6 +9,7 @@ const AdaptableReduxMerger_1 = require("./AdaptableReduxMerger");
|
|
|
9
9
|
const PopupRedux = tslib_1.__importStar(require("../ActionsReducers/PopupRedux"));
|
|
10
10
|
const PluginsRedux = tslib_1.__importStar(require("../ActionsReducers/PluginsRedux"));
|
|
11
11
|
const AlertRedux = tslib_1.__importStar(require("../ActionsReducers/AlertRedux"));
|
|
12
|
+
const FlashingCellRedux = tslib_1.__importStar(require("../ActionsReducers/FlashingCellRedux"));
|
|
12
13
|
const DeadRedux = tslib_1.__importStar(require("../DeadRedux"));
|
|
13
14
|
const SmartEditRedux = tslib_1.__importStar(require("../ActionsReducers/SmartEditRedux"));
|
|
14
15
|
const BulkUpdateRedux = tslib_1.__importStar(require("../ActionsReducers/BulkUpdateRedux"));
|
|
@@ -124,6 +125,7 @@ class AdaptableStore {
|
|
|
124
125
|
SparklineColumn: SparklineColumnRedux.SparklineColumnReducer,
|
|
125
126
|
// Reducers for Persisted State
|
|
126
127
|
Alert: AlertRedux.AlertReducer,
|
|
128
|
+
FlashingCell: FlashingCellRedux.FlashingCellReducer,
|
|
127
129
|
Application: ApplicationRedux.ApplicationReducer,
|
|
128
130
|
CalculatedColumn: CalculatedColumnRedux.CalculatedColumnReducer,
|
|
129
131
|
// replaced by `charts` plugin
|
|
@@ -149,7 +151,6 @@ class AdaptableStore {
|
|
|
149
151
|
Query: QueryRedux.QueryReducer,
|
|
150
152
|
// dead reducers
|
|
151
153
|
PercentBar: DeadRedux.PercentBarReducer,
|
|
152
|
-
FlashingCell: DeadRedux.FlashingCellReducer,
|
|
153
154
|
UpdatedRow: DeadRedux.UpdatedRowReducer,
|
|
154
155
|
GradientColumn: DeadRedux.GradientColumnReducer,
|
|
155
156
|
};
|
|
@@ -252,7 +253,7 @@ exports.AdaptableStore = AdaptableStore;
|
|
|
252
253
|
const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
253
254
|
return function (next) {
|
|
254
255
|
return function (action) {
|
|
255
|
-
var _a, _b, _c, _d, _e;
|
|
256
|
+
var _a, _b, _c, _d, _e, _f;
|
|
256
257
|
switch (action.type) {
|
|
257
258
|
/*******************
|
|
258
259
|
* NAMED QUERY ACTIONS
|
|
@@ -313,11 +314,11 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
313
314
|
*******************/
|
|
314
315
|
case SystemRedux.SYSTEM_FLASHING_ALERT_ADD:
|
|
315
316
|
case SystemRedux.SYSTEM_FLASHING_ALERT_DELETE: {
|
|
316
|
-
const {
|
|
317
|
-
const { dataChangedInfo } =
|
|
317
|
+
const { flashingCell: FlashingCell, } = action;
|
|
318
|
+
const { dataChangedInfo } = FlashingCell;
|
|
318
319
|
let ret = next(action);
|
|
319
320
|
if (dataChangedInfo) {
|
|
320
|
-
adaptable.refreshCells([dataChangedInfo.rowNode], Object.keys(
|
|
321
|
+
adaptable.refreshCells([dataChangedInfo.rowNode], Object.keys(FlashingCell.flashColumnIds), true);
|
|
321
322
|
}
|
|
322
323
|
return ret;
|
|
323
324
|
}
|
|
@@ -330,52 +331,43 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
330
331
|
reactiveAlertDefinitions.forEach((reactiveAlertDefinition) => adaptable.api.internalApi
|
|
331
332
|
.getAlertService()
|
|
332
333
|
.createReactiveAlert(reactiveAlertDefinition));
|
|
333
|
-
const reactiveFlashingAlertDefinitions = adaptable.api.alertApi.getActiveReactiveFlashingAlertDefinitions();
|
|
334
|
-
reactiveFlashingAlertDefinitions.forEach((reactiveAlertDefinition) => adaptable.api.internalApi
|
|
335
|
-
.getAlertService()
|
|
336
|
-
.createReactiveAlert(reactiveAlertDefinition, true));
|
|
337
334
|
return;
|
|
338
335
|
}
|
|
339
336
|
case AlertRedux.ALERT_DEFINITION_ADD:
|
|
340
337
|
case AlertRedux.ALERT_DEFINITION_EDIT:
|
|
341
338
|
case AlertRedux.ALERT_DEFINITION_DELETE:
|
|
342
|
-
case AlertRedux.FLASHING_ALERT_DEFINITION_ADD:
|
|
343
|
-
case AlertRedux.FLASHING_ALERT_DEFINITION_EDIT:
|
|
344
|
-
case AlertRedux.FLASHING_ALERT_DEFINITION_DELETE:
|
|
345
339
|
case AlertRedux.ALERT_DEFINITION_UN_SUSPEND:
|
|
346
|
-
case AlertRedux.ALERT_DEFINITION_SUSPEND:
|
|
347
|
-
case AlertRedux.FLASHING_ALERT_DEFINITION_UN_SUSPEND:
|
|
348
|
-
case AlertRedux.FLASHING_ALERT_DEFINITION_SUSPEND: {
|
|
340
|
+
case AlertRedux.ALERT_DEFINITION_SUSPEND: {
|
|
349
341
|
const returnAction = next(action);
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
returnAction.type === AlertRedux.FLASHING_ALERT_DEFINITION_DELETE ||
|
|
353
|
-
returnAction.type === AlertRedux.FLASHING_ALERT_DEFINITION_SUSPEND ||
|
|
354
|
-
returnAction.type === AlertRedux.FLASHING_ALERT_DEFINITION_UN_SUSPEND;
|
|
355
|
-
const alertDefinition = isFlashingAlert
|
|
356
|
-
? returnAction.flashingAlertDefinition
|
|
357
|
-
: returnAction.alertDefinition;
|
|
342
|
+
const alertDefinition = returnAction
|
|
343
|
+
.alertDefinition;
|
|
358
344
|
if (returnAction.type === AlertRedux.ALERT_DEFINITION_ADD ||
|
|
359
345
|
returnAction.type === AlertRedux.ALERT_DEFINITION_EDIT ||
|
|
360
|
-
returnAction.type === AlertRedux.
|
|
361
|
-
returnAction.type === AlertRedux.FLASHING_ALERT_DEFINITION_EDIT ||
|
|
362
|
-
returnAction.type === AlertRedux.ALERT_DEFINITION_UN_SUSPEND ||
|
|
363
|
-
returnAction.type === AlertRedux.FLASHING_ALERT_DEFINITION_UN_SUSPEND) {
|
|
346
|
+
returnAction.type === AlertRedux.ALERT_DEFINITION_UN_SUSPEND) {
|
|
364
347
|
// in case of edit, the existing reactive alert will be deleted and recreated
|
|
365
|
-
adaptable.api.internalApi
|
|
366
|
-
.getAlertService()
|
|
367
|
-
.createReactiveAlert(alertDefinition, isFlashingAlert);
|
|
348
|
+
adaptable.api.internalApi.getAlertService().createReactiveAlert(alertDefinition);
|
|
368
349
|
}
|
|
369
350
|
if (returnAction.type === AlertRedux.ALERT_DEFINITION_DELETE ||
|
|
370
|
-
returnAction.type === AlertRedux.
|
|
371
|
-
returnAction.type === AlertRedux.ALERT_DEFINITION_SUSPEND ||
|
|
372
|
-
returnAction.type === AlertRedux.FLASHING_ALERT_DEFINITION_SUSPEND) {
|
|
351
|
+
returnAction.type === AlertRedux.ALERT_DEFINITION_SUSPEND) {
|
|
373
352
|
adaptable.api.internalApi.getAlertService().deleteReactiveAlert(alertDefinition);
|
|
374
353
|
}
|
|
375
354
|
// called also for rendered column actions, see RENDERED COLUMN ACTIONS block
|
|
376
355
|
adaptable.setupColumns();
|
|
377
356
|
return returnAction;
|
|
378
357
|
}
|
|
358
|
+
/*******************
|
|
359
|
+
* Flashing Cell ACTIONS
|
|
360
|
+
*******************/
|
|
361
|
+
case FlashingCellRedux.FLASHING_ALERT_DEFINITION_ADD:
|
|
362
|
+
case FlashingCellRedux.FLASHING_ALERT_DEFINITION_EDIT:
|
|
363
|
+
case FlashingCellRedux.FLASHING_ALERT_DEFINITION_DELETE:
|
|
364
|
+
case FlashingCellRedux.FLASHING_ALERT_DEFINITION_UN_SUSPEND:
|
|
365
|
+
case FlashingCellRedux.FLASHING_ALERT_DEFINITION_SUSPEND: {
|
|
366
|
+
const returnAction = next(action);
|
|
367
|
+
// called also for rendered column actions, see RENDERED COLUMN ACTIONS block
|
|
368
|
+
adaptable.setupColumns();
|
|
369
|
+
return returnAction;
|
|
370
|
+
}
|
|
379
371
|
/**
|
|
380
372
|
* Use Case: User has deleted a System Alert which has a Highlight Cell
|
|
381
373
|
* Action: Refresh the cell (to clear the style)
|
|
@@ -388,6 +380,11 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
388
380
|
let rowNode = actionTyped.alert.dataChangedInfo.rowNode;
|
|
389
381
|
adaptable.refreshCells([rowNode], [actionTyped.alert.dataChangedInfo.column.columnId], true);
|
|
390
382
|
}
|
|
383
|
+
if (((_d = actionTyped.alert.alertDefinition.AlertProperties) === null || _d === void 0 ? void 0 : _d.HighlightRow) &&
|
|
384
|
+
actionTyped.alert.dataChangedInfo) {
|
|
385
|
+
let rowNode = actionTyped.alert.dataChangedInfo.rowNode;
|
|
386
|
+
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
387
|
+
}
|
|
391
388
|
return ret;
|
|
392
389
|
}
|
|
393
390
|
/**
|
|
@@ -399,11 +396,15 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
399
396
|
let ret = next(action);
|
|
400
397
|
let alerts = actionTyped.alerts;
|
|
401
398
|
alerts.forEach((alert) => {
|
|
402
|
-
var _a;
|
|
399
|
+
var _a, _b;
|
|
403
400
|
if (((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightCell) && alert.dataChangedInfo) {
|
|
404
401
|
let rowNode = alert.dataChangedInfo.rowNode;
|
|
405
402
|
adaptable.refreshCells([rowNode], [alert.dataChangedInfo.column.columnId], true);
|
|
406
403
|
}
|
|
404
|
+
if (((_b = alert.alertDefinition.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightRow) && alert.dataChangedInfo) {
|
|
405
|
+
let rowNode = alert.dataChangedInfo.rowNode;
|
|
406
|
+
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
407
|
+
}
|
|
407
408
|
});
|
|
408
409
|
return ret;
|
|
409
410
|
}
|
|
@@ -412,11 +413,16 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
412
413
|
* Action: Refresh the cell (to clear the style)
|
|
413
414
|
*/
|
|
414
415
|
case SystemRedux.SYSTEM_ALERT_REMOVE_HIGHLIGHT: {
|
|
415
|
-
const actionTyped = action;
|
|
416
416
|
let ret = next(action);
|
|
417
|
+
const actionTyped = action;
|
|
417
418
|
if (actionTyped.alert.dataChangedInfo) {
|
|
418
419
|
let rowNode = actionTyped.alert.dataChangedInfo.rowNode;
|
|
419
|
-
|
|
420
|
+
if (actionTyped.alert.alertDefinition.AlertProperties.HighlightCell) {
|
|
421
|
+
adaptable.refreshCells([rowNode], [actionTyped.alert.dataChangedInfo.column.columnId], true);
|
|
422
|
+
}
|
|
423
|
+
if (actionTyped.alert.alertDefinition.AlertProperties.HighlightRow) {
|
|
424
|
+
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
425
|
+
}
|
|
420
426
|
}
|
|
421
427
|
return ret;
|
|
422
428
|
}
|
|
@@ -433,10 +439,9 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
433
439
|
case SystemRedux.SYSTEM_HIGHLIGHT_CELL_DELETE: {
|
|
434
440
|
const actionTyped = action;
|
|
435
441
|
const ret = next(action);
|
|
436
|
-
const
|
|
437
|
-
const rowNode = adaptable.getRowNodeForPrimaryKey(cellHighlightInfo.primaryKeyValue);
|
|
442
|
+
const rowNode = adaptable.getRowNodeForPrimaryKey(actionTyped.primaryKeyValue);
|
|
438
443
|
if (rowNode) {
|
|
439
|
-
adaptable.refreshCells([rowNode], [
|
|
444
|
+
adaptable.refreshCells([rowNode], [actionTyped.columnId], true);
|
|
440
445
|
}
|
|
441
446
|
return ret;
|
|
442
447
|
}
|
|
@@ -452,6 +457,37 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
452
457
|
});
|
|
453
458
|
return ret;
|
|
454
459
|
}
|
|
460
|
+
case SystemRedux.SYSTEM_HIGHLIGHT_ROW_ADD: {
|
|
461
|
+
const actionTyped = action;
|
|
462
|
+
const ret = next(action);
|
|
463
|
+
const rowHighlightInfo = actionTyped.rowHighlightInfo;
|
|
464
|
+
const rowNode = adaptable.getRowNodeForPrimaryKey(rowHighlightInfo.primaryKeyValue);
|
|
465
|
+
if (rowNode) {
|
|
466
|
+
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
467
|
+
}
|
|
468
|
+
return ret;
|
|
469
|
+
}
|
|
470
|
+
case SystemRedux.SYSTEM_HIGHLIGHT_ROW_DELETE: {
|
|
471
|
+
const actionTyped = action;
|
|
472
|
+
const ret = next(action);
|
|
473
|
+
const rowNode = adaptable.getRowNodeForPrimaryKey(actionTyped.primaryKeyValue);
|
|
474
|
+
if (rowNode) {
|
|
475
|
+
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
476
|
+
}
|
|
477
|
+
return ret;
|
|
478
|
+
}
|
|
479
|
+
case SystemRedux.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL: {
|
|
480
|
+
const rowHighlightInfos = middlewareAPI.getState().System.HighlightedRows;
|
|
481
|
+
const ret = next(action);
|
|
482
|
+
rowHighlightInfos.forEach((rowHighlightInfo) => {
|
|
483
|
+
const rowNode = adaptable.getRowNodeForPrimaryKey(rowHighlightInfo.primaryKeyValue);
|
|
484
|
+
if (!rowNode) {
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
488
|
+
});
|
|
489
|
+
return ret;
|
|
490
|
+
}
|
|
455
491
|
/*******************
|
|
456
492
|
* SPECIAL COLUMN ACTIONS
|
|
457
493
|
*******************/
|
|
@@ -700,7 +736,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
700
736
|
// tell grid the layout has been selected
|
|
701
737
|
adaptable.setLayout(currentLayout);
|
|
702
738
|
}
|
|
703
|
-
if (!((
|
|
739
|
+
if (!((_e = adaptable.adaptableOptions.layoutOptions) === null || _e === void 0 ? void 0 : _e.autoSaveLayouts)) {
|
|
704
740
|
middlewareAPI.dispatch(LayoutRedux.LayoutUpdateCurrentDraft(currentLayout));
|
|
705
741
|
}
|
|
706
742
|
}
|
|
@@ -708,7 +744,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
708
744
|
returnAction.type == LayoutRedux.LAYOUT_SAVE) {
|
|
709
745
|
const actionTyped = action;
|
|
710
746
|
// if autosave is false
|
|
711
|
-
if (!((
|
|
747
|
+
if (!((_f = adaptable.adaptableOptions.layoutOptions) === null || _f === void 0 ? void 0 : _f.autoSaveLayouts)) {
|
|
712
748
|
// and the current layout is saved, make sure we also update the draft
|
|
713
749
|
if (actionTyped.layout.Name === newLayoutState.CurrentLayout) {
|
|
714
750
|
middlewareAPI.dispatch(LayoutRedux.LayoutUpdateCurrentDraft(actionTyped.layout));
|
|
@@ -912,7 +948,6 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
912
948
|
let module = adaptable.modules.get(ModuleConstants.ExportModuleId);
|
|
913
949
|
const actionTyped = action;
|
|
914
950
|
module.export(actionTyped.Report, actionTyped.ExportDestination);
|
|
915
|
-
middlewareAPI.dispatch(PopupRedux.PopupHideScreen());
|
|
916
951
|
return next(action);
|
|
917
952
|
}
|
|
918
953
|
// When deleting a report check if its the currently selected one
|
|
@@ -1051,7 +1086,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1051
1086
|
case TeamSharingRedux.TEAMSHARING_IMPORT_ITEM: {
|
|
1052
1087
|
let returnAction = next(action);
|
|
1053
1088
|
const actionTyped = action;
|
|
1054
|
-
const [importStepActions, needsOverwriteConfirmation] = adaptable.api.internalApi
|
|
1089
|
+
const [importStepActions, needsOverwriteConfirmation,] = adaptable.api.internalApi
|
|
1055
1090
|
.getTeamSharingService()
|
|
1056
1091
|
.buildSharedEntityImportActions(actionTyped.SharedEntity);
|
|
1057
1092
|
const processImportAction = TeamSharingRedux.TeamSharingProcessImport(importStepActions);
|
|
@@ -1124,14 +1159,14 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1124
1159
|
.getSharedEntities(adaptableId)
|
|
1125
1160
|
.then((sharedEntities) => {
|
|
1126
1161
|
// check if remote server has a newer revision
|
|
1127
|
-
const [localRevision, remoteRevision] = adaptable.api.internalApi
|
|
1162
|
+
const [localRevision, remoteRevision,] = adaptable.api.internalApi
|
|
1128
1163
|
.getTeamSharingService()
|
|
1129
1164
|
.getSharedEntityLocalAndRemoteRevisions(ChangedAdaptableObject.Uuid, sharedEntities);
|
|
1130
1165
|
if (remoteRevision > localRevision) {
|
|
1131
1166
|
// if remote has a newer version, we will NOT overwrite it
|
|
1132
1167
|
return;
|
|
1133
1168
|
}
|
|
1134
|
-
const [updatedSharedEntities, newActiveEntities] = adaptable.api.internalApi
|
|
1169
|
+
const [updatedSharedEntities, newActiveEntities,] = adaptable.api.internalApi
|
|
1135
1170
|
.getTeamSharingService()
|
|
1136
1171
|
.updateActiveSharedEntity(ChangedAdaptableObject, UserName, sharedEntities);
|
|
1137
1172
|
middlewareAPI.dispatch(TeamSharingRedux.TeamSharingLinkItem(...newActiveEntities));
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
3
|
import { AlertDefinition } from '../PredefinedConfig/AlertState';
|
|
3
|
-
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
|
|
5
5
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
6
6
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
7
|
+
import * as AlertRedux from '../Redux/ActionsReducers/AlertRedux';
|
|
7
8
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
8
|
-
import { IModule } from './Interface/IModule';
|
|
9
|
+
import { AdaptableObjectView, IModule } from './Interface/IModule';
|
|
9
10
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
10
11
|
export declare class AlertModule extends AdaptableModuleBase implements IModule {
|
|
11
12
|
constructor(api: AdaptableApi);
|
|
@@ -13,15 +14,23 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
|
|
|
13
14
|
getExplicitlyReferencedColumnIds(alertDefinition: AlertDefinition): string[];
|
|
14
15
|
getReferencedNamedQueryNames(alertDefinition: AlertDefinition): string[];
|
|
15
16
|
updateOldConfig(): void;
|
|
16
|
-
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
17
17
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
18
18
|
protected handleDataSourceChanged(dataChangedInfo: DataChangedInfo): void;
|
|
19
19
|
private handleReactiveAlertTriggered;
|
|
20
20
|
private showAlertForDefinitions;
|
|
21
|
-
private showFlashingAlertsForDefinitions;
|
|
22
21
|
private getAlertDefinitionsForDataChange;
|
|
23
|
-
private getFlashingAlertDefinitionsForDataChange;
|
|
24
22
|
private getBaseAlertDefinitionsForDataChange;
|
|
25
23
|
private isAlertPredicateTriggered;
|
|
26
24
|
getTeamSharingAction(): TeamSharingImportInfo<AlertDefinition>;
|
|
25
|
+
toView(alert: AlertDefinition): AdaptableObjectView;
|
|
26
|
+
toViewAll(): AdaptableObjectView[];
|
|
27
|
+
getViewProperties(): {
|
|
28
|
+
getDeleteAction: (alertDefinition: AlertDefinition) => AlertRedux.AlertDefinitionDeleteAction;
|
|
29
|
+
getSuspendAction: (alertDefinition: AlertDefinition) => AlertRedux.AlertDefinitionSuspendAction;
|
|
30
|
+
getUnSuspendAction: (alertDefinition: AlertDefinition) => AlertRedux.AlertDefinitionUnSuspendAction;
|
|
31
|
+
emptyView: import("react").FunctionComponent<{
|
|
32
|
+
module: IModule;
|
|
33
|
+
}>;
|
|
34
|
+
getEditWizard: () => (props: import("../View/Alert/Wizard/AlertWizard").AlertWizardProps) => JSX.Element;
|
|
35
|
+
};
|
|
27
36
|
}
|