@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
|
@@ -4,11 +4,12 @@ exports.PercentBarPreview = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const PercentBarStylePreview_1 = require("./PercentBarStylePreview");
|
|
6
6
|
const Flex_1 = require("../../../../../components/Flex");
|
|
7
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
7
8
|
const PercentBarPreview = (props) => {
|
|
8
9
|
let postfix = '';
|
|
9
10
|
if (props.percentBarStyle.RangeValueType === 'Percentage') {
|
|
10
11
|
postfix = '%';
|
|
11
12
|
}
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2", children: props.percentBarStyle.CellRanges.map((range, i) => ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "stretch", className: "twa:flex-wrap twa:gap-2", children: [(0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: [range.Min, postfix, " \u2192 ", range.Max, postfix] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-w-[120px]", children: (0, jsx_runtime_1.jsx)(PercentBarStylePreview_1.PercentBarStylePreview, { backgroundColor: props.percentBarStyle.BackColor, barBackgroundColor: range.Color }) })] }, i))) }));
|
|
13
14
|
};
|
|
14
15
|
exports.PercentBarPreview = PercentBarPreview;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Compact range-colour strip for Percent Bar range summaries.
|
|
4
|
+
* Cell text / origin / font are shown in `StyledColumnPercentBarPreview`.
|
|
5
|
+
*/
|
|
3
6
|
export declare const PercentBarStylePreview: React.FunctionComponent<{
|
|
4
|
-
backgroundColor
|
|
7
|
+
backgroundColor?: string | null;
|
|
5
8
|
barBackgroundColor?: string;
|
|
6
|
-
cellText?: CellTextOptions;
|
|
7
|
-
toolTipText?: CellTextOptions;
|
|
8
9
|
}>;
|
|
@@ -3,19 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PercentBarStylePreview = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Flex_1 = require("../../../../../components/Flex");
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
text += ' (50%)';
|
|
13
|
-
}
|
|
14
|
-
return text.trim();
|
|
15
|
-
};
|
|
6
|
+
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
7
|
+
const stripClassName = 'twa:h-6 twa:w-[128px] twa:rounded twa:overflow-hidden twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
8
|
+
/**
|
|
9
|
+
* Compact range-colour strip for Percent Bar range summaries.
|
|
10
|
+
* Cell text / origin / font are shown in `StyledColumnPercentBarPreview`.
|
|
11
|
+
*/
|
|
16
12
|
const PercentBarStylePreview = (props) => {
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
13
|
+
const trackColor = props.backgroundColor ? (0, StyleHelper_1.getVariableColor)(props.backgroundColor) : undefined;
|
|
14
|
+
const barColor = props.barBackgroundColor
|
|
15
|
+
? (0, StyleHelper_1.getVariableColor)(props.barBackgroundColor)
|
|
16
|
+
: undefined;
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: stripClassName, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:h-full twa:relative", style: trackColor ? { backgroundColor: trackColor } : undefined, children: barColor && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:absolute twa:top-0 twa:left-0 twa:h-full twa:w-1/2", style: { background: barColor } })) }) }));
|
|
20
18
|
};
|
|
21
19
|
exports.PercentBarStylePreview = PercentBarStylePreview;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RangeBarRangesSummaryPreview = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Flex_1 = require("../../../../../components/Flex");
|
|
6
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
7
|
+
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
8
|
+
const stripClassName = 'twa:h-6 twa:w-[128px] twa:rounded twa:overflow-hidden twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
9
|
+
const RangeBarRangesSummaryPreview = ({ rangeStyle }) => {
|
|
10
|
+
const ranges = rangeStyle.CellRanges ?? [];
|
|
11
|
+
if (!ranges.length) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
let postfix = '';
|
|
15
|
+
if (rangeStyle.RangeValueType === 'Percentage') {
|
|
16
|
+
postfix = '%';
|
|
17
|
+
}
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2", children: ranges.map((range, i) => ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: [(0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: [range.Min, postfix, " \u2192 ", range.Max, postfix] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: stripClassName, style: { background: (0, StyleHelper_1.getVariableColor)(range.Color) } })] }, i))) }));
|
|
19
|
+
};
|
|
20
|
+
exports.RangeBarRangesSummaryPreview = RangeBarRangesSummaryPreview;
|
|
@@ -8,3 +8,6 @@ import { StyledColumn } from '../../../../../types';
|
|
|
8
8
|
export declare const StyledColumnBadgePreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
9
9
|
data: StyledColumn;
|
|
10
10
|
}>>;
|
|
11
|
+
export declare const StyledColumnBadgePreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
12
|
+
data: StyledColumn;
|
|
13
|
+
}>>;
|
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StyledColumnBadgePreview = void 0;
|
|
3
|
+
exports.StyledColumnBadgePreviewCard = exports.StyledColumnBadgePreview = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const GeneralConstants_1 = require("../../../../../Utilities/Constants/GeneralConstants");
|
|
6
|
+
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
6
7
|
const AdaptableContext_1 = require("../../../../AdaptableContext");
|
|
7
8
|
const Badge_1 = require("../../../../Components/Badge");
|
|
8
9
|
const Flex_1 = require("../../../../../components/Flex");
|
|
10
|
+
const Card_1 = require("../../../../../components/Card");
|
|
11
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
9
12
|
const OVERFLOW_CLASS = {
|
|
10
13
|
Truncate: 'ab-Badge__wrapper--truncate',
|
|
11
14
|
Wrap: 'ab-Badge__wrapper--wrap',
|
|
12
15
|
Scroll: 'ab-Badge__wrapper--scroll',
|
|
13
16
|
};
|
|
17
|
+
const PREVIEW_CELL_CLASS = 'ab-BadgePreviewCell twa:min-w-[140px] twa:min-h-[32px] twa:px-2 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
18
|
+
const resolveBadgeRowJustify = (alignment) => {
|
|
19
|
+
switch (alignment) {
|
|
20
|
+
case 'Center':
|
|
21
|
+
return 'center';
|
|
22
|
+
case 'Right':
|
|
23
|
+
return 'flex-end';
|
|
24
|
+
case 'Left':
|
|
25
|
+
return 'flex-start';
|
|
26
|
+
default:
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
14
30
|
/**
|
|
15
31
|
* Pixel-parity preview of the badges as they would render in the cell.
|
|
16
32
|
* Uses the same wrapper/badge classes (and the same `Badge` component) as
|
|
@@ -20,13 +36,24 @@ const StyledColumnBadgePreview = ({ data }) => {
|
|
|
20
36
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
21
37
|
const badgeStyle = data.BadgeStyle;
|
|
22
38
|
if (!badgeStyle || !badgeStyle.Badges || badgeStyle.Badges.length === 0) {
|
|
23
|
-
return (0, jsx_runtime_1.jsx)(
|
|
39
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Badges Defined" });
|
|
24
40
|
}
|
|
25
41
|
const overflow = badgeStyle.OverflowMode ?? 'Truncate';
|
|
26
42
|
const wrapperClassName = `ab-Badge__wrapper ${OVERFLOW_CLASS[overflow]}`;
|
|
27
43
|
const spacing = typeof badgeStyle.Spacing === 'number' ? badgeStyle.Spacing : null;
|
|
44
|
+
const rowJustify = resolveBadgeRowJustify(badgeStyle.Font?.Alignment);
|
|
45
|
+
const cellStyle = badgeStyle.Cell ? (0, StyleHelper_1.convertAdaptableStyleToCSS)(badgeStyle.Cell) : undefined;
|
|
28
46
|
const dataType = adaptable.api.columnApi.getColumnDataTypeForColumnId(data.ColumnId);
|
|
29
|
-
|
|
47
|
+
const wrapperStyle = {
|
|
48
|
+
...(spacing != null ? { ['--ab-cmp-badge__spacing']: `${spacing}px` } : {}),
|
|
49
|
+
...(rowJustify
|
|
50
|
+
? {
|
|
51
|
+
justifyContent: rowJustify,
|
|
52
|
+
width: '100%',
|
|
53
|
+
}
|
|
54
|
+
: {}),
|
|
55
|
+
};
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, style: cellStyle, children: (0, jsx_runtime_1.jsx)("div", { className: wrapperClassName, style: wrapperStyle, children: badgeStyle.Badges.map((badge, index) => {
|
|
30
57
|
const badgeValue = badge.IconOnly
|
|
31
58
|
? ''
|
|
32
59
|
: dataType === 'number'
|
|
@@ -36,3 +63,5 @@ const StyledColumnBadgePreview = ({ data }) => {
|
|
|
36
63
|
}) }) }));
|
|
37
64
|
};
|
|
38
65
|
exports.StyledColumnBadgePreview = StyledColumnBadgePreview;
|
|
66
|
+
const StyledColumnBadgePreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnBadgePreview, { data: data }) })] }));
|
|
67
|
+
exports.StyledColumnBadgePreviewCard = StyledColumnBadgePreviewCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BulletChartStyle, StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
3
|
+
export declare const StyledColumnBulletPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
4
|
+
data: StyledColumn;
|
|
5
|
+
}>>;
|
|
6
|
+
export declare const StyledColumnBulletPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
7
|
+
data: StyledColumn;
|
|
8
|
+
}>>;
|
|
9
|
+
export declare const hasBulletChartRangesConfigured: (bullet: BulletChartStyle | undefined) => boolean;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasBulletChartRangesConfigured = exports.StyledColumnBulletPreviewCard = exports.StyledColumnBulletPreview = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
6
|
+
const Flex_1 = require("../../../../../components/Flex");
|
|
7
|
+
const Card_1 = require("../../../../../components/Card");
|
|
8
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
9
|
+
const StyledColumnChartListPreviews_1 = require("./StyledColumnChartListPreviews");
|
|
10
|
+
const PREVIEW_CELL_CLASS = 'ab-BulletPreviewCell twa:inline-flex twa:items-center twa:min-w-[180px] twa:min-h-[36px] twa:px-2 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
11
|
+
const getBulletPreviewSample = (bullet) => {
|
|
12
|
+
const ranges = bullet.CellRanges ?? [];
|
|
13
|
+
const numeric = ranges.filter((range) => typeof range.Min === 'number' && typeof range.Max === 'number');
|
|
14
|
+
let min = 0;
|
|
15
|
+
let max = 100;
|
|
16
|
+
if (numeric.length) {
|
|
17
|
+
min = Math.min(...numeric.map((range) => range.Min));
|
|
18
|
+
max = Math.max(...numeric.map((range) => range.Max));
|
|
19
|
+
}
|
|
20
|
+
const span = max - min || 1;
|
|
21
|
+
// Matches the schematic bar width (~58%) in `StyledColumnBulletChartListPreview`.
|
|
22
|
+
const sampleValue = min + span * 0.58;
|
|
23
|
+
const valueFraction = (sampleValue - min) / span;
|
|
24
|
+
return {
|
|
25
|
+
sampleValue,
|
|
26
|
+
valueFraction: Math.max(0, Math.min(1, valueFraction)),
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
const formatBulletPreviewCellText = (sampleValue, valueFraction, bullet) => {
|
|
30
|
+
const parts = [];
|
|
31
|
+
if (bullet.CellText?.includes('CellValue')) {
|
|
32
|
+
parts.push(Number.isInteger(sampleValue) ? String(sampleValue) : sampleValue.toFixed(1));
|
|
33
|
+
}
|
|
34
|
+
if (bullet.CellText?.includes('PercentageValue')) {
|
|
35
|
+
parts.push(`${(valueFraction * 100).toFixed(0)}%`);
|
|
36
|
+
}
|
|
37
|
+
return parts.join(' ');
|
|
38
|
+
};
|
|
39
|
+
const BulletChartPreviewContent = ({ bullet, }) => {
|
|
40
|
+
const { sampleValue, valueFraction } = getBulletPreviewSample(bullet);
|
|
41
|
+
const cellText = formatBulletPreviewCellText(sampleValue, valueFraction, bullet);
|
|
42
|
+
const hasCellText = Boolean(bullet.CellText?.length && cellText);
|
|
43
|
+
const textPosition = bullet.CellTextPosition ?? 'Below';
|
|
44
|
+
const fontStyle = bullet.Font ? (0, StyleHelper_1.convertAdaptableStyleToCSS)(bullet.Font) : undefined;
|
|
45
|
+
const isVertical = bullet.Orientation === 'Vertical';
|
|
46
|
+
const chartEl = (0, jsx_runtime_1.jsx)(StyledColumnChartListPreviews_1.StyledColumnBulletChartListPreview, { bullet: bullet });
|
|
47
|
+
const textEl = hasCellText ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-BulletChart__text twa:text-2 twa:leading-tight twa:truncate twa:max-w-full", style: fontStyle, children: cellText })) : null;
|
|
48
|
+
if (hasCellText && textPosition === 'Merged') {
|
|
49
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "ab-BulletChart__wrapper twa:relative twa:inline-flex", children: [chartEl, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-BulletChart__text twa:absolute twa:inset-x-0 twa:top-1/2 twa:-translate-y-1/2 twa:px-1 twa:text-2 twa:truncate twa:pointer-events-none", style: fontStyle, children: cellText })] }));
|
|
50
|
+
}
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-BulletChart__wrapper", flexDirection: "column", alignItems: isVertical ? 'center' : 'stretch', style: { justifyContent: 'center', gap: hasCellText ? 2 : 0 }, children: [hasCellText && textPosition === 'Above' && textEl, chartEl, hasCellText && textPosition === 'Below' && textEl] }));
|
|
52
|
+
};
|
|
53
|
+
const StyledColumnBulletPreview = ({ data }) => {
|
|
54
|
+
const bullet = data.BulletChartStyle;
|
|
55
|
+
if (!bullet) {
|
|
56
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Bullet Chart Style" });
|
|
57
|
+
}
|
|
58
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, children: (0, jsx_runtime_1.jsx)(BulletChartPreviewContent, { bullet: bullet }) }));
|
|
59
|
+
};
|
|
60
|
+
exports.StyledColumnBulletPreview = StyledColumnBulletPreview;
|
|
61
|
+
const StyledColumnBulletPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnBulletPreview, { data: data }) })] }));
|
|
62
|
+
exports.StyledColumnBulletPreviewCard = StyledColumnBulletPreviewCard;
|
|
63
|
+
const hasBulletChartRangesConfigured = (bullet) => Boolean(bullet?.CellRanges?.length);
|
|
64
|
+
exports.hasBulletChartRangesConfigured = hasBulletChartRangesConfigured;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
3
|
+
import { AdaptableApi } from '../../../../../Api/AdaptableApi';
|
|
4
|
+
export declare const StyledColumnGradientPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
5
|
+
data: StyledColumn;
|
|
6
|
+
api?: AdaptableApi;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const StyledColumnGradientPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
9
|
+
data: StyledColumn;
|
|
10
|
+
}>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnGradientPreviewCard = exports.StyledColumnGradientPreview = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Flex_1 = require("../../../../../components/Flex");
|
|
6
|
+
const Card_1 = require("../../../../../components/Card");
|
|
7
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
8
|
+
const AdaptableContext_1 = require("../../../../AdaptableContext");
|
|
9
|
+
const StyledColumnGradientHelper_1 = require("../../../../../Utilities/Helpers/StyledColumnGradientHelper");
|
|
10
|
+
const formatPreviewValue = (value) => {
|
|
11
|
+
if (Number.isInteger(value)) {
|
|
12
|
+
return value.toLocaleString();
|
|
13
|
+
}
|
|
14
|
+
return value.toLocaleString(undefined, { maximumFractionDigits: 2 });
|
|
15
|
+
};
|
|
16
|
+
const StyledColumnGradientPreview = ({ data, api: apiProp }) => {
|
|
17
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
18
|
+
const api = apiProp ?? adaptable.api;
|
|
19
|
+
const gs = data.GradientStyle;
|
|
20
|
+
if (!gs) {
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Gradient Style" });
|
|
22
|
+
}
|
|
23
|
+
if (!(0, StyledColumnGradientHelper_1.hasGradientRangesConfigured)(gs)) {
|
|
24
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Define ranges before previewing" });
|
|
25
|
+
}
|
|
26
|
+
const sampleValues = (0, StyledColumnGradientHelper_1.getGradientPreviewSampleValues)(data, api);
|
|
27
|
+
if (!sampleValues.length) {
|
|
28
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No preview available" });
|
|
29
|
+
}
|
|
30
|
+
const rowNode = api.gridApi?.getRowNodeForIndex(0) ?? null;
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "stretch", className: "twa:flex-wrap twa:gap-2", children: sampleValues.map((value) => ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-GradientPreviewCell twa:px-2 twa:py-1 twa:min-w-[56px] twa:text-2 twa:text-center twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]", style: (0, StyledColumnGradientHelper_1.getGradientPreviewCellStyle)(value, data, api, rowNode), children: formatPreviewValue(value) }, value))) }));
|
|
32
|
+
};
|
|
33
|
+
exports.StyledColumnGradientPreview = StyledColumnGradientPreview;
|
|
34
|
+
const StyledColumnGradientPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnGradientPreview, { data: data }) })] }));
|
|
35
|
+
exports.StyledColumnGradientPreviewCard = StyledColumnGradientPreviewCard;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
3
|
+
export declare const DEFAULT_ICON_STYLE_SIZE = 18;
|
|
4
|
+
export declare const DEFAULT_ICON_STYLE_GAP = 4;
|
|
5
|
+
export declare const StyledColumnIconPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
6
|
+
data: StyledColumn;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const StyledColumnIconPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
9
|
+
data: StyledColumn;
|
|
10
|
+
}>>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnIconPreviewCard = exports.StyledColumnIconPreview = exports.DEFAULT_ICON_STYLE_GAP = exports.DEFAULT_ICON_STYLE_SIZE = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Icon_1 = require("../../../../../components/Icon");
|
|
6
|
+
const IconRenderer_1 = require("../../../../../agGrid/cellRenderers/IconRenderer");
|
|
7
|
+
const AdaptableIconComponent_1 = require("../../../../Components/AdaptableIconComponent");
|
|
8
|
+
const Flex_1 = require("../../../../../components/Flex");
|
|
9
|
+
const Card_1 = require("../../../../../components/Card");
|
|
10
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
11
|
+
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
12
|
+
exports.DEFAULT_ICON_STYLE_SIZE = 18;
|
|
13
|
+
exports.DEFAULT_ICON_STYLE_GAP = 4;
|
|
14
|
+
const PREVIEW_CELL_CLASS = 'ab-IconPreviewCell twa:inline-flex twa:items-center twa:min-w-[140px] twa:min-h-[32px] twa:px-2 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
15
|
+
const isInlineGlyph = (spec) => typeof spec === 'string';
|
|
16
|
+
const isAdaptableIconSpec = (spec) => !!spec &&
|
|
17
|
+
((0, Icon_1.isAdaptableSystemIcon)(spec) ||
|
|
18
|
+
(0, Icon_1.isAdaptableCustomIcon)(spec) ||
|
|
19
|
+
(0, Icon_1.isAdaptableElementIcon)(spec));
|
|
20
|
+
function getIconCellChromeCss(cell) {
|
|
21
|
+
if (!cell || !(0, StyleHelper_1.hasCellBoxStyle)(cell)) {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
return (0, StyleHelper_1.convertAdaptableStyleToCSS)(cell);
|
|
25
|
+
}
|
|
26
|
+
const renderIconSpecForPreview = (spec, size) => {
|
|
27
|
+
if (isInlineGlyph(spec)) {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("span", { className: "ab-IconStyle__glyph", style: {
|
|
29
|
+
fontSize: size,
|
|
30
|
+
lineHeight: 1,
|
|
31
|
+
display: 'inline-flex',
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
justifyContent: 'center',
|
|
34
|
+
}, children: spec }));
|
|
35
|
+
}
|
|
36
|
+
if (isAdaptableIconSpec(spec)) {
|
|
37
|
+
return (0, jsx_runtime_1.jsx)(AdaptableIconComponent_1.AdaptableIconComponent, { icon: spec });
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
};
|
|
41
|
+
const buildPreviewText = (mapping, iconStyle) => {
|
|
42
|
+
const cellTextTokens = iconStyle.CellText ?? [];
|
|
43
|
+
const formatted = String(mapping.Key);
|
|
44
|
+
const textParts = [];
|
|
45
|
+
if (cellTextTokens.includes('CellValue') && formatted) {
|
|
46
|
+
textParts.push(formatted);
|
|
47
|
+
}
|
|
48
|
+
if (cellTextTokens.includes('IconDescription') && mapping.Description) {
|
|
49
|
+
textParts.push(mapping.Description);
|
|
50
|
+
}
|
|
51
|
+
return textParts.length > 0 ? textParts.join(' · ') : undefined;
|
|
52
|
+
};
|
|
53
|
+
const IconCellPreviewTree = ({ iconStyle, mapping }) => {
|
|
54
|
+
const size = iconStyle.Size ?? exports.DEFAULT_ICON_STYLE_SIZE;
|
|
55
|
+
const gap = iconStyle.Gap ?? exports.DEFAULT_ICON_STYLE_GAP;
|
|
56
|
+
const textPosition = iconStyle.CellTextPosition ?? 'After';
|
|
57
|
+
const text = buildPreviewText(mapping, iconStyle);
|
|
58
|
+
const fontStyle = iconStyle.Font ? (0, StyleHelper_1.convertAdaptableStyleToCSS)(iconStyle.Font) : undefined;
|
|
59
|
+
const iconNode = renderIconSpecForPreview(mapping.Icon, size);
|
|
60
|
+
const textNode = text ? ((0, jsx_runtime_1.jsx)("span", { className: "ab-IconStyle__text", style: { lineHeight: 1.2, ...fontStyle }, children: text })) : null;
|
|
61
|
+
if (!iconNode && !textNode) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
if (!textNode) {
|
|
65
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: iconNode });
|
|
66
|
+
}
|
|
67
|
+
if (!iconNode) {
|
|
68
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: textNode });
|
|
69
|
+
}
|
|
70
|
+
const isStacked = textPosition === 'Above' || textPosition === 'Below';
|
|
71
|
+
const children = textPosition === 'Before' || textPosition === 'Above'
|
|
72
|
+
? [textNode, iconNode]
|
|
73
|
+
: [iconNode, textNode];
|
|
74
|
+
return ((0, jsx_runtime_1.jsx)("span", { className: "ab-IconStyle__wrapper", style: {
|
|
75
|
+
display: 'inline-flex',
|
|
76
|
+
flexDirection: isStacked ? 'column' : 'row',
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
gap,
|
|
79
|
+
lineHeight: 1,
|
|
80
|
+
}, children: children }));
|
|
81
|
+
};
|
|
82
|
+
const StyledColumnIconPreview = ({ data }) => {
|
|
83
|
+
const iconStyle = data.IconStyle;
|
|
84
|
+
if (!iconStyle) {
|
|
85
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Icon Style" });
|
|
86
|
+
}
|
|
87
|
+
const effectiveMappings = (0, IconRenderer_1.resolveEffectiveIconStyleMappings)(iconStyle);
|
|
88
|
+
if (effectiveMappings.length === 0) {
|
|
89
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Define mappings to preview" });
|
|
90
|
+
}
|
|
91
|
+
const previewCellChrome = getIconCellChromeCss(iconStyle.Cell);
|
|
92
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, style: previewCellChrome, children: (0, jsx_runtime_1.jsx)(IconCellPreviewTree, { iconStyle: iconStyle, mapping: effectiveMappings[0] }) }));
|
|
93
|
+
};
|
|
94
|
+
exports.StyledColumnIconPreview = StyledColumnIconPreview;
|
|
95
|
+
const StyledColumnIconPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnIconPreview, { data: data }) })] }));
|
|
96
|
+
exports.StyledColumnIconPreviewCard = StyledColumnIconPreviewCard;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
3
|
+
export declare const StyledColumnPercentBarPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
4
|
+
data: StyledColumn;
|
|
5
|
+
}>>;
|
|
6
|
+
export declare const StyledColumnPercentBarPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
7
|
+
data: StyledColumn;
|
|
8
|
+
}>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnPercentBarPreviewCard = exports.StyledColumnPercentBarPreview = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
6
|
+
const percentBarPreviewHelper_1 = require("../../../../../Utilities/Helpers/percentBarPreviewHelper");
|
|
7
|
+
const Flex_1 = require("../../../../../components/Flex");
|
|
8
|
+
const Card_1 = require("../../../../../components/Card");
|
|
9
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
10
|
+
const PREVIEW_CELL_CLASS = 'ab-PercentBarPreviewCell twa:w-[72px] twa:min-h-[32px] twa:px-1 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
11
|
+
const PercentBarPreviewCell = ({ styledColumn, value, min, max }) => {
|
|
12
|
+
const pb = styledColumn.PercentBarStyle;
|
|
13
|
+
const { barLeftPercent, barWidthPercent, percentageValue, barColor } = (0, percentBarPreviewHelper_1.getPercentBarPreviewGeometry)(value, pb, min, max);
|
|
14
|
+
const trackColor = (0, percentBarPreviewHelper_1.getPercentBarPreviewTrackColor)(pb);
|
|
15
|
+
const fillColor = (0, percentBarPreviewHelper_1.getPercentBarPreviewResolvedBarColor)(barColor);
|
|
16
|
+
const cellText = (0, percentBarPreviewHelper_1.formatPercentBarPreviewCellText)(value, percentageValue, pb);
|
|
17
|
+
const hasCellText = Boolean(pb.CellText?.length && cellText);
|
|
18
|
+
const textPosition = pb.CellTextPosition ?? 'Below';
|
|
19
|
+
const fontStyle = pb.Font ? (0, StyleHelper_1.convertAdaptableStyleToCSS)(pb.Font) : undefined;
|
|
20
|
+
const textEl = hasCellText ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-PercentBar__text twa:text-2 twa:leading-tight twa:truncate", style: fontStyle, children: cellText })) : null;
|
|
21
|
+
const barEl = ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "ab-PercentBar__bar twa:relative twa:flex-1 twa:min-h-[6px]", style: trackColor ? { background: (0, percentBarPreviewHelper_1.getPercentBarPreviewResolvedBarColor)(trackColor) } : undefined, children: [fillColor && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-PercentBar__barInside twa:absolute twa:top-0 twa:h-full", style: {
|
|
22
|
+
background: fillColor,
|
|
23
|
+
left: `${barLeftPercent.toFixed(2)}%`,
|
|
24
|
+
width: `${barWidthPercent.toFixed(2)}%`,
|
|
25
|
+
} })), hasCellText && textPosition === 'Merged' && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-PercentBar__text twa:absolute twa:inset-x-0 twa:top-1/2 twa:-translate-y-1/2 twa:px-1 twa:text-2 twa:truncate", style: fontStyle, children: cellText }))] }));
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: `ab-PercentBar__wrapper ${PREVIEW_CELL_CLASS}`, flexDirection: "column", style: { justifyContent: 'center', height: hasCellText && textPosition !== 'Merged' ? '100%' : undefined }, children: [hasCellText && textPosition === 'Above' && textEl, barEl, hasCellText && textPosition === 'Below' && textEl] }));
|
|
27
|
+
};
|
|
28
|
+
const StyledColumnPercentBarPreview = ({ data }) => {
|
|
29
|
+
const pb = data.PercentBarStyle;
|
|
30
|
+
if (!pb) {
|
|
31
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Percent Bar Style" });
|
|
32
|
+
}
|
|
33
|
+
if (!(0, percentBarPreviewHelper_1.hasPercentBarRangesConfigured)(pb)) {
|
|
34
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Define ranges before previewing" });
|
|
35
|
+
}
|
|
36
|
+
let min;
|
|
37
|
+
let max;
|
|
38
|
+
if (pb.ColumnComparison) {
|
|
39
|
+
const cmpMin = Number(pb.ColumnComparison.MinValue);
|
|
40
|
+
const cmpMax = Number(pb.ColumnComparison.MaxValue);
|
|
41
|
+
if (!Number.isNaN(cmpMin) && !Number.isNaN(cmpMax)) {
|
|
42
|
+
min = cmpMin;
|
|
43
|
+
max = cmpMax;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
({ min, max } = (0, percentBarPreviewHelper_1.getPercentBarPreviewScale)(pb));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
({ min, max } = (0, percentBarPreviewHelper_1.getPercentBarPreviewScale)(pb));
|
|
51
|
+
}
|
|
52
|
+
const sampleValues = (0, percentBarPreviewHelper_1.getPercentBarPreviewSampleValues)(pb);
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "stretch", className: "twa:flex-wrap twa:gap-2", children: sampleValues.map((value) => ((0, jsx_runtime_1.jsx)(PercentBarPreviewCell, { styledColumn: data, value: value, min: min, max: max }, value))) }));
|
|
54
|
+
};
|
|
55
|
+
exports.StyledColumnPercentBarPreview = StyledColumnPercentBarPreview;
|
|
56
|
+
const StyledColumnPercentBarPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnPercentBarPreview, { data: data }) })] }));
|
|
57
|
+
exports.StyledColumnPercentBarPreviewCard = StyledColumnPercentBarPreviewCard;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
3
|
+
export declare const StyledColumnRangeBarPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
4
|
+
data: StyledColumn;
|
|
5
|
+
}>>;
|
|
6
|
+
export declare const StyledColumnRangeBarPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
7
|
+
data: StyledColumn;
|
|
8
|
+
}>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnRangeBarPreviewCard = exports.StyledColumnRangeBarPreview = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Flex_1 = require("../../../../../components/Flex");
|
|
6
|
+
const Card_1 = require("../../../../../components/Card");
|
|
7
|
+
const Tag_1 = require("../../../../../components/Tag");
|
|
8
|
+
const StyledColumnChartListPreviews_1 = require("./StyledColumnChartListPreviews");
|
|
9
|
+
const PREVIEW_CELL_CLASS = 'ab-RangeBarPreviewCell twa:inline-flex twa:items-center twa:min-w-[180px] twa:min-h-[36px] twa:px-2 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
10
|
+
const getRangeBarPreviewSample = (range) => {
|
|
11
|
+
let min = 0;
|
|
12
|
+
let max = 100;
|
|
13
|
+
if (typeof range.Min === 'number' && typeof range.Max === 'number') {
|
|
14
|
+
min = range.Min;
|
|
15
|
+
max = range.Max;
|
|
16
|
+
}
|
|
17
|
+
const span = max - min || 1;
|
|
18
|
+
// Matches the value-marker position (~72%) in `StyledColumnRangeBarListPreview`.
|
|
19
|
+
const sampleValue = min + span * 0.72;
|
|
20
|
+
const valueFraction = (sampleValue - min) / span;
|
|
21
|
+
return {
|
|
22
|
+
sampleValue,
|
|
23
|
+
valueFraction: Math.max(0, Math.min(1, valueFraction)),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const formatRangeBarPreviewCellText = (sampleValue, valueFraction, range) => {
|
|
27
|
+
const parts = [];
|
|
28
|
+
if (range.CellText?.includes('CellValue')) {
|
|
29
|
+
parts.push(Number.isInteger(sampleValue) ? String(sampleValue) : sampleValue.toFixed(1));
|
|
30
|
+
}
|
|
31
|
+
if (range.CellText?.includes('PercentageValue')) {
|
|
32
|
+
parts.push(`${(valueFraction * 100).toFixed(0)}%`);
|
|
33
|
+
}
|
|
34
|
+
return parts.join(' ');
|
|
35
|
+
};
|
|
36
|
+
const RangeBarPreviewContent = ({ range }) => {
|
|
37
|
+
const { sampleValue, valueFraction } = getRangeBarPreviewSample(range);
|
|
38
|
+
const cellText = formatRangeBarPreviewCellText(sampleValue, valueFraction, range);
|
|
39
|
+
const hasCellText = Boolean(range.CellText?.length && cellText);
|
|
40
|
+
const textPosition = range.CellTextPosition ?? 'Below';
|
|
41
|
+
const isVertical = range.Orientation === 'Vertical';
|
|
42
|
+
const chartEl = (0, jsx_runtime_1.jsx)(StyledColumnChartListPreviews_1.StyledColumnRangeBarListPreview, { range: range });
|
|
43
|
+
const textEl = hasCellText ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-RangeBar__text twa:text-2 twa:leading-tight twa:truncate twa:max-w-full", children: cellText })) : null;
|
|
44
|
+
if (hasCellText && textPosition === 'Merged') {
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "ab-RangeBar__wrapper twa:relative twa:inline-flex", children: [chartEl, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-RangeBar__text twa:absolute twa:inset-x-0 twa:top-1/2 twa:-translate-y-1/2 twa:px-1 twa:text-2 twa:truncate twa:pointer-events-none", children: cellText })] }));
|
|
46
|
+
}
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-RangeBar__wrapper", flexDirection: "column", alignItems: isVertical ? 'center' : 'stretch', style: { justifyContent: 'center', gap: hasCellText ? 2 : 0 }, children: [hasCellText && textPosition === 'Above' && textEl, chartEl, hasCellText && textPosition === 'Below' && textEl] }));
|
|
48
|
+
};
|
|
49
|
+
const StyledColumnRangeBarPreview = ({ data }) => {
|
|
50
|
+
const range = data.RangeBarStyle;
|
|
51
|
+
if (!range) {
|
|
52
|
+
return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Range Bar Style" });
|
|
53
|
+
}
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, children: (0, jsx_runtime_1.jsx)(RangeBarPreviewContent, { range: range }) }));
|
|
55
|
+
};
|
|
56
|
+
exports.StyledColumnRangeBarPreview = StyledColumnRangeBarPreview;
|
|
57
|
+
const StyledColumnRangeBarPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnRangeBarPreview, { data: data }) })] }));
|
|
58
|
+
exports.StyledColumnRangeBarPreviewCard = StyledColumnRangeBarPreviewCard;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CellBoxStyle } from '../../../../../AdaptableState/Common/AdaptableStyle';
|
|
3
|
+
import { RatingIconShape, RatingStyle, StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
4
|
+
export declare const DEFAULT_RATING_MAX = 5;
|
|
5
|
+
export declare const DEFAULT_RATING_SIZE = 14;
|
|
6
|
+
export declare const DEFAULT_RATING_GAP = 2;
|
|
7
|
+
export declare const DEFAULT_RATING_ICON: RatingIconShape;
|
|
8
|
+
export declare function getRatingCellChromeCss(cell: CellBoxStyle | undefined): React.CSSProperties;
|
|
9
|
+
export declare const RatingPreview: React.FC<{
|
|
10
|
+
rating: RatingStyle;
|
|
11
|
+
value?: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const StyledColumnRatingPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
14
|
+
data: StyledColumn;
|
|
15
|
+
}>>;
|
|
16
|
+
export declare const StyledColumnRatingPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
17
|
+
data: StyledColumn;
|
|
18
|
+
}>>;
|