@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,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExportPopup = 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 EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
8
|
-
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
9
|
-
const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ExportRedux"));
|
|
10
|
-
const QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QueryRedux"));
|
|
11
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
12
|
-
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
13
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
14
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
15
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
16
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
17
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
18
|
-
const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
|
|
19
|
-
const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
|
|
20
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
21
|
-
const UIHelper_1 = require("../UIHelper");
|
|
22
|
-
const ReportEntityRow_1 = require("./ReportEntityRow");
|
|
23
|
-
const NewReportWizard_1 = require("./Wizard/NewReportWizard");
|
|
24
|
-
class ExportPopupComponent extends React.Component {
|
|
25
|
-
constructor(props) {
|
|
26
|
-
super(props);
|
|
27
|
-
this.shouldClosePopupOnFinishWizard = false;
|
|
28
|
-
this.onFinishWizard = (report) => {
|
|
29
|
-
var _a;
|
|
30
|
-
report = report !== null && report !== void 0 ? report : this.state.editedAdaptableObject;
|
|
31
|
-
report.Uuid = (_a = report.Uuid) !== null && _a !== void 0 ? _a : Uuid_1.createUuid();
|
|
32
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
33
|
-
this.props.onEditReport(report);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this.props.onAddReport(report);
|
|
37
|
-
}
|
|
38
|
-
this.resetState();
|
|
39
|
-
};
|
|
40
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
41
|
-
}
|
|
42
|
-
componentDidMount() {
|
|
43
|
-
if (this.props.popupParams) {
|
|
44
|
-
if (this.props.popupParams.action) {
|
|
45
|
-
if (this.props.popupParams.action == 'New') {
|
|
46
|
-
this.onNew();
|
|
47
|
-
}
|
|
48
|
-
if (this.props.popupParams.action == 'Edit') {
|
|
49
|
-
let selectedReport = this.props.Reports.find((a) => a.Name == this.props.CurrentReport);
|
|
50
|
-
this.onEdit(selectedReport);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
this.shouldClosePopupOnFinishWizard =
|
|
54
|
-
this.props.popupParams.source && this.props.popupParams.source == 'Toolbar';
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
let colItems = [
|
|
59
|
-
{ Content: 'Report', Size: 3 },
|
|
60
|
-
{ Content: 'Columns', Size: 3 },
|
|
61
|
-
{ Content: 'Query Details', Size: 3 },
|
|
62
|
-
{ Content: 'Export', Size: 1 },
|
|
63
|
-
{ Content: '', Size: 2 },
|
|
64
|
-
];
|
|
65
|
-
let allReports = this.props.api.exportApi
|
|
66
|
-
.getAvailableSystemReports()
|
|
67
|
-
.map((s) => {
|
|
68
|
-
return s;
|
|
69
|
-
})
|
|
70
|
-
.concat(this.props.Reports.map((r) => r.Name));
|
|
71
|
-
let Reports = allReports.map((x, index) => {
|
|
72
|
-
let report = this.props.api.exportApi.getReportByName(x);
|
|
73
|
-
let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(report, this.props.accessLevel);
|
|
74
|
-
return (React.createElement(ReportEntityRow_1.ReportEntityRow, { adaptableObject: report, key: report.Uuid, colItems: colItems, moduleInfo: this.props.moduleInfo, api: this.props.api, onShare: (description) => this.props.onShare(report, description), teamSharingActivated: this.props.teamSharingActivated, onExport: (exportDestination) => this.onApplyExport(report, exportDestination), onEdit: () => this.onEdit(report), onDeleteConfirm: ExportRedux.ReportDelete(report), accessLevel: accessLevel }));
|
|
75
|
-
});
|
|
76
|
-
let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.onNew(), tooltip: "Create Report", accessLevel: this.props.accessLevel, style: {
|
|
77
|
-
color: 'var(--ab-color-text-on-add)',
|
|
78
|
-
fill: 'var(--ab-color-text-on-add)',
|
|
79
|
-
background: 'var(--ab-color-action-add)',
|
|
80
|
-
} }));
|
|
81
|
-
return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, bodyProps: { padding: 0 }, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), button: newButton },
|
|
82
|
-
Reports.length > 0 ? (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: Reports, allowOverflow: true })) : (React.createElement(EmptyContent_1.default, null,
|
|
83
|
-
React.createElement("p", null, "Click 'New' to create a new Report. A Report is named group of columns and Unique values."))),
|
|
84
|
-
this.state.editedAdaptableObject && (React.createElement(NewReportWizard_1.NewReportWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.Reports, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
85
|
-
}
|
|
86
|
-
onCloseWizard() {
|
|
87
|
-
this.props.onClearPopupParams();
|
|
88
|
-
this.resetState();
|
|
89
|
-
if (this.shouldClosePopupOnFinishWizard) {
|
|
90
|
-
this.props.onClosePopup();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
resetState() {
|
|
94
|
-
this.setState({
|
|
95
|
-
editedAdaptableObject: null,
|
|
96
|
-
wizardStartIndex: 0,
|
|
97
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
98
|
-
newNamedQuery: GeneralConstants_1.EMPTY_STRING,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
onNew() {
|
|
102
|
-
const editedAdaptableObject = ObjectFactory_1.ObjectFactory.CreateEmptyReport();
|
|
103
|
-
// we want to do this here, as we need a way to differentiate in the wizard
|
|
104
|
-
// if it's a new or existing report
|
|
105
|
-
delete editedAdaptableObject.Uuid;
|
|
106
|
-
this.setState({
|
|
107
|
-
editedAdaptableObject,
|
|
108
|
-
wizardStartIndex: 0,
|
|
109
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
onEdit(ReportToEdit) {
|
|
113
|
-
let clonedReportToEdit = Helper_1.Helper.cloneObject(ReportToEdit);
|
|
114
|
-
this.setState({
|
|
115
|
-
editedAdaptableObject: clonedReportToEdit,
|
|
116
|
-
wizardStartIndex: 0,
|
|
117
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
onApplyExport(report, exportDestination) {
|
|
121
|
-
this.props.onApplyExport(report, exportDestination);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function mapStateToProps(state) {
|
|
125
|
-
return {
|
|
126
|
-
Reports: state.Export.Reports,
|
|
127
|
-
CurrentReport: state.Export.CurrentReport,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
function mapDispatchToProps(dispatch) {
|
|
131
|
-
return {
|
|
132
|
-
onApplyExport: (report, exportDestination) => dispatch(ExportRedux.ExportApply(report, exportDestination)),
|
|
133
|
-
onAddReport: (report) => dispatch(ExportRedux.ReportAdd(report)),
|
|
134
|
-
onEditReport: (report) => dispatch(ExportRedux.ReportEdit(report)),
|
|
135
|
-
onAddNamedQuery: (namedQuery) => dispatch(QueryRedux.NamedQueryAdd(namedQuery)),
|
|
136
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ExportModuleId, config)),
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
exports.ExportPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(ExportPopupComponent);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
|
|
3
|
-
import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
4
|
-
import { AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
5
|
-
export interface ReportEntityRowProps extends SharedEntityRowProps<ReportEntityRow> {
|
|
6
|
-
onExport: (exportDestination: ExportDestination | string, customDestinationData?: AdaptableFormData) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare class ReportEntityRow extends React.Component<ReportEntityRowProps> {
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportEntityRow = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const EntityListActionButtons_1 = require("../Components/Buttons/EntityListActionButtons");
|
|
7
|
-
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
8
|
-
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
9
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
10
|
-
const icons_1 = tslib_1.__importDefault(require("../../components/icons"));
|
|
11
|
-
const DropdownButton_1 = tslib_1.__importDefault(require("../../components/DropdownButton"));
|
|
12
|
-
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
13
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
14
|
-
const ExportIcon = icons_1.default.export;
|
|
15
|
-
class ReportEntityRow extends React.Component {
|
|
16
|
-
render() {
|
|
17
|
-
let report = this.props.adaptableObject;
|
|
18
|
-
const destinationItems = [
|
|
19
|
-
...this.props.api.exportApi.getAvailableExportDestinations().map((destination) => ({
|
|
20
|
-
label: destination,
|
|
21
|
-
onClick: () => this.props.onExport(destination),
|
|
22
|
-
})),
|
|
23
|
-
...this.props.api.exportApi.getAllCustomDestination().map((destination) => ({
|
|
24
|
-
label: destination.name,
|
|
25
|
-
onClick: () => {
|
|
26
|
-
this.props.onExport(destination.name);
|
|
27
|
-
},
|
|
28
|
-
})),
|
|
29
|
-
];
|
|
30
|
-
if ((report === null || report === void 0 ? void 0 : report.Name) === GeneralConstants_1.VISUAL_DATA_REPORT) {
|
|
31
|
-
destinationItems.forEach((item) => (item.disabled = item.label === Enums_1.ExportDestination.Excel ? false : true));
|
|
32
|
-
}
|
|
33
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
34
|
-
colItems[0].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: report.Name });
|
|
35
|
-
colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.internalApi
|
|
36
|
-
.getReportService()
|
|
37
|
-
.GetReportColumnScopeShortDescription(report) }));
|
|
38
|
-
colItems[2].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.internalApi
|
|
39
|
-
.getReportService()
|
|
40
|
-
.GetReportExpressionDescription(report, this.props.api.columnApi.getColumns()) }));
|
|
41
|
-
let exportButton = (React.createElement(DropdownButton_1.default, { tooltip: "Export Report", variant: "text", items: destinationItems },
|
|
42
|
-
React.createElement(ExportIcon, null)));
|
|
43
|
-
colItems[3].Content = exportButton;
|
|
44
|
-
let buttons = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { confirmDeleteAction: this.props.onDeleteConfirm, editClick: () => this.props.onEdit(report), overrideDisableEdit: report.ReportColumnScope == 'CustomColumns', showShare: this.props.teamSharingActivated, shareClick: (config) => this.props.onShare(config), entityType: "Report", accessLevel: this.props.accessLevel }));
|
|
45
|
-
colItems[4].Content = buttons;
|
|
46
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.ReportEntityRow = ReportEntityRow;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AdaptableObjectExpressionAdaptableWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
3
|
-
export interface ReportWizardProps extends AdaptableObjectExpressionAdaptableWizardProps<ReportWizard> {
|
|
4
|
-
}
|
|
5
|
-
export declare class ReportWizard extends React.Component<ReportWizardProps, {}> {
|
|
6
|
-
render(): JSX.Element;
|
|
7
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportWizard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const AdaptableWizard_1 = require("../../Wizard/AdaptableWizard");
|
|
7
|
-
const ReportScopeWizard_1 = require("./ReportScopeWizard");
|
|
8
|
-
const ReportColumnTypeWizard_1 = require("./ReportColumnTypeWizard");
|
|
9
|
-
const ReportSummaryWizard_1 = require("./ReportSummaryWizard");
|
|
10
|
-
const ReportRowTypeWizard_1 = require("./ReportRowTypeWizard");
|
|
11
|
-
const ExpressionWizard_1 = require("../../Components/ExpressionWizard");
|
|
12
|
-
const ReportSettingsWizard_1 = require("./ReportSettingsWizard");
|
|
13
|
-
class ReportWizard extends React.Component {
|
|
14
|
-
render() {
|
|
15
|
-
return (React.createElement("div", null,
|
|
16
|
-
React.createElement(AdaptableWizard_1.AdaptableWizard, { moduleInfo: this.props.moduleInfo, modalContainer: this.props.modalContainer, api: this.props.api, steps: [
|
|
17
|
-
{
|
|
18
|
-
StepName: 'Columns',
|
|
19
|
-
Index: 0,
|
|
20
|
-
Element: (React.createElement(ReportColumnTypeWizard_1.ReportColumnTypeWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
StepName: 'Columns',
|
|
24
|
-
Index: 1,
|
|
25
|
-
Element: (React.createElement(ReportScopeWizard_1.ReportScopeWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
StepName: 'Rows',
|
|
29
|
-
Index: 2,
|
|
30
|
-
Element: (React.createElement(ReportRowTypeWizard_1.ReportRowTypeWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
StepName: 'Rows',
|
|
34
|
-
Index: 3,
|
|
35
|
-
Element: (React.createElement(ExpressionWizard_1.ExpressionWizard, { api: this.props.api, onSetNewNamedQuery: this.props.onSetNewNamedQuery, moduleInfo: this.props.moduleInfo, callingModule: 'Export' })),
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
StepName: 'Settings',
|
|
39
|
-
Index: 4,
|
|
40
|
-
Element: (React.createElement(ReportSettingsWizard_1.ReportSettingsWizard, { Reports: this.props.configEntities, api: this.props.api, moduleInfo: this.props.moduleInfo })),
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
StepName: 'Summary',
|
|
44
|
-
Index: 5,
|
|
45
|
-
Element: (React.createElement(ReportSummaryWizard_1.ReportSummaryWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
|
|
46
|
-
},
|
|
47
|
-
], data: this.props.editedAdaptableObject, stepStartIndex: this.props.wizardStartIndex, onHide: () => this.props.onCloseWizard(), onFinish: () => this.props.onFinishWizard(), canFinishWizard: () => this.props.canFinishWizard() })));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.ReportWizard = ReportWizard;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
import { ColumnFilter } from '../../PredefinedConfig/FilterState';
|
|
4
|
-
import { AccessLevel } from '../../PredefinedConfig/Common/Entitlement';
|
|
5
|
-
export interface FilterEntityRowProps<FilterEntityRow> extends SharedEntityRowProps<FilterEntityRow> {
|
|
6
|
-
onClear: (columnFilter: ColumnFilter) => void;
|
|
7
|
-
columnFilter: ColumnFilter;
|
|
8
|
-
accessLevel: AccessLevel;
|
|
9
|
-
}
|
|
10
|
-
export declare class FilterEntityRow extends React.Component<FilterEntityRowProps<FilterEntityRow>, {}> {
|
|
11
|
-
render(): any;
|
|
12
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterEntityRow = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
7
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
8
|
-
const EntityListActionButtons_1 = require("../Components/Buttons/EntityListActionButtons");
|
|
9
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
10
|
-
class FilterEntityRow extends React.Component {
|
|
11
|
-
render() {
|
|
12
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
13
|
-
colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.columnApi.getFriendlyNameFromColumnId(this.props.columnFilter.ColumnId) }));
|
|
14
|
-
colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.filterApi.columnFilterToString(this.props.columnFilter) }));
|
|
15
|
-
colItems[2].Content = (React.createElement(React.Fragment, null,
|
|
16
|
-
React.createElement(EntityListActionButtons_1.EntityListActionButtons, { confirmDeleteAction: this.props.onDeleteConfirm, overrideDisableDelete: this.props.columnFilter == null, showShare: this.props.teamSharingActivated, overrideDisableEdit: true, shareClick: (config) => this.props.onShare(config), entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel })));
|
|
17
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems, key: this.props.columnFilter.Uuid });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.FilterEntityRow = FilterEntityRow;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
3
|
-
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
4
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
5
|
-
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
6
|
-
import { ColumnFilter } from '../../PredefinedConfig/FilterState';
|
|
7
|
-
import { UIPrompt } from '../../Utilities/Interface/MessagePopups';
|
|
8
|
-
import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
|
|
9
|
-
interface FilterPopupProps extends ModuleViewPopupProps<FilterPopupComponent> {
|
|
10
|
-
ColumnFilters: ColumnFilter[];
|
|
11
|
-
onShowPrompt: (prompt: UIPrompt) => PopupRedux.PopupShowPromptAction;
|
|
12
|
-
onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
13
|
-
}
|
|
14
|
-
declare class FilterPopupComponent extends React.Component<FilterPopupProps, {}> {
|
|
15
|
-
constructor(props: FilterPopupProps);
|
|
16
|
-
render(): JSX.Element;
|
|
17
|
-
private onClearColumnFilter;
|
|
18
|
-
}
|
|
19
|
-
export declare let FilterPopup: import("react-redux").ConnectedComponent<typeof FilterPopupComponent, any>;
|
|
20
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterPopup = 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 FilterRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FilterRedux"));
|
|
8
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
9
|
-
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
10
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
11
|
-
const FilterEntityRow_1 = require("./FilterEntityRow");
|
|
12
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
13
|
-
const PanelWithImage_1 = require("../Components/Panels/PanelWithImage");
|
|
14
|
-
const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
15
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
16
|
-
class FilterPopupComponent extends React.Component {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
super(props);
|
|
19
|
-
this.state = { wizardStartIndex: 0 };
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
let colItems = [
|
|
23
|
-
{ Content: 'Column', Size: 3 },
|
|
24
|
-
{ Content: 'Filter', Size: 7 },
|
|
25
|
-
{ Content: '', Size: 2 },
|
|
26
|
-
];
|
|
27
|
-
let columnFilterItems = this.props.ColumnFilters.map((columnFilter, index) => {
|
|
28
|
-
let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(columnFilter, this.props.accessLevel);
|
|
29
|
-
return (React.createElement(FilterEntityRow_1.FilterEntityRow, { key: index, colItems: colItems, api: this.props.api, moduleInfo: this.props.moduleInfo, adaptableObject: null, columnFilter: columnFilter, onEdit: null, onDeleteConfirm: FilterRedux.ColumnFilterClear(columnFilter), onClear: () => this.onClearColumnFilter(columnFilter.ColumnId), onShare: (config) => this.props.onShare(columnFilter, config), teamSharingActivated: this.props.teamSharingActivated, accessLevel: accessLevel }));
|
|
30
|
-
});
|
|
31
|
-
return (React.createElement(PanelWithImage_1.PanelWithImage, { header: this.props.moduleInfo.FriendlyName, variant: "primary", infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), glyphicon: this.props.moduleInfo.Glyph, style: { flex: 1 } }, columnFilterItems.length > 0 ? (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: columnFilterItems })) : (React.createElement(EmptyContent_1.default, null,
|
|
32
|
-
React.createElement("p", null, "There are currently no column filters applied."),
|
|
33
|
-
React.createElement("p", null, "Create column filters by using the filter dropdown in each column header.")))));
|
|
34
|
-
}
|
|
35
|
-
onClearColumnFilter(columnId) {
|
|
36
|
-
this.props.api.filterApi.clearColumnFilterByColumn(columnId);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function mapStateToProps(state, ownProps) {
|
|
40
|
-
return {
|
|
41
|
-
ColumnFilters: state.Filter.ColumnFilters,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function mapDispatchToProps(dispatch) {
|
|
45
|
-
return {
|
|
46
|
-
onShowPrompt: (prompt) => dispatch(PopupRedux.PopupShowPrompt(prompt)),
|
|
47
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.FilterModuleId, config)),
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
exports.FilterPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(FilterPopupComponent);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
export declare class FormatColumnEntityRow extends React.Component<SharedEntityRowProps<FormatColumnEntityRow>, {}> {
|
|
4
|
-
render(): any;
|
|
5
|
-
private getStyleDescription;
|
|
6
|
-
private getRanges;
|
|
7
|
-
private getColumnComparison;
|
|
8
|
-
private showFormatExample;
|
|
9
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnEntityRow = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
/// <reference path="../../typings/.d.ts" />
|
|
7
|
-
const EntityListActionButtons_1 = require("../Components/Buttons/EntityListActionButtons");
|
|
8
|
-
const StyleVisualItem_1 = require("../Components/StyleVisualItem");
|
|
9
|
-
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
10
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
11
|
-
const UIHelper_1 = require("../UIHelper");
|
|
12
|
-
const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/FormatHelper"));
|
|
13
|
-
const rebass_1 = require("rebass");
|
|
14
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
15
|
-
class FormatColumnEntityRow extends React.Component {
|
|
16
|
-
render() {
|
|
17
|
-
let formatColumn = this.props.adaptableObject;
|
|
18
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
19
|
-
colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.scopeApi.getScopeDescription(formatColumn.Scope) }));
|
|
20
|
-
colItems[1].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.getStyleDescription(formatColumn) });
|
|
21
|
-
colItems[2].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.showFormatExample(formatColumn) });
|
|
22
|
-
colItems[3].Content = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { showSuspend: true, suspendableObject: formatColumn, editClick: () => this.props.onEdit(formatColumn), showShare: this.props.teamSharingActivated, shareClick: (config) => this.props.onShare(config), confirmDeleteAction: this.props.onDeleteConfirm, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
|
|
23
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { isSuspended: formatColumn.IsSuspended, colItems: colItems });
|
|
24
|
-
}
|
|
25
|
-
getStyleDescription(formatColumn) {
|
|
26
|
-
if (formatColumn.ColumnStyle) {
|
|
27
|
-
if (formatColumn.ColumnStyle.GradientStyle) {
|
|
28
|
-
if (formatColumn.ColumnStyle.GradientStyle.CellRanges) {
|
|
29
|
-
return this.getRanges(formatColumn.ColumnStyle.GradientStyle.CellRanges);
|
|
30
|
-
}
|
|
31
|
-
if (formatColumn.ColumnStyle.GradientStyle.ColumnComparison) {
|
|
32
|
-
return this.getColumnComparison(formatColumn.ColumnStyle.GradientStyle.ColumnComparison);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (formatColumn.ColumnStyle.PercentBarStyle) {
|
|
36
|
-
if (formatColumn.ColumnStyle.PercentBarStyle.CellRanges) {
|
|
37
|
-
return this.getRanges(formatColumn.ColumnStyle.PercentBarStyle.CellRanges);
|
|
38
|
-
}
|
|
39
|
-
if (formatColumn.ColumnStyle.PercentBarStyle.ColumnComparison) {
|
|
40
|
-
return this.getColumnComparison(formatColumn.ColumnStyle.PercentBarStyle.ColumnComparison);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
else if (formatColumn.ColumnStyle.CheckBoxStyle) {
|
|
44
|
-
return 'CheckBox Column';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (formatColumn.Style == null || UIHelper_1.UIHelper.IsEmptyStyle(formatColumn.Style)) {
|
|
48
|
-
return '[None]';
|
|
49
|
-
}
|
|
50
|
-
return React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: formatColumn.Style });
|
|
51
|
-
}
|
|
52
|
-
getRanges(ranges) {
|
|
53
|
-
return ranges.map((r, i) => (React.createElement(rebass_1.Flex, { key: i, alignItems: "center", mr: 3 },
|
|
54
|
-
React.createElement(rebass_1.Box, { mr: 1 },
|
|
55
|
-
r.Min,
|
|
56
|
-
" to ",
|
|
57
|
-
r.Max,
|
|
58
|
-
' '),
|
|
59
|
-
React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: {
|
|
60
|
-
BackColor: r.Color,
|
|
61
|
-
ForeColor: r.Color,
|
|
62
|
-
} }))));
|
|
63
|
-
}
|
|
64
|
-
getColumnComparison(columnComparison) {
|
|
65
|
-
return (React.createElement(rebass_1.Flex, { key: 'cc', alignItems: "center", mr: 3 },
|
|
66
|
-
React.createElement(rebass_1.Box, { mr: 1 },
|
|
67
|
-
"Min Value:",
|
|
68
|
-
' ',
|
|
69
|
-
isNaN(Number(columnComparison.MinValue))
|
|
70
|
-
? '[' +
|
|
71
|
-
this.props.api.columnApi.getFriendlyNameFromColumnId(String(columnComparison.MinValue)) +
|
|
72
|
-
']'
|
|
73
|
-
: columnComparison.MinValue,
|
|
74
|
-
' ',
|
|
75
|
-
", Max Value:",
|
|
76
|
-
' ',
|
|
77
|
-
isNaN(Number(columnComparison.MaxValue))
|
|
78
|
-
? '[' +
|
|
79
|
-
this.props.api.columnApi.getFriendlyNameFromColumnId(String(columnComparison.MaxValue)) +
|
|
80
|
-
']'
|
|
81
|
-
: columnComparison.MaxValue,
|
|
82
|
-
' '),
|
|
83
|
-
React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: {
|
|
84
|
-
BackColor: columnComparison.Color,
|
|
85
|
-
ForeColor: columnComparison.Color,
|
|
86
|
-
} })));
|
|
87
|
-
}
|
|
88
|
-
showFormatExample(formatColumn) {
|
|
89
|
-
if (!formatColumn.DisplayFormat) {
|
|
90
|
-
return undefined;
|
|
91
|
-
}
|
|
92
|
-
if (formatColumn.DisplayFormat.Formatter === 'DateFormatter') {
|
|
93
|
-
return FormatHelper_1.default.DateFormatter(new Date(), formatColumn.DisplayFormat.Options);
|
|
94
|
-
}
|
|
95
|
-
if (formatColumn.DisplayFormat.Formatter === 'NumberFormatter') {
|
|
96
|
-
return FormatHelper_1.default.NumberFormatter(12345.6789, formatColumn.DisplayFormat.Options);
|
|
97
|
-
}
|
|
98
|
-
if (formatColumn.DisplayFormat.Formatter === 'StringFormatter') {
|
|
99
|
-
return FormatHelper_1.default.StringFormatter('Hello World', formatColumn.DisplayFormat.Options);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.FormatColumnEntityRow = FormatColumnEntityRow;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as FormatColumnRedux from '../../Redux/ActionsReducers/FormatColumnRedux';
|
|
3
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
4
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
5
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
6
|
-
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
7
|
-
import { FormatColumn } from '../../PredefinedConfig/FormatColumnState';
|
|
8
|
-
import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
|
|
9
|
-
interface FormatColumnPopupProps extends ModuleViewPopupProps<FormatColumnPopupComponent> {
|
|
10
|
-
FormatColumns: Array<FormatColumn>;
|
|
11
|
-
onAddFormatColumn: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnAddAction;
|
|
12
|
-
onEditFormatColumn: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnEditAction;
|
|
13
|
-
onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
14
|
-
}
|
|
15
|
-
declare class FormatColumnPopupComponent extends React.Component<FormatColumnPopupProps, EditableConfigEntityState> {
|
|
16
|
-
constructor(props: FormatColumnPopupProps);
|
|
17
|
-
shouldClosePopupOnFinishWizard: boolean;
|
|
18
|
-
componentDidMount(): void;
|
|
19
|
-
render(): JSX.Element;
|
|
20
|
-
onNew(): void;
|
|
21
|
-
onNewFromColumn(formatColumn: FormatColumn): void;
|
|
22
|
-
onEdit(formatColumn: FormatColumn): void;
|
|
23
|
-
onCloseWizard: () => void;
|
|
24
|
-
onFinishWizard: (formatColumn: FormatColumn) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare let FormatColumnPopup: import("react-redux").ConnectedComponent<typeof FormatColumnPopupComponent, any>;
|
|
27
|
-
export {};
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnPopup = 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 FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
8
|
-
const FormatColumnEntityRow_1 = require("./FormatColumnEntityRow");
|
|
9
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
10
|
-
const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
|
|
11
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
12
|
-
const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
|
|
13
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
14
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
15
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
16
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
17
|
-
const rebass_1 = require("rebass");
|
|
18
|
-
const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
19
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
20
|
-
const FormatColumnWizard_1 = require("./Wizard/FormatColumnWizard");
|
|
21
|
-
class FormatColumnPopupComponent extends React.Component {
|
|
22
|
-
constructor(props) {
|
|
23
|
-
super(props);
|
|
24
|
-
this.shouldClosePopupOnFinishWizard = false;
|
|
25
|
-
this.onCloseWizard = () => {
|
|
26
|
-
this.props.onClearPopupParams();
|
|
27
|
-
this.setState({
|
|
28
|
-
editedAdaptableObject: null,
|
|
29
|
-
wizardStartIndex: 0,
|
|
30
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
31
|
-
});
|
|
32
|
-
if (this.shouldClosePopupOnFinishWizard) {
|
|
33
|
-
this.props.onClosePopup();
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
this.onFinishWizard = (formatColumn) => {
|
|
37
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
38
|
-
this.props.onEditFormatColumn(formatColumn);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.props.onAddFormatColumn(formatColumn);
|
|
42
|
-
}
|
|
43
|
-
this.setState({ editedAdaptableObject: null, wizardStartIndex: 0 });
|
|
44
|
-
};
|
|
45
|
-
this.state = {
|
|
46
|
-
editedAdaptableObject: null,
|
|
47
|
-
wizardStartIndex: 0,
|
|
48
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
componentDidMount() {
|
|
52
|
-
if (this.props.popupParams) {
|
|
53
|
-
if (this.props.popupParams.action && this.props.popupParams.column) {
|
|
54
|
-
let column = this.props.popupParams.column;
|
|
55
|
-
if (this.props.popupParams.action == 'New') {
|
|
56
|
-
let newFormatColumn = ObjectFactory_1.ObjectFactory.CreateEmptyFormatColumn();
|
|
57
|
-
newFormatColumn.Scope = {
|
|
58
|
-
ColumnIds: [column.columnId],
|
|
59
|
-
};
|
|
60
|
-
this.onNewFromColumn(newFormatColumn);
|
|
61
|
-
}
|
|
62
|
-
if (this.props.popupParams.action == 'Edit') {
|
|
63
|
-
// have to hope we get the most suitable / current one
|
|
64
|
-
let editFormatColumn = this.props.popupParams.value;
|
|
65
|
-
if (editFormatColumn) {
|
|
66
|
-
this.onEdit(editFormatColumn);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
this.shouldClosePopupOnFinishWizard =
|
|
71
|
-
this.props.popupParams.source && this.props.popupParams.source == 'ColumnMenu';
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
render() {
|
|
75
|
-
let colItems = [
|
|
76
|
-
{ Content: 'Column', Size: 3 },
|
|
77
|
-
{ Content: 'Style', Size: 4 },
|
|
78
|
-
{ Content: 'Format', Size: 3 },
|
|
79
|
-
{ Content: '', Size: 2 },
|
|
80
|
-
];
|
|
81
|
-
let formatColumns = this.props.FormatColumns.map((formatColumn, index) => {
|
|
82
|
-
let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(formatColumn, this.props.accessLevel);
|
|
83
|
-
return (React.createElement(FormatColumnEntityRow_1.FormatColumnEntityRow, { key: formatColumn.Uuid, colItems: colItems, moduleInfo: this.props.moduleInfo, api: this.props.api, adaptableObject: formatColumn, onEdit: () => this.onEdit(formatColumn), onShare: (config) => this.props.onShare(formatColumn, config), teamSharingActivated: this.props.teamSharingActivated, onDeleteConfirm: FormatColumnRedux.FormatColumnDelete(formatColumn), accessLevel: accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
|
|
84
|
-
});
|
|
85
|
-
let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.onNew(), tooltip: "Create Format Column", accessLevel: this.props.accessLevel, style: {
|
|
86
|
-
color: 'var(--ab-color-text-on-add)',
|
|
87
|
-
fill: 'var(--ab-color-text-on-add)',
|
|
88
|
-
background: 'var(--ab-color-action-add)',
|
|
89
|
-
} }));
|
|
90
|
-
return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
|
|
91
|
-
React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, button: newButton, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), bodyProps: { padding: 0 } },
|
|
92
|
-
this.props.FormatColumns.length == 0 ? (React.createElement(EmptyContent_1.default, null, "Click 'New' to create a new column format.")) : (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: formatColumns })),
|
|
93
|
-
this.state.editedAdaptableObject != null && (React.createElement(FormatColumnWizard_1.FormatColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FormatColumns, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard })))));
|
|
94
|
-
}
|
|
95
|
-
onNew() {
|
|
96
|
-
this.setState({
|
|
97
|
-
editedAdaptableObject: ObjectFactory_1.ObjectFactory.CreateEmptyFormatColumn(),
|
|
98
|
-
wizardStartIndex: 0,
|
|
99
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
onNewFromColumn(formatColumn) {
|
|
103
|
-
let clonedObject = Helper_1.Helper.cloneObject(formatColumn);
|
|
104
|
-
this.setState({
|
|
105
|
-
editedAdaptableObject: clonedObject,
|
|
106
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
107
|
-
wizardStartIndex: 1,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
onEdit(formatColumn) {
|
|
111
|
-
let clonedObject = Helper_1.Helper.cloneObject(formatColumn);
|
|
112
|
-
this.setState({
|
|
113
|
-
editedAdaptableObject: clonedObject,
|
|
114
|
-
wizardStartIndex: 1,
|
|
115
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
function mapStateToProps(state, ownProps) {
|
|
120
|
-
return {
|
|
121
|
-
FormatColumns: state.FormatColumn.FormatColumns,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function mapDispatchToProps(dispatch) {
|
|
125
|
-
return {
|
|
126
|
-
onAddFormatColumn: (formatColumn) => dispatch(FormatColumnRedux.FormatColumnAdd(formatColumn)),
|
|
127
|
-
onEditFormatColumn: (formatColumn) => dispatch(FormatColumnRedux.FormatColumnEdit(formatColumn)),
|
|
128
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.FormatColumnModuleId, config)),
|
|
129
|
-
onSuspend: (entity) => dispatch(FormatColumnRedux.FormatColumnSuspend(entity)),
|
|
130
|
-
onUnSuspend: (entity) => dispatch(FormatColumnRedux.FormatColumnUnSuspend(entity)),
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
exports.FormatColumnPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(FormatColumnPopupComponent);
|