@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
|
@@ -7,7 +7,7 @@ const PanelDashboard_1 = require("../Components/Panels/PanelDashboard");
|
|
|
7
7
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
8
8
|
const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
|
|
9
9
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
10
|
-
|
|
10
|
+
const ModuleToolbarWrapper = (props) => {
|
|
11
11
|
const moduleName = props.moduleInfo.ModuleName;
|
|
12
12
|
const moduleFriendlyName = props.moduleInfo.FriendlyName;
|
|
13
13
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
@@ -20,3 +20,4 @@ exports.ModuleToolbarWrapper = (props) => {
|
|
|
20
20
|
api.internalApi.dispatchReduxAction(PopupRedux.PopupShowScreen(moduleName, props.moduleInfo.Popup, popupParams));
|
|
21
21
|
}, onClose: () => api.internalApi.dispatchReduxAction(DashboardRedux.DashboardCloseToolbar(moduleName)), accessLevel: props.accessLevel }, props.children));
|
|
22
22
|
};
|
|
23
|
+
exports.ModuleToolbarWrapper = ModuleToolbarWrapper;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
|
+
export interface DataChangeHistoryData {
|
|
4
|
+
primaryKey: string;
|
|
5
|
+
changeKey: string;
|
|
6
|
+
changeTriggerLabel: string;
|
|
7
|
+
changedColumnLabel: string;
|
|
8
|
+
changeInfo: CellDataChangedInfo;
|
|
9
|
+
}
|
|
3
10
|
export interface DataChangeHistoryGridProps {
|
|
4
11
|
adaptableContainerId: string;
|
|
5
12
|
agGridContainerId: string;
|
|
@@ -9,7 +9,7 @@ const react_1 = require("react");
|
|
|
9
9
|
const usePrevious_1 = tslib_1.__importDefault(require("../../components/utils/usePrevious"));
|
|
10
10
|
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
11
11
|
const buildActionColumnButton_1 = require("./buildActionColumnButton");
|
|
12
|
-
|
|
12
|
+
const DataChangeHistoryGrid = (props) => {
|
|
13
13
|
const { changeHistoryLog, adaptableContainerId, agGridContainerId, onUndoChange } = props;
|
|
14
14
|
const mainAdaptableInstance = AdaptableContext_1.useAdaptable();
|
|
15
15
|
const [_adaptableApi, setAdaptableApi] = react_1.useState(null);
|
|
@@ -72,13 +72,14 @@ exports.DataChangeHistoryGrid = (props) => {
|
|
|
72
72
|
}, [changeHistoryLog]);
|
|
73
73
|
return React.createElement(React.Fragment, null);
|
|
74
74
|
};
|
|
75
|
+
exports.DataChangeHistoryGrid = DataChangeHistoryGrid;
|
|
75
76
|
const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange) => {
|
|
76
77
|
var _a, _b, _c;
|
|
77
78
|
const mainAdaptableOptions = mainAdaptableInstance.adaptableOptions;
|
|
78
79
|
const mainAdaptableTheme = mainAdaptableInstance.api.themeApi.getCurrentTheme();
|
|
79
80
|
const undoRowNode = (rowNode) => {
|
|
80
|
-
|
|
81
|
-
const changeKey =
|
|
81
|
+
const rowData = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data;
|
|
82
|
+
const changeKey = rowData === null || rowData === void 0 ? void 0 : rowData['changeKey'];
|
|
82
83
|
changeKey && onUndoChange(changeKey);
|
|
83
84
|
};
|
|
84
85
|
const actionColumnButton = buildActionColumnButton_1.buildActionColumnButton((_a = mainAdaptableInstance.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataChangeHistoryOptions, undoRowNode);
|
|
@@ -113,9 +114,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
|
|
|
113
114
|
layoutOptions: {
|
|
114
115
|
createDefaultLayout: false,
|
|
115
116
|
},
|
|
116
|
-
|
|
117
|
-
actionOptions: actionOptions,
|
|
118
|
-
},
|
|
117
|
+
actionOptions: actionOptions,
|
|
119
118
|
predefinedConfig: {
|
|
120
119
|
Layout: {
|
|
121
120
|
Revision: Date.now(),
|
|
@@ -201,6 +200,7 @@ const buildGridOptions = (mainAdaptableInstance, changeHistoryLog) => {
|
|
|
201
200
|
},
|
|
202
201
|
autoGroupColumnDef: {
|
|
203
202
|
sortable: true,
|
|
203
|
+
// suppressMenu: true,
|
|
204
204
|
},
|
|
205
205
|
columnDefs: [
|
|
206
206
|
{
|
|
@@ -4,6 +4,7 @@ exports.DataChangeHistoryStatusBarContent = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const DataChangeHistoryViewPanel_1 = require("./DataChangeHistoryViewPanel");
|
|
7
|
-
|
|
7
|
+
const DataChangeHistoryStatusBarContent = () => {
|
|
8
8
|
return React.createElement(DataChangeHistoryViewPanel_1.DataChangeHistoryViewPanelControl, { gap: 0, buttonsPaddingY: 0 });
|
|
9
9
|
};
|
|
10
|
+
exports.DataChangeHistoryStatusBarContent = DataChangeHistoryStatusBarContent;
|
|
@@ -12,7 +12,7 @@ const ButtonStop_1 = require("../Components/Buttons/ButtonStop");
|
|
|
12
12
|
const FormatHelper_1 = require("../../Utilities/Helpers/FormatHelper");
|
|
13
13
|
const Tooltip_1 = tslib_1.__importDefault(require("../../components/Tooltip"));
|
|
14
14
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
15
|
-
|
|
15
|
+
const DataChangeHistoryViewPanelControl = (props) => {
|
|
16
16
|
var _a, _b;
|
|
17
17
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
18
18
|
const dispatch = react_redux_1.useDispatch();
|
|
@@ -46,3 +46,4 @@ exports.DataChangeHistoryViewPanelControl = (props) => {
|
|
|
46
46
|
buttonPanel,
|
|
47
47
|
statusPanel));
|
|
48
48
|
};
|
|
49
|
+
exports.DataChangeHistoryViewPanelControl = DataChangeHistoryViewPanelControl;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildActionColumnButton = void 0;
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
if (!
|
|
7
|
-
(Array.isArray(
|
|
4
|
+
const buildActionColumnButton = (options, undoRowNode) => {
|
|
5
|
+
let changeHistoryButtons = options.changeHistoryButton;
|
|
6
|
+
if (!changeHistoryButtons ||
|
|
7
|
+
(Array.isArray(changeHistoryButtons) && changeHistoryButtons.length === 0)) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
-
if (!Array.isArray(
|
|
11
|
-
|
|
10
|
+
if (!Array.isArray(changeHistoryButtons)) {
|
|
11
|
+
changeHistoryButtons = [changeHistoryButtons];
|
|
12
12
|
}
|
|
13
13
|
const isGroupNode = (context) => context.adaptableApi.gridApi.isGroupRowNode(context.rowNode);
|
|
14
14
|
const onUndo = (context) => {
|
|
@@ -25,8 +25,11 @@ exports.buildActionColumnButton = (options, undoRowNode) => {
|
|
|
25
25
|
undoRowNode(rowNode);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
const buildContext = (context) =>
|
|
29
|
-
|
|
28
|
+
const buildContext = (context) => {
|
|
29
|
+
const dataChangedInfo = context.rowNode.data.changeInfo;
|
|
30
|
+
return Object.assign(Object.assign({}, context), { isGroupNode: isGroupNode(context), undoDataChange: () => onUndo(context), dataChangedInfo });
|
|
31
|
+
};
|
|
32
|
+
return changeHistoryButtons.map((actionColumnOption) => ({
|
|
30
33
|
label: (button, context) => {
|
|
31
34
|
if (typeof actionColumnOption.label !== 'function') {
|
|
32
35
|
return actionColumnOption.label;
|
|
@@ -52,7 +55,7 @@ exports.buildActionColumnButton = (options, undoRowNode) => {
|
|
|
52
55
|
return actionColumnOption.disabled(button, buildContext(context));
|
|
53
56
|
},
|
|
54
57
|
onClick: (button, context) => {
|
|
55
|
-
if (actionColumnOption.
|
|
58
|
+
if (actionColumnOption.action === 'undo') {
|
|
56
59
|
onUndo(buildContext(context));
|
|
57
60
|
}
|
|
58
61
|
if (typeof actionColumnOption.onClick === 'function') {
|
|
@@ -68,3 +71,4 @@ exports.buildActionColumnButton = (options, undoRowNode) => {
|
|
|
68
71
|
icon: actionColumnOption.icon,
|
|
69
72
|
}));
|
|
70
73
|
};
|
|
74
|
+
exports.buildActionColumnButton = buildActionColumnButton;
|
|
@@ -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 DataSetSelector = ({ data }) => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const dataSets = adaptable.api.dataSetApi.getAllDataSets();
|
|
11
11
|
const selectedDataSet = adaptable.api.dataSetApi.getCurrentDataSet();
|
|
@@ -16,3 +16,4 @@ exports.DataSetSelector = ({ 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.DataSetSelector = DataSetSelector;
|
|
@@ -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 DataSetStatusPanelPopover = () => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const dataSets = adaptable.api.dataSetApi.getAllDataSets();
|
|
11
11
|
const handleDataSetChange = React.useCallback((option) => {
|
|
@@ -17,3 +17,4 @@ exports.DataSetStatusPanelPopover = () => {
|
|
|
17
17
|
}));
|
|
18
18
|
return React.createElement(SelectList_1.SelectList, { options: options, onChange: handleDataSetChange });
|
|
19
19
|
};
|
|
20
|
+
exports.DataSetStatusPanelPopover = DataSetStatusPanelPopover;
|
|
@@ -15,5 +15,5 @@ declare class DataSetViewPanelComponent extends React.Component<DataSetViewPanel
|
|
|
15
15
|
render(): JSX.Element;
|
|
16
16
|
onSelectedDataSetChanged(dataSetName: string): void;
|
|
17
17
|
}
|
|
18
|
-
export declare let DataSetViewPanelControl: import("react-redux").ConnectedComponent<typeof DataSetViewPanelComponent,
|
|
18
|
+
export declare let DataSetViewPanelControl: import("react-redux").ConnectedComponent<typeof DataSetViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<DataSetViewPanelComponent> & DataSetViewPanelComponentProps, "api" | "accessLevel" | "moduleInfo" | "viewType" | "CurrentDataSetName" | "onSelectDataSet">>;
|
|
19
19
|
export {};
|
|
@@ -15,7 +15,7 @@ const dropdownStyle = {
|
|
|
15
15
|
const isCustomDestination = (destination) => {
|
|
16
16
|
return !!destination.name;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
const ExportSelector = () => {
|
|
19
19
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
20
20
|
// reports
|
|
21
21
|
const handleReportChange = (report) => {
|
|
@@ -73,3 +73,4 @@ exports.ExportSelector = () => {
|
|
|
73
73
|
React.createElement(DropdownButton_1.default, { disabled: currentReportId === constants_1.SELECT_REPORT_STRING, style: dropdownStyle, items: destinationItems, columns: ['label'], onClear: () => handleDestinationChange(null), showClearButton: !!currentDestination, variant: "outlined", marginRight: 2 }, currentDestinationId),
|
|
74
74
|
React.createElement(SimpleButton_1.default, { disabled: currentDestinationId === constants_1.SELECT_DESTINATION_STRING, iconSize: 15, icon: "export", variant: "text", onClick: handleExport })));
|
|
75
75
|
};
|
|
76
|
+
exports.ExportSelector = ExportSelector;
|
|
@@ -25,5 +25,5 @@ declare class ExportViewPanelComponent extends React.Component<ExportViewPanelCo
|
|
|
25
25
|
private isCustomDestination;
|
|
26
26
|
private onNewReportSchedule;
|
|
27
27
|
}
|
|
28
|
-
export declare let ExportViewPanelControl: import("react-redux").ConnectedComponent<typeof ExportViewPanelComponent,
|
|
28
|
+
export declare let ExportViewPanelControl: import("react-redux").ConnectedComponent<typeof ExportViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<ExportViewPanelComponent> & ExportViewPanelComponentProps, "api" | "accessLevel" | "CurrentReport" | "moduleInfo" | "Columns" | "viewType" | "onApplyExport" | "onSelectReport" | "onSelectDestination" | "onNewReport" | "onEditReport" | "onNewReportSchedule" | "Reports" | "CurrentDestination">>;
|
|
29
29
|
export {};
|
|
@@ -10,7 +10,7 @@ const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
|
10
10
|
const ExportRedux_1 = require("../../Redux/ActionsReducers/ExportRedux");
|
|
11
11
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
12
12
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
13
|
-
|
|
13
|
+
const ReportExportDropdown = (props) => {
|
|
14
14
|
const report = props.data;
|
|
15
15
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
16
16
|
const dispatch = react_redux_1.useDispatch();
|
|
@@ -35,3 +35,4 @@ exports.ReportExportDropdown = (props) => {
|
|
|
35
35
|
return (React.createElement(DropdownButton_1.default, { columns: ['label'], tooltip: "Export Report", variant: "text", items: destinationItems },
|
|
36
36
|
React.createElement(icons_1.Icon, { name: "export" })));
|
|
37
37
|
};
|
|
38
|
+
exports.ReportExportDropdown = ReportExportDropdown;
|
|
@@ -14,9 +14,10 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
14
14
|
const react_redux_1 = require("react-redux");
|
|
15
15
|
const ExportRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ExportRedux"));
|
|
16
16
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
17
|
-
|
|
17
|
+
const NewReportWizard = (props) => {
|
|
18
18
|
var _a, _b;
|
|
19
|
-
const isEdit = ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.action)
|
|
19
|
+
const isEdit = ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.action)
|
|
20
|
+
? props.popupParams.action === 'Edit'
|
|
20
21
|
: Boolean(props.data);
|
|
21
22
|
const currentReport = react_redux_1.useSelector((state) => {
|
|
22
23
|
if (!isEdit) {
|
|
@@ -78,3 +79,4 @@ exports.NewReportWizard = (props) => {
|
|
|
78
79
|
},
|
|
79
80
|
] }));
|
|
80
81
|
};
|
|
82
|
+
exports.NewReportWizard = NewReportWizard;
|
|
@@ -8,13 +8,14 @@ const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
|
8
8
|
const Tabs_1 = require("../../../components/Tabs");
|
|
9
9
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
10
10
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
|
-
|
|
11
|
+
const isValidReportColumnsScope = (report) => {
|
|
12
12
|
if (report.ReportColumnScope === 'ScopeColumns') {
|
|
13
13
|
return report.Scope != null ? true : 'Column scope is not defined';
|
|
14
14
|
}
|
|
15
15
|
return true;
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.isValidReportColumnsScope = isValidReportColumnsScope;
|
|
18
|
+
const renderReportColumnsSummary = (report) => {
|
|
18
19
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
19
20
|
report.ReportColumnScope === 'AllColumns' ? (React.createElement(React.Fragment, null,
|
|
20
21
|
"Include ",
|
|
@@ -30,7 +31,8 @@ exports.renderReportColumnsSummary = (report) => {
|
|
|
30
31
|
scopeDataTypes: 'Report will include columns with the following types',
|
|
31
32
|
}))) : null));
|
|
32
33
|
};
|
|
33
|
-
exports.
|
|
34
|
+
exports.renderReportColumnsSummary = renderReportColumnsSummary;
|
|
35
|
+
const ReportColumnsWizardSection = (props) => {
|
|
34
36
|
const { api, data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
35
37
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
|
|
36
38
|
React.createElement(Tabs_1.Tabs, { m: 2, value: data.ReportColumnScope, onValueChange: (ReportColumnScope) => {
|
|
@@ -68,3 +70,4 @@ exports.ReportColumnsWizardSection = (props) => {
|
|
|
68
70
|
props.onChange(report);
|
|
69
71
|
} }))) : null));
|
|
70
72
|
};
|
|
73
|
+
exports.ReportColumnsWizardSection = ReportColumnsWizardSection;
|
|
@@ -9,13 +9,14 @@ const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayou
|
|
|
9
9
|
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
10
10
|
const Tag_1 = require("../../../components/Tag");
|
|
11
11
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
12
|
-
|
|
12
|
+
const renderReportNameSummary = (report) => {
|
|
13
13
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
14
14
|
' ',
|
|
15
15
|
"Report Name: ",
|
|
16
16
|
React.createElement(Tag_1.Tag, null, report.Name)));
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
18
|
+
exports.renderReportNameSummary = renderReportNameSummary;
|
|
19
|
+
const isValidReportName = (report, api) => {
|
|
19
20
|
if (!report.Name) {
|
|
20
21
|
return 'Report name cannot be empty';
|
|
21
22
|
}
|
|
@@ -27,7 +28,8 @@ exports.isValidReportName = (report, api) => {
|
|
|
27
28
|
: reportsWithSameNameCount > 0;
|
|
28
29
|
return hasAlreadyExistingName ? 'A Report already exists with that name' : true;
|
|
29
30
|
};
|
|
30
|
-
exports.
|
|
31
|
+
exports.isValidReportName = isValidReportName;
|
|
32
|
+
const ReportNameWizardSection = (props) => {
|
|
31
33
|
const { api, data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
32
34
|
const validCheck = exports.isValidReportName(data, api);
|
|
33
35
|
const ErrorMessage = validCheck === true ? null : validCheck;
|
|
@@ -43,3 +45,4 @@ exports.ReportNameWizardSection = (props) => {
|
|
|
43
45
|
React.createElement(React.Fragment, null),
|
|
44
46
|
ErrorMessage ? React.createElement(ErrorBox_1.default, null, ErrorMessage) : null)))));
|
|
45
47
|
};
|
|
48
|
+
exports.ReportNameWizardSection = ReportNameWizardSection;
|
|
@@ -10,14 +10,15 @@ const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
|
10
10
|
const Tabs_1 = require("../../../components/Tabs");
|
|
11
11
|
const Tag_1 = require("../../../components/Tag");
|
|
12
12
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
13
|
-
|
|
13
|
+
const isValidReportRowsQuery = (report) => {
|
|
14
14
|
var _a;
|
|
15
15
|
if (report.ReportRowScope === 'ExpressionRows' && !((_a = report.Query) === null || _a === void 0 ? void 0 : _a.BooleanExpression)) {
|
|
16
16
|
return 'Rows query cannot be empty';
|
|
17
17
|
}
|
|
18
18
|
return true;
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
20
|
+
exports.isValidReportRowsQuery = isValidReportRowsQuery;
|
|
21
|
+
const renderReportRowsSummary = (report) => {
|
|
21
22
|
var _a;
|
|
22
23
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
23
24
|
report.ReportRowScope === 'AllRows' ? (React.createElement(React.Fragment, null,
|
|
@@ -32,7 +33,8 @@ exports.renderReportRowsSummary = (report) => {
|
|
|
32
33
|
"Include Rows matching the query: ",
|
|
33
34
|
React.createElement(Tag_1.Tag, null, (_a = report.Query) === null || _a === void 0 ? void 0 : _a.BooleanExpression))) : null));
|
|
34
35
|
};
|
|
35
|
-
exports.
|
|
36
|
+
exports.renderReportRowsSummary = renderReportRowsSummary;
|
|
37
|
+
const ReportRowsWizardSection = (props) => {
|
|
36
38
|
var _a, _b;
|
|
37
39
|
const { api, data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
38
40
|
const initialData = react_1.useMemo(() => api.internalApi.getQueryPreviewData(), []);
|
|
@@ -69,3 +71,4 @@ exports.ReportRowsWizardSection = (props) => {
|
|
|
69
71
|
} }));
|
|
70
72
|
}, initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getAllNamedQuery(), api: api })))));
|
|
71
73
|
};
|
|
74
|
+
exports.ReportRowsWizardSection = ReportRowsWizardSection;
|
|
@@ -6,9 +6,10 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const AdaptableObjectCompactList_1 = require("../Components/AdaptableObjectList/AdaptableObjectCompactList");
|
|
9
|
-
|
|
9
|
+
const ActiveFiltersPanel = () => {
|
|
10
10
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
11
11
|
const filterModule = adaptable.ModuleService.getModuleById(ModuleConstants.FilterModuleId);
|
|
12
12
|
const columnFilters = adaptable.api.filterApi.getColumnFilters();
|
|
13
13
|
return React.createElement(AdaptableObjectCompactList_1.AdaptableObjectCompactList, { abObjects: columnFilters, module: filterModule });
|
|
14
14
|
};
|
|
15
|
+
exports.ActiveFiltersPanel = ActiveFiltersPanel;
|
|
@@ -4,6 +4,7 @@ exports.FilterStatusBarSubPanelPopover = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const ActiveFiltersPanel_1 = require("./ActiveFiltersPanel");
|
|
7
|
-
|
|
7
|
+
const FilterStatusBarSubPanelPopover = () => {
|
|
8
8
|
return React.createElement(ActiveFiltersPanel_1.ActiveFiltersPanel, null);
|
|
9
9
|
};
|
|
10
|
+
exports.FilterStatusBarSubPanelPopover = FilterStatusBarSubPanelPopover;
|
|
@@ -12,4 +12,4 @@ export declare class FilterSummaryComponent extends React.Component<FilterSummar
|
|
|
12
12
|
render(): any;
|
|
13
13
|
getDescription(columnFilter: ColumnFilter): string;
|
|
14
14
|
}
|
|
15
|
-
export declare let FilterSummary: import("react-redux").ConnectedComponent<typeof FilterSummaryComponent,
|
|
15
|
+
export declare let FilterSummary: import("react-redux").ConnectedComponent<typeof FilterSummaryComponent, import("react-redux").Omit<React.ClassAttributes<FilterSummaryComponent> & FilterSummaryProps, "onClearPopupParams" | "ColumnFilters" | "onShare" | "onClearFilter">>;
|
|
@@ -18,5 +18,5 @@ declare class FilterViewPanelComponent extends React.Component<FilterViewPanelCo
|
|
|
18
18
|
private onClearFilters;
|
|
19
19
|
private onClearColumnFilter;
|
|
20
20
|
}
|
|
21
|
-
export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent,
|
|
21
|
+
export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<FilterViewPanelComponent> & FilterViewPanelComponentProps, "api" | "accessLevel" | "IsQuickFilterVisible" | "moduleInfo" | "Columns" | "ColumnFilters" | "viewType" | "onHideQuickFilterBar" | "onShowQuickFilterBar" | "Entitlements">>;
|
|
22
22
|
export {};
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const StylePreview_1 = require("../../components/StylePreview");
|
|
8
|
-
|
|
8
|
+
const FlashingCellStyle = (props) => {
|
|
9
9
|
const { data } = props, boxProps = tslib_1.__rest(props, ["data"]);
|
|
10
10
|
return (react_1.default.createElement(rebass_1.Flex, Object.assign({ flexDirection: "row" }, boxProps),
|
|
11
11
|
react_1.default.createElement(StylePreview_1.StylePreview, { mr: 1, flex: 1, styleObject: props.data.UpChangeStyle },
|
|
@@ -18,3 +18,4 @@ exports.FlashingCellStyle = (props) => {
|
|
|
18
18
|
"Neutral ",
|
|
19
19
|
!props.data.NeutralChangeStyle ? ' - no style' : '')));
|
|
20
20
|
};
|
|
21
|
+
exports.FlashingCellStyle = FlashingCellStyle;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
7
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
8
8
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
9
|
-
|
|
9
|
+
const renderFlashingAlertRulesSummary = (flashingAlert) => {
|
|
10
10
|
var _a;
|
|
11
11
|
const { api: { flashingCellApi }, } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
12
12
|
const FlashTarget = (_a = flashingAlert.FlashTarget) !== null && _a !== void 0 ? _a : flashingCellApi.getFlashingCellFlashTarget(flashingAlert);
|
|
@@ -27,7 +27,8 @@ exports.renderFlashingAlertRulesSummary = (flashingAlert) => {
|
|
|
27
27
|
React.createElement(CodeBlock_1.CodeBlock, null, content))));
|
|
28
28
|
} }));
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
30
|
+
exports.renderFlashingAlertRulesSummary = renderFlashingAlertRulesSummary;
|
|
31
|
+
const FlashingAlertRulesWizardSection = (props) => {
|
|
31
32
|
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
32
33
|
const predicateDefs = api.flashingCellApi.getFlashingCellPredicateDefsForScope(data.Scope);
|
|
33
34
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: false, showObservable: false, showBoolean: true, showPredicate: true, descriptions: {
|
|
@@ -46,3 +47,4 @@ exports.FlashingAlertRulesWizardSection = (props) => {
|
|
|
46
47
|
" is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
|
|
47
48
|
} }));
|
|
48
49
|
};
|
|
50
|
+
exports.FlashingAlertRulesWizardSection = FlashingAlertRulesWizardSection;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
8
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
|
-
|
|
9
|
+
const FlashingAlertScopeWizardSection = (props) => {
|
|
10
10
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
11
11
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
|
|
12
12
|
React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
@@ -24,3 +24,4 @@ exports.FlashingAlertScopeWizardSection = (props) => {
|
|
|
24
24
|
props.onChange(newData);
|
|
25
25
|
} })));
|
|
26
26
|
};
|
|
27
|
+
exports.FlashingAlertScopeWizardSection = FlashingAlertScopeWizardSection;
|
|
@@ -13,7 +13,7 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
|
13
13
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
14
14
|
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
15
15
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
16
|
-
|
|
16
|
+
const renderFlashingAlertSettingsSummary = (flashingAlert) => {
|
|
17
17
|
return (React.createElement(React.Fragment, null,
|
|
18
18
|
React.createElement(rebass_1.Text, { fontSize: 2 }, flashingAlert.FlashDuration === 'always' ? (React.createElement(React.Fragment, null, "Flashing is never removed")) : (React.createElement(React.Fragment, null,
|
|
19
19
|
"Flashing is removed after ",
|
|
@@ -21,7 +21,8 @@ exports.renderFlashingAlertSettingsSummary = (flashingAlert) => {
|
|
|
21
21
|
' ',
|
|
22
22
|
"milliseconds")))));
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
24
|
+
exports.renderFlashingAlertSettingsSummary = renderFlashingAlertSettingsSummary;
|
|
25
|
+
const FlashingAlertSettingsWizardSection = (props) => {
|
|
25
26
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
26
27
|
let { data: flashingCell } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
27
28
|
flashingCell = flashingCell !== null && flashingCell !== void 0 ? flashingCell : props.flashingCell;
|
|
@@ -75,7 +76,11 @@ exports.FlashingAlertSettingsWizardSection = (props) => {
|
|
|
75
76
|
React.createElement(rebass_1.Text, { fontSize: 2 }, "milliseconds"))),
|
|
76
77
|
duration === 'always' && (React.createElement(rebass_1.Text, { height: 43, fontSize: 3 }, "Persists the flashing style indeterminately - can be removed manually"))),
|
|
77
78
|
React.createElement(FormLayout_1.FormRow, { label: "Flash Target" },
|
|
78
|
-
React.createElement(CheckBox_1.CheckBox, { onChange: (checked) => handleTargetChange('cell', checked), mr: 3, checked: (flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) === 'cell' ||
|
|
79
|
-
|
|
80
|
-
React.createElement(CheckBox_1.CheckBox, { onChange: (checked) => handleTargetChange('
|
|
79
|
+
React.createElement(CheckBox_1.CheckBox, { onChange: (checked) => handleTargetChange('cell', checked), mr: 3, checked: (flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) === 'cell' ||
|
|
80
|
+
((_c = (_b = flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) === null || _b === void 0 ? void 0 : _b.includes) === null || _c === void 0 ? void 0 : _c.call(_b, 'cell')), tabIndex: -1 }, "Cell"),
|
|
81
|
+
React.createElement(CheckBox_1.CheckBox, { mr: 3, onChange: (checked) => handleTargetChange('row', checked), checked: (flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) === 'row' ||
|
|
82
|
+
((_e = (_d = flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) === null || _d === void 0 ? void 0 : _d.includes) === null || _e === void 0 ? void 0 : _e.call(_d, 'row')), tabIndex: -1 }, "Row"),
|
|
83
|
+
React.createElement(CheckBox_1.CheckBox, { onChange: (checked) => handleTargetChange('aggFuncCell', checked), checked: (flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) === 'aggFuncCell' ||
|
|
84
|
+
((_g = (_f = flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.FlashTarget) === null || _f === void 0 ? void 0 : _f.includes) === null || _g === void 0 ? void 0 : _g.call(_f, 'aggFuncCell')), tabIndex: -1 }, "Aggregated Function Cell")))))));
|
|
81
85
|
};
|
|
86
|
+
exports.FlashingAlertSettingsWizardSection = FlashingAlertSettingsWizardSection;
|
|
@@ -9,7 +9,7 @@ const Tabs_1 = require("../../../components/Tabs");
|
|
|
9
9
|
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
10
10
|
const StylePreview_1 = require("../../../components/StylePreview");
|
|
11
11
|
const changeStyle = (React.createElement(rebass_1.Text, { fontSize: 2, style: { display: 'inline-block' } }, "Change style"));
|
|
12
|
-
|
|
12
|
+
const FlashingAlertStyleWizardSection = (props) => {
|
|
13
13
|
var _a, _b, _c;
|
|
14
14
|
let { data: flashingAlert, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
15
15
|
flashingAlert = flashingAlert !== null && flashingAlert !== void 0 ? flashingAlert : props.flashingAlert;
|
|
@@ -31,7 +31,8 @@ exports.FlashingAlertStyleWizardSection = (props) => {
|
|
|
31
31
|
React.createElement(Tabs_1.Tabs.Content, { value: "neutral" },
|
|
32
32
|
React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: (_c = flashingAlert.NeutralChangeStyle) !== null && _c !== void 0 ? _c : {}, UpdateStyle: (style) => props.onStyleChange('NeutralChangeStyle', style) })))));
|
|
33
33
|
};
|
|
34
|
-
exports.
|
|
34
|
+
exports.FlashingAlertStyleWizardSection = FlashingAlertStyleWizardSection;
|
|
35
|
+
const FlashingCellStyle = (props) => {
|
|
35
36
|
const { data } = props, boxProps = tslib_1.__rest(props, ["data"]);
|
|
36
37
|
return (React.createElement(rebass_1.Box, Object.assign({}, boxProps),
|
|
37
38
|
React.createElement(StylePreview_1.StylePreview, { styleObject: props.data.UpChangeStyle },
|
|
@@ -44,6 +45,8 @@ exports.FlashingCellStyle = (props) => {
|
|
|
44
45
|
"Neutral change style ",
|
|
45
46
|
!props.data.NeutralChangeStyle ? ' - no style' : '')));
|
|
46
47
|
};
|
|
47
|
-
exports.
|
|
48
|
+
exports.FlashingCellStyle = FlashingCellStyle;
|
|
49
|
+
const renderFlashingAlertStyleSummary = (flashingAlert) => {
|
|
48
50
|
return React.createElement(exports.FlashingCellStyle, { data: flashingAlert });
|
|
49
51
|
};
|
|
52
|
+
exports.renderFlashingAlertStyleSummary = renderFlashingAlertStyleSummary;
|
|
@@ -19,7 +19,7 @@ const react_redux_1 = require("react-redux");
|
|
|
19
19
|
const isValidFlashingCellRules_1 = require("./isValidFlashingCellRules");
|
|
20
20
|
const FlashingCellRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
21
21
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
22
|
-
|
|
22
|
+
const FlashingCellWizard = (props) => {
|
|
23
23
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
24
24
|
const [flashingCell, setFlashingCell] = react_1.useState(() => {
|
|
25
25
|
let flashingCell = props.data
|
|
@@ -104,3 +104,4 @@ exports.FlashingCellWizard = (props) => {
|
|
|
104
104
|
},
|
|
105
105
|
] }));
|
|
106
106
|
};
|
|
107
|
+
exports.FlashingCellWizard = FlashingCellWizard;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isValidFlashingCellRules = void 0;
|
|
4
4
|
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
5
|
-
|
|
5
|
+
const isValidFlashingCellRules = (flashingCell, api, context) => {
|
|
6
6
|
let valid = true;
|
|
7
7
|
if (!flashingCell.Rule.Predicate && !flashingCell.Rule.BooleanExpression) {
|
|
8
8
|
return 'No Rule defined for Flashing Cell';
|
|
@@ -28,3 +28,4 @@ exports.isValidFlashingCellRules = (flashingCell, api, context) => {
|
|
|
28
28
|
}
|
|
29
29
|
return true;
|
|
30
30
|
};
|
|
31
|
+
exports.isValidFlashingCellRules = isValidFlashingCellRules;
|
|
@@ -77,7 +77,7 @@ const DateFormatPresets = [
|
|
|
77
77
|
'yyyyMMdd',
|
|
78
78
|
'HH:mm:ss',
|
|
79
79
|
];
|
|
80
|
-
|
|
80
|
+
const getFormatColumnFormatSummaryValue = (data, formattedColumnApi) => {
|
|
81
81
|
let content = 'N/A';
|
|
82
82
|
if (!data.DisplayFormat) {
|
|
83
83
|
content = 'N/A';
|
|
@@ -95,6 +95,7 @@ exports.getFormatColumnFormatSummaryValue = (data, formattedColumnApi) => {
|
|
|
95
95
|
}
|
|
96
96
|
return content;
|
|
97
97
|
};
|
|
98
|
+
exports.getFormatColumnFormatSummaryValue = getFormatColumnFormatSummaryValue;
|
|
98
99
|
function splitArrayInTwo(arr) {
|
|
99
100
|
const half = Math.floor(arr.length - 1 / 2);
|
|
100
101
|
return [arr.slice(0, half), arr.slice(half)];
|
|
@@ -114,10 +115,11 @@ const renderCustomFormatter = (data, customFormatter, setFormatOption) => {
|
|
|
114
115
|
setFormatOption('CustomDisplayFormats', newCustomFormats);
|
|
115
116
|
} })));
|
|
116
117
|
};
|
|
117
|
-
|
|
118
|
+
const renderFormatColumnFormatSummary = (data, api) => {
|
|
118
119
|
return React.createElement(Tag_1.Tag, null, exports.getFormatColumnFormatSummaryValue(data, api.formatColumnApi));
|
|
119
120
|
};
|
|
120
|
-
exports.
|
|
121
|
+
exports.renderFormatColumnFormatSummary = renderFormatColumnFormatSummary;
|
|
122
|
+
const getFormatDisplayTypeForScope = (scope, api) => {
|
|
121
123
|
if (scope == undefined) {
|
|
122
124
|
return undefined;
|
|
123
125
|
}
|
|
@@ -150,6 +152,7 @@ exports.getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
150
152
|
}
|
|
151
153
|
return undefined;
|
|
152
154
|
};
|
|
155
|
+
exports.getFormatDisplayTypeForScope = getFormatDisplayTypeForScope;
|
|
153
156
|
const renderDateFormat = (data, _onChange, setFormatOption, customFormatters, formatColumnApi) => {
|
|
154
157
|
if (data.DisplayFormat.Formatter !== 'DateFormatter') {
|
|
155
158
|
return null;
|
|
@@ -353,7 +356,7 @@ const renderStringFormat = (data, _onChange, setFormatOption, customFormatters,
|
|
|
353
356
|
},
|
|
354
357
|
] })))));
|
|
355
358
|
};
|
|
356
|
-
|
|
359
|
+
const FormatColumnFormatWizardSection = (props) => {
|
|
357
360
|
var _a, _b, _c;
|
|
358
361
|
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
359
362
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
@@ -384,3 +387,4 @@ exports.FormatColumnFormatWizardSection = (props) => {
|
|
|
384
387
|
React.createElement("b", null, "all"),
|
|
385
388
|
" the columns in Scope are Numeric, String or Date."));
|
|
386
389
|
};
|
|
390
|
+
exports.FormatColumnFormatWizardSection = FormatColumnFormatWizardSection;
|
|
@@ -5,14 +5,15 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
7
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
|
-
|
|
8
|
+
const renderFormatColumnScopeSummary = (data) => {
|
|
9
9
|
return NewScopeComponent_1.renderScopeSummary(data.Scope, {
|
|
10
10
|
scopeWholeRow: 'Matching rows will be formatted',
|
|
11
11
|
scopeColumns: 'Cells in selected columns will be formatted',
|
|
12
12
|
scopeDataTypes: 'Cells in columns of the selected data-types will be formatted',
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
exports.
|
|
15
|
+
exports.renderFormatColumnScopeSummary = renderFormatColumnScopeSummary;
|
|
16
|
+
const FormatColumnScopeWizardSection = (props) => {
|
|
16
17
|
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
17
18
|
return (React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
18
19
|
rowScope: 'Apply a style to an entire row',
|
|
@@ -21,3 +22,4 @@ exports.FormatColumnScopeWizardSection = (props) => {
|
|
|
21
22
|
props.onChange(Object.assign(Object.assign({}, data), { Scope }));
|
|
22
23
|
} }));
|
|
23
24
|
};
|
|
25
|
+
exports.FormatColumnScopeWizardSection = FormatColumnScopeWizardSection;
|