@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
|
@@ -116,8 +116,6 @@ const getFormatColumnDisplayFormatSummaryItems = (data) => {
|
|
|
116
116
|
if ((0, AdaptableFormatPresets_1.isAdaptableNumericFormatPreset)(data.DisplayFormat)) {
|
|
117
117
|
return [{ label: 'Preset', value: NUMERIC_PRESET_LABELS[data.DisplayFormat] }];
|
|
118
118
|
}
|
|
119
|
-
// Wizard materialises an empty { Formatter, Options: {} } shell while editing;
|
|
120
|
-
// treat it as unset (same as handleFinish in FormatColumnWizard).
|
|
121
119
|
if (data.DisplayFormat &&
|
|
122
120
|
typeof data.DisplayFormat === 'object' &&
|
|
123
121
|
(0, ObjectExtensions_1.isObjectEmpty)(data.DisplayFormat.Options)) {
|
|
@@ -188,13 +186,10 @@ const getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
188
186
|
if ('All' in scope) {
|
|
189
187
|
return undefined;
|
|
190
188
|
}
|
|
191
|
-
// Date-related data types that should all be treated as 'date'
|
|
192
189
|
const dateTypes = api.columnApi.internalApi.getColumnDateTypes();
|
|
193
|
-
// Check for ColumnIds in scope
|
|
194
190
|
if ('ColumnIds' in scope) {
|
|
195
191
|
const columns = scope.ColumnIds.map((c) => api.columnApi.getColumnWithColumnId(c)).filter(Boolean);
|
|
196
192
|
const columnDataTypes = (0, ArrayExtensions_1.uniq)(columns.map((c) => c.dataType));
|
|
197
|
-
// If there's only one data type
|
|
198
193
|
if (columnDataTypes.length === 1) {
|
|
199
194
|
const dataType = columnDataTypes[0];
|
|
200
195
|
if (dataType === 'number') {
|
|
@@ -207,14 +202,12 @@ const getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
207
202
|
return 'text';
|
|
208
203
|
}
|
|
209
204
|
}
|
|
210
|
-
// If there are multiple data types but they're all date types
|
|
211
205
|
else if (columnDataTypes.length > 0 &&
|
|
212
206
|
columnDataTypes.every((type) => dateTypes.includes(type))) {
|
|
213
207
|
return 'date';
|
|
214
208
|
}
|
|
215
209
|
return undefined;
|
|
216
210
|
}
|
|
217
|
-
// Check for DataTypes in scope
|
|
218
211
|
if ('DataTypes' in scope && scope.DataTypes.length === 1) {
|
|
219
212
|
const dataType = scope.DataTypes[0];
|
|
220
213
|
if (dataType === 'number') {
|
|
@@ -227,34 +220,27 @@ const getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
227
220
|
return 'text';
|
|
228
221
|
}
|
|
229
222
|
}
|
|
230
|
-
// If there are multiple data types but they're all date types
|
|
231
223
|
else if ('DataTypes' in scope &&
|
|
232
224
|
scope.DataTypes.length > 0 &&
|
|
233
225
|
scope.DataTypes.every((type) => dateTypes.includes(type))) {
|
|
234
226
|
return 'date';
|
|
235
227
|
}
|
|
236
|
-
// Check for ColumnTypes in scope
|
|
237
228
|
if ('ColumnTypes' in scope && scope.ColumnTypes.length) {
|
|
238
|
-
// If a Pivot Total Column Type is specified, we can safely assume that the data type is number
|
|
239
229
|
const pivotTotalTypes = [
|
|
240
230
|
AdaptableColumn_1.PIVOT_ANY_TOTAL_COLUMN_TYPE,
|
|
241
231
|
AdaptableColumn_1.PIVOT_GRAND_TOTAL_COLUMN_TYPE,
|
|
242
232
|
AdaptableColumn_1.PIVOT_COLUMN_TOTAL_COLUMN_TYPE,
|
|
243
233
|
AdaptableColumn_1.PIVOT_AGGREGATION_TOTAL_COLUMN_TYPE,
|
|
244
234
|
];
|
|
245
|
-
// If all column types are pivot total types, we can safely assume that the data type is number
|
|
246
235
|
if (scope.ColumnTypes.length > 0 &&
|
|
247
236
|
scope.ColumnTypes.every((type) => pivotTotalTypes.includes(type))) {
|
|
248
237
|
return 'number';
|
|
249
238
|
}
|
|
250
|
-
// Check if all columns with this column type have the same data type
|
|
251
239
|
const columns = scope.ColumnTypes.flatMap((columnType) => {
|
|
252
240
|
return api.columnApi.getColumnsByColumnType(columnType);
|
|
253
241
|
});
|
|
254
242
|
if (columns.length) {
|
|
255
|
-
// Check if all columns have the same type
|
|
256
243
|
const allSameType = columns.every((column) => column.dataType === columns[0].dataType);
|
|
257
|
-
// Handle specific data types
|
|
258
244
|
if (allSameType) {
|
|
259
245
|
const dataType = columns[0].dataType;
|
|
260
246
|
if (dataType === 'number') {
|
|
@@ -267,7 +253,6 @@ const getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
267
253
|
return 'text';
|
|
268
254
|
}
|
|
269
255
|
}
|
|
270
|
-
// Check if all columns are date types (even if they're different date types)
|
|
271
256
|
const allDateTypes = columns.every((column) => dateTypes.includes(column.dataType));
|
|
272
257
|
if (allDateTypes) {
|
|
273
258
|
return 'date';
|
|
@@ -338,10 +323,6 @@ const renderNumberFormat = (data, onChange, setFormatOption, scopedCustomFormatt
|
|
|
338
323
|
if (resolved?.Formatter !== 'NumberFormatter') {
|
|
339
324
|
return null;
|
|
340
325
|
}
|
|
341
|
-
// A preset is now stored as a bare string ('Percentage', 'Dollar', ...)
|
|
342
|
-
// — selecting a preset just writes the name. The active preset is
|
|
343
|
-
// therefore a simple string comparison instead of the old fragile
|
|
344
|
-
// suffix/multiplier heuristic.
|
|
345
326
|
const setPreset = (preset) => {
|
|
346
327
|
onChange({ DisplayFormat: preset });
|
|
347
328
|
};
|
|
@@ -440,23 +421,15 @@ const FormatColumnFormatWizardSection = (props) => {
|
|
|
440
421
|
props.onChange({ ...data, ...updated });
|
|
441
422
|
};
|
|
442
423
|
const setFormatOption = (key, value) => {
|
|
443
|
-
// If the user is currently on a preset (e.g. 'Dollar'), materialise
|
|
444
|
-
// it into a concrete AdaptableFormat *before* applying the edit so
|
|
445
|
-
// that tweaking any field "forks" the preset into a bespoke format.
|
|
446
424
|
const current = (0, AdaptableFormatPresets_1.resolveDisplayFormat)(data.DisplayFormat);
|
|
447
425
|
if (!current)
|
|
448
426
|
return;
|
|
449
|
-
// The cast is safe: we copy `current.Formatter` and merge into
|
|
450
|
-
// `current.Options`, so the discriminant and the Options shape
|
|
451
|
-
// are always kept in sync — TypeScript just can't correlate the
|
|
452
|
-
// two ends of the discriminated union across a generic merge.
|
|
453
427
|
const DisplayFormat = {
|
|
454
428
|
Formatter: current.Formatter,
|
|
455
429
|
Options: { ...current.Options, [key]: value },
|
|
456
430
|
};
|
|
457
431
|
update({ DisplayFormat });
|
|
458
432
|
};
|
|
459
|
-
// A preset string is logically a NumberFormatter for this routing.
|
|
460
433
|
const Type = (0, AdaptableFormatPresets_1.isAdaptableNumericFormatPreset)(data.DisplayFormat)
|
|
461
434
|
? 'NumberFormatter'
|
|
462
435
|
: data.DisplayFormat && data.DisplayFormat.Formatter;
|
|
@@ -20,7 +20,6 @@ const toFormatColumnPreviewStyle = (formatColumn) => {
|
|
|
20
20
|
textAlign: style.Alignment ? style.Alignment.toLowerCase() : undefined,
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
/** Today's date as sample text — no Display Format options applied. */
|
|
24
23
|
const getFormatColumnPreviewDateSampleText = () => new Date().toLocaleDateString();
|
|
25
24
|
exports.getFormatColumnPreviewDateSampleText = getFormatColumnPreviewDateSampleText;
|
|
26
25
|
const getFormatColumnStylePreviewText = (formatColumn, api) => {
|
|
@@ -25,10 +25,6 @@ const ROW_KIND_EXCLUDE_KEY = {
|
|
|
25
25
|
Summary: 'ExcludeSummaryRows',
|
|
26
26
|
Total: 'ExcludeTotalRows',
|
|
27
27
|
};
|
|
28
|
-
/**
|
|
29
|
-
* Missing flags default to "include" — matches the long-standing
|
|
30
|
-
* Format Column row-scope semantics.
|
|
31
|
-
*/
|
|
32
28
|
const isRowKindIncluded = (data, kind) => {
|
|
33
29
|
return !data.RowScope?.[ROW_KIND_EXCLUDE_KEY[kind]];
|
|
34
30
|
};
|
|
@@ -83,9 +79,6 @@ const FormatColumnRowsScopeSummary = ({ data, }) => {
|
|
|
83
79
|
return ((0, jsx_runtime_1.jsx)(CollapsibleWizardCard_1.CollapsibleWizardValueSummary, { value: allKinds ? ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "All" })) : includedKinds.length === 0 ? ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "None" })) : ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexWrap: "wrap", className: "twa:gap-1", children: includedKinds.map((kind) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: ROW_KIND_LABELS[kind] }, kind))) })) }));
|
|
84
80
|
};
|
|
85
81
|
const FormatColumnRowScopePanel = ({ data, onRowKindChange, }) => ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:items-start twa:px-1 twa:py-1", style: { rowGap: 'calc(var(--ab-base-space) * 2)' }, children: FORMAT_COLUMN_ROW_KINDS.map((kind) => ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { "data-name": `include-${kind.toLowerCase()}-rows-checkbox`, checked: isRowKindIncluded(data, kind), onChange: (checked) => onRowKindChange(kind, checked), children: ROW_KIND_LABELS[kind] }, kind))) }));
|
|
86
|
-
// ---------------------------------------------------------------------------
|
|
87
|
-
// Section
|
|
88
|
-
// ---------------------------------------------------------------------------
|
|
89
82
|
const FormatColumnScopeWizardSection = (props) => {
|
|
90
83
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
91
84
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
@@ -20,17 +20,6 @@ exports.renderFormatColumnSettingsSummary = renderFormatColumnSettingsSummary;
|
|
|
20
20
|
const FormatColumnSettingsWizardSection = (props) => {
|
|
21
21
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
22
22
|
const nameInputRef = React.useRef(null);
|
|
23
|
-
// When the wizard is opened for a brand-new Format Column (no Name yet),
|
|
24
|
-
// park the cursor in the Name input so the user can start typing.
|
|
25
|
-
//
|
|
26
|
-
// We have to fight three earlier focus calls:
|
|
27
|
-
// 1. <Dialog> focuses itself on mount via useAutoFocus.
|
|
28
|
-
// 2. OnePageWizards focuses its section-nav pill in a useEffect.
|
|
29
|
-
// 3. The same wizard effect re-fires when its ResizeObserver-driven
|
|
30
|
-
// `width` state updates (a tick or two after mount).
|
|
31
|
-
//
|
|
32
|
-
// Two animation frames takes us past (3); a small setTimeout fallback
|
|
33
|
-
// re-asserts focus in case layout thrashes again.
|
|
34
23
|
React.useEffect(() => {
|
|
35
24
|
if (data?.Name) {
|
|
36
25
|
return;
|
|
@@ -49,7 +38,6 @@ const FormatColumnSettingsWizardSection = (props) => {
|
|
|
49
38
|
}, []);
|
|
50
39
|
const currentTarget = data.Target ? data.Target : 'cell';
|
|
51
40
|
const handleTargetChange = (target) => {
|
|
52
|
-
// Update the formatColumn object
|
|
53
41
|
props.onChange({
|
|
54
42
|
...data,
|
|
55
43
|
Target: target,
|
|
@@ -28,7 +28,6 @@ const FormatColumnPreview_1 = require("./FormatColumnPreview");
|
|
|
28
28
|
const adjustDisplayFormat = (fc, api) => {
|
|
29
29
|
const formatColumn = { ...fc };
|
|
30
30
|
let formatDataType = (0, FormatColumnFormatWizardSection_1.getFormatDisplayTypeForScope)(formatColumn.Scope, api);
|
|
31
|
-
// Add RowScope and Target defaults for Format Columns that have been created in Initial State
|
|
32
31
|
if (!formatColumn.RowScope) {
|
|
33
32
|
formatColumn.RowScope = {
|
|
34
33
|
ExcludeDataRows: false,
|
|
@@ -41,16 +40,11 @@ const adjustDisplayFormat = (fc, api) => {
|
|
|
41
40
|
formatColumn.Target = 'cell';
|
|
42
41
|
}
|
|
43
42
|
if (formatColumn.Target === 'columnHeader') {
|
|
44
|
-
// Column Headers are always text
|
|
45
43
|
formatDataType = 'text';
|
|
46
44
|
}
|
|
47
45
|
if (!formatDataType && formatColumn.DisplayFormat) {
|
|
48
46
|
formatColumn.DisplayFormat = undefined;
|
|
49
47
|
}
|
|
50
|
-
// For shape-detection purposes a numeric preset name is equivalent to a
|
|
51
|
-
// NumberFormatter. We only need to materialise an object literal when
|
|
52
|
-
// there is no DisplayFormat at all (or the existing one targets a
|
|
53
|
-
// different Formatter type to the new scope).
|
|
54
48
|
const resolvedFormatter = (0, AdaptableFormatPresets_1.isAdaptableNumericFormatPreset)(formatColumn.DisplayFormat)
|
|
55
49
|
? 'NumberFormatter'
|
|
56
50
|
: formatColumn.DisplayFormat?.Formatter;
|
|
@@ -100,10 +94,6 @@ function FormatColumnWizard(props) {
|
|
|
100
94
|
}, []);
|
|
101
95
|
const dispatch = (0, react_redux_2.useDispatch)();
|
|
102
96
|
const handleFinish = () => {
|
|
103
|
-
// If the user opened the wizard, picked a Formatter type, but never
|
|
104
|
-
// touched any options (and didn't pick a preset), drop the empty
|
|
105
|
-
// DisplayFormat object so we don't persist an empty shell. Preset
|
|
106
|
-
// strings are always meaningful and should never be removed here.
|
|
107
97
|
const df = formatColumn?.DisplayFormat;
|
|
108
98
|
if (df && !(0, AdaptableFormatPresets_1.isAdaptableNumericFormatPreset)(df) && df.Options && (0, ObjectExtensions_1.isObjectEmpty)(df.Options)) {
|
|
109
99
|
delete formatColumn.DisplayFormat;
|
|
@@ -6,7 +6,6 @@ const useGridFilterExpressionEditor_1 = require("./useGridFilterExpressionEditor
|
|
|
6
6
|
const GridFilterPopupUI_1 = require("./GridFilterPopupUI");
|
|
7
7
|
const GridFilterPopup = () => {
|
|
8
8
|
const hookData = (0, useGridFilterExpressionEditor_1.useGridFilterExpressionEditor)();
|
|
9
|
-
// Create callback handlers
|
|
10
9
|
const handleExpressionChange = (value) => {
|
|
11
10
|
hookData.setExpression(value);
|
|
12
11
|
};
|
|
@@ -49,7 +49,6 @@ const useGridFilterExpressionEditor = () => {
|
|
|
49
49
|
columnId: col.columnId,
|
|
50
50
|
label: col.friendlyName,
|
|
51
51
|
onClick: () => {
|
|
52
|
-
// Bogdan - im sure there is a better way to do this check with fancy operators i dont know
|
|
53
52
|
const newExp = StringExtensions_1.default.IsNotNullOrEmpty(expression) ? expression : '';
|
|
54
53
|
setExpression(newExp + `[${col.columnId}]`);
|
|
55
54
|
},
|
|
@@ -62,7 +61,6 @@ const useGridFilterExpressionEditor = () => {
|
|
|
62
61
|
const runQuery = (newExpression = expression) => {
|
|
63
62
|
if (StringExtensions_1.default.IsNullOrEmpty(newExpression) &&
|
|
64
63
|
StringExtensions_1.default.IsNotNullOrEmpty(gridFilter?.Expression)) {
|
|
65
|
-
// user pressed enter key with an empty input => clear existing expression
|
|
66
64
|
adaptable.api.filterApi.gridFilterApi.setGridFilterExpression('');
|
|
67
65
|
return;
|
|
68
66
|
}
|
|
@@ -74,9 +74,6 @@ const GridInfoPopup = (props) => {
|
|
|
74
74
|
Key: { field: 'Key', header: 'Property', defaultFlex: 1 },
|
|
75
75
|
Value: { field: 'Value', header: 'Value', defaultFlex: 3 },
|
|
76
76
|
};
|
|
77
|
-
// Variant used by the Grid Options tab — the Value column allows newlines
|
|
78
|
-
// in the rendered string (preserved via `white-space: pre-line`), so a
|
|
79
|
-
// nested *Options object can show one `"key": value` per line.
|
|
80
77
|
const optionsColumnsMap = {
|
|
81
78
|
Key: { field: 'Key', header: 'Property', defaultFlex: 1 },
|
|
82
79
|
Value: {
|
|
@@ -94,16 +91,10 @@ const GridInfoPopup = (props) => {
|
|
|
94
91
|
}, children: String(value ?? '') })),
|
|
95
92
|
},
|
|
96
93
|
};
|
|
97
|
-
// ---- Grid Options tab: build one InfiniteTableGrid section per non-empty
|
|
98
|
-
// ---- options group on the AdaptableOptions object.
|
|
99
94
|
const titleCase = (camel) => camel
|
|
100
95
|
.replace(/([a-z])([A-Z])/g, '$1 $2')
|
|
101
96
|
.replace(/^./, (c) => c.toUpperCase())
|
|
102
97
|
.replace(/\s./g, (c) => c.toUpperCase());
|
|
103
|
-
// Renders a single primitive / function / array / nested-object value
|
|
104
|
-
// (used for the inner key:value pairs when expanding a nested options
|
|
105
|
-
// object). Short objects/arrays stay on one line; longer ones get
|
|
106
|
-
// pretty-printed across multiple lines so they don't blow past the cell.
|
|
107
98
|
const ONE_LINE_MAX = 60;
|
|
108
99
|
const fnReplacer = (_k, val) => typeof val === 'function' ? '[Function]' : val;
|
|
109
100
|
const formatValuePart = (v) => {
|
|
@@ -136,14 +127,9 @@ const GridInfoPopup = (props) => {
|
|
|
136
127
|
if (v === null)
|
|
137
128
|
return '(null)';
|
|
138
129
|
if (Array.isArray(v)) {
|
|
139
|
-
// Top-level array values (e.g. `colorPalette`, `systemFilterPredicates`).
|
|
140
|
-
// Short arrays stay on one line; longer ones get pretty-printed across
|
|
141
|
-
// multiple lines so they don't blow past the cell.
|
|
142
130
|
return formatValuePart(v);
|
|
143
131
|
}
|
|
144
132
|
if (typeof v === 'object') {
|
|
145
|
-
// Nested options-style object → render as one `key: value` per line.
|
|
146
|
-
// `undefined` entries are filtered out so empty defaults don't show up.
|
|
147
133
|
const entries = Object.entries(v).filter(([, val]) => val !== undefined);
|
|
148
134
|
if (entries.length === 0)
|
|
149
135
|
return '{}';
|
|
@@ -156,11 +142,6 @@ const GridInfoPopup = (props) => {
|
|
|
156
142
|
const defaults = (0, DefaultAdaptableOptions_1.getDefaultAdaptableOptions)();
|
|
157
143
|
const baseRows = [];
|
|
158
144
|
const groupSections = [];
|
|
159
|
-
// A function value should only be displayed when it has been explicitly
|
|
160
|
-
// provided by the user. AdapTable ships a handful of identity-function
|
|
161
|
-
// defaults (e.g. `stateOptions.applyState`) that are not interesting to
|
|
162
|
-
// surface here — we suppress those by reference-comparing against the
|
|
163
|
-
// values returned from `getDefaultAdaptableOptions()`.
|
|
164
145
|
const isUserProvidedFunction = (groupKey, propKey, fn) => {
|
|
165
146
|
if (typeof fn !== 'function')
|
|
166
147
|
return false;
|
|
@@ -179,11 +160,8 @@ const GridInfoPopup = (props) => {
|
|
|
179
160
|
const rows = Object.keys(value)
|
|
180
161
|
.filter((sk) => {
|
|
181
162
|
const sv = value[sk];
|
|
182
|
-
// skip empties (undefined / null)
|
|
183
163
|
if (sv == null)
|
|
184
164
|
return false;
|
|
185
|
-
// suppress AdapTable's default callback implementations — keep
|
|
186
|
-
// only user-provided overrides
|
|
187
165
|
if (typeof sv === 'function' && !isUserProvidedFunction(key, sk, sv)) {
|
|
188
166
|
return false;
|
|
189
167
|
}
|
|
@@ -195,8 +173,6 @@ const GridInfoPopup = (props) => {
|
|
|
195
173
|
groupSections.push({ title: titleCase(key), rows });
|
|
196
174
|
}
|
|
197
175
|
else {
|
|
198
|
-
// top-level function defaults aren't a concern (none exist on the
|
|
199
|
-
// root of `AdaptableOptions`), but apply the same rule for safety
|
|
200
176
|
if (typeof value === 'function' && defaults[key] === value)
|
|
201
177
|
return;
|
|
202
178
|
baseRows.push({ Key: key, Value: displayValue(value) });
|
|
@@ -208,10 +184,7 @@ const GridInfoPopup = (props) => {
|
|
|
208
184
|
sections.push(...groupSections);
|
|
209
185
|
return sections;
|
|
210
186
|
})();
|
|
211
|
-
|
|
212
|
-
// lines in the formatted value string (including visual wraps for very
|
|
213
|
-
// long unbroken lines) and grows the row to fit.
|
|
214
|
-
const VALUE_CHARS_PER_LINE = 70; // rough estimate at the Value column width
|
|
187
|
+
const VALUE_CHARS_PER_LINE = 70;
|
|
215
188
|
const visualLineCount = (text) => {
|
|
216
189
|
if (!text)
|
|
217
190
|
return 1;
|
|
@@ -227,11 +200,8 @@ const GridInfoPopup = (props) => {
|
|
|
227
200
|
};
|
|
228
201
|
const sectionHeight = (rows) => {
|
|
229
202
|
const total = rows.reduce((acc, r) => acc + calculateRowHeight(r), 0);
|
|
230
|
-
// 40px header, capped so a single huge group can't dominate the popup
|
|
231
203
|
return Math.min(total + 40, 400);
|
|
232
204
|
};
|
|
233
|
-
// Which tabs the user has opted in to. Falls back to all three (matching
|
|
234
|
-
// the default in `DefaultAdaptableOptions`) when the option isn't set.
|
|
235
205
|
const enabledTabs = api.optionsApi.getSettingsPanelOptions()?.gridInfoTabs ??
|
|
236
206
|
['Grid Options', 'Grid Summary', 'Grid State'];
|
|
237
207
|
const showSummary = enabledTabs.includes('Grid Summary');
|
|
@@ -20,7 +20,6 @@ const DropdownButton_1 = require("../../components/DropdownButton");
|
|
|
20
20
|
const icons_1 = require("../../components/icons");
|
|
21
21
|
const Flex_1 = require("../../components/Flex");
|
|
22
22
|
const NewSelect_1 = require("../../components/NewSelect");
|
|
23
|
-
// import { SingleCombobox } from '../../components/Combobox';
|
|
24
23
|
exports.COMPONENT_LAYOUT_POPUP_NAME = 'LayoutEditorStandalonePopup';
|
|
25
24
|
const LayoutViewPanelComponent = (props) => {
|
|
26
25
|
const { Layouts, CurrentLayoutName, accessLevel, viewType, api, onSelectLayout, showMissingLayoutsError, } = props;
|
|
@@ -31,7 +30,6 @@ const LayoutViewPanelComponent = (props) => {
|
|
|
31
30
|
}
|
|
32
31
|
}, [isErrorLayout]);
|
|
33
32
|
const layoutEntity = Layouts.find((x) => x.Name === CurrentLayoutName || x.Uuid === CurrentLayoutName);
|
|
34
|
-
// the global access level (Layout Entitlement)
|
|
35
33
|
const cloneAccessLevel = accessLevel;
|
|
36
34
|
const newAccessLevel = accessLevel;
|
|
37
35
|
const entityAccessLevel = AdaptableHelper_1.default.getAccessLevelForObject(layoutEntity, accessLevel);
|
|
@@ -43,8 +43,6 @@ const PivotDetailsPopoup = (props) => {
|
|
|
43
43
|
[primaryKey]: { field: primaryKey, header: getFriendlyName(primaryKey) },
|
|
44
44
|
};
|
|
45
45
|
if (hasPivotValue) {
|
|
46
|
-
// pivot_license_MIT License_stargazers_count
|
|
47
|
-
// splitting by _ does not work
|
|
48
46
|
columns = {
|
|
49
47
|
...columns,
|
|
50
48
|
[aggColumn]: { field: aggColumn, header: getFriendlyName(aggColumn) },
|
|
@@ -15,9 +15,7 @@ const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
|
15
15
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
16
16
|
const ADAPTABLE_CONTAINER_ID = 'transposed-adaptable-container';
|
|
17
17
|
const AG_GRID_CONTAINER_ID = 'transposed-adaptable-ag-grid-container';
|
|
18
|
-
/** Field used for the first column in transposed grid (hidden, holds column id). */
|
|
19
18
|
const TRANSPOSED_FIRST_COLUMN_FIELD = '_transposed_column_value';
|
|
20
|
-
/** Header used for the first visible column in transposed grid (shows friendly name). */
|
|
21
19
|
const TRANSPOSED_FIRST_COLUMN_HEADER = '_transposed_column_header';
|
|
22
20
|
function buildTransposedAdaptableOptions({ hostOptions, transposedRowsAndColumns, currentTheme, }) {
|
|
23
21
|
return {
|
|
@@ -133,11 +131,6 @@ const TransposedPopup = (props) => {
|
|
|
133
131
|
.map((c) => adaptable.api.columnApi.getColumnWithColumnId(c))
|
|
134
132
|
.filter((col) => col != null);
|
|
135
133
|
}, [transposeConfig.columnsToTranspose, adaptable.api]);
|
|
136
|
-
/**
|
|
137
|
-
* Build transposed structure: original rows become columns (colId = primaryKey value),
|
|
138
|
-
* original columns become rows. Each transposed row has the column id/header plus
|
|
139
|
-
* one cell per original row keyed by primaryKey value.
|
|
140
|
-
*/
|
|
141
134
|
const transposedRowsAndColumns = React.useMemo(() => {
|
|
142
135
|
const transposedColumns = [];
|
|
143
136
|
const transposedRows = [];
|
|
@@ -201,7 +201,6 @@ const LayoutWizard = (props) => {
|
|
|
201
201
|
isValid: (data) => (0, AggregationsSection_1.isAggregationsSectionValid)(data),
|
|
202
202
|
render: () => ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2 twa:h-full", children: (0, jsx_runtime_1.jsx)(AggregationsSection_1.AggregationsSection, { layoutWizardMode: layoutWizardMode, onChange: (layout) => {
|
|
203
203
|
let newLayout = (0, Helper_1.cloneObject)(layout);
|
|
204
|
-
// if we do not have an weighted avg col, we need to clear the row summary if one exists
|
|
205
204
|
if (newLayout.RowSummaries) {
|
|
206
205
|
const aggColsMap = (newLayout.TableAggregationColumns || []).reduce((acc, { ColumnId, AggFunc }) => {
|
|
207
206
|
acc[ColumnId] = AggFunc;
|
|
@@ -211,14 +210,10 @@ const LayoutWizard = (props) => {
|
|
|
211
210
|
return {
|
|
212
211
|
...rowSummary,
|
|
213
212
|
ColumnsMap: Object.entries(rowSummary.ColumnsMap).reduce((acc, [columnId, aggFunc]) => {
|
|
214
|
-
if (
|
|
215
|
-
// see if it is weighted avg
|
|
216
|
-
aggFunc === RowSummary_1.WEIGHTED_AVERAGE_AGGREGATED_FUNCTION &&
|
|
217
|
-
// see if we have a weight in the agg columns
|
|
213
|
+
if (aggFunc === RowSummary_1.WEIGHTED_AVERAGE_AGGREGATED_FUNCTION &&
|
|
218
214
|
aggColsMap[columnId] &&
|
|
219
215
|
(typeof aggColsMap[columnId] !== 'object' ||
|
|
220
216
|
aggColsMap[columnId].weightColumnId)) {
|
|
221
|
-
// need to remove the row summary
|
|
222
217
|
return acc;
|
|
223
218
|
}
|
|
224
219
|
acc[columnId] = aggFunc;
|
|
@@ -173,8 +173,6 @@ const AggregationsSection = (props) => {
|
|
|
173
173
|
const numberColumns = adaptable.api.columnApi.getNumericColumns();
|
|
174
174
|
const allAggregatableColumnIds = allAggregableColumns.map((col) => col.columnId);
|
|
175
175
|
(layout.TableAggregationColumns || []).forEach((agg) => {
|
|
176
|
-
// we need to also display the columns currently aggregated,
|
|
177
|
-
// even if they are not aggregatable
|
|
178
176
|
if (!allAggregatableColumnIds.includes(agg.ColumnId)) {
|
|
179
177
|
allAggregatableColumnIds.push(agg.ColumnId);
|
|
180
178
|
}
|
|
@@ -36,7 +36,6 @@ const ColumnsSectionSummary = (props) => {
|
|
|
36
36
|
const { data: contextLayout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
37
37
|
const layout = props.layout ?? contextLayout;
|
|
38
38
|
const groups = (0, columnsSummaryHelpers_1.getTableColumnsSummaryGroups)(layout, adaptable.api, columnsSummaryHelpers_1.TABLE_COLUMNS_WIZARD_SUBSECTION_LABELS);
|
|
39
|
-
// Wizard summary lists every column — no truncation (settings panel uses truncateColumnSummaryValues).
|
|
40
39
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3", children: groups.map(({ label, values, emptyLabel }) => ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:font-medium twa:mb-1", children: label }), values.length ? (0, SummaryColorTag_1.renderSummaryStringTags)(values) : (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: emptyLabel })] }, label))) }));
|
|
41
40
|
};
|
|
42
41
|
exports.ColumnsSectionSummary = ColumnsSectionSummary;
|
|
@@ -71,24 +70,15 @@ const ColumnsSection = (props) => {
|
|
|
71
70
|
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
72
71
|
const [searchInputValue, setSearchInputValue] = React.useState('');
|
|
73
72
|
const [selectedColumnId, setSelectedColumnId] = React.useState(null);
|
|
74
|
-
// the selection column is a special column managed by AG Grid - it is not
|
|
75
|
-
// returned by `getUIAvailableColumns`, but we still want to expose it in the
|
|
76
|
-
// column list (similar to auto row group columns) so users can reorder/pin it
|
|
77
73
|
const hasSelectionColumn = adaptable.api.columnApi
|
|
78
74
|
.getColumns()
|
|
79
75
|
.some((col) => col.isGeneratedSelectionColumn);
|
|
80
76
|
const allColumns = adaptable.api.columnApi
|
|
81
77
|
.getUIAvailableColumns()
|
|
82
78
|
.filter((col) => {
|
|
83
|
-
// since the "Row Groups" section of the editor can determine a change
|
|
84
|
-
// which is not reflected into AG Grid until we hit finish
|
|
85
|
-
// so we only rely on non-generated columns, which are the same
|
|
86
79
|
return !col.isGeneratedRowGroupColumn;
|
|
87
80
|
})
|
|
88
|
-
// if the current Layout is a PivotLayout, then we also filter out current Pivot Result Columns
|
|
89
81
|
.filter((col) => !col.isGeneratedPivotResultColumn)
|
|
90
|
-
// selection columns are not returned by `getUIAvailableColumns` but guard
|
|
91
|
-
// against any future change
|
|
92
82
|
.filter((col) => !col.isGeneratedSelectionColumn);
|
|
93
83
|
const onChange = (data) => {
|
|
94
84
|
if (hasSelectionColumn &&
|
|
@@ -98,9 +88,6 @@ const ColumnsSection = (props) => {
|
|
|
98
88
|
}
|
|
99
89
|
props.onChange(data);
|
|
100
90
|
};
|
|
101
|
-
// however, changes in RowGroupedColumns done in the previous step
|
|
102
|
-
// are reflected into the layout, so we use the latest layout.RowGroupedColumns
|
|
103
|
-
// to create new columns
|
|
104
91
|
if (layout.RowGroupedColumns && layout.RowGroupedColumns.length > 0) {
|
|
105
92
|
if (layout.RowGroupDisplayType === 'single') {
|
|
106
93
|
allColumns.unshift((0, ColumnApiImpl_1.generateAutoRowGroupSingleColumn)());
|
|
@@ -126,9 +113,6 @@ const ColumnsSection = (props) => {
|
|
|
126
113
|
return acc;
|
|
127
114
|
}, {});
|
|
128
115
|
let TableColumns = layout.TableColumns;
|
|
129
|
-
// when the selection column exists but is not explicitly listed in
|
|
130
|
-
// TableColumns, `sortArrayWithOrder` would push it to the end - instead we
|
|
131
|
-
// want it at the start (consistent with AG Grid's default position for it)
|
|
132
116
|
if (hasSelectionColumn && !TableColumns.includes(GeneralConstants_1.AG_GRID_SELECTION_COLUMN)) {
|
|
133
117
|
TableColumns = [GeneralConstants_1.AG_GRID_SELECTION_COLUMN, ...TableColumns];
|
|
134
118
|
}
|
|
@@ -141,16 +125,7 @@ const ColumnsSection = (props) => {
|
|
|
141
125
|
const currentOrderIds = currentOrder.map((col) => col.columnId);
|
|
142
126
|
const handleColumnsChange = (newColumns) => {
|
|
143
127
|
if (searchInputValue) {
|
|
144
|
-
|
|
145
|
-
// so the current `newColumns` does not actually contain all the columns
|
|
146
|
-
// so we need to recompute it
|
|
147
|
-
const newOrder = (0, sortColumnIdsByOrder_1.sortColumnIdsByOrder)(
|
|
148
|
-
// given those are all the columns
|
|
149
|
-
ColumnOrderAllColumns.map((col) => col.columnId),
|
|
150
|
-
// we want to sort them to have this new order
|
|
151
|
-
// - this sorting will leave all ids not found in this new order untouched
|
|
152
|
-
newColumns.map((col) => col.columnId));
|
|
153
|
-
// so basically we now have the correct order, with all columns
|
|
128
|
+
const newOrder = (0, sortColumnIdsByOrder_1.sortColumnIdsByOrder)(ColumnOrderAllColumns.map((col) => col.columnId), newColumns.map((col) => col.columnId));
|
|
154
129
|
newColumns = newOrder.map((colId) => colIdToCol[colId]);
|
|
155
130
|
}
|
|
156
131
|
const oldColumns = ColumnOrderAllColumns;
|
|
@@ -197,15 +172,9 @@ const ColumnsSection = (props) => {
|
|
|
197
172
|
if (isCurrent) {
|
|
198
173
|
return true;
|
|
199
174
|
}
|
|
200
|
-
// include all columns past the current column order
|
|
201
|
-
// that reach until the index of the currently checked column
|
|
202
175
|
const shouldInclude = idsToIndexes.get(colId) <= biggestIndex;
|
|
203
176
|
if (shouldInclude) {
|
|
204
177
|
if (!columnIdSet.has(colId) && visible) {
|
|
205
|
-
// this is a column that's between the current column order limit
|
|
206
|
-
// and the currently checked column
|
|
207
|
-
// so we need to include it in order
|
|
208
|
-
// but make it invisible
|
|
209
178
|
ColumnVisibility[colId] = false;
|
|
210
179
|
}
|
|
211
180
|
}
|
|
@@ -52,7 +52,6 @@ const getAvailableExpressionsForColumnType = (columnType, availableScalarExpress
|
|
|
52
52
|
const expressions = Object.keys(availableScalarExpressions)
|
|
53
53
|
.filter((availableExpression) => {
|
|
54
54
|
if (!aggregatedScalarExpressionFunctions_1.aggregatedExpressionFunctions.includes(availableExpression)) {
|
|
55
|
-
// is custom
|
|
56
55
|
return true;
|
|
57
56
|
}
|
|
58
57
|
return Boolean(RowSummary_1.summarySupportedExpressions.includes(availableExpression));
|
|
@@ -60,12 +59,10 @@ const getAvailableExpressionsForColumnType = (columnType, availableScalarExpress
|
|
|
60
59
|
.map((expression) => {
|
|
61
60
|
const expressionDef = availableScalarExpressions[expression];
|
|
62
61
|
let firstArg = null;
|
|
63
|
-
// filter out expressions without inputs defined
|
|
64
62
|
if (!expressionDef?.inputs) {
|
|
65
63
|
return null;
|
|
66
64
|
}
|
|
67
65
|
if (Array.isArray(expressionDef?.inputs?.[0])) {
|
|
68
|
-
// @ts-ignore
|
|
69
66
|
firstArg = expressionDef.inputs.find((input) => input.includes(columnInputType))?.[0];
|
|
70
67
|
}
|
|
71
68
|
else {
|
|
@@ -29,7 +29,6 @@ function getLayoutPinnedColumnIds(layout, side) {
|
|
|
29
29
|
.filter(([, pin]) => pin === side)
|
|
30
30
|
.map(([columnId]) => columnId);
|
|
31
31
|
}
|
|
32
|
-
/** Whether this column has sizing stored in the Layout that differs from grid defaults. */
|
|
33
32
|
function hasExplicitLayoutSizing(columnId, sizing, resolveDefaultWidth) {
|
|
34
33
|
if (!sizing) {
|
|
35
34
|
return false;
|
|
@@ -72,7 +71,6 @@ function formatColumnSizingBrief(columnId, sizing, resolveDefaultWidth) {
|
|
|
72
71
|
}
|
|
73
72
|
return parts.join(', ');
|
|
74
73
|
}
|
|
75
|
-
/** Width/flex values to show in the sizing editor (default grid widths are omitted). */
|
|
76
74
|
function getExplicitSizingDisplayValues(columnId, sizing, resolveDefaultWidth) {
|
|
77
75
|
if (!sizing) {
|
|
78
76
|
return {
|
|
@@ -7,13 +7,9 @@ const ColumnApiImpl_1 = require("../../../../Api/Implementation/ColumnApiImpl");
|
|
|
7
7
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../../../Utilities/Extensions/ArrayExtensions"));
|
|
8
8
|
const GeneralConstants_1 = require("../../../../Utilities/Constants/GeneralConstants");
|
|
9
9
|
const wizardColumnListStyles_1 = require("../../../Components/wizardColumnListStyles");
|
|
10
|
-
/** ValueSelector row sizing — matches Visibility and Order list rows. */
|
|
11
10
|
exports.LAYOUT_WIZARD_COLUMN_LIST_OPTION_CLASS = wizardColumnListStyles_1.WIZARD_COLUMN_LIST_OPTION_CLASS;
|
|
12
|
-
/** Compact list header — spacing between Select All, Show Selected Only, and search. */
|
|
13
11
|
exports.LAYOUT_WIZARD_COLUMN_LIST_HEADER_CLASS = wizardColumnListStyles_1.WIZARD_COLUMN_LIST_HEADER_CLASS;
|
|
14
|
-
/** Narrow search field (matches Visibility list column width, not full card width). */
|
|
15
12
|
exports.LAYOUT_WIZARD_COLUMN_LIST_SEARCH_CLASS = wizardColumnListStyles_1.WIZARD_COLUMN_LIST_SEARCH_CLASS;
|
|
16
|
-
/** Columns shown in Layout wizard column steps, in layout table order. */
|
|
17
13
|
function getLayoutWizardOrderedColumns(adaptable, layout) {
|
|
18
14
|
const hasSelectionColumn = adaptable.api.columnApi
|
|
19
15
|
.getColumns()
|
|
@@ -36,7 +36,6 @@ function mapStateToProps(state, ownProps) {
|
|
|
36
36
|
QuickSearchText: quickSearch.QuickSearchText,
|
|
37
37
|
QuickSearchTextMatchStyle: (0, QuickSearchHelper_1.resolveQuickSearchTextMatchStyle)(quickSearch),
|
|
38
38
|
QuickSearchCurrentTextMatchStyle: (0, QuickSearchHelper_1.resolveQuickSearchCurrentTextMatchStyle)(quickSearch),
|
|
39
|
-
// Cell match: show only what is in state — defaults are not applied until explicitly set
|
|
40
39
|
QuickSearchCellMatchStyle: (0, QuickSearchHelper_1.isQuickSearchStyleUnset)(quickSearch.CellMatchStyle)
|
|
41
40
|
? {}
|
|
42
41
|
: quickSearch.CellMatchStyle,
|
|
@@ -27,14 +27,10 @@ const AdaptableStatusBar = (props) => {
|
|
|
27
27
|
if (!module?.isModuleVisible()) {
|
|
28
28
|
return (0, jsx_runtime_1.jsx)(React.Fragment, {}, subPanel);
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Both view properties and status panel are optional.
|
|
32
|
-
*/
|
|
33
30
|
const statusBarPanelProps = module.getViewProperties?.()?.getStatusBarPanelProps?.() ?? {};
|
|
34
31
|
const moduleInfo = module.moduleInfo;
|
|
35
32
|
const onAction = statusBarPanelProps.onAction ??
|
|
36
33
|
(() => {
|
|
37
|
-
// #by-default-open-settings-panel-for-module
|
|
38
34
|
const menuItem = allMenuItems.find((menuItem) => menuItem.category === subPanel);
|
|
39
35
|
if (menuItem?.reduxAction) {
|
|
40
36
|
dispatch(menuItem.reduxAction);
|
|
@@ -9,12 +9,6 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exten
|
|
|
9
9
|
const AdaptablePopover_1 = require("../AdaptablePopover");
|
|
10
10
|
const Flex_1 = require("../../components/Flex");
|
|
11
11
|
const utils_1 = require("../../lib/utils");
|
|
12
|
-
/**
|
|
13
|
-
* Statusbar sub panel are similar to vs code:
|
|
14
|
-
* - text
|
|
15
|
-
* - action
|
|
16
|
-
* - icon
|
|
17
|
-
*/
|
|
18
12
|
const StatusBarPanel = (props) => {
|
|
19
13
|
const { icon, content, popover, popoverMinWidth, view, onAction, extraActions, triggerActionOnWrapperClick = true, tooltip, ...flexProps } = props;
|
|
20
14
|
const handleAction = () => onAction();
|
|
@@ -28,12 +22,10 @@ const StatusBarPanel = (props) => {
|
|
|
28
22
|
}, []);
|
|
29
23
|
const shouldTriggerActionOnWrapperClick = triggerActionOnWrapperClick && !popover;
|
|
30
24
|
const handleWrapperClick = React.useCallback(() => {
|
|
31
|
-
// handle action only if there is no popover
|
|
32
25
|
if (shouldTriggerActionOnWrapperClick) {
|
|
33
26
|
handleAction();
|
|
34
27
|
}
|
|
35
28
|
}, [popover, triggerActionOnWrapperClick]);
|
|
36
|
-
// popover
|
|
37
29
|
const popoverContent = typeof popover === 'function'
|
|
38
30
|
? React.createElement(popover)
|
|
39
31
|
: popover;
|
|
@@ -51,8 +51,6 @@ const StatusBarPopup = (props) => {
|
|
|
51
51
|
moduleShortcutIds.push(item.Id);
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
// Roughly balance the two boxes by item count (~10 panels vs ~17 shortcuts)
|
|
55
|
-
// so the wider list gets the extra room and they feel more even.
|
|
56
54
|
return [
|
|
57
55
|
{
|
|
58
56
|
listId: 'UNUSED-PANELS',
|