@adaptabletools/adaptable 12.0.0-canary.3 → 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 +26 -0
- package/bundle.cjs.js +127 -127
- package/index.css +34 -0
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +181 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +15 -2
- package/src/AdaptableOptions/EditOptions.d.ts +1 -80
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
- 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/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/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnApiImpl.js +2 -2
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -3
- package/src/Api/Implementation/GridApiImpl.js +0 -44
- package/src/Api/Implementation/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/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/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 +4 -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/ConfigurationWizard.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +2 -1
- package/src/View/AdaptableWizardView/Utils.js +2 -1
- package/src/View/AdaptableWizardView/Wizard.js +4 -2
- package/src/View/AdaptableWizardView/helper.js +6 -3
- package/src/View/Alert/ActiveAlertsPanel.js +2 -1
- package/src/View/Alert/AlertEmptyView.js +2 -1
- package/src/View/Alert/AlertStatusSubPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -3
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +2 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
- package/src/View/CellSummary/CellSummaryPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -1
- package/src/View/ColorPicker.d.ts +5 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +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/ConditionalStyleScopeWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +4 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
- package/src/View/Dashboard/Dashboard.d.ts +1 -1
- package/src/View/Dashboard/Dashboard.js +4 -3
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +7 -0
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -6
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.js +13 -9
- package/src/View/DataSet/DataSetSelector.js +2 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +2 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportSelector.js +2 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ReportExportDropdown.js +2 -1
- package/src/View/Export/Wizard/NewReportWizard.js +4 -2
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportNameWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +6 -3
- package/src/View/Filter/ActiveFiltersPanel.js +2 -1
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +2 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +4 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +10 -5
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +6 -3
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +2 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +8 -4
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +4 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +2 -1
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -1
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +5 -5
- package/src/View/KeyHint.js +2 -1
- package/src/View/Layout/EditCurrentLayoutButton.js +2 -1
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/LayoutEditorStandalonePopup.js +2 -1
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +2 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +2 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/reducer.js +4 -2
- package/src/View/Layout/Wizard/LayoutEditor/utils.js +2 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +2 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +6 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.js +2 -1
- package/src/View/Query/ExpandedQueryPopup.js +2 -1
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +6 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +6 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -3
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -1
- package/src/View/StateManagement/StateManagementPopup.js +2 -1
- package/src/View/StateManagement/StateManagementViewPanel.js +2 -1
- package/src/View/StateManagement/components/ClearButton.js +2 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -1
- package/src/View/StateManagement/components/LoadButton.js +2 -1
- package/src/View/StateManagement/handleExportState.js +2 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +2 -1
- package/src/View/StatusBar/StatusBarPanel.js +2 -1
- package/src/View/StatusBar/StatusBarPopup.js +5 -4
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +2 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +2 -1
- package/src/View/UIHelper.d.ts +2 -0
- package/src/View/UIHelper.js +12 -11
- package/src/View/Wizard/AdaptableWizard.js +2 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +4 -2
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -5
- package/src/View/Wizard/OnePageWizards.js +8 -4
- package/src/View/Wizard/useKeyboardNavigation.js +2 -1
- package/src/View/renderWithAdaptableContext.js +2 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.js +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/DatepickerContext.js +2 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/ModuleManager.d.ts +1 -0
- package/src/components/DragAndDropContext/ModuleManager.js +5 -4
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +3 -2
- package/src/components/DragAndDropContext/UnusedPanel.js +14 -12
- package/src/components/EllipsisContainer/index.js +4 -2
- package/src/components/ExpressionEditor/EditorContext.js +2 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +2 -1
- package/src/components/ExpressionEditor/NamedQueryContext.js +3 -1
- package/src/components/FileDroppable/index.js +2 -1
- package/src/components/FormLayout/index.js +2 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +2 -4
- package/src/components/Loader/Loader.js +4 -2
- package/src/components/Logo/index.js +2 -1
- package/src/components/Modal/Backdrop.js +2 -1
- package/src/components/Modal/index.js +2 -1
- package/src/components/OverlayTrigger/Overlay.js +2 -1
- package/src/components/OverlayTrigger/index.js +2 -1
- package/src/components/OverlayTrigger/utils.js +6 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +2 -1
- package/src/components/Radio/index.js +4 -2
- package/src/components/ResizeObserver/getResizeObserverObject.js +2 -1
- package/src/components/ResizeObserver/index.js +6 -3
- package/src/components/SelectList.js +2 -1
- package/src/components/SelectableList/index.js +2 -1
- package/src/components/SimpleButton/index.d.ts +2 -1
- package/src/components/SimpleButton/index.js +19 -6
- package/src/components/StylePreview.js +2 -1
- package/src/components/Tabs/index.js +6 -3
- package/src/components/Textarea/index.d.ts +5 -1
- package/src/components/ToggleButton/index.js +2 -1
- package/src/components/WindowModal/WindowModal.js +2 -1
- package/src/components/WindowModal/useStacking.js +2 -1
- package/src/components/icons/DefaultIcon.js +2 -1
- package/src/components/icons/index.d.ts +3 -1
- package/src/components/icons/index.js +10 -2
- package/src/components/utils/useContainerScrollObserver/index.js +2 -1
- package/src/components/utils/useGlobalEvent.js +2 -1
- package/src/components/utils/useLatest.js +2 -1
- package/src/components/utils/useRerender.js +2 -1
- package/src/components/utils/uuid.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +145 -111
- package/src/metamodel/adaptable.metamodel.js +195 -172
- package/src/types.d.ts +6 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/RowFormSubmitted.d.ts +0 -34
- package/src/components/ApplicationIcon.d.ts +0 -6
- package/src/components/ApplicationIcon.js +0 -13
|
@@ -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,7 +32,8 @@ exports.renderFormatColumnSettingsSummary = (data) => {
|
|
|
32
32
|
"Include grouped rows ",
|
|
33
33
|
React.createElement(Tag_1.Tag, null, data.IncludeGroupedRows ? 'yes' : 'no'))));
|
|
34
34
|
};
|
|
35
|
-
exports.
|
|
35
|
+
exports.renderFormatColumnSettingsSummary = renderFormatColumnSettingsSummary;
|
|
36
|
+
const FormatColumnSettingsWizardSection = (props) => {
|
|
36
37
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
37
38
|
const onCellAlignmentSelectChanged = (CellAlignment) => {
|
|
38
39
|
props.onChange(Object.assign(Object.assign({}, data), { CellAlignment }));
|
|
@@ -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,6 +104,7 @@ 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
110
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
@@ -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,7 +58,8 @@ exports.isValidFreeTextColumn = (data, api) => {
|
|
|
57
58
|
}
|
|
58
59
|
return true;
|
|
59
60
|
};
|
|
60
|
-
exports.
|
|
61
|
+
exports.isValidFreeTextColumn = isValidFreeTextColumn;
|
|
62
|
+
const FreeTextColumnSettingsWizardSection = (props) => {
|
|
61
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);
|
|
@@ -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;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
7
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
|
-
|
|
8
|
+
const PlusMinusScopeWizardSection = (props) => {
|
|
9
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: {
|
|
@@ -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,7 +13,7 @@ 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
18
|
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
19
19
|
return (React.createElement(React.Fragment, null,
|
|
@@ -22,7 +22,8 @@ exports.PlusMinusSettingsSummary = (props) => {
|
|
|
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,7 +36,8 @@ 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
42
|
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
41
43
|
const handleNudgeValueChange = (event) => {
|
|
@@ -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;
|
|
@@ -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 EditCurrentQueryButton = () => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const handleClick = React.useCallback((event) => {
|
|
11
11
|
event.stopPropagation();
|
|
@@ -13,3 +13,4 @@ exports.EditCurrentQueryButton = () => {
|
|
|
13
13
|
}, []);
|
|
14
14
|
return React.createElement(SimpleButton_1.default, { variant: "text", iconSize: 15, onClick: handleClick, icon: "edit" });
|
|
15
15
|
};
|
|
16
|
+
exports.EditCurrentQueryButton = EditCurrentQueryButton;
|
|
@@ -11,7 +11,7 @@ const QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Que
|
|
|
11
11
|
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
12
12
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
13
13
|
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
14
|
-
|
|
14
|
+
const ExpandedQueryPopup = (props) => {
|
|
15
15
|
const dispatch = react_redux_1.useDispatch();
|
|
16
16
|
const [namedQuery, setNamedQuery] = React.useState(null);
|
|
17
17
|
const [expression, setExpression] = React.useState(props.popupProps.value);
|
|
@@ -53,3 +53,4 @@ exports.ExpandedQueryPopup = (props) => {
|
|
|
53
53
|
props.onDismiss();
|
|
54
54
|
}, disabled: !isExpressionValid || StringExtensions_1.IsNullOrEmpty(expression) || hasNamedQueryError }, "Run Query")))));
|
|
55
55
|
};
|
|
56
|
+
exports.ExpandedQueryPopup = ExpandedQueryPopup;
|
|
@@ -26,5 +26,5 @@ declare class QueryViewPanelComponent extends React.Component<QueryViewPanelComp
|
|
|
26
26
|
onSelectedSearchChanged(searchName: string): void;
|
|
27
27
|
runQuery(expression?: string): void;
|
|
28
28
|
}
|
|
29
|
-
export declare let QueryViewPanelControl: import("react-redux").ConnectedComponent<typeof QueryViewPanelComponent,
|
|
29
|
+
export declare let QueryViewPanelControl: import("react-redux").ConnectedComponent<typeof QueryViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<QueryViewPanelComponent> & QueryViewPanelComponentProps, "api" | "accessLevel" | "CurrentQuery" | "CachedQueries" | "moduleInfo" | "NamedQueries" | "viewType" | "onAddCachedQuery" | "onRunQuery" | "onShowNamedQueries">>;
|
|
30
30
|
export {};
|
|
@@ -10,7 +10,7 @@ const AdaptableContext_1 = require("../../AdaptableContext");
|
|
|
10
10
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
11
|
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
12
12
|
const Tag_1 = require("../../../components/Tag");
|
|
13
|
-
|
|
13
|
+
const isValidNamedQueryExpression = (data, api) => {
|
|
14
14
|
if (!data.BooleanExpression) {
|
|
15
15
|
return 'Expression is empty';
|
|
16
16
|
}
|
|
@@ -20,12 +20,14 @@ exports.isValidNamedQueryExpression = (data, api) => {
|
|
|
20
20
|
}
|
|
21
21
|
return valid;
|
|
22
22
|
};
|
|
23
|
-
exports.
|
|
23
|
+
exports.isValidNamedQueryExpression = isValidNamedQueryExpression;
|
|
24
|
+
const renderNamedQueryExpressionSummary = (data) => {
|
|
24
25
|
return (React.createElement(rebass_1.Text, { fontSize: 2 },
|
|
25
26
|
"Expression: ",
|
|
26
27
|
React.createElement(Tag_1.Tag, null, data.BooleanExpression)));
|
|
27
28
|
};
|
|
28
|
-
exports.
|
|
29
|
+
exports.renderNamedQueryExpressionSummary = renderNamedQueryExpressionSummary;
|
|
30
|
+
const NamedQueryExpressionWizardSection = (props) => {
|
|
29
31
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
30
32
|
const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
31
33
|
const initialData = react_1.useMemo(() => api.internalApi.getQueryPreviewData(), []);
|
|
@@ -33,3 +35,4 @@ exports.NamedQueryExpressionWizardSection = (props) => {
|
|
|
33
35
|
props.onChange(Object.assign(Object.assign({}, data), { BooleanExpression }));
|
|
34
36
|
}, initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getAllNamedQuery(), api: api }));
|
|
35
37
|
};
|
|
38
|
+
exports.NamedQueryExpressionWizardSection = NamedQueryExpressionWizardSection;
|
|
@@ -10,7 +10,7 @@ const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox
|
|
|
10
10
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
11
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../../Components/AdaptableInput"));
|
|
12
12
|
const Tag_1 = require("../../../components/Tag");
|
|
13
|
-
|
|
13
|
+
const isValidNamedQuerySettings = (data, api) => {
|
|
14
14
|
const validationResult = api.queryApi.isValidNamedQueryName(data);
|
|
15
15
|
const ErrorMessage = !validationResult.valid ? validationResult.message : null;
|
|
16
16
|
if (!ErrorMessage) {
|
|
@@ -18,12 +18,14 @@ exports.isValidNamedQuerySettings = (data, api) => {
|
|
|
18
18
|
}
|
|
19
19
|
return ErrorMessage;
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
21
|
+
exports.isValidNamedQuerySettings = isValidNamedQuerySettings;
|
|
22
|
+
const renderNamedQuerySettingsSummary = (data) => {
|
|
22
23
|
return (React.createElement(rebass_1.Text, { fontSize: 2 },
|
|
23
24
|
"Name: ",
|
|
24
25
|
React.createElement(Tag_1.Tag, null, data.Name)));
|
|
25
26
|
};
|
|
26
|
-
exports.
|
|
27
|
+
exports.renderNamedQuerySettingsSummary = renderNamedQuerySettingsSummary;
|
|
28
|
+
const NamedQuerySettingsWizardSection = (props) => {
|
|
27
29
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
28
30
|
const valid = exports.isValidNamedQuerySettings(data, api);
|
|
29
31
|
const errorMessage = valid === true ? null : valid;
|
|
@@ -39,3 +41,4 @@ exports.NamedQuerySettingsWizardSection = (props) => {
|
|
|
39
41
|
errorMessage ? (React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
40
42
|
React.createElement(ErrorBox_1.default, null, errorMessage))) : null)));
|
|
41
43
|
};
|
|
44
|
+
exports.NamedQuerySettingsWizardSection = NamedQuerySettingsWizardSection;
|
|
@@ -7,10 +7,11 @@ const react_redux_1 = require("react-redux");
|
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
8
|
const AdaptableFormControlTextClear_1 = require("../Components/Forms/AdaptableFormControlTextClear");
|
|
9
9
|
const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
|
|
10
|
-
|
|
10
|
+
const QuickSearchStatusBarContent = () => {
|
|
11
11
|
const text = react_redux_1.useSelector((state) => state.QuickSearch.QuickSearchText);
|
|
12
12
|
const dispatch = react_redux_1.useDispatch();
|
|
13
13
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
14
14
|
const handleTextChange = React.useCallback((text) => dispatch(QuickSearchRedux.QuickSearchRun(text)), []);
|
|
15
15
|
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { onClick: (event) => event.stopPropagation(), type: "text", inputStyle: { padding: '2px 3px', width: 90 }, placeholder: adaptable.api.internalApi.getAdaptableOptions().searchOptions.quickSearchPlaceholder, value: text, OnTextChange: handleTextChange }));
|
|
16
16
|
};
|
|
17
|
+
exports.QuickSearchStatusBarContent = QuickSearchStatusBarContent;
|
|
@@ -5,4 +5,4 @@ export interface QuickSearchViewPanelComponentProps extends ViewPanelProps {
|
|
|
5
5
|
onRunQuickSearch: (quickSearchText: string) => QuickSearchRedux.QuickSearchRunAction;
|
|
6
6
|
QuickSearchText: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const QuickSearchViewPanelControl: import("react-redux").ConnectedComponent<(props: QuickSearchViewPanelComponentProps) => JSX.Element,
|
|
8
|
+
export declare const QuickSearchViewPanelControl: import("react-redux").ConnectedComponent<(props: QuickSearchViewPanelComponentProps) => JSX.Element, import("react-redux").Omit<QuickSearchViewPanelComponentProps, "api" | "accessLevel" | "QuickSearchText" | "moduleInfo" | "onRunQuickSearch" | "viewType">>;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
7
7
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
8
|
-
|
|
8
|
+
const useQuickSearchDebounced = (props) => {
|
|
9
9
|
var _a;
|
|
10
10
|
const [searchText, setSearchText] = react_1.useState((_a = props.QuickSearchText) !== null && _a !== void 0 ? _a : '');
|
|
11
11
|
const debouncedRunQuickSearch = react_1.useMemo(() => debounce_1.default(props.onRunQuickSearch, GeneralConstants_1.QUICK_SEARCH_DEBOUNCE_TIME), [props.onRunQuickSearch]);
|
|
@@ -18,3 +18,4 @@ exports.useQuickSearchDebounced = (props) => {
|
|
|
18
18
|
};
|
|
19
19
|
return [searchText, executeSearch];
|
|
20
20
|
};
|
|
21
|
+
exports.useQuickSearchDebounced = useQuickSearchDebounced;
|