@adaptabletools/adaptable-cjs 18.0.0-canary.8 → 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 (438) 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 +10 -4
  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 +15 -14
  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} +36 -26
  30. package/src/Api/CommentApi.d.ts +20 -22
  31. package/src/Api/ConfigApi.d.ts +4 -5
  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 +2 -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 +35 -3
  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 +48 -16
  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 +16 -0
  55. package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +33 -0
  56. package/src/Api/Implementation/{ScopeApiImpl.js → ColumnScopeApiImpl.js} +67 -21
  57. package/src/Api/Implementation/CommentsApiImpl.d.ts +8 -5
  58. package/src/Api/Implementation/CommentsApiImpl.js +10 -5
  59. package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
  60. package/src/Api/Implementation/ConfigApiImpl.js +27 -28
  61. package/src/Api/Implementation/ContextMenuApiImpl.d.ts +7 -0
  62. package/src/Api/Implementation/ContextMenuApiImpl.js +13 -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 -1
  72. package/src/Api/Implementation/GridApiImpl.js +63 -9
  73. package/src/Api/Implementation/LayoutApiImpl.d.ts +4 -11
  74. package/src/Api/Implementation/LayoutApiImpl.js +19 -27
  75. package/src/Api/Implementation/NoteApiImpl.d.ts +18 -0
  76. package/src/Api/Implementation/NoteApiImpl.js +45 -0
  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 +11 -17
  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 +8 -1
  97. package/src/Api/Internal/CommentsInternalApi.d.ts +4 -0
  98. package/src/Api/Internal/CommentsInternalApi.js +18 -0
  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 +38 -30
  109. package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -4
  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/NoteInternalApi.js +18 -0
  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 +15 -15
  128. package/src/Api/NoteApi.d.ts +48 -0
  129. package/src/Api/NoteApi.js +2 -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/AdaptableColumn.d.ts +4 -0
  136. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  137. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +4 -4
  138. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
  139. package/src/PredefinedConfig/Common/CellSummary.d.ts +5 -14
  140. package/src/PredefinedConfig/Common/{AdaptableScope.d.ts → ColumnScope.d.ts} +4 -1
  141. package/src/PredefinedConfig/Common/ColumnScope.js +2 -0
  142. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +1 -5
  143. package/src/PredefinedConfig/Common/Enums.d.ts +4 -1
  144. package/src/PredefinedConfig/Common/Enums.js +3 -0
  145. package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +2 -2
  146. package/src/PredefinedConfig/Common/Menu.d.ts +39 -4
  147. package/src/PredefinedConfig/Common/Menu.js +126 -0
  148. package/src/PredefinedConfig/Common/RowScope.d.ts +17 -0
  149. package/src/PredefinedConfig/Common/RowScope.js +2 -0
  150. package/src/PredefinedConfig/Common/RowSummary.d.ts +21 -0
  151. package/src/PredefinedConfig/Common/RowSummary.js +20 -0
  152. package/src/PredefinedConfig/Common/TransposeConfig.d.ts +30 -0
  153. package/src/PredefinedConfig/Common/TransposeConfig.js +2 -0
  154. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  155. package/src/PredefinedConfig/Common/Types.js +4 -1
  156. package/src/PredefinedConfig/ExportState.d.ts +2 -2
  157. package/src/PredefinedConfig/FlashingCellState.d.ts +2 -2
  158. package/src/PredefinedConfig/FormatColumnState.d.ts +9 -5
  159. package/src/PredefinedConfig/LayoutState.d.ts +6 -1
  160. package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +4 -4
  161. package/src/PredefinedConfig/NoteState.js +2 -0
  162. package/src/PredefinedConfig/PlusMinusState.d.ts +2 -2
  163. package/src/PredefinedConfig/PopupState.d.ts +1 -2
  164. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  165. package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
  166. package/src/PredefinedConfig/ShortcutState.d.ts +2 -2
  167. package/src/PredefinedConfig/StyledColumnState.d.ts +5 -5
  168. package/src/PredefinedConfig/SystemState.d.ts +12 -4
  169. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -4
  170. package/src/Redux/ActionsReducers/CommentsRedux.js +1 -39
  171. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
  172. package/src/Redux/ActionsReducers/LayoutRedux.js +34 -11
  173. package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
  174. package/src/Redux/ActionsReducers/{NotesRedux.js → NoteRedux.js} +31 -31
  175. package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -13
  176. package/src/Redux/ActionsReducers/PopupRedux.js +1 -22
  177. package/src/Redux/ActionsReducers/SystemRedux.d.ts +15 -4
  178. package/src/Redux/ActionsReducers/SystemRedux.js +27 -11
  179. package/src/Redux/Store/AdaptableStore.js +47 -29
  180. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +2 -2
  181. package/src/Strategy/AdaptableModuleBase.d.ts +10 -10
  182. package/src/Strategy/AdaptableModuleBase.js +13 -16
  183. package/src/Strategy/AlertModule.d.ts +3 -2
  184. package/src/Strategy/AlertModule.js +4 -4
  185. package/src/Strategy/BulkUpdateModule.d.ts +3 -2
  186. package/src/Strategy/BulkUpdateModule.js +2 -1
  187. package/src/Strategy/CalculatedColumnModule.d.ts +3 -4
  188. package/src/Strategy/CalculatedColumnModule.js +18 -14
  189. package/src/Strategy/CellSummaryModule.d.ts +10 -9
  190. package/src/Strategy/CellSummaryModule.js +101 -83
  191. package/src/Strategy/ColumnFilterModule.d.ts +3 -3
  192. package/src/Strategy/ColumnFilterModule.js +36 -57
  193. package/src/Strategy/ColumnInfoModule.d.ts +3 -3
  194. package/src/Strategy/ColumnInfoModule.js +6 -4
  195. package/src/Strategy/CommentModule.d.ts +12 -0
  196. package/src/Strategy/CommentModule.js +75 -0
  197. package/src/Strategy/CustomSortModule.d.ts +1 -2
  198. package/src/Strategy/CustomSortModule.js +3 -2
  199. package/src/Strategy/DashboardModule.d.ts +3 -3
  200. package/src/Strategy/DashboardModule.js +10 -20
  201. package/src/Strategy/DataImportModule.d.ts +4 -4
  202. package/src/Strategy/DataImportModule.js +8 -8
  203. package/src/Strategy/ExportModule.d.ts +1 -2
  204. package/src/Strategy/ExportModule.js +56 -42
  205. package/src/Strategy/Fdc3Module.d.ts +1 -1
  206. package/src/Strategy/Fdc3Module.js +3 -13
  207. package/src/Strategy/FlashingCellModule.d.ts +4 -3
  208. package/src/Strategy/FlashingCellModule.js +10 -10
  209. package/src/Strategy/FormatColumnModule.d.ts +1 -1
  210. package/src/Strategy/FormatColumnModule.js +29 -47
  211. package/src/Strategy/FreeTextColumnModule.d.ts +1 -2
  212. package/src/Strategy/FreeTextColumnModule.js +2 -2
  213. package/src/Strategy/GridInfoModule.d.ts +3 -3
  214. package/src/Strategy/GridInfoModule.js +5 -3
  215. package/src/Strategy/Interface/IModule.d.ts +4 -4
  216. package/src/Strategy/LayoutModule.d.ts +4 -3
  217. package/src/Strategy/LayoutModule.js +71 -72
  218. package/src/Strategy/NoteModule.d.ts +10 -0
  219. package/src/Strategy/NoteModule.js +60 -0
  220. package/src/Strategy/PlusMinusModule.d.ts +1 -2
  221. package/src/Strategy/PlusMinusModule.js +5 -5
  222. package/src/Strategy/SettingsPanelModule.d.ts +3 -3
  223. package/src/Strategy/SettingsPanelModule.js +6 -6
  224. package/src/Strategy/ShortcutModule.js +1 -1
  225. package/src/Strategy/SmartEditModule.d.ts +3 -2
  226. package/src/Strategy/SmartEditModule.js +2 -1
  227. package/src/Strategy/StyledColumnModule.d.ts +2 -1
  228. package/src/Strategy/StyledColumnModule.js +42 -22
  229. package/src/Strategy/SystemStatusModule.d.ts +3 -3
  230. package/src/Strategy/SystemStatusModule.js +6 -3
  231. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +4 -2
  232. package/src/Strategy/Utilities/getScopeViewItems.d.ts +2 -2
  233. package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
  234. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  235. package/src/Utilities/Constants/GeneralConstants.js +3 -2
  236. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  237. package/src/Utilities/Constants/ModuleConstants.js +7 -7
  238. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
  239. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
  240. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +434 -3
  241. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
  242. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
  243. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  244. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
  245. package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
  246. package/src/Utilities/Extensions/ArrayExtensions.js +6 -1
  247. package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -1
  248. package/src/Utilities/Helpers/AdaptableHelper.js +21 -1
  249. package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
  250. package/src/Utilities/MenuItem.d.ts +10 -7
  251. package/src/Utilities/MenuItem.js +6 -3
  252. package/src/Utilities/ObjectFactory.d.ts +3 -3
  253. package/src/Utilities/ObjectFactory.js +7 -25
  254. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +4 -2
  255. package/src/Utilities/Services/AggregatedScalarLiveValue.js +23 -18
  256. package/src/Utilities/Services/CellPopupService.js +4 -4
  257. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  258. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
  259. package/src/Utilities/Services/LicenseService/index.js +1 -195
  260. package/src/Utilities/Services/ModuleService.js +6 -2
  261. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
  262. package/src/Utilities/Services/QueryLanguageService.js +4 -3
  263. package/src/Utilities/Services/ReportService.d.ts +7 -5
  264. package/src/Utilities/Services/ReportService.js +245 -26
  265. package/src/Utilities/Services/RowSummaryService.d.ts +26 -0
  266. package/src/Utilities/Services/RowSummaryService.js +160 -0
  267. package/src/Utilities/Services/ValidationService.js +2 -2
  268. package/src/Utilities/adaptableQlUtils.d.ts +2 -0
  269. package/src/Utilities/adaptableQlUtils.js +18 -0
  270. package/src/Utilities/license/decode.js +1 -70
  271. package/src/Utilities/license/hashing.js +1 -47
  272. package/src/View/AdaptableViewFactory.js +2 -2
  273. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +1 -1
  274. package/src/View/Alert/AlertEntityRow.js +1 -1
  275. package/src/View/Alert/Utilities/getAvailablePredicates.d.ts +2 -2
  276. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -1
  277. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -2
  278. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  279. package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -2
  280. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
  281. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +3 -3
  282. package/src/View/ColumnInfo/ColumnInfo.js +1 -1
  283. package/src/View/Comments/CommentsEditor.js +28 -17
  284. package/src/View/Comments/CommentsPopup.js +15 -7
  285. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  286. package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.d.ts +5 -0
  287. package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.js +46 -0
  288. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  289. package/src/View/Components/CellPopup/index.d.ts +1 -0
  290. package/src/View/Components/CellPopup/index.js +6 -3
  291. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.d.ts +3 -3
  292. package/src/View/Components/EntityRulesEditor/index.d.ts +3 -3
  293. package/src/View/Components/FilterForm/FilterForm.js +20 -12
  294. package/src/View/Components/FilterForm/QuickFilterForm.js +15 -8
  295. package/src/View/Components/FilterForm/QuickFilterValues.js +39 -23
  296. package/src/View/Components/NewScopeComponent.d.ts +5 -5
  297. package/src/View/Components/NewScopeComponent.js +36 -3
  298. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -1
  299. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +10 -1
  300. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +7 -10
  301. package/src/View/Components/RangesComponent.d.ts +2 -2
  302. package/src/View/Components/RangesComponent.js +1 -1
  303. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
  304. package/src/View/Components/SharedProps/WizardScopeState.d.ts +2 -2
  305. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  306. package/src/View/Components/ValueSelector/index.js +2 -2
  307. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
  308. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -2
  309. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -1
  310. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +2 -2
  311. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +20 -7
  312. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
  313. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  314. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +27 -12
  315. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
  316. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
  317. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
  318. package/src/View/GridFilter/GridFilterViewPanel.js +3 -3
  319. package/src/View/GridFilter/useGridFilterExpressionEditor.js +1 -1
  320. package/src/View/Layout/LayoutViewPanel.js +2 -1
  321. package/src/View/Layout/TransposedPopup.js +27 -25
  322. package/src/View/Layout/Wizard/LayoutWizard.js +38 -3
  323. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  324. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  325. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +18 -2
  326. package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +9 -0
  327. package/src/View/Layout/Wizard/sections/RowSummarySection.js +181 -0
  328. package/src/View/License/LicenseWatermark.js +1 -66
  329. package/src/View/Note/NotePopup.d.ts +2 -0
  330. package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +16 -11
  331. package/src/View/PlusMinus/PlusMinusSummary.js +2 -2
  332. package/src/View/SmartEdit/SmartEditPopup.js +1 -1
  333. package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
  334. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +5 -7
  335. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -1
  336. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  337. package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +38 -14
  338. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -1
  339. package/src/agGrid/ActionColumnRenderer.js +40 -4
  340. package/src/agGrid/AdaptableAgGrid.d.ts +21 -12
  341. package/src/agGrid/AdaptableAgGrid.js +313 -225
  342. package/src/agGrid/AgGridAdapter.d.ts +5 -2
  343. package/src/agGrid/AgGridAdapter.js +20 -0
  344. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -3
  345. package/src/agGrid/AgGridColumnAdapter.js +52 -70
  346. package/src/agGrid/AgGridMenuAdapter.d.ts +25 -8
  347. package/src/agGrid/AgGridMenuAdapter.js +405 -74
  348. package/src/agGrid/AgGridOptionsService.d.ts +4 -1
  349. package/src/agGrid/AgGridOptionsService.js +22 -0
  350. package/src/agGrid/BadgeRenderer.d.ts +2 -2
  351. package/src/agGrid/BadgeRenderer.js +24 -11
  352. package/src/agGrid/PercentBarRenderer.js +2 -1
  353. package/src/agGrid/buildSortedColumnStateForLayout.d.ts +7 -0
  354. package/src/agGrid/buildSortedColumnStateForLayout.js +124 -0
  355. package/src/agGrid/defaultAdaptableOptions.js +7 -12
  356. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
  357. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  358. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -2
  359. package/src/agGrid/sortColumnStateForVisibleColumns.d.ts +12 -0
  360. package/src/agGrid/sortColumnStateForVisibleColumns.js +50 -0
  361. package/src/agGrid/weightedAverage.d.ts +0 -2
  362. package/src/agGrid/weightedAverage.js +1 -56
  363. package/src/components/Accordion.d.ts +7 -0
  364. package/src/components/Accordion.js +41 -0
  365. package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
  366. package/src/components/Datepicker/index.d.ts +1 -1
  367. package/src/components/Datepicker/index.js +10 -2
  368. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
  369. package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
  370. package/src/components/ExpressionEditor/QueryBuilder/utils.js +3 -17
  371. package/src/components/Input/index.d.ts +1 -2
  372. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  373. package/src/components/ProgressIndicator/ProgressIndicator.js +15 -6
  374. package/src/components/Select/Select.d.ts +1 -1
  375. package/src/components/Select/Select.js +3 -1
  376. package/src/components/Textarea/index.d.ts +2 -2
  377. package/src/components/icons/collapse-all.d.ts +3 -0
  378. package/src/components/icons/collapse-all.js +7 -0
  379. package/src/components/icons/copy.d.ts +3 -0
  380. package/src/components/icons/copy.js +7 -0
  381. package/src/components/icons/csv.d.ts +3 -0
  382. package/src/components/icons/csv.js +7 -0
  383. package/src/components/icons/data-object.d.ts +3 -0
  384. package/src/components/icons/data-object.js +7 -0
  385. package/src/components/icons/excel.d.ts +3 -0
  386. package/src/components/icons/excel.js +8 -0
  387. package/src/components/icons/expand-all.d.ts +3 -0
  388. package/src/components/icons/expand-all.js +7 -0
  389. package/src/components/icons/filter-off.d.ts +3 -0
  390. package/src/components/icons/filter-off.js +7 -0
  391. package/src/components/icons/grid-info.d.ts +3 -0
  392. package/src/components/icons/grid-info.js +7 -0
  393. package/src/components/icons/index.js +24 -0
  394. package/src/components/icons/note.js +2 -2
  395. package/src/components/icons/rows.d.ts +3 -0
  396. package/src/components/icons/rows.js +7 -0
  397. package/src/components/icons/select-all.d.ts +3 -0
  398. package/src/components/icons/select-all.js +7 -0
  399. package/src/components/icons/select-fwd.d.ts +3 -0
  400. package/src/components/icons/select-fwd.js +7 -0
  401. package/src/components/icons/select-off.d.ts +3 -0
  402. package/src/components/icons/select-off.js +7 -0
  403. package/src/env.js +2 -2
  404. package/src/metamodel/adaptable.metamodel.d.ts +230 -116
  405. package/src/metamodel/adaptable.metamodel.js +1 -9411
  406. package/src/parser/src/parser.js +576 -553
  407. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
  408. package/src/parser/src/predicate/mapQlPredicateToExpression.js +3 -4
  409. package/src/parser/src/types.d.ts +7 -2
  410. package/src/parser/src/types.js +1 -2
  411. package/src/types.d.ts +32 -25
  412. package/tsconfig.cjs.tsbuildinfo +1 -1
  413. package/src/AdaptableOptions/MenuOptions.d.ts +0 -234
  414. package/src/AdaptableOptions/MenuOptions.js +0 -99
  415. package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
  416. package/src/Api/Implementation/NotesApiImpl.d.ts +0 -14
  417. package/src/Api/Implementation/NotesApiImpl.js +0 -40
  418. package/src/Api/Implementation/ScopeApiImpl.d.ts +0 -31
  419. package/src/Api/NotesApi.d.ts +0 -48
  420. package/src/PredefinedConfig/CellAddress.d.ts +0 -13
  421. package/src/PredefinedConfig/CellAddress.js +0 -5
  422. package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -38
  423. package/src/Strategy/CommentsModule.d.ts +0 -17
  424. package/src/Strategy/CommentsModule.js +0 -83
  425. package/src/Strategy/NotesModule.d.ts +0 -10
  426. package/src/Strategy/NotesModule.js +0 -62
  427. package/src/View/Components/ScopeComponent.d.ts +0 -24
  428. package/src/View/Components/ScopeComponent.js +0 -138
  429. package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
  430. package/src/View/Export/Wizard/ReportScopeWizard.js +0 -52
  431. package/src/View/Notes/NotesPopup.d.ts +0 -2
  432. /package/src/{Api/Events/CommentsChangedInfo.js → AdaptableOptions/ColumnMenuOptions.js} +0 -0
  433. /package/src/{Api/NotesApi.js → AdaptableOptions/ContextMenuOptions.js} +0 -0
  434. /package/src/Api/{ScopeApi.js → ColumnMenuApi.js} +0 -0
  435. /package/src/{PredefinedConfig/Common/AdaptableScope.js → Api/ColumnScopeApi.js} +0 -0
  436. /package/src/{PredefinedConfig/NotesState.js → Api/ContextMenuApi.js} +0 -0
  437. /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
  438. /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
@@ -13,7 +13,6 @@ const Uuid_1 = require("../../PredefinedConfig/Uuid");
13
13
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
14
14
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
15
15
  const LayoutInternalApi_1 = require("../Internal/LayoutInternalApi");
16
- const windowFactory_1 = require("../../View/Components/Popups/WindowPopups/windowFactory");
17
16
  class LayoutApiImpl extends ApiBase_1.ApiBase {
18
17
  constructor(adaptable) {
19
18
  super(adaptable);
@@ -23,6 +22,9 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
23
22
  };
24
23
  this.internalApi = new LayoutInternalApi_1.LayoutInternalApi(adaptable);
25
24
  }
25
+ isCurrentLayoutPivot() {
26
+ return this.getCurrentLayout().EnablePivot;
27
+ }
26
28
  getLayoutState() {
27
29
  return this.getAdaptableState().Layout;
28
30
  }
@@ -36,6 +38,9 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
36
38
  getCurrentVisibleColumnIds() {
37
39
  return this.getCurrentLayout().Columns;
38
40
  }
41
+ getCurrentRowGroupsColumnIds() {
42
+ return this.getCurrentLayout().RowGroupedColumns;
43
+ }
39
44
  setLayout(layoutName) {
40
45
  if (StringExtensions_1.default.IsNotNullOrEmpty(layoutName) &&
41
46
  layoutName !== this.getCurrentLayoutName()) {
@@ -226,33 +231,20 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
226
231
  }
227
232
  }
228
233
  }
229
- getLayoutSupportedFeatures() {
230
- const layoutSupportedFeatures = {
231
- RowGroupedColumns: true,
232
- AggregationColumns: true,
233
- PivotColumns: true,
234
- ColumnFilters: true,
235
- ColumnSorts: true,
236
- };
237
- if (this.getGridApi().getAgGridRowModelType() === 'viewport') {
238
- layoutSupportedFeatures.RowGroupedColumns = false;
239
- layoutSupportedFeatures.AggregationColumns = false;
240
- layoutSupportedFeatures.PivotColumns = false;
234
+ addColumnToLayout(columnId, layoutName) {
235
+ const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
236
+ if (column) {
237
+ const layout = this.getLayoutByName(layoutName);
238
+ if (layout) {
239
+ if (!layout.Columns.includes(columnId)) {
240
+ this.dispatchAction(LayoutRedux.LayoutAddColumn(layoutName, columnId));
241
+ this.getAdaptableApi().columnApi.showColumn(columnId);
242
+ }
243
+ }
241
244
  }
242
- return layoutSupportedFeatures;
243
- }
244
- showTransposePopup(config) {
245
- const { transposedColumnId, hideTransposedColumn } = config;
246
- this.adaptable.api.internalApi.showPopupWindow({
247
- id: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
248
- factoryId: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
249
- title: 'Transpose View',
250
- icon: 'grid',
251
- popupProps: {
252
- transposedColumnId,
253
- hideTransposedColumn,
254
- },
255
- });
245
+ }
246
+ addColumnToCurrentLayout(columnId) {
247
+ this.addColumnToLayout(columnId, this.getCurrentLayoutName());
256
248
  }
257
249
  }
258
250
  exports.LayoutApiImpl = LayoutApiImpl;
@@ -0,0 +1,18 @@
1
+ import { ApiBase } from './ApiBase';
2
+ import { NoteApi } from '../NoteApi';
3
+ import { AdaptableNote, AdaptableNotes, NoteState } from '../../PredefinedConfig/NoteState';
4
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
5
+ import { NoteInternalApi } from '../Internal/NoteInternalApi';
6
+ import { CellAddress } from '../../types';
7
+ export declare class NoteApiImpl extends ApiBase implements NoteApi {
8
+ internalApi: NoteInternalApi;
9
+ constructor(adaptable: IAdaptable);
10
+ addNote(noteStr: string, primaryKeyValue: any, columnId: string): void;
11
+ editNote(note: AdaptableNote): void;
12
+ updateNoteText(noteStr: string, note: AdaptableNote): void;
13
+ deleteNote(note: AdaptableNote): void;
14
+ getNoteState(): NoteState;
15
+ getAllNotes(): AdaptableNotes;
16
+ getNoteForCell(address: CellAddress): AdaptableNote;
17
+ getNoteByUuid(uuid: string): AdaptableNote | undefined;
18
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoteApiImpl = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ApiBase_1 = require("./ApiBase");
6
+ const NoteRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NoteRedux"));
7
+ const NoteInternalApi_1 = require("../Internal/NoteInternalApi");
8
+ class NoteApiImpl extends ApiBase_1.ApiBase {
9
+ constructor(adaptable) {
10
+ super(adaptable);
11
+ this.internalApi = new NoteInternalApi_1.NoteInternalApi(adaptable);
12
+ }
13
+ addNote(noteStr, primaryKeyValue, columnId) {
14
+ const note = {
15
+ Text: noteStr,
16
+ PrimaryKeyValue: primaryKeyValue,
17
+ ColumnId: columnId,
18
+ Timestamp: Date.now(),
19
+ };
20
+ this.dispatchAction(NoteRedux.NoteAdd(note));
21
+ }
22
+ editNote(note) {
23
+ note.Timestamp = Date.now();
24
+ this.dispatchAction(NoteRedux.NoteEdit(note));
25
+ }
26
+ updateNoteText(noteStr, note) {
27
+ this.editNote(Object.assign(Object.assign({}, note), { Text: noteStr }));
28
+ }
29
+ deleteNote(note) {
30
+ this.dispatchAction(NoteRedux.NoteDelete(note));
31
+ }
32
+ getNoteState() {
33
+ return this.getAdaptableState().Note;
34
+ }
35
+ getAllNotes() {
36
+ return this.getNoteState().Notes;
37
+ }
38
+ getNoteForCell(address) {
39
+ return NoteRedux.GetNoteSelector(this.getAdaptableState().Note, address);
40
+ }
41
+ getNoteByUuid(uuid) {
42
+ return this.getAllNotes().find((note) => note.Uuid === uuid);
43
+ }
44
+ }
45
+ exports.NoteApiImpl = NoteApiImpl;
@@ -1,11 +1,11 @@
1
1
  import { ApiBase } from './ApiBase';
2
- import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, NotesOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions, GridFilterOptions } from '../../types';
2
+ import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, NoteOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions, GridFilterOptions, ColumnMenuOptions, ContextMenuOptions } from '../../types';
3
3
  import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
4
4
  import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
5
5
  import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
6
6
  import { ExpressionOptions } from '../../AdaptableOptions/ExpressionOptions';
7
7
  import { ColumnFilterOptions } from '../../AdaptableOptions/ColumnFilterOptions';
8
- import { CommentsOptions } from '../../AdaptableOptions/CommentOptions';
8
+ import { CommentOptions } from '../../AdaptableOptions/CommentOptions';
9
9
  export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
10
10
  getAdaptableId(): string;
11
11
  getAdaptableStateKey(): string;
@@ -19,8 +19,8 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
19
19
  getCellSummaryOptions(): CellSummaryOptions;
20
20
  getCalendarOptions(): CalendarOptions;
21
21
  getColumnOptions(): ColumnOptions;
22
- getNotesOptions(): NotesOptions;
23
- getCommentsOptions(): Readonly<CommentsOptions<any>>;
22
+ getNoteOptions(): NoteOptions;
23
+ getCommentOptions(): Readonly<CommentOptions<any>>;
24
24
  getCustomSortOptions(): CustomSortOptions;
25
25
  getContainerOptions(): ContainerOptions;
26
26
  getDataSetOptions(): DataSetOptions;
@@ -31,7 +31,8 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
31
31
  getExportOptions(): ExportOptions;
32
32
  getGroupingOptions(): GroupingOptions;
33
33
  getLayoutOptions(): LayoutOptions;
34
- getMenuOptions(): MenuOptions;
34
+ getColumnMenuOptions(): ColumnMenuOptions;
35
+ getContextMenuOptions(): ContextMenuOptions;
35
36
  getColumnFilterOptions(): ColumnFilterOptions;
36
37
  getGridFilterOptions(): Readonly<GridFilterOptions<any>>;
37
38
  getExpressionOptions(): ExpressionOptions;
@@ -39,10 +39,10 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
39
39
  getColumnOptions() {
40
40
  return this.getOptions().columnOptions;
41
41
  }
42
- getNotesOptions() {
42
+ getNoteOptions() {
43
43
  return this.getOptions().noteOptions;
44
44
  }
45
- getCommentsOptions() {
45
+ getCommentOptions() {
46
46
  return this.getOptions().commentOptions;
47
47
  }
48
48
  getCustomSortOptions() {
@@ -75,8 +75,11 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
75
75
  getLayoutOptions() {
76
76
  return this.getOptions().layoutOptions;
77
77
  }
78
- getMenuOptions() {
79
- return this.getOptions().menuOptions;
78
+ getColumnMenuOptions() {
79
+ return this.getOptions().columnMenuOptions;
80
+ }
81
+ getContextMenuOptions() {
82
+ return this.getOptions().contextMenuOptions;
80
83
  }
81
84
  getColumnFilterOptions() {
82
85
  return this.getOptions().columnFilterOptions;
@@ -75,9 +75,9 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
75
75
  if (!predicate.ColumnId) {
76
76
  return this.handlePredicate(predicate, context, defaultReturn);
77
77
  }
78
- const paramsForColumn = Object.assign(Object.assign({}, context), { column: this.adaptable.api.columnApi.getColumnWithColumnId(predicate.ColumnId),
78
+ const paramsForColumn = Object.assign(Object.assign({}, context), { column: this.getAdaptableApi().columnApi.getColumnWithColumnId(predicate.ColumnId),
79
79
  // value: params?.node?.data?.[predicate.ColumnId],
80
- value: this.adaptable.api.gridApi.getRawValueFromRowNode(context.node, predicate.ColumnId) });
80
+ value: this.getAdaptableApi().gridApi.getRawValueFromRowNode(context.node, predicate.ColumnId) });
81
81
  if ('oldValue' in paramsForColumn) {
82
82
  delete paramsForColumn.oldValue;
83
83
  }
@@ -56,7 +56,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
56
56
  }
57
57
  getReportSchedules(config) {
58
58
  var _a;
59
- return ((_a = this.handleLayoutAssociatedObjects(this.adaptable.api.exportApi.getReportSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
59
+ return ((_a = this.handleLayoutAssociatedObjects(this.getAdaptableApi().exportApi.getReportSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
60
60
  }
61
61
  getActiveReportSchedules() {
62
62
  return this.getReportSchedules().filter((schedule) => !schedule.IsSuspended);
@@ -85,7 +85,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
85
85
  }
86
86
  getIPushPullSchedules(config) {
87
87
  var _a;
88
- const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
88
+ const ippApi = this.getAdaptableApi().pluginsApi.getipushpullPluginApi();
89
89
  return ((_a = this.handleLayoutAssociatedObjects(ippApi === null || ippApi === void 0 ? void 0 : ippApi.getIPushPullSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
90
90
  }
91
91
  getActiveIPushPullSchedules() {
@@ -115,7 +115,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
115
115
  }
116
116
  getOpenFinSchedules(config) {
117
117
  var _a;
118
- const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
118
+ const openFinApi = this.getAdaptableApi().pluginsApi.getOpenFinPluginApi();
119
119
  return ((_a = this.handleLayoutAssociatedObjects(openFinApi === null || openFinApi === void 0 ? void 0 : openFinApi.getOpenFinSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
120
120
  }
121
121
  getActiveOpenFinSchedules() {
@@ -167,10 +167,10 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
167
167
  }
168
168
  else if (scheduleType == 'Report') {
169
169
  const reportSchedule = schedule;
170
- this.adaptable.api.exportApi.runReport(reportSchedule.ReportName, reportSchedule.ExportDestination);
170
+ this.getAdaptableApi().exportApi.runReport(reportSchedule.ReportName, reportSchedule.ExportDestination);
171
171
  }
172
172
  else if (scheduleType == 'ipushpull') {
173
- const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
173
+ const ippApi = this.getAdaptableApi().pluginsApi.getipushpullPluginApi();
174
174
  const iPushPullSchedule = schedule;
175
175
  if (iPushPullSchedule.Transmission == 'Snapshot') {
176
176
  ippApi.sendSnapshot(iPushPullSchedule.IPushPullReport);
@@ -180,7 +180,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
180
180
  }
181
181
  }
182
182
  else if (scheduleType == 'OpenFin') {
183
- const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
183
+ const openFinApi = this.getAdaptableApi().pluginsApi.getOpenFinPluginApi();
184
184
  const openFinSchedule = schedule;
185
185
  openFinApi.startLiveData(openFinSchedule.OpenFinReport);
186
186
  }
@@ -19,11 +19,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
19
19
  return [];
20
20
  }
21
21
  const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
22
- const sharedEntitiesContext = {
23
- adaptableId: this.adaptable.adaptableOptions.adaptableId,
24
- userName: this.adaptable.adaptableOptions.userName,
25
- adaptableApi: this.getAdaptableApi(),
26
- };
22
+ const sharedEntitiesContext = this.getAdaptableApi().internalApi.buildBaseContext();
27
23
  let loadedSharedEntities = await teamSharingOptions.loadSharedEntities(sharedEntitiesContext);
28
24
  // with v15 we introduced 2 types of SharedEntity: AdaptableSharedEntity (basically the old one) and the new CustomSharedEntity
29
25
  // for backwards compatibility, we add default the 'EntityType' property to 'adaptableEntity'
@@ -44,11 +40,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
44
40
  return false;
45
41
  }
46
42
  const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
47
- const sharedEntitiesContext = {
48
- adaptableId: this.adaptable.adaptableOptions.adaptableId,
49
- userName: this.adaptable.adaptableOptions.userName,
50
- adaptableApi: this.getAdaptableApi(),
51
- };
43
+ const sharedEntitiesContext = this.getAdaptableApi().internalApi.buildBaseContext();
52
44
  const sharedEntitiesAfterCustomisation = teamSharingOptions.saveSharedEntities(sharedEntities, sharedEntitiesContext);
53
45
  await teamSharingOptions.persistSharedEntities(sharedEntitiesAfterCustomisation, sharedEntitiesContext);
54
46
  return true;
@@ -104,11 +96,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
104
96
  this.logError(`Could NOT import custom shared entity because 'TeamSharingOptions.handleCustomSharedEntityImport(...)' is NOT defined!`, sharedEntity);
105
97
  return;
106
98
  }
107
- customSharedEntityImportHandler(sharedEntity, {
108
- adaptableApi: this.getAdaptableApi(),
109
- adaptableId: this.adaptable.adaptableOptions.adaptableId,
110
- userName: this.adaptable.adaptableOptions.userName,
111
- });
99
+ customSharedEntityImportHandler(sharedEntity, this.getAdaptableApi().internalApi.buildBaseContext());
112
100
  }
113
101
  }
114
102
  getTeamSharingState() {
@@ -61,13 +61,8 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
61
61
  return;
62
62
  }
63
63
  this.adaptable.applyAdaptableTheme(currentTheme);
64
- let themeChangedInfo = {
65
- adaptableApi: this.getAdaptableApi(),
66
- theme: currentTheme,
67
- userName: this.adaptable.api.optionsApi.getUserName(),
68
- adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
69
- };
70
- this.adaptable.api.eventApi.emit('ThemeChanged', themeChangedInfo);
64
+ let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { theme: currentTheme });
65
+ this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
71
66
  }
72
67
  getUserThemes() {
73
68
  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
  };
@@ -2,14 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserInterfaceApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const ApiBase_1 = require("./ApiBase");
6
5
  const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
6
+ const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
7
7
  const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
8
- const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi");
8
+ const logDeprecation_1 = require("../../Utilities/logDeprecation");
9
9
  const WindowPopups_1 = require("../../View/Components/Popups/WindowPopups/WindowPopups");
10
+ const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi");
11
+ const ApiBase_1 = require("./ApiBase");
10
12
  class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
11
13
  constructor(adaptable) {
12
14
  super(adaptable);
15
+ this.showProgressIndicatorTimeout = null;
13
16
  this.internalApi = new UserInterfaceInternalApi_1.UserInterfaceInternalApi(adaptable);
14
17
  }
15
18
  getColorPalette() {
@@ -43,21 +46,21 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
43
46
  // columns id
44
47
  permittedValuesItem = permittedValues.find((permittedValue) => {
45
48
  return ('ColumnIds' in permittedValue.scope &&
46
- this.getAdaptableApi().scopeApi.isColumnInScope(column, permittedValue.scope));
49
+ this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
47
50
  });
48
51
  if (permittedValuesItem) {
49
52
  return permittedValuesItem;
50
53
  }
51
54
  permittedValuesItem = permittedValues.find((permittedValue) => {
52
55
  return ('DataTypes' in permittedValue.scope &&
53
- this.getAdaptableApi().scopeApi.isColumnInScope(column, permittedValue.scope));
56
+ this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
54
57
  });
55
58
  if (permittedValuesItem) {
56
59
  return permittedValuesItem;
57
60
  }
58
61
  permittedValuesItem = permittedValues.find((permittedValue) => {
59
62
  return ('All' in permittedValue.scope &&
60
- this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
63
+ this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
61
64
  });
62
65
  if (permittedValuesItem) {
63
66
  return permittedValuesItem;
@@ -77,12 +80,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
77
80
  // first do the function then get hardcoded items
78
81
  if (permittedValues != null && typeof permittedValues === 'function') {
79
82
  if (column) {
80
- const permittedValuesParams = {
81
- adaptableApi: this.getAdaptableApi(),
82
- userName: this.getOptions().userName,
83
- adaptableId: this.getOptions().adaptableId,
84
- column: column,
85
- };
83
+ const permittedValuesParams = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { column: column });
86
84
  return permittedValues(permittedValuesParams);
87
85
  }
88
86
  }
@@ -144,15 +142,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
144
142
  if (!editLookUpItem || !gridCell || !gridCell.column) {
145
143
  return undefined;
146
144
  }
147
- return this.adaptable.api.gridApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
148
- }
149
- addColumnMenuItem(userMenuItem) {
150
- var _a;
151
- (_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
152
- }
153
- addContextMenuItem(userMenuItem) {
154
- var _a;
155
- (_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
145
+ return this.getAdaptableApi().gridApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
156
146
  }
157
147
  getEditableCellStyle() {
158
148
  return this.getUserInterfaceOptions().editableCellStyle;
@@ -163,11 +153,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
163
153
  getAdaptableObjectTags() {
164
154
  const objectTags = this.getUserInterfaceOptions().objectTags;
165
155
  if (objectTags != null && typeof objectTags === 'function') {
166
- return objectTags({
167
- adaptableApi: this.adaptable.api,
168
- userName: this.getOptions().userName,
169
- adaptableId: this.getOptions().adaptableId,
170
- });
156
+ return objectTags(this.getAdaptableApi().internalApi.buildBaseContext());
171
157
  }
172
158
  else {
173
159
  let arr = objectTags;
@@ -187,10 +173,29 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
187
173
  return customIcon;
188
174
  }
189
175
  showLoadingScreen() {
190
- this.dispatchAction(PopupRedux.PopupShowLoading());
176
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'showLoadingScreen', 'showProgressIndicator');
177
+ this.showProgressIndicator({ text: 'Loading' });
191
178
  }
192
179
  hideLoadingScreen() {
193
- this.dispatchAction(PopupRedux.PopupHideLoading());
180
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'hideLoadingScreen', 'hideProgressIndicator');
181
+ this.hideProgressIndicator();
182
+ }
183
+ showProgressIndicator(config) {
184
+ if (config.delay) {
185
+ this.showProgressIndicatorTimeout = setTimeout(() => {
186
+ this.dispatchAction((0, SystemRedux_1.SystemProgressIndicatorShow)(config));
187
+ }, config.delay);
188
+ }
189
+ else {
190
+ this.dispatchAction((0, SystemRedux_1.SystemProgressIndicatorShow)(config));
191
+ }
192
+ }
193
+ hideProgressIndicator() {
194
+ if (this.showProgressIndicatorTimeout) {
195
+ clearTimeout(this.showProgressIndicatorTimeout);
196
+ this.showProgressIndicatorTimeout = null;
197
+ }
198
+ this.dispatchAction((0, SystemRedux_1.SystemProgressIndicatorHide)());
194
199
  }
195
200
  openCustomWindowPopup(config) {
196
201
  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;
@@ -46,13 +46,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
46
46
  : this.actionRowFormOptions.formDescription;
47
47
  }
48
48
  buildFormParamContext(type, rowNode) {
49
- return {
50
- rowNode,
51
- adaptableApi: this.getAdaptableApi(),
52
- userName: this.getOptions().userName,
53
- adaptableId: this.getOptions().adaptableId,
54
- type: type,
55
- };
49
+ return Object.assign(Object.assign({ rowNode }, this.getAdaptableApi().internalApi.buildBaseContext()), { type: type });
56
50
  }
57
51
  buildActionRowFields(actionRowType, rowNode) {
58
52
  const relevantColumns = this.getAdaptableApi()
@@ -68,13 +62,8 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
68
62
  showColumnInActionRowForm(adaptableColumn, actionRowType) {
69
63
  const showColumnFn = this.getActionRowOptions().actionRowFormOptions.showColumninActionRowForm;
70
64
  if (typeof showColumnFn === 'function') {
71
- return showColumnFn({
72
- adaptableApi: this.adaptable.api,
73
- userName: this.getOptions().userName,
74
- adaptableId: this.getOptions().adaptableId,
75
- adaptableColumn,
76
- actionRowType,
77
- });
65
+ return showColumnFn(Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { adaptableColumn,
66
+ actionRowType }));
78
67
  }
79
68
  return true;
80
69
  }
@@ -102,28 +91,24 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
102
91
  // textOutput should not be saved, their values are set to display values
103
92
  // we need to filter out the textOutput fields and add the primaryKey
104
93
  const eventInfo = type === 'rowCreated'
105
- ? {
106
- type: 'rowCreated',
107
- formData: context.formData,
108
- adaptableApi: context.adaptableApi,
109
- userName: this.getOptions().userName,
110
- adaptableId: this.getOptions().adaptableId,
111
- clonedRowNode: rowNode,
112
- }
113
- : {
114
- type: 'rowEdited',
115
- formData: this.prepareEditData(formFields, context),
116
- rowNode: rowNode,
117
- adaptableApi: context.adaptableApi,
118
- userName: this.getOptions().userName,
119
- adaptableId: this.getOptions().adaptableId,
120
- };
94
+ ? 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());
121
95
  this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
122
96
  (_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
123
97
  },
124
98
  };
125
99
  return [cancelButton, saveButton];
126
100
  }
101
+ // private getNullValueForColumn(column: AdaptableColumn) {}
102
+ prepareCreateData(formFields, context) {
103
+ // when creating we just omit values that are not set
104
+ const dataToSave = Object.assign({}, context.formData);
105
+ for (const formField of formFields) {
106
+ if (dataToSave[formField.name] === '') {
107
+ delete dataToSave[formField.name];
108
+ }
109
+ }
110
+ return dataToSave;
111
+ }
127
112
  prepareEditData(formFields, context) {
128
113
  const dataToSave = Object.assign({}, context.formData);
129
114
  for (const formField of formFields) {
@@ -168,14 +153,8 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
168
153
  return customFieldLabel !== null && customFieldLabel !== void 0 ? customFieldLabel : column.friendlyName;
169
154
  }
170
155
  buildFormFieldLabelContext(type, column, rowNode) {
171
- return {
172
- rowNode,
173
- column,
174
- adaptableApi: this.getAdaptableApi(),
175
- userName: this.getOptions().userName,
176
- adaptableId: this.getOptions().adaptableId,
177
- type: type,
178
- };
156
+ return Object.assign(Object.assign({ rowNode,
157
+ column }, this.getAdaptableApi().internalApi.buildBaseContext()), { type: type });
179
158
  }
180
159
  getFieldTypeFromColumnType(column) {
181
160
  switch (column.dataType) {
@@ -224,7 +203,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
224
203
  lockVisible: true,
225
204
  suppressColumnsToolPanel: true,
226
205
  suppressFiltersToolPanel: true,
227
- suppressMenu: true,
206
+ suppressHeaderMenuButton: true,
228
207
  suppressMovable: true,
229
208
  filter: false,
230
209
  sortable: false,
@@ -278,13 +257,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
278
257
  tooltip: 'Delete',
279
258
  onClick: (button, context) => {
280
259
  var _a, _b;
281
- const eventInfo = {
282
- type: 'rowDeleted',
283
- rowNode: context.rowNode,
284
- adaptableApi: context.adaptableApi,
285
- userName: context.userName,
286
- adaptableId: context.adaptableId,
287
- };
260
+ const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.getAdaptableApi().internalApi.buildBaseContext());
288
261
  this.getEventApi().emit('ActionRowSubmitted', eventInfo);
289
262
  (_b = (_a = this.getActionRowOptions().actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
290
263
  },
@@ -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): {