@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
@@ -22,20 +22,56 @@ import { CompactCalculatedColumnEditorInfo } from './Common/CompactCalculatedCol
22
22
  import type { QlGroup } from "../../vendor/aql/index.js";
23
23
  export type { IPushPullReport, IPushPullDomain };
24
24
  export type { OpenFinReport };
25
+ /**
26
+ * Whether Data Change History is recording.
27
+ *
28
+ * `'ACTIVE'` records edits. `'SUSPENDED'` pauses recording and keeps the log. `'INACTIVE'` is off.
29
+ */
25
30
  export type DataChangeHistoryMode = 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
31
+ /**
32
+ * A pinned summary row AdapTable is showing this session.
33
+ *
34
+ * `Position` is the edge. `RowData` is the cell values, keyed by column id.
35
+ */
26
36
  export type SystemRowSummary = {
37
+ /**
38
+ * Which edge the summary row is pinned to.
39
+ */
27
40
  Position: 'Top' | 'Bottom';
41
+ /**
42
+ * Cell values, keyed by column id.
43
+ */
28
44
  RowData: Record<string, any>;
29
45
  };
30
46
  /**
31
- * Internal state, used by Adaptable during a session; none of it is provided through Initial Adaptable State, nor is it persisted
47
+ * Session state AdapTable keeps while the grid is open.
48
+ *
49
+ * Nothing here is part of Initial State, and none of it is persisted. It records the current selection, open editors, highlights, the export in progress, and similar runtime data.
32
50
  */
33
51
  export interface InternalState extends IPushPullState, OpenFinState {
52
+ /**
53
+ * AdapTable's column model for this session.
54
+ */
34
55
  Columns: AdaptableColumn[];
56
+ /**
57
+ * Cells selected in the grid.
58
+ */
35
59
  SelectedCellInfo: SelectedCellInfo;
60
+ /**
61
+ * Rows selected in the grid.
62
+ */
36
63
  SelectedRowInfo: SelectedRowInfo;
64
+ /**
65
+ * Cells currently highlighted.
66
+ */
37
67
  CellHighlightInfo: CellHighlightInfo[];
68
+ /**
69
+ * Columns currently highlighted.
70
+ */
38
71
  ColumnHighlightInfo: ColumnHighlightInfo[];
72
+ /**
73
+ * Rows currently highlighted.
74
+ */
39
75
  RowHighlightInfo: RowHighlightInfo[];
40
76
  /**
41
77
  * Active Excel-style formula trace for a calculated column cell (session-only)
@@ -45,56 +81,149 @@ export interface InternalState extends IPushPullState, OpenFinState {
45
81
  * Compact live expression editor for a Standard Calculated Column (session-only)
46
82
  */
47
83
  CompactCalculatedColumnEditorInfo?: CompactCalculatedColumnEditorInfo;
84
+ /**
85
+ * Modules listed in the Settings Panel.
86
+ */
48
87
  SettingsPanelModuleEntries: AdaptableMenuItem[];
88
+ /**
89
+ * Alerts currently held in the alert store.
90
+ */
49
91
  AdaptableAlerts: AdaptableAlert[];
92
+ /**
93
+ * System status messages currently shown.
94
+ */
50
95
  SystemStatusMessages: SystemStatusMessageInfo[];
96
+ /**
97
+ * Dashboard buttons for this session, and a counter that increments when the Dashboard is refreshed.
98
+ */
51
99
  Dashboard: {
100
+ /**
101
+ * Module buttons currently rendered in the Dashboard.
102
+ */
52
103
  DashboardModuleButtons: AdaptableMenuItem[];
104
+ /**
105
+ * Increments when the Dashboard is refreshed, so the UI rebuilds.
106
+ */
53
107
  DashboardRevision: number;
54
108
  };
109
+ /**
110
+ * Smart Edit form for this session: whether the selection can be edited, the operation, and a preview of the result.
111
+ */
55
112
  SmartEdit: {
113
+ /**
114
+ * Whether the current selection can be smart-edited.
115
+ */
56
116
  IsValidSmartEditSelection: boolean;
57
117
  /** Warning shown inline in the Smart Edit panel when the current selection is not valid. */
58
118
  Alert?: AdaptableAlert | null;
119
+ /**
120
+ * Preview of the edit that will be applied.
121
+ */
59
122
  SmartEditPreviewInfo: PreviewInfo;
123
+ /**
124
+ * Number used as the second operand.
125
+ */
60
126
  SmartEditValue?: number;
127
+ /**
128
+ * Operation applied to each selected cell.
129
+ */
61
130
  SmartEditOperation?: SmartEditOperation;
62
131
  };
132
+ /**
133
+ * Bulk Update form for this session: the value, whether it is valid, and a preview of the result.
134
+ */
63
135
  BulkUpdate: {
136
+ /**
137
+ * Whether the selection can be bulk-updated. `IsValid` is the result. `Alert` is the warning when it cannot, and `Column` is the column that was checked.
138
+ */
64
139
  BulkUpdateValidationResult: BulkUpdateValidationResult;
140
+ /**
141
+ * Preview of the update that will be applied.
142
+ */
65
143
  BulkUpdatePreviewInfo: PreviewInfo;
144
+ /**
145
+ * Value typed into the Bulk Update form.
146
+ */
66
147
  BulkUpdateValue?: string;
67
148
  };
149
+ /**
150
+ * Grid Filter expressions applied this session, so the editor can offer them again.
151
+ */
68
152
  CachedQueries: CachedQuery[];
153
+ /**
154
+ * Cell summary currently shown for the selection.
155
+ */
69
156
  CellSummary: {
157
+ /**
158
+ * Operation being calculated, such as sum or average.
159
+ */
70
160
  CellSummaryOperation?: SummaryOperation | string;
161
+ /**
162
+ * Result of that operation.
163
+ */
71
164
  CellSummaryInfo: CellSummmaryInfo;
72
165
  };
166
+ /**
167
+ * Licence result for this session.
168
+ */
73
169
  License: {
170
+ /**
171
+ * Whether a watermark is shown, and its text.
172
+ */
74
173
  watermark: {
75
174
  show: boolean;
76
175
  text: string;
77
176
  };
177
+ /**
178
+ * When true, AdapTable does not persist state for this session.
179
+ */
78
180
  disablePersistence: boolean;
79
181
  };
182
+ /**
183
+ * Data Change History log and whether recording is on, paused or off.
184
+ */
80
185
  DataChangeHistory: {
186
+ /**
187
+ * Recorded cell changes, keyed by an id AdapTable assigns.
188
+ */
81
189
  logs: Record<string, CellDataChangedInfo>;
190
+ /**
191
+ * `'ACTIVE'` records, `'SUSPENDED'` pauses and keeps the log, `'INACTIVE'` is off and clears the log.
192
+ */
82
193
  currentMode: DataChangeHistoryMode;
194
+ /**
195
+ * When recording was last turned on. Null while history is inactive.
196
+ */
83
197
  enableTime: Date;
198
+ /**
199
+ * When recording was last paused. Null while history is active or inactive.
200
+ */
84
201
  suspendTime: Date;
85
202
  };
203
+ /**
204
+ * Position and size of Settings Panel windows, keyed by window kind (settings, edit).
205
+ */
86
206
  SettingsPanel: {
87
207
  [key: string]: {
208
+ /**
209
+ * Pixel position of the window.
210
+ */
88
211
  position: {
89
212
  x: number;
90
213
  y: number;
91
214
  };
215
+ /**
216
+ * Pixel size of the window.
217
+ */
92
218
  size: {
93
219
  width: number;
94
220
  height: number;
95
221
  };
96
222
  };
97
223
  };
224
+ /**
225
+ * Whether the column quick-filter bar is visible.
226
+ */
98
227
  IsQuickFilterVisible: boolean;
99
228
  /**
100
229
  * Transient per-column drafts of the ColumnFilter editors, keyed by
@@ -107,18 +236,30 @@ export interface InternalState extends IPushPullState, OpenFinState {
107
236
  * (see the `LAYOUT_COLUMN_FILTER_*` cases in `InternalRedux`).
108
237
  */
109
238
  ColumnFilterDrafts: Record<string, QlGroup>;
239
+ /**
240
+ * Name of the data set currently selected. Empty when none is selected.
241
+ */
110
242
  CurrentDataSet: string;
111
243
  /**
112
- * Chart Models are saved here for every chart event, so we can listen to chart-model changes without directly listening to AG Grid events
244
+ * Charts open this session. Updated on chart events so AdapTable can follow model changes.
113
245
  */
114
246
  Charting: {
247
+ /**
248
+ * Latest AG Grid chart models.
249
+ */
115
250
  currentChartModels: ChartModel[];
251
+ /**
252
+ * External charts open this session.
253
+ */
116
254
  externalChartingDefinitions: ExternalChartDefinition<unknown>[];
117
255
  };
118
256
  /**
119
- * Keeps session-relevant information for Layout
257
+ * Layout UI flags for this session.
120
258
  */
121
259
  Layout: {
260
+ /**
261
+ * When true, module lists include objects that are not extended into the current layout.
262
+ */
122
263
  showLayoutNonExtendedObjects: boolean;
123
264
  };
124
265
  /**
@@ -126,22 +267,61 @@ export interface InternalState extends IPushPullState, OpenFinState {
126
267
  * It will suppress the deletion confirmation dialog in the current session.
127
268
  */
128
269
  DisableDeleteConfirmation: boolean;
270
+ /**
271
+ * Export that has started and not yet finished. Absent when no export is running.
272
+ */
129
273
  Export: {
274
+ /**
275
+ * Report, format and destination of the export that is running.
276
+ */
130
277
  inProgress?: {
278
+ /**
279
+ * Report being exported.
280
+ */
131
281
  reportName: ReportNameType;
282
+ /**
283
+ * Format being written.
284
+ */
132
285
  reportFormat: ReportFormatType;
286
+ /**
287
+ * Where the export is being sent.
288
+ */
133
289
  exportDestination: ExportDestinationType;
134
290
  };
135
291
  };
292
+ /**
293
+ * Floating Quick Search for this session.
294
+ */
136
295
  QuickSearch?: {
296
+ /**
297
+ * Whether the floating Quick Search is open.
298
+ */
137
299
  floatingVisible?: boolean;
138
300
  };
301
+ /**
302
+ * In-cell comment editor, when it is open.
303
+ */
139
304
  CommentPopup?: {
305
+ /**
306
+ * When true, the popup is editing the thread. When false, it is showing the thread.
307
+ */
140
308
  editMode?: boolean;
309
+ /**
310
+ * Entity the popup is editing. The only value is `'Comment'`.
311
+ */
141
312
  focusedEntity?: 'Comment';
313
+ /**
314
+ * Cell the popup is anchored to. Null when it is not anchored.
315
+ */
142
316
  popupPosition?: CellAddress | null;
143
317
  };
318
+ /**
319
+ * Summary rows AdapTable is showing this session.
320
+ */
144
321
  RowSummary?: {
322
+ /**
323
+ * Pinned summary rows and the edge each one uses.
324
+ */
145
325
  rowSummaries?: SystemRowSummary[];
146
326
  };
147
327
  }
@@ -9,7 +9,9 @@ import { NonEmptyArray } from '../Utilities/Extensions/ArrayExtensions';
9
9
  import { XOR } from '../Utilities/Extensions/TypeExtensions';
10
10
  import { GroupSelectionMode, SelectAllMode } from 'ag-grid-enterprise';
11
11
  /**
12
- * Base Layout Type - Pivot or Table
12
+ * One named view of the grid: a {@link TableLayout} or a {@link PivotLayout}.
13
+ *
14
+ * A table layout lists its columns in `TableColumns`. A pivot layout lists its pivot columns in `PivotColumns` (an empty array when it only shows aggregations). The other layout's fields are typed `never` and must be left unset. `Layouts` must contain at least one layout. `CurrentLayout` selects one by `Name`; when it is omitted the first layout is used.
13
15
  */
14
16
  export type Layout = TableLayout | PivotLayout;
15
17
  /**
@@ -17,7 +19,9 @@ export type Layout = TableLayout | PivotLayout;
17
19
  */
18
20
  export type LayoutArray = NonEmptyArray<Layout>;
19
21
  /**
20
- * Adaptable State Section for Layout Module, containing collection of Layouts and name of Current Layout
22
+ * Layout section of Adaptable State, including Initial State.
23
+ *
24
+ * `Layouts` is a non-empty list of table and pivot layouts. `CurrentLayout` is the `Name` loaded at startup; when omitted, the first layout is used. `LayoutExtensions` is how objects from other modules (Format Columns, Styled Columns, and so on) apply only in named layouts.
21
25
  */
22
26
  export interface LayoutState extends BaseState {
23
27
  /**
@@ -38,7 +42,9 @@ export interface LayoutState extends BaseState {
38
42
  */
39
43
  export type RowGroupDisplayType = 'single' | 'multi' | 'groupRows';
40
44
  /**
41
- * Base object for both Table and Pivot Layouts
45
+ * Fields shared by a table layout and a pivot layout.
46
+ *
47
+ * `Name` is required and is how `CurrentLayout` selects the layout. Sorts, filters, pinning, sizing, charts to open and row selection live here. The column list lives on {@link TableLayout} or {@link PivotLayout}.
42
48
  */
43
49
  export interface LayoutBase extends AdaptableObject {
44
50
  /**
@@ -78,7 +84,7 @@ export interface LayoutBase extends AdaptableObject {
78
84
  */
79
85
  GridFilter?: GridFilter;
80
86
  /**
81
- * Details of which Columns are pinned
87
+ * Columns pinned to an edge. Each entry is a column id set to `'left'` or `'right'`. Columns absent from the map are not pinned.
82
88
  */
83
89
  ColumnPinning?: ColumnDirectionMap;
84
90
  /**
@@ -94,7 +100,9 @@ export interface LayoutBase extends AdaptableObject {
94
100
  */
95
101
  RowSelection?: LayoutRowSelection | false;
96
102
  /**
97
- * Position of the Grand Total Row in the Layout
103
+ * Where the grand total row is shown.
104
+ *
105
+ * `'top'`, `'bottom'`, `'pinnedTop'` or `'pinnedBottom'`. `true` is the same as `'top'`. `false`, or omitting the property, turns the grand total row off.
98
106
  */
99
107
  GrandTotalRow?: 'top' | 'bottom' | 'pinnedTop' | 'pinnedBottom' | boolean;
100
108
  /**
@@ -103,15 +111,17 @@ export interface LayoutBase extends AdaptableObject {
103
111
  RowGroupDisplayType?: RowGroupDisplayType;
104
112
  }
105
113
  /**
106
- * Defines a Table-based Layout
114
+ * A table layout.
115
+ *
116
+ * `TableColumns` is required and is the column order. Row groups use `RowGroupedColumns`. Aggregations in grouped rows use `TableAggregationColumns`. Leave `PivotColumns`, `PivotGroupedColumns`, `PivotExpandLevel` and `PivotAggregationColumns` unset.
107
117
  */
108
118
  export interface TableLayout extends LayoutBase {
109
119
  /**
110
- * List of Column Ids to include in Table Layout
120
+ * Column ids in this layout, in display order. Required.
111
121
  */
112
122
  TableColumns: string[];
113
123
  /**
114
- * Map of Table Column Visibility
124
+ * Columns to hide. Each entry is a column id set to `false`. Columns absent from the map stay visible.
115
125
  */
116
126
  ColumnVisibility?: ColumnBooleanFalseMap;
117
127
  /**
@@ -144,7 +154,9 @@ export interface TableLayout extends LayoutBase {
144
154
  PivotAggregationColumns?: never;
145
155
  }
146
156
  /**
147
- * Defines a Pivot-based Layout
157
+ * A pivot layout.
158
+ *
159
+ * `PivotColumns` is required. Pass an empty array when the layout only shows aggregations. Row groups use `PivotGroupedColumns`. Aggregations use `PivotAggregationColumns`. Leave `TableColumns`, `TableAggregationColumns` and `RowGroupedColumns` unset.
148
160
  */
149
161
  export interface PivotLayout extends LayoutBase {
150
162
  /**
@@ -189,11 +201,15 @@ export interface PivotLayout extends LayoutBase {
189
201
  PivotResultColumnsOrder?: string[] | boolean;
190
202
  }
191
203
  /**
192
- * Defines the position of Pivot Total position - 'before' or 'after' the Value Column(s)
204
+ * Where a pivot total is drawn relative to the value columns.
205
+ *
206
+ * `'before'` and `true` place it before the value columns. `'after'` places it after them. `false`, or omitting the property on {@link PivotLayout.PivotGrandTotal} or {@link PivotLayout.PivotColumnTotal}, turns that total off.
193
207
  */
194
208
  export type PivotTotalPosition = 'before' | 'after' | boolean;
195
209
  /**
196
- * Manages Row Group expand / collapse behaviour, including exceptions
210
+ * Which row groups are expanded when the layout is applied.
211
+ *
212
+ * `'always-expanded'` and `'always-collapsed'` apply to every group and take no exception list. `'expanded'` and `'collapsed'` do the same except for the group-key paths listed in {@link GroupKeys}.
197
213
  */
198
214
  export type RowGroupValues = {
199
215
  RowGroupDefaultBehavior: 'always-expanded' | 'always-collapsed';
@@ -218,15 +234,17 @@ export type RowGroupValuesWithExceptionKeys = {
218
234
  GroupKeys?: GroupKeys[];
219
235
  }>;
220
236
  /**
221
- * Enables setting Row Group behaviour with exceptions
237
+ * Expand and collapse exceptions for one set of row-grouped columns.
238
+ *
239
+ * AdapTable uses the entry whose `RowGroupedColumns` match the layout's current row-grouped columns. `ExceptionGroupKeys` are the group-key paths that do the opposite of `RowGroupDefaultBehavior`: collapsed when the default is `'expanded'`, expanded when the default is `'collapsed'`.
222
240
  */
223
241
  export interface GroupKeys {
224
242
  /**
225
- * Columns that are Row Grouped
243
+ * Row-grouped column ids this exception list applies to. Matched against the layout's current row-grouped columns.
226
244
  */
227
245
  RowGroupedColumns: string[];
228
246
  /**
229
- * Exceptions to default behaviour, provided as array or arrays
247
+ * Group-key paths that do the opposite of `RowGroupDefaultBehavior`. Each inner array is one path from the top group down.
230
248
  */
231
249
  ExceptionGroupKeys?: any[][];
232
250
  }
@@ -250,31 +268,31 @@ export type ColumnGroupValuesWithExceptionKeys = {
250
268
  ExceptionGroupKeys?: any[];
251
269
  };
252
270
  /**
253
- * Defines a map of Columns with Sizing information
271
+ * Column ids mapped to a width or a flex factor. Set `Width` or `Flex` on each entry, not both.
254
272
  */
255
273
  export type ColumnSizingMap = {
256
274
  [columnId: string]: ColumnSizingDefinition;
257
275
  };
258
276
  /**
259
- * Defines a map of Columns with a String value
277
+ * Column ids mapped to a string. Used by `ColumnHeaders` for a custom header. A column absent from the map keeps its own header.
260
278
  */
261
279
  export type ColumnStringMap = {
262
280
  [columnId: string]: string;
263
281
  };
264
282
  /**
265
- * Defines a map of Columns with a Number value
283
+ * Column ids mapped to a number.
266
284
  */
267
285
  export type ColumnNumberMap = {
268
286
  [columnId: string]: number;
269
287
  };
270
288
  /**
271
- * Defines a map of Columns with a Boolean value
289
+ * Column ids mapped to `false`. Used by {@link TableLayout.ColumnVisibility} to list hidden columns. A column id cannot be mapped to `true`.
272
290
  */
273
291
  export type ColumnBooleanFalseMap = {
274
292
  [columnId: string]: false;
275
293
  };
276
294
  /**
277
- * Defines a map of Columns with a Left / Right direction value
295
+ * Column ids mapped to a pin edge. `'left'` pins to the left, `'right'` to the right.
278
296
  */
279
297
  export type ColumnDirectionMap = {
280
298
  [columnId: string]: 'left' | 'right';
@@ -283,18 +301,41 @@ export type ColumnDirectionMap = {
283
301
  * State & behaviour for column sizing (must set `width` or `flex` but not both); all other props optional
284
302
  */
285
303
  export type ColumnSizingDefinition = ({
304
+ /**
305
+ * Column width in pixels. Do not set `Flex` on the same column.
306
+ */
286
307
  Width?: number;
308
+ /**
309
+ * Not set when `Width` is set. A column is either fixed-width or flex.
310
+ */
287
311
  Flex?: never;
288
312
  } | {
313
+ /**
314
+ * Flex grow factor, as in AG Grid `flex`. Do not set `Width` on the same column.
315
+ */
289
316
  Flex?: number;
317
+ /**
318
+ * Not set when `Flex` is set. A column is either fixed-width or flex.
319
+ */
290
320
  Width?: never;
291
321
  }) & {
322
+ /**
323
+ * Whether the user can drag the column edge to resize it.
324
+ */
292
325
  Resizable?: boolean;
326
+ /**
327
+ * Smallest width in pixels the column can be resized to.
328
+ */
293
329
  MinWidth?: number;
330
+ /**
331
+ * Largest width in pixels the column can be resized to.
332
+ */
294
333
  MaxWidth?: number;
295
334
  };
296
335
  /**
297
- * Defines Row Selection behaviour in a Layout
336
+ * Row selection for one layout, set on {@link LayoutBase.RowSelection}.
337
+ *
338
+ * `Mode` is `'singleRow'` or `'multiRow'`. Omit `RowSelection` to keep `gridOptions.rowSelection`. Set `RowSelection` to `false` to turn selection off for that layout.
298
339
  */
299
340
  export interface LayoutRowSelection {
300
341
  /**
@@ -335,7 +376,9 @@ export interface LayoutRowSelection {
335
376
  EnableClickSelection?: boolean | 'enableDeselection' | 'enableSelection';
336
377
  }
337
378
  /**
338
- * The OLD Layout - kept temporarily so we can check what we previously had
379
+ * Stored layout shape that current layouts do not use.
380
+ *
381
+ * Author `TableLayout` or `PivotLayout`. This interface is not part of Initial State.
339
382
  */
340
383
  export interface LayoutOld extends AdaptableObject {
341
384
  Name: string;
@@ -1,11 +1,13 @@
1
1
  import { BaseState } from './BaseState';
2
2
  import { AdaptableObject } from './Common/AdaptableObject';
3
3
  /**
4
- * Adaptable State Section for Named Query Module
4
+ * Named Query section of Adaptable State, including Initial State.
5
+ *
6
+ * Each query is a scalar AdapTableQL expression other expressions can call with `QUERY('Name')`. Aggregations are not allowed. `ReturnType` defaults to `'boolean'`, which can be used as a Grid Filter or Alert rule.
5
7
  */
6
8
  export interface NamedQueryState extends BaseState {
7
9
  /**
8
- * Named Queries which can be referenced in other Expressions
10
+ * Named Queries other expressions can reference with `QUERY('Name')`.
9
11
  */
10
12
  NamedQueries?: NamedQuery[];
11
13
  }
@@ -32,13 +34,23 @@ export interface NamedQuery extends AdaptableObject {
32
34
  */
33
35
  Description?: string;
34
36
  /**
35
- * Declared return type of the Expression.
36
- * Defaults to `'boolean'` when omitted (preserves legacy InitialState).
37
+ * Return type of the expression. When omitted, the query is treated as `'boolean'` and can be used as a Grid Filter or Alert rule.
37
38
  */
38
39
  ReturnType?: NamedQueryReturnType;
39
40
  }
41
+ /**
42
+ * A Grid Filter expression kept for this session so it can be offered again in the editor.
43
+ *
44
+ * Session state only. It is not part of Initial State and it is not persisted.
45
+ */
40
46
  export interface CachedQuery {
47
+ /**
48
+ * Expression text that was applied.
49
+ */
41
50
  expression: string;
51
+ /**
52
+ * When the expression was applied.
53
+ */
42
54
  time: Date;
43
55
  }
44
56
  /**
@@ -2,16 +2,20 @@ import { AdaptableObject } from '../types';
2
2
  import { BaseState } from './BaseState';
3
3
  import { AdaptableMessageType } from './Common/AdaptableMessageType';
4
4
  /**
5
- * Adaptable State Section for Note Module
5
+ * Note section of Adaptable State, including Initial State.
6
+ *
7
+ * A Note is one piece of text on one cell, located by `PrimaryKeyValue` and `ColumnId`. It is separate from a Comment thread and from a Free Text Column. `NoteType` defaults to `'Info'` and colours the cell indicator.
6
8
  */
7
9
  export interface NoteState extends BaseState {
8
10
  /**
9
- * Collection of AdapTable Notes
11
+ * Notes to show. One note occupies one cell.
10
12
  */
11
13
  Notes?: AdaptableNotes;
12
14
  }
13
15
  /**
14
- * Note that can be applied to a Cell in AdapTable
16
+ * One piece of text attached to one cell.
17
+ *
18
+ * `PrimaryKeyValue` and `ColumnId` locate the cell. `Text` is the note. `NoteType` colours the indicator and defaults to `'Info'`.
15
19
  */
16
20
  export interface AdaptableNote extends AdaptableObject {
17
21
  /**
@@ -1,14 +1,24 @@
1
1
  import { BaseState } from './BaseState';
2
2
  import { AdaptableObject } from './Common/AdaptableObject';
3
3
  /**
4
- * Internal State used by AdapTable for managing the OpenFin plugin
4
+ * OpenFin session state.
5
+ *
6
+ * Held under transient `Plugins` state for the current session. It is not part of Initial State and it is not persisted.
5
7
  */
6
8
  export interface OpenFinState extends BaseState {
9
+ /**
10
+ * Report currently streaming to OpenFin. Absent when live data is stopped.
11
+ */
7
12
  CurrentLiveOpenFinReport?: OpenFinReport;
13
+ /**
14
+ * Report name selected in the OpenFin UI.
15
+ */
8
16
  OpenFinCurrentReportName?: string;
9
17
  }
10
18
  /**
11
- * An OpenFin report
19
+ * A report streaming to OpenFin.
20
+ *
21
+ * `ReportName` is a report in Export state.
12
22
  */
13
23
  export interface OpenFinReport extends AdaptableObject {
14
24
  /**
@@ -2,16 +2,20 @@ import { BaseState } from './BaseState';
2
2
  import { ColumnScope, NumberScopeDataType } from './Common/ColumnScope';
3
3
  import { SuspendableObject } from '../types';
4
4
  /**
5
- * Adaptable State Section for Plus Minus Module
5
+ * Plus Minus section of Adaptable State, including Initial State.
6
+ *
7
+ * Each nudge adds or subtracts `NudgeValue` from numeric cells in `Scope`. The increment key adds `NudgeValue`; the decrement key subtracts it. A nudge's own keys override `plusMinusOptions`, which override the default `+` and `-` keys.
6
8
  */
7
9
  export interface PlusMinusState extends BaseState {
8
10
  /**
9
- * Array of Plus Minus Nudges
11
+ * Nudges to apply. Each one names numeric columns, the amount, and optional keys.
10
12
  */
11
13
  PlusMinusNudges?: PlusMinusNudge[];
12
14
  }
13
15
  /**
14
- * Defines a Plus Minus Rule - used in the Plus Minus Module
16
+ * Adds or subtracts a fixed amount from numeric cells.
17
+ *
18
+ * `Scope` is numeric columns only. The increment key sets the cell to its current value plus `NudgeValue`; the decrement key subtracts `NudgeValue`. Omit `Rule` to apply the nudge on every row in scope. Suspend with `IsSuspended`.
15
19
  */
16
20
  export interface PlusMinusNudge extends SuspendableObject {
17
21
  /**
@@ -23,7 +27,7 @@ export interface PlusMinusNudge extends SuspendableObject {
23
27
  */
24
28
  Scope: ColumnScope<NumberScopeDataType>;
25
29
  /**
26
- * Amount by which to update cell when Rule is applied
30
+ * Amount added by the increment key and subtracted by the decrement key.
27
31
  */
28
32
  NudgeValue: number;
29
33
  /**