@adaptabletools/adaptable 12.0.0-canary.2 → 12.0.0-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +41 -14
- package/bundle.cjs.js +159 -142
- package/index.css +49 -14
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +181 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +5 -9
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -4
- package/src/AdaptableOptions/EditOptions.d.ts +8 -62
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +6 -1
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
- package/src/AdaptableOptions/StateOptions.d.ts +10 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -5
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -112
- package/src/Api/ActionApi.d.ts +24 -0
- package/src/Api/{Events/RowFormSubmitted.js → ActionApi.js} +0 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/AlertApi.d.ts +3 -3
- package/src/Api/ConfigApi.d.ts +1 -1
- package/src/Api/EventApi.d.ts +9 -9
- package/src/Api/Events/ActionRowSubmitted.d.ts +34 -0
- package/src/Api/Events/ActionRowSubmitted.js +2 -0
- package/src/Api/GridApi.d.ts +0 -14
- package/src/Api/Implementation/ActionApiImpl.d.ts +8 -0
- package/src/Api/Implementation/ActionApiImpl.js +56 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +3 -3
- package/src/Api/Implementation/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnApiImpl.js +2 -2
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -3
- package/src/Api/Implementation/GridApiImpl.js +0 -44
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -3
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +2 -1
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +4 -3
- package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +2 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -4
- package/src/Api/SmartEditApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +10 -3
- package/src/Api/UserInterfaceApi.d.ts +1 -5
- package/src/PredefinedConfig/AlertState.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptableAlert.js +4 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +24 -18
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -36
- package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -1
- package/src/PredefinedConfig/Common/FormContext.d.ts +3 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/StatusBarState.d.ts +5 -2
- package/src/PredefinedConfig/Uuid.js +2 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +16 -8
- package/src/Redux/ActionsReducers/ApplicationRedux.js +8 -4
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +6 -3
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +10 -5
- package/src/Redux/ActionsReducers/CellSummaryRedux.js +2 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +14 -7
- package/src/Redux/ActionsReducers/CustomSortRedux.js +14 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +24 -12
- package/src/Redux/ActionsReducers/ExportRedux.js +16 -8
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +16 -8
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +14 -7
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +14 -7
- package/src/Redux/ActionsReducers/GridRedux.js +38 -19
- package/src/Redux/ActionsReducers/LayoutRedux.js +30 -15
- package/src/Redux/ActionsReducers/PluginsRedux.js +4 -2
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +16 -8
- package/src/Redux/ActionsReducers/PopupRedux.js +37 -19
- package/src/Redux/ActionsReducers/QueryRedux.js +12 -6
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +8 -4
- package/src/Redux/ActionsReducers/ScheduleRedux.js +58 -29
- package/src/Redux/ActionsReducers/ShortcutRedux.js +14 -7
- package/src/Redux/ActionsReducers/SmartEditRedux.js +6 -3
- package/src/Redux/ActionsReducers/StatusBarRedux.js +10 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +103 -51
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +4 -2
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +22 -11
- package/src/Redux/ActionsReducers/ThemeRedux.js +10 -5
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +16 -8
- package/src/Redux/DeadRedux.js +16 -8
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -1
- package/src/Redux/Store/AdaptableStore.js +10 -2
- package/src/Strategy/AlertModule.d.ts +2 -18
- package/src/Strategy/AlertModule.js +2 -1
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -10
- package/src/Strategy/DashboardModule.js +3 -1
- package/src/Strategy/DataChangeHistoryModule.d.ts +2 -8
- package/src/Strategy/DataSetModule.d.ts +2 -13
- package/src/Strategy/ExportModule.d.ts +2 -13
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/FilterModule.d.ts +2 -14
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +2 -9
- package/src/Strategy/GridInfoModule.js +6 -2
- package/src/Strategy/LayoutModule.d.ts +2 -17
- package/src/Strategy/LayoutModule.js +6 -3
- package/src/Strategy/PlusMinusModule.d.ts +2 -9
- package/src/Strategy/QuickSearchModule.d.ts +2 -7
- package/src/Strategy/ScheduleModule.d.ts +2 -13
- package/src/Strategy/ShortcutModule.d.ts +2 -9
- package/src/Strategy/StatusBarModule.js +2 -2
- package/src/Strategy/SystemStatusModule.d.ts +2 -7
- package/src/Strategy/ThemeModule.d.ts +2 -8
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -1
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +2 -1
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +2 -1
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +2 -1
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +2 -1
- package/src/Strategy/Utilities/getExportRowsViewItems.js +2 -1
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +2 -6
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +2 -1
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +2 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +2 -1
- package/src/Strategy/Utilities/getScopeViewItems.js +2 -1
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +2 -1
- package/src/Strategy/Utilities/getStyleViewItems.js +2 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +21 -13
- package/src/Utilities/ExpressionFunctions/dateUtils.js +2 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +20 -10
- package/src/Utilities/Extensions/TypeExtensions.d.ts +30 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +1 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +6 -16
- package/src/Utilities/Helpers/DateHelper.d.ts +27 -0
- package/src/Utilities/Helpers/DateHelper.js +43 -6
- package/src/Utilities/Helpers/Helper.js +2 -1
- package/src/Utilities/Helpers/LoggingHelper.js +2 -1
- package/src/Utilities/Helpers/StyleHelper.js +8 -4
- package/src/Utilities/MenuItem.d.ts +4 -3
- package/src/Utilities/MenuItem.js +9 -3
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -0
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +3 -3
- package/src/Utilities/Services/MetamodelService.d.ts +7 -1
- package/src/Utilities/Services/MetamodelService.js +82 -6
- package/src/Utilities/Services/ModuleService.js +3 -1
- package/src/Utilities/Services/RowEditService.d.ts +6 -6
- package/src/Utilities/Services/RowEditService.js +24 -25
- package/src/Utilities/isAdaptableObject.js +2 -1
- package/src/Utilities/isMacLike.js +2 -1
- package/src/Utilities/license/decode.js +1 -1
- package/src/Utilities/reorder.js +2 -1
- package/src/Utilities/runIfNotResolvedIn.js +2 -1
- package/src/Utilities/waitForCondition.d.ts +1 -1
- package/src/Utilities/waitForCondition.js +2 -1
- package/src/View/AdaptableContext.js +2 -1
- package/src/View/AdaptableView.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +13 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +13 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +2 -1
- package/src/View/AdaptableWizardView/Utils.js +2 -1
- package/src/View/AdaptableWizardView/Wizard.js +4 -2
- package/src/View/AdaptableWizardView/helper.js +6 -3
- package/src/View/Alert/ActiveAlertsPanel.js +2 -1
- package/src/View/Alert/AlertEmptyView.js +2 -1
- package/src/View/Alert/AlertStatusSubPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +3 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -3
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +2 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
- package/src/View/CellSummary/CellSummaryPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -1
- package/src/View/ColorPicker.d.ts +5 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +11 -11
- package/src/View/Components/AdaptableInput/index.d.ts +2 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -2
- package/src/View/Components/Buttons/ButtonClone.js +2 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonEdit.js +2 -1
- package/src/View/Components/Buttons/ButtonNew.js +2 -1
- package/src/View/Components/ColumnSelector/index.js +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +6 -3
- package/src/View/Components/ExpressionWizard.js +2 -1
- package/src/View/Components/ExternalRenderer.js +2 -1
- package/src/View/Components/FilterForm/FilterForm.js +2 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
- package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +2 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -2
- package/src/View/Components/ListBox/DualListBoxEditor.js +2 -1
- package/src/View/Components/ModuleValueSelector/index.js +2 -1
- package/src/View/Components/NewScopeComponent.js +6 -3
- package/src/View/Components/Panels/PanelFooter.js +2 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -429
- package/src/View/Components/Panels/PanelWithImage.js +2 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -5
- package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +6 -5
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +4 -4
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +2 -1
- package/src/View/Components/Popups/AdaptableToaster.js +2 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +4 -2
- package/src/View/Components/Popups/Utilities.js +8 -4
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +2 -1
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/TagValueSelector/index.js +4 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +2 -1
- package/src/View/Components/WizardSummaryPage.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +4 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
- package/src/View/Dashboard/Dashboard.d.ts +1 -1
- package/src/View/Dashboard/Dashboard.js +4 -3
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +7 -0
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -6
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +13 -9
- package/src/View/DataSet/DataSetSelector.js +2 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +2 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportSelector.js +2 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ReportExportDropdown.js +2 -1
- package/src/View/Export/Wizard/NewReportWizard.js +4 -2
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportNameWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +6 -3
- package/src/View/Filter/ActiveFiltersPanel.js +2 -1
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +2 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +4 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +10 -5
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +6 -3
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +2 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +8 -4
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +4 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +2 -1
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -1
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +5 -5
- package/src/View/KeyHint.js +2 -1
- package/src/View/Layout/EditCurrentLayoutButton.js +2 -1
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/LayoutEditorStandalonePopup.js +2 -1
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +2 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +2 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/reducer.js +4 -2
- package/src/View/Layout/Wizard/LayoutEditor/utils.js +2 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +2 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +6 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.js +2 -1
- package/src/View/Query/ExpandedQueryPopup.js +2 -1
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +6 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +6 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -3
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -1
- package/src/View/StateManagement/StateManagementPopup.js +2 -1
- package/src/View/StateManagement/StateManagementViewPanel.js +2 -1
- package/src/View/StateManagement/components/ClearButton.js +2 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -1
- package/src/View/StateManagement/components/LoadButton.js +2 -1
- package/src/View/StateManagement/handleExportState.js +2 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +2 -1
- package/src/View/StatusBar/StatusBarPanel.js +2 -1
- package/src/View/StatusBar/StatusBarPopup.js +5 -4
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +2 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +2 -1
- package/src/View/UIHelper.d.ts +2 -0
- package/src/View/UIHelper.js +12 -11
- package/src/View/Wizard/AdaptableWizard.js +2 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +4 -2
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -5
- package/src/View/Wizard/OnePageWizards.js +8 -4
- package/src/View/Wizard/useKeyboardNavigation.js +2 -1
- package/src/View/renderWithAdaptableContext.js +2 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.js +31 -28
- package/src/agGrid/CheckboxRenderer.js +2 -1
- package/src/agGrid/FilterWrapper.js +2 -1
- package/src/agGrid/FloatingFilterWrapper.js +2 -1
- package/src/agGrid/PercentBarRenderer.js +2 -1
- package/src/agGrid/agGridHelper.js +3 -1
- package/src/agGrid/agGridMenuHelper.js +13 -10
- package/src/agGrid/createAgStatusPanelComponent.js +2 -1
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +8 -5
- package/src/components/AdaptableIconComponent/index.d.ts +10 -0
- package/src/components/AdaptableIconComponent/index.js +40 -0
- package/src/components/CheckBox/index.js +2 -1
- package/src/components/CodeBlock/index.js +2 -1
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/Caption.js +1 -1
- package/src/components/Datepicker/DatepickerContext.js +2 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/ModuleManager.d.ts +1 -0
- package/src/components/DragAndDropContext/ModuleManager.js +5 -4
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +3 -2
- package/src/components/DragAndDropContext/UnusedPanel.js +14 -12
- package/src/components/EllipsisContainer/index.js +4 -2
- package/src/components/ExpressionEditor/EditorContext.js +2 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +2 -1
- package/src/components/ExpressionEditor/NamedQueryContext.js +3 -1
- package/src/components/FileDroppable/index.js +2 -1
- package/src/components/FormLayout/index.js +2 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +2 -4
- package/src/components/Loader/Loader.js +4 -2
- package/src/components/Logo/index.js +2 -1
- package/src/components/Modal/Backdrop.js +2 -1
- package/src/components/Modal/index.js +2 -1
- package/src/components/OverlayTrigger/Overlay.js +2 -1
- package/src/components/OverlayTrigger/index.js +2 -1
- package/src/components/OverlayTrigger/utils.js +6 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +2 -1
- package/src/components/Radio/index.js +4 -2
- package/src/components/ResizeObserver/getResizeObserverObject.js +2 -1
- package/src/components/ResizeObserver/index.js +6 -3
- package/src/components/SelectList.js +2 -1
- package/src/components/SelectableList/index.js +2 -1
- package/src/components/SimpleButton/index.d.ts +2 -1
- package/src/components/SimpleButton/index.js +19 -6
- package/src/components/StylePreview.js +2 -1
- package/src/components/Tabs/index.js +6 -3
- package/src/components/Textarea/index.d.ts +5 -1
- package/src/components/ToggleButton/index.js +2 -1
- package/src/components/WindowModal/WindowModal.js +2 -1
- package/src/components/WindowModal/useStacking.js +2 -1
- package/src/components/icons/DefaultIcon.js +2 -1
- package/src/components/icons/index.d.ts +3 -1
- package/src/components/icons/index.js +10 -2
- package/src/components/utils/useContainerScrollObserver/index.js +2 -1
- package/src/components/utils/useGlobalEvent.js +2 -1
- package/src/components/utils/useLatest.js +2 -1
- package/src/components/utils/useRerender.js +2 -1
- package/src/components/utils/uuid.js +2 -1
- package/src/metamodel/adaptable-metamodel-model.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +211 -101
- package/src/metamodel/adaptable.metamodel.js +1 -12874
- package/src/types.d.ts +7 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/RowFormSubmitted.d.ts +0 -19
- package/src/components/ApplicationIcon.d.ts +0 -6
- package/src/components/ApplicationIcon.js +0 -13
|
@@ -37,4 +37,6 @@ class PanelWithImageCmp extends React.Component {
|
|
|
37
37
|
return (React.createElement(Panel_1.default, { flex: this.props.flex, header: headerRow, variant: this.props.variant, style: this.props.style, bodyScroll: this.props.bodyScroll !== undefined ? this.props.bodyScroll : true, border: "none", borderRadius: this.props.borderRadius || 'none', bodyProps: Object.assign({ padding: 0 }, this.props.bodyProps) }, this.props.children));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
// apparently it's very hard to type `withTheme()` result in typescript
|
|
41
|
+
// @ts-ignore
|
|
40
42
|
exports.PanelWithImage = styled_components_1.withTheme(PanelWithImageCmp);
|
|
@@ -15,7 +15,7 @@ const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
|
15
15
|
const CustomSettingsPanelView_1 = require("./CustomSettingsPanelView");
|
|
16
16
|
const useMenuItems_1 = require("./useMenuItems");
|
|
17
17
|
const AdaptablePopupDialog_1 = require("./AdaptablePopupDialog");
|
|
18
|
-
|
|
18
|
+
const AdaptablePopup = (props) => {
|
|
19
19
|
var _a, _b, _c;
|
|
20
20
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
21
21
|
const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
|
|
@@ -77,3 +77,4 @@ exports.AdaptablePopup = (props) => {
|
|
|
77
77
|
!isStandalone && (React.createElement(Navigation_1.Navigation, { menuItems: menuItems, api: props.api, activeItem: activeItem, customSettingsPanels: settingsPanelOptions.customSettingsPanels })),
|
|
78
78
|
React.createElement(rebass_1.Flex, { flex: 1, className: "ab-Adaptable-Popup__Body" }, moduleViewContent)))));
|
|
79
79
|
};
|
|
80
|
+
exports.AdaptablePopup = AdaptablePopup;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const UIHelper_1 = require("../../../UIHelper");
|
|
7
7
|
const AdaptableViewFactory_1 = require("../../../AdaptableViewFactory");
|
|
8
8
|
const AdaptablePopupModuleView_1 = require("./AdaptablePopupModuleView");
|
|
9
|
-
|
|
9
|
+
const AdaptablePopupBody = (props) => {
|
|
10
10
|
var _a;
|
|
11
11
|
const modalContainer = UIHelper_1.UIHelper.getModalContainer(props.api.internalApi.getAdaptableOptions(), document);
|
|
12
12
|
const moduleName = props.module.moduleInfo.ModuleName;
|
|
@@ -35,3 +35,4 @@ exports.AdaptablePopupBody = (props) => {
|
|
|
35
35
|
// most of the views use the `AdaptablePopupModuleView` component
|
|
36
36
|
return React.createElement(BodyComponent, Object.assign({ key: props === null || props === void 0 ? void 0 : props.componentName, module: props.module }, moduleProps));
|
|
37
37
|
};
|
|
38
|
+
exports.AdaptablePopupBody = AdaptablePopupBody;
|
|
@@ -44,7 +44,7 @@ const PopupDialog = (props) => {
|
|
|
44
44
|
const { style, className, onHide, children } = props, dialogProps = tslib_1.__rest(props, ["style", "className", "onHide", "children"]);
|
|
45
45
|
return (React.createElement(Dialog_1.default, Object.assign({ fixed: false, style: props.style, padding: 0, height: '90vh', width: '90vw', className: className, onDismiss: onHide, isOpen: true, showCloseButton: true }, dialogProps), children));
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
const AdaptablePopupDialog = (props) => {
|
|
48
48
|
const { isActionModule, style, friendlyName, baseClassName, className, children, onHide, isWindowModal, modalContainer, } = props;
|
|
49
49
|
const elementRef = React.useMemo(() => {
|
|
50
50
|
if (!modalContainer) {
|
|
@@ -78,3 +78,4 @@ exports.AdaptablePopupDialog = (props) => {
|
|
|
78
78
|
return (React.createElement(PopupDialog, { onHide: onHide, style: modalStyle, className: className }, children));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
+
exports.AdaptablePopupDialog = AdaptablePopupDialog;
|
|
@@ -13,7 +13,7 @@ const PopupPanel_1 = require("./PopupPanel");
|
|
|
13
13
|
const rebass_1 = require("rebass");
|
|
14
14
|
const CheckBox_1 = require("../../../../components/CheckBox");
|
|
15
15
|
const SystemRedux_1 = require("../../../../Redux/ActionsReducers/SystemRedux");
|
|
16
|
-
|
|
16
|
+
const AdaptablePopupModuleView = (props) => {
|
|
17
17
|
var _a, _b, _c, _d, _e;
|
|
18
18
|
/**
|
|
19
19
|
* This triggers an render for each redux change.
|
|
@@ -109,3 +109,4 @@ exports.AdaptablePopupModuleView = (props) => {
|
|
|
109
109
|
(items === null || items === void 0 ? void 0 : items.length) ? (React.createElement(AdaptableObjectList_1.AdaptableObjectList, { module: props.module, items: items })) : (React.createElement(EmptyContent_1.default, null, emptyContent !== null && emptyContent !== void 0 ? emptyContent : `Click 'New' to create a new ${moduleInfo.FriendlyName}`)),
|
|
110
110
|
isWizardOpen && EditWizard && (React.createElement(EditWizard, { abObjectType: abObjectType, moduleInfo: moduleInfo, data: null, popupParams: props.popupParams, configEntities: null, onCloseWizard: handleWizardClose, onFinishWizard: handleWizardClose }))));
|
|
111
111
|
};
|
|
112
|
+
exports.AdaptablePopupModuleView = AdaptablePopupModuleView;
|
|
@@ -4,6 +4,7 @@ exports.CustomSettingsPanelView = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const ExternalRenderer_1 = require("../../ExternalRenderer");
|
|
7
|
-
|
|
7
|
+
const CustomSettingsPanelView = (props) => {
|
|
8
8
|
return (React.createElement(ExternalRenderer_1.ExternalRenderer, { render: props.settingsPanel.render, componentName: props.settingsPanel.name, frameworkComponent: props.settingsPanel.frameworkComponent }));
|
|
9
9
|
};
|
|
10
|
+
exports.CustomSettingsPanelView = CustomSettingsPanelView;
|
|
@@ -4,11 +4,10 @@ exports.Navigation = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
|
-
const ApplicationIcon_1 = require("../../../../components/ApplicationIcon");
|
|
8
|
-
const icons_1 = require("../../../../components/icons");
|
|
9
7
|
const join_1 = tslib_1.__importDefault(require("../../../../components/utils/join"));
|
|
10
8
|
const useGlobalEvent_1 = require("../../../../components/utils/useGlobalEvent");
|
|
11
|
-
|
|
9
|
+
const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconComponent");
|
|
10
|
+
const Navigation = (props) => {
|
|
12
11
|
const dispatch = react_redux_1.useDispatch();
|
|
13
12
|
const handleKeyPress = React.useCallback((event) => {
|
|
14
13
|
if ((event.ctrlKey || event.metaKey) &&
|
|
@@ -48,8 +47,9 @@ exports.Navigation = (props) => {
|
|
|
48
47
|
React.createElement("button", { type: "button", className: `${baseClassName}__Button`, onClick: () => {
|
|
49
48
|
dispatch(menuItem.reduxAction);
|
|
50
49
|
} },
|
|
51
|
-
menuItem.icon && (React.createElement(
|
|
52
|
-
customIcon && React.createElement(
|
|
50
|
+
menuItem.icon && (React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: menuItem.icon, iconClassName: `${baseClassName}__Icon` })),
|
|
51
|
+
customIcon && React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: customIcon }),
|
|
53
52
|
menuItem.label)));
|
|
54
53
|
}))));
|
|
55
54
|
};
|
|
55
|
+
exports.Navigation = Navigation;
|
|
@@ -6,7 +6,8 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const PopupContext = React.createContext({
|
|
7
7
|
hidePopup: () => { },
|
|
8
8
|
});
|
|
9
|
-
|
|
9
|
+
const usePopupContext = () => {
|
|
10
10
|
return React.useContext(PopupContext);
|
|
11
11
|
};
|
|
12
|
+
exports.usePopupContext = usePopupContext;
|
|
12
13
|
exports.default = PopupContext;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const ButtonInfo_1 = require("../../Buttons/ButtonInfo");
|
|
8
8
|
const Noop = () => React.createElement(React.Fragment, null);
|
|
9
|
-
|
|
9
|
+
const PopupPanel = (props) => {
|
|
10
10
|
const baseClassName = 'ab-Adaptable-Popup__Panel';
|
|
11
11
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", flex: "1 1 0", className: baseClassName, width: "100%" },
|
|
12
12
|
React.createElement("div", { className: `${baseClassName}__Header` },
|
|
@@ -20,3 +20,4 @@ exports.PopupPanel = (props) => {
|
|
|
20
20
|
props.button),
|
|
21
21
|
React.createElement(rebass_1.Box, { className: `${baseClassName}__Body`, width: "100%", height: "100%", flex: 1 }, props.children)));
|
|
22
22
|
};
|
|
23
|
+
exports.PopupPanel = PopupPanel;
|
|
@@ -4,10 +4,10 @@ exports.TopBar = 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
|
-
const ApplicationIcon_1 = require("../../../../components/ApplicationIcon");
|
|
8
7
|
const icons_1 = require("../../../../components/icons");
|
|
9
8
|
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
10
|
-
|
|
9
|
+
const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconComponent");
|
|
10
|
+
const TopBar = (props) => {
|
|
11
11
|
var _a;
|
|
12
12
|
const baseClassName = 'ab-Adaptable-Popup__TopBar';
|
|
13
13
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
@@ -18,13 +18,14 @@ exports.TopBar = (props) => {
|
|
|
18
18
|
icon = React.createElement(icons_1.Icon, { className: iconClassName, name: "settings" });
|
|
19
19
|
}
|
|
20
20
|
else if (props.icon === 'ApplicationIcon' && applicationIcon) {
|
|
21
|
-
icon = React.createElement(
|
|
21
|
+
icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: applicationIcon, iconClassName: iconClassName });
|
|
22
22
|
}
|
|
23
|
-
else if (typeof props.icon === 'object'
|
|
24
|
-
icon = React.createElement(
|
|
23
|
+
else if (typeof props.icon === 'object') {
|
|
24
|
+
icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: props.icon, iconClassName: iconClassName });
|
|
25
25
|
}
|
|
26
26
|
return (React.createElement(rebass_1.Flex, { flex: 0, className: baseClassName },
|
|
27
27
|
icon,
|
|
28
28
|
React.createElement(rebass_1.Text, { className: `${baseClassName}__Title` }, props.children)));
|
|
29
29
|
};
|
|
30
|
+
exports.TopBar = TopBar;
|
|
30
31
|
exports.default = exports.TopBar;
|
|
@@ -7,7 +7,7 @@ const react_redux_1 = require("react-redux");
|
|
|
7
7
|
const DefaultSettingsPanel_1 = require("../../../../Utilities/Defaults/DefaultSettingsPanel");
|
|
8
8
|
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
9
9
|
const PopupRedux = tslib_1.__importStar(require("../../../../Redux/ActionsReducers/PopupRedux"));
|
|
10
|
-
|
|
10
|
+
const useMenuItems = () => {
|
|
11
11
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
12
12
|
const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
|
|
13
13
|
const allMenuItems = react_redux_1.useSelector((state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.Grid) === null || _a === void 0 ? void 0 : _a.SettingPanelModuleMenuItems; });
|
|
@@ -43,3 +43,4 @@ exports.useMenuItems = () => {
|
|
|
43
43
|
.filter(Boolean);
|
|
44
44
|
}, [allMenuItems]);
|
|
45
45
|
};
|
|
46
|
+
exports.useMenuItems = useMenuItems;
|
|
@@ -10,7 +10,8 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../components/Dialog"));
|
|
|
10
10
|
const AdaptableFormComponent_1 = require("../../../components/AdaptableFormComponent");
|
|
11
11
|
const react_1 = require("react");
|
|
12
12
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
13
|
-
|
|
13
|
+
const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
|
|
14
|
+
const AdaptablePopupAlert = (props) => {
|
|
14
15
|
var _a;
|
|
15
16
|
const messageType = props.adaptableAlert.alertDefinition.MessageType || 'Error';
|
|
16
17
|
const msg = (_a = props.adaptableAlert.message) !== null && _a !== void 0 ? _a : '';
|
|
@@ -52,11 +53,9 @@ exports.AdaptablePopupAlert = (props) => {
|
|
|
52
53
|
if (!icon) {
|
|
53
54
|
return null;
|
|
54
55
|
}
|
|
55
|
-
let width = icon.style && icon.style.width ? icon.style.width : 'var(--ab-cmp-simple-button__width)';
|
|
56
|
-
let height = icon.style && icon.style.height ? icon.style.height : 'var(--ab-cmp-simple-button__height)';
|
|
57
56
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", alignSelf: "end", alignItems: "right" },
|
|
58
57
|
' ',
|
|
59
|
-
React.createElement(
|
|
58
|
+
React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: icon, iconClassName: 'alert-popup__application-icon' })));
|
|
60
59
|
};
|
|
61
60
|
const content = (React.createElement(PanelWithImage_1.PanelWithImage, { header: header, headerColor: headerColor, glyphicon: glyph, bodyProps: { padding: 2 } },
|
|
62
61
|
React.createElement("div", null,
|
|
@@ -86,3 +85,4 @@ exports.AdaptablePopupAlert = (props) => {
|
|
|
86
85
|
maxWidth: '70vw',
|
|
87
86
|
} }, content));
|
|
88
87
|
};
|
|
88
|
+
exports.AdaptablePopupAlert = AdaptablePopupAlert;
|
|
@@ -9,7 +9,7 @@ const rebass_1 = require("rebass");
|
|
|
9
9
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
10
10
|
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
11
11
|
const react_redux_1 = require("react-redux");
|
|
12
|
-
|
|
12
|
+
const AdaptablePopupPrompt = (props) => {
|
|
13
13
|
var _a;
|
|
14
14
|
const dispatch = react_redux_1.useDispatch();
|
|
15
15
|
const [promptText, setPromptText] = React.useState((_a = props.defaultValue) !== null && _a !== void 0 ? _a : '');
|
|
@@ -46,3 +46,4 @@ exports.AdaptablePopupPrompt = (props) => {
|
|
|
46
46
|
React.createElement("div", { style: { flex: 1 } }),
|
|
47
47
|
React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "raised", onClick: () => onCloseForm(), "data-name": "cancel" }, "Cancel"))))));
|
|
48
48
|
};
|
|
49
|
+
exports.AdaptablePopupPrompt = AdaptablePopupPrompt;
|
|
@@ -12,7 +12,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
12
12
|
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
13
13
|
const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
|
|
14
14
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
15
|
-
|
|
15
|
+
const AdaptablePopupTeamSharing = (props) => {
|
|
16
16
|
const { showPopup, onClose, onConfirm, header } = props;
|
|
17
17
|
const [config, setConfig] = react_1.useState({
|
|
18
18
|
description: '',
|
|
@@ -47,3 +47,4 @@ exports.AdaptablePopupTeamSharing = (props) => {
|
|
|
47
47
|
React.createElement("div", { style: { flex: 1 } }),
|
|
48
48
|
React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "ok", variant: "raised", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(config.description), onClick: () => onConfirm(config) }, "OK")))))));
|
|
49
49
|
};
|
|
50
|
+
exports.AdaptablePopupTeamSharing = AdaptablePopupTeamSharing;
|
|
@@ -8,7 +8,7 @@ const AdaptablePopupAlert_1 = require("./AdaptablePopupAlert");
|
|
|
8
8
|
const react_toastify_1 = require("react-toastify");
|
|
9
9
|
const apiInstances = new WeakMap();
|
|
10
10
|
const weakMapKeys = new Map();
|
|
11
|
-
|
|
11
|
+
const showToast = (props) => {
|
|
12
12
|
// we're doing this hack and not simply using props.api in order not to have a memory
|
|
13
13
|
// leak where the api is still kept around in memory by the toaster
|
|
14
14
|
const adaptableOptions = props.api.internalApi.getAdaptableOptions();
|
|
@@ -63,3 +63,4 @@ exports.showToast = (props) => {
|
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
+
exports.showToast = showToast;
|
|
@@ -10,7 +10,7 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../../components/Dialog"
|
|
|
10
10
|
const AdaptableForm_1 = require("../../../../PredefinedConfig/Common/AdaptableForm");
|
|
11
11
|
const PopupRedux_1 = require("../../../../Redux/ActionsReducers/PopupRedux");
|
|
12
12
|
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
13
|
-
|
|
13
|
+
const FormDialog = ({ id, formProps, form, prepareContext, }) => {
|
|
14
14
|
const dispatch = react_redux_1.useDispatch();
|
|
15
15
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
16
16
|
const [data, setData] = React.useState(() => {
|
|
@@ -29,9 +29,11 @@ exports.FormDialog = ({ id, formProps, form, prepareContext, }) => {
|
|
|
29
29
|
(_a = button.onClick) === null || _a === void 0 ? void 0 : _a.call(button, button, preparedContext);
|
|
30
30
|
} }))));
|
|
31
31
|
};
|
|
32
|
-
exports.
|
|
32
|
+
exports.FormDialog = FormDialog;
|
|
33
|
+
const FormPopups = () => {
|
|
33
34
|
const forms = react_redux_1.useSelector((state) => state.Popup.FormPopup.FormList);
|
|
34
35
|
return (React.createElement(React.Fragment, null, forms.map((form) => {
|
|
35
36
|
return (React.createElement(exports.FormDialog, { key: form.Id, prepareContext: form.prepareContext, id: form.Id, formProps: form.FormProps, form: form.Form }));
|
|
36
37
|
})));
|
|
37
38
|
};
|
|
39
|
+
exports.FormPopups = FormPopups;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getWindowPopupSize = exports.getSettingsPanelSize = exports.getActionPanelSize = exports.getMiddlePosition = void 0;
|
|
4
4
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
5
|
-
|
|
5
|
+
const getMiddlePosition = (size) => {
|
|
6
6
|
const height = window.innerHeight;
|
|
7
7
|
const width = window.innerWidth;
|
|
8
8
|
return {
|
|
@@ -10,7 +10,8 @@ exports.getMiddlePosition = (size) => {
|
|
|
10
10
|
y: height / 2 - size.height / 2,
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
exports.
|
|
13
|
+
exports.getMiddlePosition = getMiddlePosition;
|
|
14
|
+
const getActionPanelSize = () => {
|
|
14
15
|
const height = window.innerHeight;
|
|
15
16
|
const width = window.innerWidth;
|
|
16
17
|
return {
|
|
@@ -18,7 +19,8 @@ exports.getActionPanelSize = () => {
|
|
|
18
19
|
width: Helper_1.clamp(800, 0, width * 0.9),
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
|
-
exports.
|
|
22
|
+
exports.getActionPanelSize = getActionPanelSize;
|
|
23
|
+
const getSettingsPanelSize = () => {
|
|
22
24
|
const height = window.innerHeight;
|
|
23
25
|
const width = window.innerWidth;
|
|
24
26
|
return {
|
|
@@ -26,6 +28,8 @@ exports.getSettingsPanelSize = () => {
|
|
|
26
28
|
width: Helper_1.clamp(width * 0.9, 0, 800),
|
|
27
29
|
};
|
|
28
30
|
};
|
|
29
|
-
exports.
|
|
31
|
+
exports.getSettingsPanelSize = getSettingsPanelSize;
|
|
32
|
+
const getWindowPopupSize = () => {
|
|
30
33
|
return exports.getSettingsPanelSize();
|
|
31
34
|
};
|
|
35
|
+
exports.getWindowPopupSize = getWindowPopupSize;
|
|
@@ -13,7 +13,7 @@ const windowFactory_1 = require("./windowFactory");
|
|
|
13
13
|
const NoopComponent = () => {
|
|
14
14
|
return React.createElement(React.Fragment, null);
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
const WindowPopups = () => {
|
|
17
17
|
const [windowModalSettings, setWindowModalSettings] = React.useState({});
|
|
18
18
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
19
|
const dispatch = react_redux_1.useDispatch();
|
|
@@ -34,3 +34,4 @@ exports.WindowPopups = () => {
|
|
|
34
34
|
React.createElement(Component, { api: adaptable.api, onDismiss: handleDismiss, popupProps: restPopupProps }))));
|
|
35
35
|
})));
|
|
36
36
|
};
|
|
37
|
+
exports.WindowPopups = WindowPopups;
|
|
@@ -35,7 +35,8 @@ class ColumnSelector extends React.Component {
|
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
37
|
let currentColumnName = selectedColumnIds.length > 0
|
|
38
|
-
? (_a = this.props.ColumnList.find((c) => c.columnId == selectedColumnIds[0])) === null || _a === void 0 ? void 0 : _a.friendlyName
|
|
38
|
+
? (_a = this.props.ColumnList.find((c) => c.columnId == selectedColumnIds[0])) === null || _a === void 0 ? void 0 : _a.friendlyName
|
|
39
|
+
: 'Select a column';
|
|
39
40
|
return (React.createElement("div", { "data-name": 'column-selector' },
|
|
40
41
|
React.createElement(FormLayout_1.default, { columns: [{ name: 'columnSelector', style: { display: 'flex' } }], style: this.props.style },
|
|
41
42
|
React.createElement(FormLayout_1.FormRow, null,
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const ValueSelector_1 = require("../ValueSelector");
|
|
7
7
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
8
|
-
|
|
8
|
+
const TagValueSelector = (props) => {
|
|
9
9
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const getDefaultTags = () => {
|
|
11
11
|
var _a;
|
|
@@ -16,8 +16,10 @@ exports.TagValueSelector = (props) => {
|
|
|
16
16
|
onChange(selectedTagsIds.map((id) => selectedTagsMap.get(id)));
|
|
17
17
|
}, selectionBoxPosition: 'top', toIdentifier: (tag) => api.internalApi.getLabelForTag(tag), toLabel: (tag) => api.internalApi.getLabelForTag(tag), noSelectionLabel: singleSelect ? 'Select a tag' : 'You have not selected any tags.', xSelectedLabel: singleSelect ? () => 'Selected tag:' : () => 'Selected tags:' }));
|
|
18
18
|
};
|
|
19
|
-
exports.
|
|
19
|
+
exports.TagValueSelector = TagValueSelector;
|
|
20
|
+
const TagValueOptionsTags = (props) => {
|
|
20
21
|
const { tags = [] } = props;
|
|
21
22
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
22
23
|
return (React.createElement(ValueSelector_1.ValueOptionsTags, { options: tags, value: tags.map((tag) => api.internalApi.getValueForTag(tag)), toIdentifier: (tag) => api.internalApi.getValueForTag(tag), toLabel: (tag) => api.internalApi.getLabelForTag(tag), allowWrap: true, readOnly: true }));
|
|
23
24
|
};
|
|
25
|
+
exports.TagValueOptionsTags = TagValueOptionsTags;
|
|
@@ -23,7 +23,7 @@ interface AdaptableToolPanelProps {
|
|
|
23
23
|
onExpandToolPanel: (toolPanel: AdaptableToolPanel | string) => ToolPanelRedux.ToolPanelExpandToolPanelAction;
|
|
24
24
|
onCollapseToolPanel: (toolPanel: AdaptableToolPanel | string) => ToolPanelRedux.ToolPanelCollapseToolPanelAction;
|
|
25
25
|
}
|
|
26
|
-
export declare const ConnectedAdaptableToolPanel: import("react-redux").ConnectedComponent<(props: AdaptableToolPanelProps) => JSX.Element,
|
|
26
|
+
export declare const ConnectedAdaptableToolPanel: import("react-redux").ConnectedComponent<(props: AdaptableToolPanelProps) => JSX.Element, import("react-redux").Omit<AdaptableToolPanelProps, "onClick" | "Columns" | "ToolPanels" | "ModuleButtons" | "MainMenuItems" | "onNewColumnListOrder" | "onShowToolPanel" | "onHideToolPanel" | "onExpandToolPanel" | "onCollapseToolPanel">>;
|
|
27
27
|
export declare const getAdaptableToolPanelAgGridComponent: (adaptable?: IAdaptable) => {
|
|
28
28
|
new (): {
|
|
29
29
|
gui: HTMLElement;
|
|
@@ -205,6 +205,9 @@ const AdaptableToolPanelComponent = (props) => {
|
|
|
205
205
|
const toolPanelButtons = renderToolPanelButtons();
|
|
206
206
|
return (React.createElement(rebass_1.Flex, { className: "ab-ToolPanel", "data-name": "adaptable-tool-panel", flexDirection: "column", justifyContent: "center", padding: 2, style: {
|
|
207
207
|
width: '100%',
|
|
208
|
+
// Cannot have the with of the parent, on windows, when you have scrollbars
|
|
209
|
+
// the inner-width is smaller
|
|
210
|
+
// minWidth: 'var(--ab-cmp-toolpanel__width)',
|
|
208
211
|
} },
|
|
209
212
|
React.createElement(rebass_1.Flex, { className: "ab-ToolPanel__header", flexDirection: "row", justifyContent: "left", padding: 1, flexWrap: "wrap", style: { width: '100%' } },
|
|
210
213
|
isToolPanelModuleConfigurable && renderToolPanelDropdowns(),
|
|
@@ -233,7 +236,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
233
236
|
};
|
|
234
237
|
}
|
|
235
238
|
exports.ConnectedAdaptableToolPanel = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(AdaptableToolPanelComponent);
|
|
236
|
-
|
|
239
|
+
const getAdaptableToolPanelAgGridComponent = (adaptable) => {
|
|
237
240
|
return class AdaptableToolPanelAgGridComponent {
|
|
238
241
|
init(params) {
|
|
239
242
|
const agGridApi = params.api;
|
|
@@ -258,4 +261,5 @@ exports.getAdaptableToolPanelAgGridComponent = (adaptable) => {
|
|
|
258
261
|
}
|
|
259
262
|
};
|
|
260
263
|
};
|
|
264
|
+
exports.getAdaptableToolPanelAgGridComponent = getAdaptableToolPanelAgGridComponent;
|
|
261
265
|
exports.AdaptableToolPanelAgGridComponent = exports.getAdaptableToolPanelAgGridComponent();
|
|
@@ -8,7 +8,7 @@ const AdaptableContext_1 = require("../../AdaptableContext");
|
|
|
8
8
|
const uuid_1 = require("../../../components/utils/uuid");
|
|
9
9
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
10
10
|
const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
|
|
11
|
-
|
|
11
|
+
const CustomToolPanelContent = (props) => {
|
|
12
12
|
var _a;
|
|
13
13
|
const { customToolPanel } = props;
|
|
14
14
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
@@ -73,5 +73,6 @@ exports.CustomToolPanelContent = (props) => {
|
|
|
73
73
|
buttonLabel));
|
|
74
74
|
})))));
|
|
75
75
|
};
|
|
76
|
+
exports.CustomToolPanelContent = CustomToolPanelContent;
|
|
76
77
|
const hasCustomRenderFn = (customToolPanel) => customToolPanel.render;
|
|
77
78
|
const hasCustomFrameworkComponent = (customToolPanel) => customToolPanel.frameworkComponent;
|
|
@@ -23,5 +23,5 @@ declare class ToolPanelPopupComponent extends React.Component<ToolPanelPopupComp
|
|
|
23
23
|
onShowGridPropertiesChanged(event: React.FormEvent<any>): void;
|
|
24
24
|
onToolPanelToolPanelsChanged(selectedValues: AdaptableToolPanels): void;
|
|
25
25
|
}
|
|
26
|
-
export declare let ToolPanelPopup: import("react-redux").ConnectedComponent<typeof ToolPanelPopupComponent,
|
|
26
|
+
export declare let ToolPanelPopup: import("react-redux").ConnectedComponent<typeof ToolPanelPopupComponent, import("react-redux").Omit<React.ClassAttributes<ToolPanelPopupComponent> & ToolPanelPopupComponentProps, "ref" | "key" | "api" | "onSuspend" | "accessLevel" | "popupParams" | "onClearPopupParams" | "teamSharingActivated" | "onClosePopup" | "moduleInfo" | "onUnSuspend" | "modalContainer" | "ToolPanelState" | "GridState" | "onToolPanelSetModuleButtons" | "onToolPanelSetToolPanels">>;
|
|
27
27
|
export {};
|
|
@@ -72,7 +72,7 @@ class ToolPanelPopupComponent extends React.Component {
|
|
|
72
72
|
}
|
|
73
73
|
return false;
|
|
74
74
|
};
|
|
75
|
-
return (React.createElement(PopupPanel_1.PopupPanel, { headerText: "ToolPanel
|
|
75
|
+
return (React.createElement(PopupPanel_1.PopupPanel, { headerText: "ToolPanel", glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
76
76
|
React.createElement(Tabs_1.Tabs, { "data-name": 'toolPanelPopup-component', className: "ab-ToolPanelPopup", value: this.state.ToolPanelConfigView, style: { height: '100%' }, onValueChange: (value) => this.setState({ ToolPanelConfigView: value }) },
|
|
77
77
|
React.createElement(Tabs_1.Tabs.Tab, { value: ToolPanelConfigView.ToolPanels },
|
|
78
78
|
React.createElement(Radio_1.default, { margin: 0, value: ToolPanelConfigView.ToolPanels, checked: this.state.ToolPanelConfigView == ToolPanelConfigView.ToolPanels, tabIndex: -1 }, "Tool Panels")),
|
|
@@ -11,7 +11,7 @@ const ToolPanelRedux = tslib_1.__importStar(require("../../../Redux/ActionsReduc
|
|
|
11
11
|
const PanelToolPanel_1 = require("../Panels/PanelToolPanel");
|
|
12
12
|
const PopupRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/PopupRedux"));
|
|
13
13
|
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
14
|
-
|
|
14
|
+
const ToolPanelWrapper = (props) => {
|
|
15
15
|
const { adaptableToolPanel, customToolPanel, visibilityMode: visibilityMode, onVisibilityModeChange: onVisibilityModeChange, } = props;
|
|
16
16
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
17
17
|
const getToolPanelConfiguration = () => {
|
|
@@ -67,3 +67,4 @@ exports.ToolPanelWrapper = (props) => {
|
|
|
67
67
|
}
|
|
68
68
|
: null, onClose: () => api.internalApi.dispatchReduxAction(ToolPanelRedux.ToolPanelHideToolPanel(toolPanelName)) }, isMinimised ? null : toolPanelContent)))));
|
|
69
69
|
};
|
|
70
|
+
exports.ToolPanelWrapper = ToolPanelWrapper;
|
|
@@ -16,8 +16,9 @@ const tableDOMProps = {
|
|
|
16
16
|
margin: 'var(--ab-space-2)',
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const WizardSummaryPage = (props) => {
|
|
20
20
|
return (React.createElement(WizardPanel_1.default, { bodyProps: { padding: 0 }, className: "ab-WizardSummary", "data-name": 'wizard-summary' },
|
|
21
21
|
React.createElement(InfiniteTable_1.DataSource, { data: props.KeyValuePairs, primaryKey: "Key" },
|
|
22
22
|
React.createElement(InfiniteTable_1.InfiniteTable, { showZebraRows: true, domProps: tableDOMProps, columns: columnsMap }))));
|
|
23
23
|
};
|
|
24
|
+
exports.WizardSummaryPage = WizardSummaryPage;
|
|
@@ -6,13 +6,14 @@ 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 DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE_1 = require("./DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE");
|
|
9
|
-
|
|
9
|
+
const renderConditionalStyleScopeSummary = (data) => {
|
|
10
10
|
return NewScopeComponent_1.renderScopeSummary(data.Scope, {
|
|
11
11
|
scopeWholeRow: 'Matching rows will display the Conditionally Style',
|
|
12
12
|
scopeColumns: 'Cells in selected columns will display the Conditionally Style',
|
|
13
13
|
scopeDataTypes: 'Cells in columns of the selected data-types will display the Conditionally Style',
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
+
exports.renderConditionalStyleScopeSummary = renderConditionalStyleScopeSummary;
|
|
16
17
|
function ConditionalStyleScopeWizardSection(props) {
|
|
17
18
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
18
19
|
return (React.createElement(React.Fragment, null,
|
|
@@ -8,10 +8,11 @@ const CheckBox_1 = require("../../../components/CheckBox");
|
|
|
8
8
|
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
9
9
|
const Tabs_1 = require("../../../components/Tabs");
|
|
10
10
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
|
-
|
|
11
|
+
const renderConditionalStyleSettingsSummary = (data) => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
12
12
|
React.createElement(rebass_1.Text, null, "Include grouped rows"),
|
|
13
13
|
React.createElement(rebass_1.Text, { mt: 3 }, data.IncludeGroupedRows ? 'Yes' : 'No')));
|
|
14
|
-
exports.
|
|
14
|
+
exports.renderConditionalStyleSettingsSummary = renderConditionalStyleSettingsSummary;
|
|
15
|
+
const ConditionalStyleSettingsWizardSettings = (props) => {
|
|
15
16
|
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
16
17
|
const onIncludeGroupedRowsChanged = (checked) => {
|
|
17
18
|
props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows: checked }));
|
|
@@ -25,3 +26,4 @@ exports.ConditionalStyleSettingsWizardSettings = (props) => {
|
|
|
25
26
|
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
26
27
|
React.createElement(CheckBox_1.CheckBox, { checked: data.IncludeGroupedRows, onChange: onIncludeGroupedRowsChanged, mr: 2 }))))))));
|
|
27
28
|
};
|
|
29
|
+
exports.ConditionalStyleSettingsWizardSettings = ConditionalStyleSettingsWizardSettings;
|
|
@@ -10,9 +10,10 @@ const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
|
|
|
10
10
|
const toStyle = (style) => {
|
|
11
11
|
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' });
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
const renderConditionalStyleStyleSummary = (data) => {
|
|
14
14
|
return (React.createElement(rebass_1.Text, { padding: 2, style: toStyle(data.Style) }, "Preview result"));
|
|
15
15
|
};
|
|
16
|
+
exports.renderConditionalStyleStyleSummary = renderConditionalStyleStyleSummary;
|
|
16
17
|
function ConditionalStyleStyleWizardSection(props) {
|
|
17
18
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
18
19
|
return (React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: data.Style, UpdateStyle: (Style) => {
|
|
@@ -19,7 +19,7 @@ const react_redux_1 = require("react-redux");
|
|
|
19
19
|
const ConditionalStyleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ConditionalStyleRedux"));
|
|
20
20
|
const ConditionalStyleSettingsWizardSettings_1 = require("./ConditionalStyleSettingsWizardSettings");
|
|
21
21
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
22
|
-
|
|
22
|
+
const ConditionalStyleWizard = (props) => {
|
|
23
23
|
var _a, _b;
|
|
24
24
|
const data = (_a = props.data) !== null && _a !== void 0 ? _a : (_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.value;
|
|
25
25
|
const [conditionalStyle, setConditionalStyle] = react_1.useState(() => {
|
|
@@ -111,3 +111,4 @@ exports.ConditionalStyleWizard = (props) => {
|
|
|
111
111
|
},
|
|
112
112
|
] }));
|
|
113
113
|
};
|
|
114
|
+
exports.ConditionalStyleWizard = ConditionalStyleWizard;
|
|
@@ -8,19 +8,21 @@ const Tabs_1 = require("../../../components/Tabs");
|
|
|
8
8
|
const Tag_1 = require("../../../components/Tag");
|
|
9
9
|
const ColumnSelector_1 = require("../../Components/ColumnSelector");
|
|
10
10
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
|
-
|
|
11
|
+
const renderCustomSortColumn = (data) => {
|
|
12
12
|
const { api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
13
13
|
return (React.createElement(rebass_1.Text, { pr: 2, py: 2, fontSize: 2 },
|
|
14
14
|
"Custom sort column: ",
|
|
15
15
|
React.createElement(Tag_1.Tag, null, api.columnApi.getFriendlyNameFromColumnId(data.ColumnId))));
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.renderCustomSortColumn = renderCustomSortColumn;
|
|
18
|
+
const isValidCustomSortColumn = (data) => {
|
|
18
19
|
if (!data.ColumnId) {
|
|
19
20
|
return 'You have to select a Column for Custom Sort';
|
|
20
21
|
}
|
|
21
22
|
return true;
|
|
22
23
|
};
|
|
23
|
-
exports.
|
|
24
|
+
exports.isValidCustomSortColumn = isValidCustomSortColumn;
|
|
25
|
+
const CustomSortColumnWizardSection = (props) => {
|
|
24
26
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
25
27
|
const sortableCols = React.useMemo(() => {
|
|
26
28
|
var _a, _b;
|
|
@@ -48,3 +50,4 @@ exports.CustomSortColumnWizardSection = (props) => {
|
|
|
48
50
|
props.onChange(Object.assign(Object.assign({}, data), { ColumnId: ids[0] }));
|
|
49
51
|
}, allowReorder: false }))));
|
|
50
52
|
};
|
|
53
|
+
exports.CustomSortColumnWizardSection = CustomSortColumnWizardSection;
|
|
@@ -12,17 +12,19 @@ const runIfNotResolvedIn_1 = require("../../../Utilities/runIfNotResolvedIn");
|
|
|
12
12
|
const sortWithOrder_1 = require("../../../Utilities/sortWithOrder");
|
|
13
13
|
const ValueSelector_1 = require("../../Components/ValueSelector");
|
|
14
14
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
15
|
-
|
|
15
|
+
const isValidCustomSortOrder = (data) => {
|
|
16
16
|
if (!data.SortedValues || !data.SortedValues.length) {
|
|
17
17
|
return 'You have to specify at least one value for Custom Sort order';
|
|
18
18
|
}
|
|
19
19
|
return true;
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
21
|
+
exports.isValidCustomSortOrder = isValidCustomSortOrder;
|
|
22
|
+
const renderCustomSortValuesSummary = (data) => {
|
|
22
23
|
return data.SortedValues.length ? (React.createElement(rebass_1.Text, { fontSize: 2 },
|
|
23
24
|
React.createElement(ValueSelector_1.ValueOptionsTags, { options: data.SortedValues, value: data.SortedValues, toIdentifier: (x) => `${x}`, toLabel: (x) => `${x}`, allowWrap: true, readOnly: true }))) : null;
|
|
24
25
|
};
|
|
25
|
-
exports.
|
|
26
|
+
exports.renderCustomSortValuesSummary = renderCustomSortValuesSummary;
|
|
27
|
+
const CustomSortValuesWizardSection = (props) => {
|
|
26
28
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
27
29
|
const [distinctValues, setDistinctValues] = react_1.useState([]);
|
|
28
30
|
const [isDistinctValuesLoading, setIsDistinctValuesLoading] = react_1.useState(false);
|
|
@@ -71,3 +73,4 @@ exports.CustomSortValuesWizardSection = (props) => {
|
|
|
71
73
|
props.onChange(Object.assign(Object.assign({}, data), { SortedValues }));
|
|
72
74
|
} }))));
|
|
73
75
|
};
|
|
76
|
+
exports.CustomSortValuesWizardSection = CustomSortValuesWizardSection;
|
|
@@ -13,7 +13,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
13
13
|
const react_redux_1 = require("react-redux");
|
|
14
14
|
const CustomSortRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/CustomSortRedux"));
|
|
15
15
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
16
|
-
|
|
16
|
+
const CustomSortWizard = (props) => {
|
|
17
17
|
var _a, _b;
|
|
18
18
|
let data = props.data;
|
|
19
19
|
const allCustomSorts = react_redux_1.useSelector((state) => { var _a; return (_a = state.CustomSort) === null || _a === void 0 ? void 0 : _a.CustomSorts; });
|
|
@@ -79,3 +79,4 @@ exports.CustomSortWizard = (props) => {
|
|
|
79
79
|
},
|
|
80
80
|
] }));
|
|
81
81
|
};
|
|
82
|
+
exports.CustomSortWizard = CustomSortWizard;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
8
8
|
const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
|
|
9
|
-
|
|
9
|
+
const CustomDashboardButton = (props) => {
|
|
10
10
|
const { button } = props;
|
|
11
11
|
const [componentRevision, setComponentRevision] = react_1.useState(1);
|
|
12
12
|
// TODO: variants of this mapping are present in several places (just search for api.internalApi.getStyleForButton() usages)
|
|
@@ -45,3 +45,4 @@ exports.CustomDashboardButton = (props) => {
|
|
|
45
45
|
buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
|
|
46
46
|
buttonLabel));
|
|
47
47
|
};
|
|
48
|
+
exports.CustomDashboardButton = CustomDashboardButton;
|