@adaptabletools/adaptable-cjs 23.0.4 → 23.0.5-canary.0
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/agGrid.js +0 -31
- package/index.js +0 -31
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +1 -9
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +3 -39
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +44 -16
- package/src/AdaptableState/Aggregations/only.js +0 -11
- package/src/AdaptableState/Aggregations/weightedAverage.js +0 -26
- package/src/AdaptableState/Common/AdaptableColumn.js +0 -1
- package/src/AdaptableState/Common/AdaptableForm.js +0 -49
- package/src/AdaptableState/Common/AdaptableFormatPresets.js +0 -13
- package/src/AdaptableState/Common/AdaptablePredicate.js +3 -125
- package/src/AdaptableState/Common/AggregationColumns.js +0 -10
- package/src/AdaptableState/Common/Enums.js +0 -3
- package/src/AdaptableState/Common/Menu.js +1 -7
- package/src/AdaptableState/Common/MenuItem.js +0 -2
- package/src/AdaptableState/Common/Types.js +2 -5
- package/src/AdaptableState/StatusBarState.js +0 -3
- package/src/AdaptableState/StyledColumns/BadgeStyle.js +0 -1
- package/src/AdaptableState/StyledColumns/Common/BarStyleProperties.js +0 -4
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +0 -5
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +0 -8
- package/src/AdaptableState/Uuid.js +0 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +0 -4
- package/src/Api/Implementation/AlertApiImpl.js +0 -21
- package/src/Api/Implementation/ApiBase.js +0 -24
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -3
- package/src/Api/Implementation/ColumnApiImpl.js +1 -15
- package/src/Api/Implementation/ColumnFilterApiImpl.js +0 -9
- package/src/Api/Implementation/ColumnScopeApiImpl.js +0 -21
- package/src/Api/Implementation/DashboardApiImpl.js +0 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +0 -1
- package/src/Api/Implementation/ExportApiImpl.js +0 -10
- package/src/Api/Implementation/ExpressionApiImpl.js +0 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -3
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -2
- package/src/Api/Implementation/GridApiImpl.js +1 -22
- package/src/Api/Implementation/GridFilterApiImpl.js +0 -2
- package/src/Api/Implementation/LayoutApiImpl.js +0 -18
- package/src/Api/Implementation/LayoutHelpers.js +0 -16
- package/src/Api/Implementation/NamedQueryApiImpl.js +0 -1
- package/src/Api/Implementation/PredicateApiImpl.js +0 -5
- package/src/Api/Implementation/RowFormApiImpl.js +0 -2
- package/src/Api/Implementation/StateApiImpl.js +0 -7
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -1
- package/src/Api/Internal/ActionColumnInternalApi.js +0 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
- package/src/Api/Internal/AdaptableInternalApi.js +1 -39
- package/src/Api/Internal/AlertInternalApi.js +1 -102
- package/src/Api/Internal/CalculatedColumnInternalApi.js +0 -17
- package/src/Api/Internal/ChartingInternalApi.js +0 -1
- package/src/Api/Internal/ColumnFilterInternalApi.js +0 -52
- package/src/Api/Internal/ColumnInternalApi.js +0 -32
- package/src/Api/Internal/CustomSortInternalApi.js +0 -5
- package/src/Api/Internal/DashboardInternalApi.js +0 -23
- package/src/Api/Internal/DataImportInternalApi.js +0 -1
- package/src/Api/Internal/EventInternalApi.js +0 -2
- package/src/Api/Internal/ExportInternalApi.js +1 -16
- package/src/Api/Internal/ExpressionInternalApi.js +0 -23
- package/src/Api/Internal/Fdc3InternalApi.js +0 -9
- package/src/Api/Internal/FlashingCellInternalApi.js +0 -5
- package/src/Api/Internal/FormatColumnInternalApi.js +5 -107
- package/src/Api/Internal/FreeTextColumnInternalApi.js +0 -8
- package/src/Api/Internal/GridFilterInternalApi.js +0 -3
- package/src/Api/Internal/GridInternalApi.js +0 -37
- package/src/Api/Internal/LayoutInternalApi.js +0 -18
- package/src/Api/Internal/NamedQueryInternalApi.js +0 -9
- package/src/Api/Internal/PredicateInternalApi.js +0 -23
- package/src/Api/Internal/RowFormInternalApi.js +0 -18
- package/src/Api/Internal/StateInternalApi.js +0 -25
- package/src/Api/Internal/StyledColumnInternalApi.js +0 -62
- package/src/Api/Internal/TeamSharingInternalApi.js +0 -9
- package/src/Redux/ActionsReducers/AlertRedux.js +0 -24
- package/src/Redux/ActionsReducers/ApplicationRedux.js +0 -9
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +0 -6
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +1 -16
- package/src/Redux/ActionsReducers/ChartingRedux.js +0 -24
- package/src/Redux/ActionsReducers/CommentsRedux.js +0 -24
- package/src/Redux/ActionsReducers/CustomSortRedux.js +0 -24
- package/src/Redux/ActionsReducers/DashboardRedux.js +0 -33
- package/src/Redux/ActionsReducers/ExportRedux.js +0 -36
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +0 -24
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +0 -36
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +1 -20
- package/src/Redux/ActionsReducers/InternalRedux.js +0 -42
- package/src/Redux/ActionsReducers/LayoutRedux.js +1 -67
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +0 -15
- package/src/Redux/ActionsReducers/NoteRedux.js +0 -14
- package/src/Redux/ActionsReducers/PluginsRedux.js +0 -3
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +0 -34
- package/src/Redux/ActionsReducers/PopupRedux.js +2 -6
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +0 -15
- package/src/Redux/ActionsReducers/ShortcutRedux.js +0 -24
- package/src/Redux/ActionsReducers/SmartEditRedux.js +0 -6
- package/src/Redux/ActionsReducers/StatusBarRedux.js +0 -6
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +0 -27
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +0 -6
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +0 -1
- package/src/Redux/ActionsReducers/ThemeRedux.js +0 -26
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +0 -22
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +0 -3
- package/src/Redux/ActionsReducers/utils.js +0 -6
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +0 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +0 -25
- package/src/Redux/Store/AdaptableStore.js +5 -301
- package/src/Strategy/AdaptableModuleBase.js +0 -35
- package/src/Strategy/AlertModule.js +0 -9
- package/src/Strategy/CellSummaryModule.js +0 -12
- package/src/Strategy/ChartingModule.js +0 -1
- package/src/Strategy/ColumnFilterModule.js +1 -11
- package/src/Strategy/CommentModule.js +0 -2
- package/src/Strategy/DashboardModule.js +0 -4
- package/src/Strategy/ExportModule.js +0 -1
- package/src/Strategy/FlashingCellModule.js +0 -8
- package/src/Strategy/FormatColumnModule.js +0 -3
- package/src/Strategy/FreeTextColumnModule.js +0 -3
- package/src/Strategy/LayoutModule.js +0 -26
- package/src/Strategy/NoteModule.js +0 -3
- package/src/Strategy/PlusMinusModule.js +0 -3
- package/src/Strategy/SettingsPanelModule.js +0 -1
- package/src/Strategy/ShortcutModule.js +0 -1
- package/src/Strategy/SmartEditModule.js +0 -5
- package/src/Strategy/StatusBarModule.js +0 -7
- package/src/Strategy/StyledColumnModule.js +1 -16
- package/src/Strategy/TeamSharingModule.js +0 -9
- package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +0 -5
- package/src/Utilities/Constants/DocumentationLinkConstants.js +0 -1
- package/src/Utilities/Constants/GeneralConstants.js +0 -10
- package/src/Utilities/Constants/ObjectDefaultConstants.js +0 -3
- package/src/Utilities/Constants/ReduxConstants.js +4 -8
- package/src/Utilities/Emitter.js +0 -9
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +0 -8
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +0 -15
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +0 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +0 -16
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +0 -9
- package/src/Utilities/ExpressionFunctions/groupingMap.js +0 -9
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +7 -78
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +0 -9
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +2 -16
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -63
- package/src/Utilities/Extensions/NumberExtensions.js +0 -27
- package/src/Utilities/Extensions/ObjectExtensions.js +0 -36
- package/src/Utilities/Extensions/StringExtensions.js +0 -27
- package/src/Utilities/Helpers/ActionColumnHelper.js +0 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +0 -8
- package/src/Utilities/Helpers/DateHelper.js +0 -10
- package/src/Utilities/Helpers/DisplayFormatHelper.js +0 -8
- package/src/Utilities/Helpers/Helper.js +3 -9
- package/src/Utilities/Helpers/PlusMinusHelper.js +0 -20
- package/src/Utilities/Helpers/QuickSearchHelper.js +0 -5
- package/src/Utilities/Helpers/Scheduling/CronExpression.js +0 -43
- package/src/Utilities/Helpers/Scheduling/ScheduledReportHelper.js +0 -4
- package/src/Utilities/Helpers/SettingsPanelHelper.js +40 -4
- package/src/Utilities/Helpers/StyleHelper.js +0 -56
- package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.js +0 -46
- package/src/Utilities/Helpers/StyledColumns/GradientStyleHelper.js +0 -38
- package/src/Utilities/Helpers/StyledColumns/IconStyleHelper.js +0 -39
- package/src/Utilities/Helpers/StyledColumns/PercentBarStyleHelper.js +0 -1
- package/src/Utilities/Helpers/StyledColumns/SparklineStyleHelper.js +0 -5
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +0 -37
- package/src/Utilities/Helpers/TimingHelper.js +0 -13
- package/src/Utilities/ObjectFactory.js +2 -4
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +0 -7
- package/src/Utilities/Services/AlertService.js +0 -1
- package/src/Utilities/Services/AnnotationsService.js +0 -22
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +0 -8
- package/src/Utilities/Services/ChartingService.js +0 -9
- package/src/Utilities/Services/DataService.js +0 -11
- package/src/Utilities/Services/Fdc3Service.js +0 -3
- package/src/Utilities/Services/FlashingCellService.js +0 -6
- package/src/Utilities/Services/ModuleService.js +0 -8
- package/src/Utilities/Services/QueryLanguageService.js +2 -25
- package/src/Utilities/Services/RowFormService.js +0 -1
- package/src/Utilities/Services/RowSummaryService.js +1 -20
- package/src/Utilities/Services/TeamSharingService.js +0 -15
- package/src/Utilities/Services/ThemeService.js +0 -7
- package/src/Utilities/Services/ValidationService.js +0 -21
- package/src/Utilities/createAgStatusPanelComponent.js +0 -3
- package/src/Utilities/getExpressionViewItems.js +0 -2
- package/src/Utilities/getObjectTagsViewItems.js +0 -1
- package/src/Utilities/getScrollbarSize.js +0 -1
- package/src/Utilities/logDeprecation.js +0 -3
- package/src/Utilities/resolveContainerElement.js +0 -21
- package/src/Utilities/runIfNotResolvedIn.js +0 -7
- package/src/Utilities/sortColumnStateForVisibleColumns.js +2 -12
- package/src/Utilities/waitForTimeout.js +0 -1
- package/src/Utilities/wizardSelection.js +0 -2
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/AdaptableView.js +1 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -23
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -2
- package/src/View/AdaptableWizardView/Wizard.js +0 -12
- package/src/View/AdaptableWizardView/helper.js +0 -11
- package/src/View/Alert/ActiveAlertsPanel.js +0 -2
- package/src/View/Alert/AlertStatusSubPanel.js +0 -8
- package/src/View/Alert/Utilities/getAlertType.js +0 -7
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +0 -5
- package/src/View/Alert/Utilities/mapAlertDefinition.js +0 -3
- package/src/View/Alert/Wizard/AlertWizard.js +0 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +0 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +0 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +0 -1
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +0 -3
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -7
- package/src/View/Charting/EditChartButton.js +1 -4
- package/src/View/Charting/ShowChartButton.js +0 -3
- package/src/View/Charting/useAgChartState.js +0 -5
- package/src/View/Charting/useChartingElements.js +0 -4
- package/src/View/Charting/useExternalChartState.js +0 -6
- package/src/View/ColumnInfo/ColumnInfo.js +7 -17
- package/src/View/Comments/CommentsEditor.js +1 -16
- package/src/View/Components/AdaptableButton/AdaptableButtonComponent.js +0 -1
- package/src/View/Components/AdaptableButton/AdaptableButtonView.js +0 -3
- package/src/View/Components/AdaptableDateInput/index.js +2 -9
- package/src/View/Components/AdaptableIconComponent/index.js +0 -4
- package/src/View/Components/AdaptableIconSelector/index.js +0 -3
- package/src/View/Components/AdaptableInput/index.js +0 -2
- package/src/View/Components/Badge/index.js +0 -8
- package/src/View/Components/Buttons/ButtonNewPage.js +1 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +0 -1
- package/src/View/Components/CellPopup/index.js +1 -2
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +0 -4
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +0 -4
- package/src/View/Components/ColumnFilter/ColumnFilter.js +3 -46
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +0 -2
- package/src/View/Components/ColumnFilter/FloatingFilter.js +1 -20
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -16
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -4
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +0 -1
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -6
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +0 -20
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +0 -5
- package/src/View/Components/ColumnFilter/utils.js +2 -9
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +0 -2
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +0 -1
- package/src/View/Components/EntityRulesEditor/index.js +1 -11
- package/src/View/Components/ExternalRenderer.js +1 -3
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -52
- package/src/View/Components/ModuleValueSelector/index.js +0 -2
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Panels/PanelWithRow.js +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +0 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +0 -6
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -2
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +0 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +0 -3
- package/src/View/Components/Popups/AdaptableToaster.js +0 -2
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +0 -8
- package/src/View/Components/RangesComponent.js +0 -57
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +0 -3
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -18
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +0 -4
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
- package/src/View/Components/ValueSelector/index.js +0 -4
- package/src/View/Components/wizardColumnListStyles.js +0 -5
- package/src/View/Dashboard/CustomToolbar.js +1 -25
- package/src/View/Dashboard/PinnedToolbarsSelector.js +0 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -22
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +0 -1
- package/src/View/DataImport/systemFileHandlers.js +1 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +0 -27
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +0 -7
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -12
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +0 -10
- package/src/View/GridFilter/GridFilterPopup.js +0 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +0 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -31
- package/src/View/Layout/LayoutViewPanel.js +0 -2
- package/src/View/Layout/PivotDetailsPopoup.js +0 -2
- package/src/View/Layout/TransposedPopup.js +0 -7
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -6
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +0 -2
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -32
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +0 -3
- package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +0 -2
- package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +0 -4
- package/src/View/Note/NotePopup.js +0 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +0 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +0 -4
- package/src/View/StatusBar/StatusBarPanel.js +0 -8
- package/src/View/StatusBar/StatusBarPopup.js +0 -2
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +0 -11
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +0 -28
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -25
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +0 -26
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +0 -40
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +0 -55
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +0 -15
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +0 -21
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextPreview.js +0 -10
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +0 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -21
- package/src/View/SystemStatus/SystemStatusPopup.js +0 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +0 -1
- package/src/View/Theme/ThemeSelector.js +0 -1
- package/src/View/UIHelper.js +0 -6
- package/src/View/UIInterfaces.js +0 -1
- package/src/View/Wizard/CollapsibleWizardCard.js +1 -8
- package/src/View/Wizard/OnePageWizards.js +2 -9
- package/src/View/Wizard/SummaryColorTag.js +0 -1
- package/src/View/Wizard/useKeyboardNavigation.js +1 -3
- package/src/agGrid/Adaptable.js +0 -12
- package/src/agGrid/AdaptableAgGrid.d.ts +0 -2
- package/src/agGrid/AdaptableAgGrid.js +3 -482
- package/src/agGrid/AdaptableFilterHandler.js +0 -5
- package/src/agGrid/AdaptableLogger.js +0 -6
- package/src/agGrid/AgGridAdapter.js +3 -90
- package/src/agGrid/AgGridColumnAdapter.js +6 -168
- package/src/agGrid/AgGridExportAdapter.js +4 -106
- package/src/agGrid/AgGridFilterAdapter.js +0 -5
- package/src/agGrid/AgGridFloatingFilterAdapter.js +0 -10
- package/src/agGrid/AgGridMenuAdapter.js +0 -143
- package/src/agGrid/AgGridModulesAdapter.js +0 -2
- package/src/agGrid/AgGridOptionsService.js +0 -2
- package/src/agGrid/AgGridThemeAdapter.js +0 -7
- package/src/agGrid/agGridDataTypeDefinitions.js +0 -8
- package/src/agGrid/cellRenderers/BadgeRenderer.js +0 -10
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +1 -96
- package/src/agGrid/cellRenderers/IconRenderer.js +0 -55
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +0 -51
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +1 -50
- package/src/agGrid/cellRenderers/RatingRenderer.js +0 -40
- package/src/agGrid/editors/AdaptableDateEditor/index.js +0 -18
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +0 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +0 -11
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +0 -9
- package/src/agGrid/index.js +0 -6
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -73
- package/src/components/ColorPicker/ColorPicker.js +0 -6
- package/src/components/Combobox/VirtualizedList.js +0 -5
- package/src/components/Combobox/index.js +5 -63
- package/src/components/Dashboard/Dashboard.js +1 -4
- package/src/components/Datepicker/index.js +2 -97
- package/src/components/DragAndDropContext/TabList.js +2 -6
- package/src/components/Drawer/index.js +0 -7
- package/src/components/Dropdown/index.js +0 -1
- package/src/components/DropdownButton/index.js +0 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -16
- package/src/components/ExpressionEditor/EditorButton.js +0 -1
- package/src/components/ExpressionEditor/EditorInput.js +1 -7
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +0 -1
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -14
- package/src/components/ExpressionEditor/NamedQueryContext.js +0 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -6
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +0 -12
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +0 -4
- package/src/components/ExpressionEditor/index.js +5 -14
- package/src/components/Icon/index.js +0 -2
- package/src/components/Input/NumberInput.js +0 -10
- package/src/components/Modal/Backdrop.js +0 -1
- package/src/components/OverlayTrigger/Overlay.js +0 -1
- package/src/components/OverlayTrigger/index.js +3 -15
- package/src/components/ProgressIndicator/ProgressIndicator.js +3 -16
- package/src/components/ResizeObserver/index.js +0 -7
- package/src/components/SelectableList/index.js +0 -7
- package/src/components/SimpleButton/index.js +2 -16
- package/src/components/Tabs/index.js +0 -3
- package/src/components/Tag/Tag.js +0 -1
- package/src/components/Tag/columnScopeTagHelpers.js +0 -2
- package/src/components/Textarea/index.js +1 -8
- package/src/components/Toggle/Toggle.js +1 -5
- package/src/components/Toggle/ToggleGroup.js +1 -3
- package/src/components/ToggleButton/index.js +1 -3
- package/src/components/Tree/TreeDropdown/index.js +2 -130
- package/src/components/Tree/treeUtils.js +0 -4
- package/src/components/WindowModal/WindowModal.js +1 -14
- package/src/components/WindowModal/useStacking.js +0 -7
- package/src/components/icons/bullet-chart.js +0 -4
- package/src/components/icons/icon-style.js +0 -4
- package/src/components/icons/index.js +26 -36
- package/src/components/icons/range-bar.js +0 -5
- package/src/components/icons/star.js +0 -1
- package/src/components/twUtils.js +3 -12
- package/src/components/ui/calendar.js +1 -9
- package/src/components/ui/combobox.js +0 -4
- package/src/components/utils/captureTabNavigation/getFocusableChildren.js +0 -1
- package/src/components/utils/useDraggable.js +0 -4
- package/src/components/utils/useProperty.js +0 -18
- package/src/devTools/index.js +0 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +0 -5
- package/src/layout-manager/src/destructurePivotColumnId.js +0 -19
- package/src/layout-manager/src/index.js +2 -182
- package/src/layout-manager/src/isLayoutEqual.js +0 -1
- package/src/layout-manager/src/isPivotColumnTotal.js +0 -2
- package/src/layout-manager/src/normalizeLayoutModel.js +0 -27
- package/src/layout-manager/src/simplifyLayoutModel.js +0 -11
- package/src/layout-manager/src/sortColumnIdsByOrder.js +2 -12
- package/src/lib/utils.js +0 -1
- package/src/migration/AdaptableUpgradeHelper.js +0 -2
- package/src/migration/VersionUpgrade17.js +0 -33
- package/src/migration/VersionUpgrade20.js +1 -21
- package/src/migration/VersionUpgrade21.js +0 -3
- package/src/migration/VersionUpgrade22.js +0 -11
- package/src/migration/VersionUpgrade23.js +0 -73
- package/src/parser/src/evaluator.js +0 -1
- package/src/parser/src/index.js +0 -1
- package/src/parser/src/parser.js +4 -103
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +0 -5
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +0 -2
- package/src/parser/src/tokenizer.js +0 -2
- package/src/parser/src/utils.js +0 -1
- package/src/renderReactRoot.js +0 -12
- package/src/setupDevTools.js +0 -6
- package/src/twMerge.js +0 -1
- package/src/types.d.ts +1 -1
- package/src/types.js +0 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -20
- package/src/Utilities/Services/Interface/IMetamodelService.js +0 -2
- package/src/Utilities/Services/MetamodelService.d.ts +0 -17
- package/src/Utilities/Services/MetamodelService.js +0 -167
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +0 -104
- package/src/metamodel/adaptable-metamodel-model.d.ts +0 -26
- package/src/metamodel/adaptable-metamodel-model.js +0 -2
- package/src/metamodel/adaptable.metamodel.d.ts +0 -6244
- package/src/metamodel/adaptable.metamodel.js +0 -1
|
@@ -111,15 +111,6 @@ function getFriendlyNameForPivotResultColumn(columnId, agGridApi) {
|
|
|
111
111
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
112
112
|
.join(' ')}`;
|
|
113
113
|
}
|
|
114
|
-
// is quite consuming on performance
|
|
115
|
-
// we don't need it anyway because currently (20.0.7) we don't display Pivot Totals at all
|
|
116
|
-
// if (isPivotAggregationTotalColumn(columnId, agGridApi)) {
|
|
117
|
-
// return `[Aggregation Total] ${columnId
|
|
118
|
-
// .split('_')
|
|
119
|
-
// .slice(2)
|
|
120
|
-
// .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
121
|
-
// .join(' ')}`;
|
|
122
|
-
// }
|
|
123
114
|
return `[Pivot] ${columnId
|
|
124
115
|
.split('_')
|
|
125
116
|
.slice(1)
|
|
@@ -127,7 +118,6 @@ function getFriendlyNameForPivotResultColumn(columnId, agGridApi) {
|
|
|
127
118
|
.join(' ')}`;
|
|
128
119
|
}
|
|
129
120
|
function isPivotResultColumn(columnId) {
|
|
130
|
-
// put this here as there might be other indicators we are not aware of?
|
|
131
121
|
return columnId?.startsWith(GeneralConstants.AG_GRID_PIVOT_COLUMN);
|
|
132
122
|
}
|
|
133
123
|
function isPivotGrandTotal(columnId) {
|
|
@@ -145,7 +135,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
145
135
|
getUIAvailableColumns() {
|
|
146
136
|
return this.getColumns().filter((c) => !c.isUIHiddenColumn &&
|
|
147
137
|
!c.isGeneratedSelectionColumn &&
|
|
148
|
-
// currently (20.0.7) we don't display Pivot Totals in UI
|
|
149
138
|
!c.isPivotTotalColumn);
|
|
150
139
|
}
|
|
151
140
|
getSpecialColumns() {
|
|
@@ -208,7 +197,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
208
197
|
if (!(0, LayoutHelpers_1.isPivotLayout)(currentLayout)) {
|
|
209
198
|
return false;
|
|
210
199
|
}
|
|
211
|
-
// When PivotColumns is empty, agg columns keep their original IDs
|
|
212
200
|
if (currentLayout.PivotColumns?.length === 0) {
|
|
213
201
|
return (currentLayout.PivotAggregationColumns?.some((agg) => agg.ColumnId === columnId) ?? false);
|
|
214
202
|
}
|
|
@@ -254,7 +242,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
254
242
|
if (columnId == undefined) {
|
|
255
243
|
return;
|
|
256
244
|
}
|
|
257
|
-
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
258
245
|
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
259
246
|
return;
|
|
260
247
|
}
|
|
@@ -366,7 +353,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
366
353
|
}
|
|
367
354
|
getColumnIdForFriendlyName(friendlyName) {
|
|
368
355
|
if (friendlyName.includes(GeneralConstants.MISSING_COLUMN)) {
|
|
369
|
-
return friendlyName.replace(GeneralConstants.MISSING_COLUMN, '');
|
|
356
|
+
return friendlyName.replace(GeneralConstants.MISSING_COLUMN, '');
|
|
370
357
|
}
|
|
371
358
|
const foundColumn = this.getColumns().find((c) => c.friendlyName === friendlyName);
|
|
372
359
|
if (foundColumn) {
|
|
@@ -404,7 +391,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
404
391
|
return !!this.getColumnWithColumnId(columnId, false);
|
|
405
392
|
}
|
|
406
393
|
getColumnWithFriendlyName(columnFriendlyName, logWarning = true) {
|
|
407
|
-
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
408
394
|
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
409
395
|
return null;
|
|
410
396
|
}
|
|
@@ -139,13 +139,6 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
139
139
|
const columnFilter = this.getColumnFilterForColumn(columnId);
|
|
140
140
|
return columnFilter ? this.isColumnFilterActive(columnFilter) : false;
|
|
141
141
|
}
|
|
142
|
-
/**
|
|
143
|
-
* Checks if a filter is applied. It is applied when:
|
|
144
|
-
* - has no inputs
|
|
145
|
-
* - has inputs and inputs have values
|
|
146
|
-
*
|
|
147
|
-
* @param filter
|
|
148
|
-
*/
|
|
149
142
|
isColumnFilterActive(filter) {
|
|
150
143
|
if (!filter || !filter.Predicates?.length) {
|
|
151
144
|
return false;
|
|
@@ -156,7 +149,6 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
156
149
|
return filter.Predicates.some((predicate) => {
|
|
157
150
|
const predicateDef = this.getPredicateApi().getPredicateDefById(predicate.PredicateId);
|
|
158
151
|
if (ArrayExtensions_1.default.IsNull(predicateDef.inputs) &&
|
|
159
|
-
// In and NotIn predicates ave no inputs in the definition
|
|
160
152
|
!this.getPredicateApi().internalApi.IsInOrNotInPredicate(predicate)) {
|
|
161
153
|
return true;
|
|
162
154
|
}
|
|
@@ -164,7 +156,6 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
164
156
|
if (ArrayExtensions_1.default.IsEmpty(inputs)) {
|
|
165
157
|
return false;
|
|
166
158
|
}
|
|
167
|
-
// all values in the array need to be non-empty (e.g. between has two values, [min, max])
|
|
168
159
|
const allInputsHaveValues = inputs.every((value) => {
|
|
169
160
|
return value !== undefined && value !== null && value !== '';
|
|
170
161
|
});
|
|
@@ -11,7 +11,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
13
13
|
if ('All' in scope) {
|
|
14
|
-
// do we need a true check here?
|
|
15
14
|
return true;
|
|
16
15
|
}
|
|
17
16
|
if ('DataTypes' in scope) {
|
|
@@ -51,7 +50,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
50
|
return 'Nothing';
|
|
52
51
|
}
|
|
53
52
|
if ('All' in scope) {
|
|
54
|
-
// do we need a true check here?
|
|
55
53
|
return 'Columns: All';
|
|
56
54
|
}
|
|
57
55
|
if ('ColumnTypes' in scope) {
|
|
@@ -173,19 +171,15 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
173
171
|
return undefined;
|
|
174
172
|
}
|
|
175
173
|
isColumnInNumericScope(column, scope) {
|
|
176
|
-
// if column is not even numeric then return false
|
|
177
174
|
if (column == null || column == undefined || column.dataType !== 'number') {
|
|
178
175
|
return false;
|
|
179
176
|
}
|
|
180
|
-
// if no scope then return false
|
|
181
177
|
if (scope == undefined) {
|
|
182
178
|
return false;
|
|
183
179
|
}
|
|
184
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
185
180
|
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
186
181
|
return true;
|
|
187
182
|
}
|
|
188
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
189
183
|
if ('DataTypes' in scope && scope.DataTypes.includes('number')) {
|
|
190
184
|
return true;
|
|
191
185
|
}
|
|
@@ -196,19 +190,15 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
196
190
|
return false;
|
|
197
191
|
}
|
|
198
192
|
isColumnInTextScope(column, scope) {
|
|
199
|
-
// if column is not even string then return false
|
|
200
193
|
if (column == null || column == undefined || column.dataType !== 'text') {
|
|
201
194
|
return false;
|
|
202
195
|
}
|
|
203
|
-
// if no scope then return false
|
|
204
196
|
if (scope == undefined) {
|
|
205
197
|
return false;
|
|
206
198
|
}
|
|
207
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
208
199
|
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
209
200
|
return true;
|
|
210
201
|
}
|
|
211
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
212
202
|
if ('DataTypes' in scope && scope.DataTypes.includes('text')) {
|
|
213
203
|
return true;
|
|
214
204
|
}
|
|
@@ -219,19 +209,15 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
219
209
|
return false;
|
|
220
210
|
}
|
|
221
211
|
isColumnInDateScope(column, scope) {
|
|
222
|
-
// if column is not even numeric then return false
|
|
223
212
|
if (column == null || column == undefined || column.dataType !== 'date') {
|
|
224
213
|
return false;
|
|
225
214
|
}
|
|
226
|
-
// if no scope then return false
|
|
227
215
|
if (scope == undefined) {
|
|
228
216
|
return false;
|
|
229
217
|
}
|
|
230
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
231
218
|
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
232
219
|
return true;
|
|
233
220
|
}
|
|
234
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
235
221
|
if ('DataTypes' in scope && scope.DataTypes.includes('date')) {
|
|
236
222
|
return true;
|
|
237
223
|
}
|
|
@@ -242,8 +228,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
242
228
|
return false;
|
|
243
229
|
}
|
|
244
230
|
isScopeInScope(a, b) {
|
|
245
|
-
// AFL: Scope:'All' for object 'a' is NOT handled
|
|
246
|
-
// this is probably wrong, but we will touch it when a bug is filed
|
|
247
231
|
if ('All' in b) {
|
|
248
232
|
return true;
|
|
249
233
|
}
|
|
@@ -269,11 +253,9 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
269
253
|
a.ColumnTypes.every((columnType) => b.ColumnTypes.includes(columnType))) {
|
|
270
254
|
return true;
|
|
271
255
|
}
|
|
272
|
-
// check if each colum in a has column types in b
|
|
273
256
|
if ('ColumnIds' in a && 'ColumnTypes' in b) {
|
|
274
257
|
const inScope = a.ColumnIds.every((columnId) => {
|
|
275
258
|
const column = this.getColumnApi().getColumnWithColumnId(columnId);
|
|
276
|
-
// check if at least one column-type is in scope
|
|
277
259
|
return column.columnTypes.some((columnColumnType) => b.ColumnTypes.includes(columnColumnType));
|
|
278
260
|
});
|
|
279
261
|
if (inScope) {
|
|
@@ -284,9 +266,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
284
266
|
}
|
|
285
267
|
createCellColorRangesForScope(scope) {
|
|
286
268
|
const distinctColumnsValues = this.getGridApi().internalApi.getDistinctRawValuesForColumn(this.getSingleColumnInScope(scope));
|
|
287
|
-
// One neutral band by default — same gray as RangesComponent "Add New Range".
|
|
288
|
-
// Users who want a diverging negative/positive scale should use Zero Centred
|
|
289
|
-
// (Gradient) or add/split ranges manually.
|
|
290
269
|
if (this.distinctColumnValuesAreEmpty(distinctColumnsValues)) {
|
|
291
270
|
return [
|
|
292
271
|
{
|
|
@@ -127,7 +127,6 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
getCurrentToolbars() {
|
|
130
|
-
// if hidden or collapsed return fasle
|
|
131
130
|
if (this.getDashboardState().IsCollapsed == true || this.getDashboardState().IsHidden == true) {
|
|
132
131
|
return [];
|
|
133
132
|
}
|
|
@@ -28,7 +28,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
28
28
|
return this.getReportByName(reportName);
|
|
29
29
|
}
|
|
30
30
|
getReportByName(reportName) {
|
|
31
|
-
// if system report then create
|
|
32
31
|
if (this.internalApi.isSystemReport(reportName)) {
|
|
33
32
|
return this.internalApi.createSystemReport(reportName);
|
|
34
33
|
}
|
|
@@ -68,11 +67,9 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
68
67
|
})
|
|
69
68
|
: systemReportFormatsOption;
|
|
70
69
|
return reportFormats.filter((format) => {
|
|
71
|
-
// JSON format doesn't support Master Detail Grid
|
|
72
70
|
if (this.getGridApi().isMasterDetailGrid()) {
|
|
73
71
|
return format !== 'JSON';
|
|
74
72
|
}
|
|
75
|
-
// PivotLayout & AllData can't be exported as VisualExcel
|
|
76
73
|
if (this.getExportApi().getCurrentReportName() === GeneralConstants_1.ALL_DATA_REPORT &&
|
|
77
74
|
this.getLayoutApi().isCurrentLayoutPivot()) {
|
|
78
75
|
return format !== 'VisualExcel';
|
|
@@ -117,7 +114,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
117
114
|
return destinationItems;
|
|
118
115
|
}
|
|
119
116
|
getAllFormats() {
|
|
120
|
-
// FIXME AFL: add here custom formats when available
|
|
121
117
|
return this.getAvailableSystemFormats();
|
|
122
118
|
}
|
|
123
119
|
getAllReports() {
|
|
@@ -217,7 +213,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
217
213
|
return this.getExportApi()
|
|
218
214
|
.getAllExportDestinations()
|
|
219
215
|
.filter((destination) => {
|
|
220
|
-
// can NOT export BLOBs to Clipboard
|
|
221
216
|
if (reportFormat === 'Excel' || reportFormat === 'VisualExcel') {
|
|
222
217
|
return destination !== 'Clipboard';
|
|
223
218
|
}
|
|
@@ -231,12 +226,10 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
231
226
|
}
|
|
232
227
|
this.logInfo(`Start Export of ${reportName} in format ${format} to ${destination}`);
|
|
233
228
|
const processExportResult = await this.processExport(report, format, destination);
|
|
234
|
-
// if FALSE, cancel export
|
|
235
229
|
if (!processExportResult) {
|
|
236
230
|
this.logInfo(`Cancel Export of ${reportName}`);
|
|
237
231
|
return;
|
|
238
232
|
}
|
|
239
|
-
// if TRUE, continue with standard export
|
|
240
233
|
if (processExportResult === true) {
|
|
241
234
|
const exportedReport = await this._adaptable.agGridExportAdapter.exportData({
|
|
242
235
|
report,
|
|
@@ -246,13 +239,11 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
246
239
|
customExportParams: exportConfig?.exportParams,
|
|
247
240
|
});
|
|
248
241
|
if (!exportedReport) {
|
|
249
|
-
// for destination 'Download' and format 'Excel', 'VisualExcel' or 'Csv', AG Grid handles the download as well
|
|
250
242
|
return;
|
|
251
243
|
}
|
|
252
244
|
this.internalApi.sendReportToDestination(exportedReport, report, format, destination);
|
|
253
245
|
}
|
|
254
246
|
else {
|
|
255
|
-
// in this case the user has returned a custom ExportResultData object
|
|
256
247
|
const userProcessedExportResult = processExportResult;
|
|
257
248
|
if (!userProcessedExportResult) {
|
|
258
249
|
this.logWarn(`Processing of Export ${reportName} to ${destination} returned null or undefined`);
|
|
@@ -270,7 +261,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
270
261
|
this.logInfo(`Start getting Report Data for ${reportName} in format ${format}`);
|
|
271
262
|
const processExportResult = await this.processExport(report, format, 'Clipboard');
|
|
272
263
|
let reportData;
|
|
273
|
-
// handle Export processing
|
|
274
264
|
if (typeof processExportResult?.type === 'string') {
|
|
275
265
|
reportData = processExportResult;
|
|
276
266
|
}
|
|
@@ -65,7 +65,6 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
65
65
|
return Array.from(new Set(columnIds));
|
|
66
66
|
}
|
|
67
67
|
catch (error) {
|
|
68
|
-
// defensive programing, this should happen only if someone botched Initial Adaptable State
|
|
69
68
|
this.logWarn(`QueryApi.getColumnsFromExpressionInvalid received an invalid expression: ${expression}
|
|
70
69
|
Error: ${error}`);
|
|
71
70
|
return [];
|
|
@@ -35,9 +35,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
35
35
|
return undefined;
|
|
36
36
|
}
|
|
37
37
|
const formatColumn = formatColumns.find((fc) => fc.DisplayFormat != undefined);
|
|
38
|
-
// Resolve numeric preset names (e.g. 'Dollar') into the concrete
|
|
39
|
-
// AdaptableFormat object so external callers always receive a fully
|
|
40
|
-
// structured format.
|
|
41
38
|
return formatColumn ? (0, AdaptableFormatPresets_1.resolveDisplayFormat)(formatColumn.DisplayFormat) : undefined;
|
|
42
39
|
}
|
|
43
40
|
getSuspendedFormatColumns(config) {
|
|
@@ -56,7 +56,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
56
56
|
})
|
|
57
57
|
: [];
|
|
58
58
|
storedValues.forEach((sv) => {
|
|
59
|
-
// do summat
|
|
60
59
|
const isExistingPKValue = existingPKValues.find((epk) => epk == sv.PrimaryKey);
|
|
61
60
|
if (isExistingPKValue) {
|
|
62
61
|
if (replaceAction == 'Conflicting') {
|
|
@@ -70,7 +69,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
else {
|
|
73
|
-
// no existing value so just add it
|
|
74
72
|
freeTextColumn.FreeTextStoredValues.push(sv);
|
|
75
73
|
}
|
|
76
74
|
});
|
|
@@ -26,10 +26,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
26
|
return this.getAdaptableState().Internal;
|
|
27
27
|
}
|
|
28
28
|
loadGridData(dataSource) {
|
|
29
|
-
// we intentionally set an initial empty array,
|
|
30
|
-
// to prevent `cellchanged` events from being triggered for rows that have
|
|
31
|
-
// the same primary key with existing rows
|
|
32
|
-
// see #testprevent_cellchanged_event_on_load_grid_data
|
|
33
29
|
this._adaptable.agGridAdapter.setGridOption('rowData', []);
|
|
34
30
|
this._adaptable.setGridData(dataSource);
|
|
35
31
|
const allRowNodes = this.getAllRowNodes();
|
|
@@ -106,11 +102,10 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
106
102
|
return rowNodes;
|
|
107
103
|
}
|
|
108
104
|
undoCellEdit(cellDataChangedInfo) {
|
|
109
|
-
// for the reason of this hacky solution see the comments in DataService
|
|
110
105
|
this.getAdaptableInternalApi().getDataService().logUndoChange(cellDataChangedInfo);
|
|
111
106
|
const cellUpdateRequest = {
|
|
112
107
|
columnId: cellDataChangedInfo.column.columnId,
|
|
113
|
-
newValue: cellDataChangedInfo.oldValue,
|
|
108
|
+
newValue: cellDataChangedInfo.oldValue,
|
|
114
109
|
primaryKeyValue: cellDataChangedInfo.primaryKeyValue,
|
|
115
110
|
rowNode: cellDataChangedInfo.rowNode,
|
|
116
111
|
};
|
|
@@ -173,7 +168,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
173
168
|
this._adaptable.applyFiltering();
|
|
174
169
|
}
|
|
175
170
|
clearFiltering() {
|
|
176
|
-
// slightly round the houses but we have to call ColumnFilterAPI as it does it properly
|
|
177
171
|
this.getColumnFilterApi().clearColumnFilters();
|
|
178
172
|
}
|
|
179
173
|
getColumnSorts() {
|
|
@@ -272,7 +266,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
272
266
|
}
|
|
273
267
|
}
|
|
274
268
|
else {
|
|
275
|
-
// include all row
|
|
276
269
|
this._adaptable.forAllRowNodesDo((rowNode) => {
|
|
277
270
|
isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
|
|
278
271
|
});
|
|
@@ -282,29 +275,21 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
282
275
|
}
|
|
283
276
|
let preapredGridCellRange = gridCellRange;
|
|
284
277
|
if (!preapredGridCellRange) {
|
|
285
|
-
/**
|
|
286
|
-
* Select all rows and all columns
|
|
287
|
-
*/
|
|
288
278
|
const currentLayout = this.getLayoutApi().getCurrentLayout();
|
|
289
279
|
preapredGridCellRange = {
|
|
290
280
|
columnIds: currentLayout.TableColumns,
|
|
291
281
|
};
|
|
292
282
|
}
|
|
293
|
-
// ranges of row with consecutive indexes
|
|
294
283
|
const rowRanges = filteredRowNodes.reduce((acc, rowNode, index, collection) => {
|
|
295
|
-
// add start if there is none
|
|
296
284
|
const prevRange = acc[acc.length - 1];
|
|
297
285
|
if (prevRange.startNode === undefined) {
|
|
298
286
|
prevRange.startNode = rowNode;
|
|
299
287
|
}
|
|
300
|
-
// add end if next is not consecutive
|
|
301
288
|
const nextNode = collection[index + 1];
|
|
302
289
|
if (nextNode && nextNode.rowIndex - 1 !== rowNode.rowIndex) {
|
|
303
290
|
prevRange.endNode = rowNode;
|
|
304
|
-
// start a new one
|
|
305
291
|
acc.push({});
|
|
306
292
|
}
|
|
307
|
-
// if at the end close last range
|
|
308
293
|
if (index === collection.length - 1) {
|
|
309
294
|
prevRange.endNode = rowNode;
|
|
310
295
|
}
|
|
@@ -312,7 +297,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
312
297
|
}, [{}]);
|
|
313
298
|
let preparedClearSelection = clearSelection;
|
|
314
299
|
rowRanges.forEach((range) => {
|
|
315
|
-
// clear only on first range selection
|
|
316
300
|
this._adaptable.selectCells(preapredGridCellRange.columnIds, range.startNode, range.endNode, preparedClearSelection);
|
|
317
301
|
preparedClearSelection = false;
|
|
318
302
|
});
|
|
@@ -563,7 +547,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
563
547
|
this._adaptable.redrawRows(rowNodes);
|
|
564
548
|
}
|
|
565
549
|
refreshGroupRowNodes() {
|
|
566
|
-
// see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
|
|
567
550
|
this.getAgGridApi().refreshClientSideRowModel('group');
|
|
568
551
|
this._adaptable.updateRowGroupsAndColumnGroupsExpandedState();
|
|
569
552
|
}
|
|
@@ -571,7 +554,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
571
554
|
this._adaptable.refreshGridHeader();
|
|
572
555
|
}
|
|
573
556
|
isCellEditable(gridCell) {
|
|
574
|
-
// If not Grid Cell or Column then return false - GridCell.column may be undefined for cells from synthetic columns created by AG Grid (ex. autoGroup columns)
|
|
575
557
|
if (!gridCell || !gridCell.column || !gridCell.rowNode) {
|
|
576
558
|
return false;
|
|
577
559
|
}
|
|
@@ -579,7 +561,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
579
561
|
return false;
|
|
580
562
|
}
|
|
581
563
|
const agGridColumn = this.getColumnApi().internalApi.getAgGridColumnForAdaptableColumn(gridCell.column.columnId);
|
|
582
|
-
// this will invoke the colDef.editable callback where we check both AdapTable and AG Grid editability
|
|
583
564
|
return agGridColumn?.isCellEditable(gridCell.rowNode);
|
|
584
565
|
}
|
|
585
566
|
isCellEdited(gridCell) {
|
|
@@ -700,7 +681,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
700
681
|
const newColDef = newColumnDefinitions.find((c) => c.colId === colDef.colId);
|
|
701
682
|
return newColDef ? { ...colDef, ...newColDef } : colDef;
|
|
702
683
|
});
|
|
703
|
-
// find out new columns which are not in the current column definitions
|
|
704
684
|
const currentColIds = [];
|
|
705
685
|
this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
706
686
|
currentColIds.push(colDef.colId);
|
|
@@ -730,7 +710,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
730
710
|
}
|
|
731
711
|
addAgGridColumnDefinition(newColumnDefinition) {
|
|
732
712
|
const currentColDefs = this.getAgGridColumnDefs();
|
|
733
|
-
// just in case check of there is not already an existing column with the same id and eliminate it
|
|
734
713
|
const sanitizedColDefs = this._adaptable.agGridAdapter
|
|
735
714
|
.traverseColDefs(currentColDefs, (colDef) => {
|
|
736
715
|
return colDef.colId === newColumnDefinition.colId ? null : colDef;
|
|
@@ -30,8 +30,6 @@ class GridFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
30
30
|
return gridFilter.Expression;
|
|
31
31
|
}
|
|
32
32
|
setGridFilterExpression(filter) {
|
|
33
|
-
// A blank / nullish expression has no meaningful AST and would otherwise
|
|
34
|
-
// explode the parser inside LayoutGridFilterSet. Treat it as "clear".
|
|
35
33
|
if (filter == null || filter.trim() === '') {
|
|
36
34
|
this.clearGridFilter();
|
|
37
35
|
return;
|
|
@@ -101,7 +101,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
101
101
|
const config = {
|
|
102
102
|
includeLayoutNotExtendedObjects: true,
|
|
103
103
|
};
|
|
104
|
-
// Alerts
|
|
105
104
|
const alertExtensions = extendedLayoutInfo.Extensions.filter((e) => {
|
|
106
105
|
return e.Module == 'Alert';
|
|
107
106
|
});
|
|
@@ -112,7 +111,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
112
111
|
this.getAlertApi().addAlertDefinition(alertDefinition);
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
|
-
// Custom Sorts
|
|
116
114
|
const customSortExtensions = extendedLayoutInfo.Extensions.filter((e) => {
|
|
117
115
|
return e.Module == 'CustomSort';
|
|
118
116
|
});
|
|
@@ -123,7 +121,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
123
121
|
this.getCustomSortApi().addCustomSort(customSort);
|
|
124
122
|
}
|
|
125
123
|
});
|
|
126
|
-
// Flashing Cells
|
|
127
124
|
const flashingCellExtensions = extendedLayoutInfo.Extensions.filter((e) => {
|
|
128
125
|
return e.Module == 'FlashingCell';
|
|
129
126
|
});
|
|
@@ -134,7 +131,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
134
131
|
this.getFlashingCellApi().addFlashingCellDefinition(flashingCellDefinition);
|
|
135
132
|
}
|
|
136
133
|
});
|
|
137
|
-
// FormatColumns
|
|
138
134
|
const formatColumnExtensions = extendedLayoutInfo.Extensions.filter((e) => {
|
|
139
135
|
return e.Module == 'FormatColumn';
|
|
140
136
|
});
|
|
@@ -145,7 +141,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
145
141
|
this.getFormatColumnApi().addFormatColumn(formatColumn);
|
|
146
142
|
}
|
|
147
143
|
});
|
|
148
|
-
// Plus Minus
|
|
149
144
|
const plusMinusExtensions = extendedLayoutInfo.Extensions.filter((e) => {
|
|
150
145
|
return e.Module == 'PlusMinus';
|
|
151
146
|
});
|
|
@@ -156,7 +151,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
156
151
|
this.getPlusMinusApi().addPlusMinusNudge(plusMinusNudge);
|
|
157
152
|
}
|
|
158
153
|
});
|
|
159
|
-
// Schedule
|
|
160
154
|
const exportExtensions = extendedLayoutInfo.Extensions.filter((e) => e.Module === 'Export');
|
|
161
155
|
exportExtensions.forEach((le) => {
|
|
162
156
|
const raw = le.Object;
|
|
@@ -168,7 +162,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
168
162
|
this.getExportApi().addScheduledReport(schedule);
|
|
169
163
|
}
|
|
170
164
|
});
|
|
171
|
-
// StyledColumn
|
|
172
165
|
const styledColumnExtensions = extendedLayoutInfo.Extensions.filter((e) => {
|
|
173
166
|
return e.Module == 'StyledColumn';
|
|
174
167
|
});
|
|
@@ -190,7 +183,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
190
183
|
includeLayoutNotExtendedObjects: false,
|
|
191
184
|
extendedLayoutName: layoutName,
|
|
192
185
|
};
|
|
193
|
-
// cannot see a better way than to go through this module by module...
|
|
194
186
|
let extensions = [];
|
|
195
187
|
this.getAlertApi()
|
|
196
188
|
.getAlertDefinitions(config)
|
|
@@ -233,19 +225,16 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
233
225
|
};
|
|
234
226
|
}
|
|
235
227
|
cloneExtendedLayout(extendedLayoutToClone, layoutName) {
|
|
236
|
-
// first clone the underlying Layout
|
|
237
228
|
const clonedLayout = this.cloneLayout(extendedLayoutToClone.Layout, layoutName);
|
|
238
229
|
if (clonedLayout == false) {
|
|
239
230
|
return false;
|
|
240
231
|
}
|
|
241
|
-
// Alerts
|
|
242
232
|
const alertExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module == 'Alert');
|
|
243
233
|
alertExtensions.forEach((le) => {
|
|
244
234
|
const alertDef = le.Object;
|
|
245
235
|
alertDef.Tags?.push(layoutName);
|
|
246
236
|
this.getAlertApi().editAlertDefinition(alertDef);
|
|
247
237
|
});
|
|
248
|
-
// Custom Sorts
|
|
249
238
|
const customSortExtensions = extendedLayoutToClone.Extensions.filter((e) => {
|
|
250
239
|
return e.Module == 'CustomSort';
|
|
251
240
|
});
|
|
@@ -254,7 +243,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
254
243
|
customSort.Tags?.push(layoutName);
|
|
255
244
|
this.getCustomSortApi().editCustomSort(customSort);
|
|
256
245
|
});
|
|
257
|
-
// Flashing Cells
|
|
258
246
|
const flashingCellExtensions = extendedLayoutToClone.Extensions.filter((e) => {
|
|
259
247
|
return e.Module == 'FlashingCell';
|
|
260
248
|
});
|
|
@@ -263,14 +251,12 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
263
251
|
flashingCellDef.Tags?.push(layoutName);
|
|
264
252
|
this.getFlashingCellApi().editFlashingCellDefinition(flashingCellDef);
|
|
265
253
|
});
|
|
266
|
-
// FormatColumns
|
|
267
254
|
const formatColumnExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module == 'FormatColumn');
|
|
268
255
|
formatColumnExtensions.forEach((le) => {
|
|
269
256
|
const formatCol = le.Object;
|
|
270
257
|
formatCol.Tags?.push(layoutName);
|
|
271
258
|
this.getFormatColumnApi().editFormatColumn(formatCol);
|
|
272
259
|
});
|
|
273
|
-
// Plus Minus
|
|
274
260
|
const plusMinusExtensions = extendedLayoutToClone.Extensions.filter((e) => {
|
|
275
261
|
return e.Module == 'PlusMinus';
|
|
276
262
|
});
|
|
@@ -279,7 +265,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
279
265
|
plusMinusNudge.Tags?.push(layoutName);
|
|
280
266
|
this.getPlusMinusApi().editPlusMinusNudge(plusMinusNudge);
|
|
281
267
|
});
|
|
282
|
-
// Export
|
|
283
268
|
const exportCloneExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module === 'Export');
|
|
284
269
|
exportCloneExtensions.forEach((le) => {
|
|
285
270
|
const raw = le.Object;
|
|
@@ -289,7 +274,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
289
274
|
schedule.Tags?.push(layoutName);
|
|
290
275
|
this.getExportApi().editScheduledReport(schedule);
|
|
291
276
|
});
|
|
292
|
-
// Shortcut
|
|
293
277
|
const shortCutExtensions = extendedLayoutToClone.Extensions.filter((e) => {
|
|
294
278
|
return e.Module == 'Shortcut';
|
|
295
279
|
});
|
|
@@ -298,7 +282,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
298
282
|
shortcut.Tags?.push(layoutName);
|
|
299
283
|
this.getShortcutApi().editShortcut(shortcut);
|
|
300
284
|
});
|
|
301
|
-
// StyledColumn
|
|
302
285
|
const styledColumnExtensions = extendedLayoutToClone.Extensions.filter((e) => {
|
|
303
286
|
return e.Module == 'StyledColumn';
|
|
304
287
|
});
|
|
@@ -307,7 +290,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
307
290
|
styledColumn.Tags?.push(layoutName);
|
|
308
291
|
this.getStyledColumnApi().editStyledColumn(styledColumn);
|
|
309
292
|
});
|
|
310
|
-
// now create the new Extended Layout with the same extensions
|
|
311
293
|
const extendedLayout = {
|
|
312
294
|
Layout: clonedLayout,
|
|
313
295
|
Extensions: extendedLayoutToClone.Extensions,
|
|
@@ -35,12 +35,9 @@ function cleanupAdaptableObjectPrimitives(layout) {
|
|
|
35
35
|
const l = layout;
|
|
36
36
|
for (const key in l) {
|
|
37
37
|
if (key === 'ColumnFilters') {
|
|
38
|
-
// we don't want to cleanup ColumnFilters
|
|
39
|
-
// as we rely on the Uuids for identifying the filters
|
|
40
38
|
if (Array.isArray(l[key])) {
|
|
41
39
|
l[key].forEach((item) => {
|
|
42
40
|
if (typeof item === 'object') {
|
|
43
|
-
// but we do want to cleanup further down - eg: predicates in the filter
|
|
44
41
|
for (const k in item) {
|
|
45
42
|
if (typeof item[k] === 'object') {
|
|
46
43
|
(0, AdaptableHelper_1.removeAdaptableObjectPrimitivesInlineDeep)(item[k]);
|
|
@@ -56,11 +53,6 @@ function cleanupAdaptableObjectPrimitives(layout) {
|
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Compares 2 Layouts for equality
|
|
61
|
-
* @param layout1 First Layout
|
|
62
|
-
* @param layout2 Second Layout
|
|
63
|
-
*/
|
|
64
56
|
const areLayoutsEqual = (layout1, layout2) => {
|
|
65
57
|
if (!layout1 && !layout2) {
|
|
66
58
|
return true;
|
|
@@ -93,7 +85,6 @@ const normalizePivotLayout = (pivotLayout) => {
|
|
|
93
85
|
};
|
|
94
86
|
exports.normalizePivotLayout = normalizePivotLayout;
|
|
95
87
|
const errorOnceMessages = new Map();
|
|
96
|
-
/** Clears module-scoped dedupe state when a new Adaptable instance starts (e.g. Playwright retries). */
|
|
97
88
|
const resetLayoutHelperErrorOnceMessages = () => {
|
|
98
89
|
errorOnceMessages.clear();
|
|
99
90
|
};
|
|
@@ -187,7 +178,6 @@ const checkForDuplicateColumns = (layout) => {
|
|
|
187
178
|
layout.TableColumns.reduce((acc, col) => {
|
|
188
179
|
acc[col] = (acc[col] || 0) + 1;
|
|
189
180
|
if (acc[col] > 1) {
|
|
190
|
-
// if you change this message, make sure you also update the associated test error-on-duplicate-column.spec.ts
|
|
191
181
|
errorOnce(`Duplicate column "${col}" in layout "${layout.Name}"!`);
|
|
192
182
|
}
|
|
193
183
|
return acc;
|
|
@@ -409,9 +399,7 @@ const tableLayoutModelToTableLayout = (layoutModel) => {
|
|
|
409
399
|
if (layoutModel.Ignore_OpenCharts) {
|
|
410
400
|
tableLayout.OpenCharts = layoutModel.Ignore_OpenCharts;
|
|
411
401
|
}
|
|
412
|
-
// if (layoutModel.RowGroupDisplayType) {
|
|
413
402
|
tableLayout.RowGroupDisplayType = layoutModel.RowGroupDisplayType ?? 'single';
|
|
414
|
-
// }
|
|
415
403
|
if (layoutModel.RowGroupedColumns) {
|
|
416
404
|
tableLayout.RowGroupedColumns = layoutModel.RowGroupedColumns;
|
|
417
405
|
}
|
|
@@ -437,7 +425,6 @@ const tableLayoutModelToTableLayout = (layoutModel) => {
|
|
|
437
425
|
if ((layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'collapsed' ||
|
|
438
426
|
layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'expanded') &&
|
|
439
427
|
layoutModel.ColumnGroupValues.Values) {
|
|
440
|
-
// @ts-ignore
|
|
441
428
|
tableLayout.ColumnGroupValues.ExceptionGroupKeys = layoutModel.ColumnGroupValues.Values;
|
|
442
429
|
}
|
|
443
430
|
}
|
|
@@ -574,13 +561,10 @@ const pivotLayoutModelToPivotLayout = (layoutModel) => {
|
|
|
574
561
|
if ((layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'collapsed' ||
|
|
575
562
|
layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'expanded') &&
|
|
576
563
|
layoutModel.ColumnGroupValues.Values) {
|
|
577
|
-
// @ts-ignore
|
|
578
564
|
pivotLayout.ColumnGroupValues.ExceptionGroupKeys = layoutModel.ColumnGroupValues.Values;
|
|
579
565
|
}
|
|
580
566
|
}
|
|
581
|
-
// if (layoutModel.RowGroupDisplayType) {
|
|
582
567
|
pivotLayout.RowGroupDisplayType = layoutModel.RowGroupDisplayType ?? 'single';
|
|
583
|
-
// }
|
|
584
568
|
if (layoutModel.RowSelection != null) {
|
|
585
569
|
pivotLayout.RowSelection = layoutModel.RowSelection;
|
|
586
570
|
}
|
|
@@ -32,7 +32,6 @@ class NamedQueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
32
32
|
if ((0, StringExtensions_1.IsNullOrEmptyOrWhiteSpace)(namedQuery?.Name)) {
|
|
33
33
|
return { valid: false, message: 'A name is required for the Named Query.' };
|
|
34
34
|
}
|
|
35
|
-
// check that there is no other existing named query with the same name
|
|
36
35
|
const duplicate = this.getNamedQueries().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
|
|
37
36
|
if (duplicate) {
|
|
38
37
|
return {
|