@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
|
@@ -19,7 +19,7 @@ const react_redux_1 = require("react-redux");
|
|
|
19
19
|
const isValidFlashingCellRules_1 = require("./isValidFlashingCellRules");
|
|
20
20
|
const FlashingCellRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
21
21
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
22
|
-
|
|
22
|
+
const FlashingCellWizard = (props) => {
|
|
23
23
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
24
24
|
const [flashingCell, setFlashingCell] = react_1.useState(() => {
|
|
25
25
|
let flashingCell = props.data
|
|
@@ -104,3 +104,4 @@ exports.FlashingCellWizard = (props) => {
|
|
|
104
104
|
},
|
|
105
105
|
] }));
|
|
106
106
|
};
|
|
107
|
+
exports.FlashingCellWizard = FlashingCellWizard;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isValidFlashingCellRules = void 0;
|
|
4
4
|
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
5
|
-
|
|
5
|
+
const isValidFlashingCellRules = (flashingCell, api, context) => {
|
|
6
6
|
let valid = true;
|
|
7
7
|
if (!flashingCell.Rule.Predicate && !flashingCell.Rule.BooleanExpression) {
|
|
8
8
|
return 'No Rule defined for Flashing Cell';
|
|
@@ -28,3 +28,4 @@ exports.isValidFlashingCellRules = (flashingCell, api, context) => {
|
|
|
28
28
|
}
|
|
29
29
|
return true;
|
|
30
30
|
};
|
|
31
|
+
exports.isValidFlashingCellRules = isValidFlashingCellRules;
|
|
@@ -77,7 +77,7 @@ const DateFormatPresets = [
|
|
|
77
77
|
'yyyyMMdd',
|
|
78
78
|
'HH:mm:ss',
|
|
79
79
|
];
|
|
80
|
-
|
|
80
|
+
const getFormatColumnFormatSummaryValue = (data, formattedColumnApi) => {
|
|
81
81
|
let content = 'N/A';
|
|
82
82
|
if (!data.DisplayFormat) {
|
|
83
83
|
content = 'N/A';
|
|
@@ -95,6 +95,7 @@ exports.getFormatColumnFormatSummaryValue = (data, formattedColumnApi) => {
|
|
|
95
95
|
}
|
|
96
96
|
return content;
|
|
97
97
|
};
|
|
98
|
+
exports.getFormatColumnFormatSummaryValue = getFormatColumnFormatSummaryValue;
|
|
98
99
|
function splitArrayInTwo(arr) {
|
|
99
100
|
const half = Math.floor(arr.length - 1 / 2);
|
|
100
101
|
return [arr.slice(0, half), arr.slice(half)];
|
|
@@ -114,10 +115,11 @@ const renderCustomFormatter = (data, customFormatter, setFormatOption) => {
|
|
|
114
115
|
setFormatOption('CustomDisplayFormats', newCustomFormats);
|
|
115
116
|
} })));
|
|
116
117
|
};
|
|
117
|
-
|
|
118
|
+
const renderFormatColumnFormatSummary = (data, api) => {
|
|
118
119
|
return React.createElement(Tag_1.Tag, null, exports.getFormatColumnFormatSummaryValue(data, api.formatColumnApi));
|
|
119
120
|
};
|
|
120
|
-
exports.
|
|
121
|
+
exports.renderFormatColumnFormatSummary = renderFormatColumnFormatSummary;
|
|
122
|
+
const getFormatDisplayTypeForScope = (scope, api) => {
|
|
121
123
|
if (scope == undefined) {
|
|
122
124
|
return undefined;
|
|
123
125
|
}
|
|
@@ -150,6 +152,7 @@ exports.getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
150
152
|
}
|
|
151
153
|
return undefined;
|
|
152
154
|
};
|
|
155
|
+
exports.getFormatDisplayTypeForScope = getFormatDisplayTypeForScope;
|
|
153
156
|
const renderDateFormat = (data, _onChange, setFormatOption, customFormatters, formatColumnApi) => {
|
|
154
157
|
if (data.DisplayFormat.Formatter !== 'DateFormatter') {
|
|
155
158
|
return null;
|
|
@@ -353,9 +356,9 @@ const renderStringFormat = (data, _onChange, setFormatOption, customFormatters,
|
|
|
353
356
|
},
|
|
354
357
|
] })))));
|
|
355
358
|
};
|
|
356
|
-
|
|
359
|
+
const FormatColumnFormatWizardSection = (props) => {
|
|
357
360
|
var _a, _b, _c;
|
|
358
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
361
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
359
362
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
360
363
|
const formatColumnApi = adaptable.api.formatColumnApi;
|
|
361
364
|
const customDisplayFormatters = (_c = (_b = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.userInterfaceOptions) === null || _b === void 0 ? void 0 : _b.customDisplayFormatters) !== null && _c !== void 0 ? _c : [];
|
|
@@ -384,3 +387,4 @@ exports.FormatColumnFormatWizardSection = (props) => {
|
|
|
384
387
|
React.createElement("b", null, "all"),
|
|
385
388
|
" the columns in Scope are Numeric, String or Date."));
|
|
386
389
|
};
|
|
390
|
+
exports.FormatColumnFormatWizardSection = FormatColumnFormatWizardSection;
|
|
@@ -5,15 +5,16 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
7
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
|
-
|
|
8
|
+
const renderFormatColumnScopeSummary = (data) => {
|
|
9
9
|
return NewScopeComponent_1.renderScopeSummary(data.Scope, {
|
|
10
10
|
scopeWholeRow: 'Matching rows will be formatted',
|
|
11
11
|
scopeColumns: 'Cells in selected columns will be formatted',
|
|
12
12
|
scopeDataTypes: 'Cells in columns of the selected data-types will be formatted',
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
exports.
|
|
16
|
-
|
|
15
|
+
exports.renderFormatColumnScopeSummary = renderFormatColumnScopeSummary;
|
|
16
|
+
const FormatColumnScopeWizardSection = (props) => {
|
|
17
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
17
18
|
return (React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
18
19
|
rowScope: 'Apply a style to an entire row',
|
|
19
20
|
columnScope: 'Select columns to format',
|
|
@@ -21,3 +22,4 @@ exports.FormatColumnScopeWizardSection = (props) => {
|
|
|
21
22
|
props.onChange(Object.assign(Object.assign({}, data), { Scope }));
|
|
22
23
|
} }));
|
|
23
24
|
};
|
|
25
|
+
exports.FormatColumnScopeWizardSection = FormatColumnScopeWizardSection;
|
|
@@ -19,7 +19,7 @@ let alignmentOptions = [
|
|
|
19
19
|
{ value: 'Right', label: 'Right' },
|
|
20
20
|
{ value: 'Center', label: 'Center' },
|
|
21
21
|
];
|
|
22
|
-
|
|
22
|
+
const renderFormatColumnSettingsSummary = (data) => {
|
|
23
23
|
var _a;
|
|
24
24
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
25
25
|
React.createElement(rebass_1.Text, null,
|
|
@@ -32,8 +32,9 @@ exports.renderFormatColumnSettingsSummary = (data) => {
|
|
|
32
32
|
"Include grouped rows ",
|
|
33
33
|
React.createElement(Tag_1.Tag, null, data.IncludeGroupedRows ? 'yes' : 'no'))));
|
|
34
34
|
};
|
|
35
|
-
exports.
|
|
36
|
-
|
|
35
|
+
exports.renderFormatColumnSettingsSummary = renderFormatColumnSettingsSummary;
|
|
36
|
+
const FormatColumnSettingsWizardSection = (props) => {
|
|
37
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
37
38
|
const onCellAlignmentSelectChanged = (CellAlignment) => {
|
|
38
39
|
props.onChange(Object.assign(Object.assign({}, data), { CellAlignment }));
|
|
39
40
|
};
|
|
@@ -76,3 +77,4 @@ exports.FormatColumnSettingsWizardSection = (props) => {
|
|
|
76
77
|
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
77
78
|
React.createElement(CheckBox_1.CheckBox, { checked: data.IncludeGroupedRows, onChange: onIncludeGroupedRowsChanged, mr: 2 }))))))));
|
|
78
79
|
};
|
|
80
|
+
exports.FormatColumnSettingsWizardSection = FormatColumnSettingsWizardSection;
|
|
@@ -16,7 +16,7 @@ const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayou
|
|
|
16
16
|
const ColorPicker_1 = require("../../ColorPicker");
|
|
17
17
|
const UIHelper_1 = tslib_1.__importStar(require("../../UIHelper"));
|
|
18
18
|
const StyleVisualItem_1 = require("../../Components/StyleVisualItem");
|
|
19
|
-
|
|
19
|
+
const isFormatColumnStyleValid = (data, api) => {
|
|
20
20
|
var _a, _b, _c, _d, _e;
|
|
21
21
|
if (!data.ColumnStyle &&
|
|
22
22
|
data.Style &&
|
|
@@ -40,6 +40,7 @@ exports.isFormatColumnStyleValid = (data, api) => {
|
|
|
40
40
|
}
|
|
41
41
|
return true;
|
|
42
42
|
};
|
|
43
|
+
exports.isFormatColumnStyleValid = isFormatColumnStyleValid;
|
|
43
44
|
const toStyle = (style) => {
|
|
44
45
|
return Object.assign(Object.assign({}, StyleHelper_1.convertAdaptableStyleToCSS(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
45
46
|
};
|
|
@@ -75,7 +76,7 @@ const getColumnComparison = (columnComparison, api) => {
|
|
|
75
76
|
ForeColor: columnComparison.Color,
|
|
76
77
|
} })));
|
|
77
78
|
};
|
|
78
|
-
|
|
79
|
+
const renderFormatColumnStyleSummary = (data, api) => {
|
|
79
80
|
if (data.ColumnStyle) {
|
|
80
81
|
if (data.ColumnStyle.CheckBoxStyle) {
|
|
81
82
|
return 'Checkbox Style';
|
|
@@ -103,9 +104,10 @@ exports.renderFormatColumnStyleSummary = (data, api) => {
|
|
|
103
104
|
}
|
|
104
105
|
return (React.createElement(rebass_1.Text, { padding: 2, style: toStyle(data.Style) }, "Preview result"));
|
|
105
106
|
};
|
|
107
|
+
exports.renderFormatColumnStyleSummary = renderFormatColumnStyleSummary;
|
|
106
108
|
function FormatColumnStyleWizardSection(props) {
|
|
107
109
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
|
|
108
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
110
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
109
111
|
const singleNumericColumn = api.scopeApi.isSingleNumericColumnScope(data.Scope);
|
|
110
112
|
const onlyBooleanColumnsInScope = api.scopeApi.areAllBooleanColumnsInScope(data.Scope) ||
|
|
111
113
|
api.scopeApi.scopeHasOnlyBooleanDataType(data.Scope);
|
|
@@ -23,7 +23,7 @@ const options = [
|
|
|
23
23
|
{ value: 'Date', label: 'Date' },
|
|
24
24
|
{ value: 'Boolean', label: 'Boolean' },
|
|
25
25
|
];
|
|
26
|
-
|
|
26
|
+
const renderFreeTextColumnSummary = (data) => {
|
|
27
27
|
var _a;
|
|
28
28
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
29
29
|
React.createElement(rebass_1.Box, null,
|
|
@@ -42,7 +42,8 @@ exports.renderFreeTextColumnSummary = (data) => {
|
|
|
42
42
|
"Editor Type: ",
|
|
43
43
|
React.createElement(Tag_1.Tag, null, data.TextEditor))) : null));
|
|
44
44
|
};
|
|
45
|
-
exports.
|
|
45
|
+
exports.renderFreeTextColumnSummary = renderFreeTextColumnSummary;
|
|
46
|
+
const isValidFreeTextColumn = (data, api) => {
|
|
46
47
|
const columns = api.columnApi.getColumns();
|
|
47
48
|
if (!data.ColumnId) {
|
|
48
49
|
return 'Column Id cannot be empty';
|
|
@@ -57,8 +58,9 @@ exports.isValidFreeTextColumn = (data, api) => {
|
|
|
57
58
|
}
|
|
58
59
|
return true;
|
|
59
60
|
};
|
|
60
|
-
exports.
|
|
61
|
-
|
|
61
|
+
exports.isValidFreeTextColumn = isValidFreeTextColumn;
|
|
62
|
+
const FreeTextColumnSettingsWizardSection = (props) => {
|
|
63
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
62
64
|
const Pattern = api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat;
|
|
63
65
|
const [ColumnNameFocused, setColumnNameFocused] = react_1.useState(false);
|
|
64
66
|
const inEdit = props.isEdit;
|
|
@@ -133,3 +135,4 @@ exports.FreeTextColumnSettingsWizardSection = (props) => {
|
|
|
133
135
|
React.createElement(rebass_1.Box, { mt: 2 },
|
|
134
136
|
React.createElement(SpecialColumnSettingsWizardStep_1.SpecialColumnSettingsWizardStep, { isEditable: true, settings: data.FreeTextColumnSettings, onChange: handleSpecialColumnSettingsChange }))));
|
|
135
137
|
};
|
|
138
|
+
exports.FreeTextColumnSettingsWizardSection = FreeTextColumnSettingsWizardSection;
|
|
@@ -12,7 +12,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
12
12
|
const FreeTextColumnRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FreeTextColumnRedux"));
|
|
13
13
|
const react_redux_1 = require("react-redux");
|
|
14
14
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
15
|
-
|
|
15
|
+
const FreeTextColumnWizard = (props) => {
|
|
16
16
|
var _a;
|
|
17
17
|
const allFreeTextColumns = react_redux_1.useSelector((state) => state.FreeTextColumn.FreeTextColumns);
|
|
18
18
|
const [freeTextColumn, setFreeTextColumn] = react_1.useState(() => {
|
|
@@ -66,3 +66,4 @@ exports.FreeTextColumnWizard = (props) => {
|
|
|
66
66
|
},
|
|
67
67
|
] }));
|
|
68
68
|
};
|
|
69
|
+
exports.FreeTextColumnWizard = FreeTextColumnWizard;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
8
|
const AdaptableObjectList_1 = require("../Components/AdaptableObjectList");
|
|
9
|
-
|
|
9
|
+
const AdaptableObjectsSummary = () => {
|
|
10
10
|
const state = react_redux_1.useSelector((state) => state);
|
|
11
11
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
12
12
|
const modules = adaptable.ModuleService.getModuleCollection();
|
|
@@ -24,3 +24,4 @@ exports.AdaptableObjectsSummary = () => {
|
|
|
24
24
|
(items === null || items === void 0 ? void 0 : items.length) && React.createElement(AdaptableObjectList_1.AdaptableObjectList, { items: items, module: module })));
|
|
25
25
|
})));
|
|
26
26
|
};
|
|
27
|
+
exports.AdaptableObjectsSummary = AdaptableObjectsSummary;
|
|
@@ -11,7 +11,7 @@ const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollec
|
|
|
11
11
|
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
12
12
|
const AdaptablePopover_1 = require("../AdaptablePopover");
|
|
13
13
|
const rebass_1 = require("rebass");
|
|
14
|
-
|
|
14
|
+
const AdaptableOptionsComponent = (props) => {
|
|
15
15
|
const { api } = props;
|
|
16
16
|
const getAdaptableOptionsColItems = () => [
|
|
17
17
|
{ Content: 'Property', Size: 5 },
|
|
@@ -84,6 +84,7 @@ exports.AdaptableOptionsComponent = (props) => {
|
|
|
84
84
|
return (React.createElement(rebass_1.Box, { className: "ab-AdaptableOptions", padding: 2, "data-name": "gridInfo-adaptableOptions-content" }, gridInfoOptions &&
|
|
85
85
|
Array.from(gridInfoOptions.entries()).map(([containerName, container]) => (React.createElement(OptionContainerComponent, { key: containerName, name: containerName, label: container.containerLabel, viewMode: containerName === expandedComponentContainer ? 'expanded' : 'collapsed', onViewModeChange: (newViewMode) => setExpandedComponentContainer(newViewMode === 'expanded' ? containerName : '') }, gridInfoContainerComponents.get(containerName))))));
|
|
86
86
|
};
|
|
87
|
+
exports.AdaptableOptionsComponent = AdaptableOptionsComponent;
|
|
87
88
|
const OptionContainerComponent = (props) => {
|
|
88
89
|
const { viewMode, name, label, onViewModeChange, children } = props;
|
|
89
90
|
const requestViewModeChange = () => {
|
|
@@ -15,7 +15,7 @@ const version_1 = tslib_1.__importDefault(require("../../../version"));
|
|
|
15
15
|
const ColumnInfoComponent_1 = require("./ColumnInfoComponent");
|
|
16
16
|
const AdaptableOptionsComponent_1 = require("./AdaptableOptionsComponent");
|
|
17
17
|
const AdaptableObjectsSummary_1 = require("./AdaptableObjectsSummary");
|
|
18
|
-
|
|
18
|
+
const GridInfoPopup = (props) => {
|
|
19
19
|
var _a, _b, _c;
|
|
20
20
|
const entitlementService = props.api.internalApi.getEntitlementService();
|
|
21
21
|
const showGridSummary = entitlementService.isGridInfoSectionVisible('GridSummary');
|
|
@@ -27,7 +27,8 @@ exports.GridInfoPopup = (props) => {
|
|
|
27
27
|
*/
|
|
28
28
|
const showAdaptableObjects = true;
|
|
29
29
|
const [state, setState] = React.useState({
|
|
30
|
-
ActiveTab: ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column)
|
|
30
|
+
ActiveTab: ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column)
|
|
31
|
+
? 'ColumnInfo'
|
|
31
32
|
: showGridSummary
|
|
32
33
|
? 'GridSummary'
|
|
33
34
|
: showAdaptableOptions
|
|
@@ -51,9 +52,7 @@ exports.GridInfoPopup = (props) => {
|
|
|
51
52
|
const calcColumns = props.api.calculatedColumnApi
|
|
52
53
|
.getAllCalculatedColumn()
|
|
53
54
|
.map((c) => c.ColumnId);
|
|
54
|
-
const actionColumns = props.api.
|
|
55
|
-
.getAllActionColumn()
|
|
56
|
-
.map((c) => c.columnId);
|
|
55
|
+
const actionColumns = props.api.actionApi.getAllActionColumn().map((c) => c.columnId);
|
|
57
56
|
const freeTextColumns = props.api.freeTextColumnApi
|
|
58
57
|
.getAllFreeTextColumn()
|
|
59
58
|
.map((c) => c.ColumnId);
|
|
@@ -114,3 +113,4 @@ exports.GridInfoPopup = (props) => {
|
|
|
114
113
|
React.createElement(ColumnInfoComponent_1.ColumnInfoComponent, { api: props.api, teamSharingActivated: props.teamSharingActivated, column: state.CurrentColumn }))),
|
|
115
114
|
state.ActiveTab === 'AdaptableObjectsSummary' && React.createElement(AdaptableObjectsSummary_1.AdaptableObjectsSummary, null)));
|
|
116
115
|
};
|
|
116
|
+
exports.GridInfoPopup = GridInfoPopup;
|
package/src/View/KeyHint.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.KeyHint = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
|
-
|
|
7
|
+
const KeyHint = (props) => {
|
|
8
8
|
return React.createElement(rebass_1.Text, Object.assign({ fontSize: 1, color: "inputcolor" }, props));
|
|
9
9
|
};
|
|
10
|
+
exports.KeyHint = KeyHint;
|
|
@@ -5,10 +5,11 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
-
|
|
8
|
+
const EditCurrentLayoutButton = () => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const handleClick = React.useCallback(() => {
|
|
11
11
|
adaptable.api.layoutApi.showLayoutEditor();
|
|
12
12
|
}, []);
|
|
13
13
|
return React.createElement(SimpleButton_1.default, { ml: 1, variant: "text", iconSize: 15, icon: "edit", onClick: handleClick });
|
|
14
14
|
};
|
|
15
|
+
exports.EditCurrentLayoutButton = EditCurrentLayoutButton;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
-
|
|
8
|
+
const LayoutCloneButton = ({ data, accessLevel }) => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const isDisabled = accessLevel === 'ReadOnly';
|
|
11
11
|
const handleClick = React.useCallback(() => {
|
|
@@ -13,3 +13,4 @@ exports.LayoutCloneButton = ({ data, accessLevel }) => {
|
|
|
13
13
|
}, []);
|
|
14
14
|
return React.createElement(SimpleButton_1.default, { onClick: handleClick, disabled: isDisabled, variant: "text", icon: "clone" });
|
|
15
15
|
};
|
|
16
|
+
exports.LayoutCloneButton = LayoutCloneButton;
|
|
@@ -12,7 +12,7 @@ const PanelFooter_1 = require("../Components/Panels/PanelFooter");
|
|
|
12
12
|
const LayoutEditorWizard_1 = require("./Wizard/LayoutEditorWizard");
|
|
13
13
|
const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/LayoutRedux"));
|
|
14
14
|
const rebass_1 = require("rebass");
|
|
15
|
-
|
|
15
|
+
const LayoutEditorStandalonePopup = (props) => {
|
|
16
16
|
/**
|
|
17
17
|
* This is here because the old code mutates the object.
|
|
18
18
|
* And we need a way to trigger an update/render.
|
|
@@ -73,3 +73,4 @@ exports.LayoutEditorStandalonePopup = (props) => {
|
|
|
73
73
|
React.createElement(LayoutEditorWizard_1.LayoutEditorWizard, { data: layoutData, api: adaptable.api, Layouts: layouts, moduleInfo: layoutModule.moduleInfo, onLayoutChange: setStateLayout, updateGoBackState: () => null }),
|
|
74
74
|
React.createElement(PanelFooter_1.PanelFooter, { acceptDisabled: finishDisabled, onAccept: handleAccept, onCancel: handleCancel })));
|
|
75
75
|
};
|
|
76
|
+
exports.LayoutEditorStandalonePopup = LayoutEditorStandalonePopup;
|
|
@@ -28,5 +28,5 @@ declare class LayoutPopupComponent extends React.Component<LayoutPopupProps, Edi
|
|
|
28
28
|
canFinishWizard(): boolean;
|
|
29
29
|
private getCurrentLayout;
|
|
30
30
|
}
|
|
31
|
-
export declare let LayoutPopup: import("react-redux").ConnectedComponent<typeof LayoutPopupComponent,
|
|
31
|
+
export declare let LayoutPopup: import("react-redux").ConnectedComponent<typeof LayoutPopupComponent, import("react-redux").Omit<React.ClassAttributes<LayoutPopupComponent> & LayoutPopupProps, "ref" | "key" | "api" | "onSuspend" | "accessLevel" | "popupParams" | "onClearPopupParams" | "teamSharingActivated" | "onClosePopup" | "moduleInfo" | "onUnSuspend" | "modalContainer" | "onShare" | "Layouts" | "onSelectLayout" | "onSaveLayout" | "CurrentLayoutName" | "CurrentLayoutDraft" | "onAddLayout">>;
|
|
32
32
|
export {};
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Radio_1 = tslib_1.__importDefault(require("../../components/Radio"));
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
-
|
|
8
|
+
const LayoutRadioSelector = ({ data }) => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
11
11
|
const layouts = adaptable.api.layoutApi.getAllLayout();
|
|
@@ -16,3 +16,4 @@ exports.LayoutRadioSelector = ({ data }) => {
|
|
|
16
16
|
}, [isSelected]);
|
|
17
17
|
return React.createElement(Radio_1.default, { id: data.Name, disabled: isDisabled, checked: isSelected, onClick: handleToggle });
|
|
18
18
|
};
|
|
19
|
+
exports.LayoutRadioSelector = LayoutRadioSelector;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const SelectList_1 = require("../../components/SelectList");
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
-
|
|
8
|
+
const LayoutStatusBarSubPanelPopover = () => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const layouts = adaptable.api.layoutApi.getAllLayout();
|
|
11
11
|
const options = layouts.map((layout) => ({ label: layout.Name, value: layout.Uuid }));
|
|
@@ -14,3 +14,4 @@ exports.LayoutStatusBarSubPanelPopover = () => {
|
|
|
14
14
|
};
|
|
15
15
|
return React.createElement(SelectList_1.SelectList, { options: options, onChange: handleChange });
|
|
16
16
|
};
|
|
17
|
+
exports.LayoutStatusBarSubPanelPopover = LayoutStatusBarSubPanelPopover;
|
|
@@ -15,5 +15,5 @@ declare class LayoutViewPanelComponent extends React.Component<LayoutViewPanelCo
|
|
|
15
15
|
render(): any;
|
|
16
16
|
private onSaveLayout;
|
|
17
17
|
}
|
|
18
|
-
export declare let LayoutViewPanelControl: import("react-redux").ConnectedComponent<typeof LayoutViewPanelComponent,
|
|
18
|
+
export declare let LayoutViewPanelControl: import("react-redux").ConnectedComponent<typeof LayoutViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<LayoutViewPanelComponent> & LayoutViewPanelComponentProps, "api" | "accessLevel" | "moduleInfo" | "viewType" | "Layouts" | "onSelectLayout" | "onSaveLayout" | "CurrentDraftLayout" | "CanSave" | "CurrentLayoutName"> & LayoutViewPanelComponentProps>;
|
|
19
19
|
export {};
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
8
|
-
|
|
8
|
+
const ColumnLabels = (props) => {
|
|
9
9
|
const { children, showBoth, showTitle, flexDirection = 'row', labels: labelsProp } = props, columnProperties = tslib_1.__rest(props, ["children", "showBoth", "showTitle", "flexDirection", "labels"]);
|
|
10
10
|
const labelNames = [
|
|
11
11
|
'Aggregatable',
|
|
@@ -54,3 +54,4 @@ exports.ColumnLabels = (props) => {
|
|
|
54
54
|
}),
|
|
55
55
|
children));
|
|
56
56
|
};
|
|
57
|
+
exports.ColumnLabels = ColumnLabels;
|
|
@@ -12,7 +12,7 @@ const utils_1 = require("./utils");
|
|
|
12
12
|
const rebass_1 = require("rebass");
|
|
13
13
|
const AdaptableFormControlTextClear_1 = require("../../../Components/Forms/AdaptableFormControlTextClear");
|
|
14
14
|
const reorder_1 = require("../../../../Utilities/reorder");
|
|
15
|
-
|
|
15
|
+
const ColumnList = (props) => {
|
|
16
16
|
const [columns, setColumns] = react_2.useState(props.columns);
|
|
17
17
|
const [search, setSearch] = react_2.useState('');
|
|
18
18
|
const onDragEnd = React.useCallback((result) => {
|
|
@@ -83,3 +83,4 @@ exports.ColumnList = (props) => {
|
|
|
83
83
|
provided.placeholder));
|
|
84
84
|
}));
|
|
85
85
|
};
|
|
86
|
+
exports.ColumnList = ColumnList;
|
|
@@ -9,7 +9,7 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/Help
|
|
|
9
9
|
const droppableIds_1 = require("./droppableIds");
|
|
10
10
|
const utils_1 = require("./utils");
|
|
11
11
|
const reorder_1 = require("../../../../Utilities/reorder");
|
|
12
|
-
|
|
12
|
+
const ColumnSortList = (props) => {
|
|
13
13
|
const columnSorts = props.columnSorts || [];
|
|
14
14
|
const setColumnSorts = (columnSorts) => {
|
|
15
15
|
props.onColumnSortsChange(columnSorts);
|
|
@@ -86,3 +86,4 @@ exports.ColumnSortList = (props) => {
|
|
|
86
86
|
}),
|
|
87
87
|
provided.placeholder))));
|
|
88
88
|
};
|
|
89
|
+
exports.ColumnSortList = ColumnSortList;
|
|
@@ -9,7 +9,7 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/Help
|
|
|
9
9
|
const droppableIds_1 = require("./droppableIds");
|
|
10
10
|
const utils_1 = require("./utils");
|
|
11
11
|
const reorder_1 = require("../../../../Utilities/reorder");
|
|
12
|
-
|
|
12
|
+
const PivotList = (props) => {
|
|
13
13
|
const pivotColumns = props.pivotColumns || [];
|
|
14
14
|
const setPivotColumns = (pivotColumns) => {
|
|
15
15
|
props.onPivotColumnsChange(pivotColumns);
|
|
@@ -67,3 +67,4 @@ exports.PivotList = (props) => {
|
|
|
67
67
|
}),
|
|
68
68
|
provided.placeholder))));
|
|
69
69
|
};
|
|
70
|
+
exports.PivotList = PivotList;
|
|
@@ -9,7 +9,7 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/Help
|
|
|
9
9
|
const droppableIds_1 = require("./droppableIds");
|
|
10
10
|
const utils_1 = require("./utils");
|
|
11
11
|
const reorder_1 = require("../../../../Utilities/reorder");
|
|
12
|
-
|
|
12
|
+
const RowGroupsList = (props) => {
|
|
13
13
|
const rowGroups = props.rowGroups || [];
|
|
14
14
|
const setRowGroups = (rowGroups) => {
|
|
15
15
|
props.onRowGroupsChange(rowGroups);
|
|
@@ -67,3 +67,4 @@ exports.RowGroupsList = (props) => {
|
|
|
67
67
|
}),
|
|
68
68
|
provided.placeholder))));
|
|
69
69
|
};
|
|
70
|
+
exports.RowGroupsList = RowGroupsList;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getItemStyle = void 0;
|
|
4
4
|
const droppableIds_1 = require("./droppableIds");
|
|
5
|
-
|
|
5
|
+
const getItemStyle = (column, layout, dragSource, snapshot, draggableStyle) => {
|
|
6
6
|
const { isDragging, draggingOver } = snapshot;
|
|
7
7
|
const result = Object.assign({ userSelect: 'none', background: isDragging ? 'var(--ab-color-secondarylight)' : '', color: isDragging ? 'var(--ab-color-text-on-secondarylight)' : '', opacity: 1 }, draggableStyle);
|
|
8
8
|
if (isDragging) {
|
|
@@ -23,3 +23,4 @@ exports.getItemStyle = (column, layout, dragSource, snapshot, draggableStyle) =>
|
|
|
23
23
|
}
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
26
|
+
exports.getItemStyle = getItemStyle;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LayoutEditorActions = exports.reducer = exports.getInitialState = void 0;
|
|
4
4
|
const droppableIds_1 = require("./droppableIds");
|
|
5
|
-
|
|
5
|
+
const getInitialState = (layout) => {
|
|
6
6
|
return {
|
|
7
7
|
dropDisabledOnColumns: false,
|
|
8
8
|
dropDisabledOnSort: false,
|
|
@@ -12,7 +12,8 @@ exports.getInitialState = (layout) => {
|
|
|
12
12
|
layout,
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
exports.
|
|
15
|
+
exports.getInitialState = getInitialState;
|
|
16
|
+
const reducer = (state, action) => {
|
|
16
17
|
if (action.type === LayoutEditorActions.SET_DRAG_SOURCE) {
|
|
17
18
|
return Object.assign(Object.assign({}, state), { dragSource: action.payload });
|
|
18
19
|
}
|
|
@@ -33,6 +34,7 @@ exports.reducer = (state, action) => {
|
|
|
33
34
|
}
|
|
34
35
|
return state;
|
|
35
36
|
};
|
|
37
|
+
exports.reducer = reducer;
|
|
36
38
|
var LayoutEditorActions;
|
|
37
39
|
(function (LayoutEditorActions) {
|
|
38
40
|
LayoutEditorActions["SET_LAYOUT"] = "SET_LAYOUT";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getListStyle = void 0;
|
|
4
|
-
|
|
4
|
+
const getListStyle = (droppableSnapshot) => {
|
|
5
5
|
const style = {
|
|
6
6
|
width: '100%',
|
|
7
7
|
height: '100%',
|
|
@@ -11,3 +11,4 @@ exports.getListStyle = (droppableSnapshot) => {
|
|
|
11
11
|
}
|
|
12
12
|
return style;
|
|
13
13
|
};
|
|
14
|
+
exports.getListStyle = getListStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LicenseWatermark=void 0;const e=require("tslib"),t=e.__importStar(require("react")),r=require("../../components/Logo"),o=require("rebass"),n={border:"1px solid var(--ab-color-error)",padding:"5px",fontWeight:600,margin:"5px",fontSize:"14px",alignItems:"center",color:"var(--ab-color-text-on-defaultbackground)",background:"var(--ab-color-defaultbackground)"},i=e=>{const t=[["display","none"],["opacity","0"],["position","absolute"],["position","fixed"],["position","relative"],["visibility","hidden"]];for(const[r,o]of t)if(e.style[r]===o)return!1;return!0}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LicenseWatermark=void 0;const e=require("tslib"),t=e.__importStar(require("react")),r=require("../../components/Logo"),o=require("rebass"),n={border:"1px solid var(--ab-color-error)",padding:"5px",fontWeight:600,margin:"5px",fontSize:"14px",alignItems:"center",color:"var(--ab-color-text-on-defaultbackground)",background:"var(--ab-color-defaultbackground)"},i=e=>{const t=[["display","none"],["opacity","0"],["position","absolute"],["position","fixed"],["position","relative"],["visibility","hidden"]];for(const[r,o]of t)if(e.style[r]===o)return!1;return!0},l=e=>{const l=t.useRef(null);return t.useEffect((()=>{const e=setInterval((()=>{var e,t;(null===(e=l.current)||void 0===e?void 0:e.isConnected)||alert("It is not allowed to remove the Adaptable watermark."),i(l.current)||alert("It is not allowed to modify the Adaptable watermark."),(null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.style)&&(l.current.style.border=n.border,l.current.style.padding=n.padding,l.current.style.fontWeight=`${n.fontWeight}`,l.current.style.margin=n.margin,l.current.style.fontSize=n.fontSize,l.current.style.color=n.color,l.current.style.background=n.background,l.current.style.display="flex",l.current.style.position="static",l.current.style.opacity="1",l.current.style.visibility="visible")}),5e3);return()=>clearTimeout(e)}),[]),t.createElement(o.Flex,{style:n,ref:l},t.createElement(r.Logo,{style:{marginRight:10}}),t.createElement("div",null,e.children))};exports.LicenseWatermark=l;
|
|
@@ -7,7 +7,7 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
|
7
7
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
8
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
9
9
|
function PlusMinusRuleSummary() {
|
|
10
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
10
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
11
11
|
return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: data, renderPredicate: (contents) => {
|
|
12
12
|
return (React.createElement(React.Fragment, null,
|
|
13
13
|
"Apply Plus Minus on ",
|
|
@@ -23,7 +23,7 @@ function PlusMinusRuleSummary() {
|
|
|
23
23
|
exports.PlusMinusRuleSummary = PlusMinusRuleSummary;
|
|
24
24
|
function PlusMinusRuleWizardSection(props) {
|
|
25
25
|
var _a;
|
|
26
|
-
const { data, moduleInfo } = OnePageAdaptableWizard_1.
|
|
26
|
+
const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
27
27
|
const plusMinusNudge = Object.assign(Object.assign({}, data), { Rule: (_a = data === null || data === void 0 ? void 0 : data.Rule) !== null && _a !== void 0 ? _a : { BooleanExpression: '' } });
|
|
28
28
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName,
|
|
29
29
|
// min-height 0 so the container does not min-size from it's children
|
|
@@ -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 NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
|
-
|
|
9
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
8
|
+
const PlusMinusScopeWizardSection = (props) => {
|
|
9
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
10
10
|
const availableColumns = React.useMemo(() => api.columnApi.getNumericColumns(), []);
|
|
11
11
|
return (React.createElement(NewScopeComponent_1.NewScopeComponent, { availableDataTypes: ['Number'], scopeColumns: availableColumns, scope: data.Scope, descriptions: {
|
|
12
12
|
rowScope: 'Matching rows will have the plus/minus applied',
|
|
@@ -20,3 +20,4 @@ exports.PlusMinusScopeWizardSection = (props) => {
|
|
|
20
20
|
props.onChange(Object.assign(Object.assign({}, data), { Scope: preparedScope }));
|
|
21
21
|
} }));
|
|
22
22
|
};
|
|
23
|
+
exports.PlusMinusScopeWizardSection = PlusMinusScopeWizardSection;
|
|
@@ -13,16 +13,17 @@ const PlusMinusRuleWizardSection_1 = require("./PlusMinusRuleWizardSection");
|
|
|
13
13
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
14
14
|
const OnePageAdaptableWizard_2 = require("../../../View/Wizard/OnePageAdaptableWizard");
|
|
15
15
|
const Tag_1 = require("../../../components/Tag");
|
|
16
|
-
|
|
16
|
+
const PlusMinusSettingsSummary = (props) => {
|
|
17
17
|
var _a;
|
|
18
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
18
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
19
19
|
return (React.createElement(React.Fragment, null,
|
|
20
20
|
React.createElement(OnePageAdaptableWizard_2.SummaryText, null,
|
|
21
21
|
"Nudge Value ",
|
|
22
22
|
React.createElement(Tag_1.Tag, null, (_a = data.NudgeValue) !== null && _a !== void 0 ? _a : 'Not selected')),
|
|
23
23
|
props.hasCondition && React.createElement(PlusMinusRuleWizardSection_1.PlusMinusRuleSummary, null)));
|
|
24
24
|
};
|
|
25
|
-
exports.
|
|
25
|
+
exports.PlusMinusSettingsSummary = PlusMinusSettingsSummary;
|
|
26
|
+
const isSettingsValid = (hasCondition) => (data, api, context) => {
|
|
26
27
|
const ruleValidation = hasCondition ? EntityRulesEditor_1.isRuleValid(data, api, context) : true;
|
|
27
28
|
if (typeof ruleValidation === 'string') {
|
|
28
29
|
return ruleValidation;
|
|
@@ -35,9 +36,10 @@ exports.isSettingsValid = (hasCondition) => (data, api, context) => {
|
|
|
35
36
|
}
|
|
36
37
|
return true;
|
|
37
38
|
};
|
|
38
|
-
exports.
|
|
39
|
+
exports.isSettingsValid = isSettingsValid;
|
|
40
|
+
const PlusMinusSettingsWizardSection = (props) => {
|
|
39
41
|
var _a;
|
|
40
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
42
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
41
43
|
const handleNudgeValueChange = (event) => {
|
|
42
44
|
const newValue = parseFloat(event.target.value);
|
|
43
45
|
props.onChange(Object.assign(Object.assign({}, data), { NudgeValue: isNaN(newValue) ? '' : newValue }));
|
|
@@ -55,3 +57,4 @@ exports.PlusMinusSettingsWizardSection = (props) => {
|
|
|
55
57
|
React.createElement(Radio_1.default, { marginLeft: 3, value: "Expression", checked: props.hasCondition, onChange: () => props.onConditionChange(true) }, "Create a Rule")))))),
|
|
56
58
|
props.hasCondition && (React.createElement(PlusMinusRuleWizardSection_1.PlusMinusRuleWizardSection, { defaultPredicateId: "NonBlanks", onChange: props.onChange }))));
|
|
57
59
|
};
|
|
60
|
+
exports.PlusMinusSettingsWizardSection = PlusMinusSettingsWizardSection;
|
|
@@ -12,7 +12,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
12
12
|
const react_redux_1 = require("react-redux");
|
|
13
13
|
const PlusMinusRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/PlusMinusRedux"));
|
|
14
14
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
15
|
-
|
|
15
|
+
const PlusMinusWizard = (props) => {
|
|
16
16
|
const [plusMinus, setPlusMinus] = React.useState(() => {
|
|
17
17
|
var _a, _b, _c, _d, _e;
|
|
18
18
|
const newPlusMinus = Object.assign(Object.assign({}, (props.data ? props.data : ObjectFactory_1.default.CreateEmptyPlusMinusNudge())), { Scope: (_b = (_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a.Scope) !== null && _b !== void 0 ? _b : { All: true }, NudgeValue: (_d = (_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c.NudgeValue) !== null && _d !== void 0 ? _d : 20 });
|
|
@@ -86,3 +86,4 @@ exports.PlusMinusWizard = (props) => {
|
|
|
86
86
|
},
|
|
87
87
|
] }));
|
|
88
88
|
};
|
|
89
|
+
exports.PlusMinusWizard = PlusMinusWizard;
|