@adaptabletools/adaptable 24.0.0-canary.8 → 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 (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 +17 -8
  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
@@ -36,229 +36,257 @@ import { ContextMenuOptions } from './ContextMenuOptions';
36
36
  import { FilterOptions } from './FilterOptions';
37
37
  import { RowFormOptions } from './RowFormOptions';
38
38
  /**
39
- * Large group of options enabling developers to set up AdapTable at design time to fit precise requirements
39
+ * Design-time configuration for one AdapTable instance.
40
+ *
41
+ * These options are fixed by the application. Objects the user can change and that are persisted (Layouts, Alerts, Format Columns, Calculated Columns and the other module objects) belong in {@link initialState}, not here.
42
+ *
43
+ * `primaryKey` and `initialState` are required. Every `*Options` property is optional: omit it to keep that module's defaults.
40
44
  */
41
45
  export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
42
46
  /**
43
- * Identifier for this instance of AdapTable
47
+ * Identifies this grid when more than one AdapTable is on the page.
48
+ *
49
+ * Also the default key under which state is stored, unless {@link adaptableStateKey} is set. A generated id (`adaptable_id_` plus a random number) is used when this is omitted, so state will not survive a reload.
44
50
  *
45
51
  * @defaultValue 'adaptable_id_${random_number}'
46
- * @noCodeItem
47
52
  */
48
53
  adaptableId?: string;
49
54
  /**
50
- * Identifier used as localStorage persistence key for AdaptableState
55
+ * Key under which this grid's state is stored, instead of {@link adaptableId}.
56
+ *
57
+ * Set it when several grids should share one state, or when the storage key should change without changing `adaptableId`. {@link initialState} is applied only when nothing is already stored under this key.
51
58
  *
52
59
  * @defaultValue `adaptableId` value
53
60
  */
54
61
  adaptableStateKey?: string;
55
62
  /**
56
- * Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities
63
+ * Invents a primary key when the data has no unique column.
64
+ *
65
+ * Use it only as a last resort. Notes, comments, data-change history and row identity then cannot follow a real business key, and some of those features are limited.
57
66
  *
58
67
  * @defaultValue false
59
68
  */
60
69
  autogeneratePrimaryKey?: boolean;
61
70
  /**
62
- * Commercial license key. If the license is not provided or is expired, various visual information notes will be displayed and some functionality may be limited.
71
+ * Commercial licence key.
72
+ *
73
+ * Without a current licence, AdapTable shows licence notices and limits some functionality.
63
74
  */
64
75
  licenseKey?: string;
65
76
  /**
66
- * Application-specific context object - is included by AdapTable in all callbacks and Events
77
+ * Values from the host application, passed into every callback and event as `adaptableContext`.
78
+ *
79
+ * Use it for things the grid should see but not store, such as the current user, permissions or a service. It is not persisted.
67
80
  *
68
81
  * @defaultValue {}
69
82
  */
70
83
  adaptableContext?: TContext;
71
84
  /**
72
- * Initial State set at design-time and shipped with AdapTable for first use; must include at least one Layout
85
+ * Objects shipped with the grid for its first run: at least one Layout, plus any Alerts, Format Columns, Calculated Columns and other module objects.
86
+ *
87
+ * Applied only when no state is already stored for this grid. After that, the stored state is used and later edits to `initialState` are ignored until that stored state is cleared or the state key changes.
73
88
  *
74
89
  * @defaultValue undefined
75
90
  */
76
91
  initialState: InitialState;
77
92
  /**
78
- * Name of Column in AdapTable guaranteed to contain unique values
93
+ * Column whose values uniquely identify a row. Required.
94
+ *
95
+ * AdapTable uses it to find a row for edits, notes, comments, alerts, history and row forms. The values must be unique.
79
96
  *
80
97
  * @defaultValue n/a (Mandatory)
81
98
  */
82
99
  primaryKey: string;
83
100
  /**
84
- * Name of current AdapTable user
101
+ * Name of the person using this grid.
102
+ *
103
+ * Stamped on Notes and Comments when the author is not supplied, and shown where Team Sharing records who shared an object.
85
104
  *
86
105
  * @defaultValue 'anonymous'
87
106
  */
88
107
  userName?: string;
89
108
  /**
90
- * Options for managing Action Columns
109
+ * Action Columns: columns of buttons, menus, toggles and other controls that run an action on the row.
110
+ *
111
+ * The columns themselves are supplied here. They are not part of Initial State.
91
112
  */
92
113
  actionColumnOptions?: ActionColumnOptions<TData>;
93
114
  /**
94
- * Options for managing Alerts in AdapTable
115
+ * How fired alerts behave: how many are kept, how long a cell or row stays highlighted, and the text shown when an alert fires.
95
116
  *
96
- * @noCodeContainer
117
+ * The Alert Definitions themselves (the rules) belong in Initial State.
97
118
  */
98
119
  alertOptions?: AlertOptions<TData>;
99
120
  /**
100
- * Options for managing Holidays and Working Days
121
+ * Which days are working days. Weekend days and holidays are excluded from working-day expression functions.
101
122
  */
102
123
  calendarOptions?: CalendarOptions;
103
124
  /**
104
- * Options for adding custom Cell Summaries
125
+ * Extra summary operations for the selected cells, beyond the ones AdapTable ships (sum, average and the rest), and how the result is formatted.
105
126
  */
106
127
  cellSummaryOptions?: CellSummaryOptions<TData>;
107
128
  /**
108
- * Options for managing AG Grid's Charting
109
- * @noCodeContainer
129
+ * Saving and reopening AG Grid charts, which containers they open in, and external (non-AG Grid) charts.
130
+ *
131
+ * Chart definitions the user saves are stored in state. These options control that behaviour.
110
132
  */
111
133
  chartingOptions?: ChartingOptions;
112
134
  /**
113
- * Options related to Columns
114
- * @noCodeContainer
135
+ * Column captions and friendly names, column types used by Column Scope, and whether a missing column is logged.
115
136
  */
116
137
  columnOptions?: ColumnOptions;
117
138
  /**
118
- * Options for managing AdapTable Column Menu
119
- *
139
+ * Replaces or extends the menu opened from a column header. The callback receives AdapTable's default items.
120
140
  */
121
141
  columnMenuOptions?: ColumnMenuOptions<TData>;
122
142
  /**
123
- * Options for managing collaborative Comments
143
+ * Comments on cells: which cells can be commented, and how threads are loaded and saved.
144
+ *
145
+ * Comments are not part of AdapTable State. The application loads and persists them through these callbacks.
124
146
  */
125
147
  commentOptions?: CommentOptions<TData>;
126
148
  /**
127
- * Options for managing Calculated Columns (e.g. Formula Trace)
149
+ * Calculated Columns whose values come from an AdapTableQL expression: formula trace, and how often aggregated columns recompute after row changes.
150
+ *
151
+ * The column definitions belong in Initial State.
128
152
  */
129
153
  calculatedColumnOptions?: CalculatedColumnOptions;
130
154
  /**
131
- * Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed
155
+ * DOM elements that host the grid, the AG Grid instance, the Settings Panel, alerts, system status and the transposed view.
156
+ *
157
+ * Set these when AdapTable is not mounted into the default divs.
132
158
  */
133
159
  containerOptions?: ContainerOptions;
134
160
  /**
135
- * Options for managing AdapTable Context Menu
136
- *
161
+ * Replaces or extends the right-click menu. The callback receives AdapTable's default items.
137
162
  */
138
163
  contextMenuOptions?: ContextMenuOptions<TData>;
139
164
  /**
140
- * Options for using Custom Sort
165
+ * Comparer functions for a Custom Sort, used when the sort order is not a simple list of values.
166
+ *
167
+ * The Custom Sort objects (the ordered values) belong in Initial State.
141
168
  */
142
169
  customSortOptions?: CustomSortOptions;
143
170
  /**
144
- * Options for managing the Dashboard in AdapTable
171
+ * The Dashboard above the grid: whether it can float, custom toolbars and buttons, and where the module buttons sit.
145
172
  *
146
- * @noCodeContainer
173
+ * Which toolbars are on each tab is stored in Dashboard state.
147
174
  */
148
175
  dashboardOptions?: DashboardOptions;
149
176
  /**
150
- * Options to manage Data Change History Module which provides an overview of all data changes
151
- *
152
- * @noCodeContainer
177
+ * The log of cell value changes: whether it starts active, which changes are recorded, and the undo button.
153
178
  */
154
179
  dataChangeHistoryOptions?: DataChangeHistoryOptions<TData>;
155
180
  /**
156
- * Options for managing the Data Import function
181
+ * The import wizard: how a file or pasted text becomes rows, how those rows are validated, and how they are written into the grid.
157
182
  */
158
183
  dataImportOptions?: DataImportOptions;
159
184
  /**
160
- * Options to manage Data Sets
185
+ * Named sets of rows the user can switch between. Each set supplies its own data.
161
186
  */
162
187
  dataSetOptions?: DataSetOptions<TData>;
163
188
  /**
164
- * Options related to Editing in AdapTable including Server Validation
165
- *
189
+ * Cell editing: which cells can be edited, server-side validation, the values offered in a dropdown editor, Plus Minus nudges and Smart Edit.
166
190
  */
167
191
  editOptions?: EditOptions<TData>;
168
192
  /**
169
- * Options for managing Entitlements
193
+ * Which modules a user may see or change. `Full`, `ReadOnly` or `Hidden`, per module or as a default.
170
194
  *
195
+ * A module that defaults to hidden (such as State) stays hidden until `moduleEntitlements` allows it.
171
196
  */
172
197
  entitlementOptions?: EntitlementOptions;
173
198
  /**
174
- * Options for managing Exporting and Reports in AdapTable
199
+ * Reports: which system reports, formats and destinations are offered, custom destinations, and whether a column is included.
175
200
  *
201
+ * Report definitions the user creates are stored in Export state.
176
202
  */
177
203
  exportOptions?: ExportOptions<TData>;
178
204
  /**
179
- * Options for managing AdapTableQL Expressions
180
- * @noCodeContainer
205
+ * AdapTableQL: custom functions, which columns and fields an expression may use, case sensitivity, and how the expression editor is presented.
206
+ *
207
+ * Expressions saved on objects (a filter, an alert rule, a calculated column) live on those objects. These options change how every expression is evaluated and edited.
181
208
  */
182
209
  expressionOptions?: ExpressionOptions<TData>;
183
210
  /**
184
- * Options for managing FDC3 in AdapTable
211
+ * FDC3: which intents and contexts this grid raises, listens for and broadcasts, and how a row's columns map onto an FDC3 context.
185
212
  */
186
213
  fdc3Options?: Fdc3Options;
187
214
  /**
188
- * Options for managing Flashing Cells - primarily default values
215
+ * Defaults for a flashing cell when a Flashing Cell definition does not set them: up, down and neutral styles, whether the cell or the row flashes, and for how long.
189
216
  *
217
+ * The definitions themselves belong in Initial State.
190
218
  */
191
219
  flashingCellOptions?: FlashingCellOptions;
192
220
  /**
193
- * Options for providing Custom Display Formats
221
+ * Display formatters beyond the ones AdapTable ships, used by Format Columns.
222
+ *
223
+ * The Format Column objects (which column, which style and format) belong in Initial State.
194
224
  */
195
225
  formatColumnOptions?: FormatColumnOptions;
196
226
  /**
197
- * Filtering Options - both Column Filters and the Grid Filter
227
+ * Column Filters and the Grid Filter: whether AdapTable's filters are used instead of AG Grid's, the quick filter bar, and the default operator for each data type.
228
+ *
229
+ * The filters the user creates are stored in the Layout.
198
230
  */
199
231
  filterOptions?: FilterOptions<TData>;
200
232
  /**
201
- * Options related to Layouts
233
+ * How Layouts are created and shown: a layout built from the AG Grid column definitions, defaults for a new Table or Pivot Layout, and whether layout extensions are offered in the UI.
202
234
  *
203
- * @noCodeContainer
235
+ * The Layout objects belong in Initial State. A grid needs at least one.
204
236
  */
205
237
  layoutOptions?: LayoutOptions<TData>;
206
238
  /**
207
- * Options for managing personal Notes
239
+ * Notes on cells: which cells can hold a note, the note type applied on creation, and how the timestamp is formatted.
240
+ *
241
+ * The notes themselves are stored in Note state.
208
242
  */
209
243
  noteOptions?: NoteOptions;
210
244
  /**
211
- * Options for managing Notifications in AdapTable
212
- *
213
- * @noCodeContainer
245
+ * Toasts: where they appear, how long they stay, and how many system status messages are kept.
214
246
  */
215
247
  notificationsOptions?: NotificationsOptions;
216
248
  /**
217
- * Options for managing Search related functions in AdapTable
218
- *
219
- * @noCodeContainer
249
+ * Quick Search: which cells are searched, whether matching rows are filtered, and whether the search is case sensitive.
220
250
  */
221
251
  quickSearchOptions?: QuickSearchOptions<TData>;
222
252
  /**
223
- * Options for managing Row Forms
253
+ * Create, clone and edit forms for a row: which columns appear, how the primary key of a new row is set, and whether AdapTable writes the result into the grid.
224
254
  */
225
255
  rowFormOptions?: RowFormOptions<TData>;
226
256
  /**
227
- * Setting panel options
228
- *
229
- * @noCodeContainer
257
+ * The Settings Panel: its title and icon, which modules appear and in which groups, and whether it opens as a modal or a movable window.
230
258
  */
231
259
  settingsPanelOptions?: SettingsPanelOptions;
232
260
  /**
233
- * Options for managing Wizards (and other action popups such as Bulk Update,
234
- * Smart Edit and Cell Summary) — controls their `popupType`, initial
235
- * `position` and `size` independently of the Settings Panel.
261
+ * Wizards and the other action popups (Bulk Update, Smart Edit, Cell Summary): modal or window, and the window's position and size.
236
262
  *
237
- * @noCodeContainer
263
+ * Independent of the Settings Panel. Ignored when `containerOptions.modalContainer` places every popup in one element.
238
264
  */
239
265
  wizardOptions?: WizardOptions;
240
266
  /**
241
- * Options related to state hydration / dehydration - allows users to intercept state persistence and state loading and change default behaviour of saving to local storage
267
+ * Where state is loaded from and saved to. The default is `localStorage`.
268
+ *
269
+ * Replace `loadState` and `persistState` to keep state on a server. `saveState` and `applyState` change the object just before it is stored or applied.
242
270
  */
243
271
  stateOptions?: StateOptions;
244
272
  /**
245
- * Options for managing 'Team Sharing' which allows users to create Adaptable Objects and share with colleagues
273
+ * Sharing Adaptable Objects with other users. The application loads and saves the shared objects; AdapTable does not ship a server.
246
274
  *
275
+ * Turn it on with `enableTeamSharing`, then provide `loadSharedEntities` and `persistSharedEntities`.
247
276
  */
248
277
  teamSharingOptions?: TeamSharingOptions;
249
278
  /**
250
- * Options related to managing the Tool Panel elements in AdapTable
251
- *
252
- * @noCodeContainer
279
+ * The tool panel beside the grid: custom panels, custom buttons, and whether the panel dropdown is shown.
253
280
  */
254
281
  toolPanelOptions?: ToolPanelOptions;
255
282
  /**
256
- * Options for managing the User Interface elements of AdapTable, i.e. Action Columns, Color Palette etc.
257
- *
283
+ * Shared UI: the application icon, custom icons, editable and read-only cell styles, the colour picker, date inputs, the loading screen, and the names shown for modules.
258
284
  */
259
285
  userInterfaceOptions?: UserInterfaceOptions<TData>;
260
286
  /**
261
- * Used for managing the AdapTable Plugins
287
+ * Plugins constructed by the application and handed to AdapTable: OpenFin, ipushpull, interop.io and Master-Detail.
288
+ *
289
+ * Each plugin is created with its own options. This array registers them.
262
290
  */
263
291
  plugins?: AdaptablePlugin[];
264
292
  }
@@ -13,37 +13,149 @@ type AdaptableReducerObject = {
13
13
  [key: string]: (...args: any[]) => any;
14
14
  };
15
15
  /**
16
- * Base class for all AdapTable Plugins
16
+ * Base class for an AdapTable plugin (OpenFin, ipushpull, interop.io, Master-Detail).
17
+ *
18
+ * Construct the plugin with its options and pass the instance in `AdaptableOptions.plugins`. The lifecycle methods run in the order they are declared.
17
19
  */
18
20
  export declare abstract class AdaptablePlugin {
21
+ /**
22
+ * Options the plugin was constructed with.
23
+ */
19
24
  options?: any;
25
+ /**
26
+ * Named callbacks the plugin registers for AdapTable to call.
27
+ */
20
28
  private values;
29
+ /**
30
+ * Id of this plugin. AdapTable uses it to find the plugin and its state.
31
+ */
21
32
  pluginId: string;
22
33
  constructor(options?: any);
34
+ /**
35
+ * Registers a named callback for AdapTable to call later via {@link AdaptablePlugin.getProperty}.
36
+ *
37
+ * @param name Callback name
38
+ * @param fn Function AdapTable will invoke
39
+ */
23
40
  registerProperty(name: string, fn: (...args: any) => any): void;
41
+ /**
42
+ * Returns a function that calls the callback registered under `name`.
43
+ *
44
+ * The returned function does nothing when no callback is registered.
45
+ *
46
+ * @param name Callback name passed to {@link AdaptablePlugin.registerProperty}
47
+ * @returns A function that invokes the registered callback
48
+ */
24
49
  getProperty(name: string): any;
50
+ /**
51
+ * Adds the plugin's reducers to AdapTable's store.
52
+ */
25
53
  rootReducer?: (rootReducer: AdaptableReducerObject) => AdaptableReducerObject;
54
+ /**
55
+ * Redux middleware the plugin adds to the store.
56
+ */
26
57
  reduxMiddleware?: (adaptable: IAdaptable) => Redux.Middleware;
58
+ /**
59
+ * Whether a callback was registered under `name`.
60
+ *
61
+ * @param name Callback name passed to {@link AdaptablePlugin.registerProperty}
62
+ * @returns `true` when that callback exists
63
+ */
27
64
  hasProperty(name: string): boolean;
65
+ /**
66
+ * Runs before AdapTable initialises. Change `adaptableOptions` or the AG Grid options here.
67
+ *
68
+ * @param adaptableOptions Options about to be used
69
+ * @param agGridOptions AG Grid options about to be used
70
+ */
28
71
  beforeInit(adaptableOptions: AdaptableOptions, agGridOptions: AgGridConfig): void;
72
+ /**
73
+ * Runs after AdapTable Options have been normalised.
74
+ *
75
+ * @param adaptable The AdapTable instance
76
+ * @param adaptableOptions Normalised options
77
+ */
29
78
  afterInitOptions(adaptable: IAdaptable, adaptableOptions: AdaptableOptions): void;
79
+ /**
80
+ * Runs after `adaptableApi` exists.
81
+ *
82
+ * @param adaptable The AdapTable instance
83
+ * @param api AdapTable API
84
+ */
30
85
  afterInitApi(adaptable: IAdaptable, api: AdaptableApi): void;
86
+ /**
87
+ * Runs after AdapTable's internal services exist.
88
+ *
89
+ * @param adaptable The AdapTable instance
90
+ */
31
91
  afterInitServices(adaptable: IAdaptable): void;
92
+ /**
93
+ * Runs after Initial State has been loaded into the store.
94
+ *
95
+ * @param adaptable The AdapTable instance
96
+ */
32
97
  afterInitialStateLoaded(adaptable: IAdaptable): void;
98
+ /**
99
+ * Runs after AdapTable modules have been created.
100
+ *
101
+ * @param adaptable The AdapTable instance
102
+ * @param strategies Modules, keyed by module name
103
+ */
33
104
  afterInitModules(adaptable: IAdaptable, strategies: Map<AdaptableModule, IModule>): void;
105
+ /**
106
+ * Runs after the AdapTable store exists.
107
+ *
108
+ * @param adaptable The AdapTable instance
109
+ */
34
110
  afterInitStore(adaptable: IAdaptable): void;
111
+ /**
112
+ * Runs at the end of initialisation, before `AdaptableReady`.
113
+ *
114
+ * @param ab The AdapTable instance
115
+ */
35
116
  afterInit(ab: IAdaptable): void;
117
+ /**
118
+ * Runs after each Layout is applied.
119
+ *
120
+ * @param adaptable The AdapTable instance
121
+ * @param layout Layout that was applied
122
+ */
36
123
  afterSetLayout(adaptable: IAdaptable, layout: Layout): void;
124
+ /**
125
+ * Runs synchronously before a store action is reduced.
126
+ *
127
+ * @param eventName Redux action type
128
+ * @param data Action and the state before it is applied
129
+ * @param adaptableStore AdapTable store
130
+ */
37
131
  onBeforeStoreEvent(eventName: string, data: {
38
132
  action: Redux.Action;
39
133
  state: AdaptableState;
40
134
  }, adaptableStore: IAdaptableStore): void;
135
+ /**
136
+ * Runs after a store action has been reduced.
137
+ *
138
+ * @param eventName Redux action type
139
+ * @param data Action, the state before it, and the state after it
140
+ * @param adaptableStore AdapTable store
141
+ */
41
142
  onStoreEvent(eventName: string, data: {
42
143
  action: Redux.Action;
43
144
  state: AdaptableState;
44
145
  newState: AdaptableState;
45
146
  }, adaptableStore: IAdaptableStore): void;
147
+ /**
148
+ * Runs when AdapTable fires `AdaptableReady`.
149
+ *
150
+ * @param adaptable The AdapTable instance
151
+ * @param adaptableOptions Options the instance was created with
152
+ */
46
153
  onAdaptableReady(adaptable: IAdaptable, adaptableOptions: AdaptableOptions): void;
154
+ /**
155
+ * Changes one AG Grid column property while AdapTable is building the column.
156
+ *
157
+ * Return the value to use, or `undefined` to leave the current value.
158
+ */
47
159
  interceptSetupColumnProperty?: <T extends keyof ColDef>(columnSetupInfo: ColumnSetupInfo, propertyName: T, currentValue: ColDef[T] | undefined, api: AdaptableApi) => ColDef[T] | undefined;
48
160
  }
49
161
  export {};
@@ -11,7 +11,6 @@ export interface AlertOptions<TData = any> {
11
11
  * How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
12
12
  *
13
13
  * @defaultValue 20
14
- * @noCodeItem
15
14
  */
16
15
  maxAlertsInStore?: number;
17
16
  /**
@@ -58,7 +57,6 @@ export interface AlertOptions<TData = any> {
58
57
  * Shows Alert if Primary Key column in Adaptable Options is not present or incorrect
59
58
  *
60
59
  * @defaultValue false
61
- * @noCodeItem
62
60
  * @uiLabel Show Missing Primary Key Warning
63
61
  */
64
62
  showMissingPrimaryKeyAlert?: boolean;
@@ -1,13 +1,14 @@
1
1
  import { ExternalChartDefinition } from '../AdaptableState/ChartingState';
2
2
  import { BaseContext } from '../types';
3
3
  /**
4
- * Options for managing AG Grid's Charts
4
+ * How charts are saved and where they open.
5
+ *
6
+ * AG Grid chart definitions the user saves are stored in Charting state. These options decide whether that happens automatically, and which element a chart is drawn into.
5
7
  */
6
8
  export interface ChartingOptions {
7
9
  /**
8
10
  * Behaviour for saving Charts: auto, manual (via popup) or none
9
11
  * @defaultValue 'none'
10
- * @noCodeItem
11
12
  */
12
13
  saveChartBehaviour?: SaveChartBehaviour;
13
14
  /**
@@ -18,16 +19,21 @@ export interface ChartingOptions {
18
19
  */
19
20
  restoreChartsOnReady?: boolean | 'all' | string[];
20
21
  /**
21
- * Locations to display saved Charts
22
+ * Elements a saved chart can be drawn into, offered by name when the user opens a chart.
23
+ *
24
+ * Omit this to open charts only in AG Grid's own window.
22
25
  */
23
26
  chartContainers?: ChartContainer[];
24
27
  /**
25
- * Name of AG Grid Chart Container
28
+ * Name shown for AG Grid's own chart window in the container list.
29
+ *
26
30
  * @defaultValue 'AG Grid Window'
27
31
  */
28
32
  agGridContainerName?: string;
29
33
  /**
30
- * Set of properties for managing behaviour of external (i.e non AG Grid) charts
34
+ * Show, hide, delete and preview for charts that are not AG Grid charts.
35
+ *
36
+ * Required when the chart is drawn by the application. AdapTable calls these instead of opening an AG Grid chart.
31
37
  *
32
38
  * @defaultValue {}
33
39
  */
@@ -30,10 +30,25 @@ export interface CustomColumnMenuContext<TData = any> extends ColumnMenuContext<
30
30
  * Default structure of AG Grid Menu Items
31
31
  */
32
32
  defaultAgGridMenuStructure: (AgGridMenuItem<AgGridColumnMenuItemType> | {
33
+ /**
34
+ * Always `Group`. The item is a submenu of AG Grid column-menu entries.
35
+ */
33
36
  menuType: 'Group';
37
+ /**
38
+ * Text of the submenu.
39
+ */
34
40
  label: string;
41
+ /**
42
+ * AG Grid column-menu entries shown when the submenu opens.
43
+ */
35
44
  subMenuItems: AgGridMenuItem<AgGridColumnMenuItemType>[];
45
+ /**
46
+ * When `true`, the submenu cannot be opened.
47
+ */
36
48
  disabled?: boolean;
49
+ /**
50
+ * Icon drawn next to the submenu label.
51
+ */
37
52
  icon?: AdaptableIcon;
38
53
  })[];
39
54
  }
@@ -45,10 +60,25 @@ export type CustomColumnMenuItem = AgGridMenuItem<AgGridColumnMenuItemType> | Ad
45
60
  * Defines a Grouped Menu Item in the Column Menu
46
61
  */
47
62
  export type CustomGroupColumnMenuItem = {
63
+ /**
64
+ * Always `Group`. The item is a submenu, not a clickable command.
65
+ */
48
66
  menuType: 'Group';
67
+ /**
68
+ * Text of the submenu.
69
+ */
49
70
  label: string;
71
+ /**
72
+ * Items shown when the submenu opens.
73
+ */
50
74
  subMenuItems: CustomColumnMenuItem[];
75
+ /**
76
+ * When `true`, the submenu cannot be opened.
77
+ */
51
78
  disabled?: boolean;
79
+ /**
80
+ * Icon drawn next to the submenu label.
81
+ */
52
82
  icon?: AdaptableIcon;
53
83
  };
54
84
  /**
@@ -28,14 +28,12 @@ export interface ColumnOptions {
28
28
  * Log warning to console if AdapTable cannot find a column
29
29
  *
30
30
  * @defaultValue true
31
- * @noCodeItem
32
31
  */
33
32
  showMissingColumnsWarning?: boolean;
34
33
  /**
35
34
  * Appends the name of the Column Group to a Column's Friendly Name
36
35
  *
37
36
  * @defaultValue false
38
- * @noCodeItem
39
37
  */
40
38
  addColumnGroupToColumnFriendlyName?: boolean;
41
39
  }
@@ -1,6 +1,8 @@
1
1
  import { CommentThread, BaseContext, GridCell } from '../types';
2
2
  /**
3
- * Options for managing Comments and Comment Threads in AdapTable
3
+ * Comments on cells. A thread is the list of comments for one cell.
4
+ *
5
+ * Comments are not stored in AdapTable State. The application loads them with {@link loadCommentThreads} and saves them with {@link persistCommentThreads}.
4
6
  */
5
7
  export interface CommentOptions<TData = any> {
6
8
  /**
@@ -8,12 +10,18 @@ export interface CommentOptions<TData = any> {
8
10
  */
9
11
  isCellCommentable?: (commentableCellContext: CommentableCellContext) => boolean;
10
12
  /**
11
- * Loads the Comment Threads
13
+ * Loads every comment thread when the grid starts.
14
+ *
15
+ * @param commentLoadContext The grid the comments belong to
16
+ * @returns The threads to show. An empty list when there are none
12
17
  */
13
18
  loadCommentThreads?(commentLoadContext: CommentLoadContext): Promise<CommentThread[]>;
14
19
  /**
15
- * Persists the current Comment Threads
16
- * @param commentThreads
20
+ * Saves the threads after a comment is added, edited or deleted.
21
+ *
22
+ * Called with the full set, not only the thread that changed.
23
+ *
24
+ * @param commentThreads Every thread, including the one that just changed
17
25
  */
18
26
  persistCommentThreads?(commentThreads: CommentThread[]): Promise<void>;
19
27
  /**