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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/agGrid.d.ts +2 -3
  2. package/agGrid.js +2 -3
  3. package/aql.d.ts +132 -0
  4. package/aql.js +260 -0
  5. package/devtools.d.ts +237 -2
  6. package/index.css +307 -294
  7. package/index.d.ts +2 -3
  8. package/index.js +2 -3
  9. package/package.json +7 -6
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -4
  11. package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
  13. package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
  14. package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
  15. package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
  16. package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
  17. package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
  18. package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
  19. package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
  20. package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
  21. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
  22. package/src/AdaptableOptions/DefaultAdaptableOptions.js +11 -5
  23. package/src/AdaptableOptions/EditOptions.d.ts +18 -2
  24. package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
  25. package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
  26. package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
  27. package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
  28. package/src/AdaptableOptions/FlashingCellOptions.d.ts +3 -3
  29. package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
  30. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
  31. package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
  32. package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
  33. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +16 -5
  34. package/src/AdaptableOptions/StateOptions.d.ts +37 -13
  35. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
  36. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +89 -6
  37. package/src/AdaptableState/AdaptableState.d.ts +99 -3
  38. package/src/AdaptableState/AlertState.d.ts +20 -21
  39. package/src/AdaptableState/ApplicationState.d.ts +5 -3
  40. package/src/AdaptableState/BaseState.d.ts +9 -2
  41. package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
  42. package/src/AdaptableState/ChartingState.d.ts +10 -5
  43. package/src/AdaptableState/CommentState.d.ts +10 -4
  44. package/src/AdaptableState/Common/AdaptableAlert.d.ts +21 -2
  45. package/src/AdaptableState/Common/AdaptableAlert.js +9 -0
  46. package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
  47. package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
  48. package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
  49. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
  50. package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
  51. package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
  52. package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
  53. package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
  54. package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
  55. package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
  56. package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
  57. package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
  58. package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
  59. package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
  60. package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
  61. package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
  62. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
  63. package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
  64. package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
  65. package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
  66. package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
  67. package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
  68. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
  69. package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
  70. package/src/AdaptableState/Common/Enums.d.ts +21 -0
  71. package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
  72. package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
  73. package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
  74. package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
  75. package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
  76. package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
  77. package/src/AdaptableState/Common/RowScope.d.ts +3 -1
  78. package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
  79. package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
  80. package/src/AdaptableState/Common/Schedule.d.ts +10 -2
  81. package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
  82. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
  83. package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
  84. package/src/AdaptableState/Common/Types.d.ts +9 -0
  85. package/src/AdaptableState/CustomSortState.d.ts +8 -5
  86. package/src/AdaptableState/DashboardState.d.ts +14 -10
  87. package/src/AdaptableState/ExportState.d.ts +12 -4
  88. package/src/AdaptableState/FlashingCellState.d.ts +8 -5
  89. package/src/AdaptableState/FormatColumnState.d.ts +28 -8
  90. package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
  91. package/src/AdaptableState/IPushPullState.d.ts +39 -3
  92. package/src/AdaptableState/InitialState.d.ts +9 -9
  93. package/src/AdaptableState/InternalState.d.ts +183 -3
  94. package/src/AdaptableState/LayoutState.d.ts +64 -21
  95. package/src/AdaptableState/NamedQueryState.d.ts +16 -4
  96. package/src/AdaptableState/NoteState.d.ts +7 -3
  97. package/src/AdaptableState/OpenFinState.d.ts +12 -2
  98. package/src/AdaptableState/PlusMinusState.d.ts +8 -4
  99. package/src/AdaptableState/PopupState.d.ts +29 -1
  100. package/src/AdaptableState/QuickSearchState.d.ts +9 -3
  101. package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
  102. package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
  103. package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
  104. package/src/AdaptableState/ShortcutState.d.ts +7 -3
  105. package/src/AdaptableState/StatusBarState.d.ts +7 -6
  106. package/src/AdaptableState/StyledColumnState.d.ts +46 -14
  107. package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +4 -0
  108. package/src/AdaptableState/TeamSharingState.d.ts +46 -2
  109. package/src/AdaptableState/ThemeState.d.ts +24 -2
  110. package/src/AdaptableState/ToolPanelState.d.ts +10 -5
  111. package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
  112. package/src/AdaptableState/Uuid.d.ts +6 -0
  113. package/src/Api/ActionColumnApi.d.ts +3 -1
  114. package/src/Api/AdaptableApi.d.ts +54 -50
  115. package/src/Api/AlertApi.d.ts +20 -12
  116. package/src/Api/ApplicationApi.d.ts +6 -2
  117. package/src/Api/BulkUpdateApi.d.ts +2 -1
  118. package/src/Api/CalculatedColumnApi.d.ts +4 -1
  119. package/src/Api/CalendarApi.d.ts +10 -0
  120. package/src/Api/CellSummaryApi.d.ts +9 -3
  121. package/src/Api/ChartingApi.d.ts +22 -7
  122. package/src/Api/ColumnApi.d.ts +71 -4
  123. package/src/Api/ColumnFilterApi.d.ts +13 -3
  124. package/src/Api/ColumnMenuApi.d.ts +13 -2
  125. package/src/Api/ColumnScopeApi.d.ts +27 -1
  126. package/src/Api/CommentApi.d.ts +10 -7
  127. package/src/Api/ContextMenuApi.d.ts +11 -1
  128. package/src/Api/CustomSortApi.d.ts +6 -2
  129. package/src/Api/DashboardApi.d.ts +30 -9
  130. package/src/Api/DataChangeHistoryApi.d.ts +9 -3
  131. package/src/Api/DataImportApi.d.ts +1 -1
  132. package/src/Api/EntitlementApi.d.ts +6 -1
  133. package/src/Api/EventApi.d.ts +67 -19
  134. package/src/Api/Events/AdaptableReady.d.ts +6 -2
  135. package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
  136. package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
  137. package/src/Api/Events/AlertFired.d.ts +8 -2
  138. package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
  139. package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
  140. package/src/Api/Events/CellChanged.d.ts +6 -2
  141. package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
  142. package/src/Api/Events/ChartChanged.d.ts +16 -8
  143. package/src/Api/Events/CommentChanged.d.ts +8 -2
  144. package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
  145. package/src/Api/Events/DashboardChanged.d.ts +27 -6
  146. package/src/Api/Events/DataImported.d.ts +8 -4
  147. package/src/Api/Events/DataSetSelected.d.ts +6 -2
  148. package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
  149. package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
  150. package/src/Api/Events/GridFilterApplied.d.ts +11 -3
  151. package/src/Api/Events/GridSorted.d.ts +6 -2
  152. package/src/Api/Events/LayoutChanged.d.ts +41 -8
  153. package/src/Api/Events/LiveDataChanged.d.ts +21 -5
  154. package/src/Api/Events/NoteChanged.d.ts +5 -1
  155. package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
  156. package/src/Api/Events/RowChanged.d.ts +6 -2
  157. package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
  158. package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
  159. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
  160. package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
  161. package/src/Api/Events/ThemeSelected.d.ts +6 -2
  162. package/src/Api/ExportApi.d.ts +59 -32
  163. package/src/Api/ExpressionApi.d.ts +24 -1
  164. package/src/Api/Fdc3Api.d.ts +16 -3
  165. package/src/Api/FlashingCellApi.d.ts +6 -1
  166. package/src/Api/FormatColumnApi.d.ts +18 -11
  167. package/src/Api/FreeTextColumnApi.d.ts +4 -2
  168. package/src/Api/GridApi.d.ts +92 -19
  169. package/src/Api/IPushPullApi.d.ts +19 -2
  170. package/src/Api/Implementation/AlertApiImpl.d.ts +5 -5
  171. package/src/Api/Implementation/AlertApiImpl.js +26 -19
  172. package/src/Api/Implementation/ColumnScopeApiImpl.js +3 -3
  173. package/src/Api/Implementation/QuickSearchApiImpl.js +2 -2
  174. package/src/Api/Implementation/StateApiImpl.d.ts +1 -1
  175. package/src/Api/Implementation/StateApiImpl.js +4 -3
  176. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -1
  177. package/src/Api/Implementation/UserInterfaceApiImpl.js +9 -15
  178. package/src/Api/Internal/AdaptableInternalApi.js +5 -3
  179. package/src/Api/Internal/AlertInternalApi.js +12 -7
  180. package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
  181. package/src/Api/Internal/EventInternalApi.d.ts +2 -1
  182. package/src/Api/Internal/EventInternalApi.js +7 -0
  183. package/src/Api/Internal/StateInternalApi.d.ts +1 -1
  184. package/src/Api/Internal/StateInternalApi.js +6 -5
  185. package/src/Api/InteropioPluginApi.d.ts +2 -1
  186. package/src/Api/LayoutApi.d.ts +29 -15
  187. package/src/Api/NamedQueryApi.d.ts +10 -6
  188. package/src/Api/NoteApi.d.ts +15 -11
  189. package/src/Api/OpenFinApi.d.ts +8 -2
  190. package/src/Api/OptionsApi.d.ts +43 -1
  191. package/src/Api/PluginsApi.d.ts +6 -1
  192. package/src/Api/PlusMinusApi.d.ts +2 -1
  193. package/src/Api/QuickSearchApi.d.ts +6 -1
  194. package/src/Api/RowFormApi.d.ts +8 -7
  195. package/src/Api/ShortcutApi.d.ts +3 -1
  196. package/src/Api/SmartEditApi.d.ts +4 -1
  197. package/src/Api/StateApi.d.ts +32 -4
  198. package/src/Api/StatusBarApi.d.ts +2 -0
  199. package/src/Api/StyledColumnApi.d.ts +23 -12
  200. package/src/Api/SystemStatusApi.d.ts +18 -6
  201. package/src/Api/TeamSharingApi.d.ts +8 -1
  202. package/src/Api/ThemeApi.d.ts +17 -8
  203. package/src/Api/ToolPanelApi.d.ts +12 -7
  204. package/src/Api/UserInterfaceApi.d.ts +10 -5
  205. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
  206. package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +9 -4
  207. package/src/Redux/ActionsReducers/QuickSearchRedux.js +12 -7
  208. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.d.ts +8 -0
  209. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +12 -12
  210. package/src/Redux/Store/AdaptableStore.d.ts +8 -5
  211. package/src/Redux/Store/AdaptableStore.js +75 -41
  212. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +5 -5
  213. package/src/Redux/Store/Interface/IStorageEngine.d.ts +4 -4
  214. package/src/Redux/Store/StateOptionsGuards.d.ts +58 -0
  215. package/src/Redux/Store/StateOptionsGuards.js +112 -0
  216. package/src/Redux/Store/isTransientReduxAction.d.ts +5 -0
  217. package/src/Redux/Store/isTransientReduxAction.js +19 -0
  218. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  219. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -0
  220. package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
  221. package/src/Utilities/Constants/ReduxConstants.js +5 -5
  222. package/src/Utilities/Helpers/AlertTypeHelper.d.ts +1 -1
  223. package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +14 -0
  224. package/src/Utilities/Helpers/SettingsPanelHelper.js +37 -1
  225. package/src/Utilities/Helpers/UIHelper.d.ts +12 -14
  226. package/src/Utilities/Helpers/UIHelper.js +12 -35
  227. package/src/Utilities/ObjectFactory.js +3 -3
  228. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +9 -11
  229. package/src/View/Components/StyleComponent.js +2 -2
  230. package/src/View/Dashboard/Dashboard.d.ts +1 -1
  231. package/src/View/Dashboard/Dashboard.js +1 -1
  232. package/src/View/Dashboard/DashboardPopupSections.js +1 -1
  233. package/src/View/Filter/ColumnFilter/ColumnFilterNew.js +14 -9
  234. package/src/View/GridInfo/GridInfoPopup.js +62 -25
  235. package/src/View/QuickSearch/QuickSearchInput.js +1 -1
  236. package/src/View/QuickSearch/QuickSearchPopup.d.ts +1 -1
  237. package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
  238. package/src/View/QuickSearch/Utilities/useQuickSearchDebounced.d.ts +2 -2
  239. package/src/View/StyledColumn/RangesComponent.js +13 -16
  240. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +0 -2
  241. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +2 -2
  242. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
  243. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +0 -3
  244. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +3 -3
  245. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +7 -11
  246. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +6 -6
  247. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -2
  248. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +2 -2
  249. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +8 -8
  250. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +4 -4
  251. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +2 -2
  252. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +4 -4
  253. package/src/View/Wizard/CollapsibleWizardCard.d.ts +3 -1
  254. package/src/View/Wizard/CollapsibleWizardCard.js +17 -9
  255. package/src/agGrid/Adaptable.d.ts +0 -12
  256. package/src/agGrid/Adaptable.js +0 -52
  257. package/src/agGrid/AdaptableAgGrid.d.ts +4 -4
  258. package/src/agGrid/AdaptableAgGrid.js +2 -0
  259. package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
  260. package/src/agGrid/AdaptableLogger.d.ts +74 -1
  261. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
  262. package/src/agGrid/AgGridColumnAdapter.js +7 -5
  263. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
  264. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
  265. package/src/agGrid/index.d.ts +1 -6
  266. package/src/agGrid/index.js +1 -3
  267. package/src/aql/ExpressionEvaluation.d.ts +27 -0
  268. package/src/aql/types.d.ts +22 -0
  269. package/src/components/ColorField/index.d.ts +13 -0
  270. package/src/components/ColorField/index.js +26 -0
  271. package/src/components/aql/QueryBuilder/GroupEditor.js +1 -1
  272. package/src/components/aql/QueryBuilder/QueryBuilder.d.ts +5 -0
  273. package/src/components/aql/QueryBuilder/QueryBuilder.js +1 -1
  274. package/src/components/aql/QueryBuilder/QueryBuilderInputs.js +12 -2
  275. package/src/components/aql/QueryBuilder/context.d.ts +7 -0
  276. package/src/components/aql/QueryBuilder/context.js +3 -1
  277. package/src/env.js +2 -2
  278. package/src/layout-manager/src/normalizeLayoutModel.d.ts +1 -1
  279. package/src/layout-manager/src/simplifyLayoutModel.d.ts +1 -1
  280. package/src/migration/AdaptableUpgradeHelper.d.ts +7 -2
  281. package/src/migration/VersionUpgrade17.js +13 -8
  282. package/src/migration/VersionUpgrade24.d.ts +9 -0
  283. package/src/migration/VersionUpgrade24.js +27 -0
  284. package/src/migration/legacyAdaptableQuery.d.ts +29 -4
  285. package/src/setupDevTools.js +827 -111
  286. package/src/types.d.ts +2 -4
  287. package/tsconfig.esm.tsbuildinfo +1 -1
  288. package/upgrade.d.ts +1 -0
  289. package/upgrade.js +1 -0
  290. package/vendor/components/Button/index.d.ts +1 -1
  291. package/vendor/components/Button/index.d.ts.map +1 -1
  292. package/vendor/components/Button/index.js.map +1 -1
  293. package/vendor/components/CheckBox/index.d.ts +1 -1
  294. package/vendor/components/CheckBox/index.d.ts.map +1 -1
  295. package/vendor/components/CheckBox/index.js.map +1 -1
  296. package/vendor/components/ColorField/index.d.ts +53 -0
  297. package/vendor/components/ColorField/index.d.ts.map +1 -0
  298. package/vendor/components/ColorField/index.js +80 -0
  299. package/vendor/components/ColorField/index.js.map +1 -0
  300. package/vendor/components/ColorPicker/colorPickerTab.d.ts +4 -0
  301. package/vendor/components/ColorPicker/colorPickerTab.d.ts.map +1 -0
  302. package/vendor/components/ColorPicker/colorPickerTab.js +28 -0
  303. package/vendor/components/ColorPicker/colorPickerTab.js.map +1 -0
  304. package/vendor/components/ColorPicker/index.d.ts +98 -0
  305. package/vendor/components/ColorPicker/index.d.ts.map +1 -0
  306. package/vendor/components/ColorPicker/index.js +322 -0
  307. package/vendor/components/ColorPicker/index.js.map +1 -0
  308. package/vendor/components/ColorPicker/themeColors.d.ts +94 -0
  309. package/vendor/components/ColorPicker/themeColors.d.ts.map +1 -0
  310. package/vendor/components/ColorPicker/themeColors.js +240 -0
  311. package/vendor/components/ColorPicker/themeColors.js.map +1 -0
  312. package/vendor/components/Combobox/VirtualizedList.d.ts +1 -1
  313. package/vendor/components/Combobox/VirtualizedList.d.ts.map +1 -1
  314. package/vendor/components/Combobox/VirtualizedList.js.map +1 -1
  315. package/vendor/components/Combobox/index.d.ts +1 -1
  316. package/vendor/components/Combobox/index.d.ts.map +1 -1
  317. package/vendor/components/Combobox/index.js.map +1 -1
  318. package/vendor/components/NumberInput/index.d.ts +51 -0
  319. package/vendor/components/NumberInput/index.d.ts.map +1 -0
  320. package/vendor/components/NumberInput/index.js +82 -0
  321. package/vendor/components/NumberInput/index.js.map +1 -0
  322. package/vendor/components/index.css +286 -24
  323. package/vendor/components/index.d.ts +6 -0
  324. package/vendor/components/index.d.ts.map +1 -1
  325. package/vendor/components/index.js +3 -0
  326. package/vendor/components/index.js.map +1 -1
  327. package/vendor/components/ui/combobox.d.ts.map +1 -1
  328. package/vendor/components/ui/combobox.js +1 -1
  329. package/vendor/components/ui/combobox.js.map +1 -1
  330. package/vendor/components/ui/input-group.d.ts.map +1 -1
  331. package/vendor/components/ui/input-group.js +5 -4
  332. package/vendor/components/ui/input-group.js.map +1 -1
  333. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
  334. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
  335. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
  336. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
  337. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
  338. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
  339. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
  340. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
  341. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
  342. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
  343. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
  344. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
  345. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
  346. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
  347. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
  348. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
  349. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
  350. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
  351. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
  352. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
  353. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
  354. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
  355. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
  356. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
  357. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
  358. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
  359. package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
  360. package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
  361. package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
  362. package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
  363. package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
  364. package/src/View/AdaptableWizardView/Wizard.js +0 -98
  365. package/src/View/AdaptableWizardView/index.d.ts +0 -4
  366. package/src/View/AdaptableWizardView/index.js +0 -4
  367. package/src/components/ColorPicker/ColorPicker.d.ts +0 -12
  368. package/src/components/ColorPicker/ColorPicker.js +0 -48
  369. package/src/components/ColorPicker/OptionalColorPicker.d.ts +0 -12
  370. package/src/components/ColorPicker/OptionalColorPicker.js +0 -13
  371. package/src/components/ColorPicker/index.d.ts +0 -2
  372. package/src/components/ColorPicker/index.js +0 -2
package/agGrid.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import Adaptable, { AdaptableWizardView } from './src/agGrid';
1
+ import Adaptable from './src/agGrid';
2
2
  import { AdaptableAgGrid } from './src/agGrid/AdaptableAgGrid';
3
3
  import { AdaptableNumberEditor, AdaptableReactNumberEditor } from './src/agGrid/editors/AdaptableNumberEditor';
4
4
  import { AdaptablePercentageEditor, AdaptableReactPercentageEditor } from './src/agGrid/editors/AdaptablePercentageEditor';
@@ -8,7 +8,6 @@ import { AdaptableUpgradeHelper, type UpgradeConfig } from './src/migration/Adap
8
8
  import { iconToString } from './src/components/icons';
9
9
  export default Adaptable;
10
10
  export declare const _AdaptableAgGrid: typeof AdaptableAgGrid;
11
- export declare const AdaptableNoCodeWizard: typeof import("./src/agGrid/Adaptable").AdaptableNoCodeWizard;
12
11
  export declare const _AdaptableLogger: typeof import("./types").AdaptableLogger;
13
12
  export declare const AdaptableQL: {
14
13
  ScalarFunctions: import("./vendor/aql/index.js").ScalarFunctionName[];
@@ -57,4 +56,4 @@ export declare const AdaptableColumnType: {
57
56
  */
58
57
  PivotAggregationTotal: import("./src/AdaptableState/Common/AdaptableColumn").AdaptableColumnTypeName;
59
58
  };
60
- export { iconToString as getIconSVG, AdaptableReactPercentageEditor, AdaptableReactNumberEditor, AdaptableReactDateEditor, AdaptablePercentageEditor, AdaptableNumberEditor, AdaptableDateEditor, AdaptableWizardView, AdaptableUpgradeHelper, type UpgradeConfig, };
59
+ export { iconToString as getIconSVG, AdaptableReactPercentageEditor, AdaptableReactNumberEditor, AdaptableReactDateEditor, AdaptablePercentageEditor, AdaptableNumberEditor, AdaptableDateEditor, AdaptableUpgradeHelper, type UpgradeConfig, };
package/agGrid.js CHANGED
@@ -1,4 +1,4 @@
1
- import Adaptable, { AdaptableNoCodeWizard as ABWizard, AdaptableWizardView, AdaptableLogger as ABLogger, } from './src/agGrid';
1
+ import Adaptable, { AdaptableLogger as ABLogger } from './src/agGrid';
2
2
  import { AdaptableAgGrid } from './src/agGrid/AdaptableAgGrid';
3
3
  import { aggregationCallableNames as aggregatedScalarExpressionFunctionNames, scalarFunctionNames as scalarExpressionFunctionNames, } from "./vendor/aql/index.js";
4
4
  import { AdaptableNumberEditor, AdaptableReactNumberEditor, } from './src/agGrid/editors/AdaptableNumberEditor';
@@ -10,7 +10,6 @@ import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT
10
10
  import { iconToString } from './src/components/icons';
11
11
  export default Adaptable;
12
12
  export const _AdaptableAgGrid = AdaptableAgGrid;
13
- export const AdaptableNoCodeWizard = ABWizard;
14
13
  export const _AdaptableLogger = ABLogger;
15
14
  export const AdaptableQL = {
16
15
  ScalarFunctions: scalarExpressionFunctionNames,
@@ -29,4 +28,4 @@ export const AdaptableColumnType = {
29
28
  PivotColumnTotal: PIVOT_COLUMN_TOTAL_COLUMN_TYPE,
30
29
  PivotAggregationTotal: PIVOT_AGGREGATION_TOTAL_COLUMN_TYPE,
31
30
  };
32
- export { iconToString as getIconSVG, AdaptableReactPercentageEditor, AdaptableReactNumberEditor, AdaptableReactDateEditor, AdaptablePercentageEditor, AdaptableNumberEditor, AdaptableDateEditor, AdaptableWizardView, AdaptableUpgradeHelper, };
31
+ export { iconToString as getIconSVG, AdaptableReactPercentageEditor, AdaptableReactNumberEditor, AdaptableReactDateEditor, AdaptablePercentageEditor, AdaptableNumberEditor, AdaptableDateEditor, AdaptableUpgradeHelper, };
package/aql.d.ts ADDED
@@ -0,0 +1,132 @@
1
+ import type { AdaptableColumnDataType } from './src/AdaptableState/Common/AdaptableColumn';
2
+ import type { AdaptableStandardExpressionModule } from './src/AdaptableState/Common/Types';
3
+ import { type LegacyExpressionKind } from './src/aql/legacyExpressionKinds';
4
+ /**
5
+ * What an Expression returns, and whether it is evaluated per row or across rows:
6
+ * - `boolean` - Standard boolean Expressions: Grid Filter, Column Filter, Format Column,
7
+ * Alert and Flashing Cell rules, Named Queries, Reports; also Relative Change
8
+ * (`ANY_CHANGE()`) and boolean Observable rules (`CHANGE_COUNT{[price], WITHIN(5m)} >= 2`)
9
+ * - `scalar` - Standard Expressions returning a value: Calculated Columns, scalar Named
10
+ * Queries; also Observable values (`MAX{[price], WITHIN(1d)}`)
11
+ * - `aggregatedScalar` - Aggregation Expressions in Calculated Columns (`SUM{[price]}`),
12
+ * including Cumulative, Quantile and Window Expressions (`LAG{[price], 1, OVER([date])}`)
13
+ * - `aggregatedBoolean` - Aggregation rules in Alerts (`SUM{[price]} > 100`)
14
+ *
15
+ * Which of these a Module accepts, and which Functions it offers, is checked
16
+ * when `module` is passed to {@link validateExpression}.
17
+ */
18
+ export type AdaptableQLExpressionKind = LegacyExpressionKind;
19
+ export interface ValidateExpressionOptions {
20
+ kind: AdaptableQLExpressionKind;
21
+ /**
22
+ * Module the Expression belongs to. Applies that Module's rules: Observable
23
+ * Functions only in Alert, Calculated Column, Format Column and Flashing
24
+ * Cell; Relative Change Functions only in Alert and Flashing Cell;
25
+ * Cumulative and Window Functions only in Calculated Columns; aggregated
26
+ * kinds only in the Modules that evaluate them. When omitted, every
27
+ * system Function is accepted.
28
+ */
29
+ module?: AdaptableStandardExpressionModule;
30
+ /**
31
+ * Column Id to AdapTable data type. When provided, references to other
32
+ * Columns are errors and Column types are checked against Function inputs.
33
+ */
34
+ columns?: Record<string, AdaptableColumnDataType | undefined>;
35
+ }
36
+ export interface ExpressionValidationIssue {
37
+ /** Stable identifier, e.g. `AQL_LEGACY_SPELLING`; absent for generic type errors */
38
+ code?: string;
39
+ message: string;
40
+ severity: 'error' | 'warning' | 'info';
41
+ /** Character range in the Expression `[start, end)` */
42
+ range?: [number, number];
43
+ /** Suggested rewrite, when one exists */
44
+ quickFix?: {
45
+ label: string;
46
+ replacement: string;
47
+ range?: [number, number];
48
+ };
49
+ }
50
+ export interface ExpressionValidationResult {
51
+ isValid: boolean;
52
+ issues: ExpressionValidationIssue[];
53
+ }
54
+ export interface MigrateExpressionResult {
55
+ /** Current-syntax Expression, or the input unchanged when it does not parse */
56
+ expression: string;
57
+ changed: boolean;
58
+ /** Set when the input does not parse */
59
+ error?: string;
60
+ /** How a rewritten legacy observable rule differs in meaning from the original */
61
+ notes?: string[];
62
+ }
63
+ export interface ExpressionFunctionDescription {
64
+ name: string;
65
+ /** `paren` is `NAME(...)`, `brace` is `NAME{...}` */
66
+ callForm: 'paren' | 'brace';
67
+ group: 'scalar' | 'aggregation' | 'observable' | 'clause';
68
+ returnType?: string;
69
+ description?: string;
70
+ signatures: string[];
71
+ examples: string[];
72
+ category?: string;
73
+ /**
74
+ * Modules whose Expressions offer the Function (a context requirement such
75
+ * as data-change events, or product policy). Absent when every Module
76
+ * offers it; empty when only system-internal evaluation (Layout row
77
+ * summaries, Cell Summaries) does.
78
+ */
79
+ modules?: AdaptableStandardExpressionModule[];
80
+ }
81
+ /**
82
+ * What a Module's Expressions may be (see {@link validateExpression}): the
83
+ * kinds it evaluates and the Function families it offers.
84
+ */
85
+ export interface ExpressionModuleCapabilities {
86
+ module: AdaptableStandardExpressionModule;
87
+ /** Kinds the Module evaluates, the default (what an Expression without further hints is) first */
88
+ kinds: AdaptableQLExpressionKind[];
89
+ /** Whether observable brace calls (`CHANGE_COUNT{[price], WITHIN(5m)}`) are accepted */
90
+ observableCalls: boolean;
91
+ /** Whether the data-change Functions (`ANY_CHANGE`, `PERCENT_CHANGE`, `ABSOLUTE_CHANGE`) are available */
92
+ dataChangeFunctions: boolean;
93
+ }
94
+ /**
95
+ * Validates an AdapTableQL Expression without a grid. Mirrors
96
+ * `ExpressionApi.isValidBooleanExpression` / `isValidScalarExpression` /
97
+ * `isValidAggregatedScalarExpression` / `isValidAggregatedBooleanExpression`,
98
+ * but reports every issue (with ranges and quick fixes) instead of the first.
99
+ *
100
+ * Pre-v24 spellings (`CUMUL(...)`, `TIMEFRAME(...)`, paren aggregations) are
101
+ * errors; convert them with {@link migrateExpression} first.
102
+ */
103
+ export declare function validateExpression(expressionInput: string, options: ValidateExpressionOptions): ExpressionValidationResult;
104
+ /**
105
+ * Converts a pre-v24 AdapTableQL Expression to the current syntax: brace
106
+ * aggregations (`SUM{[price]}`), named operands (`CUMULATIVE(...)`,
107
+ * `WITHIN(5m)`), no `CUMUL(...)` / `TIMEFRAME(...)` wrappers. Same logic as
108
+ * `ExpressionApi.migratePreV24Expression`.
109
+ *
110
+ * Pass `kind` for single-argument dual names: `SUM([x])` is an aggregation
111
+ * in the aggregated kinds and a row-wise scalar elsewhere.
112
+ *
113
+ * Legacy observable rules (`ROW_CHANGE(COUNT([price], 3), TIMEFRAME('5m'))`)
114
+ * are rewritten to observable calls (`CHANGE_COUNT{[price], WITHIN(5m)} >= 3`),
115
+ * as the State upgrade does for Alerts.
116
+ */
117
+ export declare function migrateExpression(expression: string, options?: {
118
+ kind?: AdaptableQLExpressionKind;
119
+ }): MigrateExpressionResult;
120
+ /**
121
+ * Every system Expression Function, aggregation, observable function and
122
+ * clause, with its signatures and examples, and the Modules that offer it
123
+ * when that is not every Module.
124
+ */
125
+ export declare function getExpressionFunctionCatalogue(): ExpressionFunctionDescription[];
126
+ /**
127
+ * Which Expression kinds each standard Module evaluates and which Function
128
+ * families it offers — the rules {@link validateExpression} applies when
129
+ * `module` is passed, as data. Derived from the same constants, so the two
130
+ * cannot disagree.
131
+ */
132
+ export declare function getExpressionModuleCapabilities(): ExpressionModuleCapabilities[];
package/aql.js ADDED
@@ -0,0 +1,260 @@
1
+ import { CLAUSE_DOCS, SYSTEM_AGGREGATION_CATALOGUE, compileValueExpression, isAST_Function, mapDataTypeToStaticType, migrateExpression as migrateAqlExpression, normalizeAst, parse, validateAqlExpression, validateExpressionTypes, } from "./vendor/aql/index.js";
2
+ import { AGGREGATED_BOOLEAN_MODULES, DATA_CHANGE_MODULES, moduleAllowsObservableCalls, } from './src/aql/expressionFunctionAvailability';
3
+ import { getMissingColumnIssues } from './src/aql/getMissingColumnIssues';
4
+ import { mapLegacyKindToValidationRequest, toMigrateOptions, } from './src/aql/legacyExpressionKinds';
5
+ import { systemAggregatedExpressionFunctions, systemAggregationClauseFunctions, systemObservableExpressionFunctions, systemScalarExpressionFunctions, } from './src/aql/systemExpressionFunctions';
6
+ const scalarFunctions = {
7
+ ...systemObservableExpressionFunctions,
8
+ ...systemScalarExpressionFunctions,
9
+ };
10
+ const isAggregatedKind = (kind) => kind === 'aggregatedScalar' || kind === 'aggregatedBoolean';
11
+ const AGGREGATED_KIND_MODULES = {
12
+ aggregatedScalar: ['CalculatedColumn'],
13
+ aggregatedBoolean: AGGREGATED_BOOLEAN_MODULES,
14
+ };
15
+ const scalarPool = systemScalarExpressionFunctions;
16
+ const aggregationPool = {
17
+ ...systemAggregatedExpressionFunctions,
18
+ ...systemAggregationClauseFunctions,
19
+ };
20
+ function getModuleAvailabilityIssues(ast, module, aggregated) {
21
+ const issues = [];
22
+ const reported = new Set();
23
+ const visit = (node) => {
24
+ if (node == null || typeof node !== 'object') {
25
+ return;
26
+ }
27
+ if (Array.isArray(node)) {
28
+ node.forEach(visit);
29
+ return;
30
+ }
31
+ if (!isAST_Function(node)) {
32
+ Object.values(node).forEach(visit);
33
+ return;
34
+ }
35
+ const fn = node;
36
+ const kind = fn.kind ?? fn.metaInfo;
37
+ if (kind === 'OBSERVABLE_CALL') {
38
+ return;
39
+ }
40
+ const scalar = kind === 'FUNCTION' ? scalarPool[fn.type] : undefined;
41
+ const modules = (scalar ?? (aggregated ? aggregationPool[fn.type] : undefined))?.isAvailable;
42
+ if (Array.isArray(modules) && !modules.includes(module)) {
43
+ if (!reported.has(fn.type)) {
44
+ reported.add(fn.type);
45
+ issues.push({
46
+ code: 'AQL_NOT_AVAILABLE_IN_MODULE',
47
+ message: `${fn.type} is not available in ${module} Expressions (only in ${modules.join(', ')})`,
48
+ severity: scalar ? 'error' : 'warning',
49
+ range: fn.range,
50
+ });
51
+ }
52
+ return;
53
+ }
54
+ fn.args.forEach(visit);
55
+ };
56
+ visit(ast);
57
+ return issues;
58
+ }
59
+ const error = (message, code) => ({
60
+ code,
61
+ message,
62
+ severity: 'error',
63
+ });
64
+ const toResult = (issues) => {
65
+ const byKey = new Map();
66
+ for (const issue of issues) {
67
+ const key = `${issue.message}::${issue.range?.join(',') ?? ''}`;
68
+ if (!byKey.get(key)?.code) {
69
+ byKey.set(key, issue);
70
+ }
71
+ }
72
+ const unique = [...byKey.values()];
73
+ return {
74
+ isValid: !unique.some((issue) => issue.severity === 'error'),
75
+ issues: unique,
76
+ };
77
+ };
78
+ export function validateExpression(expressionInput, options) {
79
+ const expression = (expressionInput ?? '').trim();
80
+ if (expression === '') {
81
+ return toResult([error(`empty ${options.kind} expression`, 'AQL_EMPTY')]);
82
+ }
83
+ let ast;
84
+ try {
85
+ ast = parse(expression).ast;
86
+ }
87
+ catch (e) {
88
+ return toResult([error(e instanceof Error ? e.message : String(e), 'AQL_PARSE_ERROR')]);
89
+ }
90
+ const columns = options.columns;
91
+ const getColumnType = columns
92
+ ? (columnId) => mapDataTypeToStaticType(columns[columnId])
93
+ : undefined;
94
+ const issues = [];
95
+ if (!isAggregatedKind(options.kind)) {
96
+ const rootFn = ast[ast.length - 1];
97
+ if (rootFn?.type === undefined || scalarFunctions[rootFn.type] === undefined) {
98
+ return toResult([
99
+ error(`provided function ${rootFn?.type} cannot be handled`, 'AQL_UNKNOWN_FUNCTION'),
100
+ ]);
101
+ }
102
+ const typeCheck = validateExpressionTypes(ast, scalarFunctions, {
103
+ getBraceCallSpec: SYSTEM_AGGREGATION_CATALOGUE.getBraceCallSpec,
104
+ getColumnType,
105
+ });
106
+ issues.push(...typeCheck.issues);
107
+ }
108
+ const { module } = options;
109
+ let kindInModule = true;
110
+ if (module && isAggregatedKind(options.kind)) {
111
+ const modules = AGGREGATED_KIND_MODULES[options.kind];
112
+ kindInModule = modules.includes(module);
113
+ if (!kindInModule) {
114
+ issues.push(error(`${module} does not evaluate ${options.kind} Expressions (only ${modules.join(', ')} does)`, 'AQL_KIND_NOT_IN_MODULE'));
115
+ }
116
+ }
117
+ const structure = validateAqlExpression(ast, {
118
+ request: {
119
+ ...mapLegacyKindToValidationRequest(options.kind),
120
+ requiresAggCalls: false,
121
+ allowsObservableCalls: module ? moduleAllowsObservableCalls(module) : true,
122
+ },
123
+ scalarFunctions,
124
+ catalogue: SYSTEM_AGGREGATION_CATALOGUE,
125
+ getColumnType,
126
+ });
127
+ issues.push(...structure.issues);
128
+ if (module && kindInModule) {
129
+ issues.push(...getModuleAvailabilityIssues(structure.normalizedAst, module, isAggregatedKind(options.kind)));
130
+ }
131
+ if (columns) {
132
+ issues.push(...getMissingColumnIssues(ast, (columnId) => columnId in columns).map((issue) => ({
133
+ ...issue,
134
+ code: 'AQL_UNKNOWN_COLUMN',
135
+ })));
136
+ }
137
+ if (isAggregatedKind(options.kind) && !issues.some((issue) => issue.severity === 'error')) {
138
+ const mismatch = error(`provided ${options.kind} expression does not evaluate to a supported aggregation`, 'AQL_AGG_REQUIRED');
139
+ try {
140
+ const compiled = compileValueExpression(normalizeAst(ast), {
141
+ registry: SYSTEM_AGGREGATION_CATALOGUE,
142
+ getColumnType,
143
+ scalarFunctions: systemScalarExpressionFunctions,
144
+ });
145
+ const isBoolean = compiled.outputType === 'boolean';
146
+ if (compiled.aggregations.length === 0 ||
147
+ (options.kind === 'aggregatedBoolean' && !isBoolean) ||
148
+ (options.kind === 'aggregatedScalar' && isBoolean)) {
149
+ issues.push(mismatch);
150
+ }
151
+ }
152
+ catch (e) {
153
+ issues.push(error(e instanceof Error ? e.message : String(e)));
154
+ }
155
+ }
156
+ return toResult(issues);
157
+ }
158
+ export function migrateExpression(expression, options) {
159
+ const result = migrateAqlExpression((expression ?? '').trim(), {
160
+ ...toMigrateOptions(options?.kind),
161
+ rewriteLegacyObservables: true,
162
+ });
163
+ return {
164
+ expression: result.expression,
165
+ changed: result.changed,
166
+ ...(result.error !== undefined ? { error: result.error } : {}),
167
+ ...(result.notes?.length ? { notes: result.notes.map((note) => note.message) } : {}),
168
+ };
169
+ }
170
+ const MODULE_STANDARD_KINDS = {
171
+ Alert: ['boolean'],
172
+ CalculatedColumn: ['scalar', 'boolean'],
173
+ ColumnFilter: ['boolean'],
174
+ Export: ['boolean'],
175
+ FlashingCell: ['boolean'],
176
+ FormatColumn: ['boolean'],
177
+ GridFilter: ['boolean'],
178
+ NamedQuery: ['boolean', 'scalar'],
179
+ PlusMinus: ['boolean'],
180
+ StyledColumn: ['boolean'],
181
+ };
182
+ const STANDARD_MODULES = Object.keys(MODULE_STANDARD_KINDS);
183
+ function modulesOf(entry) {
184
+ const available = entry?.isAvailable;
185
+ if (!Array.isArray(available)) {
186
+ return {};
187
+ }
188
+ const standard = STANDARD_MODULES;
189
+ return {
190
+ modules: available.filter((module) => standard.includes(module)),
191
+ };
192
+ }
193
+ export function getExpressionFunctionCatalogue() {
194
+ const scalar = Object.entries(systemScalarExpressionFunctions).map(([name, fn]) => ({
195
+ name,
196
+ callForm: 'paren',
197
+ group: 'scalar',
198
+ returnType: fn.returnType,
199
+ description: fn.description,
200
+ signatures: fn.signatures ?? [],
201
+ examples: fn.examples ?? [],
202
+ category: fn.category,
203
+ ...modulesOf(fn),
204
+ }));
205
+ const aggregations = SYSTEM_AGGREGATION_CATALOGUE.callables()
206
+ .filter((callable) => callable.system)
207
+ .map((callable) => ({
208
+ name: callable.name,
209
+ callForm: callable.callForm,
210
+ group: 'aggregation',
211
+ description: callable.docs.description,
212
+ signatures: callable.docs.signatures ?? [],
213
+ examples: callable.docs.examples ?? [],
214
+ category: callable.docs.category,
215
+ ...modulesOf(aggregationPool[callable.name]),
216
+ }));
217
+ const observables = Object.entries(systemObservableExpressionFunctions).map(([name, fn]) => ({
218
+ name,
219
+ callForm: 'brace',
220
+ group: 'observable',
221
+ returnType: fn.returnType,
222
+ description: fn.description,
223
+ signatures: fn.signatures ?? [],
224
+ examples: fn.examples ?? [],
225
+ category: fn.category,
226
+ ...modulesOf(fn),
227
+ }));
228
+ const observablePool = systemObservableExpressionFunctions;
229
+ const clauses = Object.entries(CLAUSE_DOCS).map(([name, docs]) => ({
230
+ name,
231
+ callForm: 'paren',
232
+ group: 'clause',
233
+ description: docs.description,
234
+ signatures: docs.signatures,
235
+ examples: docs.examples,
236
+ category: docs.category,
237
+ ...modulesOf(aggregationPool[name] ?? observablePool[name]),
238
+ }));
239
+ return [...scalar, ...aggregations, ...observables, ...clauses];
240
+ }
241
+ export function getExpressionModuleCapabilities() {
242
+ const aggregatedBoolean = AGGREGATED_KIND_MODULES.aggregatedBoolean;
243
+ const aggregatedScalar = AGGREGATED_KIND_MODULES.aggregatedScalar;
244
+ const dataChange = DATA_CHANGE_MODULES;
245
+ return STANDARD_MODULES.map((module) => {
246
+ const kinds = [...MODULE_STANDARD_KINDS[module]];
247
+ if (aggregatedScalar.includes(module)) {
248
+ kinds.push('aggregatedScalar');
249
+ }
250
+ if (aggregatedBoolean.includes(module)) {
251
+ kinds.push('aggregatedBoolean');
252
+ }
253
+ return {
254
+ module,
255
+ kinds,
256
+ observableCalls: moduleAllowsObservableCalls(module),
257
+ dataChangeFunctions: dataChange.includes(module),
258
+ };
259
+ });
260
+ }