@adaptabletools/adaptable 11.0.0-canary.2 → 11.0.0-canary.6

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 (244) hide show
  1. package/agGrid.d.ts +1 -1
  2. package/agGrid.js +3 -3
  3. package/base.css +138 -68
  4. package/bundle.cjs.js +131 -127
  5. package/index.css +140 -68
  6. package/package.json +33 -33
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
  10. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -2
  12. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  13. package/src/AdaptableOptions/AlertOptions.js +2 -0
  14. package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  17. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  18. package/src/AdaptableOptions/QueryLanguageOptions.d.ts +3 -7
  19. package/src/AdaptableOptions/StateOptions.d.ts +2 -1
  20. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  21. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
  22. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
  23. package/src/Api/AdaptableApi.d.ts +6 -0
  24. package/src/Api/AlertApi.d.ts +2 -3
  25. package/src/Api/ColumnApi.d.ts +0 -4
  26. package/src/Api/EventApi.d.ts +8 -3
  27. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  28. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  29. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  30. package/src/Api/GridApi.d.ts +5 -4
  31. package/src/Api/IPushPullApi.d.ts +1 -1
  32. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
  33. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  34. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  35. package/src/Api/Implementation/AlertApiImpl.js +19 -10
  36. package/src/Api/Implementation/ApiBase.d.ts +2 -0
  37. package/src/Api/Implementation/ApiBase.js +3 -0
  38. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
  39. package/src/Api/Implementation/ColumnApiImpl.js +0 -5
  40. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
  42. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  43. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  44. package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
  45. package/src/Api/Implementation/GridApiImpl.js +4 -0
  46. package/src/Api/Implementation/InternalApiImpl.js +2 -2
  47. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  48. package/src/Api/Implementation/LayoutApiImpl.js +12 -1
  49. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  50. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -1
  51. package/src/Api/Implementation/QueryLanguageApiImpl.js +6 -7
  52. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
  53. package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
  54. package/src/Api/LayoutApi.d.ts +7 -0
  55. package/src/Api/OpenFinApi.d.ts +5 -0
  56. package/src/Api/PluginsApi.d.ts +29 -0
  57. package/src/Api/QueryLanguageApi.d.ts +10 -10
  58. package/src/Api/SettingsPanelApi.d.ts +17 -0
  59. package/src/Api/SettingsPanelApi.js +2 -0
  60. package/src/Api/UserInterfaceApi.d.ts +5 -2
  61. package/src/PredefinedConfig/AlertState.d.ts +4 -6
  62. package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
  63. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -4
  64. package/src/PredefinedConfig/Common/AdaptableQuery.js +3 -3
  65. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  66. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  67. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  68. package/src/PredefinedConfig/Common/Enums.js +0 -2
  69. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  70. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  71. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  72. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  73. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  74. package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
  75. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  76. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  77. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  78. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  79. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  80. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  81. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  82. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  83. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  84. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  85. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  86. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  87. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  88. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  89. package/src/Redux/Store/AdaptableStore.js +18 -6
  90. package/src/Strategy/AlertModule.js +14 -4
  91. package/src/Strategy/ConditionalStyleModule.js +4 -0
  92. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  93. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  94. package/src/Strategy/FlashingCellModule.js +34 -18
  95. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  96. package/src/Strategy/FreeTextColumnModule.js +10 -0
  97. package/src/Strategy/LayoutModule.js +1 -6
  98. package/src/Strategy/TeamSharingModule.js +1 -1
  99. package/src/Strategy/ToolPanelModule.js +5 -3
  100. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
  101. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
  102. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  103. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  104. package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
  105. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -6
  106. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
  107. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
  108. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +7 -0
  109. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +42 -0
  110. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  111. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  112. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
  113. package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
  114. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  115. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +36 -0
  116. package/src/Utilities/ExpressionFunctions/groupingMap.js +104 -0
  117. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  118. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  119. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  120. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  121. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  122. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  123. package/src/Utilities/ObjectFactory.js +5 -2
  124. package/src/Utilities/Services/AlertService.js +3 -3
  125. package/src/Utilities/Services/DataService.js +6 -1
  126. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -2
  127. package/src/Utilities/Services/LicenseService.js +1 -1
  128. package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
  129. package/src/Utilities/Services/QueryLanguageService.js +21 -16
  130. package/src/Utilities/Services/ReportService.js +7 -3
  131. package/src/Utilities/Services/TeamSharingService.js +5 -3
  132. package/src/View/AdaptablePopover/index.js +6 -1
  133. package/src/View/AdaptableView.js +1 -1
  134. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  135. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
  136. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  137. package/src/View/AdaptableWizardView/helper.js +5 -3
  138. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  139. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  140. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  141. package/src/View/Alert/Wizard/AlertWizard.js +2 -2
  142. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
  143. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -5
  144. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
  145. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  146. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
  147. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  148. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  149. package/src/View/Components/EntityRulesEditor/index.js +9 -9
  150. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  151. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
  152. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  153. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  154. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
  155. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  156. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
  157. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  158. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  159. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  160. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  161. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  162. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  163. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  164. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  165. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  166. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  167. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  168. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  169. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  170. package/src/View/Components/ScopeComponent.js +4 -1
  171. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  172. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  173. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
  174. package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
  175. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  176. package/src/View/Components/ValueSelector/index.d.ts +2 -1
  177. package/src/View/Components/ValueSelector/index.js +5 -5
  178. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
  179. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  180. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  181. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
  182. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  183. package/src/View/CustomSort/Wizard/CustomSortWizard.js +17 -5
  184. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  185. package/src/View/Dashboard/Dashboard.js +5 -5
  186. package/src/View/Dashboard/DashboardPopup.js +8 -6
  187. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  188. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  189. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  190. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  191. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  192. package/src/View/Filter/FilterViewPanel.js +1 -3
  193. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  194. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  195. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
  196. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
  197. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  198. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +11 -6
  199. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  200. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
  201. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  202. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
  203. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  204. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  205. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  206. package/src/View/Query/QueryViewPanel.js +15 -10
  207. package/src/View/Query/Wizard/NamedQueryWizard.js +6 -4
  208. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  209. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  210. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  211. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  212. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  213. package/src/View/UIHelper.js +4 -1
  214. package/src/View/Wizard/AdaptableWizard.js +13 -4
  215. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  216. package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
  217. package/src/agGrid/Adaptable.d.ts +2 -5
  218. package/src/agGrid/Adaptable.js +127 -75
  219. package/src/agGrid/agGridHelper.js +3 -8
  220. package/src/agGrid/agGridMenuHelper.js +5 -9
  221. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  222. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  223. package/src/components/ApplicationIcon.d.ts +1 -0
  224. package/src/components/ApplicationIcon.js +2 -2
  225. package/src/components/Dashboard/Dashboard.js +4 -1
  226. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  227. package/src/components/Dashboard/DashboardManager.js +33 -27
  228. package/src/components/Dropdown/index.js +8 -1
  229. package/src/components/DropdownButton/renderItem.js +1 -1
  230. package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
  231. package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
  232. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
  233. package/src/components/ExpressionEditor/index.d.ts +1 -1
  234. package/src/components/ExpressionEditor/index.js +12 -5
  235. package/src/components/FormLayout/index.js +1 -1
  236. package/src/components/OverlayTrigger/Overlay.js +1 -1
  237. package/src/components/SizedContainer/index.js +7 -1
  238. package/src/components/WindowModal/WindowModal.js +4 -1
  239. package/src/metamodel/adaptable.metamodel.d.ts +75 -24
  240. package/src/metamodel/adaptable.metamodel.js +223 -115
  241. package/src/types.d.ts +6 -3
  242. package/themes/dark.css +4 -4
  243. package/version.d.ts +1 -1
  244. package/version.js +1 -1
@@ -21,6 +21,7 @@ import { DataChangeHistoryOptions } from './DataChangeHistoryOptions';
21
21
  import { SettingsPanelOptions } from './SettingsPanelOptions';
22
22
  import { GridOptions, Module } from '@ag-grid-community/all-modules';
23
23
  import { FlashingCellOptions } from './FlashingCellOptions';
24
+ import { AlertOptions } from './AlertOptions';
24
25
  /**
25
26
  * Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides AG Grid, Predefined Config and other information required to ensure a full, rich user experience
26
27
  */
@@ -59,7 +60,6 @@ export interface AdaptableOptions {
59
60
  /**
60
61
  * Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities
61
62
  *
62
- * @see https://docs.adaptabletools.com/docs/key-topics/primary-key
63
63
  * @defaultValue false
64
64
  * @gridInfoItem
65
65
  */
@@ -72,11 +72,14 @@ export interface AdaptableOptions {
72
72
  */
73
73
  userName?: string;
74
74
  /**
75
- * The AG Grid object which AdapTable interacts with. Note: if using React or Angular Wrapper, no need to populate this property as AdapTable wires it up differently
75
+ * The AG Grid object which AdapTable interacts with. Note: if using AdapTable React or AdapTable Angular, no need to populate this property as AdapTable wires it up differently
76
76
  *
77
77
  * @defaultValue n/a (Mandatory)
78
78
  */
79
79
  gridOptions?: GridOptions;
80
+ /**
81
+ * AG Grid Modules that should be provided - needs to be provided separately
82
+ */
80
83
  modules?: Module[];
81
84
  /**
82
85
  * Options for managing Notifications in AdapTable
@@ -84,6 +87,12 @@ export interface AdaptableOptions {
84
87
  * @gridInfoContainer
85
88
  */
86
89
  notificationsOptions?: NotificationsOptions;
90
+ /**
91
+ * Options for managing Alerts in AdapTable
92
+ *
93
+ * @gridInfoContainer
94
+ */
95
+ alertOptions?: AlertOptions;
87
96
  /**
88
97
  * Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed
89
98
  */
@@ -0,0 +1,82 @@
1
+ import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
2
+ import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
3
+ import { ButtonContext } from '../PredefinedConfig/Common/AdaptableButton';
4
+ import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
5
+ import { DataChangedInfo } from '../types';
6
+ /**
7
+ * Options related to Alerts in Adaptable.
8
+ */
9
+ export interface AlertOptions {
10
+ /**
11
+ * How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
12
+ *
13
+ * @defaultValue 20
14
+ * @gridInfoItem
15
+ */
16
+ maxAlertsInStore?: number;
17
+ /**
18
+ * How long (in ms) a cell will be highlighted
19
+ *
20
+ * @defaultValue 3000
21
+ * @gridInfoItem
22
+ */
23
+ cellHighlightDuration?: number;
24
+ /**
25
+ * onClick Handlers for Alert Buttons (defined in Alert State)
26
+ */
27
+ actionHandlers?: ActionHandler[];
28
+ /**
29
+ * Full definitions of Alert Forms - the names of which are provided in Alert State
30
+ */
31
+ alertForms?: AlertForm[];
32
+ /**
33
+ * Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data
34
+ *
35
+ * @defaultValue 'rawValue'
36
+ * @gridInfoItem
37
+ */
38
+ dataChangeDetectionPolicy?: 'rawValue' | 'formattedValue';
39
+ /**
40
+ * Function providing Message to display in Alert; if empty, AdapTable provides dynamically
41
+ */
42
+ alertMessageText?: (alertDefinition: AlertDefinition, dataChangedInfo?: DataChangedInfo) => string | undefined;
43
+ }
44
+ /**
45
+ * Handles a Form Button Action
46
+ */
47
+ export declare type ActionHandler = {
48
+ /**
49
+ * Name of the Handler
50
+ */
51
+ name: string;
52
+ /**
53
+ * Handler function to call when the Button is clicked
54
+ */
55
+ handler: (button: AlertButton<AlertButtonContext>, context: AlertButtonContext) => void;
56
+ };
57
+ /**
58
+ * Form to show in an Alert
59
+ */
60
+ export declare type AlertForm = {
61
+ /**
62
+ * Name of the Form
63
+ */
64
+ name: string;
65
+ /**
66
+ * The Form to display in the Alert
67
+ */
68
+ form: AdaptableForm<AlertButtonContext>;
69
+ };
70
+ /**
71
+ * Context required by functions when using an Alert Button
72
+ */
73
+ export interface AlertButtonContext extends ButtonContext {
74
+ /**
75
+ * Alert that has been triggered
76
+ */
77
+ alert: AdaptableAlert;
78
+ /**
79
+ * Data in the Alert Form
80
+ */
81
+ formData?: AdaptableFormData;
82
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,7 +17,7 @@ export interface ContainerOptions {
17
17
  */
18
18
  agGridContainer?: string | HTMLElement;
19
19
  /**
20
- * how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by React or Angular Wrappers)
20
+ * how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by AdapTable React or AdapTable Angular)
21
21
  *
22
22
  * @defaultValue 60s
23
23
  * @gridInfoItem
@@ -29,7 +29,7 @@ export interface ContainerOptions {
29
29
  * @defaultValue undefined
30
30
  * @gridInfoItem
31
31
  */
32
- modalContainer?: string;
32
+ modalContainer?: string | HTMLElement;
33
33
  /**
34
34
  * Div to show System Status messages - string Id or HTMLElement
35
35
  *
@@ -11,7 +11,7 @@ export interface EntitlementOptions {
11
11
  */
12
12
  moduleEntitlements?: Entitlement[] | ((adaptableModule: AdaptableModule, userName: string, adaptableId: string, defaultAccessLevel: AccessLevel) => AccessLevel | undefined);
13
13
  /**
14
- * AccessLevel to use when an Entitlement is not explicitly set; may be provided as a hardcoded value or as a function to invoke
14
+ * AccessLevel to use when an Entitlement is not explicitly set; can be hardcoded value or a function to invoke
15
15
  *
16
16
  * @defaultValue 'Full'
17
17
  * @gridInfoItem
@@ -38,7 +38,7 @@ export interface FilterOptions {
38
38
  */
39
39
  useAdaptableFilterForm?: boolean | string[];
40
40
  /**
41
- * Styles Adaptable Filter Form to match AG Grid's current styling
41
+ * Styles Adaptable Filter Form to match AG Grid's styling (if using Balham theme)
42
42
  *
43
43
  * @defaultValue true
44
44
  * @gridInfoItem
@@ -1,19 +1,7 @@
1
- import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
2
- import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
3
- import { ButtonContext } from '../PredefinedConfig/Common/AdaptableButton';
4
- import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
5
- import { DataChangedInfo } from '../types';
6
1
  /**
7
- * Options related to Alerts, System Status Messages and Notifications in Adaptable.
2
+ * Options related to System Status Messages and Notifications in Adaptable.
8
3
  */
9
4
  export interface NotificationsOptions {
10
- /**
11
- * How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
12
- *
13
- * @defaultValue 20
14
- * @gridInfoItem
15
- */
16
- maxAlertsInStore?: number;
17
5
  /**
18
6
  * How many Notifications can be displayed at one time
19
7
  *
@@ -35,13 +23,6 @@ export interface NotificationsOptions {
35
23
  * @gridInfoItem
36
24
  */
37
25
  duration?: number | 'always';
38
- /**
39
- * How long (in ms) a cell will be highlighted
40
- *
41
- * @defaultValue 3000
42
- * @gridInfoItem
43
- */
44
- cellHighlightDuration?: number;
45
26
  /**
46
27
  * Shows a Progress Bar in the Notification
47
28
  *
@@ -77,21 +58,6 @@ export interface NotificationsOptions {
77
58
  * @gridInfoItem
78
59
  */
79
60
  transition?: 'Bounce' | 'Slide' | 'Zoom' | 'Flip';
80
- /**
81
- * onClick Handlers for Alert Buttons (defined in Alert State)
82
- */
83
- actionHandlers?: ActionHandler[];
84
- /**
85
- * Full definitions of Alert Forms - the names of which are provided in Alert State
86
- */
87
- alertForms?: AlertForm[];
88
- /**
89
- * Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data
90
- *
91
- * @defaultValue 'rawValue'
92
- * @gridInfoItem
93
- */
94
- dataChangeDetectionPolicy?: 'rawValue' | 'formattedValue';
95
61
  /**
96
62
  * Display an Alert when a System Status Message is set
97
63
  *
@@ -111,49 +77,6 @@ export interface NotificationsOptions {
111
77
  * @defaultValue false
112
78
  */
113
79
  showApplicationIcon?: boolean;
114
- /**
115
- * Function providing Message to display in Alert; if empty, AdapTable provides dynamically
116
- */
117
- alertMessageText?: (alertDefinition: AlertDefinition, dataChangedInfo?: DataChangedInfo) => string | undefined;
118
- }
119
- /**
120
- * Handles a Form Button Action
121
- */
122
- export declare type ActionHandler = {
123
- /**
124
- * Name of the Handler
125
- */
126
- name: string;
127
- /**
128
- * Handler function to call when the Button is clicked
129
- */
130
- handler: (button: AlertButton<AlertButtonContext>, context: AlertButtonContext) => void;
131
- };
132
- /**
133
- * Form to show in an Alert
134
- */
135
- export declare type AlertForm = {
136
- /**
137
- * Name of the Form
138
- */
139
- name: string;
140
- /**
141
- * The Form to display in the Alert
142
- */
143
- form: AdaptableForm<AlertButtonContext>;
144
- };
145
- /**
146
- * Context required by functions when using an Alert Button
147
- */
148
- export interface AlertButtonContext extends ButtonContext {
149
- /**
150
- * Alert that has been triggered
151
- */
152
- alert: AdaptableAlert;
153
- /**
154
- * Data in the Alert Form
155
- */
156
- formData?: AdaptableFormData;
157
80
  }
158
81
  /**
159
82
  * Different positions offered by Notifications
@@ -9,7 +9,6 @@ export interface QueryLanguageOptions {
9
9
  *
10
10
  * @defaultValue null (sets all)
11
11
  * @gridInfoItem
12
- * @see https://docs.adaptabletools.com/docs/adaptableql/query#boolean-functions
13
12
  */
14
13
  defaultBooleanFunctions?: ExpressionFunctionMap;
15
14
  /**
@@ -17,7 +16,6 @@ export interface QueryLanguageOptions {
17
16
  *
18
17
  * @defaultValue null (sets all)
19
18
  * @gridInfoItem
20
- * @see https://docs.adaptabletools.com/docs/adaptableql/query#scalar-functions
21
19
  */
22
20
  defaultScalarFunctions?: ExpressionFunctionMap;
23
21
  /**
@@ -25,17 +23,15 @@ export interface QueryLanguageOptions {
25
23
  *
26
24
  * @defaultValue null (sets all)
27
25
  * @gridInfoItem
28
- * @see https://docs.adaptabletools.com/docs/adaptableql/query#observable-functions
29
26
  */
30
27
  defaultObservableFunctions?: ExpressionFunctionMap;
31
28
  /**
32
- * Aggregation Expression Functions available in AdapTableQL
29
+ * Aggregated Boolean Expression Functions available in AdapTableQL
33
30
  *
34
31
  * @defaultValue null (sets all)
35
32
  * @gridInfoItem
36
- * @see https://docs.adaptabletools.com/docs/adaptableql/query#aggregation-functions
37
33
  */
38
- defaultAggregationFunctions?: ExpressionFunctionMap;
34
+ defaultAggregatedBooleanFunctions?: ExpressionFunctionMap;
39
35
  /**
40
36
  * Module specific ExpressionFunctions; if not defined, it falls back to the defined default values
41
37
  *
@@ -74,5 +70,5 @@ export interface ModuleExpressionFunctions {
74
70
  booleanFunctions?: ExpressionFunctionMap;
75
71
  scalarFunctions?: ExpressionFunctionMap;
76
72
  observableFunctions?: ExpressionFunctionMap;
77
- aggregationFunctions?: ExpressionFunctionMap;
73
+ aggregatedBooleanFunctions?: ExpressionFunctionMap;
78
74
  }
@@ -44,10 +44,11 @@ export declare type AdaptableStateFunctionConfig = {
44
44
  * Used by the `persistState` function property in StateOptions
45
45
  *
46
46
  * @example
47
- *
47
+ * ```
48
48
  * persistState = (state, {adaptableId, adaptableStateKey}) => {
49
49
  * localStorage.setItem(adaptableStateKey, JSON.stringify(state))
50
50
  * }
51
+ * ```
51
52
  */
52
53
  export interface AdaptablePersistStateFunction {
53
54
  (state: any, { adaptableId, adaptableStateKey, userName, url }: AdaptableStateFunctionConfig): Promise<any>;
@@ -11,13 +11,13 @@ export interface TeamSharingOptions {
11
11
  */
12
12
  enableTeamSharing: boolean;
13
13
  /**
14
- * Function which retrieves available Shared Entities that user can download and merge automatically with Adaptable State
14
+ * Async function which retrieves available Shared Entities that user can download and merge automatically with Adaptable State
15
15
  *
16
16
  * @defaultValue null
17
17
  */
18
18
  getSharedEntities: (adaptableId: string) => Promise<SharedEntity[]>;
19
19
  /**
20
- * Function which uploads Shared Entities so they can be downloaded by other members of the team
20
+ * Async function which uploads Shared Entities so they can be downloaded by other members of the team
21
21
  *
22
22
  * @defaultValue null
23
23
  */
@@ -25,20 +25,17 @@ export interface ToolPanelOptions {
25
25
  * Key of icon to be used (beside the label) for Adaptable ToolPanel Component
26
26
  *
27
27
  * @defaultValue 'menu'
28
- * @see https://www.ag-grid.com/javascript-grid/side-bar/#sidebardef-configuration
29
28
  * @gridInfoItem
30
29
  */
31
30
  iconKey?: string;
32
31
  /**
33
32
  * The initial width of AdapTable ToolPanel
34
33
  * @defaultValue var(--ab-cmp-toolpanel__width)
35
- * @see https://docs.adaptabletools.com/docs/theming/css-variables#toolpanel
36
34
  */
37
35
  width?: number;
38
36
  /**
39
37
  * The min width of AdapTable ToolPanel
40
38
  * @defaultValue var(--ab-cmp-toolpanel__width)
41
- * @see https://docs.adaptabletools.com/docs/theming/css-variables#toolpanel
42
39
  */
43
40
  minWidth?: number;
44
41
  /**
@@ -89,7 +89,7 @@ export interface UserInterfaceOptions {
89
89
  /**
90
90
  * Which sections to show in the Grid Info Screen
91
91
  *
92
- * @defaultValue ['GridSummary', 'AdaptableOptions','ColumnInfo']
92
+ * @defaultValue ['GridSummary', 'AdaptableOptions', 'ColumnInfo']
93
93
  */
94
94
  gridInfoSections?: GridInfoSections;
95
95
  }
@@ -120,7 +120,7 @@ export interface EditLookUpPermittedValues extends BasePermittedValues {
120
120
  export interface FilterPermittedValues extends BasePermittedValues {
121
121
  /**
122
122
  * Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed
123
- * @default false
123
+ * @defaultValue false
124
124
  */
125
125
  suppressFilterSearchBar?: boolean;
126
126
  values: (params: FilterPermittedValuesParams) => any[] | Promise<any[]>;
@@ -139,7 +139,7 @@ export interface BulkUpdatePermittedValues extends BasePermittedValues {
139
139
  }
140
140
  /**
141
141
  * Use PermittedValues instead
142
- * @deprecated
142
+ * @deprecated use PermittedValues instead
143
143
  */
144
144
  export declare type CellValuesList = PermittedValues;
145
145
  /**
@@ -35,6 +35,7 @@ import { PredicateApi } from './PredicateApi';
35
35
  import { DataChangeHistoryApi } from './DataChangeHistoryApi';
36
36
  import { FlashingCellApi } from './FlashingCellApi';
37
37
  import { ChartingApi } from './ChartingApi';
38
+ import { SettingsPanelApi } from './SettingsPanelApi';
38
39
  /**
39
40
  *
40
41
  * The `AdaptableApi` provides developers with run-time access to AdapTable.
@@ -147,6 +148,10 @@ export interface AdaptableApi {
147
148
  * Provides access to the Schedule Module
148
149
  */
149
150
  scheduleApi: ScheduleApi;
151
+ /**
152
+ * Provides access to the Settings Panel
153
+ */
154
+ settingsPanelApi: SettingsPanelApi;
150
155
  /**
151
156
  * Manages the `Scope` object - used widely to determine where objects are applied
152
157
  */
@@ -185,6 +190,7 @@ export interface AdaptableApi {
185
190
  chartingApi: ChartingApi;
186
191
  /**
187
192
  * Api methods used *internally* within AdapTable.
193
+ * @internal
188
194
  */
189
195
  internalApi: InternalApi;
190
196
  /**
@@ -4,8 +4,7 @@ import { AdaptableScope } from '../PredefinedConfig/Common/AdaptableScope';
4
4
  import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
5
5
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
6
6
  import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
7
- import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
8
- import { AdaptableMessageType, AlertProperties } from '../types';
7
+ import { AdaptableMessageType, AlertButtonContext, AlertProperties } from '../types';
9
8
  /**
10
9
  * Provides run-time access to Alert function and associated State
11
10
  */
@@ -158,7 +157,7 @@ export interface AlertApi {
158
157
  suspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
159
158
  /**
160
159
  * Activates a suspended Alert Definition
161
- * @param alertDefinition Alert to Un-suspend (activate)
160
+ * @param alertDefinition - Alert to Un-suspend (activate)
162
161
  * @returns alert definition
163
162
  */
164
163
  unSuspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
@@ -35,10 +35,6 @@ export interface ColumnApi {
35
35
  * Returns all boolean Columns
36
36
  */
37
37
  getBooleanColumns(): AdaptableColumn[];
38
- /**
39
- * Returns all numeric array Columns
40
- */
41
- getNumericArrayColumns(): AdaptableColumn[];
42
38
  /**
43
39
  * Returns all Sortable Columns
44
40
  */
@@ -195,9 +195,14 @@ export interface EventApi {
195
195
  off(eventName: 'LiveDataChanged', callback: (liveDataChangedInfo: LiveDataChangedInfo) => void): void;
196
196
  /**
197
197
  * Fired when Adaptable is up and running - has no arguments.
198
- * @param eventName AdaptableReady - use as: adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo: AdaptableReadyInfo) => { .....[do stuff]...})
199
- * @param callback An `AdaptableReadyInfo` object which contains the adaptableApi and GridOptions
200
- * @returns the unsubscribe function
198
+ * @param eventName - AdaptableReady
199
+ * @param callback - An `AdaptableReadyInfo` object which contains the adaptableApi and GridOptions
200
+ * @returns the unsubscribe function
201
+ *
202
+ * @example Use as
203
+ * ```
204
+ * adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo: AdaptableReadyInfo) => { .....[do stuff]...})
205
+ * ```
201
206
  */
202
207
  on(eventName: 'AdaptableReady', callback: (adaptableReadyInfo: AdaptableReadyInfo) => void): VoidFunction;
203
208
  /**
@@ -5,13 +5,15 @@ import { BaseEventInfo } from './BaseEventInfo';
5
5
  */
6
6
  export interface GridDataChangedInfo extends BaseEventInfo {
7
7
  /**
8
- * Rows that have been added, updated, or deleted
8
+ * Data rows that have been added, updated, or deleted
9
9
  */
10
10
  dataRows: any[];
11
11
  /**
12
12
  * Trigger for row change: 'Add', 'Edit' or 'Delete'
13
- }
14
13
  */
15
14
  rowTrigger: 'Add' | 'Edit' | 'Delete';
15
+ /**
16
+ * AG Grid Row Nodes that were affected by the Change
17
+ */
16
18
  rowNodes: RowNode[];
17
19
  }
@@ -1,7 +1,7 @@
1
1
  import { SystemStatusMessageInfo } from '../../PredefinedConfig/Common/SystemStatusMessageInfo';
2
2
  import { BaseEventInfo } from './BaseEventInfo';
3
3
  /**
4
- * Object returned by the `SystemStatusMessageDisplayed' event
4
+ * Object returned by the `SystemStatusMessageDisplayed` event
5
5
  */
6
6
  export interface SystemStatusMessageDisplayedInfo extends BaseEventInfo {
7
7
  /**
@@ -34,18 +34,6 @@ export interface FreeTextColumnApi {
34
34
  editFreeTextColumn(freeTextColumn: Partial<FreeTextColumn> & {
35
35
  ColumnId: string;
36
36
  }): FreeTextColumn;
37
- /**
38
- * Creates new FreeTextColumn and adds it to Adaptable State
39
- * @param columnId the id for the column - try to keep this small and unique (and dont use spaces)
40
- * @param param.columnName the name for the column - optional - if not provided, will default to the columnId
41
- * @param param.defaultValue the default value that will appear in the Column unless overrident - leave blank if you dont require a default value
42
- * @returns free text column
43
- */
44
- createFreeTextColumn(param: {
45
- columnId: string;
46
- columnName?: string;
47
- defaultValue: string;
48
- }): FreeTextColumn;
49
37
  /**
50
38
  * Deletes existing FreeTextColumn from Adaptable State
51
39
  * @param columnId name of FreeTextColumn to delete
@@ -5,7 +5,8 @@ import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
5
5
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
6
6
  import { DataUpdateConfig } from '../PredefinedConfig/Common/DataUpdateConfig';
7
7
  import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
8
- import { CellHighlightInfo, RowHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
8
+ import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
9
+ import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
9
10
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
10
11
  import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
11
12
  import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
@@ -41,19 +42,19 @@ export interface GridApi {
41
42
  * @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
42
43
  * @param config batch option and callback function to run post update
43
44
  */
44
- updateGridData(dataRows: any[], config?: DataUpdateConfig): void;
45
+ updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
45
46
  /**
46
47
  * Adds rows to Adaptable (and AG Grid)
47
48
  * @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
48
49
  * @param config batch option and callback function to run post addition
49
50
  */
50
- addGridData(dataRows: any[], config?: DataUpdateConfig): void;
51
+ addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
51
52
  /**
52
53
  * Deletes rows from Adaptable (and AG Grid)
53
54
  * @param dataRows rows which should be deleted
54
55
  * @param config batch option and callback function to run post deletion
55
56
  */
56
- deleteGridData(dataRows: any[], config?: DataUpdateConfig): void;
57
+ deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
57
58
  /**
58
59
  * Updates cell in Adaptable (first performs Cell & Server Validation)
59
60
  * @param columnId column to update
@@ -59,7 +59,7 @@ export interface IPushPullApi {
59
59
  /**
60
60
  * Retrieves all the ipushpull domain to which the current user has access
61
61
  *
62
- * An `IPushPullDomain' contains 3 properties:
62
+ * An `IPushPullDomain` contains 3 properties:
63
63
  *
64
64
  * - **Name**: the name of the Domain / Folder
65
65
  *
@@ -1,5 +1,5 @@
1
1
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
2
- import { AdaptableApi } from '../../types';
2
+ import { AdaptableApi, SettingsPanelApi } from '../../types';
3
3
  import { AlertApi } from '../AlertApi';
4
4
  import { BulkUpdateApi } from '../BulkUpdateApi';
5
5
  import { CalculatedColumnApi } from '../CalculatedColumnApi';
@@ -71,6 +71,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
71
71
  userInterfaceApi: UserInterfaceApi;
72
72
  queryApi: QueryApi;
73
73
  queryLanguageApi: QueryLanguageApi;
74
+ settingsPanelApi: SettingsPanelApi;
74
75
  toolPanelApi: ToolPanelApi;
75
76
  teamSharingApi: TeamSharingApi;
76
77
  scopeApi: ScopeApi;
@@ -38,6 +38,7 @@ const DataChangeHistoryApiImpl_1 = require("./DataChangeHistoryApiImpl");
38
38
  const QueryLanguageApiImpl_1 = require("./QueryLanguageApiImpl");
39
39
  const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
40
40
  const ChartingApiImpl_1 = require("./ChartingApiImpl");
41
+ const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
41
42
  class AdaptableApiImpl {
42
43
  constructor(adaptable) {
43
44
  this.adaptable = adaptable;
@@ -69,6 +70,7 @@ class AdaptableApiImpl {
69
70
  this.smartEditApi = new SmartEditApiImpl_1.SmartEditApiImpl(adaptable);
70
71
  this.filterApi = new FilterApiImpl_1.FilterApiImpl(adaptable);
71
72
  this.systemStatusApi = new SystemStatusApiImpl_1.SystemStatusApiImpl(adaptable);
73
+ this.settingsPanelApi = new SettingsPanelApiImpl_1.SettingsPanelApiImpl(adaptable);
72
74
  this.themeApi = new ThemeApiImpl_1.ThemeApiImpl(adaptable);
73
75
  this.userInterfaceApi = new UserInterfaceApiImpl_1.UserInterfaceApiImpl(adaptable);
74
76
  this.queryApi = new QueryApiImpl_1.QueryApiImpl(adaptable);
@@ -6,8 +6,7 @@ import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
6
6
  import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
7
7
  import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
8
8
  import { AdaptableForm, AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
9
- import { AlertButtonContext } from '../../AdaptableOptions/NotificationsOptions';
10
- import { AdaptableMessageType } from '../../types';
9
+ import { AdaptableMessageType, AlertButtonContext } from '../../types';
11
10
  export declare class AlertApiImpl extends ApiBase implements AlertApi {
12
11
  getAlertState(): AlertState;
13
12
  getAdaptableFormByName(name: string): AdaptableForm<AlertButtonContext> | undefined;