@adaptabletools/adaptable 24.0.0-canary.0 → 24.0.0-canary.10

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 (393) hide show
  1. package/agGrid.d.ts +2 -3
  2. package/agGrid.js +2 -3
  3. package/aql.d.ts +132 -0
  4. package/aql.js +260 -0
  5. package/devtools.d.ts +237 -2
  6. package/index.css +323 -306
  7. package/index.d.ts +2 -3
  8. package/index.js +2 -3
  9. package/package.json +8 -7
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -4
  11. package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
  13. package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
  14. package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
  15. package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
  16. package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
  17. package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
  18. package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
  19. package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
  20. package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
  21. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
  22. package/src/AdaptableOptions/DefaultAdaptableOptions.js +11 -5
  23. package/src/AdaptableOptions/EditOptions.d.ts +18 -2
  24. package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
  25. package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
  26. package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
  27. package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
  28. package/src/AdaptableOptions/FlashingCellOptions.d.ts +3 -3
  29. package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
  30. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
  31. package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
  32. package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
  33. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +16 -5
  34. package/src/AdaptableOptions/StateOptions.d.ts +37 -13
  35. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
  36. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +89 -6
  37. package/src/AdaptableState/AdaptableState.d.ts +99 -3
  38. package/src/AdaptableState/AlertState.d.ts +20 -21
  39. package/src/AdaptableState/ApplicationState.d.ts +5 -3
  40. package/src/AdaptableState/BaseState.d.ts +9 -2
  41. package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
  42. package/src/AdaptableState/ChartingState.d.ts +10 -5
  43. package/src/AdaptableState/CommentState.d.ts +10 -4
  44. package/src/AdaptableState/Common/AdaptableAlert.d.ts +21 -2
  45. package/src/AdaptableState/Common/AdaptableAlert.js +9 -0
  46. package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
  47. package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
  48. package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
  49. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
  50. package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
  51. package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
  52. package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
  53. package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
  54. package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
  55. package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
  56. package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
  57. package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
  58. package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
  59. package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
  60. package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
  61. package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
  62. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
  63. package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
  64. package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
  65. package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
  66. package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
  67. package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
  68. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
  69. package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
  70. package/src/AdaptableState/Common/Enums.d.ts +21 -0
  71. package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
  72. package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
  73. package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
  74. package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
  75. package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
  76. package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
  77. package/src/AdaptableState/Common/RowScope.d.ts +3 -1
  78. package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
  79. package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
  80. package/src/AdaptableState/Common/Schedule.d.ts +10 -2
  81. package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
  82. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
  83. package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
  84. package/src/AdaptableState/Common/Types.d.ts +9 -0
  85. package/src/AdaptableState/CustomSortState.d.ts +8 -5
  86. package/src/AdaptableState/DashboardState.d.ts +14 -10
  87. package/src/AdaptableState/ExportState.d.ts +12 -4
  88. package/src/AdaptableState/FlashingCellState.d.ts +8 -5
  89. package/src/AdaptableState/FormatColumnState.d.ts +28 -8
  90. package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
  91. package/src/AdaptableState/IPushPullState.d.ts +39 -3
  92. package/src/AdaptableState/InitialState.d.ts +9 -9
  93. package/src/AdaptableState/InternalState.d.ts +183 -3
  94. package/src/AdaptableState/LayoutState.d.ts +64 -21
  95. package/src/AdaptableState/NamedQueryState.d.ts +16 -4
  96. package/src/AdaptableState/NoteState.d.ts +7 -3
  97. package/src/AdaptableState/OpenFinState.d.ts +12 -2
  98. package/src/AdaptableState/PlusMinusState.d.ts +8 -4
  99. package/src/AdaptableState/PopupState.d.ts +29 -1
  100. package/src/AdaptableState/QuickSearchState.d.ts +9 -3
  101. package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
  102. package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
  103. package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
  104. package/src/AdaptableState/ShortcutState.d.ts +7 -3
  105. package/src/AdaptableState/StatusBarState.d.ts +7 -6
  106. package/src/AdaptableState/StyledColumnState.d.ts +46 -14
  107. package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +4 -0
  108. package/src/AdaptableState/TeamSharingState.d.ts +46 -2
  109. package/src/AdaptableState/ThemeState.d.ts +24 -2
  110. package/src/AdaptableState/ToolPanelState.d.ts +10 -5
  111. package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
  112. package/src/AdaptableState/Uuid.d.ts +6 -0
  113. package/src/Api/ActionColumnApi.d.ts +3 -1
  114. package/src/Api/AdaptableApi.d.ts +54 -50
  115. package/src/Api/AlertApi.d.ts +20 -12
  116. package/src/Api/ApplicationApi.d.ts +6 -2
  117. package/src/Api/BulkUpdateApi.d.ts +2 -1
  118. package/src/Api/CalculatedColumnApi.d.ts +4 -1
  119. package/src/Api/CalendarApi.d.ts +10 -0
  120. package/src/Api/CellSummaryApi.d.ts +9 -3
  121. package/src/Api/ChartingApi.d.ts +22 -7
  122. package/src/Api/ColumnApi.d.ts +71 -4
  123. package/src/Api/ColumnFilterApi.d.ts +13 -3
  124. package/src/Api/ColumnMenuApi.d.ts +13 -2
  125. package/src/Api/ColumnScopeApi.d.ts +27 -1
  126. package/src/Api/CommentApi.d.ts +10 -7
  127. package/src/Api/ContextMenuApi.d.ts +11 -1
  128. package/src/Api/CustomSortApi.d.ts +6 -2
  129. package/src/Api/DashboardApi.d.ts +30 -9
  130. package/src/Api/DataChangeHistoryApi.d.ts +9 -3
  131. package/src/Api/DataImportApi.d.ts +1 -1
  132. package/src/Api/EntitlementApi.d.ts +6 -1
  133. package/src/Api/EventApi.d.ts +67 -19
  134. package/src/Api/Events/AdaptableReady.d.ts +6 -2
  135. package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
  136. package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
  137. package/src/Api/Events/AlertFired.d.ts +8 -2
  138. package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
  139. package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
  140. package/src/Api/Events/CellChanged.d.ts +6 -2
  141. package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
  142. package/src/Api/Events/ChartChanged.d.ts +16 -8
  143. package/src/Api/Events/CommentChanged.d.ts +8 -2
  144. package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
  145. package/src/Api/Events/DashboardChanged.d.ts +27 -6
  146. package/src/Api/Events/DataImported.d.ts +8 -4
  147. package/src/Api/Events/DataSetSelected.d.ts +6 -2
  148. package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
  149. package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
  150. package/src/Api/Events/GridFilterApplied.d.ts +11 -3
  151. package/src/Api/Events/GridSorted.d.ts +6 -2
  152. package/src/Api/Events/LayoutChanged.d.ts +41 -8
  153. package/src/Api/Events/LiveDataChanged.d.ts +21 -5
  154. package/src/Api/Events/NoteChanged.d.ts +5 -1
  155. package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
  156. package/src/Api/Events/RowChanged.d.ts +6 -2
  157. package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
  158. package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
  159. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
  160. package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
  161. package/src/Api/Events/ThemeSelected.d.ts +6 -2
  162. package/src/Api/ExportApi.d.ts +59 -32
  163. package/src/Api/ExpressionApi.d.ts +27 -16
  164. package/src/Api/Fdc3Api.d.ts +16 -3
  165. package/src/Api/FlashingCellApi.d.ts +6 -1
  166. package/src/Api/FormatColumnApi.d.ts +18 -11
  167. package/src/Api/FreeTextColumnApi.d.ts +4 -2
  168. package/src/Api/GridApi.d.ts +92 -19
  169. package/src/Api/IPushPullApi.d.ts +19 -2
  170. package/src/Api/Implementation/AlertApiImpl.d.ts +5 -5
  171. package/src/Api/Implementation/AlertApiImpl.js +26 -19
  172. package/src/Api/Implementation/ColumnScopeApiImpl.js +3 -3
  173. package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -3
  174. package/src/Api/Implementation/ExpressionApiImpl.js +5 -6
  175. package/src/Api/Implementation/QuickSearchApiImpl.js +2 -2
  176. package/src/Api/Implementation/StateApiImpl.d.ts +1 -1
  177. package/src/Api/Implementation/StateApiImpl.js +4 -3
  178. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -1
  179. package/src/Api/Implementation/UserInterfaceApiImpl.js +9 -15
  180. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -2
  181. package/src/Api/Internal/AdaptableInternalApi.js +11 -7
  182. package/src/Api/Internal/AlertInternalApi.js +12 -7
  183. package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
  184. package/src/Api/Internal/EventInternalApi.d.ts +2 -1
  185. package/src/Api/Internal/EventInternalApi.js +7 -0
  186. package/src/Api/Internal/StateInternalApi.d.ts +1 -1
  187. package/src/Api/Internal/StateInternalApi.js +6 -5
  188. package/src/Api/InteropioPluginApi.d.ts +2 -1
  189. package/src/Api/LayoutApi.d.ts +29 -15
  190. package/src/Api/NamedQueryApi.d.ts +10 -6
  191. package/src/Api/NoteApi.d.ts +15 -11
  192. package/src/Api/OpenFinApi.d.ts +8 -2
  193. package/src/Api/OptionsApi.d.ts +43 -1
  194. package/src/Api/PluginsApi.d.ts +6 -1
  195. package/src/Api/PlusMinusApi.d.ts +2 -1
  196. package/src/Api/QuickSearchApi.d.ts +6 -1
  197. package/src/Api/RowFormApi.d.ts +8 -7
  198. package/src/Api/ShortcutApi.d.ts +3 -1
  199. package/src/Api/SmartEditApi.d.ts +4 -1
  200. package/src/Api/StateApi.d.ts +32 -4
  201. package/src/Api/StatusBarApi.d.ts +2 -0
  202. package/src/Api/StyledColumnApi.d.ts +23 -12
  203. package/src/Api/SystemStatusApi.d.ts +18 -6
  204. package/src/Api/TeamSharingApi.d.ts +8 -1
  205. package/src/Api/ThemeApi.d.ts +17 -8
  206. package/src/Api/ToolPanelApi.d.ts +12 -7
  207. package/src/Api/UserInterfaceApi.d.ts +10 -5
  208. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
  209. package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +9 -4
  210. package/src/Redux/ActionsReducers/QuickSearchRedux.js +12 -7
  211. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.d.ts +8 -0
  212. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +12 -12
  213. package/src/Redux/Store/AdaptableStore.d.ts +8 -5
  214. package/src/Redux/Store/AdaptableStore.js +75 -41
  215. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +5 -5
  216. package/src/Redux/Store/Interface/IStorageEngine.d.ts +4 -4
  217. package/src/Redux/Store/StateOptionsGuards.d.ts +58 -0
  218. package/src/Redux/Store/StateOptionsGuards.js +112 -0
  219. package/src/Redux/Store/isTransientReduxAction.d.ts +5 -0
  220. package/src/Redux/Store/isTransientReduxAction.js +19 -0
  221. package/src/Strategy/AlertModule.js +2 -2
  222. package/src/Strategy/FormatColumnModule.js +2 -2
  223. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  224. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -0
  225. package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
  226. package/src/Utilities/Constants/ReduxConstants.js +5 -5
  227. package/src/Utilities/Helpers/AlertTypeHelper.d.ts +1 -1
  228. package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +14 -0
  229. package/src/Utilities/Helpers/SettingsPanelHelper.js +37 -1
  230. package/src/Utilities/Helpers/UIHelper.d.ts +12 -14
  231. package/src/Utilities/Helpers/UIHelper.js +12 -35
  232. package/src/Utilities/ObjectFactory.js +3 -3
  233. package/src/Utilities/Services/QueryLanguageService.js +0 -2
  234. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  235. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +9 -11
  236. package/src/View/Components/StyleComponent.js +2 -2
  237. package/src/View/Dashboard/Dashboard.d.ts +1 -1
  238. package/src/View/Dashboard/Dashboard.js +1 -1
  239. package/src/View/Dashboard/DashboardPopupSections.js +1 -1
  240. package/src/View/Filter/ColumnFilter/ColumnFilterNew.js +15 -11
  241. package/src/View/GridInfo/GridInfoPopup.js +62 -25
  242. package/src/View/QuickSearch/QuickSearchInput.js +1 -1
  243. package/src/View/QuickSearch/QuickSearchPopup.d.ts +1 -1
  244. package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
  245. package/src/View/QuickSearch/Utilities/useQuickSearchDebounced.d.ts +2 -2
  246. package/src/View/StyledColumn/RangesComponent.js +13 -16
  247. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +0 -2
  248. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +2 -2
  249. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
  250. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +0 -3
  251. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +3 -3
  252. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +7 -11
  253. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +6 -6
  254. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -2
  255. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +2 -2
  256. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +8 -8
  257. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +4 -4
  258. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +2 -2
  259. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +4 -4
  260. package/src/View/Wizard/CollapsibleWizardCard.d.ts +3 -1
  261. package/src/View/Wizard/CollapsibleWizardCard.js +17 -9
  262. package/src/agGrid/Adaptable.d.ts +0 -12
  263. package/src/agGrid/Adaptable.js +0 -52
  264. package/src/agGrid/AdaptableAgGrid.d.ts +4 -4
  265. package/src/agGrid/AdaptableAgGrid.js +2 -0
  266. package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
  267. package/src/agGrid/AdaptableLogger.d.ts +74 -1
  268. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
  269. package/src/agGrid/AgGridColumnAdapter.js +7 -5
  270. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
  271. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
  272. package/src/agGrid/index.d.ts +1 -6
  273. package/src/agGrid/index.js +1 -3
  274. package/src/aql/ExpressionEvaluation.d.ts +27 -0
  275. package/src/aql/types.d.ts +22 -0
  276. package/src/components/ColorField/index.d.ts +13 -0
  277. package/src/components/ColorField/index.js +26 -0
  278. package/src/components/aql/CompactEditor/CompactEditor.js +1 -1
  279. package/src/components/aql/ExpressionEditor/BaseEditorInput.js +1 -1
  280. package/src/components/aql/ExpressionEditor/CompactExpressionToolbar.d.ts +5 -0
  281. package/src/components/aql/ExpressionEditor/CompactExpressionToolbar.js +12 -5
  282. package/src/components/aql/ExpressionEditor/ExpressionPreview.js +1 -1
  283. package/src/components/aql/ExpressionEditor/index.d.ts +3 -2
  284. package/src/components/aql/QueryBuilder/GroupEditor.js +1 -1
  285. package/src/components/aql/QueryBuilder/QueryBuilder.d.ts +5 -0
  286. package/src/components/aql/QueryBuilder/QueryBuilder.js +1 -1
  287. package/src/components/aql/QueryBuilder/QueryBuilderInputs.js +12 -2
  288. package/src/components/aql/QueryBuilder/context.d.ts +7 -0
  289. package/src/components/aql/QueryBuilder/context.js +3 -1
  290. package/src/env.js +2 -2
  291. package/src/layout-manager/src/normalizeLayoutModel.d.ts +1 -1
  292. package/src/layout-manager/src/simplifyLayoutModel.d.ts +1 -1
  293. package/src/migration/AdaptableUpgradeHelper.d.ts +7 -2
  294. package/src/migration/VersionUpgrade17.js +13 -8
  295. package/src/migration/VersionUpgrade24.d.ts +9 -0
  296. package/src/migration/VersionUpgrade24.js +27 -0
  297. package/src/migration/legacyAdaptableQuery.d.ts +29 -4
  298. package/src/setupDevTools.js +827 -111
  299. package/src/types.d.ts +2 -4
  300. package/tsconfig.esm.tsbuildinfo +1 -1
  301. package/upgrade.d.ts +1 -0
  302. package/upgrade.js +1 -0
  303. package/vendor/components/Button/index.d.ts +1 -1
  304. package/vendor/components/Button/index.d.ts.map +1 -1
  305. package/vendor/components/Button/index.js.map +1 -1
  306. package/vendor/components/CheckBox/index.d.ts +1 -1
  307. package/vendor/components/CheckBox/index.d.ts.map +1 -1
  308. package/vendor/components/CheckBox/index.js.map +1 -1
  309. package/vendor/components/ColorField/index.d.ts +53 -0
  310. package/vendor/components/ColorField/index.d.ts.map +1 -0
  311. package/vendor/components/ColorField/index.js +80 -0
  312. package/vendor/components/ColorField/index.js.map +1 -0
  313. package/vendor/components/ColorPicker/colorPickerTab.d.ts +4 -0
  314. package/vendor/components/ColorPicker/colorPickerTab.d.ts.map +1 -0
  315. package/vendor/components/ColorPicker/colorPickerTab.js +28 -0
  316. package/vendor/components/ColorPicker/colorPickerTab.js.map +1 -0
  317. package/vendor/components/ColorPicker/index.d.ts +98 -0
  318. package/vendor/components/ColorPicker/index.d.ts.map +1 -0
  319. package/vendor/components/ColorPicker/index.js +322 -0
  320. package/vendor/components/ColorPicker/index.js.map +1 -0
  321. package/vendor/components/ColorPicker/themeColors.d.ts +94 -0
  322. package/vendor/components/ColorPicker/themeColors.d.ts.map +1 -0
  323. package/vendor/components/ColorPicker/themeColors.js +240 -0
  324. package/vendor/components/ColorPicker/themeColors.js.map +1 -0
  325. package/vendor/components/Combobox/VirtualizedList.d.ts +1 -1
  326. package/vendor/components/Combobox/VirtualizedList.d.ts.map +1 -1
  327. package/vendor/components/Combobox/VirtualizedList.js.map +1 -1
  328. package/vendor/components/Combobox/comboboxUtils.d.ts +9 -0
  329. package/vendor/components/Combobox/comboboxUtils.d.ts.map +1 -1
  330. package/vendor/components/Combobox/comboboxUtils.js +41 -2
  331. package/vendor/components/Combobox/comboboxUtils.js.map +1 -1
  332. package/vendor/components/Combobox/index.d.ts +1 -1
  333. package/vendor/components/Combobox/index.d.ts.map +1 -1
  334. package/vendor/components/Combobox/index.js +14 -9
  335. package/vendor/components/Combobox/index.js.map +1 -1
  336. package/vendor/components/NumberInput/index.d.ts +51 -0
  337. package/vendor/components/NumberInput/index.d.ts.map +1 -0
  338. package/vendor/components/NumberInput/index.js +82 -0
  339. package/vendor/components/NumberInput/index.js.map +1 -0
  340. package/vendor/components/index.css +286 -24
  341. package/vendor/components/index.d.ts +6 -0
  342. package/vendor/components/index.d.ts.map +1 -1
  343. package/vendor/components/index.js +3 -0
  344. package/vendor/components/index.js.map +1 -1
  345. package/vendor/components/twMerge.d.ts +3 -2
  346. package/vendor/components/twMerge.d.ts.map +1 -1
  347. package/vendor/components/twMerge.js.map +1 -1
  348. package/vendor/components/ui/combobox.d.ts.map +1 -1
  349. package/vendor/components/ui/combobox.js +1 -1
  350. package/vendor/components/ui/combobox.js.map +1 -1
  351. package/vendor/components/ui/input-group.d.ts.map +1 -1
  352. package/vendor/components/ui/input-group.js +5 -4
  353. package/vendor/components/ui/input-group.js.map +1 -1
  354. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
  355. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
  356. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
  357. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
  358. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
  359. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
  360. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
  361. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
  362. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
  363. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
  364. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
  365. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
  366. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
  367. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
  368. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
  369. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
  370. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
  371. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
  372. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
  373. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
  374. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
  375. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
  376. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
  377. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
  378. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
  379. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
  380. package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
  381. package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
  382. package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
  383. package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
  384. package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
  385. package/src/View/AdaptableWizardView/Wizard.js +0 -98
  386. package/src/View/AdaptableWizardView/index.d.ts +0 -4
  387. package/src/View/AdaptableWizardView/index.js +0 -4
  388. package/src/components/ColorPicker/ColorPicker.d.ts +0 -12
  389. package/src/components/ColorPicker/ColorPicker.js +0 -48
  390. package/src/components/ColorPicker/OptionalColorPicker.d.ts +0 -12
  391. package/src/components/ColorPicker/OptionalColorPicker.js +0 -13
  392. package/src/components/ColorPicker/index.d.ts +0 -2
  393. package/src/components/ColorPicker/index.js +0 -2
@@ -4,10 +4,10 @@ import { CheckBox } from '../../../components/CheckBox';
4
4
  import ErrorBox from '../../../components/ErrorBox';
5
5
  import FormLayout, { FormRow } from '../../../components/FormLayout';
6
6
  import { Tag } from '../../../components/Tag';
7
- import { ColorPicker } from '../../../components/ColorPicker';
7
+ import { ColorField } from '../../../components/ColorField';
8
8
  import { RangesComponent } from '../RangesComponent';
9
9
  import { ColumnSelector } from '../../Components/Selectors/ColumnSelector';
10
- import { getGraySwatchColor } from '../../../Utilities/Helpers/UIHelper';
10
+ import { getDefaultRangeColor } from '../../../Utilities/Helpers/UIHelper';
11
11
  import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
12
12
  import AdaptableInput from '../../Components/AdaptableInput';
13
13
  import { Box, Flex } from '../../../components/Flex';
@@ -230,7 +230,7 @@ export const StyledColumnWizardBulletSection = (props) => {
230
230
  {
231
231
  Min: 0,
232
232
  Max: 100,
233
- Color: getGraySwatchColor(),
233
+ Color: getDefaultRangeColor(),
234
234
  },
235
235
  ];
236
236
  props.onChange({
@@ -346,10 +346,10 @@ export const StyledColumnWizardBulletSection = (props) => {
346
346
  { value: 'Column', label: 'Column' },
347
347
  { value: 'Col-Avg', label: 'Column Average' },
348
348
  { value: 'Col-Median', label: 'Column Median' },
349
- ] }) }) }), currentMode === 'Number' && (_jsx(FormRow, { label: "Target Value:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(AdaptableInput, { type: "number", value: numericTargetValue ?? '', onChange: (e) => handleNumericTargetChange(e.target.value === '' ? undefined : Number(e.target.value)) }) }) })), currentMode === 'Column' && (_jsx(FormRow, { label: "Target Column:", children: _jsx(Box, { className: "twa:max-w-[220px]", children: _jsx(ColumnSelector, { type: "number", value: columnTargetValue ?? '', onChange: handleColumnTargetChange, filterColumn: (c) => c.columnId !== data.ColumnId, placeholder: "Select numeric column" }) }) })), currentMode !== 'None' && (_jsxs(_Fragment, { children: [_jsx(FormRow, { label: "Marker Shape:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: marker.Shape, onValueChange: (s) => updateMarker({ Shape: s }), items: MARKER_SHAPES.map((s) => ({ value: s.value, label: s.label })) }) }) }), _jsx(FormRow, { label: "Marker Colour:", children: _jsx(ColorPicker, { disabled: disabled, api: api, value: marker.Color || undefined, onChange: (c) => updateMarker({ Color: c }) }) }), _jsx(FormRow, { label: "Marker Size:", children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: marker.Size, onChange: (e) => updateMarker({ Size: Number(e.target.value) }) }) }) })] }))] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Bar" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Set the bar orientation and height" })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...BULLET_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Orientation:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: bullet.Orientation ?? 'Horizontal', onValueChange: (v) => update({ Orientation: v }), items: [
349
+ ] }) }) }), currentMode === 'Number' && (_jsx(FormRow, { label: "Target Value:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(AdaptableInput, { type: "number", value: numericTargetValue ?? '', onChange: (e) => handleNumericTargetChange(e.target.value === '' ? undefined : Number(e.target.value)) }) }) })), currentMode === 'Column' && (_jsx(FormRow, { label: "Target Column:", children: _jsx(Box, { className: "twa:max-w-[220px]", children: _jsx(ColumnSelector, { type: "number", value: columnTargetValue ?? '', onChange: handleColumnTargetChange, filterColumn: (c) => c.columnId !== data.ColumnId, placeholder: "Select numeric column" }) }) })), currentMode !== 'None' && (_jsxs(_Fragment, { children: [_jsx(FormRow, { label: "Marker Shape:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: marker.Shape, onValueChange: (s) => updateMarker({ Shape: s }), items: MARKER_SHAPES.map((s) => ({ value: s.value, label: s.label })) }) }) }), _jsx(FormRow, { label: "Marker Colour:", children: _jsx(ColorField, { clearable: false, disabled: disabled, value: marker.Color || undefined, onChange: (c) => updateMarker({ Color: c }) }) }), _jsx(FormRow, { label: "Marker Size:", children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: marker.Size, onChange: (e) => updateMarker({ Size: Number(e.target.value) }) }) }) })] }))] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Bar" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Set the bar orientation and height" })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...BULLET_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Orientation:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: bullet.Orientation ?? 'Horizontal', onValueChange: (v) => update({ Orientation: v }), items: [
350
350
  { value: 'Horizontal', label: 'Horizontal' },
351
351
  { value: 'Vertical', label: 'Vertical' },
352
- ] }) }) }), bullet.Orientation === 'Vertical' && (_jsx(FormRow, { label: "", children: _jsxs(Box, { className: "twa:text-xs twa:text-neutral-500", children: ["Tip: vertical bullet charts need a tall row height to be readable (we recommend at least 60px). Set ", _jsx("code", { children: "rowHeight" }), " on ", _jsx("code", { children: " gridOptions " }), " or use", ' ', _jsx("code", { children: "getRowHeight" }), "."] }) })), _jsx(FormRow, { label: "Bar Colour:", children: _jsx(ColorPicker, { disabled: disabled, api: api, value: bullet.Bar?.Color, onChange: (c) => updateBar({ Color: c }) }) }), _jsx(FormRow, { label: bullet.Orientation === 'Vertical' ? 'Bar Width (px):' : 'Bar Height (px):', children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: bullet.Bar?.Height ?? '', onChange: (e) => updateBar({
352
+ ] }) }) }), bullet.Orientation === 'Vertical' && (_jsx(FormRow, { label: "", children: _jsxs(Box, { className: "twa:text-xs twa:text-neutral-500", children: ["Tip: vertical bullet charts need a tall row height to be readable (we recommend at least 60px). Set ", _jsx("code", { children: "rowHeight" }), " on ", _jsx("code", { children: " gridOptions " }), " or use", ' ', _jsx("code", { children: "getRowHeight" }), "."] }) })), _jsx(FormRow, { label: "Bar Colour:", children: _jsx(ColorField, { clearable: false, disabled: disabled, value: bullet.Bar?.Color, onChange: (c) => updateBar({ Color: c }) }) }), _jsx(FormRow, { label: bullet.Orientation === 'Vertical' ? 'Bar Width (px):' : 'Bar Height (px):', children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: bullet.Bar?.Height ?? '', onChange: (e) => updateBar({
353
353
  Height: e.target.value === '' ? undefined : Number(e.target.value),
354
354
  }), placeholder: "8" }) }) }), _jsx(FormRow, { label: "Origin:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: typeof bullet.Origin === 'number' ? 'Number' : bullet.Origin ?? 'Auto', onValueChange: (v) => {
355
355
  if (v === 'Auto' || v === 'Zero') {
@@ -361,7 +361,7 @@ export const StyledColumnWizardBulletSection = (props) => {
361
361
  }, items: [
362
362
  { value: 'Auto', label: 'Auto' },
363
363
  { value: 'Zero', label: 'Zero' },
364
- ] }) }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell Text" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Pick which values to display and where each one sits around the bar" })] }), _jsxs(Card.Body, { children: [_jsx(FormLayout, { sizes: [...BULLET_STYLE_FORM_SIZES], children: _jsx(BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: cellTextProperties, onToggle: toggleCellText, onPlacementChange: onCellTextPlacementChange }) }), _jsx(Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: _jsx(StyledColumnFontStyleEditor, { api: api, disabled: cellTextDisabled, value: bullet.Font, onChange: (next) => {
364
+ ] }) }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell Text" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Pick which values to display and where each one sits around the bar" })] }), _jsxs(Card.Body, { children: [_jsx(FormLayout, { sizes: [...BULLET_STYLE_FORM_SIZES], children: _jsx(BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: cellTextProperties, onToggle: toggleCellText, onPlacementChange: onCellTextPlacementChange }) }), _jsx(Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: _jsx(StyledColumnFontStyleEditor, { disabled: cellTextDisabled, value: bullet.Font, onChange: (next) => {
365
365
  if (next) {
366
366
  update({ Font: next });
367
367
  }
@@ -51,7 +51,7 @@ export const renderStyledColumnGradientStyleSummary = (data) => {
51
51
  return renderSummaryStringTags(items);
52
52
  };
53
53
  export const StyledColumnWizardGradientSection = (props) => {
54
- const { data, api } = useOnePageAdaptableWizardContext();
54
+ const { data } = useOnePageAdaptableWizardContext();
55
55
  const gs = data.GradientStyle ?? {};
56
56
  const disabled = !data.ColumnId;
57
57
  const onFontChange = (next) => {
@@ -106,5 +106,5 @@ export const StyledColumnWizardGradientSection = (props) => {
106
106
  else {
107
107
  patchGradient({ AutoContrastText: true });
108
108
  }
109
- }, children: "Make text readable on tinted backgrounds" }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Tooltip" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[600px]", children: "Set Tooltip properties" })] }), _jsx(Card.Body, { children: _jsx(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: _jsx(FormRow, { label: "Tooltip:", children: _jsxs(Box, { className: "twa:ml-2", children: [_jsx(CheckBox, { disabled: disabled, checked: gs.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { disabled: disabled, className: "twa:ml-3", checked: gs.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent along scale" })] }) }) }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Font" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[480px]", children: "Optional font properties (takes precedence over Format Column)" })] }), _jsx(Card.Body, { children: _jsx(StyledColumnFontStyleEditor, { api: api, disabled: disabled, value: gs.Font, onChange: onFontChange }) })] }), !data.ColumnId && (_jsx(ErrorBox, { className: "twa:mt-2", children: "Select a column before changing Gradient style." }))] }));
109
+ }, children: "Make text readable on tinted backgrounds" }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Tooltip" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[600px]", children: "Set Tooltip properties" })] }), _jsx(Card.Body, { children: _jsx(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: _jsx(FormRow, { label: "Tooltip:", children: _jsxs(Box, { className: "twa:ml-2", children: [_jsx(CheckBox, { disabled: disabled, checked: gs.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { disabled: disabled, className: "twa:ml-3", checked: gs.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent along scale" })] }) }) }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Font" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[480px]", children: "Optional font properties (takes precedence over Format Column)" })] }), _jsx(Card.Body, { children: _jsx(StyledColumnFontStyleEditor, { disabled: disabled, value: gs.Font, onChange: onFontChange }) })] }), !data.ColumnId && (_jsx(ErrorBox, { className: "twa:mt-2", children: "Select a column before changing Gradient style." }))] }));
110
110
  };
@@ -161,7 +161,7 @@ export const isValidIconStyleMappings = (data) => {
161
161
  return true;
162
162
  };
163
163
  export const StyledColumnWizardIconSection = (props) => {
164
- const { data, api } = useOnePageAdaptableWizardContext();
164
+ const { data } = useOnePageAdaptableWizardContext();
165
165
  const iconStyle = data.IconStyle ?? {};
166
166
  const mappings = iconStyle.Mappings ?? [];
167
167
  const disabled = !data.ColumnId;
@@ -299,7 +299,7 @@ export const StyledColumnWizardIconSection = (props) => {
299
299
  { value: 'After', label: 'After' },
300
300
  { value: 'Above', label: 'Above' },
301
301
  { value: 'Below', label: 'Below' },
302
- ] }) }) })] }), _jsx(Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: _jsx(StyledColumnFontStyleEditor, { api: api, disabled: disabled || cellTextDisabled, value: iconStyle.Font, onChange: onFontChange }) })] })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Tooltip" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether and how to display a tooltip" })] }), _jsx(Card.Body, { children: _jsx(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: _jsxs(FormRow, { label: "Tooltip Display:", children: [_jsx(CheckBox, { checked: toolTipText.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { className: "twa:ml-3", checked: toolTipText.includes('IconDescription'), onChange: (checked) => toggleToolTipText('IconDescription', checked), children: "Description" })] }) }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell box styling (overrides Format Column properties)" })] }), _jsx(Card.Body, { children: _jsx(StyledColumnCellStyleEditor, { api: api, disabled: disabled, value: iconStyle.Cell, onChange: onCellChange }) })] })] }));
302
+ ] }) }) })] }), _jsx(Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: _jsx(StyledColumnFontStyleEditor, { disabled: disabled || cellTextDisabled, value: iconStyle.Font, onChange: onFontChange }) })] })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Tooltip" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether and how to display a tooltip" })] }), _jsx(Card.Body, { children: _jsx(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: _jsxs(FormRow, { label: "Tooltip Display:", children: [_jsx(CheckBox, { checked: toolTipText.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { className: "twa:ml-3", checked: toolTipText.includes('IconDescription'), onChange: (checked) => toggleToolTipText('IconDescription', checked), children: "Description" })] }) }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell box styling (overrides Format Column properties)" })] }), _jsx(Card.Body, { children: _jsx(StyledColumnCellStyleEditor, { disabled: disabled, value: iconStyle.Cell, onChange: onCellChange }) })] })] }));
303
303
  };
304
304
  const ICON_KIND_OPTIONS = [
305
305
  { value: 'Emoji', label: 'Emoji' },
@@ -5,10 +5,10 @@ import ErrorBox from '../../../components/ErrorBox';
5
5
  import FormLayout, { FormRow } from '../../../components/FormLayout';
6
6
  import { Tag } from '../../../components/Tag';
7
7
  import { InputGroup } from '../../../components/InputGroup';
8
- import { ColorPicker, OptionalColorPicker } from '../../../components/ColorPicker';
8
+ import { ColorField } from '../../../components/ColorField';
9
9
  import { RangesComponent } from '../RangesComponent';
10
10
  import { ColumnSelector } from '../../Components/Selectors/ColumnSelector';
11
- import { getGraySwatchColor } from '../../../Utilities/Helpers/UIHelper';
11
+ import { getDefaultRangeColor, themeColorVar } from '../../../Utilities/Helpers/UIHelper';
12
12
  import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
13
13
  import AdaptableInput from '../../Components/AdaptableInput';
14
14
  import { Box, Flex } from '../../../components/Flex';
@@ -276,7 +276,7 @@ export const StyledColumnWizardRangeBarSection = (props) => {
276
276
  const onRangeValueTypeChange = React.useCallback((rangeValueType) => {
277
277
  const ranges = rangeValueType === 'Number'
278
278
  ? api.columnScopeApi.createCellColorRangesForScope(scope)
279
- : [{ Min: 0, Max: 100, Color: getGraySwatchColor() }];
279
+ : [{ Min: 0, Max: 100, Color: getDefaultRangeColor() }];
280
280
  props.onChange({
281
281
  ...data,
282
282
  RangeBarStyle: {
@@ -419,18 +419,18 @@ export const StyledColumnWizardRangeBarSection = (props) => {
419
419
  field: 'Reference',
420
420
  optional: true,
421
421
  fallbackNumber: minMaxRangeValues?.max ?? 0,
422
- })] }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Ranges" }), _jsxs(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-700px]", children: ["Optional coloured segments drawn ", _jsx("em", { children: "behind" }), " track to form qualitative scale;leave empty for a plain track"] })] }), _jsx(Card.Body, { children: _jsx(RangesComponent, { allowEmptyRanges: true, disabled: disabled, minMaxRangeValues: minMaxRangeValues, api: api, scope: scope, ranges: range.CellRanges ?? [], rangeValueType: range.RangeValueType, onRangeValueTypeChange: onRangeValueTypeChange, columnComparison: range.ColumnComparison, updateRanges: onUpdateRanges, updateColumnComparison: onUpdateColumnComparison, hideColumnComparison: true }) })] })] })), !isRangeVariant && (_jsxs(_Fragment, { children: [_jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Value Marker" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Drawn at the cell value's position along the track." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Shape:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: valueMarker.Shape, onValueChange: (s) => updateValueMarker({ Shape: s }), items: MARKER_SHAPES.map((s) => ({ value: s.value, label: s.label })) }) }) }), _jsx(FormRow, { label: `${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorPicker, { disabled: disabled, api: api, value: valueMarker.Color || undefined, onChange: (c) => updateValueMarker({ Color: c }) }) }), _jsx(FormRow, { label: "Size:", children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: valueMarker.Size, onChange: (e) => updateValueMarker({ Size: Number(e.target.value) }) }) }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Reference Marker" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: hasReference
422
+ })] }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Ranges" }), _jsxs(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-700px]", children: ["Optional coloured segments drawn ", _jsx("em", { children: "behind" }), " track to form qualitative scale;leave empty for a plain track"] })] }), _jsx(Card.Body, { children: _jsx(RangesComponent, { allowEmptyRanges: true, disabled: disabled, minMaxRangeValues: minMaxRangeValues, api: api, scope: scope, ranges: range.CellRanges ?? [], rangeValueType: range.RangeValueType, onRangeValueTypeChange: onRangeValueTypeChange, columnComparison: range.ColumnComparison, updateRanges: onUpdateRanges, updateColumnComparison: onUpdateColumnComparison, hideColumnComparison: true }) })] })] })), !isRangeVariant && (_jsxs(_Fragment, { children: [_jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Value Marker" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Drawn at the cell value's position along the track." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Shape:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: valueMarker.Shape, onValueChange: (s) => updateValueMarker({ Shape: s }), items: MARKER_SHAPES.map((s) => ({ value: s.value, label: s.label })) }) }) }), _jsx(FormRow, { label: `${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorField, { clearable: false, disabled: disabled, value: valueMarker.Color || undefined, onChange: (c) => updateValueMarker({ Color: c }) }) }), _jsx(FormRow, { label: "Size:", children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: valueMarker.Size, onChange: (e) => updateValueMarker({ Size: Number(e.target.value) }) }) }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Reference Marker" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: hasReference
423
423
  ? 'Drawn at the Reference value (e.g. previous close, target, midpoint).'
424
- : 'Optional second marker when a Reference bound is set on the Style step.' })] }), _jsx(Card.Body, { children: hasReference ? (_jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Shape:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: referenceMarker.Shape, onValueChange: (s) => updateReferenceMarker({ Shape: s }), items: MARKER_SHAPES.map((s) => ({ value: s.value, label: s.label })) }) }) }), _jsx(FormRow, { label: `${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorPicker, { disabled: disabled, api: api, value: referenceMarker.Color || undefined, onChange: (c) => updateReferenceMarker({ Color: c }) }) }), _jsx(FormRow, { label: "Size:", children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: referenceMarker.Size, onChange: (e) => updateReferenceMarker({ Size: Number(e.target.value) }) }) }) })] })) : (_jsx(Box, { className: "twa:text-xs twa:opacity-60 twa:max-w-[520px]", children: "Add a Reference value on the Style step (Bounds section) to enable this marker (e.g. previous close, target, midpoint)." })) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Track" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "The line representing the [Min, Max] interval, plus optional cell background." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Orientation:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: range.Orientation ?? 'Horizontal', onValueChange: (v) => update({ Orientation: v }), items: [
424
+ : 'Optional second marker when a Reference bound is set on the Style step.' })] }), _jsx(Card.Body, { children: hasReference ? (_jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Shape:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: referenceMarker.Shape, onValueChange: (s) => updateReferenceMarker({ Shape: s }), items: MARKER_SHAPES.map((s) => ({ value: s.value, label: s.label })) }) }) }), _jsx(FormRow, { label: `${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorField, { clearable: false, disabled: disabled, value: referenceMarker.Color || undefined, onChange: (c) => updateReferenceMarker({ Color: c }) }) }), _jsx(FormRow, { label: "Size:", children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: referenceMarker.Size, onChange: (e) => updateReferenceMarker({ Size: Number(e.target.value) }) }) }) })] })) : (_jsx(Box, { className: "twa:text-xs twa:opacity-60 twa:max-w-[520px]", children: "Add a Reference value on the Style step (Bounds section) to enable this marker (e.g. previous close, target, midpoint)." })) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Track" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "The line representing the [Min, Max] interval, plus optional cell background." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Orientation:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: range.Orientation ?? 'Horizontal', onValueChange: (v) => update({ Orientation: v }), items: [
425
425
  { value: 'Horizontal', label: 'Horizontal' },
426
426
  { value: 'Vertical', label: 'Vertical' },
427
- ] }) }) }), range.Orientation === 'Vertical' && (_jsx(FormRow, { label: "", children: _jsxs(Box, { className: "twa:text-xs twa:text-neutral-500 twa:max-w-[520px]", children: ["Tip: vertical Range Bars need a tall row height to be readable (we recommend at least 60px). Set ", _jsx("code", { children: "rowHeight" }), " on ", _jsx("code", { children: " gridOptions " }), " or use ", _jsx("code", { children: "getRowHeight" }), "."] }) })), _jsx(FormRow, { label: `Track ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(OptionalColorPicker, { disabled: disabled, api: api, value: range.Track?.Color, defaultColor: getGraySwatchColor(), onChange: (c) => updateTrackProperties({ Color: c }) }) }), _jsx(FormRow, { label: range.Orientation === 'Vertical' ? 'Track Width (px):' : 'Track Height (px):', children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: range.Track?.Height ?? '', onChange: (e) => updateTrackProperties({
427
+ ] }) }) }), range.Orientation === 'Vertical' && (_jsx(FormRow, { label: "", children: _jsxs(Box, { className: "twa:text-xs twa:text-neutral-500 twa:max-w-[520px]", children: ["Tip: vertical Range Bars need a tall row height to be readable (we recommend at least 60px). Set ", _jsx("code", { children: "rowHeight" }), " on ", _jsx("code", { children: " gridOptions " }), " or use ", _jsx("code", { children: "getRowHeight" }), "."] }) })), _jsx(FormRow, { label: `Track ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorField, { disabled: disabled, value: range.Track?.Color, defaultColor: getDefaultRangeColor(), onChange: (c) => updateTrackProperties({ Color: c }) }) }), _jsx(FormRow, { label: range.Orientation === 'Vertical' ? 'Track Width (px):' : 'Track Height (px):', children: _jsx(Box, { className: "twa:max-w-[100px]", children: _jsx(AdaptableInput, { type: "number", min: 1, value: range.Track?.Height ?? '', onChange: (e) => updateTrackProperties({
428
428
  Height: e.target.value === '' ? undefined : Number(e.target.value),
429
- }), placeholder: "4" }) }) }), _jsx(FormRow, { label: `Back ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(OptionalColorPicker, { disabled: disabled, api: api, value: range.BackColor ?? undefined, defaultColor: getGraySwatchColor(), onChange: (c) => updateBackColor(c) }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Out of Range" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "How to draw the value marker when the cell value falls outside [Min, Max]." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Behaviour:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: outOfRangeMode, onValueChange: (v) => updateOutOfRangeProperties({
429
+ }), placeholder: "4" }) }) }), _jsx(FormRow, { label: `Back ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorField, { disabled: disabled, value: range.BackColor ?? undefined, defaultColor: getDefaultRangeColor(), onChange: (c) => updateBackColor(c) }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Out of Range" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "How to draw the value marker when the cell value falls outside [Min, Max]." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Behaviour:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: outOfRangeMode, onValueChange: (v) => updateOutOfRangeProperties({
430
430
  Mode: v,
431
431
  }), items: [
432
432
  { value: 'Clamp', label: 'Clamp to edge' },
433
433
  { value: 'Overflow', label: 'Show outside' },
434
434
  { value: 'Hide', label: 'Hide marker' },
435
- ] }) }) }), outOfRangeMode === 'Clamp' && (_jsx(FormRow, { label: `Out-of-range ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(OptionalColorPicker, { disabled: disabled, api: api, value: range.OutOfRange?.Color, defaultColor: "crimson", onChange: (c) => updateOutOfRangeProperties({ Color: c }) }) }))] }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Text & Tooltip" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell-text overlay and AG Grid tooltip content." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: range.CellTextProperties, onToggle: toggleCellText, onPlacementChange: onCellTextPlacementChange }), _jsxs(FormRow, { label: "Tooltip Display:", children: [_jsx(CheckBox, { disabled: disabled, checked: range.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { disabled: disabled, className: "twa:ml-3", checked: range.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] })] }) })] })] }))] }));
435
+ ] }) }) }), outOfRangeMode === 'Clamp' && (_jsx(FormRow, { label: `Out-of-range ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorField, { disabled: disabled, value: range.OutOfRange?.Color, defaultColor: themeColorVar('destructive'), onChange: (c) => updateOutOfRangeProperties({ Color: c }) }) }))] }) })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Text & Tooltip" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell-text overlay and AG Grid tooltip content." })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [_jsx(BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: range.CellTextProperties, onToggle: toggleCellText, onPlacementChange: onCellTextPlacementChange }), _jsxs(FormRow, { label: "Tooltip Display:", children: [_jsx(CheckBox, { disabled: disabled, checked: range.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { disabled: disabled, className: "twa:ml-3", checked: range.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] })] }) })] })] }))] }));
436
436
  };
@@ -3,7 +3,7 @@ import { CheckBox } from '../../../components/CheckBox';
3
3
  import ErrorBox from '../../../components/ErrorBox';
4
4
  import FormLayout, { FormRow } from '../../../components/FormLayout';
5
5
  import { Tag } from '../../../components/Tag';
6
- import { ColorPicker } from '../../../components/ColorPicker';
6
+ import { ColorField } from '../../../components/ColorField';
7
7
  import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
8
8
  import { Box, Flex } from '../../../components/Flex';
9
9
  import { SingleSelect } from '../../../components/Select';
@@ -112,7 +112,7 @@ export const isValidRatingStyle = (data) => {
112
112
  return true;
113
113
  };
114
114
  export const StyledColumnWizardRatingSection = (props) => {
115
- const { data, api } = useOnePageAdaptableWizardContext();
115
+ const { data } = useOnePageAdaptableWizardContext();
116
116
  const rating = data.RatingStyle ?? {};
117
117
  const disabled = !data.ColumnId;
118
118
  if (!data.ColumnId) {
@@ -141,7 +141,7 @@ export const StyledColumnWizardRatingSection = (props) => {
141
141
  update({
142
142
  Max: Number.isFinite(parsed) && parsed >= 1 ? Math.floor(parsed) : undefined,
143
143
  });
144
- } }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:min-w-0 twa:shrink", children: "Icon count and rating cap (no auto scaling is applied)" })] }) }), _jsx(FormRow, { label: "Icon:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: rating.Icon ?? DEFAULT_RATING_ICON, onValueChange: (v) => update({ Icon: v }), items: ICON_CHOICES }) }) }), _jsx(FormRow, { label: "Filled Colour:", children: _jsx(ColorPicker, { disabled: disabled, api: api, value: getDisplayedFilledColor(rating), onChange: (c) => update({ FilledColor: c }) }) }), _jsx(FormRow, { label: "Empty Colour:", children: _jsx(ColorPicker, { disabled: disabled, api: api, value: getDisplayedEmptyColor(rating), onChange: (c) => update({ EmptyColor: c }) }) }), _jsx(FormRow, { label: "Icon Size (px):", children: _jsxs(Flex, { alignItems: "center", className: "twa:gap-2", children: [_jsx(Input, { type: "number", min: 4, step: 1, value: rating.Size ?? '', placeholder: String(DEFAULT_RATING_SIZE), style: { width: 80 }, onChange: (event) => {
144
+ } }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:min-w-0 twa:shrink", children: "Icon count and rating cap (no auto scaling is applied)" })] }) }), _jsx(FormRow, { label: "Icon:", children: _jsx(Box, { className: "twa:max-w-[160px]", children: _jsx(SingleSelect, { className: "twa:w-full", value: rating.Icon ?? DEFAULT_RATING_ICON, onValueChange: (v) => update({ Icon: v }), items: ICON_CHOICES }) }) }), _jsx(FormRow, { label: "Filled Colour:", children: _jsx(ColorField, { clearable: false, disabled: disabled, value: getDisplayedFilledColor(rating), onChange: (c) => update({ FilledColor: c }) }) }), _jsx(FormRow, { label: "Empty Colour:", children: _jsx(ColorField, { clearable: false, disabled: disabled, value: getDisplayedEmptyColor(rating), onChange: (c) => update({ EmptyColor: c }) }) }), _jsx(FormRow, { label: "Icon Size (px):", children: _jsxs(Flex, { alignItems: "center", className: "twa:gap-2", children: [_jsx(Input, { type: "number", min: 4, step: 1, value: rating.Size ?? '', placeholder: String(DEFAULT_RATING_SIZE), style: { width: 80 }, onChange: (event) => {
145
145
  const raw = event.target.value;
146
146
  if (raw === '' || raw == null) {
147
147
  update({ Size: undefined });
@@ -161,7 +161,7 @@ export const StyledColumnWizardRatingSection = (props) => {
161
161
  update({
162
162
  Gap: Number.isFinite(parsed) && parsed >= 0 ? parsed : undefined,
163
163
  });
164
- } }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:min-w-0 twa:shrink", children: "Pixel space between adjacent icons" })] }) }), _jsx(FormRow, { label: "Allow Half Icons:", children: _jsx(CheckBox, { disabled: disabled, className: "twa:ml-2", checked: rating.AllowHalf ?? true, onChange: (checked) => update({ AllowHalf: checked }), children: "Render fractional values as a partial icon (e.g. 3.5 \u2192 \u2605\u2605\u2605\u00BD\u2606)" }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsx(Card.Title, { children: "Text" }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Show Value:", children: _jsx(CheckBox, { disabled: disabled, className: "twa:ml-2", checked: rating.ShowValue ?? false, onChange: (checked) => update({ ShowValue: checked }), children: "Display the numeric value beside the icons" }) }), _jsx(FormRow, { label: "Tooltip:", children: _jsxs(Flex, { flexDirection: "column", className: "twa:gap-1 twa:ml-2", children: [_jsx(CheckBox, { disabled: disabled, checked: rating.ToolTipText?.includes('CellValue') ?? false, onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), _jsx(CheckBox, { disabled: disabled, checked: rating.ToolTipText?.includes('PercentageValue') ?? false, onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percentage Value (value \u00F7 Max)" })] }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[500px]", children: "Optional Cell Style properties overrides Format Column properties)" })] }), _jsx(Card.Body, { children: _jsx(StyledColumnCellStyleEditor, { api: api, disabled: disabled, value: rating.Cell, onChange: (next) => {
164
+ } }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:min-w-0 twa:shrink", children: "Pixel space between adjacent icons" })] }) }), _jsx(FormRow, { label: "Allow Half Icons:", children: _jsx(CheckBox, { disabled: disabled, className: "twa:ml-2", checked: rating.AllowHalf ?? true, onChange: (checked) => update({ AllowHalf: checked }), children: "Render fractional values as a partial icon (e.g. 3.5 \u2192 \u2605\u2605\u2605\u00BD\u2606)" }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsx(Card.Title, { children: "Text" }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: [_jsx(FormRow, { label: "Show Value:", children: _jsx(CheckBox, { disabled: disabled, className: "twa:ml-2", checked: rating.ShowValue ?? false, onChange: (checked) => update({ ShowValue: checked }), children: "Display the numeric value beside the icons" }) }), _jsx(FormRow, { label: "Tooltip:", children: _jsxs(Flex, { flexDirection: "column", className: "twa:gap-1 twa:ml-2", children: [_jsx(CheckBox, { disabled: disabled, checked: rating.ToolTipText?.includes('CellValue') ?? false, onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), _jsx(CheckBox, { disabled: disabled, checked: rating.ToolTipText?.includes('PercentageValue') ?? false, onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percentage Value (value \u00F7 Max)" })] }) })] }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[500px]", children: "Optional Cell Style properties overrides Format Column properties)" })] }), _jsx(Card.Body, { children: _jsx(StyledColumnCellStyleEditor, { disabled: disabled, value: rating.Cell, onChange: (next) => {
165
165
  if (next) {
166
166
  update({ Cell: next });
167
167
  }
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import ErrorBox from '../../../../components/ErrorBox';
4
4
  import { Tag } from '../../../../components/Tag';
5
5
  import { RangesComponent } from '../../RangesComponent';
6
- import { getGraySwatchColor } from '../../../../Utilities/Helpers/UIHelper';
6
+ import { getDefaultRangeColor } from '../../../../Utilities/Helpers/UIHelper';
7
7
  import { useOnePageAdaptableWizardContext } from '../../../Wizard/OnePageAdaptableWizard';
8
8
  import { Box } from '../../../../components/Flex';
9
9
  import { PercentBarColumnComparisonPreview } from './Components/PercentBarColumnComparisonPreview';
@@ -108,7 +108,7 @@ export const StyledColumnWizardRangesSection = (props) => {
108
108
  {
109
109
  Min: 0,
110
110
  Max: 100,
111
- Color: getGraySwatchColor(),
111
+ Color: getDefaultRangeColor(),
112
112
  },
113
113
  ];
114
114
  let newStyledColumn = data;
@@ -5,8 +5,8 @@ import FormLayout, { FormRow } from '../../../../components/FormLayout';
5
5
  import { Tag } from '../../../../components/Tag';
6
6
  import { formatBarStyleCellTextLayoutSummary, getActiveBarStyleCellTextTokens, hasBarStyleCellTextConfigured, patchBarStyleCellTextPlacement, resolveBarStyleCellTextLayout, toggleBarStyleCellTextToken, } from '../../../../Utilities/Helpers/StyledColumns/BarStylesHelper';
7
7
  import { BarStyleCellTextLayoutEditor } from './Components/BarStyleCellTextLayoutEditor';
8
- import { OptionalColorPicker } from '../../../../components/ColorPicker';
9
- import { getGraySwatchColor } from '../../../../Utilities/Helpers/UIHelper';
8
+ import { ColorField } from '../../../../components/ColorField';
9
+ import { getDefaultRangeColor } from '../../../../Utilities/Helpers/UIHelper';
10
10
  import { useOnePageAdaptableWizardContext } from '../../../Wizard/OnePageAdaptableWizard';
11
11
  import { Box, Flex } from '../../../../components/Flex';
12
12
  import Radio, { RadioGroup } from '../../../../components/Radio';
@@ -136,7 +136,7 @@ export const StyledColumnWizardStyleSection = (props) => {
136
136
  const currentOrigin = typeof pb.Origin === 'number'
137
137
  ? 'Min'
138
138
  : pb.Origin ?? 'Auto';
139
- return (_jsxs(Box, { children: [_jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Bar Position" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Set the position of the cell text relative to the bar" })] }), _jsx(Card.Body, { children: _jsx(RadioGroup, { orientation: "vertical", name: "ab-percentbar-origin", value: currentOrigin, onRadioChange: handleOriginChange, children: ORIGIN_CHOICES.map((choice) => (_jsx(Radio, { value: choice.value, disabled: disabled, children: _jsxs(Flex, { alignItems: "center", children: [_jsx(Box, { className: "twa:min-w-[60px]", children: choice.label }), _jsx(Box, { className: "twa:text-xs twa:opacity-70", children: choice.hint })] }) }, choice.value))) }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell Text" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[540px]", children: "Pick which values to display and where each one sits around the bar (font properties take precedence over Format Column)" })] }), _jsxs(Card.Body, { children: [_jsx(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: _jsx(BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: cellTextProperties, onToggle: onCellTextLayoutToggle, onPlacementChange: onCellTextPlacementChange }) }), _jsx(Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: _jsx(StyledColumnFontStyleEditor, { api: api, disabled: cellTextDisabled, value: pb.Font, onChange: (next) => {
139
+ return (_jsxs(Box, { children: [_jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Bar Position" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Set the position of the cell text relative to the bar" })] }), _jsx(Card.Body, { children: _jsx(RadioGroup, { orientation: "vertical", name: "ab-percentbar-origin", value: currentOrigin, onRadioChange: handleOriginChange, children: ORIGIN_CHOICES.map((choice) => (_jsx(Radio, { value: choice.value, disabled: disabled, children: _jsxs(Flex, { alignItems: "center", children: [_jsx(Box, { className: "twa:min-w-[60px]", children: choice.label }), _jsx(Box, { className: "twa:text-xs twa:opacity-70", children: choice.hint })] }) }, choice.value))) }) })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell Text" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[540px]", children: "Pick which values to display and where each one sits around the bar (font properties take precedence over Format Column)" })] }), _jsxs(Card.Body, { children: [_jsx(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: _jsx(BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: cellTextProperties, onToggle: onCellTextLayoutToggle, onPlacementChange: onCellTextPlacementChange }) }), _jsx(Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: _jsx(StyledColumnFontStyleEditor, { disabled: cellTextDisabled, value: pb.Font, onChange: (next) => {
140
140
  if (next) {
141
141
  update({ Font: next });
142
142
  }
@@ -145,5 +145,5 @@ export const StyledColumnWizardStyleSection = (props) => {
145
145
  delete cleaned.Font;
146
146
  props.onChange({ ...data, PercentBarStyle: cleaned });
147
147
  }
148
- } }) })] })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell Style" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Configure Tooltip and Background Colour" })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: [_jsxs(FormRow, { label: "Tooltip Display:", children: [_jsx(CheckBox, { disabled: disabled, checked: pb.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { disabled: disabled, className: "twa:ml-3", checked: pb.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent Value" })] }), _jsx(FormRow, { label: `Back ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(OptionalColorPicker, { disabled: disabled, api: api, value: pb.BackColor ?? undefined, defaultColor: getGraySwatchColor(), onChange: onBackColorChange }) })] }) })] })] }));
148
+ } }) })] })] }), _jsxs(Card, { shadow: false, className: "twa:mb-3", children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Cell Style" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Configure Tooltip and Background Colour" })] }), _jsx(Card.Body, { children: _jsxs(FormLayout, { sizes: [...STYLE_FORM_SIZES], children: [_jsxs(FormRow, { label: "Tooltip Display:", children: [_jsx(CheckBox, { disabled: disabled, checked: pb.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', _jsx(CheckBox, { disabled: disabled, className: "twa:ml-3", checked: pb.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent Value" })] }), _jsx(FormRow, { label: `Back ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: _jsx(ColorField, { disabled: disabled, value: pb.BackColor ?? undefined, defaultColor: getDefaultRangeColor(), onChange: onBackColorChange }) })] }) })] })] }));
149
149
  };
@@ -19,7 +19,9 @@ export interface CollapsibleWizardCardProps {
19
19
  headerVisual?: React.ReactNode;
20
20
  /** Trailing header controls (all states) — e.g. delete. Clicks do not toggle expand. */
21
21
  headerActions?: React.ReactNode;
22
- children: React.ReactNode;
22
+ children?: React.ReactNode;
23
+ /** When false, the card is a static header + summary (no expand chevron). Default: true. */
24
+ collapsible?: boolean;
23
25
  defaultExpanded?: boolean;
24
26
  expanded?: boolean;
25
27
  /** When true, only the header row is shown (another card in the accordion is expanded). */
@@ -21,28 +21,36 @@ export function renderCompactAccentTags(ids, getLabel, options) {
21
21
  return (_jsxs(Flex, { alignItems: "center", className: "twa:gap-1 twa:min-w-0 twa:overflow-hidden", children: [visibleIds.map((id) => (_jsx(AccentTag, { className: "twa:shrink-0", children: getLabel(id) }, id))), remainder > 0 ? (_jsxs("span", { className: "twa:text-xs twa:opacity-70 twa:shrink-0", children: ["+", remainder] })) : null] }));
22
22
  }
23
23
  export const CollapsibleWizardCard = (props) => {
24
- const { title, help, collapsedHelp, summary, compactSummary, compactSummaryInteractive = false, headerVisual, headerActions, children, defaultExpanded = false, compact = false, fillAvailable = false, className, bodyClassName, surface = 'popup', 'data-name': dataName, } = props;
24
+ const { title, help, collapsedHelp, summary, compactSummary, compactSummaryInteractive = false, headerVisual, headerActions, children, collapsible = true, defaultExpanded = false, compact = false, fillAvailable = false, className, bodyClassName, surface = 'popup', 'data-name': dataName, } = props;
25
25
  const [expanded, setExpanded] = useProperty(props, 'expanded', defaultExpanded, {
26
26
  onChange: props.onExpandedChange,
27
27
  });
28
- const showSummary = !expanded && !compact;
28
+ const canToggle = collapsible;
29
+ const isExpanded = canToggle && expanded;
30
+ const isCompact = canToggle && compact;
31
+ const showSummary = !isExpanded && !isCompact;
29
32
  const collapsedHeaderInline = collapsedHelp === false ? undefined : collapsedHelp ?? help;
30
- const headerInline = expanded ? help : compact ? compactSummary : collapsedHeaderInline;
31
- const isInteractiveCompactSummary = compact && compactSummaryInteractive;
32
- const toggleExpanded = () => setExpanded(!expanded);
33
+ const headerInline = isExpanded ? help : isCompact ? compactSummary : collapsedHeaderInline;
34
+ const isInteractiveCompactSummary = isCompact && compactSummaryInteractive;
35
+ const toggleExpanded = () => {
36
+ if (!canToggle) {
37
+ return;
38
+ }
39
+ setExpanded(!expanded);
40
+ };
33
41
  const handleTitleKeyDown = (event) => {
34
42
  if (event.key === 'Enter' || event.key === ' ') {
35
43
  event.preventDefault();
36
44
  toggleExpanded();
37
45
  }
38
46
  };
39
- return (_jsxs(Card, { shadow: false, className: cn('ab-CollapsibleWizardCard twa:border twa:transition-[border-color,background-color]', expanded
47
+ return (_jsxs(Card, { shadow: false, className: cn('ab-CollapsibleWizardCard twa:border twa:transition-[border-color,background-color]', isExpanded
40
48
  ? getCollapsibleWizardCardExpandedClasses(surface)
41
- : getCollapsibleWizardCardCollapsedClasses(surface), compact && 'ab-CollapsibleWizardCard--compact twa:p-0!', fillAvailable
49
+ : getCollapsibleWizardCardCollapsedClasses(surface), isCompact && 'ab-CollapsibleWizardCard--compact twa:p-0!', fillAvailable
42
50
  ? 'twa:flex-1 twa:min-h-0 twa:flex twa:flex-col twa:overflow-hidden'
43
- : 'twa:shrink-0', className), children: [_jsx(Card.Title, { className: "twa:p-0", border: !compact, children: _jsxs(Box, { className: cn('twa:flex twa:flex-row twa:items-center twa:gap-2 twa:w-full twa:px-2 twa:cursor-pointer twa:rounded-standard twa:hover:bg-primary', { 'twa:py-2': true, 'twa:mb-0.5': !compact && !expanded }, targetOwn.focusOutline, 'twa:focus-visible:ring-inset'), "data-name": dataName, onClick: toggleExpanded, onKeyDown: handleTitleKeyDown, tabIndex: 0, "aria-expanded": expanded, role: "button", children: [_jsxs(Box, { className: "twa:flex twa:flex-row twa:items-center twa:gap-2 twa:shrink-0 twa:cursor-pointer twa:select-none", children: [_jsx(IconComponent, { icon: { name: expanded ? 'collapse' : 'expand' } }), _jsx(Box, { className: "twa:font-medium", children: title })] }), headerVisual ? (_jsx(Box, { className: "twa:flex-1 twa:min-w-0 twa:flex twa:justify-end twa:items-center twa:overflow-hidden twa:pointer-events-none", children: headerVisual })) : headerInline ? (_jsx(Box, { className: cn('twa:flex-1 twa:min-w-0 twa:font-normal', isInteractiveCompactSummary
51
+ : 'twa:shrink-0', className), children: [_jsx(Card.Title, { className: "twa:p-0", border: !isCompact, children: _jsxs(Box, { className: cn('twa:flex twa:flex-row twa:items-center twa:gap-2 twa:w-full twa:px-2 twa:rounded-standard', canToggle && 'twa:cursor-pointer twa:hover:bg-primary', { 'twa:py-2': true, 'twa:mb-0.5': !isCompact && !isExpanded }, canToggle && targetOwn.focusOutline, canToggle && 'twa:focus-visible:ring-inset'), "data-name": dataName, onClick: canToggle ? toggleExpanded : undefined, onKeyDown: canToggle ? handleTitleKeyDown : undefined, tabIndex: canToggle ? 0 : undefined, "aria-expanded": canToggle ? isExpanded : undefined, role: canToggle ? 'button' : undefined, children: [_jsxs(Box, { className: cn('twa:flex twa:flex-row twa:items-center twa:gap-2 twa:shrink-0 twa:select-none', canToggle && 'twa:cursor-pointer'), children: [canToggle ? (_jsx(IconComponent, { icon: { name: isExpanded ? 'collapse' : 'expand' } })) : null, _jsx(Box, { className: "twa:font-medium", children: title })] }), headerVisual ? (_jsx(Box, { className: "twa:flex-1 twa:min-w-0 twa:flex twa:justify-end twa:items-center twa:overflow-hidden twa:pointer-events-none", children: headerVisual })) : headerInline ? (_jsx(Box, { className: cn('twa:flex-1 twa:min-w-0 twa:font-normal', isInteractiveCompactSummary
44
52
  ? 'twa:flex twa:justify-end twa:items-center twa:overflow-visible'
45
- : cn('twa:text-xs twa:opacity-70 twa:pointer-events-none twa:cursor-default', compact ? 'twa:overflow-hidden' : 'twa:truncate')), children: headerInline })) : (_jsx(Box, { className: "twa:flex-1 twa:min-w-0" })), headerActions ? (_jsx(Box, { className: "twa:shrink-0 twa:gap-2 twa:flex", onClick: (event) => event.stopPropagation(), children: headerActions })) : null] }) }), expanded ? (_jsx(Card.Body, { className: cn('twa:p-1', bodyClassName, fillAvailable && 'twa:max-h-none! twa:flex-1 twa:min-h-0'), children: children })) : showSummary ? (_jsx(Card.Body, { className: "twa:p-1", gap: 1, children: summary })) : null] }));
53
+ : cn('twa:text-xs twa:opacity-70 twa:pointer-events-none twa:cursor-default', isCompact ? 'twa:overflow-hidden' : 'twa:truncate')), children: headerInline })) : (_jsx(Box, { className: "twa:flex-1 twa:min-w-0" })), headerActions ? (_jsx(Box, { className: "twa:shrink-0 twa:gap-2 twa:flex", onClick: (event) => event.stopPropagation(), children: headerActions })) : null] }) }), isExpanded ? (_jsx(Card.Body, { className: cn('twa:p-1', bodyClassName, fillAvailable && 'twa:max-h-none! twa:flex-1 twa:min-h-0'), children: children })) : showSummary ? (_jsx(Card.Body, { className: "twa:p-1", gap: 1, children: summary })) : null] }));
46
54
  };
47
55
  export function useWizardCardAccordion(initialExpandedId, options) {
48
56
  const fillExpandedCard = options?.fillExpandedCard ?? false;
@@ -1,7 +1,6 @@
1
1
  import { AgGridConfig } from '../AdaptableInterfaces/IAdaptable';
2
2
  import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
3
3
  import { AdaptableApi } from '../Api/AdaptableApi';
4
- import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
5
4
  export declare class Adaptable {
6
5
  /**
7
6
  * Initializer for Adaptable
@@ -12,14 +11,3 @@ export declare class Adaptable {
12
11
  */
13
12
  static init(adaptableOptions: AdaptableOptions, agGridConfig: AgGridConfig): Promise<AdaptableApi>;
14
13
  }
15
- export declare class AdaptableNoCodeWizard implements IAdaptableNoCodeWizard {
16
- private init;
17
- private adaptableOptions;
18
- private extraOptions;
19
- private agGridModules;
20
- /**
21
- * @param adaptableOptions
22
- */
23
- constructor(adaptableOptions: AdaptableOptions, extraOptions?: AdaptableNoCodeWizardOptions, agGridOptions?: AgGridConfig);
24
- render(container?: HTMLElement | null): void;
25
- }
@@ -1,11 +1,6 @@
1
- import * as React from 'react';
2
1
  import { AgGridModulesDocsLink } from '../Utilities/Constants/DocumentationLinkConstants';
3
2
  import { AdaptableLogger } from './AdaptableLogger';
4
3
  import { AdaptableAgGrid } from './AdaptableAgGrid';
5
- import { getDefaultAdaptableOptions } from '../AdaptableOptions/DefaultAdaptableOptions';
6
- import { renderReactRoot as defaultRenderReactRoot } from '../renderReactRoot';
7
- import AdaptableWizardView from '../View/AdaptableWizardView';
8
- import { resolveContainerElement } from '../Utilities/resolveContainerElement';
9
4
  export class Adaptable {
10
5
  static init(adaptableOptions, agGridConfig) {
11
6
  if (!agGridConfig?.modules?.length) {
@@ -14,50 +9,3 @@ export class Adaptable {
14
9
  return AdaptableAgGrid._initInternal({ ...agGridConfig, adaptableOptions, variant: 'vanilla' });
15
10
  }
16
11
  }
17
- export class AdaptableNoCodeWizard {
18
- init;
19
- adaptableOptions;
20
- extraOptions;
21
- agGridModules;
22
- constructor(adaptableOptions, extraOptions = {}, agGridOptions) {
23
- const defaultInit = async ({ gridOptions, adaptableOptions, agGridModules, }) => {
24
- return await Adaptable.init(adaptableOptions, { gridOptions, modules: agGridModules });
25
- };
26
- this.adaptableOptions = adaptableOptions;
27
- this.init = extraOptions.onInit || defaultInit;
28
- this.extraOptions = extraOptions;
29
- this.agGridModules = [];
30
- this.render();
31
- }
32
- render(container) {
33
- if (!container) {
34
- const initContext = {
35
- adaptableId: this.adaptableOptions?.adaptableId ?? '',
36
- adaptableStateKey: this.adaptableOptions?.adaptableStateKey ?? '',
37
- adaptableContext: this.adaptableOptions?.adaptableContext,
38
- };
39
- container = resolveContainerElement(this.adaptableOptions.containerOptions?.adaptableContainer, initContext);
40
- }
41
- if (!container) {
42
- const defaultId = getDefaultAdaptableOptions().containerOptions.adaptableContainer || 'adaptable';
43
- container = document.getElementById(defaultId);
44
- }
45
- if (!container) {
46
- throw new Error('Cannot find container in which to render Adaptable No Code Wizard');
47
- }
48
- container.classList.add('adaptable--in-wizard');
49
- const unmount = defaultRenderReactRoot(React.createElement(AdaptableWizardView, {
50
- adaptableOptions: this.adaptableOptions,
51
- ...this.extraOptions,
52
- onInit: (adaptableOptions, gridOptions) => {
53
- container.classList.remove('adaptable--in-wizard');
54
- unmount();
55
- this.init({
56
- adaptableOptions,
57
- gridOptions: gridOptions,
58
- agGridModules: [...this.agGridModules],
59
- });
60
- },
61
- }), container);
62
- }
63
- }
@@ -7,7 +7,7 @@ import { EmitterCallback } from '../Utilities/Emitter';
7
7
  import { AdaptablePlugin } from '../AdaptableOptions/AdaptablePlugin';
8
8
  import { AgGridAdapter, RowNodeEvent } from './AgGridAdapter';
9
9
  import { IDataService } from '../Utilities/Services/Interface/IDataService';
10
- import { AdaptableState } from '../AdaptableState/AdaptableState';
10
+ import { AdaptablePersistentState } from '../AdaptableState/AdaptableState';
11
11
  import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
12
12
  import { ICalculatedColumnExpressionService } from '../Utilities/Services/Interface/ICalculatedColumnExpressionService';
13
13
  import { IModuleService } from '../Utilities/Services/Interface/IModuleService';
@@ -157,9 +157,9 @@ export declare class AdaptableAgGrid implements IAdaptable {
157
157
  static _initInternal(config: AdaptableInitInternalConfig): Promise<AdaptableApi>;
158
158
  private _initAdaptableAgGrid;
159
159
  midwayDestroy(): void;
160
- migrateLoadedAdaptableState(state: AdaptableState): AdaptableState;
161
- buildPostLoadHook(gridOptions: NormalizeAdaptableStateOptions): (state: AdaptableState) => AdaptableState;
162
- normalizeAdaptableState(state: AdaptableState, agGridOptions: NormalizeAdaptableStateOptions): AdaptableState;
160
+ migrateLoadedAdaptableState<T extends Partial<AdaptablePersistentState>>(state: T): T;
161
+ buildPostLoadHook(gridOptions: NormalizeAdaptableStateOptions): (state: Partial<AdaptablePersistentState>) => Partial<AdaptablePersistentState>;
162
+ normalizeAdaptableState(state: Partial<AdaptablePersistentState>, agGridOptions: NormalizeAdaptableStateOptions): Partial<AdaptablePersistentState>;
163
163
  private normaliseLayoutState;
164
164
  private normaliseToolPanelState;
165
165
  private getCurrentLayoutModel;
@@ -15,6 +15,7 @@ import { AG_GRID_GRAND_TOTAL_ROW_ID, AG_GRID_GROUPED_COLUMN, AG_GRID_SELECTION_C
15
15
  import { generateSelectionColumn } from '../Api/Implementation/ColumnApiImpl';
16
16
  import { DataService } from '../Utilities/Services/DataService';
17
17
  import { AdaptableStore } from '../Redux/Store/AdaptableStore';
18
+ import { validateStateOptions } from '../Redux/Store/StateOptionsGuards';
18
19
  import { AdaptableApiImpl } from '../Api/Implementation/AdaptableApiImpl';
19
20
  import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
20
21
  import { CommentsService } from '../Utilities/Services/CommentsService';
@@ -739,6 +740,7 @@ export class AdaptableAgGrid {
739
740
  }
740
741
  }
741
742
  normalizeAdaptableOptions(adaptableOptions) {
743
+ validateStateOptions(adaptableOptions.stateOptions, this.logger);
742
744
  if (this.hasAutogeneratedPrimaryKey) {
743
745
  this.logger.warn(`Autogenerated primary key is enabled (adaptableOptions.autogeneratedPrimaryKey = true). This should be a last resort as it limits some Adaptable features. See: ${PrimaryKeyDocsLink}`);
744
746
  this.adaptableOptions.primaryKey = AUTOGENERATED_PK_COLUMN;
@@ -29,7 +29,13 @@ export type ReactFrameworkComponent = ({ adaptableApi, }: {
29
29
  }) => ReactElement;
30
30
  /** AdapTable extras passed on AG Grid `menuItemParams` for custom menu items. */
31
31
  export interface AdaptableMenuItemParams<TMenuContext = unknown> {
32
+ /**
33
+ * AdapTable API for the grid that opened the menu.
34
+ */
32
35
  adaptableApi: AdaptableApi;
36
+ /**
37
+ * Column menu or context menu context: the column, the row, and the cell the menu was opened on.
38
+ */
33
39
  menuContext: TMenuContext;
34
40
  }
35
41
  /**
@@ -37,7 +43,13 @@ export interface AdaptableMenuItemParams<TMenuContext = unknown> {
37
43
  * `menuItemParams` (see `AgGridMenuAdapter.mapCustomMenuItemToAgGridMenuDefinition`).
38
44
  */
39
45
  export interface AdaptableReactMenuItemProps<TMenuContext = unknown> {
46
+ /**
47
+ * Menu item name AG Grid passes to the component.
48
+ */
40
49
  name: string;
50
+ /**
51
+ * AdapTable extras (`adaptableApi`, `menuContext`) plus anything supplied on the menu item.
52
+ */
41
53
  menuItemParams: AdaptableMenuItemParams<TMenuContext> & Record<string, unknown>;
42
54
  }
43
55
  /**