@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
@@ -9,9 +9,9 @@ const ButtonClone_1 = require("./ButtonClone");
9
9
  const ButtonDelete_1 = require("./ButtonDelete");
10
10
  const ButtonShare_1 = require("./ButtonShare");
11
11
  const SuspendToggleButton_1 = require("./SuspendToggleButton/SuspendToggleButton");
12
+ const utils_1 = require("../../../lib/utils");
12
13
  const GeneralConstants_1 = require("../../../Utilities/Constants/GeneralConstants");
13
14
  const Flex_1 = require("../../../components/Flex");
14
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
15
15
  const stopPropagation = (e) => {
16
16
  e.stopPropagation();
17
17
  };
@@ -36,12 +36,12 @@ class EntityListActionButtons extends React.Component {
36
36
  };
37
37
  render() {
38
38
  const { justifyContent } = this.props;
39
- const justifyContentClassName = (0, clsx_1.default)({
39
+ const justifyContentClassName = (0, utils_1.cn)({
40
40
  'twa:justify-start': justifyContent === 'start',
41
41
  'twa:justify-center': justifyContent === 'center',
42
42
  'twa:justify-end': justifyContent === 'end',
43
43
  }) || 'twa:justify-center';
44
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: `${justifyContentClassName} twa:m-0 twa:p-0`, onClick: stopPropagation, children: [this.props.showEdit && ((0, jsx_runtime_1.jsx)(ButtonEdit_1.ButtonEdit, { onClick: () => (this.props.editClick ? this.props.editClick() : null), className: `twa:ml-0 twa:mr-[2px] twa:my-[2px] twa:text-text-on-edit twa:bg-action-edit twa:fill-text-on-edit`, disabled: this.props.overrideDisableEdit || this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipEdit, accessLevel: this.props.accessLevel })), this.props.showClone && ((0, jsx_runtime_1.jsx)(ButtonClone_1.ButtonClone, { onClick: () => (this.props.cloneClick ? this.props.cloneClick() : null), className: `twa:ml-0 twa:mr-[2px] twa:my-[2px] twa:text-text-on-clone twa:bg-action-clone twa:fill-text-on-clone`, children: null, disabled: this.props.overrideDisableClone || this.props.cloneAccessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipClone, accessLevel: this.props.cloneAccessLevel })), this.props.showDelete && ((0, jsx_runtime_1.jsx)(ButtonDelete_1.ButtonDelete, { "data-name": "delete", className: `twa:mx-[px] twa:my-[2px] twa:text-text-on-delete twa:bg-action-delete twa:fill-text-on-delete`, disabled: this.props.overrideDisableDelete || this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipDelete, ConfirmAction: this.props.confirmDeleteAction, ConfirmationMsg: 'Are you sure you want to delete this ' + this.props.entityType + '?', ConfirmationTitle: 'Delete ' + this.props.entityType, accessLevel: this.props.accessLevel })), this.props.showShare && ((0, jsx_runtime_1.jsx)(ButtonShare_1.ButtonShare, { className: `twa:mx-[1px] twa:my-[2px] twa:text-text-on-share twa:bg-action-share twa:fill-text-on-share`, onShare: (config) => this.props.shareClick ? this.props.shareClick(config) : null, Header: `TeamSharing ${this.props.entityType}`, disabled: this.props.overrideDisableShare || this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipShare, accessLevel: this.props.accessLevel })), this.props.showSuspend && this.props.suspendableObject && ((0, jsx_runtime_1.jsx)(SuspendToggleButton_1.SuspendToggleButton, { className: `twa:ml-[2px] twa:align-self-center`, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend, suspendableObject: this.props.suspendableObject, disabled: this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY }))] }));
44
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: `${justifyContentClassName} twa:m-0 twa:p-0`, onClick: stopPropagation, children: [this.props.showEdit && ((0, jsx_runtime_1.jsx)(ButtonEdit_1.ButtonEdit, { onClick: () => (this.props.editClick ? this.props.editClick() : null), className: `twa:ml-0 twa:mr-[2px] twa:my-[2px] twa:text-action-edit-foreground twa:bg-action-edit twa:fill-action-edit-foreground`, disabled: this.props.overrideDisableEdit || this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipEdit, accessLevel: this.props.accessLevel })), this.props.showClone && ((0, jsx_runtime_1.jsx)(ButtonClone_1.ButtonClone, { onClick: () => (this.props.cloneClick ? this.props.cloneClick() : null), className: `twa:ml-0 twa:mr-[2px] twa:my-[2px] twa:text-action-clone-foreground twa:bg-action-clone twa:fill-action-clone-foreground`, children: null, disabled: this.props.overrideDisableClone || this.props.cloneAccessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipClone, accessLevel: this.props.cloneAccessLevel })), this.props.showDelete && ((0, jsx_runtime_1.jsx)(ButtonDelete_1.ButtonDelete, { "data-name": "delete", className: `twa:mx-[px] twa:my-[2px] twa:text-action-delete-foreground twa:bg-action-delete twa:fill-action-delete-foreground`, disabled: this.props.overrideDisableDelete || this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipDelete, ConfirmAction: this.props.confirmDeleteAction, ConfirmationMsg: 'Are you sure you want to delete this ' + this.props.entityType + '?', ConfirmationTitle: 'Delete ' + this.props.entityType, accessLevel: this.props.accessLevel })), this.props.showShare && ((0, jsx_runtime_1.jsx)(ButtonShare_1.ButtonShare, { className: `twa:mx-[1px] twa:my-[2px] twa:text-action-share-foreground twa:bg-action-share twa:fill-action-share-foreground`, onShare: (config) => this.props.shareClick ? this.props.shareClick(config) : null, Header: `TeamSharing ${this.props.entityType}`, disabled: this.props.overrideDisableShare || this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipShare, accessLevel: this.props.accessLevel })), this.props.showSuspend && this.props.suspendableObject && ((0, jsx_runtime_1.jsx)(SuspendToggleButton_1.SuspendToggleButton, { className: `twa:ml-[2px] twa:align-self-center`, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend, suspendableObject: this.props.suspendableObject, disabled: this.props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY }))] }));
45
45
  }
46
46
  }
47
47
  exports.EntityListActionButtons = EntityListActionButtons;
@@ -6,7 +6,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const ToggleButton_1 = require("../../../../components/ToggleButton");
8
8
  const GeneralConstants_1 = require("../../../../Utilities/Constants/GeneralConstants");
9
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
9
+ const utils_1 = require("../../../../lib/utils");
10
10
  exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSuspend, style, disabled, accessLevel, className }) => {
11
11
  const handleOnChange = React.useCallback((checked) => {
12
12
  if (checked) {
@@ -18,5 +18,5 @@ exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSu
18
18
  }, [onUnSuspend, onSuspend]);
19
19
  const preparedDisabled = (accessLevel && accessLevel === GeneralConstants_1.ACCESS_LEVEL_READ_ONLY) || disabled;
20
20
  const isSuspended = suspendableObject.IsSuspended;
21
- return ((0, jsx_runtime_1.jsx)(ToggleButton_1.ToggleButton, { className: (0, clsx_1.default)(`ab-SuspendButton`, className), "data-name": suspendableObject.IsSuspended ? 'un-suspend' : 'suspend', disabled: preparedDisabled, style: style, onChange: handleOnChange, checked: !isSuspended, children: isSuspended ? 'inactive' : 'active' }));
21
+ return ((0, jsx_runtime_1.jsx)(ToggleButton_1.ToggleButton, { className: (0, utils_1.cn)(`ab-SuspendButton`, className), "data-name": suspendableObject.IsSuspended ? 'un-suspend' : 'suspend', disabled: preparedDisabled, style: style, onChange: handleOnChange, checked: !isSuspended, children: isSuspended ? 'inactive' : 'active' }));
22
22
  });
@@ -11,7 +11,6 @@ const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
11
11
  const AdaptableContext_1 = require("../../AdaptableContext");
12
12
  const utils_1 = require("./utils");
13
13
  const Flex_1 = require("../../../components/Flex");
14
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
15
14
  const twMerge_1 = require("../../../twMerge");
16
15
  const NewSelect_1 = require("../../../components/NewSelect");
17
16
  const columnFilterLocation_1 = require("./columnFilterLocation");
@@ -143,7 +142,7 @@ const ColumnFilterComponent = (props) => {
143
142
  .map((qlPredicate) => (0, utils_1.mapQlPredicateToAdaptablePredicate)(qlPredicate))
144
143
  .some((adaptablePredicate) => adaptable.api.predicateApi.isValidPredicate(adaptablePredicate));
145
144
  };
146
- return ((0, jsx_runtime_1.jsxs)("div", { ref: rootRef, onKeyDown: handleFocusTrap, className: "twa:contents", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: (0, clsx_1.default)({
145
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: rootRef, onKeyDown: handleFocusTrap, className: "twa:contents", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: (0, utils_2.cn)({
147
146
  'twa:pb-2': !props.hideActionButtons,
148
147
  'twa:mb-2': (0, columnFilterLocation_1.isEmbeddedColumnFilterLocation)(props.location),
149
148
  'twa:mt-2 twa:ml-2 twa:mr-2': props.location === 'columnMenu',
@@ -82,7 +82,6 @@ const ColumnFilterInput = (props) => {
82
82
  } }));
83
83
  }
84
84
  if (usePrimitiveInputs === false && (type === 'number' || type === 'text')) {
85
- // we use the permitted values selector
86
85
  return ((0, jsx_runtime_1.jsx)(PermittedValuesSelector_1.PermittedValuesSelector, { allowNewValues: true, searchable: 'inline', value: liveValue, columnId: columnId, onFocus: onFocus, onBlur: onBlur, onChange: (value) => {
87
86
  if (value == undefined) {
88
87
  onClear();
@@ -40,7 +40,9 @@ const ColumnFilterInputList = (props) => {
40
40
  }
41
41
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (matchingInputs ?? []).map((input, index) => {
42
42
  const value = props?.predicate?.args?.[index];
43
- return ((0, jsx_runtime_1.jsx)(ColumnFilterInput_1.ColumnFilterInput, { columnId: props.columnId, usePrimitiveInputs: false, disabled: props.disabled, type: input, value: value, onKeyDown: props.onKeyDown, onClear: () => {
43
+ const operator = props.predicate?.operator;
44
+ const usePermittedValuesSelector = input === 'number' || operator === 'Is' || operator === 'IsNot';
45
+ return ((0, jsx_runtime_1.jsx)(ColumnFilterInput_1.ColumnFilterInput, { columnId: props.columnId, usePrimitiveInputs: !usePermittedValuesSelector, disabled: props.disabled, type: input, value: value, onKeyDown: props.onKeyDown, onClear: () => {
44
46
  const args = [...props.predicate.args];
45
47
  args.splice(index, 1);
46
48
  const newPredicate = {
@@ -7,8 +7,8 @@ const React = tslib_1.__importStar(require("react"));
7
7
  const Panel_1 = tslib_1.__importDefault(require("../../../../components/Panel"));
8
8
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../../components/SimpleButton"));
9
9
  const Flex_1 = require("../../../../components/Flex");
10
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
11
10
  const react_1 = require("react");
11
+ const utils_1 = require("../../../../lib/utils");
12
12
  const ColumnFilterMenuItem = ({ active, onClick, icon, label, }) => {
13
13
  return ((0, jsx_runtime_1.jsxs)(SimpleButton_1.default, { className: "twa:p-1 twa:w-full", variant: "text", tone: active ? 'info' : 'none', onClick: onClick, "aria-label": label, children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2", children: icon }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2", children: label })] }));
14
14
  };
@@ -63,7 +63,7 @@ const ColumnFilterMenu = (props) => {
63
63
  }, [confirm]);
64
64
  return ((0, jsx_runtime_1.jsx)(Panel_1.default, { className: "twa:min-w-max", children: props.predicateDefs?.map((predicateDef, index) => {
65
65
  const active = activeIndex === index;
66
- return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: (0, clsx_1.default)('twa:mb-1', active && 'twa:bg-primarylight'), onMouseDownCapture: (e) => {
66
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: (0, utils_1.cn)('twa:mb-1', active && 'twa:bg-primarylight'), onMouseDownCapture: (e) => {
67
67
  e.stopPropagation();
68
68
  e.preventDefault();
69
69
  }, children: (0, jsx_runtime_1.jsx)(ColumnFilterMenuItem, { onClick: () => confirm(predicateDef), icon: predicateDef.icon, label: predicateDef.label, active: active }) }, index));
@@ -1,12 +1,24 @@
1
1
  import * as React from 'react';
2
2
  import { AdaptableColumn } from '../../../types';
3
+ import { ValueSelectorProps } from '../ValueSelector';
3
4
  type NewColumnSelectorProps = {
4
5
  availableColumns: AdaptableColumn[];
5
6
  selected: string[];
6
7
  singleSelect?: boolean;
8
+ /** External filter text (legacy — prefer `compactColumnList` inline search). */
7
9
  columnFilterText?: string;
8
10
  allowReorder?: boolean;
9
11
  onChange?: (colIds: string[]) => void;
12
+ /** Layout wizard pattern: compact header with inline search beside selection controls. */
13
+ compactColumnList?: boolean;
14
+ compact?: ValueSelectorProps<AdaptableColumn, string>['compact'];
15
+ showFilterInput?: ValueSelectorProps<AdaptableColumn, string>['showFilterInput'];
16
+ filterPlaceholder?: string;
17
+ compactHeaderClassName?: string;
18
+ compactFilterClassName?: string;
19
+ hideShowSelectedOnly?: boolean;
20
+ optionClassName?: string;
21
+ className?: string;
10
22
  };
11
23
  export declare const NewColumnSelector: ({ allowReorder, ...props }: NewColumnSelectorProps) => React.JSX.Element;
12
24
  export {};
@@ -5,14 +5,38 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const ValueSelector_1 = require("../ValueSelector");
7
7
  const ColumnGroupTag_1 = require("../ColumnGroupTag");
8
+ const utils_1 = require("../../../lib/utils");
9
+ const wizardColumnListStyles_1 = require("../wizardColumnListStyles");
8
10
  const NewColumnSelector = ({ allowReorder = true, ...props }) => {
9
- const { columnFilterText, availableColumns, selected, onChange, singleSelect } = props;
11
+ const { columnFilterText, availableColumns, selected, onChange, singleSelect, compactColumnList, compact, showFilterInput, filterPlaceholder, compactHeaderClassName, compactFilterClassName, hideShowSelectedOnly, optionClassName, className, } = props;
12
+ const useCompactColumnList = compactColumnList ?? false;
13
+ const effectiveCompact = useCompactColumnList || compact;
14
+ const effectiveShowFilterInput = useCompactColumnList || showFilterInput;
15
+ const effectiveFilterPlaceholder = filterPlaceholder ?? (useCompactColumnList ? 'Search Columns...' : undefined);
16
+ const effectiveCompactHeaderClassName = compactHeaderClassName ??
17
+ (useCompactColumnList ? wizardColumnListStyles_1.WIZARD_COLUMN_LIST_HEADER_CLASS : undefined);
18
+ const effectiveCompactFilterClassName = compactFilterClassName ??
19
+ (useCompactColumnList ? wizardColumnListStyles_1.WIZARD_COLUMN_LIST_SEARCH_CLASS : undefined);
20
+ const effectiveOptionClassName = optionClassName ??
21
+ (useCompactColumnList
22
+ ? singleSelect
23
+ ? wizardColumnListStyles_1.WIZARD_COLUMN_LIST_OPTION_CLASS_SINGLE_SELECT
24
+ : wizardColumnListStyles_1.WIZARD_COLUMN_LIST_OPTION_CLASS
25
+ : undefined);
26
+ const effectiveHideShowSelectedOnly = hideShowSelectedOnly ?? (useCompactColumnList ? singleSelect : undefined);
10
27
  const filterFn = (0, react_1.useMemo)(() => {
11
- return columnFilterText
12
- ? (c) => c.friendlyName.toLowerCase().indexOf(columnFilterText.toLowerCase()) != -1
13
- : null;
14
- }, [columnFilterText]);
15
- return ((0, jsx_runtime_1.jsx)(ValueSelector_1.ValueSelector, { value: selected, options: availableColumns, filter: filterFn, singleSelect: singleSelect, allowReorder: false, onChange: (colIds) => {
28
+ if (!effectiveShowFilterInput && !columnFilterText) {
29
+ return null;
30
+ }
31
+ return (column, searchValue) => {
32
+ const text = effectiveShowFilterInput ? searchValue : columnFilterText ?? '';
33
+ if (!text) {
34
+ return true;
35
+ }
36
+ return column.friendlyName.toLowerCase().includes(text.toLowerCase());
37
+ };
38
+ }, [columnFilterText, effectiveShowFilterInput]);
39
+ return ((0, jsx_runtime_1.jsx)(ValueSelector_1.ValueSelector, { value: selected, options: availableColumns, filter: filterFn, compact: effectiveCompact, showFilterInput: effectiveShowFilterInput, filterPlaceholder: effectiveFilterPlaceholder, compactHeaderClassName: effectiveCompactHeaderClassName, compactFilterClassName: effectiveCompactFilterClassName, hideShowSelectedOnly: effectiveHideShowSelectedOnly, optionClassName: effectiveOptionClassName, optionLayout: useCompactColumnList ? 'label-beside-checkbox' : undefined, toggleSelectionOnRowClick: useCompactColumnList ? true : undefined, singleSelect: singleSelect, allowReorder: allowReorder, className: (0, utils_1.cn)(useCompactColumnList && 'twa:h-full', className), onChange: (colIds) => {
16
40
  if (singleSelect) {
17
41
  onChange(colIds.length ? [colIds.pop()] : []);
18
42
  }
@@ -8,7 +8,7 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/Help
8
8
  const AdaptableContext_1 = require("../../../AdaptableContext");
9
9
  const ButtonInfo_1 = require("../../Buttons/ButtonInfo");
10
10
  const DocumentationLinkConstants_1 = require("../../../../Utilities/Constants/DocumentationLinkConstants");
11
- const SimpleButton_1 = tslib_1.__importDefault(require("../../../../components/SimpleButton"));
11
+ const ButtonNew_1 = require("../../Buttons/ButtonNew");
12
12
  const Tag_1 = require("../../../../components/Tag");
13
13
  const EntityRulePredicateEditor_1 = require("./EntityRulePredicateEditor");
14
14
  const Radio_1 = tslib_1.__importDefault(require("../../../../components/Radio"));
@@ -61,7 +61,7 @@ const EntityRulePredicatesEditor = (props) => {
61
61
  };
62
62
  const scopeString = (0, getScopeViewItems_1.getScopeViewItems)(props.data.Scope, api).values.join(', ');
63
63
  const enablePredicateColumnId = props.enablePredicateColumnId ?? true;
64
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { justifyContent: "space-between", className: "twa:mb-2", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2 twa:mb-2", children: props.descriptions.selectPredicate }), (0, jsx_runtime_1.jsx)(SimpleButton_1.default, { disabled: !props.data.Rule?.Predicates?.length, onClick: handleAddNewPredicate, icon: "plus", variant: "raised", children: "Add Predicate" })] }), enablePredicateColumnId && ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-EntityRulePredicateEditor-ScopeTypeSelector twa:p-2 twa:mb-2", flexDirection: "column", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mb-2", children: "Create Predicate Rule(s) using" }), (0, jsx_runtime_1.jsxs)(Radio_1.default, { "data-name": "entity-scope", onClick: () => handlePredicateScopeTypeChange(false), className: "twa:mr-3", checked: !columnPredicateEnabled, children: ["Active Column: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { className: "twa:mx-1", children: scopeString || 'Not Defined' }), ' '] }), (0, jsx_runtime_1.jsx)(Radio_1.default, { "data-name": "column-scope", onClick: () => handlePredicateScopeTypeChange(true), checked: columnPredicateEnabled, children: "Selected Columns (overriding Active Column)" })] })), (props.data.Rule?.Predicates?.length ? props.data.Rule.Predicates : [null]).map((predicate, index) => {
64
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { justifyContent: "space-between", className: "twa:mb-2", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2 twa:mb-2", children: props.descriptions.selectPredicate }), (0, jsx_runtime_1.jsx)(ButtonNew_1.ButtonNew, { disabled: !props.data.Rule?.Predicates?.length, onClick: handleAddNewPredicate, children: "Add Predicate" })] }), enablePredicateColumnId && ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-EntityRulePredicateEditor-ScopeTypeSelector twa:p-2 twa:mb-2", flexDirection: "column", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mb-2", children: "Create Predicate Rule(s) using" }), (0, jsx_runtime_1.jsxs)(Radio_1.default, { "data-name": "entity-scope", onClick: () => handlePredicateScopeTypeChange(false), className: "twa:mr-3", checked: !columnPredicateEnabled, children: ["Active Column: ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { className: "twa:mx-1", children: scopeString || 'Not Defined' }), ' '] }), (0, jsx_runtime_1.jsx)(Radio_1.default, { "data-name": "column-scope", onClick: () => handlePredicateScopeTypeChange(true), checked: columnPredicateEnabled, children: "Selected Columns (overriding Active Column)" })] })), (props.data.Rule?.Predicates?.length ? props.data.Rule.Predicates : [null]).map((predicate, index) => {
65
65
  const currentPredicatDef = props.predicateDefs.find((pd) => pd.id === predicate?.PredicateId);
66
66
  let editorPredicateDefs = defaultPredicateDefs;
67
67
  if (currentPredicatDef) {
@@ -7,6 +7,7 @@ const ValueSelector_1 = require("../ValueSelector");
7
7
  const AdaptableContext_1 = require("../../AdaptableContext");
8
8
  const react_1 = require("react");
9
9
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/ArrayExtensions"));
10
+ const layoutWizardColumns_1 = require("../../Layout/Wizard/sections/layoutWizardColumns");
10
11
  const ModuleValueSelector = (props) => {
11
12
  const { options, value, onChange, ...valueSelectorProps } = props;
12
13
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
@@ -38,6 +39,6 @@ const ModuleValueSelector = (props) => {
38
39
  return (module.toLowerCase().includes(searchText.toLowerCase()) ||
39
40
  withSpaces.toLowerCase().includes(searchText.toLowerCase()));
40
41
  }, []);
41
- return ((0, jsx_runtime_1.jsx)(ValueSelector_1.ValueSelector, { ...valueSelectorProps, options: sortedOptions, value: value, onChange: onChange, showFilterInput: true, filter: moduleFilter, allowReorder: allowReorder, toIdentifier: (module) => module, toLabel: (module) => moduleLabelMap.get(module), isOptionDisabled: props.isOptionDisabled, disabled: props.disabled }));
42
+ return ((0, jsx_runtime_1.jsx)(ValueSelector_1.ValueSelector, { ...valueSelectorProps, compact: true, options: sortedOptions, value: value, onChange: onChange, showFilterInput: true, filter: moduleFilter, filterPlaceholder: "Search...", compactHeaderClassName: layoutWizardColumns_1.LAYOUT_WIZARD_COLUMN_LIST_HEADER_CLASS, compactFilterClassName: layoutWizardColumns_1.LAYOUT_WIZARD_COLUMN_LIST_SEARCH_CLASS, optionLayout: "label-beside-checkbox", optionClassName: layoutWizardColumns_1.LAYOUT_WIZARD_COLUMN_LIST_OPTION_CLASS, allowReorder: allowReorder, toIdentifier: (module) => module, toLabel: (module) => moduleLabelMap.get(module), isOptionDisabled: props.isOptionDisabled, disabled: props.disabled }));
42
43
  };
43
44
  exports.ModuleValueSelector = ModuleValueSelector;
@@ -10,12 +10,10 @@ const CheckBox_1 = require("../../components/CheckBox");
10
10
  const Tabs_1 = require("../../components/Tabs");
11
11
  const OnePageAdaptableWizard_1 = require("../Wizard/OnePageAdaptableWizard");
12
12
  const ColumnSelector_1 = require("./ColumnSelector");
13
- const AdaptableFormControlTextClear_1 = require("./Forms/AdaptableFormControlTextClear");
14
13
  const AdaptableContext_1 = require("../AdaptableContext");
15
14
  const AdaptableColumn_1 = require("../../AdaptableState/Common/AdaptableColumn");
16
- const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
17
15
  const Flex_1 = require("../../components/Flex");
18
- const Tag_1 = require("../../components/Tag/Tag");
16
+ const scopeSummaryTags_1 = require("../Wizard/scopeSummaryTags");
19
17
  const isScopeValid = ({ Scope }) => {
20
18
  const result = [];
21
19
  if (!Scope) {
@@ -48,14 +46,11 @@ const DATA_TYPES_MAP = {
48
46
  value: 'boolean',
49
47
  },
50
48
  };
51
- const renderDataTypeLabel = (c) => {
52
- return 'DataType: ' + StringExtensions_1.default.CapitaliseFirstLetter(c);
53
- };
54
49
  const renderScopeSummary = (scope, labels) => {
55
50
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
56
51
  const scopeApi = adaptable.api.columnScopeApi;
57
52
  const columnsInScope = scopeApi.getColumnsInScope(scope);
58
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.SummaryText, { className: "twa:mb-0", children: scopeApi.scopeIsAll(scope) ? labels.scopeWholeRow : null }) }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:overflow-hidden", children: 'ColumnIds' in scope ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.SummaryText, { className: columnsInScope.length ? 'twa:mb-2' : '', children: labels.scopeColumns }), columnsInScope.length ? ((0, jsx_runtime_1.jsx)(Tag_1.TagList, { tags: columnsInScope.map((c) => c.friendlyName) })) : null] })) : null }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { children: 'DataTypes' in scope ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2 twa:mb-2", children: labels.scopeDataTypes }), (0, jsx_runtime_1.jsx)(Tag_1.TagList, { tags: scope.DataTypes.map((dataType) => renderDataTypeLabel(dataType)) })] })) : null })] }));
53
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [scopeApi.scopeIsAll(scope) ? ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.SummaryText, { className: "twa:mb-2", children: labels.scopeWholeRow }), (0, jsx_runtime_1.jsx)(scopeSummaryTags_1.ScopeSummaryTags, { scope: scope })] })) : null, 'ColumnIds' in scope ? ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:overflow-hidden", children: [(0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.SummaryText, { className: columnsInScope.length ? 'twa:mb-2' : '', children: labels.scopeColumns }), (0, jsx_runtime_1.jsx)(scopeSummaryTags_1.ScopeSummaryTags, { scope: scope })] })) : null, 'DataTypes' in scope ? ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2 twa:mb-2", children: labels.scopeDataTypes }), (0, jsx_runtime_1.jsx)(scopeSummaryTags_1.ScopeSummaryTags, { scope: scope })] })) : null, 'ColumnTypes' in scope ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(scopeSummaryTags_1.ScopeSummaryTags, { scope: scope }) })) : null] }));
59
54
  };
60
55
  exports.renderScopeSummary = renderScopeSummary;
61
56
  const DATA_TYPES_OPTIONS = Object.values(DATA_TYPES_MAP);
@@ -125,7 +120,7 @@ const NewScopeComponent = (props) => {
125
120
  const hasColumnTypes = React.useMemo(() => {
126
121
  return api.columnApi.getColumnTypes()?.length > 0;
127
122
  }, []);
128
- return ((0, jsx_runtime_1.jsxs)(Tabs_1.Tabs, { "data-name": 'scope-component', className: "ab-ScopeComponent", value: activeTab, style: { height: '100%', ...props.style }, onValueChange: onTabChanged, children: [props.hideWholeRow ? null : ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "Row", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", checked: activeTab == 'Row', tabIndex: -1, children: "All Columns" }) })), !props.disableColumns && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "Column", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", value: "Column", checked: activeTab == 'Column', tabIndex: -1, children: "Selected Columns" }) })), !props.disableDataTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "DataType", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", value: "DataType", checked: activeTab == 'DataType', tabIndex: -1, children: "Data Types" }) })), hasColumnTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "ColumnType", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", value: "ColumnType", checked: activeTab == 'ColumnType', tabIndex: -1, children: "Column Types" }) })), props.hideWholeRow ? null : ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Content, { value: "Row", style: { flex: 'none' }, "data-name": "row-scope", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2 twa:pl-0 twa:text-2", children: props.descriptions.rowScope }) })), !props.disableColumns && ((0, jsx_runtime_1.jsxs)(Tabs_1.Tabs.Content, { value: "Column", "data-name": "column-scope", className: "twa:p-0 twa:flex-1 twa:overflow-auto", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", className: "twa:p-2", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2", children: props.descriptions.columnScope }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-3" }), (0, jsx_runtime_1.jsx)(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { value: columnsSearchText, OnTextChange: setColumnsSearchText, placeholder: "Type to search columns", style: { flex: 1 } })] }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:overflow-hidden twa:pl-2 twa:flex-1", children: (0, jsx_runtime_1.jsx)(ColumnSelector_1.NewColumnSelector, { columnFilterText: columnsSearchText, allowReorder: false, availableColumns: scopeColumns, selected: scopeApi.getColumnIdsInScope(props.scope) ?? [], onChange: onColumnsSelectedChanged }) })] })), !props.disableDataTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Content, { value: "DataType", style: { flex: 'none' }, "data-name": "datatype-scope", children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [props.descriptions.dataTypeScope && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2 twa:pl-0 twa:mb-2 twa:text-2", children: props.descriptions.dataTypeScope })), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", children: dataTypeOptions.map((dataTypeOption) => ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { "data-name": "scope", "data-value": dataTypeOption.value, checked: !!dataTypesInScope && dataTypesInScope.includes(dataTypeOption.value), onChange: (checked) => onCheckBoxDataTypeChecked(checked, dataTypeOption.value), children: dataTypeOption.label }, dataTypeOption.value))) })] }) })), hasColumnTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Content, { value: "ColumnType", className: "twa:flex-none", "data-name": "column-type-scope", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", children: api.columnApi.getColumnTypes()?.map?.((columnType) => ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { "data-name": "scope", "data-value": columnType, checked: 'ColumnTypes' in props.scope && props.scope.ColumnTypes?.includes(columnType), onChange: (checked) => {
123
+ return ((0, jsx_runtime_1.jsxs)(Tabs_1.Tabs, { "data-name": 'scope-component', className: "ab-ScopeComponent", value: activeTab, style: { height: '100%', ...props.style }, onValueChange: onTabChanged, children: [props.hideWholeRow ? null : ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "Row", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", checked: activeTab == 'Row', tabIndex: -1, children: "All Columns" }) })), !props.disableColumns && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "Column", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", value: "Column", checked: activeTab == 'Column', tabIndex: -1, children: "Selected Columns" }) })), !props.disableDataTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "DataType", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", value: "DataType", checked: activeTab == 'DataType', tabIndex: -1, children: "Data Types" }) })), hasColumnTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { value: "ColumnType", children: (0, jsx_runtime_1.jsx)(Radio_1.default, { className: "twa:m-0", value: "ColumnType", checked: activeTab == 'ColumnType', tabIndex: -1, children: "Column Types" }) })), props.hideWholeRow ? null : ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Content, { value: "Row", style: { flex: 'none' }, "data-name": "row-scope", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2 twa:pl-0 twa:text-2", children: props.descriptions.rowScope }) })), !props.disableColumns && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Content, { value: "Column", "data-name": "column-scope", className: "twa:p-0 twa:flex-1 twa:overflow-auto", children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:overflow-hidden twa:p-2 twa:flex-1 twa:min-h-0 twa:h-full", children: (0, jsx_runtime_1.jsx)(ColumnSelector_1.NewColumnSelector, { compactColumnList: true, allowReorder: false, availableColumns: scopeColumns, selected: scopeApi.getColumnIdsInScope(props.scope) ?? [], onChange: onColumnsSelectedChanged }) }) })), !props.disableDataTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Content, { value: "DataType", style: { flex: 'none' }, "data-name": "datatype-scope", children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [props.descriptions.dataTypeScope && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2 twa:pl-0 twa:mb-2 twa:text-2", children: props.descriptions.dataTypeScope })), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", children: dataTypeOptions.map((dataTypeOption) => ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { "data-name": "scope", "data-value": dataTypeOption.value, checked: !!dataTypesInScope && dataTypesInScope.includes(dataTypeOption.value), onChange: (checked) => onCheckBoxDataTypeChecked(checked, dataTypeOption.value), children: dataTypeOption.label }, dataTypeOption.value))) })] }) })), hasColumnTypes && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Content, { value: "ColumnType", className: "twa:flex-none", "data-name": "column-type-scope", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", children: api.columnApi.getColumnTypes()?.map?.((columnType) => ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { "data-name": "scope", "data-value": columnType, checked: 'ColumnTypes' in props.scope && props.scope.ColumnTypes?.includes(columnType), onChange: (checked) => {
129
124
  let columnTypes = [].concat('ColumnTypes' in props.scope ? props.scope.ColumnTypes : []);
130
125
  if (checked) {
131
126
  columnTypes.push(columnType);
@@ -3,16 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdaptablePopup = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
7
6
  const GeneralConstants = tslib_1.__importStar(require("../../../../Utilities/Constants/GeneralConstants"));
8
7
  const TopBar_1 = tslib_1.__importDefault(require("./TopBar"));
9
8
  const join_1 = tslib_1.__importDefault(require("../../../../components/utils/join"));
9
+ const utils_1 = require("../../../../lib/utils");
10
10
  const Navigation_1 = require("./Navigation");
11
11
  const PopupContext_1 = tslib_1.__importDefault(require("./PopupContext"));
12
12
  const AdaptablePopupBody_1 = require("./AdaptablePopupBody");
13
13
  const AdaptableContext_1 = require("../../../AdaptableContext");
14
14
  const CustomSettingsPanelView_1 = require("./CustomSettingsPanelView");
15
15
  const useMenuItems_1 = require("./useMenuItems");
16
+ const settingsPanelNavigationTypes_1 = require("./settingsPanelNavigationTypes");
16
17
  const resolveContainerElement_1 = require("../../../../Utilities/resolveContainerElement");
17
18
  const AdaptablePopupDialog_1 = require("./AdaptablePopupDialog");
18
19
  const Flex_1 = require("../../../../components/Flex");
@@ -33,7 +34,7 @@ const AdaptablePopup = (props) => {
33
34
  let moduleViewContent = null;
34
35
  let activeItem = null;
35
36
  let accessLevel = GeneralConstants.ACCESS_LEVEL_FULL;
36
- const firstMenuItem = menuItems.find((menuItem) => menuItem !== '-');
37
+ const firstMenuItem = menuItems.find(settingsPanelNavigationTypes_1.isSettingsPanelNavigationItem)?.menuItem;
37
38
  const firstMenuModule = firstMenuItem?.category;
38
39
  let componentModule = props.componentModule;
39
40
  let componentName = props.componentName;
@@ -71,8 +72,8 @@ const AdaptablePopup = (props) => {
71
72
  props.onHide();
72
73
  }
73
74
  },
74
- }, children: (0, jsx_runtime_1.jsxs)(AdaptablePopupDialog_1.AdaptablePopupDialog, { dataName: componentModule, baseClassName: baseClassName, className: className, friendlyName: friendlyName, isActionModule: isStandalone, isWindowModal: isWindowModal, onHide: props.onHide, modalContainer: modalContainer, children: [!isStandalone && (0, jsx_runtime_1.jsx)(TopBar_1.default, { icon: settingsPanelOptions.icon, children: settingsPanelTitle }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, clsx_1.default)('twa:flex twa:flex-row twa:flex-1 twa:min-h-0', 'twa:bg-background twa:text-foreground', 'twa:rounded-bl-standard twa:rounded-br-standard', accessLevel == GeneralConstants.ACCESS_LEVEL_READ_ONLY
75
+ }, children: (0, jsx_runtime_1.jsxs)(AdaptablePopupDialog_1.AdaptablePopupDialog, { dataName: componentModule, baseClassName: baseClassName, className: className, friendlyName: friendlyName, isActionModule: isStandalone, isWindowModal: isWindowModal, onHide: props.onHide, modalContainer: modalContainer, children: [!isStandalone && (0, jsx_runtime_1.jsx)(TopBar_1.default, { icon: settingsPanelOptions.icon, children: settingsPanelTitle }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex twa:flex-row twa:flex-1 twa:min-h-0', 'twa:bg-background twa:text-foreground', 'twa:rounded-bl-standard twa:rounded-br-standard', accessLevel == GeneralConstants.ACCESS_LEVEL_READ_ONLY
75
76
  ? GeneralConstants.READ_ONLY_STYLE
76
- : ''), children: [!isStandalone && ((0, jsx_runtime_1.jsx)(Navigation_1.Navigation, { menuItems: menuItems, api: props.api, activeItem: activeItem, customSettingsPanels: settingsPanelOptions.customSettingsPanels })), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, clsx_1.default)('ab-Adaptable-Popup__Body', 'twa:bg-primarylight twa:text-primarylight-foreground', 'twa:flex twa:flex-1 twa:min-w-0 twa:overflow-auto', 'twa:rounded-br-standard', !isStandalone && 'twa:*:p-3'), children: moduleViewContent })] })] }) }));
77
+ : ''), children: [!isStandalone && ((0, jsx_runtime_1.jsx)(Navigation_1.Navigation, { menuItems: menuItems, api: props.api, activeItem: activeItem, customSettingsPanels: settingsPanelOptions.customSettingsPanels })), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, utils_1.cn)('ab-Adaptable-Popup__Body', 'twa:bg-primarylight twa:text-primarylight-foreground', 'twa:flex twa:flex-1 twa:min-w-0 twa:overflow-auto', 'twa:rounded-br-standard', !isStandalone && 'twa:*:p-3'), children: moduleViewContent })] })] }) }));
77
78
  };
78
79
  exports.AdaptablePopup = AdaptablePopup;
@@ -9,7 +9,7 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../../components/Dialog"
9
9
  const InternalRedux_1 = require("../../../../Redux/ActionsReducers/InternalRedux");
10
10
  const AdaptableContext_1 = require("../../../AdaptableContext");
11
11
  const Utilities_1 = require("../Utilities");
12
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
12
+ const utils_1 = require("../../../../lib/utils");
13
13
  const WindowDialog = (props) => {
14
14
  const { onChange, style, baseClassName, className, isActionModule, settingsPanelOptionsKey, onHide, ...dialogProps } = props;
15
15
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
@@ -38,11 +38,11 @@ const WindowDialog = (props) => {
38
38
  position: popupSettings.position,
39
39
  onChange: handleWindowSettings,
40
40
  };
41
- return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { windowModal: true, fixed: false, windowModalProps: windowModalProps, style: props.style, onDismiss: onHide, isOpen: true, showCloseButton: true, ...dialogProps, className: (0, clsx_1.default)('twa:p-0 twa:h-full', className) }));
41
+ return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { windowModal: true, fixed: false, windowModalProps: windowModalProps, style: props.style, onDismiss: onHide, isOpen: true, showCloseButton: true, ...dialogProps, className: (0, utils_1.cn)('twa:p-0 twa:h-full', className) }));
42
42
  };
43
43
  const PopupDialog = (props) => {
44
44
  const { style, className, onHide, children, ...dialogProps } = props;
45
- return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fixed: false, style: props.style, className: (0, clsx_1.default)('twa:p-0 twa:h-[90vh] twa:w-[90vw]', className), onDismiss: onHide, isOpen: true, showCloseButton: true, ...dialogProps, children: children }));
45
+ return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fixed: false, style: props.style, className: (0, utils_1.cn)('twa:p-0 twa:h-[90vh] twa:w-[90vw]', className), onDismiss: onHide, isOpen: true, showCloseButton: true, ...dialogProps, children: children }));
46
46
  };
47
47
  const AdaptablePopupDialog = (props) => {
48
48
  const { isActionModule, style, friendlyName, baseClassName, className, children, onHide, isWindowModal, modalContainer, } = props;
@@ -55,7 +55,7 @@ const AdaptablePopupDialog = (props) => {
55
55
  }
56
56
  else {
57
57
  if (isActionModule) {
58
- return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { "data-name": props.dataName, fixed: false, style: { ...style, maxWidth: 800 }, className: (0, clsx_1.default)('twa:p-0 twa:max-h-[90vh]', className), onDismiss: onHide, isOpen: true, showCloseButton: true, children: children }));
58
+ return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { "data-name": props.dataName, fixed: false, style: { ...style, maxWidth: 800 }, className: (0, utils_1.cn)('twa:p-0 twa:max-h-[90vh]', className), onDismiss: onHide, isOpen: true, showCloseButton: true, children: children }));
59
59
  }
60
60
  const modalStyle = {
61
61
  ...style,
@@ -20,7 +20,7 @@ const useRerender_1 = require("../../../../components/utils/useRerender");
20
20
  const Flex_1 = require("../../../../components/Flex");
21
21
  const Panel_1 = tslib_1.__importDefault(require("../../../../components/Panel"));
22
22
  const Tabs_1 = require("../../../../components/Tabs");
23
- const NewDropdownButton_1 = require("../../../../components/NewDropdownButton");
23
+ const DropdownButton_1 = require("../../../../components/DropdownButton");
24
24
  const AdaptablePopupModuleView = (props) => {
25
25
  /**
26
26
  * This triggers a render for each state change.
@@ -84,7 +84,7 @@ const AdaptablePopupModuleView = (props) => {
84
84
  label: abObjectType.label ?? abObjectType.name,
85
85
  };
86
86
  });
87
- newButton = ((0, jsx_runtime_1.jsxs)(NewDropdownButton_1.NewDropdownButton, { showDivider: false, tone: "accent", variant: "raised", items: items, tooltip: toolTipText, children: [(0, jsx_runtime_1.jsx)(icons_1.Icon, { name: "plus" }), " New"] }));
87
+ newButton = ((0, jsx_runtime_1.jsxs)(DropdownButton_1.NewDropdownButton, { showDivider: false, tone: "accent", variant: "raised", items: items, tooltip: toolTipText, children: [(0, jsx_runtime_1.jsx)(icons_1.Icon, { name: "plus" }), " New"] }));
88
88
  }
89
89
  else if (!moduleViewProperties.hideNewButton &&
90
90
  (EditWizard || moduleViewProperties.onOpenEditPopup)) {
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
- import { AdaptableApi, AdaptableMenuItem } from '../../../../../types';
2
+ import { AdaptableApi } from '../../../../../types';
3
3
  import { CustomSettingsPanel } from '../../../../AdaptableOptions/SettingsPanelOptions';
4
+ import { SettingsPanelNavigationEntry } from './settingsPanelNavigationTypes';
4
5
  interface NavigationProps {
5
6
  api: AdaptableApi;
6
- menuItems: (AdaptableMenuItem | '-')[];
7
+ menuItems: SettingsPanelNavigationEntry[];
7
8
  activeItem: string;
8
9
  customSettingsPanels?: CustomSettingsPanel[];
9
10
  }
@@ -6,10 +6,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const react_1 = require("react");
8
8
  const react_redux_1 = require("react-redux");
9
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
10
9
  const AdaptableIconComponent_1 = require("../../AdaptableIconComponent");
10
+ const utils_1 = require("../../../../lib/utils");
11
11
  const twUtils_1 = require("../../../../components/twUtils");
12
12
  const AdaptableContext_1 = require("../../../AdaptableContext");
13
+ const useMenuItems_1 = require("./useMenuItems");
14
+ const settingsPanelNavigationTypes_1 = require("./settingsPanelNavigationTypes");
13
15
  const navigationItemClassName = 'ab-Adaptable-Popup__Navigation__List__Item';
14
16
  const NavigationItem = ({ menuItem, isActive, dataName, customIcon, onAction, showModuleIcons, }) => {
15
17
  const ref = (0, react_1.useRef)(null);
@@ -18,9 +20,9 @@ const NavigationItem = ({ menuItem, isActive, dataName, customIcon, onAction, sh
18
20
  ref.current?.focus();
19
21
  }
20
22
  }, [isActive]);
21
- return ((0, jsx_runtime_1.jsx)("li", { className: (0, clsx_1.default)(navigationItemClassName, {
23
+ return ((0, jsx_runtime_1.jsx)("li", { className: (0, utils_1.cn)(navigationItemClassName, {
22
24
  [`${navigationItemClassName}--active`]: isActive,
23
- }), children: (0, jsx_runtime_1.jsxs)("button", { ref: ref, type: "button", className: (0, clsx_1.default)(`${navigationItemClassName}__Button ${twUtils_1.targetOwn.focusOutline}`, {
25
+ }), children: (0, jsx_runtime_1.jsxs)("button", { ref: ref, type: "button", className: (0, utils_1.cn)(`${navigationItemClassName}__Button ${twUtils_1.targetOwn.focusOutline}`, {
24
26
  'twa:flex twa:flex-row twa:items-center twa:gap-2': 'layout flex',
25
27
  [`twa:bg-transparent`]: !isActive,
26
28
  'twa:bg-accent twa:text-accentlight': isActive,
@@ -28,55 +30,63 @@ const NavigationItem = ({ menuItem, isActive, dataName, customIcon, onAction, sh
28
30
  'twa:rounded-standard': true,
29
31
  }), onMouseDown: () => onAction(), "data-name": dataName, tabIndex: isActive ? 0 : -1, children: [showModuleIcons && menuItem.icon && ((0, jsx_runtime_1.jsx)(AdaptableIconComponent_1.AdaptableIconComponent, { icon: menuItem.icon, iconClassName: `${navigationItemClassName}__Icon` })), customIcon ? (0, jsx_runtime_1.jsx)(AdaptableIconComponent_1.AdaptableIconComponent, { icon: customIcon }) : null, menuItem.label] }) }));
30
32
  };
33
+ const NavigationHeader = ({ label, showDividerAbove }) => ((0, jsx_runtime_1.jsxs)("li", { className: (0, utils_1.cn)(navigationItemClassName, `${navigationItemClassName}--header`, 'twa:list-none'), "aria-hidden": "true", children: [showDividerAbove ? ((0, jsx_runtime_1.jsx)("span", { className: `${navigationItemClassName}__HeaderDivider`, role: "separator", "aria-hidden": "true" })) : null, (0, jsx_runtime_1.jsx)("span", { className: `${navigationItemClassName}__Header`, children: label })] }));
34
+ const findNavigationItemIndex = (entries, activeItem) => entries.findIndex((entry) => (0, settingsPanelNavigationTypes_1.isSettingsPanelNavigationItem)(entry) &&
35
+ (entry.menuItem.category === activeItem || entry.menuItem.label === activeItem));
36
+ const getAdjacentNavigationItem = (entries, currentIndex, direction) => {
37
+ let index = currentIndex + direction;
38
+ while (index >= 0 && index < entries.length) {
39
+ const entry = entries[index];
40
+ if ((0, settingsPanelNavigationTypes_1.isSettingsPanelNavigationItem)(entry)) {
41
+ return entry.menuItem;
42
+ }
43
+ index += direction;
44
+ }
45
+ const navigationItems = (0, useMenuItems_1.getSettingsPanelNavigationItems)(entries);
46
+ if (!navigationItems.length) {
47
+ return null;
48
+ }
49
+ return direction === -1 ? navigationItems[navigationItems.length - 1] : navigationItems[0];
50
+ };
31
51
  const Navigation = (props) => {
32
52
  const { api } = (0, AdaptableContext_1.useAdaptable)();
53
+ const dispatch = (0, react_redux_1.useDispatch)();
33
54
  const makeActive = (menuItem) => {
34
55
  dispatch(menuItem.reduxAction);
35
56
  };
36
- const getMenuItemForDirection = (direction) => {
37
- const currentIndex = props.menuItems.findIndex((item) => item !== '-' && (item.category === props.activeItem || item.label === props.activeItem));
38
- let foundMenuItem = null;
39
- if (direction === -1) {
40
- let candidate = props.menuItems[currentIndex - 1] !== '-'
41
- ? props.menuItems[currentIndex - 1]
42
- : props.menuItems[currentIndex - 2];
43
- foundMenuItem = candidate ? candidate : props.menuItems[props.menuItems.length - 1];
44
- }
45
- else {
46
- let candidate = props.menuItems[currentIndex + 1] !== '-'
47
- ? props.menuItems[currentIndex + 1]
48
- : props.menuItems[currentIndex + 2];
49
- foundMenuItem = candidate ? candidate : props.menuItems[0];
50
- }
51
- return foundMenuItem === '-' ? null : foundMenuItem;
52
- };
53
- const dispatch = (0, react_redux_1.useDispatch)();
54
57
  const handleKeyPress = React.useCallback((event) => {
55
58
  const { code } = event;
56
59
  if (code === 'ArrowUp' || code === 'ArrowDown' || code === 'Home' || code === 'End') {
57
60
  event.preventDefault();
58
61
  event.stopPropagation();
62
+ const navigationItems = (0, useMenuItems_1.getSettingsPanelNavigationItems)(props.menuItems);
63
+ if (!navigationItems.length) {
64
+ return;
65
+ }
59
66
  let nextMenuItem = null;
60
67
  if (code === 'Home') {
61
- nextMenuItem = props.menuItems[0];
68
+ nextMenuItem = navigationItems[0];
62
69
  }
63
70
  else if (code === 'End') {
64
- nextMenuItem = props.menuItems[props.menuItems.length - 1];
71
+ nextMenuItem = navigationItems[navigationItems.length - 1];
65
72
  }
66
73
  else {
67
- nextMenuItem = getMenuItemForDirection(event.code === 'ArrowUp' ? -1 : 1);
74
+ const currentIndex = findNavigationItemIndex(props.menuItems, props.activeItem);
75
+ nextMenuItem = getAdjacentNavigationItem(props.menuItems, currentIndex, code === 'ArrowUp' ? -1 : 1);
68
76
  }
69
77
  if (nextMenuItem) {
70
78
  makeActive(nextMenuItem);
71
79
  }
72
80
  }
73
81
  }, [props.activeItem, props.menuItems]);
74
- return ((0, jsx_runtime_1.jsx)("nav", { className: "ab-Adaptable-Popup__Navigation twa:overflow-auto", tabIndex: -1, children: (0, jsx_runtime_1.jsx)("ul", { className: "ab-Adaptable-Popup__Navigation__List twa:m-0 twa:list-none twa:py-3 twa:gap-1 twa:flex twa:flex-col", onKeyDown: handleKeyPress, children: props.menuItems.map((menuItem, index) => {
75
- if (menuItem === '-') {
76
- return ((0, jsx_runtime_1.jsx)("li", { className: `${navigationItemClassName}__Separator` }, `separator-${index}`));
82
+ const firstHeaderIndex = props.menuItems.findIndex((entry) => entry.type === 'header');
83
+ return ((0, jsx_runtime_1.jsx)("nav", { className: "ab-Adaptable-Popup__Navigation twa:overflow-auto", tabIndex: -1, children: (0, jsx_runtime_1.jsx)("ul", { className: "ab-Adaptable-Popup__Navigation__List twa:m-0 twa:list-none twa:py-3 twa:gap-1 twa:flex twa:flex-col", onKeyDown: handleKeyPress, children: props.menuItems.map((entry, index) => {
84
+ if (entry.type === 'header') {
85
+ return ((0, jsx_runtime_1.jsx)(NavigationHeader, { label: entry.label, showDividerAbove: index !== firstHeaderIndex }, `header-${entry.label}-${index}`));
77
86
  }
87
+ const menuItem = entry.menuItem;
78
88
  const isActive = props.activeItem === menuItem.category || menuItem.label === props.activeItem;
79
- let customIcon = props.customSettingsPanels?.find?.((customSettingPanel) => customSettingPanel.name === menuItem.label)?.icon ?? null;
89
+ const customIcon = props.customSettingsPanels?.find?.((customSettingPanel) => customSettingPanel.name === menuItem.label)?.icon ?? null;
80
90
  const dataName = menuItem.category === 'CustomSettingsPanel'
81
91
  ? `CSP-${menuItem.label}`
82
92
  : menuItem.category ?? menuItem.label;
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PopupPanel = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
7
5
  const ButtonInfo_1 = require("../../Buttons/ButtonInfo");
8
6
  const Flex_1 = require("../../../../components/Flex");
7
+ const utils_1 = require("../../../../lib/utils");
9
8
  const PopupPanel = (props) => {
10
9
  const baseClassName = 'ab-Adaptable-Popup__Panel';
11
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, clsx_1.default)('twa:flex-1 twa:flex twa:flex-col twa:gap-3 twa:p-1', props.className, baseClassName, props.scrollable === false ? 'twa:overflow-hidden' : 'twa:overflow-auto'), children: [(0, jsx_runtime_1.jsxs)("div", { className: `${baseClassName}__Header twa:flex`, children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-0", "data-name": "space-before" }), (0, jsx_runtime_1.jsx)("div", { className: `${baseClassName}__Header__Title`, children: props.headerText }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2", "data-name": "space-after" }), props.infoLink != null && !props.infoLinkDisabled && ((0, jsx_runtime_1.jsx)(ButtonInfo_1.ButtonInfo, { tone: "none", variant: "text", iconSize: 24, onClick: () => window.open(props.infoLink, '_blank' // <- opens the link in a new tab or window.
12
- ) }))] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1" }), props.button] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, clsx_1.default)('twa:w-full twa:flex twa:flex-col twa:flex-1 twa:min-h-0', `${baseClassName}__Body`, props.bodyClassName), children: props.children })] }));
10
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex-1 twa:flex twa:flex-col twa:gap-3 twa:p-1', props.className, baseClassName, props.scrollable === false ? 'twa:overflow-hidden' : 'twa:overflow-auto'), children: [(0, jsx_runtime_1.jsxs)("div", { className: `${baseClassName}__Header twa:flex`, children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-0", "data-name": "space-before" }), (0, jsx_runtime_1.jsx)("div", { className: `${baseClassName}__Header__Title`, children: props.headerText }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2", "data-name": "space-after" }), props.infoLink != null && !props.infoLinkDisabled && ((0, jsx_runtime_1.jsx)(ButtonInfo_1.ButtonInfo, { tone: "none", variant: "text", iconSize: 24, onClick: () => window.open(props.infoLink, '_blank' // <- opens the link in a new tab or window.
11
+ ) }))] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1" }), props.button] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, utils_1.cn)('twa:w-full twa:flex twa:flex-col twa:flex-1 twa:min-h-0', `${baseClassName}__Body`, props.bodyClassName), children: props.children })] }));
13
12
  };
14
13
  exports.PopupPanel = PopupPanel;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TopBar = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const clsx_1 = tslib_1.__importDefault(require("clsx"));
7
5
  const AdaptableContext_1 = require("../../../AdaptableContext");
8
6
  const AdaptableIconComponent_1 = require("../../AdaptableIconComponent");
9
7
  const Flex_1 = require("../../../../components/Flex");
8
+ const utils_1 = require("../../../../lib/utils");
10
9
  const baseClassName = 'ab-Adaptable-Popup__TopBar';
11
10
  const TopBar = (props) => {
12
11
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
@@ -22,7 +21,7 @@ const TopBar = (props) => {
22
21
  else if (typeof props.icon === 'object') {
23
22
  icon = (0, jsx_runtime_1.jsx)(AdaptableIconComponent_1.AdaptableIconComponent, { icon: props.icon, iconClassName: iconClassName });
24
23
  }
25
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, clsx_1.default)(baseClassName, 'twa:font-medium twa:p-3', 'twa:flex twa:flex-row twa:items-center twa:flex-0 twa:gap-2', 'twa:bg-(--ab-dashboard-header__background) twa:text-(--ab-dashboard-header__color)', 'twa:rounded-tl-standard twa:rounded-tr-standard'), children: [icon, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `${baseClassName}__Title`, children: props.children })] }));
24
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)(baseClassName, 'twa:font-medium twa:p-3', 'twa:flex twa:flex-row twa:items-center twa:flex-0 twa:gap-2', 'twa:bg-(--ab-dashboard-header__background) twa:text-(--ab-dashboard-header__color)', 'twa:rounded-tl-standard twa:rounded-tr-standard'), children: [icon, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `${baseClassName}__Title`, children: props.children })] }));
26
25
  };
27
26
  exports.TopBar = TopBar;
28
27
  exports.default = exports.TopBar;
@@ -0,0 +1,11 @@
1
+ import { AdaptableMenuItem } from '../../../../types';
2
+ export type SettingsPanelNavigationHeaderEntry = {
3
+ type: 'header';
4
+ label: string;
5
+ };
6
+ export type SettingsPanelNavigationItemEntry = {
7
+ type: 'item';
8
+ menuItem: AdaptableMenuItem;
9
+ };
10
+ export type SettingsPanelNavigationEntry = SettingsPanelNavigationHeaderEntry | SettingsPanelNavigationItemEntry;
11
+ export declare const isSettingsPanelNavigationItem: (entry: SettingsPanelNavigationEntry) => entry is SettingsPanelNavigationItemEntry;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSettingsPanelNavigationItem = void 0;
4
+ const isSettingsPanelNavigationItem = (entry) => entry.type === 'item';
5
+ exports.isSettingsPanelNavigationItem = isSettingsPanelNavigationItem;
@@ -1,2 +1,4 @@
1
1
  import { AdaptableMenuItem } from '../../../../../types';
2
- export declare const useMenuItems: () => (AdaptableMenuItem | "-")[];
2
+ import { SettingsPanelNavigationEntry } from './settingsPanelNavigationTypes';
3
+ export declare const useMenuItems: () => SettingsPanelNavigationEntry[];
4
+ export declare const getSettingsPanelNavigationItems: (entries: SettingsPanelNavigationEntry[]) => AdaptableMenuItem[];