@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
|
@@ -34,11 +34,6 @@ const AgGridFloatingFilterAdapter_1 = require("./AgGridFloatingFilterAdapter");
|
|
|
34
34
|
const AdaptableLogger_1 = require("./AdaptableLogger");
|
|
35
35
|
const IconStyleHelper_1 = require("../Utilities/Helpers/StyledColumns/IconStyleHelper");
|
|
36
36
|
const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumns");
|
|
37
|
-
/**
|
|
38
|
-
* CSS property keys produced by `convertAdaptableStyleToCSS` from a
|
|
39
|
-
* `CellFontStyle` slice. Used to strip Format-Column-derived font CSS
|
|
40
|
-
* when a Styled Column claims the Font slot.
|
|
41
|
-
*/
|
|
42
37
|
const FONT_CSS_KEYS = [
|
|
43
38
|
'color',
|
|
44
39
|
'fontWeight',
|
|
@@ -47,11 +42,6 @@ const FONT_CSS_KEYS = [
|
|
|
47
42
|
'textDecoration',
|
|
48
43
|
'textAlign',
|
|
49
44
|
];
|
|
50
|
-
/**
|
|
51
|
-
* CSS property keys produced by `convertAdaptableStyleToCSS` from a
|
|
52
|
-
* `CellBoxStyle` slice. Used to strip Format-Column-derived cell-box CSS
|
|
53
|
-
* when a Styled Column claims the Cell slot.
|
|
54
|
-
*/
|
|
55
45
|
const CELL_BOX_CSS_KEYS = [
|
|
56
46
|
'backgroundColor',
|
|
57
47
|
'borderColor',
|
|
@@ -128,7 +118,6 @@ class AgGridColumnAdapter {
|
|
|
128
118
|
}
|
|
129
119
|
}
|
|
130
120
|
if (theValue === undefined && colDef[propertyName] === undefined) {
|
|
131
|
-
// already undefined, so don't set an own property to the same undefined value
|
|
132
121
|
return;
|
|
133
122
|
}
|
|
134
123
|
colDef[propertyName] = theValue;
|
|
@@ -138,14 +127,6 @@ class AgGridColumnAdapter {
|
|
|
138
127
|
return this.colDefPropertyCache.get(userKey);
|
|
139
128
|
}
|
|
140
129
|
shouldSkipColumn(colId) {
|
|
141
|
-
/**
|
|
142
|
-
* This skips special columns that ag grid will likely implement in the future
|
|
143
|
-
*
|
|
144
|
-
* BUT DOES NOT SKIP GROUP COLUMNS or SELECTION COLUMNS!!!
|
|
145
|
-
*
|
|
146
|
-
* It's probably here for historical reasons - previously it used to skip the selection column
|
|
147
|
-
* but now it's not skipping it anymore
|
|
148
|
-
*/
|
|
149
130
|
return (colId.startsWith('ag-Grid-') &&
|
|
150
131
|
!this.adaptableApi.columnApi.isAutoRowGroupColumn(colId) &&
|
|
151
132
|
!this.adaptableApi.columnApi.isSelectionColumn(colId));
|
|
@@ -153,10 +134,9 @@ class AgGridColumnAdapter {
|
|
|
153
134
|
getAllAgGridColumns() {
|
|
154
135
|
const pivotMode = this.adaptableInstance.isInPivotMode();
|
|
155
136
|
let cols = pivotMode
|
|
156
|
-
?
|
|
137
|
+
?
|
|
157
138
|
this.agGridApi.getColumns()
|
|
158
|
-
:
|
|
159
|
-
// which also includes those that are generated for row grouping
|
|
139
|
+
:
|
|
160
140
|
this.agGridApi.getAllGridColumns();
|
|
161
141
|
if (pivotMode) {
|
|
162
142
|
const pivotResultColumns = this.agGridApi.getPivotResultColumns() || [];
|
|
@@ -167,17 +147,11 @@ class AgGridColumnAdapter {
|
|
|
167
147
|
}
|
|
168
148
|
return cols;
|
|
169
149
|
}
|
|
170
|
-
/**
|
|
171
|
-
* Setup all columns, or only those with the given Ids
|
|
172
|
-
* @param specificColumnIds - optional list of column Ids to setup. If not provided, all columns are setup
|
|
173
|
-
*/
|
|
174
150
|
setupColumns(specificColumnIds) {
|
|
175
151
|
let cols = this.getAllAgGridColumns();
|
|
176
152
|
if (specificColumnIds?.length) {
|
|
177
153
|
cols = cols.filter((col) => specificColumnIds.includes(col.getColId()));
|
|
178
154
|
}
|
|
179
|
-
// this needs to be here, before the other setup below
|
|
180
|
-
// so the setup methods below reference the correct columns in adaptable store
|
|
181
155
|
cols.forEach((col) => {
|
|
182
156
|
const colDef = col.getColDef();
|
|
183
157
|
const colId = col.getColId();
|
|
@@ -200,9 +174,6 @@ class AgGridColumnAdapter {
|
|
|
200
174
|
this.setupColumnValueGetter(colSetupInfo);
|
|
201
175
|
this.setupColumnTooltipValueGetter(colSetupInfo);
|
|
202
176
|
if (!isAutoRowGroupColumn) {
|
|
203
|
-
// we do NOT setup filtering for auto row group columns
|
|
204
|
-
// this is done via gridOptions.autoGroupColumnDef
|
|
205
|
-
// see #autoGroupColumnDef
|
|
206
177
|
this.setupColumnFilter(colSetupInfo);
|
|
207
178
|
this.setupColumnFloatingFilter(colSetupInfo);
|
|
208
179
|
}
|
|
@@ -220,7 +191,6 @@ class AgGridColumnAdapter {
|
|
|
220
191
|
});
|
|
221
192
|
}
|
|
222
193
|
setupColumnValueGetter({ col }) {
|
|
223
|
-
// need this here if we want plugins to intercept
|
|
224
194
|
this.setColDefProperty(col, 'valueGetter', (userValue) => {
|
|
225
195
|
return userValue;
|
|
226
196
|
});
|
|
@@ -271,7 +241,6 @@ class AgGridColumnAdapter {
|
|
|
271
241
|
!hasStyledColumn && formatColumns.length
|
|
272
242
|
? this.getFormatColumnCellClass(formatColumns, abColumn, params)
|
|
273
243
|
: null,
|
|
274
|
-
// isQuickSearchActive && hasQuickSearchStyleClassName ? quickSearchStyleClassName : null,
|
|
275
244
|
isQuickSearchActive && !isServerSideRowModel ? 'ab-QuickSearchFind' : null,
|
|
276
245
|
editableClassName,
|
|
277
246
|
readonlyClassName,
|
|
@@ -281,7 +250,6 @@ class AgGridColumnAdapter {
|
|
|
281
250
|
noteClassName,
|
|
282
251
|
commentsClassName,
|
|
283
252
|
]
|
|
284
|
-
// we flatten the array because some rules ('userCellClass' etc) might return a string[]
|
|
285
253
|
.flat()
|
|
286
254
|
.filter((x) => !!x);
|
|
287
255
|
const result = returnValue.length ? returnValue : undefined;
|
|
@@ -294,7 +262,6 @@ class AgGridColumnAdapter {
|
|
|
294
262
|
this.setColDefProperty(col, 'headerClass', (userHeaderClass) => {
|
|
295
263
|
const headerClass = (params) => {
|
|
296
264
|
let baseHeaderClass = [];
|
|
297
|
-
// inherit styles from user provided colDef property
|
|
298
265
|
const userDefinedHeaderClass = typeof userHeaderClass === 'function' ? userHeaderClass(params) : userHeaderClass;
|
|
299
266
|
if (userDefinedHeaderClass) {
|
|
300
267
|
baseHeaderClass =
|
|
@@ -305,12 +272,9 @@ class AgGridColumnAdapter {
|
|
|
305
272
|
: [userDefinedHeaderClass];
|
|
306
273
|
}
|
|
307
274
|
if (params.floatingFilter) {
|
|
308
|
-
// we NEVER style floating filters
|
|
309
275
|
return baseHeaderClass;
|
|
310
276
|
}
|
|
311
277
|
if (params.columnGroup) {
|
|
312
|
-
// we TEMPORARILY do NOT style column groups
|
|
313
|
-
// see https://github.com/AdaptableTools/adaptable/issues/2947#issuecomment-3062304655
|
|
314
278
|
return baseHeaderClass;
|
|
315
279
|
}
|
|
316
280
|
const isExcelExport = this.adaptableApi.exportApi.internalApi.isExcelExportInProgress();
|
|
@@ -340,11 +304,7 @@ class AgGridColumnAdapter {
|
|
|
340
304
|
return baseHeaderClass;
|
|
341
305
|
}
|
|
342
306
|
const target = 'columnHeader';
|
|
343
|
-
// handle special case of headers with text alignment
|
|
344
|
-
// in this case, we add a specific class to the header
|
|
345
|
-
// see #header_text_align
|
|
346
307
|
const formatColumnWithTextAlignment = this.getRelevantFormatColumnHeaderStyles(abColumn)
|
|
347
|
-
// we take the first one only, even if multiple are defined
|
|
348
308
|
.find((fc) => fc.Style?.Alignment != undefined);
|
|
349
309
|
if (formatColumnWithTextAlignment) {
|
|
350
310
|
const alignment = formatColumnWithTextAlignment.Style.Alignment.toLowerCase();
|
|
@@ -374,8 +334,6 @@ class AgGridColumnAdapter {
|
|
|
374
334
|
return undefined;
|
|
375
335
|
}
|
|
376
336
|
return Object.entries(style).reduce((acc, [key, value]) => {
|
|
377
|
-
// needed as AG-Grid vanilla turns all CSS props to kebab, while AG Grid React does not
|
|
378
|
-
// @ts-ignore
|
|
379
337
|
acc[`--ab-dynamic-${(0, StringExtensions_1.kebabCase)(key)}`] = value;
|
|
380
338
|
return acc;
|
|
381
339
|
}, {});
|
|
@@ -406,8 +364,6 @@ class AgGridColumnAdapter {
|
|
|
406
364
|
? { ...textMatchStyle, ...currentTextMatchStyle }
|
|
407
365
|
: textMatchStyle;
|
|
408
366
|
let baseStyles = {};
|
|
409
|
-
// this is required because otherwise, when AG Grid filters, it refreshed the pivotResultColDef and the base styles get lost
|
|
410
|
-
// if pivot result col: inherit styles from base column
|
|
411
367
|
if (this.adaptableApi.columnApi.isPivotResultColumn(columnId)) {
|
|
412
368
|
const baseColumn = params.column.getColDef()?.pivotValueColumn;
|
|
413
369
|
if (baseColumn) {
|
|
@@ -415,8 +371,6 @@ class AgGridColumnAdapter {
|
|
|
415
371
|
const baseColParams = {
|
|
416
372
|
...params,
|
|
417
373
|
column: baseColumn,
|
|
418
|
-
// @ts-ignore
|
|
419
|
-
// #derived_pivot_cell_style
|
|
420
374
|
__pivotResultColumn: params.column,
|
|
421
375
|
};
|
|
422
376
|
baseStyles =
|
|
@@ -426,7 +380,6 @@ class AgGridColumnAdapter {
|
|
|
426
380
|
}
|
|
427
381
|
}
|
|
428
382
|
else {
|
|
429
|
-
// inherit styles from user provided colDef property
|
|
430
383
|
baseStyles = typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle;
|
|
431
384
|
}
|
|
432
385
|
const result = {
|
|
@@ -451,11 +404,9 @@ class AgGridColumnAdapter {
|
|
|
451
404
|
this.setColDefProperty(col, 'headerStyle', (userHeaderStyle) => {
|
|
452
405
|
const headerStyleFunc = (params) => {
|
|
453
406
|
let baseStyles = {};
|
|
454
|
-
// inherit styles from user provided colDef property
|
|
455
407
|
baseStyles =
|
|
456
408
|
typeof userHeaderStyle === 'function' ? userHeaderStyle(params) : userHeaderStyle;
|
|
457
409
|
if (params.floatingFilter) {
|
|
458
|
-
// we NEVER style floating filters
|
|
459
410
|
return baseStyles;
|
|
460
411
|
}
|
|
461
412
|
const columnId = params.column.getColId();
|
|
@@ -468,8 +419,6 @@ class AgGridColumnAdapter {
|
|
|
468
419
|
...this.getFormatColumnHeaderStyle(adaptableColumn, params),
|
|
469
420
|
};
|
|
470
421
|
if (result['borderColor']) {
|
|
471
|
-
// by default, header cells don't have a border
|
|
472
|
-
// if the user defines a border-color, we assume he wants to show a border
|
|
473
422
|
result['borderWidth'] = `1px`;
|
|
474
423
|
result['borderStyle'] = 'solid';
|
|
475
424
|
}
|
|
@@ -519,7 +468,6 @@ class AgGridColumnAdapter {
|
|
|
519
468
|
return values;
|
|
520
469
|
};
|
|
521
470
|
return {
|
|
522
|
-
// we need to pass a function which returns a Promise, that's what AG Grid expects
|
|
523
471
|
values: fetchSelectItems,
|
|
524
472
|
formatValue: (value) => valueToLabelMap.get(value) ?? value,
|
|
525
473
|
};
|
|
@@ -575,9 +523,6 @@ class AgGridColumnAdapter {
|
|
|
575
523
|
if (!styledColumn || styledColumn.IsSuspended) {
|
|
576
524
|
return undefined;
|
|
577
525
|
}
|
|
578
|
-
// Icon Style has its own tooltip vocabulary (`'CellValue'` /
|
|
579
|
-
// `'IconDescription'`) so we handle it before falling through to the
|
|
580
|
-
// numeric tooltip branch.
|
|
581
526
|
if (styledColumn.IconStyle && !(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType)) {
|
|
582
527
|
const iconTokens = styledColumn.IconStyle.ToolTipText ?? [];
|
|
583
528
|
if (iconTokens.length === 0) {
|
|
@@ -599,8 +544,6 @@ class AgGridColumnAdapter {
|
|
|
599
544
|
return trimmed ? trimmed : String(params.value ?? '');
|
|
600
545
|
};
|
|
601
546
|
}
|
|
602
|
-
// Rating: `PercentageValue` is `clamp(value, 0, Max) / Max` (not the
|
|
603
|
-
// column min/max span used by Gradient / Percent Bar).
|
|
604
547
|
if (styledColumn.RatingStyle) {
|
|
605
548
|
const ratingToolTip = styledColumn.RatingStyle.ToolTipText ?? [];
|
|
606
549
|
if (ratingToolTip.length === 0) {
|
|
@@ -626,10 +569,6 @@ class AgGridColumnAdapter {
|
|
|
626
569
|
return trimmed ? trimmed : String(params.value ?? '');
|
|
627
570
|
};
|
|
628
571
|
}
|
|
629
|
-
// Percent Bar, Bullet Chart, Gradient and Range Bar may all expose
|
|
630
|
-
// `ToolTipText: CellTextOptions`. Range Bar resolves min/max per row
|
|
631
|
-
// (from `RangeBarStyle.Min` / `RangeBarStyle.Max`) so we treat it
|
|
632
|
-
// separately rather than re-using the column-wide numeric helpers.
|
|
633
572
|
const tooltipStyle = styledColumn.PercentBarStyle ??
|
|
634
573
|
styledColumn.BulletChartStyle ??
|
|
635
574
|
styledColumn.GradientStyle ??
|
|
@@ -674,13 +613,6 @@ class AgGridColumnAdapter {
|
|
|
674
613
|
};
|
|
675
614
|
});
|
|
676
615
|
}
|
|
677
|
-
/**
|
|
678
|
-
* Resolves a Range Bar bound (number / column id / Col-Min / Col-Max /
|
|
679
|
-
* Col-Avg / Col-Median) into a concrete numeric value for the supplied row.
|
|
680
|
-
* Mirrors the resolution logic in `RangeBarRenderer.resolveBoundValue` and
|
|
681
|
-
* is used by the tooltip path. Returns `undefined` when the bound cannot
|
|
682
|
-
* be resolved (e.g. unknown column id or non-numeric source value).
|
|
683
|
-
*/
|
|
684
616
|
resolveRangeBarBound(bound, abColumn, rowNode) {
|
|
685
617
|
if (bound == undefined) {
|
|
686
618
|
return undefined;
|
|
@@ -736,8 +668,6 @@ class AgGridColumnAdapter {
|
|
|
736
668
|
}
|
|
737
669
|
setupColumnType(columnSetupInfo) {
|
|
738
670
|
const { col, colId } = columnSetupInfo;
|
|
739
|
-
// AG Grid introduced since v30.x an inferred cellDataType
|
|
740
|
-
// the problem is that it breaks the default value formatter and/or editor (especially for Date columns)
|
|
741
671
|
this.setColDefProperty(col, 'type', (original_columnType) => {
|
|
742
672
|
const originalTypes = original_columnType == undefined
|
|
743
673
|
? []
|
|
@@ -763,7 +693,6 @@ class AgGridColumnAdapter {
|
|
|
763
693
|
setupColumnCellDataType(columnSetupInfo) {
|
|
764
694
|
const { col, colId } = columnSetupInfo;
|
|
765
695
|
this.setColDefProperty(col, 'cellDataType', (original_cellDataType) => {
|
|
766
|
-
// #map_dateString_to_date
|
|
767
696
|
if (original_cellDataType === 'dateString') {
|
|
768
697
|
(0, AdaptableLogger_1.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.`);
|
|
769
698
|
return 'date';
|
|
@@ -773,7 +702,6 @@ class AgGridColumnAdapter {
|
|
|
773
702
|
}
|
|
774
703
|
setupColumnHeader({ col }) {
|
|
775
704
|
this.setColDefProperty(col, 'headerValueGetter', (original_headerValueGetter) => {
|
|
776
|
-
// see #customize_header
|
|
777
705
|
if (!(0, adaptableOverrideCheck_1.isProvidedByAdaptable)(original_headerValueGetter)) {
|
|
778
706
|
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!`);
|
|
779
707
|
}
|
|
@@ -786,24 +714,19 @@ class AgGridColumnAdapter {
|
|
|
786
714
|
if (!useAdaptableFilter) {
|
|
787
715
|
return;
|
|
788
716
|
}
|
|
789
|
-
// setup Auto Group Column Filter
|
|
790
717
|
if (this.adaptableApi.columnApi.isAutoRowGroupColumn(col.getColId())) {
|
|
791
718
|
if (this.adaptableApi.gridApi.isTreeDataGrid()) {
|
|
792
719
|
this.setColDefProperty(col, 'filter', (original_filter) => {
|
|
793
720
|
const autoGroupColumnDef = this.agGridApi.getGridOption('autoGroupColumnDef');
|
|
794
721
|
if (autoGroupColumnDef?.filter != undefined) {
|
|
795
|
-
// we plan to provide a TreeListColumnFilter
|
|
796
|
-
// until then, it's the user's responsibility to explicitly set the filter in the provided `autoGroupColumnDef`
|
|
797
722
|
return original_filter;
|
|
798
723
|
}
|
|
799
724
|
else {
|
|
800
|
-
// if no filter is explicitly set, we do NOT provide a filter
|
|
801
725
|
return false;
|
|
802
726
|
}
|
|
803
727
|
});
|
|
804
728
|
}
|
|
805
729
|
else {
|
|
806
|
-
// TODO only set auto group column as filterable if at least one group columns is filterable
|
|
807
730
|
this.setColDefProperty(col, 'filter', () => {
|
|
808
731
|
return 'agGroupColumnFilter';
|
|
809
732
|
});
|
|
@@ -812,7 +735,6 @@ class AgGridColumnAdapter {
|
|
|
812
735
|
return;
|
|
813
736
|
}
|
|
814
737
|
}
|
|
815
|
-
// setup "normal" column filter
|
|
816
738
|
this.setColDefProperty(col, 'filter', (original_filter) => {
|
|
817
739
|
const pivotMode = this.adaptableInstance.isInPivotMode();
|
|
818
740
|
if (!useAdaptableFilter) {
|
|
@@ -839,7 +761,6 @@ class AgGridColumnAdapter {
|
|
|
839
761
|
typeof userProvidedFilterProp?.handler !== 'function' &&
|
|
840
762
|
!this.adaptableInstance.isInPivotMode();
|
|
841
763
|
if (hasInvalidFilterProp) {
|
|
842
|
-
// warning is logged in the 'setupColumnFilter' method
|
|
843
764
|
return false;
|
|
844
765
|
}
|
|
845
766
|
const isFloatingFilterDisabled = !colDef.filter ||
|
|
@@ -848,15 +769,9 @@ class AgGridColumnAdapter {
|
|
|
848
769
|
!this.adaptableApi.filterApi.columnFilterApi.isQuickFilterVisible();
|
|
849
770
|
if (this.adaptableApi.columnApi.isAutoRowGroupColumnForMulti(col.getColId())) {
|
|
850
771
|
this.setColDefProperty(col, 'floatingFilter', (original_floatingFilter) => {
|
|
851
|
-
// the floating filter for the group column is "inherited" from the base column
|
|
852
|
-
// via the colDef.filter = 'agGroupColumnFilter'
|
|
853
|
-
// see #group_inherit_column_filter
|
|
854
|
-
// https://www.ag-grid.com/javascript-data-grid/grouping-single-group-column/#inherit-row-grouped-columns-filters
|
|
855
|
-
// https://www.ag-grid.com/javascript-data-grid/grouping-multiple-group-columns/#filtering
|
|
856
772
|
return original_floatingFilter;
|
|
857
773
|
});
|
|
858
774
|
this.setColDefProperty(col, 'suppressFloatingFilterButton', () => {
|
|
859
|
-
// hide button for multi column groups
|
|
860
775
|
return true;
|
|
861
776
|
});
|
|
862
777
|
return;
|
|
@@ -887,60 +802,49 @@ class AgGridColumnAdapter {
|
|
|
887
802
|
const { node, value } = params;
|
|
888
803
|
const mostRelevantFormatColumn = this.adaptableApi.formatColumnApi.internalApi.getMostRelevantFormatColumnForColumn(activeFormatColumnsWithDisplayFormat, abColumn, { node, value });
|
|
889
804
|
if (!mostRelevantFormatColumn) {
|
|
890
|
-
// ALL FormatColumns are conditional and NONE of them are relevant for this row
|
|
891
805
|
return value;
|
|
892
806
|
}
|
|
893
|
-
// Resolve once: a preset name (e.g. 'Dollar') is materialised
|
|
894
|
-
// into the concrete AdaptableFormat for this render call.
|
|
895
807
|
const resolvedDisplayFormat = (0, AdaptableFormatPresets_1.resolveDisplayFormat)(mostRelevantFormatColumn.DisplayFormat);
|
|
896
808
|
if (!resolvedDisplayFormat) {
|
|
897
809
|
return value;
|
|
898
810
|
}
|
|
899
811
|
const formatterOptions = resolvedDisplayFormat.Options;
|
|
900
812
|
if (resolvedDisplayFormat.Formatter === 'NumberFormatter') {
|
|
901
|
-
// change the Number format - if the scope allows it
|
|
902
813
|
if (this.adaptableApi.columnScopeApi.isColumnInNumericScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
903
814
|
let cellValue = params.value;
|
|
904
815
|
if (typeof params.value?.toNumber === 'function' &&
|
|
905
816
|
typeof params.value?.toString === 'function') {
|
|
906
|
-
// aggregation values are wrapped in an AG Grid specific object
|
|
907
817
|
cellValue = params.value.toNumber();
|
|
908
818
|
}
|
|
909
819
|
return this.adaptableApi.formatColumnApi.internalApi.getNumberFormattedValue(cellValue, params.node, abColumn, formatterOptions);
|
|
910
820
|
}
|
|
911
821
|
}
|
|
912
822
|
if (resolvedDisplayFormat.Formatter === 'DateFormatter') {
|
|
913
|
-
// change the Date format - if the scope allows it
|
|
914
823
|
if (this.adaptableApi.columnScopeApi.isColumnInDateScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
915
824
|
let cellValue = params.value;
|
|
916
825
|
if (typeof params.value?.toNumber === 'function' &&
|
|
917
826
|
typeof params.value?.toString === 'function') {
|
|
918
|
-
// aggregation values are wrapped in an AG Grid specific object
|
|
919
827
|
cellValue = params.value.toString();
|
|
920
828
|
}
|
|
921
829
|
return this.adaptableApi.formatColumnApi.internalApi.getDateFormattedValue(cellValue, params.node, abColumn, formatterOptions);
|
|
922
830
|
}
|
|
923
831
|
}
|
|
924
832
|
if (resolvedDisplayFormat.Formatter === 'StringFormatter') {
|
|
925
|
-
// change the String format - if the scope allows it
|
|
926
833
|
if (this.adaptableApi.columnScopeApi.isColumnInTextScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
927
834
|
let cellValue = params.value;
|
|
928
835
|
if (typeof params.value?.toNumber === 'function' &&
|
|
929
836
|
typeof params.value?.toString === 'function') {
|
|
930
|
-
// aggregation values are wrapped in an AG Grid specific object
|
|
931
837
|
cellValue = params.value.toString();
|
|
932
838
|
}
|
|
933
839
|
return this.adaptableApi.formatColumnApi.internalApi.getStringFormattedValue(cellValue, params.node, abColumn, formatterOptions);
|
|
934
840
|
}
|
|
935
841
|
}
|
|
936
|
-
// should NEVER arrive at this line, but just to be sure
|
|
937
842
|
return value;
|
|
938
843
|
};
|
|
939
844
|
});
|
|
940
845
|
}
|
|
941
846
|
setupColumnEditable({ col }) {
|
|
942
847
|
this.setColDefProperty(col, 'editable', (original_editable) => {
|
|
943
|
-
// cell is NOT editable by default
|
|
944
848
|
const editableCallback = (params) => {
|
|
945
849
|
const getOriginalColDefEditable = () => {
|
|
946
850
|
if (typeof original_editable === 'function') {
|
|
@@ -950,12 +854,10 @@ class AgGridColumnAdapter {
|
|
|
950
854
|
return original_editable;
|
|
951
855
|
}
|
|
952
856
|
};
|
|
953
|
-
// 1. evaluate EditOptions.isCellEditable if provided
|
|
954
857
|
if (this.adaptableApi.gridApi.internalApi.hasCellEditableAccordingToEditOptions()) {
|
|
955
858
|
const gridCell = this.adaptableApi.gridApi.getGridCellFromRowNode(params.node, params.column.getColId());
|
|
956
859
|
return this.adaptableApi.gridApi.internalApi.isCellEditableAccordingToEditOptions(gridCell, getOriginalColDefEditable());
|
|
957
860
|
}
|
|
958
|
-
// 2. otherwise, fallback to colDef.editable
|
|
959
861
|
return getOriginalColDefEditable();
|
|
960
862
|
};
|
|
961
863
|
return editableCallback;
|
|
@@ -975,14 +877,9 @@ class AgGridColumnAdapter {
|
|
|
975
877
|
const valueSetter = (params) => {
|
|
976
878
|
const field = params.column.getColDef().field;
|
|
977
879
|
if (noValidations) {
|
|
978
|
-
//TODO also consider the case when userValueSetter is a string
|
|
979
880
|
if (typeof userValueSetter === 'function') {
|
|
980
881
|
return userValueSetter(params);
|
|
981
882
|
}
|
|
982
|
-
// we allowed it go reach this point
|
|
983
|
-
// just to run isCellEditable
|
|
984
|
-
// and since this has already run and we have no other validations
|
|
985
|
-
// just assign the new value and exit
|
|
986
883
|
if (field) {
|
|
987
884
|
params.data[field] = params.newValue;
|
|
988
885
|
}
|
|
@@ -999,10 +896,6 @@ class AgGridColumnAdapter {
|
|
|
999
896
|
if (cellDataChangedInfo.oldValue === cellDataChangedInfo.newValue) {
|
|
1000
897
|
return true;
|
|
1001
898
|
}
|
|
1002
|
-
/**
|
|
1003
|
-
* Validate on the future row, with the new value.
|
|
1004
|
-
* structuredClone fails, it contains functions.
|
|
1005
|
-
*/
|
|
1006
899
|
const newRow = { ...params.node, data: { ...params.node.data } };
|
|
1007
900
|
newRow.data[field] = params.newValue;
|
|
1008
901
|
const cellDataChangeInfoForSyncValidation = {
|
|
@@ -1022,7 +915,6 @@ class AgGridColumnAdapter {
|
|
|
1022
915
|
onServerValidationCompleted,
|
|
1023
916
|
})();
|
|
1024
917
|
}
|
|
1025
|
-
//TODO also consider the case when userValueSetter is a string
|
|
1026
918
|
if (typeof userValueSetter === 'function') {
|
|
1027
919
|
return userValueSetter(params);
|
|
1028
920
|
}
|
|
@@ -1051,7 +943,6 @@ class AgGridColumnAdapter {
|
|
|
1051
943
|
};
|
|
1052
944
|
const comparatorGetter = (propName) => {
|
|
1053
945
|
return (userPropertyValue) => {
|
|
1054
|
-
// CustomSort Comparer function takes precedence over CustomSort SortedValues
|
|
1055
946
|
if (customSortComparer) {
|
|
1056
947
|
return customSortComparer.comparer;
|
|
1057
948
|
}
|
|
@@ -1061,7 +952,6 @@ class AgGridColumnAdapter {
|
|
|
1061
952
|
if (userPropertyValue) {
|
|
1062
953
|
return userPropertyValue;
|
|
1063
954
|
}
|
|
1064
|
-
// for DATE columns we have to use the normalised values (Date objects) to compare
|
|
1065
955
|
if (abColumn.dataType === 'date') {
|
|
1066
956
|
return (valueA, valueB) => {
|
|
1067
957
|
const dateA = getDateValue(valueA);
|
|
@@ -1070,13 +960,13 @@ class AgGridColumnAdapter {
|
|
|
1070
960
|
return dateA.getTime() - dateB.getTime();
|
|
1071
961
|
}
|
|
1072
962
|
else if (dateA) {
|
|
1073
|
-
return 1;
|
|
963
|
+
return 1;
|
|
1074
964
|
}
|
|
1075
965
|
else if (dateB) {
|
|
1076
|
-
return -1;
|
|
966
|
+
return -1;
|
|
1077
967
|
}
|
|
1078
968
|
else {
|
|
1079
|
-
return 0;
|
|
969
|
+
return 0;
|
|
1080
970
|
}
|
|
1081
971
|
};
|
|
1082
972
|
}
|
|
@@ -1316,27 +1206,16 @@ class AgGridColumnAdapter {
|
|
|
1316
1206
|
}
|
|
1317
1207
|
return undefined;
|
|
1318
1208
|
}
|
|
1319
|
-
/**
|
|
1320
|
-
* The combination of styled column and format cells
|
|
1321
|
-
* This function decides when the two can be merged.
|
|
1322
|
-
*/
|
|
1323
1209
|
getFormatColumnAndStyledColumnCellStyle(column, params) {
|
|
1324
1210
|
const styledColumn = this.adaptableApi.styledColumnApi.getStyledColumnForColumnId(column.columnId);
|
|
1325
1211
|
const styledColumnIsActive = !!styledColumn && !styledColumn?.IsSuspended;
|
|
1326
|
-
// Styled-column-derived cell style (e.g. Gradient backgroundColor, plus
|
|
1327
|
-
// any Font/Cell slot the renderer chose to expose).
|
|
1328
1212
|
const styledColumnStyle = styledColumnIsActive
|
|
1329
1213
|
? this.getStyledColumnStyle(styledColumn, column, params)
|
|
1330
1214
|
: {};
|
|
1331
|
-
// Format Column styles for this cell (may be empty).
|
|
1332
1215
|
const activeFormatColumnsWithStyle = this.adaptableApi.formatColumnApi.internalApi.getFormatColumnsWithStyleForColumn(column, {
|
|
1333
1216
|
target: 'cell',
|
|
1334
1217
|
});
|
|
1335
1218
|
let formatColumnStyle = this.getFormatColumnCellStyle(column, activeFormatColumnsWithStyle, params);
|
|
1336
|
-
// Per-slice precedence rule: when the Styled Column claims a slice
|
|
1337
|
-
// (via its `Font` or `Cell` slot), Format Column properties belonging
|
|
1338
|
-
// to that slice are stripped and never applied. When the slice is not
|
|
1339
|
-
// claimed, Format Column inherits naturally.
|
|
1340
1219
|
if (styledColumnIsActive) {
|
|
1341
1220
|
if (this.styledColumnClaimsFontStyle(styledColumn, column)) {
|
|
1342
1221
|
formatColumnStyle = stripFontCssKeys(formatColumnStyle);
|
|
@@ -1345,23 +1224,11 @@ class AgGridColumnAdapter {
|
|
|
1345
1224
|
formatColumnStyle = stripCellBoxCssKeys(formatColumnStyle);
|
|
1346
1225
|
}
|
|
1347
1226
|
}
|
|
1348
|
-
// Styled Column wins over Format Column for any overlapping property.
|
|
1349
1227
|
return {
|
|
1350
1228
|
...formatColumnStyle,
|
|
1351
1229
|
...styledColumnStyle,
|
|
1352
1230
|
};
|
|
1353
1231
|
}
|
|
1354
|
-
/**
|
|
1355
|
-
* Returns true when the active Styled Column declares a `Font` slot
|
|
1356
|
-
* (and therefore claims all Font-slice properties on this column).
|
|
1357
|
-
*
|
|
1358
|
-
* Note: Badge claims **only** `Alignment` from the Font slice — pill
|
|
1359
|
-
* typography is owned per-pill via `PillStyle`, never inherited from a
|
|
1360
|
-
* Format Column. Stripping the whole Font slice when Badge declares
|
|
1361
|
-
* `Alignment` keeps the precedence rule simple and is fine in practice
|
|
1362
|
-
* because Format-Column-derived font styles don't apply to flex rows of
|
|
1363
|
-
* pills anyway.
|
|
1364
|
-
*/
|
|
1365
1232
|
styledColumnClaimsFontStyle(styledColumn, abColumn) {
|
|
1366
1233
|
const iconFontClaims = !!styledColumn?.IconStyle &&
|
|
1367
1234
|
!(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType) &&
|
|
@@ -1372,10 +1239,6 @@ class AgGridColumnAdapter {
|
|
|
1372
1239
|
(0, StyleHelper_1.hasCellFontStyle)(styledColumn?.BadgeStyle?.Font) ||
|
|
1373
1240
|
iconFontClaims);
|
|
1374
1241
|
}
|
|
1375
|
-
/**
|
|
1376
|
-
* Returns true when the active Styled Column declares a `Cell` slot
|
|
1377
|
-
* (and therefore claims all Cell-slice properties on this column).
|
|
1378
|
-
*/
|
|
1379
1242
|
styledColumnClaimsCellBoxStyle(styledColumn, abColumn) {
|
|
1380
1243
|
const iconCellClaims = !!styledColumn?.IconStyle &&
|
|
1381
1244
|
!(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType) &&
|
|
@@ -1387,8 +1250,6 @@ class AgGridColumnAdapter {
|
|
|
1387
1250
|
}
|
|
1388
1251
|
getFormatColumnHeaderStyle(column, params) {
|
|
1389
1252
|
if (params.columnGroup) {
|
|
1390
|
-
// FormatColumns are not supported in column groups
|
|
1391
|
-
// YET, see https://github.com/AdaptableTools/adaptable/issues/2947#issuecomment-3062304655
|
|
1392
1253
|
return {};
|
|
1393
1254
|
}
|
|
1394
1255
|
const relevantFormatColumnsWithStyle = this.getRelevantFormatColumnHeaderStyles(column);
|
|
@@ -1403,9 +1264,6 @@ class AgGridColumnAdapter {
|
|
|
1403
1264
|
if (params.value == undefined || params.value === '') {
|
|
1404
1265
|
return style;
|
|
1405
1266
|
}
|
|
1406
|
-
// Row-kind filtering: defer to the shared row-scope helper so the
|
|
1407
|
-
// cellStyle path (Gradient background, Font/Cell slots) follows the
|
|
1408
|
-
// same `StyledColumn.RowScope` rules as every cellRenderer.
|
|
1409
1267
|
if (!(0, StyledColumnHelper_1.shouldRenderStyledColumnOnRow)(styledColumn, params.node, this.adaptableApi)) {
|
|
1410
1268
|
return style;
|
|
1411
1269
|
}
|
|
@@ -1422,9 +1280,6 @@ class AgGridColumnAdapter {
|
|
|
1422
1280
|
const matchingRange = this.adaptableApi.styledColumnApi.internalApi.findRangeForColumn((0, GradientStyleHelper_1.expandGradientCellRanges)(gradientStyle), abColumn, (0, GradientStyleHelper_1.gradientStyleRangeLookupValueType)(gradientStyle), colValue);
|
|
1423
1281
|
if (matchingRange) {
|
|
1424
1282
|
cellBackColor = matchingRange.Color;
|
|
1425
|
-
// Flip the alpha ramp when (a) it's the negative band of a
|
|
1426
|
-
// ZeroCentred diverging gradient, OR (b) the user has explicitly
|
|
1427
|
-
// marked this band as `ReverseGradient` (lower-is-darker).
|
|
1428
1283
|
reverseGradient =
|
|
1429
1284
|
(!!gradientStyle.ZeroCentred && (0, GradientStyleHelper_1.isNegativeZeroCentredBand)(matchingRange)) ||
|
|
1430
1285
|
!!matchingRange.ReverseGradient;
|
|
@@ -1456,25 +1311,12 @@ class AgGridColumnAdapter {
|
|
|
1456
1311
|
style.paddingTop = 0;
|
|
1457
1312
|
style.paddingBottom = 0;
|
|
1458
1313
|
}
|
|
1459
|
-
// Per-slice styling: each Styled Column type can opt into a Font/Cell
|
|
1460
|
-
// slot (declared on the *Style interface) that flows through to cell
|
|
1461
|
-
// CSS. The slots also act as a "claim" against Format Columns — see
|
|
1462
|
-
// `getFormatColumnAndStyledColumnCellStyle`.
|
|
1463
|
-
//
|
|
1464
|
-
// Order is important: we apply the Font slot BEFORE the auto-contrast
|
|
1465
|
-
// override (recomputed below) so that auto-contrast wins on a per-cell
|
|
1466
|
-
// basis when a Gradient cell has a tinted background, even if the user
|
|
1467
|
-
// also set `Font.ForeColor` as a baseline.
|
|
1468
1314
|
const autoContrastColor = gradientStyle?.AutoContrastText && style.color ? style.color : undefined;
|
|
1469
1315
|
const iconStyleFontApplies = styledColumn.IconStyle && !(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType);
|
|
1470
1316
|
const fontSlot = styledColumn.GradientStyle?.Font ??
|
|
1471
1317
|
styledColumn.PercentBarStyle?.Font ??
|
|
1472
1318
|
styledColumn.BulletChartStyle?.Font ??
|
|
1473
1319
|
(iconStyleFontApplies ? styledColumn.IconStyle?.Font : undefined);
|
|
1474
|
-
// Badge's Font slot intentionally skipped here: only `Alignment` is
|
|
1475
|
-
// meaningful on Badge cells and the renderer applies it as flex
|
|
1476
|
-
// `justify-content` on the wrapper (cell `text-align` has no effect on
|
|
1477
|
-
// flex rows of pills). Still claimed for the precedence rule above.
|
|
1478
1320
|
if (fontSlot) {
|
|
1479
1321
|
style = { ...style, ...(0, StyleHelper_1.convertAdaptableStyleToCSS)(fontSlot) };
|
|
1480
1322
|
}
|
|
@@ -1496,14 +1338,11 @@ class AgGridColumnAdapter {
|
|
|
1496
1338
|
return {};
|
|
1497
1339
|
}
|
|
1498
1340
|
const relevantFormatColumnsWithStyle = activeFormatColumnsWithStyle.filter((formatColumn) => {
|
|
1499
|
-
return this.adaptableApi.formatColumnApi.internalApi.formatColumnShouldRenderInCell(formatColumn, abColumn, params.node, params.value,
|
|
1500
|
-
// @ts-ignore see #derived_pivot_cell_style
|
|
1501
|
-
params.__pivotResultColumn);
|
|
1341
|
+
return this.adaptableApi.formatColumnApi.internalApi.formatColumnShouldRenderInCell(formatColumn, abColumn, params.node, params.value, params.__pivotResultColumn);
|
|
1502
1342
|
});
|
|
1503
1343
|
return this.getFormatColumnAdaptableStyle(relevantFormatColumnsWithStyle);
|
|
1504
1344
|
}
|
|
1505
1345
|
getFormatColumnAdaptableStyle(formatColumns) {
|
|
1506
|
-
// first has more precedence, then they need to be applied in reverse order
|
|
1507
1346
|
return formatColumns.reduceRight((style, formatColumn) => {
|
|
1508
1347
|
const formatColumnStyle = formatColumn.Style
|
|
1509
1348
|
? (0, StyleHelper_1.convertAdaptableStyleToCSS)(formatColumn.Style)
|
|
@@ -1557,7 +1396,6 @@ class AgGridColumnAdapter {
|
|
|
1557
1396
|
}
|
|
1558
1397
|
}
|
|
1559
1398
|
isColGroupDef(columnDefinition) {
|
|
1560
|
-
// @ts-ignore
|
|
1561
1399
|
return columnDefinition['children'] != null;
|
|
1562
1400
|
}
|
|
1563
1401
|
getRelevantFormatColumnHeaderStyles(column) {
|