@sapui5/sap.cux.home 1.138.0 → 1.139.1

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 (298) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +1 -1
  3. package/src/sap/cux/home/App.d.ts +2 -2
  4. package/src/sap/cux/home/App.js +2 -2
  5. package/src/sap/cux/home/App.js.map +1 -1
  6. package/src/sap/cux/home/App.ts +2 -2
  7. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  8. package/src/sap/cux/home/AppsAdditionPanel.js +17 -10
  9. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  10. package/src/sap/cux/home/AppsAdditionPanel.ts +19 -12
  11. package/src/sap/cux/home/AppsContainer.d.ts +2 -3
  12. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  13. package/src/sap/cux/home/AppsContainer.js +5 -8
  14. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  15. package/src/sap/cux/home/AppsContainer.ts +4 -8
  16. package/src/sap/cux/home/BaseApp.d.ts +2 -2
  17. package/src/sap/cux/home/BaseApp.js +2 -2
  18. package/src/sap/cux/home/BaseApp.js.map +1 -1
  19. package/src/sap/cux/home/BaseApp.ts +2 -2
  20. package/src/sap/cux/home/BaseAppPanel.js +1 -1
  21. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  22. package/src/sap/cux/home/BaseAppPanel.ts +1 -1
  23. package/src/sap/cux/home/BaseContainer.d.ts +2 -2
  24. package/src/sap/cux/home/BaseContainer.js +3 -3
  25. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  26. package/src/sap/cux/home/BaseContainer.ts +3 -3
  27. package/src/sap/cux/home/BaseContainerRenderer.d.ts +4 -4
  28. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  29. package/src/sap/cux/home/BaseContainerRenderer.js +17 -19
  30. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  31. package/src/sap/cux/home/BaseContainerRenderer.ts +21 -25
  32. package/src/sap/cux/home/BaseLayout.d.ts +2 -2
  33. package/src/sap/cux/home/BaseLayout.js +2 -2
  34. package/src/sap/cux/home/BaseLayout.js.map +1 -1
  35. package/src/sap/cux/home/BaseLayout.ts +2 -2
  36. package/src/sap/cux/home/BaseNewsItem.d.ts +2 -2
  37. package/src/sap/cux/home/BaseNewsItem.js +2 -2
  38. package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
  39. package/src/sap/cux/home/BaseNewsItem.ts +2 -2
  40. package/src/sap/cux/home/BaseNewsPanel.d.ts +2 -2
  41. package/src/sap/cux/home/BaseNewsPanel.js +2 -2
  42. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  43. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  44. package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
  45. package/src/sap/cux/home/BasePagePanel.js +2 -2
  46. package/src/sap/cux/home/BasePagePanel.js.map +1 -1
  47. package/src/sap/cux/home/BasePagePanel.ts +2 -2
  48. package/src/sap/cux/home/BasePanel.d.ts +2 -2
  49. package/src/sap/cux/home/BasePanel.js +2 -2
  50. package/src/sap/cux/home/BasePanel.js.map +1 -1
  51. package/src/sap/cux/home/BasePanel.ts +2 -2
  52. package/src/sap/cux/home/BaseSettingsDialog.d.ts +2 -2
  53. package/src/sap/cux/home/BaseSettingsDialog.js +2 -2
  54. package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
  55. package/src/sap/cux/home/BaseSettingsDialog.ts +2 -2
  56. package/src/sap/cux/home/BaseSettingsPanel.d.ts +3 -3
  57. package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
  58. package/src/sap/cux/home/BaseSettingsPanel.js +4 -3
  59. package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
  60. package/src/sap/cux/home/BaseSettingsPanel.ts +6 -4
  61. package/src/sap/cux/home/CardsPanel.d.ts +2 -2
  62. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  63. package/src/sap/cux/home/CardsPanel.js +4 -4
  64. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  65. package/src/sap/cux/home/CardsPanel.ts +4 -7
  66. package/src/sap/cux/home/ContentAdditionDialog.js +1 -1
  67. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  68. package/src/sap/cux/home/ContentAdditionDialog.ts +1 -1
  69. package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
  70. package/src/sap/cux/home/ErrorPanel.js +2 -2
  71. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  72. package/src/sap/cux/home/ErrorPanel.ts +2 -2
  73. package/src/sap/cux/home/FavAppPanel.d.ts +2 -2
  74. package/src/sap/cux/home/FavAppPanel.js +2 -2
  75. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  76. package/src/sap/cux/home/FavAppPanel.ts +2 -2
  77. package/src/sap/cux/home/FrequentAppPanel.d.ts +2 -2
  78. package/src/sap/cux/home/FrequentAppPanel.js +2 -2
  79. package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
  80. package/src/sap/cux/home/FrequentAppPanel.ts +2 -2
  81. package/src/sap/cux/home/Group.d.ts +2 -2
  82. package/src/sap/cux/home/Group.js +2 -2
  83. package/src/sap/cux/home/Group.js.map +1 -1
  84. package/src/sap/cux/home/Group.ts +2 -2
  85. package/src/sap/cux/home/IToDoPanel.d.ts +2 -2
  86. package/src/sap/cux/home/IToDoPanel.js.map +1 -1
  87. package/src/sap/cux/home/IToDoPanel.ts +2 -2
  88. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  89. package/src/sap/cux/home/InsightsAdditionPanel.js +4 -7
  90. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  91. package/src/sap/cux/home/InsightsAdditionPanel.ts +4 -8
  92. package/src/sap/cux/home/InsightsContainer.d.ts +2 -3
  93. package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
  94. package/src/sap/cux/home/InsightsContainer.js +6 -6
  95. package/src/sap/cux/home/InsightsContainer.js.map +1 -1
  96. package/src/sap/cux/home/InsightsContainer.ts +13 -7
  97. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  98. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +5 -3
  99. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  100. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +4 -2
  101. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts +11 -5
  102. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
  103. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +160 -82
  104. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  105. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +164 -82
  106. package/src/sap/cux/home/Layout.d.ts +2 -3
  107. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  108. package/src/sap/cux/home/Layout.js +2 -3
  109. package/src/sap/cux/home/Layout.js.map +1 -1
  110. package/src/sap/cux/home/Layout.ts +2 -4
  111. package/src/sap/cux/home/MenuItem.d.ts +2 -2
  112. package/src/sap/cux/home/MenuItem.js +2 -2
  113. package/src/sap/cux/home/MenuItem.js.map +1 -1
  114. package/src/sap/cux/home/MenuItem.ts +2 -2
  115. package/src/sap/cux/home/NewsAndPagesContainer.d.ts +24 -3
  116. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
  117. package/src/sap/cux/home/NewsAndPagesContainer.js +49 -21
  118. package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
  119. package/src/sap/cux/home/NewsAndPagesContainer.ts +53 -21
  120. package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
  121. package/src/sap/cux/home/NewsGroup.js +11 -6
  122. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  123. package/src/sap/cux/home/NewsGroup.ts +11 -8
  124. package/src/sap/cux/home/NewsPanel.d.ts +36 -7
  125. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  126. package/src/sap/cux/home/NewsPanel.gen.d.ts +0 -91
  127. package/src/sap/cux/home/NewsPanel.js +281 -200
  128. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  129. package/src/sap/cux/home/NewsPanel.ts +168 -102
  130. package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
  131. package/src/sap/cux/home/NewsSettingsPanel.js +10 -6
  132. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  133. package/src/sap/cux/home/NewsSettingsPanel.ts +12 -6
  134. package/src/sap/cux/home/NoDataContainer.d.ts +2 -3
  135. package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
  136. package/src/sap/cux/home/NoDataContainer.js +2 -2
  137. package/src/sap/cux/home/NoDataContainer.js.map +1 -1
  138. package/src/sap/cux/home/NoDataContainer.ts +2 -2
  139. package/src/sap/cux/home/PagePanel.d.ts +2 -2
  140. package/src/sap/cux/home/PagePanel.js +2 -2
  141. package/src/sap/cux/home/PagePanel.js.map +1 -1
  142. package/src/sap/cux/home/PagePanel.ts +2 -2
  143. package/src/sap/cux/home/RecentAppPanel.d.ts +2 -2
  144. package/src/sap/cux/home/RecentAppPanel.js +2 -2
  145. package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
  146. package/src/sap/cux/home/RecentAppPanel.ts +2 -2
  147. package/src/sap/cux/home/RecommendedAppPanel.d.ts +2 -2
  148. package/src/sap/cux/home/RecommendedAppPanel.js +2 -2
  149. package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
  150. package/src/sap/cux/home/RecommendedAppPanel.ts +2 -2
  151. package/src/sap/cux/home/SituationPanel.d.ts +2 -2
  152. package/src/sap/cux/home/SituationPanel.js +2 -2
  153. package/src/sap/cux/home/SituationPanel.js.map +1 -1
  154. package/src/sap/cux/home/SituationPanel.ts +2 -2
  155. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +2 -2
  156. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  157. package/src/sap/cux/home/SpaceInsightsPanel.js +6 -3
  158. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  159. package/src/sap/cux/home/SpaceInsightsPanel.ts +6 -3
  160. package/src/sap/cux/home/SpacePanel.d.ts +2 -2
  161. package/src/sap/cux/home/SpacePanel.js +2 -2
  162. package/src/sap/cux/home/SpacePanel.js.map +1 -1
  163. package/src/sap/cux/home/SpacePanel.ts +2 -2
  164. package/src/sap/cux/home/TaskPanel.d.ts +2 -2
  165. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  166. package/src/sap/cux/home/TaskPanel.js +4 -11
  167. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  168. package/src/sap/cux/home/TaskPanel.ts +5 -11
  169. package/src/sap/cux/home/TilesPanel.d.ts +2 -2
  170. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  171. package/src/sap/cux/home/TilesPanel.js +6 -6
  172. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  173. package/src/sap/cux/home/TilesPanel.ts +6 -12
  174. package/src/sap/cux/home/ToDoPanel.d.ts +2 -2
  175. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  176. package/src/sap/cux/home/ToDoPanel.js +4 -19
  177. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  178. package/src/sap/cux/home/ToDoPanel.ts +4 -20
  179. package/src/sap/cux/home/ToDosContainer.d.ts +2 -3
  180. package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
  181. package/src/sap/cux/home/ToDosContainer.js +5 -5
  182. package/src/sap/cux/home/ToDosContainer.js.map +1 -1
  183. package/src/sap/cux/home/ToDosContainer.ts +3 -3
  184. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  185. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -0
  186. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  187. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +1 -0
  188. package/src/sap/cux/home/i18n/messagebundle.properties +17 -5
  189. package/src/sap/cux/home/i18n/messagebundle_ar.properties +5 -5
  190. package/src/sap/cux/home/i18n/messagebundle_bg.properties +5 -5
  191. package/src/sap/cux/home/i18n/messagebundle_ca.properties +5 -5
  192. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +5 -5
  193. package/src/sap/cux/home/i18n/messagebundle_cs.properties +5 -5
  194. package/src/sap/cux/home/i18n/messagebundle_cy.properties +5 -5
  195. package/src/sap/cux/home/i18n/messagebundle_da.properties +5 -5
  196. package/src/sap/cux/home/i18n/messagebundle_de.properties +15 -15
  197. package/src/sap/cux/home/i18n/messagebundle_el.properties +5 -5
  198. package/src/sap/cux/home/i18n/messagebundle_en.properties +5 -5
  199. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +5 -5
  200. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +12 -6
  201. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +12 -6
  202. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +5 -5
  203. package/src/sap/cux/home/i18n/messagebundle_es.properties +5 -5
  204. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +5 -5
  205. package/src/sap/cux/home/i18n/messagebundle_et.properties +5 -5
  206. package/src/sap/cux/home/i18n/messagebundle_fi.properties +5 -5
  207. package/src/sap/cux/home/i18n/messagebundle_fr.properties +5 -5
  208. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +5 -5
  209. package/src/sap/cux/home/i18n/messagebundle_hi.properties +5 -5
  210. package/src/sap/cux/home/i18n/messagebundle_hr.properties +5 -5
  211. package/src/sap/cux/home/i18n/messagebundle_hu.properties +5 -5
  212. package/src/sap/cux/home/i18n/messagebundle_id.properties +6 -6
  213. package/src/sap/cux/home/i18n/messagebundle_it.properties +5 -5
  214. package/src/sap/cux/home/i18n/messagebundle_iw.properties +5 -5
  215. package/src/sap/cux/home/i18n/messagebundle_ja.properties +9 -9
  216. package/src/sap/cux/home/i18n/messagebundle_kk.properties +5 -5
  217. package/src/sap/cux/home/i18n/messagebundle_ko.properties +5 -5
  218. package/src/sap/cux/home/i18n/messagebundle_lt.properties +5 -5
  219. package/src/sap/cux/home/i18n/messagebundle_lv.properties +5 -5
  220. package/src/sap/cux/home/i18n/messagebundle_mk.properties +5 -5
  221. package/src/sap/cux/home/i18n/messagebundle_ms.properties +5 -5
  222. package/src/sap/cux/home/i18n/messagebundle_nl.properties +5 -5
  223. package/src/sap/cux/home/i18n/messagebundle_no.properties +5 -5
  224. package/src/sap/cux/home/i18n/messagebundle_pl.properties +5 -5
  225. package/src/sap/cux/home/i18n/messagebundle_pt.properties +5 -5
  226. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +5 -5
  227. package/src/sap/cux/home/i18n/messagebundle_ro.properties +5 -5
  228. package/src/sap/cux/home/i18n/messagebundle_ru.properties +5 -5
  229. package/src/sap/cux/home/i18n/messagebundle_sh.properties +5 -5
  230. package/src/sap/cux/home/i18n/messagebundle_sk.properties +6 -6
  231. package/src/sap/cux/home/i18n/messagebundle_sl.properties +5 -5
  232. package/src/sap/cux/home/i18n/messagebundle_sr.properties +5 -5
  233. package/src/sap/cux/home/i18n/messagebundle_sv.properties +5 -5
  234. package/src/sap/cux/home/i18n/messagebundle_th.properties +7 -7
  235. package/src/sap/cux/home/i18n/messagebundle_tr.properties +5 -5
  236. package/src/sap/cux/home/i18n/messagebundle_uk.properties +6 -6
  237. package/src/sap/cux/home/i18n/messagebundle_vi.properties +5 -5
  238. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +5 -5
  239. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +5 -5
  240. package/src/sap/cux/home/interface/CardsInterface.d.ts +1 -5
  241. package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
  242. package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
  243. package/src/sap/cux/home/interface/CardsInterface.ts +1 -1
  244. package/src/sap/cux/home/interface/KeyUserInterface.d.ts +2 -0
  245. package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
  246. package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
  247. package/src/sap/cux/home/interface/KeyUserInterface.ts +2 -0
  248. package/src/sap/cux/home/library.d.ts +26 -15
  249. package/src/sap/cux/home/library.d.ts.map +1 -1
  250. package/src/sap/cux/home/library.js +26 -15
  251. package/src/sap/cux/home/library.js.map +1 -1
  252. package/src/sap/cux/home/library.ts +27 -15
  253. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +0 -8
  254. package/src/sap/cux/home/themes/base/NewsAndPagesContainer.less +4 -0
  255. package/src/sap/cux/home/themes/base/ToDosContainer.less +2 -1
  256. package/src/sap/cux/home/utils/CommonUtils.d.ts +1 -1
  257. package/src/sap/cux/home/utils/CommonUtils.d.ts.map +1 -1
  258. package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
  259. package/src/sap/cux/home/utils/CommonUtils.ts +5 -2
  260. package/src/sap/cux/home/utils/FeatureUtils.js +0 -2
  261. package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
  262. package/src/sap/cux/home/utils/FeatureUtils.ts +3 -3
  263. package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
  264. package/src/sap/cux/home/utils/HttpHelper.ts +1 -1
  265. package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +1 -1
  266. package/src/sap/cux/home/utils/KeyUserPersonalization.js +0 -1
  267. package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +1 -1
  268. package/src/sap/cux/home/utils/KeyUserPersonalization.ts +0 -1
  269. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +9 -4
  270. package/src/sap/cux/home/{AppsContainerGenericPlaceholder.d.ts → utils/placeholder/AppsPlaceholder.d.ts} +2 -2
  271. package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.d.ts.map +1 -0
  272. package/src/sap/cux/home/{AppsContainerGenericPlaceholder.js → utils/placeholder/AppsPlaceholder.js} +1 -1
  273. package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.js.map +1 -0
  274. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +8 -0
  275. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +1 -0
  276. package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.js → utils/placeholder/InsightsPlaceholder.js} +1 -1
  277. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +1 -0
  278. package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.d.ts → utils/placeholder/NewsAndPagesPlaceholder.d.ts} +3 -3
  279. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +1 -0
  280. package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.js → utils/placeholder/NewsAndPagesPlaceholder.js} +1 -1
  281. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +1 -0
  282. package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.d.ts → utils/placeholder/ToDosPlaceholder.d.ts} +2 -2
  283. package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.d.ts.map +1 -0
  284. package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.js → utils/placeholder/ToDosPlaceholder.js} +1 -1
  285. package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.js.map +1 -0
  286. package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts.map +0 -1
  287. package/src/sap/cux/home/AppsContainerGenericPlaceholder.js.map +0 -1
  288. package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts.map +0 -1
  289. package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js.map +0 -1
  290. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts +0 -8
  291. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts.map +0 -1
  292. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js.map +0 -1
  293. package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts.map +0 -1
  294. package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js.map +0 -1
  295. /package/src/sap/cux/home/{AppsContainerGenericPlaceholder.ts → utils/placeholder/AppsPlaceholder.ts} +0 -0
  296. /package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.ts → utils/placeholder/InsightsPlaceholder.ts} +0 -0
  297. /package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.ts → utils/placeholder/NewsAndPagesPlaceholder.ts} +0 -0
  298. /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
  */
@@ -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;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BlB,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":[]}
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,KA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
@@ -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,I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,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;QAIxB;;;;;;;;;;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;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,MApjBQG,gBAAgB,GAAApB,aAAA;EAujBlB,SAASqB,gBAAgBA,CAACN,IAAI,EAAEO,SAAS,EAAE;IACjD,IAAI;MACH,IAAIL,MAAM,GAAGF,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC,OAAOG,CAAC,EAAE;MACX,OAAOI,SAAS,C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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()?.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\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,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,MApjBQG,gBAAgB,GAAApB,aAAA;EAujBlB,SAASqB,gBAAgBA,CAACN,IAAI,EAAEO,SAAS,EAAE;IACjD,IAAI;MACH,IAAIL,MAAM,GAAGF,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC,OAAOG,CAAC,EAAE;MACX,OAAOI,SAAS,CAAC,IAAI,EAAEJ,CAAC,CAAC;IAC1B;IACA,IAAID,MAAM,IAAIA,MAAM,CAACE,IAAI,EAAE;MAC1B,OAAOF,MAAM,CAACE,IAAI,CAACG,SAAS,CAACC,IAAI,CAAC,IAAI,EAAE,K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AD,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,OAhLmBvB,qBAAqB;AAAA","ignoreList":[]}
@@ -164,11 +164,7 @@ 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()?.getContent().find((panel): panel is CardsPanel => panel instanceof CardsPanel);
172
168
  }
173
169
 
174
170
  /**
@@ -188,8 +184,8 @@ export default class InsightsAdditionPanel extends BaseSettingsPanel {
188
184
  addContentDialog.setBusy(true);
189
185
 
190
186
  const createdCardResponse = await this.cardHelperInstance._createCard(this._latestGeneratedManifest);
191
- MessageToast.show(this._i18nBundle.getText("Card_Created") as string);
192
-
187
+ const cardTitle = createdCardResponse["sap.card"]?.header?.title;
188
+ MessageToast.show(this._i18nBundle.getText("Card_Created", [cardTitle]) as string);
193
189
  addContentDialog.close();
194
190
  if (!createdCardResponse?.["sap.insights"]?.visible) {
195
191
  MessageBox.information(this._i18nBundle.getText("INT_CARD_LIMIT_MESSAGEBOX") as string, {
@@ -213,7 +209,7 @@ export default class InsightsAdditionPanel extends BaseSettingsPanel {
213
209
  * @private
214
210
  */
215
211
  private resetAddCardInnerContent() {
216
- this.cardHelperInstance.resetAddCardInnerContent();
212
+ this.cardHelperInstance?.resetAddCardInnerContent();
217
213
  this.enableAddButton(false);
218
214
  }
219
215
  }
@@ -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;
@@ -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,M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AE;QAIrD;;;;;;;WAOG;QACI,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE;QAQlF;;;;;;WAMG;QACI,kBAAkB,CAAC,YAAY,EAAE,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", "./SpaceInsightsPanel", "./TilesPanel", "./utils/Device", "./utils/InsightsUtils", "./utils/placeholder/InsightsPlaceholder"], function (__BaseContainer, __CardsPanel, __ErrorPanel, __SpaceInsightsPanel, __TilesPanel, ___utils_Device, ___utils_InsightsUtils, ___utils_placeholder_InsightsPlaceholder) {
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 SpaceInsightsPanel = _interopRequireDefault(__SpaceInsightsPanel);
17
17
  const TilesPanel = _interopRequireDefault(__TilesPanel);
18
18
  const tilesContainerActionButtons = __TilesPanel["tilesContainerActionButtons"];
19
19
  const tilesContainerMenuItems = __TilesPanel["tilesContainerMenuItems"];
20
20
  const DeviceType = ___utils_Device["DeviceType"];
21
21
  const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
22
- const SpaceInsightsPanel = _interopRequireDefault(__SpaceInsightsPanel);
22
+ const getInsightsPlaceholder = ___utils_placeholder_InsightsPlaceholder["getInsightsPlaceholder"];
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"),