@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
@@ -270,8 +270,17 @@ export type AdaptableFormFieldType = 'text' | 'textarea' | 'select' | 'radio' |
270
270
  /**
271
271
  * A single option used by a `select` or `radio` field.
272
272
  */
273
+ /**
274
+ * One choice in a `select` or `radio` form field.
275
+ */
273
276
  export interface AdaptableFormFieldOption {
277
+ /**
278
+ * Value written into the form data when this choice is selected.
279
+ */
274
280
  value: any;
281
+ /**
282
+ * Text shown for this choice.
283
+ */
275
284
  label: string;
276
285
  }
277
286
  /**
@@ -1,17 +1,43 @@
1
1
  /**
2
- * Object containing formatting information for Numeric and Date Columns
2
+ * How a Format Column displays a value.
3
+ *
4
+ * Set `Formatter` to `'NumberFormatter'`, `'DateFormatter'` or `'StringFormatter'`, and put that formatter's options in `Options`. On a Format Column, `DisplayFormat` may instead be a numeric preset name such as `'Percentage'` or `'Dollar'`.
3
5
  */
4
6
  export type AdaptableFormat = {
7
+ /**
8
+ * Numeric formatter. Use with {@link NumberFormatterOptions}, or a numeric preset name on `DisplayFormat` instead of this object.
9
+ */
5
10
  Formatter: 'NumberFormatter';
11
+ /**
12
+ * Fraction digits, separators, prefix, suffix and the other numeric options.
13
+ */
6
14
  Options: NumberFormatterOptions;
7
15
  } | {
16
+ /**
17
+ * Date formatter.
18
+ */
8
19
  Formatter: 'DateFormatter';
20
+ /**
21
+ * Date pattern (`Pattern`) used to render the value.
22
+ */
9
23
  Options: DateFormatterOptions;
10
24
  } | {
25
+ /**
26
+ * String formatter. Transforms the cell text (case, prefix, suffix).
27
+ */
11
28
  Formatter: 'StringFormatter';
29
+ /**
30
+ * String formatting options.
31
+ */
12
32
  Options: StringFormatterOptions;
13
33
  };
34
+ /**
35
+ * Formatter options shared by number, date and string formats.
36
+ */
14
37
  export interface BaseFormatterOptions {
38
+ /**
39
+ * Ids of `formatColumnOptions.customDisplayFormatters` to run before the built-in formatter. They run in the order those formatters are listed in options.
40
+ */
15
41
  CustomDisplayFormats?: string[];
16
42
  }
17
43
  /**
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { TypeHint } from './Types';
3
3
  /**
4
- * Defines an icon to be used in AdapTable (e.g. in Dashboard Header, Buttons, Menu, etc.)
4
+ * An icon shown in the Dashboard, a button, a menu or a tool panel.
5
+ *
6
+ * A system icon sets `name` (an AdapTable icon, or one registered in `userInterfaceOptions.customIcons`). A custom icon sets `src` to an image URL. An element icon sets `element` to a DOM node or an HTML string. `size` on a system icon is pixels and defaults to 17.
5
7
  */
6
8
  export type AdaptableIcon = AdaptableSystemIcon | AdaptableCustomIcon | AdaptableElementIcon;
7
9
  /**
@@ -11,7 +13,7 @@ export interface AdaptableSystemIcon extends AdaptableBaseIcon {
11
13
  /**
12
14
  * The name of the icon to use (referencing the AdapTable Icon Library)
13
15
  *
14
- * The icon can be a adaptable icon or a custom one defined in `interfaceOptions.customIcons`
16
+ * The icon can be an AdapTable icon or a custom one defined in `userInterfaceOptions.customIcons`
15
17
  */
16
18
  name: TypeHint<string, AdaptableSystemIconName>;
17
19
  /**
@@ -14,7 +14,9 @@ export interface Identifiable {
14
14
  Uuid?: TypeUuid;
15
15
  }
16
16
  /**
17
- * Base interface which all other Adaptable State-related objects extend
17
+ * Fields shared by objects stored in Adaptable State.
18
+ *
19
+ * `Uuid` identifies the object. `Source` is `'InitialState'` when the object came from Initial State, and `'User'` when it was created at runtime. `IsReadOnly` blocks edits even when the module entitlement is `Full`. `IsSuspended`, on objects that have it, turns the object off without deleting it.
18
20
  */
19
21
  export interface AdaptableObject extends Identifiable {
20
22
  /**
@@ -61,7 +63,13 @@ export interface AdaptableObjectLookupCriteria {
61
63
  */
62
64
  ids?: AdaptableObject['Uuid'][];
63
65
  }
66
+ /**
67
+ * An Adaptable object that names the columns it applies to.
68
+ */
64
69
  export interface AdaptableObjectWithScope extends AdaptableObject {
70
+ /**
71
+ * Columns this object applies to. Exactly one of `All`, `DataTypes`, `ColumnIds` or `ColumnTypes`.
72
+ */
65
73
  Scope: ColumnScope;
66
74
  }
67
75
  /**
@@ -19,9 +19,18 @@ export type ExpressionKind = 'scalar' | 'aggregated';
19
19
  * depends on the kind (Alert, Calculated Column).
20
20
  */
21
21
  export interface ResolvedExpression {
22
+ /**
23
+ * `scalar` when the expression runs per row. `aggregated` when it runs over a set of rows (a brace call such as `SUM{...}`).
24
+ */
22
25
  kind: ExpressionKind;
26
+ /**
27
+ * Expression text. Modules store this string; the kind is inferred from it.
28
+ */
23
29
  text: string;
24
30
  }
31
+ /**
32
+ * Options for inferring whether an expression is scalar or aggregated.
33
+ */
25
34
  export interface InferExpressionKindOptions {
26
35
  /** Custom aggregation (brace-call) names registered by the host. */
27
36
  customAggregatedNames?: Iterable<string>;
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Behaviour for aligning Cell contents
2
+ * Horizontal alignment of cell content.
3
+ *
4
+ * `'Left'` and `'Default'` both align left. `'Right'` aligns right. `'Center'` centres the content.
3
5
  */
4
6
  export type Alignment = 'Left' | 'Right' | 'Center' | 'Default';
5
7
  /**
@@ -63,17 +65,13 @@ export interface CellBoxStyle {
63
65
  BorderRadius?: number;
64
66
  }
65
67
  /**
66
- * Style object used in numerous AdapTable Modules.
68
+ * Colours, font and border for a cell, header or highlight.
67
69
  *
68
- * Composed of two reusable slices — `CellFontStyle` (text) and `CellBoxStyle`
69
- * (cell chrome) — plus a `ClassName` escape hatch. The shape is unchanged
70
- * from previous releases; the slices exist so that Styled Columns can opt-in
71
- * to a single slice (`Font` or `Cell`) without having to embed a full
72
- * `AdaptableStyle`.
70
+ * Text properties (`ForeColor`, `FontWeight`, `FontStyle`, `TextDecoration`, `FontSize`, `Alignment`) and box properties (`BackColor`, `BorderColor`, `BorderRadius`) are applied together. `ClassName` adds a CSS class and does not turn the other properties off. A Styled Column can take just the text slice (`Font`) or just the box slice (`Cell`).
73
71
  */
74
72
  export interface AdaptableStyle extends CellFontStyle, CellBoxStyle {
75
73
  /**
76
- * Existing CSS Class; use instead of setting other object properties
74
+ * CSS class added to the cell. Colour, font and border properties on this object are still applied.
77
75
  */
78
76
  ClassName?: string;
79
77
  }
@@ -3,9 +3,16 @@
3
3
  */
4
4
  import { PivotTotalPosition } from '../LayoutState';
5
5
  import type { AdaptableColumn } from './AdaptableColumn';
6
+ /**
7
+ * How a column is aggregated in a layout.
8
+ *
9
+ * A string is an aggregation name: `'sum'`, `'avg'`, `'min'`, `'max'`, `'count'`, `'first'`, `'last'`, or `'only'` (the shared value when every row in the group has it, otherwise blank). `true` uses the column's `defaultAggFunc`, or `'sum'` when the column has none. A weighted average is `{ type: 'weightedAverage', weightedColumnId }`.
10
+ */
6
11
  export type AggregationColumnValue = string | true | WeightedAverageAggregation;
7
12
  /**
8
- * Defines an Aggregated Column in a Table Layout
13
+ * Aggregations shown in the group rows of a table layout.
14
+ *
15
+ * Each entry is a column id and an {@link AggregationColumnValue}.
9
16
  */
10
17
  export type TableAggregationColumns = {
11
18
  /**
@@ -13,12 +20,14 @@ export type TableAggregationColumns = {
13
20
  */
14
21
  ColumnId: string;
15
22
  /**
16
- * The type of Aggregation
23
+ * Aggregation to apply. A name, `true` for the column default (or `'sum'`), or a weighted average. See {@link AggregationColumnValue}.
17
24
  */
18
25
  AggFunc: AggregationColumnValue;
19
26
  }[];
20
27
  /**
21
- * Defines an Aggregated Column in a Pivot Layout
28
+ * Aggregations shown in a pivot layout.
29
+ *
30
+ * Each entry is a column id, an {@link AggregationColumnValue}, and an optional per-column total position.
22
31
  */
23
32
  export type PivotAggregationColumns = {
24
33
  /**
@@ -40,15 +49,15 @@ export type PivotAggregationColumns = {
40
49
  export declare const WEIGHTED_AVERAGE_AGG_FN_NAME = "weightedAvg";
41
50
  export declare const ONLY_AGG_FN_NAME = "only";
42
51
  /**
43
- * Defines a Weighted Average Agg
52
+ * A weighted average of this column, weighted by another numeric column.
44
53
  */
45
54
  export interface WeightedAverageAggregation {
46
55
  /**
47
- * Type is always 'weightedAverage'
56
+ * Always `'weightedAverage'`.
48
57
  */
49
58
  type: 'weightedAverage';
50
59
  /**
51
- * Column which is weighted
60
+ * Column id whose values weight this average. That column is numeric.
52
61
  */
53
62
  weightedColumnId: string;
54
63
  }
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Defines the look and feel of an Adaptable Button
2
+ * Appearance of an AdapTable button.
3
+ *
4
+ * `variant` is `'text'`, `'outlined'` (the default) or `'raised'`. `tone` is the colour: `'neutral'` (the default), `'success'`, `'error'`, `'warning'`, `'info'`, `'accent'` or `'none'`. `className` adds a CSS class.
3
5
  */
4
6
  export interface ButtonStyle {
5
7
  /**
@@ -9,11 +9,15 @@ export interface CellDataChangedInfo<TData = any> {
9
9
  */
10
10
  changedAt: number;
11
11
  /**
12
- * Value in the Cell before the edit
12
+ * Value before the change.
13
+ *
14
+ * Absent when `trigger` is `live`.
13
15
  */
14
16
  oldValue: any;
15
17
  /**
16
- * New value for the cell
18
+ * Value after the change.
19
+ *
20
+ * Absent when `trigger` is `live`.
17
21
  */
18
22
  newValue: any;
19
23
  /**
@@ -1,6 +1,8 @@
1
1
  import { AdaptableStyle } from '../../../types';
2
2
  /**
3
- * Defines how a given Cell in AdapTable should be highlighted
3
+ * A highlight on one cell.
4
+ *
5
+ * `columnId` and `primaryKeyValue` locate the cell. `highlightStyle` is the colours and font. `timeout` is how many milliseconds the highlight lasts; omit it and the highlight stays until it is cleared.
4
6
  */
5
7
  export interface CellHighlightInfo {
6
8
  /**
@@ -12,7 +14,7 @@ export interface CellHighlightInfo {
12
14
  */
13
15
  primaryKeyValue?: any;
14
16
  /**
15
- * Time after which Cell should be unhighlighted
17
+ * Milliseconds before the highlight is removed. Omit it and the highlight stays until it is cleared.
16
18
  */
17
19
  timeout?: number;
18
20
  /**
@@ -5,16 +5,49 @@ import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
5
5
  * Defines the Summary operations which AdapTable provides for Selected Numeric Cells
6
6
  */
7
7
  export interface CellSummmaryInfo {
8
+ /**
9
+ * Sum of the selected numeric values. `undefined` when the selection is not numeric.
10
+ */
8
11
  Sum: number | undefined;
12
+ /**
13
+ * Mean of the selected numeric values. `undefined` when the selection is not numeric.
14
+ */
9
15
  Average: number | undefined;
16
+ /**
17
+ * Median of the selected numeric values. `undefined` when the selection is not numeric.
18
+ */
10
19
  Median: number | undefined;
20
+ /**
21
+ * Most frequent selected value. `undefined` when there is no single mode.
22
+ */
11
23
  Mode: number | undefined;
24
+ /**
25
+ * How many distinct values are selected.
26
+ */
12
27
  Distinct: number | undefined;
28
+ /**
29
+ * Largest selected numeric value. `undefined` when the selection is not numeric.
30
+ */
13
31
  Max: number | undefined;
32
+ /**
33
+ * Smallest selected numeric value. `undefined` when the selection is not numeric.
34
+ */
14
35
  Min: number | undefined;
36
+ /**
37
+ * How many cells are selected.
38
+ */
15
39
  Count: number | undefined;
40
+ /**
41
+ * The single selected value, when every selected cell has the same value. `undefined` when the values differ.
42
+ */
16
43
  Only: string | undefined;
44
+ /**
45
+ * Standard deviation of the selected numeric values. `undefined` when the selection is not numeric.
46
+ */
17
47
  Std_Deviation: number | undefined;
48
+ /**
49
+ * Result of each custom Cell Summary operation, keyed by `operationName`.
50
+ */
18
51
  [key: string]: any;
19
52
  }
20
53
  /**
@@ -1,6 +1,8 @@
1
1
  import { SuspendableObject } from '../../types';
2
2
  /**
3
- * Defines an AdaptableQL Filter applied on a Column
3
+ * A filter on one column in a layout.
4
+ *
5
+ * `Expression` is a boolean AdapTableQL expression and is what hides rows. `PreferredFilter` is only the operator shown in the filter UI before an expression exists; it does not hide rows. Setting `Expression` clears `PreferredFilter`. `IsSuspended: true` turns the filter off.
4
6
  */
5
7
  export interface ColumnFilter extends SuspendableObject {
6
8
  /**
@@ -1,6 +1,8 @@
1
1
  import { AdaptableStyle } from '../../../types';
2
2
  /**
3
- * Defines how a given Column in AdapTable should be highlighted
3
+ * A highlight on every cell in one column.
4
+ *
5
+ * `columnId` is the column. `highlightStyle` is the colours and font. `timeout` is milliseconds; omit it and the highlight stays until it is cleared.
4
6
  */
5
7
  export interface ColumnHighlightInfo {
6
8
  /**
@@ -8,7 +10,7 @@ export interface ColumnHighlightInfo {
8
10
  */
9
11
  columnId: string;
10
12
  /**
11
- * Time after which Column should be unhighlighted
13
+ * Milliseconds before the highlight is removed. Omit it and the highlight stays until it is cleared.
12
14
  */
13
15
  timeout?: number;
14
16
  /**
@@ -1,22 +1,53 @@
1
+ /**
2
+ * AdapTable column data types a scope can name.
3
+ *
4
+ * `'text'`, `'number'`, `'boolean'`, `'date'`, `'textArray'` and `'numberArray'`. Object, tuple and unknown columns are not scope data types; name those columns with `ColumnIds`.
5
+ */
1
6
  export type ScopeDataType = 'text' | 'number' | 'boolean' | 'date' | 'textArray' | 'numberArray';
2
7
  /**
3
8
  * Scope data type for modules that only apply to numeric columns (e.g. Shortcut, Plus/Minus).
4
9
  */
5
10
  export type NumberScopeDataType = 'number';
11
+ /**
12
+ * Every column. The only valid value is `{ All: true }`.
13
+ */
6
14
  export type ScopeAll = {
15
+ /**
16
+ * Must be `true`. `{ All: true }` matches every column.
17
+ */
7
18
  All: true;
8
19
  };
20
+ /**
21
+ * Columns whose AdapTable data type is in the list.
22
+ */
9
23
  export type ScopeDataTypes<Type = ScopeDataType> = {
24
+ /**
25
+ * Data types to match, for example `['number']` or `['text', 'textArray']`.
26
+ */
10
27
  DataTypes: Type[];
11
28
  };
29
+ /**
30
+ * Columns named by id.
31
+ */
12
32
  export type ScopeColumnIds = {
33
+ /**
34
+ * Column ids to match. These are AG Grid `colId` values.
35
+ */
13
36
  ColumnIds: string[];
14
37
  };
38
+ /**
39
+ * Columns that have one of these AG Grid column types (`colDef.type`).
40
+ */
15
41
  export type ScopeColumnTypes = {
42
+ /**
43
+ * AG Grid column type names, the strings set on `colDef.type`.
44
+ */
16
45
  ColumnTypes: string[];
17
46
  };
18
47
  /**
19
- * Defines where a given Object / Module is active
48
+ * Which columns an object applies to.
49
+ *
50
+ * Set exactly one of `All`, `DataTypes`, `ColumnIds` or `ColumnTypes`. `{ All: true }` is every column. `DataTypes` matches AdapTable data types. `ColumnIds` matches column ids. `ColumnTypes` matches AG Grid column types.
20
51
  */
21
52
  export type ColumnScope<Type = ScopeDataType> = ScopeAll | ScopeDataTypes<Type> | ScopeColumnIds | ScopeColumnTypes;
22
53
  export declare const isScopeColumnIds: (scope: ColumnScope) => scope is ScopeColumnIds;
@@ -1,8 +1,25 @@
1
1
  import { ColDef, Column } from 'ag-grid-enterprise';
2
2
  import { AdaptableColumn } from './AdaptableColumn';
3
+ /**
4
+ * A column while AdapTable is attaching it to the grid.
5
+ *
6
+ * `col` and `colDef` are the AG Grid column. `colId` is its id. `abColumn` is the AdapTable column once one exists.
7
+ */
3
8
  export type ColumnSetupInfo = {
9
+ /**
10
+ * AG Grid column.
11
+ */
4
12
  col: Column;
13
+ /**
14
+ * AG Grid column definition.
15
+ */
5
16
  colDef: ColDef;
17
+ /**
18
+ * Column id.
19
+ */
6
20
  colId: string;
21
+ /**
22
+ * AdapTable column, once it has been created.
23
+ */
7
24
  abColumn?: AdaptableColumn;
8
25
  };
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Defines how a Column is sorted
2
+ * One column in a layout sort.
3
+ *
4
+ * On `Layout.ColumnSorts`, the array order is the sort priority: the first entry is the primary sort. `SortOrder` is `'Asc'` or `'Desc'`.
3
5
  */
4
6
  export interface ColumnSort {
5
7
  /**
@@ -3,5 +3,8 @@
3
3
  * (Standard / Cumulative / Quantile / Window; live updates; not persisted).
4
4
  */
5
5
  export interface CompactCalculatedColumnEditorInfo {
6
+ /**
7
+ * `ColumnId` of the Calculated Column whose expression is open in the compact editor.
8
+ */
6
9
  calculatedColumnId: string;
7
10
  }
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Defines where a Data Change should be monitored
2
+ * Which columns a data-change watch covers.
3
+ *
4
+ * `wholeRow: true` watches every column in the row. `columnIds` watches those column ids. Used when AdapTable decides which edits a rule should see.
3
5
  */
4
6
  export interface DataChangedScope {
5
7
  /**
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Object used to configure GridApi row management methods
2
+ * How a Grid API row update runs.
3
+ *
4
+ * `runAsync` runs the update asynchronously. `flushAsync` waits for queued async updates to finish. `addIndex` is the row index for added rows. `callback` runs when the batch finishes.
3
5
  */
4
6
  export interface DataUpdateConfig {
5
7
  /**
@@ -1,6 +1,8 @@
1
1
  import { AdaptableModule } from './Types';
2
2
  /**
3
- * Defines a Permission in AdapTable - Module and Access Level
3
+ * Access granted to one AdapTable module.
4
+ *
5
+ * `Full` shows the module and allows its objects to be added, edited and deleted. `ReadOnly` shows the module and blocks those changes. `Hidden` does not show the module. A module with no entitlement uses that module's default, which is `Full` unless the module sets its own.
4
6
  */
5
7
  export interface Entitlement {
6
8
  /**
@@ -13,6 +15,6 @@ export interface Entitlement {
13
15
  accessLevel: AccessLevel;
14
16
  }
15
17
  /**
16
- * Whether an Entitlement is `ReadOnly`, `Hidden` or `Full`
18
+ * `'Full'` can change the module's objects. `'ReadOnly'` can see them and cannot change them. `'Hidden'` does not show the module.
17
19
  */
18
20
  export type AccessLevel = 'ReadOnly' | 'Hidden' | 'Full';
@@ -1,21 +1,36 @@
1
+ /**
2
+ * Arithmetic operation used by a Shortcut: add, subtract, multiply or divide the cell value by `ShortcutValue`.
3
+ */
1
4
  export declare enum MathOperation {
2
5
  Add = "Add",
3
6
  Subtract = "Subtract",
4
7
  Multiply = "Multiply",
5
8
  Divide = "Divide"
6
9
  }
10
+ /**
11
+ * Sort direction. `'Asc'` is ascending and `'Desc'` is descending.
12
+ */
7
13
  export declare enum SortOrder {
8
14
  Asc = "Asc",
9
15
  Desc = "Desc"
10
16
  }
17
+ /**
18
+ * Font weight for an `AdaptableStyle`. `'Normal'` or `'Bold'`.
19
+ */
11
20
  export declare enum FontWeight {
12
21
  Normal = "Normal",
13
22
  Bold = "Bold"
14
23
  }
24
+ /**
25
+ * Font style for an `AdaptableStyle`. `'Normal'` or `'Italic'`.
26
+ */
15
27
  export declare enum FontStyle {
16
28
  Normal = "Normal",
17
29
  Italic = "Italic"
18
30
  }
31
+ /**
32
+ * Font size for an `AdaptableStyle`: `'XSmall'`, `'Small'`, `'Medium'`, `'Large'` or `'XLarge'`.
33
+ */
19
34
  export declare enum FontSize {
20
35
  XSmall = "XSmall",
21
36
  Small = "Small",
@@ -23,12 +38,18 @@ export declare enum FontSize {
23
38
  Large = "Large",
24
39
  XLarge = "XLarge"
25
40
  }
41
+ /**
42
+ * CSS colour variable for a status: error, warning, success or info.
43
+ */
26
44
  export declare enum StatusColour {
27
45
  Error = "var(--ab-color-destructive)",
28
46
  Warn = "var(--ab-color-warn)",
29
47
  Success = "var(--ab-color-success)",
30
48
  Info = "var(--ab-color-info)"
31
49
  }
50
+ /**
51
+ * Cell Summary operation calculated for the current selection: sum, average, median, mode, distinct count, max, min, count, only, standard deviation, or weighted average.
52
+ */
32
53
  export declare enum SummaryOperation {
33
54
  Sum = "Sum",
34
55
  Max = "Max",
@@ -41,7 +41,9 @@ export type LayoutExtensionObject = AlertDefinition | CustomSort | FlashingCellD
41
41
  */
42
42
  export type LayoutExtensionModule = 'Alert' | 'CustomSort' | 'FlashingCell' | 'FormatColumn' | 'PlusMinus' | 'Shortcut' | 'StyledColumn';
43
43
  /**
44
- * Lists the Adaptable Objects (by Name) which are extended into a Layout
44
+ * Objects that apply only in one layout.
45
+ *
46
+ * An Alert, Custom Sort, Flashing Cell, Format Column, Plus Minus nudge, Shortcut or Styled Column applies in every layout until its `Name` is listed here. Once listed, it applies only in the layouts that name it. `LayoutName` is the layout's `Name`. Each array is object names, not column ids.
45
47
  */
46
48
  export interface LayoutExtension {
47
49
  /**
@@ -1,6 +1,15 @@
1
1
  import { StandardContextType } from '@finos/fdc3';
2
+ /**
3
+ * Label and icon used for one standard FDC3 context type.
4
+ */
2
5
  interface ContextConfig {
6
+ /**
7
+ * Text shown for this context type.
8
+ */
3
9
  label: string;
10
+ /**
11
+ * AdapTable icon name shown for this context type.
12
+ */
4
13
  icon: string;
5
14
  }
6
15
  export declare const ContextConfiguration: Record<StandardContextType, ContextConfig>;
@@ -1,5 +1,11 @@
1
1
  import { StandardIntent } from '@finos/fdc3';
2
+ /**
3
+ * Icon used for one standard FDC3 intent.
4
+ */
2
5
  interface IntentConfig {
6
+ /**
7
+ * AdapTable icon name shown for this intent.
8
+ */
3
9
  icon: string;
4
10
  }
5
11
  export declare const Fdc3IntentConfiguration: Record<StandardIntent, IntentConfig>;
@@ -1,6 +1,8 @@
1
1
  import { SuspendableObject } from '../../types';
2
2
  /**
3
- * Defines a Grid Filter (essentially a Boolean Expression)
3
+ * A boolean AdapTableQL expression applied to every row in a layout.
4
+ *
5
+ * Rows that do not match `Expression` are hidden. An empty expression, or `IsSuspended: true`, shows every row. This is separate from each column's `ColumnFilter`.
4
6
  */
5
7
  export interface GridFilter extends SuspendableObject {
6
8
  /**
@@ -3,6 +3,9 @@ import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupP
3
3
  import { AdaptableMenuItem, AdaptableContextMenuItemName, AdaptableColumnMenuItemName } from './Menu';
4
4
  import { AdaptableModule } from './Types';
5
5
  import { AdaptableIcon, AdaptableSystemIconName } from './AdaptableIcon';
6
+ /**
7
+ * A shipped menu item that dispatches a Redux action when it is clicked.
8
+ */
6
9
  export declare class MenuItemDoReduxAction<MENU_TYPE_NAME extends AdaptableColumnMenuItemName | AdaptableContextMenuItemName = AdaptableColumnMenuItemName | AdaptableContextMenuItemName> implements AdaptableMenuItem<MENU_TYPE_NAME> {
7
10
  constructor(name: MENU_TYPE_NAME, label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: AdaptableSystemIconName | AdaptableIcon, isVisible: boolean);
8
11
  name: MENU_TYPE_NAME;
@@ -12,6 +15,9 @@ export declare class MenuItemDoReduxAction<MENU_TYPE_NAME extends AdaptableColum
12
15
  isVisible: boolean;
13
16
  icon: AdaptableIcon;
14
17
  }
18
+ /**
19
+ * A shipped menu item that runs a function when it is clicked.
20
+ */
15
21
  export declare class MenuItemDoClickFunction<MENU_TYPE_NAME extends AdaptableColumnMenuItemName | AdaptableContextMenuItemName = AdaptableColumnMenuItemName | AdaptableContextMenuItemName> implements AdaptableMenuItem<MENU_TYPE_NAME> {
16
22
  constructor(name: MENU_TYPE_NAME, label: string, module: AdaptableModule, clickFunction: () => void, icon: AdaptableSystemIconName | AdaptableIcon, isVisible: boolean);
17
23
  name: MENU_TYPE_NAME;
@@ -21,6 +27,9 @@ export declare class MenuItemDoClickFunction<MENU_TYPE_NAME extends AdaptableCol
21
27
  isVisible: boolean;
22
28
  icon: AdaptableIcon;
23
29
  }
30
+ /**
31
+ * A shipped menu item that opens a popup when it is clicked.
32
+ */
24
33
  export declare class MenuItemShowPopup<MENU_TYPE_NAME extends AdaptableColumnMenuItemName | AdaptableContextMenuItemName = AdaptableColumnMenuItemName | AdaptableContextMenuItemName> implements AdaptableMenuItem<MENU_TYPE_NAME> {
25
34
  constructor(name: MENU_TYPE_NAME, label: string, module: AdaptableModule, componentName: string, icon: AdaptableSystemIconName | AdaptableIcon, isVisible: boolean, popupParams?: ModuleParams);
26
35
  name: MENU_TYPE_NAME;
@@ -1,6 +1,8 @@
1
1
  import { AdaptableStyle } from '../../../types';
2
2
  /**
3
- * Define how to highlight a Row
3
+ * A highlight on one row.
4
+ *
5
+ * `primaryKeyValue` is the row. `highlightStyle` is the colours and font. `timeout` is milliseconds; omit it and the highlight stays until it is cleared.
4
6
  */
5
7
  export interface RowHighlightInfo {
6
8
  /**
@@ -8,7 +10,7 @@ export interface RowHighlightInfo {
8
10
  */
9
11
  primaryKeyValue: any;
10
12
  /**
11
- * Timeout after which Row should be unhighlighted
13
+ * Milliseconds before the highlight is removed. Omit it and the highlight stays until it is cleared.
12
14
  */
13
15
  timeout?: number;
14
16
  /**