@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
|
@@ -8,10 +8,13 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
8
8
|
const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
|
|
9
9
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
10
10
|
const AdaptableQuery_1 = require("../PredefinedConfig/Common/AdaptableQuery");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
|
|
12
|
+
const AlertWizard_1 = require("../View/Alert/Wizard/AlertWizard");
|
|
13
|
+
const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
14
|
+
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
15
|
+
const getAlertPreviewViewItems_1 = require("./Utilities/getAlertPreviewViewItems");
|
|
16
|
+
const getAlertBehaviourViewItems_1 = require("./Utilities/getAlertBehaviourViewItems");
|
|
17
|
+
const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
|
|
15
18
|
class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
16
19
|
constructor(api) {
|
|
17
20
|
super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
|
|
@@ -38,10 +41,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
38
41
|
.onReactiveAlertTriggered((reactiveAlertInfo) => this.handleReactiveAlertTriggered(reactiveAlertInfo));
|
|
39
42
|
}
|
|
40
43
|
getModuleAdaptableObjects() {
|
|
41
|
-
return
|
|
42
|
-
...this.api.alertApi.getAlertDefinitions(),
|
|
43
|
-
...this.api.alertApi.getFlashingAlertDefinitions(),
|
|
44
|
-
];
|
|
44
|
+
return this.api.alertApi.getAlertDefinitions();
|
|
45
45
|
}
|
|
46
46
|
getExplicitlyReferencedColumnIds(alertDefinition) {
|
|
47
47
|
const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
|
|
@@ -63,64 +63,14 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
63
63
|
return this.api.queryApi.getReferencedNamedQueryNames(queryExpression);
|
|
64
64
|
}
|
|
65
65
|
updateOldConfig() {
|
|
66
|
-
var _a, _b;
|
|
67
|
-
/*
|
|
68
|
-
Need to do 4 things here:
|
|
69
|
-
1. Make all (new) Flashing Alerts have a Predicate if none exists
|
|
70
|
-
2. Convert old Alert Rules to use new syntax
|
|
71
|
-
3. Convert old Flashing Cells into Flashing Alerts
|
|
72
|
-
4. Convert old Updated Rows into Flashing Alerts
|
|
73
|
-
*/
|
|
74
|
-
let oldAlertDefinitions = [];
|
|
75
66
|
// 1. Make all (new) Flashing Alerts have a Predicate if none exists
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
flashingAlertDefinition.Rule = {
|
|
84
|
-
Predicate: ANY_PREDICATE,
|
|
85
|
-
};
|
|
86
|
-
oldAlertDefinitions.push(flashingAlertDefinition);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
// 2. Convert old Alert Rules to use new syntax
|
|
90
|
-
(_b = this.api.alertApi.getAlertState().AlertDefinitions) === null || _b === void 0 ? void 0 : _b.forEach((alertDefinition) => {
|
|
91
|
-
if (alertDefinition.Predicate) {
|
|
92
|
-
alertDefinition.Rule = {
|
|
93
|
-
Predicate: alertDefinition.Predicate,
|
|
94
|
-
};
|
|
95
|
-
LoggingHelper_1.LogAdaptableWarning(`Updating incorrect Predefined Config for Alert Definition: ${alertDefinition.predicate}`);
|
|
96
|
-
alertDefinition.Predicate = undefined;
|
|
97
|
-
oldAlertDefinitions.push(alertDefinition);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
addColumnMenuItems(column) {
|
|
102
|
-
if (column && this.isModuleEditable()) {
|
|
103
|
-
if (!this.api.columnApi.isCalculatedColumn(column.columnId)) {
|
|
104
|
-
const flashingAlertDefinitions = this.api.alertApi.getFlashingAlertDefinitions();
|
|
105
|
-
const flashingAlertForCurrentColumn = flashingAlertDefinitions.find((flashingAlertDefinition) => {
|
|
106
|
-
return this.api.scopeApi.isColumnInScope(column, flashingAlertDefinition.Scope);
|
|
107
|
-
});
|
|
108
|
-
if (flashingAlertForCurrentColumn) {
|
|
109
|
-
return [
|
|
110
|
-
this.createColumnMenuItemReduxAction('Remove Flashing Alert', this.moduleInfo.Glyph, AlertRedux.FlashingAlertDefinitionDelete(flashingAlertForCurrentColumn)),
|
|
111
|
-
];
|
|
112
|
-
}
|
|
113
|
-
return [
|
|
114
|
-
this.createColumnMenuItemReduxAction('Add Flashing Alert', this.moduleInfo.Glyph, AlertRedux.FlashingAlertDefinitionAdd({
|
|
115
|
-
Scope: {
|
|
116
|
-
ColumnIds: [column.columnId],
|
|
117
|
-
},
|
|
118
|
-
Rule: {
|
|
119
|
-
Predicate: { PredicateId: 'Any' },
|
|
120
|
-
},
|
|
121
|
-
})),
|
|
122
|
-
];
|
|
123
|
-
}
|
|
67
|
+
const flashingAlertDefinitions = this.api.alertApi.getAlertState().FlashingAlertDefinitions;
|
|
68
|
+
const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
|
|
69
|
+
if (ArrayExtensions_1.ArrayExtensions.IsEmpty(flashingCellDefinitions) &&
|
|
70
|
+
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
|
|
71
|
+
this.api.flashingCellApi.setFlashingCellDefinition(flashingAlertDefinitions);
|
|
72
|
+
// TODO: state does not clear
|
|
73
|
+
this.api.internalApi.clearFlashingCellState();
|
|
124
74
|
}
|
|
125
75
|
}
|
|
126
76
|
addContextMenuItems(menuContext) {
|
|
@@ -136,14 +86,6 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
136
86
|
items.push(this.createColumnMenuItemReduxAction('Clear Alert', this.moduleInfo.Glyph, SystemRedux.SystemAlertDelete(relevantAlert)));
|
|
137
87
|
}
|
|
138
88
|
}
|
|
139
|
-
const flashingAlertForRow = this.api.internalApi.getAdaptableFlashingAlertFor(menuContext.primaryKeyValue);
|
|
140
|
-
const flashingAlertForCell = this.api.internalApi.getAdaptableFlashingAlertFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
|
|
141
|
-
if (flashingAlertForRow && flashingAlertForRow.flashTarget === 'row') {
|
|
142
|
-
items.push(this.createColumnMenuItemReduxAction('Clear Flashing Alert for Row', this.moduleInfo.Glyph, SystemRedux.SystemFlashingAlertDelete(flashingAlertForRow)));
|
|
143
|
-
}
|
|
144
|
-
else if (flashingAlertForCell && flashingAlertForCell.flashTarget === 'cell') {
|
|
145
|
-
items.push(this.createColumnMenuItemReduxAction('Clear Flashing Alert for Cell', this.moduleInfo.Glyph, SystemRedux.SystemFlashingAlertDelete(flashingAlertForCell)));
|
|
146
|
-
}
|
|
147
89
|
}
|
|
148
90
|
}
|
|
149
91
|
return items;
|
|
@@ -153,10 +95,6 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
153
95
|
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(alertDefinitions)) {
|
|
154
96
|
this.showAlertForDefinitions(dataChangedInfo, alertDefinitions);
|
|
155
97
|
}
|
|
156
|
-
const flashingAlertDefinitions = this.getFlashingAlertDefinitionsForDataChange(dataChangedInfo);
|
|
157
|
-
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
|
|
158
|
-
this.showFlashingAlertsForDefinitions(dataChangedInfo, flashingAlertDefinitions);
|
|
159
|
-
}
|
|
160
98
|
}
|
|
161
99
|
handleReactiveAlertTriggered(reactiveAlertInfo) {
|
|
162
100
|
var _a;
|
|
@@ -171,60 +109,16 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
171
109
|
reactiveAlertInfo.alertDefinition,
|
|
172
110
|
]);
|
|
173
111
|
}
|
|
174
|
-
else {
|
|
175
|
-
this.showFlashingAlertsForDefinitions(reactiveAlertInfo.dataChangeLogEntry, [
|
|
176
|
-
reactiveAlertInfo.alertDefinition,
|
|
177
|
-
]);
|
|
178
|
-
}
|
|
179
112
|
}
|
|
180
113
|
showAlertForDefinitions(dataChangedInfo, alertDefinitions = []) {
|
|
181
114
|
alertDefinitions.forEach((alertDefinition) => {
|
|
182
|
-
|
|
183
|
-
this.api.alertApi.
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
showFlashingAlertsForDefinitions(dataChangedInfo, flashingAlertDefinitions = []) {
|
|
187
|
-
const allColumnIds = this.api.columnApi.getColumns().map((c) => c.columnId);
|
|
188
|
-
const columnDataType = dataChangedInfo.column.dataType;
|
|
189
|
-
const numeric = columnDataType === 'Number';
|
|
190
|
-
const isComparableType = numeric || columnDataType === 'Date';
|
|
191
|
-
let up = false;
|
|
192
|
-
let down = false;
|
|
193
|
-
let direction = 'neutral';
|
|
194
|
-
if (isComparableType) {
|
|
195
|
-
const newValue = numeric ? Number(dataChangedInfo.newValue) : dataChangedInfo.newValue;
|
|
196
|
-
const oldValue = numeric ? Number(dataChangedInfo.oldValue) : dataChangedInfo.oldValue;
|
|
197
|
-
up = newValue > oldValue;
|
|
198
|
-
down = newValue < oldValue;
|
|
199
|
-
direction = up ? 'up' : down ? 'down' : 'neutral';
|
|
200
|
-
}
|
|
201
|
-
flashingAlertDefinitions.forEach((flashingAlertDefinition) => {
|
|
202
|
-
const flashTarget = this.api.alertApi.getFlashingAlertFlashTarget(flashingAlertDefinition);
|
|
203
|
-
const flashColumnIds = { [dataChangedInfo.column.columnId]: true };
|
|
204
|
-
if (flashTarget === 'row') {
|
|
205
|
-
allColumnIds.forEach((colId) => {
|
|
206
|
-
flashColumnIds[colId] = true;
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
const rowPrimaryKey = dataChangedInfo.primaryKeyValue;
|
|
210
|
-
this.api.alertApi.showFlashingAlert({
|
|
211
|
-
rowPrimaryKey,
|
|
212
|
-
flashingAlertDefinition,
|
|
213
|
-
dataChangedInfo,
|
|
214
|
-
direction,
|
|
215
|
-
flashTarget,
|
|
216
|
-
flashColumnIds,
|
|
217
|
-
});
|
|
115
|
+
const alert = ObjectFactory_1.default.CreateAlert(dataChangedInfo.column.friendlyName, this.api.alertApi.getAlertDescription(alertDefinition, dataChangedInfo), alertDefinition, dataChangedInfo);
|
|
116
|
+
this.api.alertApi.displayAlert(alert);
|
|
218
117
|
});
|
|
219
118
|
}
|
|
220
119
|
getAlertDefinitionsForDataChange(dataChangedEvent) {
|
|
221
120
|
return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent, this.api.alertApi.getActiveNonReactiveAlertDefinitions());
|
|
222
121
|
}
|
|
223
|
-
getFlashingAlertDefinitionsForDataChange(dataChangedEvent) {
|
|
224
|
-
return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent,
|
|
225
|
-
// reactive flashing alert definitions are excluded as they are handled separately (asynchronously)
|
|
226
|
-
this.api.alertApi.getActiveNonReactiveFlashingAlertDefinitions(), true);
|
|
227
|
-
}
|
|
228
122
|
getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
|
|
229
123
|
let relatedAlertDefinitions = definitions
|
|
230
124
|
.filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
|
|
@@ -271,5 +165,28 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
271
165
|
EditAction: AlertRedux.AlertDefinitionEdit,
|
|
272
166
|
};
|
|
273
167
|
}
|
|
168
|
+
toView(alert) {
|
|
169
|
+
return {
|
|
170
|
+
items: [
|
|
171
|
+
getScopeViewItems_1.getScopeViewItems(alert.Scope),
|
|
172
|
+
getRuleViewItems_1.getRuleViewItems(alert.Rule, this.api),
|
|
173
|
+
getAlertBehaviourViewItems_1.getAlertBehaviourViewItems(),
|
|
174
|
+
getAlertPreviewViewItems_1.getAlertPreviewViewItems(alert, this.api),
|
|
175
|
+
],
|
|
176
|
+
abObject: alert,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
toViewAll() {
|
|
180
|
+
return this.api.alertApi.getAlertDefinitions().map((alert) => this.toView(alert));
|
|
181
|
+
}
|
|
182
|
+
getViewProperties() {
|
|
183
|
+
return {
|
|
184
|
+
getDeleteAction: AlertRedux.AlertDefinitionDelete,
|
|
185
|
+
getSuspendAction: AlertRedux.AlertDefinitionSuspend,
|
|
186
|
+
getUnSuspendAction: AlertRedux.AlertDefinitionUnSuspend,
|
|
187
|
+
emptyView: AlertEmptyView_1.AlertEmptyView,
|
|
188
|
+
getEditWizard: () => AlertWizard_1.AlertWizard,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
274
191
|
}
|
|
275
192
|
exports.AlertModule = AlertModule;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
4
|
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
5
|
+
import * as CalculatedColumnRedux from '../Redux/ActionsReducers/CalculatedColumnRedux';
|
|
4
6
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
5
7
|
import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
|
|
6
8
|
import { IModule } from './Interface/IModule';
|
|
@@ -14,4 +16,30 @@ export declare class CalculatedColumnModule extends AdaptableModuleBase implemen
|
|
|
14
16
|
getReferencedNamedQueryNames(calculatedColumn: CalculatedColumn): string[];
|
|
15
17
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
16
18
|
getTeamSharingAction(): TeamSharingImportInfo<CalculatedColumn>;
|
|
19
|
+
toView(calculateColumn: CalculatedColumn): {
|
|
20
|
+
items: ({
|
|
21
|
+
name: string;
|
|
22
|
+
values: string[];
|
|
23
|
+
} | {
|
|
24
|
+
name: string;
|
|
25
|
+
label: string;
|
|
26
|
+
values: string[];
|
|
27
|
+
})[];
|
|
28
|
+
abObject: CalculatedColumn;
|
|
29
|
+
};
|
|
30
|
+
toViewAll(): {
|
|
31
|
+
items: ({
|
|
32
|
+
name: string;
|
|
33
|
+
values: string[];
|
|
34
|
+
} | {
|
|
35
|
+
name: string;
|
|
36
|
+
label: string;
|
|
37
|
+
values: string[];
|
|
38
|
+
})[];
|
|
39
|
+
abObject: CalculatedColumn;
|
|
40
|
+
}[];
|
|
41
|
+
getViewProperties(): {
|
|
42
|
+
getDeleteAction: (calculatedColumn: CalculatedColumn) => CalculatedColumnRedux.CalculatedColumnDeleteAction;
|
|
43
|
+
getEditWizard: () => (props: import("../View/CalculatedColumn/Wizard/CalculatedColumnWizard").CalculatedColumnWizardProps) => JSX.Element;
|
|
44
|
+
};
|
|
17
45
|
}
|
|
@@ -6,6 +6,9 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
8
8
|
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
|
+
const getExpressionViewItems_1 = require("./Utilities/getExpressionViewItems");
|
|
10
|
+
const CalculatedColumnWizard_1 = require("../View/CalculatedColumn/Wizard/CalculatedColumnWizard");
|
|
11
|
+
const getCalculatedColumnSettingTags_1 = require("../View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags");
|
|
9
12
|
class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
13
|
constructor(api) {
|
|
11
14
|
super(ModuleConstants.CalculatedColumnModuleId, 'Calculated Column', 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
|
|
@@ -59,5 +62,31 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
59
62
|
EditAction: CalculatedColumnRedux.CalculatedColumnEdit,
|
|
60
63
|
};
|
|
61
64
|
}
|
|
65
|
+
toView(calculateColumn) {
|
|
66
|
+
return {
|
|
67
|
+
items: [
|
|
68
|
+
{
|
|
69
|
+
name: 'Settings',
|
|
70
|
+
label: 'Column Id',
|
|
71
|
+
values: [calculateColumn.ColumnId],
|
|
72
|
+
},
|
|
73
|
+
getExpressionViewItems_1.getExpressionViewItems(calculateColumn.Query),
|
|
74
|
+
{
|
|
75
|
+
name: 'Settings',
|
|
76
|
+
values: getCalculatedColumnSettingTags_1.getCalculatedColumnSettingTags(calculateColumn.CalculatedColumnSettings),
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
abObject: calculateColumn,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
toViewAll() {
|
|
83
|
+
return this.getModuleAdaptableObjects().map((calculatedColumn) => this.toView(calculatedColumn));
|
|
84
|
+
}
|
|
85
|
+
getViewProperties() {
|
|
86
|
+
return {
|
|
87
|
+
getDeleteAction: CalculatedColumnRedux.CalculatedColumnDelete,
|
|
88
|
+
getEditWizard: () => CalculatedColumnWizard_1.CalculatedColumnWizard,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
62
91
|
}
|
|
63
92
|
exports.CalculatedColumnModule = CalculatedColumnModule;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
4
|
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
5
|
import { ConditionalStyle } from '../PredefinedConfig/ConditionalStyleState';
|
|
5
6
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
7
|
+
import * as ConditionalStyleRedux from '../Redux/ActionsReducers/ConditionalStyleRedux';
|
|
6
8
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
7
9
|
import { IConditionalStyleModule } from './Interface/IConditionalStyleModule';
|
|
8
10
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
11
|
+
import { AdaptableObjectView } from './Interface/IModule';
|
|
9
12
|
export declare class ConditionalStyleModule extends AdaptableModuleBase implements IConditionalStyleModule {
|
|
10
13
|
constructor(api: AdaptableApi);
|
|
11
14
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
@@ -19,4 +22,13 @@ export declare class ConditionalStyleModule extends AdaptableModuleBase implemen
|
|
|
19
22
|
private evaluatePredicate;
|
|
20
23
|
private evaluateExpression;
|
|
21
24
|
private shouldRunStyle;
|
|
25
|
+
toView(conditionalStyle: ConditionalStyle): AdaptableObjectView;
|
|
26
|
+
toViewAll(): AdaptableObjectView[];
|
|
27
|
+
getViewProperties(): {
|
|
28
|
+
getDeleteAction: (conditionalStyle: ConditionalStyle) => ConditionalStyleRedux.ConditionalStyleAction;
|
|
29
|
+
getSuspendAction: (conditionalStyle: ConditionalStyle) => ConditionalStyleRedux.ConditionalStyleSuspendAction;
|
|
30
|
+
getUnSuspendAction: (conditionalStyle: ConditionalStyle) => ConditionalStyleRedux.ConditionalStyleUnSuspendAction;
|
|
31
|
+
emptyView: string;
|
|
32
|
+
getEditWizard(): import("react").FunctionComponent<import("../View/ConditionalStyle/Wizard/ConditionalStyleWizard").ConditionalStyleWizardProps>;
|
|
33
|
+
};
|
|
22
34
|
}
|
|
@@ -8,6 +8,10 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
|
|
|
8
8
|
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
9
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
10
10
|
const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
|
|
11
|
+
const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
12
|
+
const ConditionalStyleWizard_1 = require("../View/ConditionalStyle/Wizard/ConditionalStyleWizard");
|
|
13
|
+
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
14
|
+
const getStyleViewItems_1 = require("./Utilities/getStyleViewItems");
|
|
11
15
|
class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
16
|
constructor(api) {
|
|
13
17
|
super(ModuleConstants.ConditionalStyleModuleId, 'Conditional Style', 'conditional-style', 'ConditionalStylePopup', 'Style columns and rows dynamically based on rules and cell values', api);
|
|
@@ -181,5 +185,29 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
181
185
|
}
|
|
182
186
|
return true;
|
|
183
187
|
}
|
|
188
|
+
toView(conditionalStyle) {
|
|
189
|
+
return {
|
|
190
|
+
items: [
|
|
191
|
+
getScopeViewItems_1.getScopeViewItems(conditionalStyle.Scope),
|
|
192
|
+
getStyleViewItems_1.getStyleViewItems(),
|
|
193
|
+
getRuleViewItems_1.getRuleViewItems(conditionalStyle.Rule, this.api),
|
|
194
|
+
],
|
|
195
|
+
abObject: conditionalStyle,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
toViewAll() {
|
|
199
|
+
return this.getModuleAdaptableObjects().map((conditionalStyle) => this.toView(conditionalStyle));
|
|
200
|
+
}
|
|
201
|
+
getViewProperties() {
|
|
202
|
+
return {
|
|
203
|
+
getDeleteAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleDelete(conditionalStyle),
|
|
204
|
+
getSuspendAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleSuspend(conditionalStyle),
|
|
205
|
+
getUnSuspendAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleUnSuspend(conditionalStyle),
|
|
206
|
+
emptyView: "Click 'New' to create a new conditional style to be applied at row or column level when a rule set by you is met.",
|
|
207
|
+
getEditWizard() {
|
|
208
|
+
return ConditionalStyleWizard_1.ConditionalStyleWizard;
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
}
|
|
184
212
|
}
|
|
185
213
|
exports.ConditionalStyleModule = ConditionalStyleModule;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
4
|
import { CustomSort } from '../PredefinedConfig/CustomSortState';
|
|
5
|
+
import * as CustomSortRedux from '../Redux/ActionsReducers/CustomSortRedux';
|
|
4
6
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
5
7
|
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
6
|
-
import { IModule } from './Interface/IModule';
|
|
8
|
+
import { AdaptableObjectView, IModule } from './Interface/IModule';
|
|
7
9
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
8
10
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
9
11
|
export declare class CustomSortModule extends AdaptableModuleBase implements IModule {
|
|
@@ -13,4 +15,13 @@ export declare class CustomSortModule extends AdaptableModuleBase implements IMo
|
|
|
13
15
|
hasNamedQueryReferences(): boolean;
|
|
14
16
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
15
17
|
getTeamSharingAction(): TeamSharingImportInfo<CustomSort>;
|
|
18
|
+
toView(customSort: CustomSort): AdaptableObjectView;
|
|
19
|
+
toViewAll(): AdaptableObjectView[];
|
|
20
|
+
getViewProperties(): {
|
|
21
|
+
getDeleteAction: (customSort: CustomSort) => CustomSortRedux.CustomSortDeleteAction;
|
|
22
|
+
getSuspendAction: (customSort: CustomSort) => CustomSortRedux.CustomSortDeleteAction;
|
|
23
|
+
getUnSuspendAction: (customSort: CustomSort) => CustomSortRedux.CustomSortDeleteAction;
|
|
24
|
+
emptyView: string;
|
|
25
|
+
getEditWizard(): (props: import("../View/CustomSort/Wizard/CustomSortWizard").CustomSortWizardProps) => JSX.Element;
|
|
26
|
+
};
|
|
16
27
|
}
|
|
@@ -5,6 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const CustomSortRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/CustomSortRedux"));
|
|
8
|
+
const CustomSortWizard_1 = require("../View/CustomSort/Wizard/CustomSortWizard");
|
|
9
|
+
const getCustomSortColumnViewItems_1 = require("./Utilities/getCustomSortColumnViewItems");
|
|
10
|
+
const getCustomSortSortOrderViewItems_1 = require("./Utilities/getCustomSortSortOrderViewItems");
|
|
8
11
|
class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
9
12
|
constructor(api) {
|
|
10
13
|
super(ModuleConstants.CustomSortModuleId, 'Custom Sort', 'custom-sort', 'CustomSortPopup', 'Provide bespoke sorting information for Columns (in place of alphabetical sorting)', api);
|
|
@@ -46,5 +49,28 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
46
49
|
EditAction: CustomSortRedux.CustomSortEdit,
|
|
47
50
|
};
|
|
48
51
|
}
|
|
52
|
+
toView(customSort) {
|
|
53
|
+
return {
|
|
54
|
+
items: [
|
|
55
|
+
getCustomSortColumnViewItems_1.getCustomSortColumnViewItems(customSort, this.api),
|
|
56
|
+
getCustomSortSortOrderViewItems_1.getCustomSortSortOrderViewItems(customSort),
|
|
57
|
+
],
|
|
58
|
+
abObject: customSort,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
toViewAll() {
|
|
62
|
+
return this.getModuleAdaptableObjects().map((customSort) => this.toView(customSort));
|
|
63
|
+
}
|
|
64
|
+
getViewProperties() {
|
|
65
|
+
return {
|
|
66
|
+
getDeleteAction: CustomSortRedux.CustomSortDelete,
|
|
67
|
+
getSuspendAction: CustomSortRedux.CustomSortSuspend,
|
|
68
|
+
getUnSuspendAction: CustomSortRedux.CustomSortUnSuspend,
|
|
69
|
+
emptyView: "Click 'New' to create a custom Sort Order for a selected Column.",
|
|
70
|
+
getEditWizard() {
|
|
71
|
+
return CustomSortWizard_1.CustomSortWizard;
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
}
|
|
49
75
|
}
|
|
50
76
|
exports.CustomSortModule = CustomSortModule;
|
|
@@ -4,7 +4,6 @@ import { IModule } from './Interface/IModule';
|
|
|
4
4
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
5
5
|
export declare class DashboardModule extends AdaptableModuleBase implements IModule {
|
|
6
6
|
constructor(api: AdaptableApi);
|
|
7
|
-
addModuleMenuItem(source: 'ModuleMenu' | 'ModuleButton'): AdaptableMenuItem | undefined;
|
|
8
7
|
updateOldConfig(): void;
|
|
9
8
|
handleAdaptableReady(): void;
|
|
10
9
|
addColumnMenuItems(): AdaptableMenuItem[] | undefined;
|
|
@@ -10,11 +10,6 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
10
10
|
constructor(api) {
|
|
11
11
|
super(ModuleConstants.DashboardModuleId, 'Dashboard', 'dashboard', 'DashboardPopup', 'The Dashboard - usually placed above the Grid - is designed to provide quick access to commonly required AdapTable functionalty', api);
|
|
12
12
|
}
|
|
13
|
-
// no standard module menu item as we do special ones in the Dashboard class
|
|
14
|
-
addModuleMenuItem(source) {
|
|
15
|
-
// dont need
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
13
|
updateOldConfig() {
|
|
19
14
|
let dashboardState = this.api.dashboardApi.getDashboardState();
|
|
20
15
|
if (dashboardState.VisibleButtons) {
|
|
@@ -23,8 +18,7 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
20
|
handleAdaptableReady() {
|
|
26
|
-
// create a default
|
|
27
|
-
this.api.internalApi.setDefaultDashboardTab();
|
|
21
|
+
// we used to create a default tab here but we no longer do // this.api.internalApi.setDefaultDashboardTab();
|
|
28
22
|
// this handler reacts to the 'AdaptableReady' event,
|
|
29
23
|
// but so do all the other possible handlers of the 'DashboardChanged' event
|
|
30
24
|
// therefore, we give them a head start to subscribe to 'DashboardChanged' before emitting it
|
|
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
8
8
|
class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
9
9
|
constructor(api) {
|
|
10
|
-
super(ModuleConstants.DataChangeHistoryModuleId, 'Data
|
|
10
|
+
super(ModuleConstants.DataChangeHistoryModuleId, 'Data Changes', 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
|
|
11
11
|
this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
|
|
12
12
|
if (dataChangedInfo.trigger !== 'undo') {
|
|
13
13
|
if (this.shouldLogDataChange(dataChangedInfo)) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
3
|
+
import * as DataSourceRedux from '../Redux/ActionsReducers/DataSourceRedux';
|
|
2
4
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
3
5
|
import { DataSource } from '../PredefinedConfig/DataSourceState';
|
|
4
|
-
import { IModule } from './Interface/IModule';
|
|
6
|
+
import { AdaptableObjectView, IModule } from './Interface/IModule';
|
|
5
7
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
6
8
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
7
9
|
export declare class DataSourceModule extends AdaptableModuleBase implements IModule {
|
|
@@ -9,4 +11,10 @@ export declare class DataSourceModule extends AdaptableModuleBase implements IMo
|
|
|
9
11
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
10
12
|
hasNamedQueryReferences(): boolean;
|
|
11
13
|
getTeamSharingAction(): TeamSharingImportInfo<DataSource>;
|
|
14
|
+
toView(dataSource: DataSource): AdaptableObjectView;
|
|
15
|
+
toViewAll(): AdaptableObjectView[];
|
|
16
|
+
getViewProperties(): {
|
|
17
|
+
getDeleteAction: (dataSource: DataSource) => DataSourceRedux.DataSourceDeleteAction;
|
|
18
|
+
getEditWizard: () => import("react").FunctionComponent<import("../View/DataSource/Wizard/DataSourceWizard").DataSourceWizardProps>;
|
|
19
|
+
};
|
|
12
20
|
}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const DataSourceRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/DataSourceRedux"));
|
|
8
|
+
const DataSourceWizard_1 = require("../View/DataSource/Wizard/DataSourceWizard");
|
|
8
9
|
class DataSourceModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
9
10
|
constructor(api) {
|
|
10
11
|
super(ModuleConstants.DataSourceModuleId, 'Data Source', 'data-source', 'DataSourcePopup', 'Update the entire data set in AdapTable using pre-populated data sources', api);
|
|
@@ -22,5 +23,32 @@ class DataSourceModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
22
23
|
EditAction: DataSourceRedux.DataSourceEdit,
|
|
23
24
|
};
|
|
24
25
|
}
|
|
26
|
+
toView(dataSource) {
|
|
27
|
+
var _a;
|
|
28
|
+
return {
|
|
29
|
+
items: [
|
|
30
|
+
{
|
|
31
|
+
name: 'Settings',
|
|
32
|
+
label: 'Name',
|
|
33
|
+
values: [dataSource.Name],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Settings',
|
|
37
|
+
label: 'Description',
|
|
38
|
+
values: [(_a = dataSource.Description) !== null && _a !== void 0 ? _a : 'Not Specified'],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
abObject: dataSource,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
toViewAll() {
|
|
45
|
+
return this.getModuleAdaptableObjects().map((dataSource) => this.toView(dataSource));
|
|
46
|
+
}
|
|
47
|
+
getViewProperties() {
|
|
48
|
+
return {
|
|
49
|
+
getDeleteAction: DataSourceRedux.DataSourceDelete,
|
|
50
|
+
getEditWizard: () => DataSourceWizard_1.DataSourceWizard,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
25
53
|
}
|
|
26
54
|
exports.DataSourceModule = DataSourceModule;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { IExportModule } from './Interface/IExportModule';
|
|
3
4
|
import { ExportDestination } from '../PredefinedConfig/Common/Enums';
|
|
4
5
|
import { Report } from '../PredefinedConfig/ExportState';
|
|
6
|
+
import * as ExportRedux from '../Redux/ActionsReducers/ExportRedux';
|
|
5
7
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
6
8
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
7
9
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
8
10
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
11
|
+
import { AdaptableObjectView } from './Interface/IModule';
|
|
9
12
|
export declare class ExportModule extends AdaptableModuleBase implements IExportModule {
|
|
10
13
|
constructor(api: AdaptableApi);
|
|
11
14
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
@@ -24,4 +27,13 @@ export declare class ExportModule extends AdaptableModuleBase implements IExport
|
|
|
24
27
|
getTeamSharingAction(): TeamSharingImportInfo<Report>;
|
|
25
28
|
private isEmptyReportData;
|
|
26
29
|
private showEmptyExportWarning;
|
|
30
|
+
toView(report: Report): AdaptableObjectView;
|
|
31
|
+
toViewAll(): AdaptableObjectView[];
|
|
32
|
+
getViewProperties(): {
|
|
33
|
+
actions: import("react").FunctionComponent<{
|
|
34
|
+
data: Report;
|
|
35
|
+
}>[];
|
|
36
|
+
getDeleteAction: (report: Report) => ExportRedux.ReportDeleteAction;
|
|
37
|
+
getEditWizard(): (props: import("../View/Export/Wizard/NewReportWizard").NewReportWizardProps) => JSX.Element;
|
|
38
|
+
};
|
|
27
39
|
}
|
|
@@ -14,6 +14,10 @@ const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
|
14
14
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
15
15
|
const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
|
|
16
16
|
const ObjectFactory_1 = require("../Utilities/ObjectFactory");
|
|
17
|
+
const NewReportWizard_1 = require("../View/Export/Wizard/NewReportWizard");
|
|
18
|
+
const getExportColumnsViewItems_1 = require("./Utilities/getExportColumnsViewItems");
|
|
19
|
+
const getExportRowsViewItems_1 = require("./Utilities/getExportRowsViewItems");
|
|
20
|
+
const ReportExportDropdown_1 = require("../View/Export/ReportExportDropdown");
|
|
17
21
|
class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
18
22
|
constructor(api) {
|
|
19
23
|
super(ModuleConstants.ExportModuleId, 'Export', 'export-data', 'ExportPopup', 'Export data from the Grid to numerous locations in numerous formatso', api);
|
|
@@ -186,5 +190,44 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
186
190
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
187
191
|
}));
|
|
188
192
|
}
|
|
193
|
+
toView(report) {
|
|
194
|
+
const isSystemReport = this.api.internalApi
|
|
195
|
+
.getReportService()
|
|
196
|
+
.IsSystemReport(report.Name);
|
|
197
|
+
if (isSystemReport) {
|
|
198
|
+
return {
|
|
199
|
+
items: [
|
|
200
|
+
{
|
|
201
|
+
name: 'Report',
|
|
202
|
+
values: [report.Name],
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
abObject: report,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
items: [
|
|
210
|
+
{
|
|
211
|
+
name: 'Report',
|
|
212
|
+
values: [report.Name],
|
|
213
|
+
},
|
|
214
|
+
getExportColumnsViewItems_1.getExportColumnsViewItems(report, this.api),
|
|
215
|
+
getExportRowsViewItems_1.getExportRowsViewItems(report, this.api),
|
|
216
|
+
],
|
|
217
|
+
abObject: report,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
toViewAll() {
|
|
221
|
+
return this.getModuleAdaptableObjects().map((report) => this.toView(report));
|
|
222
|
+
}
|
|
223
|
+
getViewProperties() {
|
|
224
|
+
return {
|
|
225
|
+
actions: [ReportExportDropdown_1.ReportExportDropdown],
|
|
226
|
+
getDeleteAction: ExportRedux.ReportDelete,
|
|
227
|
+
getEditWizard() {
|
|
228
|
+
return NewReportWizard_1.NewReportWizard;
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
}
|
|
189
232
|
}
|
|
190
233
|
exports.ExportModule = ExportModule;
|