@adaptabletools/adaptable 24.0.0-canary.8 → 24.0.0

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 (235) 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 +0 -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/EditOptions.d.ts +18 -2
  22. package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
  23. package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
  24. package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
  25. package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
  26. package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
  27. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
  28. package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
  29. package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
  30. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +10 -1
  31. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
  32. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -2
  33. package/src/AdaptableState/AdaptableState.d.ts +98 -4
  34. package/src/AdaptableState/AlertState.d.ts +20 -21
  35. package/src/AdaptableState/ApplicationState.d.ts +5 -3
  36. package/src/AdaptableState/BaseState.d.ts +9 -2
  37. package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
  38. package/src/AdaptableState/ChartingState.d.ts +10 -5
  39. package/src/AdaptableState/CommentState.d.ts +10 -4
  40. package/src/AdaptableState/Common/AdaptableAlert.d.ts +6 -2
  41. package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
  42. package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
  43. package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
  44. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
  45. package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
  46. package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
  47. package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
  48. package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
  49. package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
  50. package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
  51. package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
  52. package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
  53. package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
  54. package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
  55. package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
  56. package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
  57. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
  58. package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
  59. package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
  60. package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
  61. package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
  62. package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
  63. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
  64. package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
  65. package/src/AdaptableState/Common/Enums.d.ts +21 -0
  66. package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
  67. package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
  68. package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
  69. package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
  70. package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
  71. package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
  72. package/src/AdaptableState/Common/RowScope.d.ts +3 -1
  73. package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
  74. package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
  75. package/src/AdaptableState/Common/Schedule.d.ts +10 -2
  76. package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
  77. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
  78. package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
  79. package/src/AdaptableState/Common/Types.d.ts +9 -0
  80. package/src/AdaptableState/CustomSortState.d.ts +8 -5
  81. package/src/AdaptableState/DashboardState.d.ts +14 -10
  82. package/src/AdaptableState/ExportState.d.ts +12 -4
  83. package/src/AdaptableState/FlashingCellState.d.ts +8 -5
  84. package/src/AdaptableState/FormatColumnState.d.ts +28 -8
  85. package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
  86. package/src/AdaptableState/IPushPullState.d.ts +39 -3
  87. package/src/AdaptableState/InitialState.d.ts +9 -9
  88. package/src/AdaptableState/InternalState.d.ts +183 -3
  89. package/src/AdaptableState/LayoutState.d.ts +64 -21
  90. package/src/AdaptableState/NamedQueryState.d.ts +16 -4
  91. package/src/AdaptableState/NoteState.d.ts +7 -3
  92. package/src/AdaptableState/OpenFinState.d.ts +12 -2
  93. package/src/AdaptableState/PlusMinusState.d.ts +8 -4
  94. package/src/AdaptableState/PopupState.d.ts +29 -1
  95. package/src/AdaptableState/QuickSearchState.d.ts +5 -3
  96. package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
  97. package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
  98. package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
  99. package/src/AdaptableState/ShortcutState.d.ts +7 -3
  100. package/src/AdaptableState/StatusBarState.d.ts +7 -6
  101. package/src/AdaptableState/StyledColumnState.d.ts +46 -14
  102. package/src/AdaptableState/TeamSharingState.d.ts +46 -2
  103. package/src/AdaptableState/ThemeState.d.ts +24 -2
  104. package/src/AdaptableState/ToolPanelState.d.ts +10 -5
  105. package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
  106. package/src/AdaptableState/Uuid.d.ts +6 -0
  107. package/src/Api/ActionColumnApi.d.ts +3 -1
  108. package/src/Api/AdaptableApi.d.ts +54 -50
  109. package/src/Api/AlertApi.d.ts +20 -12
  110. package/src/Api/ApplicationApi.d.ts +6 -2
  111. package/src/Api/BulkUpdateApi.d.ts +2 -1
  112. package/src/Api/CalculatedColumnApi.d.ts +4 -1
  113. package/src/Api/CalendarApi.d.ts +10 -0
  114. package/src/Api/CellSummaryApi.d.ts +9 -3
  115. package/src/Api/ChartingApi.d.ts +22 -7
  116. package/src/Api/ColumnApi.d.ts +71 -4
  117. package/src/Api/ColumnFilterApi.d.ts +13 -3
  118. package/src/Api/ColumnMenuApi.d.ts +13 -2
  119. package/src/Api/ColumnScopeApi.d.ts +27 -1
  120. package/src/Api/CommentApi.d.ts +10 -7
  121. package/src/Api/ContextMenuApi.d.ts +11 -1
  122. package/src/Api/CustomSortApi.d.ts +6 -2
  123. package/src/Api/DashboardApi.d.ts +30 -9
  124. package/src/Api/DataChangeHistoryApi.d.ts +9 -3
  125. package/src/Api/DataImportApi.d.ts +1 -1
  126. package/src/Api/EntitlementApi.d.ts +6 -1
  127. package/src/Api/EventApi.d.ts +67 -19
  128. package/src/Api/Events/AdaptableReady.d.ts +6 -2
  129. package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
  130. package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
  131. package/src/Api/Events/AlertFired.d.ts +8 -2
  132. package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
  133. package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
  134. package/src/Api/Events/CellChanged.d.ts +6 -2
  135. package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
  136. package/src/Api/Events/ChartChanged.d.ts +16 -8
  137. package/src/Api/Events/CommentChanged.d.ts +8 -2
  138. package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
  139. package/src/Api/Events/DashboardChanged.d.ts +27 -6
  140. package/src/Api/Events/DataImported.d.ts +8 -4
  141. package/src/Api/Events/DataSetSelected.d.ts +6 -2
  142. package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
  143. package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
  144. package/src/Api/Events/GridFilterApplied.d.ts +11 -3
  145. package/src/Api/Events/GridSorted.d.ts +6 -2
  146. package/src/Api/Events/LayoutChanged.d.ts +36 -5
  147. package/src/Api/Events/LiveDataChanged.d.ts +21 -5
  148. package/src/Api/Events/NoteChanged.d.ts +5 -1
  149. package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
  150. package/src/Api/Events/RowChanged.d.ts +6 -2
  151. package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
  152. package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
  153. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
  154. package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
  155. package/src/Api/Events/ThemeSelected.d.ts +6 -2
  156. package/src/Api/ExportApi.d.ts +59 -32
  157. package/src/Api/ExpressionApi.d.ts +24 -1
  158. package/src/Api/Fdc3Api.d.ts +16 -3
  159. package/src/Api/FlashingCellApi.d.ts +6 -1
  160. package/src/Api/FormatColumnApi.d.ts +18 -11
  161. package/src/Api/FreeTextColumnApi.d.ts +4 -2
  162. package/src/Api/GridApi.d.ts +92 -19
  163. package/src/Api/IPushPullApi.d.ts +19 -2
  164. package/src/Api/Internal/EventInternalApi.d.ts +2 -1
  165. package/src/Api/Internal/EventInternalApi.js +7 -0
  166. package/src/Api/InteropioPluginApi.d.ts +2 -1
  167. package/src/Api/LayoutApi.d.ts +29 -15
  168. package/src/Api/NamedQueryApi.d.ts +10 -6
  169. package/src/Api/NoteApi.d.ts +15 -11
  170. package/src/Api/OpenFinApi.d.ts +8 -2
  171. package/src/Api/OptionsApi.d.ts +43 -1
  172. package/src/Api/PluginsApi.d.ts +6 -1
  173. package/src/Api/PlusMinusApi.d.ts +2 -1
  174. package/src/Api/QuickSearchApi.d.ts +6 -1
  175. package/src/Api/RowFormApi.d.ts +8 -7
  176. package/src/Api/ShortcutApi.d.ts +3 -1
  177. package/src/Api/SmartEditApi.d.ts +4 -1
  178. package/src/Api/StateApi.d.ts +30 -2
  179. package/src/Api/StatusBarApi.d.ts +2 -0
  180. package/src/Api/StyledColumnApi.d.ts +23 -12
  181. package/src/Api/SystemStatusApi.d.ts +18 -6
  182. package/src/Api/TeamSharingApi.d.ts +8 -1
  183. package/src/Api/ThemeApi.d.ts +18 -9
  184. package/src/Api/ToolPanelApi.d.ts +12 -7
  185. package/src/Api/UserInterfaceApi.d.ts +10 -1
  186. package/src/Redux/Store/AdaptableStore.js +1 -1
  187. package/src/agGrid/Adaptable.d.ts +0 -12
  188. package/src/agGrid/Adaptable.js +0 -52
  189. package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
  190. package/src/agGrid/AdaptableLogger.d.ts +74 -1
  191. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
  192. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
  193. package/src/agGrid/index.d.ts +1 -6
  194. package/src/agGrid/index.js +1 -3
  195. package/src/aql/ExpressionEvaluation.d.ts +27 -0
  196. package/src/aql/types.d.ts +22 -0
  197. package/src/env.js +2 -2
  198. package/src/migration/legacyAdaptableQuery.d.ts +29 -4
  199. package/src/setupDevTools.js +223 -0
  200. package/src/types.d.ts +0 -2
  201. package/tsconfig.esm.tsbuildinfo +1 -1
  202. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
  203. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
  204. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
  205. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
  206. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
  207. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
  208. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
  209. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
  210. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
  211. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
  212. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
  213. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
  214. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
  215. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
  216. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
  217. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
  218. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
  219. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
  220. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
  221. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
  222. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
  223. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
  224. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
  225. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
  226. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
  227. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
  228. package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
  229. package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
  230. package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
  231. package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
  232. package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
  233. package/src/View/AdaptableWizardView/Wizard.js +0 -98
  234. package/src/View/AdaptableWizardView/index.d.ts +0 -4
  235. package/src/View/AdaptableWizardView/index.js +0 -4
@@ -25,47 +25,141 @@ import { NamedQueryState } from './NamedQueryState';
25
25
  import { CommentState } from './CommentState';
26
26
  import { UserInterfaceState } from './UserInterfaceState';
27
27
  /**
28
- * The main state object of Adaptable
28
+ * Full AdapTable State in the store: the persisted sections plus the sections that are never saved.
29
+ *
30
+ * {@link AdaptablePersistentState} is what `loadState` / `saveState` round-trip, and what `InitialState` seeds.
31
+ * {@link AdaptableTransientState} exists only for the current session.
32
+ *
33
+ * Each section has its own `Revision`. When a later Initial State has a higher Revision for a section, that section is replaced (`Override`) or merged so user-created objects are kept (`KeepUserDefined`). See {@link BaseState.Revision}.
29
34
  */
30
35
  export interface AdaptableState extends AdaptablePersistentState, AdaptableTransientState {
31
36
  [s: string]: BaseState;
32
37
  }
33
38
  /**
34
- * The state object of Adaptable which is persisted
39
+ * AdapTable State that is persisted.
40
+ *
41
+ * This is the object passed to `stateOptions.loadState`, `saveState`, `persistState` and `applyState`.
42
+ * Supply the same section names in `InitialState`. Initial State is applied only when nothing has been persisted yet for this grid; after that, raising a section's `Revision` is how a new Initial State updates that section.
35
43
  *
36
- * This is the state shape handled by all `StateOptions` functions (`saveState`, `persistState`, `loadState`, `applyState`)
44
+ * `TeamSharing` is persisted, but it is not part of Initial State. Shares are created at run time.
37
45
  */
38
46
  export interface AdaptablePersistentState {
47
+ /**
48
+ * Developer-owned key/value entries, stored with the rest of AdapTable State.
49
+ *
50
+ * Set from Initial State. There is no UI for editing these entries.
51
+ */
39
52
  Application: ApplicationState;
53
+ /**
54
+ * Alert definitions. Each rule, schedule or data-change alert fires when its condition is met.
55
+ */
40
56
  Alert: AlertState;
57
+ /**
58
+ * Calculated Columns. Each column's `Expression` is evaluated to produce the cell value.
59
+ */
41
60
  CalculatedColumn: CalculatedColumnState;
61
+ /**
62
+ * Named charts. Each definition wraps an AG Chart model.
63
+ */
42
64
  Charting: ChartingState;
65
+ /**
66
+ * Custom Sorts. A column listed here sorts by the given value order instead of the default comparison.
67
+ */
43
68
  CustomSort: CustomSortState;
69
+ /**
70
+ * Dashboard: tabs, which toolbars are on each tab, and whether the Dashboard is collapsed, floating or hidden.
71
+ */
44
72
  Dashboard: DashboardState;
73
+ /**
74
+ * Reports and report schedules used by Export.
75
+ */
45
76
  Export: ExportState;
77
+ /**
78
+ * Flashing Cell rules. Matching cells or rows flash when their data changes.
79
+ */
46
80
  FlashingCell: FlashingCellState;
81
+ /**
82
+ * Format Columns: styles and display formats, applied to a column scope, optionally when a `Rule` is true.
83
+ */
47
84
  FormatColumn: FormatColumnState;
85
+ /**
86
+ * Free Text Columns. Cell values are stored here, not in the grid's data source.
87
+ */
48
88
  FreeTextColumn: FreeTextColumnState;
89
+ /**
90
+ * Layouts: column visibility, order, sizing, sorting, grouping, aggregations, filters and the current Layout.
91
+ *
92
+ * Initial State must include a Layout unless `layoutOptions.autoCreateLayout` creates one.
93
+ */
49
94
  Layout: LayoutState;
95
+ /**
96
+ * Named Queries. An expression saved here can be referred to by name from other modules.
97
+ */
50
98
  NamedQuery: NamedQueryState;
99
+ /**
100
+ * Cell Notes. A Note is one piece of text on a cell, separate from Comments and from Free Text Columns.
101
+ */
51
102
  Note: NoteState;
103
+ /**
104
+ * Plus Minus nudges. Each nudge names a column and how much `+` / `-` (or a custom shortcut) changes the cell.
105
+ */
52
106
  PlusMinus: PlusMinusState;
107
+ /**
108
+ * Quick Search text, and whether matches are highlighted or non-matching rows are filtered out.
109
+ */
53
110
  QuickSearch: QuickSearchState;
111
+ /**
112
+ * Keyboard shortcuts that write a value into the edited cell, used to speed up entry and block mistyped values.
113
+ */
54
114
  Shortcut: ShortcutState;
115
+ /**
116
+ * Status Bar panels and the order they appear in.
117
+ */
55
118
  StatusBar: StatusBarState;
119
+ /**
120
+ * Styled Columns: badges, bars, sparklines, gradients and the other cell renderers that are not a Format Column.
121
+ */
56
122
  StyledColumn: StyledColumnState;
123
+ /**
124
+ * Team Sharing entities. Persisted, but not supplied in Initial State.
125
+ *
126
+ * `Snapshot` is a one-time copy. `Active` stays linked and its `Revision` increases when the shared object changes.
127
+ */
57
128
  TeamSharing: TeamSharingState;
129
+ /**
130
+ * Current theme (`light`, `dark` or `os`) and which shipped themes are offered.
131
+ */
58
132
  Theme: ThemeState;
133
+ /**
134
+ * Tool Panel: which module controls are visible and their order.
135
+ */
59
136
  ToolPanel: ToolPanelState;
137
+ /**
138
+ * Which AdapTable UI surfaces are shown: Dashboard, Tool Panel, Status Bar, column menu, context menu and the rest.
139
+ */
60
140
  UserInterface: UserInterfaceState;
61
141
  }
62
142
  /**
63
- * The state which is available in the internal Redux store but never persisted
143
+ * AdapTable State that is never persisted and is not part of Initial State.
64
144
  */
65
145
  export interface AdaptableTransientState {
146
+ /**
147
+ * Session bookkeeping: current selection, in-flight module data and similar runtime fields.
148
+ */
66
149
  Internal: InternalState;
150
+ /**
151
+ * Which popup or form is open.
152
+ */
67
153
  Popup: PopupState;
154
+ /**
155
+ * Comment threads for this session.
156
+ *
157
+ * Comments are not in the persisted snapshot. Load them with `commentOptions.loadCommentThreads` and save them with `commentOptions.persistCommentThreads`.
158
+ */
68
159
  Comment: CommentState;
160
+ /**
161
+ * State owned by plugins, keyed by plugin id (for example ipushpull and OpenFin session data).
162
+ */
69
163
  Plugins: {
70
164
  [key: string]: any;
71
165
  };
@@ -9,23 +9,24 @@ import { ButtonStyle } from './Common/ButtonStyle';
9
9
  import { Schedule } from './Common/Schedule';
10
10
  import { AlertFormContext, BaseContext, NotificationsOptions, SuspendableObject } from '../types';
11
11
  /**
12
- * Adaptable State section for Alert Module
12
+ * Alert section of Adaptable State, including Initial State.
13
+ *
14
+ * Each definition fires when its condition is met. A rule-based alert sets `Scope` and `Rule`. A row-change alert sets `RowChangeTrigger` (`'Added'` or `'Removed'`). A scheduled alert sets `Schedule` and has no rule. `MessageType` sets the colour and icon. `MessageHeader` is the title and `MessageText` is the body.
13
15
  */
14
16
  export interface AlertState extends BaseState {
15
17
  /**
16
- * Alert Definitions - will trigger Alerts when rule is met
18
+ * Alerts to evaluate. Each one is a rule-based alert (`Scope` + `Rule`), a row-change alert (`RowChangeTrigger`), or a scheduled alert (`Schedule`).
17
19
  */
18
20
  AlertDefinitions?: AlertDefinition[];
19
21
  }
20
22
  /**
21
- * Wizard / evaluation category for an Alert Definition.
23
+ * Category of an Alert Definition, stored on {@link AlertDefinitionBase.Type}.
22
24
  *
23
- * Persisted on {@link AlertDefinitionBase.Type}. When absent (legacy state),
24
- * inferred from Rule / Schedule shape via migration and runtime fallback.
25
+ * When `Type` is omitted it is inferred: a `Schedule` is `Scheduled`, a `RowChangeTrigger` is `RowChange`, and a `Rule` is `DataChange`, `RelativeChange`, `Validation`, `Aggregation` or `Observable` from the expression.
25
26
  */
26
27
  export type AlertType = 'DataChange' | 'RelativeChange' | 'Validation' | 'RowChange' | 'Aggregation' | 'Observable' | 'Scheduled';
27
28
  /**
28
- * Runtime constants matching {@link AlertType} (replaces the previous View-layer enum).
29
+ * Runtime constants matching {@link AlertType}.
29
30
  */
30
31
  export declare const AlertType: {
31
32
  readonly DataChange: "DataChange";
@@ -38,7 +39,9 @@ export declare const AlertType: {
38
39
  };
39
40
  export declare const ALERT_TYPES: readonly AlertType[];
40
41
  /**
41
- * Fields shared by all alert definitions
42
+ * Fields every alert definition has.
43
+ *
44
+ * `Name` identifies the alert. `MessageType` is required and sets the colour, icon and log level (`'Info'`, `'Success'`, `'Warning'` or `'Error'`). `MessageHeader` is the notification title. `MessageText` is the body. Suspend with `IsSuspended`.
42
45
  */
43
46
  export interface AlertDefinitionBase extends SuspendableObject {
44
47
  /**
@@ -46,9 +49,7 @@ export interface AlertDefinitionBase extends SuspendableObject {
46
49
  */
47
50
  Name: string;
48
51
  /**
49
- * Alert category (Data Change, Relative Change, Validation, etc.).
50
- * Optional for one release so legacy InitialState migrates via VersionUpgrade24;
51
- * when omitted, inferred from Rule / Schedule.
52
+ * Alert category. When omitted, inferred from `Rule` or `Schedule`. See {@link AlertType}.
52
53
  */
53
54
  Type?: AlertType;
54
55
  /**
@@ -60,7 +61,9 @@ export interface AlertDefinitionBase extends SuspendableObject {
60
61
  */
61
62
  MessageHeader?: string;
62
63
  /**
63
- * Title of displayed Alert Message; if null, AdapTable creates dynamically using Rule & Scope
64
+ * Body of the displayed alert. The title is {@link AlertDefinitionBase.MessageHeader}.
65
+ *
66
+ * Tokens such as the column and the old and new values are substituted when the alert fires. When omitted, a rule-based alert uses the scope and the rule, and a row-change alert uses a count of the rows that were added or removed. `alertOptions.alertMessageText` overrides this text when it returns a string.
64
67
  */
65
68
  MessageText?: string;
66
69
  }
@@ -112,9 +115,7 @@ export interface AlertTriggerPolicy {
112
115
  /**
113
116
  * Alert that fires when a row is added to or removed from the grid.
114
117
  *
115
- * Replaces the legacy observable `ROW_ADDED{}` / `ROW_REMOVED{}` rules: one Alert per
116
- * row event, with an optional per-row {@link RowChangeAlertDefinition.Rule}
117
- * (`[make] = 'Toyota'`) evaluated on the added / removed row.
118
+ * Set `Type` to `'RowChange'` and `RowChangeTrigger` to `'Added'` or `'Removed'`. `Scope` is `{ All: true }`. `Rule` is an optional per-row boolean expression (`[make] = 'Toyota'`); when it is omitted every matching row event fires.
118
119
  */
119
120
  export interface RowChangeAlertDefinition extends AlertDefinitionBase {
120
121
  Type: 'RowChange';
@@ -167,9 +168,7 @@ export type AlertDefinition = RuleBasedAlertDefinition | RowChangeAlertDefinitio
167
168
  */
168
169
  export type GridAlertDefinition = RuleBasedAlertDefinition | RowChangeAlertDefinition;
169
170
  /**
170
- * Row Change Alert in its current shape (`RowChangeTrigger`). Pre-v24
171
- * `Type: 'RowChange'` definitions with a `ROW_ADDED{}` rule and no trigger
172
- * are not matched: `VersionUpgrade24` rewrites them on load.
171
+ * True when the alert is a Row Change alert: `Type` is `'RowChange'` and `RowChangeTrigger` is set.
173
172
  */
174
173
  export declare const isRowChangeAlertDefinition: (alertDefinition: AlertDefinition | undefined | null) => alertDefinition is RowChangeAlertDefinition;
175
174
  /**
@@ -217,11 +216,11 @@ export interface AlertPresentationProperties {
217
216
  */
218
217
  DisplayNotification?: boolean;
219
218
  /**
220
- * Notifiction duration(defaults to `NotificationOptions.duration`)
219
+ * How long the notification stays visible. When omitted, `notificationsOptions.duration` is used.
221
220
  */
222
221
  NotificationDuration?: NotificationsOptions['duration'];
223
222
  /**
224
- * Shows Alert text in the div specificed in `alertContainer` property of Container Options
223
+ * Shows the alert text in the element named by `containerOptions.alertContainer`
225
224
  */
226
225
  ShowInDiv?: boolean;
227
226
  /**
@@ -238,11 +237,11 @@ export interface AlertPresentationProperties {
238
237
  */
239
238
  export interface RuleAlertProperties extends AlertPresentationProperties {
240
239
  /**
241
- * Colours updated Row using `MessageType` of triggering Alert Definition
240
+ * Colours the cell that triggered the alert. `true` uses the colour for `MessageType`. An {@link AdaptableStyle} is applied instead of that colour.
242
241
  */
243
242
  HighlightCell?: boolean | AdaptableStyle;
244
243
  /**
245
- * Colours updated Row using `MessageType` of triggering Alert Definition
244
+ * Colours the row that triggered the alert. `true` uses the colour for `MessageType`. An {@link AdaptableStyle} is applied instead of that colour.
246
245
  */
247
246
  HighlightRow?: boolean | AdaptableStyle;
248
247
  /**
@@ -1,7 +1,9 @@
1
1
  import { BaseState } from './BaseState';
2
2
  /**
3
- * Adaptable State Section for the Application Module
4
- **/
3
+ * Application section of Adaptable State, including Initial State.
4
+ *
5
+ * A place to store your own key/value data with the rest of AdapTable State. There is no Application UI. Each `Value` must be stringifiable, because the section is persisted.
6
+ */
5
7
  export interface ApplicationState extends BaseState {
6
8
  /**
7
9
  * Array of Key / Value pairs enabling custom data to be stored in Adaptable State.
@@ -17,7 +19,7 @@ export interface ApplicationDataEntry {
17
19
  */
18
20
  Key: string;
19
21
  /**
20
- * Value of Key / Value pair (actual data being stored) - needs to stringifiable
22
+ * Value stored for `Key`. It must be stringifiable, because it is saved with the rest of AdapTable State.
21
23
  */
22
24
  Value: any;
23
25
  }
@@ -1,9 +1,16 @@
1
1
  /**
2
- * Base Interface for all Adaptable State objects; contains`Revision` property, used for versioning
2
+ * Base of every AdapTable State section.
3
+ *
4
+ * `Revision` is how a newer Initial State updates one section without touching the others.
3
5
  */
4
6
  export interface BaseState {
5
7
  /**
6
- * Version number of the Item - allows developers to update one section in Initial Adaptable State while keeping others unchanged
8
+ * Version of this section.
9
+ *
10
+ * A number, or `{ Key, UpdateStrategy }`. AdapTable compares `Key` (or the number) with the Revision already persisted for this section. When the Initial State key is higher, the section is updated:
11
+ *
12
+ * - `Override` (the default) replaces the persisted section with the Initial State section.
13
+ * - `KeepUserDefined` applies the Initial State section, then appends objects the user added (their `Source` is not `InitialState`) back onto each array.
7
14
  */
8
15
  Revision?: number | {
9
16
  Key: number;
@@ -4,20 +4,24 @@ import { expressionContainsAggregation, expressionContainsObservableCall, type E
4
4
  import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
5
5
  export { expressionContainsAggregation, expressionContainsObservableCall };
6
6
  /**
7
- * Adaptable State Section for Calculated Column Module
8
- **/
7
+ * Calculated Column section of Adaptable State, including Initial State.
8
+ *
9
+ * Each entry adds a column whose cells are the result of an AdapTableQL expression. The column is not in the grid data source. `ColumnId` is the id of the column AdapTable creates. `CalculatedColumnSettings.DataType` is required. `Type` can be omitted; it is inferred from the expression.
10
+ */
9
11
  export interface CalculatedColumnState extends BaseState {
10
12
  /**
11
- * Collection of Calculated Columns
13
+ * Calculated Columns to add. `ColumnId` is the id of the column AdapTable creates.
12
14
  */
13
15
  CalculatedColumns?: CalculatedColumn[];
14
16
  }
15
17
  /**
16
- * Defines a Column where value is derived from other values in row, and the definition is stored in State
18
+ * A column whose value is an AdapTableQL expression, stored in Adaptable State.
19
+ *
20
+ * `ColumnId` is the id of the new column. `Expression` is required. `CalculatedColumnSettings.DataType` is required and is the type AdapTable uses for filters and expressions. `Type` is optional and is inferred from the expression: a per-row expression is `Standard`, an expression that reads change history is `Observable`, and an aggregation, cumulative, quantile or window expression is evaluated over rows.
17
21
  */
18
22
  export interface CalculatedColumn extends AdaptableObject {
19
23
  /**
20
- * Name of Calculated Column
24
+ * Id of the column AdapTable creates. It is not the id of a column already in the data source.
21
25
  */
22
26
  ColumnId: string;
23
27
  /**
@@ -108,9 +112,7 @@ export declare const supportsCompactExpressionEditor: (calculatedColumn: Pick<Ca
108
112
  * evaluation follows the expression's {@link ExpressionKind} — see
109
113
  * {@link expressionKindForCalculatedColumnType}.
110
114
  *
111
- * Persisted on {@link CalculatedColumn.Type}. When absent (legacy state),
112
- * inferred from {@link CalculatedColumn.Expression} via
113
- * {@link inferCalculatedColumnTypeFromExpression}.
115
+ * Stored on {@link CalculatedColumn.Type}. When `Type` is omitted it is inferred from {@link CalculatedColumn.Expression}.
114
116
  */
115
117
  export type CalculatedColumnType = 'Standard' | 'Observable' | 'Aggregated' | 'Cumulative' | 'Quantile' | 'Window';
116
118
  export declare const CALCULATED_COLUMN_TYPES: readonly CalculatedColumnType[];
@@ -4,8 +4,9 @@ import { BaseState } from './BaseState';
4
4
  export declare const isExternalChartDefinition: (chartDefinition: ChartDefinition | ExternalChartDefinition) => chartDefinition is ExternalChartDefinition;
5
5
  export declare const isAgChartDefinition: (chartDefinition: ChartDefinition | ExternalChartDefinition) => chartDefinition is ChartDefinition;
6
6
  /**
7
- * Wraps external chart definitions
8
- * Can be used to store charts in Adaptable State
7
+ * A chart stored by the application, not an AG Grid chart.
8
+ *
9
+ * Distinguished from {@link ChartDefinition} by `Data` (an AG Grid chart has `Model` instead). `Name` must not match an AG Grid chart name. `IsPersisted` defaults to true, which keeps the chart in Adaptable State.
9
10
  */
10
11
  export interface ExternalChartDefinition<T = unknown> extends AdaptableObject {
11
12
  /**
@@ -23,7 +24,9 @@ export interface ExternalChartDefinition<T = unknown> extends AdaptableObject {
23
24
  IsPersisted?: boolean;
24
25
  }
25
26
  /**
26
- * Wraps an AG Grid Chart Model
27
+ * An AG Grid chart saved in Adaptable State.
28
+ *
29
+ * Distinguished from {@link ExternalChartDefinition} by `Model`. `Name` is unique and is how a layout opens the chart.
27
30
  */
28
31
  export interface ChartDefinition extends AdaptableObject {
29
32
  /**
@@ -36,7 +39,9 @@ export interface ChartDefinition extends AdaptableObject {
36
39
  Model: ChartModel;
37
40
  }
38
41
  /**
39
- * Persists AG Grid Charts in Adaptable State
42
+ * Charting section of Adaptable State, including Initial State.
43
+ *
44
+ * `ChartDefinitions` are AG Grid charts (`Name` + `Model`). `ExternalChartDefinitions` are application charts (`Name` + `Data`). A layout opens a saved chart by name.
40
45
  */
41
46
  export interface ChartingState extends BaseState {
42
47
  /**
@@ -49,6 +54,6 @@ export interface ChartingState extends BaseState {
49
54
  ExternalChartDefinitions?: ExternalChartDefinition<unknown>[];
50
55
  }
51
56
  /**
52
- * Aggregation function used in the Chart
57
+ * Aggregation used when a chart summarises a numeric column: `sum`, `min`, `max`, `count`, `avg`, `first` or `last`.
53
58
  */
54
59
  export type ChartingAggFunc = 'sum' | 'min' | 'max' | 'count' | 'avg' | 'first' | 'last';
@@ -1,16 +1,20 @@
1
1
  import { CellAddress, BaseState } from '../types';
2
2
  import { TypeUuid } from './Uuid';
3
3
  /**
4
- * Internal State used for Comments Module
4
+ * Comment threads for the current session.
5
+ *
6
+ * This section is not persisted and is not part of Initial State. Load threads with `commentOptions.loadCommentThreads` and save them with `commentOptions.persistCommentThreads`.
5
7
  */
6
8
  export interface CommentState extends BaseState {
7
9
  /**
8
- * Collection of AdapTable Comments
10
+ * Comment threads for this session. Each thread belongs to one cell (`PrimaryKeyValue` and `ColumnId`) and holds its `Comments` in order.
9
11
  */
10
12
  CommentThreads?: CommentThread[];
11
13
  }
12
14
  /**
13
- * Comment that can be applied to a Cell in AdapTable
15
+ * One comment in a cell's thread.
16
+ *
17
+ * `Value` is the text. `Timestamp` is when it was written. `Author.UserName` is who wrote it. `Uuid` identifies the comment.
14
18
  */
15
19
  export interface AdaptableComment {
16
20
  /**
@@ -37,7 +41,9 @@ export interface AdaptableComment {
37
41
  AdaptableId?: string;
38
42
  }
39
43
  /**
40
- * Thread of Comments for an Adaptable Cell
44
+ * Every comment on one cell.
45
+ *
46
+ * The cell is `PrimaryKeyValue` plus `ColumnId` (from `CellAddress`). `Comments` is the thread, in order.
41
47
  */
42
48
  export interface CommentThread extends CellAddress {
43
49
  /**
@@ -3,11 +3,15 @@ import { CellDataChangedInfo } from './CellDataChangedInfo';
3
3
  import { AlertDefinition } from '../AlertState';
4
4
  import { RowDataChangedInfo } from './RowDataChangedInfo';
5
5
  /**
6
- * Defines an Alert fired by AdapTable
6
+ * An alert that has fired.
7
+ *
8
+ * This is the runtime alert, not the {@link AlertDefinition} that defines the rule. `alertType` is `'cellChanged'`, `'rowChanged'` or `'generic'`. `header` is the title and `message` is the body. `alertDefinition` is the rule.
7
9
  */
8
10
  export type AdaptableAlert<TData = any> = AdaptableCellChangedAlert<TData> | AdaptableRowChangedAlert<TData> | AdaptableGenericAlert;
9
11
  /**
10
- * Type of AdapTable Alert: generic, cellChange or rowChange
12
+ * Kind of a fired alert: `'generic'`, `'cellChange'` or `'rowChange'`.
13
+ *
14
+ * The `alertType` field on a fired alert uses `'cellChanged'` and `'rowChanged'` for the last two.
11
15
  */
12
16
  export type AdaptableAlertType = 'generic' | 'cellChange' | 'rowChange';
13
17
  /**
@@ -3,7 +3,9 @@ import { Identifiable } from './AdaptableObject';
3
3
  import { AdaptableIcon } from './AdaptableIcon';
4
4
  import { BaseContext } from '../../types';
5
5
  /**
6
- * Defines a Button that appears in numerous places including Adaptable Form
6
+ * A button on a form, alert or toolbar.
7
+ *
8
+ * `label` is the text. `onClick` runs when it is clicked and receives the button and the form or event context. `buttonStyle` and `icon` are optional. `disabled` and `hidden` are functions that return whether the button is disabled or hidden.
7
9
  */
8
10
  export interface AdaptableButton<CONTEXT_TYPE extends BaseContext> extends Identifiable {
9
11
  /**
@@ -7,7 +7,9 @@ import { ColumnFilter } from './ColumnFilter';
7
7
  */
8
8
  export type AdaptableColumnDataType = 'text' | 'number' | 'boolean' | 'date' | 'object' | 'textArray' | 'numberArray' | 'tupleArray' | 'objectArray' | 'groupColumn' | 'unknown';
9
9
  /**
10
- * Column Types recognised by AdapTable; to be set in GridOptions
10
+ * Column types AdapTable assigns.
11
+ *
12
+ * `'calculatedColumn'`, `'freeTextColumn'`, `'actionColumn'` and `'fdc3Column'` mark columns AdapTable created. `'hiddenColumn'` is kept out of the grid. The `pivot*Total` names mark pivot total columns.
11
13
  */
12
14
  export type AdaptableColumnTypeName = 'hiddenColumn' | 'calculatedColumn' | 'freeTextColumn' | 'actionColumn' | 'fdc3Column' | 'pivotAnyTotal' | 'pivotGrandTotal' | 'pivotColumnTotal' | 'pivotAggregationTotal';
13
15
  export declare const HIDDEN_COLUMN_TYPE: AdaptableColumnTypeName;
@@ -212,19 +214,54 @@ export interface AdaptableColumn<TData = any> extends AdaptableColumnBase {
212
214
  /**
213
215
  * Key properties of a Column (used in Layout Editor)
214
216
  */
217
+ /**
218
+ * What a column allows, as shown in the Layout editor.
219
+ *
220
+ * Each flag is read from the column. `true` means that action is available.
221
+ */
215
222
  export interface AdaptableColumnProperties {
223
+ /**
224
+ * Whether the column can be sorted.
225
+ */
216
226
  sortable: boolean;
227
+ /**
228
+ * Whether the column can be filtered.
229
+ */
217
230
  filterable: boolean;
231
+ /**
232
+ * Whether the column can be dragged to a new position.
233
+ */
218
234
  moveable: boolean;
235
+ /**
236
+ * Whether the column can be row-grouped.
237
+ */
219
238
  groupable: boolean;
239
+ /**
240
+ * Whether the column can be used as a pivot column.
241
+ */
220
242
  pivotable: boolean;
243
+ /**
244
+ * Whether the column can show an aggregation.
245
+ */
221
246
  aggregatable: boolean;
222
247
  }
223
248
  /**
224
249
  * Summary of a Column including filters and all unique values
225
250
  */
251
+ /**
252
+ * One column as shown in Column Info: the column, its Column Filter, and the distinct values currently in the grid.
253
+ */
226
254
  export interface AdaptableColumnSummary {
255
+ /**
256
+ * Column this summary describes.
257
+ */
227
258
  column: AdaptableColumn;
259
+ /**
260
+ * Column Filter on this column in the current Layout. Absent when the column is not filtered.
261
+ */
228
262
  columnFilter: ColumnFilter;
263
+ /**
264
+ * Distinct cell values in this column, each with how many rows have that value.
265
+ */
229
266
  uniqueGridCells: UniqueGridCell[];
230
267
  }
@@ -1,6 +1,8 @@
1
1
  import { ColumnFilter } from '../../types';
2
2
  /**
3
- * Current Filters in AdapTable
3
+ * Filters currently applied.
4
+ *
5
+ * `gridFilter` is the Grid Filter expression, absent when there is none. `columnFilters` are the Column Filters in the current layout.
4
6
  */
5
7
  export interface AdaptableFilterState {
6
8
  /**
@@ -2,7 +2,9 @@ import { Identifiable } from './AdaptableObject';
2
2
  import { CellDataChangedInfo } from '../../types';
3
3
  import { FlashingCellDefinition } from '../../../types';
4
4
  /**
5
- * Defines an Alert fired by AdapTable
5
+ * A cell or row that has just flashed.
6
+ *
7
+ * `flashingCellDefinition` is the rule. `cellDataChangedInfo` is the change that triggered it, when there is one. `direction` is `up`, `down` or `neutral`. `flashTarget` is what flashed (cell or row).
6
8
  */
7
9
  export interface AdaptableFlashingCell extends Identifiable {
8
10
  /**
@@ -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
  /**