@adaptabletools/adaptable-cjs 23.0.0-canary.4 → 23.0.0-canary.6

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.
Files changed (250) hide show
  1. package/index.css +117 -62
  2. package/package.json +9 -4
  3. package/src/AdaptableOptions/EditOptions.d.ts +2 -2
  4. package/src/AdaptableState/Common/AggregationColumns.d.ts +14 -6
  5. package/src/AdaptableState/Common/AggregationColumns.js +30 -3
  6. package/src/AdaptableState/Common/ColumnScope.d.ts +4 -0
  7. package/src/AdaptableState/Common/Enums.d.ts +5 -5
  8. package/src/AdaptableState/Common/Enums.js +4 -4
  9. package/src/AdaptableState/PlusMinusState.d.ts +3 -3
  10. package/src/AdaptableState/ShortcutState.d.ts +2 -6
  11. package/src/AdaptableState/StyledColumnState.d.ts +3 -5
  12. package/src/AdaptableState/ThemeState.d.ts +33 -28
  13. package/src/Api/EventApi.d.ts +14 -1
  14. package/src/Api/Events/ThemeChanged.d.ts +6 -0
  15. package/src/Api/Events/ThemeSelected.d.ts +11 -0
  16. package/src/Api/Events/ThemeSelected.js +2 -0
  17. package/src/Api/Implementation/EventApiImpl.js +4 -0
  18. package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -2
  19. package/src/Api/Implementation/LayoutApiImpl.js +0 -14
  20. package/src/Api/Implementation/LayoutHelpers.d.ts +2 -0
  21. package/src/Api/Implementation/LayoutHelpers.js +19 -8
  22. package/src/Api/Implementation/ThemeApiImpl.d.ts +3 -2
  23. package/src/Api/Implementation/ThemeApiImpl.js +19 -15
  24. package/src/Api/Internal/EventInternalApi.d.ts +2 -0
  25. package/src/Api/Internal/EventInternalApi.js +8 -1
  26. package/src/Api/Internal/StyledColumnInternalApi.d.ts +4 -4
  27. package/src/Api/Internal/StyledColumnInternalApi.js +4 -4
  28. package/src/Api/Internal/ThemeInternalApi.d.ts +0 -1
  29. package/src/Api/Internal/ThemeInternalApi.js +0 -10
  30. package/src/Api/LayoutApi.d.ts +1 -8
  31. package/src/Api/ThemeApi.d.ts +6 -2
  32. package/src/Redux/ActionsReducers/ThemeRedux.d.ts +3 -3
  33. package/src/Strategy/FormatColumnModule.js +12 -5
  34. package/src/Strategy/LayoutModule.js +13 -8
  35. package/src/Strategy/StyledColumnModule.js +58 -30
  36. package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
  37. package/src/Utilities/Constants/ReduxConstants.js +1 -14
  38. package/src/Utilities/Helpers/FormatHelper.js +20 -1
  39. package/src/Utilities/Helpers/SparklineOptionsHelper.d.ts +7 -0
  40. package/src/Utilities/Helpers/SparklineOptionsHelper.js +68 -0
  41. package/src/Utilities/Helpers/StyledColumnGradientHelper.d.ts +23 -1
  42. package/src/Utilities/Helpers/StyledColumnGradientHelper.js +212 -1
  43. package/src/Utilities/Helpers/ThemeHelpers.d.ts +5 -0
  44. package/src/Utilities/Helpers/ThemeHelpers.js +43 -0
  45. package/src/Utilities/Helpers/percentBarPreviewHelper.d.ts +19 -0
  46. package/src/Utilities/Helpers/percentBarPreviewHelper.js +155 -0
  47. package/src/Utilities/ObjectFactory.d.ts +1 -3
  48. package/src/Utilities/ObjectFactory.js +0 -9
  49. package/src/Utilities/Services/ThemeService.js +1 -1
  50. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +17 -16
  51. package/src/View/Alert/Wizard/AlertButtonsEditor.js +113 -102
  52. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +12 -13
  53. package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +54 -54
  54. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
  55. package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -1
  56. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +29 -37
  57. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +2 -3
  58. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +9 -13
  59. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +28 -15
  60. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +7 -9
  61. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +2 -2
  62. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
  63. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +3 -10
  64. package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +1 -1
  65. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +32 -41
  66. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +4 -31
  67. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/PreviewChartSection.d.ts +5 -0
  68. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/PreviewChartSection.js +26 -0
  69. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +1 -0
  70. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +9 -6
  71. package/src/View/Comments/CommentsEditor.js +1 -1
  72. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +0 -1
  73. package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +3 -1
  74. package/src/View/Components/ModuleProfile.js +1 -1
  75. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +0 -1
  76. package/src/View/Components/Popups/WindowPopups/windowFactory.js +1 -2
  77. package/src/View/Components/RangesComponent.d.ts +7 -2
  78. package/src/View/Components/RangesComponent.js +94 -22
  79. package/src/View/Components/StyleComponent.d.ts +1 -0
  80. package/src/View/Components/StyleComponent.js +1 -1
  81. package/src/View/Components/ValueSelector/index.js +70 -57
  82. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +8 -13
  83. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +8 -8
  84. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
  85. package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +11 -12
  86. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +5 -4
  87. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +2 -1
  88. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +4 -15
  89. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +24 -27
  90. package/src/View/Export/Wizard/ReportNameWizardSection.js +8 -11
  91. package/src/View/Export/Wizard/ReportRowsWizardSection.js +19 -22
  92. package/src/View/Export/Wizard/ScheduledReportSettings.d.ts +2 -0
  93. package/src/View/Export/Wizard/ScheduledReportSettings.js +12 -12
  94. package/src/View/Export/Wizard/ScheduledReportWizard.js +2 -3
  95. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +8 -6
  96. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -20
  97. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -11
  98. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +19 -3
  99. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
  100. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +7 -0
  101. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +120 -13
  102. package/src/View/FormatColumn/Wizard/FormatColumnPreview.d.ts +15 -0
  103. package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +78 -0
  104. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +4 -0
  105. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +34 -0
  106. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +11 -6
  107. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  108. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -1
  109. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +64 -13
  110. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -1
  111. package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.d.ts +2 -0
  112. package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.js +19 -0
  113. package/src/View/FreeTextColumn/Wizard/FreeTextColumnDefinitionWizardSection.d.ts +10 -0
  114. package/src/View/FreeTextColumn/Wizard/FreeTextColumnDefinitionWizardSection.js +60 -0
  115. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +2 -3
  116. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +35 -70
  117. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +14 -10
  118. package/src/View/Layout/TransposedPopup.js +2 -2
  119. package/src/View/Layout/Wizard/LayoutWizard.js +3 -3
  120. package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +2 -3
  121. package/src/View/Layout/Wizard/sections/AggregationsSection.js +116 -26
  122. package/src/View/Layout/Wizard/sections/ColumnsSection.js +79 -79
  123. package/src/View/Layout/Wizard/sections/FilterSection.js +31 -32
  124. package/src/View/Layout/Wizard/sections/GridFilterSection.js +10 -10
  125. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +1 -2
  126. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +101 -51
  127. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +9 -8
  128. package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +4 -4
  129. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +36 -33
  130. package/src/View/Layout/Wizard/sections/RowSelectionSection.js +2 -2
  131. package/src/View/Layout/Wizard/sections/RowSummarySection.js +95 -73
  132. package/src/View/Layout/Wizard/sections/SettingsSection.js +3 -4
  133. package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
  134. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  135. package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +7 -12
  136. package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +1 -3
  137. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.d.ts +4 -0
  138. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +45 -12
  139. package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +10 -17
  140. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +2 -6
  141. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +5 -21
  142. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +15 -21
  143. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +2 -2
  144. package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +10 -17
  145. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +16 -5
  146. package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -2
  147. package/src/View/Shortcut/shortcutOperations.d.ts +3 -0
  148. package/src/View/Shortcut/shortcutOperations.js +32 -1
  149. package/src/View/SpecialColumnSettingsWizardStep.js +7 -6
  150. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +5 -0
  151. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +26 -16
  152. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +10 -2
  153. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +100 -15
  154. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +14 -0
  155. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +48 -25
  156. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.d.ts +2 -3
  157. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +109 -33
  158. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +20 -12
  159. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.d.ts +5 -0
  160. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +124 -23
  161. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.d.ts +1 -0
  162. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +35 -11
  163. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.d.ts +5 -0
  164. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +88 -11
  165. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.d.ts +5 -0
  166. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +125 -35
  167. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.d.ts +1 -0
  168. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +55 -74
  169. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.d.ts +5 -0
  170. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.js +20 -0
  171. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +6 -12
  172. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +5 -5
  173. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +2 -1
  174. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +5 -4
  175. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +11 -13
  176. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.d.ts +5 -0
  177. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.js +20 -0
  178. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +3 -0
  179. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +32 -3
  180. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +9 -0
  181. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +64 -0
  182. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.d.ts +10 -0
  183. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +35 -0
  184. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.d.ts +10 -0
  185. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +96 -0
  186. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.d.ts +8 -0
  187. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +57 -0
  188. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.d.ts +8 -0
  189. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +58 -0
  190. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +18 -0
  191. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +66 -0
  192. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.d.ts +10 -0
  193. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +133 -0
  194. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +12 -5
  195. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts +1 -5
  196. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +53 -29
  197. package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +1 -1
  198. package/src/View/Theme/ThemePopup.d.ts +2 -14
  199. package/src/View/Theme/ThemePopup.js +1 -36
  200. package/src/View/UIHelper.js +1 -1
  201. package/src/View/Wizard/OnePageAdaptableWizard.js +6 -20
  202. package/src/agGrid/AdaptableAgGrid.d.ts +1 -0
  203. package/src/agGrid/AdaptableAgGrid.js +34 -24
  204. package/src/agGrid/AgGridAdapter.d.ts +1 -1
  205. package/src/agGrid/AgGridAdapter.js +27 -17
  206. package/src/agGrid/AgGridColumnAdapter.js +9 -15
  207. package/src/agGrid/AgGridMenuAdapter.d.ts +0 -1
  208. package/src/agGrid/AgGridMenuAdapter.js +20 -37
  209. package/src/agGrid/buildValueAggregationMenuItem.d.ts +19 -0
  210. package/src/agGrid/buildValueAggregationMenuItem.js +114 -0
  211. package/src/agGrid/cellRenderers/IconRenderer.d.ts +6 -0
  212. package/src/agGrid/cellRenderers/IconRenderer.js +46 -17
  213. package/src/agGrid/createAgGridIcon.d.ts +10 -0
  214. package/src/agGrid/createAgGridIcon.js +19 -0
  215. package/src/components/DragAndDropContext/UnusedPanel.js +1 -1
  216. package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
  217. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
  218. package/src/components/Input/NumberInput.js +1 -1
  219. package/src/components/Panel/index.js +1 -1
  220. package/src/components/SimpleButton/index.js +4 -4
  221. package/src/components/Toggle/Toggle.js +1 -1
  222. package/src/components/Toggle/ToggleGroup.js +1 -1
  223. package/src/env.js +2 -2
  224. package/src/layout-manager/src/index.js +2 -9
  225. package/src/metamodel/adaptable.metamodel.d.ts +39 -29
  226. package/src/metamodel/adaptable.metamodel.js +1 -1
  227. package/src/types.d.ts +5 -4
  228. package/themes/dark.css +1 -68
  229. package/themes/light.css +1 -5
  230. package/tsconfig.cjs.tsbuildinfo +1 -1
  231. package/src/Aggregation/ParameterizedAggregationRegistry.d.ts +0 -35
  232. package/src/Aggregation/ParameterizedAggregationRegistry.js +0 -74
  233. package/src/Aggregation/definitions/weightedAverageAggregationDefinition.d.ts +0 -3
  234. package/src/Aggregation/definitions/weightedAverageAggregationDefinition.js +0 -58
  235. package/src/Aggregation/parameterizedAggregationColumnMenu.d.ts +0 -8
  236. package/src/Aggregation/parameterizedAggregationColumnMenu.js +0 -143
  237. package/src/Aggregation/parameterizedAggregationHeader.d.ts +0 -13
  238. package/src/Aggregation/parameterizedAggregationHeader.js +0 -65
  239. package/src/Aggregation/parameterizedAggregationHelpers.d.ts +0 -23
  240. package/src/Aggregation/parameterizedAggregationHelpers.js +0 -121
  241. package/src/Aggregation/parameterizedAggregationWizardHelpers.d.ts +0 -9
  242. package/src/Aggregation/parameterizedAggregationWizardHelpers.js +0 -74
  243. package/src/Aggregation/validateParameterizedAggregations.d.ts +0 -4
  244. package/src/Aggregation/validateParameterizedAggregations.js +0 -25
  245. package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.d.ts +0 -12
  246. package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.js +0 -48
  247. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.d.ts +0 -5
  248. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.js +0 -32
  249. package/src/View/Theme/VariantSelector.d.ts +0 -8
  250. package/src/View/Theme/VariantSelector.js +0 -25
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderBadgePillStyleSummaryTags = exports.BadgePillStyleEditor = void 0;
3
+ exports.renderBadgePillStyleSummaryTags = exports.getBadgePillStyleSummaryItems = exports.BadgePillStyleEditor = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const CheckBox_1 = require("../../../components/CheckBox");
@@ -42,29 +42,39 @@ const BadgePillStyleEditor = (props) => {
42
42
  return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mt-2 twa:rounded-standard twa:border twa:border-border twa:overflow-hidden twa:shadow-sm", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-3", children: (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { columns: [LABEL_COLUMN, CHILD_COLUMN], sizes: ['7.5rem', '1fr'], gridColumnGap: "0.75rem", children: [(0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Background", children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-2", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: !!pill.BackColor, onChange: (checked) => update({ BackColor: checked ? pill.BackColor ?? '#cccccc' : undefined }), children: "Set" }), (0, jsx_runtime_1.jsx)(ColorPicker_1.ColorPicker, { disabled: disabled || !pill.BackColor, api: props.api, value: pill.BackColor || '#cccccc', onChange: (c) => update({ BackColor: c }) })] }) }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Text", children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-2", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: !!pill.ForeColor, onChange: (checked) => update({ ForeColor: checked ? pill.ForeColor ?? '#000000' : undefined }), children: "Set" }), (0, jsx_runtime_1.jsx)(ColorPicker_1.ColorPicker, { disabled: disabled || !pill.ForeColor, api: props.api, value: pill.ForeColor || '#000000', onChange: (c) => update({ ForeColor: c }) })] }) }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Border", children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-2", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: !!pill.BorderColor, onChange: (checked) => update({ BorderColor: checked ? pill.BorderColor ?? '#000000' : undefined }), children: "Set" }), (0, jsx_runtime_1.jsx)(ColorPicker_1.ColorPicker, { disabled: disabled || !pill.BorderColor, api: props.api, value: pill.BorderColor || '#000000', onChange: (c) => update({ BorderColor: c }) })] }) }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Font", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: disabledClass, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-2 twa:flex-wrap", children: [(0, jsx_runtime_1.jsxs)(Toggle_1.ToggleGroup, { children: [(0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { pressed: pill.FontStyle === 'Italic', onPressedChange: (pressed) => update({ FontStyle: pressed ? 'Italic' : undefined }), icon: "italic" }), (0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { pressed: pill.FontWeight === 'Bold', onPressedChange: (pressed) => update({ FontWeight: pressed ? 'Bold' : undefined }), icon: "bold" })] }), (0, jsx_runtime_1.jsxs)(Toggle_1.ToggleGroup, { children: [(0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { pressed: pill.TextDecoration === 'Underline', onPressedChange: (pressed) => update({ TextDecoration: pressed ? 'Underline' : undefined }), icon: "underline" }), (0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { pressed: pill.TextDecoration === 'LineThrough', onPressedChange: (pressed) => update({ TextDecoration: pressed ? 'LineThrough' : undefined }), icon: "strikethrough" }), (0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { pressed: pill.TextDecoration === 'Overline', onPressedChange: (pressed) => update({ TextDecoration: pressed ? 'Overline' : undefined }), icon: "overline" })] })] }) }) })] }) }) }));
43
43
  };
44
44
  exports.BadgePillStyleEditor = BadgePillStyleEditor;
45
- /** Compact summary tags for a {@link BadgePillStyle}; used by wizard summaries. */
46
- const renderBadgePillStyleSummaryTags = (pill) => {
47
- if (!pill)
48
- return null;
49
- const tags = [];
45
+ /** Descriptive pill properties for summary panels (`Label: value` strings). */
46
+ const getBadgePillStyleSummaryItems = (pill) => {
47
+ if (!pill) {
48
+ return [];
49
+ }
50
+ const items = [];
50
51
  if (pill.BackColor) {
51
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Bg ", pill.BackColor] }, "bg"));
52
+ items.push({ label: 'Pill Back Colour', value: pill.BackColor });
52
53
  }
53
54
  if (pill.ForeColor) {
54
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Text ", pill.ForeColor] }, "fg"));
55
+ items.push({ label: 'Pill Fore Colour', value: pill.ForeColor });
55
56
  }
56
57
  if (pill.BorderColor) {
57
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Border ", pill.BorderColor] }, "bc"));
58
+ items.push({ label: 'Pill Border Colour', value: pill.BorderColor });
59
+ }
60
+ if (pill.FontWeight === 'Bold') {
61
+ items.push({ label: 'Pill Font Weight', value: 'Bold' });
62
+ }
63
+ if (pill.FontStyle === 'Italic') {
64
+ items.push({ label: 'Pill Font Style', value: 'Italic' });
58
65
  }
59
- if (pill.FontWeight === 'Bold')
60
- tags.push((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Bold" }, "b"));
61
- if (pill.FontStyle === 'Italic')
62
- tags.push((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Italic" }, "i"));
63
66
  if (pill.TextDecoration && pill.TextDecoration !== 'None') {
64
- tags.push((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: pill.TextDecoration }, "td"));
67
+ items.push({ label: 'Pill Text Decoration', value: pill.TextDecoration });
65
68
  }
66
- if (tags.length === 0)
69
+ return items;
70
+ };
71
+ exports.getBadgePillStyleSummaryItems = getBadgePillStyleSummaryItems;
72
+ /** Compact summary tags for a {@link BadgePillStyle}; used by wizard summaries. */
73
+ const renderBadgePillStyleSummaryTags = (pill) => {
74
+ const items = (0, exports.getBadgePillStyleSummaryItems)(pill);
75
+ if (!items.length) {
67
76
  return null;
68
- return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:flex-wrap", children: tags }));
77
+ }
78
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:flex-wrap", children: items.map(({ label, value }) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: `${label}: ${value}` }, label))) }));
69
79
  };
70
80
  exports.renderBadgePillStyleSummaryTags = renderBadgePillStyleSummaryTags;
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { StyledColumn } from '../../../types';
3
- export declare const renderBadgeSummary: (styledColumn: StyledColumn) => React.JSX.Element;
3
+ import { AdaptableApi } from '../../../Api/AdaptableApi';
4
+ export declare const getStyledColumnBadgeDefinitionViewValueGroups: (styledColumn: StyledColumn, api: AdaptableApi) => string[][];
5
+ export declare const getStyledColumnBadgeDefinitionViewValues: (styledColumn: StyledColumn, api: AdaptableApi) => string[];
6
+ export declare const getStyledColumnBadgeStyleViewValues: (styledColumn: StyledColumn, api?: AdaptableApi) => string[];
7
+ export declare const renderBadgeDefinitionSummaryTags: (styledColumn: StyledColumn, api: AdaptableApi) => React.JSX.Element;
8
+ export declare const StyledColumnBadgeDefinitionsView: React.FunctionComponent<React.PropsWithChildren<{
9
+ data: StyledColumn;
10
+ }>>;
11
+ export declare const renderBadgeSummary: (styledColumn: StyledColumn, api?: AdaptableApi) => React.JSX.Element;
4
12
  export interface StyledColumnBadgeSectionProps {
5
13
  onChange: (data: StyledColumn) => void;
6
14
  }
@@ -9,4 +17,4 @@ export interface StyledColumnBadgeStyleSectionProps {
9
17
  onChange: (data: StyledColumn) => void;
10
18
  }
11
19
  export declare const StyledColumnBadgeStyleSection: React.FunctionComponent<StyledColumnBadgeStyleSectionProps>;
12
- export declare const renderBadgeStyleSummary: (styledColumn: StyledColumn) => React.JSX.Element;
20
+ export declare const renderBadgeStyleSummary: (styledColumn: StyledColumn, api?: AdaptableApi) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderBadgeStyleSummary = exports.StyledColumnBadgeStyleSection = exports.StyledColumnBadgeSection = exports.renderBadgeSummary = void 0;
3
+ exports.renderBadgeStyleSummary = exports.StyledColumnBadgeStyleSection = exports.StyledColumnBadgeSection = exports.renderBadgeSummary = exports.StyledColumnBadgeDefinitionsView = exports.renderBadgeDefinitionSummaryTags = exports.getStyledColumnBadgeStyleViewValues = exports.getStyledColumnBadgeDefinitionViewValues = exports.getStyledColumnBadgeDefinitionViewValueGroups = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
@@ -13,7 +13,6 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
13
13
  const AdaptableIconSelector_1 = require("../../Components/AdaptableIconSelector");
14
14
  const PredicateEditor_1 = require("../../Components/PredicateEditor/PredicateEditor");
15
15
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
16
- const StyledColumnBadgePreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview");
17
16
  const Badge_1 = require("../../Components/Badge");
18
17
  const AdaptableIconComponent_1 = require("../../Components/AdaptableIconComponent");
19
18
  const GeneralConstants_1 = require("../../../Utilities/Constants/GeneralConstants");
@@ -25,6 +24,8 @@ const Toggle_1 = require("../../../components/Toggle");
25
24
  const BadgePillStyleEditor_1 = require("./BadgePillStyleEditor");
26
25
  const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
27
26
  const Card_1 = require("../../../components/Card");
27
+ const AdaptableContext_1 = require("../../AdaptableContext");
28
+ const StyledColumnBadgePreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview");
28
29
  const BADGE_STYLE_FORM_SIZES = ['200px', '1fr'];
29
30
  const SHAPE_CHOICES = [
30
31
  { value: 'Pill', label: 'Pill' },
@@ -98,8 +99,93 @@ const BadgeEditor = (props) => {
98
99
  });
99
100
  } }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70", children: "px between icon and text \u2014 leave blank to follow Density" })] }) }))] }) })] }));
100
101
  };
101
- const renderBadgeSummary = (styledColumn) => {
102
- return (0, jsx_runtime_1.jsx)(StyledColumnBadgePreview_1.StyledColumnBadgePreview, { data: styledColumn });
102
+ const getStyledColumnBadgeDefinitionViewValueGroups = (styledColumn, api) => {
103
+ const badgeStyle = styledColumn.BadgeStyle;
104
+ if (!badgeStyle?.Badges?.length) {
105
+ return [];
106
+ }
107
+ return badgeStyle.Badges.map((badge, index) => {
108
+ const items = [];
109
+ let rule = 'Always';
110
+ if (badge.Predicate) {
111
+ rule = api.predicateApi.predicateToString(badge.Predicate);
112
+ }
113
+ else if (badge.Expression) {
114
+ rule = badge.Expression.BooleanExpression;
115
+ }
116
+ items.push(`Badge ${index + 1}: ${rule}`);
117
+ items.push(`Shape: ${badge.Shape ?? 'Rounded'}`);
118
+ (0, BadgePillStyleEditor_1.getBadgePillStyleSummaryItems)(badge.PillStyle).forEach(({ label, value }) => {
119
+ items.push(`${label}: ${value}`);
120
+ });
121
+ if (badge.Icon) {
122
+ const iconName = 'name' in badge.Icon ? badge.Icon.name : 'Custom';
123
+ items.push(`Icon: ${iconName}`);
124
+ }
125
+ if (badge.IconOnly) {
126
+ items.push('Icon Only: Yes');
127
+ }
128
+ if (badge.Icon && badge.IconPosition) {
129
+ items.push(`Icon Position: ${badge.IconPosition}`);
130
+ }
131
+ if (typeof badge.IconGap === 'number') {
132
+ items.push(`Icon Gap: ${badge.IconGap}px`);
133
+ }
134
+ return items;
135
+ });
136
+ };
137
+ exports.getStyledColumnBadgeDefinitionViewValueGroups = getStyledColumnBadgeDefinitionViewValueGroups;
138
+ const getStyledColumnBadgeDefinitionViewValues = (styledColumn, api) => {
139
+ return (0, exports.getStyledColumnBadgeDefinitionViewValueGroups)(styledColumn, api).flat();
140
+ };
141
+ exports.getStyledColumnBadgeDefinitionViewValues = getStyledColumnBadgeDefinitionViewValues;
142
+ const isBadgeArrayColumn = (styledColumn, api) => {
143
+ if (!api || !styledColumn.ColumnId) {
144
+ return false;
145
+ }
146
+ const dataType = api.columnApi.getColumnDataTypeForColumnId(styledColumn.ColumnId);
147
+ return dataType === 'numberArray' || dataType === 'textArray';
148
+ };
149
+ const getStyledColumnBadgeStyleViewValues = (styledColumn, api) => {
150
+ const badgeStyle = styledColumn.BadgeStyle;
151
+ if (!badgeStyle) {
152
+ return [];
153
+ }
154
+ const items = [`Density: ${badgeStyle.Density ?? 'Normal'}`];
155
+ if (isBadgeArrayColumn(styledColumn, api)) {
156
+ if (typeof badgeStyle.Spacing === 'number') {
157
+ items.push(`Spacing: ${badgeStyle.Spacing}px`);
158
+ }
159
+ items.push(`Overflow: ${badgeStyle.OverflowMode ?? 'Truncate'}`);
160
+ }
161
+ (0, StyledColumnSliceStyleEditors_1.getCellFontStyleSummaryItems)(badgeStyle.Font).forEach(({ label, value }) => {
162
+ items.push(`${label}: ${value}`);
163
+ });
164
+ (0, StyledColumnSliceStyleEditors_1.getCellBoxStyleSummaryItems)(badgeStyle.Cell).forEach(({ label, value }) => {
165
+ items.push(`${label}: ${value}`);
166
+ });
167
+ return items;
168
+ };
169
+ exports.getStyledColumnBadgeStyleViewValues = getStyledColumnBadgeStyleViewValues;
170
+ const renderBadgeDefinitionSummaryTags = (styledColumn, api) => {
171
+ const groups = (0, exports.getStyledColumnBadgeDefinitionViewValueGroups)(styledColumn, api);
172
+ if (!groups.length) {
173
+ return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Badges Defined" });
174
+ }
175
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2", children: groups.map((items, index) => ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:flex-wrap twa:gap-2", children: items.map((item, itemIndex) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: item }, `${index}-${itemIndex}`))) }, index))) }));
176
+ };
177
+ exports.renderBadgeDefinitionSummaryTags = renderBadgeDefinitionSummaryTags;
178
+ const StyledColumnBadgeDefinitionsView = ({ data }) => {
179
+ const { api } = (0, AdaptableContext_1.useAdaptable)();
180
+ return (0, exports.renderBadgeDefinitionSummaryTags)(data, api);
181
+ };
182
+ exports.StyledColumnBadgeDefinitionsView = StyledColumnBadgeDefinitionsView;
183
+ const renderBadgeSummary = (styledColumn, api) => {
184
+ if (!api) {
185
+ const { api: adaptableApi } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
186
+ api = adaptableApi;
187
+ }
188
+ return (0, exports.renderBadgeDefinitionSummaryTags)(styledColumn, api);
103
189
  };
104
190
  exports.renderBadgeSummary = renderBadgeSummary;
105
191
  const StyledColumnBadgeSection = (props) => {
@@ -182,19 +268,18 @@ const StyledColumnBadgeStyleSection = (props) => {
182
268
  delete cleaned.Cell;
183
269
  props.onChange({ ...data, BadgeStyle: cleaned });
184
270
  }
185
- } }) })] })] })] }));
271
+ } }) })] })] }), (0, jsx_runtime_1.jsx)(StyledColumnBadgePreview_1.StyledColumnBadgePreviewCard, { data: data })] }));
186
272
  };
187
273
  exports.StyledColumnBadgeStyleSection = StyledColumnBadgeStyleSection;
188
- const renderBadgeStyleSummary = (styledColumn) => {
189
- const badgeStyle = styledColumn?.BadgeStyle;
190
- if (!badgeStyle) {
191
- return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "\u2014" });
274
+ const renderBadgeStyleSummary = (styledColumn, api) => {
275
+ if (!api) {
276
+ const { api: adaptableApi } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
277
+ api = adaptableApi;
278
+ }
279
+ const items = (0, exports.getStyledColumnBadgeStyleViewValues)(styledColumn, api);
280
+ if (!items.length) {
281
+ return (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "No Style Defined" });
192
282
  }
193
- const density = badgeStyle.Density ?? 'Normal';
194
- const spacing = typeof badgeStyle.Spacing === 'number' ? badgeStyle.Spacing : null;
195
- const overflow = badgeStyle.OverflowMode ?? 'Truncate';
196
- const alignment = badgeStyle.Font?.Alignment;
197
- const cellTags = (0, StyledColumnSliceStyleEditors_1.renderCellStyleSummaryTags)(badgeStyle.Cell);
198
- 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: ["Density: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: density })] }), spacing != null && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Spacing: ", (0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: [spacing, "px"] })] })), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Overflow: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: overflow })] }), alignment && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Align: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: alignment })] })), cellTags && (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Cell: ", cellTags] })] }));
283
+ 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))) }));
199
284
  };
200
285
  exports.renderBadgeStyleSummary = renderBadgeStyleSummary;
@@ -39,10 +39,24 @@ export interface StyledColumnCellStyleEditorProps {
39
39
  * key is unset) which the host wizard merges back into its `*Style` patch.
40
40
  */
41
41
  export declare const StyledColumnCellStyleEditor: React.FunctionComponent<StyledColumnCellStyleEditorProps>;
42
+ /**
43
+ * Descriptive font properties for summary panels (`Label: value` strings).
44
+ */
45
+ export declare const getCellFontStyleSummaryItems: (font: CellFontStyle | undefined) => {
46
+ label: string;
47
+ value: string;
48
+ }[];
42
49
  /**
43
50
  * Compact summary tags for the Font slice; used by wizard summary panels.
44
51
  */
45
52
  export declare const renderFontStyleSummaryTags: (font: CellFontStyle | undefined) => React.JSX.Element | null;
53
+ /**
54
+ * Descriptive cell box properties for summary panels (`Label: value` strings).
55
+ */
56
+ export declare const getCellBoxStyleSummaryItems: (cell: CellBoxStyle | undefined) => {
57
+ label: string;
58
+ value: string;
59
+ }[];
46
60
  /**
47
61
  * Compact summary tags for the Cell slice; used by wizard summary panels.
48
62
  */
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderCellStyleSummaryTags = exports.renderFontStyleSummaryTags = exports.StyledColumnCellStyleEditor = exports.StyledColumnFontStyleEditor = void 0;
3
+ exports.renderCellStyleSummaryTags = exports.getCellBoxStyleSummaryItems = exports.renderFontStyleSummaryTags = exports.getCellFontStyleSummaryItems = exports.StyledColumnCellStyleEditor = exports.StyledColumnFontStyleEditor = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const React = tslib_1.__importStar(require("react"));
6
7
  const CheckBox_1 = require("../../../components/CheckBox");
7
8
  const ColorPicker_1 = require("../../../components/ColorPicker");
8
9
  const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
@@ -74,9 +75,11 @@ exports.StyledColumnFontStyleEditor = StyledColumnFontStyleEditor;
74
75
  */
75
76
  const StyledColumnCellStyleEditor = (props) => {
76
77
  const cell = props.value ?? {};
78
+ const cellRef = React.useRef(cell);
79
+ cellRef.current = cell;
77
80
  const { disabled } = props;
78
81
  const update = (patch) => {
79
- const next = { ...cell, ...patch };
82
+ const next = { ...cellRef.current, ...patch };
80
83
  Object.keys(next).forEach((k) => {
81
84
  const v = next[k];
82
85
  if (v === undefined || v === null || v === '') {
@@ -94,53 +97,73 @@ const StyledColumnCellStyleEditor = (props) => {
94
97
  };
95
98
  exports.StyledColumnCellStyleEditor = StyledColumnCellStyleEditor;
96
99
  /**
97
- * Compact summary tags for the Font slice; used by wizard summary panels.
100
+ * Descriptive font properties for summary panels (`Label: value` strings).
98
101
  */
99
- const renderFontStyleSummaryTags = (font) => {
100
- if (!font)
101
- return null;
102
- const tags = [];
102
+ const getCellFontStyleSummaryItems = (font) => {
103
+ if (!font) {
104
+ return [];
105
+ }
106
+ const items = [];
103
107
  if (font.ForeColor) {
104
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Text ", font.ForeColor] }, "fg"));
108
+ items.push({ label: 'Fore Colour', value: font.ForeColor });
105
109
  }
106
110
  if (font.FontWeight === 'Bold') {
107
- tags.push((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Bold" }, "b"));
111
+ items.push({ label: 'Font Weight', value: 'Bold' });
108
112
  }
109
113
  if (font.FontStyle === 'Italic') {
110
- tags.push((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Italic" }, "i"));
114
+ items.push({ label: 'Font Style', value: 'Italic' });
111
115
  }
112
116
  if (font.TextDecoration && font.TextDecoration !== 'None') {
113
- tags.push((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: font.TextDecoration }, "td"));
117
+ items.push({ label: 'Text Decoration', value: font.TextDecoration });
114
118
  }
115
119
  if (font.FontSize) {
116
- tags.push((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: font.FontSize }, "fs"));
120
+ items.push({ label: 'Font Size', value: font.FontSize });
117
121
  }
118
122
  if (font.Alignment && font.Alignment !== 'Default') {
119
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Align ", font.Alignment] }, "al"));
123
+ items.push({ label: 'Alignment', value: font.Alignment });
120
124
  }
121
- if (tags.length === 0)
125
+ return items;
126
+ };
127
+ exports.getCellFontStyleSummaryItems = getCellFontStyleSummaryItems;
128
+ /**
129
+ * Compact summary tags for the Font slice; used by wizard summary panels.
130
+ */
131
+ const renderFontStyleSummaryTags = (font) => {
132
+ const items = (0, exports.getCellFontStyleSummaryItems)(font);
133
+ if (!items.length) {
122
134
  return null;
123
- return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:flex-wrap", children: tags }));
135
+ }
136
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:flex-wrap", children: items.map(({ label, value }) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: `${label}: ${value}` }, label))) }));
124
137
  };
125
138
  exports.renderFontStyleSummaryTags = renderFontStyleSummaryTags;
126
139
  /**
127
- * Compact summary tags for the Cell slice; used by wizard summary panels.
140
+ * Descriptive cell box properties for summary panels (`Label: value` strings).
128
141
  */
129
- const renderCellStyleSummaryTags = (cell) => {
130
- if (!cell)
131
- return null;
132
- const tags = [];
142
+ const getCellBoxStyleSummaryItems = (cell) => {
143
+ if (!cell) {
144
+ return [];
145
+ }
146
+ const items = [];
133
147
  if (cell.BackColor) {
134
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Bg ", cell.BackColor] }, "bg"));
148
+ items.push({ label: 'Back Colour', value: cell.BackColor });
135
149
  }
136
150
  if (cell.BorderColor) {
137
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Border ", cell.BorderColor] }, "bc"));
151
+ items.push({ label: 'Border Colour', value: cell.BorderColor });
138
152
  }
139
153
  if (cell.BorderRadius != null) {
140
- tags.push((0, jsx_runtime_1.jsxs)(Tag_1.Tag, { children: ["Radius ", cell.BorderRadius, "px"] }, "br"));
154
+ items.push({ label: 'Border Radius', value: `${cell.BorderRadius}px` });
141
155
  }
142
- if (tags.length === 0)
156
+ return items;
157
+ };
158
+ exports.getCellBoxStyleSummaryItems = getCellBoxStyleSummaryItems;
159
+ /**
160
+ * Compact summary tags for the Cell slice; used by wizard summary panels.
161
+ */
162
+ const renderCellStyleSummaryTags = (cell) => {
163
+ const items = (0, exports.getCellBoxStyleSummaryItems)(cell);
164
+ if (!items.length) {
143
165
  return null;
144
- return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:flex-wrap", children: tags }));
166
+ }
167
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:flex-wrap", children: items.map(({ label, value }) => ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: `${label}: ${value}` }, label))) }));
145
168
  };
146
169
  exports.renderCellStyleSummaryTags = renderCellStyleSummaryTags;
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import type { StyledColumn } from '../../../types';
3
+ export declare const getStyledColumnSparklineStyleViewValues: (data: StyledColumn) => string[];
3
4
  /**
4
- * Wizard-step summary for the Sparkline Settings step, mirroring the
5
- * pattern used by Bullet / Badge / Gradient / Percent Bar so the nav row
6
- * isn't blank when this step is collapsed.
5
+ * Wizard-step summary for the Sparkline Settings step.
7
6
  */
8
7
  export declare const renderSparklineSummary: (data: StyledColumn) => React.ReactNode;
9
8
  /**