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

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 (396) hide show
  1. package/icons/sort-asc.svg +1 -1
  2. package/index.css +828 -263
  3. package/package.json +1 -1
  4. package/src/AdaptableOptions/DataSetOptions.d.ts +26 -2
  5. package/src/AdaptableOptions/DefaultAdaptableOptions.js +0 -1
  6. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +42 -10
  7. package/src/AdaptableState/Common/AdaptableFormat.d.ts +7 -0
  8. package/src/AdaptableState/Common/AdaptableMessageType.d.ts +1 -1
  9. package/src/AdaptableState/Common/Enums.d.ts +1 -1
  10. package/src/AdaptableState/Common/Enums.js +1 -1
  11. package/src/AdaptableState/StyledColumnState.d.ts +8 -850
  12. package/src/AdaptableState/StyledColumnState.js +0 -10
  13. package/src/AdaptableState/StyledColumns/BadgeStyle.d.ts +143 -0
  14. package/src/AdaptableState/StyledColumns/BadgeStyle.js +12 -0
  15. package/src/AdaptableState/StyledColumns/BulletChartStyle.d.ts +147 -0
  16. package/src/AdaptableState/StyledColumns/Common/BarChartCellText.d.ts +60 -0
  17. package/src/AdaptableState/StyledColumns/Common/BarChartCellText.js +7 -0
  18. package/src/AdaptableState/StyledColumns/Common/BarChartMarker.d.ts +24 -0
  19. package/src/AdaptableState/StyledColumns/Common/BarChartMarker.js +6 -0
  20. package/src/AdaptableState/StyledColumns/Common/CellTextOptions.d.ts +13 -0
  21. package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +7 -0
  22. package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.d.ts +79 -0
  23. package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +10 -0
  24. package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +48 -0
  25. package/src/AdaptableState/StyledColumns/GradientStyle.js +2 -0
  26. package/src/AdaptableState/StyledColumns/IconStyle.d.ts +158 -0
  27. package/src/AdaptableState/StyledColumns/IconStyle.js +2 -0
  28. package/src/AdaptableState/StyledColumns/PercentBarStyle.d.ts +32 -0
  29. package/src/AdaptableState/StyledColumns/PercentBarStyle.js +2 -0
  30. package/src/AdaptableState/StyledColumns/RangeBarStyle.d.ts +155 -0
  31. package/src/AdaptableState/StyledColumns/RangeBarStyle.js +2 -0
  32. package/src/AdaptableState/StyledColumns/RatingStyle.d.ts +111 -0
  33. package/src/AdaptableState/StyledColumns/RatingStyle.js +2 -0
  34. package/src/AdaptableState/StyledColumns/SparklineStyle.d.ts +21 -0
  35. package/src/AdaptableState/StyledColumns/SparklineStyle.js +2 -0
  36. package/src/Api/ColumnScopeApi.d.ts +1 -1
  37. package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +1 -1
  38. package/src/Api/Internal/AlertInternalApi.js +1 -1
  39. package/src/Api/Internal/DataSetInternalApi.d.ts +3 -0
  40. package/src/Api/Internal/DataSetInternalApi.js +73 -13
  41. package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -1
  42. package/src/Redux/Store/AdaptableStore.js +6 -4
  43. package/src/Strategy/CalculatedColumnModule.js +1 -0
  44. package/src/Strategy/ColumnFilterModule.js +1 -0
  45. package/src/Strategy/FlashingCellModule.js +6 -2
  46. package/src/Strategy/FormatColumnModule.js +1 -1
  47. package/src/Strategy/FreeTextColumnModule.js +38 -28
  48. package/src/Strategy/Interface/IModule.d.ts +3 -1
  49. package/src/Strategy/LayoutModule.js +15 -66
  50. package/src/Strategy/StyledColumnModule.js +11 -28
  51. package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.d.ts +1 -0
  52. package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -0
  53. package/src/Strategy/Utilities/Export/getExportColumnsViewItems.d.ts +2 -0
  54. package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +17 -1
  55. package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +1 -0
  56. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +5 -1
  57. package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.d.ts +11 -0
  58. package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.js +111 -0
  59. package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.d.ts +48 -0
  60. package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +177 -0
  61. package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.d.ts +1 -0
  62. package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -0
  63. package/src/Strategy/Utilities/Layout/rowGroupSummaryHelpers.d.ts +26 -0
  64. package/src/Strategy/Utilities/Layout/rowGroupSummaryHelpers.js +97 -0
  65. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +3 -5
  66. package/src/Utilities/Defaults/DefaultSettingsPanel.js +48 -42
  67. package/src/Utilities/Helpers/FormatHelper.js +3 -0
  68. package/src/Utilities/Helpers/IconStylePresets.d.ts +1 -1
  69. package/src/Utilities/Helpers/ScheduleHelper.js +2 -0
  70. package/src/Utilities/Helpers/StyleHelper.d.ts +18 -0
  71. package/src/Utilities/Helpers/StyleHelper.js +30 -1
  72. package/src/Utilities/Helpers/StyledColumnGradientHelper.d.ts +3 -1
  73. package/src/Utilities/Helpers/StyledColumnGradientHelper.js +6 -4
  74. package/src/Utilities/Helpers/barChartCellText.d.ts +63 -0
  75. package/src/Utilities/Helpers/barChartCellText.js +333 -0
  76. package/src/Utilities/Helpers/percentBarPreviewHelper.d.ts +2 -1
  77. package/src/Utilities/Helpers/percentBarPreviewHelper.js +3 -8
  78. package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +3 -0
  79. package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +19 -0
  80. package/src/Utilities/getScopeViewItems.js +2 -0
  81. package/src/Utilities/wizardSelection.d.ts +10 -0
  82. package/src/Utilities/wizardSelection.js +22 -0
  83. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +2 -2
  84. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +2 -2
  85. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
  86. package/src/View/Alert/AlertViewPanel.js +2 -2
  87. package/src/View/Alert/Utilities/getAlertButtonStyle.js +7 -4
  88. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +0 -1
  89. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -6
  90. package/src/View/Alert/Wizard/AlertButtonsEditor.js +159 -125
  91. package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
  92. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +1 -2
  93. package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
  94. package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +4 -5
  95. package/src/View/Alert/Wizard/AlertScheduledWizardSection.d.ts +1 -1
  96. package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -2
  97. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +1 -1
  98. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +30 -7
  99. package/src/View/Alert/Wizard/AlertWizard.js +12 -4
  100. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +2 -1
  101. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -14
  102. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  103. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +4 -6
  104. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
  105. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -2
  106. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  107. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +29 -3
  108. package/src/View/CellSummary/CellSummaryViewPanel.js +4 -4
  109. package/src/View/Charting/ShowChartButton.js +8 -8
  110. package/src/View/ColumnInfo/ColumnInfo.js +21 -1
  111. package/src/View/Components/AdaptableObjectCollection/index.js +2 -3
  112. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +3 -2
  113. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +7 -6
  114. package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +2 -0
  115. package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +6 -0
  116. package/src/View/Components/AdaptableObjectRow/index.js +2 -2
  117. package/src/View/Components/Buttons/ButtonBase/index.js +2 -3
  118. package/src/View/Components/Buttons/ButtonNew.d.ts +2 -0
  119. package/src/View/Components/Buttons/ButtonNew.js +1 -1
  120. package/src/View/Components/Buttons/EntityListActionButtons.js +3 -3
  121. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -0
  122. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +9 -9
  123. package/src/View/Components/ColumnFilter/ColumnFilter.js +15 -3
  124. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +2 -2
  125. package/src/View/Components/ColumnSelector/index.d.ts +12 -0
  126. package/src/View/Components/ColumnSelector/index.js +30 -6
  127. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +2 -2
  128. package/src/View/Components/ModuleValueSelector/index.js +2 -1
  129. package/src/View/Components/NewScopeComponent.js +3 -8
  130. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +5 -4
  131. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +4 -4
  132. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +3 -3
  133. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +3 -2
  134. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +38 -28
  135. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +3 -4
  136. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  137. package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.d.ts +11 -0
  138. package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.js +5 -0
  139. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +3 -1
  140. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +27 -28
  141. package/src/View/Components/PredicateEditor/PredicateEditor.js +1 -1
  142. package/src/View/Components/RangesComponent.d.ts +4 -5
  143. package/src/View/Components/RangesComponent.js +95 -66
  144. package/src/View/Components/ReorderDraggable/index.js +2 -3
  145. package/src/View/Components/Selectors/BulkUpdateValueSelector.d.ts +0 -2
  146. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +3 -3
  147. package/src/View/Components/StyleComponent.js +30 -63
  148. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +9 -6
  149. package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +3 -13
  150. package/src/View/Components/ToolPanel/ToolPanelPopup.js +5 -80
  151. package/src/View/Components/ToolPanel/ToolPanelPopupSections.d.ts +17 -0
  152. package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +81 -0
  153. package/src/View/Components/ValueSelector/index.d.ts +29 -0
  154. package/src/View/Components/ValueSelector/index.js +112 -29
  155. package/src/View/Components/wizardColumnListStyles.d.ts +10 -0
  156. package/src/View/Components/wizardColumnListStyles.js +13 -0
  157. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
  158. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -6
  159. package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -2
  160. package/src/View/Dashboard/DashboardPopup.d.ts +1 -11
  161. package/src/View/Dashboard/DashboardPopup.js +3 -67
  162. package/src/View/Dashboard/DashboardPopupSections.d.ts +20 -0
  163. package/src/View/Dashboard/DashboardPopupSections.js +73 -0
  164. package/src/View/Dashboard/PinnedToolbarsSelector.js +2 -2
  165. package/src/View/DataChangeHistory/DataChangeHistoryPopup.d.ts +1 -6
  166. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +8 -20
  167. package/src/View/DataChangeHistory/DataChangeHistoryTable.d.ts +8 -0
  168. package/src/View/DataChangeHistory/DataChangeHistoryTable.js +99 -0
  169. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +5 -3
  170. package/src/View/DataChangeHistory/buildActionColumnButton.js +33 -41
  171. package/src/View/DataChangeHistory/dataChangeHistoryHelpers.d.ts +15 -0
  172. package/src/View/DataChangeHistory/dataChangeHistoryHelpers.js +46 -0
  173. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -1
  174. package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +32 -19
  175. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +1 -1
  176. package/src/View/DataSet/DataSetViewPanel.d.ts +2 -2
  177. package/src/View/Export/ExportDestinationPicker.js +4 -5
  178. package/src/View/Export/ExportSchedulesTab.js +3 -4
  179. package/src/View/Export/ExportViewPanel.js +2 -2
  180. package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +2 -1
  181. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +2 -7
  182. package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +2 -1
  183. package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -5
  184. package/src/View/Filter/FilterViewPanel.js +1 -1
  185. package/src/View/FlashingCell/FlashingCellStyle.d.ts +4 -2
  186. package/src/View/FlashingCell/FlashingCellStyle.js +5 -3
  187. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts +2 -1
  188. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +5 -9
  189. package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.d.ts +9 -0
  190. package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.js +10 -0
  191. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
  192. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +5 -1
  193. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +0 -5
  194. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +3 -8
  195. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -2
  196. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
  197. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +101 -44
  198. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +0 -1
  199. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -6
  200. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +55 -15
  201. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  202. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +2 -3
  203. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -9
  204. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +4 -9
  205. package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.js +3 -2
  206. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -2
  207. package/src/View/GridFilter/GridFilterPopupUI/index.js +3 -2
  208. package/src/View/GridFilter/GridFilterViewPanel.js +5 -5
  209. package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +2 -3
  210. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -2
  211. package/src/View/Layout/LayoutViewPanel.js +2 -2
  212. package/src/View/Layout/Wizard/LayoutWizard.js +24 -28
  213. package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +13 -1
  214. package/src/View/Layout/Wizard/sections/AggregationsSection.js +77 -33
  215. package/src/View/Layout/Wizard/sections/ColumnsSection.d.ts +4 -1
  216. package/src/View/Layout/Wizard/sections/ColumnsSection.js +154 -275
  217. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +4 -1
  218. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +146 -143
  219. package/src/View/Layout/Wizard/sections/PivotColumnsSection.d.ts +5 -2
  220. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +22 -10
  221. package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.d.ts +4 -1
  222. package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +21 -10
  223. package/src/View/Layout/Wizard/sections/RowGroupingSection.d.ts +5 -2
  224. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +23 -12
  225. package/src/View/Layout/Wizard/sections/RowSelectionSection.js +7 -3
  226. package/src/View/Layout/Wizard/sections/RowSummarySection.js +130 -104
  227. package/src/View/Layout/Wizard/sections/SortSection.d.ts +12 -2
  228. package/src/View/Layout/Wizard/sections/SortSection.js +43 -18
  229. package/src/View/Layout/Wizard/sections/columnLayoutCards.d.ts +20 -0
  230. package/src/View/Layout/Wizard/sections/columnLayoutCards.js +167 -0
  231. package/src/View/Layout/Wizard/sections/columnLayoutHelpers.d.ts +30 -0
  232. package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +216 -0
  233. package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.d.ts +8 -0
  234. package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.js +72 -0
  235. package/src/View/Layout/Wizard/sections/layoutWizardColumns.d.ts +11 -0
  236. package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +57 -0
  237. package/src/View/License/LicenseWatermark.js +1 -1
  238. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.d.ts +1 -1
  239. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -2
  240. package/src/View/Note/NoteEditor.js +2 -2
  241. package/src/View/QuickSearch/QuickSearchPopup.js +2 -3
  242. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
  243. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
  244. package/src/View/SmartEdit/SmartEditPopup.js +2 -2
  245. package/src/View/SmartEdit/SmartEditViewPanel.js +2 -2
  246. package/src/View/StateManagement/StateManagementPopup.js +1 -1
  247. package/src/View/StateManagement/components/ExportDropdown.d.ts +2 -2
  248. package/src/View/StateManagement/components/ExportDropdown.js +12 -13
  249. package/src/View/StatusBar/StatusBarPanel.js +2 -2
  250. package/src/View/StatusBar/StatusBarPopup.js +33 -5
  251. package/src/View/StatusBar/statusBarPanelHelpers.d.ts +2 -0
  252. package/src/View/StatusBar/statusBarPanelHelpers.js +11 -0
  253. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +3 -1
  254. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +13 -10
  255. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +2 -2
  256. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +143 -119
  257. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +1 -3
  258. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +7 -13
  259. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -1
  260. package/src/View/StyledColumn/Wizard/StyledColumnTypeThumbnail.d.ts +5 -0
  261. package/src/View/StyledColumn/Wizard/StyledColumnTypeThumbnail.js +54 -0
  262. package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +2 -0
  263. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +28 -6
  264. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +76 -70
  265. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -1
  266. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +83 -38
  267. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +172 -75
  268. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +2 -1
  269. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.d.ts +1 -1
  270. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +31 -45
  271. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.d.ts +9 -0
  272. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.js +40 -0
  273. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextPreview.d.ts +23 -0
  274. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextPreview.js +62 -0
  275. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.d.ts +1 -1
  276. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +2 -1
  277. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.d.ts +1 -1
  278. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +3 -2
  279. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +2 -1
  280. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +13 -17
  281. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.d.ts +2 -1
  282. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +5 -5
  283. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +2 -2
  284. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +13 -6
  285. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +11 -17
  286. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +2 -1
  287. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +26 -57
  288. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +93 -6
  289. package/src/View/UIHelper.d.ts +0 -2
  290. package/src/View/UIHelper.js +8 -24
  291. package/src/View/Wizard/CollapsibleWizardCard.d.ts +68 -0
  292. package/src/View/Wizard/CollapsibleWizardCard.js +90 -0
  293. package/src/View/Wizard/OnePageWizards.js +6 -6
  294. package/src/View/Wizard/SummaryColorTag.d.ts +24 -0
  295. package/src/View/Wizard/SummaryColorTag.js +79 -0
  296. package/src/View/Wizard/WizardTypeSelection.d.ts +34 -0
  297. package/src/View/Wizard/WizardTypeSelection.js +40 -0
  298. package/src/View/Wizard/rowGroupSummaryTags.d.ts +18 -0
  299. package/src/View/Wizard/rowGroupSummaryTags.js +21 -0
  300. package/src/View/Wizard/scopeSummaryTags.d.ts +6 -0
  301. package/src/View/Wizard/scopeSummaryTags.js +38 -0
  302. package/src/agGrid/AgGridAdapter.js +0 -5
  303. package/src/agGrid/AgGridColumnAdapter.js +3 -2
  304. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +4 -7
  305. package/src/agGrid/cellRenderers/BadgeRenderer.js +7 -5
  306. package/src/agGrid/cellRenderers/BulletChartRenderer.js +43 -42
  307. package/src/agGrid/cellRenderers/IconRenderer.d.ts +2 -1
  308. package/src/agGrid/cellRenderers/IconRenderer.js +13 -11
  309. package/src/agGrid/cellRenderers/PercentBarRenderer.js +24 -96
  310. package/src/agGrid/cellRenderers/RangeBarRenderer.js +49 -46
  311. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
  312. package/src/components/Card/index.js +5 -7
  313. package/src/components/CheckBox/index.js +2 -3
  314. package/src/components/CodeBlock/index.js +2 -3
  315. package/src/components/ColorPicker/ColorPicker.d.ts +1 -0
  316. package/src/components/ColorPicker/ColorPicker.js +8 -6
  317. package/src/components/ColorPicker/OptionalColorPicker.d.ts +12 -0
  318. package/src/components/ColorPicker/OptionalColorPicker.js +31 -0
  319. package/src/components/ColorPicker/index.d.ts +1 -0
  320. package/src/components/ColorPicker/index.js +1 -0
  321. package/src/components/Combobox/comboboxUtils.d.ts +1 -0
  322. package/src/components/Combobox/index.js +19 -18
  323. package/src/components/Dashboard/DashboardManager.js +2 -4
  324. package/src/components/Dialog/index.js +4 -4
  325. package/src/components/DragAndDropContext/DragAndDropContext.d.ts +5 -0
  326. package/src/components/DragAndDropContext/DragAndDropContext.js +4 -1
  327. package/src/components/DragAndDropContext/ModuleManager.d.ts +15 -3
  328. package/src/components/DragAndDropContext/ModuleManager.js +43 -4
  329. package/src/components/DragAndDropContext/TabList.d.ts +11 -4
  330. package/src/components/DragAndDropContext/TabList.js +52 -38
  331. package/src/components/DragAndDropContext/UnusedPanel.d.ts +4 -3
  332. package/src/components/DragAndDropContext/UnusedPanel.js +13 -9
  333. package/src/components/DragAndDropContext/dragScope.d.ts +6 -0
  334. package/src/components/DragAndDropContext/dragScope.js +34 -0
  335. package/src/components/DragAndDropContext/types.d.ts +7 -0
  336. package/src/components/DropdownButton/index.d.ts +33 -25
  337. package/src/components/DropdownButton/index.js +24 -158
  338. package/src/components/EmptyContent/index.js +2 -3
  339. package/src/components/ErrorBox/index.js +2 -3
  340. package/src/components/ExpressionEditor/BaseEditorInput.js +3 -3
  341. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +3 -3
  342. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +9 -9
  343. package/src/components/FieldWrap/index.js +2 -3
  344. package/src/components/Flex.js +2 -2
  345. package/src/components/FormLayout/index.d.ts +1 -1
  346. package/src/components/HelpBlock/index.js +3 -4
  347. package/src/components/IconSelector/IconSelector.d.ts +8 -0
  348. package/src/components/IconSelector/IconSelector.js +13 -8
  349. package/src/components/IconSelector/index.d.ts +1 -0
  350. package/src/components/IconSelector/index.js +3 -0
  351. package/src/components/Modal/index.js +2 -2
  352. package/src/components/NewSelect/index.js +11 -1
  353. package/src/components/Panel/index.js +7 -7
  354. package/src/components/Radio/index.d.ts +1 -1
  355. package/src/components/Radio/index.js +8 -6
  356. package/src/components/SimpleButton/index.js +7 -7
  357. package/src/components/StylePreview.js +2 -3
  358. package/src/components/Tabs/index.js +4 -4
  359. package/src/components/Tag/Tag.d.ts +16 -0
  360. package/src/components/Tag/Tag.js +16 -5
  361. package/src/components/Tag/columnScopeTagHelpers.d.ts +8 -0
  362. package/src/components/Tag/columnScopeTagHelpers.js +12 -0
  363. package/src/components/Tag/index.d.ts +1 -1
  364. package/src/components/Tag/index.js +3 -1
  365. package/src/components/Textarea/index.js +2 -3
  366. package/src/components/Toggle/Toggle.d.ts +2 -0
  367. package/src/components/Toggle/Toggle.js +14 -7
  368. package/src/components/Toggle/ToggleGroup.js +2 -2
  369. package/src/components/ToggleButton/index.js +4 -5
  370. package/src/components/Tree/TreeDropdown/index.js +3 -5
  371. package/src/components/WarningBox/index.js +2 -3
  372. package/src/components/icons/sort-asc.js +1 -1
  373. package/src/components/ui/button.d.ts +2 -2
  374. package/src/components/ui/combobox.d.ts +3 -1
  375. package/src/components/ui/combobox.js +2 -2
  376. package/src/components/ui/input-group.d.ts +1 -1
  377. package/src/components/ui/select.js +3 -2
  378. package/src/components/ui/textarea.js +1 -1
  379. package/src/env.js +2 -2
  380. package/src/layout-manager/src/index.js +7 -3
  381. package/src/metamodel/adaptable.metamodel.d.ts +80 -14
  382. package/src/metamodel/adaptable.metamodel.js +1 -1
  383. package/src/migration/VersionUpgrade23.d.ts +27 -31
  384. package/src/migration/VersionUpgrade23.js +110 -29
  385. package/src/types.d.ts +13 -2
  386. package/tsconfig.cjs.tsbuildinfo +1 -1
  387. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +0 -17
  388. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +0 -295
  389. package/src/components/DropdownButton/DropdownButtonItem.d.ts +0 -12
  390. package/src/components/DropdownButton/renderItem.d.ts +0 -14
  391. package/src/components/DropdownButton/renderItem.js +0 -14
  392. package/src/components/DropdownButton/useExpanded.d.ts +0 -24
  393. package/src/components/DropdownButton/useExpanded.js +0 -59
  394. package/src/components/NewDropdownButton/index.d.ts +0 -27
  395. package/src/components/NewDropdownButton/index.js +0 -28
  396. /package/src/{components/DropdownButton/DropdownButtonItem.js → AdaptableState/StyledColumns/BulletChartStyle.js} +0 -0
@@ -1,10 +1,14 @@
1
1
  import { BaseState } from './BaseState';
2
- import { AdaptablePredicate, AdaptableBooleanQuery, AdaptableIcon } from '../types';
3
- import { AdaptableStyle, CellBoxStyle, CellFontStyle } from './Common/AdaptableStyle';
4
- import { TypeHint } from './Common/Types';
5
2
  import { RowScope } from './Common/RowScope';
6
- import { AgSparklineOptions } from 'ag-charts-types';
7
3
  import { SuspendableObject } from './Common/SuspendableObject';
4
+ import { BadgeStyle } from './StyledColumns/BadgeStyle';
5
+ import { BulletChartStyle } from './StyledColumns/BulletChartStyle';
6
+ import { GradientStyle } from './StyledColumns/GradientStyle';
7
+ import { IconStyle } from './StyledColumns/IconStyle';
8
+ import { PercentBarStyle } from './StyledColumns/PercentBarStyle';
9
+ import { RangeBarStyle } from './StyledColumns/RangeBarStyle';
10
+ import { RatingStyle } from './StyledColumns/RatingStyle';
11
+ import { SparklineStyle } from './StyledColumns/SparklineStyle';
8
12
  /**
9
13
  * Adaptable State Section for Styled Column Module
10
14
  */
@@ -63,849 +67,3 @@ export interface StyledColumn extends SuspendableObject {
63
67
  */
64
68
  IconStyle?: IconStyle;
65
69
  }
66
- /**
67
- * Style used to display Percent Bars in Special Column Style
68
- */
69
- export interface PercentBarStyle extends NumericStyledColumn {
70
- /**
71
- * Whether Cell shows Cell Value, Percent Value, both or none
72
- */
73
- CellText?: CellTextOptions;
74
- /**
75
- * Position of Cell text relative to Percent Bar, "Above", "Below" or "Merged"
76
- * @defaultValue Below
77
- */
78
- CellTextPosition?: 'Above' | 'Below' | 'Merged';
79
- /**
80
- * Horizontal alignment of the Percent Bar cell text (`CellText`).
81
- */
82
- CellTextAlignment?: 'Auto' | 'Left' | 'Right' | 'Center';
83
- /**
84
- * Whether Tooltip shows Cell Value, Percent Value, both or none
85
- */
86
- ToolTipText?: CellTextOptions;
87
- /**
88
- * Background colour for 'Percent Bar'; leave unset if none required
89
- * @defaultValue undefined
90
- */
91
- BackColor?: string;
92
- /**
93
- * Origin of the bar - i.e. the value the bar grows from Auto, Zero, Min or fixed number
94
- *
95
- * @defaultValue 'Auto'
96
- */
97
- Origin?: 'Auto' | 'Zero' | 'Min' | number;
98
- /**
99
- * Optional cell-text styling applied to `CellText` overlay
100
- */
101
- Font?: CellFontStyle;
102
- }
103
- /**
104
- * Base type for Numeric Styled Columns (i.e. Gradient and Percent Bar)
105
- */
106
- export interface NumericStyledColumn {
107
- /**
108
- * Ranges (e.g. to create traffic light effect)
109
- */
110
- CellRanges?: CellColorRange[];
111
- /**
112
- * Compares Cell values to another Column
113
- */
114
- ColumnComparison?: ColumnComparison;
115
- /**
116
- * Used with Ranges; can be Number (any number or Col-Min/Col-Max) or 'Percentage' (values 0-100)
117
- * @defaultValue Number
118
- */
119
- RangeValueType?: RangeValueType;
120
- }
121
- /**
122
- * Colours for a zero-centred diverging gradient: negative and positive bands that meet at `0`
123
- */
124
- export interface GradientZeroCentredColors {
125
- /**
126
- * Colour applied to negative cell values (`Col-Min`…`0`)
127
- */
128
- NegativeColor: string;
129
- /**
130
- * Colour applied to positive cell values (`0`…`Col-Max`)
131
- */
132
- PositiveColor: string;
133
- }
134
- /**
135
- * Used to display Gradient Styles
136
- */
137
- export interface GradientStyle extends NumericStyledColumn {
138
- /**
139
- * Zero-centred diverging gradient (`Col-Min`…`0` and `0`…`Col-Max`
140
- */
141
- ZeroCentred?: GradientZeroCentredColors;
142
- /**
143
- * Alpha (0–1) at **low** end of the matched range’s scale
144
- *
145
- * @defaultValue 0.15 (faint at range min)
146
- */
147
- MinAlpha?: number;
148
- /**
149
- * Alpha (0–1) at **high** end of the matched range’s scale
150
- * @defaultValue 1 (fully opaque at range max)
151
- */
152
- MaxAlpha?: number;
153
- /**
154
- * When true, sets cell `color` from tinted background so text stays readable
155
- */
156
- AutoContrastText?: boolean;
157
- /**
158
- * Optional AG Grid tooltip content: cell value and/or position along the range scale (%)
159
- */
160
- ToolTipText?: CellTextOptions;
161
- /**
162
- * Optional cell-text styling applied by Gradient renderer **on top of** gradient background tint
163
- */
164
- Font?: CellFontStyle;
165
- }
166
- /**
167
- * Symbolic range endpoints that resolve to a value computed across column's visible rows (rather than hard-coded number): Col-Min, Col-Max, Col-Avg, Col-Median
168
- */
169
- export type DynamicRangeEndpoint = 'Col-Min' | 'Col-Max' | 'Col-Avg' | 'Col-Median';
170
- /**
171
- * Defines Colours to show in Gradient, Percent Bar and Bullet Chart Styles
172
- */
173
- export interface CellColorRange {
174
- /**
175
- * Start of Range, can be literal number or DynamicRangeEndpoint
176
- */
177
- Min: number | DynamicRangeEndpoint;
178
- /**
179
- * End of Range, can be literal number or DynamicRangeEndpoint
180
- */
181
- Max: number | DynamicRangeEndpoint;
182
- /**
183
- * Cell colour to use for values that fall inside Range
184
- */
185
- Color: string;
186
- /**
187
- * Reverses the alpha ramp **within this range only** — values at the *low*
188
- * end render saturated, values at the *high* end render faint.
189
- *
190
- * Useful as a Gradient Style option when the natural reading is
191
- * "lower-is-darker" (e.g. lower trade IDs are older / more important, so
192
- * deserve more visual emphasis than newer ones).
193
- *
194
- * Only honoured by Gradient Style.
195
- */
196
- ReverseGradient?: boolean;
197
- }
198
- /**
199
- * Enables a Percent Bar or Gradient Style to use another column in its calculations
200
- */
201
- export interface ColumnComparison {
202
- /**
203
- * Start value - either numeric value or Column name
204
- */
205
- MinValue: number | string;
206
- /**
207
- * End value - either numeric value or Column name
208
- */
209
- MaxValue: number | string;
210
- /**
211
- * Colour to use for the Comparison
212
- */
213
- Color: string;
214
- }
215
- /**
216
- * Array of CellTextOption available in Special Column Styles
217
- */
218
- export type CellTextOptions = CellTextOption[];
219
- /**
220
- * Text optionally to show in a Special Column Style special style: 'CellValue' or 'PercentageValue'
221
- */
222
- export type CellTextOption = 'CellValue' | 'PercentageValue';
223
- /**
224
- * Whether the Range is Number or Percent based
225
- */
226
- export type RangeValueType = 'Number' | 'Percentage';
227
- /**
228
- * Style to show for a Sparkline Column
229
- */
230
- export interface SparklineStyle {
231
- /**
232
- * AG Grid Sparkline Options
233
- */
234
- options?: AgSparklineOptions;
235
- /**
236
- * Optional cell box styling applied to the cell behind the sparkline chart.
237
- *
238
- * When set, this property "claims" the Cell slice for the column: any
239
- * Format Column matching this column has its Cell-box properties stripped.
240
- * When unset, Format Column Cell properties inherit through normally —
241
- * useful for letting a row's themed background show through behind the
242
- * sparkline.
243
- */
244
- Cell?: CellBoxStyle;
245
- }
246
- /**
247
- * Icon used by a Rating Style
248
- */
249
- export type RatingIconShape = 'Star' | 'Heart' | 'Circle' | 'Thumb';
250
- /**
251
- * Styles a numeric column as a row of icons whose fill represents the
252
- * cell value on a 0..`Max` scale.
253
- *
254
- * Conceptually similar to a Percent Bar but with a discrete, instantly
255
- * legible visual idiom (★★★☆☆) commonly used for ratings, satisfaction
256
- * scores and review-style cells.
257
- *
258
- * The cell value is clamped to `[0, Max]`. When `AllowHalf` is true (the
259
- * default) the icon at the boundary is rendered with a partial fill that
260
- * matches the fractional part of the value; otherwise the value is
261
- * rounded to the nearest whole icon.
262
- */
263
- export interface RatingStyle {
264
- /**
265
- * Number of icons per cell **and** the upper bound of the rating scale,
266
- * in the **same numeric units as the cell value**.
267
- *
268
- * The renderer clamps the cell value to `[0, Max]` and maps that number
269
- * directly to filled icons (e.g. `Max: 5` and value `4` → four units of
270
- * fill across five icons — roughly four stars, not “4 out of 10 scaled
271
- * to five stars”). Values above `Max` show as fully filled; values below
272
- * `0` show as empty.
273
- *
274
- * To show a 1–10 score as five stars, use a calculated column (e.g.
275
- * `value / 2`) or set `Max` to match your data range (e.g. `Max: 10`
276
- * for ten icons), unless a future `ScaleMin` / `ScaleMax` option is added.
277
- *
278
- * @defaultValue 5
279
- */
280
- Max?: number;
281
- /**
282
- * Icon used for each rating mark.
283
- *
284
- * @defaultValue 'Star'
285
- */
286
- Icon?: RatingIconShape;
287
- /**
288
- * Fill colour for the active (filled) portion of the rating.
289
- *
290
- * @defaultValue 'var(--ab-color-warn, #f5a623)' — a warm amber that
291
- * reads well on both light and dark themes.
292
- */
293
- FilledColor?: string;
294
- /**
295
- * Outline / fill colour for the inactive portion of the rating.
296
- *
297
- * Drawn as a subtle background icon so the user can see the maximum
298
- * possible rating at a glance even when the cell value is low.
299
- *
300
- * @defaultValue a low-opacity tint of the current text colour.
301
- */
302
- EmptyColor?: string;
303
- /**
304
- * Icon size in pixels (each icon is square). The renderer keeps the
305
- * row of icons vertically centred regardless of cell height.
306
- *
307
- * @defaultValue 14
308
- */
309
- Size?: number;
310
- /**
311
- * Pixel gap between adjacent icons.
312
- *
313
- * @defaultValue 2
314
- */
315
- Gap?: number;
316
- /**
317
- * Controls **partial icons** for fractional values after clamping to
318
- * `[0, Max]` — not scaling between different ranges (e.g. 10-point vs
319
- * 5-star).
320
- *
321
- * When `true`, the decimal part fills part of the next icon (e.g. `3.5`
322
- * with `Max: 5` → three full icons + one half-filled + one empty).
323
- * When `false`, the clamped value is rounded with `Math.round` before
324
- * drawing, so only whole icons appear.
325
- *
326
- * @defaultValue true
327
- */
328
- AllowHalf?: boolean;
329
- /**
330
- * When `true`, the numeric cell value is also displayed alongside the
331
- * icons (e.g. `★★★★☆ 4.2`). Useful when precise scores matter beyond
332
- * the visual approximation.
333
- *
334
- * @defaultValue false
335
- */
336
- ShowValue?: boolean;
337
- /**
338
- * Optional AG Grid tooltip content — `CellValue` and/or `PercentageValue`.
339
- * `PercentageValue` is the clamped cell value as a percent of `Max`
340
- * (`clamp(value, 0, Max) / Max`, same scale as the icon fill).
341
- */
342
- ToolTipText?: CellTextOptions;
343
- /**
344
- * Optional cell box styling (background colour, border, border radius)
345
- * applied to the cell behind the rating icons.
346
- *
347
- * When set, this property "claims" the Cell slice for the column: any
348
- * Format Column matching this column has its Cell-box properties stripped
349
- * (so a Format Column `BackColor` cannot tint the cell behind a Rating).
350
- * When unset, Format Column Cell properties inherit through normally —
351
- * useful for tinting a row of stars to match a Format Column theme.
352
- */
353
- Cell?: CellBoxStyle;
354
- }
355
- /**
356
- * Predicates available when creating a Badge Style Rule
357
- */
358
- export type SystemBadgeStylePredicateId = 'In' | 'NotIn' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex';
359
- /**
360
- * System Predicate Ids available for Badge Style
361
- */
362
- export type SystemBadgeStylePredicateIds = SystemBadgeStylePredicateId[];
363
- /**
364
- * System Predicate definition for Badge Style
365
- */
366
- export interface BadgeStylePredicate extends AdaptablePredicate {
367
- PredicateId: TypeHint<string, SystemBadgeStylePredicateId>;
368
- }
369
- /** Keys copied from legacy `BadgeStyleDefinition.Style` (`AdaptableStyle`) into `PillStyle`. */
370
- export declare const BADGE_PILL_STYLE_KEYS: readonly ["BackColor", "ForeColor", "BorderColor", "FontWeight", "FontStyle", "TextDecoration"];
371
- /**
372
- * Visual styling applied to a single Badge pill — an explicit subset of
373
- * {@link AdaptableStyle}. Not used: `BorderRadius` ({@link BadgeShape}),
374
- * `Alignment` / `FontSize` / `ClassName` (column-level or unsupported).
375
- */
376
- export type BadgePillStyle = Pick<AdaptableStyle, (typeof BADGE_PILL_STYLE_KEYS)[number]>;
377
- /**
378
- * Visual shape of a Badge; convenience shorthand that resolves to a border radius without having to pick a pixel value
379
- */
380
- export type BadgeShape = 'Pill' | 'Rounded' | 'Square';
381
- /**
382
- * Density preset that controls inner padding (and therefore overall height)
383
- * for *all* badges in a column. Applied at the {@link BadgeStyle} level so
384
- * a single column reads as one consistent label set.
385
- *
386
- * - `'Compact'` - tight padding for dense grids
387
- * - `'Normal'` - default; balanced padding (matches pre-existing look)
388
- * - `'Comfortable'` - looser padding for low-density / large-font grids
389
- */
390
- export type BadgeDensity = 'Compact' | 'Normal' | 'Comfortable';
391
- /**
392
- * How adjacent badges in an array-column cell should lay out when the cell
393
- * is too narrow to fit them on one line.
394
- *
395
- * - `'Truncate'` - default; badges sit on a single line and the cell clips
396
- * anything that overflows (legacy behaviour).
397
- * - `'Wrap'` - badges wrap onto subsequent lines; row height grows to fit.
398
- * AG Grid `rowHeight` / `getRowHeight` should be tall enough to host the
399
- * wrapped badges; consider `autoRowHeight` on the column.
400
- * - `'Scroll'` - badges stay on one line and the cell becomes
401
- * horizontally scrollable.
402
- */
403
- export type BadgeOverflowMode = 'Truncate' | 'Wrap' | 'Scroll';
404
- /**
405
- * Defines a Badge Style
406
- */
407
- export interface BadgeStyleDefinition {
408
- /**
409
- * Optional Rule for deciding whether Badge is displayed
410
- */
411
- Predicate?: BadgeStylePredicate;
412
- Expression?: AdaptableBooleanQuery;
413
- /**
414
- * Style for the Badge **pill** (cut-down — see {@link BadgePillStyle}).
415
- *
416
- * Corner radius is **not** here: use {@link BadgeStyleDefinition.Shape}.
417
- * Cell-row alignment is **not** here: use `BadgeStyle.Cell` /
418
- * `BadgeStyle.Font.Alignment` at the column level.
419
- */
420
- PillStyle?: BadgePillStyle;
421
- /**
422
- * Visual shape of the badge. Owns the pill's corner radius — there is
423
- * no `BorderRadius` on `PillStyle`.
424
- *
425
- * @defaultValue 'Rounded'
426
- */
427
- Shape?: BadgeShape;
428
- /**
429
- * Icon to display in Badge
430
- */
431
- Icon?: AdaptableIcon;
432
- /**
433
- * Position of Icon in the Badge - 'Start' or 'End'
434
- */
435
- IconPosition?: 'Start' | 'End';
436
- /**
437
- * Pixel gap between the icon and the badge text. Falls back to the badge
438
- * `Density` preset when omitted; ignored when there is no icon or when
439
- * {@link IconOnly} is `true`.
440
- */
441
- IconGap?: number;
442
- /**
443
- * Only show an Icon and no Cell text
444
- */
445
- IconOnly?: boolean;
446
- }
447
- /**
448
- * Collection of Badge Style Definitions to display in a Badge Styled Column
449
- */
450
- export interface BadgeStyle {
451
- /**
452
- * Collection of Badge Style Definitions
453
- */
454
- Badges?: BadgeStyleDefinition[];
455
- /**
456
- * Density preset shared by every badge in the column - controls inner padding.
457
- *
458
- * @defaultValue 'Normal'
459
- */
460
- Density?: BadgeDensity;
461
- /**
462
- * Pixel gap between adjacent badges in array-column cells
463
- *
464
- * @defaultValue 4
465
- */
466
- Spacing?: number;
467
- /**
468
- * How badges lay out in array-column cells where space is tight
469
- *
470
- * @defaultValue 'Truncate'
471
- */
472
- OverflowMode?: BadgeOverflowMode;
473
- /**
474
- * Optional cell-box styling applied to grid cell **behind** the badges
475
- */
476
- Cell?: CellBoxStyle;
477
- /**
478
- * Optional column-level Font (only Alignment is meaningful for Badge cells)
479
- *
480
- */
481
- Font?: CellFontStyle;
482
- }
483
- /**
484
- * Style used to display a Bullet Chart in a Styled Column.
485
- *
486
- * A Bullet Chart shows three things in a single cell:
487
- * 1. the actual cell value, as a horizontal bar (the "feature measure")
488
- * 2. a target value, as a marker on the bar (the "comparative measure")
489
- * 3. optional qualitative bands behind the bar (e.g. poor / ok / good),
490
- * defined via the inherited `CellRanges` property
491
- *
492
- * Note: Unlike `PercentBarStyle.CellRanges` (which colour the bar based on
493
- * the cell value), `BulletChartStyle.CellRanges` colour the *background*
494
- * bands and are drawn unconditionally to provide the qualitative scale.
495
- */
496
- export interface BulletChartStyle extends NumericStyledColumn {
497
- /**
498
- * Target value(s) rendered as marker(s) on the bar.
499
- *
500
- * Each Target can be:
501
- * - `number` - a fixed target value
502
- * - `string` - a column id; the row's value in that column is used as the target
503
- * - `'Col-Avg'` | `'Col-Median'` - computed across visible rows
504
- *
505
- * Pass an array to render multiple targets (e.g. primary + stretch goal).
506
- */
507
- Target?: BulletChartTarget | BulletChartTarget[];
508
- /**
509
- * Visual style of the target marker(s).
510
- *
511
- * When `Target` is an array, this style applies to all markers; pass a
512
- * `Target` object with its own `Marker` property to override per-marker.
513
- */
514
- TargetMarker?: BulletChartTargetMarker;
515
- /**
516
- * Colour of the actual (foreground) bar drawn on top of the bands.
517
- *
518
- * @defaultValue 'var(--ab-color-primary)'
519
- */
520
- BarColor?: string;
521
- /**
522
- * Height of the actual bar in px (the bands sit a few px taller behind it).
523
- *
524
- * For vertical orientation this is interpreted as the bar's *width*
525
- * (i.e. its short axis); the long axis stretches to fit the cell.
526
- *
527
- * @defaultValue 8
528
- */
529
- BarHeight?: number;
530
- /**
531
- * Orientation of the chart.
532
- *
533
- * - `'Horizontal'` (default) - bands and bar run left-to-right; markers
534
- * are vertical lines / shapes positioned along the x-axis.
535
- * - `'Vertical'` - bands and bar run bottom-to-top; markers are
536
- * horizontal lines / shapes positioned along the y-axis.
537
- *
538
- * Note: vertical bullet charts need a tall row height to be readable
539
- * (we recommend at least 60px). AG Grid row height is a per-grid setting
540
- * (`gridOptions.rowHeight` or `getRowHeight`).
541
- *
542
- * @defaultValue 'Horizontal'
543
- */
544
- Orientation?: 'Horizontal' | 'Vertical';
545
- /**
546
- * Background colour for the chart area when no `CellRanges` are supplied.
547
- */
548
- BackColor?: string;
549
- /**
550
- * Origin of the actual bar.
551
- *
552
- * - `'Auto'` (default) - the bar grows from the left edge unless any cell
553
- * value or range endpoint is negative, in which case it grows from `0`
554
- * - `'Zero'` - the bar always grows from `0` (centred axis); positive
555
- * values extend right, negative values extend left
556
- * - any number - the bar grows from that fixed origin
557
- *
558
- * @defaultValue 'Auto'
559
- */
560
- Origin?: 'Auto' | 'Zero' | number;
561
- /**
562
- * Whether the cell shows Cell Value, Percent Value, both, or none.
563
- */
564
- CellText?: CellTextOptions;
565
- /**
566
- * Position of cell text relative to the chart - `'Above'`, `'Below'` or `'Merged'`.
567
- *
568
- * @defaultValue 'Below'
569
- */
570
- CellTextPosition?: 'Above' | 'Below' | 'Merged';
571
- /**
572
- * Tooltip content - same tokens (`'CellValue'`, `'PercentageValue'`) as
573
- * Percent Bar.
574
- */
575
- ToolTipText?: CellTextOptions;
576
- /**
577
- * Optional cell-text styling (colour, weight, font, alignment, …) applied
578
- * by the Bullet Chart renderer to the optional `CellText` overlay.
579
- *
580
- * When set, this property "claims" the Font slice for the column: any
581
- * Format Column matching this column has its Font properties stripped.
582
- * When unset, Format Column Font properties inherit through normally.
583
- */
584
- Font?: CellFontStyle;
585
- }
586
- /**
587
- * A single Bullet Chart target. Either a primitive resolvable value (number /
588
- * column id / `Col-Avg` / `Col-Median`) or a richer object that lets a single
589
- * target override the default marker styling.
590
- */
591
- export type BulletChartTarget = number | string | 'Col-Avg' | 'Col-Median' | BulletChartTargetDefinition;
592
- /**
593
- * Object form of a Bullet Chart target, used when a single target needs to
594
- * override the chart-level marker styling.
595
- */
596
- export interface BulletChartTargetDefinition {
597
- /**
598
- * Resolvable value: number, column id, `Col-Avg` or `Col-Median`.
599
- */
600
- Value: number | string | 'Col-Avg' | 'Col-Median';
601
- /**
602
- * Per-target marker override. Falls back to `BulletChartStyle.TargetMarker`.
603
- */
604
- Marker?: BulletChartTargetMarker;
605
- /**
606
- * Optional label displayed in the tooltip alongside the marker value.
607
- */
608
- Label?: string;
609
- }
610
- /**
611
- * Visual style of a Bullet Chart target marker.
612
- */
613
- export interface BulletChartTargetMarker {
614
- /**
615
- * Marker shape.
616
- *
617
- * @defaultValue 'Line'
618
- */
619
- Shape?: 'Line' | 'Triangle' | 'Dot' | 'Diamond';
620
- /**
621
- * Marker colour. Defaults to the current text colour.
622
- *
623
- * @defaultValue 'var(--ab-color-text)'
624
- */
625
- Color?: string;
626
- /**
627
- * Line thickness (for `Shape: 'Line'`) or shape size in px.
628
- */
629
- Size?: number;
630
- }
631
- /**
632
- * Configures a Range Bar Styled Column.
633
- *
634
- * A Range Bar shows where a row's value sits inside a per-row (or
635
- * column-wide) numeric range. The range endpoints (`Min` / `Max`) are
636
- * resolved per row — they can be hard-coded numbers, the value of another
637
- * column on the same row, or a column-wide aggregate (`Col-Min`, `Col-Max`,
638
- * `Col-Avg`, `Col-Median`).
639
- *
640
- * Common scenarios:
641
- * - Stock price relative to its 52-week low / 52-week high
642
- * - Today's value relative to bid / ask quotes
643
- * - Forecast within an upper / lower confidence interval
644
- * - Measured value within an SLA `[lowerBound, upperBound]`
645
- *
646
- * Visually the cell renders as a thin track between `Min` and `Max`, with
647
- * a marker at the cell value. An optional `Reference` value renders as a
648
- * second marker (e.g. previous close, target, midpoint).
649
- *
650
- * Background bands (`CellRanges`) are drawn behind the track using the same
651
- * conventions as Bullet Chart, and are useful for qualitative scales such
652
- * as poor / acceptable / good (or red / amber / green SLA bands).
653
- */
654
- export interface RangeBarStyle extends NumericStyledColumn {
655
- /**
656
- * Lower bound of the track for each row.
657
- *
658
- * Can be:
659
- * - `number` — a fixed lower bound shared by every row
660
- * - `string` — a column id; the row's value in that column is used
661
- * - `'Col-Min' | 'Col-Max' | 'Col-Avg' | 'Col-Median'` — a column-wide
662
- * aggregate computed across the visible rows
663
- */
664
- Min: RangeBarBound;
665
- /**
666
- * Upper bound of the track for each row.
667
- *
668
- * See `Min` for the supported value forms.
669
- */
670
- Max: RangeBarBound;
671
- /**
672
- * Optional reference value drawn as a *second* marker on the track
673
- * (e.g. previous close, target, midpoint). Same value forms as `Min` /
674
- * `Max`. Leave unset to draw only the cell-value marker.
675
- */
676
- Reference?: RangeBarBound;
677
- /**
678
- * Visual style of the cell-value marker.
679
- *
680
- * @defaultValue `{ Shape: 'Diamond', Color: 'var(--ab-color-accent)', Size: 8 }`
681
- */
682
- Marker?: RangeBarMarker;
683
- /**
684
- * Visual style of the reference marker (only used when `Reference` is set).
685
- *
686
- * @defaultValue `{ Shape: 'Line', Color: 'var(--ab-color-foreground)', Size: 2 }`
687
- */
688
- ReferenceMarker?: RangeBarMarker;
689
- /**
690
- * Behaviour when the cell value falls outside `[Min, Max]`.
691
- *
692
- * - `'Clamp'` (default) — clamp the marker to the nearest end of the
693
- * track and (optionally) re-colour it via `OutOfRangeColor`
694
- * - `'Overflow'` — draw the marker outside the track at its true position
695
- * - `'Hide'` — omit the cell-value marker entirely
696
- *
697
- * @defaultValue `'Clamp'`
698
- */
699
- OutOfRangeMode?: 'Clamp' | 'Overflow' | 'Hide';
700
- /**
701
- * Marker colour override applied when the cell value is out of range
702
- * (only used with `OutOfRangeMode: 'Clamp'`). Useful to draw attention
703
- * to "off-scale" rows.
704
- */
705
- OutOfRangeColor?: string;
706
- /**
707
- * Track colour (the line representing the `[Min, Max]` interval).
708
- *
709
- * @defaultValue 'var(--ab-color-foreground, #999)' at low alpha
710
- */
711
- TrackColor?: string;
712
- /**
713
- * Track thickness in px (the *short* axis — height in horizontal,
714
- * width in vertical).
715
- *
716
- * @defaultValue 4
717
- */
718
- TrackHeight?: number;
719
- /**
720
- * Background colour for the chart area when no `CellRanges` are supplied.
721
- */
722
- BackColor?: string;
723
- /**
724
- * Orientation of the range bar.
725
- *
726
- * @defaultValue `'Horizontal'`
727
- */
728
- Orientation?: 'Horizontal' | 'Vertical';
729
- /**
730
- * Whether the cell shows Cell Value, Percent Value, both, or none.
731
- */
732
- CellText?: CellTextOptions;
733
- /**
734
- * Position of cell text relative to the range bar — `'Above'`, `'Below'`
735
- * or `'Merged'`.
736
- *
737
- * @defaultValue `'Below'`
738
- */
739
- CellTextPosition?: 'Above' | 'Below' | 'Merged';
740
- /**
741
- * Tooltip content — same tokens (`'CellValue'`, `'PercentageValue'`)
742
- * as Percent Bar / Bullet Chart.
743
- */
744
- ToolTipText?: CellTextOptions;
745
- }
746
- /**
747
- * Resolvable value used by a Range Bar's `Min`, `Max` or `Reference`.
748
- *
749
- * - `number` — a hard-coded value
750
- * - `string` — a column id; the row's value in that column is used
751
- * - `'Col-Min' | 'Col-Max' | 'Col-Avg' | 'Col-Median'` — a column-wide
752
- * aggregate computed across visible rows
753
- */
754
- export type RangeBarBound = number | string | DynamicRangeEndpoint;
755
- /**
756
- * Visual style of a Range Bar marker (cell value or reference).
757
- */
758
- export interface RangeBarMarker {
759
- /**
760
- * Marker shape.
761
- *
762
- * @defaultValue `'Diamond'` for cell-value marker, `'Line'` for reference marker
763
- */
764
- Shape?: 'Line' | 'Triangle' | 'Dot' | 'Diamond';
765
- /**
766
- * Marker colour.
767
- */
768
- Color?: string;
769
- /**
770
- * Line thickness (for `Shape: 'Line'`) or shape size in px.
771
- */
772
- Size?: number;
773
- }
774
- /**
775
- * Built-in mapping presets that {@link IconStyle.Preset} can seed from.
776
- *
777
- * Each preset is just a list of key → icon mappings; once the preset is
778
- * applied in the wizard the mappings are stored on `IconStyle.Mappings`
779
- * and can be edited / extended like any other mapping.
780
- *
781
- * - `'Flags'` — common ISO 3166 alpha-2 / country names → emoji flag.
782
- * - `'Currencies'` — common ISO 4217 codes → issuing country flag (each
783
- * currency gets a unique glyph, unlike currency symbols where USD /
784
- * AUD / CAD all share `$`).
785
- * - `'Trend'` — `'Up' | 'Down' | 'Flat'` (and `'Buy' | 'Sell' | 'Hold'`) →
786
- * arrow icons.
787
- * - `'Status'` — `'Pass' | 'Warn' | 'Fail'` (and a few common synonyms) →
788
- * coloured circles / traffic-light style.
789
- */
790
- export type IconStyleBuiltInPreset = 'Flags' | 'Currencies' | 'Trend' | 'Status';
791
- /**
792
- * How the cell value should be matched against {@link IconStyleMapping.Key}.
793
- *
794
- * - `'Exact'` (default) — strict `===` equality. Numbers, booleans and
795
- * strings are matched as-is; useful when keys are tightly controlled.
796
- * - `'CaseInsensitive'` — string keys are matched case-insensitively
797
- * (cell value and key are both lowercased before comparison). Useful
798
- * for free-typed columns where the same logical value can appear as
799
- * `'GBP'` or `'gbp'`.
800
- */
801
- export type IconStyleMatchMode = 'Exact' | 'CaseInsensitive';
802
- /**
803
- * Behaviour when the cell value does not match any mapping key.
804
- *
805
- * - `'Hide'` (default) — render nothing.
806
- * - `'ShowText'` — render the raw cell value (so the cell still shows
807
- * *something* meaningful instead of an empty cell).
808
- * - `'Icon'` — render a fallback icon defined by
809
- * {@link IconStyle.FallbackIcon}.
810
- */
811
- export type IconStyleFallback = 'Hide' | 'ShowText' | 'Icon';
812
- /**
813
- * What the renderer draws for a single matched mapping.
814
- *
815
- * - An {@link AdaptableIcon} — a system icon (`{ name: 'flag' }`), a URL
816
- * (`{ src: '/img/us.svg' }`) or an HTML element / fragment.
817
- * - A plain `string` — rendered verbatim, intended for emoji glyphs
818
- * (e.g. `'🇺🇸'`, `'$'`, `'⬆'`). Strings are *not* HTML-parsed so they
819
- * are safe to author from data sources.
820
- */
821
- export type IconStyleSpec = AdaptableIcon | string;
822
- /**
823
- * One mapping in an {@link IconStyle} — `Key` is matched against the
824
- * cell's raw value, `Icon` is what gets drawn when it matches.
825
- */
826
- export interface IconStyleMapping {
827
- /**
828
- * Cell value that triggers this mapping. Compared using the parent
829
- * {@link IconStyle.MatchMode} (defaults to strict equality).
830
- *
831
- * Booleans and numbers are accepted to support typed columns (e.g.
832
- * `Key: true` for an `isLive` flag, `Key: 0` for a status code).
833
- */
834
- Key: string | number | boolean;
835
- /**
836
- * Icon to render when `Key` matches the cell value.
837
- *
838
- * See {@link IconStyleSpec} — accepts an `AdaptableIcon` (system /
839
- * URL / element) or a plain string for emoji.
840
- */
841
- Icon: IconStyleSpec;
842
- /**
843
- * Optional human-readable description of this mapping (e.g. the full
844
- * country name when `Key` is an ISO code). Surfaced in the tooltip and
845
- * by the wizard's mappings list.
846
- */
847
- Description?: string;
848
- }
849
- /**
850
- * Renders cell values as icons by looking up the cell value in a list of key → icon mappings; designed for one-glyph-per-cell visual recognition
851
- */
852
- export interface IconStyle {
853
- /**
854
- * Custom mappings for style (layered on top of a preset); leave undefined to use preset as-is
855
- */
856
- Mappings?: IconStyleMapping[];
857
- /**
858
- * Built-in mappings to use for the Icon Style
859
- */
860
- Preset?: IconStyleBuiltInPreset;
861
- /**
862
- * How `Key` is compared with the cell value (Exact or Case Insensitive)
863
- *
864
- * @defaultValue `'Exact'`
865
- */
866
- MatchMode?: IconStyleMatchMode;
867
- /**
868
- * What to render when **no** mapping matches the cell value (Hide, ShowText, Icon)
869
- *
870
- * @defaultValue `'Hide'`
871
- */
872
- Fallback?: IconStyleFallback;
873
- /**
874
- * Icon used by `Fallback: 'Icon'` (ignored otherwise)
875
- */
876
- FallbackIcon?: IconStyleSpec;
877
- /**
878
- * Text to render alongside a matched icon (CellValue or IconDescription)
879
- */
880
- CellText?: ('CellValue' | 'IconDescription')[];
881
- /**
882
- * Where the cell text sits relative to the icon (Before, After, Above, Below)
883
- *
884
- * @defaultValue `'After'`
885
- */
886
- CellTextPosition?: 'Before' | 'After' | 'Above' | 'Below';
887
- /**
888
- * Pixel size of icon glyph (square)
889
- *
890
- * @defaultValue `18`
891
- */
892
- Size?: number;
893
- /**
894
- * Pixel gap between the icon and the cell text (when shown).
895
- *
896
- * @defaultValue `4`
897
- */
898
- Gap?: number;
899
- /**
900
- * Tooltip content: `CellValue` (raw cell value) or `IconDescription` (matched mapping's `Description`)
901
- */
902
- ToolTipText?: ('CellValue' | 'IconDescription')[];
903
- /**
904
- * Optional cell-text styling applied to the companion text
905
- */
906
- Font?: CellFontStyle;
907
- /**
908
- * Optional stying (background / border / radius) for Cell behind the Icon
909
- */
910
- Cell?: CellBoxStyle;
911
- }