@sapui5/sap.cux.home 1.138.0 → 1.140.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 (357) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +1 -1
  3. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +7 -0
  4. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
  5. package/src/sap/cux/home/AdvancedSettingsPanel.js +113 -64
  6. package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
  7. package/src/sap/cux/home/AdvancedSettingsPanel.ts +47 -15
  8. package/src/sap/cux/home/App.d.ts +2 -2
  9. package/src/sap/cux/home/App.js +2 -2
  10. package/src/sap/cux/home/App.js.map +1 -1
  11. package/src/sap/cux/home/App.ts +2 -2
  12. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  13. package/src/sap/cux/home/AppsAdditionPanel.js +17 -10
  14. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  15. package/src/sap/cux/home/AppsAdditionPanel.ts +19 -12
  16. package/src/sap/cux/home/AppsContainer.d.ts +2 -3
  17. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  18. package/src/sap/cux/home/AppsContainer.js +6 -10
  19. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  20. package/src/sap/cux/home/AppsContainer.ts +5 -10
  21. package/src/sap/cux/home/BaseApp.d.ts +2 -2
  22. package/src/sap/cux/home/BaseApp.js +2 -2
  23. package/src/sap/cux/home/BaseApp.js.map +1 -1
  24. package/src/sap/cux/home/BaseApp.ts +2 -2
  25. package/src/sap/cux/home/BaseAppPanel.d.ts +10 -0
  26. package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
  27. package/src/sap/cux/home/BaseAppPanel.js +22 -3
  28. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  29. package/src/sap/cux/home/BaseAppPanel.ts +16 -3
  30. package/src/sap/cux/home/BaseContainer.d.ts +10 -27
  31. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  32. package/src/sap/cux/home/BaseContainer.gen.d.ts +61 -0
  33. package/src/sap/cux/home/BaseContainer.js +39 -71
  34. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  35. package/src/sap/cux/home/BaseContainer.ts +33 -77
  36. package/src/sap/cux/home/BaseContainerRenderer.d.ts +6 -4
  37. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  38. package/src/sap/cux/home/BaseContainerRenderer.js +47 -21
  39. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  40. package/src/sap/cux/home/BaseContainerRenderer.ts +58 -25
  41. package/src/sap/cux/home/BaseLayout.d.ts +2 -2
  42. package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
  43. package/src/sap/cux/home/BaseLayout.js +5 -4
  44. package/src/sap/cux/home/BaseLayout.js.map +1 -1
  45. package/src/sap/cux/home/BaseLayout.ts +5 -4
  46. package/src/sap/cux/home/BaseNewsItem.d.ts +2 -2
  47. package/src/sap/cux/home/BaseNewsItem.js +2 -2
  48. package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
  49. package/src/sap/cux/home/BaseNewsItem.ts +2 -2
  50. package/src/sap/cux/home/BaseNewsPanel.d.ts +4 -3
  51. package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
  52. package/src/sap/cux/home/BaseNewsPanel.js +14 -3
  53. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  54. package/src/sap/cux/home/BaseNewsPanel.ts +10 -4
  55. package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
  56. package/src/sap/cux/home/BasePagePanel.d.ts.map +1 -1
  57. package/src/sap/cux/home/BasePagePanel.js +10 -2
  58. package/src/sap/cux/home/BasePagePanel.js.map +1 -1
  59. package/src/sap/cux/home/BasePagePanel.ts +6 -2
  60. package/src/sap/cux/home/BasePanel.d.ts +2 -21
  61. package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
  62. package/src/sap/cux/home/BasePanel.gen.d.ts +109 -0
  63. package/src/sap/cux/home/BasePanel.js +15 -31
  64. package/src/sap/cux/home/BasePanel.js.map +1 -1
  65. package/src/sap/cux/home/BasePanel.ts +11 -34
  66. package/src/sap/cux/home/BaseSettingsDialog.d.ts +2 -2
  67. package/src/sap/cux/home/BaseSettingsDialog.js +2 -2
  68. package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
  69. package/src/sap/cux/home/BaseSettingsDialog.ts +2 -2
  70. package/src/sap/cux/home/BaseSettingsPanel.d.ts +3 -3
  71. package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
  72. package/src/sap/cux/home/BaseSettingsPanel.js +4 -3
  73. package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
  74. package/src/sap/cux/home/BaseSettingsPanel.ts +6 -4
  75. package/src/sap/cux/home/CardsPanel.d.ts +2 -2
  76. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  77. package/src/sap/cux/home/CardsPanel.js +15 -7
  78. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  79. package/src/sap/cux/home/CardsPanel.ts +11 -10
  80. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  81. package/src/sap/cux/home/ContentAdditionDialog.js +1 -2
  82. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  83. package/src/sap/cux/home/ContentAdditionDialog.ts +1 -2
  84. package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
  85. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  86. package/src/sap/cux/home/ErrorPanel.js +13 -3
  87. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  88. package/src/sap/cux/home/ErrorPanel.ts +9 -3
  89. package/src/sap/cux/home/FavAppPanel.d.ts +2 -2
  90. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  91. package/src/sap/cux/home/FavAppPanel.js +7 -6
  92. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  93. package/src/sap/cux/home/FavAppPanel.ts +10 -9
  94. package/src/sap/cux/home/FrequentAppPanel.d.ts +2 -2
  95. package/src/sap/cux/home/FrequentAppPanel.js +2 -2
  96. package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
  97. package/src/sap/cux/home/FrequentAppPanel.ts +2 -2
  98. package/src/sap/cux/home/Group.d.ts +2 -2
  99. package/src/sap/cux/home/Group.js +2 -2
  100. package/src/sap/cux/home/Group.js.map +1 -1
  101. package/src/sap/cux/home/Group.ts +2 -2
  102. package/src/sap/cux/home/IToDoPanel.d.ts +2 -2
  103. package/src/sap/cux/home/IToDoPanel.js.map +1 -1
  104. package/src/sap/cux/home/IToDoPanel.ts +2 -2
  105. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  106. package/src/sap/cux/home/InsightsAdditionPanel.js +4 -7
  107. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  108. package/src/sap/cux/home/InsightsAdditionPanel.ts +6 -8
  109. package/src/sap/cux/home/InsightsContainer.d.ts +4 -5
  110. package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
  111. package/src/sap/cux/home/InsightsContainer.js +10 -15
  112. package/src/sap/cux/home/InsightsContainer.js.map +1 -1
  113. package/src/sap/cux/home/InsightsContainer.ts +17 -16
  114. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  115. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +7 -5
  116. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  117. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +6 -5
  118. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts +11 -5
  119. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
  120. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +161 -83
  121. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  122. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +167 -83
  123. package/src/sap/cux/home/KeyUserSettingsDialog.d.ts.map +1 -1
  124. package/src/sap/cux/home/KeyUserSettingsDialog.js +18 -12
  125. package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
  126. package/src/sap/cux/home/KeyUserSettingsDialog.ts +9 -5
  127. package/src/sap/cux/home/Layout.d.ts +2 -4
  128. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  129. package/src/sap/cux/home/Layout.js +35 -43
  130. package/src/sap/cux/home/Layout.js.map +1 -1
  131. package/src/sap/cux/home/Layout.ts +15 -21
  132. package/src/sap/cux/home/MenuItem.d.ts +2 -2
  133. package/src/sap/cux/home/MenuItem.js +2 -2
  134. package/src/sap/cux/home/MenuItem.js.map +1 -1
  135. package/src/sap/cux/home/MenuItem.ts +2 -2
  136. package/src/sap/cux/home/NewsAndPagesContainer.d.ts +28 -3
  137. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
  138. package/src/sap/cux/home/NewsAndPagesContainer.js +63 -39
  139. package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
  140. package/src/sap/cux/home/NewsAndPagesContainer.ts +68 -41
  141. package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
  142. package/src/sap/cux/home/NewsGroup.js +11 -6
  143. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  144. package/src/sap/cux/home/NewsGroup.ts +11 -8
  145. package/src/sap/cux/home/NewsPanel.d.ts +44 -7
  146. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  147. package/src/sap/cux/home/NewsPanel.gen.d.ts +0 -91
  148. package/src/sap/cux/home/NewsPanel.js +303 -214
  149. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  150. package/src/sap/cux/home/NewsPanel.ts +190 -117
  151. package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
  152. package/src/sap/cux/home/NewsSettingsPanel.js +11 -7
  153. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  154. package/src/sap/cux/home/NewsSettingsPanel.ts +14 -8
  155. package/src/sap/cux/home/NoDataContainer.d.ts +2 -3
  156. package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
  157. package/src/sap/cux/home/NoDataContainer.js +3 -3
  158. package/src/sap/cux/home/NoDataContainer.js.map +1 -1
  159. package/src/sap/cux/home/NoDataContainer.ts +3 -3
  160. package/src/sap/cux/home/PagePanel.d.ts +11 -3
  161. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  162. package/src/sap/cux/home/PagePanel.js +17 -6
  163. package/src/sap/cux/home/PagePanel.js.map +1 -1
  164. package/src/sap/cux/home/PagePanel.ts +17 -7
  165. package/src/sap/cux/home/RecentAppPanel.d.ts +2 -2
  166. package/src/sap/cux/home/RecentAppPanel.js +2 -2
  167. package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
  168. package/src/sap/cux/home/RecentAppPanel.ts +2 -2
  169. package/src/sap/cux/home/RecommendedAppPanel.d.ts +2 -2
  170. package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
  171. package/src/sap/cux/home/RecommendedAppPanel.js +15 -9
  172. package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
  173. package/src/sap/cux/home/RecommendedAppPanel.ts +11 -6
  174. package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +48 -0
  175. package/src/sap/cux/home/SideBySideIconTabFilter.d.ts.map +1 -0
  176. package/src/sap/cux/home/SideBySideIconTabFilter.gen.d.ts +33 -0
  177. package/src/sap/cux/home/SideBySideIconTabFilter.js +83 -0
  178. package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -0
  179. package/src/sap/cux/home/SideBySideIconTabFilter.ts +87 -0
  180. package/src/sap/cux/home/SituationPanel.d.ts +2 -2
  181. package/src/sap/cux/home/SituationPanel.js +2 -2
  182. package/src/sap/cux/home/SituationPanel.js.map +1 -1
  183. package/src/sap/cux/home/SituationPanel.ts +2 -2
  184. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +2 -2
  185. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  186. package/src/sap/cux/home/SpaceInsightsPanel.js +15 -4
  187. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  188. package/src/sap/cux/home/SpaceInsightsPanel.ts +11 -4
  189. package/src/sap/cux/home/SpacePanel.d.ts +2 -2
  190. package/src/sap/cux/home/SpacePanel.js +2 -2
  191. package/src/sap/cux/home/SpacePanel.js.map +1 -1
  192. package/src/sap/cux/home/SpacePanel.ts +2 -2
  193. package/src/sap/cux/home/TaskPanel.d.ts +2 -2
  194. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  195. package/src/sap/cux/home/TaskPanel.js +6 -11
  196. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  197. package/src/sap/cux/home/TaskPanel.ts +6 -11
  198. package/src/sap/cux/home/TilesPanel.d.ts +2 -3
  199. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  200. package/src/sap/cux/home/TilesPanel.js +93 -63
  201. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  202. package/src/sap/cux/home/TilesPanel.ts +97 -80
  203. package/src/sap/cux/home/ToDoPanel.d.ts +2 -2
  204. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  205. package/src/sap/cux/home/ToDoPanel.js +15 -20
  206. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  207. package/src/sap/cux/home/ToDoPanel.ts +11 -21
  208. package/src/sap/cux/home/ToDosContainer.d.ts +2 -4
  209. package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
  210. package/src/sap/cux/home/ToDosContainer.js +5 -10
  211. package/src/sap/cux/home/ToDosContainer.js.map +1 -1
  212. package/src/sap/cux/home/ToDosContainer.ts +3 -10
  213. package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts +1 -2
  214. package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts.map +1 -1
  215. package/src/sap/cux/home/changeHandler/LayoutHandler.js +0 -3
  216. package/src/sap/cux/home/changeHandler/LayoutHandler.js.map +1 -1
  217. package/src/sap/cux/home/changeHandler/LayoutHandler.ts +2 -6
  218. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
  219. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +0 -3
  220. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
  221. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +0 -3
  222. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  223. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -3
  224. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  225. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +1 -3
  226. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
  227. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +0 -3
  228. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
  229. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +0 -3
  230. package/src/sap/cux/home/designtime/Layout.designtime.d.ts +1 -1
  231. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
  232. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +4 -3
  233. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
  234. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +3 -2
  235. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +0 -2
  236. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
  237. package/src/sap/cux/home/flexibility/Layout.flexibility.js +0 -2
  238. package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
  239. package/src/sap/cux/home/flexibility/Layout.flexibility.ts +0 -2
  240. package/src/sap/cux/home/i18n/messagebundle.properties +18 -9
  241. package/src/sap/cux/home/i18n/messagebundle_ar.properties +16 -10
  242. package/src/sap/cux/home/i18n/messagebundle_bg.properties +16 -10
  243. package/src/sap/cux/home/i18n/messagebundle_ca.properties +16 -10
  244. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +16 -10
  245. package/src/sap/cux/home/i18n/messagebundle_cs.properties +16 -10
  246. package/src/sap/cux/home/i18n/messagebundle_cy.properties +16 -10
  247. package/src/sap/cux/home/i18n/messagebundle_da.properties +16 -10
  248. package/src/sap/cux/home/i18n/messagebundle_de.properties +26 -20
  249. package/src/sap/cux/home/i18n/messagebundle_el.properties +22 -16
  250. package/src/sap/cux/home/i18n/messagebundle_en.properties +16 -10
  251. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +16 -10
  252. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +13 -7
  253. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +13 -7
  254. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +16 -10
  255. package/src/sap/cux/home/i18n/messagebundle_es.properties +16 -10
  256. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +16 -10
  257. package/src/sap/cux/home/i18n/messagebundle_et.properties +16 -10
  258. package/src/sap/cux/home/i18n/messagebundle_fi.properties +16 -10
  259. package/src/sap/cux/home/i18n/messagebundle_fr.properties +18 -12
  260. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +16 -10
  261. package/src/sap/cux/home/i18n/messagebundle_hi.properties +16 -10
  262. package/src/sap/cux/home/i18n/messagebundle_hr.properties +16 -10
  263. package/src/sap/cux/home/i18n/messagebundle_hu.properties +16 -10
  264. package/src/sap/cux/home/i18n/messagebundle_id.properties +21 -15
  265. package/src/sap/cux/home/i18n/messagebundle_it.properties +17 -11
  266. package/src/sap/cux/home/i18n/messagebundle_iw.properties +16 -10
  267. package/src/sap/cux/home/i18n/messagebundle_ja.properties +20 -14
  268. package/src/sap/cux/home/i18n/messagebundle_kk.properties +16 -10
  269. package/src/sap/cux/home/i18n/messagebundle_ko.properties +16 -10
  270. package/src/sap/cux/home/i18n/messagebundle_lt.properties +16 -10
  271. package/src/sap/cux/home/i18n/messagebundle_lv.properties +16 -10
  272. package/src/sap/cux/home/i18n/messagebundle_mk.properties +16 -10
  273. package/src/sap/cux/home/i18n/messagebundle_ms.properties +16 -10
  274. package/src/sap/cux/home/i18n/messagebundle_nl.properties +16 -10
  275. package/src/sap/cux/home/i18n/messagebundle_no.properties +16 -10
  276. package/src/sap/cux/home/i18n/messagebundle_pl.properties +16 -10
  277. package/src/sap/cux/home/i18n/messagebundle_pt.properties +16 -10
  278. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +16 -10
  279. package/src/sap/cux/home/i18n/messagebundle_ro.properties +16 -10
  280. package/src/sap/cux/home/i18n/messagebundle_ru.properties +26 -20
  281. package/src/sap/cux/home/i18n/messagebundle_sh.properties +16 -10
  282. package/src/sap/cux/home/i18n/messagebundle_sk.properties +17 -11
  283. package/src/sap/cux/home/i18n/messagebundle_sl.properties +16 -10
  284. package/src/sap/cux/home/i18n/messagebundle_sr.properties +16 -10
  285. package/src/sap/cux/home/i18n/messagebundle_sv.properties +16 -10
  286. package/src/sap/cux/home/i18n/messagebundle_th.properties +18 -12
  287. package/src/sap/cux/home/i18n/messagebundle_tr.properties +16 -10
  288. package/src/sap/cux/home/i18n/messagebundle_uk.properties +17 -11
  289. package/src/sap/cux/home/i18n/messagebundle_vi.properties +16 -10
  290. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +16 -10
  291. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +16 -10
  292. package/src/sap/cux/home/interface/CardsInterface.d.ts +1 -5
  293. package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
  294. package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
  295. package/src/sap/cux/home/interface/CardsInterface.ts +1 -1
  296. package/src/sap/cux/home/interface/KeyUserInterface.d.ts +2 -0
  297. package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
  298. package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
  299. package/src/sap/cux/home/interface/KeyUserInterface.ts +2 -0
  300. package/src/sap/cux/home/library.d.ts +26 -15
  301. package/src/sap/cux/home/library.d.ts.map +1 -1
  302. package/src/sap/cux/home/library.js +26 -15
  303. package/src/sap/cux/home/library.js.map +1 -1
  304. package/src/sap/cux/home/library.ts +27 -15
  305. package/src/sap/cux/home/themes/base/BaseContainer.less +31 -0
  306. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +0 -8
  307. package/src/sap/cux/home/themes/base/KeyUserSettingsDialog.less +5 -0
  308. package/src/sap/cux/home/themes/base/NewsAndPagesContainer.less +4 -0
  309. package/src/sap/cux/home/themes/base/ToDosContainer.less +2 -5
  310. package/src/sap/cux/home/utils/CommonUtils.d.ts +1 -1
  311. package/src/sap/cux/home/utils/CommonUtils.d.ts.map +1 -1
  312. package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
  313. package/src/sap/cux/home/utils/CommonUtils.ts +5 -2
  314. package/src/sap/cux/home/utils/FeatureUtils.js +0 -2
  315. package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
  316. package/src/sap/cux/home/utils/FeatureUtils.ts +3 -3
  317. package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
  318. package/src/sap/cux/home/utils/HttpHelper.ts +1 -1
  319. package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +0 -4
  320. package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
  321. package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
  322. package/src/sap/cux/home/utils/UshellPersonalizer.ts +0 -1
  323. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +9 -4
  324. package/src/sap/cux/home/{AppsContainerGenericPlaceholder.d.ts → utils/placeholder/AppsPlaceholder.d.ts} +2 -2
  325. package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.d.ts.map +1 -0
  326. package/src/sap/cux/home/{AppsContainerGenericPlaceholder.js → utils/placeholder/AppsPlaceholder.js} +1 -1
  327. package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.js.map +1 -0
  328. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +8 -0
  329. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +1 -0
  330. package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.js → utils/placeholder/InsightsPlaceholder.js} +1 -1
  331. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +1 -0
  332. package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.d.ts → utils/placeholder/NewsAndPagesPlaceholder.d.ts} +3 -3
  333. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +1 -0
  334. package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.js → utils/placeholder/NewsAndPagesPlaceholder.js} +1 -1
  335. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +1 -0
  336. package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.d.ts → utils/placeholder/ToDosPlaceholder.d.ts} +2 -2
  337. package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.d.ts.map +1 -0
  338. package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.js → utils/placeholder/ToDosPlaceholder.js} +1 -1
  339. package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.js.map +1 -0
  340. package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts.map +0 -1
  341. package/src/sap/cux/home/AppsContainerGenericPlaceholder.js.map +0 -1
  342. package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts.map +0 -1
  343. package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js.map +0 -1
  344. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts +0 -8
  345. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts.map +0 -1
  346. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js.map +0 -1
  347. package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts.map +0 -1
  348. package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js.map +0 -1
  349. package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts +0 -19
  350. package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +0 -1
  351. package/src/sap/cux/home/utils/KeyUserPersonalization.js +0 -127
  352. package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +0 -1
  353. package/src/sap/cux/home/utils/KeyUserPersonalization.ts +0 -94
  354. /package/src/sap/cux/home/{AppsContainerGenericPlaceholder.ts → utils/placeholder/AppsPlaceholder.ts} +0 -0
  355. /package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.ts → utils/placeholder/InsightsPlaceholder.ts} +0 -0
  356. /package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.ts → utils/placeholder/NewsAndPagesPlaceholder.ts} +0 -0
  357. /package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.ts → utils/placeholder/ToDosPlaceholder.ts} +0 -0
@@ -109,8 +109,8 @@ const sortedMenuItems: (favouritesMenuItems | string)[] = [
109
109
  * @version 0.0.1
110
110
  * @since 1.121.0
111
111
  *
112
- * @internal
113
- * @public
112
+ * @private
113
+ * @ui5-restricted ux.eng.s4producthomes1
114
114
  *
115
115
  * @alias sap.cux.home.FavAppPanel
116
116
  */
@@ -484,8 +484,8 @@ export default class FavAppPanel extends BaseAppPersPanel {
484
484
  const selectColorMenuItem = new MenuItem({
485
485
  id:
486
486
  groupId && !defaultSection
487
- ? recycleId(`${groupId}--selectColorGroupAppMenuItem--${index}`)
488
- : recycleId(`${this.getKey()}--selectColorAppMenuItem--${index}`),
487
+ ? recycleId(`_${groupId}--selectColorGroupAppMenuItem--${index}`)
488
+ : recycleId(`_${this.getKey()}--selectColorAppMenuItem--${index}`),
489
489
  title: this._i18nBundle.getText("selectColor"),
490
490
  type: ListType.Navigation,
491
491
  press: this._openColorPopover.bind(this)
@@ -498,8 +498,8 @@ export default class FavAppPanel extends BaseAppPersPanel {
498
498
  const moveToMenuItem = new MenuItem({
499
499
  id:
500
500
  groupId && !defaultSection
501
- ? recycleId(`${groupId}--moveToGroupAppMenuItem--${index}`)
502
- : recycleId(`${this.getKey()}--moveToMenuItem--${index}`),
501
+ ? recycleId(`_${groupId}--moveToGroupAppMenuItem--${index}`)
502
+ : recycleId(`_${this.getKey()}--moveToMenuItem--${index}`),
503
503
  title: this._i18nBundle.getText("moveTo"),
504
504
  type: ListType.Navigation,
505
505
  press: (event) => this._openMoveToGroupPopover(event, group)
@@ -523,8 +523,8 @@ export default class FavAppPanel extends BaseAppPersPanel {
523
523
  const removeFromMyHomeMenuItem = new MenuItem({
524
524
  id:
525
525
  groupId && !defaultSection
526
- ? recycleId(`${groupId}--removeFromMyHomeGroupAppMenuItem--${index}`)
527
- : recycleId(`${this.getKey()}--removeFromMyHomeMenuItem--${index}`),
526
+ ? recycleId(`_${groupId}--removeFromMyHomeGroupAppMenuItem--${index}`)
527
+ : recycleId(`_${this.getKey()}--removeFromMyHomeMenuItem--${index}`),
528
528
  title: this._i18nBundle.getText("removeFromMyHome"),
529
529
  press: (event: Event) => {
530
530
  const source = event.getSource<MenuItem>();
@@ -2805,7 +2805,7 @@ export default class FavAppPanel extends BaseAppPersPanel {
2805
2805
  const illustratedMessage = super.generateIllustratedMessage();
2806
2806
  //overrride the default title and add additional content
2807
2807
  illustratedMessage.setDescription(this._i18nBundle.getText("noFavAppsDescription"));
2808
- illustratedMessage.setIllustrationSize(IllustratedMessageSize.Small);
2808
+ illustratedMessage.setIllustrationSize(IllustratedMessageSize.ExtraSmall);
2809
2809
  illustratedMessage.setIllustrationType(IllustratedMessageType.AddingColumns);
2810
2810
  illustratedMessage.addAdditionalContent(
2811
2811
  new Button(`${this.getId()}-errorMessage-addApps`, {
@@ -2819,6 +2819,7 @@ export default class FavAppPanel extends BaseAppPersPanel {
2819
2819
  type: "Emphasized"
2820
2820
  })
2821
2821
  );
2822
+ illustratedMessage.addStyleClass("sapUiTinyMarginTop");
2822
2823
  return illustratedMessage;
2823
2824
  }
2824
2825
  }
@@ -12,8 +12,8 @@ declare module "sap/cux/home/FrequentAppPanel" {
12
12
  * @version 0.0.1
13
13
  * @since 1.121.0
14
14
  *
15
- * @internal
16
- * @public
15
+ * @private
16
+ * @ui5-restricted ux.eng.s4producthomes1
17
17
  *
18
18
  * @alias sap.cux.home.FrequentAppPanel
19
19
  */
@@ -31,8 +31,8 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/EventBus", "sap/ushell/Container", "
31
31
  * @version 0.0.1
32
32
  * @since 1.121.0
33
33
  *
34
- * @internal
35
- * @public
34
+ * @private
35
+ * @ui5-restricted ux.eng.s4producthomes1
36
36
  *
37
37
  * @alias sap.cux.home.FrequentAppPanel
38
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"FrequentAppPanel.js","names":["sap","ui","define","Log","EventBus","Container","EventHub","__BaseAppPersPanel","__MenuItem","_interopRequireDefault","obj","__esModule","default","_catch","body","recover","result","e","then","BaseAppPersPanel","MenuItem","FrequentAppPanel","extend","metadata","library","defaultAggregation","aggregations","apps","type","singularName","multiple","visibility","constructor","_constructor","id","settings","BaseAppPersPanel.prototype.constructor.call","setSupported","init","_init","BaseAppPersPanel.prototype.init.call","setProperty","_i18nBundle","getText","_attachUserActivityTracking","on","do","refresh","oEventBus","getInstance","subscribe","channelId","eventId","data","item","color","_applyUngroupedTileColor","loadApps","_loadApps","_this","Promise","resolve","_getFrequentVisualizations","frequentVisualizations","destroyAggregation","map","visualization","index","menuItems","_getActions","addedInFavorites","frequentApps","generateApps","setApps","reject","_this2","getServiceAsync","UserRecentsService","getFrequentActivity","frequentActivities","convertActivitiesToVisualizations","error","isAppAddedInFavorite","action","push","getKey","title","icon","press","event","_addAppToFavorites","generateIllustratedMessage","_generateIllustratedMessage","illustratedMessage","BaseAppPersPanel.prototype.generateIllustratedMessage.call","setDescription"],"sources":["FrequentAppPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport EventBus from \"sap/ui/core/EventBus\";\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport UserRecents from \"sap/ushell/services/UserRecents\";\nimport App from \"./App\";\nimport BaseAppPersPanel from \"./BaseAppPersPanel\";\nimport type { $BasePanelSettings } from \"./BasePanel\";\nimport Group from \"./Group\";\nimport { IActivity } from \"./interface/AppsInterface\";\nimport MenuItem from \"./MenuItem\";\n\n/**\n *\n * Provides the class for managing frequent apps.\n *\n * @extends sap.cux.home.BaseAppPersPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @internal\n * @public\n *\n * @alias sap.cux.home.FrequentAppPanel\n */\n\nexport default class FrequentAppPanel extends BaseAppPersPanel {\n\tprivate oEventBus!: EventBus;\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tdefaultAggregation: \"apps\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Frequent apps\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", singularName: \"app\", multiple: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\t/**\n\t * Constructor for a new frequent app panel.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $BasePanelSettings) {\n\t\tsuper(id, settings);\n\t\tthis.setSupported(false);\n\t}\n\n\tpublic init() {\n\t\tsuper.init();\n\t\tthis.setProperty(\"key\", \"frequentApps\");\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"frequentlyUsedTab\"));\n\t\tthis.setProperty(\"tooltip\", this._i18nBundle.getText(\"frequentlyUsedTabInfo\"));\n\t\tthis._attachUserActivityTracking();\n\t\tEventHub.on(\"userRecentsCleared\").do(() => {\n\t\t\tvoid this.refresh();\n\t\t});\n\n\t\tthis.oEventBus = EventBus.getInstance();\n\t\tthis.oEventBus.subscribe(\n\t\t\t\"appsChannel\",\n\t\t\t\"favAppColorChanged\",\n\t\t\t(channelId?: string, eventId?: string, data?) => {\n\t\t\t\tconst { item, color } = data as { item: App | Group; color: string };\n\t\t\t\t//update color of the app in most used apps\n\t\t\t\tthis._applyUngroupedTileColor(item, color);\n\t\t\t},\n\t\t\tthis\n\t\t);\n\t}\n\n\t/**\n\t * Fetch frequent apps and set apps aggregation\n\t * @private\n\t */\n\tpublic async loadApps() {\n\t\tlet frequentVisualizations = await this._getFrequentVisualizations();\n\t\tthis.destroyAggregation(\"apps\", true);\n\t\tfrequentVisualizations = frequentVisualizations.map((visualization, index) => {\n\t\t\treturn {\n\t\t\t\t...visualization,\n\t\t\t\tmenuItems: this._getActions(visualization.addedInFavorites, index)\n\t\t\t};\n\t\t});\n\t\t//convert apps objects array to apps instances\n\t\tconst frequentApps = this.generateApps(frequentVisualizations);\n\t\tthis.setApps(frequentApps);\n\t}\n\n\t/**\n\t * Returns list of frequent apps\n\t * @private\n\t * @returns {object[]} - Array of frequent apps.\n\t */\n\tprivate async _getFrequentVisualizations() {\n\t\ttry {\n\t\t\tconst UserRecentsService = await Container.getServiceAsync<UserRecents>(\"UserRecents\");\n\t\t\tconst frequentActivities: IActivity[] = (await UserRecentsService?.getFrequentActivity()) || [];\n\t\t\t//convert activity to apps\n\t\t\tconst frequentVisualizations = await this.convertActivitiesToVisualizations(frequentActivities);\n\t\t\treturn frequentVisualizations;\n\t\t} catch (error) {\n\t\t\tLog.error(error as string);\n\t\t\treturn [];\n\t\t}\n\t}\n\n\t/**\n\t * Returns list of actions available for selected app\n\t * @private\n\t * @param {boolean} isAppAddedInFavorite - true if app is already present in favorite, false otherwise.\n\t * @returns {sap.cux.home.MenuItem[]} - Array of list items.\n\t */\n\tprivate _getActions(isAppAddedInFavorite: boolean = false, index?: number) {\n\t\tconst action = [];\n\t\tif (!isAppAddedInFavorite) {\n\t\t\taction.push(\n\t\t\t\tnew MenuItem(`${this.getKey()}--addToFavorites--${index}`, {\n\t\t\t\t\ttitle: this._i18nBundle.getText(\"addToFavorites\"),\n\t\t\t\t\ticon: \"sap-icon://add-favorite\",\n\t\t\t\t\tpress: (event) => {\n\t\t\t\t\t\tvoid this._addAppToFavorites(event);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\t\treturn action;\n\t}\n\n\t/**\n\t * Generates illustrated message for frequent apps panel.\n\t * @private\n\t * @override\n\t * @returns {sap.m.IllustratedMessage} Illustrated error message.\n\t */\n\tprotected generateIllustratedMessage() {\n\t\tconst illustratedMessage = super.generateIllustratedMessage();\n\t\t//override the default description\n\t\tillustratedMessage.setDescription(this._i18nBundle.getText(\"noFreqAppsDescription\"));\n\t\treturn illustratedMessage;\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,wIAAAC,GAAA,EAAAC,QAAA,EAAAC,SAAA,EAAAC,QAAA,EAAAC,kBAAA,EAAAC,UAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAkjBO,SAAAG,OAAgBC,IAAI,EAAEC,OAAO,EAAE;IACrC,IAAI;MACH,IAAIC,MAAM,GAAGF,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC,OAAMG,CAAC,EAAE;MACV,OAAOF,OAAO,CAACE,CAAC,CAAC;IAClB;IACA,IAAID,MAAM,IAAIA,MAAM,CAACE,IAAI,EAAE;MAC1B,OAAOF,MAAM,CAACE,IAAI,C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reList":[]}
1
+ {"version":3,"file":"FrequentAppPanel.js","names":["sap","ui","define","Log","EventBus","Container","EventHub","__BaseAppPersPanel","__MenuItem","_interopRequireDefault","obj","__esModule","default","_catch","body","recover","result","e","then","BaseAppPersPanel","MenuItem","FrequentAppPanel","extend","metadata","library","defaultAggregation","aggregations","apps","type","singularName","multiple","visibility","constructor","_constructor","id","settings","BaseAppPersPanel.prototype.constructor.call","setSupported","init","_init","BaseAppPersPanel.prototype.init.call","setProperty","_i18nBundle","getText","_attachUserActivityTracking","on","do","refresh","oEventBus","getInstance","subscribe","channelId","eventId","data","item","color","_applyUngroupedTileColor","loadApps","_loadApps","_this","Promise","resolve","_getFrequentVisualizations","frequentVisualizations","destroyAggregation","map","visualization","index","menuItems","_getActions","addedInFavorites","frequentApps","generateApps","setApps","reject","_this2","getServiceAsync","UserRecentsService","getFrequentActivity","frequentActivities","convertActivitiesToVisualizations","error","isAppAddedInFavorite","action","push","getKey","title","icon","press","event","_addAppToFavorites","generateIllustratedMessage","_generateIllustratedMessage","illustratedMessage","BaseAppPersPanel.prototype.generateIllustratedMessage.call","setDescription"],"sources":["FrequentAppPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport EventBus from \"sap/ui/core/EventBus\";\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport UserRecents from \"sap/ushell/services/UserRecents\";\nimport App from \"./App\";\nimport BaseAppPersPanel from \"./BaseAppPersPanel\";\nimport type { $BasePanelSettings } from \"./BasePanel\";\nimport Group from \"./Group\";\nimport { IActivity } from \"./interface/AppsInterface\";\nimport MenuItem from \"./MenuItem\";\n\n/**\n *\n * Provides the class for managing frequent apps.\n *\n * @extends sap.cux.home.BaseAppPersPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.FrequentAppPanel\n */\n\nexport default class FrequentAppPanel extends BaseAppPersPanel {\n\tprivate oEventBus!: EventBus;\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tdefaultAggregation: \"apps\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Frequent apps\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", singularName: \"app\", multiple: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\t/**\n\t * Constructor for a new frequent app panel.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $BasePanelSettings) {\n\t\tsuper(id, settings);\n\t\tthis.setSupported(false);\n\t}\n\n\tpublic init() {\n\t\tsuper.init();\n\t\tthis.setProperty(\"key\", \"frequentApps\");\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"frequentlyUsedTab\"));\n\t\tthis.setProperty(\"tooltip\", this._i18nBundle.getText(\"frequentlyUsedTabInfo\"));\n\t\tthis._attachUserActivityTracking();\n\t\tEventHub.on(\"userRecentsCleared\").do(() => {\n\t\t\tvoid this.refresh();\n\t\t});\n\n\t\tthis.oEventBus = EventBus.getInstance();\n\t\tthis.oEventBus.subscribe(\n\t\t\t\"appsChannel\",\n\t\t\t\"favAppColorChanged\",\n\t\t\t(channelId?: string, eventId?: string, data?) => {\n\t\t\t\tconst { item, color } = data as { item: App | Group; color: string };\n\t\t\t\t//update color of the app in most used apps\n\t\t\t\tthis._applyUngroupedTileColor(item, color);\n\t\t\t},\n\t\t\tthis\n\t\t);\n\t}\n\n\t/**\n\t * Fetch frequent apps and set apps aggregation\n\t * @private\n\t */\n\tpublic async loadApps() {\n\t\tlet frequentVisualizations = await this._getFrequentVisualizations();\n\t\tthis.destroyAggregation(\"apps\", true);\n\t\tfrequentVisualizations = frequentVisualizations.map((visualization, index) => {\n\t\t\treturn {\n\t\t\t\t...visualization,\n\t\t\t\tmenuItems: this._getActions(visualization.addedInFavorites, index)\n\t\t\t};\n\t\t});\n\t\t//convert apps objects array to apps instances\n\t\tconst frequentApps = this.generateApps(frequentVisualizations);\n\t\tthis.setApps(frequentApps);\n\t}\n\n\t/**\n\t * Returns list of frequent apps\n\t * @private\n\t * @returns {object[]} - Array of frequent apps.\n\t */\n\tprivate async _getFrequentVisualizations() {\n\t\ttry {\n\t\t\tconst UserRecentsService = await Container.getServiceAsync<UserRecents>(\"UserRecents\");\n\t\t\tconst frequentActivities: IActivity[] = (await UserRecentsService?.getFrequentActivity()) || [];\n\t\t\t//convert activity to apps\n\t\t\tconst frequentVisualizations = await this.convertActivitiesToVisualizations(frequentActivities);\n\t\t\treturn frequentVisualizations;\n\t\t} catch (error) {\n\t\t\tLog.error(error as string);\n\t\t\treturn [];\n\t\t}\n\t}\n\n\t/**\n\t * Returns list of actions available for selected app\n\t * @private\n\t * @param {boolean} isAppAddedInFavorite - true if app is already present in favorite, false otherwise.\n\t * @returns {sap.cux.home.MenuItem[]} - Array of list items.\n\t */\n\tprivate _getActions(isAppAddedInFavorite: boolean = false, index?: number) {\n\t\tconst action = [];\n\t\tif (!isAppAddedInFavorite) {\n\t\t\taction.push(\n\t\t\t\tnew MenuItem(`${this.getKey()}--addToFavorites--${index}`, {\n\t\t\t\t\ttitle: this._i18nBundle.getText(\"addToFavorites\"),\n\t\t\t\t\ticon: \"sap-icon://add-favorite\",\n\t\t\t\t\tpress: (event) => {\n\t\t\t\t\t\tvoid this._addAppToFavorites(event);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\t\treturn action;\n\t}\n\n\t/**\n\t * Generates illustrated message for frequent apps panel.\n\t * @private\n\t * @override\n\t * @returns {sap.m.IllustratedMessage} Illustrated error message.\n\t */\n\tprotected generateIllustratedMessage() {\n\t\tconst illustratedMessage = super.generateIllustratedMessage();\n\t\t//override the default description\n\t\tillustratedMessage.setDescription(this._i18nBundle.getText(\"noFreqAppsDescription\"));\n\t\treturn illustratedMessage;\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,wIAAAC,GAAA,EAAAC,QAAA,EAAAC,SAAA,EAAAC,QAAA,EAAAC,kBAAA,EAAAC,UAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAkjBO,SAAAG,OAAgBC,IAAI,EAAEC,OAAO,EAAE;IACrC,IAAI;MACH,IAAIC,MAAM,GAAGF,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC,OAAMG,CAAC,EAAE;MACV,OAAOF,OAAO,CAACE,CAAC,CAAC;IAClB;IACA,IAAID,MAAM,IAAIA,MAAM,CAACE,IAAI,EAAE;MAC1B,OAAOF,MAAM,CAACE,IAAI,CAAC,KAAK,CAAC,EAAEH,OAAO,CAAC;IACpC;IACA,OAAOC,MAAM;EACd;EAAC,MAhjBMG,gBAAgB,GAAAV,sBAAA,CAAAF,kBAAA;EAAA,MAIhBa,QAAQ,GAAAX,sBAAA,CAAAD,UAAA;EAEf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAdA,MAgBqBa,gBAAgB,GAASF,gBAAgB,CAAAG,MAAA;IAE7CC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,kBAAkB,EAAE,MAAM;MAC1BC,YAAY,EAAE;QACb;AACH;AACA;QACGC,IAAI,EAAE;UAAEC,IAAI,EAAE,kBAAkB;UAAEC,YAAY,EAAE,KAAK;UAAEC,QAAQ,EAAE,IAAI;UAAEC,UAAU,EAAE;QAAS;MAC7F;IACD,CAAC;IAED;AACD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AE;MACjB,IAAI,CAACD,oBAAoB,EAAE;QAC1BC,MAAM,CAACC,IAAI,CACV,IAAIhE,QAAQ,CAAC,GAAG,IAAI,CAACiE,MAAM,CAAC,CAAC,qBAAqBlB,KAAK,EAAE,EAAE;UAC1DmB,KAAK,EAAE,IAAI,CAAC5C,WAAW,CAACC,OAAO,CAAC,gBAAgB,CAAC;UACjD4C,IAAI,EAAE,yBAAyB;UAC/BC,KAAK,EAAGC,KAAK,IAAK;YACjB,KAAK,IAAI,CAACC,kBAAkB,CAACD,KAAK,CAAC;UACpC;QACD,CAAC,CACF,CAAC;MACF;MACA,OAAON,MAAM;IACd,CAAC;IAED;AACD;AACA;AACA;AACA;AACA;IACWQ,0BAA0B,WAAAC,4BAAA,EAAG;MACtC,MAAMC,kBAAkB,GAAAC,0DAAA,MAAqC;MAC7D;MACAD,kBAAkB,CAACE,cAAc,CAAC,IAAI,CAACrD,WAAW,CAACC,OAAO,CAAC,uBAAuB,CAAC,CAAC;MACpF,OAAOkD,kBAAkB;IAC1B;EAAC;EAAA,OApHmBxE,gBAAgB;AAAA","ignoreList":[]}
@@ -26,8 +26,8 @@ import MenuItem from "./MenuItem";
26
26
  * @version 0.0.1
27
27
  * @since 1.121.0
28
28
  *
29
- * @internal
30
- * @public
29
+ * @private
30
+ * @ui5-restricted ux.eng.s4producthomes1
31
31
  *
32
32
  * @alias sap.cux.home.FrequentAppPanel
33
33
  */
@@ -16,8 +16,8 @@ declare module "sap/cux/home/Group" {
16
16
  * @version 0.0.1
17
17
  * @since 1.121.0
18
18
  *
19
- * @internal
20
- * @public
19
+ * @private
20
+ * @ui5-restricted ux.eng.s4producthomes1
21
21
  *
22
22
  * @alias sap.cux.home.Group
23
23
  */
@@ -19,8 +19,8 @@ sap.ui.define(["./BaseApp"], function (__BaseApp) {
19
19
  * @version 0.0.1
20
20
  * @since 1.121.0
21
21
  *
22
- * @internal
23
- * @public
22
+ * @private
23
+ * @ui5-restricted ux.eng.s4producthomes1
24
24
  *
25
25
  * @alias sap.cux.home.Group
26
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Group.js","names":["sap","ui","define","__BaseApp","_interopRequireDefault","obj","__esModule","default","BaseApp","Group","extend","metadata","library","properties","number","type","group","defaultValue","groupId","pageId","aggregations","apps","multiple","singularName","events","press","parameters","constructor","_constructor","id","settings","BaseApp.prototype.constructor.call","_handlePress","firePress","getGroupId","getPageId"],"sources":["Group.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseApp from \"./BaseApp\";\nimport { $GroupSettings } from \"./Group\";\n\n/**\n *\n * Class for managing apps group.\n *\n * @extends sap.cux.home.BaseApp\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @internal\n * @public\n *\n * @alias sap.cux.home.Group\n */\nexport default class Group extends BaseApp {\n\tconstructor(idOrSettings?: string | $GroupSettings);\n\tconstructor(id?: string, settings?: $GroupSettings);\n\t/**\n\t * Constructor for a new Group.\n\t *\n\t * @param {string} [id] ID for the new group, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new group\n\t */\n\tpublic constructor(id?: string, settings?: $GroupSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Number of apps, shown as folder badge\n\t\t\t */\n\t\t\tnumber: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the group\n\t\t\t */\n\t\t\tgroupId: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the page associated with the group.\n\t\t\t */\n\t\t\tpageId: { type: \"string\", group: \"Misc\", defaultValue: \"\" }\n\t\t},\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Groups\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", multiple: true, singularName: \"app\" }\n\t\t},\n\t\tevents: {\n\t\t\t/**\n\t\t\t * Fired when the control is pressed.\n\t\t\t */\n\t\t\tpress: {\n\t\t\t\tparameters: {\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tgroupId: { type: \"string\" },\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the page associated with the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tpageId: { type: \"string\" }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * Handles the press event for a group.\n\t * Retrieves the parent of the group and shows the group detail dialog.\n\t * @private\n\t */\n\tpublic _handlePress(): void {\n\t\tthis.firePress({ groupId: this.getGroupId(), pageId: this.getPageId() });\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,0BAAAC,SAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAMOG,OAAO,GAAAJ,sBAAA,CAAAD,SAAA;EAGd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAdA,MAeqBM,KAAK,GAASD,OAAO,CAAAE,MAAA;IAazBC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,MAAM,EAAE;UAAEC,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG,CAAC;QAC3D;AACH;AACA;QACGC,OAAO,EAAE;UAAEH,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG,CAAC;QAC5D;AACH;AACA;QACGE,MAAM,EAAE;UAAEJ,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG;MAC3D,CAAC;MACDG,YAAY,EAAE;QACb;AACH;AACA;QACGC,IAAI,EAAE;UAAEN,IAAI,EAAE,kBAAkB;UAAEO,QAAQ,EAAE,IAAI;UAAEC,YAAY,EAAE;QAAM;MACvE,CAAC;MACDC,MAAM,EAAE;QACP;AACH;AACA;QACGC,KAAK,EAAE;UACNC,UAAU,EAAE;YACX;AACL;AACA;YACKR,OAAO,EAAE;cAAEH,IAAI,EAAE;YAAS,CAAC;YAC3B;AACL;AACA;YACKI,MAAM,EAAE;cAAEJ,IAAI,EAAE;YAAS;UAC1B;QACD;MACD;IACD,CAAC;IAjDD;AACD;AACA;AACA;AACA;AACA;IACQY,WAAW,WAAAC,aAACC,EAAW,EAAEC,QAAyB,EAAE;MAC1DC,kCAAA,OAAMF,EAAE,EAAEC,QAAQ;IACnB,CAAC;IA2CD;AACD;AACA;AACA;AACA;IACQE,YAAY,WAAAA,aAAA,EAAS;MAC3B,IAAI,CAACC,SAAS,CAAC;QAAEf,OAAO,EAAE,IAAI,CAACgB,UAAU,CAAC,CAAC;QAAEf,MAAM,EAAE,IAAI,CAACgB,SAAS,CAAC;MAAE,CAAC,CAAC;IACzE;EAAC;EAAA,OA7DmB1B,KAAK;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"Group.js","names":["sap","ui","define","__BaseApp","_interopRequireDefault","obj","__esModule","default","BaseApp","Group","extend","metadata","library","properties","number","type","group","defaultValue","groupId","pageId","aggregations","apps","multiple","singularName","events","press","parameters","constructor","_constructor","id","settings","BaseApp.prototype.constructor.call","_handlePress","firePress","getGroupId","getPageId"],"sources":["Group.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseApp from \"./BaseApp\";\nimport { $GroupSettings } from \"./Group\";\n\n/**\n *\n * Class for managing apps group.\n *\n * @extends sap.cux.home.BaseApp\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.Group\n */\nexport default class Group extends BaseApp {\n\tconstructor(idOrSettings?: string | $GroupSettings);\n\tconstructor(id?: string, settings?: $GroupSettings);\n\t/**\n\t * Constructor for a new Group.\n\t *\n\t * @param {string} [id] ID for the new group, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new group\n\t */\n\tpublic constructor(id?: string, settings?: $GroupSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Number of apps, shown as folder badge\n\t\t\t */\n\t\t\tnumber: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the group\n\t\t\t */\n\t\t\tgroupId: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the page associated with the group.\n\t\t\t */\n\t\t\tpageId: { type: \"string\", group: \"Misc\", defaultValue: \"\" }\n\t\t},\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Groups\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", multiple: true, singularName: \"app\" }\n\t\t},\n\t\tevents: {\n\t\t\t/**\n\t\t\t * Fired when the control is pressed.\n\t\t\t */\n\t\t\tpress: {\n\t\t\t\tparameters: {\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tgroupId: { type: \"string\" },\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the page associated with the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tpageId: { type: \"string\" }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * Handles the press event for a group.\n\t * Retrieves the parent of the group and shows the group detail dialog.\n\t * @private\n\t */\n\tpublic _handlePress(): void {\n\t\tthis.firePress({ groupId: this.getGroupId(), pageId: this.getPageId() });\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,0BAAAC,SAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAMOG,OAAO,GAAAJ,sBAAA,CAAAD,SAAA;EAGd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAdA,MAeqBM,KAAK,GAASD,OAAO,CAAAE,MAAA;IAazBC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,MAAM,EAAE;UAAEC,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG,CAAC;QAC3D;AACH;AACA;QACGC,OAAO,EAAE;UAAEH,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG,CAAC;QAC5D;AACH;AACA;QACGE,MAAM,EAAE;UAAEJ,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG;MAC3D,CAAC;MACDG,YAAY,EAAE;QACb;AACH;AACA;QACGC,IAAI,EAAE;UAAEN,IAAI,EAAE,kBAAkB;UAAEO,QAAQ,EAAE,IAAI;UAAEC,YAAY,EAAE;QAAM;MACvE,CAAC;MACDC,MAAM,EAAE;QACP;AACH;AACA;QACGC,KAAK,EAAE;UACNC,UAAU,EAAE;YACX;AACL;AACA;YACKR,OAAO,EAAE;cAAEH,IAAI,EAAE;YAAS,CAAC;YAC3B;AACL;AACA;YACKI,MAAM,EAAE;cAAEJ,IAAI,EAAE;YAAS;UAC1B;QACD;MACD;IACD,CAAC;IAjDD;AACD;AACA;AACA;AACA;AACA;IACQY,WAAW,WAAAC,aAACC,EAAW,EAAEC,QAAyB,EAAE;MAC1DC,kCAAA,OAAMF,EAAE,EAAEC,QAAQ;IACnB,CAAC;IA2CD;AACD;AACA;AACA;AACA;IACQE,YAAY,WAAAA,aAAA,EAAS;MAC3B,IAAI,CAACC,SAAS,CAAC;QAAEf,OAAO,EAAE,IAAI,CAACgB,UAAU,CAAC,CAAC;QAAEf,MAAM,EAAE,IAAI,CAACgB,SAAS,CAAC;MAAE,CAAC,CAAC;IACzE;EAAC;EAAA,OA7DmB1B,KAAK;AAAA","ignoreList":[]}
@@ -17,8 +17,8 @@ import { $GroupSettings } from "./Group";
17
17
  * @version 0.0.1
18
18
  * @since 1.121.0
19
19
  *
20
- * @internal
21
- * @public
20
+ * @private
21
+ * @ui5-restricted ux.eng.s4producthomes1
22
22
  *
23
23
  * @alias sap.cux.home.Group
24
24
  */
@@ -14,8 +14,8 @@ declare module "sap/cux/home/IToDoPanel" {
14
14
  * @since 1.121
15
15
  *
16
16
  * @interface
17
- * @internal
18
- * @public
17
+ * @private
18
+ * @ui5-restricted ux.eng.s4producthomes1
19
19
  *
20
20
  * @alias sap.cux.home.IToDoPanel
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"IToDoPanel.js","names":["sap","ui","define","IToDoPanel"],"sources":["IToDoPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Control from \"sap/ui/core/Control\";\nimport Context from \"sap/ui/model/Context\";\nimport { RequestOptions } from \"./ToDoPanel\";\n\n/**\n * Common Interface for creating To-Do Panels displayed in the {@link sap.cux.home.ToDosContainer}.\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @interface\n * @internal\n * @public\n *\n * @alias sap.cux.home.IToDoPanel\n */\nexport default interface IToDoPanel {\n\t/**\n\t * Generate a default card template for the To Do Panel.\n\t * An extended panel can have it's own template by overridding\n\t * this method and providing a custom card template.\n\t *\n\t * @public\n\t * @param {string} id The ID for the template.\n\t * @param {object} context The context required for the template.\n\t * @returns {object} The generated card template.\n\t */\n\tgenerateCardTemplate(id: string, context: Context): Control;\n\t/**\n\t * Provides custom request URLs specific to the To-Do Panel.\n\t *\n\t * @public\n\t * @param {number} cardCount - The number of cards which will be displayed in the To-Do Panel.\n\t * @returns {string[]} An array of request URLs.\n\t */\n\tgenerateRequestUrls?(cardCount: number): string[];\n\n\t/**\n\t * Handles the data received from a batch request.\n\t * This hook can be used to process the data before it is displayed.\n\t *\n\t * @public\n\t * @param {unknown[]} data - The data received from the request.\n\t * @param {RequestOptions} [options] - Optional request options.\n\t * @returns {Promise<void>} A promise that resolves when the data has been processed.\n\t */\n\tonDataReceived?(data: unknown[], options?: RequestOptions): Promise<void>;\n\n\t/**\n\t * Retrieves the text for the \"No Data\" message for the To-Do Panel.\n\t *\n\t * @public\n\t * @returns {string} The text for the \"No Data\" message.\n\t */\n\tgetNoDataText?(): string;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA;EAAA;;EAAA,OAAAC,UAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"IToDoPanel.js","names":["sap","ui","define","IToDoPanel"],"sources":["IToDoPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Control from \"sap/ui/core/Control\";\nimport Context from \"sap/ui/model/Context\";\nimport { RequestOptions } from \"./ToDoPanel\";\n\n/**\n * Common Interface for creating To-Do Panels displayed in the {@link sap.cux.home.ToDosContainer}.\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @interface\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.IToDoPanel\n */\nexport default interface IToDoPanel {\n\t/**\n\t * Generate a default card template for the To Do Panel.\n\t * An extended panel can have it's own template by overridding\n\t * this method and providing a custom card template.\n\t *\n\t * @public\n\t * @param {string} id The ID for the template.\n\t * @param {object} context The context required for the template.\n\t * @returns {object} The generated card template.\n\t */\n\tgenerateCardTemplate(id: string, context: Context): Control;\n\t/**\n\t * Provides custom request URLs specific to the To-Do Panel.\n\t *\n\t * @public\n\t * @param {number} cardCount - The number of cards which will be displayed in the To-Do Panel.\n\t * @returns {string[]} An array of request URLs.\n\t */\n\tgenerateRequestUrls?(cardCount: number): string[];\n\n\t/**\n\t * Handles the data received from a batch request.\n\t * This hook can be used to process the data before it is displayed.\n\t *\n\t * @public\n\t * @param {unknown[]} data - The data received from the request.\n\t * @param {RequestOptions} [options] - Optional request options.\n\t * @returns {Promise<void>} A promise that resolves when the data has been processed.\n\t */\n\tonDataReceived?(data: unknown[], options?: RequestOptions): Promise<void>;\n\n\t/**\n\t * Retrieves the text for the \"No Data\" message for the To-Do Panel.\n\t *\n\t * @public\n\t * @returns {string} The text for the \"No Data\" message.\n\t */\n\tgetNoDataText?(): string;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA;EAAA;;EAAA,OAAAC,UAAA;AAAA","ignoreList":[]}
@@ -14,8 +14,8 @@ import { RequestOptions } from "./ToDoPanel";
14
14
  * @since 1.121
15
15
  *
16
16
  * @interface
17
- * @internal
18
- * @public
17
+ * @private
18
+ * @ui5-restricted ux.eng.s4producthomes1
19
19
  *
20
20
  * @alias sap.cux.home.IToDoPanel
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"InsightsAdditionPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/InsightsAdditionPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,oCAAoC,CAAC;IAgBpD,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;IAS/D;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,iBAAiB;QACnE,OAAO,CAAC,cAAc,CAAU;QAChC,OAAO,CAAC,kBAAkB,CAAuB;QACjD,OAAO,CAAC,gBAAgB,CAAW;QACnC,OAAO,CAAC,wBAAwB,CAAiB;QACjD;;;;;WAKG;QACI,IAAI;QAqBX;;;;WAIG;QACH,OAAO,CAAC,eAAe;QAIvB;;;;;;;;;WASG;gBACW,aAAa;QAgB3B;;;;;;WAMG;gBACW,0BAA0B;QASxC;;;;;WAKG;QACH,OAAO,CAAC,oBAAoB;QAK5B;;;;;;WAMG;QACU,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;QAqB5C;;;;;WAKG;QACH,OAAO,CAAC,gBAAgB;QAQxB;;;;;;;;;;WAUG;gBACW,eAAe;QAwB7B;;;;;WAKG;QACH,OAAO,CAAC,wBAAwB;KAIhC;CAEA"}
1
+ {"version":3,"file":"InsightsAdditionPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/InsightsAdditionPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,oCAAoC,CAAC;IAgBpD,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;IAS/D;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,iBAAiB;QACnE,OAAO,CAAC,cAAc,CAAU;QAChC,OAAO,CAAC,kBAAkB,CAAuB;QACjD,OAAO,CAAC,gBAAgB,CAAW;QACnC,OAAO,CAAC,wBAAwB,CAAiB;QACjD;;;;;WAKG;QACI,IAAI;QAqBX;;;;WAIG;QACH,OAAO,CAAC,eAAe;QAIvB;;;;;;;;;WASG;gBACW,aAAa;QAgB3B;;;;;;WAMG;gBACW,0BAA0B;QASxC;;;;;WAKG;QACH,OAAO,CAAC,oBAAoB;QAK5B;;;;;;WAMG;QACU,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;QAqB5C;;;;;WAKG;QACH,OAAO,CAAC,gBAAgB;QAMxB;;;;;;;;;;WAUG;gBACW,eAAe;QAwB7B;;;;;WAKG;QACH,OAAO,CAAC,wBAAwB;KAIhC;CAEA"}
@@ -199,11 +199,7 @@ sap.ui.define(["sap/base/Log", "sap/insights/CardHelper", "sap/m/Button", "sap/m
199
199
  * @returns {CardsPanel | undefined} The found `CardsPanel` instance, or `undefined` if not found.
200
200
  */
201
201
  _fetchCardsPanel: function _fetchCardsPanel() {
202
- const insightsContainer = this.getInsightsContainer();
203
- if (!insightsContainer) {
204
- return;
205
- }
206
- return insightsContainer.getContent().find(panel => panel instanceof CardsPanel);
202
+ return this.getInsightsContainer()?.getContent().find(panel => panel instanceof CardsPanel);
207
203
  },
208
204
  /**
209
205
  * Handles the logic for creating and adding a new insight card to cards Panel.
@@ -224,7 +220,8 @@ sap.ui.define(["sap/base/Log", "sap/insights/CardHelper", "sap/m/Button", "sap/m
224
220
  return _catch(function () {
225
221
  addContentDialog.setBusy(true);
226
222
  return Promise.resolve(_this4.cardHelperInstance._createCard(_this4._latestGeneratedManifest)).then(function (createdCardResponse) {
227
- MessageToast.show(_this4._i18nBundle.getText("Card_Created"));
223
+ const cardTitle = createdCardResponse["sap.card"]?.header?.title;
224
+ MessageToast.show(_this4._i18nBundle.getText("Card_Created", [cardTitle]));
228
225
  addContentDialog.close();
229
226
  if (!createdCardResponse?.["sap.insights"]?.visible) {
230
227
  MessageBox.information(_this4._i18nBundle.getText("INT_CARD_LIMIT_MESSAGEBOX"), {
@@ -254,7 +251,7 @@ sap.ui.define(["sap/base/Log", "sap/insights/CardHelper", "sap/m/Button", "sap/m
254
251
  * @private
255
252
  */
256
253
  resetAddCardInnerContent: function _resetAddCardInnerContent() {
257
- this.cardHelperInstance.resetAddCardInnerContent();
254
+ this.cardHelperInstance?.resetAddCardInnerContent();
258
255
  this.enableAddButton(false);
259
256
  }
260
257
  });
@@ -1 +1 @@
1
- {"version":3,"file":"InsightsAdditionPanel.js","names":["sap","ui","define","Log","CardHelper","Button","sap_m_library","MessageBox","MessageToast","VBox","__BaseSettingsPanel","__CardsPanel","__InsightsContainer","___utils_Constants","___utils_FeatureUtils","___utils_FESRUtil","_interopRequireDefault","obj","__esModule","default","_catch","body","recover","result","e","then","BackgroundDesign","_finallyRethrows","finalizer","bind","ButtonType","BaseSettingsPanel","CardsPanel","InsightsContainer","CONTENT_ADDITION_PANEL_TYPES","FEATURE_TOGGLES","FESR_IDS","isNavigationSupportedForFeature","addFESRSemanticStepName","FESR_EVENTS","InsightsAdditionPanel","extend","init","_init","BaseSettingsPanel.prototype.init.call","setProperty","AI_INSIGHTS_CARDS","_i18nBundle","getText","addCardsButton","getId","text","type","Emphasized","enabled","press","onPressAddCards","PRESS","ADD_AI_CARD","addActionButton","_setupContent","attachEvent","resetAddCardInnerContent","enableAddButton","_enableAddButton","action","setEnabled","_this","_temp","Promise","resolve","_fetchAddCardDialogContent","dialogContent","wrapperVBox","items","backgroundDesign","Solid","height","addAggregation","error","message","reject","_this2","getServiceAsync","_getServiceAsync","cardHelperInstance","fetchAddCardInnerContent","event","_latestGeneratedManifest","getParameters","isValidManifest","Object","keys","length","getInsightsContainer","_getInsightsContainer","layout","getParent","getContent","find","container","isSupported","_isSupported","_this3","_temp3","isPanelSupported","removeActionButton","contentAdditionDialog","removePanel","updateActionButtons","insightsCardIntent","target","semanticObject","_temp2","undefined","AI_GENERATED_CARD","_isNavigationSupporte","_fetchCardsPanel","insightsContainer","panel","_onPressAddCards","_this4","addContentDialog","_temp4","setBusy","_createCard","createdCardResponse","show","close","visible","information","styleClass","cardsPanel","refreshData","_wasThrown","_result","_resetAddCardInnerContent"],"sources":["InsightsAdditionPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport CardHelper from \"sap/insights/CardHelper\";\nimport Button from \"sap/m/Button\";\nimport { BackgroundDesign, ButtonType } from \"sap/m/library\";\nimport MessageBox from \"sap/m/MessageBox\";\nimport MessageToast from \"sap/m/MessageToast\";\nimport VBox from \"sap/m/VBox\";\nimport Control from \"sap/ui/core/Control\";\nimport { Target } from \"sap/ushell/services/Navigation\";\nimport BaseLayout from \"./BaseLayout\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\nimport CardsPanel from \"./CardsPanel\";\nimport ContentAdditionDialog from \"./ContentAdditionDialog\";\nimport InsightsContainer from \"./InsightsContainer\";\nimport { ICardHelper, ICardHelperInstance, ICardManifest } from \"./interface/CardsInterface\";\nimport { CONTENT_ADDITION_PANEL_TYPES, FEATURE_TOGGLES, FESR_IDS } from \"./utils/Constants\";\nimport { isNavigationSupportedForFeature } from \"./utils/FeatureUtils\";\nimport { addFESRSemanticStepName, FESR_EVENTS } from \"./utils/FESRUtil\";\n\n/**\n *\n * Class for Apps Addition Panel in MyHome.\n *\n * @extends BaseSettingsPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.136\n * @private\n *\n * @alias sap.cux.home.InsightsAdditionPanel\n */\nexport default class InsightsAdditionPanel extends BaseSettingsPanel {\n\tprivate addCardsButton!: Button;\n\tprivate cardHelperInstance!: ICardHelperInstance;\n\tprivate isPanelSupported!: boolean;\n\tprivate _latestGeneratedManifest!: ICardManifest;\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @public\n\t * @override\n\t */\n\tpublic init() {\n\t\tsuper.init();\n\n\t\t//setup panel\n\t\tthis.setProperty(\"key\", CONTENT_ADDITION_PANEL_TYPES.AI_INSIGHTS_CARDS);\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"insightsCards\"));\n\n\t\t//setup actions\n\t\tthis.addCardsButton = new Button(`${this.getId()}-add-cards-btn`, {\n\t\t\ttext: this._i18nBundle.getText(\"addFromInsightsDialogBtn\"),\n\t\t\ttype: ButtonType.Emphasized,\n\t\t\tenabled: false,\n\t\t\tpress: this.onPressAddCards.bind(this)\n\t\t});\n\t\taddFESRSemanticStepName(this.addCardsButton, FESR_EVENTS.PRESS, FESR_IDS.ADD_AI_CARD);\n\t\tthis.addActionButton(this.addCardsButton);\n\t\t//setup content\n\t\tvoid this._setupContent();\n\t\tthis.attachEvent(\"onDialogClose\", this.resetAddCardInnerContent.bind(this));\n\t}\n\n\t/**\n\t * Enables or disables the \"Add Cards\" button.\n\t *\n\t * @param {boolean} action - If true, the button is enabled; if false, it is disabled.\n\t */\n\tprivate enableAddButton(action: boolean) {\n\t\tthis.addCardsButton.setEnabled(action);\n\t}\n\n\t/**\n\t * It sets up the content for the \"Insights card\" dialog.\n\t * It fetches the inner dialog content for adding a card.\n\t * Adds the VBox to the panel's content aggregation.\n\t *\n\t * This also enables the \"Add\" button once content is fetched.\n\t *\n\t * @private\n\t * @returns {Promise<void>} A promise that resolves when setup is complete.\n\t */\n\tprivate async _setupContent(): Promise<void> {\n\t\ttry {\n\t\t\tconst dialogContent = await this._fetchAddCardDialogContent();\n\t\t\tif (dialogContent) {\n\t\t\t\tconst wrapperVBox = new VBox(`${this.getId()}-wrapperVBox`, {\n\t\t\t\t\titems: dialogContent,\n\t\t\t\t\tbackgroundDesign: BackgroundDesign.Solid,\n\t\t\t\t\theight: \"100%\"\n\t\t\t\t});\n\t\t\t\tthis.addAggregation(\"content\", wrapperVBox);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tLog.error((error as Error).message);\n\t\t}\n\t}\n\n\t/**\n\t * Fetches the dialog content for adding a new card and sets up the callback\n\t * to handle the card generation event, storing the generated manifest and enabling the add button.\n\t *\n\t * @private\n\t * @returns {Promise<Control[]>} A promise that resolves with an array of dialog content controls.\n\t */\n\tprivate async _fetchAddCardDialogContent(): Promise<Control[]> {\n\t\tthis.cardHelperInstance = await (CardHelper as ICardHelper).getServiceAsync();\n\t\treturn this.cardHelperInstance.fetchAddCardInnerContent((event) => {\n\t\t\tthis._latestGeneratedManifest = event.getParameters();\n\t\t\tconst isValidManifest = Object.keys(this._latestGeneratedManifest).length > 1;\n\t\t\tthis.enableAddButton(isValidManifest);\n\t\t});\n\t}\n\n\t/**\n\t * Retrieves the InsightsContainer instance from the parent layout.\n\t *\n\t * @private\n\t * @returns {InsightsContainer | undefined} The InsightsContainer instance or undefined if not found.\n\t */\n\tprivate getInsightsContainer(): InsightsContainer | undefined {\n\t\tconst layout = this.getParent()?.getParent() as BaseLayout;\n\t\treturn layout.getContent().find((container) => container instanceof InsightsContainer);\n\t}\n\n\t/**\n\t * Checks if the Insights Addition Panel is supported.\n\t *\n\t * @public\n\t * @async\n\t * @returns {Promise<boolean>} A promise that resolves to true if supported.\n\t */\n\tpublic async isSupported(): Promise<boolean> {\n\t\tconst insightsCardIntent: Target = {\n\t\t\ttarget: {\n\t\t\t\tsemanticObject: \"IntelligentPrompt\",\n\t\t\t\taction: \"personalize\"\n\t\t\t}\n\t\t};\n\t\tif (this.isPanelSupported === undefined) {\n\t\t\tthis.isPanelSupported = false;\n\t\t\tthis.isPanelSupported = await isNavigationSupportedForFeature(FEATURE_TOGGLES.AI_GENERATED_CARD, insightsCardIntent);\n\t\t}\n\t\t//remove panel if it's not supported\n\t\tif (!this.isPanelSupported) {\n\t\t\tthis.removeActionButton(this.addCardsButton);\n\t\t\tconst contentAdditionDialog = this.getParent() as ContentAdditionDialog;\n\t\t\tcontentAdditionDialog.removePanel(this);\n\t\t\tcontentAdditionDialog.updateActionButtons();\n\t\t}\n\t\treturn this.isPanelSupported;\n\t}\n\n\t/**\n\t * Retrieves the `CardsPanel` instance from the `InsightsContainer`.\n\t *\n\t * @private\n\t * @returns {CardsPanel | undefined} The found `CardsPanel` instance, or `undefined` if not found.\n\t */\n\tprivate _fetchCardsPanel(): CardsPanel | undefined {\n\t\tconst insightsContainer = this.getInsightsContainer();\n\t\tif (!insightsContainer) {\n\t\t\treturn;\n\t\t}\n\t\treturn insightsContainer.getContent().find((panel): panel is CardsPanel => panel instanceof CardsPanel);\n\t}\n\n\t/**\n\t * Handles the logic for creating and adding a new insight card to cards Panel.\n\t *\n\t * - Sets the dialog to busy while the card creation is in progress.\n\t * - It adds a new card using the latest generated manifest.\n\t * - On success, shows a message toast and closes the dialog.\n\t * - Refreshes the insights cards panel data.\n\t *\n\t * @private\n\t * @returns {Promise<void>} A promise that resolves when the card creation flow completes.\n\t */\n\tprivate async onPressAddCards() {\n\t\tconst addContentDialog = this.getParent() as ContentAdditionDialog;\n\t\ttry {\n\t\t\taddContentDialog.setBusy(true);\n\n\t\t\tconst createdCardResponse = await this.cardHelperInstance._createCard(this._latestGeneratedManifest);\n\t\t\tMessageToast.show(this._i18nBundle.getText(\"Card_Created\") as string);\n\n\t\t\taddContentDialog.close();\n\t\t\tif (!createdCardResponse?.[\"sap.insights\"]?.visible) {\n\t\t\t\tMessageBox.information(this._i18nBundle.getText(\"INT_CARD_LIMIT_MESSAGEBOX\") as string, {\n\t\t\t\t\tstyleClass: \"msgBoxAlign\"\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst cardsPanel = this._fetchCardsPanel();\n\t\t\tawait cardsPanel?.refreshData();\n\t\t} catch (error) {\n\t\t\tLog.error((error as Error).message);\n\t\t} finally {\n\t\t\taddContentDialog.setBusy(false);\n\t\t}\n\t}\n\n\t/**\n\t * Resets the internal content related to card addition.\n\t * Disables the \"Add\" button.\n\t *\n\t * @private\n\t */\n\tprivate resetAddCardInnerContent() {\n\t\tthis.cardHelperInstance.resetAddCardInnerContent();\n\t\tthis.enableAddButton(false);\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,gRAAAC,GAAA,EAAAC,UAAA,EAAAC,MAAA,EAAAC,aAAA,EAAAC,UAAA,EAAAC,YAAA,EAAAC,IAAA,EAAAC,mBAAA,EAAAC,YAAA,EAAAC,mBAAA,EAAAC,kBAAA,EAAAC,qBAAA,EAAAC,iBAAA;EAA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I,CAACN,MAAA,CAAK1E,WAAW,CAACC,OAAO,CAAC,cAAc,CAAW,CAAC;cAErE0E,gBAAgB,CAACM,KAAK,CAAC,CAAC;cACxB,IAAI,CAACF,mBAAmB,GAAG,cAAc,CAAC,EAAEG,OAAO,EAAE;gBACpD1H,UAAU,CAAC2H,WAAW,CAACT,MAAA,CAAK1E,WAAW,CAACC,OAAO,CAAC,2BAA2B,CAAC,EAAY;kBACvFmF,UAAU,EAAE;gBACb,CAAC,CAAC;cACH;cAEA,MAAMC,UAAU,GAAGX,MAAA,CAAKJ,gBAAgB,CAAC,CAAC;cAAC,OAAAhD,OAAA,CAAAC,OAAA,CACrC8D,UAAU,EAAEC,WAAW,CAAC,CAAC,EAAA5G,IAAA;YAAA;UAChC,CAAC,YAAQsD,KAAK,EAAE;YACf5E,GAAG,CAAC4E,KAAK,CAAEA,KAAK,CAAWC,OAAO,CAAC;UACpC,CAAC;QAAA,aAAAsD,UAAA,EAAAC,OAAA;UACAb,gBAAgB,CAACE,OAAO,CAAC,KAAK,CAAC;UAAC,IAAAU,UAAA,QAAAC,OAAA;UAAA,OAAAA,OAAA;QAAA;QAAA,OAAAlE,OAAA,CAAAC,OAAA,CAAAqD,MAAA,IAAAA,MAAA,CAAAlG,IAAA,GAAAkG,MAAA,CAAAlG,IAAA;MAElC,CAAC,QAAAD,CAAA;QAAA,OAAA6C,OAAA,CAAAY,MAAA,CAAAzD,CAAA;MAAA;IAAA;IAED;AACD;AACA;AACA;AACA;AACA;IACSsC,wBAAwB,WAAA0E,0BAAA,EAAG;MAClC,IAAI,CAACnD,kBAAkB,CAACvB,wBAAwB,CAAC,CAAC;MAClD,IAAI,CAACC,eAAe,CAAC,KAAK,CAAC;IAC5B;EAAC;EAAA,OApLmBvB,qBAAqB;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"InsightsAdditionPanel.js","names":["sap","ui","define","Log","CardHelper","Button","sap_m_library","MessageBox","MessageToast","VBox","__BaseSettingsPanel","__CardsPanel","__InsightsContainer","___utils_Constants","___utils_FeatureUtils","___utils_FESRUtil","_interopRequireDefault","obj","__esModule","default","_catch","body","recover","result","e","then","BackgroundDesign","_finallyRethrows","finalizer","bind","ButtonType","BaseSettingsPanel","CardsPanel","InsightsContainer","CONTENT_ADDITION_PANEL_TYPES","FEATURE_TOGGLES","FESR_IDS","isNavigationSupportedForFeature","addFESRSemanticStepName","FESR_EVENTS","InsightsAdditionPanel","extend","init","_init","BaseSettingsPanel.prototype.init.call","setProperty","AI_INSIGHTS_CARDS","_i18nBundle","getText","addCardsButton","getId","text","type","Emphasized","enabled","press","onPressAddCards","PRESS","ADD_AI_CARD","addActionButton","_setupContent","attachEvent","resetAddCardInnerContent","enableAddButton","_enableAddButton","action","setEnabled","_this","_temp","Promise","resolve","_fetchAddCardDialogContent","dialogContent","wrapperVBox","items","backgroundDesign","Solid","height","addAggregation","error","message","reject","_this2","getServiceAsync","_getServiceAsync","cardHelperInstance","fetchAddCardInnerContent","event","_latestGeneratedManifest","getParameters","isValidManifest","Object","keys","length","getInsightsContainer","_getInsightsContainer","layout","getParent","getContent","find","container","isSupported","_isSupported","_this3","_temp3","isPanelSupported","removeActionButton","contentAdditionDialog","removePanel","updateActionButtons","insightsCardIntent","target","semanticObject","_temp2","undefined","AI_GENERATED_CARD","_isNavigationSupporte","_fetchCardsPanel","panel","_onPressAddCards","_this4","addContentDialog","_temp4","setBusy","_createCard","createdCardResponse","cardTitle","header","title","show","close","visible","information","styleClass","cardsPanel","refreshData","_wasThrown","_result","_resetAddCardInnerContent"],"sources":["InsightsAdditionPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport CardHelper from \"sap/insights/CardHelper\";\nimport Button from \"sap/m/Button\";\nimport { BackgroundDesign, ButtonType } from \"sap/m/library\";\nimport MessageBox from \"sap/m/MessageBox\";\nimport MessageToast from \"sap/m/MessageToast\";\nimport VBox from \"sap/m/VBox\";\nimport Control from \"sap/ui/core/Control\";\nimport { Target } from \"sap/ushell/services/Navigation\";\nimport BaseLayout from \"./BaseLayout\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\nimport CardsPanel from \"./CardsPanel\";\nimport ContentAdditionDialog from \"./ContentAdditionDialog\";\nimport InsightsContainer from \"./InsightsContainer\";\nimport { ICardHelper, ICardHelperInstance, ICardManifest } from \"./interface/CardsInterface\";\nimport { CONTENT_ADDITION_PANEL_TYPES, FEATURE_TOGGLES, FESR_IDS } from \"./utils/Constants\";\nimport { isNavigationSupportedForFeature } from \"./utils/FeatureUtils\";\nimport { addFESRSemanticStepName, FESR_EVENTS } from \"./utils/FESRUtil\";\n\n/**\n *\n * Class for Apps Addition Panel in MyHome.\n *\n * @extends BaseSettingsPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.136\n * @private\n *\n * @alias sap.cux.home.InsightsAdditionPanel\n */\nexport default class InsightsAdditionPanel extends BaseSettingsPanel {\n\tprivate addCardsButton!: Button;\n\tprivate cardHelperInstance!: ICardHelperInstance;\n\tprivate isPanelSupported!: boolean;\n\tprivate _latestGeneratedManifest!: ICardManifest;\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @public\n\t * @override\n\t */\n\tpublic init() {\n\t\tsuper.init();\n\n\t\t//setup panel\n\t\tthis.setProperty(\"key\", CONTENT_ADDITION_PANEL_TYPES.AI_INSIGHTS_CARDS);\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"insightsCards\"));\n\n\t\t//setup actions\n\t\tthis.addCardsButton = new Button(`${this.getId()}-add-cards-btn`, {\n\t\t\ttext: this._i18nBundle.getText(\"addFromInsightsDialogBtn\"),\n\t\t\ttype: ButtonType.Emphasized,\n\t\t\tenabled: false,\n\t\t\tpress: this.onPressAddCards.bind(this)\n\t\t});\n\t\taddFESRSemanticStepName(this.addCardsButton, FESR_EVENTS.PRESS, FESR_IDS.ADD_AI_CARD);\n\t\tthis.addActionButton(this.addCardsButton);\n\t\t//setup content\n\t\tvoid this._setupContent();\n\t\tthis.attachEvent(\"onDialogClose\", this.resetAddCardInnerContent.bind(this));\n\t}\n\n\t/**\n\t * Enables or disables the \"Add Cards\" button.\n\t *\n\t * @param {boolean} action - If true, the button is enabled; if false, it is disabled.\n\t */\n\tprivate enableAddButton(action: boolean) {\n\t\tthis.addCardsButton.setEnabled(action);\n\t}\n\n\t/**\n\t * It sets up the content for the \"Insights card\" dialog.\n\t * It fetches the inner dialog content for adding a card.\n\t * Adds the VBox to the panel's content aggregation.\n\t *\n\t * This also enables the \"Add\" button once content is fetched.\n\t *\n\t * @private\n\t * @returns {Promise<void>} A promise that resolves when setup is complete.\n\t */\n\tprivate async _setupContent(): Promise<void> {\n\t\ttry {\n\t\t\tconst dialogContent = await this._fetchAddCardDialogContent();\n\t\t\tif (dialogContent) {\n\t\t\t\tconst wrapperVBox = new VBox(`${this.getId()}-wrapperVBox`, {\n\t\t\t\t\titems: dialogContent,\n\t\t\t\t\tbackgroundDesign: BackgroundDesign.Solid,\n\t\t\t\t\theight: \"100%\"\n\t\t\t\t});\n\t\t\t\tthis.addAggregation(\"content\", wrapperVBox);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tLog.error((error as Error).message);\n\t\t}\n\t}\n\n\t/**\n\t * Fetches the dialog content for adding a new card and sets up the callback\n\t * to handle the card generation event, storing the generated manifest and enabling the add button.\n\t *\n\t * @private\n\t * @returns {Promise<Control[]>} A promise that resolves with an array of dialog content controls.\n\t */\n\tprivate async _fetchAddCardDialogContent(): Promise<Control[]> {\n\t\tthis.cardHelperInstance = await (CardHelper as ICardHelper).getServiceAsync();\n\t\treturn this.cardHelperInstance.fetchAddCardInnerContent((event) => {\n\t\t\tthis._latestGeneratedManifest = event.getParameters();\n\t\t\tconst isValidManifest = Object.keys(this._latestGeneratedManifest).length > 1;\n\t\t\tthis.enableAddButton(isValidManifest);\n\t\t});\n\t}\n\n\t/**\n\t * Retrieves the InsightsContainer instance from the parent layout.\n\t *\n\t * @private\n\t * @returns {InsightsContainer | undefined} The InsightsContainer instance or undefined if not found.\n\t */\n\tprivate getInsightsContainer(): InsightsContainer | undefined {\n\t\tconst layout = this.getParent()?.getParent() as BaseLayout;\n\t\treturn layout.getContent().find((container) => container instanceof InsightsContainer);\n\t}\n\n\t/**\n\t * Checks if the Insights Addition Panel is supported.\n\t *\n\t * @public\n\t * @async\n\t * @returns {Promise<boolean>} A promise that resolves to true if supported.\n\t */\n\tpublic async isSupported(): Promise<boolean> {\n\t\tconst insightsCardIntent: Target = {\n\t\t\ttarget: {\n\t\t\t\tsemanticObject: \"IntelligentPrompt\",\n\t\t\t\taction: \"personalize\"\n\t\t\t}\n\t\t};\n\t\tif (this.isPanelSupported === undefined) {\n\t\t\tthis.isPanelSupported = false;\n\t\t\tthis.isPanelSupported = await isNavigationSupportedForFeature(FEATURE_TOGGLES.AI_GENERATED_CARD, insightsCardIntent);\n\t\t}\n\t\t//remove panel if it's not supported\n\t\tif (!this.isPanelSupported) {\n\t\t\tthis.removeActionButton(this.addCardsButton);\n\t\t\tconst contentAdditionDialog = this.getParent() as ContentAdditionDialog;\n\t\t\tcontentAdditionDialog.removePanel(this);\n\t\t\tcontentAdditionDialog.updateActionButtons();\n\t\t}\n\t\treturn this.isPanelSupported;\n\t}\n\n\t/**\n\t * Retrieves the `CardsPanel` instance from the `InsightsContainer`.\n\t *\n\t * @private\n\t * @returns {CardsPanel | undefined} The found `CardsPanel` instance, or `undefined` if not found.\n\t */\n\tprivate _fetchCardsPanel(): CardsPanel | undefined {\n\t\treturn this.getInsightsContainer()\n\t\t\t?.getContent()\n\t\t\t.find((panel): panel is CardsPanel => panel instanceof CardsPanel);\n\t}\n\n\t/**\n\t * Handles the logic for creating and adding a new insight card to cards Panel.\n\t *\n\t * - Sets the dialog to busy while the card creation is in progress.\n\t * - It adds a new card using the latest generated manifest.\n\t * - On success, shows a message toast and closes the dialog.\n\t * - Refreshes the insights cards panel data.\n\t *\n\t * @private\n\t * @returns {Promise<void>} A promise that resolves when the card creation flow completes.\n\t */\n\tprivate async onPressAddCards() {\n\t\tconst addContentDialog = this.getParent() as ContentAdditionDialog;\n\t\ttry {\n\t\t\taddContentDialog.setBusy(true);\n\n\t\t\tconst createdCardResponse = await this.cardHelperInstance._createCard(this._latestGeneratedManifest);\n\t\t\tconst cardTitle = createdCardResponse[\"sap.card\"]?.header?.title;\n\t\t\tMessageToast.show(this._i18nBundle.getText(\"Card_Created\", [cardTitle]) as string);\n\t\t\taddContentDialog.close();\n\t\t\tif (!createdCardResponse?.[\"sap.insights\"]?.visible) {\n\t\t\t\tMessageBox.information(this._i18nBundle.getText(\"INT_CARD_LIMIT_MESSAGEBOX\") as string, {\n\t\t\t\t\tstyleClass: \"msgBoxAlign\"\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst cardsPanel = this._fetchCardsPanel();\n\t\t\tawait cardsPanel?.refreshData();\n\t\t} catch (error) {\n\t\t\tLog.error((error as Error).message);\n\t\t} finally {\n\t\t\taddContentDialog.setBusy(false);\n\t\t}\n\t}\n\n\t/**\n\t * Resets the internal content related to card addition.\n\t * Disables the \"Add\" button.\n\t *\n\t * @private\n\t */\n\tprivate resetAddCardInnerContent() {\n\t\tthis.cardHelperInstance?.resetAddCardInnerContent();\n\t\tthis.enableAddButton(false);\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,gRAAAC,GAAA,EAAAC,UAAA,EAAAC,MAAA,EAAAC,aAAA,EAAAC,UAAA,EAAAC,YAAA,EAAAC,IAAA,EAAAC,mBAAA,EAAAC,YAAA,EAAAC,mBAAA,EAAAC,kBAAA,EAAAC,qBAAA,EAAAC,iBAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAA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CAACL,mBAAmB,GAAG,cAAc,CAAC,EAAEM,OAAO,EAAE;gBACpD5H,UAAU,CAAC6H,WAAW,CAACZ,MAAA,CAAKzE,WAAW,CAACC,OAAO,CAAC,2BAA2B,CAAC,EAAY;kBACvFqF,UAAU,EAAE;gBACb,CAAC,CAAC;cACH;cAEA,MAAMC,UAAU,GAAGd,MAAA,CAAKH,gBAAgB,CAAC,CAAC;cAAC,OAAAhD,OAAA,CAAAC,OAAA,CACrCgE,UAAU,EAAEC,WAAW,CAAC,CAAC,EAAA9G,IAAA;YAAA;UAChC,CAAC,YAAQsD,KAAK,EAAE;YACf5E,GAAG,CAAC4E,KAAK,CAAEA,KAAK,CAAWC,OAAO,CAAC;UACpC,CAAC;QAAA,aAAAwD,UAAA,EAAAC,OAAA;UACAhB,gBAAgB,CAACE,OAAO,CAAC,KAAK,CAAC;UAAC,IAAAa,UAAA,QAAAC,OAAA;UAAA,OAAAA,OAAA;QAAA;QAAA,OAAApE,OAAA,CAAAC,OAAA,CAAAoD,MAAA,IAAAA,MAAA,CAAAjG,IAAA,GAAAiG,MAAA,CAAAjG,IAAA;MAElC,CAAC,QAAAD,CAAA;QAAA,OAAA6C,OAAA,CAAAY,MAAA,CAAAzD,CAAA;MAAA;IAAA;IAED;AACD;AACA;AACA;AACA;AACA;IACSsC,wBAAwB,WAAA4E,0BAAA,EAAG;MAClC,IAAI,CAACrD,kBAAkB,EAAEvB,wBAAwB,CAAC,CAAC;MACnD,IAAI,CAACC,eAAe,CAAC,KAAK,CAAC;IAC5B;EAAC;EAAA,OAlLmBvB,qBAAqB;AAAA","ignoreList":[]}
@@ -164,11 +164,9 @@ export default class InsightsAdditionPanel extends BaseSettingsPanel {
164
164
  * @returns {CardsPanel | undefined} The found `CardsPanel` instance, or `undefined` if not found.
165
165
  */
166
166
  private _fetchCardsPanel(): CardsPanel | undefined {
167
- const insightsContainer = this.getInsightsContainer();
168
- if (!insightsContainer) {
169
- return;
170
- }
171
- return insightsContainer.getContent().find((panel): panel is CardsPanel => panel instanceof CardsPanel);
167
+ return this.getInsightsContainer()
168
+ ?.getContent()
169
+ .find((panel): panel is CardsPanel => panel instanceof CardsPanel);
172
170
  }
173
171
 
174
172
  /**
@@ -188,8 +186,8 @@ export default class InsightsAdditionPanel extends BaseSettingsPanel {
188
186
  addContentDialog.setBusy(true);
189
187
 
190
188
  const createdCardResponse = await this.cardHelperInstance._createCard(this._latestGeneratedManifest);
191
- MessageToast.show(this._i18nBundle.getText("Card_Created") as string);
192
-
189
+ const cardTitle = createdCardResponse["sap.card"]?.header?.title;
190
+ MessageToast.show(this._i18nBundle.getText("Card_Created", [cardTitle]) as string);
193
191
  addContentDialog.close();
194
192
  if (!createdCardResponse?.["sap.insights"]?.visible) {
195
193
  MessageBox.information(this._i18nBundle.getText("INT_CARD_LIMIT_MESSAGEBOX") as string, {
@@ -213,7 +211,7 @@ export default class InsightsAdditionPanel extends BaseSettingsPanel {
213
211
  * @private
214
212
  */
215
213
  private resetAddCardInnerContent() {
216
- this.cardHelperInstance.resetAddCardInnerContent();
214
+ this.cardHelperInstance?.resetAddCardInnerContent();
217
215
  this.enableAddButton(false);
218
216
  }
219
217
  }
@@ -33,8 +33,8 @@ declare module "sap/cux/home/InsightsContainer" {
33
33
  * @version 0.0.1
34
34
  * @since 1.121
35
35
  *
36
- * @internal
37
- * @public
36
+ * @private
37
+ * @ui5-restricted ux.eng.s4producthomes1
38
38
  *
39
39
  * @alias sap.cux.home.InsightsContainer
40
40
  */
@@ -43,7 +43,6 @@ declare module "sap/cux/home/InsightsContainer" {
43
43
  apiVersion: number;
44
44
  render: (rm: import("sap/ui/core/RenderManager").default, control: BaseContainer) => void;
45
45
  renderContent: (rm: import("sap/ui/core/RenderManager").default, control: BaseContainer) => void;
46
- renderCustomPlaceholder: (rm: import("sap/ui/core/RenderManager").default, control: BaseContainer) => void;
47
46
  };
48
47
  private _errorPanel;
49
48
  private _isInitialRender;
@@ -132,13 +131,13 @@ declare module "sap/cux/home/InsightsContainer" {
132
131
  *
133
132
  * @private
134
133
  */
135
- addCommonMenuItems(menuItems: MenuItem[]): void;
134
+ addCommonMenuItems(menuItems?: MenuItem[]): void;
136
135
  /**
137
136
  * Add common Action Buttons for Insights Container from Panel
138
137
  *
139
138
  * @private
140
139
  */
141
- addCommonActionButtons(actionButtons: Button[]): void;
140
+ addCommonActionButtons(actionButtons?: Button[]): void;
142
141
  /**
143
142
  * Handles the loading of a panel.
144
143
  *
@@ -1 +1 @@
1
- {"version":3,"file":"InsightsContainer.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/InsightsContainer.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,gCAAgC,CAAC;IAChD;;;OAGG;IAEH,OAAO,MAAM,MAAM,cAAc,CAAC;IAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;IACzE,OAAO,aAAa,MAAM,4BAA4B,CAAC;IACvD,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAC/C,OAAO,UAAU,EAAE,EAA+B,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;IAG3G,OAAO,QAAQ,MAAM,uBAAuB,CAAC;IAC7C,OAAO,UAAU,EAAE,EAA+B,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;IAK3G,MAAM,cAAc,EAAE,MAAkC,CAAC;IACzD,MAAM,cAAc,EAAE,MAAkC,CAAC;IACzD,MAAM,sBAAsB,EAAE,MAA0C,CAAC;IACzE,MAAM,eAAe,EAAE,CAAC,uBAAuB,GAAG,uBAAuB,GAAG,MAAM,CAAC,EAUlF,CAAC;IAEF,UAAU,YAAY;QACrB,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9D;IAED,UAAU,aAAa;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;KACvC;IAED;;;;;;;;;;;;;;O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AAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM;QAQjF;;;;;;WAMG;QACI,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM;QAQ3E;;;;;WAKG;QACH,OAAO,CAAC,oBAAoB;QAI5B;;;;;WAKG;QACH,OAAO,CAAC,yBAAyB;QAGjC;;;;;WAKG;QACH,OAAO,CAAC,cAAc;QAOtB;;;;WAIG;QACH,SAAS,CAAC,4BAA4B,IAAI,MAAM;QAIhD;;;;;WAKG;QACU,WAAW,CAAC,GAAG,EAAE,MAAM;KAIpC;CAEA"}
@@ -2,7 +2,7 @@
2
2
  * SAP UI development toolkit for HTML5 (SAPUI5)
3
3
  * * (c) Copyright 2009-2025 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsContainerGenericPlaceholder", "./TilesPanel", "./utils/Device", "./utils/InsightsUtils", "./SpaceInsightsPanel"], function (__BaseContainer, __CardsPanel, __ErrorPanel, ___InsightsContainerGenericPlaceholder, __TilesPanel, ___utils_Device, ___utils_InsightsUtils, __SpaceInsightsPanel) {
5
+ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./utils/placeholder/InsightsPlaceholder", "./SpaceInsightsPanel", "./TilesPanel", "./utils/Device", "./utils/InsightsUtils"], function (__BaseContainer, __CardsPanel, __ErrorPanel, ___utils_placeholder_InsightsPlaceholder, __SpaceInsightsPanel, __TilesPanel, ___utils_Device, ___utils_InsightsUtils) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
@@ -13,13 +13,13 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
13
13
  const cardsContainerActionButtons = __CardsPanel["cardsContainerActionButtons"];
14
14
  const cardsContainerMenuItems = __CardsPanel["cardsContainerMenuItems"];
15
15
  const ErrorPanel = _interopRequireDefault(__ErrorPanel);
16
- const getInsightsPlaceholder = ___InsightsContainerGenericPlaceholder["getInsightsPlaceholder"];
16
+ const getInsightsPlaceholder = ___utils_placeholder_InsightsPlaceholder["getInsightsPlaceholder"];
17
+ const SpaceInsightsPanel = _interopRequireDefault(__SpaceInsightsPanel);
17
18
  const TilesPanel = _interopRequireDefault(__TilesPanel);
18
19
  const tilesContainerActionButtons = __TilesPanel["tilesContainerActionButtons"];
19
20
  const tilesContainerMenuItems = __TilesPanel["tilesContainerMenuItems"];
20
21
  const DeviceType = ___utils_Device["DeviceType"];
21
22
  const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
22
- const SpaceInsightsPanel = _interopRequireDefault(__SpaceInsightsPanel);
23
23
  const tilesPanelName = "sap.cux.home.TilesPanel";
24
24
  const cardsPanelName = "sap.cux.home.CardsPanel";
25
25
  const spaceInsightsPanelName = "sap.cux.home.SpaceInsightsPanel";
@@ -34,8 +34,8 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
34
34
  * @version 0.0.1
35
35
  * @since 1.121
36
36
  *
37
- * @internal
38
- * @public
37
+ * @private
38
+ * @ui5-restricted ux.eng.s4producthomes1
39
39
  *
40
40
  * @alias sap.cux.home.InsightsContainer
41
41
  */
@@ -135,7 +135,7 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
135
135
  const panelCount = panels?.length;
136
136
  this._addContainerHeader();
137
137
  // only show error panel if all panels loaded state is false
138
- if (visibleOrPendingPanels.length === 0) {
138
+ if (visibleOrPendingPanels.length === 0 || visibleOrPendingPanels.length === 1 && visibleOrPendingPanels[0] === spaceInsightsPanelName) {
139
139
  if (!this._errorPanel) {
140
140
  this._errorPanel = new ErrorPanel(`${this.getId()}-errorPanel`, {
141
141
  messageTitle: this._i18nBundle.getText("noAppsTitle"),
@@ -255,7 +255,6 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
255
255
 
256
256
  // Function to handle panel content insertion
257
257
  const processPanelVisibility = (panelName, insertContentFn) => {
258
- const panelWrapper = this._getPanelContentWrapper(panel);
259
258
  if (!panelExpandedName || panelExpandedName === panel.getProperty("fullScreenName")) {
260
259
  /**
261
260
  loaded value can be false or undefined, false being hidden and undefined being loading
@@ -264,9 +263,7 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
264
263
  if (this.panelLoaded[panelName].loaded === false) {
265
264
  insertContentFn();
266
265
  // Remove hidden class if applied
267
- if (panelWrapper.hasStyleClass("sapCuxHidden")) {
268
- panelWrapper.removeStyleClass("sapCuxHidden");
269
- }
266
+ panel.setVisible(true);
270
267
  }
271
268
  this.handlePanelLoad(panelName, {
272
269
  loaded: true,
@@ -276,9 +273,7 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
276
273
  const listener = () => {
277
274
  insertContentFn();
278
275
  // Remove hidden class if applied
279
- if (panelWrapper.hasStyleClass("sapCuxHidden")) {
280
- panelWrapper.removeStyleClass("sapCuxHidden");
281
- }
276
+ panel.setVisible(true);
282
277
  layout.detachOnCollapse(listener); // Remove the listener after execution
283
278
  };
284
279
  this.handlePanelLoad(panelName, {
@@ -349,7 +344,7 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
349
344
  *
350
345
  * @private
351
346
  */
352
- addCommonMenuItems: function _addCommonMenuItems(menuItems) {
347
+ addCommonMenuItems: function _addCommonMenuItems(menuItems = []) {
353
348
  menuItems.forEach(menuItem => this.addAggregation("menuItems", menuItem));
354
349
  // after adding menu items sort them based on the order
355
350
  this._sortMenuItems(sortedMenuItems);
@@ -359,7 +354,7 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./InsightsCon
359
354
  *
360
355
  * @private
361
356
  */
362
- addCommonActionButtons: function _addCommonActionButtons(actionButtons) {
357
+ addCommonActionButtons: function _addCommonActionButtons(actionButtons = []) {
363
358
  actionButtons.forEach(actionButton => this.addAggregation("actionButtons", actionButton));
364
359
  },
365
360
  /**