@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
@@ -4,104 +4,128 @@ import { ColDef, ColGroupDef, Column } from 'ag-grid-enterprise';
4
4
  import type { AvailableCellDataTypeInfo } from '../agGrid/AgGridCellDataTypeHelper';
5
5
  export type { AvailableCellDataTypeInfo } from '../agGrid/AgGridCellDataTypeHelper';
6
6
  /**
7
- * Provides run-time access to AdapTable Column related features
7
+ * Columns in the grid: lookup by id or friendly name, data type, visibility and which columns can be sorted, filtered, grouped or exported.
8
8
  */
9
9
  export interface ColumnApi {
10
10
  /**
11
11
  * Returns all Columns available (including hidden, special)
12
+ * @returns All Columns available (including hidden, special)
12
13
  */
13
14
  getColumns(): AdaptableColumn[];
14
15
  /**
15
16
  * Returns all Columns that can be displayed in UI (excludes always hidden cols)
17
+ * @returns All Columns that can be displayed in UI (excludes always hidden cols)
16
18
  */
17
19
  getUIAvailableColumns(): AdaptableColumn[];
18
20
  /**
19
21
  * Returns all UI available columns excluding Action, FreeText and Calculated Columns
22
+ * @returns All UI available columns excluding Action, FreeText and Calculated Columns
20
23
  */
21
24
  getNonSpecialColumns(): AdaptableColumn[];
22
25
  /**
23
26
  * Returns any Action, FreeText and Calculated Columns
27
+ * @returns Any Action, FreeText and Calculated Columns
24
28
  */
25
29
  getSpecialColumns(): AdaptableColumn[];
26
30
  /**
27
31
  * Returns all visible Columns
32
+ * @returns All visible Columns
28
33
  */
29
34
  getVisibleColumns(): AdaptableColumn[];
30
35
  /**
31
36
  * Returns all numeric Columns
37
+ * @returns All numeric Columns
32
38
  */
33
39
  getNumericColumns(): AdaptableColumn[];
34
40
  /**
35
41
  * Returns all Date Columns
42
+ * @returns All Date Columns
36
43
  */
37
44
  getDateColumns(): AdaptableColumn[];
38
45
  /**
39
46
  * Returns all Text Columns
47
+ * @returns All Text Columns
40
48
  */
41
49
  getTextColumns(): AdaptableColumn[];
42
50
  /**
43
51
  * Returns all string array Columns
52
+ * @returns All string array Columns
44
53
  */
45
54
  getTextArrayColumns(): AdaptableColumn[];
46
55
  /**
47
56
  * Returns all boolean Columns
57
+ * @returns All boolean Columns
48
58
  */
49
59
  getBooleanColumns(): AdaptableColumn[];
50
60
  /**
51
61
  * Returns all array columns (number, tuple-number, object-number & text)
62
+ * @returns All array columns (number, tuple-number, object-number & text)
52
63
  */
53
64
  getArrayColumns(): AdaptableColumn[];
54
65
  /**
55
66
  * Returns all numeric array columns (number, tuple-number, object-number)
67
+ * @returns All numeric array columns (number, tuple-number, object-number)
56
68
  */
57
69
  getNumericArrayColumns(): AdaptableColumn[];
58
70
  /**
59
71
  * Returns all number-array columns
72
+ * @returns All number-array columns
60
73
  */
61
74
  getNumberArrayColumns(): AdaptableColumn[];
62
75
  /**
63
76
  * Returns all tuple-number-array columns e.g. [[1,2],[3,4]]
77
+ * @returns All tuple-number-array columns e.g. [[1,2],[3,4]]
64
78
  */
65
79
  getTupleNumberArrayColumns(): AdaptableColumn[];
66
80
  /**
67
81
  * Returns all object-number-array columns e.g. [{x:1,y:2},{x:3,y:4}]
82
+ * @returns All object-number-array columns e.g. [{x:1,y:2},{x:3,y:4}]
68
83
  */
69
84
  getObjectNumberArrayColumns(): AdaptableColumn[];
70
85
  /**
71
86
  * Returns all Sortable Columns
87
+ * @returns All Sortable Columns
72
88
  */
73
89
  getSortableColumns(): AdaptableColumn[];
74
90
  /**
75
- * Returns all Sortable Columns
91
+ * Returns all Filterable Columns
92
+ * @returns All Filterable Columns
76
93
  */
77
94
  getFilterableColumns(): AdaptableColumn[];
78
95
  /**
79
96
  * Returns all Groupable Columns
97
+ * @returns All Groupable Columns
80
98
  */
81
99
  getGroupableColumns(): AdaptableColumn[];
82
100
  /**
83
101
  * Returns all Pivotable Columns
102
+ * @returns All Pivotable Columns
84
103
  */
85
104
  getPivotableColumns(): AdaptableColumn[];
86
105
  /**
87
106
  * Returns all Aggregatable Columns
107
+ * @returns All Aggregatable Columns
88
108
  */
89
109
  getAggregatableColumns(): AdaptableColumn[];
90
110
  /**
91
111
  * Returns all Queryable Columns
112
+ * @returns All Queryable Columns
92
113
  */
93
114
  getQueryableColumns(): AdaptableColumn[];
94
115
  /**
95
116
  * Returns Columns that are always hidden in UI (but available for Expressions)
117
+ * @returns Columns that are always hidden in UI (but available for Expressions)
96
118
  */
97
119
  getUIHiddenColumns(): AdaptableColumn[];
98
120
  /**
99
121
  * Returns all Exportable Columns
122
+ * @returns All Exportable Columns
100
123
  */
101
124
  getExportableColumns(): AdaptableColumn[];
102
125
  /**
103
126
  * Returns all Columns that have given DataType
104
127
  * @param dataType the DataType of the Columns to retrieve
128
+ * @returns All Columns that have given DataType
105
129
  */
106
130
  getColumnsWithDataType(dataType: AdaptableColumnDataType): AdaptableColumn[];
107
131
  /**
@@ -155,92 +179,110 @@ export interface ColumnApi {
155
179
  /**
156
180
  * Checks if Column with given ColumnId is a Selection (Checkbox) Column automatically generated by AG Grid
157
181
  * @param columnId ColumnId to check
182
+ * @returns `true` when Column with given ColumnId is a Selection (Checkbox) Column automatically generated by AG Grid
158
183
  */
159
184
  isSelectionColumn(columnId: string): boolean;
160
185
  /**
161
186
  * Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid
162
187
  * @param columnId ColumnId to check
188
+ * @returns `true` when Column with given ColumnId is a row-group Column automatically generated by AG Grid
163
189
  */
164
190
  isAutoRowGroupColumn(columnId: string): boolean;
165
191
  /**
166
192
  * Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'single'
167
193
  * @param columnId ColumnId to check
194
+ * @returns `true` when Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'single'
168
195
  */
169
196
  isAutoRowGroupColumnForSingle(columnId: string): boolean;
170
197
  /**
171
198
  * Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'multi'
172
199
  * @param columnId ColumnId to check
200
+ * @returns `true` when Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'multi'
173
201
  */
174
202
  isAutoRowGroupColumnForMulti(columnId: string): boolean;
175
203
  /**
176
204
  * Checks if Column with given ColumnId is a pivot Column automatically generated by AG Grid
177
205
  * @param columnId ColumnId to check
206
+ * @returns `true` when Column with given ColumnId is a pivot Column automatically generated by AG Grid
178
207
  */
179
208
  isPivotResultColumn(columnId: string): boolean;
180
209
  /**
181
210
  * Checks if Column with given ColumnId is a pivot aggregation column in a pivot layout with no pivot columns.
182
211
  * When PivotColumns is empty, aggregation columns keep their original IDs instead of getting a 'pivot_' prefix.
183
212
  * @param columnId ColumnId to check
213
+ * @returns `true` when Column with given ColumnId is a pivot aggregation column in a pivot layout with no pivot columns. When PivotColumns is empty, aggregation columns keep their original IDs instead of getting a 'pivot_' prefix
184
214
  */
185
215
  isPivotAggColumnWithNoPivotColumns(columnId: string): boolean;
186
216
  /**
187
217
  * Checks if Column with given ColumnId is a Special (i.e. calculated, freetext or action) Column
188
218
  * @param columnId ColumnId to check
219
+ * @returns `true` when Column with given ColumnId is a Special (i.e. calculated, freetext or action) Column
189
220
  */
190
221
  isSpecialColumn(columnId: string): boolean;
191
222
  /**
192
223
  * Checks if Column with given ColumnId is a Calculated Column
193
224
  * @param columnId ColumnId to check
225
+ * @returns `true` when Column with given ColumnId is a Calculated Column
194
226
  */
195
227
  isCalculatedColumn(columnId: string): boolean;
196
228
  /**
197
229
  * Checks if Column with given ColumnId is a Free Text Column
198
230
  * @param columnId ColumnId to check
231
+ * @returns `true` when Column with given ColumnId is a Free Text Column
199
232
  */
200
233
  isFreeTextColumn(columnId: string): boolean;
201
234
  /**
202
235
  * Checks if Column with given ColumnId is an Action Column
203
236
  * @param columnId ColumnId to check
237
+ * @returns `true` when Column with given ColumnId is an Action Column
204
238
  */
205
239
  isActionColumn(columnId: string): boolean;
206
240
  /**
207
241
  * Checks if Column with given ColumnId is a FDC3 Column
208
- * @param columnId
242
+ * @param columnId Column to check
243
+ * @returns `true` when Column with given ColumnId is a FDC3 Column
209
244
  */
210
245
  isFdc3Column(columnId: string): boolean;
211
246
  /**
212
247
  * Checks if the Column with the given `columnId` has DataType Number
213
248
  * @param columnId Column ID
249
+ * @returns `true` when the Column with the given `columnId` has DataType Number
214
250
  */
215
251
  hasNumberDataType(columnId: string): boolean;
216
252
  /**
217
253
  * Checks if the Column with the given `columnId` has DataType Boolean
218
254
  * @param columnId Column ID
255
+ * @returns `true` when the Column with the given `columnId` has DataType Boolean
219
256
  */
220
257
  hasBooleanDataType(columnId: string): boolean;
221
258
  /**
222
259
  * Checks if the Column with the given `columnId` has DataType Date
223
260
  * @param columnId Column ID
261
+ * @returns `true` when the Column with the given `columnId` has DataType Date
224
262
  */
225
263
  hasDateDataType(columnId: string): boolean;
226
264
  /**
227
265
  * Checks if the Column with the given `columnId` has an Numeric Array-like DataType (`NumberArray`,`TupleNumberArray` or `ObjectNumberArray`)
228
266
  * @param columnId Column ID
267
+ * @returns `true` when the Column with the given `columnId` has an Numeric Array-like DataType (`NumberArray`,`TupleNumberArray` or `ObjectNumberArray`)
229
268
  */
230
269
  hasNumericArrayDataType(columnId: string): boolean;
231
270
  /**
232
271
  * Checks if the Column with the given `columnId` has any Array-like DataType (`TextArray`,`NumberArray`,`TupleNumberArray` or `ObjectNumberArray`)
233
272
  * @param columnId Column ID
273
+ * @returns `true` when the Column with the given `columnId` has any Array-like DataType (`TextArray`,`NumberArray`,`TupleNumberArray` or `ObjectNumberArray`)
234
274
  */
235
275
  hasArrayDataType(columnId: string): boolean;
236
276
  /**
237
277
  * Checks if the Column with the given `columnId` has a Text Array-like DataType (`TextArray`)
238
278
  * @param columnId Column ID
279
+ * @returns `true` when the Column with the given `columnId` has a Text Array-like DataType (`TextArray`)
239
280
  */
240
281
  hasTextArrayDataType(columnId: string): boolean;
241
282
  /**
242
283
  * Returns Data Type for the Column with given ColumnId
243
284
  * @param columnId Column to check
285
+ * @returns Data Type for the Column with given ColumnId. `undefined` when there is no match
244
286
  */
245
287
  getColumnDataTypeForColumnId(columnId: string): AdaptableColumnDataType | undefined;
246
288
  /**
@@ -248,72 +290,88 @@ export interface ColumnApi {
248
290
  * `dataTypeDefinitions`), for optional special-column Cell Data Type settings.
249
291
  * Empty when the app has not registered custom types. Does not include
250
292
  * AdapTable baselines (number / text / date / boolean / numberArray).
293
+ * @returns Application-registered AG Grid cell data types (from the app's `dataTypeDefinitions`), for optional special-column Cell Data Type settings. Empty when the app has not registered custom types. Does not include AdapTable baselines (number / text / date / boolean / numberArray)
251
294
  */
252
295
  getAvailableCellDataTypes(): AvailableCellDataTypeInfo[];
253
296
  /**
254
297
  * Resolves the AdapTable `DataType` for an AG Grid `cellDataType` key
255
298
  * (custom types map via `baseDataType` / `extendsDataType`).
299
+ * @param cellDataType AG Grid `cellDataType` key
300
+ * @returns The AdapTable data type for that key. `undefined` when the key is not registered
256
301
  */
257
302
  getAdaptableDataTypeForCellDataType(cellDataType: string): AdaptableColumnDataType | undefined;
258
303
  /**
259
304
  * Retrieves Friendly Name of Column with given ColumnId
260
305
  * @param columnId ColumnId to lookup
306
+ * @param layout Layout used when naming an auto row-group column. Defaults to the current Layout
307
+ * @returns Friendly Name of Column with given ColumnId
261
308
  */
262
309
  getFriendlyNameForColumnId(columnId: string, layout?: Layout): string;
263
310
  /**
264
311
  * Checks if Column has already been created
265
312
  * @param columnId ColumnId to check
313
+ * @returns `true` when Column has already been created
266
314
  */
267
315
  doesColumnExist(columnId: string): boolean;
268
316
  /**
269
317
  * Retrieves Friendly Names for given ColumnIds
270
318
  * @param columnIds ColumnIds to lookup
319
+ * @returns Friendly Names for given ColumnIds
271
320
  */
272
321
  getFriendlyNamesForColumnIds(columnIds: string[]): string[];
273
322
  /**
274
323
  * Retrieves AdapTable Column with given Friendly name
275
324
  * @param columnName Friendly Name to lookup
276
325
  * @param logWarning Whether to log warning if Column missing
326
+ * @returns AdapTable Column with given Friendly name
277
327
  */
278
328
  getColumnWithFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
279
329
  /**
280
330
  * Retrieves Adaptable Columns with given Friendly names
281
331
  * @param friendlyNames Friendly Names to lookup
332
+ * @returns Adaptable Columns with given Friendly names
282
333
  */
283
334
  getColumnsWithFriendlyNames(friendlyNames: string[]): AdaptableColumn[];
284
335
  /**
285
336
  * Retrieves ColumnId for Column with given Friendly Name
286
337
  * @param friendlyName Friendly Name to Lookup
338
+ * @returns ColumnId for Column with given Friendly Name
287
339
  */
288
340
  getColumnIdForFriendlyName(friendlyName: string): string;
289
341
  /**
290
342
  * Retrieves ColumnIds for Columns with given Friendly Names
291
- * @param friendlyName Friendly Names to Lookup
343
+ * @param friendlyNames Friendly names to look up
344
+ * @returns ColumnIds for Columns with given Friendly Names
292
345
  */
293
346
  getColumnIdsForFriendlyNames(friendlyNames: string[]): string[];
294
347
  /**
295
348
  * Retrieves Adaptable Columns with given ColumnIds
296
349
  * @param columnIds Column Ids to lookup
350
+ * @returns Adaptable Columns with given ColumnIds
297
351
  */
298
352
  getColumnsWithColumnIds(columnIds: string[]): AdaptableColumn[];
299
353
  /**
300
354
  * Retrieves AdapTable Column with given ColumnId
301
355
  * @param columnId ColumnId to lookup
302
356
  * @param logWarning Whether to log warning if Column missing
357
+ * @returns AdapTable Column with given ColumnId. `undefined` when there is no match
303
358
  */
304
359
  getColumnWithColumnId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;
305
360
  /**
306
361
  * Returns true if the given Column exists in the Grid
307
362
  * @param columnId Column to check
363
+ * @returns `true` when the given Column exists in the Grid
308
364
  */
309
365
  isColumnInGrid(columnId: string): boolean;
310
366
  /**
311
367
  * Retrieves current Primary Key Column in AdapTable. It may be undefined if the primary key is auto-generated, or it is NOT mapped to a column.
368
+ * @returns Current Primary Key Column in AdapTable. It may be undefined if the primary key is auto-generated, or it is NOT mapped to a column
312
369
  */
313
370
  getPrimaryKeyColumn(): AdaptableColumn | undefined;
314
371
  /**
315
372
  * Returns the default Aggregation Function for a Column
316
373
  * @param columnId Column to Check
374
+ * @returns The default Aggregation Function for a Column
317
375
  */
318
376
  getDefaultAggFunc(columnId: string): string;
319
377
  /**
@@ -323,15 +381,18 @@ export interface ColumnApi {
323
381
  openColumnInfoSettingsPanel(columnId?: string): void;
324
382
  /**
325
383
  * Returns available columns types defined under columnOptions.columnTypes
384
+ * @returns Available columns types defined under columnOptions.columnTypes
326
385
  */
327
386
  getColumnTypes(): string[];
328
387
  /**
329
388
  * Returns all columns of a given columnType
330
389
  * @param columnType the columnType to filter by
390
+ * @returns All columns of a given columnType
331
391
  */
332
392
  getColumnsByColumnType(columnType: string): AdaptableColumn[];
333
393
  /**
334
394
  * Returns all columns currently Row Grouped
395
+ * @returns All columns currently Row Grouped
335
396
  */
336
397
  getRowGroupedColumns(): AdaptableColumn[];
337
398
  /**
@@ -343,6 +404,7 @@ export interface ColumnApi {
343
404
  /**
344
405
  * Returns AG Grid ColDef for a given ColumnId
345
406
  * @param columnId Column to use
407
+ * @returns AG Grid ColDef for a given ColumnId
346
408
  */
347
409
  getAGGridColDefForColumnId(columnId: string): ColDef | ColGroupDef;
348
410
  /**
@@ -350,27 +412,32 @@ export interface ColumnApi {
350
412
  *
351
413
  * The ColDef is matched to a Column by `colId` (falling back to `field`), mirroring how AG Grid derives a Column's `colId`
352
414
  * @param colDef AG Grid ColDef to look up
415
+ * @returns The AdapTable Column that maps to a given AG Grid ColDef The ColDef is matched to a Column by `colId` (falling back to `field`), mirroring how AG Grid derives a Column's `colId`. `undefined` when there is no match
353
416
  */
354
417
  getColumnForColDef(colDef: ColDef): AdaptableColumn | undefined;
355
418
  /**
356
419
  * Returns the AG Grid Column for a given ColumnId
357
420
  * @param columnId Column to use
421
+ * @returns The AG Grid Column for a given ColumnId
358
422
  */
359
423
  getAGGridColumnForColumnId(columnId: string): Column;
360
424
  /**
361
425
  * Checks if the Column with given Column Identifier (columnId or ColDef) has a specific Column Type
362
426
  * @param columnIdentifier - ColumnId or ColDef to check
363
427
  * @param columnType - Column Type to check for
428
+ * @returns `true` when the Column with given Column Identifier (columnId or ColDef) has a specific Column Type
364
429
  */
365
430
  hasColumnType(columnIdentifier: string | ColDef, columnType: string): boolean;
366
431
  /**
367
432
  * Gets summary info for a column including filters and unique values
368
433
  * @param columnId Column to summarise
434
+ * @returns Filters and distinct values for the column
369
435
  */
370
436
  getColumnSummaryForColumnId(columnId: string): AdaptableColumnSummary;
371
437
  /**
372
438
  * Whether column is auto generated by AG Grid (for selection, grouping, pivoting etc)
373
439
  * @param columnId column to check
440
+ * @returns `true` when column is auto generated by AG Grid (for selection, grouping, pivoting etc)
374
441
  */
375
442
  isAgGridGeneratedColumn(columnId: string): boolean;
376
443
  }
@@ -1,6 +1,6 @@
1
1
  import { ColumnFilter, InFilterValueResult } from '../types';
2
2
  /**
3
- * Provides run-time access to Filter section of Adaptable State.
3
+ * Column Filters in the current Layout: read, set and clear them, and test whether a filter is active.
4
4
  */
5
5
  export interface ColumnFilterApi {
6
6
  /**
@@ -17,10 +17,12 @@ export interface ColumnFilterApi {
17
17
  hideQuickFilterBar(): void;
18
18
  /**
19
19
  * Whether Quick Filter is available for use
20
+ * @returns `true` when Quick Filter is available for use
20
21
  */
21
22
  isQuickFilterAvailable(): boolean;
22
23
  /**
23
24
  * Whether Quick Filter Form is currently visible
25
+ * @returns `true` when Quick Filter Form is currently visible
24
26
  */
25
27
  isQuickFilterVisible(): boolean;
26
28
  /**
@@ -36,11 +38,13 @@ export interface ColumnFilterApi {
36
38
  /**
37
39
  * Retrieves the Column Filter for the specified Column.
38
40
  * @param columnId Column ID to lookup
41
+ * @returns The Column Filter for the specified Column
39
42
  */
40
43
  getColumnFilterForColumn(columnId: string): ColumnFilter | undefined;
41
44
  /**
42
45
  * Retrieves all Column Filters in a given Layout
43
46
  * @param layoutName Layout to retrieve Column Filters for
47
+ * @returns All Column Filters in a given Layout
44
48
  */
45
49
  getColumnFiltersForLayout(layoutName: string): ColumnFilter[];
46
50
  /**
@@ -74,12 +78,15 @@ export interface ColumnFilterApi {
74
78
  */
75
79
  clearAndSetColumnFilters(columnFilters: ColumnFilter[]): void;
76
80
  /**
77
- * Checks if a Column Filter is active (i.e. Predicate has no inputs or has inputs with values)
81
+ * Whether a Column Filter is filtering rows. Active when it is not suspended and its expression is not empty.
82
+ * @param columnFilter Filter to check
83
+ * @returns `true` when a Column Filter is filtering rows. Active when it is not suspended and its expression is not empty
78
84
  */
79
85
  isColumnFilterActive(columnFilter: ColumnFilter): boolean;
80
86
  /**
81
- * Checks if the given Coumn has an active Column Filter
87
+ * Whether the given column has an active Column Filter
82
88
  * @param columnId Column ID to check
89
+ * @returns `true` when the given column has an active Column Filter
83
90
  */
84
91
  isColumnFilterActiveForColumn(columnId: string): boolean;
85
92
  /**
@@ -103,11 +110,13 @@ export interface ColumnFilterApi {
103
110
  /**
104
111
  * Retrieves description of given Column Filter
105
112
  * @param columnFilter Column Filter to use
113
+ * @returns Description of given Column Filter
106
114
  */
107
115
  columnFilterToString(columnFilter: ColumnFilter): string;
108
116
  /**
109
117
  * Retrieves descriptions of given Column Filters
110
118
  * @param columnFilters Column Filters to use
119
+ * @returns Descriptions of given Column Filters
111
120
  */
112
121
  columnFiltersToString(columnFilters: ColumnFilter[]): string;
113
122
  /**
@@ -115,6 +124,7 @@ export interface ColumnFilterApi {
115
124
  *
116
125
  * @param columnId - the ID of the Column for which to refresh filter values.
117
126
  * @return a Promise that resolves to the list of filter values, each represented as an object with `value` and `label` properties.
127
+ * @returns Refresh(reload) the filter values for a given Column (for `IN` Filter)
118
128
  */
119
129
  refreshFilterValues(columnId: string): Promise<InFilterValueResult>;
120
130
  /**
@@ -1,10 +1,11 @@
1
1
  import { AdaptableColumnMenuItemName, AdaptableIcon, AdaptableSystemColumnMenuItem, CustomColumnMenuContext, CustomColumnMenuItem, CustomGroupColumnMenuItem, MenuCategory } from '../types';
2
2
  /**
3
- * Provides run-time access to Column Menu
3
+ * The menu opened from a column header.
4
4
  */
5
5
  export interface ColumnMenuApi {
6
6
  /**
7
- * Show the Column Menu
7
+ * Opens the Column Menu for a column.
8
+ * @param columnKey Column whose menu to open
8
9
  */
9
10
  showColumnMenu(columnKey: string): void;
10
11
  /**
@@ -14,54 +15,63 @@ export interface ColumnMenuApi {
14
15
  /**
15
16
  * Creates default menu structure; useful as final line in custom implementation
16
17
  * @param context Current Menu Context
18
+ * @returns The default menu: the AG Grid items, a separator, then the AdapTable items
17
19
  */
18
20
  createDefaultMenuStructure(context: CustomColumnMenuContext): any;
19
21
  /**
20
22
  * Gets all Menu Items in a given category
21
23
  * @param category Category to filter on
22
24
  * @param context Current Menu Context
25
+ * @returns All Menu Items in a given category
23
26
  */
24
27
  getColumnMenuItemsByCategory(category: MenuCategory, context: CustomColumnMenuContext): AdaptableSystemColumnMenuItem<AdaptableColumnMenuItemName>[];
25
28
  /**
26
29
  * Gets all Menu Items in given categories
27
30
  * @param categories Categories to filter on
28
31
  * @param context Current Menu Context
32
+ * @returns All Menu Items in given categories
29
33
  */
30
34
  getColumnMenuItemsByCategories(categories: MenuCategory[], context: CustomColumnMenuContext): AdaptableSystemColumnMenuItem<AdaptableColumnMenuItemName>[];
31
35
  /**
32
36
  * Returns the Menu Item with given name
33
37
  * @param menuItemName Menu Item to filter on
34
38
  * @param context Current Menu Context
39
+ * @returns The Menu Item with given name
35
40
  */
36
41
  getColumnMenuItemByName(menuItemName: AdaptableColumnMenuItemName, context: CustomColumnMenuContext): AdaptableSystemColumnMenuItem<AdaptableColumnMenuItemName>;
37
42
  /**
38
43
  * Returns the Menu Items with given names
39
44
  * @param menuItemNames Menu Items to filter on
40
45
  * @param context Current Menu Context
46
+ * @returns The Menu Items with given names
41
47
  */
42
48
  getColumnMenuItemsByNames(menuItemNames: AdaptableColumnMenuItemName[], context: CustomColumnMenuContext): AdaptableSystemColumnMenuItem<AdaptableColumnMenuItemName>[];
43
49
  /**
44
50
  * Returns Menu Item with given label
45
51
  * @param label Label to filter on
46
52
  * @param context Current Menu Context
53
+ * @returns Menu Item with given label
47
54
  */
48
55
  getColumnMenuItemByLabel(label: string, context: CustomColumnMenuContext): AdaptableSystemColumnMenuItem<AdaptableColumnMenuItemName>;
49
56
  /**
50
57
  * Returns Menu Items with given labels
51
58
  * @param labels Labels to filter on
52
59
  * @param context Current Menu Context
60
+ * @returns Menu Items with given labels
53
61
  */
54
62
  getColumnMenuItemsByLabels(labels: string[], context: CustomColumnMenuContext): AdaptableSystemColumnMenuItem<AdaptableColumnMenuItemName>[];
55
63
  /**
56
64
  * Removes Menu Item with given name
57
65
  * @param menuItemName name of Menu Item to remove
58
66
  * @param context Current Menu Context
67
+ * @returns The menu items that remain
59
68
  */
60
69
  removeAdaptableColumnMenuItemByName(menuItemName: AdaptableColumnMenuItemName, context: CustomColumnMenuContext): any;
61
70
  /**
62
71
  * Removes Menu Items with given names
63
72
  * @param menuItemNames names of Menu Items to remove
64
73
  * @param context Current Menu Context
74
+ * @returns The menu items that remain
65
75
  */
66
76
  removeAdaptableColumnMenuItemsByNames(menuItemNames: AdaptableColumnMenuItemName[], context: CustomColumnMenuContext): any;
67
77
  /**
@@ -70,6 +80,7 @@ export interface ColumnMenuApi {
70
80
  * @param subMenuItems Menu Items to place in Group
71
81
  * @param disabled whether group is disabled
72
82
  * @param icon icon for the Group Menu Item
83
+ * @returns The group menu item
73
84
  */
74
85
  createGroupMenu(label: string, subMenuItems: CustomColumnMenuItem[], disabled?: boolean, icon?: AdaptableIcon): CustomGroupColumnMenuItem;
75
86
  }