@adaptabletools/adaptable-cjs 23.0.4-canary.0 → 23.0.5-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.js +0 -31
- package/index.js +0 -31
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +1 -9
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +3 -39
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +44 -16
- package/src/AdaptableState/Aggregations/only.js +0 -11
- package/src/AdaptableState/Aggregations/weightedAverage.js +0 -26
- package/src/AdaptableState/Common/AdaptableColumn.js +0 -1
- package/src/AdaptableState/Common/AdaptableForm.js +0 -49
- package/src/AdaptableState/Common/AdaptableFormatPresets.js +0 -13
- package/src/AdaptableState/Common/AdaptablePredicate.js +3 -125
- package/src/AdaptableState/Common/AggregationColumns.js +0 -10
- package/src/AdaptableState/Common/Enums.js +0 -3
- package/src/AdaptableState/Common/Menu.js +1 -7
- package/src/AdaptableState/Common/MenuItem.js +0 -2
- package/src/AdaptableState/Common/Types.js +2 -5
- package/src/AdaptableState/StatusBarState.js +0 -3
- package/src/AdaptableState/StyledColumns/BadgeStyle.js +0 -1
- package/src/AdaptableState/StyledColumns/Common/BarStyleProperties.js +0 -4
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +0 -5
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +0 -8
- package/src/AdaptableState/Uuid.js +0 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +0 -4
- package/src/Api/Implementation/AlertApiImpl.js +0 -21
- package/src/Api/Implementation/ApiBase.js +0 -24
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -3
- package/src/Api/Implementation/ColumnApiImpl.js +1 -15
- package/src/Api/Implementation/ColumnFilterApiImpl.js +0 -9
- package/src/Api/Implementation/ColumnScopeApiImpl.js +0 -21
- package/src/Api/Implementation/DashboardApiImpl.js +0 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +0 -1
- package/src/Api/Implementation/ExportApiImpl.js +0 -10
- package/src/Api/Implementation/ExpressionApiImpl.js +0 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -3
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -2
- package/src/Api/Implementation/GridApiImpl.js +1 -22
- package/src/Api/Implementation/GridFilterApiImpl.js +0 -2
- package/src/Api/Implementation/LayoutApiImpl.js +0 -18
- package/src/Api/Implementation/LayoutHelpers.js +0 -16
- package/src/Api/Implementation/NamedQueryApiImpl.js +0 -1
- package/src/Api/Implementation/PredicateApiImpl.js +0 -5
- package/src/Api/Implementation/RowFormApiImpl.js +0 -2
- package/src/Api/Implementation/StateApiImpl.js +0 -7
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -1
- package/src/Api/Internal/ActionColumnInternalApi.js +0 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
- package/src/Api/Internal/AdaptableInternalApi.js +1 -39
- package/src/Api/Internal/AlertInternalApi.js +1 -102
- package/src/Api/Internal/CalculatedColumnInternalApi.js +0 -17
- package/src/Api/Internal/ChartingInternalApi.js +0 -1
- package/src/Api/Internal/ColumnFilterInternalApi.js +0 -52
- package/src/Api/Internal/ColumnInternalApi.js +0 -32
- package/src/Api/Internal/CustomSortInternalApi.js +0 -5
- package/src/Api/Internal/DashboardInternalApi.js +0 -23
- package/src/Api/Internal/DataImportInternalApi.js +0 -1
- package/src/Api/Internal/EventInternalApi.js +0 -2
- package/src/Api/Internal/ExportInternalApi.js +1 -16
- package/src/Api/Internal/ExpressionInternalApi.js +0 -23
- package/src/Api/Internal/Fdc3InternalApi.js +0 -9
- package/src/Api/Internal/FlashingCellInternalApi.js +0 -5
- package/src/Api/Internal/FormatColumnInternalApi.js +5 -107
- package/src/Api/Internal/FreeTextColumnInternalApi.js +0 -8
- package/src/Api/Internal/GridFilterInternalApi.js +0 -3
- package/src/Api/Internal/GridInternalApi.js +0 -37
- package/src/Api/Internal/LayoutInternalApi.js +0 -18
- package/src/Api/Internal/NamedQueryInternalApi.js +0 -9
- package/src/Api/Internal/PredicateInternalApi.js +0 -23
- package/src/Api/Internal/RowFormInternalApi.js +0 -18
- package/src/Api/Internal/StateInternalApi.js +0 -25
- package/src/Api/Internal/StyledColumnInternalApi.js +0 -62
- package/src/Api/Internal/TeamSharingInternalApi.js +0 -9
- package/src/Redux/ActionsReducers/AlertRedux.js +0 -24
- package/src/Redux/ActionsReducers/ApplicationRedux.js +0 -9
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +0 -6
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +1 -16
- package/src/Redux/ActionsReducers/ChartingRedux.js +0 -24
- package/src/Redux/ActionsReducers/CommentsRedux.js +0 -24
- package/src/Redux/ActionsReducers/CustomSortRedux.js +0 -24
- package/src/Redux/ActionsReducers/DashboardRedux.js +0 -33
- package/src/Redux/ActionsReducers/ExportRedux.js +0 -36
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +0 -24
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +0 -36
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +1 -20
- package/src/Redux/ActionsReducers/InternalRedux.js +0 -42
- package/src/Redux/ActionsReducers/LayoutRedux.js +1 -67
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +0 -15
- package/src/Redux/ActionsReducers/NoteRedux.js +0 -14
- package/src/Redux/ActionsReducers/PluginsRedux.js +0 -3
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +0 -34
- package/src/Redux/ActionsReducers/PopupRedux.js +2 -6
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +0 -15
- package/src/Redux/ActionsReducers/ShortcutRedux.js +0 -24
- package/src/Redux/ActionsReducers/SmartEditRedux.js +0 -6
- package/src/Redux/ActionsReducers/StatusBarRedux.js +0 -6
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +0 -27
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +0 -6
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +0 -1
- package/src/Redux/ActionsReducers/ThemeRedux.js +0 -26
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +0 -22
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +0 -3
- package/src/Redux/ActionsReducers/utils.js +0 -6
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +0 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +0 -25
- package/src/Redux/Store/AdaptableStore.js +5 -301
- package/src/Strategy/AdaptableModuleBase.js +0 -35
- package/src/Strategy/AlertModule.js +0 -9
- package/src/Strategy/CellSummaryModule.js +0 -12
- package/src/Strategy/ChartingModule.js +0 -1
- package/src/Strategy/ColumnFilterModule.js +1 -11
- package/src/Strategy/CommentModule.js +0 -2
- package/src/Strategy/DashboardModule.js +0 -4
- package/src/Strategy/ExportModule.js +0 -1
- package/src/Strategy/FlashingCellModule.js +0 -8
- package/src/Strategy/FormatColumnModule.js +0 -3
- package/src/Strategy/FreeTextColumnModule.js +0 -3
- package/src/Strategy/LayoutModule.js +0 -26
- package/src/Strategy/NoteModule.js +0 -3
- package/src/Strategy/PlusMinusModule.js +0 -3
- package/src/Strategy/SettingsPanelModule.js +0 -1
- package/src/Strategy/ShortcutModule.js +0 -1
- package/src/Strategy/SmartEditModule.js +0 -5
- package/src/Strategy/StatusBarModule.js +0 -7
- package/src/Strategy/StyledColumnModule.js +1 -16
- package/src/Strategy/TeamSharingModule.js +0 -9
- package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +0 -5
- package/src/Utilities/Constants/DocumentationLinkConstants.js +0 -1
- package/src/Utilities/Constants/GeneralConstants.js +0 -10
- package/src/Utilities/Constants/ObjectDefaultConstants.js +0 -3
- package/src/Utilities/Constants/ReduxConstants.js +4 -8
- package/src/Utilities/Emitter.js +0 -9
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +0 -8
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +0 -15
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +0 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +0 -16
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +0 -9
- package/src/Utilities/ExpressionFunctions/groupingMap.js +0 -9
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +7 -78
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +0 -9
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +2 -16
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -63
- package/src/Utilities/Extensions/NumberExtensions.js +0 -27
- package/src/Utilities/Extensions/ObjectExtensions.js +0 -36
- package/src/Utilities/Extensions/StringExtensions.js +0 -27
- package/src/Utilities/Helpers/ActionColumnHelper.js +0 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +0 -8
- package/src/Utilities/Helpers/DateHelper.js +0 -10
- package/src/Utilities/Helpers/DisplayFormatHelper.js +0 -8
- package/src/Utilities/Helpers/Helper.js +3 -9
- package/src/Utilities/Helpers/PlusMinusHelper.js +0 -20
- package/src/Utilities/Helpers/QuickSearchHelper.js +0 -5
- package/src/Utilities/Helpers/Scheduling/CronExpression.js +0 -43
- package/src/Utilities/Helpers/Scheduling/ScheduledReportHelper.js +0 -4
- package/src/Utilities/Helpers/SettingsPanelHelper.js +40 -4
- package/src/Utilities/Helpers/StyleHelper.js +0 -56
- package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.js +0 -46
- package/src/Utilities/Helpers/StyledColumns/GradientStyleHelper.js +0 -38
- package/src/Utilities/Helpers/StyledColumns/IconStyleHelper.js +0 -39
- package/src/Utilities/Helpers/StyledColumns/PercentBarStyleHelper.js +0 -1
- package/src/Utilities/Helpers/StyledColumns/SparklineStyleHelper.js +0 -5
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +0 -37
- package/src/Utilities/Helpers/TimingHelper.js +0 -13
- package/src/Utilities/ObjectFactory.js +2 -4
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +0 -7
- package/src/Utilities/Services/AlertService.js +0 -1
- package/src/Utilities/Services/AnnotationsService.js +0 -22
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +0 -8
- package/src/Utilities/Services/ChartingService.js +0 -9
- package/src/Utilities/Services/DataService.js +0 -11
- package/src/Utilities/Services/Fdc3Service.js +0 -3
- package/src/Utilities/Services/FlashingCellService.js +0 -6
- package/src/Utilities/Services/ModuleService.js +0 -8
- package/src/Utilities/Services/QueryLanguageService.js +2 -25
- package/src/Utilities/Services/RowFormService.js +0 -1
- package/src/Utilities/Services/RowSummaryService.js +1 -20
- package/src/Utilities/Services/TeamSharingService.js +0 -15
- package/src/Utilities/Services/ThemeService.js +0 -7
- package/src/Utilities/Services/ValidationService.js +0 -21
- package/src/Utilities/createAgStatusPanelComponent.js +0 -3
- package/src/Utilities/getExpressionViewItems.js +0 -2
- package/src/Utilities/getObjectTagsViewItems.js +0 -1
- package/src/Utilities/getScrollbarSize.js +0 -1
- package/src/Utilities/logDeprecation.js +0 -3
- package/src/Utilities/resolveContainerElement.js +0 -21
- package/src/Utilities/runIfNotResolvedIn.js +0 -7
- package/src/Utilities/sortColumnStateForVisibleColumns.js +2 -12
- package/src/Utilities/waitForTimeout.js +0 -1
- package/src/Utilities/wizardSelection.js +0 -2
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/AdaptableView.js +1 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -23
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -2
- package/src/View/AdaptableWizardView/Wizard.js +0 -12
- package/src/View/AdaptableWizardView/helper.js +0 -11
- package/src/View/Alert/ActiveAlertsPanel.js +0 -2
- package/src/View/Alert/AlertStatusSubPanel.js +0 -8
- package/src/View/Alert/Utilities/getAlertType.js +0 -7
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +0 -5
- package/src/View/Alert/Utilities/mapAlertDefinition.js +0 -3
- package/src/View/Alert/Wizard/AlertWizard.js +0 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +0 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +0 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +0 -1
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +0 -3
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -7
- package/src/View/Charting/EditChartButton.js +1 -4
- package/src/View/Charting/ShowChartButton.js +0 -3
- package/src/View/Charting/useAgChartState.js +0 -5
- package/src/View/Charting/useChartingElements.js +0 -4
- package/src/View/Charting/useExternalChartState.js +0 -6
- package/src/View/ColumnInfo/ColumnInfo.js +7 -17
- package/src/View/Comments/CommentsEditor.js +1 -16
- package/src/View/Components/AdaptableButton/AdaptableButtonComponent.js +0 -1
- package/src/View/Components/AdaptableButton/AdaptableButtonView.js +0 -3
- package/src/View/Components/AdaptableDateInput/index.js +2 -9
- package/src/View/Components/AdaptableIconComponent/index.js +0 -4
- package/src/View/Components/AdaptableIconSelector/index.js +0 -3
- package/src/View/Components/AdaptableInput/index.js +0 -2
- package/src/View/Components/Badge/index.js +0 -8
- package/src/View/Components/Buttons/ButtonNewPage.js +1 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +0 -1
- package/src/View/Components/CellPopup/index.js +1 -2
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +0 -4
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +0 -4
- package/src/View/Components/ColumnFilter/ColumnFilter.js +3 -46
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +0 -2
- package/src/View/Components/ColumnFilter/FloatingFilter.js +1 -20
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -16
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -4
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +0 -1
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -6
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +0 -20
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +0 -5
- package/src/View/Components/ColumnFilter/utils.js +2 -9
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +0 -2
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +0 -1
- package/src/View/Components/EntityRulesEditor/index.js +1 -11
- package/src/View/Components/ExternalRenderer.js +1 -3
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -52
- package/src/View/Components/ModuleValueSelector/index.js +0 -2
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Panels/PanelWithRow.js +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +0 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +0 -6
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -2
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +0 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +0 -3
- package/src/View/Components/Popups/AdaptableToaster.js +0 -2
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +0 -8
- package/src/View/Components/RangesComponent.js +0 -57
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +0 -3
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -18
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +0 -4
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
- package/src/View/Components/ValueSelector/index.js +0 -4
- package/src/View/Components/wizardColumnListStyles.js +0 -5
- package/src/View/Dashboard/CustomToolbar.js +1 -25
- package/src/View/Dashboard/PinnedToolbarsSelector.js +0 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -22
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +0 -1
- package/src/View/DataImport/systemFileHandlers.js +1 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +0 -27
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +0 -7
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -12
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +0 -10
- package/src/View/GridFilter/GridFilterPopup.js +0 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +0 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -31
- package/src/View/Layout/LayoutViewPanel.js +0 -2
- package/src/View/Layout/PivotDetailsPopoup.js +0 -2
- package/src/View/Layout/TransposedPopup.js +0 -7
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -6
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +0 -2
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -32
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +0 -3
- package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +0 -2
- package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +0 -4
- package/src/View/Note/NotePopup.js +0 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +0 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +0 -4
- package/src/View/StatusBar/StatusBarPanel.js +0 -8
- package/src/View/StatusBar/StatusBarPopup.js +0 -2
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +0 -11
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +0 -28
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -25
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +0 -26
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +0 -40
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +0 -55
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +0 -15
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +0 -21
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextPreview.js +0 -10
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +0 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -21
- package/src/View/SystemStatus/SystemStatusPopup.js +0 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +0 -1
- package/src/View/Theme/ThemeSelector.js +0 -1
- package/src/View/UIHelper.js +0 -6
- package/src/View/UIInterfaces.js +0 -1
- package/src/View/Wizard/CollapsibleWizardCard.js +1 -8
- package/src/View/Wizard/OnePageWizards.js +2 -9
- package/src/View/Wizard/SummaryColorTag.js +0 -1
- package/src/View/Wizard/useKeyboardNavigation.js +1 -3
- package/src/agGrid/Adaptable.js +0 -12
- package/src/agGrid/AdaptableAgGrid.d.ts +0 -2
- package/src/agGrid/AdaptableAgGrid.js +3 -482
- package/src/agGrid/AdaptableFilterHandler.js +0 -5
- package/src/agGrid/AdaptableLogger.js +0 -6
- package/src/agGrid/AgGridAdapter.js +3 -90
- package/src/agGrid/AgGridColumnAdapter.js +6 -168
- package/src/agGrid/AgGridExportAdapter.js +4 -106
- package/src/agGrid/AgGridFilterAdapter.js +0 -5
- package/src/agGrid/AgGridFloatingFilterAdapter.js +0 -10
- package/src/agGrid/AgGridMenuAdapter.js +0 -143
- package/src/agGrid/AgGridModulesAdapter.js +0 -2
- package/src/agGrid/AgGridOptionsService.js +0 -2
- package/src/agGrid/AgGridThemeAdapter.js +0 -7
- package/src/agGrid/agGridDataTypeDefinitions.js +0 -8
- package/src/agGrid/cellRenderers/BadgeRenderer.js +0 -10
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +1 -96
- package/src/agGrid/cellRenderers/IconRenderer.js +0 -55
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +0 -51
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +1 -50
- package/src/agGrid/cellRenderers/RatingRenderer.js +0 -40
- package/src/agGrid/editors/AdaptableDateEditor/index.js +0 -18
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +0 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +0 -11
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +0 -9
- package/src/agGrid/index.js +0 -6
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -73
- package/src/components/ColorPicker/ColorPicker.js +0 -6
- package/src/components/Combobox/VirtualizedList.js +0 -5
- package/src/components/Combobox/index.js +5 -63
- package/src/components/Dashboard/Dashboard.js +1 -4
- package/src/components/Datepicker/index.js +2 -97
- package/src/components/DragAndDropContext/TabList.js +2 -6
- package/src/components/Drawer/index.js +0 -7
- package/src/components/Dropdown/index.js +0 -1
- package/src/components/DropdownButton/index.js +0 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -16
- package/src/components/ExpressionEditor/EditorButton.js +0 -1
- package/src/components/ExpressionEditor/EditorInput.js +1 -7
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +0 -1
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -14
- package/src/components/ExpressionEditor/NamedQueryContext.js +0 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -6
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +0 -12
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +0 -4
- package/src/components/ExpressionEditor/index.js +5 -14
- package/src/components/Icon/index.js +0 -2
- package/src/components/Input/NumberInput.js +0 -10
- package/src/components/Modal/Backdrop.js +0 -1
- package/src/components/OverlayTrigger/Overlay.js +0 -1
- package/src/components/OverlayTrigger/index.js +3 -15
- package/src/components/ProgressIndicator/ProgressIndicator.js +3 -16
- package/src/components/ResizeObserver/index.js +0 -7
- package/src/components/SelectableList/index.js +0 -7
- package/src/components/SimpleButton/index.js +2 -16
- package/src/components/Tabs/index.js +0 -3
- package/src/components/Tag/Tag.js +0 -1
- package/src/components/Tag/columnScopeTagHelpers.js +0 -2
- package/src/components/Textarea/index.js +1 -8
- package/src/components/Toggle/Toggle.js +1 -5
- package/src/components/Toggle/ToggleGroup.js +1 -3
- package/src/components/ToggleButton/index.js +1 -3
- package/src/components/Tree/TreeDropdown/index.js +2 -130
- package/src/components/Tree/treeUtils.js +0 -4
- package/src/components/WindowModal/WindowModal.js +1 -14
- package/src/components/WindowModal/useStacking.js +0 -7
- package/src/components/icons/bullet-chart.js +0 -4
- package/src/components/icons/icon-style.js +0 -4
- package/src/components/icons/index.js +26 -36
- package/src/components/icons/range-bar.js +0 -5
- package/src/components/icons/star.js +0 -1
- package/src/components/twUtils.js +3 -12
- package/src/components/ui/calendar.js +1 -9
- package/src/components/ui/combobox.js +0 -4
- package/src/components/utils/captureTabNavigation/getFocusableChildren.js +0 -1
- package/src/components/utils/useDraggable.js +0 -4
- package/src/components/utils/useProperty.js +0 -18
- package/src/devTools/index.js +0 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +0 -5
- package/src/layout-manager/src/destructurePivotColumnId.js +0 -19
- package/src/layout-manager/src/index.js +2 -182
- package/src/layout-manager/src/isLayoutEqual.js +0 -1
- package/src/layout-manager/src/isPivotColumnTotal.js +0 -2
- package/src/layout-manager/src/normalizeLayoutModel.js +0 -27
- package/src/layout-manager/src/simplifyLayoutModel.js +0 -11
- package/src/layout-manager/src/sortColumnIdsByOrder.js +2 -12
- package/src/lib/utils.js +0 -1
- package/src/migration/AdaptableUpgradeHelper.js +0 -2
- package/src/migration/VersionUpgrade17.js +0 -33
- package/src/migration/VersionUpgrade20.js +1 -21
- package/src/migration/VersionUpgrade21.js +0 -3
- package/src/migration/VersionUpgrade22.js +0 -11
- package/src/migration/VersionUpgrade23.js +0 -73
- package/src/parser/src/evaluator.js +0 -1
- package/src/parser/src/index.js +0 -1
- package/src/parser/src/parser.js +4 -103
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +0 -5
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +0 -2
- package/src/parser/src/tokenizer.js +0 -2
- package/src/parser/src/utils.js +0 -1
- package/src/renderReactRoot.js +0 -12
- package/src/setupDevTools.js +0 -6
- package/src/twMerge.js +0 -1
- package/src/types.d.ts +1 -1
- package/src/types.js +0 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -20
- package/src/Utilities/Services/Interface/IMetamodelService.js +0 -2
- package/src/Utilities/Services/MetamodelService.d.ts +0 -17
- package/src/Utilities/Services/MetamodelService.js +0 -167
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +0 -104
- package/src/metamodel/adaptable-metamodel-model.d.ts +0 -26
- package/src/metamodel/adaptable-metamodel-model.js +0 -2
- package/src/metamodel/adaptable.metamodel.d.ts +0 -6244
- package/src/metamodel/adaptable.metamodel.js +0 -1
|
@@ -66,11 +66,6 @@ const getStyledColumnRatingStyleViewValues = (data) => {
|
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
68
|
exports.getStyledColumnRatingStyleViewValues = getStyledColumnRatingStyleViewValues;
|
|
69
|
-
/**
|
|
70
|
-
* Resolve a CSS custom property (e.g. `--ab-color-warn`) to its computed
|
|
71
|
-
* value at runtime. Returns the fallback hex on SSR or when the variable
|
|
72
|
-
* isn't defined for the current theme.
|
|
73
|
-
*/
|
|
74
69
|
const resolveCssVar = (varName, fallbackHex) => {
|
|
75
70
|
if (typeof window === 'undefined')
|
|
76
71
|
return fallbackHex;
|
|
@@ -84,16 +79,7 @@ const resolveCssVar = (varName, fallbackHex) => {
|
|
|
84
79
|
return fallbackHex;
|
|
85
80
|
}
|
|
86
81
|
};
|
|
87
|
-
/**
|
|
88
|
-
* Best-effort preview colour for the wizard's `Filled Colour` picker when
|
|
89
|
-
* the user hasn't chosen one. The renderer uses `var(--ab-color-warn,
|
|
90
|
-
* #f5a623)`, but `ColorPicker` can't parse a `var(...)` with a fallback,
|
|
91
|
-
* so we resolve the variable manually and pass a concrete hex.
|
|
92
|
-
*/
|
|
93
82
|
const getDisplayedFilledColor = (rating) => rating.FilledColor || resolveCssVar('--ab-color-warn', '#f5a623');
|
|
94
|
-
/**
|
|
95
|
-
* Best-effort preview colour for the wizard's `Empty Colour` picker.
|
|
96
|
-
*/
|
|
97
83
|
const getDisplayedEmptyColor = (rating) => {
|
|
98
84
|
if (rating.EmptyColor)
|
|
99
85
|
return rating.EmptyColor;
|
|
@@ -107,7 +93,6 @@ const getDisplayedEmptyColor = (rating) => {
|
|
|
107
93
|
}
|
|
108
94
|
}
|
|
109
95
|
catch {
|
|
110
|
-
/* fall through */
|
|
111
96
|
}
|
|
112
97
|
return 'rgba(127, 127, 127, 0.22)';
|
|
113
98
|
};
|
|
@@ -13,20 +13,6 @@ const utils_1 = require("../../../lib/utils");
|
|
|
13
13
|
const StyledColumnHelper_1 = require("../../../Utilities/Helpers/StyledColumns/StyledColumnHelper");
|
|
14
14
|
const IconStyleHelper_1 = require("../../../Utilities/Helpers/StyledColumns/IconStyleHelper");
|
|
15
15
|
const CollapsibleWizardCard_1 = require("../../Wizard/CollapsibleWizardCard");
|
|
16
|
-
// ---------------------------------------------------------------------------
|
|
17
|
-
// Row-kind helpers
|
|
18
|
-
// ---------------------------------------------------------------------------
|
|
19
|
-
/**
|
|
20
|
-
* Per-type *effective* default for "render on this row kind?" — used by
|
|
21
|
-
* the wizard checkboxes when `StyledColumn.RowScope` is unset, and by
|
|
22
|
-
* the styled column list / summary view.
|
|
23
|
-
*
|
|
24
|
-
* Keep this in lockstep with `shouldRenderStyledColumnOnRow`:
|
|
25
|
-
* - Badge defaults to rendering everywhere (subject to type capabilities).
|
|
26
|
-
* - Every other type defaults to leaf rows only (matching the long-
|
|
27
|
-
* standing renderer behaviour), intersected with type capabilities
|
|
28
|
-
* (e.g. Sparkline → data rows only).
|
|
29
|
-
*/
|
|
30
16
|
const ROW_KIND_LABELS = {
|
|
31
17
|
Data: 'Data (leaf) Rows',
|
|
32
18
|
Group: 'Group Rows',
|
|
@@ -55,9 +41,6 @@ const isRowKindIncluded = (styledColumn, kind) => {
|
|
|
55
41
|
const collectIncludedRowKinds = (styledColumn) => {
|
|
56
42
|
return StyledColumnHelper_1.STYLED_COLUMN_ROW_KINDS.filter((k) => isRowKindIncluded(styledColumn, k));
|
|
57
43
|
};
|
|
58
|
-
// ---------------------------------------------------------------------------
|
|
59
|
-
// Summary
|
|
60
|
-
// ---------------------------------------------------------------------------
|
|
61
44
|
const renderStyledColumnScopeSummary = (data, api) => {
|
|
62
45
|
const includedKinds = collectIncludedRowKinds(data);
|
|
63
46
|
const allKinds = includedKinds.length === 4;
|
|
@@ -66,7 +49,6 @@ const renderStyledColumnScopeSummary = (data, api) => {
|
|
|
66
49
|
: 'No Column Selected' })] }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mt-2", children: ["Rows:", ' ', allKinds ? ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "All" })) : includedKinds.length === 0 ? ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "None" })) : (includedKinds.map((k) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { className: "twa:mr-1", children: k }, k))))] })] }));
|
|
67
50
|
};
|
|
68
51
|
exports.renderStyledColumnScopeSummary = renderStyledColumnScopeSummary;
|
|
69
|
-
/** Used by the styled column list view (one-line "Rows: Data, Group, …"). */
|
|
70
52
|
const collectIncludedRowKindLabels = (styledColumn) => collectIncludedRowKinds(styledColumn);
|
|
71
53
|
exports.collectIncludedRowKindLabels = collectIncludedRowKindLabels;
|
|
72
54
|
const StyledColumnColumnScopeSummary = ({ data, }) => {
|
|
@@ -78,9 +60,6 @@ const StyledColumnRowsScopeSummary = ({ data, }) => {
|
|
|
78
60
|
const allKinds = includedKinds.length === 4;
|
|
79
61
|
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))) })) }));
|
|
80
62
|
};
|
|
81
|
-
// ---------------------------------------------------------------------------
|
|
82
|
-
// Validity
|
|
83
|
-
// ---------------------------------------------------------------------------
|
|
84
63
|
const isValidStyledColumnScope = (data, api) => {
|
|
85
64
|
if (!data.ColumnId) {
|
|
86
65
|
return 'Please select a column for the Styled Column.';
|
|
@@ -26,16 +26,6 @@ const CellTextRow = ({ className, style, slots }) => ((0, jsx_runtime_1.jsx)(Fle
|
|
|
26
26
|
textAlign: HORIZONTAL_TEXT_ALIGN[horizontal],
|
|
27
27
|
}, children: slot?.text ?? '' }, horizontal));
|
|
28
28
|
}) }));
|
|
29
|
-
/**
|
|
30
|
-
* Preview of the per-value cell-text layout. Renders three potential bands:
|
|
31
|
-
* - `Above` slots (above the bar)
|
|
32
|
-
* - `Merged` slots (overlay on top of the bar — uses `mergedOverlayClassName`)
|
|
33
|
-
* - `Below` slots (below the bar)
|
|
34
|
-
*
|
|
35
|
-
* Each band has three horizontal slots (Left/Center/Right) so the spacing is
|
|
36
|
-
* stable. When `vertical` is provided, only the band matching that value is
|
|
37
|
-
* rendered (used by the preview cards to position bands around the bar).
|
|
38
|
-
*/
|
|
39
29
|
const BarStyleCellTextPreview = ({ className, style, cellTextProperties, labels, mergedOverlayClassName, vertical }) => {
|
|
40
30
|
if (!labels.cellValue && !labels.percentage) {
|
|
41
31
|
return null;
|
|
@@ -33,11 +33,6 @@ function zeroCentredSplitPreview(negativeColor, positiveColor, postfix, minA, ma
|
|
|
33
33
|
background: gradientRangeStripCss(positiveColor, false, minA, maxA),
|
|
34
34
|
} })] })] }));
|
|
35
35
|
}
|
|
36
|
-
/**
|
|
37
|
-
* Visual summary of Gradient cell ranges: shows an alpha ramp per range
|
|
38
|
-
* (instead of a flat colour swatch). Zero-centred and legacy diverging
|
|
39
|
-
* `Col-Min..0` + `0..Col-Max` pairs render as a single split strip.
|
|
40
|
-
*/
|
|
41
36
|
const GradientRangesSummaryPreview = (props) => {
|
|
42
37
|
const minA = props.gradientStyle?.MinAlpha ?? GradientStyleHelper_1.DEFAULT_GRADIENT_MIN_ALPHA;
|
|
43
38
|
const maxA = props.gradientStyle?.MaxAlpha ?? GradientStyleHelper_1.DEFAULT_GRADIENT_MAX_ALPHA;
|
|
@@ -5,10 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const Flex_1 = require("../../../../../components/Flex");
|
|
6
6
|
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
7
7
|
const stripClassName = 'twa:h-6 twa:w-[128px] twa:rounded twa:overflow-hidden twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
8
|
-
/**
|
|
9
|
-
* Compact range-colour strip for Percent Bar range summaries.
|
|
10
|
-
* Cell text / origin / font are shown in `StyledColumnPercentBarPreview`.
|
|
11
|
-
*/
|
|
12
8
|
const PercentBarStylePreview = (props) => {
|
|
13
9
|
const trackColor = props.backgroundColor ? (0, StyleHelper_1.getVariableColor)(props.backgroundColor) : undefined;
|
|
14
10
|
const barColor = props.barBackgroundColor
|
|
@@ -26,11 +26,6 @@ const resolveBadgeRowJustify = (alignment) => {
|
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
/**
|
|
30
|
-
* Pixel-parity preview of the badges as they would render in the cell.
|
|
31
|
-
* Uses the same wrapper/badge classes (and the same `Badge` component) as
|
|
32
|
-
* `BadgeRenderer` so the wizard summary matches the grid output exactly.
|
|
33
|
-
*/
|
|
34
29
|
const StyledColumnBadgePreview = ({ data }) => {
|
|
35
30
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
36
31
|
const badgeStyle = data.BadgeStyle;
|
|
@@ -19,7 +19,6 @@ const getBulletPreviewSample = (bullet) => {
|
|
|
19
19
|
max = Math.max(...numeric.map((range) => range.Max));
|
|
20
20
|
}
|
|
21
21
|
const span = max - min || 1;
|
|
22
|
-
// Matches the schematic bar width (~58%) in `StyledColumnBulletChartListPreview`.
|
|
23
22
|
const sampleValue = min + span * 0.58;
|
|
24
23
|
const valueFraction = (sampleValue - min) / span;
|
|
25
24
|
return {
|
|
@@ -38,8 +37,6 @@ const BulletChartPreviewContent = ({ bullet, }) => {
|
|
|
38
37
|
const isVertical = bullet.Orientation === 'Vertical';
|
|
39
38
|
const cellTextClassName = 'ab-BulletChart__text twa:text-2 twa:leading-tight twa:truncate twa:max-w-full';
|
|
40
39
|
const chartEl = (0, jsx_runtime_1.jsx)(StyledColumnChartListPreviews_1.StyledColumnBulletChartListPreview, { bullet: bullet });
|
|
41
|
-
// Merged-only with no outside bands → relative container so the overlay sits
|
|
42
|
-
// on top of the chart, matching the runtime renderer's behaviour.
|
|
43
40
|
if (hasCellText && presence.hasMerged && !presence.hasAbove && !presence.hasBelow) {
|
|
44
41
|
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "ab-BulletChart__wrapper twa:relative twa:inline-flex", children: [chartEl, (0, jsx_runtime_1.jsx)(BarStyleCellTextPreview_1.BarStyleCellTextPreview, { mergedOverlayClassName: "ab-BulletChart__text twa:absolute twa:inset-x-0 twa:top-1/2 twa:-translate-y-1/2 twa:px-1 twa:text-2 twa:truncate twa:pointer-events-none", style: fontStyle, cellTextProperties: cellTextProperties, labels: labels, vertical: "Merged" })] }));
|
|
45
42
|
}
|
|
@@ -7,11 +7,6 @@ const PREVIEW_WIDTH = 168;
|
|
|
7
7
|
const PREVIEW_HEIGHT = 26;
|
|
8
8
|
const VB_W = 100;
|
|
9
9
|
const VB_H = 22;
|
|
10
|
-
/**
|
|
11
|
-
* Maps each `CellColorRange` to a horizontal span in the schematic preview.
|
|
12
|
-
* When endpoints are not plain numbers (e.g. `Col-Min`), falls back to even
|
|
13
|
-
* slices so the strip still reads as a qualitative scale.
|
|
14
|
-
*/
|
|
15
10
|
const bandSegmentsForPreview = (ranges) => {
|
|
16
11
|
if (!ranges?.length) {
|
|
17
12
|
return [];
|
|
@@ -37,10 +32,6 @@ const bandSegmentsForPreview = (ranges) => {
|
|
|
37
32
|
const DEFAULT_TRACK = 'color-mix(in srgb, var(--ab-color-foreground) 35%, transparent)';
|
|
38
33
|
const DEFAULT_BAR = 'var(--ab-color-accent, #07c)';
|
|
39
34
|
const DEFAULT_MARKER = 'var(--ab-color-foreground, #333)';
|
|
40
|
-
/**
|
|
41
|
-
* Compact schematic of a Range Bar (bands + track + value / reference markers)
|
|
42
|
-
* for the Styled Columns object list and wizard step summaries.
|
|
43
|
-
*/
|
|
44
35
|
const StyledColumnRangeBarListPreview = (props) => {
|
|
45
36
|
const { range } = props;
|
|
46
37
|
const segments = bandSegmentsForPreview(range.CellRanges);
|
|
@@ -52,10 +43,6 @@ const StyledColumnRangeBarListPreview = (props) => {
|
|
|
52
43
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:rounded twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_12%,transparent)] twa:bg-[color-mix(in_srgb,var(--ab-color-primary)_40%,transparent)] twa:px-1 twa:py-0.5", style: { width: PREVIEW_WIDTH, height: PREVIEW_HEIGHT }, children: (0, jsx_runtime_1.jsxs)("svg", { width: "100%", height: "100%", viewBox: `0 0 ${VB_W} ${VB_H}`, preserveAspectRatio: "none", "aria-hidden": true, children: [segments.length === 0 ? ((0, jsx_runtime_1.jsx)("rect", { x: "0", y: "0", width: VB_W, height: VB_H, fill: range.BackColor ?? 'transparent' })) : (segments.map((s, i) => ((0, jsx_runtime_1.jsx)("rect", { x: s.x0 * VB_W, y: "0", width: (s.x1 - s.x0) * VB_W, height: VB_H, fill: s.color, opacity: 0.55 }, i)))), isVertical ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("rect", { x: VB_W * 0.42, y: "2", width: "5", height: VB_H - 4, rx: "1", fill: trackFill }), hasRef && ((0, jsx_runtime_1.jsx)("line", { x1: VB_W * 0.46, y1: "3", x2: VB_W * 0.46, y2: VB_H - 3, stroke: refColor, strokeWidth: "2", vectorEffect: "non-scaling-stroke" })), (0, jsx_runtime_1.jsx)("polygon", { points: `${VB_W * 0.52},${VB_H * 0.35} ${VB_W * 0.62},${VB_H * 0.5} ${VB_W * 0.52},${VB_H * 0.65}`, fill: valueColor })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("rect", { x: "2", y: VB_H * 0.38, width: VB_W - 4, height: "5", rx: "1", fill: trackFill }), hasRef && ((0, jsx_runtime_1.jsx)("line", { x1: VB_W * 0.38, y1: VB_H * 0.2, x2: VB_W * 0.38, y2: VB_H * 0.8, stroke: refColor, strokeWidth: "2", vectorEffect: "non-scaling-stroke" })), (0, jsx_runtime_1.jsx)("polygon", { points: `${VB_W * 0.72},${VB_H * 0.2} ${VB_W * 0.82},${VB_H * 0.5} ${VB_W * 0.72},${VB_H * 0.8}`, fill: valueColor })] }))] }) }));
|
|
53
44
|
};
|
|
54
45
|
exports.StyledColumnRangeBarListPreview = StyledColumnRangeBarListPreview;
|
|
55
|
-
/**
|
|
56
|
-
* Compact schematic of a Bullet Chart (qualitative bands + bar + target marker)
|
|
57
|
-
* for the Styled Columns object list.
|
|
58
|
-
*/
|
|
59
46
|
const StyledColumnBulletChartListPreview = (props) => {
|
|
60
47
|
const { bullet } = props;
|
|
61
48
|
const segments = bandSegmentsForPreview(bullet.CellRanges);
|
|
@@ -16,7 +16,6 @@ const getRangeBarPreviewSample = (range) => {
|
|
|
16
16
|
max = range.Max;
|
|
17
17
|
}
|
|
18
18
|
const span = max - min || 1;
|
|
19
|
-
// Matches the value-marker position (~72%) in `StyledColumnRangeBarListPreview`.
|
|
20
19
|
const sampleValue = min + span * 0.72;
|
|
21
20
|
const valueFraction = (sampleValue - min) / span;
|
|
22
21
|
return {
|
|
@@ -39,7 +39,6 @@ const RatingPreview = ({ rating, value, }) => {
|
|
|
39
39
|
const allowHalf = rating.AllowHalf ?? true;
|
|
40
40
|
const previewValue = value ?? Math.max(1, Math.min(max, max * 0.7));
|
|
41
41
|
const effective = allowHalf ? previewValue : Math.round(previewValue);
|
|
42
|
-
// Display rounded to 1 dp so e.g. 3 * 0.7 doesn't surface as 2.0999999999999996.
|
|
43
42
|
const displayValue = Math.round(previewValue * 10) / 10;
|
|
44
43
|
const d = ICON_PATHS[icon];
|
|
45
44
|
return ((0, jsx_runtime_1.jsxs)("span", { style: {
|
|
@@ -50,7 +50,6 @@ const buildSparklinePreviewOptions = (sparklineStyle, container, data, width, he
|
|
|
50
50
|
height,
|
|
51
51
|
data: data,
|
|
52
52
|
});
|
|
53
|
-
// Custom tooltip renderers expect AG Grid row context — use the default tooltip in preview.
|
|
54
53
|
if (options.tooltip?.renderer) {
|
|
55
54
|
const { renderer: _renderer, ...tooltipRest } = options.tooltip;
|
|
56
55
|
options.tooltip = tooltipRest;
|
|
@@ -13,13 +13,6 @@ const Flex_1 = require("../../../../components/Flex");
|
|
|
13
13
|
const PercentBarColumnComparisonPreview_1 = require("./Components/PercentBarColumnComparisonPreview");
|
|
14
14
|
const PercentBarRangesPreview_1 = require("./Components/PercentBarRangesPreview");
|
|
15
15
|
const GradientSummaryPreview_1 = require("./Components/GradientSummaryPreview");
|
|
16
|
-
// ---------------------------------------------------------------------------
|
|
17
|
-
// Summary helpers (extracted from the old single-step Style section)
|
|
18
|
-
// ---------------------------------------------------------------------------
|
|
19
|
-
/**
|
|
20
|
-
* Summary of the Ranges / Column Comparison configuration of a styled column.
|
|
21
|
-
* Works for both Gradient and Percent Bar.
|
|
22
|
-
*/
|
|
23
16
|
const renderStyledColumnRangesSummary = (data, api) => {
|
|
24
17
|
if (!api) {
|
|
25
18
|
const { api: adaptableApi } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
@@ -67,7 +60,6 @@ const StyledColumnWizardRangesSection = (props) => {
|
|
|
67
60
|
}, [column, api]);
|
|
68
61
|
const scope = { ColumnIds: [data.ColumnId] };
|
|
69
62
|
const disabled = !data.ColumnId || !column;
|
|
70
|
-
// Gradient updates
|
|
71
63
|
const onUpdateGradientStyleRanges = (ranges) => {
|
|
72
64
|
const gradientStyle = {
|
|
73
65
|
...data.GradientStyle,
|
|
@@ -91,17 +83,12 @@ const StyledColumnWizardRangesSection = (props) => {
|
|
|
91
83
|
const gradientStyle = {
|
|
92
84
|
...data.GradientStyle,
|
|
93
85
|
ZeroCentred: zc,
|
|
94
|
-
// Zero-centred bands use absolute numeric 0 as the midpoint; Percentage
|
|
95
|
-
// mode interprets numeric endpoints as % along Col-Min…Col-Max and breaks
|
|
96
|
-
// the diverging bands (see `gradientStyleRangeLookupValueType`).
|
|
97
86
|
RangeValueType: 'Number',
|
|
98
87
|
};
|
|
99
88
|
delete gradientStyle.CellRanges;
|
|
100
89
|
delete gradientStyle.ColumnComparison;
|
|
101
90
|
props.onChange({ ...data, GradientStyle: gradientStyle });
|
|
102
91
|
};
|
|
103
|
-
// Percent Bar updates — switching to Column Comparison wipes any existing
|
|
104
|
-
// CellRanges / RangeValueType so the two modes can't coexist in state.
|
|
105
92
|
const onUpdatePercentBarStyleColumnComparison = (columnComparison) => {
|
|
106
93
|
const nextPercentBar = {
|
|
107
94
|
...data.PercentBarStyle,
|
|
@@ -17,13 +17,9 @@ const Radio_1 = tslib_1.__importStar(require("../../../../components/Radio"));
|
|
|
17
17
|
const StyledColumnSliceStyleEditors_1 = require("../StyledColumnSliceStyleEditors");
|
|
18
18
|
const Card_1 = require("../../../../components/Card");
|
|
19
19
|
const SummaryColorTag_1 = require("../../../Wizard/SummaryColorTag");
|
|
20
|
-
// Re-export the Ranges section + summary for legacy import paths.
|
|
21
20
|
var StyledColumnWizardRangesSection_1 = require("./StyledColumnWizardRangesSection");
|
|
22
21
|
Object.defineProperty(exports, "renderStyledColumnRangesSummary", { enumerable: true, get: function () { return StyledColumnWizardRangesSection_1.renderStyledColumnRangesSummary; } });
|
|
23
22
|
Object.defineProperty(exports, "StyledColumnWizardRangesSection", { enumerable: true, get: function () { return StyledColumnWizardRangesSection_1.StyledColumnWizardRangesSection; } });
|
|
24
|
-
// ---------------------------------------------------------------------------
|
|
25
|
-
// Summary helpers
|
|
26
|
-
// ---------------------------------------------------------------------------
|
|
27
23
|
const formatOriginLabel = (origin) => {
|
|
28
24
|
if (origin == undefined) {
|
|
29
25
|
return 'Auto';
|
|
@@ -73,9 +69,6 @@ const getStyledColumnPercentBarStyleViewValues = (data) => {
|
|
|
73
69
|
});
|
|
74
70
|
};
|
|
75
71
|
exports.getStyledColumnPercentBarStyleViewValues = getStyledColumnPercentBarStyleViewValues;
|
|
76
|
-
/**
|
|
77
|
-
* Compact summary of the *non-range* style properties of a Percent Bar.
|
|
78
|
-
*/
|
|
79
72
|
const renderStyledColumnStyleSummary = (data, _api) => {
|
|
80
73
|
const pb = data.PercentBarStyle;
|
|
81
74
|
if (!pb) {
|
|
@@ -88,14 +81,10 @@ const renderStyledColumnStyleSummary = (data, _api) => {
|
|
|
88
81
|
return (0, SummaryColorTag_1.renderSummaryStringTags)(items);
|
|
89
82
|
};
|
|
90
83
|
exports.renderStyledColumnStyleSummary = renderStyledColumnStyleSummary;
|
|
91
|
-
// Legacy wrapper kept for any external consumers; safe no-op here.
|
|
92
84
|
const renderFormatColumnStyleWizardSummary = (data) => {
|
|
93
85
|
return (0, exports.renderStyledColumnStyleSummary)(data);
|
|
94
86
|
};
|
|
95
87
|
exports.renderFormatColumnStyleWizardSummary = renderFormatColumnStyleWizardSummary;
|
|
96
|
-
// Shared label-column width across all FormLayout blocks in this section.
|
|
97
|
-
// Pinning the width forces colons to line up vertically across cards rather than
|
|
98
|
-
// each FormLayout sizing its label column independently from its own longest label.
|
|
99
88
|
const STYLE_FORM_SIZES = ['200px', '1fr'];
|
|
100
89
|
const ORIGIN_CHOICES = [
|
|
101
90
|
{
|
|
@@ -122,7 +111,6 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
122
111
|
}
|
|
123
112
|
const pb = data.PercentBarStyle;
|
|
124
113
|
const cellTextProperties = pb.CellTextProperties;
|
|
125
|
-
// ---- updaters -----------------------------------------------------------
|
|
126
114
|
const update = (patch) => {
|
|
127
115
|
props.onChange({
|
|
128
116
|
...data,
|
|
@@ -155,7 +143,7 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
155
143
|
};
|
|
156
144
|
const cellTextDisabled = !(0, BarStylesHelper_1.hasBarStyleCellTextConfigured)(cellTextProperties) || disabled;
|
|
157
145
|
const currentOrigin = typeof pb.Origin === 'number'
|
|
158
|
-
? 'Min'
|
|
146
|
+
? 'Min'
|
|
159
147
|
: pb.Origin ?? 'Auto';
|
|
160
148
|
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Bar Position" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Set the position of the cell text relative to the bar" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(Radio_1.RadioGroup, { orientation: "vertical", name: "ab-percentbar-origin", value: currentOrigin, onRadioChange: handleOriginChange, children: ORIGIN_CHOICES.map((choice) => ((0, jsx_runtime_1.jsx)(Radio_1.default, { value: choice.value, disabled: disabled, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:min-w-[60px]", children: choice.label }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70", children: choice.hint })] }) }, choice.value))) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Cell Text" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[540px]", children: "Pick which values to display and where each one sits around the bar (font properties take precedence over Format Column)" })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card.Body, { children: [(0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsx)(BarStyleCellTextLayoutEditor_1.BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: cellTextProperties, onToggle: onCellTextLayoutToggle, onPlacementChange: onCellTextPlacementChange }) }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: cellTextDisabled, value: pb.Font, onChange: (next) => {
|
|
161
149
|
if (next) {
|
|
@@ -102,12 +102,6 @@ const STYLED_COLUMN_TYPE_OPTION_BY_KEY = STYLED_COLUMN_TYPE_OPTIONS.reduce((map,
|
|
|
102
102
|
return map;
|
|
103
103
|
}, new Map());
|
|
104
104
|
const STYLED_COLUMN_TYPE_KEYS = STYLED_COLUMN_TYPE_GROUPS.flatMap((group) => group.types);
|
|
105
|
-
/**
|
|
106
|
-
* Wizard-header title for each Styled Column type. Reads as a complete
|
|
107
|
-
* subject so it works as a top-level title in the wizard frame
|
|
108
|
-
* ("Gradient Column" rather than just "Gradient"). Falls back to
|
|
109
|
-
* "Styled Column" before a type has been chosen.
|
|
110
|
-
*/
|
|
111
105
|
const TYPE_WIZARD_TITLES = {
|
|
112
106
|
Gradient: 'Gradient Column',
|
|
113
107
|
PercentBar: 'Percent Bar Column',
|
|
@@ -118,10 +112,6 @@ const TYPE_WIZARD_TITLES = {
|
|
|
118
112
|
RangeBar: 'Range Bar Column',
|
|
119
113
|
Icon: 'Icon Column',
|
|
120
114
|
};
|
|
121
|
-
/**
|
|
122
|
-
* Resolves the Styled Column type from the discriminator properties. Used by
|
|
123
|
-
* the Settings-step summary to show a human-readable type tag.
|
|
124
|
-
*/
|
|
125
115
|
const getTypeLabel = (data) => {
|
|
126
116
|
if (data.GradientStyle)
|
|
127
117
|
return 'Gradient';
|
|
@@ -141,12 +131,6 @@ const getTypeLabel = (data) => {
|
|
|
141
131
|
return 'Icon';
|
|
142
132
|
return null;
|
|
143
133
|
};
|
|
144
|
-
/**
|
|
145
|
-
* The title displayed in the wizard header. Switches from "Styled
|
|
146
|
-
* Column" to the specific type ("Gradient Column", "Percent Bar
|
|
147
|
-
* Column", …) once a type has been picked, so the user always knows
|
|
148
|
-
* which kind of column they're configuring.
|
|
149
|
-
*/
|
|
150
134
|
const getStyledColumnWizardTitle = (data) => {
|
|
151
135
|
const typeKey = getTypeLabel(data);
|
|
152
136
|
return typeKey ? TYPE_WIZARD_TITLES[typeKey] : 'Styled Column';
|
|
@@ -157,11 +141,6 @@ const renderStyledColumnSettingsSummary = (data) => {
|
|
|
157
141
|
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:pr-2 twa:py-2", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mt-1", children: ["Name ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: data.Name || '(none)' })] }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mt-2", children: ["Type ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: typeKey ? TYPE_LABELS[typeKey] : '(none)' })] })] }));
|
|
158
142
|
};
|
|
159
143
|
exports.renderStyledColumnSettingsSummary = renderStyledColumnSettingsSummary;
|
|
160
|
-
/**
|
|
161
|
-
* Backwards-compatible export: the wizard previously imported
|
|
162
|
-
* `renderStyledColumnTypeSummary`. The settings step now also covers Name,
|
|
163
|
-
* but to keep external imports happy we re-export under the old alias.
|
|
164
|
-
*/
|
|
165
144
|
exports.renderStyledColumnTypeSummary = exports.renderStyledColumnSettingsSummary;
|
|
166
145
|
const StyledColumnWizardTypeSection = (props) => {
|
|
167
146
|
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
@@ -21,7 +21,6 @@ const colItems = [
|
|
|
21
21
|
class SystemStatusPopupComponent extends React.Component {
|
|
22
22
|
constructor(props) {
|
|
23
23
|
super(props);
|
|
24
|
-
// this.state = { EditedSystemStatusText: '', EditedStyle: null };
|
|
25
24
|
}
|
|
26
25
|
onSystemStatusMessageInfoDeleteAll() {
|
|
27
26
|
this.props.onSystemStatusMessageInfoDeleteAll();
|
|
@@ -50,7 +50,6 @@ const getSharedEntityActiveStatusObjectView = (isDependency) => (props) => {
|
|
|
50
50
|
`Imported Rev. ${activeRevision} ${isStaleAndActive ? 'is stale' : ''} `, ' ', statusInfo] }));
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
53
|
-
// snapshot
|
|
54
53
|
activeInfo = activeRevision && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: `Imported Rev. ${activeRevision}` });
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -18,7 +18,6 @@ const ThemeSelector = (props) => {
|
|
|
18
18
|
GeneralConstants_1.ACCESS_LEVEL_READ_ONLY;
|
|
19
19
|
const optionThemes = availableThemes.map((theme) => {
|
|
20
20
|
if (typeof theme === 'string') {
|
|
21
|
-
// protection against old state, which could be string
|
|
22
21
|
theme = {
|
|
23
22
|
Name: theme,
|
|
24
23
|
Description: theme,
|
package/src/View/UIHelper.js
CHANGED
|
@@ -39,18 +39,15 @@ const StringExtensions_1 = require("../Utilities/Extensions/StringExtensions");
|
|
|
39
39
|
const ScheduleHelper_1 = require("../Utilities/Helpers/Scheduling/ScheduleHelper");
|
|
40
40
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
41
41
|
const resolveContainerElement_1 = require("../Utilities/resolveContainerElement");
|
|
42
|
-
/** Generic swatch entries for the Colour Picker (resolved at runtime per active theme). */
|
|
43
42
|
function getSwatchColorVar(index) {
|
|
44
43
|
return `var(--ab-color-swatch-${index})`;
|
|
45
44
|
}
|
|
46
|
-
/** Default mid-gray from the theme swatch palette (`--ab-color-swatch-4`). */
|
|
47
45
|
function getGraySwatchColor() {
|
|
48
46
|
return getSwatchColorVar(4);
|
|
49
47
|
}
|
|
50
48
|
function getSwatchColorPaletteEntries() {
|
|
51
49
|
return Array.from({ length: 20 }, (_, i) => getSwatchColorVar(i + 1));
|
|
52
50
|
}
|
|
53
|
-
/** Theme semantic colours for the Colour Picker (resolved at runtime per active theme). */
|
|
54
51
|
function getThemeSemanticColorPaletteEntries() {
|
|
55
52
|
return [
|
|
56
53
|
'var(--ab-color-destructive)',
|
|
@@ -72,7 +69,6 @@ function getThemeSemanticColorPaletteEntries() {
|
|
|
72
69
|
'var(--ab-color-palette-12)',
|
|
73
70
|
];
|
|
74
71
|
}
|
|
75
|
-
/** Swatch and theme semantic entries (default Colour Picker set). */
|
|
76
72
|
function getDefaultColorPalette() {
|
|
77
73
|
return [...getSwatchColorPaletteEntries(), ...getThemeSemanticColorPaletteEntries()];
|
|
78
74
|
}
|
|
@@ -363,14 +359,12 @@ function getSimpleButtonPaddingWidth() {
|
|
|
363
359
|
}
|
|
364
360
|
function getCSSVariableValue(cssVariable) {
|
|
365
361
|
if (!isBrowserDocumentAvailable()) {
|
|
366
|
-
// possible during static/server-side rendering (should happen only in test cases)
|
|
367
362
|
return undefined;
|
|
368
363
|
}
|
|
369
364
|
return getComputedStyle(document.documentElement).getPropertyValue(cssVariable);
|
|
370
365
|
}
|
|
371
366
|
function setCSSVariableValue(cssVariable, value) {
|
|
372
367
|
if (!isBrowserDocumentAvailable()) {
|
|
373
|
-
// possible during static/server-side rendering (should happen only in test cases)
|
|
374
368
|
return undefined;
|
|
375
369
|
}
|
|
376
370
|
document.documentElement.style.setProperty(cssVariable, value);
|
package/src/View/UIInterfaces.js
CHANGED
|
@@ -47,13 +47,7 @@ const CollapsibleWizardCard = (props) => {
|
|
|
47
47
|
? (0, wizardSelection_1.getCollapsibleWizardCardExpandedClasses)(surface)
|
|
48
48
|
: (0, wizardSelection_1.getCollapsibleWizardCardCollapsedClasses)(surface), compact && 'ab-CollapsibleWizardCard--compact twa:p-0!', fillAvailable
|
|
49
49
|
? 'twa:flex-1 twa:min-h-0 twa:flex twa:flex-col twa:overflow-hidden'
|
|
50
|
-
: 'twa:shrink-0', className), children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { className: "twa:p-0", border: !compact, children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex twa:flex-row twa:items-center twa:gap-2 twa:w-full twa:px-2 twa:cursor-pointer twa:rounded-standard twa:hover:bg-primary', { 'twa:py-2': true, 'twa:mb-0.5': !compact && !expanded },
|
|
51
|
-
// `targetOwn.focusOutline` uses a Tailwind `ring` (an *outward* box-shadow).
|
|
52
|
-
// In compact/collapsed mode the card sets `p-0!`, so this header sits flush
|
|
53
|
-
// against the card edge; combined with the card's `overflow-hidden` the
|
|
54
|
-
// outward ring is painted outside the border-box and clipped away. Draw it
|
|
55
|
-
// inset so it stays inside the element and is always visible.
|
|
56
|
-
twUtils_1.targetOwn.focusOutline, 'twa:focus-visible:ring-inset'), "data-name": dataName, onClick: toggleExpanded, onKeyDown: handleTitleKeyDown, tabIndex: 0, "aria-expanded": expanded, role: "button", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:flex twa:flex-row twa:items-center twa:gap-2 twa:shrink-0 twa:cursor-pointer twa:select-none", children: [(0, jsx_runtime_1.jsx)(Icon_1.IconComponent, { icon: { name: expanded ? 'collapse' : 'expand' } }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: title })] }), headerVisual ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-w-0 twa:flex twa:justify-end twa:items-center twa:overflow-hidden twa:pointer-events-none", children: headerVisual })) : headerInline ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex-1 twa:min-w-0 twa:font-normal', isInteractiveCompactSummary
|
|
50
|
+
: 'twa:shrink-0', className), children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { className: "twa:p-0", border: !compact, children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex twa:flex-row twa:items-center twa:gap-2 twa:w-full twa:px-2 twa:cursor-pointer twa:rounded-standard twa:hover:bg-primary', { 'twa:py-2': true, 'twa:mb-0.5': !compact && !expanded }, twUtils_1.targetOwn.focusOutline, 'twa:focus-visible:ring-inset'), "data-name": dataName, onClick: toggleExpanded, onKeyDown: handleTitleKeyDown, tabIndex: 0, "aria-expanded": expanded, role: "button", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:flex twa:flex-row twa:items-center twa:gap-2 twa:shrink-0 twa:cursor-pointer twa:select-none", children: [(0, jsx_runtime_1.jsx)(Icon_1.IconComponent, { icon: { name: expanded ? 'collapse' : 'expand' } }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: title })] }), headerVisual ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-w-0 twa:flex twa:justify-end twa:items-center twa:overflow-hidden twa:pointer-events-none", children: headerVisual })) : headerInline ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex-1 twa:min-w-0 twa:font-normal', isInteractiveCompactSummary
|
|
57
51
|
? 'twa:flex twa:justify-end twa:items-center twa:overflow-visible'
|
|
58
52
|
: (0, utils_1.cn)('twa:text-xs twa:opacity-70 twa:pointer-events-none twa:cursor-default', compact ? 'twa:overflow-hidden' : 'twa:truncate')), children: headerInline })) : ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-w-0" })), headerActions ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:shrink-0 twa:gap-2 twa:flex", onClick: (event) => event.stopPropagation(), children: headerActions })) : null] }) }), expanded ? ((0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: (0, utils_1.cn)('twa:p-1', bodyClassName, fillAvailable && 'twa:max-h-none! twa:flex-1 twa:min-h-0'), children: children })) : showSummary ? ((0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", gap: 1, children: summary })) : null] }));
|
|
59
53
|
};
|
|
@@ -85,6 +79,5 @@ function useWizardCardAccordion(initialExpandedId, options) {
|
|
|
85
79
|
setExpandedId,
|
|
86
80
|
};
|
|
87
81
|
}
|
|
88
|
-
/** Collapsed card body: selected value tag(s) only — no description text. */
|
|
89
82
|
const CollapsibleWizardValueSummary = ({ value }) => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: value });
|
|
90
83
|
exports.CollapsibleWizardValueSummary = CollapsibleWizardValueSummary;
|
|
@@ -20,7 +20,6 @@ const useKeyboardNavigation_1 = require("./useKeyboardNavigation");
|
|
|
20
20
|
const Flex_1 = require("../../components/Flex");
|
|
21
21
|
const twMerge_1 = require("../../twMerge");
|
|
22
22
|
const twUtils_1 = require("../../components/twUtils");
|
|
23
|
-
/** Same template for header row and main row so module/details align with nav / content columns. */
|
|
24
23
|
const ONE_PAGE_WIZARD_SECTION_GRID = 'twa:grid twa:grid-cols-[minmax(160px,14rem)_minmax(0,1fr)]';
|
|
25
24
|
const SummaryTag = (props) => ((0, jsx_runtime_1.jsx)(Flex_1.Box, { ...props }));
|
|
26
25
|
exports.SummaryTag = SummaryTag;
|
|
@@ -56,12 +55,6 @@ const OnePageWizard = (props) => {
|
|
|
56
55
|
section.isVisible(props.data, contextValue));
|
|
57
56
|
}, [props.sections]);
|
|
58
57
|
contextValue.sections = visibleSections;
|
|
59
|
-
// Apply `defaultCurrentSectionName` only once per distinct value. Without
|
|
60
|
-
// this guard the effect re-fires every render (because `visibleSections` is
|
|
61
|
-
// recomputed each render whenever the parent rebuilds `sections`), which
|
|
62
|
-
// makes the wizard snap back to the default section on every interior
|
|
63
|
-
// state change — e.g. clicking a checkbox in an *earlier* step would yank
|
|
64
|
-
// the user forward to the default step again.
|
|
65
58
|
const lastAppliedDefaultSectionName = React.useRef(undefined);
|
|
66
59
|
React.useEffect(() => {
|
|
67
60
|
if (!props.defaultCurrentSectionName) {
|
|
@@ -115,7 +108,7 @@ const OnePageWizard = (props) => {
|
|
|
115
108
|
acc.set(index, true);
|
|
116
109
|
return acc;
|
|
117
110
|
}
|
|
118
|
-
const valid = section.isValid ? section.isValid(props.data, contextValue) : true;
|
|
111
|
+
const valid = section.isValid ? section.isValid(props.data, contextValue) : true;
|
|
119
112
|
if (valid !== true) {
|
|
120
113
|
invalidCount++;
|
|
121
114
|
if (firstErrorMessage == null) {
|
|
@@ -151,7 +144,7 @@ const OnePageWizard = (props) => {
|
|
|
151
144
|
navIndex++;
|
|
152
145
|
navIndexMap.set(navIndex, index);
|
|
153
146
|
const active = index === currentSection;
|
|
154
|
-
const disabled = false;
|
|
147
|
+
const disabled = false;
|
|
155
148
|
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: (0, utils_1.cn)('ab-OnePageWizard__section-title twa:p-2', {
|
|
156
149
|
'twa:cursor-auto': disabled,
|
|
157
150
|
'twa:cursor-pointer': !disabled,
|
|
@@ -11,7 +11,6 @@ const COLOR_SQUARE_CLASS = 'twa:h-3 twa:w-3 twa:rounded-sm twa:shrink-0 twa:bord
|
|
|
11
11
|
const isSummaryColorLabel = (label) => /\bColou?r$/i.test(label.trim());
|
|
12
12
|
exports.isSummaryColorLabel = isSummaryColorLabel;
|
|
13
13
|
const isIconSummaryLabel = (label) => label.trim() === 'Icon';
|
|
14
|
-
/** Labels whose label + value render together inside a single tag (colours, font traits). */
|
|
15
14
|
const isSummaryInTagLabel = (label) => {
|
|
16
15
|
const trimmed = label.trim();
|
|
17
16
|
return ((0, exports.isSummaryColorLabel)(trimmed) ||
|
|
@@ -5,9 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const useKeyboardNavigation = (setCurrentSection, sections) => {
|
|
7
7
|
const handleKeyPress = React.useCallback((event) => {
|
|
8
|
-
if (
|
|
9
|
-
// (event.ctrlKey || event.metaKey) &&
|
|
10
|
-
event.code === 'ArrowUp' ||
|
|
8
|
+
if (event.code === 'ArrowUp' ||
|
|
11
9
|
event.code === 'ArrowDown') {
|
|
12
10
|
event.preventDefault();
|
|
13
11
|
event.stopPropagation();
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -11,13 +11,6 @@ const renderReactRoot_1 = require("../renderReactRoot");
|
|
|
11
11
|
const AdaptableWizardView_1 = tslib_1.__importDefault(require("../View/AdaptableWizardView"));
|
|
12
12
|
const resolveContainerElement_1 = require("../Utilities/resolveContainerElement");
|
|
13
13
|
class Adaptable {
|
|
14
|
-
/**
|
|
15
|
-
* Initializer for Adaptable
|
|
16
|
-
*
|
|
17
|
-
* @param adaptableOptions the AdaptableOptions
|
|
18
|
-
* @param agGridConfig AG Grid
|
|
19
|
-
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
20
|
-
*/
|
|
21
14
|
static init(adaptableOptions, agGridConfig) {
|
|
22
15
|
if (!agGridConfig?.modules?.length) {
|
|
23
16
|
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${DocumentationLinkConstants_1.AgGridModulesDocsLink}`);
|
|
@@ -31,9 +24,6 @@ class AdaptableNoCodeWizard {
|
|
|
31
24
|
adaptableOptions;
|
|
32
25
|
extraOptions;
|
|
33
26
|
agGridModules;
|
|
34
|
-
/**
|
|
35
|
-
* @param adaptableOptions
|
|
36
|
-
*/
|
|
37
27
|
constructor(adaptableOptions, extraOptions = {}, agGridOptions) {
|
|
38
28
|
const defaultInit = async ({ gridOptions, adaptableOptions, agGridModules, }) => {
|
|
39
29
|
return await Adaptable.init(adaptableOptions, { gridOptions, modules: agGridModules });
|
|
@@ -60,8 +50,6 @@ class AdaptableNoCodeWizard {
|
|
|
60
50
|
if (!container) {
|
|
61
51
|
throw new Error('Cannot find container in which to render Adaptable No Code Wizard');
|
|
62
52
|
}
|
|
63
|
-
// this allows people to customize the wizard dimensions & styling
|
|
64
|
-
// when it's visible
|
|
65
53
|
container.classList.add('adaptable--in-wizard');
|
|
66
54
|
const unmount = (0, renderReactRoot_1.renderReactRoot)(React.createElement(AdaptableWizardView_1.default, {
|
|
67
55
|
adaptableOptions: this.adaptableOptions,
|
|
@@ -15,7 +15,6 @@ import { IValidationService } from '../Utilities/Services/Interface/IValidationS
|
|
|
15
15
|
import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
|
|
16
16
|
import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
|
|
17
17
|
import { ITeamSharingService } from '../Utilities/Services/Interface/ITeamSharingService';
|
|
18
|
-
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
19
18
|
import { IThemeService } from '../Utilities/Services/Interface/IThemeService';
|
|
20
19
|
import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
|
|
21
20
|
import { AnnotationsService } from '../Utilities/Services/AnnotationsService';
|
|
@@ -88,7 +87,6 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
88
87
|
QueryLanguageService: IQueryLanguageService;
|
|
89
88
|
AlertService: IAlertService;
|
|
90
89
|
TeamSharingService: ITeamSharingService;
|
|
91
|
-
MetamodelService: IMetamodelService;
|
|
92
90
|
RowFormService: RowFormService;
|
|
93
91
|
Fdc3Service: Fdc3Service;
|
|
94
92
|
AnnotationsService: AnnotationsService;
|