@adaptabletools/adaptable 18.0.0-canary.9 → 18.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 (423) hide show
  1. package/base.css +18 -20
  2. package/base.css.map +1 -1
  3. package/index.css +22 -20
  4. package/index.css.map +1 -1
  5. package/package.json +1 -1
  6. package/src/AdaptableInterfaces/IAdaptable.d.ts +5 -6
  7. package/src/AdaptableOptions/ActionColumnOptions.d.ts +3 -2
  8. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +3 -0
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -13
  10. package/src/AdaptableOptions/AdaptablePlugin.d.ts +2 -0
  11. package/src/AdaptableOptions/AdaptablePlugin.js +2 -0
  12. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +7 -0
  13. package/src/AdaptableOptions/ColumnMenuOptions.d.ts +94 -0
  14. package/src/AdaptableOptions/ColumnOptions.d.ts +9 -4
  15. package/src/AdaptableOptions/CommentOptions.d.ts +20 -9
  16. package/src/AdaptableOptions/ContextMenuOptions.d.ts +94 -0
  17. package/src/AdaptableOptions/CustomSortOptions.d.ts +2 -2
  18. package/src/AdaptableOptions/DataImportOptions.d.ts +2 -2
  19. package/src/AdaptableOptions/FormatColumnOptions.d.ts +2 -2
  20. package/src/AdaptableOptions/GroupingOptions.d.ts +0 -26
  21. package/src/AdaptableOptions/NoteOptions.d.ts +12 -3
  22. package/src/AdaptableOptions/PredicateOptions.d.ts +2 -2
  23. package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
  24. package/src/AdaptableOptions/StateOptions.d.ts +6 -0
  25. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  26. package/src/Api/AdaptableApi.d.ts +16 -6
  27. package/src/Api/ColumnApi.d.ts +13 -0
  28. package/src/Api/ColumnMenuApi.d.ts +13 -0
  29. package/src/Api/{ScopeApi.d.ts → ColumnScopeApi.d.ts} +28 -28
  30. package/src/Api/CommentApi.d.ts +20 -22
  31. package/src/Api/ConfigApi.d.ts +3 -4
  32. package/src/Api/ContextMenuApi.d.ts +9 -0
  33. package/src/Api/EventApi.d.ts +7 -9
  34. package/src/Api/Events/CommentChanged.d.ts +11 -0
  35. package/src/Api/Events/CommentChanged.js +1 -0
  36. package/src/Api/Events/GridDataChanged.d.ts +1 -1
  37. package/src/Api/FlashingCellApi.d.ts +2 -2
  38. package/src/Api/GridApi.d.ts +32 -4
  39. package/src/Api/Implementation/ActionColumnApiImpl.js +3 -6
  40. package/src/Api/Implementation/ActionRowApiImpl.js +3 -7
  41. package/src/Api/Implementation/AdaptableApiImpl.d.ts +7 -5
  42. package/src/Api/Implementation/AdaptableApiImpl.js +9 -5
  43. package/src/Api/Implementation/AlertApiImpl.js +8 -13
  44. package/src/Api/Implementation/ApiBase.d.ts +6 -4
  45. package/src/Api/Implementation/ApiBase.js +11 -5
  46. package/src/Api/Implementation/CalendarApiImpl.js +1 -6
  47. package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -5
  48. package/src/Api/Implementation/CellSummaryApiImpl.js +2 -23
  49. package/src/Api/Implementation/ChartingApiImpl.js +3 -3
  50. package/src/Api/Implementation/ColumnApiImpl.d.ts +5 -0
  51. package/src/Api/Implementation/ColumnApiImpl.js +45 -15
  52. package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
  53. package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +8 -0
  54. package/src/Api/Implementation/ColumnMenuApiImpl.js +12 -0
  55. package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +33 -0
  56. package/src/Api/Implementation/{ScopeApiImpl.js → ColumnScopeApiImpl.js} +46 -13
  57. package/src/Api/Implementation/CommentsApiImpl.d.ts +4 -5
  58. package/src/Api/Implementation/CommentsApiImpl.js +6 -6
  59. package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
  60. package/src/Api/Implementation/ConfigApiImpl.js +21 -25
  61. package/src/Api/Implementation/ContextMenuApiImpl.d.ts +7 -0
  62. package/src/Api/Implementation/ContextMenuApiImpl.js +9 -0
  63. package/src/Api/Implementation/DashboardApiImpl.js +1 -6
  64. package/src/Api/Implementation/ExportApiImpl.js +5 -10
  65. package/src/Api/Implementation/ExpressionApiImpl.js +14 -19
  66. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -1
  67. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +2 -2
  68. package/src/Api/Implementation/FlashingCellApiImpl.js +3 -8
  69. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  70. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  71. package/src/Api/Implementation/GridApiImpl.d.ts +9 -2
  72. package/src/Api/Implementation/GridApiImpl.js +52 -11
  73. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -7
  74. package/src/Api/Implementation/LayoutApiImpl.js +6 -15
  75. package/src/Api/Implementation/{NotesApiImpl.d.ts → NoteApiImpl.d.ts} +8 -8
  76. package/src/Api/Implementation/{NotesApiImpl.js → NoteApiImpl.js} +12 -12
  77. package/src/Api/Implementation/OptionsApiImpl.d.ts +6 -5
  78. package/src/Api/Implementation/OptionsApiImpl.js +7 -4
  79. package/src/Api/Implementation/PredicateApiImpl.js +2 -2
  80. package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
  81. package/src/Api/Implementation/TeamSharingApiImpl.js +3 -15
  82. package/src/Api/Implementation/ThemeApiImpl.js +2 -7
  83. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +14 -8
  84. package/src/Api/Implementation/UserInterfaceApiImpl.js +32 -27
  85. package/src/Api/Internal/ActionRowInternalApi.d.ts +1 -0
  86. package/src/Api/Internal/ActionRowInternalApi.js +19 -46
  87. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
  88. package/src/Api/Internal/AdaptableInternalApi.js +16 -30
  89. package/src/Api/Internal/AlertInternalApi.d.ts +2 -2
  90. package/src/Api/Internal/AlertInternalApi.js +7 -20
  91. package/src/Api/Internal/CalculatedColumnInternalApi.js +10 -16
  92. package/src/Api/Internal/ChartingInternalApi.js +13 -13
  93. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
  94. package/src/Api/Internal/ColumnFilterInternalApi.js +24 -30
  95. package/src/Api/Internal/ColumnInternalApi.d.ts +2 -0
  96. package/src/Api/Internal/ColumnInternalApi.js +7 -1
  97. package/src/Api/Internal/CommentsInternalApi.d.ts +1 -1
  98. package/src/Api/Internal/CommentsInternalApi.js +3 -2
  99. package/src/Api/Internal/CustomSortInternalApi.js +1 -1
  100. package/src/Api/Internal/DashboardInternalApi.js +5 -11
  101. package/src/Api/Internal/DataImportInternalApi.js +3 -9
  102. package/src/Api/Internal/DataSetInternalApi.js +2 -7
  103. package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
  104. package/src/Api/Internal/ExportInternalApi.js +8 -5
  105. package/src/Api/Internal/ExpressionInternalApi.js +3 -13
  106. package/src/Api/Internal/Fdc3InternalApi.js +3 -12
  107. package/src/Api/Internal/FormatColumnInternalApi.d.ts +3 -6
  108. package/src/Api/Internal/FormatColumnInternalApi.js +37 -30
  109. package/src/Api/Internal/FreeTextColumnInternalApi.js +4 -3
  110. package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
  111. package/src/Api/Internal/GridFilterInternalApi.js +8 -8
  112. package/src/Api/Internal/GridInternalApi.d.ts +2 -0
  113. package/src/Api/Internal/GridInternalApi.js +28 -40
  114. package/src/Api/Internal/LayoutInternalApi.d.ts +2 -0
  115. package/src/Api/Internal/LayoutInternalApi.js +26 -19
  116. package/src/Api/Internal/NoteInternalApi.d.ts +4 -0
  117. package/src/Api/Internal/{NotesInternalApi.js → NoteInternalApi.js} +4 -3
  118. package/src/Api/Internal/PredicateInternalApi.d.ts +6 -6
  119. package/src/Api/Internal/PredicateInternalApi.js +5 -40
  120. package/src/Api/Internal/ScheduleInternalApi.js +1 -6
  121. package/src/Api/Internal/StyledColumnInternalApi.d.ts +2 -2
  122. package/src/Api/Internal/StyledColumnInternalApi.js +8 -9
  123. package/src/Api/Internal/SystemStatusInternalApi.js +1 -7
  124. package/src/Api/Internal/TeamSharingInternalApi.js +2 -7
  125. package/src/Api/Internal/ThemeInternalApi.js +1 -1
  126. package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
  127. package/src/Api/LayoutApi.d.ts +9 -12
  128. package/src/Api/NoteApi.d.ts +48 -0
  129. package/src/Api/NoteApi.js +1 -0
  130. package/src/Api/OptionsApi.d.ts +14 -10
  131. package/src/Api/UserInterfaceApi.d.ts +15 -13
  132. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  133. package/src/PredefinedConfig/AlertState.d.ts +2 -2
  134. package/src/PredefinedConfig/CommentState.d.ts +27 -23
  135. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  136. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +4 -4
  137. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
  138. package/src/PredefinedConfig/Common/CellSummary.d.ts +5 -14
  139. package/src/PredefinedConfig/Common/{AdaptableScope.d.ts → ColumnScope.d.ts} +1 -1
  140. package/src/PredefinedConfig/Common/ColumnScope.js +1 -0
  141. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +1 -5
  142. package/src/PredefinedConfig/Common/Enums.d.ts +4 -1
  143. package/src/PredefinedConfig/Common/Enums.js +3 -0
  144. package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +2 -2
  145. package/src/PredefinedConfig/Common/Menu.d.ts +39 -4
  146. package/src/PredefinedConfig/Common/Menu.js +125 -1
  147. package/src/PredefinedConfig/Common/RowScope.d.ts +17 -0
  148. package/src/PredefinedConfig/Common/RowScope.js +1 -0
  149. package/src/PredefinedConfig/Common/RowSummary.d.ts +15 -1
  150. package/src/PredefinedConfig/Common/RowSummary.js +16 -0
  151. package/src/PredefinedConfig/Common/TransposeConfig.d.ts +30 -0
  152. package/src/PredefinedConfig/Common/TransposeConfig.js +1 -0
  153. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  154. package/src/PredefinedConfig/Common/Types.js +4 -1
  155. package/src/PredefinedConfig/ExportState.d.ts +2 -2
  156. package/src/PredefinedConfig/FlashingCellState.d.ts +2 -2
  157. package/src/PredefinedConfig/FormatColumnState.d.ts +9 -5
  158. package/src/PredefinedConfig/LayoutState.d.ts +2 -2
  159. package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +4 -4
  160. package/src/PredefinedConfig/NoteState.js +1 -0
  161. package/src/PredefinedConfig/PlusMinusState.d.ts +2 -2
  162. package/src/PredefinedConfig/PopupState.d.ts +1 -2
  163. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  164. package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
  165. package/src/PredefinedConfig/ShortcutState.d.ts +2 -2
  166. package/src/PredefinedConfig/StyledColumnState.d.ts +5 -5
  167. package/src/PredefinedConfig/SystemState.d.ts +5 -4
  168. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -4
  169. package/src/Redux/ActionsReducers/CommentsRedux.js +0 -34
  170. package/src/Redux/ActionsReducers/LayoutRedux.js +12 -10
  171. package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
  172. package/src/Redux/ActionsReducers/{NotesRedux.js → NoteRedux.js} +24 -24
  173. package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -13
  174. package/src/Redux/ActionsReducers/PopupRedux.js +0 -19
  175. package/src/Redux/ActionsReducers/SystemRedux.d.ts +11 -5
  176. package/src/Redux/ActionsReducers/SystemRedux.js +12 -9
  177. package/src/Redux/Store/AdaptableStore.js +40 -33
  178. package/src/Strategy/AdaptableModuleBase.d.ts +10 -10
  179. package/src/Strategy/AdaptableModuleBase.js +13 -16
  180. package/src/Strategy/AlertModule.d.ts +3 -2
  181. package/src/Strategy/AlertModule.js +4 -4
  182. package/src/Strategy/BulkUpdateModule.d.ts +3 -2
  183. package/src/Strategy/BulkUpdateModule.js +2 -1
  184. package/src/Strategy/CalculatedColumnModule.d.ts +3 -4
  185. package/src/Strategy/CalculatedColumnModule.js +18 -14
  186. package/src/Strategy/CellSummaryModule.d.ts +9 -9
  187. package/src/Strategy/CellSummaryModule.js +96 -107
  188. package/src/Strategy/ColumnFilterModule.d.ts +3 -3
  189. package/src/Strategy/ColumnFilterModule.js +36 -57
  190. package/src/Strategy/ColumnInfoModule.d.ts +3 -3
  191. package/src/Strategy/ColumnInfoModule.js +6 -4
  192. package/src/Strategy/CommentModule.d.ts +12 -0
  193. package/src/Strategy/CommentModule.js +70 -0
  194. package/src/Strategy/CustomSortModule.d.ts +1 -2
  195. package/src/Strategy/CustomSortModule.js +3 -2
  196. package/src/Strategy/DashboardModule.d.ts +3 -3
  197. package/src/Strategy/DashboardModule.js +11 -21
  198. package/src/Strategy/DataImportModule.d.ts +4 -4
  199. package/src/Strategy/DataImportModule.js +8 -8
  200. package/src/Strategy/ExportModule.d.ts +1 -2
  201. package/src/Strategy/ExportModule.js +58 -44
  202. package/src/Strategy/Fdc3Module.d.ts +1 -1
  203. package/src/Strategy/Fdc3Module.js +3 -13
  204. package/src/Strategy/FlashingCellModule.d.ts +4 -3
  205. package/src/Strategy/FlashingCellModule.js +10 -10
  206. package/src/Strategy/FormatColumnModule.d.ts +1 -1
  207. package/src/Strategy/FormatColumnModule.js +29 -47
  208. package/src/Strategy/FreeTextColumnModule.d.ts +1 -2
  209. package/src/Strategy/FreeTextColumnModule.js +2 -2
  210. package/src/Strategy/GridInfoModule.d.ts +3 -3
  211. package/src/Strategy/GridInfoModule.js +5 -3
  212. package/src/Strategy/Interface/IModule.d.ts +4 -4
  213. package/src/Strategy/LayoutModule.d.ts +4 -10
  214. package/src/Strategy/LayoutModule.js +50 -150
  215. package/src/Strategy/NoteModule.d.ts +10 -0
  216. package/src/Strategy/NoteModule.js +55 -0
  217. package/src/Strategy/PlusMinusModule.d.ts +1 -2
  218. package/src/Strategy/PlusMinusModule.js +5 -5
  219. package/src/Strategy/SettingsPanelModule.d.ts +3 -3
  220. package/src/Strategy/SettingsPanelModule.js +6 -6
  221. package/src/Strategy/ShortcutModule.js +1 -1
  222. package/src/Strategy/SmartEditModule.d.ts +3 -2
  223. package/src/Strategy/SmartEditModule.js +2 -1
  224. package/src/Strategy/StyledColumnModule.d.ts +2 -1
  225. package/src/Strategy/StyledColumnModule.js +42 -22
  226. package/src/Strategy/SystemStatusModule.d.ts +3 -3
  227. package/src/Strategy/SystemStatusModule.js +6 -3
  228. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +4 -2
  229. package/src/Strategy/Utilities/getScopeViewItems.d.ts +2 -2
  230. package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
  231. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  232. package/src/Utilities/Constants/GeneralConstants.js +1 -0
  233. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  234. package/src/Utilities/Constants/ModuleConstants.js +6 -6
  235. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
  236. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +2 -2
  237. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +143 -7
  238. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
  239. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  240. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
  241. package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -1
  242. package/src/Utilities/Helpers/AdaptableHelper.js +19 -0
  243. package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
  244. package/src/Utilities/MenuItem.d.ts +10 -7
  245. package/src/Utilities/MenuItem.js +6 -3
  246. package/src/Utilities/ObjectFactory.d.ts +3 -3
  247. package/src/Utilities/ObjectFactory.js +7 -25
  248. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -0
  249. package/src/Utilities/Services/AggregatedScalarLiveValue.js +12 -10
  250. package/src/Utilities/Services/CellPopupService.js +4 -4
  251. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
  252. package/src/Utilities/Services/LicenseService/index.js +1 -193
  253. package/src/Utilities/Services/ModuleService.js +6 -2
  254. package/src/Utilities/Services/QueryLanguageService.js +2 -2
  255. package/src/Utilities/Services/ReportService.d.ts +7 -5
  256. package/src/Utilities/Services/ReportService.js +245 -26
  257. package/src/Utilities/Services/RowSummaryService.d.ts +26 -0
  258. package/src/Utilities/Services/RowSummaryService.js +155 -0
  259. package/src/Utilities/Services/ValidationService.js +2 -2
  260. package/src/Utilities/adaptableQlUtils.d.ts +2 -0
  261. package/src/Utilities/adaptableQlUtils.js +14 -0
  262. package/src/Utilities/license/decode.js +1 -65
  263. package/src/Utilities/license/hashing.js +1 -43
  264. package/src/View/AdaptableViewFactory.js +2 -2
  265. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +1 -1
  266. package/src/View/Alert/AlertEntityRow.js +1 -1
  267. package/src/View/Alert/Utilities/getAvailablePredicates.d.ts +2 -2
  268. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -1
  269. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -2
  270. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  271. package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -2
  272. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
  273. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +3 -3
  274. package/src/View/ColumnInfo/ColumnInfo.js +1 -1
  275. package/src/View/Comments/CommentsEditor.js +28 -17
  276. package/src/View/Comments/CommentsPopup.js +15 -7
  277. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  278. package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.d.ts +5 -0
  279. package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.js +42 -0
  280. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  281. package/src/View/Components/CellPopup/index.d.ts +1 -0
  282. package/src/View/Components/CellPopup/index.js +6 -3
  283. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.d.ts +3 -3
  284. package/src/View/Components/EntityRulesEditor/index.d.ts +3 -3
  285. package/src/View/Components/FilterForm/FilterForm.js +20 -12
  286. package/src/View/Components/FilterForm/QuickFilterForm.js +15 -8
  287. package/src/View/Components/FilterForm/QuickFilterValues.js +39 -23
  288. package/src/View/Components/NewScopeComponent.d.ts +5 -5
  289. package/src/View/Components/NewScopeComponent.js +6 -4
  290. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -1
  291. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +10 -1
  292. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +7 -10
  293. package/src/View/Components/RangesComponent.d.ts +2 -2
  294. package/src/View/Components/RangesComponent.js +1 -1
  295. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
  296. package/src/View/Components/SharedProps/WizardScopeState.d.ts +2 -2
  297. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  298. package/src/View/Components/ValueSelector/index.js +2 -2
  299. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
  300. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -2
  301. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -1
  302. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +2 -2
  303. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +20 -7
  304. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
  305. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  306. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +27 -12
  307. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
  308. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
  309. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
  310. package/src/View/GridFilter/GridFilterViewPanel.js +3 -3
  311. package/src/View/GridFilter/useGridFilterExpressionEditor.js +1 -1
  312. package/src/View/Layout/LayoutViewPanel.js +2 -1
  313. package/src/View/Layout/TransposedPopup.js +20 -19
  314. package/src/View/Layout/Wizard/LayoutWizard.js +38 -3
  315. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  316. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  317. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +18 -2
  318. package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +9 -0
  319. package/src/View/Layout/Wizard/sections/RowSummarySection.js +174 -0
  320. package/src/View/License/LicenseWatermark.js +1 -61
  321. package/src/View/Note/NotePopup.d.ts +2 -0
  322. package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +14 -9
  323. package/src/View/PlusMinus/PlusMinusSummary.js +2 -2
  324. package/src/View/SmartEdit/SmartEditPopup.js +1 -1
  325. package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
  326. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +5 -7
  327. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -1
  328. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  329. package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +38 -14
  330. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -1
  331. package/src/agGrid/ActionColumnRenderer.js +40 -4
  332. package/src/agGrid/AdaptableAgGrid.d.ts +11 -16
  333. package/src/agGrid/AdaptableAgGrid.js +230 -250
  334. package/src/agGrid/AgGridAdapter.d.ts +4 -2
  335. package/src/agGrid/AgGridAdapter.js +12 -0
  336. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -3
  337. package/src/agGrid/AgGridColumnAdapter.js +42 -71
  338. package/src/agGrid/AgGridMenuAdapter.d.ts +25 -8
  339. package/src/agGrid/AgGridMenuAdapter.js +405 -74
  340. package/src/agGrid/AgGridOptionsService.d.ts +4 -1
  341. package/src/agGrid/AgGridOptionsService.js +22 -0
  342. package/src/agGrid/BadgeRenderer.d.ts +2 -2
  343. package/src/agGrid/BadgeRenderer.js +24 -11
  344. package/src/agGrid/PercentBarRenderer.js +2 -1
  345. package/src/agGrid/buildSortedColumnStateForLayout.d.ts +7 -0
  346. package/src/agGrid/buildSortedColumnStateForLayout.js +120 -0
  347. package/src/agGrid/defaultAdaptableOptions.js +7 -12
  348. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
  349. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  350. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -2
  351. package/src/agGrid/sortColumnStateForVisibleColumns.d.ts +12 -0
  352. package/src/agGrid/sortColumnStateForVisibleColumns.js +46 -0
  353. package/src/agGrid/weightedAverage.d.ts +0 -2
  354. package/src/agGrid/weightedAverage.js +0 -54
  355. package/src/components/Accordion.d.ts +7 -0
  356. package/src/components/Accordion.js +36 -0
  357. package/src/components/CheckBox/index.js +1 -1
  358. package/src/components/Datepicker/index.js +10 -2
  359. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
  360. package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
  361. package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -14
  362. package/src/components/Input/index.d.ts +1 -2
  363. package/src/components/ProgressIndicator/ProgressIndicator.js +15 -6
  364. package/src/components/Select/Select.d.ts +1 -1
  365. package/src/components/Select/Select.js +3 -1
  366. package/src/components/Textarea/index.d.ts +2 -2
  367. package/src/components/icons/collapse-all.d.ts +3 -0
  368. package/src/components/icons/collapse-all.js +4 -0
  369. package/src/components/icons/copy.d.ts +3 -0
  370. package/src/components/icons/copy.js +4 -0
  371. package/src/components/icons/csv.d.ts +3 -0
  372. package/src/components/icons/csv.js +4 -0
  373. package/src/components/icons/data-object.d.ts +3 -0
  374. package/src/components/icons/data-object.js +4 -0
  375. package/src/components/icons/excel.d.ts +3 -0
  376. package/src/components/icons/excel.js +5 -0
  377. package/src/components/icons/expand-all.d.ts +3 -0
  378. package/src/components/icons/expand-all.js +4 -0
  379. package/src/components/icons/filter-off.d.ts +3 -0
  380. package/src/components/icons/filter-off.js +4 -0
  381. package/src/components/icons/grid-info.d.ts +3 -0
  382. package/src/components/icons/grid-info.js +4 -0
  383. package/src/components/icons/index.js +22 -0
  384. package/src/components/icons/note.js +2 -2
  385. package/src/components/icons/select-all.d.ts +3 -0
  386. package/src/components/icons/select-all.js +4 -0
  387. package/src/components/icons/select-fwd.d.ts +3 -0
  388. package/src/components/icons/select-fwd.js +4 -0
  389. package/src/components/icons/select-off.d.ts +3 -0
  390. package/src/components/icons/select-off.js +4 -0
  391. package/src/env.js +2 -2
  392. package/src/metamodel/adaptable.metamodel.d.ts +222 -116
  393. package/src/metamodel/adaptable.metamodel.js +1 -9426
  394. package/src/parser/src/parser.js +576 -553
  395. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
  396. package/src/parser/src/predicate/mapQlPredicateToExpression.js +3 -4
  397. package/src/parser/src/types.d.ts +2 -2
  398. package/src/parser/src/types.js +1 -2
  399. package/src/types.d.ts +32 -25
  400. package/tsconfig.esm.tsbuildinfo +1 -1
  401. package/src/AdaptableOptions/MenuOptions.d.ts +0 -234
  402. package/src/AdaptableOptions/MenuOptions.js +0 -95
  403. package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
  404. package/src/Api/Implementation/ScopeApiImpl.d.ts +0 -33
  405. package/src/Api/Internal/NotesInternalApi.d.ts +0 -4
  406. package/src/Api/NotesApi.d.ts +0 -48
  407. package/src/PredefinedConfig/CellAddress.d.ts +0 -13
  408. package/src/PredefinedConfig/CellAddress.js +0 -4
  409. package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -38
  410. package/src/Strategy/CommentsModule.d.ts +0 -17
  411. package/src/Strategy/CommentsModule.js +0 -81
  412. package/src/Strategy/NotesModule.d.ts +0 -10
  413. package/src/Strategy/NotesModule.js +0 -56
  414. package/src/Utilities/Services/SummaryService.d.ts +0 -19
  415. package/src/Utilities/Services/SummaryService.js +0 -29
  416. package/src/View/Notes/NotesPopup.d.ts +0 -2
  417. /package/src/{Api/Events/CommentsChangedInfo.js → AdaptableOptions/ColumnMenuOptions.js} +0 -0
  418. /package/src/{Api/NotesApi.js → AdaptableOptions/ContextMenuOptions.js} +0 -0
  419. /package/src/Api/{ScopeApi.js → ColumnMenuApi.js} +0 -0
  420. /package/src/{PredefinedConfig/Common/AdaptableScope.js → Api/ColumnScopeApi.js} +0 -0
  421. /package/src/{PredefinedConfig/NotesState.js → Api/ContextMenuApi.js} +0 -0
  422. /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
  423. /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
@@ -15,11 +15,7 @@ export class TeamSharingApiImpl extends ApiBase {
15
15
  return [];
16
16
  }
17
17
  const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
18
- const sharedEntitiesContext = {
19
- adaptableId: this.adaptable.adaptableOptions.adaptableId,
20
- userName: this.adaptable.adaptableOptions.userName,
21
- adaptableApi: this.getAdaptableApi(),
22
- };
18
+ const sharedEntitiesContext = this.getAdaptableApi().internalApi.buildBaseContext();
23
19
  let loadedSharedEntities = await teamSharingOptions.loadSharedEntities(sharedEntitiesContext);
24
20
  // with v15 we introduced 2 types of SharedEntity: AdaptableSharedEntity (basically the old one) and the new CustomSharedEntity
25
21
  // for backwards compatibility, we add default the 'EntityType' property to 'adaptableEntity'
@@ -40,11 +36,7 @@ export class TeamSharingApiImpl extends ApiBase {
40
36
  return false;
41
37
  }
42
38
  const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
43
- const sharedEntitiesContext = {
44
- adaptableId: this.adaptable.adaptableOptions.adaptableId,
45
- userName: this.adaptable.adaptableOptions.userName,
46
- adaptableApi: this.getAdaptableApi(),
47
- };
39
+ const sharedEntitiesContext = this.getAdaptableApi().internalApi.buildBaseContext();
48
40
  const sharedEntitiesAfterCustomisation = teamSharingOptions.saveSharedEntities(sharedEntities, sharedEntitiesContext);
49
41
  await teamSharingOptions.persistSharedEntities(sharedEntitiesAfterCustomisation, sharedEntitiesContext);
50
42
  return true;
@@ -100,11 +92,7 @@ export class TeamSharingApiImpl extends ApiBase {
100
92
  this.logError(`Could NOT import custom shared entity because 'TeamSharingOptions.handleCustomSharedEntityImport(...)' is NOT defined!`, sharedEntity);
101
93
  return;
102
94
  }
103
- customSharedEntityImportHandler(sharedEntity, {
104
- adaptableApi: this.getAdaptableApi(),
105
- adaptableId: this.adaptable.adaptableOptions.adaptableId,
106
- userName: this.adaptable.adaptableOptions.userName,
107
- });
95
+ customSharedEntityImportHandler(sharedEntity, this.getAdaptableApi().internalApi.buildBaseContext());
108
96
  }
109
97
  }
110
98
  getTeamSharingState() {
@@ -57,13 +57,8 @@ export class ThemeApiImpl extends ApiBase {
57
57
  return;
58
58
  }
59
59
  this.adaptable.applyAdaptableTheme(currentTheme);
60
- let themeChangedInfo = {
61
- adaptableApi: this.getAdaptableApi(),
62
- theme: currentTheme,
63
- userName: this.adaptable.api.optionsApi.getUserName(),
64
- adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
65
- };
66
- this.adaptable.api.eventApi.emit('ThemeChanged', themeChangedInfo);
60
+ let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { theme: currentTheme });
61
+ this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
67
62
  }
68
63
  getUserThemes() {
69
64
  var _a;
@@ -1,14 +1,14 @@
1
- import { ApiBase } from './ApiBase';
2
- import { UserInterfaceApi } from '../UserInterfaceApi';
1
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
2
+ import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
3
3
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
4
4
  import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
5
- import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
6
- import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
7
- import { AdaptableObjectTag, CustomWindowConfig, GridCell } from '../../types';
5
+ import { AdaptableFrameworkComponent, AdaptableObjectTag, CustomRenderFunction, CustomWindowConfig, GridCell } from '../../types';
8
6
  import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
9
- import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
+ import { UserInterfaceApi } from '../UserInterfaceApi';
8
+ import { ApiBase } from './ApiBase';
10
9
  export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
11
10
  internalApi: UserInterfaceInternalApi;
11
+ private showProgressIndicatorTimeout;
12
12
  constructor(adaptable: IAdaptable);
13
13
  getColorPalette(): string[];
14
14
  getStyleClassNames(): string[] | undefined;
@@ -24,14 +24,20 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
24
24
  getEditLookUpItems(): EditLookUpPermittedValues[];
25
25
  getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
26
26
  getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
27
- addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
28
- addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
29
27
  getEditableCellStyle(): AdaptableStyle | undefined;
30
28
  getReadOnlyCellStyle(): AdaptableStyle | undefined;
31
29
  getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
32
30
  getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | import("../../types").CustomIcon;
33
31
  showLoadingScreen(): void;
34
32
  hideLoadingScreen(): void;
33
+ showProgressIndicator(config: {
34
+ text: string;
35
+ message?: string;
36
+ render?: CustomRenderFunction;
37
+ frameworkComponent?: AdaptableFrameworkComponent;
38
+ delay?: number;
39
+ }): void;
40
+ hideProgressIndicator(): void;
35
41
  openCustomWindowPopup(config: CustomWindowConfig): {
36
42
  close: () => void;
37
43
  };
@@ -1,11 +1,14 @@
1
- import { ApiBase } from './ApiBase';
2
1
  import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
2
+ import { SystemProgressIndicatorHide, SystemProgressIndicatorShow, } from '../../Redux/ActionsReducers/SystemRedux';
3
3
  import { ArrayExtensions } from '../../Utilities/Extensions/ArrayExtensions';
4
- import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
4
+ import { logDeprecation } from '../../Utilities/logDeprecation';
5
5
  import { CUSTOM_WINDOW_FACTORY_ID } from '../../View/Components/Popups/WindowPopups/WindowPopups';
6
+ import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
7
+ import { ApiBase } from './ApiBase';
6
8
  export class UserInterfaceApiImpl extends ApiBase {
7
9
  constructor(adaptable) {
8
10
  super(adaptable);
11
+ this.showProgressIndicatorTimeout = null;
9
12
  this.internalApi = new UserInterfaceInternalApi(adaptable);
10
13
  }
11
14
  getColorPalette() {
@@ -39,21 +42,21 @@ export class UserInterfaceApiImpl extends ApiBase {
39
42
  // columns id
40
43
  permittedValuesItem = permittedValues.find((permittedValue) => {
41
44
  return ('ColumnIds' in permittedValue.scope &&
42
- this.getAdaptableApi().scopeApi.isColumnInScope(column, permittedValue.scope));
45
+ this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
43
46
  });
44
47
  if (permittedValuesItem) {
45
48
  return permittedValuesItem;
46
49
  }
47
50
  permittedValuesItem = permittedValues.find((permittedValue) => {
48
51
  return ('DataTypes' in permittedValue.scope &&
49
- this.getAdaptableApi().scopeApi.isColumnInScope(column, permittedValue.scope));
52
+ this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
50
53
  });
51
54
  if (permittedValuesItem) {
52
55
  return permittedValuesItem;
53
56
  }
54
57
  permittedValuesItem = permittedValues.find((permittedValue) => {
55
58
  return ('All' in permittedValue.scope &&
56
- this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
59
+ this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
57
60
  });
58
61
  if (permittedValuesItem) {
59
62
  return permittedValuesItem;
@@ -73,12 +76,7 @@ export class UserInterfaceApiImpl extends ApiBase {
73
76
  // first do the function then get hardcoded items
74
77
  if (permittedValues != null && typeof permittedValues === 'function') {
75
78
  if (column) {
76
- const permittedValuesParams = {
77
- adaptableApi: this.getAdaptableApi(),
78
- userName: this.getOptions().userName,
79
- adaptableId: this.getOptions().adaptableId,
80
- column: column,
81
- };
79
+ const permittedValuesParams = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { column: column });
82
80
  return permittedValues(permittedValuesParams);
83
81
  }
84
82
  }
@@ -140,15 +138,7 @@ export class UserInterfaceApiImpl extends ApiBase {
140
138
  if (!editLookUpItem || !gridCell || !gridCell.column) {
141
139
  return undefined;
142
140
  }
143
- return this.adaptable.api.gridApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
144
- }
145
- addColumnMenuItem(userMenuItem) {
146
- var _a;
147
- (_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
148
- }
149
- addContextMenuItem(userMenuItem) {
150
- var _a;
151
- (_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
141
+ return this.getAdaptableApi().gridApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
152
142
  }
153
143
  getEditableCellStyle() {
154
144
  return this.getUserInterfaceOptions().editableCellStyle;
@@ -159,11 +149,7 @@ export class UserInterfaceApiImpl extends ApiBase {
159
149
  getAdaptableObjectTags() {
160
150
  const objectTags = this.getUserInterfaceOptions().objectTags;
161
151
  if (objectTags != null && typeof objectTags === 'function') {
162
- return objectTags({
163
- adaptableApi: this.adaptable.api,
164
- userName: this.getOptions().userName,
165
- adaptableId: this.getOptions().adaptableId,
166
- });
152
+ return objectTags(this.getAdaptableApi().internalApi.buildBaseContext());
167
153
  }
168
154
  else {
169
155
  let arr = objectTags;
@@ -183,10 +169,29 @@ export class UserInterfaceApiImpl extends ApiBase {
183
169
  return customIcon;
184
170
  }
185
171
  showLoadingScreen() {
186
- this.dispatchAction(PopupRedux.PopupShowLoading());
172
+ logDeprecation(this.adaptable.logger, 'UserInterfaceApi', 'showLoadingScreen', 'showProgressIndicator');
173
+ this.showProgressIndicator({ text: 'Loading' });
187
174
  }
188
175
  hideLoadingScreen() {
189
- this.dispatchAction(PopupRedux.PopupHideLoading());
176
+ logDeprecation(this.adaptable.logger, 'UserInterfaceApi', 'hideLoadingScreen', 'hideProgressIndicator');
177
+ this.hideProgressIndicator();
178
+ }
179
+ showProgressIndicator(config) {
180
+ if (config.delay) {
181
+ this.showProgressIndicatorTimeout = setTimeout(() => {
182
+ this.dispatchAction(SystemProgressIndicatorShow(config));
183
+ }, config.delay);
184
+ }
185
+ else {
186
+ this.dispatchAction(SystemProgressIndicatorShow(config));
187
+ }
188
+ }
189
+ hideProgressIndicator() {
190
+ if (this.showProgressIndicatorTimeout) {
191
+ clearTimeout(this.showProgressIndicatorTimeout);
192
+ this.showProgressIndicatorTimeout = null;
193
+ }
194
+ this.dispatchAction(SystemProgressIndicatorHide());
190
195
  }
191
196
  openCustomWindowPopup(config) {
192
197
  const close = () => {
@@ -16,6 +16,7 @@ export declare class ActionRowInternalApi extends ApiBase {
16
16
  private buildActionRowFields;
17
17
  private showColumnInActionRowForm;
18
18
  private buidActionRowButtons;
19
+ private prepareCreateData;
19
20
  private prepareEditData;
20
21
  private isColumnEditable;
21
22
  private buildFormField;
@@ -42,13 +42,7 @@ export class ActionRowInternalApi extends ApiBase {
42
42
  : this.actionRowFormOptions.formDescription;
43
43
  }
44
44
  buildFormParamContext(type, rowNode) {
45
- return {
46
- rowNode,
47
- adaptableApi: this.getAdaptableApi(),
48
- userName: this.getOptions().userName,
49
- adaptableId: this.getOptions().adaptableId,
50
- type: type,
51
- };
45
+ return Object.assign(Object.assign({ rowNode }, this.getAdaptableApi().internalApi.buildBaseContext()), { type: type });
52
46
  }
53
47
  buildActionRowFields(actionRowType, rowNode) {
54
48
  const relevantColumns = this.getAdaptableApi()
@@ -64,13 +58,8 @@ export class ActionRowInternalApi extends ApiBase {
64
58
  showColumnInActionRowForm(adaptableColumn, actionRowType) {
65
59
  const showColumnFn = this.getActionRowOptions().actionRowFormOptions.showColumninActionRowForm;
66
60
  if (typeof showColumnFn === 'function') {
67
- return showColumnFn({
68
- adaptableApi: this.adaptable.api,
69
- userName: this.getOptions().userName,
70
- adaptableId: this.getOptions().adaptableId,
71
- adaptableColumn,
72
- actionRowType,
73
- });
61
+ return showColumnFn(Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { adaptableColumn,
62
+ actionRowType }));
74
63
  }
75
64
  return true;
76
65
  }
@@ -98,28 +87,24 @@ export class ActionRowInternalApi extends ApiBase {
98
87
  // textOutput should not be saved, their values are set to display values
99
88
  // we need to filter out the textOutput fields and add the primaryKey
100
89
  const eventInfo = type === 'rowCreated'
101
- ? {
102
- type: 'rowCreated',
103
- formData: context.formData,
104
- adaptableApi: context.adaptableApi,
105
- userName: this.getOptions().userName,
106
- adaptableId: this.getOptions().adaptableId,
107
- clonedRowNode: rowNode,
108
- }
109
- : {
110
- type: 'rowEdited',
111
- formData: this.prepareEditData(formFields, context),
112
- rowNode: rowNode,
113
- adaptableApi: context.adaptableApi,
114
- userName: this.getOptions().userName,
115
- adaptableId: this.getOptions().adaptableId,
116
- };
90
+ ? Object.assign(Object.assign({ type: 'rowCreated', formData: this.prepareCreateData(formFields, context) }, this.getAdaptableApi().internalApi.buildBaseContext()), { clonedRowNode: rowNode }) : Object.assign({ type: 'rowEdited', formData: this.prepareEditData(formFields, context), rowNode: rowNode }, this.getAdaptableApi().internalApi.buildBaseContext());
117
91
  this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
118
92
  (_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
119
93
  },
120
94
  };
121
95
  return [cancelButton, saveButton];
122
96
  }
97
+ // private getNullValueForColumn(column: AdaptableColumn) {}
98
+ prepareCreateData(formFields, context) {
99
+ // when creating we just omit values that are not set
100
+ const dataToSave = Object.assign({}, context.formData);
101
+ for (const formField of formFields) {
102
+ if (dataToSave[formField.name] === '') {
103
+ delete dataToSave[formField.name];
104
+ }
105
+ }
106
+ return dataToSave;
107
+ }
123
108
  prepareEditData(formFields, context) {
124
109
  const dataToSave = Object.assign({}, context.formData);
125
110
  for (const formField of formFields) {
@@ -164,14 +149,8 @@ export class ActionRowInternalApi extends ApiBase {
164
149
  return customFieldLabel !== null && customFieldLabel !== void 0 ? customFieldLabel : column.friendlyName;
165
150
  }
166
151
  buildFormFieldLabelContext(type, column, rowNode) {
167
- return {
168
- rowNode,
169
- column,
170
- adaptableApi: this.getAdaptableApi(),
171
- userName: this.getOptions().userName,
172
- adaptableId: this.getOptions().adaptableId,
173
- type: type,
174
- };
152
+ return Object.assign(Object.assign({ rowNode,
153
+ column }, this.getAdaptableApi().internalApi.buildBaseContext()), { type: type });
175
154
  }
176
155
  getFieldTypeFromColumnType(column) {
177
156
  switch (column.dataType) {
@@ -220,7 +199,7 @@ export class ActionRowInternalApi extends ApiBase {
220
199
  lockVisible: true,
221
200
  suppressColumnsToolPanel: true,
222
201
  suppressFiltersToolPanel: true,
223
- suppressMenu: true,
202
+ suppressHeaderMenuButton: true,
224
203
  suppressMovable: true,
225
204
  filter: false,
226
205
  sortable: false,
@@ -274,13 +253,7 @@ export class ActionRowInternalApi extends ApiBase {
274
253
  tooltip: 'Delete',
275
254
  onClick: (button, context) => {
276
255
  var _a, _b;
277
- const eventInfo = {
278
- type: 'rowDeleted',
279
- rowNode: context.rowNode,
280
- adaptableApi: context.adaptableApi,
281
- userName: context.userName,
282
- adaptableId: context.adaptableId,
283
- };
256
+ const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.getAdaptableApi().internalApi.buildBaseContext());
284
257
  this.getEventApi().emit('ActionRowSubmitted', eventInfo);
285
258
  (_b = (_a = this.getActionRowOptions().actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
286
259
  },
@@ -72,7 +72,7 @@ export declare class AdaptableInternalApi extends ApiBase {
72
72
  includeGroupRows?: boolean;
73
73
  filterFn?: (rowNode: IRowNode) => boolean;
74
74
  }): void;
75
- forAllVisibleRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
75
+ forAllVisibleRowNodesDo(func: (rowNode: IRowNode, index: number) => void, config?: {
76
76
  includeGroupRows?: boolean;
77
77
  filterFn?: (rowNode: IRowNode) => boolean;
78
78
  }): void;
@@ -89,7 +89,6 @@ export declare class AdaptableInternalApi extends ApiBase {
89
89
  destroyFrameworkComponent(containerDomNode: HTMLElement, frameworkComponent: AdaptableFrameworkComponent, componentType: 'toolPanel' | 'toolbar'): void;
90
90
  initializeDataChangeHistory(): void;
91
91
  executeWithProgressIndicator(label: string, executeFn: () => void, errorHandlingFn?: () => void): void;
92
- hideProgressIndicator(): void;
93
92
  getCorrectEnglishVariant(wordToSpell: string): string;
94
93
  shouldDisplayTagSections(): boolean;
95
94
  getAvailableTags(): AdaptableObjectTag[] | undefined;
@@ -105,8 +104,8 @@ export declare class AdaptableInternalApi extends ApiBase {
105
104
  getPreviousGroupedColumnsIndex(layoutId: string): {
106
105
  [key: string]: number;
107
106
  };
108
- getValueUsingField(rowData: Record<string, any>, columnValueKey: string): any;
109
- setValueUsingField(rowData: Record<string, any>, columnValueKey: string, newValue: any): Record<string, any>;
107
+ getValueUsingField(rowData: Record<string, any>, fieldName: string): any;
108
+ setValueUsingField(rowData: Record<string, any>, fieldName: string, newValue: any): Record<string, any>;
110
109
  findAdaptableObjectsByLookupCriteria<T extends AdaptableObjectWithScope>({ scope, tag, ids }: AdaptableObjectLookupCriteria, specificAdaptableObjects: T[]): T[];
111
110
  buildBaseContext(): BaseContext;
112
111
  getActionButtonsAndActionColumn(colDef: ColDef): {
@@ -1,6 +1,5 @@
1
1
  import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
2
2
  import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
3
- import { SystemProgressIndicatorHide, SystemProgressIndicatorShow, } from '../../Redux/ActionsReducers/SystemRedux';
4
3
  import * as GridRedux from '../../Redux/ActionsReducers/GridRedux';
5
4
  import * as DeadRedux from '../../Redux/DeadRedux';
6
5
  import { ApiBase } from '../Implementation/ApiBase';
@@ -249,7 +248,7 @@ export class AdaptableInternalApi extends ApiBase {
249
248
  }
250
249
  }
251
250
  executeWithProgressIndicator(label, executeFn, errorHandlingFn) {
252
- this.dispatchReduxAction(SystemProgressIndicatorShow(label));
251
+ this.getAdaptableApi().userInterfaceApi.showProgressIndicator({ text: label, delay: 300 });
253
252
  // setTimeout required to give the ProgressIndicator rendering a head-start (see RAF in ProgressIndicator implementation)
254
253
  setTimeout(() => {
255
254
  try {
@@ -257,14 +256,11 @@ export class AdaptableInternalApi extends ApiBase {
257
256
  }
258
257
  catch (error) {
259
258
  errorHandlingFn === null || errorHandlingFn === void 0 ? void 0 : errorHandlingFn();
260
- this.hideProgressIndicator();
259
+ this.getUserInterfaceApi().hideProgressIndicator();
261
260
  this.adaptable.logger.error('Unexpected error while executing a function with a progress indicator', error);
262
261
  }
263
262
  }, 16);
264
263
  }
265
- hideProgressIndicator() {
266
- this.dispatchReduxAction(SystemProgressIndicatorHide());
267
- }
268
264
  getCorrectEnglishVariant(wordToSpell) {
269
265
  if (wordToSpell.includes('our')) {
270
266
  return this.getUserInterfaceOptions().englishVariant == 'GB'
@@ -294,11 +290,7 @@ export class AdaptableInternalApi extends ApiBase {
294
290
  if (typeof this.adaptable.adaptableOptions.userInterfaceOptions.objectTags === 'function') {
295
291
  // sanitize the provided tags, just to be sure that the user does NOT break the UI
296
292
  return this.adaptable.adaptableOptions.userInterfaceOptions
297
- .objectTags({
298
- adaptableApi: this.adaptable.api,
299
- userName: this.getOptions().userName,
300
- adaptableId: this.getOptions().adaptableId,
301
- })
293
+ .objectTags(this.buildBaseContext())
302
294
  .filter((tag) => typeof tag === 'string');
303
295
  }
304
296
  }
@@ -315,13 +307,7 @@ export class AdaptableInternalApi extends ApiBase {
315
307
  }
316
308
  if (typeof this.adaptable.adaptableOptions.layoutOptions.layoutTagOptions
317
309
  .autoGenerateTagsForLayouts === 'function') {
318
- const autoGenerateTagsForLayoutsContext = {
319
- layouts: this.adaptable.api.layoutApi.getLayouts(),
320
- objectTags: this.getAdaptableApi().userInterfaceApi.getAdaptableObjectTags(),
321
- adaptableApi: this.adaptable.api,
322
- userName: this.getOptions().userName,
323
- adaptableId: this.getOptions().adaptableId,
324
- };
310
+ const autoGenerateTagsForLayoutsContext = Object.assign({ layouts: this.adaptable.api.layoutApi.getLayouts(), objectTags: this.getAdaptableApi().userInterfaceApi.getAdaptableObjectTags() }, this.buildBaseContext());
325
311
  const customGeneratedTags = this.adaptable.adaptableOptions.layoutOptions.layoutTagOptions.autoGenerateTagsForLayouts(autoGenerateTagsForLayoutsContext);
326
312
  // sanitize the provided tags, just to be sure that the user does NOT break the UI
327
313
  return customGeneratedTags.filter((tag) => typeof tag === 'string');
@@ -366,17 +352,17 @@ export class AdaptableInternalApi extends ApiBase {
366
352
  return (_a = SystemRedux.SystemPreviousGroupedColumnsSelector(this.getAdaptableState().System)) === null || _a === void 0 ? void 0 : _a[layoutId];
367
353
  }
368
354
  // "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/utils/object.ts#L205
369
- getValueUsingField(rowData, columnValueKey) {
370
- if (!rowData || !(columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.length)) {
355
+ getValueUsingField(rowData, fieldName) {
356
+ if (!rowData || !(fieldName === null || fieldName === void 0 ? void 0 : fieldName.length)) {
371
357
  return;
372
358
  }
373
- const isColumnValueKeyNested = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
359
+ const isColumnValueKeyNested = fieldName === null || fieldName === void 0 ? void 0 : fieldName.includes('.');
374
360
  // if no '.', then it's not a deep value
375
361
  if (!isColumnValueKeyNested) {
376
- return rowData[columnValueKey];
362
+ return rowData[fieldName];
377
363
  }
378
364
  // otherwise it is a deep value, so need to dig for it
379
- const fields = columnValueKey.split('.');
365
+ const fields = fieldName.split('.');
380
366
  let currentObject = rowData;
381
367
  for (let i = 0; i < fields.length; i++) {
382
368
  if (currentObject == null) {
@@ -387,22 +373,22 @@ export class AdaptableInternalApi extends ApiBase {
387
373
  return currentObject;
388
374
  }
389
375
  // "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/valueService/valueService.ts#L236
390
- setValueUsingField(rowData, columnValueKey, newValue) {
391
- if (!rowData || !(columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.length)) {
376
+ setValueUsingField(rowData, fieldName, newValue) {
377
+ if (!rowData || !(fieldName === null || fieldName === void 0 ? void 0 : fieldName.length)) {
392
378
  return;
393
379
  }
394
- const isColumnValueKeyContainsDots = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
380
+ const isColumnValueKeyContainsDots = fieldName === null || fieldName === void 0 ? void 0 : fieldName.includes('.');
395
381
  let valuesAreSame = false;
396
382
  if (!isColumnValueKeyContainsDots) {
397
383
  // soft comparison to match strings and numbers
398
- valuesAreSame = rowData[columnValueKey] == newValue;
384
+ valuesAreSame = rowData[fieldName] == newValue;
399
385
  if (!valuesAreSame) {
400
- rowData[columnValueKey] = newValue;
386
+ rowData[fieldName] = newValue;
401
387
  }
402
388
  }
403
389
  else {
404
390
  // otherwise it is a deep value, so need to dig for it
405
- const fieldPieces = columnValueKey.split('.');
391
+ const fieldPieces = fieldName.split('.');
406
392
  let currentObject = rowData;
407
393
  while (fieldPieces.length > 0 && currentObject) {
408
394
  const fieldPiece = fieldPieces.shift();
@@ -435,7 +421,7 @@ export class AdaptableInternalApi extends ApiBase {
435
421
  }
436
422
  // lastly filter by scope
437
423
  if (scope) {
438
- locatedAdaptableObjects = locatedAdaptableObjects.filter((adaptableObject) => this.getAdaptableApi().scopeApi.isScopeInScope(adaptableObject.Scope, scope));
424
+ locatedAdaptableObjects = locatedAdaptableObjects.filter((adaptableObject) => this.getAdaptableApi().columnScopeApi.isScopeInScope(adaptableObject.Scope, scope));
439
425
  }
440
426
  return locatedAdaptableObjects;
441
427
  }
@@ -5,7 +5,7 @@ import { AlertFormContext } from '../../AdaptableOptions/AlertOptions';
5
5
  import { AdaptableAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
6
6
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
7
7
  import { GridDataChangedInfo } from '../Events/GridDataChanged';
8
- import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
8
+ import { ColumnScope } from '../../PredefinedConfig/Common/ColumnScope';
9
9
  import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
10
10
  import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
11
11
  import { IRowNode } from '@ag-grid-community/core';
@@ -72,7 +72,7 @@ export declare class AlertInternalApi extends ApiBase {
72
72
  * Retrieves all Predicate Defs that match given Scope
73
73
  * @param scope the Scope to check
74
74
  */
75
- getAlertPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
75
+ getAlertPredicateDefsForScope(scope: ColumnScope): AdaptablePredicateDef[];
76
76
  /**
77
77
  * Returns a description of an Alert Definition
78
78
  * @param alertDefinition Alert Definition to use
@@ -80,12 +80,7 @@ export class AlertInternalApi extends ApiBase {
80
80
  */
81
81
  publishAlertFiredEvent(alertToFire) {
82
82
  const adaptableApi = this.getAdaptableApi();
83
- const alertFiredInfo = {
84
- adaptableApi: adaptableApi,
85
- alert: alertToFire,
86
- userName: adaptableApi.optionsApi.getUserName(),
87
- adaptableId: adaptableApi.optionsApi.getAdaptableId(),
88
- };
83
+ const alertFiredInfo = Object.assign({ alert: alertToFire }, this.getAdaptableApi().internalApi.buildBaseContext());
89
84
  this.getEventApi().emit('AlertFired', alertFiredInfo);
90
85
  }
91
86
  /**
@@ -214,7 +209,7 @@ export class AlertInternalApi extends ApiBase {
214
209
  getAlertPredicateDefsForScope(scope) {
215
210
  return this.getPredicateApi()
216
211
  .internalApi.getAlertPredicateDefs(scope)
217
- .filter((predicateDef) => this.getScopeApi().isScopeInScope(scope, predicateDef.columnScope));
212
+ .filter((predicateDef) => this.getColumnScopeApi().isScopeInScope(scope, predicateDef.columnScope));
218
213
  }
219
214
  /**
220
215
  * Returns a description of an Alert Definition
@@ -228,7 +223,7 @@ export class AlertInternalApi extends ApiBase {
228
223
  if (alertDefinition.MessageText != null) {
229
224
  return alertDefinition.MessageText;
230
225
  }
231
- let scopeDescription = this.getScopeApi().getScopeDescription(alertDefinition.Scope);
226
+ let scopeDescription = this.getColumnScopeApi().getScopeDescription(alertDefinition.Scope);
232
227
  let ruleDescription = this.getAlertRuleDescription(alertDefinition);
233
228
  return scopeDescription + ' - ' + ruleDescription;
234
229
  }
@@ -295,7 +290,7 @@ export class AlertInternalApi extends ApiBase {
295
290
  var _a, _b, _c, _d;
296
291
  let ruleDescription = ((_b = (_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.length)
297
292
  ? (_d = (_c = alertDefinition.Rule) === null || _c === void 0 ? void 0 : _c.Predicates) === null || _d === void 0 ? void 0 : _d.map((predicate) => this.getPredicateApi().predicateToString(predicate)).join(' AND ')
298
- : this.adaptable.api.internalApi.getAdaptableQueryExpressionText(alertDefinition.Rule);
293
+ : this.getAdaptableApi().internalApi.getAdaptableQueryExpressionText(alertDefinition.Rule);
299
294
  return ruleDescription;
300
295
  }
301
296
  /**
@@ -420,7 +415,7 @@ export class AlertInternalApi extends ApiBase {
420
415
  getAlertDefinitionsForCellDataChange(dataChangedEvent) {
421
416
  const allActiveNonReactiveDefinitions = this.getActiveNonReactiveAlertDefinitions();
422
417
  let relatedAlertDefinitions = allActiveNonReactiveDefinitions
423
- .filter((v) => this.getAdaptableApi().scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
418
+ .filter((v) => this.getAdaptableApi().columnScopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
424
419
  .filter((alertDefinition) => !isReactiveQuery(alertDefinition.Rule));
425
420
  let triggeredAlerts = [];
426
421
  if (ArrayExtensions.IsNotNullOrEmpty(relatedAlertDefinitions)) {
@@ -472,17 +467,9 @@ export class AlertInternalApi extends ApiBase {
472
467
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
473
468
  var _a;
474
469
  const adapatableApi = this.getAdaptableApi();
475
- const predicateDefHandlerContext = {
476
- value: dataChangedEvent.newValue,
477
- oldValue: dataChangedEvent.oldValue,
470
+ const predicateDefHandlerContext = Object.assign({ value: dataChangedEvent.newValue, oldValue: dataChangedEvent.oldValue,
478
471
  // TODO send real display value
479
- displayValue: null,
480
- node: dataChangedEvent.rowNode,
481
- column: dataChangedEvent.column,
482
- adaptableApi: adapatableApi,
483
- userName: adapatableApi.optionsApi.getUserName(),
484
- adaptableId: adapatableApi.optionsApi.getAdaptableId(),
485
- };
472
+ displayValue: null, node: dataChangedEvent.rowNode, column: dataChangedEvent.column }, this.getAdaptableApi().internalApi.buildBaseContext());
486
473
  return this.getAdaptableApi().predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
487
474
  }
488
475
  isAlertDefinitionForRowChangeEvent(alertDefinition) {
@@ -28,7 +28,7 @@ export class CalculatedColumnInternalApi extends ApiBase {
28
28
  this.getCalculatedColumnApi()
29
29
  .getCalculatedColumns()
30
30
  .forEach((calculatedColumn) => {
31
- if (this.getExpressionApi().internalApi.isColumnReferencedInExpression(columnId, this.adaptable.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) {
31
+ if (this.getExpressionApi().internalApi.isColumnReferencedInExpression(columnId, this.getAdaptableApi().expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) {
32
32
  calcColumns.push(calculatedColumn);
33
33
  }
34
34
  });
@@ -39,7 +39,7 @@ export class CalculatedColumnInternalApi extends ApiBase {
39
39
  * @param calculatedColumn Calculated Column to check
40
40
  */
41
41
  getReferencedColumnIdsForCalculatedColumn(calculatedColumn) {
42
- const columnIds = this.adaptable.api.expressionApi.getColumnsFromExpression(this.adaptable.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query));
42
+ const columnIds = this.getAdaptableApi().expressionApi.getColumnsFromExpression(this.getAdaptableApi().expressionApi.getAdaptableQueryExpression(calculatedColumn.Query));
43
43
  return columnIds;
44
44
  }
45
45
  /**
@@ -47,15 +47,15 @@ export class CalculatedColumnInternalApi extends ApiBase {
47
47
  * @param calculatedColumnId CalculatedColumnId to check
48
48
  */
49
49
  getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId) {
50
- const calculatedColumn = this.adaptable.api.calculatedColumnApi
51
- .getCalculatedColumns()
50
+ const calculatedColumn = this.getAdaptableApi()
51
+ .calculatedColumnApi.getCalculatedColumns()
52
52
  .find((cc) => cc.ColumnId == calculatedColumnId);
53
53
  if (calculatedColumn) {
54
54
  return this.getReferencedColumnIdsForCalculatedColumn(calculatedColumn);
55
55
  }
56
56
  }
57
57
  getCalculatedColumnsDependentOnColumn(column) {
58
- const calculatedColumns = this.adaptable.api.calculatedColumnApi.getCalculatedColumns();
58
+ const calculatedColumns = this.getAdaptableApi().calculatedColumnApi.getCalculatedColumns();
59
59
  return calculatedColumns
60
60
  .filter((calculatedColumn) => {
61
61
  const dependentColumns = this.getReferencedColumnIdsForCalculatedColumnId(calculatedColumn.ColumnId);
@@ -81,18 +81,12 @@ export class CalculatedColumnInternalApi extends ApiBase {
81
81
  }
82
82
  fireCalculatedColumnChangedEvent(trigger, calculatedColumn) {
83
83
  const adaptableApi = this.getAdaptableApi();
84
- const calculatedColumnChangedInfo = {
85
- adaptableApi: adaptableApi,
86
- actionName: trigger,
87
- calculatedColumn: calculatedColumn,
88
- calculatedColumnExpressionAST: adaptableApi.expressionApi.getASTForExpression(this.getExpressionFromCalculatedColumn(calculatedColumn)),
89
- userName: adaptableApi.optionsApi.getUserName(),
90
- adaptableId: adaptableApi.optionsApi.getAdaptableId(),
91
- };
92
- this.adaptable.api.eventApi.emit('CalculatedColumnChanged', calculatedColumnChangedInfo);
84
+ const calculatedColumnChangedInfo = Object.assign({ actionName: trigger, calculatedColumn: calculatedColumn, calculatedColumnExpressionAST: adaptableApi.expressionApi.getASTForExpression(this.getExpressionFromCalculatedColumn(calculatedColumn)) }, this.getAdaptableApi().internalApi.buildBaseContext());
85
+ this.getAdaptableApi().eventApi.emit('CalculatedColumnChanged', calculatedColumnChangedInfo);
93
86
  }
94
87
  getColDefsForCalculatedColumns() {
95
- const defaultCalculatedColumnSettings = CreateEmptyCalculatedColumn().CalculatedColumnSettings;
88
+ const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
89
+ const defaultCalculatedColumnSettings = CreateEmptyCalculatedColumn(defaultSpecialColumnSettings).CalculatedColumnSettings;
96
90
  return this.getCalculatedColumnApi()
97
91
  .getCalculatedColumns()
98
92
  .map((calculatedColumn) => {
@@ -139,7 +133,7 @@ export class CalculatedColumnInternalApi extends ApiBase {
139
133
  enableRowGroup: calculatedColumnSettings.Groupable,
140
134
  sortable: calculatedColumnSettings.Sortable,
141
135
  enablePivot: calculatedColumnSettings.Pivotable,
142
- suppressMenu: calculatedColumnSettings.SuppressMenu,
136
+ suppressHeaderMenuButton: calculatedColumnSettings.SuppressMenu,
143
137
  suppressMovable: calculatedColumnSettings.SuppressMovable,
144
138
  type: columnTypes,
145
139
  valueGetter,