@adaptabletools/adaptable 10.0.4-canary.4 → 11.0.0-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/agGrid.d.ts +2 -2
- package/base.css +216 -47
- package/bundle.cjs.js +118 -113
- package/index.css +257 -49
- package/package.json +4 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -7
- package/src/AdaptableOptions/AdaptableOptions.d.ts +19 -3
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
- package/src/AdaptableOptions/DashboardOptions.d.ts +7 -9
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +2 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
- package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
- package/src/AdaptableOptions/NotificationsOptions.d.ts +2 -8
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +87 -0
- package/src/{Api/ChartApi.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +34 -0
- package/src/Api/AdaptableApi.d.ts +9 -7
- package/src/Api/AlertApi.d.ts +4 -79
- package/src/Api/ChartingApi.d.ts +9 -0
- package/src/Api/{Events/FlashingAlertFired.js → ChartingApi.js} +0 -0
- package/src/Api/ColumnApi.d.ts +11 -1
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/DataChangeHistoryApi.d.ts +4 -0
- package/src/Api/EventApi.d.ts +8 -8
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
- package/src/Api/{SparklineColumnApi.js → Events/FlashingCellDisplayed.js} +0 -0
- package/src/Api/Events/GridDataChanged.d.ts +3 -1
- package/src/Api/Events/SearchChanged.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +89 -0
- package/src/{PredefinedConfig/ChartState.js → Api/FlashingCellApi.js} +0 -0
- package/src/Api/GridApi.d.ts +28 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +4 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
- package/src/Api/Implementation/AlertApiImpl.js +40 -107
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ChartingApiImpl.js +10 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ColumnApiImpl.js +9 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +0 -21
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +24 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +111 -0
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +13 -8
- package/src/Api/Implementation/GridApiImpl.js +39 -17
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -7
- package/src/Api/Implementation/InternalApiImpl.js +5 -18
- package/src/Api/Implementation/LayoutApiImpl.js +12 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
- package/src/Api/Implementation/PluginsApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/QueryApiImpl.js +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +5 -5
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +4 -9
- package/src/Api/PluginsApi.d.ts +0 -2
- package/src/Api/SmartEditApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -4
- package/src/PredefinedConfig/AlertState.d.ts +13 -54
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
- package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.d.ts → AdaptableFlashingCell.d.ts} +6 -6
- package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.js → AdaptableFlashingCell.js} +0 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
- package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +16 -20
- package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
- package/src/PredefinedConfig/Common/Schedule.js +0 -14
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DashboardState.d.ts +6 -5
- package/src/PredefinedConfig/FlashingCellState.d.ts +65 -0
- package/src/PredefinedConfig/{SparklineColumnState.js → FlashingCellState.js} +0 -0
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +2 -2
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -10
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -5
- package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +17 -8
- package/src/PredefinedConfig/ThemeState.d.ts +2 -1
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
- package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +3 -13
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +55 -0
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +100 -0
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +1 -3
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -25
- package/src/Redux/ActionsReducers/SystemRedux.js +94 -60
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +90 -66
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -3
- package/src/Strategy/AlertModule.d.ts +14 -5
- package/src/Strategy/AlertModule.js +40 -123
- package/src/Strategy/CalculatedColumnModule.d.ts +28 -0
- package/src/Strategy/CalculatedColumnModule.js +34 -0
- package/src/Strategy/ChartingModule.d.ts +7 -0
- package/src/Strategy/ChartingModule.js +15 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +12 -0
- package/src/Strategy/ConditionalStyleModule.js +28 -0
- package/src/Strategy/CustomSortModule.d.ts +12 -1
- package/src/Strategy/CustomSortModule.js +26 -0
- package/src/Strategy/DashboardModule.d.ts +0 -1
- package/src/Strategy/DashboardModule.js +1 -7
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSourceModule.d.ts +9 -1
- package/src/Strategy/DataSourceModule.js +28 -0
- package/src/Strategy/ExportModule.d.ts +12 -0
- package/src/Strategy/ExportModule.js +43 -0
- package/src/Strategy/FilterModule.d.ts +8 -1
- package/src/Strategy/FilterModule.js +28 -0
- package/src/Strategy/FlashingCellModule.d.ts +33 -0
- package/src/Strategy/FlashingCellModule.js +219 -0
- package/src/Strategy/FormatColumnModule.d.ts +11 -1
- package/src/Strategy/FormatColumnModule.js +35 -0
- package/src/Strategy/FreeTextColumnModule.d.ts +9 -1
- package/src/Strategy/FreeTextColumnModule.js +45 -0
- package/src/Strategy/GridInfoModule.js +58 -36
- package/src/Strategy/Interface/IModule.d.ts +70 -1
- package/src/Strategy/LayoutModule.js +15 -3
- package/src/Strategy/PlusMinusModule.d.ts +11 -0
- package/src/Strategy/PlusMinusModule.js +34 -0
- package/src/Strategy/QueryModule.d.ts +20 -0
- package/src/Strategy/QueryModule.js +25 -0
- package/src/Strategy/ScheduleModule.d.ts +17 -1
- package/src/Strategy/ScheduleModule.js +148 -2
- package/src/Strategy/SetingsPanelModule.d.ts +11 -0
- package/src/Strategy/SetingsPanelModule.js +30 -0
- package/src/Strategy/ShortcutModule.d.ts +11 -0
- package/src/Strategy/ShortcutModule.js +22 -0
- package/src/Strategy/ToolPanelModule.js +1 -1
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +8 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +15 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.d.ts +4 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +19 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +9 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +9 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +22 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.js +26 -0
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExpressionViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +10 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +6 -0
- package/src/Strategy/Utilities/getRuleViewItems.js +15 -0
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getScopeViewItems.js +20 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getStyleViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/getStyleViewItems.js +15 -0
- package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
- package/src/Utilities/Constants/ConfigConstants.js +1 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
- package/src/Utilities/Constants/GeneralConstants.js +1 -12
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -2
- package/src/Utilities/Constants/ModuleConstants.js +4 -3
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +26 -18
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +7 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +35 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
- package/src/Utilities/Helpers/StyleHelper.js +4 -1
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- package/src/Utilities/MenuItem.d.ts +1 -1
- package/src/Utilities/MenuItem.js +2 -2
- package/src/Utilities/ObjectFactory.d.ts +6 -17
- package/src/Utilities/ObjectFactory.js +14 -84
- package/src/Utilities/Services/AlertService.d.ts +3 -3
- package/src/Utilities/Services/AlertService.js +11 -17
- package/src/Utilities/Services/EntitlementService.d.ts +1 -0
- package/src/Utilities/Services/EntitlementService.js +9 -1
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -7
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +1 -0
- package/src/Utilities/Services/ModuleService.js +13 -17
- package/src/Utilities/Services/TeamSharingService.js +3 -4
- package/src/View/AdaptableView.js +3 -9
- package/src/View/AdaptableViewFactory.js +0 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +6 -6
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/AlertEmptyView.d.ts +5 -0
- package/src/View/Alert/AlertEmptyView.js +16 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +10 -5
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +8 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -7
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -6
- package/src/View/Alert/Wizard/AlertWizard.js +20 -6
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +5 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +5 -4
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.d.ts +2 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +2 -0
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +16 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +17 -40
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +20 -3
- package/src/View/CellSummary/CellSummaryPopup.js +2 -2
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +14 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +82 -0
- package/src/View/Components/AdaptableObjectList/index.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/index.js +5 -0
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.js +3 -2
- package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonEdit.js +4 -6
- package/src/View/Components/Buttons/ButtonShare.js +3 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +1 -1
- package/src/View/Components/Buttons/{SuspendToggleButton.d.ts → SuspendToggleButton/SuspendToggleButton.d.ts} +5 -3
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +19 -0
- package/src/View/Components/Buttons/SuspendToggleButton/index.d.ts +1 -0
- package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -0
- package/src/View/Components/ExternalRenderer.d.ts +14 -0
- package/src/View/Components/ExternalRenderer.js +32 -0
- package/src/View/Components/FilterForm/QuickFilterForm.js +8 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +4 -4
- package/src/View/Components/Panels/PanelWithImage.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +20 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +120 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +35 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +9 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +67 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.d.ts +6 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +13 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +63 -0
- package/src/View/Components/Popups/{PopupContext.d.ts → AdaptablePopup/PopupContext.d.ts} +0 -0
- package/src/View/Components/Popups/{PopupContext.js → AdaptablePopup/PopupContext.js} +0 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +10 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +22 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +7 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +29 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.js +28 -0
- package/src/View/Components/Popups/AdaptablePopup/index.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/index.js +5 -0
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +12 -4
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +6 -6
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +19 -5
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -4
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +18 -3
- package/src/View/Dashboard/Dashboard.d.ts +0 -1
- package/src/View/Dashboard/Dashboard.js +13 -83
- package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
- package/src/View/Dashboard/DashboardPopup.js +38 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -4
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +3 -3
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +3 -3
- package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +1 -2
- package/src/View/DataSource/Wizard/DataSourceWizard.js +17 -2
- package/src/View/Export/ReportExportDropdown.d.ts +5 -0
- package/src/View/Export/ReportExportDropdown.js +37 -0
- package/src/View/Export/Wizard/NewReportWizard.js +15 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -2
- package/src/View/FlashingCell/FlashingCellStyle.d.ts +7 -0
- package/src/View/FlashingCell/FlashingCellStyle.js +20 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.d.ts → FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts} +3 -3
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.js → FlashingCell/Wizard/FlashingCellRulesWizardSection.js} +14 -14
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.d.ts → FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts} +1 -2
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.js → FlashingCell/Wizard/FlashingCellScopeWizardSection.js} +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +10 -0
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +66 -0
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +15 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.js → FlashingCell/Wizard/FlashingCellStyleWizardSection.js} +17 -16
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.d.ts +6 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +97 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.d.ts +3 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +30 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +18 -14
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +17 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +15 -10
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +19 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
- package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +22 -16
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutPopup.js +4 -6
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +3 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.d.ts +1 -2
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +18 -4
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +17 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +7 -8
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +9 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.d.ts +5 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +59 -48
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +9 -9
- package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +1 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +75 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -6
- package/src/View/Shortcut/Wizard/ShortcutWizard.d.ts +1 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +31 -4
- package/src/View/Shortcut/shortcutKeys.js +0 -1
- package/src/View/SmartEdit/SmartEditPopup.js +2 -2
- package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +62 -0
- package/src/View/StateManagement/StateManagementPopup.js +16 -15
- package/src/View/SystemStatus/SystemStatusPopup.js +3 -3
- package/src/View/TeamSharing/TeamSharingPopup.js +2 -2
- package/src/View/Theme/ThemePopup.js +5 -7
- package/src/View/UIHelper.d.ts +3 -5
- package/src/View/UIHelper.js +35 -49
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +5 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -2
- package/src/agGrid/Adaptable.d.ts +24 -11
- package/src/agGrid/Adaptable.js +227 -81
- package/src/agGrid/agGridHelper.d.ts +2 -2
- package/src/agGrid/agGridHelper.js +21 -6
- package/src/agGrid/agGridMenuHelper.js +11 -7
- package/src/components/ApplicationIcon.d.ts +5 -0
- package/src/components/ApplicationIcon.js +13 -0
- package/src/components/Dashboard/Dashboard.js +1 -1
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dialog/index.d.ts +4 -1
- package/src/components/Dialog/index.js +10 -3
- package/src/components/DropdownButton/index.d.ts +1 -0
- package/src/components/DropdownButton/index.js +2 -2
- package/src/components/EllipsisContainer/index.js +1 -1
- package/src/components/EmptyContent/index.js +2 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/PopupWithFooter.js +2 -7
- package/src/components/StylePreview.d.ts +8 -0
- package/src/components/StylePreview.js +11 -0
- package/src/components/Tag/Tag.d.ts +3 -0
- package/src/components/Tag/Tag.js +11 -0
- package/src/components/Tag/index.d.ts +1 -0
- package/src/components/Tag/index.js +5 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/ToggleButton/index.d.ts +1 -0
- package/src/components/ToggleButton/index.js +8 -4
- package/src/components/WindowModal/WindowModal.d.ts +23 -0
- package/src/components/WindowModal/WindowModal.js +102 -0
- package/src/components/WindowModal/index.d.ts +1 -0
- package/src/components/WindowModal/index.js +4 -0
- package/src/components/icons/column-add.d.ts +3 -0
- package/src/components/icons/column-add.js +10 -0
- package/src/components/icons/index.js +6 -0
- package/src/components/icons/menu.d.ts +3 -0
- package/src/components/icons/menu.js +7 -0
- package/src/components/icons/state-management.js +1 -1
- package/src/components/icons/tool-panel.d.ts +3 -0
- package/src/components/icons/tool-panel.js +7 -0
- package/src/components/utils/useDraggable.d.ts +3 -1
- package/src/components/utils/useDraggable.js +15 -2
- package/src/metamodel/adaptable.metamodel.d.ts +93 -105
- package/src/metamodel/adaptable.metamodel.js +425 -455
- package/src/types.d.ts +10 -11
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
- package/src/Api/ChartApi.d.ts +0 -20
- package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
- package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
- package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
- package/src/Api/SparklineColumnApi.d.ts +0 -23
- package/src/PredefinedConfig/ChartState.d.ts +0 -144
- package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
- package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
- package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
- package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
- package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
- package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
- package/src/View/Alert/AlertPopup.d.ts +0 -42
- package/src/View/Alert/AlertPopup.js +0 -205
- package/src/View/Alert/FlashingAlertEntityRow.d.ts +0 -7
- package/src/View/Alert/FlashingAlertEntityRow.js +0 -22
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.d.ts +0 -10
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js +0 -60
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.d.ts +0 -10
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.d.ts +0 -6
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.js +0 -89
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.d.ts +0 -9
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.js +0 -28
- package/src/View/CalculatedColumn/CalculatedColumnPopup.d.ts +0 -25
- package/src/View/CalculatedColumn/CalculatedColumnPopup.js +0 -117
- package/src/View/Components/Buttons/SuspendToggleButton.js +0 -17
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
- package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
- package/src/View/Components/Popups/AdaptableChart.js +0 -40
- package/src/View/Components/Popups/AdaptablePopup.d.ts +0 -23
- package/src/View/Components/Popups/AdaptablePopup.js +0 -59
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.d.ts +0 -5
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.js +0 -26
- package/src/View/ConditionalStyle/ConditionalStylePopup.d.ts +0 -30
- package/src/View/ConditionalStyle/ConditionalStylePopup.js +0 -144
- package/src/View/CustomSort/CustomSortEntityRow.d.ts +0 -12
- package/src/View/CustomSort/CustomSortEntityRow.js +0 -32
- package/src/View/CustomSort/CustomSortPopup.d.ts +0 -27
- package/src/View/CustomSort/CustomSortPopup.js +0 -138
- package/src/View/DataSource/DataSourceEntityRow.d.ts +0 -12
- package/src/View/DataSource/DataSourceEntityRow.js +0 -29
- package/src/View/DataSource/DataSourcePopup.d.ts +0 -28
- package/src/View/DataSource/DataSourcePopup.js +0 -97
- package/src/View/Export/ExportPopup.d.ts +0 -34
- package/src/View/Export/ExportPopup.js +0 -139
- package/src/View/Export/ReportEntityRow.d.ts +0 -10
- package/src/View/Export/ReportEntityRow.js +0 -49
- package/src/View/Export/Wizard/ReportWizard.d.ts +0 -7
- package/src/View/Export/Wizard/ReportWizard.js +0 -50
- package/src/View/Filter/FilterEntityRow.d.ts +0 -12
- package/src/View/Filter/FilterEntityRow.js +0 -20
- package/src/View/Filter/FilterPopup.d.ts +0 -20
- package/src/View/Filter/FilterPopup.js +0 -50
- package/src/View/FormatColumn/FormatColumnEntityRow.d.ts +0 -9
- package/src/View/FormatColumn/FormatColumnEntityRow.js +0 -103
- package/src/View/FormatColumn/FormatColumnPopup.d.ts +0 -27
- package/src/View/FormatColumn/FormatColumnPopup.js +0 -133
- package/src/View/FreeTextColumn/FreeTextColumnEntityRow.d.ts +0 -5
- package/src/View/FreeTextColumn/FreeTextColumnEntityRow.js +0 -31
- package/src/View/FreeTextColumn/FreeTextColumnPopup.d.ts +0 -25
- package/src/View/FreeTextColumn/FreeTextColumnPopup.js +0 -118
- package/src/View/PlusMinus/PlusMinusEntityRow.d.ts +0 -9
- package/src/View/PlusMinus/PlusMinusEntityRow.js +0 -24
- package/src/View/PlusMinus/PlusMinusPopup.d.ts +0 -30
- package/src/View/PlusMinus/PlusMinusPopup.js +0 -124
- package/src/View/Query/NamedQueryEntityRow.d.ts +0 -8
- package/src/View/Query/NamedQueryEntityRow.js +0 -21
- package/src/View/Query/QueryPopup.d.ts +0 -28
- package/src/View/Query/QueryPopup.js +0 -114
- package/src/View/Schedule/ScheduleEntityRow.d.ts +0 -5
- package/src/View/Schedule/ScheduleEntityRow.js +0 -58
- package/src/View/Schedule/SchedulePopup.d.ts +0 -58
- package/src/View/Schedule/SchedulePopup.js +0 -317
- package/src/View/Shortcut/ShortcutEntityRow.d.ts +0 -17
- package/src/View/Shortcut/ShortcutEntityRow.js +0 -47
- package/src/View/Shortcut/ShortcutPopup.d.ts +0 -30
- package/src/View/Shortcut/ShortcutPopup.js +0 -121
- package/src/components/ChartContainer/index.d.ts +0 -15
- package/src/components/ChartContainer/index.js +0 -22
|
@@ -5,13 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
7
|
const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
|
|
8
|
-
const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
|
|
9
8
|
const AdaptablePopup_1 = require("./Components/Popups/AdaptablePopup");
|
|
10
9
|
const AdaptablePopupPrompt_1 = require("./Components/Popups/AdaptablePopupPrompt");
|
|
11
10
|
const Dashboard_1 = require("./Dashboard/Dashboard");
|
|
12
11
|
const AdaptablePopupConfirmation_1 = require("./Components/Popups/AdaptablePopupConfirmation");
|
|
13
|
-
const AdaptableChart_1 = require("./Components/Popups/AdaptableChart");
|
|
14
|
-
const ChartEnums_1 = require("../PredefinedConfig/Common/ChartEnums");
|
|
15
12
|
const AdaptableLoadingScreen_1 = require("./Components/Popups/AdaptableLoadingScreen");
|
|
16
13
|
const renderWithAdaptableContext_1 = require("./renderWithAdaptableContext");
|
|
17
14
|
const License_1 = require("./License");
|
|
@@ -20,18 +17,17 @@ const ProgressIndicator_1 = require("../components/ProgressIndicator/ProgressInd
|
|
|
20
17
|
const react_toastify_1 = require("react-toastify");
|
|
21
18
|
class AdaptableView extends React.Component {
|
|
22
19
|
render() {
|
|
23
|
-
var _a, _b, _c, _d
|
|
20
|
+
var _a, _b, _c, _d;
|
|
24
21
|
const watermark = (_d = (_c = (_b = (_a = this.props.AdaptableApi) === null || _a === void 0 ? void 0 : _a.internalApi) === null || _b === void 0 ? void 0 : _b.getSystemState()) === null || _c === void 0 ? void 0 : _c.License) === null || _d === void 0 ? void 0 : _d.watermark;
|
|
25
22
|
return (React.createElement("div", null,
|
|
26
23
|
this.props.AdaptableApi.internalApi.getModuleService().isModuleAvailable('Dashboard') && (React.createElement(Dashboard_1.Dashboard, { api: this.props.AdaptableApi })),
|
|
27
|
-
this.props.SystemState.ChartVisibility != ChartEnums_1.ChartVisibility.Hidden && (React.createElement(AdaptableChart_1.AdaptableChart, { api: this.props.AdaptableApi, onClose: this.props.onCloseChartPopup, showChart: this.props.SystemState.ChartVisibility == ChartEnums_1.ChartVisibility.Maximised, showModal: (_e = this.props.AdaptableApi.pluginsApi.getChartsPluginApi()) === null || _e === void 0 ? void 0 : _e.getPluginOptions().showModal })),
|
|
28
24
|
React.createElement(AdaptableLoadingScreen_1.AdaptableLoadingScreen, { onClose: this.props.onCloseLoadingPopup, showLoadingScreen: this.props.PopupState.LoadingPopup.ShowLoadingPopup }),
|
|
29
25
|
React.createElement(AdaptablePopupPrompt_1.AdaptablePopupPrompt, { message: this.props.PopupState.PromptPopup.Message, header: this.props.PopupState.PromptPopup.Header, onClose: this.props.onClosePromptPopup, onConfirm: this.props.onConfirmPromptPopup, showPopup: this.props.PopupState.PromptPopup.ShowPromptPopup }),
|
|
30
26
|
React.createElement(AdaptablePopupConfirmation_1.AdaptablePopupConfirmation, { header: this.props.PopupState.ConfirmationPopup.Header, messsage: this.props.PopupState.ConfirmationPopup.Msg, showPopup: this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup, cancelButtonText: this.props.PopupState.ConfirmationPopup.CancelButtonText, confirmButtonText: this.props.PopupState.ConfirmationPopup.ConfirmButtonText, onCancel: this.props.onCancelConfirmationPopup, onConfirm: this.props.onConfirmConfirmationPopup, showInputBox: this.props.PopupState.ConfirmationPopup.ShowInputBox, messageType: this.props.PopupState.ConfirmationPopup.MessageType, api: this.props.AdaptableApi }),
|
|
31
|
-
|
|
27
|
+
Boolean(this.props.PopupState.ScreenPopup.ShowScreenPopup) && (React.createElement(AdaptablePopup_1.AdaptablePopup, { componentName: this.props.PopupState.ScreenPopup.ComponentName, componentModule: this.props.PopupState.ScreenPopup.ComponentModule, onHide: this.props.onCloseScreenPopup, api: this.props.AdaptableApi, onClearParams: () => this.props.onClearPopupParams(), moduleParams: this.props.PopupState.ScreenPopup.Params, moduleProps: this.props.PopupState.ScreenPopup.PopupProps })),
|
|
32
28
|
React.createElement(ExportCustomDestinationFormPopups_1.ExportCustomDestinationFormPopups, { api: this.props.AdaptableApi }),
|
|
33
29
|
React.createElement(react_toastify_1.ToastContainer, { limit: this.props.AdaptableApi.internalApi.getAdaptableOptions().notificationsOptions
|
|
34
|
-
.maxNotifications, closeButton: false, icon: false }),
|
|
30
|
+
.maxNotifications, closeButton: false, icon: false, theme: "colored" }),
|
|
35
31
|
(watermark === null || watermark === void 0 ? void 0 : watermark.show) && React.createElement(License_1.LicenseWatermark, null, watermark === null || watermark === void 0 ? void 0 : watermark.text),
|
|
36
32
|
React.createElement(ProgressIndicator_1.ProgressIndicator, null)));
|
|
37
33
|
}
|
|
@@ -40,7 +36,6 @@ function mapStateToProps(state, ownProps) {
|
|
|
40
36
|
return {
|
|
41
37
|
PopupState: state.Popup,
|
|
42
38
|
SystemState: state.System,
|
|
43
|
-
ChartState: state.Chart,
|
|
44
39
|
AdaptableApi: ownProps.Adaptable.api,
|
|
45
40
|
};
|
|
46
41
|
}
|
|
@@ -48,7 +43,6 @@ function mapDispatchToProps(dispatch) {
|
|
|
48
43
|
return {
|
|
49
44
|
onCloseScreenPopup: () => dispatch(PopupRedux.PopupHideScreen()),
|
|
50
45
|
onCloseAlertPopup: () => dispatch(PopupRedux.PopupHideAlert()),
|
|
51
|
-
onCloseChartPopup: () => dispatch(SystemRedux.ChartSetChartVisibility(ChartEnums_1.ChartVisibility.Hidden)),
|
|
52
46
|
onClosePromptPopup: () => dispatch(PopupRedux.PopupHidePrompt()),
|
|
53
47
|
onConfirmPromptPopup: (inputText) => dispatch(PopupRedux.PopupConfirmPrompt(inputText)),
|
|
54
48
|
onConfirmConfirmationPopup: (comment) => dispatch(PopupRedux.PopupConfirmConfirmation(comment)),
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdaptableViewPanelFactory = exports.AdaptableViewFactory = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const CustomSortPopup_1 = require("./CustomSort/CustomSortPopup");
|
|
6
5
|
const SmartEditPopup_1 = require("./SmartEdit/SmartEditPopup");
|
|
7
|
-
const ShortcutPopup_1 = require("./Shortcut/ShortcutPopup");
|
|
8
|
-
const PlusMinusPopup_1 = require("./PlusMinus/PlusMinusPopup");
|
|
9
|
-
const ExportPopup_1 = require("./Export/ExportPopup");
|
|
10
|
-
const FilterPopup_1 = require("./Filter/FilterPopup");
|
|
11
|
-
const ConditionalStylePopup_1 = require("./ConditionalStyle/ConditionalStylePopup");
|
|
12
6
|
const QuickSearchPopup_1 = require("./QuickSearch/QuickSearchPopup");
|
|
13
|
-
const QueryPopup_1 = require("./Query/QueryPopup");
|
|
14
7
|
const ExpandedQueryPopup_1 = require("./Query/ExpandedQueryPopup");
|
|
15
|
-
const FormatColumnPopup_1 = require("./FormatColumn/FormatColumnPopup");
|
|
16
8
|
const ThemePopup_1 = require("./Theme/ThemePopup");
|
|
17
9
|
const ToolPanelPopup_1 = require("./Components/ToolPanel/ToolPanelPopup");
|
|
18
10
|
const LayoutPopup_1 = require("./Layout/LayoutPopup");
|
|
@@ -21,13 +13,8 @@ const TeamSharingPopup_1 = require("./TeamSharing/TeamSharingPopup");
|
|
|
21
13
|
const DashboardPopup_1 = require("./Dashboard/DashboardPopup");
|
|
22
14
|
const StateManagementPopup_1 = require("./StateManagement/StateManagementPopup");
|
|
23
15
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
24
|
-
const CalculatedColumnPopup_1 = require("./CalculatedColumn/CalculatedColumnPopup");
|
|
25
16
|
const BulkUpdatePopup_1 = require("./BulkUpdate/BulkUpdatePopup");
|
|
26
|
-
const DataSourcePopup_1 = require("./DataSource/DataSourcePopup");
|
|
27
|
-
const AlertPopup_1 = require("./Alert/AlertPopup");
|
|
28
|
-
const FreeTextColumnPopup_1 = require("./FreeTextColumn/FreeTextColumnPopup");
|
|
29
17
|
const CellSummaryPopup_1 = require("./CellSummary/CellSummaryPopup");
|
|
30
|
-
const SchedulePopup_1 = require("./Schedule/SchedulePopup");
|
|
31
18
|
const SystemStatusPopup_1 = require("./SystemStatus/SystemStatusPopup");
|
|
32
19
|
const AlertViewPanel_1 = require("./Alert/AlertViewPanel");
|
|
33
20
|
const BulkUpdateViewPanel_1 = require("./BulkUpdate/BulkUpdateViewPanel");
|
|
@@ -47,31 +34,18 @@ const DataChangeHistoryViewPanel_1 = require("./DataChangeHistory/DataChangeHist
|
|
|
47
34
|
const StateManagementViewPanel_1 = require("./StateManagement/StateManagementViewPanel");
|
|
48
35
|
exports.AdaptableViewFactory = {
|
|
49
36
|
ExpandedQueryPopup: ExpandedQueryPopup_1.ExpandedQueryPopup,
|
|
50
|
-
AlertPopup: AlertPopup_1.AlertPopup,
|
|
51
37
|
BulkUpdatePopup: BulkUpdatePopup_1.BulkUpdatePopup,
|
|
52
|
-
CalculatedColumnPopup: CalculatedColumnPopup_1.CalculatedColumnPopup,
|
|
53
|
-
FilterPopup: FilterPopup_1.FilterPopup,
|
|
54
|
-
ConditionalStylePopup: ConditionalStylePopup_1.ConditionalStylePopup,
|
|
55
|
-
CustomSortPopup: CustomSortPopup_1.CustomSortPopup,
|
|
56
38
|
DashboardPopup: DashboardPopup_1.DashboardPopup,
|
|
57
39
|
StateManagementPopup: StateManagementPopup_1.StateManagementPopup,
|
|
58
|
-
DataSourcePopup: DataSourcePopup_1.DataSourcePopup,
|
|
59
|
-
ExportPopup: ExportPopup_1.ExportPopup,
|
|
60
|
-
FormatColumnPopup: FormatColumnPopup_1.FormatColumnPopup,
|
|
61
|
-
FreeTextColumnPopup: FreeTextColumnPopup_1.FreeTextColumnPopup,
|
|
62
40
|
GridInfoPopup: GridInfoPopup_1.GridInfoPopup,
|
|
63
41
|
LayoutPopup: LayoutPopup_1.LayoutPopup,
|
|
64
|
-
PlusMinusPopup: PlusMinusPopup_1.PlusMinusPopup,
|
|
65
42
|
QuickSearchPopup: QuickSearchPopup_1.QuickSearchPopup,
|
|
66
|
-
SchedulePopup: SchedulePopup_1.SchedulePopup,
|
|
67
43
|
CellSummaryPopup: CellSummaryPopup_1.CellSummaryPopup,
|
|
68
44
|
SmartEditPopup: SmartEditPopup_1.SmartEditPopup,
|
|
69
|
-
ShortcutPopup: ShortcutPopup_1.ShortcutPopup,
|
|
70
45
|
ThemePopup: ThemePopup_1.ThemePopup,
|
|
71
46
|
TeamSharingPopup: TeamSharingPopup_1.TeamSharingPopup,
|
|
72
47
|
ToolPanelPopup: ToolPanelPopup_1.ToolPanelPopup,
|
|
73
48
|
SystemStatusPopup: SystemStatusPopup_1.SystemStatusPopup,
|
|
74
|
-
QueryPopup: QueryPopup_1.QueryPopup,
|
|
75
49
|
DataChangeHistoryPopup: DataChangeHistoryPopup_1.DataChangeHistoryPopup,
|
|
76
50
|
};
|
|
77
51
|
exports.AdaptableViewPanelFactory = new Map([
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ColDef } from '@ag-grid-community/all-modules';
|
|
3
|
+
interface Column extends Partial<ColDef> {
|
|
4
|
+
field?: string;
|
|
5
|
+
type?: string | string[];
|
|
5
6
|
caption?: string;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: React.MemoExoticComponent<({ columns: cols, handle, onValidityChange, }: {
|
|
@@ -216,6 +216,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, }) => {
|
|
|
216
216
|
},
|
|
217
217
|
];
|
|
218
218
|
const items = columns.map((col) => {
|
|
219
|
+
var _a;
|
|
219
220
|
const isPrimaryKey = col.field === primaryKeyField;
|
|
220
221
|
const cItems = colItems.map((c) => (Object.assign({}, c)));
|
|
221
222
|
cItems[0].Content = (React.createElement(Radio_1.default, { checked: isPrimaryKey, onChange: (checked) => {
|
|
@@ -235,7 +236,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, }) => {
|
|
|
235
236
|
cItems[2].Content = (React.createElement(Input_1.default, { style: inputStyle, defaultValue: col.caption != undefined ? col.caption : humanized, placeholder: humanized, onChange: (event) => {
|
|
236
237
|
setColumnCaption(event.target.value, col.field);
|
|
237
238
|
} }));
|
|
238
|
-
cItems[3].Content = (React.createElement(Dropdown_1.default, { style: inputStyle, showClearButton: false, options: dataTypes, value: col.type, onChange: onColumnTypeChange.bind(null, col) }));
|
|
239
|
+
cItems[3].Content = (React.createElement(Dropdown_1.default, { style: inputStyle, showClearButton: false, options: dataTypes, value: (_a = col === null || col === void 0 ? void 0 : col.type) !== null && _a !== void 0 ? _a : '', onChange: onColumnTypeChange.bind(null, col) }));
|
|
239
240
|
cItems[4].Content = (React.createElement(CheckBox_1.CheckBox, { checked: isSortableColumn(col.field), onChange: (sortable) => {
|
|
240
241
|
sortable ? setSortableColumn(col.field) : setUnsortableColumn(col.field);
|
|
241
242
|
} }));
|
|
@@ -16,7 +16,7 @@ const ConfigurationForm = (props) => {
|
|
|
16
16
|
const searchOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions), abOptions.searchOptions);
|
|
17
17
|
const filterOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions), abOptions.filterOptions);
|
|
18
18
|
// we are 'hard-coding' this to use AG Grid but so does helper so ok for now and we can refactor when Adaptable Grid is ready
|
|
19
|
-
const gridOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.
|
|
19
|
+
const gridOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.gridOptions), abOptions.gridOptions);
|
|
20
20
|
return (React.createElement(React.Fragment, null,
|
|
21
21
|
React.createElement(HelpBlock_1.default, null, "General Options"),
|
|
22
22
|
React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
|
|
@@ -32,29 +32,29 @@ const ConfigurationForm = (props) => {
|
|
|
32
32
|
React.createElement(FormLayout_1.FormRow, { label: "Enable Range Selection" },
|
|
33
33
|
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.enableRangeSelection, onChange: (enableRangeSelection) => {
|
|
34
34
|
abOptions = Object.assign({}, abOptions);
|
|
35
|
-
abOptions.
|
|
36
|
-
abOptions.
|
|
35
|
+
abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
|
|
36
|
+
abOptions.gridOptions.enableRangeSelection = enableRangeSelection;
|
|
37
37
|
props.onChangeadaptableOptions(abOptions);
|
|
38
38
|
} })),
|
|
39
39
|
React.createElement(FormLayout_1.FormRow, { label: "Show Quick Filter" },
|
|
40
40
|
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.floatingFilter, onChange: (floatingFilter) => {
|
|
41
41
|
abOptions = Object.assign({}, abOptions);
|
|
42
|
-
abOptions.
|
|
43
|
-
abOptions.
|
|
42
|
+
abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
|
|
43
|
+
abOptions.gridOptions.floatingFilter = floatingFilter;
|
|
44
44
|
props.onChangeadaptableOptions(abOptions);
|
|
45
45
|
} })),
|
|
46
46
|
React.createElement(FormLayout_1.FormRow, { label: "Suppress Column Virtualisation" },
|
|
47
47
|
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressColumnVirtualisation, onChange: (suppressColumnVirtualisation) => {
|
|
48
48
|
abOptions = Object.assign({}, abOptions);
|
|
49
|
-
abOptions.
|
|
50
|
-
abOptions.
|
|
49
|
+
abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
|
|
50
|
+
abOptions.gridOptions.suppressColumnVirtualisation = suppressColumnVirtualisation;
|
|
51
51
|
props.onChangeadaptableOptions(abOptions);
|
|
52
52
|
} })),
|
|
53
53
|
React.createElement(FormLayout_1.FormRow, { label: "Show Column Menu Button" },
|
|
54
54
|
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressMenuHide, onChange: (suppressMenuHide) => {
|
|
55
55
|
abOptions = Object.assign({}, abOptions);
|
|
56
|
-
abOptions.
|
|
57
|
-
abOptions.
|
|
56
|
+
abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
|
|
57
|
+
abOptions.gridOptions.suppressMenuHide = suppressMenuHide;
|
|
58
58
|
props.onChangeadaptableOptions(abOptions);
|
|
59
59
|
} }))),
|
|
60
60
|
React.createElement(HelpBlock_1.default, null, "Layout Options"),
|
|
@@ -75,7 +75,7 @@ const ConfigurationForm = (props) => {
|
|
|
75
75
|
abOptions.generalOptions.caseSensitiveTextComparisons = caseSensitiveTextComparisons;
|
|
76
76
|
props.onChangeadaptableOptions(abOptions);
|
|
77
77
|
} })),
|
|
78
|
-
React.createElement(FormLayout_1.FormRow, { label: "Use
|
|
78
|
+
React.createElement(FormLayout_1.FormRow, { label: "Use AG Grid Filter Form Style" },
|
|
79
79
|
React.createElement(CheckBox_1.CheckBox, { checked: filterOptions.useAgGridFilterFormStyle, onChange: (useAgGridFilterFormStyle) => {
|
|
80
80
|
abOptions = Object.assign({}, abOptions);
|
|
81
81
|
abOptions.filterOptions = Object.assign({}, abOptions.filterOptions);
|
|
@@ -29,8 +29,8 @@ const ConfigurationDialog = (props) => {
|
|
|
29
29
|
};
|
|
30
30
|
const onFinish = () => {
|
|
31
31
|
const newABOptions = Object.assign({}, abOptions);
|
|
32
|
-
newABOptions.
|
|
33
|
-
newABOptions.
|
|
32
|
+
newABOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
|
|
33
|
+
newABOptions.gridOptions.columnDefs = columnsHandle.current.getColumns().map((c) => {
|
|
34
34
|
const col = Object.assign(Object.assign({}, c), { headerName: c.caption || StringExtensions_1.default.Humanize(c.field) });
|
|
35
35
|
delete col.caption;
|
|
36
36
|
return col;
|
|
@@ -50,7 +50,7 @@ const ConfigurationDialog = (props) => {
|
|
|
50
50
|
React.createElement(Input_1.default, { value: abOptions.adaptableId, onChange: onadaptableIdChange, style: { minWidth: '20rem' } })))),
|
|
51
51
|
React.createElement(ColumnsList_1.default, { handle: columnsHandle, onValidityChange: (valid) => {
|
|
52
52
|
setFinishEnabled(valid);
|
|
53
|
-
}, columns: abOptions.
|
|
53
|
+
}, columns: abOptions.gridOptions.columnDefs }))));
|
|
54
54
|
const stepTwo = (React.createElement(React.Fragment, null,
|
|
55
55
|
React.createElement(Panel_1.default, { header: 'Configure AdapTable', border: "none", style: { flex: 1, overflow: 'auto' } },
|
|
56
56
|
React.createElement(ConfigurationForm_1.default, { adaptableOptions: abOptions, onChangeadaptableOptions: (abOptions) => {
|
|
@@ -59,9 +59,9 @@ const ConfigurationDialog = (props) => {
|
|
|
59
59
|
return (React.createElement(Dialog_1.default, { modal: true, isOpen: true, showCloseButton: false },
|
|
60
60
|
React.createElement(rebass_1.Flex, { flexDirection: "column", style: {
|
|
61
61
|
height: '100%',
|
|
62
|
-
width: '
|
|
63
|
-
maxWidth:
|
|
64
|
-
maxHeight: '
|
|
62
|
+
width: '90vw',
|
|
63
|
+
maxWidth: 1000,
|
|
64
|
+
maxHeight: '90vh',
|
|
65
65
|
} },
|
|
66
66
|
currentStep === 0 ? stepOne : stepTwo,
|
|
67
67
|
React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 2, backgroundColor: "primary", alignItems: "center" },
|
|
@@ -65,7 +65,7 @@ const Wizard = (props) => {
|
|
|
65
65
|
const gridOptions = helper_1.prepareGridOptions(dataSourceInfo);
|
|
66
66
|
const adaptableOptions = Object.assign({}, props.adaptableOptions);
|
|
67
67
|
adaptableOptions.adaptableId = adaptableOptions.adaptableId || (file ? file.name : '');
|
|
68
|
-
adaptableOptions.
|
|
68
|
+
adaptableOptions.gridOptions = gridOptions;
|
|
69
69
|
if (dataSourceInfo.primaryKey) {
|
|
70
70
|
adaptableOptions.primaryKey = dataSourceInfo.primaryKey;
|
|
71
71
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertEmptyView = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const AdaptableContext_1 = require("../AdaptableContext");
|
|
7
|
+
exports.AlertEmptyView = (props) => {
|
|
8
|
+
const adaptable = AdaptableContext_1.useAdaptable();
|
|
9
|
+
const accessLevel = adaptable.api.internalApi
|
|
10
|
+
.getEntitlementService()
|
|
11
|
+
.getEntitlementAccessLevelForModule(props.module.moduleInfo.ModuleName);
|
|
12
|
+
const text = accessLevel == 'ReadOnly'
|
|
13
|
+
? 'You have no Alert Definitions.'
|
|
14
|
+
: "Click 'New' to start creating Alert Definitions. An Alert is triggered whenever an edit - or external data change - matches the Rule in the Alert Definition.";
|
|
15
|
+
return React.createElement(React.Fragment, null, text);
|
|
16
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
3
|
+
import { AdaptableApi } from '../../../types';
|
|
3
4
|
declare type AlertBehaviourWizardSectionProps = {
|
|
4
5
|
onChange: (data: AlertDefinition) => void;
|
|
5
6
|
};
|
|
6
|
-
export declare const renderAlertBehaviourSummary: (alert: AlertDefinition) => JSX.Element;
|
|
7
|
+
export declare const renderAlertBehaviourSummary: (alert: AlertDefinition, api: AdaptableApi, allowWrap?: boolean) => JSX.Element;
|
|
7
8
|
export declare const AlertBehaviourWizardSection: (props: AlertBehaviourWizardSectionProps) => JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -9,7 +9,8 @@ const CheckBox_1 = require("../../../components/CheckBox");
|
|
|
9
9
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
10
10
|
const rebass_1 = require("rebass");
|
|
11
11
|
const ValueSelector_1 = require("../../Components/ValueSelector");
|
|
12
|
-
|
|
12
|
+
// both used in wizard and list view
|
|
13
|
+
exports.renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
13
14
|
const { AlertProperties = {} } = alert;
|
|
14
15
|
const values = [
|
|
15
16
|
AlertProperties.PreventEdit ? { label: 'Prevent Cell Edit', id: 'preventCellEdit' } : null,
|
|
@@ -19,7 +20,7 @@ exports.renderAlertBehaviourSummary = (alert) => {
|
|
|
19
20
|
? {
|
|
20
21
|
label: (React.createElement(React.Fragment, null,
|
|
21
22
|
"Show in ",
|
|
22
|
-
React.createElement(CodeBlock_1.CodeBlock,
|
|
23
|
+
React.createElement(CodeBlock_1.CodeBlock, { ml: 1, p: 0 }, `<div />`))),
|
|
23
24
|
id: 'showInDiv',
|
|
24
25
|
}
|
|
25
26
|
: null,
|
|
@@ -28,8 +29,7 @@ exports.renderAlertBehaviourSummary = (alert) => {
|
|
|
28
29
|
if (!values.length) {
|
|
29
30
|
values.push({ label: 'No behaviour selected', id: 'none' });
|
|
30
31
|
}
|
|
31
|
-
return (React.createElement(React.Fragment, null,
|
|
32
|
-
React.createElement(ValueSelector_1.ValueOptionsTags, { options: values, value: values.map((v) => v.id), readOnly: true, toIdentifier: (x) => x.id, toLabel: (x) => React.createElement(rebass_1.Text, { fontSize: 2 }, x.label) })));
|
|
32
|
+
return (React.createElement(ValueSelector_1.ValueOptionsTags, { allowWrap: allowWrap, options: values, value: values.map((v) => v.id), readOnly: true, toIdentifier: (x) => x.id, toLabel: (x) => React.createElement(React.Fragment, null, x.label) }));
|
|
33
33
|
};
|
|
34
34
|
exports.AlertBehaviourWizardSection = (props) => {
|
|
35
35
|
const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
@@ -47,11 +47,16 @@ exports.AlertBehaviourWizardSection = (props) => {
|
|
|
47
47
|
} },
|
|
48
48
|
"Prevent Cell Edit",
|
|
49
49
|
React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "(automatically undo data change which triggered Alert)")),
|
|
50
|
-
React.createElement(CheckBox_1.CheckBox, { style: { alignItems: 'flex-start' }, checked: AlertProperties.HighlightCell, onChange: (HighlightCell) => {
|
|
50
|
+
React.createElement(CheckBox_1.CheckBox, { style: { alignItems: 'flex-start' }, checked: Boolean(AlertProperties.HighlightCell), onChange: (HighlightCell) => {
|
|
51
51
|
onChange({ HighlightCell });
|
|
52
52
|
} },
|
|
53
53
|
"Highlight Cell",
|
|
54
54
|
React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "(using the Alert message type)")),
|
|
55
|
+
React.createElement(CheckBox_1.CheckBox, { style: { alignItems: 'flex-start' }, checked: Boolean(AlertProperties.HighlightRow), onChange: (HighlightRow) => {
|
|
56
|
+
onChange({ HighlightRow });
|
|
57
|
+
} },
|
|
58
|
+
"Highlight Row",
|
|
59
|
+
React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "(using the Alert message type)")),
|
|
55
60
|
React.createElement(CheckBox_1.CheckBox, { checked: AlertProperties.JumpToCell, onChange: (JumpToCell) => {
|
|
56
61
|
onChange({ JumpToCell });
|
|
57
62
|
} }, "Jump To Cell"),
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
3
|
+
import { AdaptableApi } from '../../../types';
|
|
4
|
+
import { BoxProps } from 'rebass';
|
|
3
5
|
declare type AlertDisplayWizardSectionProps = {
|
|
4
6
|
onChange: (data: AlertDefinition) => void;
|
|
5
7
|
};
|
|
6
8
|
export declare const renderAlertDisplaySummary: () => JSX.Element;
|
|
9
|
+
interface AlertPreviewProps extends BoxProps {
|
|
10
|
+
api: AdaptableApi;
|
|
11
|
+
alertDefinition: AlertDefinition;
|
|
12
|
+
}
|
|
13
|
+
export declare const AlertPreview: React.FunctionComponent<AlertPreviewProps>;
|
|
7
14
|
export declare const AlertDisplayWizardSection: (props: AlertDisplayWizardSectionProps) => JSX.Element;
|
|
8
15
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlertDisplayWizardSection = exports.renderAlertDisplaySummary = void 0;
|
|
3
|
+
exports.AlertDisplayWizardSection = exports.AlertPreview = exports.renderAlertDisplaySummary = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Tabs_1 = require("../../../components/Tabs");
|
|
@@ -29,9 +29,10 @@ exports.renderAlertDisplaySummary = () => {
|
|
|
29
29
|
React.createElement(CodeBlock_1.CodeBlock, null, data.MessageType),
|
|
30
30
|
". No alert popup will be displayed"));
|
|
31
31
|
}
|
|
32
|
-
return React.createElement(AlertPreview, { api: api, alertDefinition: data });
|
|
32
|
+
return React.createElement(exports.AlertPreview, { api: api, alertDefinition: data });
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
exports.AlertPreview = (_a) => {
|
|
35
|
+
var { alertDefinition, api } = _a, boxProps = tslib_1.__rest(_a, ["alertDefinition", "api"]);
|
|
35
36
|
const mapButtons = React.useCallback((button) => {
|
|
36
37
|
let buttonStyle = button.ButtonStyle;
|
|
37
38
|
if (buttonStyle && buttonStyle.tone == null && (alertDefinition === null || alertDefinition === void 0 ? void 0 : alertDefinition.MessageType)) {
|
|
@@ -50,9 +51,7 @@ const AlertPreview = ({ alertDefinition, api, }) => {
|
|
|
50
51
|
};
|
|
51
52
|
return result;
|
|
52
53
|
}, [alertDefinition]);
|
|
53
|
-
return (React.createElement(rebass_1.Box, { style: {
|
|
54
|
-
border: '1px solid var(--ab-color-inputborder)',
|
|
55
|
-
} },
|
|
54
|
+
return (React.createElement(rebass_1.Box, Object.assign({}, boxProps, { style: Object.assign({ border: '1px solid var(--ab-color-inputborder)' }, boxProps.style) }),
|
|
56
55
|
React.createElement(AdaptablePopupAlert_1.AdaptablePopupAlert, { headless: true, adaptableAlert: alertToPreview, api: api, onClose: () => { } })));
|
|
57
56
|
};
|
|
58
57
|
exports.AlertDisplayWizardSection = (props) => {
|
|
@@ -103,5 +102,5 @@ exports.AlertDisplayWizardSection = (props) => {
|
|
|
103
102
|
} }))) : null)),
|
|
104
103
|
((_d = data.AlertProperties) === null || _d === void 0 ? void 0 : _d.DisplayNotification) ? (React.createElement(Tabs_1.Tabs, { autoFocus: false },
|
|
105
104
|
React.createElement(Tabs_1.Tabs.Tab, null, "Alert preview"),
|
|
106
|
-
React.createElement(Tabs_1.Tabs.Content, null, typeof data.AlertForm === 'string' ? (React.createElement(rebass_1.Text, { fontSize: 2 }, "Preview not available because form is dynamically driven")) : (React.createElement(AlertPreview, { alertDefinition: data, api: api }))))) : null));
|
|
105
|
+
React.createElement(Tabs_1.Tabs.Content, null, typeof data.AlertForm === 'string' ? (React.createElement(rebass_1.Text, { fontSize: 2 }, "Preview not available because form is dynamically driven")) : (React.createElement(exports.AlertPreview, { alertDefinition: data, api: api }))))) : null));
|
|
107
106
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
3
3
|
declare type AlertRulesWizardSectionProps = {
|
|
4
4
|
onChange: (data: AlertDefinition) => void;
|
|
5
|
+
module: 'alert' | 'flashingCell';
|
|
5
6
|
};
|
|
6
7
|
export declare const AlertRulesWizardSection: (props: AlertRulesWizardSectionProps) => JSX.Element;
|
|
7
8
|
export declare const renderAlertRulesSummary: (alertDefinition: AlertDefinition) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const BaseAlertRulesWizardSection_1 = require("./BaseAlertRulesWizardSection");
|
|
7
7
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
|
-
const
|
|
8
|
+
const Tag_1 = require("../../../components/Tag");
|
|
9
9
|
exports.AlertRulesWizardSection = (props) => {
|
|
10
10
|
return React.createElement(BaseAlertRulesWizardSection_1.BaseAlertRulesWizardSection, Object.assign({}, props));
|
|
11
11
|
};
|
|
@@ -13,12 +13,10 @@ exports.renderAlertRulesSummary = (alertDefinition) => {
|
|
|
13
13
|
return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: alertDefinition, renderPredicate: (contents) => {
|
|
14
14
|
return (React.createElement(React.Fragment, null,
|
|
15
15
|
"Alert condition ",
|
|
16
|
-
React.createElement(
|
|
16
|
+
React.createElement(Tag_1.Tag, null, contents)));
|
|
17
17
|
}, renderQueryExpression: (contents) => {
|
|
18
18
|
return (React.createElement(React.Fragment, null,
|
|
19
|
-
"Alert when",
|
|
20
|
-
|
|
21
|
-
React.createElement("b", null,
|
|
22
|
-
React.createElement(CodeBlock_1.CodeBlock, null, contents))));
|
|
19
|
+
"Alert when ",
|
|
20
|
+
React.createElement(Tag_1.Tag, null, contents)));
|
|
23
21
|
} }));
|
|
24
22
|
};
|
|
@@ -15,10 +15,15 @@ const GeneralConstants_1 = require("../../../Utilities/Constants/GeneralConstant
|
|
|
15
15
|
const AlertDisplayWizardSection_1 = require("./AlertDisplayWizardSection");
|
|
16
16
|
const BaseAlertScopeWizardSection_1 = require("./BaseAlertScopeWizardSection");
|
|
17
17
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
18
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
19
|
+
const react_redux_1 = require("react-redux");
|
|
20
|
+
const AlertRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/AlertRedux"));
|
|
18
21
|
exports.AlertWizard = (props) => {
|
|
19
22
|
const [alertDefinition, setAlertDefinition] = react_1.useState(() => {
|
|
20
23
|
var _a;
|
|
21
|
-
const alertDefinition =
|
|
24
|
+
const alertDefinition = props.data
|
|
25
|
+
? Helper_1.cloneObject(props.data)
|
|
26
|
+
: ObjectFactory_1.default.CreateEmptyAlertDefinition();
|
|
22
27
|
if (!alertDefinition.Rule.BooleanExpression &&
|
|
23
28
|
!alertDefinition.Rule.ObservableExpression &&
|
|
24
29
|
!alertDefinition.Rule.AggregationExpression &&
|
|
@@ -28,8 +33,17 @@ exports.AlertWizard = (props) => {
|
|
|
28
33
|
alertDefinition.MessageType = (_a = alertDefinition.MessageType) !== null && _a !== void 0 ? _a : GeneralConstants_1.ALERT_DEFAULT_MESSAGE_TYPE;
|
|
29
34
|
return alertDefinition;
|
|
30
35
|
});
|
|
31
|
-
const
|
|
32
|
-
|
|
36
|
+
const dispatch = react_redux_1.useDispatch();
|
|
37
|
+
const handleFinish = () => {
|
|
38
|
+
if (props.data) {
|
|
39
|
+
dispatch(AlertRedux.AlertDefinitionEdit(alertDefinition));
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
dispatch(AlertRedux.AlertDefinitionAdd(alertDefinition));
|
|
43
|
+
}
|
|
44
|
+
props.onCloseWizard();
|
|
45
|
+
};
|
|
46
|
+
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: alertDefinition, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
33
47
|
{
|
|
34
48
|
details: (React.createElement(React.Fragment, null,
|
|
35
49
|
"Specify ",
|
|
@@ -46,16 +60,16 @@ exports.AlertWizard = (props) => {
|
|
|
46
60
|
React.createElement("b", null, "when"),
|
|
47
61
|
" the Alert should trigger")),
|
|
48
62
|
isValid: isValidAlertRules_1.isValidAlertRules,
|
|
49
|
-
render: () => React.createElement(AlertRulesWizardSection_1.AlertRulesWizardSection, { onChange: setAlertDefinition }),
|
|
63
|
+
render: () => React.createElement(AlertRulesWizardSection_1.AlertRulesWizardSection, { onChange: setAlertDefinition, module: "alert" }),
|
|
50
64
|
renderSummary: AlertRulesWizardSection_1.renderAlertRulesSummary,
|
|
51
|
-
title: '
|
|
65
|
+
title: 'Rule',
|
|
52
66
|
},
|
|
53
67
|
{
|
|
54
68
|
details: "Select the Alert's Message Type and Notification option",
|
|
55
69
|
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
56
70
|
React.createElement(AlertDisplayWizardSection_1.AlertDisplayWizardSection, { onChange: setAlertDefinition }))),
|
|
57
71
|
renderSummary: AlertDisplayWizardSection_1.renderAlertDisplaySummary,
|
|
58
|
-
title: 'Type
|
|
72
|
+
title: 'Type & Display',
|
|
59
73
|
},
|
|
60
74
|
{
|
|
61
75
|
details: 'Configure behaviour for the Alert',
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AlertDefinition } from '../../../types';
|
|
3
|
+
import { FlashingCellDefinition } from '../../../../types';
|
|
3
4
|
export interface BaseAlertRulesWizardSectionProps<T> {
|
|
4
5
|
onChange: (data: T) => void;
|
|
6
|
+
module: 'alert' | 'flashingCell';
|
|
7
|
+
wholeRowScope?: boolean;
|
|
5
8
|
children?: React.ReactNode;
|
|
6
9
|
}
|
|
7
|
-
export declare const BaseAlertRulesWizardSection: <T extends
|
|
10
|
+
export declare const BaseAlertRulesWizardSection: <T extends AlertDefinition | FlashingCellDefinition>(props: BaseAlertRulesWizardSectionProps<T>) => JSX.Element;
|
|
@@ -7,8 +7,11 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
|
7
7
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
8
|
exports.BaseAlertRulesWizardSection = (props) => {
|
|
9
9
|
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
10
|
-
const wholeRowScope = api.scopeApi.scopeIsAll(data.Scope);
|
|
11
|
-
|
|
10
|
+
const wholeRowScope = props.wholeRowScope != null ? props.wholeRowScope : api.scopeApi.scopeIsAll(data.Scope);
|
|
11
|
+
const predicateDefs = props.module == 'alert'
|
|
12
|
+
? api.alertApi.getAlertPredicateDefsForScope(data.Scope)
|
|
13
|
+
: api.flashingCellApi.getFlashingCellPredicateDefsForScope(data.Scope);
|
|
14
|
+
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: !wholeRowScope ? false : true, showObservable: !wholeRowScope ? false : true, showBoolean: true, showPredicate: true, descriptions: {
|
|
12
15
|
selectPredicate: 'Select an Alert Rule - to be applied when data changes',
|
|
13
16
|
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
14
17
|
"Use an BooleanQuery if ",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
3
|
+
import { FlashingCellDefinition } from '../../../../types';
|
|
4
|
+
declare type BaseAlertScopeWizardSectionProps<T extends AlertDefinition> = {
|
|
4
5
|
onChange: (data: T) => void;
|
|
5
6
|
};
|
|
6
|
-
export declare const BaseAlertScopeWizardSection: <T extends
|
|
7
|
-
export declare const renderBaseAlertScopeSummary: (data:
|
|
7
|
+
export declare const BaseAlertScopeWizardSection: <T extends AlertDefinition>(props: BaseAlertScopeWizardSectionProps<T>) => JSX.Element;
|
|
8
|
+
export declare const renderBaseAlertScopeSummary: (data: AlertDefinition | FlashingCellDefinition) => JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -49,8 +49,8 @@ exports.renderBaseAlertScopeSummary = (data) => {
|
|
|
49
49
|
: null)),
|
|
50
50
|
React.createElement(rebass_1.Box, { style: { overflow: 'hidden' } }, 'ColumnIds' in data.Scope ? (React.createElement(React.Fragment, null,
|
|
51
51
|
React.createElement(rebass_1.Text, { fontSize: 2, mb: columnsInScope.length ? 2 : 0 }, "Changes in selected columns will trigger an alert"),
|
|
52
|
-
columnsInScope.length ? (React.createElement(ValueSelector_1.ValueOptionsTags, { options: columnsInScope, value: columnsInScope.map((c) => c.columnId), toLabel: (c) => c.friendlyName, allowWrap: true, readOnly: true, renderLabel: (c) => React.createElement(
|
|
52
|
+
columnsInScope.length ? (React.createElement(ValueSelector_1.ValueOptionsTags, { options: columnsInScope, value: columnsInScope.map((c) => c.columnId), toLabel: (c) => c.friendlyName, allowWrap: true, readOnly: true, renderLabel: (c) => React.createElement(React.Fragment, null, c), toIdentifier: (c) => c.columnId })) : null)) : null),
|
|
53
53
|
React.createElement(rebass_1.Box, null, 'DataTypes' in data.Scope ? (React.createElement(React.Fragment, null,
|
|
54
54
|
React.createElement(rebass_1.Text, { fontSize: 2, mb: 2 }, "Changes in columns of the selected data-types trigger an alert"),
|
|
55
|
-
React.createElement(ValueSelector_1.ValueOptionsTags, { readOnly: true, options: data.Scope.DataTypes, value: data.Scope.DataTypes, toLabel: (c) => c, allowWrap: true, renderLabel: (c) => React.createElement(
|
|
55
|
+
React.createElement(ValueSelector_1.ValueOptionsTags, { readOnly: true, options: data.Scope.DataTypes, value: data.Scope.DataTypes, toLabel: (c) => c, allowWrap: true, renderLabel: (c) => React.createElement(React.Fragment, null, `DataType: ${c}`), toIdentifier: (c) => c }))) : null)));
|
|
56
56
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AdaptableApi } from '../../../types';
|
|
1
|
+
import { AdaptableApi, AlertDefinition } from '../../../types';
|
|
3
2
|
import { OnePageAdaptableWizardContextType } from '../../Wizard/OnePageAdaptableWizard';
|
|
4
|
-
export declare const isValidAlertRules: (alert:
|
|
3
|
+
export declare const isValidAlertRules: (alert: AlertDefinition, api: AdaptableApi, context: OnePageAdaptableWizardContextType<AlertDefinition>) => true | string;
|
|
@@ -49,7 +49,7 @@ class BulkUpdatePopupComponent extends React.Component {
|
|
|
49
49
|
if (!col) {
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
return (React.createElement(PanelWithImage_1.PanelWithImage, {
|
|
52
|
+
return (React.createElement(PanelWithImage_1.PanelWithImage, { bodyProps: { padding: 2 }, flex: 1, glyphicon: this.props.moduleInfo.Glyph, header: this.props.moduleInfo.FriendlyName, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), variant: "primary" },
|
|
53
53
|
col.dataType == Enums_1.DataType.Date ? (React.createElement(React.Fragment, null,
|
|
54
54
|
React.createElement(HelpBlock_1.default, { marginTop: 2, marginBottom: 2 }, "Enter a date value. Alternatively, tick the checkbox and select from an existing column value."),
|
|
55
55
|
React.createElement(rebass_1.Box, null,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCalculatedColumnSettingTags = void 0;
|
|
4
|
+
exports.getCalculatedColumnSettingTags = (settings) => {
|
|
5
|
+
const { DataType, Width, Filterable, Resizable, Groupable, Sortable, Pivotable, Aggregatable } = settings !== null && settings !== void 0 ? settings : {};
|
|
6
|
+
return [
|
|
7
|
+
DataType ? `DataType: ${DataType}` : null,
|
|
8
|
+
Width ? `Width: ${Width}px` : null,
|
|
9
|
+
Pivotable ? 'Pivotable' : null,
|
|
10
|
+
Filterable ? 'Filterable' : null,
|
|
11
|
+
Resizable ? 'Resizable' : null,
|
|
12
|
+
Groupable ? 'Groupable' : null,
|
|
13
|
+
Sortable ? 'Sortable' : null,
|
|
14
|
+
Aggregatable ? 'Aggregatable' : null,
|
|
15
|
+
].filter(Boolean);
|
|
16
|
+
};
|
|
@@ -3,6 +3,7 @@ import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
|
3
3
|
import { CalculatedColumn } from '../../../PredefinedConfig/CalculatedColumnState';
|
|
4
4
|
export declare type CalculatedColumnSettingsWizardSectionProps = {
|
|
5
5
|
onChange: (data: CalculatedColumn) => void;
|
|
6
|
+
isEdit: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare const renderCalculatedColumnSettingsSummary: (data: CalculatedColumn) => JSX.Element;
|
|
8
9
|
export declare const isValidCalculatedColumnSettings: (data: CalculatedColumn, api: AdaptableApi) => true | string;
|