@adaptabletools/adaptable 12.0.0-canary.2 → 12.0.0-canary.5
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/base.css +41 -14
- package/bundle.cjs.js +159 -142
- package/index.css +49 -14
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +181 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +5 -9
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -4
- package/src/AdaptableOptions/EditOptions.d.ts +8 -62
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +6 -1
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
- package/src/AdaptableOptions/StateOptions.d.ts +10 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -5
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -112
- package/src/Api/ActionApi.d.ts +24 -0
- package/src/Api/{Events/RowFormSubmitted.js → ActionApi.js} +0 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/AlertApi.d.ts +3 -3
- package/src/Api/ConfigApi.d.ts +1 -1
- package/src/Api/EventApi.d.ts +9 -9
- package/src/Api/Events/ActionRowSubmitted.d.ts +34 -0
- package/src/Api/Events/ActionRowSubmitted.js +2 -0
- package/src/Api/GridApi.d.ts +0 -14
- package/src/Api/Implementation/ActionApiImpl.d.ts +8 -0
- package/src/Api/Implementation/ActionApiImpl.js +56 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +3 -3
- package/src/Api/Implementation/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnApiImpl.js +2 -2
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -3
- package/src/Api/Implementation/GridApiImpl.js +0 -44
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -3
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +2 -1
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +4 -3
- package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +2 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -4
- package/src/Api/SmartEditApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +10 -3
- package/src/Api/UserInterfaceApi.d.ts +1 -5
- package/src/PredefinedConfig/AlertState.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptableAlert.js +4 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +24 -18
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -36
- package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -1
- package/src/PredefinedConfig/Common/FormContext.d.ts +3 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/StatusBarState.d.ts +5 -2
- package/src/PredefinedConfig/Uuid.js +2 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +16 -8
- package/src/Redux/ActionsReducers/ApplicationRedux.js +8 -4
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +6 -3
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +10 -5
- package/src/Redux/ActionsReducers/CellSummaryRedux.js +2 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +14 -7
- package/src/Redux/ActionsReducers/CustomSortRedux.js +14 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +24 -12
- package/src/Redux/ActionsReducers/ExportRedux.js +16 -8
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +16 -8
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +14 -7
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +14 -7
- package/src/Redux/ActionsReducers/GridRedux.js +38 -19
- package/src/Redux/ActionsReducers/LayoutRedux.js +30 -15
- package/src/Redux/ActionsReducers/PluginsRedux.js +4 -2
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +16 -8
- package/src/Redux/ActionsReducers/PopupRedux.js +37 -19
- package/src/Redux/ActionsReducers/QueryRedux.js +12 -6
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +8 -4
- package/src/Redux/ActionsReducers/ScheduleRedux.js +58 -29
- package/src/Redux/ActionsReducers/ShortcutRedux.js +14 -7
- package/src/Redux/ActionsReducers/SmartEditRedux.js +6 -3
- package/src/Redux/ActionsReducers/StatusBarRedux.js +10 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +103 -51
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +4 -2
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +22 -11
- package/src/Redux/ActionsReducers/ThemeRedux.js +10 -5
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +16 -8
- package/src/Redux/DeadRedux.js +16 -8
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -1
- package/src/Redux/Store/AdaptableStore.js +10 -2
- package/src/Strategy/AlertModule.d.ts +2 -18
- package/src/Strategy/AlertModule.js +2 -1
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -10
- package/src/Strategy/DashboardModule.js +3 -1
- package/src/Strategy/DataChangeHistoryModule.d.ts +2 -8
- package/src/Strategy/DataSetModule.d.ts +2 -13
- package/src/Strategy/ExportModule.d.ts +2 -13
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/FilterModule.d.ts +2 -14
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +2 -9
- package/src/Strategy/GridInfoModule.js +6 -2
- package/src/Strategy/LayoutModule.d.ts +2 -17
- package/src/Strategy/LayoutModule.js +6 -3
- package/src/Strategy/PlusMinusModule.d.ts +2 -9
- package/src/Strategy/QuickSearchModule.d.ts +2 -7
- package/src/Strategy/ScheduleModule.d.ts +2 -13
- package/src/Strategy/ShortcutModule.d.ts +2 -9
- package/src/Strategy/StatusBarModule.js +2 -2
- package/src/Strategy/SystemStatusModule.d.ts +2 -7
- package/src/Strategy/ThemeModule.d.ts +2 -8
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -1
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +2 -1
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +2 -1
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +2 -1
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +2 -1
- package/src/Strategy/Utilities/getExportRowsViewItems.js +2 -1
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +2 -6
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +2 -1
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +2 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +2 -1
- package/src/Strategy/Utilities/getScopeViewItems.js +2 -1
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +2 -1
- package/src/Strategy/Utilities/getStyleViewItems.js +2 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +21 -13
- package/src/Utilities/ExpressionFunctions/dateUtils.js +2 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +20 -10
- package/src/Utilities/Extensions/TypeExtensions.d.ts +30 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +1 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +6 -16
- package/src/Utilities/Helpers/DateHelper.d.ts +27 -0
- package/src/Utilities/Helpers/DateHelper.js +43 -6
- package/src/Utilities/Helpers/Helper.js +2 -1
- package/src/Utilities/Helpers/LoggingHelper.js +2 -1
- package/src/Utilities/Helpers/StyleHelper.js +8 -4
- package/src/Utilities/MenuItem.d.ts +4 -3
- package/src/Utilities/MenuItem.js +9 -3
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -0
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +3 -3
- package/src/Utilities/Services/MetamodelService.d.ts +7 -1
- package/src/Utilities/Services/MetamodelService.js +82 -6
- package/src/Utilities/Services/ModuleService.js +3 -1
- package/src/Utilities/Services/RowEditService.d.ts +6 -6
- package/src/Utilities/Services/RowEditService.js +24 -25
- package/src/Utilities/isAdaptableObject.js +2 -1
- package/src/Utilities/isMacLike.js +2 -1
- package/src/Utilities/license/decode.js +1 -1
- package/src/Utilities/reorder.js +2 -1
- package/src/Utilities/runIfNotResolvedIn.js +2 -1
- package/src/Utilities/waitForCondition.d.ts +1 -1
- package/src/Utilities/waitForCondition.js +2 -1
- package/src/View/AdaptableContext.js +2 -1
- package/src/View/AdaptableView.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +13 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +13 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +2 -1
- package/src/View/AdaptableWizardView/Utils.js +2 -1
- package/src/View/AdaptableWizardView/Wizard.js +4 -2
- package/src/View/AdaptableWizardView/helper.js +6 -3
- package/src/View/Alert/ActiveAlertsPanel.js +2 -1
- package/src/View/Alert/AlertEmptyView.js +2 -1
- package/src/View/Alert/AlertStatusSubPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +3 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -3
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +2 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
- package/src/View/CellSummary/CellSummaryPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -1
- package/src/View/ColorPicker.d.ts +5 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +11 -11
- package/src/View/Components/AdaptableInput/index.d.ts +2 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -2
- package/src/View/Components/Buttons/ButtonClone.js +2 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonEdit.js +2 -1
- package/src/View/Components/Buttons/ButtonNew.js +2 -1
- package/src/View/Components/ColumnSelector/index.js +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +6 -3
- package/src/View/Components/ExpressionWizard.js +2 -1
- package/src/View/Components/ExternalRenderer.js +2 -1
- package/src/View/Components/FilterForm/FilterForm.js +2 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
- package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +2 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -2
- package/src/View/Components/ListBox/DualListBoxEditor.js +2 -1
- package/src/View/Components/ModuleValueSelector/index.js +2 -1
- package/src/View/Components/NewScopeComponent.js +6 -3
- package/src/View/Components/Panels/PanelFooter.js +2 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -429
- package/src/View/Components/Panels/PanelWithImage.js +2 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -5
- package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +6 -5
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +4 -4
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +2 -1
- package/src/View/Components/Popups/AdaptableToaster.js +2 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +4 -2
- package/src/View/Components/Popups/Utilities.js +8 -4
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +2 -1
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/TagValueSelector/index.js +4 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +2 -1
- package/src/View/Components/WizardSummaryPage.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +4 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
- package/src/View/Dashboard/Dashboard.d.ts +1 -1
- package/src/View/Dashboard/Dashboard.js +4 -3
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +7 -0
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -6
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +13 -9
- package/src/View/DataSet/DataSetSelector.js +2 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +2 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportSelector.js +2 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ReportExportDropdown.js +2 -1
- package/src/View/Export/Wizard/NewReportWizard.js +4 -2
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportNameWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +6 -3
- package/src/View/Filter/ActiveFiltersPanel.js +2 -1
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +2 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +4 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +10 -5
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +6 -3
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +2 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +8 -4
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +4 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +2 -1
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -1
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +5 -5
- package/src/View/KeyHint.js +2 -1
- package/src/View/Layout/EditCurrentLayoutButton.js +2 -1
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/LayoutEditorStandalonePopup.js +2 -1
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +2 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +2 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/reducer.js +4 -2
- package/src/View/Layout/Wizard/LayoutEditor/utils.js +2 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +2 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +6 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.js +2 -1
- package/src/View/Query/ExpandedQueryPopup.js +2 -1
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +6 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +6 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -3
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -1
- package/src/View/StateManagement/StateManagementPopup.js +2 -1
- package/src/View/StateManagement/StateManagementViewPanel.js +2 -1
- package/src/View/StateManagement/components/ClearButton.js +2 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -1
- package/src/View/StateManagement/components/LoadButton.js +2 -1
- package/src/View/StateManagement/handleExportState.js +2 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +2 -1
- package/src/View/StatusBar/StatusBarPanel.js +2 -1
- package/src/View/StatusBar/StatusBarPopup.js +5 -4
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +2 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +2 -1
- package/src/View/UIHelper.d.ts +2 -0
- package/src/View/UIHelper.js +12 -11
- package/src/View/Wizard/AdaptableWizard.js +2 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +4 -2
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -5
- package/src/View/Wizard/OnePageWizards.js +8 -4
- package/src/View/Wizard/useKeyboardNavigation.js +2 -1
- package/src/View/renderWithAdaptableContext.js +2 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.js +31 -28
- package/src/agGrid/CheckboxRenderer.js +2 -1
- package/src/agGrid/FilterWrapper.js +2 -1
- package/src/agGrid/FloatingFilterWrapper.js +2 -1
- package/src/agGrid/PercentBarRenderer.js +2 -1
- package/src/agGrid/agGridHelper.js +3 -1
- package/src/agGrid/agGridMenuHelper.js +13 -10
- package/src/agGrid/createAgStatusPanelComponent.js +2 -1
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +8 -5
- package/src/components/AdaptableIconComponent/index.d.ts +10 -0
- package/src/components/AdaptableIconComponent/index.js +40 -0
- package/src/components/CheckBox/index.js +2 -1
- package/src/components/CodeBlock/index.js +2 -1
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/Caption.js +1 -1
- package/src/components/Datepicker/DatepickerContext.js +2 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/ModuleManager.d.ts +1 -0
- package/src/components/DragAndDropContext/ModuleManager.js +5 -4
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +3 -2
- package/src/components/DragAndDropContext/UnusedPanel.js +14 -12
- package/src/components/EllipsisContainer/index.js +4 -2
- package/src/components/ExpressionEditor/EditorContext.js +2 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +2 -1
- package/src/components/ExpressionEditor/NamedQueryContext.js +3 -1
- package/src/components/FileDroppable/index.js +2 -1
- package/src/components/FormLayout/index.js +2 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +2 -4
- package/src/components/Loader/Loader.js +4 -2
- package/src/components/Logo/index.js +2 -1
- package/src/components/Modal/Backdrop.js +2 -1
- package/src/components/Modal/index.js +2 -1
- package/src/components/OverlayTrigger/Overlay.js +2 -1
- package/src/components/OverlayTrigger/index.js +2 -1
- package/src/components/OverlayTrigger/utils.js +6 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +2 -1
- package/src/components/Radio/index.js +4 -2
- package/src/components/ResizeObserver/getResizeObserverObject.js +2 -1
- package/src/components/ResizeObserver/index.js +6 -3
- package/src/components/SelectList.js +2 -1
- package/src/components/SelectableList/index.js +2 -1
- package/src/components/SimpleButton/index.d.ts +2 -1
- package/src/components/SimpleButton/index.js +19 -6
- package/src/components/StylePreview.js +2 -1
- package/src/components/Tabs/index.js +6 -3
- package/src/components/Textarea/index.d.ts +5 -1
- package/src/components/ToggleButton/index.js +2 -1
- package/src/components/WindowModal/WindowModal.js +2 -1
- package/src/components/WindowModal/useStacking.js +2 -1
- package/src/components/icons/DefaultIcon.js +2 -1
- package/src/components/icons/index.d.ts +3 -1
- package/src/components/icons/index.js +10 -2
- package/src/components/utils/useContainerScrollObserver/index.js +2 -1
- package/src/components/utils/useGlobalEvent.js +2 -1
- package/src/components/utils/useLatest.js +2 -1
- package/src/components/utils/useRerender.js +2 -1
- package/src/components/utils/uuid.js +2 -1
- package/src/metamodel/adaptable-metamodel-model.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +211 -101
- package/src/metamodel/adaptable.metamodel.js +1 -12874
- package/src/types.d.ts +7 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/RowFormSubmitted.d.ts +0 -19
- package/src/components/ApplicationIcon.d.ts +0 -6
- package/src/components/ApplicationIcon.js +0 -13
|
@@ -2,20 +2,20 @@ import { IRowEditService } from './Interface/IRowEditService';
|
|
|
2
2
|
import { RowNode } from '@ag-grid-community/all-modules';
|
|
3
3
|
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
4
4
|
import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
5
|
-
import {
|
|
5
|
+
import { CreateActionRowContext, EditActionRowContext } from '../../AdaptableOptions/ActionOptions';
|
|
6
6
|
export declare class RowEditService implements IRowEditService {
|
|
7
7
|
private adaptableApi;
|
|
8
8
|
private adaptableInstance;
|
|
9
9
|
private rowEditFormOptions;
|
|
10
10
|
constructor(adaptableApi: AdaptableApi);
|
|
11
|
-
buildRowEditForm(rowNode: RowNode): AdaptableForm<
|
|
12
|
-
buildRowCreateForm(clonedRowNode?: RowNode): AdaptableForm<
|
|
13
|
-
private
|
|
11
|
+
buildRowEditForm(rowNode: RowNode): AdaptableForm<EditActionRowContext>;
|
|
12
|
+
buildRowCreateForm(clonedRowNode?: RowNode): AdaptableForm<CreateActionRowContext>;
|
|
13
|
+
private buildActionRow;
|
|
14
14
|
private getFormTitle;
|
|
15
15
|
private getFormDescription;
|
|
16
16
|
private buildFormParamContext;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
17
|
+
private buildActionRowFields;
|
|
18
|
+
private buidActionRowButtons;
|
|
19
19
|
private isColumnEditable;
|
|
20
20
|
private buildFormField;
|
|
21
21
|
private getFormFieldLabel;
|
|
@@ -6,30 +6,29 @@ class RowEditService {
|
|
|
6
6
|
this.adaptableApi = adaptableApi;
|
|
7
7
|
this.adaptableInstance = this.adaptableApi.internalApi.getAdaptableInstance();
|
|
8
8
|
this.rowEditFormOptions =
|
|
9
|
-
this.adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.
|
|
10
|
-
if (this.adaptableInstance.adaptableOptions.
|
|
11
|
-
.autoHandleActionRowButtons)
|
|
12
|
-
this.adaptableInstance.api.eventApi.on('RowFormSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
|
|
9
|
+
this.adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.actionOptions.actionRowFormOptions;
|
|
10
|
+
if (this.adaptableInstance.adaptableOptions.actionOptions.autoHandleActionRowButtons) {
|
|
11
|
+
this.adaptableInstance.api.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
buildRowEditForm(rowNode) {
|
|
16
|
-
return this.
|
|
15
|
+
return this.buildActionRow('rowEdited', rowNode);
|
|
17
16
|
}
|
|
18
17
|
buildRowCreateForm(clonedRowNode) {
|
|
19
|
-
return this.
|
|
18
|
+
return this.buildActionRow('rowCreated', clonedRowNode);
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
const formFields = this.
|
|
23
|
-
const formButtons = this.
|
|
20
|
+
buildActionRow(type, rowNode) {
|
|
21
|
+
const formFields = this.buildActionRowFields(type, rowNode);
|
|
22
|
+
const formButtons = this.buidActionRowButtons(type, rowNode);
|
|
24
23
|
const formTitle = this.getFormTitle(type, rowNode);
|
|
25
24
|
const formDescription = this.getFormDescription(type, rowNode);
|
|
26
|
-
const
|
|
25
|
+
const actionRowForm = {
|
|
27
26
|
title: formTitle,
|
|
28
27
|
description: formDescription,
|
|
29
28
|
fields: formFields,
|
|
30
29
|
buttons: formButtons,
|
|
31
30
|
};
|
|
32
|
-
return
|
|
31
|
+
return actionRowForm;
|
|
33
32
|
}
|
|
34
33
|
getFormTitle(type, rowNode) {
|
|
35
34
|
if (this.rowEditFormOptions.formTitle == undefined) {
|
|
@@ -51,7 +50,7 @@ class RowEditService {
|
|
|
51
50
|
type: type,
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
|
-
|
|
53
|
+
buildActionRowFields(type, rowNode) {
|
|
55
54
|
const relevantColumns = this.adaptableApi.columnApi
|
|
56
55
|
.getColumns()
|
|
57
56
|
.filter((column) => {
|
|
@@ -61,7 +60,7 @@ class RowEditService {
|
|
|
61
60
|
.filter((column) => !this.adaptableApi.columnApi.isActionRowButtonColumn(column.columnId));
|
|
62
61
|
return relevantColumns.map((column) => this.buildFormField(type, column, rowNode));
|
|
63
62
|
}
|
|
64
|
-
|
|
63
|
+
buidActionRowButtons(type, rowNode) {
|
|
65
64
|
// 1. check if there are custom user provided buttons
|
|
66
65
|
if (Array.isArray(this.rowEditFormOptions.formButtons)) {
|
|
67
66
|
return this.rowEditFormOptions.formButtons;
|
|
@@ -95,8 +94,8 @@ class RowEditService {
|
|
|
95
94
|
rowNode: rowNode,
|
|
96
95
|
adaptableApi: context.adaptableApi,
|
|
97
96
|
};
|
|
98
|
-
this.adaptableApi.eventApi.emit('
|
|
99
|
-
(_b = (_a = this.adaptableInstance.adaptableOptions.
|
|
97
|
+
this.adaptableApi.eventApi.emit('ActionRowSubmitted', eventInfo);
|
|
98
|
+
(_b = (_a = this.adaptableInstance.adaptableOptions.actionOptions.actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
100
99
|
},
|
|
101
100
|
};
|
|
102
101
|
return [cancelButton, saveButton];
|
|
@@ -168,22 +167,22 @@ class RowEditService {
|
|
|
168
167
|
label: value,
|
|
169
168
|
}));
|
|
170
169
|
}
|
|
171
|
-
autoHandleActionRowButtons(
|
|
172
|
-
const { adaptableApi } =
|
|
173
|
-
if (
|
|
174
|
-
const { rowNode, formData } =
|
|
170
|
+
autoHandleActionRowButtons(actionRowSubmittedInfo) {
|
|
171
|
+
const { adaptableApi } = actionRowSubmittedInfo;
|
|
172
|
+
if (actionRowSubmittedInfo.type === 'rowEdited') {
|
|
173
|
+
const { rowNode, formData } = actionRowSubmittedInfo;
|
|
175
174
|
const newRowData = Object.assign(Object.assign({}, rowNode.data), formData);
|
|
176
175
|
adaptableApi.gridApi.updateGridData([newRowData]);
|
|
177
176
|
}
|
|
178
|
-
if (
|
|
179
|
-
const { rowNode } =
|
|
177
|
+
if (actionRowSubmittedInfo.type === 'rowDeleted') {
|
|
178
|
+
const { rowNode } = actionRowSubmittedInfo;
|
|
180
179
|
const deletedRowData = rowNode.data;
|
|
181
180
|
adaptableApi.gridApi.deleteGridData([deletedRowData]);
|
|
182
181
|
}
|
|
183
|
-
if (
|
|
184
|
-
const { formData } =
|
|
185
|
-
const setPrimaryKeyValueFunction = adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.
|
|
186
|
-
.
|
|
182
|
+
if (actionRowSubmittedInfo.type === 'rowCreated') {
|
|
183
|
+
const { formData } = actionRowSubmittedInfo;
|
|
184
|
+
const setPrimaryKeyValueFunction = adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.actionOptions
|
|
185
|
+
.setPrimaryKeyValue;
|
|
187
186
|
const newRowData = typeof setPrimaryKeyValueFunction === 'function'
|
|
188
187
|
? setPrimaryKeyValueFunction({
|
|
189
188
|
rowData: formData,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isAdaptableObject = void 0;
|
|
4
4
|
// pretty primitive type guard for AdaptableObject, but currently there is no better/safer way
|
|
5
|
-
|
|
5
|
+
const isAdaptableObject = (object) => {
|
|
6
6
|
return object != undefined && typeof object['Uuid'] === 'string';
|
|
7
7
|
};
|
|
8
|
+
exports.isAdaptableObject = isAdaptableObject;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isMacLike = void 0;
|
|
4
|
-
|
|
4
|
+
const isMacLike = () => {
|
|
5
5
|
const globalObject = typeof globalThis !== 'undefined' ? globalThis : window;
|
|
6
6
|
return /(Mac|iPhone|iPod|iPad)/i.test(globalObject.navigator.platform);
|
|
7
7
|
};
|
|
8
|
+
exports.isMacLike = isMacLike;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.decode=exports.fieldsToLicenseDetails=void 0;const e=require("./hashing"),t=()=>new Error("Invalid License")
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.decode=exports.fieldsToLicenseDetails=void 0;const e=require("./hashing"),t=()=>new Error("Invalid License"),r=e=>{var r;const o=e.reduce(((e,t)=>(e.set(t.name,t.value),e)),new Map),s={count:o.get("DeveloperCount")?Number(o.get("DeveloperCount")):0,start:new Date(o.get("StartDate")),end:new Date(o.get("EndDate")),owner:o.get("Owner"),timestamp:o.get("TS")?Number(o.get("TS")):0,trial:"true"===o.get("Trial"),ref:null!==(r=o.get("Ref"))&&void 0!==r?r:""};if(!(s.start&&s.end&&s.owner&&"boolean"==typeof s.trial&&s.ref))throw t();return s};exports.fieldsToLicenseDetails=r;const o=r=>{let o="",s=r.split("|").map((e=>{let[t,r]=e.split("=");return"C"===t&&(o=r),{name:t,value:r}}));if(!o)throw t();const n=o.split(",").reverse(),a=n.pop();n.forEach(((r,o)=>{const n=s[o];if(e.compute_string(n.value)!==r)throw t()}));const i=[...s];i.pop();const l=i.map((e=>`${e.name}=${e.value}`)).join("|");if(e.compute_string(l)!==a)throw t();return s=s.map((e=>Object.assign(Object.assign({},e),{value:decodeURI(e.value)}))),exports.fieldsToLicenseDetails(s)};exports.decode=o;
|
package/src/Utilities/reorder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reorder = void 0;
|
|
4
|
-
|
|
4
|
+
const reorder = (list, startIndex, endIndex) => {
|
|
5
5
|
const result = [...list];
|
|
6
6
|
if (startIndex > list.length - 1) {
|
|
7
7
|
// not much that we can do if the dragged item is out of bounds...
|
|
@@ -14,3 +14,4 @@ exports.reorder = (list, startIndex, endIndex) => {
|
|
|
14
14
|
result.splice(endIndex, 0, removed);
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
|
+
exports.reorder = reorder;
|
|
@@ -8,7 +8,7 @@ exports.runIfNotResolvedIn = void 0;
|
|
|
8
8
|
* @param callback Called if promise does not resolve in the time defined by 'delay'
|
|
9
9
|
* @param delay Time after which if the promise was not resolved the callback (fn) is called.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
const runIfNotResolvedIn = async (promise, callback, delay = 100) => {
|
|
12
12
|
let isFulfilled = false;
|
|
13
13
|
promise === null || promise === void 0 ? void 0 : promise.then(() => {
|
|
14
14
|
isFulfilled = true;
|
|
@@ -21,3 +21,4 @@ exports.runIfNotResolvedIn = async (promise, callback, delay = 100) => {
|
|
|
21
21
|
})();
|
|
22
22
|
return promise;
|
|
23
23
|
};
|
|
24
|
+
exports.runIfNotResolvedIn = runIfNotResolvedIn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const waitForCondition: (isReady: () => boolean, timeout?: number) => Promise<
|
|
1
|
+
export declare const waitForCondition: (isReady: () => boolean, timeout?: number) => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.waitForCondition = void 0;
|
|
4
|
-
|
|
4
|
+
const waitForCondition = (isReady, timeout = 5000) => {
|
|
5
5
|
const startTime = Date.now();
|
|
6
6
|
const ready = isReady();
|
|
7
7
|
if (ready) {
|
|
@@ -26,3 +26,4 @@ exports.waitForCondition = (isReady, timeout = 5000) => {
|
|
|
26
26
|
wait(resolve);
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
+
exports.waitForCondition = waitForCondition;
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const AdaptableContext = React.createContext(null);
|
|
7
7
|
exports.default = AdaptableContext;
|
|
8
|
-
|
|
8
|
+
const useAdaptable = () => {
|
|
9
9
|
return React.useContext(AdaptableContext);
|
|
10
10
|
};
|
|
11
|
+
exports.useAdaptable = useAdaptable;
|
|
@@ -60,4 +60,5 @@ function mapDispatchToProps(dispatch) {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
let AdaptableWrapper = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(AdaptableView);
|
|
63
|
-
|
|
63
|
+
const AdaptableApp = ({ Adaptable }) => renderWithAdaptableContext_1.renderWithAdaptableContext(React.createElement(AdaptableWrapper, { Adaptable: Adaptable }), Adaptable);
|
|
64
|
+
exports.AdaptableApp = AdaptableApp;
|
|
@@ -7,7 +7,19 @@ export interface CustomSection<T> {
|
|
|
7
7
|
details?: AdaptableFrameworkComponent;
|
|
8
8
|
isValid?: OnePageWizardSection<T>['isValid'];
|
|
9
9
|
isVisible?: OnePageWizardSection<T>['isVisible'];
|
|
10
|
-
render: (
|
|
10
|
+
render: (
|
|
11
|
+
/**
|
|
12
|
+
* Internal state of adaptableOptions.
|
|
13
|
+
*/
|
|
14
|
+
adaptableOptions: AdaptableOptions,
|
|
15
|
+
/**
|
|
16
|
+
* With this callback adaptableOptions can be changed.
|
|
17
|
+
*/
|
|
18
|
+
onChange: (newAdaptableOptions: AdaptableOptions) => void,
|
|
19
|
+
/**
|
|
20
|
+
* Set the selected columns.
|
|
21
|
+
*/
|
|
22
|
+
setSelectedColumns: (selectedColumn: Record<string, boolean>) => void) => React.ReactNode;
|
|
11
23
|
}
|
|
12
24
|
export interface ConfigurationWizardProps {
|
|
13
25
|
adaptableOptions: AdaptableOptions;
|
|
@@ -8,7 +8,7 @@ const StringExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/E
|
|
|
8
8
|
const OnePageWizards_1 = require("../../Wizard/OnePageWizards");
|
|
9
9
|
const ConfigurationWizardColumnsStep_1 = require("./ConfigurationWizardColumnsStep");
|
|
10
10
|
const ConfigurationForm_1 = tslib_1.__importDefault(require("./ConfigurationForm"));
|
|
11
|
-
|
|
11
|
+
const ConfigurationWizard = (props) => {
|
|
12
12
|
const [isPrimaryKeySelected, setIsValid] = React.useState(true);
|
|
13
13
|
const [adaptableOptions, setAdaptableOptions] = react_1.useState(props.adaptableOptions);
|
|
14
14
|
const [selectedColumns, setSelectedColumns] = react_1.useState(() => {
|
|
@@ -21,14 +21,16 @@ exports.ConfigurationWizard = (props) => {
|
|
|
21
21
|
const handleFinish = () => {
|
|
22
22
|
const newAdaptableOptions = Object.assign({}, adaptableOptions);
|
|
23
23
|
newAdaptableOptions.gridOptions = Object.assign({}, adaptableOptions.gridOptions);
|
|
24
|
-
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
if (columnsHandle.current) {
|
|
25
|
+
newAdaptableOptions.gridOptions.columnDefs = columnsHandle
|
|
26
|
+
.current.getColumns()
|
|
27
|
+
.map((column) => {
|
|
28
|
+
const newColumn = Object.assign(Object.assign({}, column), { headerName: column.caption || StringExtensions_1.default.Humanize(column.field) });
|
|
29
|
+
delete newColumn.caption;
|
|
30
|
+
return newColumn;
|
|
31
|
+
});
|
|
32
|
+
newAdaptableOptions.primaryKey = columnsHandle.current.getPrimaryKey();
|
|
33
|
+
}
|
|
32
34
|
setAdaptableOptions(newAdaptableOptions);
|
|
33
35
|
props.onFinish(newAdaptableOptions);
|
|
34
36
|
};
|
|
@@ -76,7 +78,7 @@ exports.ConfigurationWizard = (props) => {
|
|
|
76
78
|
isValid: section.isValid,
|
|
77
79
|
isVisible: section.isVisible,
|
|
78
80
|
render: () => {
|
|
79
|
-
return section.render(adaptableOptions, setAdaptableOptions);
|
|
81
|
+
return section.render(adaptableOptions, setAdaptableOptions, setSelectedColumns);
|
|
80
82
|
},
|
|
81
83
|
};
|
|
82
84
|
}),
|
|
@@ -85,3 +87,4 @@ exports.ConfigurationWizard = (props) => {
|
|
|
85
87
|
}
|
|
86
88
|
return (React.createElement(OnePageWizards_1.OnePageWizard, { data: adaptableOptions, name: "Configure", defaultCurrentSectionName: 'default section name', onHide: () => null, onFinish: handleFinish, sections: sections }));
|
|
87
89
|
};
|
|
90
|
+
exports.ConfigurationWizard = ConfigurationWizard;
|
package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js
CHANGED
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
7
7
|
const ColumnsList_1 = tslib_1.__importDefault(require("./ColumnsList"));
|
|
8
|
-
|
|
8
|
+
const ConfigurationWizardColumnsStep = (props) => {
|
|
9
9
|
var _a, _b;
|
|
10
10
|
return (React.createElement(Panel_1.default, { header: '', border: "none", bodyScroll: false, bodyProps: {
|
|
11
11
|
style: { overflow: 'auto', display: 'flex', flexFlow: 'column' },
|
|
@@ -14,3 +14,4 @@ exports.ConfigurationWizardColumnsStep = (props) => {
|
|
|
14
14
|
props.setPrimaryKeyIsNotSelected(valid);
|
|
15
15
|
}, selectedColumns: props.selectedColumns, onChange: props.onColumnChange, onSelectionChange: props.onSelectionChange, columns: (_b = (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.gridOptions) === null || _b === void 0 ? void 0 : _b.columnDefs })));
|
|
16
16
|
};
|
|
17
|
+
exports.ConfigurationWizardColumnsStep = ConfigurationWizardColumnsStep;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validDataSource = void 0;
|
|
4
|
-
|
|
4
|
+
const validDataSource = (dataSourceInfo) => {
|
|
5
5
|
if (!dataSourceInfo || !Array.isArray(dataSourceInfo.columns)) {
|
|
6
6
|
throw `We can't find any columns in your configuration`;
|
|
7
7
|
}
|
|
@@ -22,3 +22,4 @@ exports.validDataSource = (dataSourceInfo) => {
|
|
|
22
22
|
}
|
|
23
23
|
return true;
|
|
24
24
|
};
|
|
25
|
+
exports.validDataSource = validDataSource;
|
|
@@ -12,7 +12,7 @@ const Utils_1 = require("./Utils");
|
|
|
12
12
|
exports.initialState = {
|
|
13
13
|
dropped: false,
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
const reducer = (state, action) => {
|
|
16
16
|
if (action.type === 'DROPPED') {
|
|
17
17
|
return Object.assign(Object.assign({}, state), { adaptableOptions: action.payload, dropped: true, error: null });
|
|
18
18
|
}
|
|
@@ -24,6 +24,7 @@ exports.reducer = (state, action) => {
|
|
|
24
24
|
}
|
|
25
25
|
return state;
|
|
26
26
|
};
|
|
27
|
+
exports.reducer = reducer;
|
|
27
28
|
/**
|
|
28
29
|
* The wizard in a few modes:
|
|
29
30
|
*
|
|
@@ -34,7 +35,7 @@ exports.reducer = (state, action) => {
|
|
|
34
35
|
* 2. Based on configuration:
|
|
35
36
|
* Provide a schema, on how the data looks like.
|
|
36
37
|
*/
|
|
37
|
-
|
|
38
|
+
const Wizard = (props) => {
|
|
38
39
|
var _a;
|
|
39
40
|
const [state, dispatch] = react_1.useReducer(exports.reducer, Object.assign(Object.assign({}, exports.initialState), { adaptableOptions: props.adaptableOptions }));
|
|
40
41
|
const [droppableKey, setDroppableKey] = react_1.useState(Date.now());
|
|
@@ -96,3 +97,4 @@ exports.Wizard = (props) => {
|
|
|
96
97
|
isDataLoading && (React.createElement(rebass_1.Flex, { className: 'ab-nocode-wizard', alignItems: "center", justifyContent: "center", flexDirection: "column" }, props.loadingMessage || 'Loading ...')),
|
|
97
98
|
wizard));
|
|
98
99
|
};
|
|
100
|
+
exports.Wizard = Wizard;
|
|
@@ -11,7 +11,7 @@ exports.prepareGridOptions = exports.getColTypeFromValue = exports.prepareDataSo
|
|
|
11
11
|
* so if we receive v2, we transform it to 1
|
|
12
12
|
* @param json
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
const prepareDataSource = (json, _file) => {
|
|
15
15
|
if (!Array.isArray(json) || !json.length) {
|
|
16
16
|
return {
|
|
17
17
|
primaryKey: undefined,
|
|
@@ -45,6 +45,7 @@ exports.prepareDataSource = (json, _file) => {
|
|
|
45
45
|
data,
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
+
exports.prepareDataSource = prepareDataSource;
|
|
48
49
|
const typeToColType = {
|
|
49
50
|
string: 'abColDefString',
|
|
50
51
|
number: 'abColDefNumber',
|
|
@@ -52,7 +53,7 @@ const typeToColType = {
|
|
|
52
53
|
date: 'abColDefDate',
|
|
53
54
|
};
|
|
54
55
|
const abColDefCustom = 'abColDefCustom';
|
|
55
|
-
|
|
56
|
+
const getColTypeFromValue = (value) => {
|
|
56
57
|
const dataType = typeof value;
|
|
57
58
|
let columnType = typeToColType[dataType] || typeToColType.string;
|
|
58
59
|
if (value instanceof Date) {
|
|
@@ -63,7 +64,8 @@ exports.getColTypeFromValue = (value) => {
|
|
|
63
64
|
}
|
|
64
65
|
return columnType;
|
|
65
66
|
};
|
|
66
|
-
exports.
|
|
67
|
+
exports.getColTypeFromValue = getColTypeFromValue;
|
|
68
|
+
const prepareGridOptions = (dataSourceInfo) => {
|
|
67
69
|
const firstItem = dataSourceInfo.data[0];
|
|
68
70
|
const columnDefs = dataSourceInfo.columns.map((columnName) => {
|
|
69
71
|
const firstItemValue = firstItem[columnName];
|
|
@@ -91,3 +93,4 @@ exports.prepareGridOptions = (dataSourceInfo) => {
|
|
|
91
93
|
};
|
|
92
94
|
return gridOptions;
|
|
93
95
|
};
|
|
96
|
+
exports.prepareGridOptions = prepareGridOptions;
|
|
@@ -7,9 +7,10 @@ const AdaptableContext_1 = require("../AdaptableContext");
|
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const AdaptableObjectCompactList_1 = require("../Components/AdaptableObjectList/AdaptableObjectCompactList");
|
|
9
9
|
const react_redux_1 = require("react-redux");
|
|
10
|
-
|
|
10
|
+
const ActiveAlertsPanel = () => {
|
|
11
11
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
12
12
|
const filterModule = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
|
|
13
13
|
const alerts = react_redux_1.useSelector((state) => state.System.AdaptableAlerts);
|
|
14
14
|
return React.createElement(AdaptableObjectCompactList_1.AdaptableObjectCompactList, { abObjects: alerts, module: filterModule });
|
|
15
15
|
};
|
|
16
|
+
exports.ActiveAlertsPanel = ActiveAlertsPanel;
|
|
@@ -4,7 +4,7 @@ exports.AlertEmptyView = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
7
|
-
|
|
7
|
+
const AlertEmptyView = (props) => {
|
|
8
8
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
9
9
|
const accessLevel = adaptable.api.internalApi
|
|
10
10
|
.getEntitlementService()
|
|
@@ -14,3 +14,4 @@ exports.AlertEmptyView = (props) => {
|
|
|
14
14
|
: "Click 'New' to start creating Alert Definitions. An Alert is triggered whenever an edit - or external data change - matches the Rule in the Alert Definition.";
|
|
15
15
|
return React.createElement(React.Fragment, null, text);
|
|
16
16
|
};
|
|
17
|
+
exports.AlertEmptyView = AlertEmptyView;
|
|
@@ -10,7 +10,7 @@ const StatusBarPanel_1 = require("../StatusBar/StatusBarPanel");
|
|
|
10
10
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
11
11
|
const ActiveAlertsPanel_1 = require("./ActiveAlertsPanel");
|
|
12
12
|
const initialStyle = { color: '', background: '' };
|
|
13
|
-
|
|
13
|
+
const AlertStatusPanel = () => {
|
|
14
14
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
15
15
|
const [style, setStyle] = React.useState(initialStyle);
|
|
16
16
|
const module = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
|
|
@@ -50,3 +50,4 @@ exports.AlertStatusPanel = () => {
|
|
|
50
50
|
let alertsPanel = React.createElement(ActiveAlertsPanel_1.ActiveAlertsPanel, null);
|
|
51
51
|
return (React.createElement(StatusBarPanel_1.StatusBarPanel, { tooltip: module.moduleInfo.ModuleName, "data-name": module.moduleInfo.ModuleName, color: style.color, backgroundColor: style.background, onAction: handleAction, icon: module.moduleInfo.Glyph, popover: alerts.length ? alertsPanel : null, content: text }));
|
|
52
52
|
};
|
|
53
|
+
exports.AlertStatusPanel = AlertStatusPanel;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getAlertButtonStyle = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const UIHelper_1 = tslib_1.__importDefault(require("../../UIHelper"));
|
|
6
|
-
|
|
6
|
+
const getAlertButtonStyle = (alerts) => {
|
|
7
7
|
const messageType = UIHelper_1.default.getMessageTypeFromAdaptableAlerts(alerts);
|
|
8
8
|
const messageTypeColor = UIHelper_1.default.getColorByMessageType(messageType);
|
|
9
9
|
const buttonBackground = UIHelper_1.default.getButtonColourForAdaptableAlerts(alerts, messageTypeColor);
|
|
@@ -13,3 +13,4 @@ exports.getAlertButtonStyle = (alerts) => {
|
|
|
13
13
|
background: buttonBackground,
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
exports.getAlertButtonStyle = getAlertButtonStyle;
|
|
@@ -48,7 +48,7 @@ const HighlightStyle = (props) => {
|
|
|
48
48
|
} }))))));
|
|
49
49
|
};
|
|
50
50
|
// both used in wizard and list view
|
|
51
|
-
|
|
51
|
+
const renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
52
52
|
const { AlertProperties = {} } = alert;
|
|
53
53
|
const values = [
|
|
54
54
|
AlertProperties.PreventEdit ? { label: 'Prevent Cell Edit', id: 'preventCellEdit' } : null,
|
|
@@ -82,7 +82,8 @@ exports.renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
|
82
82
|
return React.createElement(React.Fragment, null, x.label);
|
|
83
83
|
} }));
|
|
84
84
|
};
|
|
85
|
-
exports.
|
|
85
|
+
exports.renderAlertBehaviourSummary = renderAlertBehaviourSummary;
|
|
86
|
+
const AlertBehaviourWizardSection = (props) => {
|
|
86
87
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
87
88
|
const { AlertProperties = {} } = data;
|
|
88
89
|
const rowAddedAlert = api.internalApi.isAlertDefinitionForAddedRowChangeEvent(data);
|
|
@@ -126,3 +127,4 @@ exports.AlertBehaviourWizardSection = (props) => {
|
|
|
126
127
|
onChange({ LogToConsole });
|
|
127
128
|
} }, "Log To Console"))));
|
|
128
129
|
};
|
|
130
|
+
exports.AlertBehaviourWizardSection = AlertBehaviourWizardSection;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { AlertButton } from '../../../PredefinedConfig/AlertState';
|
|
3
3
|
import { AdaptableAlert } from '../../../PredefinedConfig/Common/AdaptableAlert';
|
|
4
4
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
5
|
-
import {
|
|
5
|
+
import { AlertFormContext } from '../../../types';
|
|
6
6
|
declare type AlertButtonsEditorProps = {
|
|
7
|
-
AlertButtons: AlertButton<
|
|
8
|
-
onChange: (buttons: AlertButton<
|
|
7
|
+
AlertButtons: AlertButton<AlertFormContext>[];
|
|
8
|
+
onChange: (buttons: AlertButton<AlertFormContext>[]) => void;
|
|
9
9
|
api: AdaptableApi;
|
|
10
10
|
adaptableAlert: AdaptableAlert;
|
|
11
11
|
};
|
|
@@ -12,7 +12,7 @@ const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayou
|
|
|
12
12
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
13
13
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
14
14
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/StringExtensions"));
|
|
15
|
-
|
|
15
|
+
const AlertButtonsEditor = (props) => {
|
|
16
16
|
const { api, adaptableAlert } = props;
|
|
17
17
|
const onChange = (newButtons) => {
|
|
18
18
|
props.onChange(newButtons);
|
|
@@ -147,3 +147,4 @@ exports.AlertButtonsEditor = (props) => {
|
|
|
147
147
|
btnUserFunctions.join(', ')))) : null))));
|
|
148
148
|
})));
|
|
149
149
|
};
|
|
150
|
+
exports.AlertButtonsEditor = AlertButtonsEditor;
|
|
@@ -20,7 +20,7 @@ const DEFAULT_BUTTONS = [
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
];
|
|
23
|
-
|
|
23
|
+
const renderAlertDisplaySummary = () => {
|
|
24
24
|
var _a;
|
|
25
25
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
26
26
|
if (!((_a = data.AlertProperties) === null || _a === void 0 ? void 0 : _a.DisplayNotification)) {
|
|
@@ -31,7 +31,8 @@ exports.renderAlertDisplaySummary = () => {
|
|
|
31
31
|
}
|
|
32
32
|
return React.createElement(exports.AlertPreview, { api: api, alertDefinition: data });
|
|
33
33
|
};
|
|
34
|
-
exports.
|
|
34
|
+
exports.renderAlertDisplaySummary = renderAlertDisplaySummary;
|
|
35
|
+
const AlertPreview = (_a) => {
|
|
35
36
|
var { alertDefinition, api, focusFirstButton } = _a, boxProps = tslib_1.__rest(_a, ["alertDefinition", "api", "focusFirstButton"]);
|
|
36
37
|
const mapButtons = React.useCallback((button) => {
|
|
37
38
|
let buttonStyle = button.ButtonStyle;
|
|
@@ -55,7 +56,8 @@ exports.AlertPreview = (_a) => {
|
|
|
55
56
|
return (React.createElement(rebass_1.Box, Object.assign({}, boxProps, { style: Object.assign({ border: '1px solid var(--ab-color-inputborder)' }, boxProps.style) }),
|
|
56
57
|
React.createElement(AdaptablePopupAlert_1.AdaptablePopupAlert, { headless: true, focusFirstButton: focusFirstButton, adaptableAlert: alertToPreview, onClose: () => { } })));
|
|
57
58
|
};
|
|
58
|
-
exports.
|
|
59
|
+
exports.AlertPreview = AlertPreview;
|
|
60
|
+
const AlertDisplayWizardSection = (props) => {
|
|
59
61
|
var _a, _b, _c, _d;
|
|
60
62
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
61
63
|
const messageType = data.MessageType;
|
|
@@ -106,3 +108,4 @@ exports.AlertDisplayWizardSection = (props) => {
|
|
|
106
108
|
React.createElement(Tabs_1.Tabs.Tab, null, "Alert preview"),
|
|
107
109
|
React.createElement(Tabs_1.Tabs.Content, null, typeof data.AlertForm === 'string' ? (React.createElement(rebass_1.Text, { fontSize: 2 }, "Preview not available because form is dynamically driven")) : (React.createElement(exports.AlertPreview, { alertDefinition: data, api: api }))))) : null));
|
|
108
110
|
};
|
|
111
|
+
exports.AlertDisplayWizardSection = AlertDisplayWizardSection;
|
|
@@ -6,10 +6,11 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const BaseAlertRulesWizardSection_1 = require("./BaseAlertRulesWizardSection");
|
|
7
7
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
8
|
const Tag_1 = require("../../../components/Tag");
|
|
9
|
-
|
|
9
|
+
const AlertRulesWizardSection = (props) => {
|
|
10
10
|
return React.createElement(BaseAlertRulesWizardSection_1.BaseAlertRulesWizardSection, Object.assign({}, props));
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.AlertRulesWizardSection = AlertRulesWizardSection;
|
|
13
|
+
const renderAlertRulesSummary = (alertDefinition) => {
|
|
13
14
|
return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: alertDefinition, renderPredicate: (contents) => {
|
|
14
15
|
return (React.createElement(React.Fragment, null,
|
|
15
16
|
"Alert condition ",
|
|
@@ -20,3 +21,4 @@ exports.renderAlertRulesSummary = (alertDefinition) => {
|
|
|
20
21
|
React.createElement(Tag_1.Tag, null, contents)));
|
|
21
22
|
} }));
|
|
22
23
|
};
|
|
24
|
+
exports.renderAlertRulesSummary = renderAlertRulesSummary;
|
|
@@ -4,6 +4,7 @@ exports.AlertScopeWizardSection = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const BaseAlertScopeWizardSection_1 = require("./BaseAlertScopeWizardSection");
|
|
7
|
-
|
|
7
|
+
const AlertScopeWizardSection = (props) => {
|
|
8
8
|
return React.createElement(BaseAlertScopeWizardSection_1.BaseAlertScopeWizardSection, Object.assign({}, props));
|
|
9
9
|
};
|
|
10
|
+
exports.AlertScopeWizardSection = AlertScopeWizardSection;
|
|
@@ -20,7 +20,7 @@ const react_redux_1 = require("react-redux");
|
|
|
20
20
|
const AlertRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/AlertRedux"));
|
|
21
21
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
22
22
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
23
|
-
|
|
23
|
+
const AlertWizard = (props) => {
|
|
24
24
|
const [alertDefinition, setAlertDefinition] = react_1.useState(() => {
|
|
25
25
|
var _a;
|
|
26
26
|
const alertDefinition = props.data
|
|
@@ -177,3 +177,4 @@ exports.AlertWizard = (props) => {
|
|
|
177
177
|
},
|
|
178
178
|
] }));
|
|
179
179
|
};
|
|
180
|
+
exports.AlertWizard = AlertWizard;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
7
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
|
-
|
|
8
|
+
const BaseAlertRulesWizardSection = (props) => {
|
|
9
9
|
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
10
10
|
const wholeRowScope = props.wholeRowScope != null ? props.wholeRowScope : api.scopeApi.scopeIsAll(data.Scope);
|
|
11
11
|
const predicateDefs = api.alertApi.getAlertPredicateDefsForScope(data.Scope);
|
|
@@ -25,3 +25,4 @@ exports.BaseAlertRulesWizardSection = (props) => {
|
|
|
25
25
|
" is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
|
|
26
26
|
} }));
|
|
27
27
|
};
|
|
28
|
+
exports.BaseAlertRulesWizardSection = BaseAlertRulesWizardSection;
|
|
@@ -7,7 +7,7 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
8
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
9
9
|
const ValueSelector_1 = require("../../Components/ValueSelector");
|
|
10
|
-
|
|
10
|
+
const BaseAlertScopeWizardSection = (props) => {
|
|
11
11
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
12
12
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
|
|
13
13
|
React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
@@ -40,7 +40,8 @@ exports.BaseAlertScopeWizardSection = (props) => {
|
|
|
40
40
|
props.onChange(newData);
|
|
41
41
|
} })));
|
|
42
42
|
};
|
|
43
|
-
exports.
|
|
43
|
+
exports.BaseAlertScopeWizardSection = BaseAlertScopeWizardSection;
|
|
44
|
+
const renderBaseAlertScopeSummary = (data) => {
|
|
44
45
|
const { api: { scopeApi }, } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
45
46
|
const columnsInScope = scopeApi.getColumnsForScope(data.Scope);
|
|
46
47
|
return (React.createElement(React.Fragment, null,
|
|
@@ -55,3 +56,4 @@ exports.renderBaseAlertScopeSummary = (data) => {
|
|
|
55
56
|
React.createElement(rebass_1.Text, { fontSize: 2, mb: 2 }, "Changes in columns of the selected data-types trigger an alert"),
|
|
56
57
|
React.createElement(ValueSelector_1.ValueOptionsTags, { readOnly: true, options: data.Scope.DataTypes, value: data.Scope.DataTypes, toLabel: (c) => c, allowWrap: true, renderLabel: (c) => React.createElement(React.Fragment, null, `DataType: ${c}`), toIdentifier: (c) => c }))) : null)));
|
|
57
58
|
};
|
|
59
|
+
exports.renderBaseAlertScopeSummary = renderBaseAlertScopeSummary;
|