@adaptabletools/adaptable-cjs 23.0.0-canary.5 → 23.0.0-canary.7

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 (335) hide show
  1. package/icons/sort-asc.svg +1 -1
  2. package/index.css +756 -257
  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 +2 -2
  12. package/src/Api/Internal/AlertInternalApi.js +1 -1
  13. package/src/Api/Internal/DataSetInternalApi.d.ts +3 -0
  14. package/src/Api/Internal/DataSetInternalApi.js +73 -13
  15. package/src/Redux/Store/AdaptableStore.js +6 -4
  16. package/src/Strategy/CalculatedColumnModule.js +1 -0
  17. package/src/Strategy/ColumnFilterModule.js +1 -0
  18. package/src/Strategy/FlashingCellModule.js +6 -2
  19. package/src/Strategy/FormatColumnModule.js +1 -1
  20. package/src/Strategy/FreeTextColumnModule.js +38 -28
  21. package/src/Strategy/Interface/IModule.d.ts +3 -1
  22. package/src/Strategy/LayoutModule.js +15 -66
  23. package/src/Strategy/StyledColumnModule.js +11 -28
  24. package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.d.ts +1 -0
  25. package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -0
  26. package/src/Strategy/Utilities/Export/getExportColumnsViewItems.d.ts +2 -0
  27. package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +17 -1
  28. package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +1 -0
  29. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +5 -1
  30. package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.d.ts +11 -0
  31. package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.js +111 -0
  32. package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.d.ts +48 -0
  33. package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +177 -0
  34. package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.d.ts +1 -0
  35. package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -0
  36. package/src/Strategy/Utilities/Layout/rowGroupSummaryHelpers.d.ts +26 -0
  37. package/src/Strategy/Utilities/Layout/rowGroupSummaryHelpers.js +97 -0
  38. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +3 -5
  39. package/src/Utilities/Defaults/DefaultSettingsPanel.js +48 -42
  40. package/src/Utilities/Helpers/FormatHelper.js +3 -0
  41. package/src/Utilities/Helpers/ScheduleHelper.js +2 -0
  42. package/src/Utilities/Helpers/StyleHelper.d.ts +18 -0
  43. package/src/Utilities/Helpers/StyleHelper.js +30 -1
  44. package/src/Utilities/Helpers/StyledColumnGradientHelper.js +6 -4
  45. package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +3 -0
  46. package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +19 -0
  47. package/src/Utilities/getScopeViewItems.js +2 -0
  48. package/src/Utilities/wizardSelection.d.ts +10 -0
  49. package/src/Utilities/wizardSelection.js +22 -0
  50. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +2 -2
  51. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +2 -2
  52. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
  53. package/src/View/Alert/AlertViewPanel.js +2 -2
  54. package/src/View/Alert/Utilities/getAlertButtonStyle.js +7 -4
  55. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +0 -1
  56. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -6
  57. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
  58. package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
  59. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +1 -2
  60. package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
  61. package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +3 -4
  62. package/src/View/Alert/Wizard/AlertScheduledWizardSection.d.ts +1 -1
  63. package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -2
  64. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +1 -1
  65. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +30 -7
  66. package/src/View/Alert/Wizard/AlertWizard.js +3 -3
  67. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +2 -1
  68. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -14
  69. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  70. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +4 -6
  71. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
  72. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -2
  73. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  74. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +29 -3
  75. package/src/View/CellSummary/CellSummaryViewPanel.js +4 -4
  76. package/src/View/Charting/ShowChartButton.js +8 -8
  77. package/src/View/ColumnInfo/ColumnInfo.js +21 -1
  78. package/src/View/Components/AdaptableObjectCollection/index.js +2 -3
  79. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +1 -1
  80. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -4
  81. package/src/View/Components/AdaptableObjectRow/index.js +2 -2
  82. package/src/View/Components/Buttons/ButtonBase/index.js +2 -3
  83. package/src/View/Components/Buttons/ButtonNew.d.ts +2 -0
  84. package/src/View/Components/Buttons/ButtonNew.js +1 -1
  85. package/src/View/Components/Buttons/EntityListActionButtons.js +3 -3
  86. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -2
  87. package/src/View/Components/ColumnFilter/ColumnFilter.js +1 -2
  88. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +0 -1
  89. package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +3 -1
  90. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +2 -2
  91. package/src/View/Components/ColumnSelector/index.d.ts +12 -0
  92. package/src/View/Components/ColumnSelector/index.js +30 -6
  93. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +2 -2
  94. package/src/View/Components/ModuleValueSelector/index.js +2 -1
  95. package/src/View/Components/NewScopeComponent.js +3 -8
  96. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +5 -4
  97. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +4 -4
  98. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
  99. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +3 -2
  100. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +38 -28
  101. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +3 -4
  102. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  103. package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.d.ts +11 -0
  104. package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.js +5 -0
  105. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +3 -1
  106. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +27 -28
  107. package/src/View/Components/PredicateEditor/PredicateEditor.js +1 -1
  108. package/src/View/Components/RangesComponent.d.ts +2 -4
  109. package/src/View/Components/RangesComponent.js +95 -66
  110. package/src/View/Components/ReorderDraggable/index.js +2 -3
  111. package/src/View/Components/Selectors/BulkUpdateValueSelector.d.ts +0 -2
  112. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +3 -3
  113. package/src/View/Components/StyleComponent.js +30 -63
  114. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +9 -6
  115. package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +3 -13
  116. package/src/View/Components/ToolPanel/ToolPanelPopup.js +5 -80
  117. package/src/View/Components/ToolPanel/ToolPanelPopupSections.d.ts +17 -0
  118. package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +81 -0
  119. package/src/View/Components/ValueSelector/index.d.ts +29 -0
  120. package/src/View/Components/ValueSelector/index.js +112 -29
  121. package/src/View/Components/wizardColumnListStyles.d.ts +10 -0
  122. package/src/View/Components/wizardColumnListStyles.js +13 -0
  123. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
  124. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -6
  125. package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -2
  126. package/src/View/Dashboard/DashboardPopup.d.ts +1 -11
  127. package/src/View/Dashboard/DashboardPopup.js +3 -67
  128. package/src/View/Dashboard/DashboardPopupSections.d.ts +20 -0
  129. package/src/View/Dashboard/DashboardPopupSections.js +73 -0
  130. package/src/View/Dashboard/PinnedToolbarsSelector.js +2 -2
  131. package/src/View/DataChangeHistory/DataChangeHistoryPopup.d.ts +1 -6
  132. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +8 -20
  133. package/src/View/DataChangeHistory/DataChangeHistoryTable.d.ts +8 -0
  134. package/src/View/DataChangeHistory/DataChangeHistoryTable.js +99 -0
  135. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +5 -3
  136. package/src/View/DataChangeHistory/buildActionColumnButton.js +33 -41
  137. package/src/View/DataChangeHistory/dataChangeHistoryHelpers.d.ts +15 -0
  138. package/src/View/DataChangeHistory/dataChangeHistoryHelpers.js +46 -0
  139. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -1
  140. package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +32 -19
  141. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +1 -1
  142. package/src/View/DataSet/DataSetViewPanel.d.ts +2 -2
  143. package/src/View/Export/ExportDestinationPicker.js +4 -5
  144. package/src/View/Export/ExportViewPanel.js +2 -2
  145. package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +2 -1
  146. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +2 -7
  147. package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +2 -1
  148. package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -5
  149. package/src/View/FlashingCell/FlashingCellStyle.d.ts +4 -2
  150. package/src/View/FlashingCell/FlashingCellStyle.js +5 -3
  151. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts +2 -1
  152. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +5 -9
  153. package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.d.ts +9 -0
  154. package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.js +10 -0
  155. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
  156. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +5 -1
  157. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +0 -5
  158. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +3 -8
  159. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -2
  160. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
  161. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +101 -44
  162. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +0 -1
  163. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -6
  164. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +55 -15
  165. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  166. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +2 -3
  167. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -9
  168. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +4 -9
  169. package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.js +3 -2
  170. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -2
  171. package/src/View/GridFilter/GridFilterPopupUI/index.js +3 -2
  172. package/src/View/GridFilter/GridFilterViewPanel.js +5 -5
  173. package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +2 -3
  174. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -2
  175. package/src/View/Layout/LayoutViewPanel.js +2 -2
  176. package/src/View/Layout/Wizard/LayoutWizard.js +24 -28
  177. package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +13 -1
  178. package/src/View/Layout/Wizard/sections/AggregationsSection.js +77 -33
  179. package/src/View/Layout/Wizard/sections/ColumnsSection.d.ts +4 -1
  180. package/src/View/Layout/Wizard/sections/ColumnsSection.js +154 -275
  181. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +4 -1
  182. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +146 -143
  183. package/src/View/Layout/Wizard/sections/PivotColumnsSection.d.ts +5 -2
  184. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +22 -10
  185. package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.d.ts +4 -1
  186. package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +21 -10
  187. package/src/View/Layout/Wizard/sections/RowGroupingSection.d.ts +5 -2
  188. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +23 -12
  189. package/src/View/Layout/Wizard/sections/RowSelectionSection.js +7 -3
  190. package/src/View/Layout/Wizard/sections/RowSummarySection.js +10 -10
  191. package/src/View/Layout/Wizard/sections/SortSection.d.ts +12 -2
  192. package/src/View/Layout/Wizard/sections/SortSection.js +43 -18
  193. package/src/View/Layout/Wizard/sections/columnLayoutCards.d.ts +20 -0
  194. package/src/View/Layout/Wizard/sections/columnLayoutCards.js +167 -0
  195. package/src/View/Layout/Wizard/sections/columnLayoutHelpers.d.ts +30 -0
  196. package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +216 -0
  197. package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.d.ts +8 -0
  198. package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.js +72 -0
  199. package/src/View/Layout/Wizard/sections/layoutWizardColumns.d.ts +11 -0
  200. package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +57 -0
  201. package/src/View/License/LicenseWatermark.js +1 -1
  202. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.d.ts +1 -1
  203. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -2
  204. package/src/View/Note/NoteEditor.js +2 -2
  205. package/src/View/QuickSearch/QuickSearchPopup.js +2 -3
  206. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
  207. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
  208. package/src/View/SmartEdit/SmartEditPopup.js +2 -2
  209. package/src/View/SmartEdit/SmartEditViewPanel.js +2 -2
  210. package/src/View/StateManagement/StateManagementPopup.js +1 -1
  211. package/src/View/StateManagement/components/ExportDropdown.d.ts +2 -2
  212. package/src/View/StateManagement/components/ExportDropdown.js +12 -13
  213. package/src/View/StatusBar/StatusBarPanel.js +2 -2
  214. package/src/View/StatusBar/StatusBarPopup.js +33 -5
  215. package/src/View/StatusBar/statusBarPanelHelpers.d.ts +2 -0
  216. package/src/View/StatusBar/statusBarPanelHelpers.js +11 -0
  217. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +2 -0
  218. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +13 -10
  219. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +2 -2
  220. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +137 -119
  221. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +7 -13
  222. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -1
  223. package/src/View/StyledColumn/Wizard/StyledColumnTypeThumbnail.d.ts +5 -0
  224. package/src/View/StyledColumn/Wizard/StyledColumnTypeThumbnail.js +54 -0
  225. package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +2 -0
  226. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +28 -6
  227. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +8 -17
  228. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -1
  229. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +46 -28
  230. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +97 -42
  231. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +2 -1
  232. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.d.ts +1 -1
  233. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +31 -45
  234. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +10 -5
  235. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +93 -6
  236. package/src/View/UIHelper.d.ts +0 -2
  237. package/src/View/UIHelper.js +8 -24
  238. package/src/View/Wizard/CollapsibleWizardCard.d.ts +68 -0
  239. package/src/View/Wizard/CollapsibleWizardCard.js +90 -0
  240. package/src/View/Wizard/OnePageWizards.js +6 -6
  241. package/src/View/Wizard/SummaryColorTag.d.ts +24 -0
  242. package/src/View/Wizard/SummaryColorTag.js +79 -0
  243. package/src/View/Wizard/WizardTypeSelection.d.ts +34 -0
  244. package/src/View/Wizard/WizardTypeSelection.js +40 -0
  245. package/src/View/Wizard/rowGroupSummaryTags.d.ts +18 -0
  246. package/src/View/Wizard/rowGroupSummaryTags.js +21 -0
  247. package/src/View/Wizard/scopeSummaryTags.d.ts +6 -0
  248. package/src/View/Wizard/scopeSummaryTags.js +38 -0
  249. package/src/agGrid/AdaptableAgGrid.js +1 -1
  250. package/src/agGrid/AgGridAdapter.js +0 -5
  251. package/src/agGrid/AgGridColumnAdapter.js +1 -1
  252. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +4 -7
  253. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
  254. package/src/components/Card/index.js +5 -7
  255. package/src/components/CheckBox/index.js +2 -3
  256. package/src/components/CodeBlock/index.js +2 -3
  257. package/src/components/ColorPicker/ColorPicker.d.ts +1 -0
  258. package/src/components/ColorPicker/ColorPicker.js +8 -6
  259. package/src/components/ColorPicker/OptionalColorPicker.d.ts +12 -0
  260. package/src/components/ColorPicker/OptionalColorPicker.js +31 -0
  261. package/src/components/ColorPicker/index.d.ts +1 -0
  262. package/src/components/ColorPicker/index.js +1 -0
  263. package/src/components/Combobox/comboboxUtils.d.ts +1 -0
  264. package/src/components/Combobox/index.js +19 -18
  265. package/src/components/Dashboard/DashboardManager.js +2 -4
  266. package/src/components/Dialog/index.js +4 -4
  267. package/src/components/DragAndDropContext/DragAndDropContext.d.ts +5 -0
  268. package/src/components/DragAndDropContext/DragAndDropContext.js +4 -1
  269. package/src/components/DragAndDropContext/ModuleManager.d.ts +15 -3
  270. package/src/components/DragAndDropContext/ModuleManager.js +43 -4
  271. package/src/components/DragAndDropContext/TabList.d.ts +11 -4
  272. package/src/components/DragAndDropContext/TabList.js +52 -38
  273. package/src/components/DragAndDropContext/UnusedPanel.d.ts +4 -3
  274. package/src/components/DragAndDropContext/UnusedPanel.js +13 -9
  275. package/src/components/DragAndDropContext/dragScope.d.ts +6 -0
  276. package/src/components/DragAndDropContext/dragScope.js +34 -0
  277. package/src/components/DragAndDropContext/types.d.ts +7 -0
  278. package/src/components/DropdownButton/index.d.ts +33 -25
  279. package/src/components/DropdownButton/index.js +24 -158
  280. package/src/components/EmptyContent/index.js +2 -3
  281. package/src/components/ErrorBox/index.js +2 -3
  282. package/src/components/ExpressionEditor/BaseEditorInput.js +3 -3
  283. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +3 -3
  284. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +9 -9
  285. package/src/components/FieldWrap/index.js +2 -3
  286. package/src/components/Flex.js +2 -2
  287. package/src/components/FormLayout/index.d.ts +1 -1
  288. package/src/components/HelpBlock/index.js +3 -4
  289. package/src/components/IconSelector/IconSelector.d.ts +8 -0
  290. package/src/components/IconSelector/IconSelector.js +13 -8
  291. package/src/components/IconSelector/index.d.ts +1 -0
  292. package/src/components/IconSelector/index.js +3 -0
  293. package/src/components/Modal/index.js +2 -2
  294. package/src/components/NewSelect/index.js +11 -1
  295. package/src/components/Panel/index.js +7 -7
  296. package/src/components/Radio/index.d.ts +1 -1
  297. package/src/components/Radio/index.js +8 -6
  298. package/src/components/SimpleButton/index.js +7 -7
  299. package/src/components/StylePreview.js +2 -3
  300. package/src/components/Tabs/index.js +4 -4
  301. package/src/components/Tag/Tag.d.ts +16 -0
  302. package/src/components/Tag/Tag.js +16 -5
  303. package/src/components/Tag/columnScopeTagHelpers.d.ts +8 -0
  304. package/src/components/Tag/columnScopeTagHelpers.js +12 -0
  305. package/src/components/Tag/index.d.ts +1 -1
  306. package/src/components/Tag/index.js +3 -1
  307. package/src/components/Textarea/index.js +2 -3
  308. package/src/components/Toggle/Toggle.d.ts +2 -0
  309. package/src/components/Toggle/Toggle.js +14 -7
  310. package/src/components/Toggle/ToggleGroup.js +2 -2
  311. package/src/components/ToggleButton/index.js +4 -5
  312. package/src/components/Tree/TreeDropdown/index.js +3 -5
  313. package/src/components/WarningBox/index.js +2 -3
  314. package/src/components/icons/sort-asc.js +1 -1
  315. package/src/components/ui/button.d.ts +2 -2
  316. package/src/components/ui/combobox.d.ts +3 -1
  317. package/src/components/ui/combobox.js +2 -2
  318. package/src/components/ui/input-group.d.ts +1 -1
  319. package/src/components/ui/select.js +3 -2
  320. package/src/components/ui/textarea.js +1 -1
  321. package/src/env.js +2 -2
  322. package/src/layout-manager/src/index.js +7 -3
  323. package/src/metamodel/adaptable.metamodel.js +1 -1
  324. package/src/types.d.ts +1 -1
  325. package/tsconfig.cjs.tsbuildinfo +1 -1
  326. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +0 -17
  327. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +0 -295
  328. package/src/components/DropdownButton/DropdownButtonItem.d.ts +0 -12
  329. package/src/components/DropdownButton/DropdownButtonItem.js +0 -2
  330. package/src/components/DropdownButton/renderItem.d.ts +0 -14
  331. package/src/components/DropdownButton/renderItem.js +0 -14
  332. package/src/components/DropdownButton/useExpanded.d.ts +0 -24
  333. package/src/components/DropdownButton/useExpanded.js +0 -59
  334. package/src/components/NewDropdownButton/index.d.ts +0 -27
  335. package/src/components/NewDropdownButton/index.js +0 -28
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ROW_GROUP_BEHAVIOR_DESCRIPTIONS = exports.ROW_GROUP_BEHAVIOR_LABELS = exports.ROW_GROUP_DISPLAY_TYPE_DESCRIPTIONS = exports.ROW_GROUP_DISPLAY_TYPE_LABELS = void 0;
4
+ exports.getRowGroupDisplayTypeLabel = getRowGroupDisplayTypeLabel;
5
+ exports.getRowGroupDisplayTypeDescription = getRowGroupDisplayTypeDescription;
6
+ exports.getRowGroupBehaviorLabel = getRowGroupBehaviorLabel;
7
+ exports.getRowGroupBehaviorDescription = getRowGroupBehaviorDescription;
8
+ exports.getTableRowGroupSummaryValues = getTableRowGroupSummaryValues;
9
+ exports.getLayoutTableRowGroupViewItems = getLayoutTableRowGroupViewItems;
10
+ exports.getPivotRowGroupSummaryValues = getPivotRowGroupSummaryValues;
11
+ exports.getLayoutPivotRowGroupViewItems = getLayoutPivotRowGroupViewItems;
12
+ const tslib_1 = require("tslib");
13
+ const React = tslib_1.__importStar(require("react"));
14
+ const rowGroupSummaryTags_1 = require("../../../View/Wizard/rowGroupSummaryTags");
15
+ exports.ROW_GROUP_DISPLAY_TYPE_LABELS = {
16
+ single: 'Single Column',
17
+ multi: 'Multiple Columns',
18
+ groupRows: 'Full Width Group Rows',
19
+ };
20
+ exports.ROW_GROUP_DISPLAY_TYPE_DESCRIPTIONS = {
21
+ single: 'All Row Grouped Columns display in one hierarchical Column',
22
+ multi: 'Each Row Grouped Column displays in its own, separate, Column',
23
+ groupRows: 'Row groups display as full-width rows (no group column and no aggregations)',
24
+ };
25
+ exports.ROW_GROUP_BEHAVIOR_LABELS = {
26
+ 'always-collapsed': 'All Collapsed',
27
+ 'always-expanded': 'All Expanded',
28
+ expanded: 'Mostly Expanded',
29
+ collapsed: 'Mostly Collapsed',
30
+ };
31
+ exports.ROW_GROUP_BEHAVIOR_DESCRIPTIONS = {
32
+ 'always-collapsed': 'All Grouped Rows are always collapsed',
33
+ 'always-expanded': 'All Grouped Rows are always expanded',
34
+ expanded: 'All Grouped Rows expanded, other than those collapsed when Layout last displayed',
35
+ collapsed: 'All Grouped Rows collapsed, other than those expanded when Layout last displayed',
36
+ };
37
+ function getRowGroupDisplayTypeLabel(layout) {
38
+ const displayType = layout.RowGroupDisplayType ?? 'single';
39
+ return exports.ROW_GROUP_DISPLAY_TYPE_LABELS[displayType];
40
+ }
41
+ function getRowGroupDisplayTypeDescription(layout) {
42
+ const displayType = layout.RowGroupDisplayType ?? 'single';
43
+ return exports.ROW_GROUP_DISPLAY_TYPE_DESCRIPTIONS[displayType];
44
+ }
45
+ function getRowGroupBehaviorLabel(layout) {
46
+ const behavior = layout.RowGroupValues?.RowGroupDefaultBehavior ?? 'always-collapsed';
47
+ return exports.ROW_GROUP_BEHAVIOR_LABELS[behavior];
48
+ }
49
+ function getRowGroupBehaviorDescription(layout) {
50
+ const behavior = layout.RowGroupValues?.RowGroupDefaultBehavior ?? 'always-collapsed';
51
+ return exports.ROW_GROUP_BEHAVIOR_DESCRIPTIONS[behavior];
52
+ }
53
+ function getTableRowGroupSummaryValues(layout, api) {
54
+ const columnIdToFriendlyName = (columnId) => api.columnApi.getFriendlyNameForColumnId(columnId);
55
+ const values = [];
56
+ if (!layout.RowGroupedColumns?.length) {
57
+ values.push('No Row Grouped Columns');
58
+ }
59
+ else {
60
+ layout.RowGroupedColumns.forEach((colId) => {
61
+ values.push(columnIdToFriendlyName(colId));
62
+ });
63
+ }
64
+ values.push(`Display Type: ${getRowGroupDisplayTypeLabel(layout)}`);
65
+ values.push(`Behaviour: ${getRowGroupBehaviorLabel(layout)}`);
66
+ return values;
67
+ }
68
+ function getLayoutTableRowGroupViewItems(layout, api) {
69
+ return [
70
+ {
71
+ name: 'Row Groups',
72
+ view: () => React.createElement(rowGroupSummaryTags_1.TableRowGroupSummaryView, { layout, api }),
73
+ },
74
+ ];
75
+ }
76
+ function getPivotRowGroupSummaryValues(layout, api) {
77
+ const columnIdToFriendlyName = (columnId) => api.columnApi.getFriendlyNameForColumnId(columnId);
78
+ const values = [];
79
+ if (!layout.PivotGroupedColumns?.length) {
80
+ values.push('No Row Grouped Columns');
81
+ }
82
+ else {
83
+ layout.PivotGroupedColumns.forEach((colId) => {
84
+ values.push(columnIdToFriendlyName(colId));
85
+ });
86
+ }
87
+ values.push(`Behaviour: ${getRowGroupBehaviorLabel(layout)}`);
88
+ return values;
89
+ }
90
+ function getLayoutPivotRowGroupViewItems(layout, api) {
91
+ return [
92
+ {
93
+ name: 'Row Groups',
94
+ view: () => React.createElement(rowGroupSummaryTags_1.PivotRowGroupSummaryView, { layout, api }),
95
+ },
96
+ ];
97
+ }
@@ -1,5 +1,3 @@
1
- import { AdaptableSettingsPanel } from '../../AdaptableState/Common/Types';
2
- /**
3
- * This constant determines the items, and order, which appear in Settings Panel
4
- */
5
- export declare const DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS: (AdaptableSettingsPanel | '-')[];
1
+ import { SettingsPanelNavigation, SettingsPanelNavigationGroup } from '../../AdaptableOptions/SettingsPanelOptions';
2
+ export declare const DEFAULT_SETTINGS_PANEL_NAVIGATION_GROUPS: SettingsPanelNavigationGroup[];
3
+ export declare const buildDefaultSettingsPanelNavigation: (customPanelNames?: string[]) => SettingsPanelNavigation;
@@ -1,45 +1,51 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = void 0;
4
- /**
5
- * This constant determines the items, and order, which appear in Settings Panel
6
- */
7
- exports.DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
8
- 'GridInfo',
9
- 'ColumnInfo',
10
- 'Dashboard',
11
- 'ToolPanel',
12
- 'StatusBar',
13
- 'Theme',
14
- '-',
15
- 'Layout',
16
- 'CalculatedColumn',
17
- 'CustomSort',
18
- 'Alert',
19
- 'SystemStatus',
20
- '-',
21
- 'Export',
22
- 'DataImport',
23
- '-',
24
- 'FormatColumn',
25
- 'StyledColumn',
26
- 'FlashingCell',
27
- '-',
28
- 'QuickSearch',
29
- 'GridFilter',
30
- 'ColumnFilter',
31
- 'DataSet',
32
- 'NamedQuery',
33
- '-',
34
- 'Note',
35
- 'Comment',
36
- 'FreeTextColumn',
37
- '-',
38
- 'PlusMinus',
39
- 'Shortcut',
40
- 'DataChangeHistory',
41
- '-',
42
- 'Charting',
43
- 'TeamSharing',
44
- 'StateManagement',
3
+ exports.buildDefaultSettingsPanelNavigation = exports.DEFAULT_SETTINGS_PANEL_NAVIGATION_GROUPS = void 0;
4
+ exports.DEFAULT_SETTINGS_PANEL_NAVIGATION_GROUPS = [
5
+ {
6
+ label: 'Grid & UI',
7
+ items: ['GridInfo', 'ColumnInfo', 'Dashboard', 'ToolPanel', 'StatusBar', 'Theme'],
8
+ },
9
+ {
10
+ label: 'Layout',
11
+ items: ['Layout', 'CalculatedColumn', 'CustomSort', 'Charting'],
12
+ },
13
+ {
14
+ label: 'Formatting',
15
+ items: ['FormatColumn', 'StyledColumn', 'FlashingCell'],
16
+ },
17
+ {
18
+ label: 'Filtering & Search',
19
+ items: ['QuickSearch', 'GridFilter', 'ColumnFilter', 'DataSet', 'NamedQuery'],
20
+ },
21
+ {
22
+ label: 'Notes & Annotations',
23
+ items: ['Alert', 'Note', 'Comment', 'FreeTextColumn', 'SystemStatus'],
24
+ },
25
+ {
26
+ label: 'Export & Import',
27
+ items: ['Export', 'DataImport'],
28
+ },
29
+ {
30
+ label: 'ֵEditing',
31
+ items: ['PlusMinus', 'Shortcut', 'DataChangeHistory'],
32
+ },
33
+ {
34
+ label: 'Administration',
35
+ items: ['TeamSharing', 'StateManagement'],
36
+ },
45
37
  ];
38
+ const buildDefaultSettingsPanelNavigation = (customPanelNames = []) => {
39
+ const groups = exports.DEFAULT_SETTINGS_PANEL_NAVIGATION_GROUPS.map((group) => ({
40
+ label: group.label,
41
+ items: [...group.items],
42
+ }));
43
+ if (customPanelNames.length) {
44
+ groups.push({
45
+ label: 'Custom Panels',
46
+ items: [...customPanelNames],
47
+ });
48
+ }
49
+ return { groups };
50
+ };
51
+ exports.buildDefaultSettingsPanelNavigation = buildDefaultSettingsPanelNavigation;
@@ -84,6 +84,9 @@ function NumberFormatter(input, options = {}, rowNode, column, api) {
84
84
  if (options.Empty) {
85
85
  return ' ';
86
86
  }
87
+ if (n === 0 && options.ZeroDisplay !== undefined && options.ZeroDisplay !== '0') {
88
+ return options.ZeroDisplay;
89
+ }
87
90
  let s;
88
91
  let digitsToUse;
89
92
  const fractionsSepatator = options.FractionSeparator ?? '.';
@@ -199,6 +199,8 @@ function getScheduleDescription(schedule) {
199
199
  }
200
200
  case 'monthly':
201
201
  return `Monthly on day ${dayOfMonth} ${time}`;
202
+ case 'custom':
203
+ return schedule.CronExpression?.trim() || 'Custom Cron';
202
204
  default:
203
205
  return `${schedule.CronExpression ?? 'Custom'} ${time}`;
204
206
  }
@@ -48,3 +48,21 @@ export declare const toStyle: (style?: AdaptableStyle) => {
48
48
  borderStyle: string;
49
49
  };
50
50
  export declare const getVariableColor: (variable: string) => string;
51
+ /**
52
+ * Default surface colour assumed to sit *behind* a semi-transparent cell tint
53
+ * when computing auto-contrast text. Gradient cells paint a base colour at a
54
+ * value-driven alpha, so the colour the user actually perceives is that tint
55
+ * composited over the grid cell background (white in the default light theme).
56
+ */
57
+ export declare const DEFAULT_CELL_SURFACE_COLOR = "#ffffff";
58
+ /**
59
+ * Picks a readable text colour (near-black or white) for a cell whose
60
+ * background is `baseColor` painted at `alpha` over `surfaceColor`.
61
+ *
62
+ * The tint must be composited over the surface *before* measuring luminance:
63
+ * `tinycolor.getLuminance()` ignores the alpha channel, so measuring the raw
64
+ * base colour would yield the same result for a faint cell and a fully-opaque
65
+ * one — making auto-contrast text identical on every row instead of adapting
66
+ * per cell.
67
+ */
68
+ export declare const getAutoContrastTextColor: (baseColor: string, alpha: number, surfaceColor?: string) => string;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVariableColor = exports.toStyle = exports.convertCSSAbsoluteFontSizeToPt = exports.convertAdaptableStyleToCSS = exports.sanitizeStyle = exports.normalizeStyleForAgGrid = exports.AgGridCellStyleProperties = exports.omitCellBoxStyle = exports.omitCellFontStyle = exports.pickCellBoxStyle = exports.pickCellFontStyle = exports.hasCellBoxStyle = exports.hasCellFontStyle = exports.CELL_BOX_STYLE_KEYS = exports.CELL_FONT_STYLE_KEYS = void 0;
3
+ exports.getAutoContrastTextColor = exports.DEFAULT_CELL_SURFACE_COLOR = exports.getVariableColor = exports.toStyle = exports.convertCSSAbsoluteFontSizeToPt = exports.convertAdaptableStyleToCSS = exports.sanitizeStyle = exports.normalizeStyleForAgGrid = exports.AgGridCellStyleProperties = exports.omitCellBoxStyle = exports.omitCellFontStyle = exports.pickCellBoxStyle = exports.pickCellFontStyle = exports.hasCellBoxStyle = exports.hasCellFontStyle = exports.CELL_BOX_STYLE_KEYS = exports.CELL_FONT_STYLE_KEYS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const tinycolor2_1 = tslib_1.__importDefault(require("tinycolor2"));
4
6
  const EnumExtensions_1 = require("../Extensions/EnumExtensions");
5
7
  /**
6
8
  * Keys belonging to the "Font" slice (text rendering + alignment).
@@ -230,3 +232,30 @@ const getVariableColor = (variable) => {
230
232
  return getComputedStyle(document.documentElement).getPropertyValue(match[1]).trim();
231
233
  };
232
234
  exports.getVariableColor = getVariableColor;
235
+ /**
236
+ * Default surface colour assumed to sit *behind* a semi-transparent cell tint
237
+ * when computing auto-contrast text. Gradient cells paint a base colour at a
238
+ * value-driven alpha, so the colour the user actually perceives is that tint
239
+ * composited over the grid cell background (white in the default light theme).
240
+ */
241
+ exports.DEFAULT_CELL_SURFACE_COLOR = '#ffffff';
242
+ /**
243
+ * Luminance above which a (composited, opaque) background is considered "light"
244
+ * enough to need dark text.
245
+ */
246
+ const AUTO_CONTRAST_LUMINANCE_THRESHOLD = 0.45;
247
+ /**
248
+ * Picks a readable text colour (near-black or white) for a cell whose
249
+ * background is `baseColor` painted at `alpha` over `surfaceColor`.
250
+ *
251
+ * The tint must be composited over the surface *before* measuring luminance:
252
+ * `tinycolor.getLuminance()` ignores the alpha channel, so measuring the raw
253
+ * base colour would yield the same result for a faint cell and a fully-opaque
254
+ * one — making auto-contrast text identical on every row instead of adapting
255
+ * per cell.
256
+ */
257
+ const getAutoContrastTextColor = (baseColor, alpha, surfaceColor = exports.DEFAULT_CELL_SURFACE_COLOR) => {
258
+ const composited = tinycolor2_1.default.mix(surfaceColor, baseColor, alpha * 100);
259
+ return composited.getLuminance() > AUTO_CONTRAST_LUMINANCE_THRESHOLD ? '#111111' : '#ffffff';
260
+ };
261
+ exports.getAutoContrastTextColor = getAutoContrastTextColor;
@@ -141,10 +141,11 @@ const getZeroCentredGradientPreviewCellStyle = (cellValue, gradientStyle) => {
141
141
  }
142
142
  const alpha = Number((lo + t * (hi - lo)).toPrecision(4));
143
143
  let style = {};
144
- const bg = (0, tinycolor2_1.default)((0, StyleHelper_2.getVariableColor)(matchingRange.Color)).setAlpha(alpha);
144
+ const preparedColor = (0, StyleHelper_2.getVariableColor)(matchingRange.Color);
145
+ const bg = (0, tinycolor2_1.default)(preparedColor).setAlpha(alpha);
145
146
  style.backgroundColor = bg.toRgbString();
146
147
  if (gradientStyle.AutoContrastText) {
147
- style.color = bg.getLuminance() > 0.45 ? '#111111' : '#ffffff';
148
+ style.color = (0, StyleHelper_2.getAutoContrastTextColor)(preparedColor, alpha);
148
149
  }
149
150
  const autoContrastColor = gradientStyle.AutoContrastText && style.color ? style.color : undefined;
150
151
  if (gradientStyle.Font) {
@@ -206,10 +207,11 @@ const getGradientPreviewCellStyle = (cellValue, styledColumn, api, rowNode) => {
206
207
  }
207
208
  const alpha = Number((lo + t * (hi - lo)).toPrecision(4));
208
209
  if (cellBackColor) {
209
- const bg = (0, tinycolor2_1.default)((0, StyleHelper_2.getVariableColor)(cellBackColor)).setAlpha(alpha);
210
+ const preparedColor = (0, StyleHelper_2.getVariableColor)(cellBackColor);
211
+ const bg = (0, tinycolor2_1.default)(preparedColor).setAlpha(alpha);
210
212
  style.backgroundColor = bg.toRgbString();
211
213
  if (gradientStyle.AutoContrastText) {
212
- style.color = bg.getLuminance() > 0.45 ? '#111111' : '#ffffff';
214
+ style.color = (0, StyleHelper_2.getAutoContrastTextColor)(preparedColor, alpha);
213
215
  }
214
216
  }
215
217
  const autoContrastColor = gradientStyle.AutoContrastText && style.color ? style.color : undefined;
@@ -0,0 +1,3 @@
1
+ import { AdaptableApi } from '../../Api/AdaptableApi';
2
+ import { SettingsPanelNavigation, SettingsPanelOptions } from '../../AdaptableOptions/SettingsPanelOptions';
3
+ export declare const resolveSettingsPanelNavigation: (api: AdaptableApi, settingsPanelOptions: SettingsPanelOptions) => SettingsPanelNavigation;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveSettingsPanelNavigation = void 0;
4
+ const DefaultSettingsPanel_1 = require("../Defaults/DefaultSettingsPanel");
5
+ const cloneSettingsPanelNavigation = (navigation) => ({
6
+ groups: navigation.groups.map((group) => ({
7
+ label: group.label,
8
+ items: [...group.items],
9
+ })),
10
+ });
11
+ const resolveSettingsPanelNavigation = (api, settingsPanelOptions) => {
12
+ const defaultNavigation = (0, DefaultSettingsPanel_1.buildDefaultSettingsPanelNavigation)(settingsPanelOptions.customSettingsPanels?.map((panel) => panel.name) ?? []);
13
+ if (!settingsPanelOptions.navigation) {
14
+ return defaultNavigation;
15
+ }
16
+ const context = api.internalApi.buildBaseContext();
17
+ return settingsPanelOptions.navigation(context, cloneSettingsPanelNavigation(defaultNavigation));
18
+ };
19
+ exports.resolveSettingsPanelNavigation = resolveSettingsPanelNavigation;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getScopeViewItems = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const StringExtensions_1 = tslib_1.__importDefault(require("./Extensions/StringExtensions"));
6
+ const columnScopeTagHelpers_1 = require("../components/Tag/columnScopeTagHelpers");
6
7
  const getScopeViewItems = (scope, api) => {
7
8
  let values = [];
8
9
  if ('ColumnIds' in scope && Array.isArray(scope.ColumnIds)) {
@@ -24,6 +25,7 @@ const getScopeViewItems = (scope, api) => {
24
25
  label: 'Columns',
25
26
  name: 'Target',
26
27
  values,
28
+ tagVariant: (0, columnScopeTagHelpers_1.getScopeViewItemsTagVariant)(scope),
27
29
  };
28
30
  };
29
31
  exports.getScopeViewItems = getScopeViewItems;
@@ -0,0 +1,10 @@
1
+ import type { SimpleButtonProps } from '../components/SimpleButton';
2
+ /** Selected wizard option — Tailwind overrides SimpleButton outlined defaults. */
3
+ export declare const WIZARD_SELECTION_ACTIVE_CLASSES: string;
4
+ /** Unselected wizard option — muted so the active choice reads immediately. */
5
+ export declare const WIZARD_SELECTION_INACTIVE_CLASSES: string;
6
+ export type CollapsibleWizardCardSurface = 'popup' | 'panel';
7
+ export declare const getCollapsibleWizardCardCollapsedClasses: (surface?: CollapsibleWizardCardSurface) => string;
8
+ export declare const getCollapsibleWizardCardExpandedClasses: (surface?: CollapsibleWizardCardSurface) => string;
9
+ export declare const wizardSelectionButtonClassName: (selected: boolean, className?: string) => string;
10
+ export declare const wizardSelectionSimpleButtonProps: (selected: boolean, className?: string) => Pick<SimpleButtonProps, "variant" | "tone" | "className">;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wizardSelectionSimpleButtonProps = exports.wizardSelectionButtonClassName = exports.getCollapsibleWizardCardExpandedClasses = exports.getCollapsibleWizardCardCollapsedClasses = exports.WIZARD_SELECTION_INACTIVE_CLASSES = exports.WIZARD_SELECTION_ACTIVE_CLASSES = void 0;
4
+ const utils_1 = require("../lib/utils");
5
+ /** Selected wizard option — Tailwind overrides SimpleButton outlined defaults. */
6
+ exports.WIZARD_SELECTION_ACTIVE_CLASSES = (0, utils_1.cn)('ab-WizardSelection--active', 'twa:!border-[var(--ab-cmp-wizard-selection__border)]', 'twa:!bg-[var(--ab-cmp-wizard-selection__background)]', 'twa:!text-accent', 'twa:font-medium');
7
+ /** Unselected wizard option — muted so the active choice reads immediately. */
8
+ exports.WIZARD_SELECTION_INACTIVE_CLASSES = (0, utils_1.cn)('twa:!border-[color-mix(in_srgb,var(--ab-color-primarydark)_40%,transparent)]', 'twa:!text-[color-mix(in_srgb,var(--ab-color-foreground)_55%,transparent)]');
9
+ const getCollapsibleWizardCardCollapsedClasses = (surface = 'popup') => (0, utils_1.cn)(surface === 'panel'
10
+ ? 'twa:border-[var(--ab-cmp-collapsible-wizard-card__collapsed-border)] twa:bg-card'
11
+ : 'twa:border-[var(--ab-cmp-collapsible-wizard-card__collapsed-border-popup)]');
12
+ exports.getCollapsibleWizardCardCollapsedClasses = getCollapsibleWizardCardCollapsedClasses;
13
+ const getCollapsibleWizardCardExpandedClasses = (surface = 'popup') => (0, utils_1.cn)('ab-CollapsibleWizardCard--expanded', 'twa:border-[var(--ab-cmp-collapsible-wizard-card__expanded-border)]', surface === 'panel' && 'twa:bg-card', 'twa:p-0');
14
+ exports.getCollapsibleWizardCardExpandedClasses = getCollapsibleWizardCardExpandedClasses;
15
+ const wizardSelectionButtonClassName = (selected, className) => (0, utils_1.cn)('ab-WizardSelection', selected ? exports.WIZARD_SELECTION_ACTIVE_CLASSES : exports.WIZARD_SELECTION_INACTIVE_CLASSES, className);
16
+ exports.wizardSelectionButtonClassName = wizardSelectionButtonClassName;
17
+ const wizardSelectionSimpleButtonProps = (selected, className) => ({
18
+ variant: 'outlined',
19
+ tone: 'none',
20
+ className: (0, exports.wizardSelectionButtonClassName)(selected, className),
21
+ });
22
+ exports.wizardSelectionSimpleButtonProps = wizardSelectionSimpleButtonProps;
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const CheckBox_1 = require("../../../components/CheckBox");
8
- const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
8
+ const DropdownButton_1 = require("../../../components/DropdownButton");
9
9
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
10
10
  const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
11
11
  const StringExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/StringExtensions"));
@@ -49,7 +49,7 @@ const OptionInput = (props) => {
49
49
  label: StringExtensions_1.default.Humanize(str),
50
50
  onClick: () => props.onChange({ ...option, value: str }),
51
51
  }));
52
- input = ((0, jsx_runtime_1.jsx)(DropdownButton_1.default, { ...inputProps, columns: ['label'], items: options, children: StringExtensions_1.default.Humanize(value) }));
52
+ input = ((0, jsx_runtime_1.jsx)(DropdownButton_1.NewDropdownButton, { className: "twa:min-w-[200px] twa:mr-2", items: options, children: StringExtensions_1.default.Humanize(value) }));
53
53
  }
54
54
  else {
55
55
  switch (option.kind) {
@@ -4,7 +4,7 @@ exports.UIOptionsSidebarForm = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const CheckBox_1 = require("../../../../components/CheckBox");
7
- const DropdownButton_1 = tslib_1.__importDefault(require("../../../../components/DropdownButton"));
7
+ const DropdownButton_1 = require("../../../../components/DropdownButton");
8
8
  const FormLayout_1 = tslib_1.__importStar(require("../../../../components/FormLayout"));
9
9
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/HelpBlock"));
10
10
  const StringExtensions_1 = tslib_1.__importDefault(require("../../../../Utilities/Extensions/StringExtensions"));
@@ -77,7 +77,7 @@ const UIOptionsSidebarForm = (props) => {
77
77
  };
78
78
  props.onChange(newGridOptions);
79
79
  };
80
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)(HelpBlock_1.default, { children: "Tool Panels" }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:m-2", children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:mb-2", children: ALL_SIDEBAR_OPTIONS.map(renderSidebarCheckbox) }), (0, jsx_runtime_1.jsx)(FormLayout_1.default, { columns: [{ name: 'label' }, { name: 'children' }], children: (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Position", children: (0, jsx_runtime_1.jsx)(DropdownButton_1.default, { columns: ['label'], items: [
80
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)(HelpBlock_1.default, { children: "Tool Panels" }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:m-2", children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:mb-2", children: ALL_SIDEBAR_OPTIONS.map(renderSidebarCheckbox) }), (0, jsx_runtime_1.jsx)(FormLayout_1.default, { columns: [{ name: 'label' }, { name: 'children' }], children: (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Position", children: (0, jsx_runtime_1.jsx)(DropdownButton_1.NewDropdownButton, { items: [
81
81
  { label: 'Left', onClick: () => handleSidebarPositionChange('left') },
82
82
  { label: 'Right', onClick: () => handleSidebarPositionChange('right') },
83
83
  ], children: sidebarPosition === 'left' ? 'Left' : 'Right' }) }) })] })] }));
@@ -8,8 +8,8 @@ const ModuleManager_1 = require("../../../../components/DragAndDropContext/Modul
8
8
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/HelpBlock"));
9
9
  const FormLayout_1 = tslib_1.__importStar(require("../../../../components/FormLayout"));
10
10
  const Input_1 = tslib_1.__importDefault(require("../../../../components/Input"));
11
- const SimpleButton_1 = tslib_1.__importDefault(require("../../../../components/SimpleButton"));
12
- const DropdownButton_1 = tslib_1.__importDefault(require("../../../../components/DropdownButton"));
11
+ const ButtonNew_1 = require("../../../Components/Buttons/ButtonNew");
12
+ const DropdownButton_1 = require("../../../../components/DropdownButton");
13
13
  const FormBox_1 = require("../Components/FormBox");
14
14
  const Flex_1 = require("../../../../components/Flex");
15
15
  const UIOptionsStatusbarForm = (props) => {
@@ -95,7 +95,7 @@ const UIOptionsStatusbarForm = (props) => {
95
95
  },
96
96
  });
97
97
  };
98
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)(HelpBlock_1.default, { children: "Status Bar" }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:p-2", children: [(0, jsx_runtime_1.jsxs)(FormBox_1.NocodeWizardFormBox, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { as: "b", children: "Create Adaptable Statusbar Panel" }), (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { className: "twa:mt-2", children: [(0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Panel Name", children: (0, jsx_runtime_1.jsx)(Input_1.default, { value: adaptablePanelTitle, placeholder: 'Adaptable Panel Name', onChange: (event) => setAdaptablePanelTitle(event.target.value) }) }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Align", children: (0, jsx_runtime_1.jsx)(DropdownButton_1.default, { columns: ['label'], items: alignOptions, children: alignOptions.find((option) => option.value === adaptablePanelAlign)?.label }) }), (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "", children: [(0, jsx_runtime_1.jsx)(SimpleButton_1.default, { disabled: !isAdaptablePanelTitleAvailable, onClick: handleNewAdaptablePanel, icon: "plus", variant: "raised", children: "Add" }), !isAdaptablePanelTitleAvailable && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mt-2 twa:text-error", children: "Adaptable panel name must be unique." }))] })] })] }), (0, jsx_runtime_1.jsx)(ModuleManager_1.ModuleManager, { permittedActions: {
98
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)(HelpBlock_1.default, { children: "Status Bar" }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:p-2", children: [(0, jsx_runtime_1.jsxs)(FormBox_1.NocodeWizardFormBox, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { as: "b", children: "Create Adaptable Statusbar Panel" }), (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { className: "twa:mt-2", children: [(0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Panel Name", children: (0, jsx_runtime_1.jsx)(Input_1.default, { value: adaptablePanelTitle, placeholder: 'Adaptable Panel Name', onChange: (event) => setAdaptablePanelTitle(event.target.value) }) }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Align", children: (0, jsx_runtime_1.jsx)(DropdownButton_1.NewDropdownButton, { items: alignOptions, children: alignOptions.find((option) => option.value === adaptablePanelAlign)?.label }) }), (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "", children: [(0, jsx_runtime_1.jsx)(ButtonNew_1.ButtonNew, { disabled: !isAdaptablePanelTitleAvailable, onClick: handleNewAdaptablePanel, children: "Add" }), !isAdaptablePanelTitleAvailable && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mt-2 twa:text-destructive", children: "Adaptable panel name must be unique." }))] })] })] }), (0, jsx_runtime_1.jsx)(ModuleManager_1.ModuleManager, { permittedActions: {
99
99
  createTab: false,
100
100
  dragAndDropTab: false,
101
101
  deleteTab: false,
@@ -4,6 +4,7 @@ exports.AlertViewPanelControl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const React = tslib_1.__importStar(require("react"));
7
+ const utils_1 = require("../../lib/utils");
7
8
  const react_redux_1 = require("react-redux");
8
9
  const InternalRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/InternalRedux"));
9
10
  const AdaptablePopover_1 = require("../AdaptablePopover");
@@ -11,7 +12,6 @@ const getAlertButtonStyle_1 = require("./Utilities/getAlertButtonStyle");
11
12
  const ActiveAlertsPanel_1 = require("./ActiveAlertsPanel");
12
13
  const Flex_1 = require("../../components/Flex");
13
14
  const ButtonClear_1 = require("../Components/Buttons/ButtonClear");
14
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
15
15
  class AlertViewPanelComponent extends React.Component {
16
16
  constructor(props) {
17
17
  super(props);
@@ -35,7 +35,7 @@ class AlertViewPanelComponent extends React.Component {
35
35
  const alertsPanel = (0, jsx_runtime_1.jsx)(ActiveAlertsPanel_1.ActiveAlertsPanel, {});
36
36
  const isToolbar = this.props.viewType === 'Toolbar';
37
37
  const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
38
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "stretch", className: (0, clsx_1.default)(`ab-${elementType}__Alert__wrap twa:gap-1`, {
38
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "stretch", className: (0, utils_1.cn)(`ab-${elementType}__Alert__wrap twa:gap-1`, {
39
39
  'twa:min-w-[140px] twa:w-[140px]': isToolbar,
40
40
  [`twa:flex-1`]: !isToolbar,
41
41
  }), children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: `ab-${elementType}__Alert__text twa:flex-1 twa:rounded-standard twa:p-2 text-2 twa:items-center twa:justify-center twa:min-h-input`, style: { color: buttonTextColor, backgroundColor: buttonBackground }, children: collapsedText }, `${buttonTextColor}_${buttonBackground}_${collapsedText}`), this.props.AdaptableAlerts.length > 0 && ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: 'twa:gap-1', children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:flex twa:box-border", children: (0, jsx_runtime_1.jsx)(ButtonClear_1.ButtonClear, { "aria-label": 'Clear All Alerts', variant: 'outlined', className: `ab-${elementType}__Alert__clear`, onClick: () => this.props.onDeleteAllAlert(this.state.Alerts), tooltip: "Clear All Alerts", showText: this.props.viewType === 'ToolPanel', children: 'Clear Alerts' }) }), (0, jsx_runtime_1.jsx)(AdaptablePopover_1.AdaptablePopover, { className: `ab-${elementType}__Alert__info`, headerText: "Alerts Details", bodyText: [alertsPanel], MessageType: 'Info', useButton: true, showEvent: 'focus', hideEvent: "blur", popoverMinWidth: 400 })] }))] }));
@@ -10,10 +10,13 @@ const getAlertButtonStyle = (alerts) => {
10
10
  const buttonTextColor = UIHelper_1.default.getButtonTextColourForArrayandMessageType(alerts, messageType);
11
11
  let cssClasses = '';
12
12
  if (alerts?.length) {
13
- const cssMessageType = UIHelper_1.default.getCSSColorByMessageType(messageType);
14
- cssClasses = cssMessageType
15
- ? `twa:bg-${cssMessageType} twa:text-text-on-${cssMessageType}`
16
- : '';
13
+ cssClasses =
14
+ {
15
+ Info: `twa:bg-info twa:text-info-foreground`,
16
+ Success: `twa:bg-success twa:text-success-foreground`,
17
+ Warning: `twa:bg-warning twa:text-warning-foreground`,
18
+ Error: `twa:bg-destructive twa:text-destructive-foreground`,
19
+ }[messageType] || '';
17
20
  }
18
21
  return {
19
22
  color: buttonTextColor,
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import { AlertDefinition } from '../../../AdaptableState/AlertState';
3
3
  import { AdaptableApi } from '../../../types';
4
4
  import { AlertType } from '../Utilities/getAlertType';
5
- export declare const renderAlertBehaviourWizardSummary: (alertDefinition: AlertDefinition) => React.JSX.Element;
6
5
  export declare const renderAlertBehaviourSummary: (alert: AlertDefinition, api: AdaptableApi, allowWrap?: boolean) => React.JSX.Element;
7
6
  type AlertBehaviourWizardSectionProps = {
8
7
  onChange: (data: AlertDefinition) => void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AlertBehaviourWizardSection = exports.renderAlertBehaviourSummary = exports.renderAlertBehaviourWizardSummary = void 0;
3
+ exports.AlertBehaviourWizardSection = exports.renderAlertBehaviourSummary = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const ScheduledAlertHelper_1 = require("../../../Utilities/Helpers/ScheduledAlertHelper");
@@ -43,11 +43,6 @@ const HighlightStyle = (props) => {
43
43
  props.onChange(style);
44
44
  } }) }) }))] }));
45
45
  };
46
- const renderAlertBehaviourWizardSummary = (alertDefinition) => {
47
- const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
48
- return (0, exports.renderAlertBehaviourSummary)(alertDefinition, api);
49
- };
50
- exports.renderAlertBehaviourWizardSummary = renderAlertBehaviourWizardSummary;
51
46
  const renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
52
47
  const { AlertProperties = {} } = alert;
53
48
  const ruleProperties = (0, ScheduledAlertHelper_1.isRuleBasedAlertDefinition)(alert)
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AlertButtonsEditor = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const ButtonNew_1 = require("../../Components/Buttons/ButtonNew");
6
7
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
7
8
  const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
8
9
  const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
@@ -85,7 +86,7 @@ const AlertButtonsEditor = (props) => {
85
86
  buttonCommands.push(ch.name);
86
87
  });
87
88
  }
88
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mt-3", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", justifyContent: "space-between", className: "twa:mb-3", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2 twa:max-w-[520px]", children: "Add buttons to the notification and set actions to perform when clicked" }), (0, jsx_runtime_1.jsx)(SimpleButton_1.default, { icon: "plus", onClick: () => {
89
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:mt-3", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", justifyContent: "space-between", className: "twa:mb-3", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2 twa:max-w-[520px]", children: "Add buttons to the notification and set actions to perform when clicked" }), (0, jsx_runtime_1.jsx)(ButtonNew_1.ButtonNew, { onClick: () => {
89
90
  onChange([
90
91
  ...(AlertButtons || []),
91
92
  {
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { AlertDefinition } from '../../../AdaptableState/AlertState';
3
3
  import { AlertType } from '../Utilities/getAlertType';
4
- export declare const renderAlertMessageSummary: (alertType?: AlertType) => React.JSX.Element;
4
+ export declare const renderAlertMessageSummary: (alertType: AlertType | undefined, data: AlertDefinition) => React.JSX.Element;
5
5
  type AlertDisplayWizardSectionProps = {
6
6
  onChange: (data: AlertDefinition) => void;
7
7
  alertType: AlertType;
@@ -13,8 +13,7 @@ const Textarea_1 = tslib_1.__importDefault(require("../../../components/Textarea
13
13
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
14
14
  const Flex_1 = require("../../../components/Flex");
15
15
  const Card_1 = require("../../../components/Card");
16
- const renderAlertMessageSummary = (alertType) => {
17
- const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
16
+ const renderAlertMessageSummary = (alertType, data) => {
18
17
  if (alertType === getAlertType_1.AlertType.Scheduled) {
19
18
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(OnePageAdaptableWizard_1.SummaryText, { children: ["Message Type: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: data.MessageType })] }), (0, jsx_runtime_1.jsxs)(OnePageAdaptableWizard_1.SummaryText, { children: ["Header: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: data.MessageHeader || 'Not specified' })] }), (0, jsx_runtime_1.jsxs)(OnePageAdaptableWizard_1.SummaryText, { children: ["Body: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: data.MessageText || 'Not specified' })] })] }));
20
19
  }
@@ -3,7 +3,7 @@ import { AlertDefinition } from '../../../AdaptableState/AlertState';
3
3
  import { AdaptableApi } from '../../../types';
4
4
  import { AlertType } from '../Utilities/getAlertType';
5
5
  import { BoxProps } from '../../../components/Flex';
6
- export declare const renderAlertNotificationSummary: () => React.JSX.Element;
6
+ export declare const renderAlertNotificationSummary: (data: AlertDefinition, api: AdaptableApi) => React.JSX.Element;
7
7
  interface AlertPreviewProps extends BoxProps {
8
8
  className?: string;
9
9
  style?: React.CSSProperties;
@@ -4,6 +4,7 @@ exports.AlertNotificationWizardSection = exports.AlertPreview = exports.renderAl
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const React = tslib_1.__importStar(require("react"));
7
+ const utils_1 = require("../../../lib/utils");
7
8
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
8
9
  const CheckBox_1 = require("../../../components/CheckBox");
9
10
  const AdaptablePopupAlert_1 = require("../../Components/Popups/AdaptablePopupAlert");
@@ -12,10 +13,8 @@ const getAlertType_1 = require("../Utilities/getAlertType");
12
13
  const ScheduledAlertHelper_1 = require("../../../Utilities/Helpers/ScheduledAlertHelper");
13
14
  const alertFormHelper_1 = require("../../../Utilities/Helpers/alertFormHelper");
14
15
  const Flex_1 = require("../../../components/Flex");
15
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
16
16
  const Card_1 = require("../../../components/Card");
17
- const renderAlertNotificationSummary = () => {
18
- const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
17
+ const renderAlertNotificationSummary = (data, api) => {
19
18
  if (!data.AlertProperties?.DisplayNotification) {
20
19
  return (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2", children: "No Alert Notification will be displayed" });
21
20
  }
@@ -57,7 +56,7 @@ const AlertPreview = ({ alertDefinition, api, focusFirstButton, ...boxProps }) =
57
56
  };
58
57
  return result;
59
58
  }, [alertDefinition, api, mapButtons]);
60
- return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { ...boxProps, className: (0, clsx_1.default)('ab-AlertPreview', boxProps.className), style: {
59
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { ...boxProps, className: (0, utils_1.cn)('ab-AlertPreview', boxProps.className), style: {
61
60
  border: '1px solid var(--ab-color-input-border)',
62
61
  ...boxProps.style,
63
62
  }, children: (0, jsx_runtime_1.jsx)(AdaptablePopupAlert_1.AdaptablePopupAlert, { headless: true, focusFirstButton: focusFirstButton, adaptableAlert: alertToPreview, onClose: () => { } }) }));