@adaptabletools/adaptable 23.0.4-canary.0 → 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 +1 -9
- 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.esm.tsbuildinfo +1 -1
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -20
- package/src/Utilities/Services/Interface/IMetamodelService.js +0 -1
- package/src/Utilities/Services/MetamodelService.d.ts +0 -17
- package/src/Utilities/Services/MetamodelService.js +0 -162
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +0 -99
- package/src/metamodel/adaptable-metamodel-model.d.ts +0 -26
- package/src/metamodel/adaptable-metamodel-model.js +0 -1
- package/src/metamodel/adaptable.metamodel.d.ts +0 -6244
- package/src/metamodel/adaptable.metamodel.js +0 -1
|
@@ -29,11 +29,6 @@ import { AgGridFloatingFilterAdapterFactory } from './AgGridFloatingFilterAdapte
|
|
|
29
29
|
import { errorOnce } from './AdaptableLogger';
|
|
30
30
|
import { isUnsupportedColumnDataTypeForIconStyle } from '../Utilities/Helpers/StyledColumns/IconStyleHelper';
|
|
31
31
|
import { isWeightedAverageAggFuncName, } from '../AdaptableState/Common/AggregationColumns';
|
|
32
|
-
/**
|
|
33
|
-
* CSS property keys produced by `convertAdaptableStyleToCSS` from a
|
|
34
|
-
* `CellFontStyle` slice. Used to strip Format-Column-derived font CSS
|
|
35
|
-
* when a Styled Column claims the Font slot.
|
|
36
|
-
*/
|
|
37
32
|
const FONT_CSS_KEYS = [
|
|
38
33
|
'color',
|
|
39
34
|
'fontWeight',
|
|
@@ -42,11 +37,6 @@ const FONT_CSS_KEYS = [
|
|
|
42
37
|
'textDecoration',
|
|
43
38
|
'textAlign',
|
|
44
39
|
];
|
|
45
|
-
/**
|
|
46
|
-
* CSS property keys produced by `convertAdaptableStyleToCSS` from a
|
|
47
|
-
* `CellBoxStyle` slice. Used to strip Format-Column-derived cell-box CSS
|
|
48
|
-
* when a Styled Column claims the Cell slot.
|
|
49
|
-
*/
|
|
50
40
|
const CELL_BOX_CSS_KEYS = [
|
|
51
41
|
'backgroundColor',
|
|
52
42
|
'borderColor',
|
|
@@ -123,7 +113,6 @@ export class AgGridColumnAdapter {
|
|
|
123
113
|
}
|
|
124
114
|
}
|
|
125
115
|
if (theValue === undefined && colDef[propertyName] === undefined) {
|
|
126
|
-
// already undefined, so don't set an own property to the same undefined value
|
|
127
116
|
return;
|
|
128
117
|
}
|
|
129
118
|
colDef[propertyName] = theValue;
|
|
@@ -133,14 +122,6 @@ export class AgGridColumnAdapter {
|
|
|
133
122
|
return this.colDefPropertyCache.get(userKey);
|
|
134
123
|
}
|
|
135
124
|
shouldSkipColumn(colId) {
|
|
136
|
-
/**
|
|
137
|
-
* This skips special columns that ag grid will likely implement in the future
|
|
138
|
-
*
|
|
139
|
-
* BUT DOES NOT SKIP GROUP COLUMNS or SELECTION COLUMNS!!!
|
|
140
|
-
*
|
|
141
|
-
* It's probably here for historical reasons - previously it used to skip the selection column
|
|
142
|
-
* but now it's not skipping it anymore
|
|
143
|
-
*/
|
|
144
125
|
return (colId.startsWith('ag-Grid-') &&
|
|
145
126
|
!this.adaptableApi.columnApi.isAutoRowGroupColumn(colId) &&
|
|
146
127
|
!this.adaptableApi.columnApi.isSelectionColumn(colId));
|
|
@@ -148,10 +129,9 @@ export class AgGridColumnAdapter {
|
|
|
148
129
|
getAllAgGridColumns() {
|
|
149
130
|
const pivotMode = this.adaptableInstance.isInPivotMode();
|
|
150
131
|
let cols = pivotMode
|
|
151
|
-
?
|
|
132
|
+
?
|
|
152
133
|
this.agGridApi.getColumns()
|
|
153
|
-
:
|
|
154
|
-
// which also includes those that are generated for row grouping
|
|
134
|
+
:
|
|
155
135
|
this.agGridApi.getAllGridColumns();
|
|
156
136
|
if (pivotMode) {
|
|
157
137
|
const pivotResultColumns = this.agGridApi.getPivotResultColumns() || [];
|
|
@@ -162,17 +142,11 @@ export class AgGridColumnAdapter {
|
|
|
162
142
|
}
|
|
163
143
|
return cols;
|
|
164
144
|
}
|
|
165
|
-
/**
|
|
166
|
-
* Setup all columns, or only those with the given Ids
|
|
167
|
-
* @param specificColumnIds - optional list of column Ids to setup. If not provided, all columns are setup
|
|
168
|
-
*/
|
|
169
145
|
setupColumns(specificColumnIds) {
|
|
170
146
|
let cols = this.getAllAgGridColumns();
|
|
171
147
|
if (specificColumnIds?.length) {
|
|
172
148
|
cols = cols.filter((col) => specificColumnIds.includes(col.getColId()));
|
|
173
149
|
}
|
|
174
|
-
// this needs to be here, before the other setup below
|
|
175
|
-
// so the setup methods below reference the correct columns in adaptable store
|
|
176
150
|
cols.forEach((col) => {
|
|
177
151
|
const colDef = col.getColDef();
|
|
178
152
|
const colId = col.getColId();
|
|
@@ -195,9 +169,6 @@ export class AgGridColumnAdapter {
|
|
|
195
169
|
this.setupColumnValueGetter(colSetupInfo);
|
|
196
170
|
this.setupColumnTooltipValueGetter(colSetupInfo);
|
|
197
171
|
if (!isAutoRowGroupColumn) {
|
|
198
|
-
// we do NOT setup filtering for auto row group columns
|
|
199
|
-
// this is done via gridOptions.autoGroupColumnDef
|
|
200
|
-
// see #autoGroupColumnDef
|
|
201
172
|
this.setupColumnFilter(colSetupInfo);
|
|
202
173
|
this.setupColumnFloatingFilter(colSetupInfo);
|
|
203
174
|
}
|
|
@@ -215,7 +186,6 @@ export class AgGridColumnAdapter {
|
|
|
215
186
|
});
|
|
216
187
|
}
|
|
217
188
|
setupColumnValueGetter({ col }) {
|
|
218
|
-
// need this here if we want plugins to intercept
|
|
219
189
|
this.setColDefProperty(col, 'valueGetter', (userValue) => {
|
|
220
190
|
return userValue;
|
|
221
191
|
});
|
|
@@ -266,7 +236,6 @@ export class AgGridColumnAdapter {
|
|
|
266
236
|
!hasStyledColumn && formatColumns.length
|
|
267
237
|
? this.getFormatColumnCellClass(formatColumns, abColumn, params)
|
|
268
238
|
: null,
|
|
269
|
-
// isQuickSearchActive && hasQuickSearchStyleClassName ? quickSearchStyleClassName : null,
|
|
270
239
|
isQuickSearchActive && !isServerSideRowModel ? 'ab-QuickSearchFind' : null,
|
|
271
240
|
editableClassName,
|
|
272
241
|
readonlyClassName,
|
|
@@ -276,7 +245,6 @@ export class AgGridColumnAdapter {
|
|
|
276
245
|
noteClassName,
|
|
277
246
|
commentsClassName,
|
|
278
247
|
]
|
|
279
|
-
// we flatten the array because some rules ('userCellClass' etc) might return a string[]
|
|
280
248
|
.flat()
|
|
281
249
|
.filter((x) => !!x);
|
|
282
250
|
const result = returnValue.length ? returnValue : undefined;
|
|
@@ -289,7 +257,6 @@ export class AgGridColumnAdapter {
|
|
|
289
257
|
this.setColDefProperty(col, 'headerClass', (userHeaderClass) => {
|
|
290
258
|
const headerClass = (params) => {
|
|
291
259
|
let baseHeaderClass = [];
|
|
292
|
-
// inherit styles from user provided colDef property
|
|
293
260
|
const userDefinedHeaderClass = typeof userHeaderClass === 'function' ? userHeaderClass(params) : userHeaderClass;
|
|
294
261
|
if (userDefinedHeaderClass) {
|
|
295
262
|
baseHeaderClass =
|
|
@@ -300,12 +267,9 @@ export class AgGridColumnAdapter {
|
|
|
300
267
|
: [userDefinedHeaderClass];
|
|
301
268
|
}
|
|
302
269
|
if (params.floatingFilter) {
|
|
303
|
-
// we NEVER style floating filters
|
|
304
270
|
return baseHeaderClass;
|
|
305
271
|
}
|
|
306
272
|
if (params.columnGroup) {
|
|
307
|
-
// we TEMPORARILY do NOT style column groups
|
|
308
|
-
// see https://github.com/AdaptableTools/adaptable/issues/2947#issuecomment-3062304655
|
|
309
273
|
return baseHeaderClass;
|
|
310
274
|
}
|
|
311
275
|
const isExcelExport = this.adaptableApi.exportApi.internalApi.isExcelExportInProgress();
|
|
@@ -335,11 +299,7 @@ export class AgGridColumnAdapter {
|
|
|
335
299
|
return baseHeaderClass;
|
|
336
300
|
}
|
|
337
301
|
const target = 'columnHeader';
|
|
338
|
-
// handle special case of headers with text alignment
|
|
339
|
-
// in this case, we add a specific class to the header
|
|
340
|
-
// see #header_text_align
|
|
341
302
|
const formatColumnWithTextAlignment = this.getRelevantFormatColumnHeaderStyles(abColumn)
|
|
342
|
-
// we take the first one only, even if multiple are defined
|
|
343
303
|
.find((fc) => fc.Style?.Alignment != undefined);
|
|
344
304
|
if (formatColumnWithTextAlignment) {
|
|
345
305
|
const alignment = formatColumnWithTextAlignment.Style.Alignment.toLowerCase();
|
|
@@ -369,8 +329,6 @@ export class AgGridColumnAdapter {
|
|
|
369
329
|
return undefined;
|
|
370
330
|
}
|
|
371
331
|
return Object.entries(style).reduce((acc, [key, value]) => {
|
|
372
|
-
// needed as AG-Grid vanilla turns all CSS props to kebab, while AG Grid React does not
|
|
373
|
-
// @ts-ignore
|
|
374
332
|
acc[`--ab-dynamic-${kebabCase(key)}`] = value;
|
|
375
333
|
return acc;
|
|
376
334
|
}, {});
|
|
@@ -401,8 +359,6 @@ export class AgGridColumnAdapter {
|
|
|
401
359
|
? { ...textMatchStyle, ...currentTextMatchStyle }
|
|
402
360
|
: textMatchStyle;
|
|
403
361
|
let baseStyles = {};
|
|
404
|
-
// this is required because otherwise, when AG Grid filters, it refreshed the pivotResultColDef and the base styles get lost
|
|
405
|
-
// if pivot result col: inherit styles from base column
|
|
406
362
|
if (this.adaptableApi.columnApi.isPivotResultColumn(columnId)) {
|
|
407
363
|
const baseColumn = params.column.getColDef()?.pivotValueColumn;
|
|
408
364
|
if (baseColumn) {
|
|
@@ -410,8 +366,6 @@ export class AgGridColumnAdapter {
|
|
|
410
366
|
const baseColParams = {
|
|
411
367
|
...params,
|
|
412
368
|
column: baseColumn,
|
|
413
|
-
// @ts-ignore
|
|
414
|
-
// #derived_pivot_cell_style
|
|
415
369
|
__pivotResultColumn: params.column,
|
|
416
370
|
};
|
|
417
371
|
baseStyles =
|
|
@@ -421,7 +375,6 @@ export class AgGridColumnAdapter {
|
|
|
421
375
|
}
|
|
422
376
|
}
|
|
423
377
|
else {
|
|
424
|
-
// inherit styles from user provided colDef property
|
|
425
378
|
baseStyles = typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle;
|
|
426
379
|
}
|
|
427
380
|
const result = {
|
|
@@ -446,11 +399,9 @@ export class AgGridColumnAdapter {
|
|
|
446
399
|
this.setColDefProperty(col, 'headerStyle', (userHeaderStyle) => {
|
|
447
400
|
const headerStyleFunc = (params) => {
|
|
448
401
|
let baseStyles = {};
|
|
449
|
-
// inherit styles from user provided colDef property
|
|
450
402
|
baseStyles =
|
|
451
403
|
typeof userHeaderStyle === 'function' ? userHeaderStyle(params) : userHeaderStyle;
|
|
452
404
|
if (params.floatingFilter) {
|
|
453
|
-
// we NEVER style floating filters
|
|
454
405
|
return baseStyles;
|
|
455
406
|
}
|
|
456
407
|
const columnId = params.column.getColId();
|
|
@@ -463,8 +414,6 @@ export class AgGridColumnAdapter {
|
|
|
463
414
|
...this.getFormatColumnHeaderStyle(adaptableColumn, params),
|
|
464
415
|
};
|
|
465
416
|
if (result['borderColor']) {
|
|
466
|
-
// by default, header cells don't have a border
|
|
467
|
-
// if the user defines a border-color, we assume he wants to show a border
|
|
468
417
|
result['borderWidth'] = `1px`;
|
|
469
418
|
result['borderStyle'] = 'solid';
|
|
470
419
|
}
|
|
@@ -514,7 +463,6 @@ export class AgGridColumnAdapter {
|
|
|
514
463
|
return values;
|
|
515
464
|
};
|
|
516
465
|
return {
|
|
517
|
-
// we need to pass a function which returns a Promise, that's what AG Grid expects
|
|
518
466
|
values: fetchSelectItems,
|
|
519
467
|
formatValue: (value) => valueToLabelMap.get(value) ?? value,
|
|
520
468
|
};
|
|
@@ -570,9 +518,6 @@ export class AgGridColumnAdapter {
|
|
|
570
518
|
if (!styledColumn || styledColumn.IsSuspended) {
|
|
571
519
|
return undefined;
|
|
572
520
|
}
|
|
573
|
-
// Icon Style has its own tooltip vocabulary (`'CellValue'` /
|
|
574
|
-
// `'IconDescription'`) so we handle it before falling through to the
|
|
575
|
-
// numeric tooltip branch.
|
|
576
521
|
if (styledColumn.IconStyle && !isUnsupportedColumnDataTypeForIconStyle(abColumn.dataType)) {
|
|
577
522
|
const iconTokens = styledColumn.IconStyle.ToolTipText ?? [];
|
|
578
523
|
if (iconTokens.length === 0) {
|
|
@@ -594,8 +539,6 @@ export class AgGridColumnAdapter {
|
|
|
594
539
|
return trimmed ? trimmed : String(params.value ?? '');
|
|
595
540
|
};
|
|
596
541
|
}
|
|
597
|
-
// Rating: `PercentageValue` is `clamp(value, 0, Max) / Max` (not the
|
|
598
|
-
// column min/max span used by Gradient / Percent Bar).
|
|
599
542
|
if (styledColumn.RatingStyle) {
|
|
600
543
|
const ratingToolTip = styledColumn.RatingStyle.ToolTipText ?? [];
|
|
601
544
|
if (ratingToolTip.length === 0) {
|
|
@@ -621,10 +564,6 @@ export class AgGridColumnAdapter {
|
|
|
621
564
|
return trimmed ? trimmed : String(params.value ?? '');
|
|
622
565
|
};
|
|
623
566
|
}
|
|
624
|
-
// Percent Bar, Bullet Chart, Gradient and Range Bar may all expose
|
|
625
|
-
// `ToolTipText: CellTextOptions`. Range Bar resolves min/max per row
|
|
626
|
-
// (from `RangeBarStyle.Min` / `RangeBarStyle.Max`) so we treat it
|
|
627
|
-
// separately rather than re-using the column-wide numeric helpers.
|
|
628
567
|
const tooltipStyle = styledColumn.PercentBarStyle ??
|
|
629
568
|
styledColumn.BulletChartStyle ??
|
|
630
569
|
styledColumn.GradientStyle ??
|
|
@@ -669,13 +608,6 @@ export class AgGridColumnAdapter {
|
|
|
669
608
|
};
|
|
670
609
|
});
|
|
671
610
|
}
|
|
672
|
-
/**
|
|
673
|
-
* Resolves a Range Bar bound (number / column id / Col-Min / Col-Max /
|
|
674
|
-
* Col-Avg / Col-Median) into a concrete numeric value for the supplied row.
|
|
675
|
-
* Mirrors the resolution logic in `RangeBarRenderer.resolveBoundValue` and
|
|
676
|
-
* is used by the tooltip path. Returns `undefined` when the bound cannot
|
|
677
|
-
* be resolved (e.g. unknown column id or non-numeric source value).
|
|
678
|
-
*/
|
|
679
611
|
resolveRangeBarBound(bound, abColumn, rowNode) {
|
|
680
612
|
if (bound == undefined) {
|
|
681
613
|
return undefined;
|
|
@@ -731,8 +663,6 @@ export class AgGridColumnAdapter {
|
|
|
731
663
|
}
|
|
732
664
|
setupColumnType(columnSetupInfo) {
|
|
733
665
|
const { col, colId } = columnSetupInfo;
|
|
734
|
-
// AG Grid introduced since v30.x an inferred cellDataType
|
|
735
|
-
// the problem is that it breaks the default value formatter and/or editor (especially for Date columns)
|
|
736
666
|
this.setColDefProperty(col, 'type', (original_columnType) => {
|
|
737
667
|
const originalTypes = original_columnType == undefined
|
|
738
668
|
? []
|
|
@@ -758,7 +688,6 @@ export class AgGridColumnAdapter {
|
|
|
758
688
|
setupColumnCellDataType(columnSetupInfo) {
|
|
759
689
|
const { col, colId } = columnSetupInfo;
|
|
760
690
|
this.setColDefProperty(col, 'cellDataType', (original_cellDataType) => {
|
|
761
|
-
// #map_dateString_to_date
|
|
762
691
|
if (original_cellDataType === 'dateString') {
|
|
763
692
|
errorOnce(`AG Grid: Column '${colId}' specifies cellDataType='dateString' which is no longer supported. It has been automatically replaced with cellDataType='date'. Please update your column definition.`);
|
|
764
693
|
return 'date';
|
|
@@ -768,7 +697,6 @@ export class AgGridColumnAdapter {
|
|
|
768
697
|
}
|
|
769
698
|
setupColumnHeader({ col }) {
|
|
770
699
|
this.setColDefProperty(col, 'headerValueGetter', (original_headerValueGetter) => {
|
|
771
|
-
// see #customize_header
|
|
772
700
|
if (!isProvidedByAdaptable(original_headerValueGetter)) {
|
|
773
701
|
this.adaptableApi.logWarn(`colDef.headerValueGetter is defined for column '${col.getColId()}', and overrides the Adaptable custom header mechanism! We recommend using a ColumnOptions.columnHeader instead!`);
|
|
774
702
|
}
|
|
@@ -781,24 +709,19 @@ export class AgGridColumnAdapter {
|
|
|
781
709
|
if (!useAdaptableFilter) {
|
|
782
710
|
return;
|
|
783
711
|
}
|
|
784
|
-
// setup Auto Group Column Filter
|
|
785
712
|
if (this.adaptableApi.columnApi.isAutoRowGroupColumn(col.getColId())) {
|
|
786
713
|
if (this.adaptableApi.gridApi.isTreeDataGrid()) {
|
|
787
714
|
this.setColDefProperty(col, 'filter', (original_filter) => {
|
|
788
715
|
const autoGroupColumnDef = this.agGridApi.getGridOption('autoGroupColumnDef');
|
|
789
716
|
if (autoGroupColumnDef?.filter != undefined) {
|
|
790
|
-
// we plan to provide a TreeListColumnFilter
|
|
791
|
-
// until then, it's the user's responsibility to explicitly set the filter in the provided `autoGroupColumnDef`
|
|
792
717
|
return original_filter;
|
|
793
718
|
}
|
|
794
719
|
else {
|
|
795
|
-
// if no filter is explicitly set, we do NOT provide a filter
|
|
796
720
|
return false;
|
|
797
721
|
}
|
|
798
722
|
});
|
|
799
723
|
}
|
|
800
724
|
else {
|
|
801
|
-
// TODO only set auto group column as filterable if at least one group columns is filterable
|
|
802
725
|
this.setColDefProperty(col, 'filter', () => {
|
|
803
726
|
return 'agGroupColumnFilter';
|
|
804
727
|
});
|
|
@@ -807,7 +730,6 @@ export class AgGridColumnAdapter {
|
|
|
807
730
|
return;
|
|
808
731
|
}
|
|
809
732
|
}
|
|
810
|
-
// setup "normal" column filter
|
|
811
733
|
this.setColDefProperty(col, 'filter', (original_filter) => {
|
|
812
734
|
const pivotMode = this.adaptableInstance.isInPivotMode();
|
|
813
735
|
if (!useAdaptableFilter) {
|
|
@@ -834,7 +756,6 @@ export class AgGridColumnAdapter {
|
|
|
834
756
|
typeof userProvidedFilterProp?.handler !== 'function' &&
|
|
835
757
|
!this.adaptableInstance.isInPivotMode();
|
|
836
758
|
if (hasInvalidFilterProp) {
|
|
837
|
-
// warning is logged in the 'setupColumnFilter' method
|
|
838
759
|
return false;
|
|
839
760
|
}
|
|
840
761
|
const isFloatingFilterDisabled = !colDef.filter ||
|
|
@@ -843,15 +764,9 @@ export class AgGridColumnAdapter {
|
|
|
843
764
|
!this.adaptableApi.filterApi.columnFilterApi.isQuickFilterVisible();
|
|
844
765
|
if (this.adaptableApi.columnApi.isAutoRowGroupColumnForMulti(col.getColId())) {
|
|
845
766
|
this.setColDefProperty(col, 'floatingFilter', (original_floatingFilter) => {
|
|
846
|
-
// the floating filter for the group column is "inherited" from the base column
|
|
847
|
-
// via the colDef.filter = 'agGroupColumnFilter'
|
|
848
|
-
// see #group_inherit_column_filter
|
|
849
|
-
// https://www.ag-grid.com/javascript-data-grid/grouping-single-group-column/#inherit-row-grouped-columns-filters
|
|
850
|
-
// https://www.ag-grid.com/javascript-data-grid/grouping-multiple-group-columns/#filtering
|
|
851
767
|
return original_floatingFilter;
|
|
852
768
|
});
|
|
853
769
|
this.setColDefProperty(col, 'suppressFloatingFilterButton', () => {
|
|
854
|
-
// hide button for multi column groups
|
|
855
770
|
return true;
|
|
856
771
|
});
|
|
857
772
|
return;
|
|
@@ -882,60 +797,49 @@ export class AgGridColumnAdapter {
|
|
|
882
797
|
const { node, value } = params;
|
|
883
798
|
const mostRelevantFormatColumn = this.adaptableApi.formatColumnApi.internalApi.getMostRelevantFormatColumnForColumn(activeFormatColumnsWithDisplayFormat, abColumn, { node, value });
|
|
884
799
|
if (!mostRelevantFormatColumn) {
|
|
885
|
-
// ALL FormatColumns are conditional and NONE of them are relevant for this row
|
|
886
800
|
return value;
|
|
887
801
|
}
|
|
888
|
-
// Resolve once: a preset name (e.g. 'Dollar') is materialised
|
|
889
|
-
// into the concrete AdaptableFormat for this render call.
|
|
890
802
|
const resolvedDisplayFormat = resolveDisplayFormat(mostRelevantFormatColumn.DisplayFormat);
|
|
891
803
|
if (!resolvedDisplayFormat) {
|
|
892
804
|
return value;
|
|
893
805
|
}
|
|
894
806
|
const formatterOptions = resolvedDisplayFormat.Options;
|
|
895
807
|
if (resolvedDisplayFormat.Formatter === 'NumberFormatter') {
|
|
896
|
-
// change the Number format - if the scope allows it
|
|
897
808
|
if (this.adaptableApi.columnScopeApi.isColumnInNumericScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
898
809
|
let cellValue = params.value;
|
|
899
810
|
if (typeof params.value?.toNumber === 'function' &&
|
|
900
811
|
typeof params.value?.toString === 'function') {
|
|
901
|
-
// aggregation values are wrapped in an AG Grid specific object
|
|
902
812
|
cellValue = params.value.toNumber();
|
|
903
813
|
}
|
|
904
814
|
return this.adaptableApi.formatColumnApi.internalApi.getNumberFormattedValue(cellValue, params.node, abColumn, formatterOptions);
|
|
905
815
|
}
|
|
906
816
|
}
|
|
907
817
|
if (resolvedDisplayFormat.Formatter === 'DateFormatter') {
|
|
908
|
-
// change the Date format - if the scope allows it
|
|
909
818
|
if (this.adaptableApi.columnScopeApi.isColumnInDateScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
910
819
|
let cellValue = params.value;
|
|
911
820
|
if (typeof params.value?.toNumber === 'function' &&
|
|
912
821
|
typeof params.value?.toString === 'function') {
|
|
913
|
-
// aggregation values are wrapped in an AG Grid specific object
|
|
914
822
|
cellValue = params.value.toString();
|
|
915
823
|
}
|
|
916
824
|
return this.adaptableApi.formatColumnApi.internalApi.getDateFormattedValue(cellValue, params.node, abColumn, formatterOptions);
|
|
917
825
|
}
|
|
918
826
|
}
|
|
919
827
|
if (resolvedDisplayFormat.Formatter === 'StringFormatter') {
|
|
920
|
-
// change the String format - if the scope allows it
|
|
921
828
|
if (this.adaptableApi.columnScopeApi.isColumnInTextScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
922
829
|
let cellValue = params.value;
|
|
923
830
|
if (typeof params.value?.toNumber === 'function' &&
|
|
924
831
|
typeof params.value?.toString === 'function') {
|
|
925
|
-
// aggregation values are wrapped in an AG Grid specific object
|
|
926
832
|
cellValue = params.value.toString();
|
|
927
833
|
}
|
|
928
834
|
return this.adaptableApi.formatColumnApi.internalApi.getStringFormattedValue(cellValue, params.node, abColumn, formatterOptions);
|
|
929
835
|
}
|
|
930
836
|
}
|
|
931
|
-
// should NEVER arrive at this line, but just to be sure
|
|
932
837
|
return value;
|
|
933
838
|
};
|
|
934
839
|
});
|
|
935
840
|
}
|
|
936
841
|
setupColumnEditable({ col }) {
|
|
937
842
|
this.setColDefProperty(col, 'editable', (original_editable) => {
|
|
938
|
-
// cell is NOT editable by default
|
|
939
843
|
const editableCallback = (params) => {
|
|
940
844
|
const getOriginalColDefEditable = () => {
|
|
941
845
|
if (typeof original_editable === 'function') {
|
|
@@ -945,12 +849,10 @@ export class AgGridColumnAdapter {
|
|
|
945
849
|
return original_editable;
|
|
946
850
|
}
|
|
947
851
|
};
|
|
948
|
-
// 1. evaluate EditOptions.isCellEditable if provided
|
|
949
852
|
if (this.adaptableApi.gridApi.internalApi.hasCellEditableAccordingToEditOptions()) {
|
|
950
853
|
const gridCell = this.adaptableApi.gridApi.getGridCellFromRowNode(params.node, params.column.getColId());
|
|
951
854
|
return this.adaptableApi.gridApi.internalApi.isCellEditableAccordingToEditOptions(gridCell, getOriginalColDefEditable());
|
|
952
855
|
}
|
|
953
|
-
// 2. otherwise, fallback to colDef.editable
|
|
954
856
|
return getOriginalColDefEditable();
|
|
955
857
|
};
|
|
956
858
|
return editableCallback;
|
|
@@ -970,14 +872,9 @@ export class AgGridColumnAdapter {
|
|
|
970
872
|
const valueSetter = (params) => {
|
|
971
873
|
const field = params.column.getColDef().field;
|
|
972
874
|
if (noValidations) {
|
|
973
|
-
//TODO also consider the case when userValueSetter is a string
|
|
974
875
|
if (typeof userValueSetter === 'function') {
|
|
975
876
|
return userValueSetter(params);
|
|
976
877
|
}
|
|
977
|
-
// we allowed it go reach this point
|
|
978
|
-
// just to run isCellEditable
|
|
979
|
-
// and since this has already run and we have no other validations
|
|
980
|
-
// just assign the new value and exit
|
|
981
878
|
if (field) {
|
|
982
879
|
params.data[field] = params.newValue;
|
|
983
880
|
}
|
|
@@ -994,10 +891,6 @@ export class AgGridColumnAdapter {
|
|
|
994
891
|
if (cellDataChangedInfo.oldValue === cellDataChangedInfo.newValue) {
|
|
995
892
|
return true;
|
|
996
893
|
}
|
|
997
|
-
/**
|
|
998
|
-
* Validate on the future row, with the new value.
|
|
999
|
-
* structuredClone fails, it contains functions.
|
|
1000
|
-
*/
|
|
1001
894
|
const newRow = { ...params.node, data: { ...params.node.data } };
|
|
1002
895
|
newRow.data[field] = params.newValue;
|
|
1003
896
|
const cellDataChangeInfoForSyncValidation = {
|
|
@@ -1017,7 +910,6 @@ export class AgGridColumnAdapter {
|
|
|
1017
910
|
onServerValidationCompleted,
|
|
1018
911
|
})();
|
|
1019
912
|
}
|
|
1020
|
-
//TODO also consider the case when userValueSetter is a string
|
|
1021
913
|
if (typeof userValueSetter === 'function') {
|
|
1022
914
|
return userValueSetter(params);
|
|
1023
915
|
}
|
|
@@ -1046,7 +938,6 @@ export class AgGridColumnAdapter {
|
|
|
1046
938
|
};
|
|
1047
939
|
const comparatorGetter = (propName) => {
|
|
1048
940
|
return (userPropertyValue) => {
|
|
1049
|
-
// CustomSort Comparer function takes precedence over CustomSort SortedValues
|
|
1050
941
|
if (customSortComparer) {
|
|
1051
942
|
return customSortComparer.comparer;
|
|
1052
943
|
}
|
|
@@ -1056,7 +947,6 @@ export class AgGridColumnAdapter {
|
|
|
1056
947
|
if (userPropertyValue) {
|
|
1057
948
|
return userPropertyValue;
|
|
1058
949
|
}
|
|
1059
|
-
// for DATE columns we have to use the normalised values (Date objects) to compare
|
|
1060
950
|
if (abColumn.dataType === 'date') {
|
|
1061
951
|
return (valueA, valueB) => {
|
|
1062
952
|
const dateA = getDateValue(valueA);
|
|
@@ -1065,13 +955,13 @@ export class AgGridColumnAdapter {
|
|
|
1065
955
|
return dateA.getTime() - dateB.getTime();
|
|
1066
956
|
}
|
|
1067
957
|
else if (dateA) {
|
|
1068
|
-
return 1;
|
|
958
|
+
return 1;
|
|
1069
959
|
}
|
|
1070
960
|
else if (dateB) {
|
|
1071
|
-
return -1;
|
|
961
|
+
return -1;
|
|
1072
962
|
}
|
|
1073
963
|
else {
|
|
1074
|
-
return 0;
|
|
964
|
+
return 0;
|
|
1075
965
|
}
|
|
1076
966
|
};
|
|
1077
967
|
}
|
|
@@ -1311,27 +1201,16 @@ export class AgGridColumnAdapter {
|
|
|
1311
1201
|
}
|
|
1312
1202
|
return undefined;
|
|
1313
1203
|
}
|
|
1314
|
-
/**
|
|
1315
|
-
* The combination of styled column and format cells
|
|
1316
|
-
* This function decides when the two can be merged.
|
|
1317
|
-
*/
|
|
1318
1204
|
getFormatColumnAndStyledColumnCellStyle(column, params) {
|
|
1319
1205
|
const styledColumn = this.adaptableApi.styledColumnApi.getStyledColumnForColumnId(column.columnId);
|
|
1320
1206
|
const styledColumnIsActive = !!styledColumn && !styledColumn?.IsSuspended;
|
|
1321
|
-
// Styled-column-derived cell style (e.g. Gradient backgroundColor, plus
|
|
1322
|
-
// any Font/Cell slot the renderer chose to expose).
|
|
1323
1207
|
const styledColumnStyle = styledColumnIsActive
|
|
1324
1208
|
? this.getStyledColumnStyle(styledColumn, column, params)
|
|
1325
1209
|
: {};
|
|
1326
|
-
// Format Column styles for this cell (may be empty).
|
|
1327
1210
|
const activeFormatColumnsWithStyle = this.adaptableApi.formatColumnApi.internalApi.getFormatColumnsWithStyleForColumn(column, {
|
|
1328
1211
|
target: 'cell',
|
|
1329
1212
|
});
|
|
1330
1213
|
let formatColumnStyle = this.getFormatColumnCellStyle(column, activeFormatColumnsWithStyle, params);
|
|
1331
|
-
// Per-slice precedence rule: when the Styled Column claims a slice
|
|
1332
|
-
// (via its `Font` or `Cell` slot), Format Column properties belonging
|
|
1333
|
-
// to that slice are stripped and never applied. When the slice is not
|
|
1334
|
-
// claimed, Format Column inherits naturally.
|
|
1335
1214
|
if (styledColumnIsActive) {
|
|
1336
1215
|
if (this.styledColumnClaimsFontStyle(styledColumn, column)) {
|
|
1337
1216
|
formatColumnStyle = stripFontCssKeys(formatColumnStyle);
|
|
@@ -1340,23 +1219,11 @@ export class AgGridColumnAdapter {
|
|
|
1340
1219
|
formatColumnStyle = stripCellBoxCssKeys(formatColumnStyle);
|
|
1341
1220
|
}
|
|
1342
1221
|
}
|
|
1343
|
-
// Styled Column wins over Format Column for any overlapping property.
|
|
1344
1222
|
return {
|
|
1345
1223
|
...formatColumnStyle,
|
|
1346
1224
|
...styledColumnStyle,
|
|
1347
1225
|
};
|
|
1348
1226
|
}
|
|
1349
|
-
/**
|
|
1350
|
-
* Returns true when the active Styled Column declares a `Font` slot
|
|
1351
|
-
* (and therefore claims all Font-slice properties on this column).
|
|
1352
|
-
*
|
|
1353
|
-
* Note: Badge claims **only** `Alignment` from the Font slice — pill
|
|
1354
|
-
* typography is owned per-pill via `PillStyle`, never inherited from a
|
|
1355
|
-
* Format Column. Stripping the whole Font slice when Badge declares
|
|
1356
|
-
* `Alignment` keeps the precedence rule simple and is fine in practice
|
|
1357
|
-
* because Format-Column-derived font styles don't apply to flex rows of
|
|
1358
|
-
* pills anyway.
|
|
1359
|
-
*/
|
|
1360
1227
|
styledColumnClaimsFontStyle(styledColumn, abColumn) {
|
|
1361
1228
|
const iconFontClaims = !!styledColumn?.IconStyle &&
|
|
1362
1229
|
!isUnsupportedColumnDataTypeForIconStyle(abColumn.dataType) &&
|
|
@@ -1367,10 +1234,6 @@ export class AgGridColumnAdapter {
|
|
|
1367
1234
|
hasCellFontStyle(styledColumn?.BadgeStyle?.Font) ||
|
|
1368
1235
|
iconFontClaims);
|
|
1369
1236
|
}
|
|
1370
|
-
/**
|
|
1371
|
-
* Returns true when the active Styled Column declares a `Cell` slot
|
|
1372
|
-
* (and therefore claims all Cell-slice properties on this column).
|
|
1373
|
-
*/
|
|
1374
1237
|
styledColumnClaimsCellBoxStyle(styledColumn, abColumn) {
|
|
1375
1238
|
const iconCellClaims = !!styledColumn?.IconStyle &&
|
|
1376
1239
|
!isUnsupportedColumnDataTypeForIconStyle(abColumn.dataType) &&
|
|
@@ -1382,8 +1245,6 @@ export class AgGridColumnAdapter {
|
|
|
1382
1245
|
}
|
|
1383
1246
|
getFormatColumnHeaderStyle(column, params) {
|
|
1384
1247
|
if (params.columnGroup) {
|
|
1385
|
-
// FormatColumns are not supported in column groups
|
|
1386
|
-
// YET, see https://github.com/AdaptableTools/adaptable/issues/2947#issuecomment-3062304655
|
|
1387
1248
|
return {};
|
|
1388
1249
|
}
|
|
1389
1250
|
const relevantFormatColumnsWithStyle = this.getRelevantFormatColumnHeaderStyles(column);
|
|
@@ -1398,9 +1259,6 @@ export class AgGridColumnAdapter {
|
|
|
1398
1259
|
if (params.value == undefined || params.value === '') {
|
|
1399
1260
|
return style;
|
|
1400
1261
|
}
|
|
1401
|
-
// Row-kind filtering: defer to the shared row-scope helper so the
|
|
1402
|
-
// cellStyle path (Gradient background, Font/Cell slots) follows the
|
|
1403
|
-
// same `StyledColumn.RowScope` rules as every cellRenderer.
|
|
1404
1262
|
if (!shouldRenderStyledColumnOnRow(styledColumn, params.node, this.adaptableApi)) {
|
|
1405
1263
|
return style;
|
|
1406
1264
|
}
|
|
@@ -1417,9 +1275,6 @@ export class AgGridColumnAdapter {
|
|
|
1417
1275
|
const matchingRange = this.adaptableApi.styledColumnApi.internalApi.findRangeForColumn(expandGradientCellRanges(gradientStyle), abColumn, gradientStyleRangeLookupValueType(gradientStyle), colValue);
|
|
1418
1276
|
if (matchingRange) {
|
|
1419
1277
|
cellBackColor = matchingRange.Color;
|
|
1420
|
-
// Flip the alpha ramp when (a) it's the negative band of a
|
|
1421
|
-
// ZeroCentred diverging gradient, OR (b) the user has explicitly
|
|
1422
|
-
// marked this band as `ReverseGradient` (lower-is-darker).
|
|
1423
1278
|
reverseGradient =
|
|
1424
1279
|
(!!gradientStyle.ZeroCentred && isNegativeZeroCentredBand(matchingRange)) ||
|
|
1425
1280
|
!!matchingRange.ReverseGradient;
|
|
@@ -1451,25 +1306,12 @@ export class AgGridColumnAdapter {
|
|
|
1451
1306
|
style.paddingTop = 0;
|
|
1452
1307
|
style.paddingBottom = 0;
|
|
1453
1308
|
}
|
|
1454
|
-
// Per-slice styling: each Styled Column type can opt into a Font/Cell
|
|
1455
|
-
// slot (declared on the *Style interface) that flows through to cell
|
|
1456
|
-
// CSS. The slots also act as a "claim" against Format Columns — see
|
|
1457
|
-
// `getFormatColumnAndStyledColumnCellStyle`.
|
|
1458
|
-
//
|
|
1459
|
-
// Order is important: we apply the Font slot BEFORE the auto-contrast
|
|
1460
|
-
// override (recomputed below) so that auto-contrast wins on a per-cell
|
|
1461
|
-
// basis when a Gradient cell has a tinted background, even if the user
|
|
1462
|
-
// also set `Font.ForeColor` as a baseline.
|
|
1463
1309
|
const autoContrastColor = gradientStyle?.AutoContrastText && style.color ? style.color : undefined;
|
|
1464
1310
|
const iconStyleFontApplies = styledColumn.IconStyle && !isUnsupportedColumnDataTypeForIconStyle(abColumn.dataType);
|
|
1465
1311
|
const fontSlot = styledColumn.GradientStyle?.Font ??
|
|
1466
1312
|
styledColumn.PercentBarStyle?.Font ??
|
|
1467
1313
|
styledColumn.BulletChartStyle?.Font ??
|
|
1468
1314
|
(iconStyleFontApplies ? styledColumn.IconStyle?.Font : undefined);
|
|
1469
|
-
// Badge's Font slot intentionally skipped here: only `Alignment` is
|
|
1470
|
-
// meaningful on Badge cells and the renderer applies it as flex
|
|
1471
|
-
// `justify-content` on the wrapper (cell `text-align` has no effect on
|
|
1472
|
-
// flex rows of pills). Still claimed for the precedence rule above.
|
|
1473
1315
|
if (fontSlot) {
|
|
1474
1316
|
style = { ...style, ...convertAdaptableStyleToCSS(fontSlot) };
|
|
1475
1317
|
}
|
|
@@ -1491,14 +1333,11 @@ export class AgGridColumnAdapter {
|
|
|
1491
1333
|
return {};
|
|
1492
1334
|
}
|
|
1493
1335
|
const relevantFormatColumnsWithStyle = activeFormatColumnsWithStyle.filter((formatColumn) => {
|
|
1494
|
-
return this.adaptableApi.formatColumnApi.internalApi.formatColumnShouldRenderInCell(formatColumn, abColumn, params.node, params.value,
|
|
1495
|
-
// @ts-ignore see #derived_pivot_cell_style
|
|
1496
|
-
params.__pivotResultColumn);
|
|
1336
|
+
return this.adaptableApi.formatColumnApi.internalApi.formatColumnShouldRenderInCell(formatColumn, abColumn, params.node, params.value, params.__pivotResultColumn);
|
|
1497
1337
|
});
|
|
1498
1338
|
return this.getFormatColumnAdaptableStyle(relevantFormatColumnsWithStyle);
|
|
1499
1339
|
}
|
|
1500
1340
|
getFormatColumnAdaptableStyle(formatColumns) {
|
|
1501
|
-
// first has more precedence, then they need to be applied in reverse order
|
|
1502
1341
|
return formatColumns.reduceRight((style, formatColumn) => {
|
|
1503
1342
|
const formatColumnStyle = formatColumn.Style
|
|
1504
1343
|
? convertAdaptableStyleToCSS(formatColumn.Style)
|
|
@@ -1552,7 +1391,6 @@ export class AgGridColumnAdapter {
|
|
|
1552
1391
|
}
|
|
1553
1392
|
}
|
|
1554
1393
|
isColGroupDef(columnDefinition) {
|
|
1555
|
-
// @ts-ignore
|
|
1556
1394
|
return columnDefinition['children'] != null;
|
|
1557
1395
|
}
|
|
1558
1396
|
getRelevantFormatColumnHeaderStyles(column) {
|