@adaptabletools/adaptable-cjs 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 +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
|
@@ -15,7 +15,6 @@ class AdaptableFilterHandler {
|
|
|
15
15
|
doesFilterPass(params) {
|
|
16
16
|
try {
|
|
17
17
|
const rowNode = params.node;
|
|
18
|
-
// first assess if the Row is filterable - if not, then return true so it always appears in Grid
|
|
19
18
|
const isRowFilterable = this.adaptableApi.gridApi.internalApi.isRowFilterable(rowNode);
|
|
20
19
|
if (!isRowFilterable) {
|
|
21
20
|
return true;
|
|
@@ -67,9 +66,6 @@ class AdaptableFilterHandler {
|
|
|
67
66
|
onAnyFilterChanged() {
|
|
68
67
|
const filterOptions = this.adaptableApi.optionsApi.getFilterOptions();
|
|
69
68
|
if (!filterOptions.customInFilterValues) {
|
|
70
|
-
// no-one is using value.count or value.visible
|
|
71
|
-
// or context.sortedValues
|
|
72
|
-
// so no need to reset the filter display values
|
|
73
69
|
return;
|
|
74
70
|
}
|
|
75
71
|
this.resetFilterDisplayValues();
|
|
@@ -78,7 +74,6 @@ class AdaptableFilterHandler {
|
|
|
78
74
|
if (this.filterDisplayValuesResult) {
|
|
79
75
|
this.previousFilterDisplayValuesResult = this.filterDisplayValuesResult;
|
|
80
76
|
}
|
|
81
|
-
// Reset the filter display values manually
|
|
82
77
|
this.filterDisplayValuesResult = undefined;
|
|
83
78
|
}
|
|
84
79
|
async refreshFilterDisplayValues() {
|
|
@@ -24,9 +24,6 @@ const warnOnce = (message) => {
|
|
|
24
24
|
warnOnceFlags[message] = true;
|
|
25
25
|
};
|
|
26
26
|
exports.warnOnce = warnOnce;
|
|
27
|
-
/**
|
|
28
|
-
* AdapTable's Logger
|
|
29
|
-
*/
|
|
30
27
|
class AdaptableLogger {
|
|
31
28
|
adaptableId;
|
|
32
29
|
debugger;
|
|
@@ -35,7 +32,6 @@ class AdaptableLogger {
|
|
|
35
32
|
warnLogger;
|
|
36
33
|
errorLogger;
|
|
37
34
|
perfLogger;
|
|
38
|
-
// use static loggers whenever access to AdaptableLogger instance is not feasible
|
|
39
35
|
static consoleErrorBase(message, ...optionalParams) {
|
|
40
36
|
if (optionalParams?.length) {
|
|
41
37
|
console.error(message, optionalParams);
|
|
@@ -170,8 +166,6 @@ class AdaptableLogger {
|
|
|
170
166
|
}
|
|
171
167
|
}
|
|
172
168
|
exports.AdaptableLogger = AdaptableLogger;
|
|
173
|
-
// change the default colors a bit to remove
|
|
174
|
-
// the dark blues that are hard to read on my monitor
|
|
175
169
|
infinite_react_1.debug.colors = [
|
|
176
170
|
'#0033FF',
|
|
177
171
|
'#0066CC',
|
|
@@ -13,19 +13,15 @@ const ColumnApiImpl_1 = require("../Api/Implementation/ColumnApiImpl");
|
|
|
13
13
|
const isPivotColumnTotal_1 = require("../layout-manager/src/isPivotColumnTotal");
|
|
14
14
|
const isPivotAggTotalColumn_1 = require("../layout-manager/src/isPivotAggTotalColumn");
|
|
15
15
|
const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumns");
|
|
16
|
-
// AG GRID obfuscates its internals, this is (currently) the best way to get hold of its internal services
|
|
17
16
|
const DANGER_AG_GRID_BEANS_MAP = {};
|
|
18
17
|
const getColumnApiModule = () => ag_grid_enterprise_1.ColumnApiModule;
|
|
19
18
|
class AgGridAdapter {
|
|
20
19
|
_adaptableInstance;
|
|
21
20
|
DANGER_USE_GETTER_gridApi;
|
|
22
21
|
DANGER_gridApi_from_args;
|
|
23
|
-
// see #gridOpts_monkey_patch
|
|
24
22
|
DANGER_updateGridOptionsMonkeyPatcher;
|
|
25
|
-
// see #aggColumnFilters_monkey_patch
|
|
26
23
|
DANGER_doFiltersPassMonkeyPatcher;
|
|
27
24
|
DANGER_isAggFilterPresentMonkeyPatcher;
|
|
28
|
-
// see #aggFuncLabels_monkey_patch
|
|
29
25
|
DANGER_getDefaultFuncLabelMonkeyPatcher;
|
|
30
26
|
activePivotColumnFilters_MEMO = new WeakMap();
|
|
31
27
|
initialGridOptions;
|
|
@@ -71,8 +67,6 @@ class AgGridAdapter {
|
|
|
71
67
|
return this._adaptableInstance.logger;
|
|
72
68
|
}
|
|
73
69
|
getActivePivotColumnFilters() {
|
|
74
|
-
// we memoize based on layout column filters object reference
|
|
75
|
-
// this method is called for each row during filtering so we need to optimize it
|
|
76
70
|
const layoutColumnFilters = this.adaptableApi.layoutApi.internalApi.getCurrentLayout_perfOptimized()?.ColumnFilters;
|
|
77
71
|
if (!layoutColumnFilters) {
|
|
78
72
|
return [];
|
|
@@ -111,8 +105,6 @@ class AgGridAdapter {
|
|
|
111
105
|
console.error('AgGridApi is not available yet');
|
|
112
106
|
}
|
|
113
107
|
}
|
|
114
|
-
// #gridOpts_monkey_patch
|
|
115
|
-
// we need to intercept some of the GridOptions updates and refresh the Adaptable state
|
|
116
108
|
monkeyPatchingGridOptionsUpdates() {
|
|
117
109
|
const agGridOptionsService = this.DANGER_getPrivateAgGridBeans()?.gos;
|
|
118
110
|
if (!agGridOptionsService) {
|
|
@@ -129,17 +121,13 @@ class AgGridAdapter {
|
|
|
129
121
|
.getAgGridApi()
|
|
130
122
|
.getAllDisplayedColumns()
|
|
131
123
|
.map((col) => col.getColId());
|
|
132
|
-
// mark as hidden the colDefs of special columns which are not visible
|
|
133
124
|
self.patchColDefs(colDefsWithSpecialColumns, (colDef) => {
|
|
134
125
|
if (self.adaptableApi.columnApi.internalApi.isSpecialColumn(colDef.colId)) {
|
|
135
126
|
colDef.hide = !allDisplayedColIds.includes(colDef.colId);
|
|
136
127
|
}
|
|
137
128
|
});
|
|
138
|
-
// for pre-existing ColDefs, keep the filter property from the previous one
|
|
139
129
|
if (self.adaptableApi.optionsApi.getFilterOptions().useAdaptableFiltering) {
|
|
140
130
|
const hasActiveFilters = self.adaptableApi.filterApi.columnFilterApi.getActiveColumnFilters().length;
|
|
141
|
-
// theoretically we should always update the filter property
|
|
142
|
-
// practically, only do it if there are active filters to avoid unnecessary processing
|
|
143
131
|
if (hasActiveFilters) {
|
|
144
132
|
self.patchColDefs(colDefsWithSpecialColumns, (colDef) => {
|
|
145
133
|
if (colDef.filter !== false) {
|
|
@@ -154,20 +142,17 @@ class AgGridAdapter {
|
|
|
154
142
|
options['columnDefs'] = colDefsWithSpecialColumns;
|
|
155
143
|
self.logger.info(`Added special columns on GridOptions.columnDefs update (source="${source}").`);
|
|
156
144
|
}
|
|
157
|
-
// `context`
|
|
158
145
|
const passedContext = options.context;
|
|
159
146
|
if (passedContext) {
|
|
160
147
|
passedContext['__adaptable'] = self._adaptableInstance;
|
|
161
148
|
passedContext['adaptableApi'] = self.adaptableApi;
|
|
162
149
|
}
|
|
163
|
-
// we mutated the options array, so it's OK to use the 'arguments' object
|
|
164
150
|
GridOptionsService_updateGridOptions.apply(this, arguments);
|
|
165
151
|
};
|
|
166
152
|
agGridOptionsService.updateGridOptions = this.DANGER_updateGridOptionsMonkeyPatcher;
|
|
167
153
|
}
|
|
168
154
|
monkeyPatchingAggColumnFilters() {
|
|
169
155
|
if (!this.adaptableApi.optionsApi.getFilterOptions().useAdaptableFiltering) {
|
|
170
|
-
// monkey patching is only needed if Adaptable is used for filtering
|
|
171
156
|
return;
|
|
172
157
|
}
|
|
173
158
|
const agGridColumnFilterService = this.DANGER_getPrivateAgGridBeans()?.colFilter;
|
|
@@ -176,19 +161,12 @@ class AgGridAdapter {
|
|
|
176
161
|
return;
|
|
177
162
|
}
|
|
178
163
|
const self = this;
|
|
179
|
-
// https://github.com/ag-grid/ag-grid/blob/8409e99c8010473356a878e9bdfb836a5ea16718/packages/ag-grid-community/src/filter/columnFilterService.ts#L240
|
|
180
|
-
// monkey patch ColumnFilterService.doAggregateFiltersPass because currently Adaptable does NOT override the ColumnFilters
|
|
181
|
-
// (it uses the `doesExternalFilterPass` to evaluate the filters on the client side)
|
|
182
|
-
// #doAggregateFiltersPassMonkeyPatcher
|
|
183
164
|
const original_doFilterPass = agGridColumnFilterService.doFiltersPass;
|
|
184
165
|
this.DANGER_doFiltersPassMonkeyPatcher = function (rowNode, colIdToSkip, targetAggregates) {
|
|
185
166
|
if (!targetAggregates) {
|
|
186
|
-
// if targetAggregates is not set, we are not in the aggregation phase
|
|
187
|
-
// so we can use the original doFiltersPass
|
|
188
167
|
return original_doFilterPass.call(this, rowNode, colIdToSkip);
|
|
189
168
|
}
|
|
190
169
|
if (!self.adaptableApi.layoutApi.isCurrentLayoutPivot()) {
|
|
191
|
-
// should NEVER happen
|
|
192
170
|
return true;
|
|
193
171
|
}
|
|
194
172
|
const pivotColumnFilters = self.getActivePivotColumnFilters();
|
|
@@ -199,7 +177,6 @@ class AgGridAdapter {
|
|
|
199
177
|
if (!columnFilterEvaluationResult) {
|
|
200
178
|
return false;
|
|
201
179
|
}
|
|
202
|
-
// else continue to next filter
|
|
203
180
|
}
|
|
204
181
|
}
|
|
205
182
|
}
|
|
@@ -215,7 +192,6 @@ class AgGridAdapter {
|
|
|
215
192
|
};
|
|
216
193
|
agGridColumnFilterService.isAggFilterPresent = this.DANGER_isAggFilterPresentMonkeyPatcher;
|
|
217
194
|
}
|
|
218
|
-
// #aggFuncLabels_monkey_patch
|
|
219
195
|
monkeyPatchingAggFuncLabels() {
|
|
220
196
|
const agGridAggFuncService = this.DANGER_getPrivateAgGridBeans()?.aggFuncSvc;
|
|
221
197
|
if (!agGridAggFuncService) {
|
|
@@ -243,11 +219,6 @@ class AgGridAdapter {
|
|
|
243
219
|
}
|
|
244
220
|
return beans;
|
|
245
221
|
}
|
|
246
|
-
// #sparkline_factory
|
|
247
|
-
// The AG Grid Sparklines module stores the `createSparkline` factory (sourced from
|
|
248
|
-
// `AgChartsEnterpriseModule`) in the registered `agSparklineCellRenderer` default params.
|
|
249
|
-
// We read it straight from the registry bean so Adaptable can render standalone sparkline
|
|
250
|
-
// previews without taking a direct dependency on `ag-charts-enterprise`.
|
|
251
222
|
DANGER_getCreateSparkline() {
|
|
252
223
|
const registry = this.DANGER_getPrivateAgGridBeans()?.registry;
|
|
253
224
|
const sparklineComponent = registry?.getUserComponent('agSparklineCellRenderer', 'agSparklineCellRenderer');
|
|
@@ -259,11 +230,6 @@ class AgGridAdapter {
|
|
|
259
230
|
getAgGridRootElement() {
|
|
260
231
|
return this.DANGER_getPrivateAgGridBeans()?.eGridDiv;
|
|
261
232
|
}
|
|
262
|
-
/**
|
|
263
|
-
* When AG Grid is rendered the first time, the AG GridApi is not yet set in the Adaptable context (as it's set only AFTER the grid is fully initialised)
|
|
264
|
-
* yet we need it when evaluating custom GridOptions properties on the first render.
|
|
265
|
-
* to handle this edge case, we try to extract the AG GridApi from the invocation arguments
|
|
266
|
-
*/
|
|
267
233
|
grabAgGridApiOnTheFly(args) {
|
|
268
234
|
if (this.DANGER_USE_GETTER_gridApi || this.DANGER_gridApi_from_args) {
|
|
269
235
|
return;
|
|
@@ -271,7 +237,6 @@ class AgGridAdapter {
|
|
|
271
237
|
if (Array.isArray(args) &&
|
|
272
238
|
args[0] &&
|
|
273
239
|
typeof args[0].api === 'object' &&
|
|
274
|
-
// can't ise instanceof operator because gridApi is exported as interface
|
|
275
240
|
typeof args[0].api?.getGridId === 'function') {
|
|
276
241
|
this.DANGER_gridApi_from_args = args[0].api;
|
|
277
242
|
}
|
|
@@ -318,25 +283,17 @@ class AgGridAdapter {
|
|
|
318
283
|
const mapColDefs = (colDefs) => {
|
|
319
284
|
return colDefs.map((colDef) => {
|
|
320
285
|
if (this._adaptableInstance.agGridColumnAdapter.isColGroupDef(colDef)) {
|
|
321
|
-
// if it's a group column, recursively map its children
|
|
322
286
|
colDef.children = mapColDefs(colDef.children);
|
|
323
287
|
return colDef;
|
|
324
288
|
}
|
|
325
289
|
else {
|
|
326
290
|
if (!isSpecialColDef(colDef)) {
|
|
327
|
-
// if it's not a special column, return it as is
|
|
328
|
-
// without a minWidth, columns in details grid are VERY wide
|
|
329
|
-
// so the line below fixes https://github.com/AdaptableTools/adaptable/issues/2559
|
|
330
291
|
return { minWidth: 10, ...colDef };
|
|
331
292
|
}
|
|
332
293
|
const newlyCreatedSpecialColDef = specialColDefs.find((specialColDef) => specialColDef.colId === colDef.colId);
|
|
333
294
|
if (newlyCreatedSpecialColDef) {
|
|
334
|
-
// if it's a special column and we have a special col def for it, return the special col def
|
|
335
295
|
processedSpecialColDefIds.push(colDef.colId);
|
|
336
|
-
// merge the user defined colDef with the special col def
|
|
337
|
-
// this way the user may provide some custom settings for the special col def (tooltip, etc)
|
|
338
296
|
const mergedColDef = {
|
|
339
|
-
// see above comment for minWidth
|
|
340
297
|
minWidth: 10,
|
|
341
298
|
...colDef,
|
|
342
299
|
...newlyCreatedSpecialColDef,
|
|
@@ -344,24 +301,19 @@ class AgGridAdapter {
|
|
|
344
301
|
return mergedColDef;
|
|
345
302
|
}
|
|
346
303
|
else {
|
|
347
|
-
// otherwise, return the original col def
|
|
348
304
|
return colDef;
|
|
349
305
|
}
|
|
350
306
|
}
|
|
351
307
|
});
|
|
352
308
|
};
|
|
353
309
|
let resultColDefs = mapColDefs(agGridColDefs);
|
|
354
|
-
// check if there are any special colDefs that were not processed
|
|
355
|
-
// in that case, add them to the end of the colDefs
|
|
356
310
|
specialColDefs.forEach((specialColDef) => {
|
|
357
311
|
if (!processedSpecialColDefIds.includes(specialColDef.colId)) {
|
|
358
312
|
resultColDefs.push(specialColDef);
|
|
359
313
|
}
|
|
360
314
|
});
|
|
361
|
-
// remove special column that are no longer defined
|
|
362
315
|
resultColDefs = resultColDefs.filter((colDef) => {
|
|
363
316
|
if (isSpecialColDef(colDef)) {
|
|
364
|
-
// must be in specialColDefs
|
|
365
317
|
return specialColDefs.some((specialColDef) => specialColDef.colId === colDef.colId);
|
|
366
318
|
}
|
|
367
319
|
return true;
|
|
@@ -382,13 +334,11 @@ class AgGridAdapter {
|
|
|
382
334
|
const selected = this.getAgGridApi().getCellRanges();
|
|
383
335
|
const columns = [];
|
|
384
336
|
const gridCells = [];
|
|
385
|
-
// we iterate for each ranges
|
|
386
337
|
selected.forEach((rangeSelection) => {
|
|
387
338
|
let shouldIncludeRange = true;
|
|
388
339
|
if (rangeSelection.startRow && rangeSelection.endRow) {
|
|
389
340
|
let isStartRowPin = rangeSelection.startRow.rowPinned != null;
|
|
390
341
|
let isEndRowPin = rangeSelection.endRow.rowPinned != null;
|
|
391
|
-
// Warn user if trying to select pinned rows and if only selecting them, stop
|
|
392
342
|
if (isStartRowPin) {
|
|
393
343
|
if (isEndRowPin) {
|
|
394
344
|
shouldIncludeRange = false;
|
|
@@ -407,8 +357,6 @@ class AgGridAdapter {
|
|
|
407
357
|
}
|
|
408
358
|
for (let rowIndex = y1; rowIndex <= y2; rowIndex++) {
|
|
409
359
|
const rowNode = this.getAgGridApi().getDisplayedRowAtIndex(rowIndex);
|
|
410
|
-
// we used NOT to return grouped rows but I think that was wrong - if someone wants to return them then that is up to them...
|
|
411
|
-
// we definitely dont return pinned rows as they cannot be selected
|
|
412
360
|
if (rowNode && !this.isPinnedRowNode(rowNode)) {
|
|
413
361
|
const selectedCell = this.adaptableApi.gridApi.getGridCellFromRowNode(rowNode, colId);
|
|
414
362
|
gridCells.push(selectedCell);
|
|
@@ -429,7 +377,6 @@ class AgGridAdapter {
|
|
|
429
377
|
const nodes = this.getAgGridApi().getSelectedNodes();
|
|
430
378
|
const selectedRows = [];
|
|
431
379
|
if (this._adaptableInstance.isInPivotMode()) {
|
|
432
|
-
// dont perform row selection in pivot mode
|
|
433
380
|
return undefined;
|
|
434
381
|
}
|
|
435
382
|
if (ArrayExtensions_1.default.IsNotNullOrEmpty(nodes)) {
|
|
@@ -498,7 +445,6 @@ class AgGridAdapter {
|
|
|
498
445
|
friendlyName =
|
|
499
446
|
customFriendlyName ??
|
|
500
447
|
(isFdc3MainActionColumn ? GeneralConstants_1.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME : displayName);
|
|
501
|
-
// Add Column Group;s friendlyname to the Column Friendly Name if its in a legitimate Column Group
|
|
502
448
|
if (this.adaptableOptions.columnOptions.addColumnGroupToColumnFriendlyName &&
|
|
503
449
|
ColumnGroup &&
|
|
504
450
|
ColumnGroup.columnGroupId !== ColumnGroup.friendlyName) {
|
|
@@ -528,8 +474,8 @@ class AgGridAdapter {
|
|
|
528
474
|
fieldOnly: isGenerated ? false : this.isColumnFieldonly(colDef),
|
|
529
475
|
sortable: isGenerated ? false : this.isColumnSortable(colDef),
|
|
530
476
|
filterable: this.isColumnFilterable(colDef),
|
|
531
|
-
queryable: true,
|
|
532
|
-
exportable: true,
|
|
477
|
+
queryable: true,
|
|
478
|
+
exportable: true,
|
|
533
479
|
groupable: isGenerated ? false : this.isColumnRowGroupable(colDef),
|
|
534
480
|
pivotable: isGenerated ? false : this.isColumnPivotable(colDef),
|
|
535
481
|
aggregatable: isGenerated ? false : this.isColumnAggregetable(colDef),
|
|
@@ -572,7 +518,6 @@ class AgGridAdapter {
|
|
|
572
518
|
return Array.isArray(userAllowed) ? [...userAllowed] : undefined;
|
|
573
519
|
}
|
|
574
520
|
deriveAdaptableColumnDataType(agColumn, logWarning = true) {
|
|
575
|
-
// Some columns can have no ID or Title. we return string as a consequence but it needs testing
|
|
576
521
|
if (!agColumn) {
|
|
577
522
|
this.logger.warn('Column is undefined. Defaulting data type to "text".');
|
|
578
523
|
return 'text';
|
|
@@ -600,32 +545,15 @@ class AgGridAdapter {
|
|
|
600
545
|
return 'unknown';
|
|
601
546
|
}
|
|
602
547
|
let dataType = 'unknown';
|
|
603
|
-
// check for colDef dataType
|
|
604
548
|
const colDefDataType = agColumn.getColDef().cellDataType;
|
|
605
549
|
if (typeof colDefDataType === 'string' && agGridDataTypeDefinitions_1.ALL_ADAPTABLE_DATA_TYPES.includes(colDefDataType)) {
|
|
606
550
|
return colDefDataType;
|
|
607
551
|
}
|
|
608
|
-
// see #agGridDataTypeDefinitions
|
|
609
|
-
// theoretically, if AG Grid was not able to infer the type, we should not be able to either
|
|
610
|
-
// but we give it a try, AG Grid is limited when the colDef has a valueGetter, valueParser, etc
|
|
611
|
-
// see https://www.ag-grid.com/javascript-data-grid/cell-data-types/#inferring-data-types
|
|
612
552
|
let row = this.getAgGridApi().getDisplayedRowAtIndex(0);
|
|
613
553
|
if (row == null) {
|
|
614
|
-
// possible that there will be no data.
|
|
615
554
|
this.logger.consoleError(`No data in grid. Returning type "unknown" for column "${agColumn.getColId()}". This will affect features such as Filters and Column Formats.`);
|
|
616
555
|
return 'unknown';
|
|
617
556
|
}
|
|
618
|
-
// // if it's a group we need the content of the group
|
|
619
|
-
// if (row.group) {
|
|
620
|
-
// const childNodes = row.childrenAfterGroup;
|
|
621
|
-
// if (ArrayExtensions.IsNullOrEmpty(childNodes)) {
|
|
622
|
-
// this.logger.consoleError(
|
|
623
|
-
// `No data in grid, returning type "unknown" for Column: "${agColumn.getColId()}". This will impact several Adaptable features, such as Filters and ColumnFormats.`
|
|
624
|
-
// );
|
|
625
|
-
// return 'unknown';
|
|
626
|
-
// }
|
|
627
|
-
// row = childNodes[0];
|
|
628
|
-
// }
|
|
629
557
|
const value = this._agGridApi_getValue(agColumn, row);
|
|
630
558
|
switch (typeof value) {
|
|
631
559
|
case 'string':
|
|
@@ -661,11 +589,9 @@ class AgGridAdapter {
|
|
|
661
589
|
if (!colDef) {
|
|
662
590
|
return true;
|
|
663
591
|
}
|
|
664
|
-
// if the column has conditional/dynamic editability, we assume some rows may be editable
|
|
665
592
|
if (typeof colDef.editable === 'function') {
|
|
666
593
|
return false;
|
|
667
594
|
}
|
|
668
|
-
// otherwise we evaluate the colDef.editable property (columns are NOT editable by default)
|
|
669
595
|
return !colDef.editable;
|
|
670
596
|
}
|
|
671
597
|
isColumnFieldonly(colDef) {
|
|
@@ -705,9 +631,7 @@ class AgGridAdapter {
|
|
|
705
631
|
const gridOptionsAggFuncs = this.adaptableApi.agGridApi.getGridOption('aggFuncs') || {};
|
|
706
632
|
const gridOptionsAggFuncNames = Object.keys(gridOptionsAggFuncs);
|
|
707
633
|
if (!hasAllowedAggFuncs) {
|
|
708
|
-
// we assume gridOptionsAggFuncNames includes 'weightedAvg' and 'only'
|
|
709
634
|
const customAggFuncNames = gridOptionsAggFuncNames.filter((name) => name !== AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME && name !== AggregationColumns_1.ONLY_AGG_FN_NAME);
|
|
710
|
-
// 'weightedAvg' is displayed right after 'avg'
|
|
711
635
|
const avgIndex = result.indexOf('avg');
|
|
712
636
|
if (avgIndex >= 0) {
|
|
713
637
|
result.splice(avgIndex + 1, 0, AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME);
|
|
@@ -716,7 +640,6 @@ class AgGridAdapter {
|
|
|
716
640
|
result.push(AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME);
|
|
717
641
|
}
|
|
718
642
|
result.push(...customAggFuncNames);
|
|
719
|
-
// 'only' is always the last element
|
|
720
643
|
result.push(AggregationColumns_1.ONLY_AGG_FN_NAME);
|
|
721
644
|
}
|
|
722
645
|
return [...new Set(result)];
|
|
@@ -737,10 +660,7 @@ class AgGridAdapter {
|
|
|
737
660
|
return true;
|
|
738
661
|
}
|
|
739
662
|
isColumnQueryable(abColumn) {
|
|
740
|
-
return (
|
|
741
|
-
// !this.adaptableApi.columnApi.isPivotResultColumn(abColumn.columnId) &&
|
|
742
|
-
(this.adaptableApi.expressionApi.isColumnQueryable(abColumn))
|
|
743
|
-
);
|
|
663
|
+
return (this.adaptableApi.expressionApi.isColumnQueryable(abColumn));
|
|
744
664
|
}
|
|
745
665
|
isColumnExportable(abColumn) {
|
|
746
666
|
return this.adaptableApi.exportApi.isColumnExportable(abColumn);
|
|
@@ -776,7 +696,6 @@ class AgGridAdapter {
|
|
|
776
696
|
(0, isPivotAggTotalColumn_1.isPivotAggTotalColumn)(colDef));
|
|
777
697
|
}
|
|
778
698
|
isColumnFilterable(colDef) {
|
|
779
|
-
// follow agGrid logic which is that ONLY filterable if explicitly set
|
|
780
699
|
if (this.adaptableApi.entitlementApi.getEntitlementAccessLevelForModule(ModuleConstants.ColumnFilterModuleId) == GeneralConstants_1.ACCESS_LEVEL_HIDDEN) {
|
|
781
700
|
return false;
|
|
782
701
|
}
|
|
@@ -796,7 +715,6 @@ class AgGridAdapter {
|
|
|
796
715
|
: 'right'
|
|
797
716
|
: false;
|
|
798
717
|
}
|
|
799
|
-
// used for AG Grid when the column is FixedPinned, meaning it should never be unpinned
|
|
800
718
|
isColumnFixed(colDef) {
|
|
801
719
|
if (!colDef) {
|
|
802
720
|
return false;
|
|
@@ -822,7 +740,6 @@ class AgGridAdapter {
|
|
|
822
740
|
return false;
|
|
823
741
|
}
|
|
824
742
|
isColumnSparkline(colDef) {
|
|
825
|
-
// see https://www.ag-grid.com/javascript-data-grid/sparklines-overview/#enabling-sparklines
|
|
826
743
|
return colDef?.cellRenderer === 'agSparklineCellRenderer';
|
|
827
744
|
}
|
|
828
745
|
isVisibleNode(rowNode) {
|
|
@@ -844,9 +761,6 @@ class AgGridAdapter {
|
|
|
844
761
|
this.assignColumnIdsToColDefs(flattenedColDefs);
|
|
845
762
|
return flattenedColDefs;
|
|
846
763
|
}
|
|
847
|
-
/**
|
|
848
|
-
* Mutates the colDefs to ensure that each column has a colId
|
|
849
|
-
*/
|
|
850
764
|
assignColumnIdsToColDefs(colDefs = []) {
|
|
851
765
|
const assignColId = (colDef) => {
|
|
852
766
|
if (!colDef) {
|
|
@@ -888,7 +802,6 @@ class AgGridAdapter {
|
|
|
888
802
|
return colDefs.map(applyModification).filter(Boolean);
|
|
889
803
|
}
|
|
890
804
|
getDefaultColumnDefinition() {
|
|
891
|
-
// for early init phase, gridApi might not be ready yet
|
|
892
805
|
return this.getAgGridApi(true)?.getGridOption('defaultColDef') ?? {};
|
|
893
806
|
}
|
|
894
807
|
_agGridApi_getValue(colKey, rowNode, gridApi) {
|