@adaptabletools/adaptable 24.0.0-canary.7 → 24.0.0-canary.9

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 (261) hide show
  1. package/agGrid.d.ts +2 -3
  2. package/agGrid.js +2 -3
  3. package/aql.d.ts +29 -1
  4. package/aql.js +49 -1
  5. package/devtools.d.ts +55 -1
  6. package/index.css +7 -19
  7. package/index.d.ts +2 -3
  8. package/index.js +2 -3
  9. package/package.json +1 -1
  10. package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
  12. package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
  13. package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
  14. package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
  15. package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
  16. package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
  17. package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
  18. package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
  19. package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
  20. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
  21. package/src/AdaptableOptions/DefaultAdaptableOptions.js +6 -0
  22. package/src/AdaptableOptions/EditOptions.d.ts +18 -2
  23. package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
  24. package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
  25. package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
  26. package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
  27. package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
  28. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
  29. package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
  30. package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
  31. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +10 -1
  32. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
  33. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +87 -2
  34. package/src/AdaptableState/AdaptableState.d.ts +98 -4
  35. package/src/AdaptableState/AlertState.d.ts +20 -21
  36. package/src/AdaptableState/ApplicationState.d.ts +5 -3
  37. package/src/AdaptableState/BaseState.d.ts +9 -2
  38. package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
  39. package/src/AdaptableState/ChartingState.d.ts +10 -5
  40. package/src/AdaptableState/CommentState.d.ts +10 -4
  41. package/src/AdaptableState/Common/AdaptableAlert.d.ts +6 -2
  42. package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
  43. package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
  44. package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
  45. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
  46. package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
  47. package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
  48. package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
  49. package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
  50. package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
  51. package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
  52. package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
  53. package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
  54. package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
  55. package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
  56. package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
  57. package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
  58. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
  59. package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
  60. package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
  61. package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
  62. package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
  63. package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
  64. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
  65. package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
  66. package/src/AdaptableState/Common/Enums.d.ts +21 -0
  67. package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
  68. package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
  69. package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
  70. package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
  71. package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
  72. package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
  73. package/src/AdaptableState/Common/RowScope.d.ts +3 -1
  74. package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
  75. package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
  76. package/src/AdaptableState/Common/Schedule.d.ts +10 -2
  77. package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
  78. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
  79. package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
  80. package/src/AdaptableState/Common/Types.d.ts +9 -0
  81. package/src/AdaptableState/CustomSortState.d.ts +8 -5
  82. package/src/AdaptableState/DashboardState.d.ts +14 -10
  83. package/src/AdaptableState/ExportState.d.ts +12 -4
  84. package/src/AdaptableState/FlashingCellState.d.ts +8 -5
  85. package/src/AdaptableState/FormatColumnState.d.ts +28 -8
  86. package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
  87. package/src/AdaptableState/IPushPullState.d.ts +39 -3
  88. package/src/AdaptableState/InitialState.d.ts +9 -9
  89. package/src/AdaptableState/InternalState.d.ts +183 -3
  90. package/src/AdaptableState/LayoutState.d.ts +64 -21
  91. package/src/AdaptableState/NamedQueryState.d.ts +16 -4
  92. package/src/AdaptableState/NoteState.d.ts +7 -3
  93. package/src/AdaptableState/OpenFinState.d.ts +12 -2
  94. package/src/AdaptableState/PlusMinusState.d.ts +8 -4
  95. package/src/AdaptableState/PopupState.d.ts +29 -1
  96. package/src/AdaptableState/QuickSearchState.d.ts +5 -3
  97. package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
  98. package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
  99. package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
  100. package/src/AdaptableState/ShortcutState.d.ts +7 -3
  101. package/src/AdaptableState/StatusBarState.d.ts +7 -6
  102. package/src/AdaptableState/StyledColumnState.d.ts +46 -14
  103. package/src/AdaptableState/TeamSharingState.d.ts +46 -2
  104. package/src/AdaptableState/ThemeState.d.ts +24 -2
  105. package/src/AdaptableState/ToolPanelState.d.ts +10 -5
  106. package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
  107. package/src/AdaptableState/Uuid.d.ts +6 -0
  108. package/src/Api/ActionColumnApi.d.ts +3 -1
  109. package/src/Api/AdaptableApi.d.ts +54 -50
  110. package/src/Api/AlertApi.d.ts +20 -12
  111. package/src/Api/ApplicationApi.d.ts +6 -2
  112. package/src/Api/BulkUpdateApi.d.ts +2 -1
  113. package/src/Api/CalculatedColumnApi.d.ts +4 -1
  114. package/src/Api/CalendarApi.d.ts +10 -0
  115. package/src/Api/CellSummaryApi.d.ts +9 -3
  116. package/src/Api/ChartingApi.d.ts +22 -7
  117. package/src/Api/ColumnApi.d.ts +71 -4
  118. package/src/Api/ColumnFilterApi.d.ts +13 -3
  119. package/src/Api/ColumnMenuApi.d.ts +13 -2
  120. package/src/Api/ColumnScopeApi.d.ts +27 -1
  121. package/src/Api/CommentApi.d.ts +10 -7
  122. package/src/Api/ContextMenuApi.d.ts +11 -1
  123. package/src/Api/CustomSortApi.d.ts +6 -2
  124. package/src/Api/DashboardApi.d.ts +30 -9
  125. package/src/Api/DataChangeHistoryApi.d.ts +9 -3
  126. package/src/Api/DataImportApi.d.ts +1 -1
  127. package/src/Api/EntitlementApi.d.ts +6 -1
  128. package/src/Api/EventApi.d.ts +67 -19
  129. package/src/Api/Events/AdaptableReady.d.ts +6 -2
  130. package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
  131. package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
  132. package/src/Api/Events/AlertFired.d.ts +8 -2
  133. package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
  134. package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
  135. package/src/Api/Events/CellChanged.d.ts +6 -2
  136. package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
  137. package/src/Api/Events/ChartChanged.d.ts +16 -8
  138. package/src/Api/Events/CommentChanged.d.ts +8 -2
  139. package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
  140. package/src/Api/Events/DashboardChanged.d.ts +27 -6
  141. package/src/Api/Events/DataImported.d.ts +8 -4
  142. package/src/Api/Events/DataSetSelected.d.ts +6 -2
  143. package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
  144. package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
  145. package/src/Api/Events/GridFilterApplied.d.ts +11 -3
  146. package/src/Api/Events/GridSorted.d.ts +6 -2
  147. package/src/Api/Events/LayoutChanged.d.ts +36 -5
  148. package/src/Api/Events/LiveDataChanged.d.ts +21 -5
  149. package/src/Api/Events/NoteChanged.d.ts +5 -1
  150. package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
  151. package/src/Api/Events/RowChanged.d.ts +6 -2
  152. package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
  153. package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
  154. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
  155. package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
  156. package/src/Api/Events/ThemeSelected.d.ts +6 -2
  157. package/src/Api/ExportApi.d.ts +59 -32
  158. package/src/Api/ExpressionApi.d.ts +24 -1
  159. package/src/Api/Fdc3Api.d.ts +16 -3
  160. package/src/Api/FlashingCellApi.d.ts +6 -1
  161. package/src/Api/FormatColumnApi.d.ts +18 -11
  162. package/src/Api/FreeTextColumnApi.d.ts +4 -2
  163. package/src/Api/GridApi.d.ts +92 -19
  164. package/src/Api/IPushPullApi.d.ts +19 -2
  165. package/src/Api/Internal/EventInternalApi.d.ts +2 -1
  166. package/src/Api/Internal/EventInternalApi.js +7 -0
  167. package/src/Api/InteropioPluginApi.d.ts +2 -1
  168. package/src/Api/LayoutApi.d.ts +29 -15
  169. package/src/Api/NamedQueryApi.d.ts +10 -6
  170. package/src/Api/NoteApi.d.ts +15 -11
  171. package/src/Api/OpenFinApi.d.ts +8 -2
  172. package/src/Api/OptionsApi.d.ts +43 -1
  173. package/src/Api/PluginsApi.d.ts +6 -1
  174. package/src/Api/PlusMinusApi.d.ts +2 -1
  175. package/src/Api/QuickSearchApi.d.ts +6 -1
  176. package/src/Api/RowFormApi.d.ts +8 -7
  177. package/src/Api/ShortcutApi.d.ts +3 -1
  178. package/src/Api/SmartEditApi.d.ts +4 -1
  179. package/src/Api/StateApi.d.ts +30 -2
  180. package/src/Api/StatusBarApi.d.ts +2 -0
  181. package/src/Api/StyledColumnApi.d.ts +23 -12
  182. package/src/Api/SystemStatusApi.d.ts +18 -6
  183. package/src/Api/TeamSharingApi.d.ts +8 -1
  184. package/src/Api/ThemeApi.d.ts +17 -8
  185. package/src/Api/ToolPanelApi.d.ts +12 -7
  186. package/src/Api/UserInterfaceApi.d.ts +10 -1
  187. package/src/Redux/Store/AdaptableStore.js +1 -1
  188. package/src/View/Filter/ColumnFilter/ColumnFilterNew.js +14 -9
  189. package/src/agGrid/Adaptable.d.ts +0 -12
  190. package/src/agGrid/Adaptable.js +0 -52
  191. package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
  192. package/src/agGrid/AdaptableLogger.d.ts +74 -1
  193. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
  194. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
  195. package/src/agGrid/index.d.ts +1 -6
  196. package/src/agGrid/index.js +1 -3
  197. package/src/aql/ExpressionEvaluation.d.ts +27 -0
  198. package/src/aql/types.d.ts +22 -0
  199. package/src/components/ColorField/index.d.ts +2 -3
  200. package/src/components/ColorField/index.js +22 -2
  201. package/src/components/aql/QueryBuilder/GroupEditor.js +1 -1
  202. package/src/components/aql/QueryBuilder/QueryBuilder.d.ts +5 -0
  203. package/src/components/aql/QueryBuilder/QueryBuilder.js +1 -1
  204. package/src/components/aql/QueryBuilder/context.d.ts +7 -0
  205. package/src/components/aql/QueryBuilder/context.js +3 -1
  206. package/src/env.js +2 -2
  207. package/src/migration/legacyAdaptableQuery.d.ts +29 -4
  208. package/src/setupDevTools.js +223 -0
  209. package/src/types.d.ts +1 -3
  210. package/tsconfig.esm.tsbuildinfo +1 -1
  211. package/vendor/components/ColorField/index.d.ts +12 -2
  212. package/vendor/components/ColorField/index.d.ts.map +1 -1
  213. package/vendor/components/ColorField/index.js +3 -4
  214. package/vendor/components/ColorField/index.js.map +1 -1
  215. package/vendor/components/ColorPicker/index.d.ts +50 -11
  216. package/vendor/components/ColorPicker/index.d.ts.map +1 -1
  217. package/vendor/components/ColorPicker/index.js +172 -54
  218. package/vendor/components/ColorPicker/index.js.map +1 -1
  219. package/vendor/components/ColorPicker/themeColors.d.ts +42 -1
  220. package/vendor/components/ColorPicker/themeColors.d.ts.map +1 -1
  221. package/vendor/components/ColorPicker/themeColors.js +131 -1
  222. package/vendor/components/ColorPicker/themeColors.js.map +1 -1
  223. package/vendor/components/index.css +6 -0
  224. package/vendor/components/index.d.ts +2 -2
  225. package/vendor/components/index.d.ts.map +1 -1
  226. package/vendor/components/index.js +1 -1
  227. package/vendor/components/index.js.map +1 -1
  228. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
  229. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
  230. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
  231. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
  232. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
  233. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
  234. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
  235. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
  236. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
  237. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
  238. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
  239. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
  240. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
  241. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
  242. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
  243. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
  244. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
  245. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
  246. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
  247. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
  248. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
  249. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
  250. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
  251. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
  252. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
  253. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
  254. package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
  255. package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
  256. package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
  257. package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
  258. package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
  259. package/src/View/AdaptableWizardView/Wizard.js +0 -98
  260. package/src/View/AdaptableWizardView/index.d.ts +0 -4
  261. package/src/View/AdaptableWizardView/index.js +0 -4
@@ -1,6 +1,8 @@
1
1
  import { AdaptableReadyInfo, AdaptableStateChangedInfo, AdaptableStateReloadedInfo, BeforeAdaptableStateChangeInfo, AlertFiredInfo, CalculatedColumnChangedInfo, CellChangedInfo, CellSelectionChangedInfo, ChartChangedInfo, ColumnFilterAppliedInfo, ColumnFilterChangedInfo, CommentChangedInfo, NoteChangedInfo, CustomToolbarConfiguredInfo, DashboardChangedInfo, DataImportedInfo, DataSetSelectedInfo, Fdc3MessageInfo, FlashingCellDisplayedInfo, GridFilterAppliedInfo, GridSortedInfo, LayoutChangedInfo, LiveDataChangedInfo, RowChangedInfo, RowFormSubmittedInfo, RowSelectionChangedInfo, ReportScheduleRanInfo, SystemStatusMessageDisplayedInfo, TeamSharingEntityChangedInfo, ThemeChangedInfo, ThemeSelectedInfo } from '../types';
2
2
  /**
3
- * Responsible for publishing the many Events that AdapTable fires
3
+ * Subscribe to AdapTable events.
4
+ *
5
+ * `on` registers a listener and returns a function that removes it. `off` removes a listener that was passed to `on` for the same event. The callback argument is the info object for that event.
4
6
  */
5
7
  export interface EventApi {
6
8
  /**
@@ -13,7 +15,7 @@ export interface EventApi {
13
15
  /**
14
16
  * Unsubscribe from GridSorted
15
17
  * @param eventName GridSorted
16
- * @param callback
18
+ * @param callback The listener that was passed to `on`
17
19
  */
18
20
  off(eventName: 'GridSorted', callback: (gridSortedInfo: GridSortedInfo) => void): void;
19
21
  /**
@@ -26,19 +28,20 @@ export interface EventApi {
26
28
  /**
27
29
  * Unsubscribe from GridFilterApplied
28
30
  * @param eventName GridFilterApplied
29
- * @param callback
31
+ * @param callback The listener that was passed to `on`
30
32
  */
31
33
  off(eventName: 'GridFilterApplied', callback: (gridFilterAppliedInfo: GridFilterAppliedInfo) => void): void;
32
34
  /**
33
35
  * Event fired whenever a Schedule is triggered in AdapTable
34
36
  * @param eventName ReportScheduleRan
35
37
  * @param callback provides the report schedule and `RanAt` (when this run started)
38
+ * @returns A function that removes this listener
36
39
  */
37
40
  on(eventName: 'ReportScheduleRan', callback: (reportScheduleRanInfo: ReportScheduleRanInfo) => void): VoidFunction;
38
41
  /**
39
42
  * Unsubscribe from ReportScheduleRan
40
43
  * @param eventName ReportScheduleRan
41
- * @param callback
44
+ * @param callback The listener that was passed to `on`
42
45
  */
43
46
  off(eventName: 'ReportScheduleRan', callback: (reportScheduleRanInfo: ReportScheduleRanInfo) => void): void;
44
47
  /**
@@ -52,7 +55,7 @@ export interface EventApi {
52
55
  /**
53
56
  * Unsubscribe from ColumnFilterChanged
54
57
  * @param eventName ColumnFilterChanged
55
- * @param callback
58
+ * @param callback The listener that was passed to `on`
56
59
  */
57
60
  off(eventName: 'ColumnFilterChanged', callback: (columnFilterChangedInfo: ColumnFilterChangedInfo) => void): void;
58
61
  /**
@@ -66,7 +69,7 @@ export interface EventApi {
66
69
  /**
67
70
  * Unsubscribe from ColumnFilterApplied
68
71
  * @param eventName ColumnFilterApplied
69
- * @param callback
72
+ * @param callback The listener that was passed to `on`
70
73
  */
71
74
  off(eventName: 'ColumnFilterApplied', callback: (columnFilterAppliedInfo: ColumnFilterAppliedInfo) => void): void;
72
75
  /**
@@ -79,7 +82,7 @@ export interface EventApi {
79
82
  /**
80
83
  * Unsubscribe from CellChanged
81
84
  * @param eventName CellChanged
82
- * @param callback
85
+ * @param callback The listener that was passed to `on`
83
86
  */
84
87
  off(eventName: 'CellChanged', callback: (cellChangedInfo: CellChangedInfo) => void): void;
85
88
  /**
@@ -92,7 +95,7 @@ export interface EventApi {
92
95
  /**
93
96
  * Unsubscribe from RowChanged
94
97
  * @param eventName RowChanged
95
- * @param callback
98
+ * @param callback The listener that was passed to `on`
96
99
  */
97
100
  off(eventName: 'RowChanged', callback: (rowChangedInfo: RowChangedInfo) => void): void;
98
101
  /**
@@ -105,7 +108,7 @@ export interface EventApi {
105
108
  /**
106
109
  * Unsubscribe from TeamSharingEntityChanged
107
110
  * @param eventName TeamSharingEntityChanged
108
- * @param callback
111
+ * @param callback The listener that was passed to `on`
109
112
  */
110
113
  off(eventName: 'TeamSharingEntityChanged', callback: (TeamSharingEntityChangedInfo: TeamSharingEntityChangedInfo) => void): void;
111
114
  /**
@@ -117,6 +120,8 @@ export interface EventApi {
117
120
  on(eventName: 'CellSelectionChanged', callback: (cellSelectionChangedInfo: CellSelectionChangedInfo) => void): VoidFunction;
118
121
  /**
119
122
  * Unsubscribe from CellSelectionChanged
123
+ * @param eventName CellSelectionChanged
124
+ * @param callback The listener that was passed to `on`
120
125
  */
121
126
  off(eventName: 'CellSelectionChanged', callback: (cellSelectionChangedInfo: CellSelectionChangedInfo) => void): void;
122
127
  /**
@@ -128,6 +133,8 @@ export interface EventApi {
128
133
  on(eventName: 'RowSelectionChanged', callback: (rowSelectionChangedInfo: RowSelectionChangedInfo) => void): VoidFunction;
129
134
  /**
130
135
  * Unsubscribe from RowSelectionChanged
136
+ * @param eventName RowSelectionChanged
137
+ * @param callback The listener that was passed to `on`
131
138
  */
132
139
  off(eventName: 'RowSelectionChanged', callback: (rowSelectionChangedInfo: RowSelectionChangedInfo) => void): void;
133
140
  /**
@@ -139,6 +146,8 @@ export interface EventApi {
139
146
  on(eventName: 'ThemeSelected', callback: (themeSelectedInfo: ThemeSelectedInfo) => void): VoidFunction;
140
147
  /**
141
148
  * Unsubscribe from ThemeSelected
149
+ * @param eventName ThemeSelected
150
+ * @param callback The listener that was passed to `on`
142
151
  */
143
152
  off(eventName: 'ThemeSelected', callback: (themeSelectedInfo: ThemeSelectedInfo) => void): void;
144
153
  /**
@@ -152,6 +161,8 @@ export interface EventApi {
152
161
  /**
153
162
  * Unsubscribe from ThemeChanged
154
163
  * @deprecated Use `ThemeSelected` instead.
164
+ * @param eventName ThemeChanged
165
+ * @param callback The listener that was passed to `on`
155
166
  */
156
167
  off(eventName: 'ThemeChanged', callback: (themeChangedInfo: ThemeChangedInfo) => void): void;
157
168
  /**
@@ -163,6 +174,8 @@ export interface EventApi {
163
174
  on(eventName: 'SystemStatusMessageDisplayed', callback: (systemStatusMessageDisplayedInfo: SystemStatusMessageDisplayedInfo) => void): VoidFunction;
164
175
  /**
165
176
  * Unsubscribe from SystemStatusMessageDisplayed
177
+ * @param eventName SystemStatusMessageDisplayed
178
+ * @param callback The listener that was passed to `on`
166
179
  */
167
180
  off(eventName: 'SystemStatusMessageDisplayed', callback: (SystemStatusMessageDisplayedInfo: SystemStatusMessageDisplayedInfo) => void): void;
168
181
  /**
@@ -174,6 +187,8 @@ export interface EventApi {
174
187
  on(eventName: 'AlertFired', callback: (alertFiredInfo: AlertFiredInfo) => void): VoidFunction;
175
188
  /**
176
189
  * Unsubscribe from AlertFired
190
+ * @param eventName AlertFired
191
+ * @param callback The listener that was passed to `on`
177
192
  */
178
193
  off(eventName: 'AlertFired', callback: (alertFiredInfo: AlertFiredInfo) => void): void;
179
194
  /**
@@ -185,6 +200,8 @@ export interface EventApi {
185
200
  on(eventName: 'DataImported', callback: (dataImportedInfo: DataImportedInfo) => void): VoidFunction;
186
201
  /**
187
202
  * Unsubscribe from DataImported
203
+ * @param eventName DataImported
204
+ * @param callback The listener that was passed to `on`
188
205
  */
189
206
  off(eventName: 'DataImported', callback: (dataImportedInfo: DataImportedInfo) => void): void;
190
207
  /**
@@ -196,6 +213,8 @@ export interface EventApi {
196
213
  on(eventName: 'FlashingCellDisplayed', callback: (flashingCellDisplayedInfo: FlashingCellDisplayedInfo) => void): VoidFunction;
197
214
  /**
198
215
  * Unsubscribe from FlashingCellDisplayed
216
+ * @param eventName FlashingCellDisplayed
217
+ * @param callback The listener that was passed to `on`
199
218
  */
200
219
  off(eventName: 'FlashingCellDisplayed', callback: (flashingCellDisplayedInfo: FlashingCellDisplayedInfo) => void): void;
201
220
  /**
@@ -207,6 +226,8 @@ export interface EventApi {
207
226
  on(eventName: 'LayoutChanged', callback: (layoutChangedInfo: LayoutChangedInfo) => void): VoidFunction;
208
227
  /**
209
228
  * Unsubscribe from LayoutChanged
229
+ * @param eventName LayoutChanged
230
+ * @param callback The listener that was passed to `on`
210
231
  */
211
232
  off(eventName: 'LayoutChanged', callback: (layoutChangedInfo: LayoutChangedInfo) => void): void;
212
233
  /**
@@ -218,6 +239,8 @@ export interface EventApi {
218
239
  on(eventName: 'CalculatedColumnChanged', callback: (calculatedColumnChangedInfo: CalculatedColumnChangedInfo) => void): VoidFunction;
219
240
  /**
220
241
  * Unsubscribe from CalculatedColumnChanged
242
+ * @param eventName CalculatedColumnChanged
243
+ * @param callback The listener that was passed to `on`
221
244
  */
222
245
  off(eventName: 'CalculatedColumnChanged', callback: (calculatedColumnChangedInfo: CalculatedColumnChangedInfo) => void): void;
223
246
  /**
@@ -229,6 +252,8 @@ export interface EventApi {
229
252
  on(eventName: 'CustomToolbarConfigured', callback: (customToolbarConfiguredInfo: CustomToolbarConfiguredInfo) => void): VoidFunction;
230
253
  /**
231
254
  * Unsubscribe from CustomToolbarConfigured
255
+ * @param eventName CustomToolbarConfigured
256
+ * @param callback The listener that was passed to `on`
232
257
  */
233
258
  off(eventName: 'CustomToolbarConfigured', callback: (customToolbarConfiguredInfo: CustomToolbarConfiguredInfo) => void): void;
234
259
  /**
@@ -241,6 +266,8 @@ export interface EventApi {
241
266
  on(eventName: 'DashboardChanged', callback: (dashboardChangedInfo: DashboardChangedInfo) => void): VoidFunction;
242
267
  /**
243
268
  * Unsubscribe from DashboardChanged
269
+ * @param eventName DashboardChanged
270
+ * @param callback The listener that was passed to `on`
244
271
  */
245
272
  off(eventName: 'DashboardChanged', callback: (dashboardChangedInfo: DashboardChangedInfo) => void): void;
246
273
  /**
@@ -252,6 +279,8 @@ export interface EventApi {
252
279
  on(eventName: 'BeforeAdaptableStateChange', callback: (beforeAdaptableStateChangeInfo: BeforeAdaptableStateChangeInfo) => void): () => void;
253
280
  /**
254
281
  * Unsubscribe from BeforeAdaptableStateChange
282
+ * @param eventName BeforeAdaptableStateChange
283
+ * @param callback The listener that was passed to `on`
255
284
  */
256
285
  off(eventName: 'BeforeAdaptableStateChange', callback: (beforeAdaptableStateChangeInfo: BeforeAdaptableStateChangeInfo) => void): void;
257
286
  /**
@@ -263,6 +292,8 @@ export interface EventApi {
263
292
  on(eventName: 'AdaptableStateChanged', callback: (adaptableStateChangedInfo: AdaptableStateChangedInfo) => void): () => void;
264
293
  /**
265
294
  * Unsubscribe from AdaptableStateChanged
295
+ * @param eventName AdaptableStateChanged
296
+ * @param callback The listener that was passed to `on`
266
297
  */
267
298
  off(eventName: 'AdaptableStateChanged', callback: (adaptableStateChangedInfo: AdaptableStateChangedInfo) => void): void;
268
299
  /**
@@ -274,6 +305,8 @@ export interface EventApi {
274
305
  on(eventName: 'AdaptableStateReloaded', callback: (adaptableStateReloadedInfo: AdaptableStateReloadedInfo) => void): () => void;
275
306
  /**
276
307
  * Unsubscribe from AdaptableStateReloaded
308
+ * @param eventName AdaptableStateReloaded
309
+ * @param callback The listener that was passed to `on`
277
310
  */
278
311
  off(eventName: 'AdaptableStateReloaded', callback: (adaptableStateReloadedInfo: AdaptableStateReloadedInfo) => void): void;
279
312
  /**
@@ -286,32 +319,36 @@ export interface EventApi {
286
319
  on(eventName: 'LiveDataChanged', callback: (liveDataChangedInfo: LiveDataChangedInfo) => void): () => void;
287
320
  /**
288
321
  * Unsubscribe from LiveDataChanged
322
+ * @param eventName LiveDataChanged
323
+ * @param callback The listener that was passed to `on`
289
324
  */
290
325
  off(eventName: 'LiveDataChanged', callback: (liveDataChangedInfo: LiveDataChangedInfo) => void): void;
291
326
  /**
292
327
  * Event fired when a Row Form is submitted
293
328
  *
294
329
  * @param eventName RowFormSubmitted
295
- * @param callback RowFormSubmitted
330
+ * @param callback `RowFormSubmittedInfo` for the submitted form
331
+ * @returns A function that removes this listener
296
332
  */
297
333
  on(eventName: 'RowFormSubmitted', callback: (rowFormSubmittedInfo: RowFormSubmittedInfo) => void): () => void;
298
334
  /**
299
335
  * Unsubscribe from RowFormSubmitted
300
336
  * @param eventName RowFormSubmitted
301
- * @param callback
337
+ * @param callback The listener that was passed to `on`
302
338
  */
303
- off(eventName: 'RowFormSubmittedInfo', callback: (rowFormSubmittedInfo: RowFormSubmittedInfo) => void): void;
339
+ off(eventName: 'RowFormSubmitted', callback: (rowFormSubmittedInfo: RowFormSubmittedInfo) => void): void;
304
340
  /**
305
341
  * Event fired when a DataSet is Selected
306
342
  *
307
343
  * @param eventName DataSetSelected
308
344
  * @param callback DataSetSelectedInfo
345
+ * @returns A function that removes this listener
309
346
  */
310
347
  on(eventName: 'DataSetSelected', callback: (dataSetSelectedInfo: DataSetSelectedInfo) => void): () => void;
311
348
  /**
312
349
  * Unsubscribe from DataSetSelected
313
350
  * @param eventName DataSetSelected
314
- * @param callback
351
+ * @param callback The listener that was passed to `on`
315
352
  */
316
353
  off(eventName: 'DataSetSelected', callback: (dataSetSelectedInfo: DataSetSelectedInfo) => void): void;
317
354
  /**
@@ -319,24 +356,26 @@ export interface EventApi {
319
356
  *
320
357
  * @param eventName ChartChanged
321
358
  * @param callback ChartChangedInfo
359
+ * @returns A function that removes this listener
322
360
  */
323
361
  on(eventName: 'ChartChanged', callback: (chartChangedInfo: ChartChangedInfo) => void): () => void;
324
362
  /**
325
363
  * Unsubscribe from ChartChanged
326
364
  * @param eventName ChartChanged
327
- * @param callbackChartChangedInfo
365
+ * @param callback The listener that was passed to `on`
328
366
  */
329
367
  off(eventName: 'ChartChanged', callback: (chartChangedInfo: ChartChangedInfo) => void): void;
330
368
  /**
331
369
  * Event fired when a Comment is Changed
332
370
  * @param eventName CommentChanged
333
- * @param callback
371
+ * @param callback `CommentChangedInfo` whose `commentThreads` is every thread after the change
372
+ * @returns A function that removes this listener
334
373
  */
335
374
  on(eventName: 'CommentChanged', callback: (commentChangedInfo: CommentChangedInfo) => void): () => void;
336
375
  /**
337
376
  * Unsubscribe from CommentChanged
338
- * @param eventName
339
- * @param callback
377
+ * @param eventName CommentChanged
378
+ * @param callback The listener that was passed to `on`
340
379
  */
341
380
  off(eventName: 'CommentChanged', callback: (commentChangedInfo: CommentChangedInfo) => void): void;
342
381
  /**
@@ -349,7 +388,7 @@ export interface EventApi {
349
388
  /**
350
389
  * Unsubscribe from NoteChanged
351
390
  * @param eventName NoteChanged
352
- * @param callback
391
+ * @param callback The listener that was passed to `on`
353
392
  */
354
393
  off(eventName: 'NoteChanged', callback: (noteChangedInfo: NoteChangedInfo) => void): void;
355
394
  /**
@@ -376,8 +415,16 @@ export interface EventApi {
376
415
  * ```
377
416
  */
378
417
  on(eventName: 'AdaptableDestroy', callback: () => void): VoidFunction;
418
+ /**
419
+ * Unsubscribe from AdaptableDestroy
420
+ * @param eventName AdaptableDestroy
421
+ * @param callback The listener that was passed to `on`
422
+ */
423
+ off(eventName: 'AdaptableDestroy', callback: () => void): void;
379
424
  /**
380
425
  * Unsubscribe from AdaptableReady
426
+ * @param eventName AdaptableReady
427
+ * @param callback The listener that was passed to `on`
381
428
  */
382
429
  off(eventName: 'AdaptableReady', callback: (adaptableReadyInfo: AdaptableReadyInfo) => void): void;
383
430
  /**
@@ -385,12 +432,13 @@ export interface EventApi {
385
432
  *
386
433
  * @param eventName Fdc3Message
387
434
  * @param callback Fdc3MessageInfo
435
+ * @returns A function that removes this listener
388
436
  */
389
437
  on(eventName: 'Fdc3Message', callback: (fdc3MessageInfo: Fdc3MessageInfo) => void): () => void;
390
438
  /**
391
439
  * Unsubscribe from Fdc3Message
392
440
  * @param eventName Fdc3Message
393
- * @param callbackFdc3MessageInfo
441
+ * @param callback The listener that was passed to `on`
394
442
  */
395
443
  off(eventName: 'Fdc3Message', callback: (fdc3MessageInfo: Fdc3MessageInfo) => void): void;
396
444
  }
@@ -1,11 +1,15 @@
1
1
  import { GridApi } from 'ag-grid-enterprise';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * Object returned by `AdaptableReady` event - fired when AdapTable has loaded
4
+ * Payload of the `AdaptableReady` event.
5
+ *
6
+ * Fires once, when AdapTable has loaded. A listener added after that still runs, because this event replays for late subscribers.
7
+ *
8
+ * Extends {@link BaseContext}. Use `adaptableApi` for AdapTable and `agGridApi` for AG Grid.
5
9
  */
6
10
  export interface AdaptableReadyInfo<TData = any> extends BaseContext {
7
11
  /**
8
- * Underlying AG Grid API
12
+ * AG Grid `GridApi` for this grid.
9
13
  */
10
14
  agGridApi: GridApi<TData>;
11
15
  }
@@ -2,23 +2,27 @@ import * as Redux from 'redux';
2
2
  import { AdaptableState } from '../../AdaptableState/AdaptableState';
3
3
  import { BaseContext } from '../../types';
4
4
  /**
5
- * Object returned by the `AdaptableStateChanged` event
5
+ * Payload of the `AdaptableStateChanged` event.
6
+ *
7
+ * Fires after each Adaptable State change once the grid is ready. Loading or initialising state does not fire it; that is `AdaptableStateReloaded`.
8
+ *
9
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
6
10
  */
7
11
  export interface AdaptableStateChangedInfo extends BaseContext {
8
12
  /**
9
- * Name of the Action
13
+ * Redux action type that was applied (`action.type`).
10
14
  */
11
15
  actionName: string;
12
16
  /**
13
- * The Redux Action that was invoked
17
+ * Redux action that was applied.
14
18
  */
15
19
  action: Redux.Action;
16
20
  /**
17
- * Adaptable State before the Action
21
+ * Full Adaptable State before the action.
18
22
  */
19
23
  oldState: AdaptableState;
20
24
  /**
21
- * Adaptable State after the Action
25
+ * Full Adaptable State after the action.
22
26
  */
23
27
  newState: AdaptableState;
24
28
  }
@@ -1,15 +1,19 @@
1
1
  import { AdaptablePersistentState } from '../../AdaptableState/AdaptableState';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * Object returned by the `AdaptableStateReloaded` event
4
+ * Payload of the `AdaptableStateReloaded` event.
5
+ *
6
+ * Fires after persisted state has been loaded and applied. The load and init actions themselves do not emit `AdaptableStateChanged`.
7
+ *
8
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
5
9
  */
6
10
  export interface AdaptableStateReloadedInfo extends BaseContext {
7
11
  /**
8
- * Adaptable State before the reload
12
+ * Persisted Adaptable State before the reload.
9
13
  */
10
14
  oldState: AdaptablePersistentState;
11
15
  /**
12
- * Adaptable State after the reload
16
+ * Persisted Adaptable State after the reload.
13
17
  */
14
18
  newState: AdaptablePersistentState;
15
19
  }
@@ -1,11 +1,17 @@
1
1
  import { AdaptableAlert } from '../../AdaptableState/Common/AdaptableAlert';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * Object returned by the `AlertFired` event
4
+ * Payload of the `AlertFired` event.
5
+ *
6
+ * Fires when an Alert is displayed.
7
+ *
8
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
5
9
  */
6
10
  export interface AlertFiredInfo extends BaseContext {
7
11
  /**
8
- * Alert which has been fired
12
+ * Alert that was displayed.
13
+ *
14
+ * A cell or row Alert includes the change that triggered it. A generic Alert is the message only.
9
15
  */
10
16
  alert: AdaptableAlert;
11
17
  }
@@ -2,11 +2,15 @@ import * as Redux from 'redux';
2
2
  import { AdaptableState } from '../../AdaptableState/AdaptableState';
3
3
  import { BaseContext } from '../../types';
4
4
  /**
5
- * Object returned by the `BeforeAdaptableStateChange` event, fired before the action is processed by the reducer
5
+ * Payload of the `BeforeAdaptableStateChange` event.
6
+ *
7
+ * Fired synchronously, before the reducer runs, once the grid is ready.
8
+ *
9
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
6
10
  */
7
11
  export interface BeforeAdaptableStateChangeInfo extends BaseContext {
8
12
  /**
9
- * Name of the Action about to be performed
13
+ * Redux action type about to be applied (`action.type`).
10
14
  */
11
15
  actionName: string;
12
16
  /**
@@ -1,15 +1,19 @@
1
1
  import { CalculatedColumn } from '../../AdaptableState/CalculatedColumnState';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * EventInfo returned by CalculatedColumnChanged event
4
+ * Payload of the `CalculatedColumnChanged` event.
5
+ *
6
+ * Fires when a Calculated Column is added, edited or deleted.
7
+ *
8
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
5
9
  */
6
10
  export interface CalculatedColumnChangedInfo extends BaseContext {
7
11
  /**
8
- * What caused CalculatedColumn State to change (i.e. Add, Edit, Delete)
12
+ * Redux action type: `CALCULATED_COLUMN_ADD`, `CALCULATED_COLUMN_EDIT` or `CALCULATED_COLUMN_DELETE`.
9
13
  */
10
14
  actionName: string;
11
15
  /**
12
- * Calculated Column that has been added, edited or deleted
16
+ * Calculated Column that was added, edited or deleted.
13
17
  */
14
18
  calculatedColumn: CalculatedColumn;
15
19
  /**
@@ -1,11 +1,15 @@
1
1
  import { CellDataChangedInfo } from '../../AdaptableState/Common/CellDataChangedInfo';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * EventInfo returned by CellChanged event
4
+ * Payload of the `CellChanged` event.
5
+ *
6
+ * Fires when a cell value changes: an edit, a tick, an undo, an aggregation change, or a Calculated Column update. A live Alert rule does not fire this event; it fires `AlertFired`.
7
+ *
8
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
5
9
  */
6
10
  export interface CellChangedInfo extends BaseContext {
7
11
  /**
8
- * Object providing full information of the cell (and column and row) that changed
12
+ * The change: old and new values, column, row and what triggered it. See {@link CellDataChangedInfo}.
9
13
  */
10
14
  cellDataChange: CellDataChangedInfo;
11
15
  }
@@ -1,11 +1,15 @@
1
1
  import { SelectedCellInfo } from '../../AdaptableState/Selection/SelectedCellInfo';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * Event Info published by CellSelectionChanged event
4
+ * Payload of the `CellSelectionChanged` event.
5
+ *
6
+ * Fires when the cell selection changes, after AdapTable has updated its selected-cell state. Row selection does not fire this event.
7
+ *
8
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
5
9
  */
6
10
  export interface CellSelectionChangedInfo extends BaseContext {
7
11
  /**
8
- * Details of Cells currently selected in the Grid
12
+ * Cells selected after this change. `gridCells` is empty when nothing is selected.
9
13
  */
10
14
  selectedCellInfo: SelectedCellInfo;
11
15
  }
@@ -1,36 +1,44 @@
1
1
  import { BaseContext, ChartDefinition } from '../../types';
2
2
  /**
3
- * Info used in Chart Changed Event
3
+ * Payload of the `ChartChanged` event.
4
+ *
5
+ * Fires when an AdapTable chart is created, opened, closed or deleted.
6
+ *
7
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
4
8
  */
5
9
  export interface ChartChangedInfo extends BaseContext {
6
10
  /**
7
- * Details of Open Charts
11
+ * Every chart definition, with whether that chart is currently displayed.
8
12
  */
9
13
  chartingOpenState: ChartingOpenState;
10
14
  }
11
15
  /**
12
- * Currently opened Charts
16
+ * Open-state snapshot included in {@link ChartChangedInfo}.
17
+ *
18
+ * One entry per chart definition, including charts that are closed.
13
19
  */
14
20
  export interface ChartingOpenState {
15
21
  /**
16
- * Displayed Charts
22
+ * Every chart definition and its current display state.
17
23
  */
18
24
  charts: ChartDisplayedInfo[];
19
25
  }
20
26
  /**
21
- * Defines a Displayed Chart
27
+ * One chart definition and whether it is displayed.
22
28
  */
23
29
  export interface ChartDisplayedInfo {
24
30
  /**
25
- * Definition of the Chart
31
+ * Chart definition this entry describes.
26
32
  */
27
33
  chartDefinition: ChartDefinition;
28
34
  /**
29
- * Whether Chart is Open
35
+ * Whether AG Grid currently has this chart open.
30
36
  */
31
37
  isOpen: boolean;
32
38
  /**
33
- * Container where Chart is displayed
39
+ * Name of the configured chart container whose element contains this chart.
40
+ *
41
+ * Absent when the chart is closed, shown only in the AG Grid chart container, or no chart containers are configured.
34
42
  */
35
43
  containerName: string | null;
36
44
  }
@@ -1,10 +1,16 @@
1
1
  import { BaseContext, CommentThread } from '../../types';
2
2
  /**
3
- * Event fired when a Comment has changed
3
+ * Payload of the `CommentChanged` event.
4
+ *
5
+ * Fires when a comment or comment thread is added, edited or deleted. Loading threads does not fire it.
6
+ *
7
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
4
8
  */
5
9
  export interface CommentChangedInfo extends BaseContext {
6
10
  /**
7
- * All current Comment Threads
11
+ * Every comment thread after the change.
12
+ *
13
+ * This is the full list `commentApi.getAllComments()` returns, not only the thread that changed.
8
14
  */
9
15
  commentThreads: CommentThread[];
10
16
  }
@@ -1,11 +1,15 @@
1
1
  import { CustomToolbar } from '../../AdaptableOptions/DashboardOptions';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * EventInfo returned by the CustomToolbarConfigured event
4
+ * Payload of the `CustomToolbarConfigured` event.
5
+ *
6
+ * Fires when the user clicks Configure on a custom toolbar that includes the configure action.
7
+ *
8
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
5
9
  */
6
10
  export interface CustomToolbarConfiguredInfo extends BaseContext {
7
11
  /**
8
- * Custom Toolbar in which the 'Configure' button has been clicked
12
+ * Custom toolbar whose Configure button was clicked.
9
13
  */
10
14
  customToolbar: CustomToolbar;
11
15
  }
@@ -1,27 +1,48 @@
1
1
  import { DashboardState } from '../../AdaptableState/DashboardState';
2
2
  import { BaseContext } from '../../types';
3
3
  /**
4
- * Object returned by the `DashboardChanged` event
4
+ * Payload of the `DashboardChanged` event.
5
+ *
6
+ * Fires when Dashboard State changes, and once shortly after startup (`actionName` `ADAPTABLE_READY`). It is not fired when the old and new state are equal.
7
+ *
8
+ * Extends {@link BaseContext}, so `adaptableApi` is included.
5
9
  */
6
10
  export interface DashboardChangedInfo extends BaseContext {
7
11
  /**
8
- * What caused Dashboard State to change
12
+ * What changed.
13
+ *
14
+ * `ADAPTABLE_READY` is the first event, shortly after startup.
15
+ *
16
+ * Otherwise it is the Redux action type:
17
+ * `DASHBOARD_SET_IS_COLLAPSED`, `DASHBOARD_SET_IS_HIDDEN`, `DASHBOARD_SET_IS_FLOATING`, `DASHBOARD_SET_FLOATING_POSITION`, `DASHBOARD_SET_MODULE_BUTTONS`, `DASHBOARD_SET_TABS`, `DASHBOARD_ACTIVE_TAB_INDEX_CHANGE`, `DASHBOARD_CLOSE_TOOLBAR`.
9
18
  */
10
19
  actionName: string;
11
20
  /**
12
- * Previous Dashboard State
21
+ * Dashboard State before this change.
22
+ *
23
+ * `null` when `actionName` is `ADAPTABLE_READY`.
13
24
  */
14
25
  oldDashboardState: DashboardState;
15
26
  /**
16
- * Current Dashboard State
27
+ * Dashboard State after this change.
17
28
  */
18
29
  newDashboardState: DashboardState;
19
30
  /**
20
- * Check if given Toolbar was just changed to visible state
31
+ * Whether `toolbarName` became visible because of this change.
32
+ *
33
+ * True when the toolbar entered the active tab, or it was already in the active tab and the Dashboard was expanded or unhidden.
34
+ *
35
+ * @param toolbarName Toolbar to test
36
+ * @returns `true` when the toolbar became visible
21
37
  */
22
38
  isToolbarStateChangedToVisible(toolbarName: string): boolean;
23
39
  /**
24
- * Check if given Toolbar was just changed to hidden state
40
+ * Whether `toolbarName` became hidden because of this change.
41
+ *
42
+ * True when the toolbar left the active tab, or it stayed in the active tab and the Dashboard was collapsed or hidden.
43
+ *
44
+ * @param toolbarName Toolbar to test
45
+ * @returns `true` when the toolbar became hidden
25
46
  */
26
47
  isToolbarStateChangedToHidden(toolbarName: string): boolean;
27
48
  }