@sapui5/sap.cux.home 1.141.0 → 1.143.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 (355) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +4 -1
  3. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +3 -2
  4. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
  5. package/src/sap/cux/home/AdvancedSettingsPanel.js +6 -6
  6. package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
  7. package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -6
  8. package/src/sap/cux/home/App.d.ts.map +1 -1
  9. package/src/sap/cux/home/App.js +9 -1
  10. package/src/sap/cux/home/App.js.map +1 -1
  11. package/src/sap/cux/home/App.ts +10 -1
  12. package/src/sap/cux/home/AppsAdditionPanel.d.ts +75 -34
  13. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  14. package/src/sap/cux/home/AppsAdditionPanel.js +378 -179
  15. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  16. package/src/sap/cux/home/AppsAdditionPanel.ts +399 -175
  17. package/src/sap/cux/home/AppsContainer.d.ts +5 -1
  18. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  19. package/src/sap/cux/home/AppsContainer.js +32 -17
  20. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  21. package/src/sap/cux/home/AppsContainer.ts +31 -15
  22. package/src/sap/cux/home/BaseAppPanel.d.ts +2 -1
  23. package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
  24. package/src/sap/cux/home/BaseAppPanel.js +2 -1
  25. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  26. package/src/sap/cux/home/BaseAppPanel.ts +4 -2
  27. package/src/sap/cux/home/BaseContainer.d.ts +8 -0
  28. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  29. package/src/sap/cux/home/BaseContainer.js +35 -5
  30. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  31. package/src/sap/cux/home/BaseContainer.ts +32 -5
  32. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  33. package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
  34. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  35. package/src/sap/cux/home/BaseContainerRenderer.ts +7 -1
  36. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  37. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  38. package/src/sap/cux/home/BasePanel.d.ts +7 -0
  39. package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
  40. package/src/sap/cux/home/BasePanel.js +23 -2
  41. package/src/sap/cux/home/BasePanel.js.map +1 -1
  42. package/src/sap/cux/home/BasePanel.ts +18 -1
  43. package/src/sap/cux/home/CardsContainer.d.ts +108 -0
  44. package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
  45. package/src/sap/cux/home/CardsContainer.js +207 -0
  46. package/src/sap/cux/home/CardsContainer.js.map +1 -0
  47. package/src/sap/cux/home/CardsContainer.ts +202 -0
  48. package/src/sap/cux/home/CardsPanel.d.ts +32 -59
  49. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  50. package/src/sap/cux/home/CardsPanel.js +270 -249
  51. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  52. package/src/sap/cux/home/CardsPanel.ts +169 -181
  53. package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
  54. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  55. package/src/sap/cux/home/ContentAdditionDialog.js +17 -7
  56. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  57. package/src/sap/cux/home/ContentAdditionDialog.ts +18 -6
  58. package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
  59. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  60. package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
  61. package/src/sap/cux/home/ErrorPanel.js +11 -16
  62. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  63. package/src/sap/cux/home/ErrorPanel.ts +7 -19
  64. package/src/sap/cux/home/FavAppPanel.d.ts +1 -12
  65. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  66. package/src/sap/cux/home/FavAppPanel.js +354 -414
  67. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  68. package/src/sap/cux/home/FavAppPanel.ts +25 -70
  69. package/src/sap/cux/home/FrequentAppPanel.d.ts.map +1 -1
  70. package/src/sap/cux/home/FrequentAppPanel.js +5 -1
  71. package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
  72. package/src/sap/cux/home/FrequentAppPanel.ts +4 -0
  73. package/src/sap/cux/home/InsightsAdditionPanel.d.ts +4 -4
  74. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  75. package/src/sap/cux/home/InsightsAdditionPanel.js +12 -9
  76. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  77. package/src/sap/cux/home/InsightsAdditionPanel.ts +11 -8
  78. package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
  79. package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
  80. package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +3 -3
  81. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
  82. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
  83. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
  84. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
  85. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +288 -58
  86. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  87. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
  88. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  89. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
  90. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
  91. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  92. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
  93. package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
  94. package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
  95. package/src/sap/cux/home/Layout.d.ts +3 -1
  96. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  97. package/src/sap/cux/home/Layout.js +45 -8
  98. package/src/sap/cux/home/Layout.js.map +1 -1
  99. package/src/sap/cux/home/Layout.ts +55 -8
  100. package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
  101. package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
  102. package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
  103. package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
  104. package/src/sap/cux/home/LayoutSettingsPanel.ts +380 -64
  105. package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -18
  106. package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
  107. package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
  108. package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
  109. package/src/sap/cux/home/NewsContainer.js.map +1 -0
  110. package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +31 -120
  111. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  112. package/src/sap/cux/home/NewsGroup.ts +1 -1
  113. package/src/sap/cux/home/NewsPanel.d.ts +17 -0
  114. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  115. package/src/sap/cux/home/NewsPanel.js +90 -57
  116. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  117. package/src/sap/cux/home/NewsPanel.ts +51 -23
  118. package/src/sap/cux/home/NewsSettingsPanel.d.ts +42 -6
  119. package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
  120. package/src/sap/cux/home/NewsSettingsPanel.js +219 -81
  121. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  122. package/src/sap/cux/home/NewsSettingsPanel.ts +216 -81
  123. package/src/sap/cux/home/Page.d.ts.map +1 -1
  124. package/src/sap/cux/home/Page.js +4 -1
  125. package/src/sap/cux/home/Page.js.map +1 -1
  126. package/src/sap/cux/home/Page.ts +2 -0
  127. package/src/sap/cux/home/PagePanel.d.ts +1 -1
  128. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  129. package/src/sap/cux/home/PagePanel.js +19 -11
  130. package/src/sap/cux/home/PagePanel.js.map +1 -1
  131. package/src/sap/cux/home/PagePanel.ts +26 -20
  132. package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
  133. package/src/sap/cux/home/PageSettingsPanel.js +6 -3
  134. package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
  135. package/src/sap/cux/home/PageSettingsPanel.ts +2 -2
  136. package/src/sap/cux/home/PagesContainer.d.ts +72 -0
  137. package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
  138. package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
  139. package/src/sap/cux/home/PagesContainer.js +333 -0
  140. package/src/sap/cux/home/PagesContainer.js.map +1 -0
  141. package/src/sap/cux/home/PagesContainer.ts +179 -0
  142. package/src/sap/cux/home/RecentAppPanel.d.ts.map +1 -1
  143. package/src/sap/cux/home/RecentAppPanel.js +6 -0
  144. package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
  145. package/src/sap/cux/home/RecentAppPanel.ts +5 -1
  146. package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
  147. package/src/sap/cux/home/RecommendedAppPanel.js +7 -0
  148. package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
  149. package/src/sap/cux/home/RecommendedAppPanel.ts +6 -1
  150. package/src/sap/cux/home/SettingsDialog.d.ts +7 -0
  151. package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
  152. package/src/sap/cux/home/SettingsDialog.js +18 -10
  153. package/src/sap/cux/home/SettingsDialog.js.map +1 -1
  154. package/src/sap/cux/home/SettingsDialog.ts +20 -13
  155. package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +10 -0
  156. package/src/sap/cux/home/SideBySideIconTabFilter.d.ts.map +1 -1
  157. package/src/sap/cux/home/SideBySideIconTabFilter.js +11 -1
  158. package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -1
  159. package/src/sap/cux/home/SideBySideIconTabFilter.ts +11 -0
  160. package/src/sap/cux/home/SituationPanel.d.ts.map +1 -1
  161. package/src/sap/cux/home/SituationPanel.js +7 -2
  162. package/src/sap/cux/home/SituationPanel.js.map +1 -1
  163. package/src/sap/cux/home/SituationPanel.ts +2 -0
  164. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
  165. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  166. package/src/sap/cux/home/SpaceInsightsPanel.js +67 -133
  167. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  168. package/src/sap/cux/home/SpaceInsightsPanel.ts +70 -152
  169. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  170. package/src/sap/cux/home/TaskPanel.js +17 -12
  171. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  172. package/src/sap/cux/home/TaskPanel.ts +19 -16
  173. package/src/sap/cux/home/TilesContainer.d.ts +111 -0
  174. package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
  175. package/src/sap/cux/home/TilesContainer.js +218 -0
  176. package/src/sap/cux/home/TilesContainer.js.map +1 -0
  177. package/src/sap/cux/home/TilesContainer.ts +216 -0
  178. package/src/sap/cux/home/TilesPanel.d.ts +22 -52
  179. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  180. package/src/sap/cux/home/TilesPanel.js +194 -168
  181. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  182. package/src/sap/cux/home/TilesPanel.ts +167 -157
  183. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  184. package/src/sap/cux/home/ToDoPanel.js +59 -66
  185. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  186. package/src/sap/cux/home/ToDoPanel.ts +46 -34
  187. package/src/sap/cux/home/ToDosContainer.js +3 -3
  188. package/src/sap/cux/home/ToDosContainer.js.map +1 -1
  189. package/src/sap/cux/home/ToDosContainer.ts +1 -1
  190. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +2 -2
  191. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
  192. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +1 -1
  193. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
  194. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +4 -4
  195. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +2 -2
  196. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  197. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -1
  198. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  199. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +4 -4
  200. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +2 -2
  201. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
  202. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +1 -1
  203. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
  204. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +3 -3
  205. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +2 -2
  206. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
  207. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +4 -4
  208. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
  209. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +5 -5
  210. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
  211. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +30 -3
  212. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
  213. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +23 -1
  214. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
  215. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
  216. package/src/sap/cux/home/flexibility/Layout.flexibility.js +78 -2
  217. package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
  218. package/src/sap/cux/home/flexibility/Layout.flexibility.ts +81 -1
  219. package/src/sap/cux/home/i18n/messagebundle.properties +40 -14
  220. package/src/sap/cux/home/i18n/messagebundle_ar.properties +8 -4
  221. package/src/sap/cux/home/i18n/messagebundle_bg.properties +8 -4
  222. package/src/sap/cux/home/i18n/messagebundle_ca.properties +8 -4
  223. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +8 -4
  224. package/src/sap/cux/home/i18n/messagebundle_cs.properties +8 -4
  225. package/src/sap/cux/home/i18n/messagebundle_cy.properties +8 -4
  226. package/src/sap/cux/home/i18n/messagebundle_da.properties +8 -4
  227. package/src/sap/cux/home/i18n/messagebundle_de.properties +8 -4
  228. package/src/sap/cux/home/i18n/messagebundle_el.properties +8 -4
  229. package/src/sap/cux/home/i18n/messagebundle_en.properties +9 -5
  230. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +8 -4
  231. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +14 -6
  232. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +14 -6
  233. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +8 -4
  234. package/src/sap/cux/home/i18n/messagebundle_es.properties +8 -4
  235. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +8 -4
  236. package/src/sap/cux/home/i18n/messagebundle_et.properties +8 -4
  237. package/src/sap/cux/home/i18n/messagebundle_fi.properties +8 -4
  238. package/src/sap/cux/home/i18n/messagebundle_fr.properties +8 -4
  239. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +8 -4
  240. package/src/sap/cux/home/i18n/messagebundle_hi.properties +8 -4
  241. package/src/sap/cux/home/i18n/messagebundle_hr.properties +8 -4
  242. package/src/sap/cux/home/i18n/messagebundle_hu.properties +8 -4
  243. package/src/sap/cux/home/i18n/messagebundle_id.properties +8 -4
  244. package/src/sap/cux/home/i18n/messagebundle_it.properties +10 -6
  245. package/src/sap/cux/home/i18n/messagebundle_iw.properties +8 -4
  246. package/src/sap/cux/home/i18n/messagebundle_ja.properties +8 -4
  247. package/src/sap/cux/home/i18n/messagebundle_kk.properties +8 -4
  248. package/src/sap/cux/home/i18n/messagebundle_ko.properties +8 -4
  249. package/src/sap/cux/home/i18n/messagebundle_lt.properties +8 -4
  250. package/src/sap/cux/home/i18n/messagebundle_lv.properties +8 -4
  251. package/src/sap/cux/home/i18n/messagebundle_mk.properties +8 -4
  252. package/src/sap/cux/home/i18n/messagebundle_ms.properties +8 -4
  253. package/src/sap/cux/home/i18n/messagebundle_nl.properties +8 -4
  254. package/src/sap/cux/home/i18n/messagebundle_no.properties +8 -4
  255. package/src/sap/cux/home/i18n/messagebundle_pl.properties +8 -4
  256. package/src/sap/cux/home/i18n/messagebundle_pt.properties +9 -5
  257. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +8 -4
  258. package/src/sap/cux/home/i18n/messagebundle_ro.properties +8 -4
  259. package/src/sap/cux/home/i18n/messagebundle_ru.properties +8 -4
  260. package/src/sap/cux/home/i18n/messagebundle_sh.properties +8 -4
  261. package/src/sap/cux/home/i18n/messagebundle_sk.properties +8 -4
  262. package/src/sap/cux/home/i18n/messagebundle_sl.properties +8 -4
  263. package/src/sap/cux/home/i18n/messagebundle_sr.properties +8 -4
  264. package/src/sap/cux/home/i18n/messagebundle_sv.properties +8 -4
  265. package/src/sap/cux/home/i18n/messagebundle_th.properties +8 -4
  266. package/src/sap/cux/home/i18n/messagebundle_tr.properties +8 -4
  267. package/src/sap/cux/home/i18n/messagebundle_uk.properties +8 -4
  268. package/src/sap/cux/home/i18n/messagebundle_vi.properties +8 -4
  269. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +8 -4
  270. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +8 -4
  271. package/src/sap/cux/home/interface/AppsInterface.d.ts +6 -0
  272. package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
  273. package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
  274. package/src/sap/cux/home/interface/AppsInterface.ts +7 -0
  275. package/src/sap/cux/home/interface/KeyUserInterface.d.ts +27 -4
  276. package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
  277. package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
  278. package/src/sap/cux/home/interface/KeyUserInterface.ts +23 -4
  279. package/src/sap/cux/home/interface/LayoutInterface.d.ts +7 -0
  280. package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
  281. package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
  282. package/src/sap/cux/home/interface/LayoutInterface.ts +7 -0
  283. package/src/sap/cux/home/library.d.ts.map +1 -1
  284. package/src/sap/cux/home/library.js +7 -4
  285. package/src/sap/cux/home/library.js.map +1 -1
  286. package/src/sap/cux/home/library.ts +10 -5
  287. package/src/sap/cux/home/themes/base/AppsContainer.less +12 -1
  288. package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
  289. package/src/sap/cux/home/themes/base/BaseLayout.less +22 -0
  290. package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +4 -45
  291. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
  292. package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
  293. package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
  294. package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
  295. package/src/sap/cux/home/themes/base/ToDosContainer.less +4 -0
  296. package/src/sap/cux/home/themes/base/library.source.less +2 -1
  297. package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
  298. package/src/sap/cux/home/utils/AppManager.js +2 -1
  299. package/src/sap/cux/home/utils/AppManager.js.map +1 -1
  300. package/src/sap/cux/home/utils/AppManager.ts +2 -2
  301. package/src/sap/cux/home/utils/FESRUtil.d.ts +30 -0
  302. package/src/sap/cux/home/utils/FESRUtil.d.ts.map +1 -1
  303. package/src/sap/cux/home/utils/FESRUtil.js +36 -1
  304. package/src/sap/cux/home/utils/FESRUtil.js.map +1 -1
  305. package/src/sap/cux/home/utils/FESRUtil.ts +36 -0
  306. package/src/sap/cux/home/utils/PXFeedback.d.ts +4 -0
  307. package/src/sap/cux/home/utils/PXFeedback.d.ts.map +1 -0
  308. package/src/sap/cux/home/utils/PXFeedback.js +28 -0
  309. package/src/sap/cux/home/utils/PXFeedback.js.map +1 -0
  310. package/src/sap/cux/home/utils/PXFeedback.ts +19 -0
  311. package/src/sap/cux/home/utils/PageManager.d.ts +0 -4
  312. package/src/sap/cux/home/utils/PageManager.d.ts.map +1 -1
  313. package/src/sap/cux/home/utils/PageManager.js +6 -6
  314. package/src/sap/cux/home/utils/PageManager.js.map +1 -1
  315. package/src/sap/cux/home/utils/PageManager.ts +6 -5
  316. package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
  317. package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
  318. package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
  319. package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
  320. package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
  321. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +155 -151
  322. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
  323. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
  324. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
  325. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
  326. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
  327. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
  328. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
  329. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
  330. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
  331. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
  332. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
  333. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
  334. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
  335. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
  336. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
  337. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
  338. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
  339. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
  340. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
  341. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
  342. package/ui5.yaml +1 -0
  343. package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
  344. package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
  345. package/src/sap/cux/home/InsightsContainer.js +0 -459
  346. package/src/sap/cux/home/InsightsContainer.js.map +0 -1
  347. package/src/sap/cux/home/InsightsContainer.ts +0 -489
  348. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
  349. package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
  350. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
  351. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
  352. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
  353. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
  354. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
  355. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +0 -1
@@ -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(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettings", "sap/fe/navigation/SelectionVariant", "sap/insights/CardHelper", "sap/insights/base/InMemoryCachingHost", "sap/m/HBox", "sap/m/HeaderContainer", "sap/m/VBox", "sap/ui/core/EventBus", "sap/ui/integration/widgets/Card", "sap/ui/model/json/JSONModel", "sap/ushell/Container", "sap/ushell/api/S4MyHome", "./BasePanel", "./MenuItem", "./utils/AppManager", "./utils/CommonUtils", "./utils/Constants", "./utils/DataFormatUtils", "./utils/Device", "./utils/DragDropUtils", "./utils/FESRUtil", "./utils/InsightsUtils", "./utils/PersonalisationUtils", "./utils/UshellPersonalizer"], function (Log, GridContainer, GridContainerSettings, SelectionVariant, CardHelper, InsightsInMemoryCachingHost, HBox, HeaderContainer, VBox, EventBus, Card, JSONModel, Container, S4MyHome, __BasePanel, __MenuItem, __AppManager, ___utils_CommonUtils, ___utils_Constants, ___utils_DataFormatUtils, ___utils_Device, ___utils_DragDropUtils, ___utils_FESRUtil, ___utils_InsightsUtils, __PersonalisationUtils, __UShellPersonalizer) {
5
+ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettings", "sap/fe/navigation/SelectionVariant", "sap/insights/CardHelper", "sap/insights/base/InMemoryCachingHost", "sap/m/Button", "sap/m/HBox", "sap/m/HeaderContainer", "sap/m/VBox", "sap/ui/core/EventBus", "sap/ui/integration/widgets/Card", "sap/ui/model/json/JSONModel", "sap/ushell/Container", "sap/ushell/api/S4MyHome", "./BasePanel", "./ErrorPanel", "./MenuItem", "./utils/AppManager", "./utils/CommonUtils", "./utils/Constants", "./utils/DataFormatUtils", "./utils/Device", "./utils/DragDropUtils", "./utils/FESRUtil", "./utils/InsightsUtils", "./utils/PersonalisationUtils", "./utils/UshellPersonalizer"], function (Log, GridContainer, GridContainerSettings, SelectionVariant, CardHelper, InsightsInMemoryCachingHost, Button, HBox, HeaderContainer, VBox, EventBus, Card, JSONModel, Container, S4MyHome, __BasePanel, __ErrorPanel, __MenuItem, __AppManager, ___utils_CommonUtils, ___utils_Constants, ___utils_DataFormatUtils, ___utils_Device, ___utils_DragDropUtils, ___utils_FESRUtil, ___utils_InsightsUtils, __PersonalisationUtils, __UShellPersonalizer) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
@@ -31,6 +31,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
31
31
  }
32
32
  return finalizer(false, result);
33
33
  }
34
+ const ErrorPanel = _interopRequireDefault(__ErrorPanel);
34
35
  const MenuItem = _interopRequireDefault(__MenuItem);
35
36
  const AppManager = _interopRequireDefault(__AppManager);
36
37
  const getPageManagerInstance = ___utils_CommonUtils["getPageManagerInstance"];
@@ -42,8 +43,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
42
43
  const fetchElementProperties = ___utils_Device["fetchElementProperties"];
43
44
  const focusDraggedItem = ___utils_DragDropUtils["focusDraggedItem"];
44
45
  const addFESRId = ___utils_FESRUtil["addFESRId"];
45
- const createShowMoreActionButton = ___utils_InsightsUtils["createShowMoreActionButton"];
46
- const createShowMoreMenuItem = ___utils_InsightsUtils["createShowMoreMenuItem"];
46
+ const addFESRNavigationSource = ___utils_FESRUtil["addFESRNavigationSource"];
47
+ const FESRNavigationSource = ___utils_FESRUtil["FESRNavigationSource"];
48
+ const getAssociatedFullScreenButton = ___utils_InsightsUtils["getAssociatedFullScreenButton"];
47
49
  const getAssociatedFullScreenMenuItem = ___utils_InsightsUtils["getAssociatedFullScreenMenuItem"];
48
50
  const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
49
51
  const targetsAreEqual = ___utils_InsightsUtils["targetsAreEqual"];
@@ -52,21 +54,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
52
54
  var cardsMenuItems = /*#__PURE__*/function (cardsMenuItems) {
53
55
  cardsMenuItems["REFRESH"] = "cards-refresh";
54
56
  cardsMenuItems["EDIT_CARDS"] = "cards-editCards";
55
- cardsMenuItems["AI_INSIGHT_CARD"] = "cards-addAIInsightCard";
56
57
  return cardsMenuItems;
57
58
  }(cardsMenuItems || {});
58
- var cardsContainerMenuItems = /*#__PURE__*/function (cardsContainerMenuItems) {
59
- cardsContainerMenuItems["REFRESH"] = "container-cards-refresh";
60
- cardsContainerMenuItems["EDIT_CARDS"] = "container-cards-editCards";
61
- cardsContainerMenuItems["SHOW_MORE"] = "cardsContainerFullScreenMenuItem";
62
- cardsContainerMenuItems["AI_INSIGHT_CARD"] = "container-cards-addAIInsightCard";
63
- return cardsContainerMenuItems;
64
- }(cardsContainerMenuItems || {});
65
- var cardsContainerActionButtons = /*#__PURE__*/function (cardsContainerActionButtons) {
66
- cardsContainerActionButtons["SHOW_MORE"] = "cardsContanerFullScreenActionButton";
67
- return cardsContainerActionButtons;
68
- }(cardsContainerActionButtons || {});
69
- const sortedMenuItems = [cardsMenuItems.REFRESH, cardsMenuItems.EDIT_CARDS, cardsMenuItems.AI_INSIGHT_CARD, "showMore", "settings"];
59
+ var cardsActionButtons = /*#__PURE__*/function (cardsActionButtons) {
60
+ cardsActionButtons["SHOW_MORE"] = "fullScreen";
61
+ return cardsActionButtons;
62
+ }(cardsActionButtons || {});
63
+ var errorPanelMenuItems = /*#__PURE__*/function (errorPanelMenuItems) {
64
+ errorPanelMenuItems["EDIT_CARDS"] = "cards-errorPanel-editCards";
65
+ return errorPanelMenuItems;
66
+ }(errorPanelMenuItems || {});
67
+ const sortedMenuItems = [cardsMenuItems.REFRESH, cardsMenuItems.EDIT_CARDS, "showMore", "settings"];
70
68
  const Constants = {
71
69
  PLACEHOLDER_CARD_COUNT: 10,
72
70
  CARDS_GAP: 16
@@ -171,7 +169,6 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
171
169
  this.aVisibleCardInstances = [];
172
170
  this.cardsInViewport = [];
173
171
  this._appSwitched = false;
174
- this._headerVisible = false;
175
172
  },
176
173
  /**
177
174
  * Initializes the Cards Panel.
@@ -182,6 +179,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
182
179
  init: function _init() {
183
180
  const _this = this;
184
181
  BasePanel.prototype.init.call(this);
182
+ this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")}`);
185
183
  this.setProperty("key", "cards");
186
184
  this.setProperty("enableFullScreen", true);
187
185
  this.cardWidth = "19rem";
@@ -206,8 +204,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
206
204
  // Subscribe to the event
207
205
  this.oEventBus.subscribe("importChannel", "cardsImport", function (sChannelId, sEventId, oData) {
208
206
  try {
209
- return Promise.resolve(_this._createCards(oData)).then(function () {
210
- return Promise.resolve(_this.rerenderCards()).then(function () {
207
+ return Promise.resolve(_this.initializeCardHelper()).then(function () {
208
+ return Promise.resolve(_this._createCards(oData)).then(function () {
211
209
  _this._importdone();
212
210
  });
213
211
  });
@@ -338,7 +336,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
338
336
  return Promise.resolve(navigationService.navigate({
339
337
  target: oParameters.ibnTarget,
340
338
  params: oParameters.ibnParams
341
- })).then(function () {});
339
+ })).then(function () {
340
+ addFESRNavigationSource(FESRNavigationSource.Cards);
341
+ });
342
342
  });
343
343
  }
344
344
  }();
@@ -446,7 +446,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
446
446
  target: {
447
447
  shellHash: sShellHash
448
448
  }
449
- })).then(function () {});
449
+ })).then(function () {
450
+ addFESRNavigationSource(FESRNavigationSource.Cards);
451
+ });
450
452
  });
451
453
  });
452
454
  } catch (e) {
@@ -564,19 +566,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
564
566
  }
565
567
  },
566
568
  /**
567
- * Renders the panel.
569
+ * Initializes the card helper and page manager if not already done.
568
570
  *
569
571
  * @private
570
- * @returns {Promise<void>} A promise that resolves when the panel is rendered.
572
+ * @returns {Promise<void>}
571
573
  */
572
- renderPanel: function _renderPanel() {
574
+ initializeCardHelper: function _initializeCardHelper() {
573
575
  try {
574
576
  const _this0 = this;
575
- function _temp6() {
576
- return Promise.resolve(_this0.rerenderCards()).then(function () {
577
- _this0.fireEvent("loaded");
578
- });
579
- }
580
577
  const _temp5 = function () {
581
578
  if (!_this0.cardHelperInstance) {
582
579
  _this0.pageManagerInstance = _this0.pageManagerInstance || getPageManagerInstance(_this0);
@@ -586,11 +583,46 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
586
583
  });
587
584
  }
588
585
  }();
589
- return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5));
586
+ return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
587
+ } catch (e) {
588
+ return Promise.reject(e);
589
+ }
590
+ },
591
+ /**
592
+ * Renders the panel.
593
+ *
594
+ * @private
595
+ * @returns {Promise<void>} A promise that resolves when the panel is rendered.
596
+ */
597
+ renderPanel: function _renderPanel() {
598
+ try {
599
+ const _this1 = this;
600
+ return Promise.resolve(_this1.initializeCardHelper()).then(function () {
601
+ return Promise.resolve(_this1.rerenderCards()).then(function () {
602
+ _this1.fireEvent("loaded");
603
+ });
604
+ });
590
605
  } catch (e) {
591
606
  return Promise.reject(e);
592
607
  }
593
608
  },
609
+ /**
610
+ * Sorts the menu items based on the provided order.
611
+ *
612
+ * @private
613
+ * @param {string[]} menuItems - The order of the menu items.
614
+ */
615
+ _sortMenuItems: function _sortMenuItems(menuItems) {
616
+ const panelMenuItems = this.getAggregation("menuItems");
617
+ let sortedMenuItems = sortMenuItems(menuItems, panelMenuItems);
618
+ this.removeAllAggregation("menuItems");
619
+ sortedMenuItems?.forEach(menuItem => this.addAggregation("menuItems", menuItem));
620
+ },
621
+ _setMenuItemsVisibility: function _setMenuItemsVisibility(menuItem, bVisible) {
622
+ if (menuItem && (menuItem.getId().includes(cardsMenuItems.REFRESH) || menuItem.getId().includes(cardsMenuItems.EDIT_CARDS) || menuItem.getId().includes("showMore"))) {
623
+ menuItem.setVisible(bVisible);
624
+ }
625
+ },
594
626
  /**
595
627
  * Rerenders the cards.
596
628
  *
@@ -599,103 +631,173 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
599
631
  */
600
632
  rerenderCards: function _rerenderCards(skipRecommendation = false) {
601
633
  try {
602
- const _this1 = this;
603
- if (!_this1._cardsRendered) {
604
- _this1._cardsRendered = new Promise((resolve, reject) => {
634
+ const _this10 = this;
635
+ if (!_this10._cardsRendered) {
636
+ _this10._cardsRendered = new Promise((resolve, reject) => {
605
637
  void function () {
606
638
  try {
607
- const _temp10 = _catch(function () {
639
+ const _temp1 = _catch(function () {
608
640
  // Enable placeholders after updating/rerendering cards
609
- const sDefaultAggreName = _this1._getCardContainer().getMetadata().getDefaultAggregationName();
610
- _this1._getCardContainer().removeAllAggregation(sDefaultAggreName);
611
- _this1._showPlaceHolders();
641
+ const sDefaultAggreName = _this10._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
642
+ _this10._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
643
+ _this10._showPlaceHolders();
612
644
  // Fetch Cards from insights service
613
- const preferedCardIDs = _this1.hasCustomSpace ? PREFERED_CARDS : [];
614
- return Promise.resolve(_this1.cardHelperInstance?._getUserVisibleCardModel(preferedCardIDs)).then(function (userVisibleCardModel) {
645
+ const preferedCardIDs = _this10.hasCustomSpace ? PREFERED_CARDS : [];
646
+ return Promise.resolve(_this10.cardHelperInstance?._getUserVisibleCardModel(preferedCardIDs)).then(function (userVisibleCardModel) {
615
647
  const aCards = userVisibleCardModel.getProperty("/cards");
616
648
  const listBinding = userVisibleCardModel?.bindList("/cards");
617
649
  if (!listBinding.hasListeners("change")) {
618
650
  listBinding?.enableExtendedChangeDetection(true, "/cards", {});
619
651
  listBinding?.attachChange(function () {
620
652
  try {
621
- return Promise.resolve(_this1._cardsRendered ?? Promise.resolve()).then(function () {
653
+ function _temp11() {
622
654
  const visibleCards = userVisibleCardModel.getProperty("/cards");
623
- if (visibleCards.length !== _this1.aVisibleCardInstances.length && visibleCards.length > 0) {
624
- _this1._showCards(visibleCards);
655
+ if (visibleCards.length !== _this10.aVisibleCardInstances.length && visibleCards.length > 0) {
656
+ // Show cards in UI
657
+ _this10._showCards(visibleCards);
625
658
  } else if (!visibleCards.length) {
626
- _this1.fireHandleHidePanel();
659
+ //if there are no tiles, hide the panel and show the error panel
660
+ _this10.setProperty("title", `${_this10._i18nBundle?.getText("insightsCards")}`);
661
+ _this10.getMenuItems().forEach(item => {
662
+ _this10._setMenuItemsVisibility(item, false);
663
+ });
664
+ _this10.fireHandleHidePanel();
665
+ _this10._addErrorPanel();
666
+ }
667
+ }
668
+ const _temp10 = function () {
669
+ if (_this10._cardsRendered) {
670
+ return Promise.resolve(_this10._cardsRendered).then(function () {});
627
671
  }
628
- });
672
+ }();
673
+ return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10));
629
674
  } catch (e) {
630
675
  return Promise.reject(e);
631
676
  }
632
677
  });
633
678
  }
634
- _this1._controlModel.setProperty("/userVisibleCards", aCards);
635
- return Promise.resolve(_this1.getPersonalisationProperty(RECOMMENDATION_PATH)).then(function (showRecommendation) {
636
- function _temp1() {
637
- _this1._cardsRendered = undefined;
679
+ _this10._controlModel.setProperty("/userVisibleCards", aCards);
680
+ return Promise.resolve(_this10.getPersonalisationProperty(RECOMMENDATION_PATH)).then(function (showRecommendation) {
681
+ function _temp0() {
682
+ _this10._cardsRendered = undefined;
638
683
  resolve();
639
684
  }
640
- const _temp0 = function () {
685
+ const _temp9 = function () {
641
686
  if (aCards.length === 0 && showRecommendation === undefined && !skipRecommendation) {
642
- return Promise.resolve(_this1._getRecommendationCards()).then(function () {});
687
+ return Promise.resolve(_this10._getRecommendationCards()).then(function () {});
643
688
  } else {
644
- const _temp9 = function () {
689
+ const _temp8 = function () {
645
690
  if (aCards.length) {
646
- function _temp8() {
691
+ function _temp7() {
647
692
  // from available cards, check for old recommended cards and update it if present,
648
693
  // else show available visible cards
649
- return Promise.resolve(_this1.checkForRecommendedCards(aCards)).then(function () {});
694
+ return Promise.resolve(_this10.checkForRecommendedCards(aCards)).then(function () {});
650
695
  }
651
- const _temp7 = function () {
696
+ _this10._errorPanel?.setVisible(false);
697
+ //Update the panel title with the number of cards
698
+ _this10.setProperty("title", `${_this10._i18nBundle?.getText("insightsCards")} (${aCards.length})`);
699
+ //if the panel has been loaded and has cards, update the visibility of header elements of the panel
700
+ _this10.getMenuItems().forEach(item => {
701
+ _this10._setMenuItemsVisibility(item, true);
702
+ });
703
+ const _temp6 = function () {
652
704
  if (showRecommendation === undefined) {
653
- return Promise.resolve(_this1._updateRecommendationStatus()).then(function () {});
705
+ return Promise.resolve(_this10._updateRecommendationStatus()).then(function () {});
654
706
  }
655
707
  }();
656
- return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
708
+ return _temp6 && _temp6.then ? _temp6.then(_temp7) : _temp7(_temp6);
657
709
  } else {
658
- _this1.fireHandleHidePanel();
710
+ _this10.fireHandleHidePanel();
711
+ _this10._addErrorPanel();
712
+ const layout = _this10._getCardsContainer()?._getLayout();
713
+ if (layout.getProperty("expanded")) {
714
+ _this10.cardsContainer.addContent(_this10);
715
+ layout?.toggleFullScreen(_this10);
716
+ //remove the cards panel from the cards container
717
+ _this10.cardsContainer.removeContent(_this10);
718
+ }
659
719
  }
660
720
  }();
661
- if (_temp9 && _temp9.then) return _temp9.then(function () {});
721
+ if (_temp8 && _temp8.then) return _temp8.then(function () {});
662
722
  }
663
723
  }();
664
- return _temp0 && _temp0.then ? _temp0.then(_temp1) : _temp1(_temp0);
724
+ return _temp9 && _temp9.then ? _temp9.then(_temp0) : _temp0(_temp9);
665
725
  });
666
726
  });
667
727
  }, function (error) {
668
- _this1.fireHandleHidePanel();
669
- _this1._cardsRendered = undefined;
728
+ _this10.fireHandleHidePanel();
729
+ _this10._addErrorPanel();
730
+ _this10._cardsRendered = undefined;
670
731
  if (error instanceof Error) {
671
732
  Log.error(error.message);
672
733
  reject(error);
673
734
  }
674
735
  });
675
- return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(function () {}) : void 0);
736
+ return Promise.resolve(_temp1 && _temp1.then ? _temp1.then(function () {}) : void 0);
676
737
  } catch (e) {
677
738
  return Promise.reject(e);
678
739
  }
679
740
  }();
680
741
  });
681
742
  }
682
- return Promise.resolve(_this1._cardsRendered);
743
+ return Promise.resolve(_this10._cardsRendered);
683
744
  } catch (e) {
684
745
  return Promise.reject(e);
685
746
  }
686
747
  },
748
+ /**
749
+ * Adds an error panel when no cards are available.
750
+ *
751
+ * @private
752
+ */
753
+ _addErrorPanel: function _addErrorPanel() {
754
+ const parentContainer = this._getCardsContainer();
755
+ //set the visibility of cards panel to false
756
+ this.setVisible(false);
757
+ if (!this._errorPanel) {
758
+ this._errorPanel = new ErrorPanel(`${this.getId()}-errorCardsPanel`, {
759
+ additionalData: [new Button(`${this.getId()}-addInsightsCardsBtn`, {
760
+ text: this._i18nBundle.getText("addInsightsCardBtn"),
761
+ type: "Emphasized",
762
+ press: () => {
763
+ this._getCardsContainer()?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
764
+ }
765
+ })],
766
+ messageTitle: this._i18nBundle.getText("noAppsTitle"),
767
+ messageDescription: this._i18nBundle.getText("noInsightsCardsMsg")
768
+ });
769
+ this._errorPanel.getData();
770
+ //Add the menu items and action buttons to the error panel
771
+ const editCardsMenuItem = this._createEditCardsMenuItem(errorPanelMenuItems.EDIT_CARDS, "manageCards");
772
+ this._errorPanel.addAggregation("menuItems", editCardsMenuItem);
773
+ this._sortMenuItems(sortedMenuItems);
774
+ this._errorPanel.setProperty("enableSettings", true);
775
+ }
776
+ //Add the title to the error panel
777
+ this._errorPanel.setProperty("title", this._i18nBundle?.getText("insightsCards"));
778
+ this._errorPanel.setVisible(true);
779
+ parentContainer.addAggregation("content", this._errorPanel);
780
+ //set the visibility of header elements of the error panel
781
+ this._errorPanel.getMenuItems().forEach(item => {
782
+ if (item.getId().includes(errorPanelMenuItems.EDIT_CARDS) || item.getId().includes("settings")) {
783
+ item.setVisible(true);
784
+ } else {
785
+ item.setVisible(false);
786
+ }
787
+ });
788
+ },
687
789
  /**
688
790
  * Sets the new visible cards in the model and updates the UI.
689
791
  * @private
690
792
  */
691
793
  setNewVisibleCards: function _setNewVisibleCards() {
692
794
  try {
693
- const _this10 = this;
694
- const preferedCardIDs = _this10.hasCustomSpace ? PREFERED_CARDS : [];
695
- return Promise.resolve(_this10.cardHelperInstance._getUserVisibleCardModel(preferedCardIDs)).then(function (visibleCardModel) {
795
+ const _this11 = this;
796
+ const preferedCardIDs = _this11.hasCustomSpace ? PREFERED_CARDS : [];
797
+ return Promise.resolve(_this11.cardHelperInstance._getUserVisibleCardModel(preferedCardIDs)).then(function (visibleCardModel) {
696
798
  const aNewCards = visibleCardModel.getProperty("/cards");
697
- _this10._controlModel.setProperty("/userVisibleCards", aNewCards);
698
- _this10._showCards(aNewCards);
799
+ _this11._controlModel.setProperty("/userVisibleCards", aNewCards);
800
+ _this11._showCards(aNewCards);
699
801
  });
700
802
  } catch (e) {
701
803
  return Promise.reject(e);
@@ -715,7 +817,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
715
817
  */
716
818
  checkForRecommendedCards: function _checkForRecommendedCards(aCards) {
717
819
  try {
718
- const _this11 = this;
820
+ const _this12 = this;
719
821
  let manifestIds = [];
720
822
  aCards.forEach((oVisCard, idx) => {
721
823
  let oCard = oVisCard.descriptorContent;
@@ -731,24 +833,24 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
731
833
  });
732
834
  return Promise.resolve(function () {
733
835
  if (manifestIds.length) {
734
- const uniqueManifestDetails = _this11.getUniqueManifestDetails(manifestIds);
735
- return Promise.resolve(_this11.regenerateCards(uniqueManifestDetails, manifestIds)).then(function (aUpdatedCards) {
836
+ const uniqueManifestDetails = _this12.getUniqueManifestDetails(manifestIds);
837
+ return Promise.resolve(_this12.regenerateCards(uniqueManifestDetails, manifestIds)).then(function (aUpdatedCards) {
736
838
  let _exit2 = false;
737
- function _temp12(_result2) {
738
- return _exit2 ? _result2 : Promise.resolve(_this11.setNewVisibleCards()).then(function () {});
839
+ function _temp13(_result2) {
840
+ return _exit2 ? _result2 : Promise.resolve(_this12.setNewVisibleCards()).then(function () {});
739
841
  }
740
- const _temp11 = function () {
842
+ const _temp12 = function () {
741
843
  if (aUpdatedCards?.length) {
742
844
  // Update the model with updated cards
743
- return Promise.resolve(_this11.cardHelperInstance._updateCards(aUpdatedCards.map(oCard => oCard?.newManifest?.descriptorContent))).then(function () {});
845
+ return Promise.resolve(_this12.cardHelperInstance._updateCards(aUpdatedCards.map(oCard => oCard?.newManifest?.descriptorContent))).then(function () {});
744
846
  } else {
745
847
  _exit2 = true;
746
848
  }
747
849
  }();
748
- return _temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11);
850
+ return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
749
851
  });
750
852
  } else {
751
- _this11._showCards(aCards);
853
+ _this12._showCards(aCards);
752
854
  }
753
855
  }());
754
856
  } catch (e) {
@@ -789,9 +891,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
789
891
  */
790
892
  _getManifests: function _getManifests(manifestIds) {
791
893
  try {
792
- const _this12 = this;
894
+ const _this13 = this;
793
895
  // from the provided manifestIds which are unique generate new recommended card manifests
794
- return Promise.resolve(_this12.appManagerInstance._getCardManifest(undefined, manifestIds)).then(function (aManifests) {
896
+ return Promise.resolve(_this13.appManagerInstance._getCardManifest(undefined, manifestIds)).then(function (aManifests) {
795
897
  if (aManifests?.length) {
796
898
  let aRegeneratedCards = aManifests.map(function (oCard) {
797
899
  if (oCard?.["sap.card"]) {
@@ -803,7 +905,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
803
905
  };
804
906
  });
805
907
  // sometimes same card is recommended more than once, hence remove such duplicates
806
- let mappedResults = _this12._removeDuplicateRegeneratedCards(aRegeneratedCards, manifestIds);
908
+ let mappedResults = _this13._removeDuplicateRegeneratedCards(aRegeneratedCards, manifestIds);
807
909
  return mappedResults;
808
910
  } else {
809
911
  return [];
@@ -830,9 +932,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
830
932
  */
831
933
  regenerateCards: function _regenerateCards(manifestIds, allManifestIds) {
832
934
  try {
833
- const _this13 = this;
935
+ const _this14 = this;
834
936
  return Promise.resolve(_catch(function () {
835
- return Promise.resolve(_this13._getManifests(manifestIds)).then(function (aMappedManifest) {
937
+ return Promise.resolve(_this14._getManifests(manifestIds)).then(function (aMappedManifest) {
836
938
  // create unique identifier for each card based on its id and target properties.
837
939
  const createUniqueKey = item => {
838
940
  if (item?.target?.semanticObject && item?.target?.action) {
@@ -939,20 +1041,20 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
939
1041
  */
940
1042
  _getPersonalizationData: function _getPersonalizationData() {
941
1043
  try {
942
- const _this14 = this;
943
- function _temp14() {
944
- return Promise.resolve(_this14.oPersonalizer.read()).then(function (oPersData) {
1044
+ const _this15 = this;
1045
+ function _temp15() {
1046
+ return Promise.resolve(_this15.oPersonalizer.read()).then(function (oPersData) {
945
1047
  return oPersData || {};
946
1048
  });
947
1049
  }
948
- const _temp13 = function () {
949
- if (!_this14.oPersonalizer) {
950
- return Promise.resolve(_this14._getPersonalization()).then(function (_this14$_getPersonali) {
951
- _this14.oPersonalizer = _this14$_getPersonali;
1050
+ const _temp14 = function () {
1051
+ if (!_this15.oPersonalizer) {
1052
+ return Promise.resolve(_this15._getPersonalization()).then(function (_this15$_getPersonali) {
1053
+ _this15.oPersonalizer = _this15$_getPersonali;
952
1054
  });
953
1055
  }
954
1056
  }();
955
- return Promise.resolve(_temp13 && _temp13.then ? _temp13.then(_temp14) : _temp14(_temp13));
1057
+ return Promise.resolve(_temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14));
956
1058
  } catch (e) {
957
1059
  return Promise.reject(e);
958
1060
  }
@@ -960,8 +1062,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
960
1062
  // Fetch personalization data property value
961
1063
  getPersonalisationProperty: function _getPersonalisationProperty(propertyKey) {
962
1064
  try {
963
- const _this15 = this;
964
- return Promise.resolve(_this15._getPersonalizationData()).then(function (oPersData) {
1065
+ const _this16 = this;
1066
+ return Promise.resolve(_this16._getPersonalizationData()).then(function (oPersData) {
965
1067
  return oPersData?.[propertyKey];
966
1068
  });
967
1069
  } catch (e) {
@@ -976,12 +1078,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
976
1078
  */
977
1079
  _getRecommendationCards: function _getRecommendationCards() {
978
1080
  try {
979
- const _this16 = this;
980
- return Promise.resolve(_this16.appManagerInstance.getRecommenedCards()).then(function (aRecommendedCards) {
1081
+ const _this17 = this;
1082
+ return Promise.resolve(_this17.appManagerInstance.getRecommenedCards()).then(function (aRecommendedCards) {
981
1083
  if (aRecommendedCards?.length) {
982
- return _this16._handleRecommendationCards(aRecommendedCards);
1084
+ return _this17._handleRecommendationCards(aRecommendedCards);
983
1085
  }
984
- _this16.fireHandleHidePanel();
1086
+ _this17.fireHandleHidePanel();
985
1087
  });
986
1088
  } catch (e) {
987
1089
  return Promise.reject(e);
@@ -994,11 +1096,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
994
1096
  */
995
1097
  _handleRecommendationCards: function _handleRecommendationCards(aRecommendedCards) {
996
1098
  try {
997
- const _this17 = this;
1099
+ const _this18 = this;
998
1100
  const cardManifests = aRecommendedCards.map(oCard => oCard.descriptorContent);
999
- return Promise.resolve(_this17.cardHelperInstance?._createCards(cardManifests)).then(function () {
1000
- return Promise.resolve(_this17._updateRecommendationStatus()).then(function () {
1001
- return _this17.setNewVisibleCards();
1101
+ return Promise.resolve(_this18.cardHelperInstance?._createCards(cardManifests)).then(function () {
1102
+ return Promise.resolve(_this18._updateRecommendationStatus()).then(function () {
1103
+ return _this18.setNewVisibleCards();
1002
1104
  });
1003
1105
  });
1004
1106
  } catch (e) {
@@ -1033,12 +1135,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1033
1135
  rowSize: this.cardHeight,
1034
1136
  gap: "1rem"
1035
1137
  });
1036
- this.cardsContainer = new GridContainer(`${this.getId()}-insightsCardsFlexBox`, {
1138
+ this.cardsWrapperContainer = new GridContainer(`${this.getId()}-insightsCardsFlexBox`, {
1037
1139
  visible: "{= !${/isPhone}}"
1038
1140
  }).addStyleClass("sapUiSmallMarginTop").setLayout(this.cardsContainerSettings);
1039
- this.cardsContainer.setModel(this._controlModel);
1040
- this.addDragDropConfigTo(this.cardsContainer, oEvent => this._handleCardsDnd(oEvent));
1041
- return this.cardsContainer;
1141
+ this.cardsWrapperContainer.setModel(this._controlModel);
1142
+ this.addDragDropConfigTo(this.cardsWrapperContainer, oEvent => this._handleCardsDnd(oEvent));
1143
+ return this.cardsWrapperContainer;
1042
1144
  },
1043
1145
  /**
1044
1146
  * Creates the mobile card container.
@@ -1054,7 +1156,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1054
1156
  scrollTime: 1000,
1055
1157
  showDividers: false,
1056
1158
  visible: "{/isPhone}"
1057
- });
1159
+ }).addStyleClass("sapCuxInsightsMobileCardsContainer");
1058
1160
  this.cardsMobileContainer.setModel(this._controlModel);
1059
1161
  this.addDragDropConfigTo(this.cardsMobileContainer, oEvent => this._handleCardsDnd(oEvent));
1060
1162
  return this.cardsMobileContainer;
@@ -1085,9 +1187,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1085
1187
  });
1086
1188
 
1087
1189
  // add HBox as item to GridList
1088
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1190
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1089
1191
  if (sDefaultAggreName) {
1090
- this._getCardContainer().addAggregation(sDefaultAggreName, oPreviewHBox);
1192
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewHBox);
1091
1193
  }
1092
1194
  },
1093
1195
  /**
@@ -1097,7 +1199,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1097
1199
  * @returns {number} The number of placeholder cards that should be displayed. Defaults to 1 if no valid count is determined.
1098
1200
  */
1099
1201
  _calculatePlaceholderCardCount: function _calculatePlaceholderCardCount() {
1100
- const layoutDomRef = this._getInsightsContainer()?._getLayout()?.getDomRef();
1202
+ const layoutDomRef = this._getCardsContainer()?._getLayout()?.getDomRef();
1101
1203
  let count = 0;
1102
1204
  if (layoutDomRef) {
1103
1205
  const sectionDomRef = layoutDomRef.childNodes[0];
@@ -1125,14 +1227,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1125
1227
  * @param {ICard[]} aCards - The cards to display.
1126
1228
  */
1127
1229
  _showCards: function _showCards(aCards) {
1128
- const panelName = this.getMetadata().getName();
1230
+ const parentContainer = this._getCardsContainer();
1231
+ parentContainer.removeContent(this._errorPanel);
1129
1232
  this.fireHandleUnhidePanel();
1130
- this._getInsightsContainer()?.updatePanelsItemCount(aCards.length, panelName);
1131
- if (this._headerVisible) {
1132
- this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${aCards.length})`);
1133
- }
1134
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1135
- this._getCardContainer().removeAllAggregation(sDefaultAggreName);
1233
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1234
+ this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
1136
1235
  this.aVisibleCardInstances = [];
1137
1236
  this.cardsInViewport = [];
1138
1237
 
@@ -1176,8 +1275,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1176
1275
  });
1177
1276
 
1178
1277
  // add VBox as item to GridList
1179
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1180
- this._getCardContainer().addAggregation(sDefaultAggreName, oPreviewVBox);
1278
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1279
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewVBox);
1181
1280
  });
1182
1281
  },
1183
1282
  /**
@@ -1187,34 +1286,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1187
1286
  * @param {Event} event - The event object.
1188
1287
  */
1189
1288
  _handleEditCards: function _handleEditCards(event) {
1190
- /* If called from Panel Header event.source() will return TilesPanel, if called from Insights Container event.source() will return InsightsContainer.
1289
+ /* If called from Panel Header event.source() will return TilesPanel, if called from cards Container event.source() will return cardsContainer.
1191
1290
  _getLayout is available at Container Level*/
1192
1291
  let parent = event.getSource().getParent() || this;
1193
- if (parent instanceof CardsPanel) {
1292
+ if (parent instanceof CardsPanel || parent instanceof ErrorPanel) {
1194
1293
  parent = parent.getParent();
1195
1294
  }
1196
1295
  parent?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
1197
1296
  },
1198
- /**
1199
- * Hides the header of the cards panel.
1200
- *
1201
- * @private
1202
- */
1203
- handleHideHeader: function _handleHideHeader() {
1204
- this._headerVisible = false;
1205
- this.setProperty("title", "");
1206
- this._toggleHeaderActions(false);
1207
- },
1208
- /**
1209
- * Adds the header to the cards panel.
1210
- *
1211
- * @private
1212
- */
1213
- handleAddHeader: function _handleAddHeader() {
1214
- this._headerVisible = true;
1215
- this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${this._controlModel.getProperty("/userVisibleCards")?.length})`);
1216
- this._toggleHeaderActions(true);
1217
- },
1218
1297
  /**
1219
1298
  * Refreshes the cards.
1220
1299
  *
@@ -1232,43 +1311,43 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1232
1311
  */
1233
1312
  _handleCardsDnd: function _handleCardsDnd(oEvent) {
1234
1313
  try {
1235
- const _this18 = this;
1314
+ const _this19 = this;
1236
1315
  const sInsertPosition = oEvent.getParameter("dropPosition"),
1237
1316
  oDragItem = oEvent.getParameter("draggedControl"),
1238
1317
  iDragItemIndex = oDragItem.getParent()?.indexOfItem(oDragItem),
1239
1318
  oDropItem = oEvent.getParameter("droppedControl"),
1240
1319
  iDropItemIndex = oDragItem.getParent().indexOfItem(oDropItem);
1241
- _this18._cardsFlexWrapper?.setBusy(true);
1320
+ _this19._cardsFlexWrapper?.setBusy(true);
1242
1321
  // take the moved item from dragIndex and add to dropindex
1243
- const _temp17 = _finallyRethrows(function () {
1322
+ const _temp18 = _finallyRethrows(function () {
1244
1323
  return _catch(function () {
1245
- function _temp16() {
1324
+ function _temp17() {
1246
1325
  setTimeout(() => {
1247
- focusDraggedItem(_this18._getCardContainer(), iDropItemIndex);
1326
+ focusDraggedItem(_this19._getCardWrapperContainer(), iDropItemIndex);
1248
1327
  }, 0);
1249
1328
  }
1250
- const _temp15 = function () {
1251
- if (!_this18._controlModel.getProperty("/userAllCards").length) {
1252
- return Promise.resolve(_this18.cardHelperInstance._getUserAllCardModel()).then(function (userAllCardsModel) {
1253
- _this18._controlModel.setProperty("/userAllCards", userAllCardsModel.getProperty("/cards"));
1254
- return Promise.resolve(_this18.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex)).then(function () {});
1329
+ const _temp16 = function () {
1330
+ if (!_this19._controlModel.getProperty("/userAllCards").length) {
1331
+ return Promise.resolve(_this19.cardHelperInstance._getUserAllCardModel()).then(function (userAllCardsModel) {
1332
+ _this19._controlModel.setProperty("/userAllCards", userAllCardsModel.getProperty("/cards"));
1333
+ return Promise.resolve(_this19.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex)).then(function () {});
1255
1334
  });
1256
1335
  } else {
1257
- return Promise.resolve(_this18.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex)).then(function () {});
1336
+ return Promise.resolve(_this19.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex)).then(function () {});
1258
1337
  }
1259
1338
  }();
1260
- return _temp15 && _temp15.then ? _temp15.then(_temp16) : _temp16(_temp15);
1339
+ return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
1261
1340
  }, function (error) {
1262
1341
  if (error instanceof Error) {
1263
1342
  Log.error(error.message);
1264
1343
  }
1265
1344
  });
1266
1345
  }, function (_wasThrown, _result3) {
1267
- _this18._cardsFlexWrapper?.setBusy(false);
1346
+ _this19._cardsFlexWrapper?.setBusy(false);
1268
1347
  if (_wasThrown) throw _result3;
1269
1348
  return _result3;
1270
1349
  });
1271
- return Promise.resolve(_temp17 && _temp17.then ? _temp17.then(function () {}) : void 0);
1350
+ return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(function () {}) : void 0);
1272
1351
  } catch (e) {
1273
1352
  return Promise.reject(e);
1274
1353
  }
@@ -1284,9 +1363,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1284
1363
  */
1285
1364
  updateCardList: function _updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex) {
1286
1365
  try {
1287
- const _this19 = this;
1288
- const aUserVisibleCards = _this19._controlModel.getProperty("/userVisibleCards"),
1289
- aUserAllCards = _this19._controlModel.getProperty("/userAllCards"),
1366
+ const _this20 = this;
1367
+ const aUserVisibleCards = _this20._controlModel.getProperty("/userVisibleCards"),
1368
+ aUserAllCards = _this20._controlModel.getProperty("/userAllCards"),
1290
1369
  sDragedPositionRank = aUserVisibleCards[iDragItemIndex]?.rank,
1291
1370
  sDropedPositionRank = aUserVisibleCards[iDropItemIndex]?.rank;
1292
1371
  let iUpdatedDragItemIndex = aUserAllCards.findIndex(oCard => oCard.rank === sDragedPositionRank),
@@ -1299,18 +1378,18 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1299
1378
  } else if (sInsertPosition === "After" && iUpdatedDragItemIndex > iUpdatedDropItemIndex) {
1300
1379
  iUpdatedDropItemIndex++;
1301
1380
  }
1302
- const _temp18 = function () {
1381
+ const _temp19 = function () {
1303
1382
  if (iUpdatedDragItemIndex !== iUpdatedDropItemIndex) {
1304
- const aUpdatedCards = _this19.cardHelperInstance.handleDndCardsRanking(iUpdatedDragItemIndex, iUpdatedDropItemIndex, aUserAllCards);
1305
- return Promise.resolve(_this19.cardHelperInstance._updateMultipleCards(aUpdatedCards, "PUT")).then(function () {
1306
- _this19._sortCardsOnRank(aUserAllCards);
1307
- _this19._controlModel.setProperty("/userAllCards", aUserAllCards);
1308
- _this19._controlModel.setProperty("/userVisibleCards", aUserAllCards.filter(oCard => oCard.visibility));
1309
- return Promise.resolve(_this19.rerenderCards()).then(function () {});
1383
+ const aUpdatedCards = _this20.cardHelperInstance.handleDndCardsRanking(iUpdatedDragItemIndex, iUpdatedDropItemIndex, aUserAllCards);
1384
+ return Promise.resolve(_this20.cardHelperInstance._updateMultipleCards(aUpdatedCards, "PUT")).then(function () {
1385
+ _this20._sortCardsOnRank(aUserAllCards);
1386
+ _this20._controlModel.setProperty("/userAllCards", aUserAllCards);
1387
+ _this20._controlModel.setProperty("/userVisibleCards", aUserAllCards.filter(oCard => oCard.visibility));
1388
+ return Promise.resolve(_this20.rerenderCards()).then(function () {});
1310
1389
  });
1311
1390
  }
1312
1391
  }();
1313
- return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(function () {}) : void 0);
1392
+ return Promise.resolve(_temp19 && _temp19.then ? _temp19.then(function () {}) : void 0);
1314
1393
  } catch (e) {
1315
1394
  return Promise.reject(e);
1316
1395
  }
@@ -1351,10 +1430,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1351
1430
  */
1352
1431
  _updateRecommendationStatus: function _updateRecommendationStatus() {
1353
1432
  try {
1354
- const _this20 = this;
1355
- return Promise.resolve(_this20._getPersonalizationData()).then(function (oPersData) {
1433
+ const _this21 = this;
1434
+ return Promise.resolve(_this21._getPersonalizationData()).then(function (oPersData) {
1356
1435
  oPersData[RECOMMENDATION_PATH] = true;
1357
- return _this20.oPersonalizer.write(oPersData);
1436
+ return _this21.oPersonalizer.write(oPersData);
1358
1437
  });
1359
1438
  } catch (e) {
1360
1439
  return Promise.reject(e);
@@ -1367,7 +1446,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1367
1446
  * @returns {number} - The number of visible cards.
1368
1447
  */
1369
1448
  _calculateVisibleCardCount: function _calculateVisibleCardCount() {
1370
- const layout = this._getInsightsContainer()._getLayout();
1449
+ const layout = this._getCardsContainer()._getLayout();
1371
1450
  const pageDomRef = layout.getDomRef();
1372
1451
  const deviceType = this.getDeviceType();
1373
1452
  let count = 1;
@@ -1403,7 +1482,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1403
1482
  * @override
1404
1483
  */
1405
1484
  _adjustLayout: function _adjustLayout() {
1406
- const layout = this._getInsightsContainer()?._getLayout();
1485
+ const layout = this._getCardsContainer()?._getLayout();
1407
1486
  let cardWidth = this.cardWidth;
1408
1487
  const isMobileDevice = this.getDeviceType() === DeviceType.Mobile;
1409
1488
  if (layout && this.aVisibleCardInstances?.length > 0) {
@@ -1420,8 +1499,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1420
1499
  // update cards in viewport
1421
1500
  if (cardCount !== this.cardsInViewport.length) {
1422
1501
  this.cardsInViewport = this.aVisibleCardInstances.slice(0, cardCount);
1423
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1424
- this._getCardContainer().removeAllAggregation(sDefaultAggreName);
1502
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1503
+ this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
1425
1504
  this.cardsInViewport.forEach(card => {
1426
1505
  const manifest = card.getManifest();
1427
1506
  const sType = manifest["sap.card"]?.type;
@@ -1444,22 +1523,21 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1444
1523
  if (overlayHBoxWrapper) {
1445
1524
  cardWrapper.addItem(overlayHBoxWrapper);
1446
1525
  }
1447
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1448
- this._getCardContainer().addAggregation(sDefaultAggreName, cardWrapper);
1526
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1527
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, cardWrapper);
1449
1528
  });
1450
1529
  this.shareCardsInViewport();
1451
1530
  }
1452
-
1453
- // show/hide Full Screen Button if available
1531
+ // show/hide full screen button
1454
1532
  const showFullScreenButton = isElementExpanded || this.aVisibleCardInstances.length > cardCount;
1455
- if (this._headerVisible) {
1456
- this._getInsightsContainer()?.toggleFullScreenElements(this, showFullScreenButton);
1457
- } else {
1458
- const fullScreenButton = getAssociatedFullScreenMenuItem(this);
1459
- const fullScreenText = fullScreenButton?.getTitle();
1460
- this._getInsightsContainer()?.updateMenuItem(this._controlMap.get(`${this.getId()}-${cardsContainerMenuItems.SHOW_MORE}`), showFullScreenButton, fullScreenText);
1461
- this._getInsightsContainer()?.updateActionButton(this._controlMap.get(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`), showFullScreenButton, fullScreenText);
1462
- }
1533
+ const fullScreenButton = getAssociatedFullScreenMenuItem(this);
1534
+ const fullScreenText = fullScreenButton.getTitle();
1535
+ //update the panel menu-item show more button and show more action button in panel header
1536
+ fullScreenButton?.setVisible(showFullScreenButton);
1537
+ fullScreenButton?.setTitle(fullScreenText);
1538
+ const fullScreenActionButton = getAssociatedFullScreenButton(this);
1539
+ fullScreenActionButton?.setVisible(showFullScreenButton);
1540
+ fullScreenActionButton?.setText(fullScreenText);
1463
1541
  } else {
1464
1542
  this.cardWidth = this.getDeviceType() === DeviceType.Mobile ? "19rem" : "22rem";
1465
1543
  }
@@ -1470,50 +1548,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1470
1548
  this.cardsContainerSettings?.setColumnSize(this.cardWidth);
1471
1549
  }
1472
1550
  },
1473
- /**
1474
- * Retrieves the menu items for the container.
1475
- *
1476
- * @private
1477
- * @returns {MenuItem[]} An array of MenuItem instances.
1478
- */
1479
- getContainerMenuItems: function _getContainerMenuItems() {
1480
- if (!this._containerMenuItems) {
1481
- const containerRefreshMenuItem = this._createRefreshMenuItem(cardsContainerMenuItems.REFRESH, "containerCardsRefresh");
1482
- const containerEditCardsMenuItem = this._createEditCardsMenuItem(cardsContainerMenuItems.EDIT_CARDS, "containerManageCards");
1483
- const containerShowMoreMenuItem = createShowMoreMenuItem(this, cardsContainerMenuItems.SHOW_MORE, "containerCardsShowMore");
1484
- this._controlMap.set(`${this.getId()}-${cardsContainerMenuItems.SHOW_MORE}`, containerShowMoreMenuItem);
1485
- this._containerMenuItems = [containerRefreshMenuItem, containerEditCardsMenuItem, containerShowMoreMenuItem];
1486
- }
1487
- return this._containerMenuItems;
1488
- },
1489
- /**
1490
- * Retrieves the action buttons for the container.
1491
- *
1492
- * @private
1493
- * @returns {Button[]} An array of Button instances.
1494
- */
1495
- getContainerActionButtons: function _getContainerActionButtons() {
1496
- if (!this._containerActionButtons) {
1497
- this._containerActionButtons = [];
1498
- const actionButton = createShowMoreActionButton(this, cardsContainerActionButtons.SHOW_MORE, "containerCardsShowMore");
1499
- if (actionButton) {
1500
- this._controlMap.set(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`, actionButton);
1501
- this._containerActionButtons.push(actionButton);
1502
- }
1503
- }
1504
- return this._containerActionButtons;
1505
- },
1506
1551
  /**
1507
1552
  * Retrieves the insights container.
1508
1553
  *
1509
1554
  * @private
1510
- * @returns {InsightsContainer} - The insights container.
1555
+ * @returns {CardsContainer} - The cards container.
1511
1556
  */
1512
- _getInsightsContainer: function _getInsightsContainer() {
1513
- if (!this.insightsContainer) {
1514
- this.insightsContainer = this.getParent();
1557
+ _getCardsContainer: function _getCardsContainer() {
1558
+ if (!this.cardsContainer) {
1559
+ this.cardsContainer = this.getParent();
1515
1560
  }
1516
- return this.insightsContainer;
1561
+ return this.cardsContainer;
1517
1562
  },
1518
1563
  /**
1519
1564
  * Creates the refresh menu item.
@@ -1557,18 +1602,6 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1557
1602
  }
1558
1603
  return menuItem;
1559
1604
  },
1560
- /**
1561
- * Toggles the visibility of the header actions.
1562
- *
1563
- * @param {boolean} bShow - Whether to show or hide the header actions.
1564
- * @private
1565
- */
1566
- _toggleHeaderActions: function _toggleHeaderActions(bShow) {
1567
- this.getAggregation("menuItems")?.forEach(menuItem => {
1568
- this._getInsightsContainer()?.toggleMenuListItem(menuItem, bShow);
1569
- });
1570
- this.getAggregation("actionButtons")?.forEach(actionButton => this._getInsightsContainer()?.toggleActionButton(actionButton, bShow));
1571
- },
1572
1605
  /**
1573
1606
  * Retrieves the card container based on the device type.
1574
1607
  *
@@ -1576,23 +1609,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1576
1609
  * @returns {GridContainer | HeaderContainer} - The card container.
1577
1610
  *
1578
1611
  */
1579
- _getCardContainer: function _getCardContainer() {
1612
+ _getCardWrapperContainer: function _getCardWrapperContainer() {
1580
1613
  if (this.getDeviceType() === DeviceType.Mobile) {
1581
1614
  return this.cardsMobileContainer;
1582
1615
  }
1583
- return this.cardsContainer;
1584
- },
1585
- /**
1586
- * Sorts the menu items based on the provided order.
1587
- *
1588
- * @private
1589
- * @param {string[]} menuItems - The order of the menu items.
1590
- */
1591
- _sortMenuItems: function _sortMenuItems(menuItems) {
1592
- const panelMenuItems = this.getAggregation("menuItems");
1593
- let sortedMenuItems = sortMenuItems(menuItems, panelMenuItems);
1594
- this.removeAllAggregation("menuItems");
1595
- sortedMenuItems?.forEach(menuItem => this.addAggregation("menuItems", menuItem));
1616
+ return this.cardsWrapperContainer;
1596
1617
  },
1597
1618
  /**
1598
1619
  * Shares the cards that are currently in the viewport by firing the "visibleCardsUpdated" event.
@@ -1621,8 +1642,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1621
1642
  }
1622
1643
  });
1623
1644
  CardsPanel.cardsMenuItems = cardsMenuItems;
1624
- CardsPanel.cardsContainerMenuItems = cardsContainerMenuItems;
1625
- CardsPanel.cardsContainerActionButtons = cardsContainerActionButtons;
1645
+ CardsPanel.cardsActionButtons = cardsActionButtons;
1646
+ CardsPanel.errorPanelMenuItems = errorPanelMenuItems;
1626
1647
  return CardsPanel;
1627
1648
  });
1628
1649
  //# sourceMappingURL=CardsPanel.js.map