@adaptabletools/adaptable-cjs 23.0.0-canary.3 → 23.0.0-canary.5
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 +116 -61
- package/package.json +9 -4
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +0 -4
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +0 -7
- package/src/AdaptableState/Common/AdaptableForm.d.ts +18 -1
- package/src/AdaptableState/Common/AdaptableForm.js +34 -0
- package/src/AdaptableState/Common/AggregationColumns.d.ts +14 -6
- package/src/AdaptableState/Common/AggregationColumns.js +30 -3
- package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +3 -2
- package/src/AdaptableState/Common/ColumnScope.d.ts +4 -0
- package/src/AdaptableState/Common/Enums.d.ts +5 -10
- package/src/AdaptableState/Common/Enums.js +5 -11
- package/src/AdaptableState/PlusMinusState.d.ts +3 -3
- package/src/AdaptableState/ShortcutState.d.ts +2 -6
- package/src/AdaptableState/StyledColumnState.d.ts +3 -5
- package/src/AdaptableState/ThemeState.d.ts +33 -28
- package/src/Api/EventApi.d.ts +14 -1
- package/src/Api/Events/ThemeChanged.d.ts +6 -0
- package/src/Api/Events/ThemeSelected.d.ts +11 -0
- package/src/Api/Events/ThemeSelected.js +2 -0
- package/src/Api/Implementation/EventApiImpl.js +4 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -2
- package/src/Api/Implementation/LayoutApiImpl.js +0 -14
- package/src/Api/Implementation/LayoutHelpers.d.ts +2 -0
- package/src/Api/Implementation/LayoutHelpers.js +31 -8
- package/src/Api/Implementation/ThemeApiImpl.d.ts +3 -2
- package/src/Api/Implementation/ThemeApiImpl.js +19 -15
- package/src/Api/Internal/EventInternalApi.d.ts +2 -0
- package/src/Api/Internal/EventInternalApi.js +8 -1
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +4 -4
- package/src/Api/Internal/StyledColumnInternalApi.js +4 -4
- package/src/Api/Internal/ThemeInternalApi.d.ts +0 -1
- package/src/Api/Internal/ThemeInternalApi.js +0 -10
- package/src/Api/LayoutApi.d.ts +1 -8
- package/src/Api/ThemeApi.d.ts +6 -2
- package/src/Redux/ActionsReducers/ThemeRedux.d.ts +3 -3
- package/src/Strategy/CalculatedColumnModule.js +3 -1
- package/src/Strategy/FormatColumnModule.js +12 -5
- package/src/Strategy/LayoutModule.js +13 -8
- package/src/Strategy/StyledColumnModule.js +58 -30
- package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
- package/src/Utilities/Constants/ReduxConstants.js +1 -14
- package/src/Utilities/Helpers/FormatHelper.js +20 -1
- package/src/Utilities/Helpers/SparklineOptionsHelper.d.ts +7 -0
- package/src/Utilities/Helpers/SparklineOptionsHelper.js +68 -0
- package/src/Utilities/Helpers/StyledColumnGradientHelper.d.ts +23 -1
- package/src/Utilities/Helpers/StyledColumnGradientHelper.js +212 -1
- package/src/Utilities/Helpers/ThemeHelpers.d.ts +5 -0
- package/src/Utilities/Helpers/ThemeHelpers.js +43 -0
- package/src/Utilities/Helpers/percentBarPreviewHelper.d.ts +19 -0
- package/src/Utilities/Helpers/percentBarPreviewHelper.js +155 -0
- package/src/Utilities/ObjectFactory.d.ts +1 -3
- package/src/Utilities/ObjectFactory.js +0 -9
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +7 -0
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.d.ts +4 -0
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.js +120 -0
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +1 -0
- package/src/Utilities/Services/ThemeService.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +17 -16
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +113 -102
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +12 -13
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +54 -54
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +29 -37
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +2 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +9 -13
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +28 -15
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +7 -9
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +3 -10
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +35 -52
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +4 -31
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/PreviewChartSection.d.ts +5 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/PreviewChartSection.js +26 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +9 -6
- package/src/View/Comments/CommentsEditor.js +1 -1
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +1 -1
- package/src/View/Components/ModuleProfile.js +1 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +0 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +1 -2
- package/src/View/Components/RangesComponent.d.ts +7 -2
- package/src/View/Components/RangesComponent.js +94 -22
- package/src/View/Components/Selectors/ColumnSelector.js +5 -0
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +1 -1
- package/src/View/Components/ValueSelector/index.js +70 -57
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +8 -13
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +8 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +11 -12
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +5 -4
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +2 -1
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +4 -15
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +24 -27
- package/src/View/Export/Wizard/ReportNameWizardSection.js +8 -11
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +19 -22
- package/src/View/Export/Wizard/ScheduledReportSettings.d.ts +2 -0
- package/src/View/Export/Wizard/ScheduledReportSettings.js +12 -12
- package/src/View/Export/Wizard/ScheduledReportWizard.js +2 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +8 -6
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +22 -21
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -11
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +19 -3
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +7 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +120 -13
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.d.ts +15 -0
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +78 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +4 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +34 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +11 -6
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +64 -13
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -1
- package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.d.ts +2 -0
- package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.js +19 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnDefinitionWizardSection.d.ts +10 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnDefinitionWizardSection.js +60 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +2 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +35 -70
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +14 -10
- package/src/View/Layout/LayoutViewPanel.js +23 -21
- package/src/View/Layout/TransposedPopup.js +2 -2
- package/src/View/Layout/Wizard/LayoutWizard.js +3 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +2 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +116 -26
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +79 -79
- package/src/View/Layout/Wizard/sections/FilterSection.js +31 -32
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +10 -10
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +1 -2
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +101 -51
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +9 -8
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +4 -4
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +36 -33
- package/src/View/Layout/Wizard/sections/RowSelectionSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +95 -73
- package/src/View/Layout/Wizard/sections/SettingsSection.js +3 -4
- package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +7 -12
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +1 -3
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.d.ts +4 -0
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +45 -12
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +10 -17
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +2 -6
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +5 -21
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +15 -21
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +10 -17
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +16 -5
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -2
- package/src/View/Shortcut/shortcutOperations.d.ts +3 -0
- package/src/View/Shortcut/shortcutOperations.js +32 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +7 -6
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +26 -16
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +10 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +100 -15
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +14 -0
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +48 -25
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.d.ts +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +109 -33
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +20 -12
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +124 -23
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.d.ts +1 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +35 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +88 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +125 -35
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.d.ts +1 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +55 -74
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.js +20 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +6 -12
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +5 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +5 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +11 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.js +20 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +3 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +32 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +64 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.d.ts +10 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +35 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.d.ts +10 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +96 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +57 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +58 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +18 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +66 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.d.ts +10 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +133 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +12 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts +1 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +53 -29
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +1 -1
- package/src/View/Theme/ThemePopup.d.ts +2 -14
- package/src/View/Theme/ThemePopup.js +1 -36
- package/src/View/UIHelper.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +6 -20
- package/src/View/renderWithAdaptableContext.js +1 -2
- package/src/agGrid/AdaptableAgGrid.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +36 -41
- package/src/agGrid/AgGridAdapter.d.ts +1 -1
- package/src/agGrid/AgGridAdapter.js +27 -17
- package/src/agGrid/AgGridColumnAdapter.js +10 -19
- package/src/agGrid/AgGridMenuAdapter.d.ts +0 -1
- package/src/agGrid/AgGridMenuAdapter.js +20 -37
- package/src/agGrid/buildValueAggregationMenuItem.d.ts +19 -0
- package/src/agGrid/buildValueAggregationMenuItem.js +114 -0
- package/src/agGrid/cellRenderers/IconRenderer.d.ts +6 -0
- package/src/agGrid/cellRenderers/IconRenderer.js +46 -17
- package/src/agGrid/createAgGridIcon.d.ts +10 -0
- package/src/agGrid/createAgGridIcon.js +19 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +10 -5
- package/src/components/Combobox/VirtualizedList.js +5 -5
- package/src/components/Combobox/comboboxUtils.d.ts +4 -1
- package/src/components/Combobox/comboboxUtils.js +2 -0
- package/src/components/Combobox/index.d.ts +1 -0
- package/src/components/Combobox/index.js +36 -16
- package/src/components/DragAndDropContext/UnusedPanel.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/Input/NumberInput.js +1 -1
- package/src/components/Panel/index.js +1 -1
- package/src/components/SimpleButton/index.js +4 -4
- package/src/components/Toggle/Toggle.js +1 -1
- package/src/components/Toggle/ToggleGroup.js +1 -1
- package/src/components/Tree/TreeDropdown/index.js +1 -5
- package/src/env.js +2 -2
- package/src/layout-manager/src/LayoutManagerModel.d.ts +5 -1
- package/src/layout-manager/src/index.js +2 -9
- package/src/metamodel/adaptable.metamodel.d.ts +39 -46
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +5 -5
- package/themes/dark.css +1 -68
- package/themes/light.css +1 -5
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableState/Common/FilterActionOnDataChange.d.ts +0 -17
- package/src/AdaptableState/Common/FilterActionOnDataChange.js +0 -5
- package/src/Aggregation/ParameterizedAggregationRegistry.d.ts +0 -35
- package/src/Aggregation/ParameterizedAggregationRegistry.js +0 -74
- package/src/Aggregation/definitions/weightedAverageAggregationDefinition.d.ts +0 -3
- package/src/Aggregation/definitions/weightedAverageAggregationDefinition.js +0 -58
- package/src/Aggregation/parameterizedAggregationColumnMenu.d.ts +0 -8
- package/src/Aggregation/parameterizedAggregationColumnMenu.js +0 -143
- package/src/Aggregation/parameterizedAggregationHeader.d.ts +0 -13
- package/src/Aggregation/parameterizedAggregationHeader.js +0 -65
- package/src/Aggregation/parameterizedAggregationHelpers.d.ts +0 -23
- package/src/Aggregation/parameterizedAggregationHelpers.js +0 -121
- package/src/Aggregation/parameterizedAggregationWizardHelpers.d.ts +0 -9
- package/src/Aggregation/parameterizedAggregationWizardHelpers.js +0 -74
- package/src/Aggregation/validateParameterizedAggregations.d.ts +0 -4
- package/src/Aggregation/validateParameterizedAggregations.js +0 -25
- package/src/View/AdaptableComputedCSSVarsContext.d.ts +0 -12
- package/src/View/AdaptableComputedCSSVarsContext.js +0 -36
- package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.d.ts +0 -12
- package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.js +0 -48
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.d.ts +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.js +0 -32
- package/src/View/Theme/VariantSelector.d.ts +0 -8
- package/src/View/Theme/VariantSelector.js +0 -25
- package/src/components/Select/CSSNumericVariableWatch.d.ts +0 -11
- package/src/components/Select/CSSNumericVariableWatch.js +0 -51
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StyledColumnWizardBulletSection = exports.renderStyledColumnBulletSummary = exports.renderStyledColumnBulletStyleSummary = exports.renderStyledColumnBulletRangesSummary = void 0;
|
|
3
|
+
exports.StyledColumnWizardBulletSection = exports.renderStyledColumnBulletSummary = exports.renderStyledColumnBulletStyleSummary = exports.StyledColumnBulletRangesView = exports.renderStyledColumnBulletRangesSummary = exports.getStyledColumnBulletStyleViewValues = exports.getStyledColumnBulletRangesViewValues = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
@@ -17,7 +17,8 @@ const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/Dr
|
|
|
17
17
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/ArrayExtensions"));
|
|
18
18
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../../Components/AdaptableInput"));
|
|
19
19
|
const Flex_1 = require("../../../components/Flex");
|
|
20
|
-
const
|
|
20
|
+
const BulletRangesSummaryPreview_1 = require("./StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview");
|
|
21
|
+
const StyledColumnBulletPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview");
|
|
21
22
|
const NewSelect_1 = require("../../../components/NewSelect");
|
|
22
23
|
const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
|
|
23
24
|
const Card_1 = require("../../../components/Card");
|
|
@@ -30,38 +31,135 @@ const getTargetSummary = (target) => {
|
|
|
30
31
|
return null;
|
|
31
32
|
}
|
|
32
33
|
if (Array.isArray(target)) {
|
|
33
|
-
return
|
|
34
|
+
return target
|
|
35
|
+
.map((entry) => formatSingleBulletTargetSummary(entry))
|
|
36
|
+
.filter(Boolean)
|
|
37
|
+
.join(', ');
|
|
34
38
|
}
|
|
39
|
+
return formatSingleBulletTargetSummary(target);
|
|
40
|
+
};
|
|
41
|
+
const formatSingleBulletTargetSummary = (target) => {
|
|
35
42
|
if (typeof target === 'number') {
|
|
36
43
|
return String(target);
|
|
37
44
|
}
|
|
38
45
|
if (typeof target === 'string') {
|
|
39
46
|
return target;
|
|
40
47
|
}
|
|
41
|
-
// object form
|
|
42
48
|
const t = target;
|
|
43
49
|
return t.Label ?? String(t.Value);
|
|
44
50
|
};
|
|
51
|
+
const formatBulletOriginLabel = (origin) => {
|
|
52
|
+
if (origin == undefined) {
|
|
53
|
+
return 'Auto';
|
|
54
|
+
}
|
|
55
|
+
if (typeof origin === 'number') {
|
|
56
|
+
return `Custom (${origin})`;
|
|
57
|
+
}
|
|
58
|
+
return origin;
|
|
59
|
+
};
|
|
60
|
+
const formatBulletCellTextSummary = (cellText) => cellText
|
|
61
|
+
?.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Percent Value'))
|
|
62
|
+
.join(' + ') ?? '';
|
|
63
|
+
const formatBulletToolTipSummary = (toolTipText) => toolTipText
|
|
64
|
+
?.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Percent Value'))
|
|
65
|
+
.join(' + ') ?? '';
|
|
66
|
+
const getStyledColumnBulletRangesViewValues = (data) => {
|
|
67
|
+
const bullet = data.BulletChartStyle;
|
|
68
|
+
if (!bullet) {
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
|
+
const bandCount = bullet.CellRanges?.length ?? 0;
|
|
72
|
+
const items = [`Bands: ${bandCount}`];
|
|
73
|
+
if (bullet.RangeValueType != null) {
|
|
74
|
+
items.push(`Range Value Type: ${bullet.RangeValueType}`);
|
|
75
|
+
}
|
|
76
|
+
return items;
|
|
77
|
+
};
|
|
78
|
+
exports.getStyledColumnBulletRangesViewValues = getStyledColumnBulletRangesViewValues;
|
|
79
|
+
const buildStyledColumnBulletStyleSummaryStrings = (bullet, options) => {
|
|
80
|
+
const items = [];
|
|
81
|
+
const targetSummary = getTargetSummary(bullet.Target);
|
|
82
|
+
if (targetSummary) {
|
|
83
|
+
items.push(`Target: ${targetSummary}`);
|
|
84
|
+
}
|
|
85
|
+
const marker = bullet.TargetMarker;
|
|
86
|
+
if (marker?.Shape && marker.Shape !== 'Line') {
|
|
87
|
+
items.push(`Target Marker Shape: ${marker.Shape}`);
|
|
88
|
+
}
|
|
89
|
+
if (marker?.Color) {
|
|
90
|
+
items.push(`Target Marker Colour: ${marker.Color}`);
|
|
91
|
+
}
|
|
92
|
+
if (marker?.Size != null) {
|
|
93
|
+
items.push(`Target Marker Size: ${marker.Size}px`);
|
|
94
|
+
}
|
|
95
|
+
if (bullet.Orientation === 'Vertical') {
|
|
96
|
+
items.push('Orientation: Vertical');
|
|
97
|
+
}
|
|
98
|
+
if (bullet.BarColor) {
|
|
99
|
+
items.push(`Bar Colour: ${bullet.BarColor}`);
|
|
100
|
+
}
|
|
101
|
+
if (bullet.BarHeight != null) {
|
|
102
|
+
items.push(`${bullet.Orientation === 'Vertical' ? 'Bar Width' : 'Bar Height'}: ${bullet.BarHeight}px`);
|
|
103
|
+
}
|
|
104
|
+
items.push(`Origin: ${formatBulletOriginLabel(bullet.Origin)}`);
|
|
105
|
+
if (bullet.BackColor) {
|
|
106
|
+
items.push(`Back Colour: ${bullet.BackColor}`);
|
|
107
|
+
}
|
|
108
|
+
if (bullet.CellText?.length) {
|
|
109
|
+
items.push(`Cell Text: ${formatBulletCellTextSummary(bullet.CellText)}`);
|
|
110
|
+
items.push(`Cell Text Position: ${bullet.CellTextPosition ?? 'Below'}`);
|
|
111
|
+
}
|
|
112
|
+
else if (options.includeEmptyCellText) {
|
|
113
|
+
items.push('Cell Text: None');
|
|
114
|
+
}
|
|
115
|
+
(0, StyledColumnSliceStyleEditors_1.getCellFontStyleSummaryItems)(bullet.Font).forEach(({ label, value }) => {
|
|
116
|
+
items.push(`${label}: ${value}`);
|
|
117
|
+
});
|
|
118
|
+
if (bullet.ToolTipText?.length) {
|
|
119
|
+
items.push(`Tooltip: ${formatBulletToolTipSummary(bullet.ToolTipText)}`);
|
|
120
|
+
}
|
|
121
|
+
else if (options.includeEmptyTooltip) {
|
|
122
|
+
items.push('Tooltip: No Tooltip');
|
|
123
|
+
}
|
|
124
|
+
return items;
|
|
125
|
+
};
|
|
126
|
+
const getStyledColumnBulletStyleViewValues = (data) => {
|
|
127
|
+
const bullet = data.BulletChartStyle;
|
|
128
|
+
if (!bullet) {
|
|
129
|
+
return [];
|
|
130
|
+
}
|
|
131
|
+
return buildStyledColumnBulletStyleSummaryStrings(bullet, {
|
|
132
|
+
includeEmptyCellText: false,
|
|
133
|
+
includeEmptyTooltip: false,
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
exports.getStyledColumnBulletStyleViewValues = getStyledColumnBulletStyleViewValues;
|
|
45
137
|
/** Wizard / list-view summary for the Ranges step (qualitative bands). */
|
|
46
138
|
const renderStyledColumnBulletRangesSummary = (data) => {
|
|
47
139
|
const bullet = data.BulletChartStyle;
|
|
48
140
|
if (!bullet) {
|
|
49
|
-
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "
|
|
141
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No bands defined" });
|
|
50
142
|
}
|
|
51
|
-
const
|
|
52
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2 twa:items-start", children: [(0, jsx_runtime_1.jsx)(
|
|
143
|
+
const tagItems = (0, exports.getStyledColumnBulletRangesViewValues)(data);
|
|
144
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2 twa:items-start", children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: tagItems.map((item) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: item }, item))) }), (0, jsx_runtime_1.jsx)(BulletRangesSummaryPreview_1.BulletRangesSummaryPreview, { bulletStyle: bullet })] }));
|
|
53
145
|
};
|
|
54
146
|
exports.renderStyledColumnBulletRangesSummary = renderStyledColumnBulletRangesSummary;
|
|
147
|
+
const StyledColumnBulletRangesView = ({ data }) => (0, exports.renderStyledColumnBulletRangesSummary)(data);
|
|
148
|
+
exports.StyledColumnBulletRangesView = StyledColumnBulletRangesView;
|
|
55
149
|
/** Wizard / list-view summary for the Style step (target, bar, text, font). */
|
|
56
150
|
const renderStyledColumnBulletStyleSummary = (data) => {
|
|
57
151
|
const bullet = data.BulletChartStyle;
|
|
58
152
|
if (!bullet) {
|
|
59
153
|
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Styling Defined" });
|
|
60
154
|
}
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
155
|
+
const items = buildStyledColumnBulletStyleSummaryStrings(bullet, {
|
|
156
|
+
includeEmptyCellText: true,
|
|
157
|
+
includeEmptyTooltip: true,
|
|
158
|
+
});
|
|
159
|
+
if (!items.length) {
|
|
160
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Style Defined" });
|
|
161
|
+
}
|
|
162
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: items.map((item) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: item }, item))) }));
|
|
65
163
|
};
|
|
66
164
|
exports.renderStyledColumnBulletStyleSummary = renderStyledColumnBulletStyleSummary;
|
|
67
165
|
/** Full combined summary (ranges + style); kept for callers that expect one block. */
|
|
@@ -70,11 +168,7 @@ const renderStyledColumnBulletSummary = (data) => {
|
|
|
70
168
|
if (!bullet) {
|
|
71
169
|
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Styling Defined" });
|
|
72
170
|
}
|
|
73
|
-
|
|
74
|
-
const targetSummary = getTargetSummary(bullet.Target);
|
|
75
|
-
const isVertical = bullet.Orientation === 'Vertical';
|
|
76
|
-
const fontTags = (0, StyledColumnSliceStyleEditors_1.renderFontStyleSummaryTags)(bullet.Font);
|
|
77
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2 twa:items-start", children: [(0, jsx_runtime_1.jsx)(StyledColumnChartListPreviews_1.StyledColumnBulletChartListPreview, { bullet: bullet }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: [bandCount, " ", bandCount === 1 ? 'band' : 'bands'] }), targetSummary && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: ["\u00B7 target: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: targetSummary })] })), isVertical && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: ["\u00B7 ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "vertical" })] })), fontTags && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: ["\u00B7 Font: ", fontTags] }))] })] }));
|
|
171
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3 twa:items-start", children: [(0, exports.renderStyledColumnBulletRangesSummary)(data), (0, exports.renderStyledColumnBulletStyleSummary)(data)] }));
|
|
78
172
|
};
|
|
79
173
|
exports.renderStyledColumnBulletSummary = renderStyledColumnBulletSummary;
|
|
80
174
|
/**
|
|
@@ -115,20 +209,25 @@ const MARKER_SHAPES = [
|
|
|
115
209
|
const StyledColumnWizardBulletSection = (props) => {
|
|
116
210
|
const variant = props.variant ?? 'style';
|
|
117
211
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
118
|
-
const
|
|
212
|
+
const column = React.useMemo(() => {
|
|
119
213
|
const columnId = data.ColumnId;
|
|
120
214
|
if (!columnId) {
|
|
215
|
+
return undefined;
|
|
216
|
+
}
|
|
217
|
+
return api.columnApi.getColumnWithColumnId(columnId);
|
|
218
|
+
}, [data.ColumnId, api]);
|
|
219
|
+
const minMaxRangeValues = React.useMemo(() => {
|
|
220
|
+
if (!column) {
|
|
121
221
|
return null;
|
|
122
222
|
}
|
|
123
|
-
const column = api.columnApi.getColumnWithColumnId(columnId);
|
|
124
223
|
return {
|
|
125
224
|
min: api.styledColumnApi.internalApi.getMinValueForNumericColumn(column),
|
|
126
225
|
max: api.styledColumnApi.internalApi.getMaxValueForNumericColumn(column),
|
|
127
226
|
};
|
|
128
|
-
}, [
|
|
227
|
+
}, [column, api]);
|
|
129
228
|
const scope = { ColumnIds: [data.ColumnId] };
|
|
130
229
|
const bullet = data.BulletChartStyle ?? {};
|
|
131
|
-
const disabled = !data.ColumnId;
|
|
230
|
+
const disabled = !data.ColumnId || !column;
|
|
132
231
|
// -------------------------------------------------------------------------
|
|
133
232
|
// Updaters
|
|
134
233
|
// -------------------------------------------------------------------------
|
|
@@ -238,8 +337,10 @@ const StyledColumnWizardBulletSection = (props) => {
|
|
|
238
337
|
// -------------------------------------------------------------------------
|
|
239
338
|
// Render
|
|
240
339
|
// -------------------------------------------------------------------------
|
|
241
|
-
if (!data.ColumnId) {
|
|
242
|
-
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children:
|
|
340
|
+
if (!data.ColumnId || !column) {
|
|
341
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: !data.ColumnId
|
|
342
|
+
? 'You need to select a column before styling.'
|
|
343
|
+
: `Column "${data.ColumnId}" was not found in the grid.` }) }));
|
|
243
344
|
}
|
|
244
345
|
// ----- Ranges-only variant (wizard step before Style) ---------------------
|
|
245
346
|
if (variant === 'ranges') {
|
|
@@ -304,6 +405,6 @@ const StyledColumnWizardBulletSection = (props) => {
|
|
|
304
405
|
delete cleaned.Font;
|
|
305
406
|
props.onChange({ ...data, BulletChartStyle: cleaned });
|
|
306
407
|
}
|
|
307
|
-
} }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...BULLET_STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: bullet.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: bullet.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] }) }) })] })] }));
|
|
408
|
+
} }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...BULLET_STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: bullet.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: bullet.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] }) }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnBulletPreview_1.StyledColumnBulletPreviewCard, { data: data })] }));
|
|
308
409
|
};
|
|
309
410
|
exports.StyledColumnWizardBulletSection = StyledColumnWizardBulletSection;
|
|
@@ -3,6 +3,7 @@ import { StyledColumn } from '../../../AdaptableState/StyledColumnState';
|
|
|
3
3
|
export interface StyledColumnWizardGradientSectionProps {
|
|
4
4
|
onChange: (styledColumn: StyledColumn) => void;
|
|
5
5
|
}
|
|
6
|
+
export declare const getStyledColumnGradientStyleViewValues: (data: StyledColumn) => string[];
|
|
6
7
|
/**
|
|
7
8
|
* Summary of Gradient-only style options (alpha bounds, auto-contrast, tooltip).
|
|
8
9
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StyledColumnWizardGradientSection = exports.renderStyledColumnGradientStyleSummary = void 0;
|
|
3
|
+
exports.StyledColumnWizardGradientSection = exports.renderStyledColumnGradientStyleSummary = exports.getStyledColumnGradientStyleViewValues = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
@@ -14,13 +14,39 @@ const NumberInput_1 = require("../../../components/Input/NumberInput");
|
|
|
14
14
|
const StyledColumnGradientHelper_1 = require("../../../Utilities/Helpers/StyledColumnGradientHelper");
|
|
15
15
|
const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
|
|
16
16
|
const Card_1 = require("../../../components/Card");
|
|
17
|
+
const StyledColumnGradientPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview");
|
|
17
18
|
const STYLE_FORM_SIZES = ['200px', '1fr'];
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return opts.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Percent Value')).join(' + ');
|
|
19
|
+
function formatGradientToolTipSummary(opts) {
|
|
20
|
+
return opts
|
|
21
|
+
.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Percent Value'))
|
|
22
|
+
.join(' + ');
|
|
23
23
|
}
|
|
24
|
+
const buildStyledColumnGradientStyleSummaryStrings = (gs, options) => {
|
|
25
|
+
const minA = gs.MinAlpha ?? StyledColumnGradientHelper_1.DEFAULT_GRADIENT_MIN_ALPHA;
|
|
26
|
+
const maxA = gs.MaxAlpha ?? StyledColumnGradientHelper_1.DEFAULT_GRADIENT_MAX_ALPHA;
|
|
27
|
+
const items = [`Alpha: ${minA} → ${maxA}`];
|
|
28
|
+
if (gs.AutoContrastText) {
|
|
29
|
+
items.push('Auto Contrast: On');
|
|
30
|
+
}
|
|
31
|
+
if (gs.ToolTipText?.length) {
|
|
32
|
+
items.push(`Tooltip: ${formatGradientToolTipSummary(gs.ToolTipText)}`);
|
|
33
|
+
}
|
|
34
|
+
else if (options.includeEmptyTooltip) {
|
|
35
|
+
items.push('Tooltip: No Tooltip');
|
|
36
|
+
}
|
|
37
|
+
(0, StyledColumnSliceStyleEditors_1.getCellFontStyleSummaryItems)(gs.Font).forEach(({ label, value }) => {
|
|
38
|
+
items.push(`${label}: ${value}`);
|
|
39
|
+
});
|
|
40
|
+
return items;
|
|
41
|
+
};
|
|
42
|
+
const getStyledColumnGradientStyleViewValues = (data) => {
|
|
43
|
+
const gs = data.GradientStyle;
|
|
44
|
+
if (!gs) {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
return buildStyledColumnGradientStyleSummaryStrings(gs, { includeEmptyTooltip: false });
|
|
48
|
+
};
|
|
49
|
+
exports.getStyledColumnGradientStyleViewValues = getStyledColumnGradientStyleViewValues;
|
|
24
50
|
/**
|
|
25
51
|
* Summary of Gradient-only style options (alpha bounds, auto-contrast, tooltip).
|
|
26
52
|
*/
|
|
@@ -29,10 +55,8 @@ const renderStyledColumnGradientStyleSummary = (data) => {
|
|
|
29
55
|
if (!gs) {
|
|
30
56
|
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Styling Defined" });
|
|
31
57
|
}
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const fontTags = (0, StyledColumnSliceStyleEditors_1.renderFontStyleSummaryTags)(gs.Font);
|
|
35
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Alpha: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: minA }), " \u2192 ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: maxA })] }), gs.AutoContrastText && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Text: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Auto contrast" })] })), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Tooltip: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: formatToolTipText(gs.ToolTipText) })] }), fontTags && (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Font: ", fontTags] })] }));
|
|
58
|
+
const items = buildStyledColumnGradientStyleSummaryStrings(gs, { includeEmptyTooltip: true });
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: items.map((item) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: item }, item))) }));
|
|
36
60
|
};
|
|
37
61
|
exports.renderStyledColumnGradientStyleSummary = renderStyledColumnGradientStyleSummary;
|
|
38
62
|
const StyledColumnWizardGradientSection = (props) => {
|
|
@@ -91,6 +115,6 @@ const StyledColumnWizardGradientSection = (props) => {
|
|
|
91
115
|
else {
|
|
92
116
|
patchGradient({ AutoContrastText: true });
|
|
93
117
|
}
|
|
94
|
-
}, children: "Make text readable on tinted backgrounds" }) })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[600px]", children: "Set Tooltip properties" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Tooltip:", children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:ml-2", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: gs.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: gs.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent along scale" })] }) }) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Font" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[480px]", children: "Optional font properties (takes precedence over Format Column)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: disabled, value: gs.Font, onChange: onFontChange }) })] }), !data.ColumnId && ((0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: "Select a column before changing Gradient style." }))] }));
|
|
118
|
+
}, children: "Make text readable on tinted backgrounds" }) })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[600px]", children: "Set Tooltip properties" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Tooltip:", children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:ml-2", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: gs.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: gs.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent along scale" })] }) }) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Font" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[480px]", children: "Optional font properties (takes precedence over Format Column)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: disabled, value: gs.Font, onChange: onFontChange }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnGradientPreview_1.StyledColumnGradientPreviewCard, { data: data }), !data.ColumnId && ((0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: "Select a column before changing Gradient style." }))] }));
|
|
95
119
|
};
|
|
96
120
|
exports.StyledColumnWizardGradientSection = StyledColumnWizardGradientSection;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyledColumn } from '../../../AdaptableState/StyledColumnState';
|
|
3
|
+
export declare const getStyledColumnIconMappingsViewValues: (data: StyledColumn) => string[];
|
|
4
|
+
export declare const getStyledColumnIconStyleViewValues: (data: StyledColumn) => string[];
|
|
3
5
|
/** Mappings step summary. */
|
|
4
6
|
export declare const renderStyledColumnIconMappingsSummary: (data: StyledColumn) => React.JSX.Element;
|
|
7
|
+
export declare const StyledColumnIconMappingsView: React.FunctionComponent<React.PropsWithChildren<{
|
|
8
|
+
data: StyledColumn;
|
|
9
|
+
}>>;
|
|
5
10
|
/** Style step summary (size, text, tooltip, font / cell). */
|
|
6
11
|
export declare const renderStyledColumnIconStyleSummary: (data: StyledColumn) => React.JSX.Element;
|
|
7
12
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StyledColumnWizardIconSection = exports.isValidIconStyleMappings = exports.renderStyledColumnIconSummary = exports.renderStyledColumnIconStyleSummary = exports.renderStyledColumnIconMappingsSummary = void 0;
|
|
3
|
+
exports.StyledColumnWizardIconSection = exports.isValidIconStyleMappings = exports.renderStyledColumnIconSummary = exports.renderStyledColumnIconStyleSummary = exports.StyledColumnIconMappingsView = exports.renderStyledColumnIconMappingsSummary = exports.getStyledColumnIconStyleViewValues = exports.getStyledColumnIconMappingsViewValues = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
@@ -19,6 +19,7 @@ const IconStylePresets_1 = require("../../../Utilities/Helpers/IconStylePresets"
|
|
|
19
19
|
const IconRenderer_1 = require("../../../agGrid/cellRenderers/IconRenderer");
|
|
20
20
|
const Card_1 = require("../../../components/Card");
|
|
21
21
|
const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
|
|
22
|
+
const StyledColumnIconPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnIconPreview");
|
|
22
23
|
const STYLE_FORM_SIZES = ['200px', '1fr'];
|
|
23
24
|
const detectIconKind = (spec) => {
|
|
24
25
|
if (typeof spec === 'string')
|
|
@@ -41,38 +42,114 @@ const previewIcon = (spec) => {
|
|
|
41
42
|
// ---------------------------------------------------------------------------
|
|
42
43
|
// Summary helpers (used by the wizard step header + Styled Columns list)
|
|
43
44
|
// ---------------------------------------------------------------------------
|
|
45
|
+
const ICON_MAPPINGS_PREVIEW_CHIP_LIMIT = 6;
|
|
44
46
|
const previewMapping = (mapping, index) => {
|
|
45
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:px-1.5 twa:py-0.5 twa:rounded twa:bg-[var(--ab-color-primary)] twa:text-[var(--ab-color-primarytext)]", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { children: previewIcon(mapping.Icon) }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-90", children: String(mapping.Key) })] }, index));
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:px-1.5 twa:py-0.5 twa:rounded twa:bg-[var(--ab-color-primary)] twa:text-[var(--ab-color-primarytext)]", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { children: previewIcon(mapping.Icon) }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-90", children: String(mapping.Key) })] }, `${String(mapping.Key)}-${index}`));
|
|
46
48
|
};
|
|
47
49
|
const renderMappingsPreview = (mappings) => {
|
|
48
50
|
if (!mappings || mappings.length === 0) {
|
|
49
51
|
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No mappings" });
|
|
50
52
|
}
|
|
51
|
-
const previewItems = mappings.slice(0,
|
|
53
|
+
const previewItems = mappings.slice(0, ICON_MAPPINGS_PREVIEW_CHIP_LIMIT).map((m, i) => previewMapping(m, i));
|
|
52
54
|
const remaining = mappings.length - previewItems.length;
|
|
53
55
|
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:flex-wrap", children: [previewItems, remaining > 0 && (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-xs twa:opacity-60", children: ["+", remaining, " more"] })] }));
|
|
54
56
|
};
|
|
57
|
+
const formatIconCellTextSummary = (cellText) => cellText
|
|
58
|
+
?.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Description'))
|
|
59
|
+
.join(' + ') ?? '';
|
|
60
|
+
const formatIconToolTipSummary = (toolTipText) => toolTipText
|
|
61
|
+
?.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Description'))
|
|
62
|
+
.join(' + ') ?? '';
|
|
63
|
+
const getStyledColumnIconMappingsViewValues = (data) => {
|
|
64
|
+
const ic = data.IconStyle;
|
|
65
|
+
if (!ic) {
|
|
66
|
+
return [];
|
|
67
|
+
}
|
|
68
|
+
const effectiveMappings = (0, IconRenderer_1.resolveEffectiveIconStyleMappings)(ic);
|
|
69
|
+
const items = [`Mappings: ${effectiveMappings.length}`];
|
|
70
|
+
if (ic.Preset) {
|
|
71
|
+
items.push(`Preset: ${IconStylePresets_1.ICON_STYLE_PRESET_LABELS[ic.Preset]}`);
|
|
72
|
+
}
|
|
73
|
+
const customCount = ic.Mappings?.length ?? 0;
|
|
74
|
+
if (customCount > 0) {
|
|
75
|
+
items.push(`Custom Mappings: ${customCount}`);
|
|
76
|
+
}
|
|
77
|
+
if (ic.MatchMode && ic.MatchMode !== 'Exact') {
|
|
78
|
+
items.push(`Match Mode: ${ic.MatchMode}`);
|
|
79
|
+
}
|
|
80
|
+
if (ic.Fallback && ic.Fallback !== 'Hide') {
|
|
81
|
+
items.push(`Fallback: ${ic.Fallback}`);
|
|
82
|
+
}
|
|
83
|
+
return items;
|
|
84
|
+
};
|
|
85
|
+
exports.getStyledColumnIconMappingsViewValues = getStyledColumnIconMappingsViewValues;
|
|
86
|
+
const buildStyledColumnIconStyleSummaryStrings = (ic, options) => {
|
|
87
|
+
const items = [];
|
|
88
|
+
if (ic.Size != null) {
|
|
89
|
+
items.push(`Icon Size: ${ic.Size}px`);
|
|
90
|
+
}
|
|
91
|
+
if (ic.Gap != null) {
|
|
92
|
+
items.push(`Gap: ${ic.Gap}px`);
|
|
93
|
+
}
|
|
94
|
+
if (ic.CellText?.length) {
|
|
95
|
+
items.push(`Cell Text: ${formatIconCellTextSummary(ic.CellText)}`);
|
|
96
|
+
items.push(`Cell Text Position: ${ic.CellTextPosition ?? 'After'}`);
|
|
97
|
+
}
|
|
98
|
+
else if (options.includeEmptyCellText) {
|
|
99
|
+
items.push('Cell Text: None');
|
|
100
|
+
}
|
|
101
|
+
(0, StyledColumnSliceStyleEditors_1.getCellFontStyleSummaryItems)(ic.Font).forEach(({ label, value }) => {
|
|
102
|
+
items.push(`${label}: ${value}`);
|
|
103
|
+
});
|
|
104
|
+
(0, StyledColumnSliceStyleEditors_1.getCellBoxStyleSummaryItems)(ic.Cell).forEach(({ label, value }) => {
|
|
105
|
+
items.push(`${label}: ${value}`);
|
|
106
|
+
});
|
|
107
|
+
if (ic.ToolTipText?.length) {
|
|
108
|
+
items.push(`Tooltip: ${formatIconToolTipSummary(ic.ToolTipText)}`);
|
|
109
|
+
}
|
|
110
|
+
else if (options.includeEmptyTooltip) {
|
|
111
|
+
items.push('Tooltip: No Tooltip');
|
|
112
|
+
}
|
|
113
|
+
return items;
|
|
114
|
+
};
|
|
115
|
+
const getStyledColumnIconStyleViewValues = (data) => {
|
|
116
|
+
const ic = data.IconStyle;
|
|
117
|
+
if (!ic) {
|
|
118
|
+
return [];
|
|
119
|
+
}
|
|
120
|
+
return buildStyledColumnIconStyleSummaryStrings(ic, {
|
|
121
|
+
includeEmptyCellText: false,
|
|
122
|
+
includeEmptyTooltip: false,
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
exports.getStyledColumnIconStyleViewValues = getStyledColumnIconStyleViewValues;
|
|
55
126
|
/** Mappings step summary. */
|
|
56
127
|
const renderStyledColumnIconMappingsSummary = (data) => {
|
|
57
128
|
const ic = data.IconStyle;
|
|
58
129
|
if (!ic) {
|
|
59
130
|
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Icon Style defined" });
|
|
60
131
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const customCount = ic.Mappings?.length ?? 0;
|
|
65
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2 twa:items-start", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: [effectiveMappings.length, " ", effectiveMappings.length === 1 ? 'mapping' : 'mappings'] }), ic.Preset && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: ["\u00B7 Preset: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: IconStylePresets_1.ICON_STYLE_PRESET_LABELS[ic.Preset] })] })), customCount > 0 && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: ["\u00B7 Custom: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: customCount })] })), ic.MatchMode && ic.MatchMode !== 'Exact' && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: ["\u00B7 Match: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: ic.MatchMode })] })), ic.Fallback && ic.Fallback !== 'Hide' && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mr-1", children: ["\u00B7 Fallback: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: ic.Fallback })] }))] }), renderMappingsPreview(effectiveMappings)] }));
|
|
132
|
+
const tagItems = (0, exports.getStyledColumnIconMappingsViewValues)(data);
|
|
133
|
+
const previewMappings = (0, IconRenderer_1.resolveIconStyleMappingsForSummaryPreview)(ic);
|
|
134
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2 twa:items-start", children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: tagItems.map((item) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: item }, item))) }), renderMappingsPreview(previewMappings)] }));
|
|
66
135
|
};
|
|
67
136
|
exports.renderStyledColumnIconMappingsSummary = renderStyledColumnIconMappingsSummary;
|
|
137
|
+
const StyledColumnIconMappingsView = ({ data }) => (0, exports.renderStyledColumnIconMappingsSummary)(data);
|
|
138
|
+
exports.StyledColumnIconMappingsView = StyledColumnIconMappingsView;
|
|
68
139
|
/** Style step summary (size, text, tooltip, font / cell). */
|
|
69
140
|
const renderStyledColumnIconStyleSummary = (data) => {
|
|
70
141
|
const ic = data.IconStyle;
|
|
71
142
|
if (!ic) {
|
|
72
143
|
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Icon Style defined" });
|
|
73
144
|
}
|
|
74
|
-
const
|
|
75
|
-
|
|
145
|
+
const items = buildStyledColumnIconStyleSummaryStrings(ic, {
|
|
146
|
+
includeEmptyCellText: true,
|
|
147
|
+
includeEmptyTooltip: true,
|
|
148
|
+
});
|
|
149
|
+
if (!items.length) {
|
|
150
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Style Defined" });
|
|
151
|
+
}
|
|
152
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: items.map((item) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: item }, item))) }));
|
|
76
153
|
};
|
|
77
154
|
exports.renderStyledColumnIconStyleSummary = renderStyledColumnIconStyleSummary;
|
|
78
155
|
/**
|
|
@@ -248,7 +325,7 @@ const StyledColumnWizardIconSection = (props) => {
|
|
|
248
325
|
{ value: 'After', label: 'After' },
|
|
249
326
|
{ value: 'Above', label: 'Above' },
|
|
250
327
|
{ value: 'Below', label: 'Below' },
|
|
251
|
-
] }) }) })] }), (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: disabled || cellTextDisabled, value: iconStyle.Font, onChange: onFontChange }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether and how to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { checked: toolTipText.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { className: "twa:ml-3", checked: toolTipText.includes('IconDescription'), onChange: (checked) => toggleToolTipText('IconDescription', checked), children: "Description" })] }) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, 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" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell box styling (overrides Format Column properties)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnCellStyleEditor, { api: api, disabled: disabled, value: iconStyle.Cell, onChange: onCellChange }) })] })] }));
|
|
328
|
+
] }) }) })] }), (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: disabled || cellTextDisabled, value: iconStyle.Font, onChange: onFontChange }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether and how to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { checked: toolTipText.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { className: "twa:ml-3", checked: toolTipText.includes('IconDescription'), onChange: (checked) => toggleToolTipText('IconDescription', checked), children: "Description" })] }) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, 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" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell box styling (overrides Format Column properties)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnCellStyleEditor, { api: api, disabled: disabled, value: iconStyle.Cell, onChange: onCellChange }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnIconPreview_1.StyledColumnIconPreviewCard, { data: data })] }));
|
|
252
329
|
};
|
|
253
330
|
exports.StyledColumnWizardIconSection = StyledColumnWizardIconSection;
|
|
254
331
|
const IconSpecEditorFields = (props) => {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyledColumn } from '../../../AdaptableState/StyledColumnState';
|
|
3
|
+
export declare const getStyledColumnRangeBarRangeViewValues: (data: StyledColumn) => string[];
|
|
4
|
+
export declare const getStyledColumnRangeBarDisplayViewValues: (data: StyledColumn) => string[];
|
|
3
5
|
/** Summary line for the Range wizard step (bounds + bands only). */
|
|
4
6
|
export declare const renderStyledColumnRangeBarRangeStepSummary: (data: StyledColumn) => React.JSX.Element;
|
|
7
|
+
export declare const StyledColumnRangeBarRangeView: React.FunctionComponent<React.PropsWithChildren<{
|
|
8
|
+
data: StyledColumn;
|
|
9
|
+
}>>;
|
|
5
10
|
/** Summary for the Display wizard step (markers, track, text). */
|
|
6
11
|
export declare const renderStyledColumnRangeBarDisplayStepSummary: (data: StyledColumn) => React.JSX.Element;
|
|
7
12
|
/**
|