@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,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FreeTextColumnEntityRow = 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 AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
9
|
-
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
10
|
-
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
11
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
12
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
13
|
-
class FreeTextColumnEntityRow extends React.Component {
|
|
14
|
-
render() {
|
|
15
|
-
let FreeTextColumn = this.props.adaptableObject;
|
|
16
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
17
|
-
colItems[0].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: FreeTextColumn.ColumnId });
|
|
18
|
-
colItems[1].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: FreeTextColumn.FriendlyName });
|
|
19
|
-
colItems[2].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: FreeTextColumn.DefaultValue === false
|
|
20
|
-
? 'false'
|
|
21
|
-
: StringExtensions_1.StringExtensions.IsNullOrEmpty(FreeTextColumn.DefaultValue)
|
|
22
|
-
? '[None]'
|
|
23
|
-
: `${FreeTextColumn.DefaultValue}` }));
|
|
24
|
-
colItems[3].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(FreeTextColumn.FreeTextStoredValues)
|
|
25
|
-
? 0
|
|
26
|
-
: FreeTextColumn.FreeTextStoredValues.length }));
|
|
27
|
-
colItems[4].Content = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { editClick: () => this.props.onEdit(FreeTextColumn), showShare: this.props.teamSharingActivated, shareClick: (config) => this.props.onShare(config), confirmDeleteAction: this.props.onDeleteConfirm, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
|
|
28
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems });
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.FreeTextColumnEntityRow = FreeTextColumnEntityRow;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as FreeTextColumnRedux from '../../Redux/ActionsReducers/FreeTextColumnRedux';
|
|
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 { FreeTextColumn } from '../../PredefinedConfig/FreeTextColumnState';
|
|
8
|
-
import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
|
|
9
|
-
interface FreeTextColumnPopupProps extends ModuleViewPopupProps<FreeTextColumnPopupComponent> {
|
|
10
|
-
FreeTextColumns: Array<FreeTextColumn>;
|
|
11
|
-
onAddFreeTextColumn: (FreeTextColumn: FreeTextColumn) => FreeTextColumnRedux.FreeTextColumnAddAction;
|
|
12
|
-
onEditFreeTextColumn: (FreeTextColumn: FreeTextColumn) => FreeTextColumnRedux.FreeTextColumnEditAction;
|
|
13
|
-
onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
14
|
-
}
|
|
15
|
-
declare class FreeTextColumnPopupComponent extends React.Component<FreeTextColumnPopupProps, EditableConfigEntityState> {
|
|
16
|
-
constructor(props: FreeTextColumnPopupProps);
|
|
17
|
-
componentDidMount(): void;
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
onNew(): void;
|
|
20
|
-
onEdit(FreeTextColumn: FreeTextColumn): void;
|
|
21
|
-
onCloseWizard(): void;
|
|
22
|
-
onFinishWizard: (freeTextColumn: FreeTextColumn) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare let FreeTextColumnPopup: import("react-redux").ConnectedComponent<typeof FreeTextColumnPopupComponent, any>;
|
|
25
|
-
export {};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FreeTextColumnPopup = 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 FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FreeTextColumnRedux"));
|
|
8
|
-
const FreeTextColumnEntityRow_1 = require("./FreeTextColumnEntityRow");
|
|
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 EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
18
|
-
const rebass_1 = require("rebass");
|
|
19
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
20
|
-
const FreeTextColumnWizard_1 = require("./Wizard/FreeTextColumnWizard");
|
|
21
|
-
class FreeTextColumnPopupComponent extends React.Component {
|
|
22
|
-
constructor(props) {
|
|
23
|
-
super(props);
|
|
24
|
-
this.onFinishWizard = (freeTextColumn) => {
|
|
25
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
26
|
-
this.props.onEditFreeTextColumn(freeTextColumn);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this.props.onAddFreeTextColumn(freeTextColumn);
|
|
30
|
-
}
|
|
31
|
-
this.setState({
|
|
32
|
-
editedAdaptableObject: null,
|
|
33
|
-
wizardStartIndex: 0,
|
|
34
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
this.state = {
|
|
38
|
-
editedAdaptableObject: null,
|
|
39
|
-
wizardStartIndex: 0,
|
|
40
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
componentDidMount() {
|
|
44
|
-
if (this.props.popupParams) {
|
|
45
|
-
if (this.props.popupParams.action && this.props.popupParams.column) {
|
|
46
|
-
if (this.props.popupParams.action == 'Edit') {
|
|
47
|
-
let editFreeTextColumn = this.props.FreeTextColumns.find((x) => x.ColumnId == this.props.popupParams.column.columnId);
|
|
48
|
-
let index = this.props.FreeTextColumns.indexOf(editFreeTextColumn);
|
|
49
|
-
this.onEdit(editFreeTextColumn);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
let colItems = [
|
|
56
|
-
{ Content: 'Column Id', Size: 3 },
|
|
57
|
-
{ Content: 'Column Name', Size: 3 },
|
|
58
|
-
{ Content: 'Default Value', Size: 4 },
|
|
59
|
-
{ Content: 'No. Stored Value', Size: 3 },
|
|
60
|
-
{ Content: '', Size: 2 },
|
|
61
|
-
];
|
|
62
|
-
let freeTextColumns = this.props.FreeTextColumns.map((freeTextColumn, index) => {
|
|
63
|
-
let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(freeTextColumn, this.props.accessLevel);
|
|
64
|
-
return (React.createElement(FreeTextColumnEntityRow_1.FreeTextColumnEntityRow, { key: freeTextColumn.Uuid, colItems: colItems, api: this.props.api, adaptableObject: freeTextColumn, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(freeTextColumn), onShare: (config) => this.props.onShare(freeTextColumn, config), teamSharingActivated: this.props.teamSharingActivated, onDeleteConfirm: FreeTextColumnRedux.FreeTextColumnDelete(freeTextColumn), accessLevel: accessLevel }));
|
|
65
|
-
});
|
|
66
|
-
let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.onNew(), tooltip: "Create FreeText Column", accessLevel: this.props.accessLevel, style: {
|
|
67
|
-
color: 'var(--ab-color-text-on-add)',
|
|
68
|
-
fill: 'var(--ab-color-text-on-add)',
|
|
69
|
-
background: 'var(--ab-color-action-add)',
|
|
70
|
-
} }));
|
|
71
|
-
return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
|
|
72
|
-
React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, button: newButton, bodyProps: { padding: 0 }, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
73
|
-
this.props.FreeTextColumns.length == 0 ? (React.createElement(EmptyContent_1.default, null, "Click 'New' to create a new Free Text Column.")) : (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: freeTextColumns })),
|
|
74
|
-
this.state.editedAdaptableObject != null && (React.createElement(FreeTextColumnWizard_1.FreeTextColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FreeTextColumns, wizardStartIndex: this.state.wizardStartIndex, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard })))));
|
|
75
|
-
}
|
|
76
|
-
onNew() {
|
|
77
|
-
const specialColumnsAreFilterable = this.props.api.internalApi.getAdaptableOptions()
|
|
78
|
-
.filterOptions.enableFilterOnSpecialColumns;
|
|
79
|
-
const editedAdaptableObject = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(specialColumnsAreFilterable);
|
|
80
|
-
// we want to do this here, as we need a way to differentiate in the wizard
|
|
81
|
-
// if it's a new or existing column
|
|
82
|
-
delete editedAdaptableObject.Uuid;
|
|
83
|
-
this.setState({
|
|
84
|
-
editedAdaptableObject,
|
|
85
|
-
wizardStartIndex: 0,
|
|
86
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
onEdit(FreeTextColumn) {
|
|
90
|
-
let clonedObject = Helper_1.Helper.cloneObject(FreeTextColumn);
|
|
91
|
-
this.setState({
|
|
92
|
-
editedAdaptableObject: clonedObject,
|
|
93
|
-
wizardStartIndex: 0,
|
|
94
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
onCloseWizard() {
|
|
98
|
-
this.props.onClearPopupParams();
|
|
99
|
-
this.setState({
|
|
100
|
-
editedAdaptableObject: null,
|
|
101
|
-
wizardStartIndex: 0,
|
|
102
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function mapStateToProps(state, ownProps) {
|
|
107
|
-
return {
|
|
108
|
-
FreeTextColumns: state.FreeTextColumn.FreeTextColumns,
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function mapDispatchToProps(dispatch) {
|
|
112
|
-
return {
|
|
113
|
-
onAddFreeTextColumn: (FreeTextColumn) => dispatch(FreeTextColumnRedux.FreeTextColumnAdd(FreeTextColumn)),
|
|
114
|
-
onEditFreeTextColumn: (FreeTextColumn) => dispatch(FreeTextColumnRedux.FreeTextColumnEdit(FreeTextColumn)),
|
|
115
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.FreeTextColumnModuleId, config)),
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
exports.FreeTextColumnPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(FreeTextColumnPopupComponent);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
import { PlusMinusNudge } from '../../PredefinedConfig/PlusMinusState';
|
|
4
|
-
export interface PlusMinusEntityRowProps extends SharedEntityRowProps<PlusMinusEntityRow> {
|
|
5
|
-
onNudgeValueChange: (plusMinusNudge: PlusMinusNudge, event: React.FormEvent<any>) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare class PlusMinusEntityRow extends React.Component<PlusMinusEntityRowProps, {}> {
|
|
8
|
-
render(): any;
|
|
9
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlusMinusEntityRow = 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 AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
8
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
9
|
-
const Input_1 = tslib_1.__importDefault(require("../../components/Input"));
|
|
10
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
11
|
-
class PlusMinusEntityRow extends React.Component {
|
|
12
|
-
render() {
|
|
13
|
-
var _a;
|
|
14
|
-
let plusMinusNudge = this.props.adaptableObject;
|
|
15
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
16
|
-
colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.scopeApi.getScopeToString(plusMinusNudge.Scope) }));
|
|
17
|
-
colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: React.createElement(Input_1.default, { value: plusMinusNudge.NudgeValue.toString(), style: { width: '100%' }, type: "number", placeholder: "Enter a Number", onChange: (e) => this.props.onNudgeValueChange(plusMinusNudge, e) }) }));
|
|
18
|
-
colItems[2].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: ((_a = plusMinusNudge.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression) ? plusMinusNudge.Rule.BooleanExpression : 'Always' }));
|
|
19
|
-
let buttons = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { showSuspend: true, suspendableObject: plusMinusNudge, confirmDeleteAction: this.props.onDeleteConfirm, editClick: () => this.props.onEdit(plusMinusNudge), shareClick: (config) => this.props.onShare(config), showShare: this.props.teamSharingActivated, overrideDisableEdit: false, entityType: this.props.moduleInfo.FriendlyName + ' Rule ', accessLevel: this.props.accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
|
|
20
|
-
colItems[3].Content = buttons;
|
|
21
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { isSuspended: plusMinusNudge.IsSuspended, colItems: colItems });
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.PlusMinusEntityRow = PlusMinusEntityRow;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PlusMinusRedux from '../../Redux/ActionsReducers/PlusMinusRedux';
|
|
3
|
-
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
4
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
5
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
6
|
-
import { EditableExpressionConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
7
|
-
import { PlusMinusNudge, AdaptableObject } from '../../types';
|
|
8
|
-
import { UIConfirmation } from '../../Utilities/Interface/MessagePopups';
|
|
9
|
-
import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
|
|
10
|
-
interface PlusMinusPopupProps extends ModuleViewPopupProps<PlusMinusPopupComponent> {
|
|
11
|
-
NudgeValue: number;
|
|
12
|
-
PlusMinusNudges: PlusMinusNudge[];
|
|
13
|
-
onAddPlusMinusNudge: (plusMinusNudge: PlusMinusNudge) => PlusMinusRedux.PlusMinusNudgeAddAction;
|
|
14
|
-
onEditPlusMinusNudge: (plusMinusNudge: PlusMinusNudge) => PlusMinusRedux.PlusMinusNudgeEditAction;
|
|
15
|
-
onConfirmOverrideNudgeValue: (confirmation: UIConfirmation) => PopupRedux.PopupShowConfirmationAction;
|
|
16
|
-
onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
17
|
-
}
|
|
18
|
-
declare class PlusMinusPopupComponent extends React.Component<PlusMinusPopupProps, EditableExpressionConfigEntityState> {
|
|
19
|
-
constructor(props: PlusMinusPopupProps);
|
|
20
|
-
componentDidMount(): void;
|
|
21
|
-
render(): JSX.Element;
|
|
22
|
-
onNew(): void;
|
|
23
|
-
onEdit(plusMinusNudge: PlusMinusNudge): void;
|
|
24
|
-
onCloseWizard: () => void;
|
|
25
|
-
onFinishWizard: (plusMinusNudge: PlusMinusNudge) => void;
|
|
26
|
-
resetState(): void;
|
|
27
|
-
onNudgeValueChange(plusMinusNudge: PlusMinusNudge, event: React.FormEvent<any>): void;
|
|
28
|
-
}
|
|
29
|
-
export declare let PlusMinusPopup: import("react-redux").ConnectedComponent<typeof PlusMinusPopupComponent, any>;
|
|
30
|
-
export {};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlusMinusPopup = 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 rebass_1 = require("rebass");
|
|
8
|
-
const PlusMinusRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PlusMinusRedux"));
|
|
9
|
-
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
10
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
11
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
12
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
13
|
-
const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
|
|
14
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
15
|
-
const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
|
|
16
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
17
|
-
const PlusMinusEntityRow_1 = require("./PlusMinusEntityRow");
|
|
18
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
19
|
-
const UIHelper_1 = require("../UIHelper");
|
|
20
|
-
const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
21
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
22
|
-
const PlusMinusWizard_1 = require("./Wizard/PlusMinusWizard");
|
|
23
|
-
class PlusMinusPopupComponent extends React.Component {
|
|
24
|
-
constructor(props) {
|
|
25
|
-
super(props);
|
|
26
|
-
this.onCloseWizard = () => {
|
|
27
|
-
this.props.onClearPopupParams();
|
|
28
|
-
this.resetState();
|
|
29
|
-
};
|
|
30
|
-
this.onFinishWizard = (plusMinusNudge) => {
|
|
31
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
32
|
-
this.props.onEditPlusMinusNudge(plusMinusNudge);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
this.props.onAddPlusMinusNudge(plusMinusNudge);
|
|
36
|
-
}
|
|
37
|
-
this.resetState();
|
|
38
|
-
};
|
|
39
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
40
|
-
}
|
|
41
|
-
componentDidMount() {
|
|
42
|
-
if (this.props.popupParams) {
|
|
43
|
-
if (this.props.popupParams.action && this.props.popupParams.column) {
|
|
44
|
-
if (this.props.popupParams.action == 'New') {
|
|
45
|
-
let column = this.props.popupParams.column;
|
|
46
|
-
let plusMinus = ObjectFactory_1.ObjectFactory.CreateEmptyPlusMinusNudge();
|
|
47
|
-
plusMinus.Scope = {
|
|
48
|
-
ColumnIds: [column.columnId],
|
|
49
|
-
};
|
|
50
|
-
this.setState({
|
|
51
|
-
editedAdaptableObject: plusMinus,
|
|
52
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
53
|
-
wizardStartIndex: 1,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
let colItems = [
|
|
61
|
-
{ Content: 'Column', Size: 3 },
|
|
62
|
-
{ Content: 'Nudge Value', Size: 2 },
|
|
63
|
-
{ Content: 'Row Condition', Size: 5 },
|
|
64
|
-
{ Content: '', Size: 2 },
|
|
65
|
-
];
|
|
66
|
-
let plusMinusNudges = this.props.PlusMinusNudges.map((x, index) => {
|
|
67
|
-
let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(x, this.props.accessLevel);
|
|
68
|
-
return (React.createElement(PlusMinusEntityRow_1.PlusMinusEntityRow, { colItems: colItems, api: this.props.api, adaptableObject: x, key: index, onEdit: () => this.onEdit(x), teamSharingActivated: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onShare: (description) => this.props.onShare(x, description), onDeleteConfirm: PlusMinusRedux.PlusMinusNudgeDelete(x), onNudgeValueChange: (plusMinusNudge, event) => this.onNudgeValueChange(plusMinusNudge, event), accessLevel: accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
|
|
69
|
-
});
|
|
70
|
-
let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.onNew(), tooltip: "Create Plus / Minus Rule", accessLevel: this.props.accessLevel, style: {
|
|
71
|
-
color: 'var(--ab-color-text-on-add)',
|
|
72
|
-
fill: 'var(--ab-color-text-on-add)',
|
|
73
|
-
background: 'var(--ab-color-action-add)',
|
|
74
|
-
} }));
|
|
75
|
-
return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
|
|
76
|
-
React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, bodyProps: { padding: 0 }, button: newButton, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
77
|
-
plusMinusNudges.length > 0 ? (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: plusMinusNudges })) : (React.createElement(EmptyContent_1.default, null, "Click 'New' to create new Nudge Value rules for when the '+' or '-' keys are clicked while in a numeric cell.")),
|
|
78
|
-
this.state.editedAdaptableObject != null && (React.createElement(PlusMinusWizard_1.PlusMinusWizard, { moduleInfo: this.props.moduleInfo, configEntities: [], data: this.state.editedAdaptableObject, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard })))));
|
|
79
|
-
}
|
|
80
|
-
onNew() {
|
|
81
|
-
this.setState({
|
|
82
|
-
editedAdaptableObject: ObjectFactory_1.ObjectFactory.CreateEmptyPlusMinusNudge(),
|
|
83
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
84
|
-
wizardStartIndex: 0,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
onEdit(plusMinusNudge) {
|
|
88
|
-
let clonedObject = Helper_1.Helper.cloneObject(plusMinusNudge);
|
|
89
|
-
this.setState({
|
|
90
|
-
editedAdaptableObject: clonedObject,
|
|
91
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
92
|
-
wizardStartIndex: 1,
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
resetState() {
|
|
96
|
-
this.setState({
|
|
97
|
-
editedAdaptableObject: null,
|
|
98
|
-
wizardStartIndex: 0,
|
|
99
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
onNudgeValueChange(plusMinusNudge, event) {
|
|
103
|
-
let clonedObject = Helper_1.Helper.cloneObject(plusMinusNudge);
|
|
104
|
-
let e = event.target;
|
|
105
|
-
clonedObject.NudgeValue = parseFloat(e.value);
|
|
106
|
-
this.props.onEditPlusMinusNudge(clonedObject);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function mapStateToProps(state, ownProps) {
|
|
110
|
-
return {
|
|
111
|
-
PlusMinusNudges: state.PlusMinus.PlusMinusNudges,
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function mapDispatchToProps(dispatch) {
|
|
115
|
-
return {
|
|
116
|
-
onAddPlusMinusNudge: (plusMinusNudge) => dispatch(PlusMinusRedux.PlusMinusNudgeAdd(plusMinusNudge)),
|
|
117
|
-
onEditPlusMinusNudge: (plusMinusNudge) => dispatch(PlusMinusRedux.PlusMinusNudgeEdit(plusMinusNudge)),
|
|
118
|
-
onConfirmOverrideNudgeValue: (confirmation) => dispatch(PopupRedux.PopupShowConfirmation(confirmation)),
|
|
119
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.PlusMinusModuleId, config)),
|
|
120
|
-
onSuspend: (plusMinusNudge) => dispatch(PlusMinusRedux.PlusMinusNudgeSuspend(plusMinusNudge)),
|
|
121
|
-
onUnSuspend: (plusMinusNudge) => dispatch(PlusMinusRedux.PlusMinusNudgeUnSuspend(plusMinusNudge)),
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
exports.PlusMinusPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(PlusMinusPopupComponent);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
interface NamedQueryEntityRowProps<NamedQueryEntityRow> extends SharedEntityRowProps<NamedQueryEntityRow> {
|
|
4
|
-
}
|
|
5
|
-
export declare class NamedQueryEntityRow extends React.Component<NamedQueryEntityRowProps<NamedQueryEntityRow>, {}> {
|
|
6
|
-
render(): any;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NamedQueryEntityRow = 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 AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
8
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
9
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
10
|
-
class NamedQueryEntityRow extends React.Component {
|
|
11
|
-
render() {
|
|
12
|
-
let namedQuery = this.props.adaptableObject;
|
|
13
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
14
|
-
colItems[0].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: namedQuery.Name });
|
|
15
|
-
colItems[1].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: namedQuery.BooleanExpression });
|
|
16
|
-
let buttons = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { confirmDeleteAction: this.props.onDeleteConfirm, editClick: () => this.props.onEdit(namedQuery), shareClick: (config) => this.props.onShare(config), showShare: this.props.teamSharingActivated, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
|
|
17
|
-
colItems[2].Content = buttons;
|
|
18
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.NamedQueryEntityRow = NamedQueryEntityRow;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as QueryRedux from '../../Redux/ActionsReducers/QueryRedux';
|
|
3
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
4
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
5
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
6
|
-
import { NamedQuery } from '../../PredefinedConfig/QueryState';
|
|
7
|
-
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
8
|
-
import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
|
|
9
|
-
interface QueryPopupProps extends ModuleViewPopupProps<QueryPopupComponent> {
|
|
10
|
-
onAddNamedQuery: (namedQuery: NamedQuery) => QueryRedux.NamedQueryAddAction;
|
|
11
|
-
onEditNamedQuery: (namedQuery: NamedQuery) => QueryRedux.NamedQueryEditAction;
|
|
12
|
-
NamedQueries: Array<NamedQuery>;
|
|
13
|
-
NamedQueryErrorMessage: string;
|
|
14
|
-
onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
15
|
-
}
|
|
16
|
-
declare class QueryPopupComponent extends React.Component<QueryPopupProps, EditableConfigEntityState> {
|
|
17
|
-
constructor(props: QueryPopupProps);
|
|
18
|
-
shouldClosePopupOnFinishWizard: boolean;
|
|
19
|
-
componentDidMount(): void;
|
|
20
|
-
render(): JSX.Element;
|
|
21
|
-
onNew(value?: string): void;
|
|
22
|
-
onExisting(value?: string): void;
|
|
23
|
-
onEdit(namedQuery: NamedQuery): void;
|
|
24
|
-
onCloseWizard: () => void;
|
|
25
|
-
onFinishWizard: (namedQuery: NamedQuery) => void;
|
|
26
|
-
}
|
|
27
|
-
export declare let QueryPopup: import("react-redux").ConnectedComponent<typeof QueryPopupComponent, Pick<React.ClassAttributes<QueryPopupComponent> & QueryPopupProps, never>>;
|
|
28
|
-
export {};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryPopup = 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 QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QueryRedux"));
|
|
8
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
9
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
10
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
11
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
12
|
-
const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
|
|
13
|
-
const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
|
|
14
|
-
const NamedQueryEntityRow_1 = require("./NamedQueryEntityRow");
|
|
15
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
16
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
17
|
-
const UIHelper_1 = require("../UIHelper");
|
|
18
|
-
const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
|
|
19
|
-
const NamedQueryWizard_1 = require("./Wizard/NamedQueryWizard");
|
|
20
|
-
class QueryPopupComponent extends React.Component {
|
|
21
|
-
constructor(props) {
|
|
22
|
-
super(props);
|
|
23
|
-
this.shouldClosePopupOnFinishWizard = false;
|
|
24
|
-
this.onCloseWizard = () => {
|
|
25
|
-
this.props.onClearPopupParams();
|
|
26
|
-
this.setState({
|
|
27
|
-
editedAdaptableObject: null,
|
|
28
|
-
wizardStartIndex: 0,
|
|
29
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
30
|
-
});
|
|
31
|
-
if (this.shouldClosePopupOnFinishWizard) {
|
|
32
|
-
this.props.onClosePopup();
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
this.onFinishWizard = (namedQuery) => {
|
|
36
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
37
|
-
this.props.onEditNamedQuery(namedQuery);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.props.onAddNamedQuery(namedQuery);
|
|
41
|
-
}
|
|
42
|
-
this.setState({
|
|
43
|
-
editedAdaptableObject: null,
|
|
44
|
-
wizardStartIndex: 0,
|
|
45
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
49
|
-
}
|
|
50
|
-
componentDidMount() {
|
|
51
|
-
if (this.props.popupParams) {
|
|
52
|
-
if (this.props.popupParams.action === 'New') {
|
|
53
|
-
this.onExisting(this.props.popupParams.value);
|
|
54
|
-
}
|
|
55
|
-
this.shouldClosePopupOnFinishWizard =
|
|
56
|
-
this.props.popupParams.source && this.props.popupParams.source == 'Toolbar';
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
let colItems = [
|
|
61
|
-
{ Content: 'Name', Size: 2 },
|
|
62
|
-
{ Content: 'Expression', Size: 8 },
|
|
63
|
-
{ Content: '', Size: 2 },
|
|
64
|
-
];
|
|
65
|
-
let namedQueries = this.props.NamedQueries.map((namedQuery) => {
|
|
66
|
-
return (React.createElement(NamedQueryEntityRow_1.NamedQueryEntityRow, { colItems: colItems, api: this.props.api, onShare: (description) => this.props.onShare(namedQuery, description), teamSharingActivated: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, adaptableObject: namedQuery, key: namedQuery.Uuid, onEdit: (namedQuery) => this.onEdit(namedQuery), onDeleteConfirm: QueryRedux.NamedQueryDelete(namedQuery), accessLevel: this.props.accessLevel }));
|
|
67
|
-
});
|
|
68
|
-
let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => {
|
|
69
|
-
this.onNew();
|
|
70
|
-
}, tooltip: "Create Named Query", accessLevel: this.props.accessLevel, style: {
|
|
71
|
-
color: 'var(--ab-color-text-on-add)',
|
|
72
|
-
fill: 'var(--ab-color-text-on-add)',
|
|
73
|
-
background: 'var(--ab-color-action-add)',
|
|
74
|
-
} }));
|
|
75
|
-
return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, className: "ab_main_popup", infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), button: newButton, border: "none", bodyProps: { padding: 0 }, glyphicon: this.props.moduleInfo.Glyph },
|
|
76
|
-
this.props.NamedQueries.length > 0 ? (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: namedQueries })) : (React.createElement(EmptyContent_1.default, null, "Click 'New' to create a new Named Query.")),
|
|
77
|
-
this.state.editedAdaptableObject && (React.createElement(NamedQueryWizard_1.NamedQueryWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.NamedQueries, wizardStartIndex: this.state.wizardStartIndex, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard }))));
|
|
78
|
-
}
|
|
79
|
-
onNew(value) {
|
|
80
|
-
this.setState({
|
|
81
|
-
editedAdaptableObject: ObjectFactory_1.ObjectFactory.CreateEmptyNamedQuery(value),
|
|
82
|
-
wizardStartIndex: 0,
|
|
83
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
onExisting(value) {
|
|
87
|
-
this.setState({
|
|
88
|
-
editedAdaptableObject: ObjectFactory_1.ObjectFactory.CreateEmptyNamedQuery(value),
|
|
89
|
-
wizardStartIndex: 1,
|
|
90
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
onEdit(namedQuery) {
|
|
94
|
-
let clonedObject = Helper_1.Helper.cloneObject(namedQuery);
|
|
95
|
-
this.setState({
|
|
96
|
-
editedAdaptableObject: clonedObject,
|
|
97
|
-
wizardStartIndex: 0,
|
|
98
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
function mapStateToProps(state) {
|
|
103
|
-
return {
|
|
104
|
-
NamedQueries: state.Query.NamedQueries,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function mapDispatchToProps(dispatch) {
|
|
108
|
-
return {
|
|
109
|
-
onAddNamedQuery: (namedQuery) => dispatch(QueryRedux.NamedQueryAdd(namedQuery)),
|
|
110
|
-
onEditNamedQuery: (namedQuery) => dispatch(QueryRedux.NamedQueryEdit(namedQuery)),
|
|
111
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.QueryModuleId, config)),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
exports.QueryPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(QueryPopupComponent);
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScheduleEntityRow = 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 AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
8
|
-
const EntityRowItem_1 = require("../Components/EntityRowItem");
|
|
9
|
-
const UIHelper_1 = tslib_1.__importDefault(require("../UIHelper"));
|
|
10
|
-
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
11
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
12
|
-
class ScheduleEntityRow extends React.Component {
|
|
13
|
-
render() {
|
|
14
|
-
let baseSchedule = this.props.adaptableObject;
|
|
15
|
-
let details = '';
|
|
16
|
-
switch (baseSchedule.ScheduleType) {
|
|
17
|
-
case Enums_1.ScheduleType.Reminder:
|
|
18
|
-
let reminderSchedule = baseSchedule;
|
|
19
|
-
details =
|
|
20
|
-
reminderSchedule.Reminder.Message + ' (' + reminderSchedule.Reminder.MessageType + ')';
|
|
21
|
-
break;
|
|
22
|
-
case Enums_1.ScheduleType.Report:
|
|
23
|
-
let reportSchedule = baseSchedule;
|
|
24
|
-
details = reportSchedule.ReportName + ' (' + reportSchedule.ExportDestination + ')';
|
|
25
|
-
break;
|
|
26
|
-
case Enums_1.ScheduleType.ipushpull:
|
|
27
|
-
let iPushPullSchedule = baseSchedule;
|
|
28
|
-
details =
|
|
29
|
-
iPushPullSchedule.IPushPullReport.ReportName +
|
|
30
|
-
' (' +
|
|
31
|
-
iPushPullSchedule.IPushPullReport.Folder +
|
|
32
|
-
'/' +
|
|
33
|
-
iPushPullSchedule.IPushPullReport.Page +
|
|
34
|
-
' - ' +
|
|
35
|
-
iPushPullSchedule.Transmission +
|
|
36
|
-
')';
|
|
37
|
-
break;
|
|
38
|
-
case Enums_1.ScheduleType.Glue42:
|
|
39
|
-
let glue42Schedule = baseSchedule;
|
|
40
|
-
details = glue42Schedule.Glue42Report.ReportName;
|
|
41
|
-
break;
|
|
42
|
-
case Enums_1.ScheduleType.OpenFin:
|
|
43
|
-
let openFinSchedule = baseSchedule;
|
|
44
|
-
details = openFinSchedule.OpenFinReport.ReportName;
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
48
|
-
colItems[0].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: baseSchedule.ScheduleType });
|
|
49
|
-
colItems[1].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: details });
|
|
50
|
-
colItems[2].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: UIHelper_1.default.getScheduleDescription(baseSchedule.Schedule) }));
|
|
51
|
-
let buttons = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { showSuspend: true, suspendableObject: baseSchedule, editClick: () => this.props.onEdit(baseSchedule), shareClick: (config) => this.props.onShare(config),
|
|
52
|
-
// schedulers are not shareable
|
|
53
|
-
showShare: false, confirmDeleteAction: this.props.onDeleteConfirm, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
|
|
54
|
-
colItems[3].Content = buttons;
|
|
55
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { isSuspended: baseSchedule.IsSuspended, colItems: colItems });
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.ScheduleEntityRow = ScheduleEntityRow;
|