@adaptabletools/adaptable 23.0.0-canary.8 → 23.0.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/index.css +42 -53
- package/package.json +1 -1
- package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.js +1 -1
- package/src/AdaptableState/Common/Enums.d.ts +0 -12
- package/src/AdaptableState/Common/Enums.js +0 -15
- package/src/{Utilities → AdaptableState/Common}/MenuItem.d.ts +4 -4
- package/src/{Utilities → AdaptableState/Common}/MenuItem.js +1 -1
- package/src/AdaptableState/StyledColumns/BulletChartStyle.d.ts +5 -5
- package/src/AdaptableState/StyledColumns/Common/{BarChartCellText.d.ts → BarStyleProperties.d.ts} +34 -10
- package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +2 -2
- package/src/AdaptableState/StyledColumns/PercentBarStyle.d.ts +2 -2
- package/src/AdaptableState/StyledColumns/RangeBarStyle.d.ts +5 -5
- package/src/Api/Implementation/AlertApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +1 -1
- package/src/Api/Implementation/ExportApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutHelpers.js +1 -1
- package/src/Api/Implementation/QuickSearchApiImpl.js +1 -1
- package/src/Api/Implementation/ThemeApiImpl.js +1 -1
- package/src/Api/Internal/ActionColumnInternalApi.js +1 -1
- package/src/Api/Internal/AlertInternalApi.js +1 -1
- package/src/Api/Internal/ChartingInternalApi.js +1 -1
- package/src/Api/Internal/ColumnInternalApi.js +1 -1
- package/src/Api/Internal/EventInternalApi.js +1 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.js +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +1 -1
- package/src/Redux/ActionsReducers/ExportRedux.js +1 -1
- package/src/Redux/ActionsReducers/InternalRedux.js +1 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -4
- package/src/Redux/Store/AdaptableStore.js +3 -3
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +1 -1
- package/src/Strategy/AlertModule.d.ts +1 -1
- package/src/Strategy/AlertModule.js +2 -2
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -2
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- package/src/Strategy/ChartingModule.d.ts +1 -1
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/ColumnInfoModule.d.ts +2 -2
- package/src/Strategy/CommentModule.d.ts +1 -1
- package/src/Strategy/CustomSortModule.d.ts +1 -1
- package/src/Strategy/ExportModule.js +2 -2
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.js +1 -1
- package/src/Strategy/NoteModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/SettingsPanelModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/TeamSharingModule.js +2 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -1
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +32 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +49 -0
- package/src/Utilities/Extensions/NumberExtensions.d.ts +21 -0
- package/src/Utilities/Extensions/NumberExtensions.js +74 -0
- package/src/Utilities/Extensions/ObjectExtensions.d.ts +44 -0
- package/src/Utilities/Extensions/ObjectExtensions.js +271 -0
- package/src/Utilities/Extensions/StringExtensions.d.ts +26 -0
- package/src/Utilities/Extensions/StringExtensions.js +44 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
- package/src/Utilities/Helpers/{alertFormHelper.js → AlertHelper.js} +1 -1
- package/src/Utilities/Helpers/DateHelper.js +1 -1
- package/src/Utilities/Helpers/{FormatHelper.js → DisplayFormatHelper.js} +1 -1
- package/src/Utilities/Helpers/Helper.d.ts +0 -6
- package/src/Utilities/Helpers/Helper.js +0 -35
- package/src/Utilities/Helpers/{QuickSearchStyleHelper.js → QuickSearchHelper.js} +1 -1
- package/src/Utilities/Helpers/{ScheduleHelper.d.ts → Scheduling/ScheduleHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduleHelper.js → Scheduling/ScheduleHelper.js} +1 -1
- package/src/Utilities/Helpers/{ScheduleJobManager.d.ts → Scheduling/ScheduleJobManager.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduleJobRunner.d.ts → Scheduling/ScheduleJobRunner.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledAlertHelper.d.ts → Scheduling/ScheduledAlertHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledAlertHelper.js → Scheduling/ScheduledAlertHelper.js} +4 -4
- package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.d.ts → Scheduling/ScheduledJobsMiddlewareHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.js → Scheduling/ScheduledJobsMiddlewareHelper.js} +1 -1
- package/src/Utilities/Helpers/{ScheduledReportHelper.d.ts → Scheduling/ScheduledReportHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledReportHelper.js → Scheduling/ScheduledReportHelper.js} +1 -1
- package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +5 -0
- package/src/Utilities/{Defaults/DefaultSettingsPanel.js → Helpers/SettingsPanelHelper.js} +14 -0
- package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.d.ts +63 -0
- package/src/Utilities/Helpers/{barChartCellText.js → StyledColumns/BarStylesHelper.js} +33 -32
- package/src/Utilities/Helpers/{StyledColumnGradientHelper.d.ts → StyledColumns/GradientStyleHelper.d.ts} +4 -4
- package/src/Utilities/Helpers/{StyledColumnGradientHelper.js → StyledColumns/GradientStyleHelper.js} +3 -3
- package/src/Utilities/Helpers/{IconStylePresets.d.ts → StyledColumns/IconStyleHelper.d.ts} +6 -1
- package/src/Utilities/Helpers/{IconStylePresets.js → StyledColumns/IconStyleHelper.js} +15 -0
- package/src/Utilities/Helpers/{percentBarPreviewHelper.d.ts → StyledColumns/PercentBarStyleHelper.d.ts} +2 -2
- package/src/Utilities/Helpers/{percentBarPreviewHelper.js → StyledColumns/PercentBarStyleHelper.js} +7 -7
- package/src/Utilities/Helpers/{SparklineOptionsHelper.js → StyledColumns/SparklineStyleHelper.js} +1 -1
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.d.ts +52 -0
- package/src/{agGrid/cellRenderers/shouldRenderStyledColumnOnRow.js → Utilities/Helpers/StyledColumns/StyledColumnHelper.js} +64 -2
- package/src/Utilities/Helpers/TimingHelper.d.ts +34 -0
- package/src/Utilities/{utils/debounce.js → Helpers/TimingHelper.js} +23 -9
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +114 -1
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/RowSummaryService.d.ts +1 -1
- package/src/Utilities/Services/RowSummaryService.js +4 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +1 -1
- package/src/View/Alert/Utilities/getAlertType.js +1 -1
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +1 -1
- package/src/View/Alert/Utilities/mapAlertDefinition.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +1 -1
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +1 -1
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +1 -1
- package/src/View/Comments/CommentsEditor.js +1 -1
- package/src/View/Comments/CommentsPopup.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -6
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +1 -1
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -2
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -1
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/Popups/Utilities.js +1 -1
- package/src/View/Components/RangesComponent.d.ts +3 -3
- package/src/View/Components/RangesComponent.js +3 -7
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +5 -2
- package/src/View/Dashboard/CustomDashboardButton.js +1 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryTable.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -5
- package/src/View/Note/NoteEditor.js +1 -1
- package/src/View/Note/NotePopup.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/StatusBarPopup.js +4 -0
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +40 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +17 -22
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +14 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextLayoutEditor.d.ts → BarStyleCellTextLayoutEditor.d.ts} +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextLayoutEditor.js +33 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextPreview.d.ts → BarStyleCellTextPreview.d.ts} +6 -6
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextPreview.js → BarStyleCellTextPreview.js} +6 -6
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +2 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +5 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +7 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +2 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +1 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +11 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +7 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +2 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +12 -17
- package/src/View/UIHelper.js +1 -1
- package/src/View/Wizard/CollapsibleWizardCard.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +7 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
- package/src/View/Wizard/OnePageWizards.d.ts +8 -0
- package/src/View/Wizard/OnePageWizards.js +6 -4
- package/src/agGrid/AdaptableAgGrid.js +6 -6
- package/src/agGrid/AgGridColumnAdapter.js +16 -15
- package/src/agGrid/AgGridExportAdapter.js +1 -1
- package/src/agGrid/AgGridMenuAdapter.js +127 -2
- package/src/agGrid/cellRenderers/BadgeRenderer.js +1 -1
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +6 -6
- package/src/agGrid/cellRenderers/IconRenderer.js +2 -3
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +6 -6
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +7 -8
- package/src/agGrid/cellRenderers/RatingRenderer.js +2 -2
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/DragAndDropContext/ModuleManager.js +5 -2
- package/src/components/DragAndDropContext/types.d.ts +7 -0
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/isLayoutEqual.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +41 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade23.js +2 -2
- package/src/types.d.ts +3 -3
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/AdaptableState/StyledColumns/Common/BarChartCellText.js +0 -6
- package/src/AdaptableState/StyledColumns/Common/BarChartMarker.d.ts +0 -24
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -3
- package/src/Utilities/Helpers/barChartCellText.d.ts +0 -63
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.d.ts +0 -5
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.js +0 -15
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +0 -3
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +0 -15
- package/src/Utilities/Helpers/styledColumnRowKindSupport.d.ts +0 -25
- package/src/Utilities/Helpers/styledColumnRowKindSupport.js +0 -63
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.d.ts +0 -4
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.js +0 -115
- package/src/Utilities/utils/chunk.d.ts +0 -6
- package/src/Utilities/utils/chunk.js +0 -17
- package/src/Utilities/utils/clamp.d.ts +0 -5
- package/src/Utilities/utils/clamp.js +0 -7
- package/src/Utilities/utils/cloneDeepWith.d.ts +0 -9
- package/src/Utilities/utils/cloneDeepWith.js +0 -67
- package/src/Utilities/utils/debounce.d.ts +0 -20
- package/src/Utilities/utils/flatten.d.ts +0 -5
- package/src/Utilities/utils/flatten.js +0 -7
- package/src/Utilities/utils/flattenDeep.d.ts +0 -5
- package/src/Utilities/utils/flattenDeep.js +0 -7
- package/src/Utilities/utils/get.d.ts +0 -6
- package/src/Utilities/utils/get.js +0 -35
- package/src/Utilities/utils/index.d.ts +0 -22
- package/src/Utilities/utils/index.js +0 -22
- package/src/Utilities/utils/isArray.d.ts +0 -6
- package/src/Utilities/utils/isArray.js +0 -6
- package/src/Utilities/utils/isEqual.d.ts +0 -5
- package/src/Utilities/utils/isEqual.js +0 -124
- package/src/Utilities/utils/isObject.d.ts +0 -6
- package/src/Utilities/utils/isObject.js +0 -9
- package/src/Utilities/utils/isPlainObject.d.ts +0 -6
- package/src/Utilities/utils/isPlainObject.js +0 -17
- package/src/Utilities/utils/kebabCase.d.ts +0 -5
- package/src/Utilities/utils/kebabCase.js +0 -8
- package/src/Utilities/utils/merge.d.ts +0 -11
- package/src/Utilities/utils/merge.js +0 -40
- package/src/Utilities/utils/mergeWith.d.ts +0 -7
- package/src/Utilities/utils/mergeWith.js +0 -46
- package/src/Utilities/utils/orderBy.d.ts +0 -8
- package/src/Utilities/utils/orderBy.js +0 -30
- package/src/Utilities/utils/parseInt.d.ts +0 -6
- package/src/Utilities/utils/parseInt.js +0 -9
- package/src/Utilities/utils/sentenceCase.d.ts +0 -6
- package/src/Utilities/utils/sentenceCase.js +0 -15
- package/src/Utilities/utils/startCase.d.ts +0 -5
- package/src/Utilities/utils/startCase.js +0 -11
- package/src/Utilities/utils/throttle.d.ts +0 -17
- package/src/Utilities/utils/throttle.js +0 -19
- package/src/Utilities/utils/toNumber.d.ts +0 -5
- package/src/Utilities/utils/toNumber.js +0 -39
- package/src/Utilities/utils/uniq.d.ts +0 -7
- package/src/Utilities/utils/uniq.js +0 -9
- package/src/Utilities/utils/uniqBy.d.ts +0 -8
- package/src/Utilities/utils/uniqBy.js +0 -22
- package/src/Utilities/utils/words.d.ts +0 -7
- package/src/Utilities/utils/words.js +0 -10
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.js +0 -35
- package/src/agGrid/buildValueAggregationMenuItem.d.ts +0 -19
- package/src/agGrid/buildValueAggregationMenuItem.js +0 -111
- package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.d.ts +0 -30
- package/src/agGrid/createAgGridIcon.d.ts +0 -10
- package/src/agGrid/createAgGridIcon.js +0 -16
- /package/src/{Utilities → AdaptableState/Aggregations}/only.d.ts +0 -0
- /package/src/{Utilities → AdaptableState/Aggregations}/only.js +0 -0
- /package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.d.ts +0 -0
- /package/src/AdaptableState/StyledColumns/Common/{BarChartMarker.js → BarStyleProperties.js} +0 -0
- /package/src/Utilities/Helpers/{ActionColumnWidthHelper.d.ts → ActionColumnHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ActionColumnWidthHelper.js → ActionColumnHelper.js} +0 -0
- /package/src/Utilities/Helpers/{alertFormHelper.d.ts → AlertHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{chartingHelper.d.ts → ChartHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{chartingHelper.js → ChartHelper.js} +0 -0
- /package/src/Utilities/Helpers/{FormatHelper.d.ts → DisplayFormatHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{plusMinusTriggerKeys.d.ts → PlusMinusHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{plusMinusTriggerKeys.js → PlusMinusHelper.js} +0 -0
- /package/src/Utilities/Helpers/{QuickSearchStyleHelper.d.ts → QuickSearchHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ScheduleJobManager.js → Scheduling/ScheduleJobManager.js} +0 -0
- /package/src/Utilities/Helpers/{ScheduleJobRunner.js → Scheduling/ScheduleJobRunner.js} +0 -0
- /package/src/Utilities/Helpers/{SparklineOptionsHelper.d.ts → StyledColumns/SparklineStyleHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ThemeHelpers.d.ts → ThemeHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ThemeHelpers.js → ThemeHelper.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import debounce from '../../../../Utilities/
|
|
2
|
+
import { debounce } from '../../../../Utilities/Helpers/TimingHelper';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { getOperatorMatchingInputs } from '../../../../components/ExpressionEditor/QueryBuilder/utils';
|
|
5
5
|
import { mapColumnDataTypeToExpressionFunctionType } from '../../../../Utilities/adaptableQlUtils';
|
|
@@ -5,12 +5,13 @@ import FieldWrap from '../../../components/FieldWrap';
|
|
|
5
5
|
import SimpleButton from '../../../components/SimpleButton';
|
|
6
6
|
import Input from '../../../components/Input';
|
|
7
7
|
import { twMerge } from '../../../twMerge';
|
|
8
|
+
import { cn } from '../../../lib/utils';
|
|
8
9
|
export const AdaptableFormControlTextClear = React.forwardRef((props, ref) => {
|
|
9
10
|
let closeButtonTooltip = props.value ? 'Clear' : null;
|
|
10
11
|
const inputRef = React.useRef(null);
|
|
11
12
|
const { focusOnClear = true } = props;
|
|
12
13
|
const clearDisabled = StringExtensions.IsNullOrEmpty(props.value.toString());
|
|
13
|
-
return (_jsxs(FieldWrap, { onClick: props.onClick, className: twMerge('twa:bg-input-background twa:text-input-foreground twa:overflow-visible twa:w-full twa:rounded-input', props.className), style: props.style, children: [_jsx(Input, { "aria-label": props['aria-label'], autoFocus: props.autoFocus, style: props.inputStyle, className: props.inputClassName, ref: (r) => {
|
|
14
|
+
return (_jsxs(FieldWrap, { onClick: props.onClick, className: twMerge('twa:bg-input-background twa:text-input-foreground twa:overflow-visible twa:w-full twa:rounded-input', props.className), style: props.style, children: [_jsx(Input, { "aria-label": props['aria-label'], autoFocus: props.autoFocus, style: props.inputStyle, className: cn('twa:min-w-0 twa:flex-1', props.inputClassName), ref: (r) => {
|
|
14
15
|
inputRef.current = r;
|
|
15
16
|
if (!ref) {
|
|
16
17
|
return;
|
|
@@ -3,7 +3,7 @@ import { useSelector } from 'react-redux';
|
|
|
3
3
|
import { useAdaptable } from '../../../AdaptableContext';
|
|
4
4
|
import * as PopupRedux from '../../../../Redux/ActionsReducers/PopupRedux';
|
|
5
5
|
import { STANDALONE_MODULE_POPUPS } from '../../../../Utilities/Constants/GeneralConstants';
|
|
6
|
-
import { resolveSettingsPanelNavigation } from '../../../../Utilities/Helpers/
|
|
6
|
+
import { resolveSettingsPanelNavigation } from '../../../../Utilities/Helpers/SettingsPanelHelper';
|
|
7
7
|
import { isSettingsPanelNavigationItem, } from './settingsPanelNavigationTypes';
|
|
8
8
|
export const useMenuItems = () => {
|
|
9
9
|
const adaptable = useAdaptable();
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { PanelWithImage } from '../Panels/PanelWithImage';
|
|
4
4
|
import { UIHelper } from '../../UIHelper';
|
|
5
5
|
import Dialog from '../../../components/Dialog';
|
|
6
|
-
import { resolveAlertFormForDefinition } from '../../../Utilities/Helpers/
|
|
6
|
+
import { resolveAlertFormForDefinition } from '../../../Utilities/Helpers/AlertHelper';
|
|
7
7
|
import { AdaptableFormComponent } from '../../../components/AdaptableFormComponent';
|
|
8
8
|
import { useState } from 'react';
|
|
9
9
|
import { useAdaptable } from '../../AdaptableContext';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
3
3
|
import { CellColorRange, ColumnComparison, NumericStyledColumn } from '../../AdaptableState/StyledColumns/Common/NumericStyledColumn';
|
|
4
|
-
import {
|
|
4
|
+
import { ZeroCentredColors } from '../../AdaptableState/StyledColumns/GradientStyle';
|
|
5
5
|
import { ColumnScope } from '../../AdaptableState/Common/ColumnScope';
|
|
6
6
|
export interface RangesComponentProps extends React.ClassAttributes<RangesComponent> {
|
|
7
7
|
ranges: CellColorRange[];
|
|
@@ -35,8 +35,8 @@ export interface RangesComponentProps extends React.ClassAttributes<RangesCompon
|
|
|
35
35
|
* `onApplyZeroCentred` and optional `zeroCentred` for the current colours.
|
|
36
36
|
*/
|
|
37
37
|
showZeroCentredTab?: boolean;
|
|
38
|
-
zeroCentred?:
|
|
39
|
-
onApplyZeroCentred?: (zc:
|
|
38
|
+
zeroCentred?: ZeroCentredColors;
|
|
39
|
+
onApplyZeroCentred?: (zc: ZeroCentredColors) => void;
|
|
40
40
|
/**
|
|
41
41
|
* When true, render a per-range "Reverse Gradient" toggle. Only meaningful
|
|
42
42
|
* for Gradient Style (the renderer flips the alpha ramp within the band so
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ColorPicker } from '../../components/ColorPicker';
|
|
4
|
-
import clamp from '../../Utilities/
|
|
4
|
+
import { clamp } from '../../Utilities/Extensions/NumberExtensions';
|
|
5
5
|
import { CheckBox } from '../../components/CheckBox';
|
|
6
6
|
import FormLayout, { FormRow } from '../../components/FormLayout';
|
|
7
7
|
import { NumberInput } from '../../components/Input/NumberInput';
|
|
@@ -110,13 +110,9 @@ export class RangesComponent extends React.Component {
|
|
|
110
110
|
].join(' ');
|
|
111
111
|
const renderRangesContent = () => (_jsxs(_Fragment, { children: [isRangeValueTypeNumber ? (_jsxs(HelpBlock, { className: "twa:my-2 twa:text-3", children: [_jsx(Box, { children: "Define value bands from low to high, each with its own colour." }), _jsxs(Box, { children: ["Tick ", _jsx("strong", { children: "Use column min" }), " or ", _jsx("strong", { children: "Use column max" }), " to anchor the first and last band to the column's actual lowest and highest values."] })] })) : (_jsxs(HelpBlock, { className: "twa:my-2 twa:text-3", children: [_jsx(Box, { children: "Define bands as percentages (0\u2013100) of the column's value range." }), _jsxs(Box, { children: [_jsx("strong", { children: "0%" }), " is the column's lowest value and ", _jsx("strong", { children: "100%" }), " its highest; each band gets its own colour."] })] })), _jsx(Box, { className: "twa:grid twa:items-end twa:gap-x-2 twa:gap-y-3 twa:mb-3 twa:w-fit", style: { gridTemplateColumns: rangeGridTemplateColumns }, children: this.props.ranges?.map((range, index, list) => (_jsxs(Box, { className: "twa:contents", "data-name": "percent-bar-range", children: [_jsxs(Flex, { flexDirection: "column", children: [isRangeValueTypeNumber && index === 0 && (_jsx(CheckBox, { onClick: () => this.setRangeColMin(range), checked: range.Min === 'Col-Min', className: "twa:mt-0 twa:mb-1 twa:text-3", disabled: this.props.disabled, children: "Use column min" })), _jsx(NumberInput, { disabled: this.props.disabled ||
|
|
112
112
|
range.Min === 'Col-Min' ||
|
|
113
|
-
(index === 0 && !isRangeValueTypeNumber), value: range.Min === 'Col-Min'
|
|
114
|
-
? this.props.minMaxRangeValues?.min ?? ''
|
|
115
|
-
: range.Min, onChange: (value) => {
|
|
113
|
+
(index === 0 && !isRangeValueTypeNumber), value: range.Min === 'Col-Min' ? this.props.minMaxRangeValues?.min ?? '' : range.Min, onChange: (value) => {
|
|
116
114
|
this.changeRangeMin(index, value);
|
|
117
|
-
} })] }), _jsxs(Flex, { flexDirection: "column", children: [isRangeValueTypeNumber && index === list.length - 1 && (_jsx(CheckBox, { className: "twa:mt-0 twa:mb-1 twa:text-3", onClick: () => this.setRangeColMax(range), checked: range.Max === 'Col-Max', disabled: this.props.disabled, children: "Use column max" })), _jsx(NumberInput, { value: range.Max === 'Col-Max'
|
|
118
|
-
? this.props.minMaxRangeValues?.max ?? ''
|
|
119
|
-
: range.Max, disabled: this.props.disabled ||
|
|
115
|
+
} })] }), _jsxs(Flex, { flexDirection: "column", children: [isRangeValueTypeNumber && index === list.length - 1 && (_jsx(CheckBox, { className: "twa:mt-0 twa:mb-1 twa:text-3", onClick: () => this.setRangeColMax(range), checked: range.Max === 'Col-Max', disabled: this.props.disabled, children: "Use column max" })), _jsx(NumberInput, { value: range.Max === 'Col-Max' ? this.props.minMaxRangeValues?.max ?? '' : range.Max, disabled: this.props.disabled ||
|
|
120
116
|
range.Max === 'Col-Max' ||
|
|
121
117
|
(index === list.length - 1 && !isRangeValueTypeNumber), onChange: (value) => {
|
|
122
118
|
this.changeRangeMax(index, value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import kebabCase from '../../../Utilities/
|
|
2
|
+
import { kebabCase } from '../../../Utilities/Extensions/StringExtensions';
|
|
3
3
|
import { ACCESS_LEVEL_FULL } from '../../../Utilities/Constants/GeneralConstants';
|
|
4
4
|
import * as ToolPanelRedux from '../../../Redux/ActionsReducers/ToolPanelRedux';
|
|
5
5
|
import { connect } from 'react-redux';
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { useLayoutEffect, useRef, useState } from 'react';
|
|
3
3
|
import { useAdaptable } from '../../AdaptableContext';
|
|
4
4
|
import { ADAPTABLE_BUTTON_SURFACE_DEFAULTS, AdaptableButtonView, } from '../AdaptableButton';
|
|
5
|
-
import kebabCase from '../../../Utilities/
|
|
5
|
+
import { kebabCase } from '../../../Utilities/Extensions/StringExtensions';
|
|
6
6
|
export const CustomToolPanelContent = (props) => {
|
|
7
7
|
const { customToolPanel } = props;
|
|
8
8
|
const { api } = useAdaptable();
|
|
@@ -14,8 +14,11 @@ export var ToolPanelConfigView;
|
|
|
14
14
|
})(ToolPanelConfigView || (ToolPanelConfigView = {}));
|
|
15
15
|
export const ToolPanelPopupSections = (props) => {
|
|
16
16
|
const { api } = useAdaptable();
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
// Start with both cards collapsed so the user sees the popup's full
|
|
18
|
+
// summary at a glance and explicitly chooses which to edit. `initialTab`
|
|
19
|
+
// is still accepted on the props for backwards compatibility but no
|
|
20
|
+
// longer pre-expands a card.
|
|
21
|
+
const { bindCard, hasExpandedCard, expandedFillsSpace } = useWizardCardAccordion(null);
|
|
19
22
|
const selectedModuleButtons = [];
|
|
20
23
|
if (ArrayExtensions.IsNotNullOrEmpty(props.ToolPanelState.ModuleButtons)) {
|
|
21
24
|
props.ToolPanelState.ModuleButtons.forEach((module) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import kebabCase from '../../Utilities/
|
|
2
|
+
import { kebabCase } from '../../Utilities/Extensions/StringExtensions';
|
|
3
3
|
import { ADAPTABLE_BUTTON_SURFACE_DEFAULTS, AdaptableButtonView, } from '../Components/AdaptableButton';
|
|
4
4
|
export const CustomDashboardButton = (props) => {
|
|
5
5
|
const { button } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import kebabCase from '../../Utilities/
|
|
2
|
+
import { kebabCase } from '../../Utilities/Extensions/StringExtensions';
|
|
3
3
|
import { ACCESS_LEVEL_FULL, ACCESS_LEVEL_HIDDEN, ACCESS_LEVEL_READ_ONLY, } from '../../Utilities/Constants/GeneralConstants';
|
|
4
4
|
import { connect } from 'react-redux';
|
|
5
5
|
import { Dashboard as DashboardUI, DashboardTab as DashboardTabUI, } from '../../components/Dashboard';
|
|
@@ -7,7 +7,7 @@ import { DataChangeHistoryDisable, DataChangeHistoryEnable, DataChangeHistoryRes
|
|
|
7
7
|
import { ButtonPlay } from '../Components/Buttons/ButtonPlay';
|
|
8
8
|
import { ButtonPause } from '../Components/Buttons/ButtonPause';
|
|
9
9
|
import { ButtonStop } from '../Components/Buttons/ButtonStop';
|
|
10
|
-
import { DateFormatter } from '../../Utilities/Helpers/
|
|
10
|
+
import { DateFormatter } from '../../Utilities/Helpers/DisplayFormatHelper';
|
|
11
11
|
import { Box, Flex } from '../../components/Flex';
|
|
12
12
|
class DataChangeHistoryPopupComponent extends React.Component {
|
|
13
13
|
render() {
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { DataSource, InfiniteTableGrid } from '../../components/InfiniteTable';
|
|
4
4
|
import { Flex } from '../../components/Flex';
|
|
5
5
|
import { DataChangeHistoryModuleId } from '../../Utilities/Constants/ModuleConstants';
|
|
6
|
-
import FormatHelper from '../../Utilities/Helpers/
|
|
6
|
+
import FormatHelper from '../../Utilities/Helpers/DisplayFormatHelper';
|
|
7
7
|
import { useAdaptable } from '../AdaptableContext';
|
|
8
8
|
import { ADAPTABLE_BUTTON_SURFACE_DEFAULTS, AdaptableButtonView, } from '../Components/AdaptableButton/AdaptableButtonView';
|
|
9
9
|
import { buildChangeHistoryButtons, buildDataChangeHistoryContext, } from './buildActionColumnButton';
|
|
@@ -5,7 +5,7 @@ import { DataChangeHistoryDisable, DataChangeHistoryEnable, DataChangeHistoryRes
|
|
|
5
5
|
import { ButtonPlay } from '../Components/Buttons/ButtonPlay';
|
|
6
6
|
import { ButtonPause } from '../Components/Buttons/ButtonPause';
|
|
7
7
|
import { ButtonStop } from '../Components/Buttons/ButtonStop';
|
|
8
|
-
import { DateFormatter } from '../../Utilities/Helpers/
|
|
8
|
+
import { DateFormatter } from '../../Utilities/Helpers/DisplayFormatHelper';
|
|
9
9
|
import Tooltip from '../../components/Tooltip';
|
|
10
10
|
import { useAdaptable } from '../AdaptableContext';
|
|
11
11
|
import SimpleButton from '../../components/SimpleButton';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import flatten from '../../../../Utilities/
|
|
2
|
+
import { flatten } from '../../../../Utilities/Extensions/ArrayExtensions';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import HelpBlock from '../../../../components/HelpBlock';
|
|
5
5
|
import { Icon } from '../../../../components/icons';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import uniq from '../../../Utilities/
|
|
4
|
-
import clamp from '../../../Utilities/
|
|
3
|
+
import { uniq } from '../../../Utilities/Extensions/ArrayExtensions';
|
|
4
|
+
import { clamp } from '../../../Utilities/Extensions/NumberExtensions';
|
|
5
5
|
import HelpBlock from '../../../components/HelpBlock';
|
|
6
6
|
import Input from '../../../components/Input';
|
|
7
7
|
import SimpleButton from '../../../components/SimpleButton';
|
|
@@ -14,7 +14,7 @@ import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableW
|
|
|
14
14
|
import StringExtensions from '../../../Utilities/Extensions/StringExtensions';
|
|
15
15
|
import { Tag } from '../../../components/Tag';
|
|
16
16
|
import { useAdaptable } from '../../AdaptableContext';
|
|
17
|
-
import FormatHelper from '../../../Utilities/Helpers/
|
|
17
|
+
import FormatHelper from '../../../Utilities/Helpers/DisplayFormatHelper';
|
|
18
18
|
import { Toggle, ToggleGroup } from '../../../components/Toggle';
|
|
19
19
|
import { DEFAULT_DOUBLE_DISPLAY_VALUE, DEFAULT_STRING_DISPLAY_VALUE, } from '../../../Utilities/Constants/GeneralConstants';
|
|
20
20
|
import Textarea from '../../../components/Textarea';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { resolveDisplayFormat } from '../../../AdaptableState/Common/AdaptableFormatPresets';
|
|
3
3
|
import { DEFAULT_DOUBLE_DISPLAY_VALUE, DEFAULT_STRING_DISPLAY_VALUE, } from '../../../Utilities/Constants/GeneralConstants';
|
|
4
|
-
import FormatHelper from '../../../Utilities/Helpers/
|
|
4
|
+
import FormatHelper from '../../../Utilities/Helpers/DisplayFormatHelper';
|
|
5
5
|
import { convertAdaptableStyleToCSS } from '../../../Utilities/Helpers/StyleHelper';
|
|
6
6
|
import { Card } from '../../../components/Card';
|
|
7
7
|
import { Box } from '../../../components/Flex';
|
|
@@ -4,7 +4,7 @@ import Radio, { RadioGroup } from '../../../components/Radio';
|
|
|
4
4
|
import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
|
|
5
5
|
import AdaptableInput from '../../Components/AdaptableInput';
|
|
6
6
|
import { CheckBox } from '../../../components/CheckBox';
|
|
7
|
-
import { DateFormatter } from '../../../Utilities/Helpers/
|
|
7
|
+
import { DateFormatter } from '../../../Utilities/Helpers/DisplayFormatHelper';
|
|
8
8
|
import { parseToISO } from '../../../Utilities/Helpers/DateHelper';
|
|
9
9
|
import { Tag } from '../../../components/Tag';
|
|
10
10
|
import { SpecialColumnSettingsWizardStep } from '../../SpecialColumnSettingsWizardStep';
|
|
@@ -4,11 +4,12 @@ import SimpleButton from '../../components/SimpleButton';
|
|
|
4
4
|
import { useAdaptable } from '../AdaptableContext';
|
|
5
5
|
import { isPivotLayout } from '../../Utilities/isPivotLayout';
|
|
6
6
|
import { ACCESS_LEVEL_READ_ONLY } from '../../Utilities/Constants/GeneralConstants';
|
|
7
|
+
import { objectListActionButtonClassName } from '../Components/AdaptableObjectList/objectListActionButtonStyles';
|
|
7
8
|
export const LayoutCloneButton = ({ data, accessLevel }) => {
|
|
8
9
|
const adaptable = useAdaptable();
|
|
9
10
|
const isDisabled = accessLevel === ACCESS_LEVEL_READ_ONLY;
|
|
10
11
|
const handleClick = React.useCallback(() => {
|
|
11
12
|
adaptable.api.layoutApi.showLayoutEditor(data.Name, isPivotLayout(data) ? 'pivot' : 'table', 'Clone');
|
|
12
13
|
}, []);
|
|
13
|
-
return (_jsx(SimpleButton, { onClick: handleClick, disabled: isDisabled, variant: "text", icon: "clone", tooltip: "Clone" }));
|
|
14
|
+
return (_jsx(SimpleButton, { onClick: handleClick, disabled: isDisabled, variant: "text", iconSize: 24, icon: "clone", tooltip: "Clone", className: objectListActionButtonClassName('clone') }));
|
|
14
15
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
4
4
|
import { connect } from 'react-redux';
|
|
5
|
-
import isEqual from '../../Utilities/
|
|
5
|
+
import { isEqual } from '../../Utilities/Extensions/ObjectExtensions';
|
|
6
6
|
import join from '../../components/utils/join';
|
|
7
7
|
import * as LayoutRedux from '../../Redux/ActionsReducers/LayoutRedux';
|
|
8
8
|
import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
@@ -138,7 +138,7 @@ const RowSummaryEditorForm = React.memo(({ rowSummary, onChange, availableScalar
|
|
|
138
138
|
sortUnorderedItems: false,
|
|
139
139
|
}).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
|
|
140
140
|
}, [rowSummary.ColumnsMap]);
|
|
141
|
-
return (_jsxs(Box, { className: "twa:flex twa:flex-col twa:gap-3 twa:h-full twa:
|
|
141
|
+
return (_jsxs(Box, { className: "twa:flex twa:flex-col twa:gap-3 twa:h-full twa:overflow-hidden", children: [_jsxs(FormLayout, { children: [_jsx(FormRow, { label: "Position", children: _jsx(SingleSelect, { items: [
|
|
142
142
|
{
|
|
143
143
|
label: 'Top',
|
|
144
144
|
value: 'Top',
|
|
@@ -157,7 +157,7 @@ const RowSummaryEditorForm = React.memo(({ rowSummary, onChange, availableScalar
|
|
|
157
157
|
...rowSummary,
|
|
158
158
|
IncludeOnlyFilteredRows,
|
|
159
159
|
});
|
|
160
|
-
}, children: "Include Only Filtered Rows" }) })] }), _jsxs(Card, { shadow: false, className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:flex twa:flex-col", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Column Aggregations" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Select columns and choose an aggregation function for each" })] }), _jsx(Card.Body, { className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:p-1", children: _jsx(ValueSelector, {
|
|
160
|
+
}, children: "Include Only Filtered Rows" }) })] }), _jsxs(Card, { shadow: false, className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:flex twa:flex-col", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Column Aggregations" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Select columns and choose an aggregation function for each" })] }), _jsx(Card.Body, { className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:p-1", children: _jsx(ValueSelector, { showFilterInput: true, className: "twa:max-h-full twa:min-h-0", toggleSelectionOnRowClick: false, filter: columnFilter, toIdentifier: (column) => column.columnId, toLabel: (option) => option.friendlyName ?? option.columnId, options: columns, optionLayout: "label-beside-checkbox", toListLabel: (column) => {
|
|
161
161
|
const label = column.friendlyName ?? column.columnId;
|
|
162
162
|
const disabled = !(column.columnId in (rowSummary.ColumnsMap ?? {}));
|
|
163
163
|
if (disabled) {
|
|
@@ -238,9 +238,9 @@ export const RowSummarySection = (props) => {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
|
-
return (_jsxs(Box, { className: cn(getWizardAccordionSectionClassName(hasExpandedCard, expandedFillsSpace), 'twa:p-3'), children: [_jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:mb-2 twa:max-w-[520px] twa:shrink-0", children: "Add summary rows at the top or bottom of the grid with aggregated column values" }), _jsx(Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: _jsx(ButtonNew, { onClick: handleAddRowSummary, children: "Add Row Summary" }) }), _jsx(Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0", children: rowSummaries.map((rowSummary, index) => {
|
|
241
|
+
return (_jsxs(Box, { className: cn(getWizardAccordionSectionClassName(hasExpandedCard, expandedFillsSpace), 'twa:p-3'), children: [_jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:mb-2 twa:max-w-[520px] twa:shrink-0", children: "Add summary rows at the top or bottom of the grid with aggregated column values" }), _jsx(Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: _jsx(ButtonNew, { onClick: handleAddRowSummary, children: "Add Row Summary" }) }), _jsx(Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0 twa:flex-1 twa:overflow-y-auto", children: rowSummaries.map((rowSummary, index) => {
|
|
242
242
|
const cardBinding = bindCard(rowSummaryCardId(index), { fillAvailable: true });
|
|
243
|
-
return (_jsx(CollapsibleWizardCard, { ...cardBinding, surface: "panel", "data-name": `row-summary-${index}`, title: `Row Summary ${index + 1}`, help: "Configure position, filters, and column aggregations for this summary row", collapsedHelp: false, compactSummary: _jsx(RowSummaryPositionTag, { position: rowSummary.Position }), headerVisual: !cardBinding.expanded ? (_jsx(RowSummaryPositionTag, { position: rowSummary.Position })) : undefined, headerActions: _jsxs(_Fragment, { children: [cardBinding.expanded ? (_jsx(SuspendToggleButton, {
|
|
243
|
+
return (_jsx(CollapsibleWizardCard, { ...cardBinding, surface: "panel", "data-name": `row-summary-${index}`, title: `Row Summary ${index + 1}`, help: "Configure position, filters, and column aggregations for this summary row", collapsedHelp: false, compactSummary: _jsx(RowSummaryPositionTag, { position: rowSummary.Position }), headerVisual: !cardBinding.expanded ? (_jsx(RowSummaryPositionTag, { position: rowSummary.Position })) : undefined, headerActions: _jsxs(_Fragment, { children: [cardBinding.expanded ? (_jsx(SuspendToggleButton, { className: objectListActionButtonClassName('suspend'), onSuspend: () => {
|
|
244
244
|
const newSummaries = [...rowSummaries];
|
|
245
245
|
newSummaries[index] = { ...rowSummary, IsSuspended: true };
|
|
246
246
|
props.onChange({ ...layout, RowSummaries: newSummaries });
|
|
@@ -248,7 +248,7 @@ export const RowSummarySection = (props) => {
|
|
|
248
248
|
const newSummaries = [...rowSummaries];
|
|
249
249
|
newSummaries[index] = { ...rowSummary, IsSuspended: false };
|
|
250
250
|
props.onChange({ ...layout, RowSummaries: newSummaries });
|
|
251
|
-
}, suspendableObject: rowSummary })) : null, _jsx(SimpleButton, { icon: "delete", variant: "text", tooltip: "Delete row summary", className: objectListActionButtonClassName('delete'), onClick: () => handleDeleteRowSummary(index) })] }), summary: _jsx(RowSummaryCardSummary, { rowSummary: rowSummary }), className:
|
|
251
|
+
}, suspendableObject: rowSummary })) : null, _jsx(SimpleButton, { icon: "delete", variant: "text", tooltip: "Delete row summary", className: objectListActionButtonClassName('delete'), onClick: () => handleDeleteRowSummary(index) })] }), summary: _jsx(RowSummaryCardSummary, { rowSummary: rowSummary }), className: cn('twa:overflow-hidden twa:flex twa:flex-col', cardBinding.expanded && 'twa:min-h-[500px]'), bodyClassName: " twa:overflow-hidden twa:flex twa:flex-col twa:pt-0!", children: _jsx(RowSummaryEditorForm, { rowSummary: rowSummary, availableScalarExpressions: availableScalarExpressions, onChange: (nextRowSummary) => {
|
|
252
252
|
const newSummaries = [...rowSummaries];
|
|
253
253
|
newSummaries[index] = nextRowSummary;
|
|
254
254
|
props.onChange({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import throttle from '../../Utilities/
|
|
2
|
+
import { throttle } from '../../Utilities/Helpers/TimingHelper';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import Textarea from '../../components/Textarea';
|
|
5
5
|
import SimpleButton from '../../components/SimpleButton';
|
|
@@ -7,7 +7,7 @@ import { useAdaptable } from '../AdaptableContext';
|
|
|
7
7
|
import { AdaptableButtonComponent } from '../Components/AdaptableButton';
|
|
8
8
|
import { PopupPanel } from '../Components/Popups/AdaptablePopup/PopupPanel';
|
|
9
9
|
import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
10
|
-
import FormatHelper from '../../Utilities/Helpers/
|
|
10
|
+
import FormatHelper from '../../Utilities/Helpers/DisplayFormatHelper';
|
|
11
11
|
import { ACCESS_LEVEL_READ_ONLY } from '../../Utilities/Constants/GeneralConstants';
|
|
12
12
|
const tableDOMProps = {
|
|
13
13
|
style: {
|
|
@@ -5,7 +5,7 @@ import { SummaryText, useOnePageAdaptableWizardContext, } from '../../Wizard/One
|
|
|
5
5
|
import { Tag } from '../../../components/Tag';
|
|
6
6
|
import { Box, Flex } from '../../../components/Flex';
|
|
7
7
|
import { Card } from '../../../components/Card';
|
|
8
|
-
import { plusMinusDecrementKeyFromOptionsOnly, plusMinusIncrementKeyFromOptionsOnly, plusMinusResolvedKeysConflict, plusMinusTriggerSameAsBaseline, resolvePlusMinusTriggerKeysForNudge, } from '../../../Utilities/Helpers/
|
|
8
|
+
import { plusMinusDecrementKeyFromOptionsOnly, plusMinusIncrementKeyFromOptionsOnly, plusMinusResolvedKeysConflict, plusMinusTriggerSameAsBaseline, resolvePlusMinusTriggerKeysForNudge, } from '../../../Utilities/Helpers/PlusMinusHelper';
|
|
9
9
|
export const PlusMinusSettingsSummary = () => {
|
|
10
10
|
const { data, api } = useOnePageAdaptableWizardContext();
|
|
11
11
|
const { incrementKey, decrementKey } = resolvePlusMinusTriggerKeysForNudge(data, api.optionsApi.getEditOptions().plusMinusOptions ?? {});
|
|
@@ -11,7 +11,7 @@ import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
|
11
11
|
import { useQuickSearchDebounced } from './useQuickSearchDebounced';
|
|
12
12
|
import { QuickSearchInput } from './QuickSearchInput';
|
|
13
13
|
import { Card } from '../../components/Card';
|
|
14
|
-
import { isQuickSearchStyleUnset, resolveQuickSearchCurrentTextMatchStyle, resolveQuickSearchTextMatchStyle, } from '../../Utilities/Helpers/
|
|
14
|
+
import { isQuickSearchStyleUnset, resolveQuickSearchCurrentTextMatchStyle, resolveQuickSearchTextMatchStyle, } from '../../Utilities/Helpers/QuickSearchHelper';
|
|
15
15
|
const QuickSearchStyleEditor = ({ api, helpText, headerText, style, updateStyle }) => (_jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: headerText }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: helpText })] }), _jsx(Card.Body, { className: "twa:p-1", children: _jsx(StyleComponent, { headless: true, hidePreview: true, className: "twa:h-full twa:flex-1 twa:rounded-none", api: api, Style: style, UpdateStyle: updateStyle }) })] }));
|
|
16
16
|
const QuickSearchPopupComponent = (props) => {
|
|
17
17
|
const [searchText, search] = useQuickSearchDebounced(props);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState, useMemo } from 'react';
|
|
2
|
-
import debounce from '../../Utilities/
|
|
2
|
+
import { debounce } from '../../Utilities/Helpers/TimingHelper';
|
|
3
3
|
import { QUICK_SEARCH_DEBOUNCE_TIME } from '../../Utilities/Constants/GeneralConstants';
|
|
4
4
|
export const useQuickSearchDebounced = (props) => {
|
|
5
5
|
const [searchText, setSearchText] = useState(props.QuickSearchText ?? '');
|
|
@@ -9,7 +9,7 @@ import { Box } from '../../../components/Flex';
|
|
|
9
9
|
import { Card } from '../../../components/Card';
|
|
10
10
|
import { SingleSelect } from '../../../components/NewSelect';
|
|
11
11
|
import ObjectFactory from '../../../Utilities/ObjectFactory';
|
|
12
|
-
import { buildCronExpression, buildRunAtIso, inferPresetFromCron, isScheduleValid as validateSchedule, parseOneOffDateFromRunAt, parseTimeFromSchedule, } from '../../../Utilities/Helpers/ScheduleHelper';
|
|
12
|
+
import { buildCronExpression, buildRunAtIso, inferPresetFromCron, isScheduleValid as validateSchedule, parseOneOffDateFromRunAt, parseTimeFromSchedule, } from '../../../Utilities/Helpers/Scheduling/ScheduleHelper';
|
|
13
13
|
export const isScheduleValid = (holder) => {
|
|
14
14
|
if (!holder?.Schedule) {
|
|
15
15
|
return 'Schedule is not specified';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import chunk from '../Utilities/
|
|
2
|
+
import { chunk } from '../Utilities/Extensions/ArrayExtensions';
|
|
3
3
|
import { CheckBox } from '../components/CheckBox';
|
|
4
4
|
import FormLayout, { FormRow } from '../components/FormLayout';
|
|
5
5
|
import { useAdaptable } from './AdaptableContext';
|
|
@@ -47,18 +47,22 @@ export const StatusBarPopup = (props) => {
|
|
|
47
47
|
moduleShortcutIds.push(item.Id);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
+
// Roughly balance the two boxes by item count (~10 panels vs ~17 shortcuts)
|
|
51
|
+
// so the wider list gets the extra room and they feel more even.
|
|
50
52
|
return [
|
|
51
53
|
{
|
|
52
54
|
listId: 'UNUSED-PANELS',
|
|
53
55
|
title: 'Status Panels',
|
|
54
56
|
help: 'Fully featured actionable controls',
|
|
55
57
|
items: statusPanelIds,
|
|
58
|
+
flex: 40,
|
|
56
59
|
},
|
|
57
60
|
{
|
|
58
61
|
listId: 'UNUSED-SHORTCUTS',
|
|
59
62
|
title: 'Module Shortcuts',
|
|
60
63
|
help: 'Buttons to open Module Status Panel',
|
|
61
64
|
items: moduleShortcutIds,
|
|
65
|
+
flex: 60,
|
|
62
66
|
},
|
|
63
67
|
];
|
|
64
68
|
}, [availableItems, adaptable]);
|
|
@@ -21,7 +21,6 @@ import { BadgePillStyleEditor, getBadgePillStyleSummaryItems } from './BadgePill
|
|
|
21
21
|
import { getCellBoxStyleSummaryItems, getCellFontStyleSummaryItems, StyledColumnCellStyleEditor, } from './StyledColumnSliceStyleEditors';
|
|
22
22
|
import { Card } from '../../../components/Card';
|
|
23
23
|
import { useAdaptable } from '../../AdaptableContext';
|
|
24
|
-
import { StyledColumnBadgePreviewCard } from './StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview';
|
|
25
24
|
import { CollapsibleWizardCard, CollapsibleWizardValueSummary, getWizardAccordionSectionClassName, useWizardCardAccordion, } from '../../Wizard/CollapsibleWizardCard';
|
|
26
25
|
import { SingleSelect } from '../../../components/NewSelect';
|
|
27
26
|
import { cn } from '../../../lib/utils';
|
|
@@ -229,7 +228,7 @@ export const StyledColumnBadgeSection = (props) => {
|
|
|
229
228
|
}
|
|
230
229
|
}
|
|
231
230
|
};
|
|
232
|
-
return (_jsxs(Box, { className: cn(getWizardAccordionSectionClassName(hasExpandedCard, expandedFillsSpace), 'twa:p-2'), children: [_jsx(Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: _jsx(ButtonNew, { onClick: handleAddBadge, children: "Add Badge" }) }), _jsx(Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0", children: badges.map((badge, index) => {
|
|
231
|
+
return (_jsxs(Box, { className: cn(getWizardAccordionSectionClassName(hasExpandedCard, expandedFillsSpace), 'twa:p-2'), children: [_jsx(Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: _jsx(ButtonNew, { onClick: handleAddBadge, children: "Add Badge" }) }), _jsx(Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0 twa:overflow-y-auto", children: badges.map((badge, index) => {
|
|
233
232
|
const handleEditBadge = (nextBadge) => {
|
|
234
233
|
const newBadges = [...badges];
|
|
235
234
|
newBadges[index] = nextBadge;
|
|
@@ -285,7 +284,7 @@ export const StyledColumnBadgeStyleSection = (props) => {
|
|
|
285
284
|
delete cleaned.Cell;
|
|
286
285
|
props.onChange({ ...data, BadgeStyle: cleaned });
|
|
287
286
|
}
|
|
288
|
-
} }) })] })] })
|
|
287
|
+
} }) })] })] })] }));
|
|
289
288
|
};
|
|
290
289
|
export const renderBadgeStyleSummary = (styledColumn, api) => {
|
|
291
290
|
const items = getStyledColumnBadgeStyleViewValues(styledColumn, api);
|
|
@@ -12,7 +12,6 @@ import { Box, Flex } from '../../../components/Flex';
|
|
|
12
12
|
import { getCellBoxStyleSummaryItems, StyledColumnCellStyleEditor, } from './StyledColumnSliceStyleEditors';
|
|
13
13
|
import { Card } from '../../../components/Card';
|
|
14
14
|
import ErrorBox from '../../../components/ErrorBox';
|
|
15
|
-
import { StyledColumnSparklinePreviewCard } from './StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview';
|
|
16
15
|
const STYLE_FORM_SIZES = ['200px', '1fr'];
|
|
17
16
|
/** Sentinel for the theme dropdown — persisted options omit `theme` when this is chosen. */
|
|
18
17
|
const SPARKLINE_CUSTOM_COLOURS_THEME = '__custom__';
|
|
@@ -167,7 +166,7 @@ export const StyledColumnSparklineSettingsSection = ({ onChange }) => {
|
|
|
167
166
|
delete sparkStyle.Cell;
|
|
168
167
|
}
|
|
169
168
|
onChange({ ...data, SparklineStyle: sparkStyle });
|
|
170
|
-
} }) })] })
|
|
169
|
+
} }) })] })] }));
|
|
171
170
|
};
|
|
172
171
|
const SparklineObjectArrayProperties = ({ options, onChange, }) => {
|
|
173
172
|
const { data, api } = useOnePageAdaptableWizardContext();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { OnePageAdaptableWizard, OnePageWizardSummary, } from '../../Wizard/OnePageAdaptableWizard';
|
|
@@ -17,14 +17,14 @@ import { isValidIconStyleMappings, renderStyledColumnIconStyleSummary, renderSty
|
|
|
17
17
|
import { ObjectTagsWizardSection, renderObjectTagsSummary, } from '../../Wizard/ObjectTagsWizardSection';
|
|
18
18
|
import { renderBadgeStyleSummary, renderBadgeSummary, StyledColumnBadgeStyleSection, StyledColumnBadgeSection, } from './StyledColumnBadgeSection';
|
|
19
19
|
import { Box } from '../../../components/Flex';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
20
|
+
import { StyledColumnGradientPreview } from './StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview';
|
|
21
|
+
import { StyledColumnPercentBarPreview } from './StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview';
|
|
22
|
+
import { StyledColumnBadgePreview } from './StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview';
|
|
23
|
+
import { StyledColumnRatingPreview } from './StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview';
|
|
24
|
+
import { StyledColumnIconPreview } from './StyledColumnWizardStyleSection/Components/StyledColumnIconPreview';
|
|
25
|
+
import { StyledColumnBulletPreview } from './StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview';
|
|
26
|
+
import { StyledColumnRangeBarPreview } from './StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview';
|
|
27
|
+
import { StyledColumnSparklinePreview } from './StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview';
|
|
28
28
|
/**
|
|
29
29
|
* Mirrors the migration default in `VersionUpgrade23.patchStyledColumnName` and
|
|
30
30
|
* the auto-fill logic in `StyledColumnWizardTypeSection` so users opening the
|
|
@@ -265,12 +265,41 @@ export const StyledColumnWizard = (props) => {
|
|
|
265
265
|
render: () => (_jsx(Box, { className: "twa:p-2", children: _jsx(StyledColumnBadgeStyleSection, { onChange: setStyledColumn }) })),
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
+
// Persistent live preview shown at the top of the section content on
|
|
269
|
+
// every step. We render the bare preview (no Card chrome) so it sits
|
|
270
|
+
// flush above the form. Only one of these can apply at a time — the
|
|
271
|
+
// styled column owns exactly one of these style buckets.
|
|
272
|
+
let headerPreview = null;
|
|
273
|
+
if (styledColumn.GradientStyle) {
|
|
274
|
+
headerPreview = _jsx(StyledColumnGradientPreview, { data: styledColumn });
|
|
275
|
+
}
|
|
276
|
+
else if (styledColumn.PercentBarStyle) {
|
|
277
|
+
headerPreview = _jsx(StyledColumnPercentBarPreview, { data: styledColumn });
|
|
278
|
+
}
|
|
279
|
+
else if (styledColumn.BadgeStyle) {
|
|
280
|
+
headerPreview = _jsx(StyledColumnBadgePreview, { data: styledColumn });
|
|
281
|
+
}
|
|
282
|
+
else if (styledColumn.RatingStyle) {
|
|
283
|
+
headerPreview = _jsx(StyledColumnRatingPreview, { data: styledColumn });
|
|
284
|
+
}
|
|
285
|
+
else if (styledColumn.IconStyle) {
|
|
286
|
+
headerPreview = _jsx(StyledColumnIconPreview, { data: styledColumn });
|
|
287
|
+
}
|
|
288
|
+
else if (styledColumn.BulletChartStyle) {
|
|
289
|
+
headerPreview = _jsx(StyledColumnBulletPreview, { data: styledColumn });
|
|
290
|
+
}
|
|
291
|
+
else if (styledColumn.RangeBarStyle) {
|
|
292
|
+
headerPreview = _jsx(StyledColumnRangeBarPreview, { data: styledColumn });
|
|
293
|
+
}
|
|
294
|
+
else if (styledColumn.SparklineStyle) {
|
|
295
|
+
headerPreview = _jsx(StyledColumnSparklinePreview, { data: styledColumn });
|
|
296
|
+
}
|
|
268
297
|
return (_jsx(OnePageAdaptableWizard, { defaultCurrentSectionName: defaultCurrentSectionName, moduleInfo: props.moduleInfo,
|
|
269
298
|
// Display the picked type in the header (e.g. "Gradient Column",
|
|
270
299
|
// "Percent Bar Column") so the user always knows which kind of
|
|
271
300
|
// column they're configuring. Falls back to "Styled Column"
|
|
272
301
|
// before a type has been selected.
|
|
273
|
-
moduleName: getStyledColumnWizardTitle(styledColumn), data: styledColumn, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
|
|
302
|
+
moduleName: getStyledColumnWizardTitle(styledColumn), data: styledColumn, headerPreview: headerPreview, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
|
|
274
303
|
{
|
|
275
304
|
details: 'Enter a Name and select a Styled Column Type',
|
|
276
305
|
isValid: (data) => {
|
|
@@ -308,7 +337,7 @@ export const StyledColumnWizard = (props) => {
|
|
|
308
337
|
title: 'Summary',
|
|
309
338
|
details: 'Review your Styled Column',
|
|
310
339
|
render: () => {
|
|
311
|
-
return (
|
|
340
|
+
return (_jsx(Box, { className: "twa:p-2 twa:flex twa:flex-col twa:gap-3", children: _jsx(OnePageWizardSummary, {}) }));
|
|
312
341
|
},
|
|
313
342
|
},
|
|
314
343
|
] }));
|