@adaptabletools/adaptable 12.0.0-canary.1 → 12.0.0-canary.4
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 +156 -142
- package/index.css +49 -14
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -0
- 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/DashboardOptions.d.ts +1 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +17 -4
- package/src/AdaptableOptions/EditOptions.d.ts +2 -62
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -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/FormatColumnApiImpl.js +2 -2
- 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/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/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 +33 -31
- 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/GeneralConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +13 -13
- package/src/Utilities/ExpressionFunctions/dateUtils.js +2 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +20 -10
- package/src/Utilities/Helpers/AdaptableHelper.js +4 -3
- package/src/Utilities/Helpers/DateHelper.js +10 -5
- 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/IRowEditService.d.ts +3 -3
- 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/ColumnsList.d.ts +8 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +3 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +30 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +88 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +18 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +17 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +2 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +2 -75
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +3 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +9 -4
- package/src/View/AdaptableWizardView/Utils.d.ts +1 -0
- package/src/View/AdaptableWizardView/Utils.js +25 -0
- package/src/View/AdaptableWizardView/Wizard.d.ts +54 -0
- package/src/View/AdaptableWizardView/Wizard.js +100 -0
- package/src/View/AdaptableWizardView/helper.js +6 -3
- package/src/View/AdaptableWizardView/index.d.ts +1 -22
- package/src/View/AdaptableWizardView/index.js +2 -103
- 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 +5 -3
- 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 +8 -5
- 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 +3 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +6 -4
- 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 +7 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +7 -4
- 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 +10 -10
- 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/ConditionalStyleRuleWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +3 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +5 -3
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +3 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +8 -5
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +7 -4
- 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 +7 -4
- package/src/View/Export/Wizard/ReportNameWizardSection.js +7 -4
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +7 -4
- 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 +6 -4
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +3 -2
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +11 -6
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +7 -4
- 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 +9 -5
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +5 -3
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +5 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -4
- 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/PlusMinusRuleWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +3 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +8 -5
- 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 +7 -4
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +7 -4
- 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 +3 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -3
- 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 +5 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +3 -2
- 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 +3 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +8 -5
- 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/Interface/IAdaptableWizard.d.ts +2 -2
- package/src/View/Wizard/ObjectTagsWizardSection.js +5 -3
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +5 -6
- package/src/View/Wizard/OnePageAdaptableWizard.js +45 -174
- package/src/View/Wizard/OnePageWizards.d.ts +37 -0
- package/src/View/Wizard/OnePageWizards.js +191 -0
- package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
- 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 +28 -26
- 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 +15 -8
- 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.d.ts +208 -90
- package/src/metamodel/adaptable.metamodel.js +263 -156
- 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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Reducer, ReactNode } from 'react';
|
|
3
|
+
import { AdaptableOptions } from '../../types';
|
|
4
|
+
import { ConfigurationWizardProps } from './AdaptableConfigurationDialog/ConfigurationWizard';
|
|
5
|
+
export interface AdaptableWizardViewProps {
|
|
6
|
+
adaptableOptions?: Omit<AdaptableOptions, 'primaryKey'> & {
|
|
7
|
+
primaryKey?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Default true.
|
|
11
|
+
*/
|
|
12
|
+
ddEnabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* When true the the configuration wizard will be shown.
|
|
15
|
+
* It will use the available information in adaptableOptions & gridOptions.
|
|
16
|
+
* This mode skips over interpreting data to figure-out columns.
|
|
17
|
+
*/
|
|
18
|
+
skipToWizard?: boolean;
|
|
19
|
+
onInit: (adaptableOptions: AdaptableOptions) => any;
|
|
20
|
+
fileContentsToJSON?: (str: string) => Promise<any> | any;
|
|
21
|
+
readFile?: (file: File) => Promise<any>;
|
|
22
|
+
fileAccept?: string;
|
|
23
|
+
helpText?: React.ReactNode;
|
|
24
|
+
loadingMessage?: ReactNode;
|
|
25
|
+
defaultActionMessage?: ReactNode;
|
|
26
|
+
dragOverActionMessage?: ReactNode;
|
|
27
|
+
fetchData?: () => Promise<Record<string, any>[]>;
|
|
28
|
+
showFetchDataWizard?: boolean;
|
|
29
|
+
startSections?: ConfigurationWizardProps['startSections'];
|
|
30
|
+
prepareData?: (data: any, file?: File) => {
|
|
31
|
+
columns: string[];
|
|
32
|
+
data: any[];
|
|
33
|
+
primaryKey?: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare const initialState: Partial<WizardState>;
|
|
37
|
+
export declare const reducer: Reducer<WizardState, any>;
|
|
38
|
+
interface WizardState {
|
|
39
|
+
dropped: boolean;
|
|
40
|
+
error: any;
|
|
41
|
+
adaptableOptions: AdaptableOptions;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The wizard in a few modes:
|
|
45
|
+
*
|
|
46
|
+
* 1. Based on data:
|
|
47
|
+
* 1.1 Drag and drop a file
|
|
48
|
+
* 1.2 Fetch data from a url
|
|
49
|
+
*
|
|
50
|
+
* 2. Based on configuration:
|
|
51
|
+
* Provide a schema, on how the data looks like.
|
|
52
|
+
*/
|
|
53
|
+
export declare const Wizard: (props: AdaptableWizardViewProps) => JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wizard = exports.reducer = exports.initialState = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const helper_1 = require("./helper");
|
|
8
|
+
const rebass_1 = require("rebass");
|
|
9
|
+
const AdaptableConfigurationDialog_1 = tslib_1.__importDefault(require("./AdaptableConfigurationDialog"));
|
|
10
|
+
const FileDroppable_1 = tslib_1.__importDefault(require("../../components/FileDroppable"));
|
|
11
|
+
const Utils_1 = require("./Utils");
|
|
12
|
+
exports.initialState = {
|
|
13
|
+
dropped: false,
|
|
14
|
+
};
|
|
15
|
+
const reducer = (state, action) => {
|
|
16
|
+
if (action.type === 'DROPPED') {
|
|
17
|
+
return Object.assign(Object.assign({}, state), { adaptableOptions: action.payload, dropped: true, error: null });
|
|
18
|
+
}
|
|
19
|
+
if (action.type === 'ERROR') {
|
|
20
|
+
return Object.assign(Object.assign({}, state), { dropped: false, error: action.payload });
|
|
21
|
+
}
|
|
22
|
+
if (action.type === 'CANCEL') {
|
|
23
|
+
return Object.assign(Object.assign({}, state), { error: null, dropped: false });
|
|
24
|
+
}
|
|
25
|
+
return state;
|
|
26
|
+
};
|
|
27
|
+
exports.reducer = reducer;
|
|
28
|
+
/**
|
|
29
|
+
* The wizard in a few modes:
|
|
30
|
+
*
|
|
31
|
+
* 1. Based on data:
|
|
32
|
+
* 1.1 Drag and drop a file
|
|
33
|
+
* 1.2 Fetch data from a url
|
|
34
|
+
*
|
|
35
|
+
* 2. Based on configuration:
|
|
36
|
+
* Provide a schema, on how the data looks like.
|
|
37
|
+
*/
|
|
38
|
+
const Wizard = (props) => {
|
|
39
|
+
var _a;
|
|
40
|
+
const [state, dispatch] = react_1.useReducer(exports.reducer, Object.assign(Object.assign({}, exports.initialState), { adaptableOptions: props.adaptableOptions }));
|
|
41
|
+
const [droppableKey, setDroppableKey] = react_1.useState(Date.now());
|
|
42
|
+
const [isDataLoading, setIsDataLoading] = react_1.useState(false);
|
|
43
|
+
const handleDataSource = (array, file) => {
|
|
44
|
+
const dataSourceInfo = (props.prepareData || helper_1.prepareDataSource)(array, file);
|
|
45
|
+
try {
|
|
46
|
+
Utils_1.validDataSource(dataSourceInfo);
|
|
47
|
+
}
|
|
48
|
+
catch (err) {
|
|
49
|
+
return dispatch({
|
|
50
|
+
type: 'ERROR',
|
|
51
|
+
payload: `Invalid adaptable configuration - ${err}`,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const gridOptions = helper_1.prepareGridOptions(dataSourceInfo);
|
|
55
|
+
const adaptableOptions = Object.assign({}, props.adaptableOptions);
|
|
56
|
+
adaptableOptions.adaptableId = adaptableOptions.adaptableId || (file ? file.name : '');
|
|
57
|
+
adaptableOptions.gridOptions = gridOptions;
|
|
58
|
+
if (dataSourceInfo.primaryKey) {
|
|
59
|
+
adaptableOptions.primaryKey = dataSourceInfo.primaryKey;
|
|
60
|
+
}
|
|
61
|
+
const shouldShowWizard = props.fetchData ? Boolean(props.showFetchDataWizard) : true;
|
|
62
|
+
if (shouldShowWizard) {
|
|
63
|
+
dispatch({
|
|
64
|
+
type: 'DROPPED',
|
|
65
|
+
payload: adaptableOptions,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
props.onInit(adaptableOptions);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
let wizard;
|
|
73
|
+
if (props.skipToWizard || state.dropped) {
|
|
74
|
+
wizard = (React.createElement(AdaptableConfigurationDialog_1.default, { startSections: props.startSections, adaptableOptions: state.adaptableOptions, onCancel: () => {
|
|
75
|
+
// change the file droppable component key
|
|
76
|
+
// so it's remounted and it's in the initial state
|
|
77
|
+
setDroppableKey(Date.now());
|
|
78
|
+
dispatch({
|
|
79
|
+
type: 'CANCEL',
|
|
80
|
+
});
|
|
81
|
+
}, onFinish: (adaptableOptions) => {
|
|
82
|
+
props.onInit(adaptableOptions);
|
|
83
|
+
} }));
|
|
84
|
+
}
|
|
85
|
+
react_1.useEffect(() => {
|
|
86
|
+
if (props.fetchData) {
|
|
87
|
+
setIsDataLoading(true);
|
|
88
|
+
props.fetchData().then((data) => {
|
|
89
|
+
handleDataSource(data);
|
|
90
|
+
setIsDataLoading(false);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}, []);
|
|
94
|
+
const ddEnabled = (_a = props.ddEnabled) !== null && _a !== void 0 ? _a : !props.fetchData;
|
|
95
|
+
return (React.createElement(React.Fragment, null,
|
|
96
|
+
ddEnabled && (React.createElement(FileDroppable_1.default, { key: droppableKey, className: 'ab-nocode-wizard', toJSON: props.fileContentsToJSON, readFile: props.readFile, fileAccept: props.fileAccept, helpText: props.helpText, message: state.error, defaultText: props.defaultActionMessage, dragOverText: props.dragOverActionMessage, loadingText: props.loadingMessage, onDropSuccess: handleDataSource })),
|
|
97
|
+
isDataLoading && (React.createElement(rebass_1.Flex, { className: 'ab-nocode-wizard', alignItems: "center", justifyContent: "center", flexDirection: "column" }, props.loadingMessage || 'Loading ...')),
|
|
98
|
+
wizard));
|
|
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;
|
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
4
|
-
interface AdaptableWizardViewProps {
|
|
5
|
-
adaptableOptions?: Omit<AdaptableOptions, 'primaryKey'> & {
|
|
6
|
-
primaryKey?: string;
|
|
7
|
-
};
|
|
8
|
-
onInit: (adaptableOptions: AdaptableOptions) => any;
|
|
9
|
-
fileContentsToJSON?: (str: string) => Promise<any> | any;
|
|
10
|
-
readFile?: (file: File) => Promise<any>;
|
|
11
|
-
fileAccept?: string;
|
|
12
|
-
helpText?: React.ReactNode;
|
|
13
|
-
loadingMessage?: ReactNode;
|
|
14
|
-
defaultActionMessage?: ReactNode;
|
|
15
|
-
dragOverActionMessage?: ReactNode;
|
|
16
|
-
fetchData?: () => Promise<Record<string, any>[]>;
|
|
17
|
-
showFetchDataWizard?: boolean;
|
|
18
|
-
prepareData?: (data: any, file?: File) => {
|
|
19
|
-
columns: string[];
|
|
20
|
-
data: any[];
|
|
21
|
-
primaryKey?: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
2
|
+
import { AdaptableWizardViewProps } from './Wizard';
|
|
24
3
|
declare const AdaptableWizardView: React.FunctionComponent<AdaptableWizardViewProps>;
|
|
25
4
|
export default AdaptableWizardView;
|
|
@@ -3,109 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const React = tslib_1.__importStar(require("react"));
|
|
5
5
|
const styled_components_1 = require("styled-components");
|
|
6
|
-
const react_1 = require("react");
|
|
7
6
|
const theme_1 = tslib_1.__importDefault(require("../../theme"));
|
|
8
|
-
const
|
|
9
|
-
const helper_1 = require("./helper");
|
|
10
|
-
const rebass_1 = require("rebass");
|
|
11
|
-
const AdaptableConfigurationDialog_1 = tslib_1.__importDefault(require("./AdaptableConfigurationDialog"));
|
|
7
|
+
const Wizard_1 = require("./Wizard");
|
|
12
8
|
const AdaptableWizardView = (props) => (React.createElement(styled_components_1.ThemeProvider, { theme: theme_1.default },
|
|
13
|
-
React.createElement(Wizard, Object.assign({}, props))));
|
|
14
|
-
const initialState = {
|
|
15
|
-
dropped: false,
|
|
16
|
-
};
|
|
17
|
-
const reducer = (state, action) => {
|
|
18
|
-
if (action.type === 'DROPPED') {
|
|
19
|
-
return Object.assign(Object.assign({}, state), { adaptableOptions: action.payload, dropped: true, error: null });
|
|
20
|
-
}
|
|
21
|
-
if (action.type === 'ERROR') {
|
|
22
|
-
return Object.assign(Object.assign({}, state), { dropped: false, error: action.payload });
|
|
23
|
-
}
|
|
24
|
-
if (action.type === 'CANCEL') {
|
|
25
|
-
return Object.assign(Object.assign({}, state), { error: null, dropped: false });
|
|
26
|
-
}
|
|
27
|
-
return state;
|
|
28
|
-
};
|
|
29
|
-
const validDataSource = (dataSourceInfo) => {
|
|
30
|
-
if (!dataSourceInfo || !Array.isArray(dataSourceInfo.columns)) {
|
|
31
|
-
throw `We can't find any columns in your configuration`;
|
|
32
|
-
}
|
|
33
|
-
if (!dataSourceInfo.columns.length) {
|
|
34
|
-
throw 'You should have at least one column';
|
|
35
|
-
}
|
|
36
|
-
const allStringColumns = dataSourceInfo.columns.reduce((acc, col) => {
|
|
37
|
-
if (!col || typeof col !== 'string') {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
return acc;
|
|
41
|
-
}, true);
|
|
42
|
-
if (!allStringColumns) {
|
|
43
|
-
throw `Some of your columns are not strings`;
|
|
44
|
-
}
|
|
45
|
-
if (!Array.isArray(dataSourceInfo.data)) {
|
|
46
|
-
throw `We can't find the data array in your configuration`;
|
|
47
|
-
}
|
|
48
|
-
return true;
|
|
49
|
-
};
|
|
50
|
-
const Wizard = (props) => {
|
|
51
|
-
const [state, dispatch] = react_1.useReducer(reducer, Object.assign(Object.assign({}, initialState), { adaptableOptions: props.adaptableOptions }));
|
|
52
|
-
const [droppableKey, setDroppableKey] = react_1.useState(Date.now());
|
|
53
|
-
const [isDataLoading, setIsDataLoading] = react_1.useState(false);
|
|
54
|
-
const handleDataSource = (array, file) => {
|
|
55
|
-
const dataSourceInfo = (props.prepareData || helper_1.prepareDataSource)(array, file);
|
|
56
|
-
try {
|
|
57
|
-
validDataSource(dataSourceInfo);
|
|
58
|
-
}
|
|
59
|
-
catch (err) {
|
|
60
|
-
return dispatch({
|
|
61
|
-
type: 'ERROR',
|
|
62
|
-
payload: `Invalid adaptable configuration - ${err}`,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const gridOptions = helper_1.prepareGridOptions(dataSourceInfo);
|
|
66
|
-
const adaptableOptions = Object.assign({}, props.adaptableOptions);
|
|
67
|
-
adaptableOptions.adaptableId = adaptableOptions.adaptableId || (file ? file.name : '');
|
|
68
|
-
adaptableOptions.gridOptions = gridOptions;
|
|
69
|
-
if (dataSourceInfo.primaryKey) {
|
|
70
|
-
adaptableOptions.primaryKey = dataSourceInfo.primaryKey;
|
|
71
|
-
}
|
|
72
|
-
const shouldShowWizard = props.fetchData ? Boolean(props.showFetchDataWizard) : true;
|
|
73
|
-
if (shouldShowWizard) {
|
|
74
|
-
dispatch({
|
|
75
|
-
type: 'DROPPED',
|
|
76
|
-
payload: adaptableOptions,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
props.onInit(adaptableOptions);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
let wizard;
|
|
84
|
-
if (state.dropped) {
|
|
85
|
-
wizard = (React.createElement(AdaptableConfigurationDialog_1.default, { adaptableOptions: state.adaptableOptions, onCancel: () => {
|
|
86
|
-
// change the file droppable component key
|
|
87
|
-
// so it's remounted and it's in the initial state
|
|
88
|
-
setDroppableKey(Date.now());
|
|
89
|
-
dispatch({
|
|
90
|
-
type: 'CANCEL',
|
|
91
|
-
});
|
|
92
|
-
}, onFinish: (adaptableOptions) => {
|
|
93
|
-
props.onInit(adaptableOptions);
|
|
94
|
-
} }));
|
|
95
|
-
}
|
|
96
|
-
react_1.useEffect(() => {
|
|
97
|
-
if (props.fetchData) {
|
|
98
|
-
setIsDataLoading(true);
|
|
99
|
-
props.fetchData().then((data) => {
|
|
100
|
-
handleDataSource(data);
|
|
101
|
-
setIsDataLoading(false);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}, []);
|
|
105
|
-
const ddEnabled = !props.fetchData;
|
|
106
|
-
return (React.createElement(React.Fragment, null,
|
|
107
|
-
ddEnabled && (React.createElement(FileDroppable_1.default, { key: droppableKey, className: 'ab-nocode-wizard', toJSON: props.fileContentsToJSON, readFile: props.readFile, fileAccept: props.fileAccept, helpText: props.helpText, message: state.error, defaultText: props.defaultActionMessage, dragOverText: props.dragOverActionMessage, loadingText: props.loadingMessage, onDropSuccess: handleDataSource })),
|
|
108
|
-
isDataLoading && (React.createElement(rebass_1.Flex, { className: 'ab-nocode-wizard', alignItems: "center", justifyContent: "center", flexDirection: "column" }, props.loadingMessage || 'Loading ...')),
|
|
109
|
-
wizard));
|
|
110
|
-
};
|
|
9
|
+
React.createElement(Wizard_1.Wizard, Object.assign({}, props))));
|
|
111
10
|
exports.default = AdaptableWizardView;
|
|
@@ -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,8 +82,9 @@ exports.renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
|
82
82
|
return React.createElement(React.Fragment, null, x.label);
|
|
83
83
|
} }));
|
|
84
84
|
};
|
|
85
|
-
exports.
|
|
86
|
-
|
|
85
|
+
exports.renderAlertBehaviourSummary = renderAlertBehaviourSummary;
|
|
86
|
+
const AlertBehaviourWizardSection = (props) => {
|
|
87
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
87
88
|
const { AlertProperties = {} } = data;
|
|
88
89
|
const rowAddedAlert = api.internalApi.isAlertDefinitionForAddedRowChangeEvent(data);
|
|
89
90
|
const rowRemovedAlert = api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(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,9 +20,9 @@ const DEFAULT_BUTTONS = [
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
];
|
|
23
|
-
|
|
23
|
+
const renderAlertDisplaySummary = () => {
|
|
24
24
|
var _a;
|
|
25
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
25
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
26
26
|
if (!((_a = data.AlertProperties) === null || _a === void 0 ? void 0 : _a.DisplayNotification)) {
|
|
27
27
|
return (React.createElement(rebass_1.Text, { fontSize: 2 },
|
|
28
28
|
"Alert type ",
|
|
@@ -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,9 +56,10 @@ 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
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
62
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
61
63
|
const messageType = data.MessageType;
|
|
62
64
|
const messageText = api.alertApi.getAlertDescription(data);
|
|
63
65
|
const adaptableAlert = {
|
|
@@ -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,8 +5,8 @@ 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
|
-
|
|
9
|
-
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.
|
|
8
|
+
const BaseAlertRulesWizardSection = (props) => {
|
|
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);
|
|
12
12
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: !wholeRowScope ? false : true, showObservable: !wholeRowScope ? false : true, showBoolean: true, showPredicate: true, descriptions: {
|
|
@@ -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,8 +7,8 @@ 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
|
-
|
|
11
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
10
|
+
const BaseAlertScopeWizardSection = (props) => {
|
|
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: {
|
|
14
14
|
rowScope: 'Changes anywhere in the row will trigger an alert',
|
|
@@ -40,8 +40,9 @@ exports.BaseAlertScopeWizardSection = (props) => {
|
|
|
40
40
|
props.onChange(newData);
|
|
41
41
|
} })));
|
|
42
42
|
};
|
|
43
|
-
exports.
|
|
44
|
-
|
|
43
|
+
exports.BaseAlertScopeWizardSection = BaseAlertScopeWizardSection;
|
|
44
|
+
const renderBaseAlertScopeSummary = (data) => {
|
|
45
|
+
const { api: { scopeApi }, } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
45
46
|
const columnsInScope = scopeApi.getColumnsForScope(data.Scope);
|
|
46
47
|
return (React.createElement(React.Fragment, null,
|
|
47
48
|
React.createElement(rebass_1.Box, 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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isValidAlertRules = void 0;
|
|
4
4
|
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
5
|
-
|
|
5
|
+
const isValidAlertRules = (alert, api, context) => {
|
|
6
6
|
let valid = true;
|
|
7
7
|
if (!alert.Rule.Predicate &&
|
|
8
8
|
!alert.Rule.BooleanExpression &&
|
|
@@ -43,3 +43,4 @@ exports.isValidAlertRules = (alert, api, context) => {
|
|
|
43
43
|
}
|
|
44
44
|
return true;
|
|
45
45
|
};
|
|
46
|
+
exports.isValidAlertRules = isValidAlertRules;
|
|
@@ -16,4 +16,4 @@ export declare class CalculatedColumnSummaryComponent extends React.Component<Ca
|
|
|
16
16
|
onFinishWizard: (calculatedColumn: CalculatedColumn) => void;
|
|
17
17
|
canFinishWizard(): boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare let CalculatedColumnSummary: import("react-redux").ConnectedComponent<typeof CalculatedColumnSummaryComponent,
|
|
19
|
+
export declare let CalculatedColumnSummary: import("react-redux").ConnectedComponent<typeof CalculatedColumnSummaryComponent, import("react-redux").Omit<React.ClassAttributes<CalculatedColumnSummaryComponent> & CalculatedColumnSummaryProps, "ref" | "key" | "api" | "onSuspend" | "accessLevel" | "popupParams" | "onClearPopupParams" | "teamSharingActivated" | "onClosePopup" | "moduleInfo" | "onUnSuspend" | "modalContainer" | "onShare" | "onEdit" | "summarisedColumn" | "CalculatedColumns" | "onDeleteConfirm">>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCalculatedColumnSettingTags = void 0;
|
|
4
|
-
|
|
4
|
+
const getCalculatedColumnSettingTags = (settings) => {
|
|
5
5
|
const { DataType, Width, Filterable, Resizable, Groupable, Sortable, Pivotable, Aggregatable } = settings !== null && settings !== void 0 ? settings : {};
|
|
6
6
|
return [
|
|
7
7
|
DataType ? `DataType: ${DataType}` : null,
|
|
@@ -14,3 +14,4 @@ exports.getCalculatedColumnSettingTags = (settings) => {
|
|
|
14
14
|
Aggregatable ? 'Aggregatable' : null,
|
|
15
15
|
].filter(Boolean);
|
|
16
16
|
};
|
|
17
|
+
exports.getCalculatedColumnSettingTags = getCalculatedColumnSettingTags;
|