@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,4 +1,5 @@
1
1
  import { AdaptableIcon } from '../AdaptableState/Common/AdaptableIcon';
2
+ import { AdaptableModule } from '../AdaptableState/Common/Types';
2
3
  import { DateInputOptions } from './DateInputOptions';
3
4
  import { AdaptableObjectTag } from '../AdaptableState/Common/AdaptableObject';
4
5
  import { AdaptableStyle } from '../AdaptableState/Common/AdaptableStyle';
@@ -29,6 +30,10 @@ export interface UserInterfaceOptions<TData = any> {
29
30
  *
30
31
  */
31
32
  dateInputOptions?: DateInputOptions;
33
+ /**
34
+ * Options for the Colour Picker, including which colours to display
35
+ */
36
+ colourPickerOptions?: ColourPickerOptions;
32
37
  /**
33
38
  * Style to set for editable Cells
34
39
  */
@@ -80,7 +85,6 @@ export interface UserInterfaceOptions<TData = any> {
80
85
  /**
81
86
  * Hides confirmation dialog which displays whenever an AdaptableObject is deleted
82
87
  * @defaultValue false
83
- * @noCodeItem
84
88
  */
85
89
  disableDeleteConfirmation?: boolean;
86
90
  /**
@@ -109,7 +113,6 @@ export interface LoadingScreenOptions<TData = any> {
109
113
  /**
110
114
  * Display Loading Screen when AdapTable initialises
111
115
  * @defaultValue true
112
- * @noCodeItem
113
116
  */
114
117
  showLoadingScreen?: boolean;
115
118
  /**
@@ -130,6 +133,88 @@ export interface LoadingScreenOptions<TData = any> {
130
133
  */
131
134
  loadingScreenText?: string;
132
135
  }
136
+ /**
137
+ * Options for the Colour Picker.
138
+ */
139
+ export interface ColourPickerOptions {
140
+ /**
141
+ * Colour Picker tabs to display in order provided; `Custom`, `Palette`, or both
142
+ *
143
+ * @defaultValue ['Custom', 'Palette']
144
+ */
145
+ tabs?: ColourPickerTab[];
146
+ /**
147
+ * Orders Palette swatches around the colour wheel; if `false`, each colour stays the order supplied
148
+ *
149
+ * @defaultValue true
150
+ */
151
+ orderPaletteColours?: boolean;
152
+ /**
153
+ * Leave out duplicates of swatches already displayed
154
+ *
155
+ * @defaultValue true
156
+ */
157
+ removeDuplicates?: boolean;
158
+ /**
159
+ * Chooses which of the supplied colours (theme & colour palette) the Palette tab shows
160
+ */
161
+ filterColours?: (context: ColourPickerFilterContext) => ColourPickerFilterResult | void;
162
+ /**
163
+ * Show **Theme** and **Palette** headings on the Palette tab (if both have colours)
164
+ *
165
+ * @defaultValue false
166
+ */
167
+ showGroupLabels?: boolean;
168
+ }
169
+ /**
170
+ * Colour Picker tabs: `Custom` is free colour picker, `Palette` is list of swatches
171
+ */
172
+ export type ColourPickerTab = 'Custom' | 'Palette';
173
+ /**
174
+ * A colour the Colour Picker can offer. `value` is what gets stored
175
+ */
176
+ export interface ColourPickerColour {
177
+ /**
178
+ * The CSS value that gets stored, e.g. `var(--ab-color-success)`.
179
+ */
180
+ value: string;
181
+ /** The name shown for the colour, e.g. "Success" or "Palette 3". */
182
+ label: string;
183
+ /**
184
+ * The colour as the active theme paints it
185
+ */
186
+ hex?: string;
187
+ }
188
+ /**
189
+ * Colours available when Colour Picker opens, and module being edited.
190
+ */
191
+ export interface ColourPickerFilterContext {
192
+ /**
193
+ * Available Theme colours
194
+ */
195
+ themeColours: ColourPickerColour[];
196
+ /**
197
+ * Available Palette colours
198
+ */
199
+ paletteColours: ColourPickerColour[];
200
+ /**
201
+ * Module being edited
202
+ */
203
+ module?: AdaptableModule;
204
+ }
205
+ /**
206
+ * Colours to show - must be in list provided (otherwise ignored)
207
+ */
208
+ export interface ColourPickerFilterResult {
209
+ /**
210
+ * Theme colours to keep. A colour not in the supplied list is ignored.
211
+ */
212
+ themeColours: ColourPickerColour[];
213
+ /**
214
+ * Palette colours to keep. A colour not in the supplied list is ignored.
215
+ */
216
+ paletteColours: ColourPickerColour[];
217
+ }
133
218
  /**
134
219
  * Context used when evaluating Object Tags
135
220
  */
@@ -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
  /**