@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
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlashingAlertSettingsWizardSection = exports.renderFlashingAlertSettingsSummary = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const rebass_1 = require("rebass");
|
|
8
|
+
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
9
|
+
const usePrevious_1 = tslib_1.__importDefault(require("../../../components/utils/usePrevious"));
|
|
10
|
+
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
11
|
+
const Tabs_1 = require("../../../components/Tabs");
|
|
12
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
13
|
+
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
14
|
+
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
15
|
+
exports.renderFlashingAlertSettingsSummary = (flashingAlert) => {
|
|
16
|
+
return (React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement(rebass_1.Text, { fontSize: 2 }, flashingAlert.FlashDuration === 'always' ? (React.createElement(React.Fragment, null, "Flashing is never removed")) : (React.createElement(React.Fragment, null,
|
|
18
|
+
"Flashing is removed after ",
|
|
19
|
+
React.createElement(CodeBlock_1.CodeBlock, null, flashingAlert.FlashDuration),
|
|
20
|
+
' ',
|
|
21
|
+
"milliseconds")))));
|
|
22
|
+
};
|
|
23
|
+
exports.FlashingAlertSettingsWizardSection = (props) => {
|
|
24
|
+
var _a;
|
|
25
|
+
let { data: flashingCell } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
26
|
+
flashingCell = flashingCell !== null && flashingCell !== void 0 ? flashingCell : props.flashingCell;
|
|
27
|
+
const setDuration = (FlashDuration) => {
|
|
28
|
+
props.onChange(Object.assign(Object.assign({}, flashingCell), { FlashDuration: FlashDuration }));
|
|
29
|
+
};
|
|
30
|
+
const duration = (_a = flashingCell.FlashDuration) !== null && _a !== void 0 ? _a : 500;
|
|
31
|
+
const numberDuration = React.useRef(typeof duration === 'number' ? duration : 500);
|
|
32
|
+
const inputRef = react_1.useRef(null);
|
|
33
|
+
const oldDuration = usePrevious_1.default(duration, duration);
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
var _a;
|
|
36
|
+
if (oldDuration === 'always' && duration != oldDuration) {
|
|
37
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
38
|
+
}
|
|
39
|
+
}, [duration, oldDuration]);
|
|
40
|
+
const handleTypeChange = (type) => {
|
|
41
|
+
setDuration(type === 'number' ? numberDuration.current : 'always');
|
|
42
|
+
};
|
|
43
|
+
const handleTargetChange = (type) => {
|
|
44
|
+
props.onChange(Object.assign(Object.assign({}, flashingCell), { FlashTarget: type }));
|
|
45
|
+
};
|
|
46
|
+
return (React.createElement(rebass_1.Flex, { height: "100%", flexDirection: "column", "data-name": "plus-minus-column-settings" },
|
|
47
|
+
React.createElement(Tabs_1.Tabs, { autoFocus: false, padding: 2 },
|
|
48
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Flashing Cell Settings"),
|
|
49
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
50
|
+
React.createElement(FormLayout_1.default, null,
|
|
51
|
+
React.createElement(FormLayout_1.FormRow, { label: "Duration Type" },
|
|
52
|
+
React.createElement(Radio_1.default, { mr: 3, checked: duration == 'always', tabIndex: -1, onChange: () => handleTypeChange('always') }, "Always"),
|
|
53
|
+
React.createElement(Radio_1.default, { checked: duration !== 'always', tabIndex: -1, onChange: () => handleTypeChange('number') }, "Limited (ms)")),
|
|
54
|
+
React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
55
|
+
duration !== 'always' && (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "baseline" },
|
|
56
|
+
React.createElement(rebass_1.Text, { fontSize: 2, mr: 2 }, "After"),
|
|
57
|
+
React.createElement(Input_1.default, { readOnly: props.readOnly, type: "text", name: "value", ref: inputRef, mt: 2, mr: 1, value: duration, onChange: (event) => {
|
|
58
|
+
const value = event.target.value;
|
|
59
|
+
setDuration(isNaN(Number(value)) ? 500 : Number(value));
|
|
60
|
+
} }),
|
|
61
|
+
React.createElement(rebass_1.Text, { fontSize: 2 }, "milliseconds"))),
|
|
62
|
+
duration === 'always' && (React.createElement(rebass_1.Text, { height: 43, fontSize: 3 }, "Persists the flashing style indeterminately - can be removed manually"))),
|
|
63
|
+
React.createElement(FormLayout_1.FormRow, { label: "Flash Target" },
|
|
64
|
+
React.createElement(Radio_1.default, { onChange: () => handleTargetChange('cell'), mr: 3, checked: (flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) == 'cell', tabIndex: -1 }, "Cell"),
|
|
65
|
+
React.createElement(Radio_1.default, { onChange: () => handleTargetChange('row'), checked: (flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) == 'row', tabIndex: -1 }, "Row")))))));
|
|
66
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxProps } from 'rebass';
|
|
3
|
+
import { AdaptableStyle } from '../../../types';
|
|
4
|
+
import { FlashingCellDefinition } from '../../../../types';
|
|
5
|
+
declare type FlashingAlertStyleWizardSectionProps = {
|
|
6
|
+
flashingAlert?: FlashingCellDefinition;
|
|
7
|
+
onStyleChange: (styleName: 'UpChangeStyle' | 'DownChangeStyle' | 'NeutralChangeStyle', style: AdaptableStyle) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const FlashingAlertStyleWizardSection: (props: FlashingAlertStyleWizardSectionProps) => JSX.Element;
|
|
10
|
+
export interface FlashingCellStyleProps extends Omit<BoxProps, 'data'> {
|
|
11
|
+
data: FlashingCellDefinition;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlashingCellStyle: React.FunctionComponent<FlashingCellStyleProps>;
|
|
14
|
+
export declare const renderFlashingAlertStyleSummary: (flashingAlert: FlashingCellDefinition) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.renderFlashingAlertStyleSummary = exports.FlashingAlertStyleWizardSection = void 0;
|
|
3
|
+
exports.renderFlashingAlertStyleSummary = exports.FlashingCellStyle = exports.FlashingAlertStyleWizardSection = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
|
-
const OnePageAdaptableWizard_1 = require("
|
|
8
|
-
const Tabs_1 = require("
|
|
9
|
-
const StyleComponent_1 = require("
|
|
10
|
-
const
|
|
11
|
-
const toStyle = (style) => {
|
|
12
|
-
return Object.assign(Object.assign({}, StyleHelper_1.convertAdaptableStyleToCSS(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
13
|
-
};
|
|
7
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
|
+
const Tabs_1 = require("../../../components/Tabs");
|
|
9
|
+
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
10
|
+
const StylePreview_1 = require("../../../components/StylePreview");
|
|
14
11
|
const changeStyle = (React.createElement(rebass_1.Text, { fontSize: 2, style: { display: 'inline-block' } }, "Change style"));
|
|
15
12
|
exports.FlashingAlertStyleWizardSection = (props) => {
|
|
16
13
|
var _a, _b, _c;
|
|
@@ -34,15 +31,19 @@ exports.FlashingAlertStyleWizardSection = (props) => {
|
|
|
34
31
|
React.createElement(Tabs_1.Tabs.Content, { value: "neutral" },
|
|
35
32
|
React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: (_c = flashingAlert.NeutralChangeStyle) !== null && _c !== void 0 ? _c : {}, UpdateStyle: (style) => props.onStyleChange('NeutralChangeStyle', style) })))));
|
|
36
33
|
};
|
|
37
|
-
exports.
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
exports.FlashingCellStyle = (props) => {
|
|
35
|
+
const { data } = props, boxProps = tslib_1.__rest(props, ["data"]);
|
|
36
|
+
return (React.createElement(rebass_1.Box, Object.assign({}, boxProps),
|
|
37
|
+
React.createElement(StylePreview_1.StylePreview, { styleObject: props.data.UpChangeStyle },
|
|
40
38
|
"Up change style ",
|
|
41
|
-
!
|
|
42
|
-
React.createElement(
|
|
39
|
+
!props.data.UpChangeStyle ? ' - no style' : ''),
|
|
40
|
+
React.createElement(StylePreview_1.StylePreview, { mt: 2, styleObject: props.data.DownChangeStyle },
|
|
43
41
|
"Down change style ",
|
|
44
|
-
!
|
|
45
|
-
React.createElement(
|
|
42
|
+
!props.data.DownChangeStyle ? ' - no style' : ''),
|
|
43
|
+
React.createElement(StylePreview_1.StylePreview, { mt: 2, styleObject: props.data.NeutralChangeStyle },
|
|
46
44
|
"Neutral change style ",
|
|
47
|
-
!
|
|
45
|
+
!props.data.NeutralChangeStyle ? ' - no style' : '')));
|
|
46
|
+
};
|
|
47
|
+
exports.renderFlashingAlertStyleSummary = (flashingAlert) => {
|
|
48
|
+
return React.createElement(exports.FlashingCellStyle, { data: flashingAlert });
|
|
48
49
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AdaptableOnePageWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
3
|
+
import { FlashingCellDefinition } from '../../../types';
|
|
4
|
+
export interface FlashingCellWizardProps extends AdaptableOnePageWizardProps<FlashingCellDefinition> {
|
|
5
|
+
}
|
|
6
|
+
export declare const FlashingCellWizard: (props: FlashingCellWizardProps) => JSX.Element;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlashingCellWizard = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const rebass_1 = require("rebass");
|
|
8
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
|
+
const FlashingCellSettingsWizardSection_1 = require("./FlashingCellSettingsWizardSection");
|
|
10
|
+
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
11
|
+
const FlashingCellRulesWizardSection_1 = require("./FlashingCellRulesWizardSection");
|
|
12
|
+
const FlashingCellStyleWizardSection_1 = require("./FlashingCellStyleWizardSection");
|
|
13
|
+
const FlashingCellScopeWizardSection_1 = require("./FlashingCellScopeWizardSection");
|
|
14
|
+
const BaseAlertScopeWizardSection_1 = require("../../Alert/Wizard/BaseAlertScopeWizardSection");
|
|
15
|
+
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
16
|
+
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
17
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
18
|
+
const react_redux_1 = require("react-redux");
|
|
19
|
+
const isValidFlashingCellRules_1 = require("./isValidFlashingCellRules");
|
|
20
|
+
const FlashingCellRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
21
|
+
exports.FlashingCellWizard = (props) => {
|
|
22
|
+
const { api } = AdaptableContext_1.useAdaptable();
|
|
23
|
+
const [flashingCell, setFlashingCell] = react_1.useState(() => {
|
|
24
|
+
let flashingCell = props.data
|
|
25
|
+
? Helper_1.cloneObject(props.data)
|
|
26
|
+
: ObjectFactory_1.default.CreateEmptyFlashingCellDefinition();
|
|
27
|
+
flashingCell = api.flashingCellApi.mergeFlashingCellDefinitionWithDefaults(flashingCell);
|
|
28
|
+
if (!flashingCell.Rule.BooleanExpression && !flashingCell.Rule.Predicate) {
|
|
29
|
+
flashingCell.Rule.BooleanExpression = '';
|
|
30
|
+
}
|
|
31
|
+
return flashingCell;
|
|
32
|
+
});
|
|
33
|
+
const updateProperty = (propName) => {
|
|
34
|
+
return (value) => {
|
|
35
|
+
setFlashingCell((flashingCell) => {
|
|
36
|
+
flashingCell = Object.assign(Object.assign({}, flashingCell), { [propName]: value });
|
|
37
|
+
return flashingCell;
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const updateStyles = {
|
|
42
|
+
DownChangeStyle: react_1.useCallback(updateProperty('DownChangeStyle'), []),
|
|
43
|
+
UpChangeStyle: react_1.useCallback(updateProperty('UpChangeStyle'), []),
|
|
44
|
+
NeutralChangeStyle: react_1.useCallback(updateProperty('NeutralChangeStyle'), []),
|
|
45
|
+
};
|
|
46
|
+
const flashStyleComponent = (React.createElement(FlashingCellStyleWizardSection_1.FlashingAlertStyleWizardSection, { onStyleChange: (styleName, style) => {
|
|
47
|
+
updateStyles[styleName](style);
|
|
48
|
+
} }));
|
|
49
|
+
const dispatch = react_redux_1.useDispatch();
|
|
50
|
+
const handleFinish = () => {
|
|
51
|
+
if (props.data) {
|
|
52
|
+
dispatch(FlashingCellRedux.FlashingCellDefinitionEdit(flashingCell));
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
dispatch(FlashingCellRedux.FlashingCellDefinitionAdd(flashingCell));
|
|
56
|
+
}
|
|
57
|
+
props.onFinishWizard(flashingCell);
|
|
58
|
+
};
|
|
59
|
+
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: flashingCell, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
60
|
+
{
|
|
61
|
+
details: 'Specify which data changes should trigger Cell Flashing',
|
|
62
|
+
isValid: NewScopeComponent_1.isScopeValid,
|
|
63
|
+
render: () => React.createElement(FlashingCellScopeWizardSection_1.FlashingAlertScopeWizardSection, { onChange: setFlashingCell }),
|
|
64
|
+
renderSummary: BaseAlertScopeWizardSection_1.renderBaseAlertScopeSummary,
|
|
65
|
+
title: 'Scope',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
details: 'Build the rules for when Cells should Flash',
|
|
69
|
+
isValid: isValidFlashingCellRules_1.isValidFlashingCellRules,
|
|
70
|
+
render: () => React.createElement(FlashingCellRulesWizardSection_1.FlashingAlertRulesWizardSection, { onChange: setFlashingCell }),
|
|
71
|
+
renderSummary: FlashingCellRulesWizardSection_1.renderFlashingAlertRulesSummary,
|
|
72
|
+
title: 'Condition',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
details: 'Select the Duration of the Flash',
|
|
76
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
77
|
+
React.createElement(FlashingCellSettingsWizardSection_1.FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
|
|
78
|
+
renderSummary: FlashingCellSettingsWizardSection_1.renderFlashingAlertSettingsSummary,
|
|
79
|
+
title: 'Settings',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
details: 'Choose the Flashing Styles',
|
|
83
|
+
render: () => React.createElement(rebass_1.Box, { padding: 2 }, flashStyleComponent),
|
|
84
|
+
renderSummary: FlashingCellStyleWizardSection_1.renderFlashingAlertStyleSummary,
|
|
85
|
+
title: 'Flash Styles',
|
|
86
|
+
},
|
|
87
|
+
'-',
|
|
88
|
+
{
|
|
89
|
+
details: 'Review the Flashing Cell Rule',
|
|
90
|
+
render: () => {
|
|
91
|
+
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
92
|
+
React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
|
|
93
|
+
},
|
|
94
|
+
title: 'Summary',
|
|
95
|
+
},
|
|
96
|
+
] }));
|
|
97
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AdaptableApi, FlashingCellDefinition } from '../../../types';
|
|
2
|
+
import { OnePageAdaptableWizardContextType } from '../../Wizard/OnePageAdaptableWizard';
|
|
3
|
+
export declare const isValidFlashingCellRules: (flashingCell: FlashingCellDefinition, api: AdaptableApi, context: OnePageAdaptableWizardContextType<FlashingCellDefinition>) => true | string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isValidFlashingCellRules = void 0;
|
|
4
|
+
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
5
|
+
exports.isValidFlashingCellRules = (flashingCell, api, context) => {
|
|
6
|
+
let valid = true;
|
|
7
|
+
if (!flashingCell.Rule.Predicate && !flashingCell.Rule.BooleanExpression) {
|
|
8
|
+
return 'No Rule defined for Flashing Cell';
|
|
9
|
+
}
|
|
10
|
+
if (valid && flashingCell.Rule.Predicate) {
|
|
11
|
+
valid = api.predicateApi.isValidPredicate(flashingCell.Rule.Predicate);
|
|
12
|
+
if (!valid) {
|
|
13
|
+
return 'Predicate is not valid';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (valid && flashingCell.Rule.BooleanExpression) {
|
|
17
|
+
valid = api.queryLanguageApi.isValidBooleanExpression(flashingCell.Rule.BooleanExpression, ModuleConstants_1.FlashingCellModuleId);
|
|
18
|
+
if (!valid) {
|
|
19
|
+
return 'The query is not a valid boolean query';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// boolean expressions may also be saved as named queries
|
|
23
|
+
if (context.namedQuery != false) {
|
|
24
|
+
const isValidName = api.queryApi.isValidNamedQueryName(context.namedQuery);
|
|
25
|
+
if (!isValidName.valid) {
|
|
26
|
+
return isValidName.message;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return true;
|
|
30
|
+
};
|
|
@@ -10,6 +10,7 @@ export interface FormatColumnFormatWizardState {
|
|
|
10
10
|
DisplayFormat: AdaptableFormat;
|
|
11
11
|
NumericFormat?: 'Percent' | 'Thousand' | 'Million' | 'Dollar' | 'Sterling' | undefined;
|
|
12
12
|
}
|
|
13
|
+
export declare const getFormatColumnFormatSummaryValue: (data: FormatColumn) => string;
|
|
13
14
|
export declare const renderFormatColumnFormatSummary: (data: FormatColumn) => JSX.Element;
|
|
14
15
|
export declare const getFormatDisplayTypeForScope: (scope: AdaptableScope, api: AdaptableApi) => 'Number' | 'Date' | 'String' | undefined;
|
|
15
16
|
export declare const FormatColumnFormatWizardSection: (props: FormatColumnFormatWizardSectionProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnFormatWizardSection = exports.getFormatDisplayTypeForScope = exports.renderFormatColumnFormatSummary = void 0;
|
|
3
|
+
exports.FormatColumnFormatWizardSection = exports.getFormatDisplayTypeForScope = exports.renderFormatColumnFormatSummary = exports.getFormatColumnFormatSummaryValue = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
@@ -16,8 +16,8 @@ const AdaptableObjectRow_1 = require("../../Components/AdaptableObjectRow");
|
|
|
16
16
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
17
17
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
18
18
|
const Tabs_1 = require("../../../components/Tabs");
|
|
19
|
-
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
20
19
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/StringExtensions"));
|
|
20
|
+
const Tag_1 = require("../../../components/Tag");
|
|
21
21
|
const DOLLAR_OPTIONS = {
|
|
22
22
|
FractionDigits: 2,
|
|
23
23
|
FractionSeparator: '.',
|
|
@@ -77,22 +77,26 @@ const DateFormatPresets = [
|
|
|
77
77
|
'yyyyMMdd',
|
|
78
78
|
'HH:mm:ss',
|
|
79
79
|
];
|
|
80
|
-
exports.
|
|
80
|
+
exports.getFormatColumnFormatSummaryValue = (data) => {
|
|
81
81
|
let content = 'N/A';
|
|
82
82
|
if (!data.DisplayFormat) {
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
if (data.DisplayFormat.Formatter === 'NumberFormatter') {
|
|
86
|
-
content = FormatHelper_1.default.NumberFormatter(12345.6789, data.DisplayFormat.Options);
|
|
83
|
+
content = 'N/A';
|
|
87
84
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
else {
|
|
86
|
+
if (data.DisplayFormat.Formatter === 'NumberFormatter') {
|
|
87
|
+
content = FormatHelper_1.default.NumberFormatter(12345.6789, data.DisplayFormat.Options);
|
|
88
|
+
}
|
|
89
|
+
if (data.DisplayFormat.Formatter === 'DateFormatter') {
|
|
90
|
+
content = FormatHelper_1.default.DateFormatter(new Date(), data.DisplayFormat.Options);
|
|
91
|
+
}
|
|
92
|
+
if (data.DisplayFormat.Formatter === 'StringFormatter') {
|
|
93
|
+
content = FormatHelper_1.default.StringFormatter('Hello World ', data.DisplayFormat.Options);
|
|
94
|
+
}
|
|
93
95
|
}
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
+
return content;
|
|
97
|
+
};
|
|
98
|
+
exports.renderFormatColumnFormatSummary = (data) => {
|
|
99
|
+
return React.createElement(Tag_1.Tag, null, exports.getFormatColumnFormatSummaryValue(data));
|
|
96
100
|
};
|
|
97
101
|
exports.getFormatDisplayTypeForScope = (scope, api) => {
|
|
98
102
|
if (scope == undefined) {
|
|
@@ -7,9 +7,9 @@ const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
|
7
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
8
|
exports.renderFormatColumnScopeSummary = (data) => {
|
|
9
9
|
return NewScopeComponent_1.renderScopeSummary(data.Scope, {
|
|
10
|
-
scopeWholeRow: 'Matching rows will
|
|
10
|
+
scopeWholeRow: 'Matching rows will be formatted',
|
|
11
11
|
scopeColumns: 'Cells in selected columns will be formatted',
|
|
12
|
-
scopeDataTypes: 'Cells in columns of the selected data-types will
|
|
12
|
+
scopeDataTypes: 'Cells in columns of the selected data-types will be formatted',
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
exports.FormatColumnScopeWizardSection = (props) => {
|
|
@@ -10,10 +10,10 @@ const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
|
10
10
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
11
11
|
const Tabs_1 = require("../../../components/Tabs");
|
|
12
12
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
13
|
-
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
14
13
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/StringExtensions"));
|
|
15
14
|
const react_1 = require("react");
|
|
16
15
|
const LoggingHelper_1 = require("../../../Utilities/Helpers/LoggingHelper");
|
|
16
|
+
const Tag_1 = require("../../../components/Tag");
|
|
17
17
|
let alignmentOptions = [
|
|
18
18
|
{ value: 'Left', label: 'Left' },
|
|
19
19
|
{ value: 'Right', label: 'Right' },
|
|
@@ -24,13 +24,13 @@ exports.renderFormatColumnSettingsSummary = (data) => {
|
|
|
24
24
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
25
25
|
React.createElement(rebass_1.Text, null,
|
|
26
26
|
"Cell alignment ",
|
|
27
|
-
React.createElement(
|
|
27
|
+
React.createElement(Tag_1.Tag, null, (_a = data.CellAlignment) !== null && _a !== void 0 ? _a : 'default')),
|
|
28
28
|
data.HeaderName ? (React.createElement(rebass_1.Text, { mt: 3 },
|
|
29
29
|
"Header name ",
|
|
30
|
-
React.createElement(
|
|
30
|
+
React.createElement(Tag_1.Tag, null, data.HeaderName))) : null,
|
|
31
31
|
React.createElement(rebass_1.Text, { mt: 3 },
|
|
32
32
|
"Include grouped rows ",
|
|
33
|
-
React.createElement(
|
|
33
|
+
React.createElement(Tag_1.Tag, null, data.IncludeGroupedRows ? 'yes' : 'no'))));
|
|
34
34
|
};
|
|
35
35
|
exports.FormatColumnSettingsWizardSection = (props) => {
|
|
36
36
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
@@ -13,6 +13,9 @@ const FormatColumnFormatWizardSection_1 = require("./FormatColumnFormatWizardSec
|
|
|
13
13
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
14
14
|
const FormatColumnSettingsWizardSection_1 = require("./FormatColumnSettingsWizardSection");
|
|
15
15
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
16
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
17
|
+
const react_redux_1 = require("react-redux");
|
|
18
|
+
const FormatColumnRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
16
19
|
const adjustDisplayFormat = (formatColumn, api) => {
|
|
17
20
|
formatColumn = Object.assign({}, formatColumn);
|
|
18
21
|
const formatDataType = FormatColumnFormatWizardSection_1.getFormatDisplayTypeForScope(formatColumn.Scope, api);
|
|
@@ -70,7 +73,9 @@ function FormatColumnWizard(props) {
|
|
|
70
73
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
71
74
|
const [formatColumn, doSetFormatColumn] = react_1.useState(() => {
|
|
72
75
|
var _a;
|
|
73
|
-
let formatColumn =
|
|
76
|
+
let formatColumn = props.data
|
|
77
|
+
? Helper_1.cloneObject(props.data)
|
|
78
|
+
: ObjectFactory_1.default.CreateEmptyFormatColumn();
|
|
74
79
|
formatColumn.Scope = (_a = formatColumn.Scope) !== null && _a !== void 0 ? _a : {
|
|
75
80
|
ColumnIds: [],
|
|
76
81
|
};
|
|
@@ -80,7 +85,17 @@ function FormatColumnWizard(props) {
|
|
|
80
85
|
const setFormatColumn = React.useCallback((formatColumn) => {
|
|
81
86
|
doSetFormatColumn(adjustFormatColumn(formatColumn, api));
|
|
82
87
|
}, []);
|
|
83
|
-
|
|
88
|
+
const dispatch = react_redux_1.useDispatch();
|
|
89
|
+
const handleFinish = () => {
|
|
90
|
+
if (props.data) {
|
|
91
|
+
dispatch(FormatColumnRedux.FormatColumnEdit(formatColumn));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
dispatch(FormatColumnRedux.FormatColumnAdd(formatColumn));
|
|
95
|
+
}
|
|
96
|
+
props.onFinishWizard(formatColumn);
|
|
97
|
+
};
|
|
98
|
+
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: formatColumn, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
84
99
|
{
|
|
85
100
|
title: 'Scope',
|
|
86
101
|
details: 'Apply formatting to: one or more Columns or Data Types or the whole row',
|
|
@@ -5,6 +5,7 @@ export declare const renderFreeTextColumnSummary: (data: FreeTextColumn) => JSX.
|
|
|
5
5
|
export declare const isValidFreeTextColumn: (data: FreeTextColumn, api: AdaptableApi) => true | "Column id cannot be empty" | "No data type specified for column" | "A Column already exists with that id";
|
|
6
6
|
export declare type FreeTextColumnSettingsWizardSectionProps = {
|
|
7
7
|
onChange: (data: FreeTextColumn) => void;
|
|
8
|
+
isEdit: boolean;
|
|
8
9
|
};
|
|
9
10
|
export interface FreeTextColumnSettingsWizardState {
|
|
10
11
|
ColumnId: string;
|
|
@@ -14,9 +14,10 @@ const react_1 = require("react");
|
|
|
14
14
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
15
15
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../../Components/AdaptableInput"));
|
|
16
16
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
17
|
-
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
18
17
|
const FormatHelper_1 = require("../../../Utilities/Helpers/FormatHelper");
|
|
19
18
|
const DateHelper_1 = require("../../../Utilities/Helpers/DateHelper");
|
|
19
|
+
const Tag_1 = require("../../../components/Tag");
|
|
20
|
+
const SpecialColumnSettingsWizardStep_1 = require("../../SpecialColumnSettingsWizardStep");
|
|
20
21
|
const options = [
|
|
21
22
|
{ value: Enums_1.DataType.Number, label: Enums_1.DataType.Number },
|
|
22
23
|
{ value: Enums_1.DataType.String, label: Enums_1.DataType.String },
|
|
@@ -28,19 +29,19 @@ exports.renderFreeTextColumnSummary = (data) => {
|
|
|
28
29
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
29
30
|
React.createElement(rebass_1.Box, null,
|
|
30
31
|
"Column Identifier: ",
|
|
31
|
-
React.createElement(
|
|
32
|
+
React.createElement(Tag_1.Tag, null, data.ColumnId)),
|
|
32
33
|
data.FriendlyName ? (React.createElement(rebass_1.Box, { mt: 3 },
|
|
33
34
|
"Column Name: ",
|
|
34
|
-
React.createElement(
|
|
35
|
+
React.createElement(Tag_1.Tag, null, (_a = data.FriendlyName) !== null && _a !== void 0 ? _a : data.ColumnId))) : null,
|
|
35
36
|
React.createElement(rebass_1.Box, { mt: 3 },
|
|
36
37
|
"Data Type: ",
|
|
37
|
-
React.createElement(
|
|
38
|
+
React.createElement(Tag_1.Tag, null, data.DataType)),
|
|
38
39
|
data.DefaultValue !== undefined ? (React.createElement(rebass_1.Box, { mt: 3 },
|
|
39
40
|
"Default Value: ",
|
|
40
|
-
React.createElement(
|
|
41
|
+
React.createElement(Tag_1.Tag, null, data.DefaultValue))) : null,
|
|
41
42
|
data.TextEditor !== undefined ? (React.createElement(rebass_1.Box, { mt: 3 },
|
|
42
43
|
"Editor Type: ",
|
|
43
|
-
React.createElement(
|
|
44
|
+
React.createElement(Tag_1.Tag, null, data.TextEditor))) : null));
|
|
44
45
|
};
|
|
45
46
|
exports.isValidFreeTextColumn = (data, api) => {
|
|
46
47
|
const columns = api.columnApi.getColumns();
|
|
@@ -59,10 +60,9 @@ exports.isValidFreeTextColumn = (data, api) => {
|
|
|
59
60
|
};
|
|
60
61
|
exports.FreeTextColumnSettingsWizardSection = (props) => {
|
|
61
62
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
62
|
-
const Pattern = api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions
|
|
63
|
-
.dateFormat;
|
|
63
|
+
const Pattern = api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat;
|
|
64
64
|
const [ColumnNameFocused, setColumnNameFocused] = react_1.useState(false);
|
|
65
|
-
const inEdit =
|
|
65
|
+
const inEdit = props.isEdit;
|
|
66
66
|
const validCheck = exports.isValidFreeTextColumn(data, api);
|
|
67
67
|
const ErrorMessage = validCheck === true ? null : validCheck;
|
|
68
68
|
const handleColumnIdChange = (event) => {
|
|
@@ -98,6 +98,9 @@ exports.FreeTextColumnSettingsWizardSection = (props) => {
|
|
|
98
98
|
}
|
|
99
99
|
props.onChange(Object.assign(Object.assign({}, data), { DefaultValue }));
|
|
100
100
|
};
|
|
101
|
+
const handleSpecialColumnSettingsChange = (settings) => {
|
|
102
|
+
props.onChange(Object.assign(Object.assign({}, data), { FreeTextColumnSettings: Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.FreeTextColumnSettings), settings) }));
|
|
103
|
+
};
|
|
101
104
|
return (React.createElement(React.Fragment, null,
|
|
102
105
|
React.createElement(FormLayout_1.default, null,
|
|
103
106
|
React.createElement(FormLayout_1.FormRow, { label: "ColumnId" },
|
|
@@ -127,5 +130,7 @@ exports.FreeTextColumnSettingsWizardSection = (props) => {
|
|
|
127
130
|
data.DataType == 'String' && (React.createElement(FormLayout_1.FormRow, { label: "Editor Type" },
|
|
128
131
|
React.createElement(Radio_1.default, { value: "Inline", checked: data.TextEditor == 'Inline', onChange: (_, e) => onDynamicSelectChanged(e), marginRight: 2 }, "Inline Editor"),
|
|
129
132
|
React.createElement(Radio_1.default, { value: "Large", checked: data.TextEditor == 'Large', onChange: (_, e) => onDynamicSelectChanged(e) }, "Large Editor")))),
|
|
130
|
-
ErrorMessage ? React.createElement(ErrorBox_1.default, {
|
|
133
|
+
ErrorMessage ? (React.createElement(ErrorBox_1.default, { mt: 2, mb: 2 }, ErrorMessage)) : null,
|
|
134
|
+
React.createElement(rebass_1.Box, { mt: 2 },
|
|
135
|
+
React.createElement(SpecialColumnSettingsWizardStep_1.SpecialColumnSettingsWizardStep, { isEditable: true, settings: data.FreeTextColumnSettings, onChange: handleSpecialColumnSettingsChange }))));
|
|
131
136
|
};
|
|
@@ -5,23 +5,37 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const rebass_1 = require("rebass");
|
|
8
|
-
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
9
8
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
10
9
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
11
10
|
const FreeTextColumnSettingsWizardSection_1 = require("./FreeTextColumnSettingsWizardSection");
|
|
11
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
12
|
+
const FreeTextColumnRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FreeTextColumnRedux"));
|
|
13
|
+
const react_redux_1 = require("react-redux");
|
|
12
14
|
exports.FreeTextColumnWizard = (props) => {
|
|
13
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
14
15
|
const [freeTextColumn, setFreeTextColumn] = react_1.useState(() => {
|
|
15
|
-
const freeTextColumn =
|
|
16
|
+
const freeTextColumn = props.data
|
|
17
|
+
? Helper_1.cloneObject(props.data)
|
|
18
|
+
: ObjectFactory_1.default.CreateEmptyFreeTextColumn(false);
|
|
16
19
|
return freeTextColumn;
|
|
17
20
|
});
|
|
18
|
-
|
|
21
|
+
const dispatch = react_redux_1.useDispatch();
|
|
22
|
+
const handleFinish = () => {
|
|
23
|
+
if (props.data) {
|
|
24
|
+
dispatch(FreeTextColumnRedux.FreeTextColumnEdit(freeTextColumn));
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
dispatch(FreeTextColumnRedux.FreeTextColumnAdd(freeTextColumn));
|
|
28
|
+
}
|
|
29
|
+
props.onFinishWizard(freeTextColumn);
|
|
30
|
+
};
|
|
31
|
+
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: freeTextColumn, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
19
32
|
{
|
|
20
33
|
title: 'Settings',
|
|
21
34
|
details: 'Configure the Free Text Column',
|
|
35
|
+
isValid: FreeTextColumnSettingsWizardSection_1.isValidFreeTextColumn,
|
|
22
36
|
render: () => {
|
|
23
37
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
24
|
-
React.createElement(FreeTextColumnSettingsWizardSection_1.FreeTextColumnSettingsWizardSection, { onChange: setFreeTextColumn })));
|
|
38
|
+
React.createElement(FreeTextColumnSettingsWizardSection_1.FreeTextColumnSettingsWizardSection, { isEdit: Boolean(props.data), onChange: setFreeTextColumn })));
|
|
25
39
|
},
|
|
26
40
|
},
|
|
27
41
|
'-',
|
|
@@ -70,7 +70,7 @@ exports.AdaptableOptionsComponent = (props) => {
|
|
|
70
70
|
return (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: getAdaptableOptionsColItems(), items: gridInfoOptionComponents }));
|
|
71
71
|
};
|
|
72
72
|
const [gridInfoOptions, setGridInfoOptions] = react_1.useState();
|
|
73
|
-
const [gridInfoContainerComponents, setGridInfoContainerComponents
|
|
73
|
+
const [gridInfoContainerComponents, setGridInfoContainerComponents] = react_1.useState();
|
|
74
74
|
react_1.useEffect(() => {
|
|
75
75
|
const gridInfoOptions = api.internalApi.getMetamodelService().getGridInfoOptions();
|
|
76
76
|
const gridInfoContainerComponentMap = new Map();
|
|
@@ -81,7 +81,7 @@ exports.AdaptableOptionsComponent = (props) => {
|
|
|
81
81
|
setGridInfoOptions(gridInfoOptions);
|
|
82
82
|
}, []);
|
|
83
83
|
const [expandedComponentContainer, setExpandedComponentContainer] = react_1.useState('');
|
|
84
|
-
return (React.createElement(rebass_1.Box, {
|
|
84
|
+
return (React.createElement(rebass_1.Box, { className: "ab-AdaptableOptions", padding: 2, "data-name": "gridInfo-adaptableOptions-content" }, gridInfoOptions &&
|
|
85
85
|
Array.from(gridInfoOptions.entries()).map(([containerName, container]) => (React.createElement(OptionContainerComponent, { key: containerName, name: containerName, label: container.containerLabel, viewMode: containerName === expandedComponentContainer ? 'expanded' : 'collapsed', onViewModeChange: (newViewMode) => setExpandedComponentContainer(newViewMode === 'expanded' ? containerName : '') }, gridInfoContainerComponents.get(containerName))))));
|
|
86
86
|
};
|
|
87
87
|
const OptionContainerComponent = (props) => {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
3
3
|
import { AdaptableColumn } from '../../types';
|
|
4
|
+
import { GridInfoSection } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
4
5
|
interface GridInfoPopupProps extends ModuleViewPopupProps<any> {
|
|
5
6
|
}
|
|
6
7
|
export interface AdaptableGridInfoState {
|
|
7
|
-
ActiveTab:
|
|
8
|
+
ActiveTab: GridInfoSection;
|
|
8
9
|
CurrentColumn: AdaptableColumn | undefined;
|
|
9
10
|
IsBaseOptionsMinimised: boolean;
|
|
10
11
|
IsContainerOptionsMinimised: boolean;
|