@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
|
@@ -8,13 +8,13 @@ const LoggingHelper_1 = require("./LoggingHelper");
|
|
|
8
8
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
9
9
|
const DefaultAdaptableOptions_1 = require("../Defaults/DefaultAdaptableOptions");
|
|
10
10
|
function assignAdaptableOptions(adaptableOptions) {
|
|
11
|
-
var _a
|
|
11
|
+
var _a;
|
|
12
12
|
const returnedAdaptableOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions, adaptableOptions);
|
|
13
13
|
returnedAdaptableOptions.adaptableStateKey = (_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
|
|
14
14
|
returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
|
|
15
15
|
returnedAdaptableOptions.notificationsOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.notificationsOptions, adaptableOptions.notificationsOptions);
|
|
16
|
+
returnedAdaptableOptions.flashingCellOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.flashingCellOptions, adaptableOptions.flashingCellOptions);
|
|
16
17
|
returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
|
|
17
|
-
returnedAdaptableOptions.notificationsOptions.flashingAlertDefaultProperties = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.notificationsOptions.flashingAlertDefaultProperties, (_b = adaptableOptions.notificationsOptions) === null || _b === void 0 ? void 0 : _b.flashingAlertDefaultProperties);
|
|
18
18
|
returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
|
|
19
19
|
returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
|
|
20
20
|
returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
|
|
@@ -30,6 +30,7 @@ function assignAdaptableOptions(adaptableOptions) {
|
|
|
30
30
|
returnedAdaptableOptions.toolPanelOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.toolPanelOptions, adaptableOptions.toolPanelOptions);
|
|
31
31
|
returnedAdaptableOptions.queryLanguageOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.queryLanguageOptions, adaptableOptions.queryLanguageOptions);
|
|
32
32
|
returnedAdaptableOptions.dataChangeHistoryOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dataChangeHistoryOptions, adaptableOptions.dataChangeHistoryOptions);
|
|
33
|
+
returnedAdaptableOptions.settingsPanelOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.settingsPanelOptions, adaptableOptions.settingsPanelOptions);
|
|
33
34
|
const { predefinedConfig } = returnedAdaptableOptions;
|
|
34
35
|
if (predefinedConfig) {
|
|
35
36
|
returnedAdaptableOptions.predefinedConfig =
|
|
@@ -3,3 +3,7 @@ export declare const convertAdaptableStyleToCSS: (style: AdaptableStyle) => {
|
|
|
3
3
|
[cssProperty: string]: string;
|
|
4
4
|
};
|
|
5
5
|
export declare const convertCSSAbsoluteFontSizeToPt: (fontSize: 'x-large' | 'large' | 'medium' | 'small' | 'x-small') => number;
|
|
6
|
+
export declare const toStyle: (style?: AdaptableStyle) => {
|
|
7
|
+
borderWidth: number;
|
|
8
|
+
borderStyle: string;
|
|
9
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertCSSAbsoluteFontSizeToPt = exports.convertAdaptableStyleToCSS = void 0;
|
|
3
|
+
exports.toStyle = exports.convertCSSAbsoluteFontSizeToPt = exports.convertAdaptableStyleToCSS = void 0;
|
|
4
4
|
const EnumExtensions_1 = require("../Extensions/EnumExtensions");
|
|
5
5
|
exports.convertAdaptableStyleToCSS = (style) => {
|
|
6
6
|
let result = {};
|
|
@@ -42,3 +42,6 @@ exports.convertCSSAbsoluteFontSizeToPt = (fontSize) => {
|
|
|
42
42
|
return 12;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
+
exports.toStyle = (style) => {
|
|
46
|
+
return Object.assign(Object.assign({}, exports.convertAdaptableStyleToCSS(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
47
|
+
};
|
|
@@ -3,7 +3,7 @@ import { ModuleParams } from '../View/Components/SharedProps/ModuleViewPopupProp
|
|
|
3
3
|
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
4
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
5
5
|
export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
|
|
6
|
-
constructor(label: string, module: AdaptableModule,
|
|
6
|
+
constructor(label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: string, isVisible: boolean);
|
|
7
7
|
reduxAction: Redux.Action;
|
|
8
8
|
label: string;
|
|
9
9
|
module: AdaptableModule;
|
|
@@ -5,12 +5,12 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
|
|
6
6
|
// A menu item which performs a Redux Action when it is clicke
|
|
7
7
|
class MenuItemDoReduxAction {
|
|
8
|
-
constructor(label, module,
|
|
8
|
+
constructor(label, module, reduxAction, icon, isVisible) {
|
|
9
9
|
this.label = label;
|
|
10
10
|
this.module = module;
|
|
11
11
|
this.isVisible = isVisible;
|
|
12
12
|
this.icon = icon;
|
|
13
|
-
this.reduxAction =
|
|
13
|
+
this.reduxAction = reduxAction;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.MenuItemDoReduxAction = MenuItemDoReduxAction;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ScheduleType } from '../PredefinedConfig/Common/Enums';
|
|
2
2
|
import { CustomSort } from '../PredefinedConfig/CustomSortState';
|
|
3
3
|
import { DataSource } from '../PredefinedConfig/DataSourceState';
|
|
4
|
-
import { PieChartDefinition, CategoryChartDefinition, SparklinesChartDefinition } from '../PredefinedConfig/ChartState';
|
|
5
4
|
import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
|
|
6
5
|
import { PlusMinusNudge } from '../PredefinedConfig/PlusMinusState';
|
|
7
|
-
import { AlertDefinition,
|
|
6
|
+
import { AlertDefinition, AlertProperties } from '../PredefinedConfig/AlertState';
|
|
8
7
|
import { Layout } from '../PredefinedConfig/LayoutState';
|
|
9
8
|
import { Report, ReportSchedule } from '../PredefinedConfig/ExportState';
|
|
10
9
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
@@ -14,7 +13,6 @@ import { ConditionalStyle } from '../PredefinedConfig/ConditionalStyleState';
|
|
|
14
13
|
import { FormatColumn } from '../PredefinedConfig/FormatColumnState';
|
|
15
14
|
import { FreeTextColumn } from '../PredefinedConfig/FreeTextColumnState';
|
|
16
15
|
import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
|
|
17
|
-
import { SparklineColumn } from '../PredefinedConfig/SparklineColumnState';
|
|
18
16
|
import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
|
|
19
17
|
import { Glue42Report, Glue42Schedule } from '../PredefinedConfig/Glue42State';
|
|
20
18
|
import { IPushPullReport } from '../PredefinedConfig/SystemState';
|
|
@@ -22,27 +20,24 @@ import { IPushPullSchedule } from '../PredefinedConfig/IPushPullState';
|
|
|
22
20
|
import { OpenFinSchedule, OpenFinReport } from '../PredefinedConfig/OpenFinState';
|
|
23
21
|
import { NamedQuery } from '../PredefinedConfig/QueryState';
|
|
24
22
|
import { ColumnFilter } from '../PredefinedConfig/FilterState';
|
|
25
|
-
import {
|
|
23
|
+
import { ReminderSchedule } from '../PredefinedConfig/ScheduleState';
|
|
26
24
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
27
25
|
import { AdaptableMessageType } from '../PredefinedConfig/Common/AdaptableMessageType';
|
|
28
26
|
import { SystemStatusMessageInfo } from '../PredefinedConfig/Common/SystemStatusMessageInfo';
|
|
29
27
|
import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
|
|
30
28
|
import { CellSummmary } from '../PredefinedConfig/Common/CellSummary';
|
|
29
|
+
import { FlashingCellDefinition } from '../types';
|
|
31
30
|
import { ToastOptions } from 'react-toastify';
|
|
32
31
|
export declare function CreateEmptyCustomSort(): CustomSort;
|
|
33
32
|
export declare function CreateEmptyDataSource(): DataSource;
|
|
34
|
-
export declare function CreateEmptyPieChartDefinition(): PieChartDefinition;
|
|
35
|
-
export declare function CreateEmptySparklinesChartDefinition(): SparklinesChartDefinition;
|
|
36
|
-
export declare function CreateEmptyCategoryChartDefinition(): CategoryChartDefinition;
|
|
37
33
|
export declare function CreateEmptyCalculatedColumn(isFilterable: boolean): CalculatedColumn;
|
|
38
34
|
export declare function CreateEmptyNamedQuery(expression?: string): NamedQuery;
|
|
39
35
|
export declare function CreateEmptyPlusMinusNudge(): PlusMinusNudge;
|
|
40
36
|
export declare function CreateEmptyAlert(): AdaptableAlert;
|
|
41
37
|
export declare function CreateAlert(alertHeader: string, alertMessage: string, alertDefinition: AlertDefinition, dataChangedInfo?: DataChangedInfo): AdaptableAlert;
|
|
42
38
|
export declare function CreateEmptyAlertDefinition(): AlertDefinition;
|
|
43
|
-
export declare function
|
|
44
|
-
export declare function CreateInternalAlertDefinitionForMessages(messageType: AdaptableMessageType,
|
|
45
|
-
export declare function CreateEmptySparklineColumn(): SparklineColumn;
|
|
39
|
+
export declare function CreateEmptyFlashingCellDefinition(): FlashingCellDefinition;
|
|
40
|
+
export declare function CreateInternalAlertDefinitionForMessages(messageType: AdaptableMessageType, alertProperties?: AlertProperties): AlertDefinition;
|
|
46
41
|
export declare function CreateEmptyReport(): Report;
|
|
47
42
|
export declare function CreateEmptyBaseSchedule(scheduleType: ScheduleType): BaseSchedule;
|
|
48
43
|
export declare function CreateEmptyReminderSchedule(): ReminderSchedule;
|
|
@@ -53,7 +48,6 @@ export declare function CreateEmptyOpenFinReport(): OpenFinReport;
|
|
|
53
48
|
export declare function CreateEmptyIPushPullSchedule(): IPushPullSchedule;
|
|
54
49
|
export declare function CreateEmptyGlue42Schedule(): Glue42Schedule;
|
|
55
50
|
export declare function CreateEmptyOpenFinSchedule(): OpenFinSchedule;
|
|
56
|
-
export declare function CreateEmptyReminder(): Reminder;
|
|
57
51
|
export declare function CreateIPushPullSchedule(iPushPullReport: IPushPullReport): IPushPullSchedule;
|
|
58
52
|
export declare function CreateGlue42Schedule(glue42Report: Glue42Report): Glue42Schedule;
|
|
59
53
|
export declare function CreateReportSchedule(reportName: string): ReportSchedule;
|
|
@@ -75,20 +69,15 @@ export declare function CreateToastOptions(notificationsOptions: NotificationsOp
|
|
|
75
69
|
export declare const ObjectFactory: {
|
|
76
70
|
CreateEmptyCustomSort: typeof CreateEmptyCustomSort;
|
|
77
71
|
CreateEmptyDataSource: typeof CreateEmptyDataSource;
|
|
78
|
-
CreateEmptyPieChartDefinition: typeof CreateEmptyPieChartDefinition;
|
|
79
|
-
CreateEmptySparklinesChartDefinition: typeof CreateEmptySparklinesChartDefinition;
|
|
80
|
-
CreateEmptyCategoryChartDefinition: typeof CreateEmptyCategoryChartDefinition;
|
|
81
72
|
CreateEmptyCalculatedColumn: typeof CreateEmptyCalculatedColumn;
|
|
82
73
|
CreateEmptyNamedQuery: typeof CreateEmptyNamedQuery;
|
|
83
74
|
CreateEmptyPlusMinusNudge: typeof CreateEmptyPlusMinusNudge;
|
|
84
75
|
CreateEmptyAlert: typeof CreateEmptyAlert;
|
|
85
76
|
CreateAlert: typeof CreateAlert;
|
|
86
77
|
CreateEmptyAlertDefinition: typeof CreateEmptyAlertDefinition;
|
|
87
|
-
|
|
78
|
+
CreateEmptyFlashingCellDefinition: typeof CreateEmptyFlashingCellDefinition;
|
|
88
79
|
CreateInternalAlertDefinitionForMessages: typeof CreateInternalAlertDefinitionForMessages;
|
|
89
|
-
CreateEmptySparklineColumn: typeof CreateEmptySparklineColumn;
|
|
90
80
|
CreateEmptyReport: typeof CreateEmptyReport;
|
|
91
|
-
CreateEmptyReminder: typeof CreateEmptyReminder;
|
|
92
81
|
CreateEmptyBaseSchedule: typeof CreateEmptyBaseSchedule;
|
|
93
82
|
CreateEmptyReminderSchedule: typeof CreateEmptyReminderSchedule;
|
|
94
83
|
CreateEmptyReportSchedule: typeof CreateEmptyReportSchedule;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.
|
|
3
|
+
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateAlert = exports.CreateEmptyAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyDataSource = exports.CreateEmptyCustomSort = void 0;
|
|
4
4
|
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
5
5
|
const GeneralConstants_1 = require("./Constants/GeneralConstants");
|
|
6
|
-
const ChartEnums_1 = require("../PredefinedConfig/Common/ChartEnums");
|
|
7
|
-
const DefaultPieChartProperties_1 = require("./Defaults/DefaultPieChartProperties");
|
|
8
|
-
const DefaultCategoryChartProperties_1 = require("./Defaults/DefaultCategoryChartProperties");
|
|
9
6
|
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
10
|
-
const DefaultSparklinesChartProperties_1 = require("./Defaults/DefaultSparklinesChartProperties");
|
|
11
7
|
const react_toastify_1 = require("react-toastify");
|
|
12
8
|
function CreateEmptyCustomSort() {
|
|
13
9
|
return { Uuid: Uuid_1.createUuid(), ColumnId: GeneralConstants_1.EMPTY_STRING, SortedValues: [] };
|
|
@@ -17,48 +13,6 @@ function CreateEmptyDataSource() {
|
|
|
17
13
|
return { Uuid: Uuid_1.createUuid(), Name: GeneralConstants_1.EMPTY_STRING, Description: GeneralConstants_1.EMPTY_STRING };
|
|
18
14
|
}
|
|
19
15
|
exports.CreateEmptyDataSource = CreateEmptyDataSource;
|
|
20
|
-
function CreateEmptyPieChartDefinition() {
|
|
21
|
-
return {
|
|
22
|
-
Uuid: Uuid_1.createUuid(),
|
|
23
|
-
Name: GeneralConstants_1.EMPTY_STRING,
|
|
24
|
-
Description: GeneralConstants_1.EMPTY_STRING,
|
|
25
|
-
PrimaryColumnId: GeneralConstants_1.EMPTY_STRING,
|
|
26
|
-
SecondaryColumnId: undefined,
|
|
27
|
-
SecondaryColumnOperation: ChartEnums_1.SecondaryColumnOperation.Count,
|
|
28
|
-
ChartProperties: DefaultPieChartProperties_1.DefaultPieChartProperties,
|
|
29
|
-
ChartType: ChartEnums_1.ChartType.PieChart,
|
|
30
|
-
VisibleRowsOnly: true,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
exports.CreateEmptyPieChartDefinition = CreateEmptyPieChartDefinition;
|
|
34
|
-
function CreateEmptySparklinesChartDefinition() {
|
|
35
|
-
return {
|
|
36
|
-
Uuid: Uuid_1.createUuid(),
|
|
37
|
-
Name: GeneralConstants_1.EMPTY_STRING,
|
|
38
|
-
Description: GeneralConstants_1.EMPTY_STRING,
|
|
39
|
-
ColumnId: GeneralConstants_1.EMPTY_STRING,
|
|
40
|
-
Expression: undefined,
|
|
41
|
-
ChartProperties: DefaultSparklinesChartProperties_1.DefaultSparklinesChartProperties,
|
|
42
|
-
ChartType: ChartEnums_1.ChartType.SparklinesChart,
|
|
43
|
-
VisibleRowsOnly: true,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.CreateEmptySparklinesChartDefinition = CreateEmptySparklinesChartDefinition;
|
|
47
|
-
function CreateEmptyCategoryChartDefinition() {
|
|
48
|
-
return {
|
|
49
|
-
Uuid: Uuid_1.createUuid(),
|
|
50
|
-
Name: GeneralConstants_1.EMPTY_STRING,
|
|
51
|
-
Description: GeneralConstants_1.EMPTY_STRING,
|
|
52
|
-
YAxisColumnIds: [],
|
|
53
|
-
YAxisTotal: GeneralConstants_1.CHART_DEFAULT_YAXIS_TOTAL,
|
|
54
|
-
XAxisColumnId: GeneralConstants_1.EMPTY_STRING,
|
|
55
|
-
XAxisExpression: undefined,
|
|
56
|
-
ChartProperties: DefaultCategoryChartProperties_1.DefaultCategoryChartProperties,
|
|
57
|
-
ChartType: ChartEnums_1.ChartType.CategoryChart,
|
|
58
|
-
VisibleRowsOnly: true,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
exports.CreateEmptyCategoryChartDefinition = CreateEmptyCategoryChartDefinition;
|
|
62
16
|
function CreateEmptyCalculatedColumn(isFilterable) {
|
|
63
17
|
return {
|
|
64
18
|
Uuid: Uuid_1.createUuid(),
|
|
@@ -124,13 +78,11 @@ function CreateEmptyAlertDefinition() {
|
|
|
124
78
|
Predicate: undefined,
|
|
125
79
|
},
|
|
126
80
|
MessageType: GeneralConstants_1.ALERT_DEFAULT_MESSAGE_TYPE,
|
|
127
|
-
AlertProperties: {
|
|
128
|
-
LogToConsole: GeneralConstants_1.ALERT_DEFAULT_LOG_TO_CONSOLE,
|
|
129
|
-
},
|
|
81
|
+
AlertProperties: {},
|
|
130
82
|
};
|
|
131
83
|
}
|
|
132
84
|
exports.CreateEmptyAlertDefinition = CreateEmptyAlertDefinition;
|
|
133
|
-
function
|
|
85
|
+
function CreateEmptyFlashingCellDefinition() {
|
|
134
86
|
return {
|
|
135
87
|
Uuid: Uuid_1.createUuid(),
|
|
136
88
|
Scope: { All: true },
|
|
@@ -139,8 +91,11 @@ function CreateEmptyFlashingAlertDefinition() {
|
|
|
139
91
|
},
|
|
140
92
|
};
|
|
141
93
|
}
|
|
142
|
-
exports.
|
|
143
|
-
function CreateInternalAlertDefinitionForMessages(messageType,
|
|
94
|
+
exports.CreateEmptyFlashingCellDefinition = CreateEmptyFlashingCellDefinition;
|
|
95
|
+
function CreateInternalAlertDefinitionForMessages(messageType, alertProperties) {
|
|
96
|
+
alertProperties = alertProperties !== null && alertProperties !== void 0 ? alertProperties : {
|
|
97
|
+
DisplayNotification: GeneralConstants_1.ALERT_DEFAULT_SHOW_POPUP,
|
|
98
|
+
};
|
|
144
99
|
return {
|
|
145
100
|
Uuid: Uuid_1.createUuid(),
|
|
146
101
|
Scope: undefined,
|
|
@@ -148,23 +103,10 @@ function CreateInternalAlertDefinitionForMessages(messageType, showPopup) {
|
|
|
148
103
|
Predicate: undefined,
|
|
149
104
|
},
|
|
150
105
|
MessageType: messageType,
|
|
151
|
-
AlertProperties:
|
|
152
|
-
DisplayNotification: showPopup != null && showPopup != undefined ? showPopup : GeneralConstants_1.ALERT_DEFAULT_SHOW_POPUP,
|
|
153
|
-
},
|
|
106
|
+
AlertProperties: alertProperties,
|
|
154
107
|
};
|
|
155
108
|
}
|
|
156
109
|
exports.CreateInternalAlertDefinitionForMessages = CreateInternalAlertDefinitionForMessages;
|
|
157
|
-
function CreateEmptySparklineColumn() {
|
|
158
|
-
return {
|
|
159
|
-
Uuid: Uuid_1.createUuid(),
|
|
160
|
-
ColumnId: GeneralConstants_1.EMPTY_STRING,
|
|
161
|
-
MaximumValue: undefined,
|
|
162
|
-
MinimumValue: undefined,
|
|
163
|
-
ShowToolTip: true,
|
|
164
|
-
LineColor: DefaultSparklinesChartProperties_1.DefaultSparklinesChartProperties.Brush,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
exports.CreateEmptySparklineColumn = CreateEmptySparklineColumn;
|
|
168
110
|
function CreateEmptyReport() {
|
|
169
111
|
return {
|
|
170
112
|
Uuid: Uuid_1.createUuid(),
|
|
@@ -189,7 +131,10 @@ function CreateEmptyReminderSchedule() {
|
|
|
189
131
|
Uuid: Uuid_1.createUuid(),
|
|
190
132
|
ScheduleType: Enums_1.ScheduleType.Reminder,
|
|
191
133
|
Schedule: CreateEmptySchedule(),
|
|
192
|
-
|
|
134
|
+
Header: GeneralConstants_1.EMPTY_STRING,
|
|
135
|
+
Message: GeneralConstants_1.EMPTY_STRING,
|
|
136
|
+
MessageType: 'Info',
|
|
137
|
+
DisplayNotification: true,
|
|
193
138
|
};
|
|
194
139
|
}
|
|
195
140
|
exports.CreateEmptyReminderSchedule = CreateEmptyReminderSchedule;
|
|
@@ -256,16 +201,6 @@ function CreateEmptyOpenFinSchedule() {
|
|
|
256
201
|
};
|
|
257
202
|
}
|
|
258
203
|
exports.CreateEmptyOpenFinSchedule = CreateEmptyOpenFinSchedule;
|
|
259
|
-
function CreateEmptyReminder() {
|
|
260
|
-
return {
|
|
261
|
-
Uuid: Uuid_1.createUuid(),
|
|
262
|
-
Header: GeneralConstants_1.EMPTY_STRING,
|
|
263
|
-
Message: GeneralConstants_1.EMPTY_STRING,
|
|
264
|
-
MessageType: 'Info',
|
|
265
|
-
DisplayNotification: true,
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
exports.CreateEmptyReminder = CreateEmptyReminder;
|
|
269
204
|
function CreateIPushPullSchedule(iPushPullReport) {
|
|
270
205
|
return {
|
|
271
206
|
Uuid: Uuid_1.createUuid(),
|
|
@@ -462,20 +397,15 @@ function getToastTransition(transition) {
|
|
|
462
397
|
exports.ObjectFactory = {
|
|
463
398
|
CreateEmptyCustomSort,
|
|
464
399
|
CreateEmptyDataSource,
|
|
465
|
-
CreateEmptyPieChartDefinition,
|
|
466
|
-
CreateEmptySparklinesChartDefinition,
|
|
467
|
-
CreateEmptyCategoryChartDefinition,
|
|
468
400
|
CreateEmptyCalculatedColumn,
|
|
469
401
|
CreateEmptyNamedQuery,
|
|
470
402
|
CreateEmptyPlusMinusNudge,
|
|
471
403
|
CreateEmptyAlert,
|
|
472
404
|
CreateAlert,
|
|
473
405
|
CreateEmptyAlertDefinition,
|
|
474
|
-
|
|
406
|
+
CreateEmptyFlashingCellDefinition,
|
|
475
407
|
CreateInternalAlertDefinitionForMessages,
|
|
476
|
-
CreateEmptySparklineColumn,
|
|
477
408
|
CreateEmptyReport,
|
|
478
|
-
CreateEmptyReminder,
|
|
479
409
|
CreateEmptyBaseSchedule,
|
|
480
410
|
CreateEmptyReminderSchedule,
|
|
481
411
|
CreateEmptyReportSchedule,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAlertService } from './Interface/IAlertService';
|
|
2
|
-
import { AlertDefinition
|
|
2
|
+
import { AlertDefinition } from '../../PredefinedConfig/AlertState';
|
|
3
3
|
import { EmitterCallback } from '../Emitter';
|
|
4
4
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
5
5
|
export declare class AlertService implements IAlertService {
|
|
@@ -8,8 +8,8 @@ export declare class AlertService implements IAlertService {
|
|
|
8
8
|
private reactiveAlertsMap;
|
|
9
9
|
constructor(adaptable: IAdaptable);
|
|
10
10
|
onReactiveAlertTriggered: (callback: EmitterCallback) => (() => void);
|
|
11
|
-
createReactiveAlert(alertDefinition: AlertDefinition
|
|
12
|
-
deleteReactiveAlert(alertDefinition: AlertDefinition
|
|
11
|
+
createReactiveAlert(alertDefinition: AlertDefinition): void;
|
|
12
|
+
deleteReactiveAlert(alertDefinition: AlertDefinition): void;
|
|
13
13
|
destroy(): void;
|
|
14
14
|
private isValidExpression;
|
|
15
15
|
private evaluateReactiveExpression;
|
|
@@ -15,12 +15,12 @@ class AlertService {
|
|
|
15
15
|
};
|
|
16
16
|
this.emitter = new Emitter_1.default();
|
|
17
17
|
}
|
|
18
|
-
createReactiveAlert(alertDefinition
|
|
18
|
+
createReactiveAlert(alertDefinition) {
|
|
19
19
|
// if there is already an reactive alert for this definition, delete it (possible in case of editing definitions),
|
|
20
20
|
this.deleteReactiveAlert(alertDefinition);
|
|
21
|
-
const isValidExpression = this.isValidExpression(alertDefinition.Rule
|
|
21
|
+
const isValidExpression = this.isValidExpression(alertDefinition.Rule);
|
|
22
22
|
if (!isValidExpression) {
|
|
23
|
-
LoggingHelper_1.LogAdaptableWarning(`Could NOT create reactive
|
|
23
|
+
LoggingHelper_1.LogAdaptableWarning(`Could NOT create reactive alert due to invalid Rule definition!`, alertDefinition.Rule);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
const reactiveExpressionObservable = this.evaluateReactiveExpression(alertDefinition.Rule);
|
|
@@ -28,17 +28,11 @@ class AlertService {
|
|
|
28
28
|
rxjs_1.of(alertDefinition),
|
|
29
29
|
reactiveExpressionObservable,
|
|
30
30
|
]).subscribe(([alertDefinition, dataChangeLogEntry]) => {
|
|
31
|
-
const reactiveAlertInfo =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
: {
|
|
38
|
-
alertDefinition: alertDefinition,
|
|
39
|
-
dataChangeLogEntry,
|
|
40
|
-
type: 'alert',
|
|
41
|
-
};
|
|
31
|
+
const reactiveAlertInfo = {
|
|
32
|
+
alertDefinition: alertDefinition,
|
|
33
|
+
dataChangeLogEntry,
|
|
34
|
+
type: 'alert',
|
|
35
|
+
};
|
|
42
36
|
this.emitter.emitSync('ReactiveAlertTriggered', reactiveAlertInfo);
|
|
43
37
|
});
|
|
44
38
|
this.reactiveAlertsMap.set(alertDefinition.Uuid, {
|
|
@@ -58,11 +52,11 @@ class AlertService {
|
|
|
58
52
|
this.emitter = null;
|
|
59
53
|
this.reactiveAlertsMap.forEach((alertsSubscriptionInfo) => alertsSubscriptionInfo.subscription.unsubscribe());
|
|
60
54
|
}
|
|
61
|
-
isValidExpression(rule
|
|
55
|
+
isValidExpression(rule) {
|
|
62
56
|
return rule.ObservableExpression
|
|
63
|
-
? this.adaptable.api.queryLanguageApi.isValidObservableExpression(rule.ObservableExpression, ModuleConstants_1.AlertModuleId, `Invalid
|
|
57
|
+
? this.adaptable.api.queryLanguageApi.isValidObservableExpression(rule.ObservableExpression, ModuleConstants_1.AlertModuleId, `Invalid Alert rule with observable expression `)
|
|
64
58
|
: rule.AggregationExpression
|
|
65
|
-
? this.adaptable.api.queryLanguageApi.isValidAggregationExpression(rule.AggregationExpression, ModuleConstants_1.AlertModuleId, `Invalid
|
|
59
|
+
? this.adaptable.api.queryLanguageApi.isValidAggregationExpression(rule.AggregationExpression, ModuleConstants_1.AlertModuleId, `Invalid Alert rule with aggregation expression `)
|
|
66
60
|
: false;
|
|
67
61
|
}
|
|
68
62
|
evaluateReactiveExpression(rule) {
|
|
@@ -10,5 +10,6 @@ export declare class EntitlementService implements IEntitlementService {
|
|
|
10
10
|
isModuleFullEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
11
11
|
isModuleReadOnlyEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
12
12
|
getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
|
|
13
|
+
isGridInfoSectionVisible(section: 'GridSummary' | 'AdaptableOptions' | 'ColumnInfo'): boolean;
|
|
13
14
|
destroy(): void;
|
|
14
15
|
}
|
|
@@ -7,7 +7,7 @@ class EntitlementService {
|
|
|
7
7
|
this.adaptable = adaptable;
|
|
8
8
|
}
|
|
9
9
|
setModulesEntitlements() {
|
|
10
|
-
this.adaptable.
|
|
10
|
+
this.adaptable.adaptableModules.forEach((module) => {
|
|
11
11
|
module.setModuleEntitlement();
|
|
12
12
|
});
|
|
13
13
|
}
|
|
@@ -44,6 +44,14 @@ class EntitlementService {
|
|
|
44
44
|
}
|
|
45
45
|
return 'Full';
|
|
46
46
|
}
|
|
47
|
+
isGridInfoSectionVisible(section) {
|
|
48
|
+
if (this.isModuleHiddenEntitlement('GridInfo')) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return this.adaptable.api.internalApi
|
|
52
|
+
.getAdaptableOptions()
|
|
53
|
+
.userInterfaceOptions.gridInfoSections.includes(section);
|
|
54
|
+
}
|
|
47
55
|
destroy() {
|
|
48
56
|
// TO DO
|
|
49
57
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { AlertDefinition
|
|
1
|
+
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
2
2
|
import { DataChangedInfo } from '../../../PredefinedConfig/Common/DataChangedInfo';
|
|
3
3
|
import { IAdaptableService } from './IAdaptableService';
|
|
4
4
|
export declare type ReactiveAlertInfo = {
|
|
5
5
|
alertDefinition: AlertDefinition;
|
|
6
6
|
type: 'alert';
|
|
7
7
|
dataChangeLogEntry: DataChangedInfo;
|
|
8
|
-
} | {
|
|
9
|
-
alertDefinition: FlashingAlertDefinition;
|
|
10
|
-
type: 'flashingAlert';
|
|
11
|
-
dataChangeLogEntry: DataChangedInfo;
|
|
12
8
|
};
|
|
13
9
|
export interface IAlertService extends IAdaptableService {
|
|
14
|
-
createReactiveAlert(alertDefinition: AlertDefinition
|
|
15
|
-
deleteReactiveAlert(alertDefinition: AlertDefinition
|
|
10
|
+
createReactiveAlert(alertDefinition: AlertDefinition): void;
|
|
11
|
+
deleteReactiveAlert(alertDefinition: AlertDefinition): void;
|
|
16
12
|
onReactiveAlertTriggered(callback: (payload: ReactiveAlertInfo) => void): () => void;
|
|
17
13
|
}
|
|
@@ -7,4 +7,5 @@ export interface IEntitlementService extends IAdaptableService {
|
|
|
7
7
|
isModuleFullEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
8
8
|
isModuleReadOnlyEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
9
9
|
getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
|
|
10
|
+
isGridInfoSectionVisible(section: 'GridSummary' | 'AdaptableOptions' | 'ColumnInfo'): boolean;
|
|
10
11
|
}
|
|
@@ -11,55 +11,55 @@ class ModuleService {
|
|
|
11
11
|
}
|
|
12
12
|
createModuleMenus() {
|
|
13
13
|
const dropdownMenuItems = [];
|
|
14
|
-
const
|
|
15
|
-
this.adaptable.
|
|
14
|
+
const buttonMenuItems = [];
|
|
15
|
+
this.adaptable.adaptableModules.forEach((module) => {
|
|
16
16
|
const dropdownMenuItem = module.addModuleMenuItem('ModuleMenu');
|
|
17
17
|
if (Helper_1.default.objectExists(dropdownMenuItem)) {
|
|
18
18
|
if (dropdownMenuItems.findIndex((m) => m.module == dropdownMenuItem.module) == -1) {
|
|
19
19
|
dropdownMenuItems.push(dropdownMenuItem);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
if (Helper_1.default.objectExists(
|
|
24
|
-
if (
|
|
25
|
-
|
|
22
|
+
const buttonMenuItem = module.addModuleMenuItem('ModuleButton');
|
|
23
|
+
if (Helper_1.default.objectExists(buttonMenuItem)) {
|
|
24
|
+
if (buttonMenuItems.findIndex((m) => m.module == buttonMenuItem.module) == -1) {
|
|
25
|
+
buttonMenuItems.push(buttonMenuItem);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
// store the main menu as we will re-use (and it never changes)
|
|
30
30
|
this.adaptable.api.internalApi.setModuleDropdownMenuItems(dropdownMenuItems);
|
|
31
|
-
this.adaptable.api.internalApi.setModuleButtonMenuItems(
|
|
31
|
+
this.adaptable.api.internalApi.setModuleButtonMenuItems(buttonMenuItems);
|
|
32
32
|
}
|
|
33
33
|
isModuleAvailable(adaptableModule) {
|
|
34
|
-
let module = this.adaptable.
|
|
34
|
+
let module = this.adaptable.adaptableModules.get(adaptableModule);
|
|
35
35
|
if (!module) {
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
38
38
|
return module.isModuleAvailable();
|
|
39
39
|
}
|
|
40
40
|
isModuleEditable(adaptableModule) {
|
|
41
|
-
let module = this.adaptable.
|
|
41
|
+
let module = this.adaptable.adaptableModules.get(adaptableModule);
|
|
42
42
|
if (!module) {
|
|
43
43
|
return false;
|
|
44
44
|
}
|
|
45
45
|
return module.isModuleEditable();
|
|
46
46
|
}
|
|
47
47
|
getTeamSharingAction(adaptableModule) {
|
|
48
|
-
let module = this.adaptable.
|
|
48
|
+
let module = this.adaptable.adaptableModules.get(adaptableModule);
|
|
49
49
|
if (!module) {
|
|
50
50
|
return undefined;
|
|
51
51
|
}
|
|
52
52
|
return module.getTeamSharingAction();
|
|
53
53
|
}
|
|
54
54
|
getModuleById(adaptableModule) {
|
|
55
|
-
return this.adaptable.
|
|
55
|
+
return this.adaptable.adaptableModules.get(adaptableModule);
|
|
56
56
|
}
|
|
57
57
|
getModuleInfoByModule(adaptableModule) {
|
|
58
58
|
const module = this.getModuleById(adaptableModule);
|
|
59
59
|
return module ? module.moduleInfo : undefined;
|
|
60
60
|
}
|
|
61
61
|
getModuleInfoByFriendlyName(friendlyName) {
|
|
62
|
-
for (let module of this.adaptable.
|
|
62
|
+
for (let module of this.adaptable.adaptableModules.values()) {
|
|
63
63
|
let moduleInfo = module.moduleInfo;
|
|
64
64
|
if (moduleInfo && moduleInfo.FriendlyName == friendlyName) {
|
|
65
65
|
return moduleInfo;
|
|
@@ -72,7 +72,7 @@ class ModuleService {
|
|
|
72
72
|
return (_a = this.getModuleById(adaptableModule)) === null || _a === void 0 ? void 0 : _a.getPopupMaxWidth();
|
|
73
73
|
}
|
|
74
74
|
getModuleCollection() {
|
|
75
|
-
return this.adaptable.
|
|
75
|
+
return this.adaptable.adaptableModules;
|
|
76
76
|
}
|
|
77
77
|
getModuleDocumentationPageByModule(adaptableModule) {
|
|
78
78
|
let url = `${DocumentationLinkConstants_1.HOST_URL_DOCS}/`;
|
|
@@ -139,10 +139,6 @@ class ModuleService {
|
|
|
139
139
|
return userInterfaceUrl + 'tool-panel';
|
|
140
140
|
case 'DataChangeHistory':
|
|
141
141
|
return editingUrl + 'change-history-module';
|
|
142
|
-
case 'Chart':
|
|
143
|
-
return pluginUrl + 'chart/chart-plugin';
|
|
144
|
-
case 'SparklineColumn':
|
|
145
|
-
return pluginUrl + 'chart/sparkline-column-module';
|
|
146
142
|
case 'Glue42':
|
|
147
143
|
return pluginUrl + 'glue42/glue42-plugin';
|
|
148
144
|
case 'IPushPull':
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TeamSharingService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
6
|
-
const ObjectFactory_1 = tslib_1.__importDefault(require("../ObjectFactory"));
|
|
7
5
|
class TeamSharingService {
|
|
8
6
|
constructor(adaptable) {
|
|
9
7
|
this.adaptable = adaptable;
|
|
@@ -112,8 +110,9 @@ class TeamSharingService {
|
|
|
112
110
|
Object.values(this.getStaleActiveSharedEntities()).forEach((sharedEntityActiveInfo) => {
|
|
113
111
|
const notificationMessage = `Active share ${sharedEntityActiveInfo.sharedEntity.Module} has a new Revision: ${sharedEntityActiveInfo.sharedEntity.Revision}`;
|
|
114
112
|
if (updateNotification === 'Alert' || updateNotification === 'AlertWithNotification') {
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
this.adaptable.api.alertApi.showAlert('TeamSharing', notificationMessage, 'Info', {
|
|
114
|
+
DisplayNotification: updateNotification === 'AlertWithNotification',
|
|
115
|
+
});
|
|
117
116
|
}
|
|
118
117
|
if (updateNotification === 'SystemStatus') {
|
|
119
118
|
this.adaptable.api.systemStatusApi.setInfoSystemStatus(`TeamSharing: ${notificationMessage}`);
|