@adaptabletools/adaptable-cjs 23.0.4 → 23.0.5-canary.1

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 (515) hide show
  1. package/agGrid.js +0 -31
  2. package/index.css +0 -64
  3. package/index.js +0 -31
  4. package/package.json +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -2
  6. package/src/AdaptableOptions/AdaptablePlugin.js +1 -9
  7. package/src/AdaptableOptions/DefaultAdaptableOptions.js +3 -39
  8. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +44 -16
  9. package/src/AdaptableState/Aggregations/only.js +0 -11
  10. package/src/AdaptableState/Aggregations/weightedAverage.d.ts +0 -1
  11. package/src/AdaptableState/Aggregations/weightedAverage.js +3 -30
  12. package/src/AdaptableState/Common/AdaptableColumn.js +0 -1
  13. package/src/AdaptableState/Common/AdaptableForm.js +0 -49
  14. package/src/AdaptableState/Common/AdaptableFormatPresets.js +0 -13
  15. package/src/AdaptableState/Common/AdaptablePredicate.js +3 -125
  16. package/src/AdaptableState/Common/AggregationColumns.js +0 -10
  17. package/src/AdaptableState/Common/Enums.js +0 -3
  18. package/src/AdaptableState/Common/Menu.js +1 -7
  19. package/src/AdaptableState/Common/MenuItem.js +0 -2
  20. package/src/AdaptableState/Common/Types.js +2 -5
  21. package/src/AdaptableState/StatusBarState.js +0 -3
  22. package/src/AdaptableState/StyledColumns/BadgeStyle.js +0 -1
  23. package/src/AdaptableState/StyledColumns/Common/BarStyleProperties.js +0 -4
  24. package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +0 -5
  25. package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +0 -8
  26. package/src/AdaptableState/Uuid.js +0 -1
  27. package/src/Api/Implementation/AdaptableApiImpl.js +0 -4
  28. package/src/Api/Implementation/AlertApiImpl.js +0 -21
  29. package/src/Api/Implementation/ApiBase.js +0 -24
  30. package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -1
  31. package/src/Api/Implementation/ChartingApiImpl.js +0 -3
  32. package/src/Api/Implementation/ColumnApiImpl.js +1 -15
  33. package/src/Api/Implementation/ColumnFilterApiImpl.js +0 -9
  34. package/src/Api/Implementation/ColumnScopeApiImpl.js +0 -21
  35. package/src/Api/Implementation/DashboardApiImpl.js +0 -1
  36. package/src/Api/Implementation/EntitlementApiImpl.js +0 -1
  37. package/src/Api/Implementation/ExportApiImpl.js +0 -10
  38. package/src/Api/Implementation/ExpressionApiImpl.js +0 -1
  39. package/src/Api/Implementation/FormatColumnApiImpl.js +0 -3
  40. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -2
  41. package/src/Api/Implementation/GridApiImpl.js +1 -22
  42. package/src/Api/Implementation/GridFilterApiImpl.js +0 -2
  43. package/src/Api/Implementation/LayoutApiImpl.js +0 -18
  44. package/src/Api/Implementation/LayoutHelpers.js +0 -16
  45. package/src/Api/Implementation/NamedQueryApiImpl.js +0 -1
  46. package/src/Api/Implementation/PredicateApiImpl.js +0 -5
  47. package/src/Api/Implementation/RowFormApiImpl.js +0 -2
  48. package/src/Api/Implementation/StateApiImpl.js +0 -7
  49. package/src/Api/Implementation/SystemStatusApiImpl.js +0 -2
  50. package/src/Api/Implementation/TeamSharingApiImpl.js +0 -3
  51. package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -1
  52. package/src/Api/Internal/ActionColumnInternalApi.js +0 -1
  53. package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
  54. package/src/Api/Internal/AdaptableInternalApi.js +1 -39
  55. package/src/Api/Internal/AlertInternalApi.js +1 -102
  56. package/src/Api/Internal/CalculatedColumnInternalApi.js +0 -17
  57. package/src/Api/Internal/ChartingInternalApi.js +0 -1
  58. package/src/Api/Internal/ColumnFilterInternalApi.js +0 -52
  59. package/src/Api/Internal/ColumnInternalApi.js +0 -32
  60. package/src/Api/Internal/CustomSortInternalApi.js +0 -5
  61. package/src/Api/Internal/DashboardInternalApi.js +0 -23
  62. package/src/Api/Internal/DataImportInternalApi.js +0 -1
  63. package/src/Api/Internal/EventInternalApi.js +0 -2
  64. package/src/Api/Internal/ExportInternalApi.js +1 -16
  65. package/src/Api/Internal/ExpressionInternalApi.js +0 -23
  66. package/src/Api/Internal/Fdc3InternalApi.js +0 -9
  67. package/src/Api/Internal/FlashingCellInternalApi.js +0 -5
  68. package/src/Api/Internal/FormatColumnInternalApi.js +5 -107
  69. package/src/Api/Internal/FreeTextColumnInternalApi.js +0 -8
  70. package/src/Api/Internal/GridFilterInternalApi.js +0 -3
  71. package/src/Api/Internal/GridInternalApi.js +0 -37
  72. package/src/Api/Internal/LayoutInternalApi.js +0 -18
  73. package/src/Api/Internal/NamedQueryInternalApi.js +0 -9
  74. package/src/Api/Internal/PredicateInternalApi.js +0 -23
  75. package/src/Api/Internal/RowFormInternalApi.js +0 -18
  76. package/src/Api/Internal/StateInternalApi.js +0 -25
  77. package/src/Api/Internal/StyledColumnInternalApi.js +0 -62
  78. package/src/Api/Internal/TeamSharingInternalApi.js +0 -9
  79. package/src/Redux/ActionsReducers/AlertRedux.js +0 -24
  80. package/src/Redux/ActionsReducers/ApplicationRedux.js +0 -9
  81. package/src/Redux/ActionsReducers/BulkUpdateRedux.js +0 -6
  82. package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +1 -16
  83. package/src/Redux/ActionsReducers/ChartingRedux.js +0 -24
  84. package/src/Redux/ActionsReducers/CommentsRedux.js +0 -24
  85. package/src/Redux/ActionsReducers/CustomSortRedux.js +0 -24
  86. package/src/Redux/ActionsReducers/DashboardRedux.js +0 -33
  87. package/src/Redux/ActionsReducers/ExportRedux.js +0 -36
  88. package/src/Redux/ActionsReducers/FlashingCellRedux.js +0 -24
  89. package/src/Redux/ActionsReducers/FormatColumnRedux.js +0 -36
  90. package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +1 -20
  91. package/src/Redux/ActionsReducers/InternalRedux.js +0 -42
  92. package/src/Redux/ActionsReducers/LayoutRedux.js +1 -67
  93. package/src/Redux/ActionsReducers/NamedQueryRedux.js +0 -15
  94. package/src/Redux/ActionsReducers/NoteRedux.js +0 -14
  95. package/src/Redux/ActionsReducers/PluginsRedux.js +0 -3
  96. package/src/Redux/ActionsReducers/PlusMinusRedux.js +0 -34
  97. package/src/Redux/ActionsReducers/PopupRedux.js +2 -6
  98. package/src/Redux/ActionsReducers/QuickSearchRedux.js +0 -15
  99. package/src/Redux/ActionsReducers/ShortcutRedux.js +0 -24
  100. package/src/Redux/ActionsReducers/SmartEditRedux.js +0 -6
  101. package/src/Redux/ActionsReducers/StatusBarRedux.js +0 -6
  102. package/src/Redux/ActionsReducers/StyledColumnRedux.js +0 -27
  103. package/src/Redux/ActionsReducers/SystemStatusRedux.js +0 -6
  104. package/src/Redux/ActionsReducers/TeamSharingRedux.js +0 -1
  105. package/src/Redux/ActionsReducers/ThemeRedux.js +0 -26
  106. package/src/Redux/ActionsReducers/ToolPanelRedux.js +0 -22
  107. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +0 -3
  108. package/src/Redux/ActionsReducers/utils.js +0 -6
  109. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +0 -1
  110. package/src/Redux/Store/AdaptableReduxMerger.js +0 -25
  111. package/src/Redux/Store/AdaptableStore.js +5 -301
  112. package/src/Strategy/AdaptableModuleBase.js +0 -35
  113. package/src/Strategy/AlertModule.js +0 -9
  114. package/src/Strategy/CellSummaryModule.js +0 -12
  115. package/src/Strategy/ChartingModule.js +0 -1
  116. package/src/Strategy/ColumnFilterModule.js +1 -11
  117. package/src/Strategy/CommentModule.js +0 -2
  118. package/src/Strategy/DashboardModule.js +0 -4
  119. package/src/Strategy/ExportModule.js +0 -1
  120. package/src/Strategy/FlashingCellModule.js +0 -8
  121. package/src/Strategy/FormatColumnModule.js +0 -3
  122. package/src/Strategy/FreeTextColumnModule.js +0 -3
  123. package/src/Strategy/LayoutModule.js +0 -26
  124. package/src/Strategy/NoteModule.js +0 -3
  125. package/src/Strategy/PlusMinusModule.js +0 -3
  126. package/src/Strategy/SettingsPanelModule.js +0 -1
  127. package/src/Strategy/ShortcutModule.js +0 -1
  128. package/src/Strategy/SmartEditModule.js +0 -5
  129. package/src/Strategy/StatusBarModule.js +0 -7
  130. package/src/Strategy/StyledColumnModule.js +1 -16
  131. package/src/Strategy/TeamSharingModule.js +0 -9
  132. package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +0 -5
  133. package/src/Utilities/Constants/DocumentationLinkConstants.js +0 -1
  134. package/src/Utilities/Constants/GeneralConstants.js +0 -10
  135. package/src/Utilities/Constants/ObjectDefaultConstants.js +0 -3
  136. package/src/Utilities/Constants/ReduxConstants.js +4 -8
  137. package/src/Utilities/Emitter.js +0 -9
  138. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +0 -8
  139. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +0 -15
  140. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +0 -3
  141. package/src/Utilities/ExpressionFunctions/deepMap.js +0 -16
  142. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +0 -9
  143. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +7 -78
  144. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +0 -9
  145. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +2 -16
  146. package/src/Utilities/Extensions/ArrayExtensions.js +1 -63
  147. package/src/Utilities/Extensions/NumberExtensions.js +0 -27
  148. package/src/Utilities/Extensions/ObjectExtensions.js +0 -36
  149. package/src/Utilities/Extensions/StringExtensions.js +0 -27
  150. package/src/Utilities/Helpers/ActionColumnHelper.js +0 -4
  151. package/src/Utilities/Helpers/AdaptableHelper.js +0 -8
  152. package/src/Utilities/Helpers/DateHelper.js +0 -10
  153. package/src/Utilities/Helpers/DisplayFormatHelper.js +0 -8
  154. package/src/Utilities/Helpers/Helper.js +3 -9
  155. package/src/Utilities/Helpers/PlusMinusHelper.js +0 -20
  156. package/src/Utilities/Helpers/QuickSearchHelper.js +0 -5
  157. package/src/Utilities/Helpers/Scheduling/CronExpression.js +0 -43
  158. package/src/Utilities/Helpers/Scheduling/ScheduledReportHelper.js +0 -4
  159. package/src/Utilities/Helpers/SettingsPanelHelper.js +40 -4
  160. package/src/Utilities/Helpers/StyleHelper.js +0 -56
  161. package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.js +0 -46
  162. package/src/Utilities/Helpers/StyledColumns/GradientStyleHelper.js +0 -38
  163. package/src/Utilities/Helpers/StyledColumns/IconStyleHelper.js +0 -39
  164. package/src/Utilities/Helpers/StyledColumns/PercentBarStyleHelper.js +0 -1
  165. package/src/Utilities/Helpers/StyledColumns/SparklineStyleHelper.js +0 -5
  166. package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +0 -37
  167. package/src/Utilities/Helpers/TimingHelper.js +0 -13
  168. package/src/Utilities/ObjectFactory.js +2 -4
  169. package/src/Utilities/Services/AggregatedScalarLiveValue.js +0 -7
  170. package/src/Utilities/Services/AlertService.js +0 -1
  171. package/src/Utilities/Services/AnnotationsService.js +0 -22
  172. package/src/Utilities/Services/CalculatedColumnExpressionService.js +0 -8
  173. package/src/Utilities/Services/ChartingService.js +0 -9
  174. package/src/Utilities/Services/DataService.js +0 -11
  175. package/src/Utilities/Services/Fdc3Service.js +0 -3
  176. package/src/Utilities/Services/FlashingCellService.js +0 -6
  177. package/src/Utilities/Services/ModuleService.js +0 -8
  178. package/src/Utilities/Services/QueryLanguageService.js +2 -25
  179. package/src/Utilities/Services/RowFormService.js +0 -1
  180. package/src/Utilities/Services/RowSummaryService.js +1 -20
  181. package/src/Utilities/Services/TeamSharingService.js +0 -15
  182. package/src/Utilities/Services/ThemeService.js +0 -7
  183. package/src/Utilities/Services/ValidationService.js +0 -21
  184. package/src/Utilities/createAgStatusPanelComponent.js +0 -3
  185. package/src/Utilities/getExpressionViewItems.js +0 -2
  186. package/src/Utilities/getObjectTagsViewItems.js +0 -1
  187. package/src/Utilities/getScrollbarSize.js +0 -1
  188. package/src/Utilities/logDeprecation.js +0 -3
  189. package/src/Utilities/resolveContainerElement.js +0 -21
  190. package/src/Utilities/runIfNotResolvedIn.js +0 -7
  191. package/src/Utilities/sortColumnStateForVisibleColumns.js +2 -12
  192. package/src/Utilities/waitForTimeout.js +0 -1
  193. package/src/Utilities/wizardSelection.js +0 -2
  194. package/src/View/AdaptablePopover/index.js +1 -1
  195. package/src/View/AdaptableView.js +1 -5
  196. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -4
  197. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -23
  198. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -2
  199. package/src/View/AdaptableWizardView/Wizard.js +0 -12
  200. package/src/View/AdaptableWizardView/helper.js +0 -11
  201. package/src/View/Alert/ActiveAlertsPanel.js +0 -2
  202. package/src/View/Alert/AlertStatusSubPanel.js +0 -8
  203. package/src/View/Alert/Utilities/getAlertType.js +0 -7
  204. package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +0 -5
  205. package/src/View/Alert/Utilities/mapAlertDefinition.js +0 -3
  206. package/src/View/Alert/Wizard/AlertWizard.js +0 -2
  207. package/src/View/Alert/Wizard/isValidAlertRules.js +0 -1
  208. package/src/View/BulkUpdate/BulkUpdatePopup.js +0 -1
  209. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -3
  210. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +0 -1
  211. package/src/View/CalculatedColumn/utils.d.ts +1 -1
  212. package/src/View/CellSummary/CellSummaryPopup.js +0 -3
  213. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -7
  214. package/src/View/Charting/EditChartButton.js +1 -4
  215. package/src/View/Charting/ShowChartButton.js +0 -3
  216. package/src/View/Charting/useAgChartState.js +0 -5
  217. package/src/View/Charting/useChartingElements.js +0 -4
  218. package/src/View/Charting/useExternalChartState.js +0 -6
  219. package/src/View/ColumnInfo/ColumnInfo.js +7 -17
  220. package/src/View/Comments/CommentsEditor.js +1 -16
  221. package/src/View/Components/AdaptableButton/AdaptableButtonComponent.js +0 -1
  222. package/src/View/Components/AdaptableButton/AdaptableButtonView.js +0 -3
  223. package/src/View/Components/AdaptableDateInput/index.js +2 -9
  224. package/src/View/Components/AdaptableIconComponent/index.js +0 -4
  225. package/src/View/Components/AdaptableIconSelector/index.js +0 -3
  226. package/src/View/Components/AdaptableInput/index.js +0 -2
  227. package/src/View/Components/Badge/index.js +0 -8
  228. package/src/View/Components/Buttons/ButtonNewPage.js +1 -2
  229. package/src/View/Components/CellPopup/index.js +1 -2
  230. package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +0 -4
  231. package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +0 -4
  232. package/src/View/Components/ColumnFilter/ColumnFilter.js +3 -46
  233. package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +0 -2
  234. package/src/View/Components/ColumnFilter/FloatingFilter.js +1 -20
  235. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -16
  236. package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -4
  237. package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -6
  238. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +0 -20
  239. package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +0 -5
  240. package/src/View/Components/ColumnFilter/utils.js +2 -9
  241. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +0 -2
  242. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +0 -1
  243. package/src/View/Components/EntityRulesEditor/index.js +1 -11
  244. package/src/View/Components/ExternalRenderer.js +1 -3
  245. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -52
  246. package/src/View/Components/ModuleValueSelector/index.js +0 -2
  247. package/src/View/Components/Panels/PanelWithImage.js +1 -5
  248. package/src/View/Components/Panels/PanelWithRow.js +0 -3
  249. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +0 -6
  250. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +0 -3
  251. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +0 -6
  252. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -2
  253. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +0 -1
  254. package/src/View/Components/Popups/AdaptablePopupAlert.js +0 -3
  255. package/src/View/Components/Popups/AdaptableToaster.js +0 -2
  256. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +0 -8
  257. package/src/View/Components/RangesComponent.js +0 -57
  258. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +0 -3
  259. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -6
  260. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -18
  261. package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +0 -4
  262. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
  263. package/src/View/Components/ValueSelector/index.js +0 -4
  264. package/src/View/Components/wizardColumnListStyles.js +0 -5
  265. package/src/View/Dashboard/CustomToolbar.js +1 -25
  266. package/src/View/Dashboard/PinnedToolbarsSelector.js +0 -1
  267. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -22
  268. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +0 -1
  269. package/src/View/DataImport/systemFileHandlers.js +1 -1
  270. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +0 -1
  271. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +0 -27
  272. package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +0 -1
  273. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +0 -7
  274. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -12
  275. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +0 -10
  276. package/src/View/GridFilter/GridFilterPopup.js +0 -1
  277. package/src/View/GridFilter/useGridFilterExpressionEditor.js +0 -2
  278. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -31
  279. package/src/View/Layout/LayoutViewPanel.js +0 -2
  280. package/src/View/Layout/PivotDetailsPopoup.js +0 -2
  281. package/src/View/Layout/TransposedPopup.js +0 -7
  282. package/src/View/Layout/Wizard/LayoutWizard.js +1 -6
  283. package/src/View/Layout/Wizard/sections/AggregationsSection.js +0 -2
  284. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -32
  285. package/src/View/Layout/Wizard/sections/RowSummarySection.js +0 -3
  286. package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +0 -2
  287. package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +0 -4
  288. package/src/View/Note/NotePopup.js +0 -1
  289. package/src/View/QuickSearch/QuickSearchPopup.js +0 -1
  290. package/src/View/StatusBar/AdaptableStatusBar.js +0 -4
  291. package/src/View/StatusBar/StatusBarPanel.js +0 -8
  292. package/src/View/StatusBar/StatusBarPopup.js +0 -2
  293. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +0 -11
  294. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +0 -28
  295. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +0 -13
  296. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -25
  297. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +0 -26
  298. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +0 -3
  299. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +0 -40
  300. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +0 -55
  301. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +0 -15
  302. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +0 -21
  303. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextPreview.js +0 -10
  304. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +0 -5
  305. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +0 -4
  306. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +0 -5
  307. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +0 -3
  308. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +0 -13
  309. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +0 -1
  310. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +0 -1
  311. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +0 -1
  312. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +0 -13
  313. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -13
  314. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -21
  315. package/src/View/SystemStatus/SystemStatusPopup.js +0 -1
  316. package/src/View/TeamSharing/SharedEntityObjectView.js +0 -1
  317. package/src/View/Theme/ThemeSelector.js +0 -1
  318. package/src/View/UIHelper.js +0 -6
  319. package/src/View/UIInterfaces.js +0 -1
  320. package/src/View/Wizard/CollapsibleWizardCard.js +1 -8
  321. package/src/View/Wizard/OnePageWizards.js +2 -9
  322. package/src/View/Wizard/SummaryColorTag.js +0 -1
  323. package/src/View/Wizard/useKeyboardNavigation.js +1 -3
  324. package/src/agGrid/Adaptable.js +0 -12
  325. package/src/agGrid/AdaptableAgGrid.d.ts +0 -2
  326. package/src/agGrid/AdaptableAgGrid.js +3 -482
  327. package/src/agGrid/AdaptableFilterHandler.js +0 -5
  328. package/src/agGrid/AdaptableLogger.js +0 -6
  329. package/src/agGrid/AgGridAdapter.js +3 -90
  330. package/src/agGrid/AgGridColumnAdapter.js +6 -168
  331. package/src/agGrid/AgGridExportAdapter.js +4 -106
  332. package/src/agGrid/AgGridFilterAdapter.js +0 -5
  333. package/src/agGrid/AgGridFloatingFilterAdapter.js +0 -10
  334. package/src/agGrid/AgGridMenuAdapter.js +0 -143
  335. package/src/agGrid/AgGridModulesAdapter.js +0 -2
  336. package/src/agGrid/AgGridOptionsService.js +0 -2
  337. package/src/agGrid/AgGridThemeAdapter.js +0 -7
  338. package/src/agGrid/agGridDataTypeDefinitions.js +0 -8
  339. package/src/agGrid/cellRenderers/BadgeRenderer.js +0 -10
  340. package/src/agGrid/cellRenderers/BulletChartRenderer.js +1 -96
  341. package/src/agGrid/cellRenderers/IconRenderer.js +0 -55
  342. package/src/agGrid/cellRenderers/PercentBarRenderer.js +0 -51
  343. package/src/agGrid/cellRenderers/RangeBarRenderer.js +1 -50
  344. package/src/agGrid/cellRenderers/RatingRenderer.js +0 -40
  345. package/src/agGrid/editors/AdaptableDateEditor/index.js +0 -18
  346. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +0 -3
  347. package/src/agGrid/editors/AdaptableNumberEditor/index.js +0 -11
  348. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +0 -9
  349. package/src/agGrid/index.js +0 -6
  350. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -73
  351. package/src/components/CodeBlock/index.d.ts +0 -1
  352. package/src/components/CodeBlock/index.js +2 -3
  353. package/src/components/ColorPicker/ColorPicker.js +0 -6
  354. package/src/components/Combobox/VirtualizedList.js +0 -5
  355. package/src/components/Combobox/index.js +5 -63
  356. package/src/components/Dashboard/Dashboard.js +1 -4
  357. package/src/components/Datepicker/index.js +2 -97
  358. package/src/components/DragAndDropContext/TabList.js +2 -6
  359. package/src/components/Drawer/index.js +0 -7
  360. package/src/components/Dropdown/index.js +0 -1
  361. package/src/components/DropdownButton/index.js +0 -1
  362. package/src/components/ExpressionEditor/BaseEditorInput.js +1 -16
  363. package/src/components/ExpressionEditor/EditorButton.js +0 -1
  364. package/src/components/ExpressionEditor/EditorInput.js +1 -7
  365. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +0 -1
  366. package/src/components/ExpressionEditor/ExpressionPreview.js +4 -14
  367. package/src/components/ExpressionEditor/NamedQueryContext.js +0 -1
  368. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -6
  369. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +0 -12
  370. package/src/components/ExpressionEditor/QueryBuilder/utils.js +0 -4
  371. package/src/components/ExpressionEditor/index.js +5 -14
  372. package/src/components/Icon/index.js +0 -2
  373. package/src/components/Input/NumberInput.js +0 -10
  374. package/src/components/Modal/Backdrop.js +0 -1
  375. package/src/components/OverlayTrigger/Overlay.js +0 -1
  376. package/src/components/OverlayTrigger/index.js +3 -15
  377. package/src/components/ProgressIndicator/ProgressIndicator.js +3 -16
  378. package/src/components/ResizeObserver/index.js +0 -7
  379. package/src/components/SimpleButton/index.js +2 -16
  380. package/src/components/Tabs/index.js +0 -3
  381. package/src/components/Tag/Tag.js +0 -1
  382. package/src/components/Tag/columnScopeTagHelpers.js +0 -2
  383. package/src/components/Textarea/index.js +1 -8
  384. package/src/components/Toggle/Toggle.js +1 -5
  385. package/src/components/Toggle/ToggleGroup.js +1 -3
  386. package/src/components/ToggleButton/index.js +1 -3
  387. package/src/components/Tree/TreeDropdown/index.js +2 -130
  388. package/src/components/Tree/treeUtils.js +0 -4
  389. package/src/components/WindowModal/WindowModal.js +1 -14
  390. package/src/components/WindowModal/useStacking.js +0 -7
  391. package/src/components/icons/bullet-chart.js +0 -4
  392. package/src/components/icons/icon-style.js +0 -4
  393. package/src/components/icons/index.js +26 -36
  394. package/src/components/icons/range-bar.js +0 -5
  395. package/src/components/icons/star.js +0 -1
  396. package/src/components/twUtils.js +3 -12
  397. package/src/components/ui/calendar.js +1 -9
  398. package/src/components/ui/combobox.js +0 -4
  399. package/src/components/utils/captureTabNavigation/getFocusableChildren.js +0 -1
  400. package/src/components/utils/useDraggable.js +0 -4
  401. package/src/components/utils/useProperty.js +0 -18
  402. package/src/devTools/index.js +0 -1
  403. package/src/env.js +2 -2
  404. package/src/layout-manager/src/LMEmitter.js +0 -5
  405. package/src/layout-manager/src/destructurePivotColumnId.js +0 -19
  406. package/src/layout-manager/src/index.js +2 -182
  407. package/src/layout-manager/src/isLayoutEqual.js +0 -1
  408. package/src/layout-manager/src/isPivotColumnTotal.js +0 -2
  409. package/src/layout-manager/src/normalizeLayoutModel.js +0 -27
  410. package/src/layout-manager/src/simplifyLayoutModel.js +0 -11
  411. package/src/layout-manager/src/sortColumnIdsByOrder.js +2 -12
  412. package/src/lib/utils.js +0 -1
  413. package/src/migration/AdaptableUpgradeHelper.js +0 -2
  414. package/src/migration/VersionUpgrade17.js +0 -33
  415. package/src/migration/VersionUpgrade20.js +1 -21
  416. package/src/migration/VersionUpgrade21.js +0 -3
  417. package/src/migration/VersionUpgrade22.js +0 -11
  418. package/src/migration/VersionUpgrade23.js +0 -73
  419. package/src/parser/src/evaluator.js +0 -1
  420. package/src/parser/src/index.js +0 -1
  421. package/src/parser/src/parser.js +4 -103
  422. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +0 -5
  423. package/src/parser/src/predicate/mapQlPredicateToExpression.js +0 -2
  424. package/src/parser/src/tokenizer.js +0 -2
  425. package/src/parser/src/utils.js +0 -1
  426. package/src/renderReactRoot.js +0 -12
  427. package/src/setupDevTools.js +0 -6
  428. package/src/twMerge.js +0 -1
  429. package/src/types.d.ts +1 -1
  430. package/src/types.js +0 -2
  431. package/tsconfig.cjs.tsbuildinfo +1 -1
  432. package/src/AdaptableState/Common/NamedObject.d.ts +0 -10
  433. package/src/AdaptableState/Common/NamedObject.js +0 -2
  434. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +0 -35
  435. package/src/Utilities/ExpressionFunctions/groupingMap.js +0 -103
  436. package/src/Utilities/Interface/AdaptableToolPanelContext.d.ts +0 -4
  437. package/src/Utilities/Interface/AdaptableToolPanelContext.js +0 -2
  438. package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -20
  439. package/src/Utilities/Services/Interface/IMetamodelService.js +0 -2
  440. package/src/Utilities/Services/MetamodelService.d.ts +0 -17
  441. package/src/Utilities/Services/MetamodelService.js +0 -167
  442. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +0 -6
  443. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +0 -104
  444. package/src/View/Components/Buttons/EntityListActionButtons.d.ts +0 -38
  445. package/src/View/Components/Buttons/EntityListActionButtons.js +0 -47
  446. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.d.ts +0 -12
  447. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +0 -72
  448. package/src/View/Components/EntityRowItem.d.ts +0 -7
  449. package/src/View/Components/EntityRowItem.js +0 -12
  450. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +0 -3
  451. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +0 -9
  452. package/src/View/Components/ModuleProfile.d.ts +0 -8
  453. package/src/View/Components/ModuleProfile.js +0 -15
  454. package/src/View/Components/ModuleSummary/ModuleDetail.d.ts +0 -23
  455. package/src/View/Components/ModuleSummary/ModuleDetail.js +0 -20
  456. package/src/View/Components/ModuleSummary/ModuleHeader.d.ts +0 -15
  457. package/src/View/Components/ModuleSummary/ModuleHeader.js +0 -20
  458. package/src/View/Components/ModuleSummary/SummaryRowItem.d.ts +0 -7
  459. package/src/View/Components/ModuleSummary/SummaryRowItem.js +0 -17
  460. package/src/View/Components/SharedProps/ModuleSummaryProps.d.ts +0 -9
  461. package/src/View/Components/SharedProps/ModuleSummaryProps.js +0 -2
  462. package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.d.ts +0 -13
  463. package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.js +0 -2
  464. package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.d.ts +0 -14
  465. package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.js +0 -2
  466. package/src/View/Components/StyleVisualItem.d.ts +0 -9
  467. package/src/View/Components/StyleVisualItem.js +0 -45
  468. package/src/View/Components/WizardSummaryPage.d.ts +0 -7
  469. package/src/View/Components/WizardSummaryPage.js +0 -22
  470. package/src/components/Accordion.d.ts +0 -7
  471. package/src/components/Accordion.js +0 -38
  472. package/src/components/FlexWithFooter.d.ts +0 -9
  473. package/src/components/FlexWithFooter.js +0 -15
  474. package/src/components/NotifyResize/index.d.ts +0 -9
  475. package/src/components/NotifyResize/index.js +0 -38
  476. package/src/components/PopupWithFooter.d.ts +0 -14
  477. package/src/components/PopupWithFooter.js +0 -15
  478. package/src/components/SelectableList/index.d.ts +0 -15
  479. package/src/components/SelectableList/index.js +0 -100
  480. package/src/components/SizedContainer/index.d.ts +0 -17
  481. package/src/components/SizedContainer/index.js +0 -23
  482. package/src/components/Table/index.d.ts +0 -4
  483. package/src/components/Table/index.js +0 -9
  484. package/src/components/WizardPanel/index.d.ts +0 -9
  485. package/src/components/WizardPanel/index.js +0 -10
  486. package/src/components/icons/align-justify.d.ts +0 -3
  487. package/src/components/icons/align-justify.js +0 -6
  488. package/src/components/icons/column-info.d.ts +0 -3
  489. package/src/components/icons/column-info.js +0 -6
  490. package/src/components/icons/gradient-column.d.ts +0 -3
  491. package/src/components/icons/gradient-column.js +0 -6
  492. package/src/components/icons/invalid.d.ts +0 -3
  493. package/src/components/icons/invalid.js +0 -6
  494. package/src/components/icons/logout copy.d.ts +0 -3
  495. package/src/components/icons/logout copy.js +0 -6
  496. package/src/components/icons/smart-edit.d.ts +0 -3
  497. package/src/components/icons/smart-edit.js +0 -6
  498. package/src/components/icons/team-share.d.ts +0 -3
  499. package/src/components/icons/team-share.js +0 -6
  500. package/src/components/icons/unchecked.d.ts +0 -3
  501. package/src/components/icons/unchecked.js +0 -6
  502. package/src/components/icons/user-filter.d.ts +0 -3
  503. package/src/components/icons/user-filter.js +0 -6
  504. package/src/components/utils/useContainerScrollObserver/index.d.ts +0 -6
  505. package/src/components/utils/useContainerScrollObserver/index.js +0 -83
  506. package/src/components/utils/useGlobalEvent.d.ts +0 -1
  507. package/src/components/utils/useGlobalEvent.js +0 -12
  508. package/src/components/utils/useLatest.d.ts +0 -1
  509. package/src/components/utils/useLatest.js +0 -10
  510. package/src/components/utils/usePropState.d.ts +0 -2
  511. package/src/components/utils/usePropState.js +0 -11
  512. package/src/metamodel/adaptable-metamodel-model.d.ts +0 -26
  513. package/src/metamodel/adaptable-metamodel-model.js +0 -2
  514. package/src/metamodel/adaptable.metamodel.d.ts +0 -6244
  515. package/src/metamodel/adaptable.metamodel.js +0 -1
@@ -10,15 +10,6 @@ const Toggle_1 = require("../../../components/Toggle");
10
10
  const SummaryColorTag_1 = require("../../Wizard/SummaryColorTag");
11
11
  const LABEL_COLUMN = { name: 'label', style: { textAlign: 'start' } };
12
12
  const CHILD_COLUMN = { name: 'children' };
13
- /**
14
- * Compact editor for the cut-down {@link BadgePillStyle}.
15
- *
16
- * Intentionally narrower than `StyleComponent`:
17
- * - **No** `BorderRadius` — corner radius is owned by `Shape`.
18
- * - **No** `Alignment` — badge-row alignment is column-level (`BadgeStyle.Font`).
19
- * - **No** `ClassName` — pill `ClassName` had no effect at runtime; gone.
20
- * - **No** `FontSize` — pills inherit cell font sizing.
21
- */
22
13
  const BadgePillStyleEditor = (props) => {
23
14
  const pill = props.value ?? {};
24
15
  const { disabled } = props;
@@ -45,7 +36,6 @@ const BadgePillStyleEditor = (props) => {
45
36
  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: form }) }));
46
37
  };
47
38
  exports.BadgePillStyleEditor = BadgePillStyleEditor;
48
- /** Descriptive pill properties for summary panels (`Label: value` strings). */
49
39
  const getBadgePillStyleSummaryItems = (pill) => {
50
40
  if (!pill) {
51
41
  return [];
@@ -72,7 +62,6 @@ const getBadgePillStyleSummaryItems = (pill) => {
72
62
  return items;
73
63
  };
74
64
  exports.getBadgePillStyleSummaryItems = getBadgePillStyleSummaryItems;
75
- /** Compact summary tags for a {@link BadgePillStyle}; used by wizard summaries. */
76
65
  const renderBadgePillStyleSummaryTags = (pill) => {
77
66
  const items = (0, exports.getBadgePillStyleSummaryItems)(pill);
78
67
  if (!items.length) {
@@ -20,14 +20,6 @@ const FONT_SIZE_ITEMS = [
20
20
  { value: 'Large', label: 'Large' },
21
21
  { value: 'XLarge', label: 'XLarge' },
22
22
  ];
23
- /**
24
- * Compact editor for the `Font` slice (`CellFontStyle`).
25
- *
26
- * Used by Styled Column wizards (Gradient, Percent Bar, Bullet Chart) that
27
- * own a `Font?` slot. Any change emits a new `CellFontStyle` (or
28
- * `undefined` once every key is unset) which the host wizard merges back
29
- * into its `*Style` patch.
30
- */
31
23
  const disabledClassName = (disabled) => disabled ? 'twa:opacity-50 twa:pointer-events-none' : '';
32
24
  const StyledColumnFontStyleEditor = (props) => {
33
25
  const font = props.value ?? {};
@@ -35,7 +27,6 @@ const StyledColumnFontStyleEditor = (props) => {
35
27
  const disabledClass = disabledClassName(disabled);
36
28
  const update = (patch) => {
37
29
  const next = { ...font, ...patch };
38
- // strip empty/undefined keys
39
30
  Object.keys(next).forEach((k) => {
40
31
  const v = next[k];
41
32
  if (v === undefined || v === null || v === '') {
@@ -60,13 +51,6 @@ const StyledColumnFontStyleEditor = (props) => {
60
51
  }) }) })] }) }) }), !hideAlignment && ((0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Alignment:", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: disabledClass, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2 twa:gap-2", children: (0, jsx_runtime_1.jsxs)(Toggle_1.ToggleGroup, { children: [(0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { icon: "align-left", pressed: font.Alignment === 'Left', onPressedChange: (pressed) => onAlignmentChange(pressed ? 'Left' : undefined) }), (0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { icon: "align-center", pressed: font.Alignment === 'Center', onPressedChange: (pressed) => onAlignmentChange(pressed ? 'Center' : undefined) }), (0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { icon: "align-right", pressed: font.Alignment === 'Right', onPressedChange: (pressed) => onAlignmentChange(pressed ? 'Right' : undefined) })] }) }) }) }))] }) }));
61
52
  };
62
53
  exports.StyledColumnFontStyleEditor = StyledColumnFontStyleEditor;
63
- /**
64
- * Compact editor for the `Cell` slice (`CellBoxStyle`).
65
- *
66
- * Used by Styled Column wizards (Rating, Sparkline) that own a `Cell?`
67
- * slot. Any change emits a new `CellBoxStyle` (or `undefined` once every
68
- * key is unset) which the host wizard merges back into its `*Style` patch.
69
- */
70
54
  const StyledColumnCellStyleEditor = (props) => {
71
55
  const cell = props.value ?? {};
72
56
  const cellRef = React.useRef(cell);
@@ -90,9 +74,6 @@ const StyledColumnCellStyleEditor = (props) => {
90
74
  return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { className: "twa:ml-2", sizes: [...FORM_SIZES], children: [(0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Background:", children: (0, jsx_runtime_1.jsx)(ColorPicker_1.OptionalColorPicker, { className: "twa:ml-2", disabled: disabled, api: props.api, value: cell.BackColor, defaultColor: "#ffffff", onChange: (c) => update({ BackColor: c }) }) }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Border colour:", children: (0, jsx_runtime_1.jsx)(ColorPicker_1.OptionalColorPicker, { className: "twa:ml-2", disabled: disabled, api: props.api, value: cell.BorderColor, defaultColor: "#000000", onChange: (c) => update({ BorderColor: c }) }) }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Border radius:", children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2 twa:gap-2", children: [(0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { disabled: disabled, className: "twa:w-20", value: cell.BorderRadius, min: 0, max: 64, step: 1, onChange: (v) => update({ BorderRadius: v === undefined || isNaN(Number(v)) ? undefined : v }) }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70", children: "px" })] }) })] }) }));
91
75
  };
92
76
  exports.StyledColumnCellStyleEditor = StyledColumnCellStyleEditor;
93
- /**
94
- * Descriptive font properties for summary panels (`Label: value` strings).
95
- */
96
77
  const getCellFontStyleSummaryItems = (font) => {
97
78
  if (!font) {
98
79
  return [];
@@ -119,9 +100,6 @@ const getCellFontStyleSummaryItems = (font) => {
119
100
  return items;
120
101
  };
121
102
  exports.getCellFontStyleSummaryItems = getCellFontStyleSummaryItems;
122
- /**
123
- * Compact summary tags for the Font slice; used by wizard summary panels.
124
- */
125
103
  const renderFontStyleSummaryTags = (font) => {
126
104
  const items = (0, exports.getCellFontStyleSummaryItems)(font);
127
105
  if (!items.length) {
@@ -130,9 +108,6 @@ const renderFontStyleSummaryTags = (font) => {
130
108
  return (0, SummaryColorTag_1.renderSummaryLabelValueTags)(items);
131
109
  };
132
110
  exports.renderFontStyleSummaryTags = renderFontStyleSummaryTags;
133
- /**
134
- * Descriptive cell box properties for summary panels (`Label: value` strings).
135
- */
136
111
  const getCellBoxStyleSummaryItems = (cell) => {
137
112
  if (!cell) {
138
113
  return [];
@@ -150,9 +125,6 @@ const getCellBoxStyleSummaryItems = (cell) => {
150
125
  return items;
151
126
  };
152
127
  exports.getCellBoxStyleSummaryItems = getCellBoxStyleSummaryItems;
153
- /**
154
- * Compact summary tags for the Cell slice; used by wizard summary panels.
155
- */
156
128
  const renderCellStyleSummaryTags = (cell) => {
157
129
  const items = (0, exports.getCellBoxStyleSummaryItems)(cell);
158
130
  if (!items.length) {
@@ -17,7 +17,6 @@ const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors
17
17
  const Card_1 = require("../../../components/Card");
18
18
  const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
19
19
  const STYLE_FORM_SIZES = ['200px', '1fr'];
20
- /** Sentinel for the theme dropdown — persisted options omit `theme` when this is chosen. */
21
20
  const SPARKLINE_CUSTOM_COLOURS_THEME = '__custom__';
22
21
  const SparklineTypes = {
23
22
  LINE: 'line',
@@ -89,9 +88,6 @@ const getStyledColumnSparklineStyleViewValues = (data) => {
89
88
  });
90
89
  };
91
90
  exports.getStyledColumnSparklineStyleViewValues = getStyledColumnSparklineStyleViewValues;
92
- /**
93
- * Wizard-step summary for the Sparkline Settings step.
94
- */
95
91
  const renderSparklineSummary = (data) => {
96
92
  const sparkline = data.SparklineStyle;
97
93
  if (!sparkline?.options) {
@@ -103,11 +99,6 @@ const renderSparklineSummary = (data) => {
103
99
  return (0, SummaryColorTag_1.renderSummaryStringTags)(items);
104
100
  };
105
101
  exports.renderSparklineSummary = renderSparklineSummary;
106
- /**
107
- * Validation for the Sparkline Settings wizard step.
108
- * - Sparkline type must be set (defaulted to `line` so this is mostly a safety net).
109
- * - When Min and Max overrides are both provided, Min must be strictly less than Max.
110
- */
111
102
  const isValidSparklineSettings = (data) => {
112
103
  const opts = data.SparklineStyle?.options;
113
104
  if (!opts?.type) {
@@ -121,8 +112,6 @@ const isValidSparklineSettings = (data) => {
121
112
  exports.isValidSparklineSettings = isValidSparklineSettings;
122
113
  const StyledColumnSparklineSettingsSection = ({ onChange }) => {
123
114
  const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
124
- // Compute defaults non-destructively — never mutate persisted state during
125
- // render. The chart `type` is required so default it to `line` if absent.
126
115
  const persistedOptions = data.SparklineStyle?.options;
127
116
  const sparklineOptions = persistedOptions
128
117
  ? { ...persistedOptions, type: persistedOptions.type ?? SparklineTypes.LINE }
@@ -260,8 +249,6 @@ const SparklineThemingOptions = ({ options, onChange, }) => {
260
249
  };
261
250
  const SparklineAxisOptions = ({ options, onChange, }) => {
262
251
  const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
263
- // Non-destructive default for the axis sub-tree so we never mutate the
264
- // persisted options object during render.
265
252
  const sparklineOptions = {
266
253
  ...(options ?? {}),
267
254
  axis: {
@@ -29,11 +29,6 @@ const StyledColumnIconPreview_1 = require("./StyledColumnWizardStyleSection/Comp
29
29
  const StyledColumnBulletPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview");
30
30
  const StyledColumnRangeBarPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview");
31
31
  const StyledColumnSparklinePreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview");
32
- /**
33
- * Mirrors the migration default in `VersionUpgrade23.patchStyledColumnName` and
34
- * the auto-fill logic in `StyledColumnWizardTypeSection` so users opening the
35
- * wizard immediately see a sensible Name (e.g. `Badge-tradeId`).
36
- */
37
32
  const computeDefaultStyledColumnName = (sc) => {
38
33
  let typeKey = '';
39
34
  if (sc.GradientStyle)
@@ -57,7 +52,6 @@ const computeDefaultStyledColumnName = (sc) => {
57
52
  }
58
53
  return `${typeKey}-${sc.ColumnId || 'column'}`;
59
54
  };
60
- /** First wizard step to open when editing an existing Styled Column (column menu, settings list, etc.). */
61
55
  const getStyledColumnEditDefaultSectionName = (styledColumn) => {
62
56
  if (styledColumn.BadgeStyle) {
63
57
  return 'Badges';
@@ -89,10 +83,6 @@ const StyledColumnWizard = (props) => {
89
83
  const [styledColumn, setStyledColumn] = (0, react_1.useState)(() => {
90
84
  if (data) {
91
85
  const cloned = (0, Helper_1.cloneObject)(data);
92
- // For *Edit* (existing object loaded from state) we fall back to the
93
- // migration default if the Name is somehow missing. For *New* we leave
94
- // the Name blank so the user enters one themselves — same pattern as
95
- // Format Column / Alert / Custom Sort etc.
96
86
  const isNew = props.popupParams?.action === 'New';
97
87
  if (!isNew && !cloned.Name) {
98
88
  cloned.Name = computeDefaultStyledColumnName(cloned);
@@ -100,16 +90,11 @@ const StyledColumnWizard = (props) => {
100
90
  return cloned;
101
91
  }
102
92
  const newData = ObjectFactory_1.default.CreateEmptyStyledColumn();
103
- // Default new Styled Columns to a Badge — applicable to every data type
104
- // and the most-used styled column overall, so it makes a sensible
105
- // initial pick in the Type wizard step.
106
93
  newData.BadgeStyle = {
107
94
  Badges: [ObjectFactory_1.default.CreateDefaultStyledColumnBadge()],
108
95
  };
109
96
  if (props.popupParams?.column && props.popupParams?.action === 'New') {
110
97
  newData.ColumnId = props.popupParams.column.columnId;
111
- // For numeric-array columns the natural pick is a Sparkline; flip the
112
- // default rather than open a Badge over an array column.
113
98
  if (props.popupParams.column.dataType.includes('Array')) {
114
99
  newData.SparklineStyle = {};
115
100
  delete newData.BadgeStyle;
@@ -270,10 +255,6 @@ const StyledColumnWizard = (props) => {
270
255
  render: () => ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2", children: (0, jsx_runtime_1.jsx)(StyledColumnBadgeSection_1.StyledColumnBadgeStyleSection, { onChange: setStyledColumn }) })),
271
256
  });
272
257
  }
273
- // Persistent live preview shown at the top of the section content on
274
- // every step. We render the bare preview (no Card chrome) so it sits
275
- // flush above the form. Only one of these can apply at a time — the
276
- // styled column owns exactly one of these style buckets.
277
258
  let headerPreview = null;
278
259
  if (styledColumn.GradientStyle) {
279
260
  headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnGradientPreview_1.StyledColumnGradientPreview, { data: styledColumn });
@@ -299,12 +280,7 @@ const StyledColumnWizard = (props) => {
299
280
  else if (styledColumn.SparklineStyle) {
300
281
  headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnSparklinePreview_1.StyledColumnSparklinePreview, { data: styledColumn });
301
282
  }
302
- return ((0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: defaultCurrentSectionName, moduleInfo: props.moduleInfo,
303
- // Display the picked type in the header (e.g. "Gradient Column",
304
- // "Percent Bar Column") so the user always knows which kind of
305
- // column they're configuring. Falls back to "Styled Column"
306
- // before a type has been selected.
307
- moduleName: (0, StyledColumnWizardTypeSection_1.getStyledColumnWizardTitle)(styledColumn), data: styledColumn, headerPreview: headerPreview, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
283
+ return ((0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: defaultCurrentSectionName, moduleInfo: props.moduleInfo, moduleName: (0, StyledColumnWizardTypeSection_1.getStyledColumnWizardTitle)(styledColumn), data: styledColumn, headerPreview: headerPreview, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
308
284
  {
309
285
  details: 'Enter a Name and select a Styled Column Type',
310
286
  isValid: (data) => {
@@ -133,7 +133,6 @@ const getStyledColumnBulletStyleViewValues = (data) => {
133
133
  });
134
134
  };
135
135
  exports.getStyledColumnBulletStyleViewValues = getStyledColumnBulletStyleViewValues;
136
- /** Wizard / list-view summary for the Ranges step (qualitative bands). */
137
136
  const renderStyledColumnBulletRangesSummary = (data) => {
138
137
  const bullet = data.BulletChartStyle;
139
138
  if (!bullet) {
@@ -145,7 +144,6 @@ const renderStyledColumnBulletRangesSummary = (data) => {
145
144
  exports.renderStyledColumnBulletRangesSummary = renderStyledColumnBulletRangesSummary;
146
145
  const StyledColumnBulletRangesView = ({ data }) => (0, exports.renderStyledColumnBulletRangesSummary)(data);
147
146
  exports.StyledColumnBulletRangesView = StyledColumnBulletRangesView;
148
- /** Wizard / list-view summary for the Style step (target, bar, text, font). */
149
147
  const renderStyledColumnBulletStyleSummary = (data) => {
150
148
  const bullet = data.BulletChartStyle;
151
149
  if (!bullet) {
@@ -161,7 +159,6 @@ const renderStyledColumnBulletStyleSummary = (data) => {
161
159
  return (0, SummaryColorTag_1.renderSummaryStringTags)(items);
162
160
  };
163
161
  exports.renderStyledColumnBulletStyleSummary = renderStyledColumnBulletStyleSummary;
164
- /** Full combined summary (ranges + style); kept for callers that expect one block. */
165
162
  const renderStyledColumnBulletSummary = (data) => {
166
163
  const bullet = data.BulletChartStyle;
167
164
  if (!bullet) {
@@ -170,12 +167,6 @@ const renderStyledColumnBulletSummary = (data) => {
170
167
  return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3 twa:items-start", children: [(0, exports.renderStyledColumnBulletRangesSummary)(data), (0, exports.renderStyledColumnBulletStyleSummary)(data)] }));
171
168
  };
172
169
  exports.renderStyledColumnBulletSummary = renderStyledColumnBulletSummary;
173
- /**
174
- * Maps the structured `BulletChartStyle.Target` field to one of the simple
175
- * modes the wizard exposes. The wizard only configures *one* primary target;
176
- * if a state-defined Bullet Chart used the array form or a per-target marker
177
- * override, we leave it alone but treat the first entry as the editable one.
178
- */
179
170
  const getSimpleTargetMode = (target) => {
180
171
  if (target == undefined) {
181
172
  return 'None';
@@ -227,9 +218,6 @@ const StyledColumnWizardBulletSection = (props) => {
227
218
  const scope = { ColumnIds: [data.ColumnId] };
228
219
  const bullet = data.BulletChartStyle ?? {};
229
220
  const disabled = !data.ColumnId || !column;
230
- // -------------------------------------------------------------------------
231
- // Updaters
232
- // -------------------------------------------------------------------------
233
221
  const update = (patch) => {
234
222
  props.onChange({
235
223
  ...data,
@@ -243,10 +231,6 @@ const StyledColumnWizardBulletSection = (props) => {
243
231
  update({ CellRanges: ranges });
244
232
  };
245
233
  const onUpdateColumnComparison = (columnComparison) => {
246
- // Bullet Chart can technically still accept a ColumnComparison through
247
- // state, but the Bullet wizard hides the toggle. This callback is wired
248
- // up only to satisfy the RangesComponent prop contract; in practice it
249
- // will never be invoked because hideColumnComparison is true.
250
234
  update({ ColumnComparison: columnComparison });
251
235
  };
252
236
  const onRangeValueTypeChange = React.useCallback((rangeValueType) => {
@@ -268,14 +252,12 @@ const StyledColumnWizardBulletSection = (props) => {
268
252
  },
269
253
  });
270
254
  }, [data, bullet]);
271
- // -- Target ----------------------------------------------------------------
272
255
  const currentMode = getSimpleTargetMode(bullet.TargetProperties?.Target);
273
256
  const updateTargetProperties = (patch) => {
274
257
  const merged = {
275
258
  ...bullet.TargetProperties,
276
259
  ...patch,
277
260
  };
278
- // Strip the wrapper when nothing meaningful is left.
279
261
  const isEmpty = merged.Target == undefined && merged.Marker == undefined;
280
262
  update({ TargetProperties: isEmpty ? undefined : merged });
281
263
  };
@@ -294,7 +276,6 @@ const StyledColumnWizardBulletSection = (props) => {
294
276
  return;
295
277
  }
296
278
  if (mode === 'Column') {
297
- // Use the first available numeric column (excluding the styled column itself)
298
279
  const candidate = api.columnApi.getNumericColumns().find((c) => c.columnId !== data.ColumnId);
299
280
  setTarget(candidate?.columnId ?? '');
300
281
  return;
@@ -306,7 +287,6 @@ const StyledColumnWizardBulletSection = (props) => {
306
287
  const handleColumnTargetChange = (columnId) => {
307
288
  setTarget(columnId);
308
289
  };
309
- // -- Bar -------------------------------------------------------------------
310
290
  const updateBar = (patch) => {
311
291
  const merged = {
312
292
  ...bullet.Bar,
@@ -315,7 +295,6 @@ const StyledColumnWizardBulletSection = (props) => {
315
295
  const isEmpty = merged.Color == undefined && merged.Height == undefined;
316
296
  update({ Bar: isEmpty ? undefined : merged });
317
297
  };
318
- // -- Marker ----------------------------------------------------------------
319
298
  const updateMarker = (patch) => {
320
299
  updateTargetProperties({
321
300
  Marker: {
@@ -325,7 +304,6 @@ const StyledColumnWizardBulletSection = (props) => {
325
304
  },
326
305
  });
327
306
  };
328
- // -- Cell text -------------------------------------------------------------
329
307
  const toggleCellText = (token, show) => {
330
308
  update((0, BarStylesHelper_1.toggleBarStyleCellTextToken)(bullet.CellTextProperties, token, show));
331
309
  };
@@ -341,15 +319,11 @@ const StyledColumnWizardBulletSection = (props) => {
341
319
  : current.filter((t) => t !== token);
342
320
  update({ ToolTipText: next });
343
321
  };
344
- // -------------------------------------------------------------------------
345
- // Render
346
- // -------------------------------------------------------------------------
347
322
  if (!data.ColumnId || !column) {
348
323
  return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: !data.ColumnId
349
324
  ? 'You need to select a column before styling.'
350
325
  : `Column "${data.ColumnId}" was not found in the grid.` }) }));
351
326
  }
352
- // ----- Ranges-only variant (wizard step before Style) ---------------------
353
327
  if (variant === 'ranges') {
354
328
  return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Ranges" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Define qualitative bands for the bullet scale" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(RangesComponent_1.RangesComponent, { disabled: disabled, minMaxRangeValues: minMaxRangeValues, api: api, scope: scope, ranges: bullet.CellRanges, rangeValueType: bullet.RangeValueType, onRangeValueTypeChange: onRangeValueTypeChange, columnComparison: bullet.ColumnComparison, updateRanges: onUpdateRanges, updateColumnComparison: onUpdateColumnComparison, hideColumnComparison: true }) })] }) }));
355
329
  }
@@ -47,9 +47,6 @@ const getStyledColumnGradientStyleViewValues = (data) => {
47
47
  return buildStyledColumnGradientStyleSummaryStrings(gs, { includeEmptyTooltip: false });
48
48
  };
49
49
  exports.getStyledColumnGradientStyleViewValues = getStyledColumnGradientStyleViewValues;
50
- /**
51
- * Summary of Gradient-only style options (alpha bounds, auto-contrast, tooltip).
52
- */
53
50
  const renderStyledColumnGradientStyleSummary = (data) => {
54
51
  const gs = data.GradientStyle;
55
52
  if (!gs) {
@@ -43,9 +43,6 @@ const previewIcon = (spec) => {
43
43
  }
44
44
  return (0, jsx_runtime_1.jsx)(AdaptableIconComponent_1.AdaptableIconComponent, { icon: spec });
45
45
  };
46
- // ---------------------------------------------------------------------------
47
- // Summary helpers (used by the wizard step header + Styled Columns list)
48
- // ---------------------------------------------------------------------------
49
46
  const ICON_MAPPINGS_PREVIEW_CHIP_LIMIT = 6;
50
47
  const previewMapping = (mapping, index) => {
51
48
  return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1 twa:px-1.5 twa:py-0.5 twa:rounded twa:bg-[var(--ab-color-primary)] twa:text-[var(--ab-color-primarytext)]", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { children: previewIcon(mapping.Icon) }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-90", children: String(mapping.Key) })] }, `${String(mapping.Key)}-${index}`));
@@ -129,7 +126,6 @@ const getStyledColumnIconStyleViewValues = (data) => {
129
126
  });
130
127
  };
131
128
  exports.getStyledColumnIconStyleViewValues = getStyledColumnIconStyleViewValues;
132
- /** Mappings step summary. */
133
129
  const renderStyledColumnIconMappingsSummary = (data) => {
134
130
  const ic = data.IconStyle;
135
131
  if (!ic) {
@@ -142,7 +138,6 @@ const renderStyledColumnIconMappingsSummary = (data) => {
142
138
  exports.renderStyledColumnIconMappingsSummary = renderStyledColumnIconMappingsSummary;
143
139
  const StyledColumnIconMappingsView = ({ data }) => (0, exports.renderStyledColumnIconMappingsSummary)(data);
144
140
  exports.StyledColumnIconMappingsView = StyledColumnIconMappingsView;
145
- /** Style step summary (size, text, tooltip, font / cell). */
146
141
  const renderStyledColumnIconStyleSummary = (data) => {
147
142
  const ic = data.IconStyle;
148
143
  if (!ic) {
@@ -158,9 +153,6 @@ const renderStyledColumnIconStyleSummary = (data) => {
158
153
  return (0, SummaryColorTag_1.renderSummaryStringTags)(items);
159
154
  };
160
155
  exports.renderStyledColumnIconStyleSummary = renderStyledColumnIconStyleSummary;
161
- /**
162
- * Combined summary for the Styled Columns list row (preview + key facts).
163
- */
164
156
  const renderStyledColumnIconSummary = (data) => {
165
157
  const ic = data.IconStyle;
166
158
  if (!ic) {
@@ -169,9 +161,6 @@ const renderStyledColumnIconSummary = (data) => {
169
161
  return (0, exports.renderStyledColumnIconMappingsSummary)(data);
170
162
  };
171
163
  exports.renderStyledColumnIconSummary = renderStyledColumnIconSummary;
172
- // ---------------------------------------------------------------------------
173
- // Wizard validity check
174
- // ---------------------------------------------------------------------------
175
164
  const isValidIconStyleMappings = (data) => {
176
165
  const ic = data.IconStyle;
177
166
  if (!ic)
@@ -217,18 +206,9 @@ const StyledColumnWizardIconSection = (props) => {
217
206
  props.onChange({ ...data, IconStyle: rest });
218
207
  }
219
208
  };
220
- // -----------------------------------------------------------------------
221
- // Preset operations
222
- // -----------------------------------------------------------------------
223
209
  const applyPreset = (preset) => {
224
- // Presets are now resolved at *runtime* — we only need to record the
225
- // selection here. Custom `Mappings` continue to act as overrides /
226
- // additions on top of the preset.
227
210
  update({
228
211
  Preset: preset,
229
- // Flags / Status presets pair best with case-insensitive matching
230
- // because they include both code (`'GBP'`) and name (`'United Kingdom'`)
231
- // synonyms; user can flip back to Exact in the wizard if needed.
232
212
  MatchMode: preset === 'Flags' || preset === 'Status'
233
213
  ? 'CaseInsensitive'
234
214
  : iconStyle.MatchMode ?? 'Exact',
@@ -237,9 +217,6 @@ const StyledColumnWizardIconSection = (props) => {
237
217
  const clearPreset = () => {
238
218
  update({ Preset: undefined });
239
219
  };
240
- // -----------------------------------------------------------------------
241
- // Mapping list operations
242
- // -----------------------------------------------------------------------
243
220
  const setMappings = (next) => {
244
221
  update({ Mappings: next });
245
222
  };
@@ -262,16 +239,11 @@ const StyledColumnWizardIconSection = (props) => {
262
239
  setMappings(next);
263
240
  setAutoOpenPickerIndex(next.length - 1);
264
241
  };
265
- // -----------------------------------------------------------------------
266
- // CellText helpers
267
- // -----------------------------------------------------------------------
268
242
  const updateCellTextProperties = (patch) => {
269
243
  const merged = {
270
244
  ...iconStyle.CellTextProperties,
271
245
  ...patch,
272
246
  };
273
- // Strip the wrapper when both inner properties are unset, so empty state
274
- // serialises cleanly.
275
247
  const isEmpty = !merged.CellText?.length && merged.CellTextPosition == undefined;
276
248
  update({ CellTextProperties: isEmpty ? undefined : merged });
277
249
  };
@@ -282,16 +254,11 @@ const StyledColumnWizardIconSection = (props) => {
282
254
  : current.filter((t) => t !== token);
283
255
  updateCellTextProperties({ CellText: next });
284
256
  };
285
- // -----------------------------------------------------------------------
286
- // Fallback helpers
287
- // -----------------------------------------------------------------------
288
257
  const updateFallbackProperties = (patch) => {
289
258
  const merged = {
290
259
  ...iconStyle.FallbackProperties,
291
260
  ...patch,
292
261
  };
293
- // Strip the wrapper when there's nothing to remember; the renderer
294
- // already defaults to `Mode: 'Hide'` when `FallbackProperties` is unset.
295
262
  const isEmpty = (merged.Mode == undefined || merged.Mode === 'Hide') && merged.Icon == undefined;
296
263
  update({ FallbackProperties: isEmpty ? undefined : merged });
297
264
  };
@@ -302,9 +269,6 @@ const StyledColumnWizardIconSection = (props) => {
302
269
  : current.filter((t) => t !== token);
303
270
  update({ ToolTipText: next });
304
271
  };
305
- // -----------------------------------------------------------------------
306
- // Render
307
- // -----------------------------------------------------------------------
308
272
  if (props.variant === 'mappings') {
309
273
  const presetMappingsPreview = iconStyle.Preset
310
274
  ? (0, IconStyleHelper_1.getIconStylePresetMappings)(iconStyle.Preset)
@@ -328,7 +292,6 @@ const StyledColumnWizardIconSection = (props) => {
328
292
  { value: 'Icon', label: 'Show Fallback Icon' },
329
293
  ] }) }) }), iconStyle.FallbackProperties?.Mode === 'Icon' && ((0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Fallback Icon:", children: (0, jsx_runtime_1.jsx)(IconPickerButton, { value: iconStyle.FallbackProperties?.Icon, onChange: (next) => updateFallbackProperties({ Icon: next }) }) }))] }) })] })] }));
330
294
  }
331
- // ----- Style variant (wizard step title: "Style") ------------------------
332
295
  const cellText = iconStyle.CellTextProperties?.CellText ?? [];
333
296
  const toolTipText = iconStyle.ToolTipText ?? [];
334
297
  const cellTextDisabled = cellText.length === 0;
@@ -352,9 +315,6 @@ const StyledColumnWizardIconSection = (props) => {
352
315
  ] }) }) })] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: disabled || cellTextDisabled, value: iconStyle.Font, onChange: onFontChange }) })] })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether and how to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { checked: toolTipText.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { className: "twa:ml-3", checked: toolTipText.includes('IconDescription'), onChange: (checked) => toggleToolTipText('IconDescription', checked), children: "Description" })] }) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Cell" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell box styling (overrides Format Column properties)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnCellStyleEditor, { api: api, disabled: disabled, value: iconStyle.Cell, onChange: onCellChange }) })] })] }));
353
316
  };
354
317
  exports.StyledColumnWizardIconSection = StyledColumnWizardIconSection;
355
- // ---------------------------------------------------------------------------
356
- // Icon picker — click-to-open popover (closes on outside click or system pick)
357
- // ---------------------------------------------------------------------------
358
318
  const ICON_KIND_OPTIONS = [
359
319
  { value: 'Emoji', label: 'Emoji' },
360
320
  { value: 'System', label: 'Built-in' },
@@ -51,20 +51,6 @@ const summarizeBound = (bound) => {
51
51
  }
52
52
  return bound;
53
53
  };
54
- /**
55
- * A single joined bound control: a type selector (Fixed Number / Column /
56
- * Column Min / Max / Average / Median, plus `None` for the optional Reference)
57
- * joined inline with a contextual editor. Mirrors the Column Comparison bound
58
- * input so the two read as one block: the select hard-codes `rounded-input`, so
59
- * the touching corners are flattened directly (important, to beat it) and the
60
- * shared border overlapped via `-ml-px`.
61
- *
62
- * - Fixed Number → editable number input
63
- * - Column → numeric column selector (excluding the styled column)
64
- * - Col-* (aggregate) → disabled input showing the resolved value (when a
65
- * column is in scope), so the user sees the underlying number
66
- * - None → no editor (selector only)
67
- */
68
54
  const RangeBarBoundInput = ({ api, value, optional, fallbackNumber, excludeColumnId, resolved, disabled, onChange }) => {
69
55
  const mode = getBoundMode(value);
70
56
  const handleModeChange = (next) => {
@@ -80,7 +66,6 @@ const RangeBarBoundInput = ({ api, value, optional, fallbackNumber, excludeColum
80
66
  .find((c) => c.columnId !== excludeColumnId);
81
67
  return onChange(candidate?.columnId ?? '');
82
68
  }
83
- // Col-Min / Col-Max / Col-Avg / Col-Median
84
69
  return onChange(next);
85
70
  };
86
71
  const items = [
@@ -207,7 +192,6 @@ const getStyledColumnRangeBarDisplayViewValues = (data) => {
207
192
  });
208
193
  };
209
194
  exports.getStyledColumnRangeBarDisplayViewValues = getStyledColumnRangeBarDisplayViewValues;
210
- /** Summary line for the Range wizard step (bounds + bands only). */
211
195
  const renderStyledColumnRangeBarRangeStepSummary = (data) => {
212
196
  const range = data.RangeBarStyle;
213
197
  if (!range) {
@@ -219,7 +203,6 @@ const renderStyledColumnRangeBarRangeStepSummary = (data) => {
219
203
  exports.renderStyledColumnRangeBarRangeStepSummary = renderStyledColumnRangeBarRangeStepSummary;
220
204
  const StyledColumnRangeBarRangeView = ({ data }) => (0, exports.renderStyledColumnRangeBarRangeStepSummary)(data);
221
205
  exports.StyledColumnRangeBarRangeView = StyledColumnRangeBarRangeView;
222
- /** Summary for the Display wizard step (markers, track, text). */
223
206
  const renderStyledColumnRangeBarDisplayStepSummary = (data) => {
224
207
  const range = data.RangeBarStyle;
225
208
  if (!range) {
@@ -235,9 +218,6 @@ const renderStyledColumnRangeBarDisplayStepSummary = (data) => {
235
218
  return (0, SummaryColorTag_1.renderSummaryStringTags)(items);
236
219
  };
237
220
  exports.renderStyledColumnRangeBarDisplayStepSummary = renderStyledColumnRangeBarDisplayStepSummary;
238
- /**
239
- * Combined summary for the Styled Columns list row (preview + key facts).
240
- */
241
221
  const renderStyledColumnRangeBarSummary = (data) => {
242
222
  const range = data.RangeBarStyle;
243
223
  if (!range) {
@@ -246,15 +226,6 @@ const renderStyledColumnRangeBarSummary = (data) => {
246
226
  return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3 twa:items-start", children: [(0, exports.renderStyledColumnRangeBarRangeStepSummary)(data), (0, exports.renderStyledColumnRangeBarDisplayStepSummary)(data)] }));
247
227
  };
248
228
  exports.renderStyledColumnRangeBarSummary = renderStyledColumnRangeBarSummary;
249
- // ---------------------------------------------------------------------------
250
- // Wizard validity check (also used by the wizard step config)
251
- // ---------------------------------------------------------------------------
252
- /**
253
- * Returns `true` if the Range Bar's bounds are well-formed, otherwise an
254
- * error string explaining what's missing. Used as the wizard step's
255
- * `isValid` callback.
256
- */
257
- /** Bounds + bands step — Min / Max required and numeric pair must span. */
258
229
  const isValidRangeBarBounds = (data) => {
259
230
  const range = data.RangeBarStyle;
260
231
  if (!range)
@@ -271,9 +242,6 @@ const isValidRangeBarBounds = (data) => {
271
242
  return true;
272
243
  };
273
244
  exports.isValidRangeBarBounds = isValidRangeBarBounds;
274
- // ---------------------------------------------------------------------------
275
- // Section
276
- // ---------------------------------------------------------------------------
277
245
  const MARKER_SHAPES = [
278
246
  { value: 'Diamond', label: 'Diamond' },
279
247
  { value: 'Line', label: 'Line' },
@@ -301,9 +269,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
301
269
  const scope = { ColumnIds: [data.ColumnId] };
302
270
  const range = data.RangeBarStyle ?? {};
303
271
  const disabled = !data.ColumnId || !column;
304
- // -------------------------------------------------------------------------
305
- // Updaters
306
- // -------------------------------------------------------------------------
307
272
  const update = (patch) => {
308
273
  props.onChange({
309
274
  ...data,
@@ -316,9 +281,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
316
281
  const onUpdateRanges = (ranges) => {
317
282
  update({ CellRanges: ranges });
318
283
  };
319
- // The Range Bar wizard hides the column-comparison toggle (bounds *are*
320
- // the per-row range here). Stub kept to satisfy the RangesComponent prop
321
- // contract.
322
284
  const onUpdateColumnComparison = (columnComparison) => {
323
285
  update({ ColumnComparison: columnComparison });
324
286
  };
@@ -357,8 +319,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
357
319
  ...range.OutOfRange,
358
320
  ...patch,
359
321
  };
360
- // Default mode is `Clamp` with no override colour; drop the wrapper in
361
- // that case so empty state serialises cleanly.
362
322
  const isEmpty = (merged.Mode == undefined || merged.Mode === 'Clamp') && merged.Color == undefined;
363
323
  update({ OutOfRange: isEmpty ? undefined : merged });
364
324
  };
@@ -370,9 +330,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
370
330
  };
371
331
  update({ Reference: merged });
372
332
  };
373
- // -- Bound editors ---------------------------------------------------------
374
- // Resolved values for the column-wide aggregate bound modes, shown read-only
375
- // in the bound editor so the user sees the underlying number.
376
333
  const resolvedBoundValues = {
377
334
  'Col-Min': minMaxRangeValues?.min,
378
335
  'Col-Max': minMaxRangeValues?.max,
@@ -383,11 +340,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
383
340
  ? api.styledColumnApi.internalApi.getMedianValueForNumericColumn(column)
384
341
  : undefined,
385
342
  };
386
- /**
387
- * Renders one of `Min` / `Max` / `Reference` as a single joined row (type
388
- * selector + contextual editor). Centralised so the three controls stay
389
- * visually and behaviourally identical (only the field name differs).
390
- */
391
343
  const renderBoundEditor = (opts) => {
392
344
  const setBound = (next) => {
393
345
  if (opts.field === 'Reference') {
@@ -411,7 +363,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
411
363
  const value = opts.field === 'Reference' ? range.Reference?.Value : range[opts.field];
412
364
  return ((0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: `${opts.label}:`, children: (0, jsx_runtime_1.jsx)(RangeBarBoundInput, { api: api, value: value, optional: opts.optional, fallbackNumber: opts.fallbackNumber, excludeColumnId: data.ColumnId, resolved: resolvedBoundValues, disabled: disabled, onChange: setBound }) }));
413
365
  };
414
- // -- Marker editors --------------------------------------------------------
415
366
  const updateValueMarker = (patch) => {
416
367
  update({
417
368
  Marker: {
@@ -430,8 +381,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
430
381
  },
431
382
  });
432
383
  };
433
- // Defaults applied locally for displaying current values in the editor —
434
- // the renderer applies its own defaults if these stay undefined in state.
435
384
  const valueMarker = {
436
385
  Shape: range.Marker?.Shape ?? 'Diamond',
437
386
  Color: range.Marker?.Color ?? '',
@@ -443,7 +392,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
443
392
  Color: referenceMarkerCfg?.Color ?? '',
444
393
  Size: referenceMarkerCfg?.Size ?? (referenceMarkerCfg?.Shape === 'Line' ? 2 : 8),
445
394
  };
446
- // -- Cell text -------------------------------------------------------------
447
395
  const toggleCellText = (token, show) => {
448
396
  update((0, BarStylesHelper_1.toggleBarStyleCellTextToken)(range.CellTextProperties, token, show));
449
397
  };
@@ -459,9 +407,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
459
407
  : current.filter((t) => t !== token);
460
408
  update({ ToolTipText: next });
461
409
  };
462
- // -------------------------------------------------------------------------
463
- // Render
464
- // -------------------------------------------------------------------------
465
410
  if (!data.ColumnId || !column) {
466
411
  return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: !data.ColumnId
467
412
  ? 'You need to select a column before styling.'