@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
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
3
|
-
import * as ScheduleRedux from '../../Redux/ActionsReducers/ScheduleRedux';
|
|
4
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
5
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
6
|
-
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
7
|
-
import { ScheduleType } from '../../PredefinedConfig/Common/Enums';
|
|
8
|
-
import { ReportSchedule } from '../../PredefinedConfig/ExportState';
|
|
9
|
-
import { BaseSchedule } from '../../PredefinedConfig/Common/Schedule';
|
|
10
|
-
import { Glue42Schedule } from '../../PredefinedConfig/Glue42State';
|
|
11
|
-
import { IPushPullSchedule } from '../../PredefinedConfig/IPushPullState';
|
|
12
|
-
import { OpenFinSchedule } from '../../PredefinedConfig/OpenFinState';
|
|
13
|
-
import { ReminderSchedule } from '../../PredefinedConfig/ScheduleState';
|
|
14
|
-
import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
|
|
15
|
-
interface SchedulePopupProps extends ModuleViewPopupProps<SchedulePopupComponent> {
|
|
16
|
-
Reminders: ReminderSchedule[];
|
|
17
|
-
ReportSchedules: ReportSchedule[];
|
|
18
|
-
IPushPullSchedules: IPushPullSchedule[];
|
|
19
|
-
Glue42Schedules: Glue42Schedule[];
|
|
20
|
-
OpenFinSchedules: OpenFinSchedule[];
|
|
21
|
-
onAddReminderSchedule: (reminderchedule: ReminderSchedule) => ScheduleRedux.ReminderScheduleAddAction;
|
|
22
|
-
onEditReminderSchedule: (reminderSchedule: ReminderSchedule) => ScheduleRedux.ReminderScheduleEditAction;
|
|
23
|
-
onSuspendReminderSchedule: (reminderSchedule: ReminderSchedule) => ScheduleRedux.ReminderScheduleSuspendAction;
|
|
24
|
-
onUnSuspendReminderSchedule: (reminderSchedule: ReminderSchedule) => ScheduleRedux.ReminderScheduleUnSuspendAction;
|
|
25
|
-
onAddReportSchedule: (reportSchedule: ReportSchedule) => ScheduleRedux.ReportScheduleAddAction;
|
|
26
|
-
onEditReportSchedule: (reportSchedule: ReportSchedule) => ScheduleRedux.ReportScheduleEditAction;
|
|
27
|
-
onSuspendReportSchedule: (reportSchedule: ReportSchedule) => ScheduleRedux.ReportScheduleSuspendAction;
|
|
28
|
-
onUnSuspendReportSchedule: (reportSchedule: ReportSchedule) => ScheduleRedux.ReportScheduleUnSuspendAction;
|
|
29
|
-
onAddIPushPullSchedule: (iPushPullSchedule: IPushPullSchedule) => ScheduleRedux.IPushPullScheduleAddAction;
|
|
30
|
-
onEditIPushPullSchedule: (iPushPullSchedule: IPushPullSchedule) => ScheduleRedux.IPushPullScheduleEditAction;
|
|
31
|
-
onSuspendIPushPullSchedule: (iPushPullSchedule: IPushPullSchedule) => ScheduleRedux.IPushPullScheduleSuspendAction;
|
|
32
|
-
onUnSuspendIPushPullSchedule: (iPushPullSchedule: IPushPullSchedule) => ScheduleRedux.IPushPullScheduleUnSuspendAction;
|
|
33
|
-
onAddGlue42Schedule: (glue42Schedule: Glue42Schedule) => ScheduleRedux.Glue42ScheduleAddAction;
|
|
34
|
-
onEditGlue42Schedule: (glue42Schedule: Glue42Schedule) => ScheduleRedux.Glue42ScheduleEditAction;
|
|
35
|
-
onSuspendGlue42Schedule: (glue42Schedule: Glue42Schedule) => ScheduleRedux.Glue42ScheduleSuspendAction;
|
|
36
|
-
onUnSuspendGlue42Schedule: (glue42Schedule: Glue42Schedule) => ScheduleRedux.Glue42ScheduleUnSuspendAction;
|
|
37
|
-
onAddOpenFinSchedule: (OpenFinSchedule: OpenFinSchedule) => ScheduleRedux.OpenFinScheduleAddAction;
|
|
38
|
-
onEditOpenFinSchedule: (OpenFinSchedule: OpenFinSchedule) => ScheduleRedux.OpenFinScheduleEditAction;
|
|
39
|
-
onSuspendOpenFinSchedule: (OpenFinSchedule: OpenFinSchedule) => ScheduleRedux.OpenFinScheduleSuspendAction;
|
|
40
|
-
onUnSuspendOpenFinSchedule: (OpenFinSchedule: OpenFinSchedule) => ScheduleRedux.OpenFinScheduleUnSuspendAction;
|
|
41
|
-
onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
42
|
-
}
|
|
43
|
-
declare class SchedulePopupComponent extends React.Component<SchedulePopupProps, EditableConfigEntityState> {
|
|
44
|
-
constructor(props: SchedulePopupProps);
|
|
45
|
-
shouldClosePopupOnFinishWizard: boolean;
|
|
46
|
-
componentDidMount(): void;
|
|
47
|
-
render(): JSX.Element;
|
|
48
|
-
onCreateSchedule(scheduleType: ScheduleType): void;
|
|
49
|
-
onSuspend: (baseSchedule: BaseSchedule) => void;
|
|
50
|
-
onUnSuspend: (baseSchedule: BaseSchedule) => void;
|
|
51
|
-
onNew(baseSchedule: BaseSchedule): void;
|
|
52
|
-
onEdit(baseSchedule: BaseSchedule): void;
|
|
53
|
-
onCloseWizard: () => void;
|
|
54
|
-
onFinishWizard: (baseSchedule: BaseSchedule) => void;
|
|
55
|
-
resetState: () => void;
|
|
56
|
-
}
|
|
57
|
-
export declare let SchedulePopup: import("react-redux").ConnectedComponent<typeof SchedulePopupComponent, Pick<React.ClassAttributes<SchedulePopupComponent> & SchedulePopupProps, never>>;
|
|
58
|
-
export {};
|
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SchedulePopup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
|
-
const ScheduleRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ScheduleRedux"));
|
|
8
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
9
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
10
|
-
const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
|
|
11
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
12
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
13
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
14
|
-
const UIHelper_1 = require("../UIHelper");
|
|
15
|
-
const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
16
|
-
const rebass_1 = require("rebass");
|
|
17
|
-
const ScheduleEntityRow_1 = require("./ScheduleEntityRow");
|
|
18
|
-
const ScheduleWizard_1 = require("./Wizard/ScheduleWizard");
|
|
19
|
-
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
20
|
-
const DropdownButton_1 = tslib_1.__importDefault(require("../../components/DropdownButton"));
|
|
21
|
-
const plus_1 = tslib_1.__importDefault(require("../../components/icons/plus"));
|
|
22
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
23
|
-
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
24
|
-
class SchedulePopupComponent extends React.Component {
|
|
25
|
-
constructor(props) {
|
|
26
|
-
super(props);
|
|
27
|
-
this.shouldClosePopupOnFinishWizard = false;
|
|
28
|
-
this.onSuspend = (baseSchedule) => {
|
|
29
|
-
switch (baseSchedule.ScheduleType) {
|
|
30
|
-
case Enums_1.ScheduleType.Reminder:
|
|
31
|
-
this.props.onSuspendReminderSchedule(baseSchedule);
|
|
32
|
-
break;
|
|
33
|
-
case Enums_1.ScheduleType.Report:
|
|
34
|
-
this.props.onSuspendReportSchedule(baseSchedule);
|
|
35
|
-
break;
|
|
36
|
-
case Enums_1.ScheduleType.ipushpull:
|
|
37
|
-
this.props.onSuspendIPushPullSchedule(baseSchedule);
|
|
38
|
-
break;
|
|
39
|
-
case Enums_1.ScheduleType.Glue42:
|
|
40
|
-
this.props.onSuspendGlue42Schedule(baseSchedule);
|
|
41
|
-
break;
|
|
42
|
-
case Enums_1.ScheduleType.OpenFin:
|
|
43
|
-
this.props.onSuspendOpenFinSchedule(baseSchedule);
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
this.onUnSuspend = (baseSchedule) => {
|
|
48
|
-
switch (baseSchedule.ScheduleType) {
|
|
49
|
-
case Enums_1.ScheduleType.Reminder:
|
|
50
|
-
this.props.onUnSuspendReminderSchedule(baseSchedule);
|
|
51
|
-
break;
|
|
52
|
-
case Enums_1.ScheduleType.Report:
|
|
53
|
-
this.props.onUnSuspendReportSchedule(baseSchedule);
|
|
54
|
-
break;
|
|
55
|
-
case Enums_1.ScheduleType.ipushpull:
|
|
56
|
-
this.props.onUnSuspendIPushPullSchedule(baseSchedule);
|
|
57
|
-
break;
|
|
58
|
-
case Enums_1.ScheduleType.Glue42:
|
|
59
|
-
this.props.onUnSuspendGlue42Schedule(baseSchedule);
|
|
60
|
-
break;
|
|
61
|
-
case Enums_1.ScheduleType.OpenFin:
|
|
62
|
-
this.props.onUnSuspendOpenFinSchedule(baseSchedule);
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
this.onCloseWizard = () => {
|
|
67
|
-
this.props.onClearPopupParams();
|
|
68
|
-
this.resetState();
|
|
69
|
-
if (this.shouldClosePopupOnFinishWizard) {
|
|
70
|
-
this.props.onClosePopup();
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
this.onFinishWizard = (baseSchedule) => {
|
|
74
|
-
switch (baseSchedule.ScheduleType) {
|
|
75
|
-
case Enums_1.ScheduleType.Reminder:
|
|
76
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
77
|
-
this.props.onEditReminderSchedule(baseSchedule);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
this.props.onAddReminderSchedule(baseSchedule);
|
|
81
|
-
}
|
|
82
|
-
break;
|
|
83
|
-
case Enums_1.ScheduleType.Report:
|
|
84
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
85
|
-
this.props.onEditReportSchedule(baseSchedule);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
this.props.onAddReportSchedule(baseSchedule);
|
|
89
|
-
}
|
|
90
|
-
break;
|
|
91
|
-
case Enums_1.ScheduleType.ipushpull:
|
|
92
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
93
|
-
this.props.onEditIPushPullSchedule(baseSchedule);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
this.props.onAddIPushPullSchedule(baseSchedule);
|
|
97
|
-
}
|
|
98
|
-
break;
|
|
99
|
-
case Enums_1.ScheduleType.Glue42:
|
|
100
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
101
|
-
this.props.onEditGlue42Schedule(baseSchedule);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
this.props.onAddGlue42Schedule(baseSchedule);
|
|
105
|
-
}
|
|
106
|
-
break;
|
|
107
|
-
case Enums_1.ScheduleType.OpenFin:
|
|
108
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
109
|
-
this.props.onEditOpenFinSchedule(baseSchedule);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
this.props.onAddOpenFinSchedule(baseSchedule);
|
|
113
|
-
}
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
this.resetState();
|
|
117
|
-
};
|
|
118
|
-
this.resetState = () => this.setState(UIHelper_1.UIHelper.getEmptyConfigState());
|
|
119
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
120
|
-
}
|
|
121
|
-
componentDidMount() {
|
|
122
|
-
if (this.props.popupParams) {
|
|
123
|
-
if (this.props.popupParams.action && this.props.popupParams.value) {
|
|
124
|
-
if (this.props.popupParams.action == 'New') {
|
|
125
|
-
let baseSchedule = this.props.popupParams.value;
|
|
126
|
-
if (baseSchedule) {
|
|
127
|
-
this.onNew(baseSchedule);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
this.shouldClosePopupOnFinishWizard =
|
|
132
|
-
this.props.popupParams.source &&
|
|
133
|
-
(this.props.popupParams.source == 'ColumnMenu' ||
|
|
134
|
-
this.props.popupParams.source == 'Toolbar');
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
render() {
|
|
138
|
-
let colItems = [
|
|
139
|
-
{ Content: 'Type', Size: 2 },
|
|
140
|
-
{ Content: 'Details', Size: 5 },
|
|
141
|
-
{ Content: 'Schedule', Size: 3 },
|
|
142
|
-
{ Content: '', Size: 2 },
|
|
143
|
-
];
|
|
144
|
-
// Reminders just use the schedule module access level
|
|
145
|
-
const reminderModuleAccessLevel = this.props.api.internalApi
|
|
146
|
-
.getEntitlementService()
|
|
147
|
-
.getEntitlementAccessLevelForModule(ModuleConstants.ScheduleModuleId);
|
|
148
|
-
const exportModuleAccessLevel = this.props.api.internalApi
|
|
149
|
-
.getEntitlementService()
|
|
150
|
-
.getEntitlementAccessLevelForModule(ModuleConstants_1.ExportModuleId);
|
|
151
|
-
// we need to do this for all 3 schedule types and then concat them into one array
|
|
152
|
-
let allSchedules = [];
|
|
153
|
-
if (reminderModuleAccessLevel !== 'Hidden') {
|
|
154
|
-
allSchedules.push(...this.props.Reminders);
|
|
155
|
-
}
|
|
156
|
-
if (exportModuleAccessLevel !== 'Hidden') {
|
|
157
|
-
allSchedules.push(...this.props.ReportSchedules);
|
|
158
|
-
}
|
|
159
|
-
const ippApi = this.props.api.pluginsApi.getipushpullPluginApi();
|
|
160
|
-
if (ippApi && ippApi.isIPushPullRunning()) {
|
|
161
|
-
allSchedules.push(...this.props.IPushPullSchedules);
|
|
162
|
-
}
|
|
163
|
-
const glue42Api = this.props.api.pluginsApi.getGlue42PluginApi();
|
|
164
|
-
if (glue42Api && glue42Api.isGlue42Running()) {
|
|
165
|
-
allSchedules.push(...this.props.Glue42Schedules);
|
|
166
|
-
}
|
|
167
|
-
const openFinApi = this.props.api.pluginsApi.getOpenFinPluginApi();
|
|
168
|
-
if (openFinApi && openFinApi.isOpenFinRunning()) {
|
|
169
|
-
allSchedules.push(...this.props.OpenFinSchedules);
|
|
170
|
-
}
|
|
171
|
-
let allScheduleRows = allSchedules.map((baseSchedule, index) => {
|
|
172
|
-
let deleteAction;
|
|
173
|
-
switch (baseSchedule.ScheduleType) {
|
|
174
|
-
case Enums_1.ScheduleType.Reminder:
|
|
175
|
-
deleteAction = ScheduleRedux.ReminderScheduleDelete(baseSchedule);
|
|
176
|
-
break;
|
|
177
|
-
case Enums_1.ScheduleType.Report:
|
|
178
|
-
deleteAction = ScheduleRedux.ReportScheduleDelete(baseSchedule);
|
|
179
|
-
break;
|
|
180
|
-
case Enums_1.ScheduleType.ipushpull:
|
|
181
|
-
deleteAction = ScheduleRedux.IPushPullScheduleDelete(baseSchedule);
|
|
182
|
-
break;
|
|
183
|
-
case Enums_1.ScheduleType.Glue42:
|
|
184
|
-
deleteAction = ScheduleRedux.Glue42ScheduleDelete(baseSchedule);
|
|
185
|
-
break;
|
|
186
|
-
case Enums_1.ScheduleType.OpenFin:
|
|
187
|
-
deleteAction = ScheduleRedux.OpenFinScheduleDelete(baseSchedule);
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(baseSchedule, this.props.accessLevel);
|
|
191
|
-
// if accessLevel is Full and the schedule is a Reminder, check if the Entitlement of the Reminder module is more restrictive
|
|
192
|
-
// (in which case it will take precedence)
|
|
193
|
-
if (accessLevel === 'Full' &&
|
|
194
|
-
baseSchedule.ScheduleType === Enums_1.ScheduleType.Reminder &&
|
|
195
|
-
reminderModuleAccessLevel === 'ReadOnly') {
|
|
196
|
-
accessLevel = reminderModuleAccessLevel;
|
|
197
|
-
}
|
|
198
|
-
return (React.createElement(ScheduleEntityRow_1.ScheduleEntityRow, { adaptableObject: baseSchedule, api: this.props.api, colItems: colItems, key: 'CS' + index, moduleInfo: this.props.moduleInfo, onShare: (config) => this.props.onShare(baseSchedule, config), teamSharingActivated: this.props.teamSharingActivated, onEdit: () => this.onEdit(baseSchedule), onDeleteConfirm: deleteAction, accessLevel: accessLevel, onSuspend: this.onSuspend, onUnSuspend: this.onUnSuspend }));
|
|
199
|
-
});
|
|
200
|
-
let reminderMenuItem = {
|
|
201
|
-
disabled: reminderModuleAccessLevel == 'ReadOnly',
|
|
202
|
-
onClick: () => this.onCreateSchedule(Enums_1.ScheduleType.Reminder),
|
|
203
|
-
label: 'Reminder',
|
|
204
|
-
};
|
|
205
|
-
let reportMenuItem = {
|
|
206
|
-
disabled: this.props.accessLevel == 'ReadOnly',
|
|
207
|
-
onClick: () => this.onCreateSchedule(Enums_1.ScheduleType.Report),
|
|
208
|
-
label: 'Report',
|
|
209
|
-
};
|
|
210
|
-
let iPushPullMenuItem = {
|
|
211
|
-
disabled: this.props.accessLevel == 'ReadOnly',
|
|
212
|
-
onClick: () => this.onCreateSchedule(Enums_1.ScheduleType.ipushpull),
|
|
213
|
-
label: 'ipushpull',
|
|
214
|
-
};
|
|
215
|
-
let glue42MenuItem = {
|
|
216
|
-
disabled: this.props.accessLevel == 'ReadOnly',
|
|
217
|
-
onClick: () => this.onCreateSchedule(Enums_1.ScheduleType.Glue42),
|
|
218
|
-
label: 'Glue42',
|
|
219
|
-
};
|
|
220
|
-
let openFinMenuItem = {
|
|
221
|
-
disabled: this.props.accessLevel == 'ReadOnly',
|
|
222
|
-
onClick: () => this.onCreateSchedule(Enums_1.ScheduleType.OpenFin),
|
|
223
|
-
label: 'OpenFin Report',
|
|
224
|
-
};
|
|
225
|
-
let scheduleMenuItems = [];
|
|
226
|
-
if (reminderModuleAccessLevel !== 'Hidden') {
|
|
227
|
-
scheduleMenuItems.push(reminderMenuItem);
|
|
228
|
-
}
|
|
229
|
-
if (exportModuleAccessLevel !== 'Hidden') {
|
|
230
|
-
scheduleMenuItems.push(reportMenuItem);
|
|
231
|
-
}
|
|
232
|
-
if (ippApi && ippApi.isIPushPullRunning()) {
|
|
233
|
-
scheduleMenuItems.push(iPushPullMenuItem);
|
|
234
|
-
}
|
|
235
|
-
if (glue42Api && glue42Api.isGlue42Running()) {
|
|
236
|
-
scheduleMenuItems.push(glue42MenuItem);
|
|
237
|
-
}
|
|
238
|
-
if (openFinApi && openFinApi.isOpenFinRunning()) {
|
|
239
|
-
scheduleMenuItems.push(openFinMenuItem);
|
|
240
|
-
}
|
|
241
|
-
let dropdownButton = (React.createElement(DropdownButton_1.default, { tooltip: "Create New Schedule", variant: "raised", tone: "accent", columns: ['label'], items: scheduleMenuItems, style: { zIndex: 100 } },
|
|
242
|
-
React.createElement(plus_1.default, null),
|
|
243
|
-
" New"));
|
|
244
|
-
return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
|
|
245
|
-
React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, button: dropdownButton, bodyProps: { padding: 0 }, bodyScroll: true, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
246
|
-
allSchedules.length == 0 ? (React.createElement(EmptyContent_1.default, null, "Click 'New' to create a new Schedule.")) : (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: allScheduleRows })),
|
|
247
|
-
this.state.editedAdaptableObject != null && (React.createElement(ScheduleWizard_1.ScheduleWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: null, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard })))));
|
|
248
|
-
}
|
|
249
|
-
onCreateSchedule(scheduleType) {
|
|
250
|
-
let baseSchedule;
|
|
251
|
-
switch (scheduleType) {
|
|
252
|
-
case Enums_1.ScheduleType.Reminder:
|
|
253
|
-
baseSchedule = ObjectFactory_1.ObjectFactory.CreateEmptyReminderSchedule();
|
|
254
|
-
break;
|
|
255
|
-
case Enums_1.ScheduleType.Report:
|
|
256
|
-
baseSchedule = ObjectFactory_1.ObjectFactory.CreateEmptyReportSchedule();
|
|
257
|
-
break;
|
|
258
|
-
case Enums_1.ScheduleType.ipushpull:
|
|
259
|
-
baseSchedule = ObjectFactory_1.ObjectFactory.CreateEmptyIPushPullSchedule();
|
|
260
|
-
break;
|
|
261
|
-
case Enums_1.ScheduleType.Glue42:
|
|
262
|
-
baseSchedule = ObjectFactory_1.ObjectFactory.CreateEmptyGlue42Schedule();
|
|
263
|
-
break;
|
|
264
|
-
case Enums_1.ScheduleType.OpenFin:
|
|
265
|
-
baseSchedule = ObjectFactory_1.ObjectFactory.CreateEmptyOpenFinSchedule();
|
|
266
|
-
break;
|
|
267
|
-
}
|
|
268
|
-
this.onNew(baseSchedule);
|
|
269
|
-
}
|
|
270
|
-
onNew(baseSchedule) {
|
|
271
|
-
this.setState({
|
|
272
|
-
editedAdaptableObject: baseSchedule,
|
|
273
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
onEdit(baseSchedule) {
|
|
277
|
-
this.setState({
|
|
278
|
-
editedAdaptableObject: baseSchedule,
|
|
279
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
function mapStateToProps(state) {
|
|
284
|
-
return {
|
|
285
|
-
Reminders: state.Schedule.Reminders,
|
|
286
|
-
ReportSchedules: state.Schedule.ReportSchedules,
|
|
287
|
-
IPushPullSchedules: state.Schedule.IPushPullSchedules,
|
|
288
|
-
Glue42Schedules: state.Schedule.Glue42Schedules,
|
|
289
|
-
OpenFinSchedules: state.Schedule.OpenFinSchedules,
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
function mapDispatchToProps(dispatch) {
|
|
293
|
-
return {
|
|
294
|
-
onAddReminderSchedule: (reminderSchedule) => dispatch(ScheduleRedux.ReminderScheduleAdd(reminderSchedule)),
|
|
295
|
-
onEditReminderSchedule: (reminderSchedule) => dispatch(ScheduleRedux.ReminderScheduleEdit(reminderSchedule)),
|
|
296
|
-
onSuspendReminderSchedule: (reminderSchedule) => dispatch(ScheduleRedux.ReminderScheduleSuspend(reminderSchedule)),
|
|
297
|
-
onUnSuspendReminderSchedule: (reminderSchedule) => dispatch(ScheduleRedux.ReminderScheduleUnSuspend(reminderSchedule)),
|
|
298
|
-
onAddReportSchedule: (reportSchedule) => dispatch(ScheduleRedux.ReportScheduleAdd(reportSchedule)),
|
|
299
|
-
onEditReportSchedule: (reportSchedule) => dispatch(ScheduleRedux.ReportScheduleEdit(reportSchedule)),
|
|
300
|
-
onSuspendReportSchedule: (reportSchedule) => dispatch(ScheduleRedux.ReportScheduleSuspend(reportSchedule)),
|
|
301
|
-
onUnSuspendReportSchedule: (reportSchedule) => dispatch(ScheduleRedux.ReportScheduleUnSuspend(reportSchedule)),
|
|
302
|
-
onAddIPushPullSchedule: (iPushPullSchedule) => dispatch(ScheduleRedux.IPushPullScheduleAdd(iPushPullSchedule)),
|
|
303
|
-
onEditIPushPullSchedule: (iPushPullSchedule) => dispatch(ScheduleRedux.IPushPullScheduleEdit(iPushPullSchedule)),
|
|
304
|
-
onSuspendIPushPullSchedule: (iPushPullSchedule) => dispatch(ScheduleRedux.IPushPullScheduleSuspend(iPushPullSchedule)),
|
|
305
|
-
onUnSuspendIPushPullSchedule: (iPushPullSchedule) => dispatch(ScheduleRedux.IPushPullScheduleUnSuspend(iPushPullSchedule)),
|
|
306
|
-
onAddGlue42Schedule: (glue42Schedule) => dispatch(ScheduleRedux.Glue42ScheduleAdd(glue42Schedule)),
|
|
307
|
-
onEditGlue42Schedule: (glue42Schedule) => dispatch(ScheduleRedux.Glue42ScheduleEdit(glue42Schedule)),
|
|
308
|
-
onSuspendGlue42Schedule: (glue42Schedule) => dispatch(ScheduleRedux.Glue42ScheduleSuspend(glue42Schedule)),
|
|
309
|
-
onUnSuspendGlue42Schedule: (glue42Schedule) => dispatch(ScheduleRedux.Glue42ScheduleUnSuspend(glue42Schedule)),
|
|
310
|
-
onAddOpenFinSchedule: (openFinSchedule) => dispatch(ScheduleRedux.OpenFinScheduleAdd(openFinSchedule)),
|
|
311
|
-
onEditOpenFinSchedule: (openFinSchedule) => dispatch(ScheduleRedux.OpenFinScheduleEdit(openFinSchedule)),
|
|
312
|
-
onSuspendOpenFinSchedule: (openFinSchedule) => dispatch(ScheduleRedux.OpenFinScheduleSuspend(openFinSchedule)),
|
|
313
|
-
onUnSuspendOpenFinSchedule: (openFinSchedule) => dispatch(ScheduleRedux.OpenFinScheduleUnSuspend(openFinSchedule)),
|
|
314
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ScheduleModuleId, config)),
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
exports.SchedulePopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(SchedulePopupComponent);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { MathOperation } from '../../PredefinedConfig/Common/Enums';
|
|
3
|
-
import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
4
|
-
import { Shortcut } from '../../PredefinedConfig/ShortcutState';
|
|
5
|
-
export interface ShortcutEntityRowProps extends SharedEntityRowProps<ShortcutEntityRow> {
|
|
6
|
-
onChangeKey: (shortcut: Shortcut, NewShortcutKey: string) => void;
|
|
7
|
-
onChangeResult: (shortcut: Shortcut, NewShortcutResult: any) => void;
|
|
8
|
-
onChangeOperation: (shortcut: Shortcut, NewShortcutOperation: MathOperation) => void;
|
|
9
|
-
AvailableKeys: Array<string>;
|
|
10
|
-
AvailableActions: Array<MathOperation>;
|
|
11
|
-
}
|
|
12
|
-
export declare class ShortcutEntityRow extends React.Component<ShortcutEntityRowProps, {}> {
|
|
13
|
-
render(): any;
|
|
14
|
-
onResultChange(event: React.FormEvent<any>): void;
|
|
15
|
-
onKeySelectChange(value: any): void;
|
|
16
|
-
onActionChange(value: MathOperation): void;
|
|
17
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShortcutEntityRow = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
7
|
-
const EntityListActionButtons_1 = require("../Components/Buttons/EntityListActionButtons");
|
|
8
|
-
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
9
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
10
|
-
const DropdownButton_1 = tslib_1.__importDefault(require("../../components/DropdownButton"));
|
|
11
|
-
const AdaptableInput_1 = tslib_1.__importDefault(require("../Components/AdaptableInput"));
|
|
12
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
13
|
-
class ShortcutEntityRow extends React.Component {
|
|
14
|
-
render() {
|
|
15
|
-
let shortcut = this.props.adaptableObject;
|
|
16
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
17
|
-
colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.scopeApi.getScopeToString(shortcut.Scope) }));
|
|
18
|
-
colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: React.createElement(DropdownButton_1.default, { style: { minWidth: 'auto', width: '100%' }, items: this.props.AvailableKeys.map((x) => {
|
|
19
|
-
return {
|
|
20
|
-
value: x,
|
|
21
|
-
label: x,
|
|
22
|
-
onClick: () => this.onKeySelectChange(x),
|
|
23
|
-
};
|
|
24
|
-
}), variant: "outlined", marginRight: 2 }, shortcut.ShortcutKey) }));
|
|
25
|
-
colItems[2].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: React.createElement(DropdownButton_1.default, { style: { minWidth: 'auto', width: '100%' }, items: this.props.AvailableActions.map((shortcutOperation) => {
|
|
26
|
-
return {
|
|
27
|
-
value: shortcutOperation,
|
|
28
|
-
label: Enums_1.MathOperation[shortcutOperation],
|
|
29
|
-
onClick: () => this.onActionChange(shortcutOperation),
|
|
30
|
-
};
|
|
31
|
-
}), variant: "outlined", marginRight: 2 }, shortcut.ShortcutOperation) }));
|
|
32
|
-
colItems[3].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: React.createElement(AdaptableInput_1.default, { width: "100%", type: "number", placeholder: "Shortcut Result", onChange: (e) => this.onResultChange(e), value: shortcut.ShortcutValue }) }));
|
|
33
|
-
colItems[4].Content = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { showSuspend: true, suspendableObject: shortcut, showEdit: true, editClick: () => this.props.onEdit(shortcut), shareClick: (config) => this.props.onShare(config), showShare: this.props.teamSharingActivated, confirmDeleteAction: this.props.onDeleteConfirm, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
|
|
34
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { isSuspended: shortcut.IsSuspended, colItems: colItems });
|
|
35
|
-
}
|
|
36
|
-
onResultChange(event) {
|
|
37
|
-
let e = event.target;
|
|
38
|
-
this.props.onChangeResult(this.props.adaptableObject, e.value);
|
|
39
|
-
}
|
|
40
|
-
onKeySelectChange(value) {
|
|
41
|
-
this.props.onChangeKey(this.props.adaptableObject, value);
|
|
42
|
-
}
|
|
43
|
-
onActionChange(value) {
|
|
44
|
-
this.props.onChangeOperation(this.props.adaptableObject, value);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.ShortcutEntityRow = ShortcutEntityRow;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ShortcutRedux from '../../Redux/ActionsReducers/ShortcutRedux';
|
|
3
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
4
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
5
|
-
import { MathOperation } from '../../PredefinedConfig/Common/Enums';
|
|
6
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
7
|
-
import { Shortcut } from '../../PredefinedConfig/ShortcutState';
|
|
8
|
-
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
9
|
-
import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
|
|
10
|
-
interface ShortcutPopupProps extends ModuleViewPopupProps<ShortcutPopupComponent> {
|
|
11
|
-
onAddShortcut: (shortcut: Shortcut) => ShortcutRedux.ShortcutAddAction;
|
|
12
|
-
onEditShortcut: (shortcut: Shortcut) => ShortcutRedux.ShortcutEditAction;
|
|
13
|
-
Shortcuts: Array<Shortcut>;
|
|
14
|
-
onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
15
|
-
}
|
|
16
|
-
declare class ShortcutPopupComponent extends React.Component<ShortcutPopupProps, EditableConfigEntityState> {
|
|
17
|
-
constructor(props: ShortcutPopupProps);
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
onChangeKeyShortcut(shortcut: Shortcut, newKey: string): void;
|
|
20
|
-
onChangeOperationShortcut(shortcut: Shortcut, newMathOperation: MathOperation): void;
|
|
21
|
-
onChangeResultShortcut(shortcut: Shortcut, newResult: any): void;
|
|
22
|
-
onCloseWizard: () => void;
|
|
23
|
-
onFinishWizard: (shortcut: Shortcut) => void;
|
|
24
|
-
resetState: () => void;
|
|
25
|
-
onNew(): void;
|
|
26
|
-
onEdit(shortcut: Shortcut): void;
|
|
27
|
-
getAvailableKeys(shortcut?: Shortcut): string[];
|
|
28
|
-
}
|
|
29
|
-
export declare const ShortcutPopup: import("react-redux").ConnectedComponent<typeof ShortcutPopupComponent, any>;
|
|
30
|
-
export {};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShortcutPopup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
|
-
const ShortcutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ShortcutRedux"));
|
|
8
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
9
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
10
|
-
const ShortcutEntityRow_1 = require("./ShortcutEntityRow");
|
|
11
|
-
const ShortcutWizard_1 = require("./Wizard/ShortcutWizard");
|
|
12
|
-
const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
|
|
13
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
14
|
-
const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
|
|
15
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
16
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
17
|
-
const UIHelper_1 = require("../UIHelper");
|
|
18
|
-
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
19
|
-
const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
20
|
-
const rebass_1 = require("rebass");
|
|
21
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
22
|
-
const shortcutOperations_1 = require("./shortcutOperations");
|
|
23
|
-
const shortcutKeys_1 = require("./shortcutKeys");
|
|
24
|
-
class ShortcutPopupComponent extends React.Component {
|
|
25
|
-
constructor(props) {
|
|
26
|
-
super(props);
|
|
27
|
-
this.onCloseWizard = () => {
|
|
28
|
-
this.props.onClearPopupParams();
|
|
29
|
-
this.resetState();
|
|
30
|
-
};
|
|
31
|
-
this.onFinishWizard = (shortcut) => {
|
|
32
|
-
if (this.state.wizardStatus === EditableConfigEntityState_1.WizardStatus.New) {
|
|
33
|
-
this.props.onAddShortcut(shortcut);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this.props.onEditShortcut(shortcut);
|
|
37
|
-
}
|
|
38
|
-
this.resetState();
|
|
39
|
-
};
|
|
40
|
-
this.resetState = () => this.setState(UIHelper_1.UIHelper.getEmptyConfigState());
|
|
41
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
let colItems = [
|
|
45
|
-
{ Content: 'Column', Size: 3 },
|
|
46
|
-
{ Content: 'Key', Size: 2 },
|
|
47
|
-
{ Content: 'Operation', Size: 3 },
|
|
48
|
-
{ Content: 'Value', Size: 4 },
|
|
49
|
-
{ Content: '', Size: 3 },
|
|
50
|
-
];
|
|
51
|
-
const shortcuts = this.props.Shortcuts.map((shortcut, index) => {
|
|
52
|
-
const accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(shortcut, this.props.accessLevel);
|
|
53
|
-
return (React.createElement(ShortcutEntityRow_1.ShortcutEntityRow, { adaptableObject: shortcut, key: 'ns' + index, onEdit: () => this.onEdit(shortcut), moduleInfo: this.props.moduleInfo, colItems: colItems, AvailableActions: shortcutOperations_1.shortcutOperationList, api: this.props.api, AvailableKeys: this.getAvailableKeys(shortcut), onShare: (config) => this.props.onShare(shortcut, config), teamSharingActivated: this.props.teamSharingActivated, onDeleteConfirm: ShortcutRedux.ShortcutDelete(shortcut), onChangeKey: (shortcut, newKey) => this.onChangeKeyShortcut(shortcut, newKey), onChangeOperation: (shortcut, newOperation) => this.onChangeOperationShortcut(shortcut, newOperation), onChangeResult: (shortcut, newResult) => this.onChangeResultShortcut(shortcut, newResult), accessLevel: accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
|
|
54
|
-
});
|
|
55
|
-
const newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.onNew(), tooltip: "Create New Shortcut", accessLevel: this.props.accessLevel, style: {
|
|
56
|
-
color: 'var(--ab-color-text-on-add)',
|
|
57
|
-
fill: 'var(--ab-color-text-on-add)',
|
|
58
|
-
background: 'var(--ab-color-action-add)',
|
|
59
|
-
} }));
|
|
60
|
-
const shortcut = this.state.editedAdaptableObject;
|
|
61
|
-
const availableKeys = (shortcut === null || shortcut === void 0 ? void 0 : shortcut.ShortcutKey) ? this.getAvailableKeys(shortcut)
|
|
62
|
-
: this.getAvailableKeys();
|
|
63
|
-
return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
|
|
64
|
-
React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, className: "ab_main_popup", button: newButton, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), bodyProps: { padding: 0 } },
|
|
65
|
-
shortcuts.length > 0 ? (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: shortcuts })) : (React.createElement(EmptyContent_1.default, null, "Click 'New' to add a new Shortcut.")),
|
|
66
|
-
this.state.editedAdaptableObject != null && (React.createElement(ShortcutWizard_1.ShortcutWizard, { moduleInfo: this.props.moduleInfo, configEntities: [], data: shortcut, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard, availableKeys: availableKeys })))));
|
|
67
|
-
}
|
|
68
|
-
onChangeKeyShortcut(shortcut, newKey) {
|
|
69
|
-
let clonedShortcut = Helper_1.default.cloneObject(shortcut);
|
|
70
|
-
clonedShortcut.ShortcutKey = newKey;
|
|
71
|
-
this.props.onEditShortcut(clonedShortcut);
|
|
72
|
-
}
|
|
73
|
-
onChangeOperationShortcut(shortcut, newMathOperation) {
|
|
74
|
-
let clonedShortcut = Helper_1.default.cloneObject(shortcut);
|
|
75
|
-
clonedShortcut.ShortcutOperation = newMathOperation;
|
|
76
|
-
this.props.onEditShortcut(clonedShortcut);
|
|
77
|
-
}
|
|
78
|
-
onChangeResultShortcut(shortcut, newResult) {
|
|
79
|
-
let clonedShortcut = Helper_1.default.cloneObject(shortcut);
|
|
80
|
-
clonedShortcut.ShortcutValue = newResult;
|
|
81
|
-
this.props.onEditShortcut(clonedShortcut);
|
|
82
|
-
}
|
|
83
|
-
onNew() {
|
|
84
|
-
this.setState({
|
|
85
|
-
editedAdaptableObject: ObjectFactory_1.ObjectFactory.CreateEmptyShortcut(),
|
|
86
|
-
wizardStartIndex: 0,
|
|
87
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
onEdit(shortcut) {
|
|
91
|
-
const clonedObject = Helper_1.default.cloneObject(shortcut);
|
|
92
|
-
this.setState({
|
|
93
|
-
editedAdaptableObject: clonedObject,
|
|
94
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
95
|
-
wizardStartIndex: 0,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
getAvailableKeys(shortcut) {
|
|
99
|
-
const availableKeys = shortcutKeys_1.shortcutKeys.filter((key) => this.props.Shortcuts.every((shortcut) => shortcut.ShortcutKey !== key));
|
|
100
|
-
if (shortcut) {
|
|
101
|
-
availableKeys.push(shortcut.ShortcutKey);
|
|
102
|
-
}
|
|
103
|
-
availableKeys.sort();
|
|
104
|
-
return availableKeys;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function mapStateToProps(state, ownProps) {
|
|
108
|
-
return {
|
|
109
|
-
Shortcuts: state.Shortcut.Shortcuts,
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function mapDispatchToProps(dispatch) {
|
|
113
|
-
return {
|
|
114
|
-
onAddShortcut: (shortcut) => dispatch(ShortcutRedux.ShortcutAdd(shortcut)),
|
|
115
|
-
onEditShortcut: (shortcut) => dispatch(ShortcutRedux.ShortcutEdit(shortcut)),
|
|
116
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ShortcutModuleId, config)),
|
|
117
|
-
onSuspend: (shortcut) => dispatch(ShortcutRedux.ShortcutSuspend(shortcut)),
|
|
118
|
-
onUnSuspend: (shortcut) => dispatch(ShortcutRedux.ShortcutUnSuspend(shortcut)),
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
exports.ShortcutPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(ShortcutPopupComponent);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface ChartContainerProps {
|
|
4
|
-
chart: React.ReactElement;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
button?: ReactNode;
|
|
8
|
-
flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
9
|
-
sizeAsString?: boolean;
|
|
10
|
-
settingsPanel?: ReactNode;
|
|
11
|
-
minHeight?: string | number;
|
|
12
|
-
}
|
|
13
|
-
declare const ChartContainer: (props: ChartContainerProps) => JSX.Element;
|
|
14
|
-
export default ChartContainer;
|
|
15
|
-
export { ChartContainer };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChartContainer = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const SizedContainer_1 = tslib_1.__importDefault(require("../SizedContainer"));
|
|
8
|
-
const ChartContainer = (props) => (React.createElement(rebass_1.Flex, { flexDirection: props.flexDirection || 'row', className: "ab-ChartContainer", style: props.style },
|
|
9
|
-
React.createElement(rebass_1.Flex, { flexDirection: "column", flex: 1, style: { textAlign: 'center' } },
|
|
10
|
-
props.button,
|
|
11
|
-
props.title,
|
|
12
|
-
React.createElement(SizedContainer_1.default, { style: { minHeight: props.minHeight || '60vh' } }, ({ width, height }) => {
|
|
13
|
-
height = Math.round(height);
|
|
14
|
-
width = Math.round(width);
|
|
15
|
-
return React.cloneElement(props.chart, {
|
|
16
|
-
height: props.sizeAsString !== false ? `${height}px` : height,
|
|
17
|
-
width: props.sizeAsString !== false ? `${width}px` : width,
|
|
18
|
-
});
|
|
19
|
-
})),
|
|
20
|
-
props.settingsPanel));
|
|
21
|
-
exports.ChartContainer = ChartContainer;
|
|
22
|
-
exports.default = ChartContainer;
|