@adaptabletools/adaptable-cjs 23.0.4 → 23.0.5-canary.1
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.css +0 -64
- 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.d.ts +0 -1
- package/src/AdaptableState/Aggregations/weightedAverage.js +3 -30
- 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/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/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/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/CodeBlock/index.d.ts +0 -1
- package/src/components/CodeBlock/index.js +2 -3
- 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/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/AdaptableState/Common/NamedObject.d.ts +0 -10
- package/src/AdaptableState/Common/NamedObject.js +0 -2
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +0 -35
- package/src/Utilities/ExpressionFunctions/groupingMap.js +0 -103
- package/src/Utilities/Interface/AdaptableToolPanelContext.d.ts +0 -4
- package/src/Utilities/Interface/AdaptableToolPanelContext.js +0 -2
- 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/View/Components/Buttons/EntityListActionButtons.d.ts +0 -38
- package/src/View/Components/Buttons/EntityListActionButtons.js +0 -47
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.d.ts +0 -12
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +0 -72
- package/src/View/Components/EntityRowItem.d.ts +0 -7
- package/src/View/Components/EntityRowItem.js +0 -12
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +0 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +0 -9
- package/src/View/Components/ModuleProfile.d.ts +0 -8
- package/src/View/Components/ModuleProfile.js +0 -15
- package/src/View/Components/ModuleSummary/ModuleDetail.d.ts +0 -23
- package/src/View/Components/ModuleSummary/ModuleDetail.js +0 -20
- package/src/View/Components/ModuleSummary/ModuleHeader.d.ts +0 -15
- package/src/View/Components/ModuleSummary/ModuleHeader.js +0 -20
- package/src/View/Components/ModuleSummary/SummaryRowItem.d.ts +0 -7
- package/src/View/Components/ModuleSummary/SummaryRowItem.js +0 -17
- package/src/View/Components/SharedProps/ModuleSummaryProps.d.ts +0 -9
- package/src/View/Components/SharedProps/ModuleSummaryProps.js +0 -2
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.d.ts +0 -13
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.js +0 -2
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.d.ts +0 -14
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.js +0 -2
- package/src/View/Components/StyleVisualItem.d.ts +0 -9
- package/src/View/Components/StyleVisualItem.js +0 -45
- package/src/View/Components/WizardSummaryPage.d.ts +0 -7
- package/src/View/Components/WizardSummaryPage.js +0 -22
- package/src/components/Accordion.d.ts +0 -7
- package/src/components/Accordion.js +0 -38
- package/src/components/FlexWithFooter.d.ts +0 -9
- package/src/components/FlexWithFooter.js +0 -15
- package/src/components/NotifyResize/index.d.ts +0 -9
- package/src/components/NotifyResize/index.js +0 -38
- package/src/components/PopupWithFooter.d.ts +0 -14
- package/src/components/PopupWithFooter.js +0 -15
- package/src/components/SelectableList/index.d.ts +0 -15
- package/src/components/SelectableList/index.js +0 -100
- package/src/components/SizedContainer/index.d.ts +0 -17
- package/src/components/SizedContainer/index.js +0 -23
- package/src/components/Table/index.d.ts +0 -4
- package/src/components/Table/index.js +0 -9
- package/src/components/WizardPanel/index.d.ts +0 -9
- package/src/components/WizardPanel/index.js +0 -10
- package/src/components/icons/align-justify.d.ts +0 -3
- package/src/components/icons/align-justify.js +0 -6
- package/src/components/icons/column-info.d.ts +0 -3
- package/src/components/icons/column-info.js +0 -6
- package/src/components/icons/gradient-column.d.ts +0 -3
- package/src/components/icons/gradient-column.js +0 -6
- package/src/components/icons/invalid.d.ts +0 -3
- package/src/components/icons/invalid.js +0 -6
- package/src/components/icons/logout copy.d.ts +0 -3
- package/src/components/icons/logout copy.js +0 -6
- package/src/components/icons/smart-edit.d.ts +0 -3
- package/src/components/icons/smart-edit.js +0 -6
- package/src/components/icons/team-share.d.ts +0 -3
- package/src/components/icons/team-share.js +0 -6
- package/src/components/icons/unchecked.d.ts +0 -3
- package/src/components/icons/unchecked.js +0 -6
- package/src/components/icons/user-filter.d.ts +0 -3
- package/src/components/icons/user-filter.js +0 -6
- package/src/components/utils/useContainerScrollObserver/index.d.ts +0 -6
- package/src/components/utils/useContainerScrollObserver/index.js +0 -83
- package/src/components/utils/useGlobalEvent.d.ts +0 -1
- package/src/components/utils/useGlobalEvent.js +0 -12
- package/src/components/utils/useLatest.d.ts +0 -1
- package/src/components/utils/useLatest.js +0 -10
- package/src/components/utils/usePropState.d.ts +0 -2
- package/src/components/utils/usePropState.js +0 -11
- 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
|
@@ -47,29 +47,21 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
47
47
|
return this.getAlertDefinitionById(alertDefinition.Uuid);
|
|
48
48
|
}
|
|
49
49
|
async displayAdaptableAlert(alertToShow) {
|
|
50
|
-
// There are 3 things we always do with an alert:
|
|
51
|
-
// 1. Dispatch the Alert (so it appears in the toolbar)
|
|
52
50
|
this.addUidToAdaptableObject(alertToShow);
|
|
53
51
|
this.dispatchAction(InternalRedux.AdaptableAlertAdd(alertToShow, this.getAlertOptions().maxAlertsInStore));
|
|
54
|
-
// 2. Publish the Alert Fired Event
|
|
55
52
|
this.getEventApi().internalApi.fireAlertFiredEvent(alertToShow);
|
|
56
|
-
// 3. Manage the many different possible Alert behaviours
|
|
57
|
-
// Note: alertProperties.PreventEdit is handled separately, in the Adaptable.setupColumnValueSetter() function
|
|
58
53
|
if (alertToShow.alertDefinition?.AlertProperties != undefined) {
|
|
59
54
|
const alertDefinition = alertToShow.alertDefinition;
|
|
60
55
|
const presentationProperties = alertDefinition.AlertProperties;
|
|
61
|
-
// Show a Toast Popup
|
|
62
56
|
if (presentationProperties.DisplayNotification) {
|
|
63
57
|
this.displayAdaptableAlertNotification(alertToShow);
|
|
64
58
|
}
|
|
65
|
-
// Log to console
|
|
66
59
|
if (presentationProperties.LogToConsole) {
|
|
67
60
|
this.getAdatableLogger().consoleLogByMessageType(alertToShow.header + ': ' + alertToShow.message, alertDefinition.MessageType);
|
|
68
61
|
}
|
|
69
62
|
if (presentationProperties.DisplaySystemStatusMessage) {
|
|
70
63
|
this.getSystemStatusApi().setSystemStatus(alertToShow.header, alertDefinition.MessageType, alertToShow.message);
|
|
71
64
|
}
|
|
72
|
-
// Show Alert in a Div (if one has been set)
|
|
73
65
|
if (presentationProperties.ShowInDiv) {
|
|
74
66
|
const alertDiv = (0, resolveContainerElement_1.resolveContainerElement)(this.getContainerOptions().alertContainer, this.getAdaptableInternalApi().buildBaseContext());
|
|
75
67
|
if (alertDiv) {
|
|
@@ -81,13 +73,11 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
81
73
|
return;
|
|
82
74
|
}
|
|
83
75
|
const alertProperties = alertDefinition.AlertProperties ?? {};
|
|
84
|
-
// Jump to the Cell
|
|
85
76
|
if (alertProperties.JumpToCell &&
|
|
86
77
|
(0, AdaptableAlert_1.isAdaptableCellChangedAlert)(alertToShow) &&
|
|
87
78
|
alertToShow.cellDataChangedInfo) {
|
|
88
79
|
this.getGridApi().jumpToCell(alertToShow.cellDataChangedInfo.primaryKeyValue, alertToShow.cellDataChangedInfo.column.columnId, alertToShow.cellDataChangedInfo.rowNode);
|
|
89
80
|
}
|
|
90
|
-
// Jump to the Row
|
|
91
81
|
else if (alertProperties.JumpToRow &&
|
|
92
82
|
(0, AdaptableAlert_1.isAdaptableRowChangedAlert)(alertToShow) &&
|
|
93
83
|
alertToShow.rowDataChangedInfo?.rowTrigger === 'Add') {
|
|
@@ -96,8 +86,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
96
86
|
this.getGridApi().jumpToRow(firstRowNode);
|
|
97
87
|
}
|
|
98
88
|
}
|
|
99
|
-
// For CellChanged Alerts either Highlight the cell or row
|
|
100
|
-
// for former - we just refresh the cells to trigger a re-evaluation of the Adaptable.setupColumn[Style/Class]
|
|
101
89
|
if ((0, AdaptableAlert_1.isAdaptableCellChangedAlert)(alertToShow) &&
|
|
102
90
|
alertToShow.cellDataChangedInfo &&
|
|
103
91
|
(alertProperties.HighlightCell || alertProperties.HighlightRow)) {
|
|
@@ -120,7 +108,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
120
108
|
}
|
|
121
109
|
}
|
|
122
110
|
}
|
|
123
|
-
// For RowChange Alerts only Highlight the row - we just refresh the rows to trigger a re-evaluation of the Adaptable.setupColumn[Style/Class]
|
|
124
111
|
else if (alertProperties.HighlightRow &&
|
|
125
112
|
(0, AdaptableAlert_1.isAdaptableRowChangedAlert)(alertToShow) &&
|
|
126
113
|
alertToShow.rowDataChangedInfo?.rowTrigger === 'Add') {
|
|
@@ -185,8 +172,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
185
172
|
}
|
|
186
173
|
if (this.getColumnScopeApi().scopeIsAll(alertDefinition.Scope) &&
|
|
187
174
|
!this.getExpressionApi().getAdaptableQueryExpression(alertDefinition.Rule)) {
|
|
188
|
-
// we don't support scope ALL without an expression
|
|
189
|
-
// the predicates for scope ALL do NOT make any sense for a programmatic evaluation
|
|
190
175
|
return false;
|
|
191
176
|
}
|
|
192
177
|
return true;
|
|
@@ -204,7 +189,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
204
189
|
const alertDefinitions = this.internalApi
|
|
205
190
|
.getAlertDefinitionsForCellDataChange(cellDataChangedInfo)
|
|
206
191
|
.filter((alertDefinition) => filterScopeAllDefinitions(alertDefinition))
|
|
207
|
-
// some alert definitions might NOT be relevant for the given locator
|
|
208
192
|
.filter((alertDefinition) => relevantAlertDefinitions.some((relevantAlertDefinition) => relevantAlertDefinition.Uuid === alertDefinition.Uuid));
|
|
209
193
|
this.getAlertApi().internalApi.showAlertForDefinitions(cellDataChangedInfo, alertDefinitions);
|
|
210
194
|
});
|
|
@@ -219,19 +203,15 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
219
203
|
if (!(0, ScheduledAlertHelper_1.isRuleBasedAlertDefinition)(alertDefinition)) {
|
|
220
204
|
return [];
|
|
221
205
|
}
|
|
222
|
-
// if there is an Expression defined, extract only the columns from there (in that case the Scope would be 'All' anyway)
|
|
223
|
-
// columns referenced in rule expression
|
|
224
206
|
const ruleExpression = this.getExpressionApi().getAdaptableQueryExpression(alertDefinition.Rule);
|
|
225
207
|
if (this.getColumnScopeApi().scopeIsAll(alertDefinition.Scope) &&
|
|
226
208
|
StringExtensions_1.default.IsNotNullOrEmpty(ruleExpression)) {
|
|
227
|
-
// return only first referenced column (otherwise we would generate multiple alerts for the same row)
|
|
228
209
|
const queryColumns = this.getAdaptableInternalApi()
|
|
229
210
|
.getQueryLanguageService()
|
|
230
211
|
.getColumnsFromExpression(ruleExpression);
|
|
231
212
|
return queryColumns.length > 0 ? [queryColumns[0]] : [];
|
|
232
213
|
}
|
|
233
214
|
else {
|
|
234
|
-
// otherwise return all columns for given scope
|
|
235
215
|
return this.getColumnScopeApi()
|
|
236
216
|
.getColumnsInScope(alertDefinition.Scope)
|
|
237
217
|
.map((adaptableColumn) => adaptableColumn.columnId);
|
|
@@ -239,7 +219,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
239
219
|
}
|
|
240
220
|
createCellDataChangeInfoStubs(relevantColumnIds) {
|
|
241
221
|
const cellDataChangeInfos = [];
|
|
242
|
-
//const adaptable: IAdaptable = this.getAdaptableInternalApi().getAdaptableInstance();
|
|
243
222
|
const relevantColumns = this.getColumnApi()
|
|
244
223
|
.getColumnsWithColumnIds(relevantColumnIds)
|
|
245
224
|
.filter(Boolean);
|
|
@@ -4,13 +4,8 @@ exports.ApiBase = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
6
6
|
const Uuid_1 = require("../../AdaptableState/Uuid");
|
|
7
|
-
// Base class for the Api - provides checking dispatching methods
|
|
8
7
|
class ApiBase {
|
|
9
8
|
_adaptable;
|
|
10
|
-
/**
|
|
11
|
-
* Constructor for all the api classes which simply takes and assigns an instance of Adaptable
|
|
12
|
-
* @param _adaptable core IAdaptable object - for INTERNAL USE ONLY and not part of public API
|
|
13
|
-
*/
|
|
14
9
|
constructor(_adaptable) {
|
|
15
10
|
this._adaptable = _adaptable;
|
|
16
11
|
}
|
|
@@ -35,14 +30,6 @@ class ApiBase {
|
|
|
35
30
|
isAdapTableReady() {
|
|
36
31
|
return this._adaptable.isReady;
|
|
37
32
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Base api helper method which ensure that Adaptable Object being used in the function is not null or undefined
|
|
40
|
-
*
|
|
41
|
-
* If it does not exist then we log an error and the api method should stop
|
|
42
|
-
* @param item AdaptableObject being checked
|
|
43
|
-
* @param name the name of the object if it has one (e.g. if its a search)
|
|
44
|
-
* @param type the actual type of the object being checked
|
|
45
|
-
*/
|
|
46
33
|
checkItemExists(item, name, type) {
|
|
47
34
|
if (Helper_1.default.objectNotExists(item)) {
|
|
48
35
|
this.logError(`No ${type} found with the name: ${name}`);
|
|
@@ -66,29 +53,18 @@ class ApiBase {
|
|
|
66
53
|
: this.getLayoutApi().getCurrentLayout();
|
|
67
54
|
return objectList.filter((objectItem) => this.getLayoutApi().internalApi.isObjectExtendedInLayout(objectItem, module, extendedLayout));
|
|
68
55
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Base api Helper method that dispatches a *Redux Action* to the Store
|
|
71
|
-
* @param action the Redux Action to be dispatched
|
|
72
|
-
*/
|
|
73
56
|
dispatchAction(action) {
|
|
74
57
|
if (this._adaptable.isDestroyed) {
|
|
75
58
|
return;
|
|
76
59
|
}
|
|
77
60
|
this._adaptable.adaptableStore.TheStore.dispatch(action);
|
|
78
61
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Returns the entire State from the Store
|
|
81
|
-
*
|
|
82
|
-
* This is a simple *getState()* call
|
|
83
|
-
*/
|
|
84
62
|
getAdaptableState() {
|
|
85
63
|
return this.getAdaptableStore().TheStore.getState();
|
|
86
64
|
}
|
|
87
65
|
getAdaptableStore() {
|
|
88
66
|
return this._adaptable.adaptableStore;
|
|
89
67
|
}
|
|
90
|
-
// Add the Uuid to the object if not present;
|
|
91
|
-
// It's generally done in Redux also but no harm checking in Api also in case we missed it.
|
|
92
68
|
addUidToAdaptableObject(adaptableObject) {
|
|
93
69
|
if (!adaptableObject.Uuid) {
|
|
94
70
|
adaptableObject.Uuid = (0, Uuid_1.createUuid)();
|
|
@@ -52,7 +52,6 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
52
52
|
.getCalculatedColumnExpressionService()
|
|
53
53
|
.createAggregatedScalarLiveValue(calculatedColumn);
|
|
54
54
|
});
|
|
55
|
-
// refresh calculated columns
|
|
56
55
|
const aggCalculatedColumnIds = aggregatedCalculatedColumns.map((calculatedColumn) => calculatedColumn.ColumnId);
|
|
57
56
|
if (this.getLayoutApi().internalApi.isLayoutGrouped()) {
|
|
58
57
|
this.getGridApi().refreshGroupRowNodes();
|
|
@@ -10,9 +10,6 @@ const ChartingInternalApi_1 = require("../Internal/ChartingInternalApi");
|
|
|
10
10
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
11
11
|
const ChartHelper_1 = require("../../Utilities/Helpers/ChartHelper");
|
|
12
12
|
class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
13
|
internalApi;
|
|
17
14
|
constructor(_adaptable) {
|
|
18
15
|
super(_adaptable);
|
|
@@ -111,15 +111,6 @@ function getFriendlyNameForPivotResultColumn(columnId, agGridApi) {
|
|
|
111
111
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
112
112
|
.join(' ')}`;
|
|
113
113
|
}
|
|
114
|
-
// is quite consuming on performance
|
|
115
|
-
// we don't need it anyway because currently (20.0.7) we don't display Pivot Totals at all
|
|
116
|
-
// if (isPivotAggregationTotalColumn(columnId, agGridApi)) {
|
|
117
|
-
// return `[Aggregation Total] ${columnId
|
|
118
|
-
// .split('_')
|
|
119
|
-
// .slice(2)
|
|
120
|
-
// .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
121
|
-
// .join(' ')}`;
|
|
122
|
-
// }
|
|
123
114
|
return `[Pivot] ${columnId
|
|
124
115
|
.split('_')
|
|
125
116
|
.slice(1)
|
|
@@ -127,7 +118,6 @@ function getFriendlyNameForPivotResultColumn(columnId, agGridApi) {
|
|
|
127
118
|
.join(' ')}`;
|
|
128
119
|
}
|
|
129
120
|
function isPivotResultColumn(columnId) {
|
|
130
|
-
// put this here as there might be other indicators we are not aware of?
|
|
131
121
|
return columnId?.startsWith(GeneralConstants.AG_GRID_PIVOT_COLUMN);
|
|
132
122
|
}
|
|
133
123
|
function isPivotGrandTotal(columnId) {
|
|
@@ -145,7 +135,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
145
135
|
getUIAvailableColumns() {
|
|
146
136
|
return this.getColumns().filter((c) => !c.isUIHiddenColumn &&
|
|
147
137
|
!c.isGeneratedSelectionColumn &&
|
|
148
|
-
// currently (20.0.7) we don't display Pivot Totals in UI
|
|
149
138
|
!c.isPivotTotalColumn);
|
|
150
139
|
}
|
|
151
140
|
getSpecialColumns() {
|
|
@@ -208,7 +197,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
208
197
|
if (!(0, LayoutHelpers_1.isPivotLayout)(currentLayout)) {
|
|
209
198
|
return false;
|
|
210
199
|
}
|
|
211
|
-
// When PivotColumns is empty, agg columns keep their original IDs
|
|
212
200
|
if (currentLayout.PivotColumns?.length === 0) {
|
|
213
201
|
return (currentLayout.PivotAggregationColumns?.some((agg) => agg.ColumnId === columnId) ?? false);
|
|
214
202
|
}
|
|
@@ -254,7 +242,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
254
242
|
if (columnId == undefined) {
|
|
255
243
|
return;
|
|
256
244
|
}
|
|
257
|
-
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
258
245
|
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
259
246
|
return;
|
|
260
247
|
}
|
|
@@ -366,7 +353,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
366
353
|
}
|
|
367
354
|
getColumnIdForFriendlyName(friendlyName) {
|
|
368
355
|
if (friendlyName.includes(GeneralConstants.MISSING_COLUMN)) {
|
|
369
|
-
return friendlyName.replace(GeneralConstants.MISSING_COLUMN, '');
|
|
356
|
+
return friendlyName.replace(GeneralConstants.MISSING_COLUMN, '');
|
|
370
357
|
}
|
|
371
358
|
const foundColumn = this.getColumns().find((c) => c.friendlyName === friendlyName);
|
|
372
359
|
if (foundColumn) {
|
|
@@ -404,7 +391,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
404
391
|
return !!this.getColumnWithColumnId(columnId, false);
|
|
405
392
|
}
|
|
406
393
|
getColumnWithFriendlyName(columnFriendlyName, logWarning = true) {
|
|
407
|
-
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
408
394
|
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
409
395
|
return null;
|
|
410
396
|
}
|
|
@@ -139,13 +139,6 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
139
139
|
const columnFilter = this.getColumnFilterForColumn(columnId);
|
|
140
140
|
return columnFilter ? this.isColumnFilterActive(columnFilter) : false;
|
|
141
141
|
}
|
|
142
|
-
/**
|
|
143
|
-
* Checks if a filter is applied. It is applied when:
|
|
144
|
-
* - has no inputs
|
|
145
|
-
* - has inputs and inputs have values
|
|
146
|
-
*
|
|
147
|
-
* @param filter
|
|
148
|
-
*/
|
|
149
142
|
isColumnFilterActive(filter) {
|
|
150
143
|
if (!filter || !filter.Predicates?.length) {
|
|
151
144
|
return false;
|
|
@@ -156,7 +149,6 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
156
149
|
return filter.Predicates.some((predicate) => {
|
|
157
150
|
const predicateDef = this.getPredicateApi().getPredicateDefById(predicate.PredicateId);
|
|
158
151
|
if (ArrayExtensions_1.default.IsNull(predicateDef.inputs) &&
|
|
159
|
-
// In and NotIn predicates ave no inputs in the definition
|
|
160
152
|
!this.getPredicateApi().internalApi.IsInOrNotInPredicate(predicate)) {
|
|
161
153
|
return true;
|
|
162
154
|
}
|
|
@@ -164,7 +156,6 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
164
156
|
if (ArrayExtensions_1.default.IsEmpty(inputs)) {
|
|
165
157
|
return false;
|
|
166
158
|
}
|
|
167
|
-
// all values in the array need to be non-empty (e.g. between has two values, [min, max])
|
|
168
159
|
const allInputsHaveValues = inputs.every((value) => {
|
|
169
160
|
return value !== undefined && value !== null && value !== '';
|
|
170
161
|
});
|
|
@@ -11,7 +11,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
13
13
|
if ('All' in scope) {
|
|
14
|
-
// do we need a true check here?
|
|
15
14
|
return true;
|
|
16
15
|
}
|
|
17
16
|
if ('DataTypes' in scope) {
|
|
@@ -51,7 +50,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
50
|
return 'Nothing';
|
|
52
51
|
}
|
|
53
52
|
if ('All' in scope) {
|
|
54
|
-
// do we need a true check here?
|
|
55
53
|
return 'Columns: All';
|
|
56
54
|
}
|
|
57
55
|
if ('ColumnTypes' in scope) {
|
|
@@ -173,19 +171,15 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
173
171
|
return undefined;
|
|
174
172
|
}
|
|
175
173
|
isColumnInNumericScope(column, scope) {
|
|
176
|
-
// if column is not even numeric then return false
|
|
177
174
|
if (column == null || column == undefined || column.dataType !== 'number') {
|
|
178
175
|
return false;
|
|
179
176
|
}
|
|
180
|
-
// if no scope then return false
|
|
181
177
|
if (scope == undefined) {
|
|
182
178
|
return false;
|
|
183
179
|
}
|
|
184
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
185
180
|
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
186
181
|
return true;
|
|
187
182
|
}
|
|
188
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
189
183
|
if ('DataTypes' in scope && scope.DataTypes.includes('number')) {
|
|
190
184
|
return true;
|
|
191
185
|
}
|
|
@@ -196,19 +190,15 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
196
190
|
return false;
|
|
197
191
|
}
|
|
198
192
|
isColumnInTextScope(column, scope) {
|
|
199
|
-
// if column is not even string then return false
|
|
200
193
|
if (column == null || column == undefined || column.dataType !== 'text') {
|
|
201
194
|
return false;
|
|
202
195
|
}
|
|
203
|
-
// if no scope then return false
|
|
204
196
|
if (scope == undefined) {
|
|
205
197
|
return false;
|
|
206
198
|
}
|
|
207
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
208
199
|
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
209
200
|
return true;
|
|
210
201
|
}
|
|
211
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
212
202
|
if ('DataTypes' in scope && scope.DataTypes.includes('text')) {
|
|
213
203
|
return true;
|
|
214
204
|
}
|
|
@@ -219,19 +209,15 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
219
209
|
return false;
|
|
220
210
|
}
|
|
221
211
|
isColumnInDateScope(column, scope) {
|
|
222
|
-
// if column is not even numeric then return false
|
|
223
212
|
if (column == null || column == undefined || column.dataType !== 'date') {
|
|
224
213
|
return false;
|
|
225
214
|
}
|
|
226
|
-
// if no scope then return false
|
|
227
215
|
if (scope == undefined) {
|
|
228
216
|
return false;
|
|
229
217
|
}
|
|
230
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
231
218
|
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
232
219
|
return true;
|
|
233
220
|
}
|
|
234
|
-
// check if the scope has ColumnIds and whether this column is contained
|
|
235
221
|
if ('DataTypes' in scope && scope.DataTypes.includes('date')) {
|
|
236
222
|
return true;
|
|
237
223
|
}
|
|
@@ -242,8 +228,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
242
228
|
return false;
|
|
243
229
|
}
|
|
244
230
|
isScopeInScope(a, b) {
|
|
245
|
-
// AFL: Scope:'All' for object 'a' is NOT handled
|
|
246
|
-
// this is probably wrong, but we will touch it when a bug is filed
|
|
247
231
|
if ('All' in b) {
|
|
248
232
|
return true;
|
|
249
233
|
}
|
|
@@ -269,11 +253,9 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
269
253
|
a.ColumnTypes.every((columnType) => b.ColumnTypes.includes(columnType))) {
|
|
270
254
|
return true;
|
|
271
255
|
}
|
|
272
|
-
// check if each colum in a has column types in b
|
|
273
256
|
if ('ColumnIds' in a && 'ColumnTypes' in b) {
|
|
274
257
|
const inScope = a.ColumnIds.every((columnId) => {
|
|
275
258
|
const column = this.getColumnApi().getColumnWithColumnId(columnId);
|
|
276
|
-
// check if at least one column-type is in scope
|
|
277
259
|
return column.columnTypes.some((columnColumnType) => b.ColumnTypes.includes(columnColumnType));
|
|
278
260
|
});
|
|
279
261
|
if (inScope) {
|
|
@@ -284,9 +266,6 @@ class ColumnScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
284
266
|
}
|
|
285
267
|
createCellColorRangesForScope(scope) {
|
|
286
268
|
const distinctColumnsValues = this.getGridApi().internalApi.getDistinctRawValuesForColumn(this.getSingleColumnInScope(scope));
|
|
287
|
-
// One neutral band by default — same gray as RangesComponent "Add New Range".
|
|
288
|
-
// Users who want a diverging negative/positive scale should use Zero Centred
|
|
289
|
-
// (Gradient) or add/split ranges manually.
|
|
290
269
|
if (this.distinctColumnValuesAreEmpty(distinctColumnsValues)) {
|
|
291
270
|
return [
|
|
292
271
|
{
|
|
@@ -127,7 +127,6 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
getCurrentToolbars() {
|
|
130
|
-
// if hidden or collapsed return fasle
|
|
131
130
|
if (this.getDashboardState().IsCollapsed == true || this.getDashboardState().IsHidden == true) {
|
|
132
131
|
return [];
|
|
133
132
|
}
|
|
@@ -28,7 +28,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
28
28
|
return this.getReportByName(reportName);
|
|
29
29
|
}
|
|
30
30
|
getReportByName(reportName) {
|
|
31
|
-
// if system report then create
|
|
32
31
|
if (this.internalApi.isSystemReport(reportName)) {
|
|
33
32
|
return this.internalApi.createSystemReport(reportName);
|
|
34
33
|
}
|
|
@@ -68,11 +67,9 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
68
67
|
})
|
|
69
68
|
: systemReportFormatsOption;
|
|
70
69
|
return reportFormats.filter((format) => {
|
|
71
|
-
// JSON format doesn't support Master Detail Grid
|
|
72
70
|
if (this.getGridApi().isMasterDetailGrid()) {
|
|
73
71
|
return format !== 'JSON';
|
|
74
72
|
}
|
|
75
|
-
// PivotLayout & AllData can't be exported as VisualExcel
|
|
76
73
|
if (this.getExportApi().getCurrentReportName() === GeneralConstants_1.ALL_DATA_REPORT &&
|
|
77
74
|
this.getLayoutApi().isCurrentLayoutPivot()) {
|
|
78
75
|
return format !== 'VisualExcel';
|
|
@@ -117,7 +114,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
117
114
|
return destinationItems;
|
|
118
115
|
}
|
|
119
116
|
getAllFormats() {
|
|
120
|
-
// FIXME AFL: add here custom formats when available
|
|
121
117
|
return this.getAvailableSystemFormats();
|
|
122
118
|
}
|
|
123
119
|
getAllReports() {
|
|
@@ -217,7 +213,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
217
213
|
return this.getExportApi()
|
|
218
214
|
.getAllExportDestinations()
|
|
219
215
|
.filter((destination) => {
|
|
220
|
-
// can NOT export BLOBs to Clipboard
|
|
221
216
|
if (reportFormat === 'Excel' || reportFormat === 'VisualExcel') {
|
|
222
217
|
return destination !== 'Clipboard';
|
|
223
218
|
}
|
|
@@ -231,12 +226,10 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
231
226
|
}
|
|
232
227
|
this.logInfo(`Start Export of ${reportName} in format ${format} to ${destination}`);
|
|
233
228
|
const processExportResult = await this.processExport(report, format, destination);
|
|
234
|
-
// if FALSE, cancel export
|
|
235
229
|
if (!processExportResult) {
|
|
236
230
|
this.logInfo(`Cancel Export of ${reportName}`);
|
|
237
231
|
return;
|
|
238
232
|
}
|
|
239
|
-
// if TRUE, continue with standard export
|
|
240
233
|
if (processExportResult === true) {
|
|
241
234
|
const exportedReport = await this._adaptable.agGridExportAdapter.exportData({
|
|
242
235
|
report,
|
|
@@ -246,13 +239,11 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
246
239
|
customExportParams: exportConfig?.exportParams,
|
|
247
240
|
});
|
|
248
241
|
if (!exportedReport) {
|
|
249
|
-
// for destination 'Download' and format 'Excel', 'VisualExcel' or 'Csv', AG Grid handles the download as well
|
|
250
242
|
return;
|
|
251
243
|
}
|
|
252
244
|
this.internalApi.sendReportToDestination(exportedReport, report, format, destination);
|
|
253
245
|
}
|
|
254
246
|
else {
|
|
255
|
-
// in this case the user has returned a custom ExportResultData object
|
|
256
247
|
const userProcessedExportResult = processExportResult;
|
|
257
248
|
if (!userProcessedExportResult) {
|
|
258
249
|
this.logWarn(`Processing of Export ${reportName} to ${destination} returned null or undefined`);
|
|
@@ -270,7 +261,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
270
261
|
this.logInfo(`Start getting Report Data for ${reportName} in format ${format}`);
|
|
271
262
|
const processExportResult = await this.processExport(report, format, 'Clipboard');
|
|
272
263
|
let reportData;
|
|
273
|
-
// handle Export processing
|
|
274
264
|
if (typeof processExportResult?.type === 'string') {
|
|
275
265
|
reportData = processExportResult;
|
|
276
266
|
}
|
|
@@ -65,7 +65,6 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
65
65
|
return Array.from(new Set(columnIds));
|
|
66
66
|
}
|
|
67
67
|
catch (error) {
|
|
68
|
-
// defensive programing, this should happen only if someone botched Initial Adaptable State
|
|
69
68
|
this.logWarn(`QueryApi.getColumnsFromExpressionInvalid received an invalid expression: ${expression}
|
|
70
69
|
Error: ${error}`);
|
|
71
70
|
return [];
|
|
@@ -35,9 +35,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
35
35
|
return undefined;
|
|
36
36
|
}
|
|
37
37
|
const formatColumn = formatColumns.find((fc) => fc.DisplayFormat != undefined);
|
|
38
|
-
// Resolve numeric preset names (e.g. 'Dollar') into the concrete
|
|
39
|
-
// AdaptableFormat object so external callers always receive a fully
|
|
40
|
-
// structured format.
|
|
41
38
|
return formatColumn ? (0, AdaptableFormatPresets_1.resolveDisplayFormat)(formatColumn.DisplayFormat) : undefined;
|
|
42
39
|
}
|
|
43
40
|
getSuspendedFormatColumns(config) {
|
|
@@ -56,7 +56,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
56
56
|
})
|
|
57
57
|
: [];
|
|
58
58
|
storedValues.forEach((sv) => {
|
|
59
|
-
// do summat
|
|
60
59
|
const isExistingPKValue = existingPKValues.find((epk) => epk == sv.PrimaryKey);
|
|
61
60
|
if (isExistingPKValue) {
|
|
62
61
|
if (replaceAction == 'Conflicting') {
|
|
@@ -70,7 +69,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
else {
|
|
73
|
-
// no existing value so just add it
|
|
74
72
|
freeTextColumn.FreeTextStoredValues.push(sv);
|
|
75
73
|
}
|
|
76
74
|
});
|
|
@@ -26,10 +26,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
26
|
return this.getAdaptableState().Internal;
|
|
27
27
|
}
|
|
28
28
|
loadGridData(dataSource) {
|
|
29
|
-
// we intentionally set an initial empty array,
|
|
30
|
-
// to prevent `cellchanged` events from being triggered for rows that have
|
|
31
|
-
// the same primary key with existing rows
|
|
32
|
-
// see #testprevent_cellchanged_event_on_load_grid_data
|
|
33
29
|
this._adaptable.agGridAdapter.setGridOption('rowData', []);
|
|
34
30
|
this._adaptable.setGridData(dataSource);
|
|
35
31
|
const allRowNodes = this.getAllRowNodes();
|
|
@@ -106,11 +102,10 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
106
102
|
return rowNodes;
|
|
107
103
|
}
|
|
108
104
|
undoCellEdit(cellDataChangedInfo) {
|
|
109
|
-
// for the reason of this hacky solution see the comments in DataService
|
|
110
105
|
this.getAdaptableInternalApi().getDataService().logUndoChange(cellDataChangedInfo);
|
|
111
106
|
const cellUpdateRequest = {
|
|
112
107
|
columnId: cellDataChangedInfo.column.columnId,
|
|
113
|
-
newValue: cellDataChangedInfo.oldValue,
|
|
108
|
+
newValue: cellDataChangedInfo.oldValue,
|
|
114
109
|
primaryKeyValue: cellDataChangedInfo.primaryKeyValue,
|
|
115
110
|
rowNode: cellDataChangedInfo.rowNode,
|
|
116
111
|
};
|
|
@@ -173,7 +168,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
173
168
|
this._adaptable.applyFiltering();
|
|
174
169
|
}
|
|
175
170
|
clearFiltering() {
|
|
176
|
-
// slightly round the houses but we have to call ColumnFilterAPI as it does it properly
|
|
177
171
|
this.getColumnFilterApi().clearColumnFilters();
|
|
178
172
|
}
|
|
179
173
|
getColumnSorts() {
|
|
@@ -272,7 +266,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
272
266
|
}
|
|
273
267
|
}
|
|
274
268
|
else {
|
|
275
|
-
// include all row
|
|
276
269
|
this._adaptable.forAllRowNodesDo((rowNode) => {
|
|
277
270
|
isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
|
|
278
271
|
});
|
|
@@ -282,29 +275,21 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
282
275
|
}
|
|
283
276
|
let preapredGridCellRange = gridCellRange;
|
|
284
277
|
if (!preapredGridCellRange) {
|
|
285
|
-
/**
|
|
286
|
-
* Select all rows and all columns
|
|
287
|
-
*/
|
|
288
278
|
const currentLayout = this.getLayoutApi().getCurrentLayout();
|
|
289
279
|
preapredGridCellRange = {
|
|
290
280
|
columnIds: currentLayout.TableColumns,
|
|
291
281
|
};
|
|
292
282
|
}
|
|
293
|
-
// ranges of row with consecutive indexes
|
|
294
283
|
const rowRanges = filteredRowNodes.reduce((acc, rowNode, index, collection) => {
|
|
295
|
-
// add start if there is none
|
|
296
284
|
const prevRange = acc[acc.length - 1];
|
|
297
285
|
if (prevRange.startNode === undefined) {
|
|
298
286
|
prevRange.startNode = rowNode;
|
|
299
287
|
}
|
|
300
|
-
// add end if next is not consecutive
|
|
301
288
|
const nextNode = collection[index + 1];
|
|
302
289
|
if (nextNode && nextNode.rowIndex - 1 !== rowNode.rowIndex) {
|
|
303
290
|
prevRange.endNode = rowNode;
|
|
304
|
-
// start a new one
|
|
305
291
|
acc.push({});
|
|
306
292
|
}
|
|
307
|
-
// if at the end close last range
|
|
308
293
|
if (index === collection.length - 1) {
|
|
309
294
|
prevRange.endNode = rowNode;
|
|
310
295
|
}
|
|
@@ -312,7 +297,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
312
297
|
}, [{}]);
|
|
313
298
|
let preparedClearSelection = clearSelection;
|
|
314
299
|
rowRanges.forEach((range) => {
|
|
315
|
-
// clear only on first range selection
|
|
316
300
|
this._adaptable.selectCells(preapredGridCellRange.columnIds, range.startNode, range.endNode, preparedClearSelection);
|
|
317
301
|
preparedClearSelection = false;
|
|
318
302
|
});
|
|
@@ -563,7 +547,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
563
547
|
this._adaptable.redrawRows(rowNodes);
|
|
564
548
|
}
|
|
565
549
|
refreshGroupRowNodes() {
|
|
566
|
-
// see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
|
|
567
550
|
this.getAgGridApi().refreshClientSideRowModel('group');
|
|
568
551
|
this._adaptable.updateRowGroupsAndColumnGroupsExpandedState();
|
|
569
552
|
}
|
|
@@ -571,7 +554,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
571
554
|
this._adaptable.refreshGridHeader();
|
|
572
555
|
}
|
|
573
556
|
isCellEditable(gridCell) {
|
|
574
|
-
// If not Grid Cell or Column then return false - GridCell.column may be undefined for cells from synthetic columns created by AG Grid (ex. autoGroup columns)
|
|
575
557
|
if (!gridCell || !gridCell.column || !gridCell.rowNode) {
|
|
576
558
|
return false;
|
|
577
559
|
}
|
|
@@ -579,7 +561,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
579
561
|
return false;
|
|
580
562
|
}
|
|
581
563
|
const agGridColumn = this.getColumnApi().internalApi.getAgGridColumnForAdaptableColumn(gridCell.column.columnId);
|
|
582
|
-
// this will invoke the colDef.editable callback where we check both AdapTable and AG Grid editability
|
|
583
564
|
return agGridColumn?.isCellEditable(gridCell.rowNode);
|
|
584
565
|
}
|
|
585
566
|
isCellEdited(gridCell) {
|
|
@@ -700,7 +681,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
700
681
|
const newColDef = newColumnDefinitions.find((c) => c.colId === colDef.colId);
|
|
701
682
|
return newColDef ? { ...colDef, ...newColDef } : colDef;
|
|
702
683
|
});
|
|
703
|
-
// find out new columns which are not in the current column definitions
|
|
704
684
|
const currentColIds = [];
|
|
705
685
|
this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
706
686
|
currentColIds.push(colDef.colId);
|
|
@@ -730,7 +710,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
730
710
|
}
|
|
731
711
|
addAgGridColumnDefinition(newColumnDefinition) {
|
|
732
712
|
const currentColDefs = this.getAgGridColumnDefs();
|
|
733
|
-
// just in case check of there is not already an existing column with the same id and eliminate it
|
|
734
713
|
const sanitizedColDefs = this._adaptable.agGridAdapter
|
|
735
714
|
.traverseColDefs(currentColDefs, (colDef) => {
|
|
736
715
|
return colDef.colId === newColumnDefinition.colId ? null : colDef;
|
|
@@ -30,8 +30,6 @@ class GridFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
30
30
|
return gridFilter.Expression;
|
|
31
31
|
}
|
|
32
32
|
setGridFilterExpression(filter) {
|
|
33
|
-
// A blank / nullish expression has no meaningful AST and would otherwise
|
|
34
|
-
// explode the parser inside LayoutGridFilterSet. Treat it as "clear".
|
|
35
33
|
if (filter == null || filter.trim() === '') {
|
|
36
34
|
this.clearGridFilter();
|
|
37
35
|
return;
|