@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
@@ -4,7 +4,7 @@ import * as AlertRedux from '../../Redux/ActionsReducers/AlertRedux';
4
4
  import { ApiBase } from './ApiBase';
5
5
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
6
6
  import ObjectFactory from '../../Utilities/ObjectFactory';
7
- import { isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
7
+ import { getAlertCellDataChangedInfos, isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
8
8
  import StringExtensions from '../../Utilities/Extensions/StringExtensions';
9
9
  import { AlertInternalApi } from '../Internal/AlertInternalApi';
10
10
  import { resolveContainerElement } from '../../Utilities/resolveContainerElement';
@@ -100,26 +100,29 @@ export class AlertApiImpl extends ApiBase {
100
100
  this.getGridApi().jumpToRow(firstRowNode);
101
101
  }
102
102
  }
103
- if (isAdaptableCellChangedAlert(alertToShow) &&
104
- alertToShow.cellDataChangedInfo &&
103
+ const highlightCellChanges = getAlertCellDataChangedInfos(alertToShow);
104
+ if (highlightCellChanges.length &&
105
105
  (alertProperties.HighlightCell || alertProperties.HighlightRow)) {
106
- let alertNode = alertToShow.cellDataChangedInfo.rowNode;
107
- if (!alertNode) {
108
- alertNode = this.getGridApi().getRowNodeForPrimaryKey(alertToShow.cellDataChangedInfo.primaryKeyValue);
109
- }
110
- if (alertNode) {
111
- if (alertProperties.HighlightRow) {
112
- this.getGridApi().refreshRowNodes([alertNode]);
113
- setTimeout(() => {
114
- this.dispatchAction(InternalRedux.AdaptableAlertRemoveRowHighlight(alertToShow));
115
- }, this.getAlertOptions().rowHighlightDuration);
116
- }
117
- if (alertProperties.HighlightCell && alertToShow.cellDataChangedInfo.column) {
118
- this.getGridApi().refreshCell(alertNode, alertToShow.cellDataChangedInfo.column.columnId);
119
- setTimeout(() => {
120
- this.dispatchAction(InternalRedux.AdaptableAlertRemoveCellHighlight(alertToShow));
121
- }, this.getAlertOptions().cellHighlightDuration);
106
+ const highlightNodes = [];
107
+ highlightCellChanges.forEach((cellChange) => {
108
+ const alertNode = cellChange.rowNode ?? this.getGridApi().getRowNodeForPrimaryKey(cellChange.primaryKeyValue);
109
+ if (alertNode) {
110
+ highlightNodes.push(alertNode);
111
+ if (alertProperties.HighlightCell && cellChange.column) {
112
+ this.getGridApi().refreshCell(alertNode, cellChange.column.columnId);
113
+ }
122
114
  }
115
+ });
116
+ if (alertProperties.HighlightRow && highlightNodes.length) {
117
+ this.getGridApi().refreshRowNodes(highlightNodes);
118
+ setTimeout(() => {
119
+ this.dispatchAction(InternalRedux.AdaptableAlertRemoveRowHighlight(alertToShow));
120
+ }, this.getAlertOptions().rowHighlightDuration);
121
+ }
122
+ if (alertProperties.HighlightCell) {
123
+ setTimeout(() => {
124
+ this.dispatchAction(InternalRedux.AdaptableAlertRemoveCellHighlight(alertToShow));
125
+ }, this.getAlertOptions().cellHighlightDuration);
123
126
  }
124
127
  }
125
128
  else if (alertProperties.HighlightRow &&
@@ -188,10 +191,14 @@ export class AlertApiImpl extends ApiBase {
188
191
  const message = allSameMessage && StringExtensions.IsNotNullOrEmpty(representative.message)
189
192
  ? `${representative.message}\n${summaryMessage}`
190
193
  : summaryMessage;
194
+ const cellDataChangedInfos = group.flatMap((alert) => getAlertCellDataChangedInfos(alert));
191
195
  return {
192
196
  ...representative,
193
197
  occurrenceCount: count,
194
198
  message,
199
+ ...(isAdaptableCellChangedAlert(representative) && cellDataChangedInfos.length
200
+ ? { cellDataChangedInfos }
201
+ : {}),
195
202
  };
196
203
  }
197
204
  displayAdaptableAlertNotification(alert) {
@@ -1,6 +1,6 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
3
- import { getGraySwatchColor } from '../../Utilities/Helpers/UIHelper';
3
+ import { getDefaultRangeColor } from '../../Utilities/Helpers/UIHelper';
4
4
  export class ColumnScopeApiImpl extends ApiBase {
5
5
  isColumnInScope(column, scope) {
6
6
  if (!column) {
@@ -238,7 +238,7 @@ export class ColumnScopeApiImpl extends ApiBase {
238
238
  {
239
239
  Min: 0,
240
240
  Max: 0,
241
- Color: getGraySwatchColor(),
241
+ Color: getDefaultRangeColor(),
242
242
  },
243
243
  ];
244
244
  }
@@ -246,7 +246,7 @@ export class ColumnScopeApiImpl extends ApiBase {
246
246
  {
247
247
  Min: 'Col-Min',
248
248
  Max: 'Col-Max',
249
- Color: getGraySwatchColor(),
249
+ Color: getDefaultRangeColor(),
250
250
  },
251
251
  ];
252
252
  }
@@ -8,10 +8,10 @@ export class QuickSearchApiImpl extends ApiBase {
8
8
  return this.getAdaptableState().QuickSearch;
9
9
  }
10
10
  runQuickSearch(quickSearchText) {
11
- this.dispatchAction(QuickSearchRedux.QuickSearchRun(quickSearchText));
11
+ this.dispatchAction(QuickSearchRedux.QuickSearchTextAction(quickSearchText));
12
12
  }
13
13
  clearQuickSearch() {
14
- this.dispatchAction(QuickSearchRedux.QuickSearchRun(''));
14
+ this.dispatchAction(QuickSearchRedux.QuickSearchClear());
15
15
  }
16
16
  gotoNextMatch() {
17
17
  this.getAdaptableApi().agGridApi.findNext();
@@ -43,7 +43,7 @@ export declare class StateApiImpl extends ApiBase implements StateApi {
43
43
  flushCurrentState?: boolean;
44
44
  progressIndicatorLabel?: string;
45
45
  }): Promise<void>;
46
- persistAdaptableState(): Promise<AdaptableState>;
46
+ persistAdaptableState(): Promise<AdaptablePersistentState>;
47
47
  getDescriptionForModule(module: AdaptableModule): string;
48
48
  getHelpPageForModule(module: AdaptableModule): string;
49
49
  getUserStateByStateKey(stateKey: AdaptableStateKey, returnJson?: boolean): BaseState | string;
@@ -1,4 +1,6 @@
1
1
  import { InitState } from '../../Redux/Store/AdaptableStore';
2
+ import { runAsyncStateFunction } from '../../Redux/Store/StateOptionsGuards';
3
+ import { loadState as defaultLoadState } from '../../Redux/Store/AdaptableReduxLocalStorageEngine';
2
4
  import { ApiBase } from './ApiBase';
3
5
  import Helper from '../../Utilities/Helpers/Helper';
4
6
  import { addUuidsToInitialState } from '../../Utilities/Helpers/AdaptableHelper';
@@ -56,7 +58,7 @@ export class StateApiImpl extends ApiBase {
56
58
  localStorage.removeItem(adaptableOptions.adaptableStateKey);
57
59
  return Promise.resolve(true);
58
60
  });
59
- const clearStatePromise = clearStateFn(this.internalApi.buildAdaptableStateFunctionConfig());
61
+ const clearStatePromise = runAsyncStateFunction('clearState', clearStateFn, [this.internalApi.buildAdaptableStateFunctionConfig()], this._adaptable.logger);
60
62
  return clearStatePromise.then(() => {
61
63
  this.setAdaptableStateKey(adaptableOptions.adaptableStateKey, {
62
64
  initialState: newInitialState || adaptableOptions.initialState,
@@ -82,8 +84,7 @@ export class StateApiImpl extends ApiBase {
82
84
  }
83
85
  async remergePersistedState() {
84
86
  const config = this.internalApi.buildAdaptableStateFunctionConfig();
85
- const loadState = this.getOptions().stateOptions.loadState;
86
- const userState = await loadState(config);
87
+ const userState = await runAsyncStateFunction('loadState', this.getOptions().stateOptions.loadState || defaultLoadState, [config], this._adaptable.logger);
87
88
  return this.internalApi.applyMergedInitialAndUserState(this.getInitialState(), userState);
88
89
  }
89
90
  getAllState() {
@@ -11,7 +11,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
11
11
  internalApi: UserInterfaceInternalApi;
12
12
  private showProgressIndicatorTimeout;
13
13
  constructor(_adaptable: IAdaptable);
14
- getColorPalette(): string[];
15
14
  getCustomIcons(): CustomIcon[];
16
15
  getStyleClassNames(): string[] | undefined;
17
16
  getEditableCellStyle(): AdaptableStyle | undefined;
@@ -1,8 +1,6 @@
1
1
  import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
2
2
  import { ArrayExtensions } from '../../Utilities/Extensions/ArrayExtensions';
3
3
  import { resolveValueOrFunction } from '../../Utilities/Helpers/ValueOrFunctionHelper';
4
- import { logDeprecation } from '../../Utilities/logDeprecation';
5
- import UIHelper from '../../Utilities/Helpers/UIHelper';
6
4
  import { CUSTOM_WINDOW_FACTORY_ID } from '../../View/Components/Popups/WindowPopups/WindowPopups';
7
5
  import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
8
6
  import { ApiBase } from './ApiBase';
@@ -15,16 +13,6 @@ export class UserInterfaceApiImpl extends ApiBase {
15
13
  super(_adaptable);
16
14
  this.internalApi = new UserInterfaceInternalApi(_adaptable);
17
15
  }
18
- getColorPalette() {
19
- const colorPalette = this.getUserInterfaceOptions().colorPalette;
20
- if (colorPalette != null) {
21
- logDeprecation(this._adaptable.logger, 'UserInterfaceOptions', 'colorPalette', undefined, 'Override `--ab-color-swatch-*`, `--ab-color-palette-*`, and semantic `--ab-color-*` variables in your light or dark theme CSS instead. `colorPalette` will be removed in a future major release.');
22
- if (typeof colorPalette === 'function' || Array.isArray(colorPalette)) {
23
- return resolveValueOrFunction(colorPalette, this.getThemeApi().getCurrentTheme());
24
- }
25
- }
26
- return UIHelper.getDefaultColorPalette();
27
- }
28
16
  getCustomIcons() {
29
17
  return resolveValueOrFunction(this.getUserInterfaceOptions().customIcons) ?? [];
30
18
  }
@@ -42,9 +30,15 @@ export class UserInterfaceApiImpl extends ApiBase {
42
30
  }
43
31
  getAdaptableObjectTags() {
44
32
  const objectTags = this.getUserInterfaceOptions().objectTags;
45
- const resolvedTags = resolveValueOrFunction(objectTags, this.getAdaptableInternalApi().buildBaseContext());
46
- if (resolvedTags && ArrayExtensions.IsNotNullOrEmpty(resolvedTags)) {
47
- return resolvedTags;
33
+ if (typeof objectTags === 'function') {
34
+ const tags = objectTags(this.getAdaptableInternalApi().buildBaseContext());
35
+ if (!Array.isArray(tags)) {
36
+ return;
37
+ }
38
+ return tags.filter((tag) => typeof tag === 'string');
39
+ }
40
+ if (objectTags && ArrayExtensions.IsNotNullOrEmpty(objectTags)) {
41
+ return objectTags;
48
42
  }
49
43
  }
50
44
  getAdaptableObjectsWithTag(tag, adaptableModule) {
@@ -276,9 +276,11 @@ export class AdaptableInternalApi extends ApiBase {
276
276
  return userInterfaceOptions.objectTags;
277
277
  }
278
278
  if (typeof userInterfaceOptions.objectTags === 'function') {
279
- return userInterfaceOptions
280
- .objectTags(this.buildBaseContext())
281
- .filter((tag) => typeof tag === 'string');
279
+ const tags = userInterfaceOptions.objectTags(this.buildBaseContext());
280
+ if (!Array.isArray(tags)) {
281
+ return;
282
+ }
283
+ return tags.filter((tag) => typeof tag === 'string');
282
284
  }
283
285
  }
284
286
  dispatchReduxAction(action) {
@@ -1,6 +1,6 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { expressionKindForAlertType, isRowChangeAlertDefinition, } from '../../AdaptableState/AlertState';
3
- import { isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
3
+ import { getAlertCellDataChangedInfos, isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
4
4
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
5
5
  import { AlertModuleId } from '../../Utilities/Constants/ModuleConstants';
6
6
  import ObjectFactory from '../../Utilities/ObjectFactory';
@@ -476,9 +476,16 @@ export class AlertInternalApi extends ApiBase {
476
476
  return this.getAdaptableAlerts().filter(isAdaptableRowChangedAlert);
477
477
  }
478
478
  getAdaptableAlertWithHighlightCell(columnId, rowNode) {
479
- return this.getAdaptableCellChangedAlerts().find((alert) => getRuleAlertProperties(alert.alertDefinition)?.HighlightCell &&
480
- alert.cellDataChangedInfo?.column?.columnId === columnId &&
481
- alert.cellDataChangedInfo?.rowNode === rowNode);
479
+ const primaryKeyValue = this.getGridApi().getPrimaryKeyValueForRowNode(rowNode);
480
+ return this.getAdaptableCellChangedAlerts().find((alert) => {
481
+ if (!getRuleAlertProperties(alert.alertDefinition)?.HighlightCell) {
482
+ return false;
483
+ }
484
+ return getAlertCellDataChangedInfos(alert).some((cellChange) => cellChange.column?.columnId === columnId &&
485
+ (cellChange.rowNode === rowNode ||
486
+ cellChange.rowNode?.id === rowNode.id ||
487
+ (primaryKeyValue != null && cellChange.primaryKeyValue === primaryKeyValue)));
488
+ });
482
489
  }
483
490
  getAdaptableAlertWithHighlightRow(rowNode) {
484
491
  let alertWithRowHighlight;
@@ -494,9 +501,7 @@ export class AlertInternalApi extends ApiBase {
494
501
  }
495
502
  alertWithRowHighlight = this.getAdaptableCellChangedAlerts().find((alert) => {
496
503
  if (getRuleAlertProperties(alert.alertDefinition)?.HighlightRow) {
497
- if (alert.cellDataChangedInfo?.rowNode.id == rowNode.id) {
498
- return alert;
499
- }
504
+ return getAlertCellDataChangedInfos(alert).some((cellChange) => cellChange.rowNode?.id == rowNode.id);
500
505
  }
501
506
  });
502
507
  return alertWithRowHighlight;
@@ -221,7 +221,7 @@ export class CalculatedColumnInternalApi extends ApiBase {
221
221
  if (calculatedColumnSettings.ShowToolTip != null &&
222
222
  calculatedColumnSettings.ShowToolTip == true) {
223
223
  newColDef.tooltipComponent = TwoLineTooltip;
224
- newColDef.tooltipValueGetter = (params) => {
224
+ newColDef.tooltip = (params) => {
225
225
  const formulaText = this.getAdaptableInternalApi().getAdaptableQueryExpressionText(calculatedColumn.Expression);
226
226
  if (!isPerRowCalculatedColumnType(getCalculatedColumnType(calculatedColumn)) ||
227
227
  !params?.node ||
@@ -1,7 +1,7 @@
1
1
  import { IRowNode } from 'ag-grid-enterprise';
2
2
  import * as Redux from 'redux';
3
3
  import { CellDataChangedInfo } from '../../AdaptableState/Common/CellDataChangedInfo';
4
- import { AdaptableAlert, AdaptableFlashingCell, AdaptablePersistentState, AdaptableSharedEntity, AdaptableState, AdaptableTheme, CalculatedColumn, AdaptableNote, NoteChangedAction, ColumnFilterChangedInfo, CreatedRowInfo, DashboardState, DataImportedInfo, DataSet, DeletedRowInfo, EditedRowInfo, LayoutState, RowDataChangedInfo, ReportSchedule, SystemStatusMessageInfo } from '../../types';
4
+ import { AdaptableAlert, AdaptableFlashingCell, AdaptablePersistentState, AdaptableSharedEntity, AdaptableState, AdaptableTheme, CalculatedColumn, CommentThread, AdaptableNote, NoteChangedAction, ColumnFilterChangedInfo, CreatedRowInfo, DashboardState, DataImportedInfo, DataSet, DeletedRowInfo, EditedRowInfo, LayoutState, RowDataChangedInfo, ReportSchedule, SystemStatusMessageInfo } from '../../types';
5
5
  import { SystemThemeName } from '../../AdaptableState/ThemeState';
6
6
  import { ApiBase } from '../Implementation/ApiBase';
7
7
  import { LayoutChangedAction } from '../Events/LayoutChanged';
@@ -10,6 +10,7 @@ export declare class EventInternalApi extends ApiBase {
10
10
  fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
11
11
  fireRowChangedEvent(rowDataChangedInfo: RowDataChangedInfo): void;
12
12
  fireDashboardChangedEvent(trigger: string, oldDashboardState: DashboardState, newDashboardState: DashboardState): void;
13
+ fireCommentChangedEvent(commentThreads: CommentThread[]): void;
13
14
  fireAlertFiredEvent(alertToFire: AdaptableAlert): void;
14
15
  fireThemeSelectedEvent(theme: SystemThemeName): void;
15
16
  fireThemeChangedEvent(theme: AdaptableTheme, trigger: 'ThemeSelected' | 'ThemeEdited'): void;
@@ -68,6 +68,13 @@ export class EventInternalApi extends ApiBase {
68
68
  });
69
69
  }
70
70
  }
71
+ fireCommentChangedEvent(commentThreads) {
72
+ const commentChangedInfo = {
73
+ commentThreads: commentThreads ?? [],
74
+ ...this.getAdaptableInternalApi().buildBaseContext(),
75
+ };
76
+ this.getEventApi().emit('CommentChanged', commentChangedInfo);
77
+ }
71
78
  fireAlertFiredEvent(alertToFire) {
72
79
  const alertFiredInfo = {
73
80
  alert: alertToFire,
@@ -7,7 +7,7 @@ export declare class StateInternalApi extends ApiBase {
7
7
  * Startup-equivalent merge: Initial State + user state → store, layout/theme/cells, persist.
8
8
  * Does not clear persistence and does not call `loadState` (caller supplies user state).
9
9
  */
10
- applyMergedInitialAndUserState(initialState: InitialState, userState: AdaptablePersistentState | Record<string, unknown> | null | undefined): Promise<void>;
10
+ applyMergedInitialAndUserState(initialState: InitialState, userState: Partial<AdaptablePersistentState> | null | void): Promise<void>;
11
11
  getAllStateForDevTools(): AdaptableState;
12
12
  /**
13
13
  * Replaces persisted Adaptable state with the supplied snapshot (e.g. from DevTools).
@@ -1,5 +1,6 @@
1
1
  import { getPersistableState, LoadState, InitState } from '../../Redux/Store/AdaptableStore';
2
2
  import { MergeStateFunction } from '../../Redux/Store/AdaptableReduxMerger';
3
+ import { runSyncStateFunction } from '../../Redux/Store/StateOptionsGuards';
3
4
  import { addUuidsToInitialState } from '../../Utilities/Helpers/AdaptableHelper';
4
5
  import { ApiBase } from '../Implementation/ApiBase';
5
6
  function deepClone(value) {
@@ -23,8 +24,7 @@ export class StateInternalApi extends ApiBase {
23
24
  const initialForMerge = addUuidsToInitialState(deepClone(initialState));
24
25
  const userForMerge = deepClone(userState ?? {});
25
26
  let merged = MergeStateFunction(initialForMerge, userForMerge);
26
- const stateFunctionConfig = this.buildAdaptableStateFunctionConfig();
27
- merged = this.getOptions().stateOptions.applyState(merged, stateFunctionConfig);
27
+ merged = runSyncStateFunction('applyState', this.getOptions().stateOptions.applyState, merged, this.buildAdaptableStateFunctionConfig(), this._adaptable.logger);
28
28
  merged = this._adaptable.migrateLoadedAdaptableState(merged);
29
29
  const agGridOptions = {
30
30
  columnDefs: this._adaptable.agGridAdapter.getGridOption('columnDefs'),
@@ -92,14 +92,15 @@ export class StateInternalApi extends ApiBase {
92
92
  rowModelType: this._adaptable.agGridAdapter.getGridOption('rowModelType'),
93
93
  treeData: this._adaptable.agGridAdapter.getGridOption('treeData'),
94
94
  };
95
- const clonedState = state.Internal
96
- ? JSON.parse(JSON.stringify(state))
97
- : getPersistableState(JSON.parse(JSON.stringify(state)));
95
+ const clonedState = getPersistableState(JSON.parse(JSON.stringify(state)));
98
96
  let processedState = this._adaptable.migrateLoadedAdaptableState(clonedState);
99
97
  processedState = this._adaptable.normalizeAdaptableState(processedState, agGridOptions);
98
+ const oldState = this.getAdaptableApi().stateApi.getPersistentState();
100
99
  this.getAdaptableStore().TheStore.dispatch(LoadState(processedState));
101
100
  this.getAdaptableStore().TheStore.dispatch(InitState());
102
101
  this._adaptable.refreshLayout();
102
+ const newState = this.getAdaptableApi().stateApi.getPersistentState();
103
+ this.getEventApi().internalApi.fireAdaptableStateReloadedEvent(oldState, newState);
103
104
  void this.getAdaptableStore()
104
105
  .saveStateNow(this._adaptable)
105
106
  .then(() => resolve())
@@ -1,10 +1,11 @@
1
1
  import { InteropioPluginOptions } from '../AdaptableOptions/InteropioPluginOptions';
2
2
  /**
3
- * Provides run-time access to the Interopio Plugin
3
+ * The interop.io plugin.
4
4
  */
5
5
  export interface InteropioPluginApi {
6
6
  /**
7
7
  * Retrieves the InteropioPlugOptions provided in interopio Plugin
8
+ * @returns The InteropioPlugOptions provided in interopio Plugin
8
9
  */
9
10
  getPluginOptions(): InteropioPluginOptions;
10
11
  }
@@ -2,11 +2,12 @@ import { AdaptableColumn, ColumnSort, PivotLayout, TableLayout } from '../../typ
2
2
  import { ExtendedLayout, LayoutExtensionInfo, LayoutExtensionModule, LayoutExtensionObject } from '../AdaptableState/Common/ExtendedLayout';
3
3
  import { LayoutState, Layout } from '../AdaptableState/LayoutState';
4
4
  /**
5
- * Provides run-time access to the Layout Module and associated state
5
+ * Table and Pivot Layouts: the layout that is selected, its columns, sorts and row groups, and creating, cloning, editing and deleting layouts.
6
6
  */
7
7
  export interface LayoutApi {
8
8
  /**
9
- * Retrieves Layout section from Adaptable State
9
+ * The Layout section of Adaptable State.
10
+ * @returns Layouts and the name of the current Layout
10
11
  */
11
12
  getLayoutState(): LayoutState;
12
13
  /**
@@ -20,34 +21,41 @@ export interface LayoutApi {
20
21
  */
21
22
  getCurrentLayout(): Layout;
22
23
  /**
23
- * Returns true if current Layout is a Pivot Layout
24
+ * Whether the current Layout is a Pivot Layout.
25
+ * @returns `true` when the current Layout is a Pivot Layout
24
26
  */
25
27
  isCurrentLayoutPivot(): boolean;
26
28
  /**
27
- * Retrieves the sort order of a column from the current layout
28
- * @param columnId Column id
29
+ * The sort direction of a column in the current Layout.
30
+ * @param columnId Column to read
31
+ * @returns `'Asc'` or `'Desc'`, or `null` when the column is not sorted in this Layout
29
32
  */
30
33
  getCurrentLayoutColumnSort(columnId: string): ColumnSort['SortOrder'] | null;
31
34
  /**
32
- * Retrieves map with visible columns in current Table Layout
35
+ * Column ids in the current Table Layout.
36
+ * @returns Each Table Layout column id mapped to `true`. An empty object when the current Layout is a Pivot Layout
33
37
  */
34
38
  getCurrentVisibleColumnIdsMapForTableLayout(): {
35
39
  [key: string]: boolean;
36
40
  };
37
41
  /**
38
- * Retrieves array of visible ColumnIds in current Table Layout
42
+ * Column ids currently displayed in a Table Layout.
43
+ * @returns The displayed column ids. Empty when the current Layout is a Pivot Layout
39
44
  */
40
45
  getCurrentVisibleColumnIdsForTableLayout(): string[];
41
46
  /**
42
- * Retrieves array of visible ColumnIds in current Pivot Layout
47
+ * Column ids currently displayed in a Pivot Layout.
48
+ * @returns The displayed column ids, including pivot result columns. Empty when the current Layout is a Table Layout
43
49
  */
44
50
  getCurrentVisibleColumnIdsForPivotLayout(): string[];
45
51
  /**
46
- * Retrieves array of visible ColumnIds in current Layout
52
+ * Columns that group rows in the current Layout.
53
+ * @returns `RowGroupedColumns` for a Table Layout, or `PivotGroupedColumns` for a Pivot Layout
47
54
  */
48
55
  getCurrentRowGroupsColumnIds(): string[];
49
56
  /**
50
- * Retrieves name of current Layout
57
+ * Name of the Layout that is selected.
58
+ * @returns The current Layout name
51
59
  */
52
60
  getCurrentLayoutName(): string;
53
61
  /**
@@ -65,6 +73,7 @@ export interface LayoutApi {
65
73
  * Retrieves the Layout with the given name, together with the objects extended into it
66
74
  * (global objects, which apply in every Layout, are not included)
67
75
  * @param layoutName Layout to retrieve
76
+ * @returns The Layout and the objects extended into it, or `undefined` when no Layout has that name. Objects that apply in every Layout are not included
68
77
  */
69
78
  getExtendedLayoutByName(layoutName: string): ExtendedLayout | undefined;
70
79
  /**
@@ -77,6 +86,7 @@ export interface LayoutApi {
77
86
  * Clones an Extended Layout - the new Layout is extended with the same objects
78
87
  * @param extendedLayoutToClone ExtendedLayout to Clone
79
88
  * @param layoutName New name for Layout being cloned
89
+ * @returns The cloned Extended Layout, or `false` when the source does not exist or the new name is already used
80
90
  */
81
91
  cloneExtendedLayout(extendedLayoutToClone: ExtendedLayout, layoutName: string): ExtendedLayout | false;
82
92
  /**
@@ -89,6 +99,7 @@ export interface LayoutApi {
89
99
  /**
90
100
  * Retrieves the names of the objects, per Module, extended into a Layout
91
101
  * @param layoutName Layout to check
102
+ * @returns Object names grouped by module. Empty when the Layout has no extensions
92
103
  */
93
104
  getLayoutExtensions(layoutName: string): LayoutExtensionInfo;
94
105
  /**
@@ -116,6 +127,7 @@ export interface LayoutApi {
116
127
  * Retrieves the names of the Layouts an object is extended into (empty when the object is global)
117
128
  * @param object Object to check
118
129
  * @param module Module the object belongs to
130
+ * @returns Layout names the object is extended into. Empty when the object applies in every Layout
119
131
  */
120
132
  getLayoutsForObject(object: LayoutExtensionObject, module: LayoutExtensionModule): string[];
121
133
  /**
@@ -177,8 +189,9 @@ export interface LayoutApi {
177
189
  */
178
190
  cloneAndSetLayout(layoutToClone: Layout, layoutName: string): Layout | false;
179
191
  /**
180
- * Checks whether this Layout exists in the Adaptable State (by comparing Uuid property)
192
+ * Whether this Layout is already in Layout State. Compared by `Uuid`.
181
193
  * @param layout Layout to check
194
+ * @returns `true` when a Layout with the same `Uuid` is in state
182
195
  */
183
196
  doesLayoutExist(layout: Layout): boolean;
184
197
  /**
@@ -187,8 +200,9 @@ export interface LayoutApi {
187
200
  openLayoutSettingsPanel(): void;
188
201
  /**
189
202
  * Opens Layout Editor - for Current or a named Layout
190
- * @param layoutName Name of Layout to be edited or cloned; if not specified, uses Current Layout
191
- * @param action Whether to edit, clone, or create a new Layout
203
+ * @param layoutName Name of the Layout to edit or clone. Omit it to use the current Layout
204
+ * @param layoutType `'table'` or `'pivot'`. Used when `action` is `'New'`
205
+ * @param action `'Edit'`, `'Clone'` or `'New'`. Defaults to `'Edit'`
192
206
  */
193
207
  showLayoutEditor(layoutName?: string, layoutType?: 'table' | 'pivot',
194
208
  /**
@@ -207,8 +221,8 @@ export interface LayoutApi {
207
221
  */
208
222
  deleteLayout(layout: Layout): void;
209
223
  /**
210
- * Deletes an existing Layout provided by Name (if not Default or only existing Layout)
211
- * @param layout Name of the Layout to delete
224
+ * Deletes a Layout by name. Does nothing when it is the only Layout.
225
+ * @param layoutName Name of the Layout to delete
212
226
  */
213
227
  deleteLayoutByName(layoutName: string): void;
214
228
  /**
@@ -1,35 +1,39 @@
1
1
  import { NamedQuery, NamedQueryState } from '../types';
2
2
  /**
3
- * Provides run-time access to Named Queries
3
+ * Named Queries saved in AdapTable State, and running a query by object or by name.
4
4
  */
5
5
  export interface NamedQueryApi {
6
6
  /**
7
7
  * Adds a new Named Query to Adaptable State
8
- * @param namedQueries
8
+ * @param namedQueries Named Query to add
9
9
  */
10
10
  addNamedQuery(namedQueries: NamedQuery): void;
11
11
  /**
12
- * Adds multiple new Named Query to Adaptable State
13
- * @param namedQueries
12
+ * Adds several Named Queries to Adaptable State.
13
+ * @param namedQueries Named Queries to add
14
14
  */
15
15
  addNamedQueries(namedQueries: NamedQuery[]): void;
16
16
  /**
17
17
  * Retrieves Query section from Adaptable State
18
18
  *
19
+ * @returns Query section from Adaptable State
19
20
  */
20
21
  getNamedQueryState(): NamedQueryState;
21
22
  /**
22
23
  * Gets all Named Queries in Adaptable State
24
+ * @returns All Named Queries in Adaptable State
23
25
  */
24
26
  getNamedQueries(): NamedQuery[];
25
27
  /**
26
28
  * Retrieves Named Query with given name from State
27
29
  * @param namedQueryName Name of Named Query
30
+ * @returns Named Query with given name from State
28
31
  */
29
32
  getNamedQueryByName(namedQueryName: string): NamedQuery | undefined;
30
33
  /**
31
- * Checks if the given Named Query has a valid name
32
- * @param namedQueryName Named Query
34
+ * Whether this Named Query can be saved. The name is required and must not already be used.
35
+ * @param namedQuery Named Query to check
36
+ * @returns `true` when this Named Query can be saved. The name is required and must not already be used
33
37
  */
34
38
  isValidNamedQuery(namedQuery: NamedQuery): NamedQueryValidationResult;
35
39
  /**
@@ -1,27 +1,27 @@
1
1
  import { AdaptableNote, AdaptableNotes, NoteState } from '../AdaptableState/NoteState';
2
2
  import { AdaptableMessageType, CellAddress } from '../../types';
3
3
  /**
4
- * Provides run-time access to Notes Module and related State
4
+ * Notes attached to cells. Each note has text, a type, and the cell it belongs to.
5
5
  */
6
6
  export interface NoteApi {
7
7
  /**
8
8
  * Adds a new Note
9
- * @param text
10
- * @param primaryKeyValue
11
- * @param columnId
9
+ * @param text Note text
10
+ * @param primaryKeyValue Primary key of the row
11
+ * @param columnId Column the note belongs to
12
12
  * @param extra optional additional Note properties (e.g. `Author`, `Metadata`, `IsReadOnly`);
13
13
  * `Author` and `CreatedAt` are stamped automatically when not supplied
14
14
  */
15
15
  addNote(text: string, primaryKeyValue: any, columnId: string, extra?: Partial<AdaptableNote>): void;
16
16
  /**
17
- * Edits a Note
18
- * @param note
17
+ * Replaces a note already in state.
18
+ * @param note Note to save
19
19
  */
20
20
  editNote(note: AdaptableNote): void;
21
21
  /**
22
- * Edits text of a Note
23
- * @param text
24
- * @param note
22
+ * Replaces the text of a note.
23
+ * @param text New note text
24
+ * @param note Note to update
25
25
  */
26
26
  updateNoteText(text: string, note: AdaptableNote): void;
27
27
  /**
@@ -31,26 +31,30 @@ export interface NoteApi {
31
31
  */
32
32
  setNoteType(note: AdaptableNote, noteType: AdaptableMessageType): void;
33
33
  /**
34
- * Deletes a Note
35
- * @param note
34
+ * Removes a note from state.
35
+ * @param note Note to delete
36
36
  */
37
37
  deleteNote(note: AdaptableNote): void;
38
38
  /**
39
39
  * Gets the Note State
40
+ * @returns The Note State
40
41
  */
41
42
  getNoteState(): NoteState;
42
43
  /**
43
44
  * Gets all Notes
45
+ * @returns All Notes
44
46
  */
45
47
  getAllNotes(): AdaptableNotes;
46
48
  /**
47
49
  * Gets all Notes for a cell
48
50
  * @param cellAddress note position
51
+ * @returns All Notes for a cell
49
52
  */
50
53
  getNoteForCell(cellAddress: CellAddress): AdaptableNote;
51
54
  /**
52
55
  * Returns a Note by uuid
53
56
  * @param uuid note uuid
57
+ * @returns A Note by uuid
54
58
  */
55
59
  getNoteByUuid(uuid: string): AdaptableNote | undefined;
56
60
  }