@sapui5/sap.cux.home 1.142.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 (293) 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 -5
  6. package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
  7. package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -5
  8. package/src/sap/cux/home/App.d.ts.map +1 -1
  9. package/src/sap/cux/home/App.js +3 -0
  10. package/src/sap/cux/home/App.js.map +1 -1
  11. package/src/sap/cux/home/App.ts +3 -0
  12. package/src/sap/cux/home/AppsAdditionPanel.d.ts +74 -34
  13. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  14. package/src/sap/cux/home/AppsAdditionPanel.js +344 -146
  15. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  16. package/src/sap/cux/home/AppsAdditionPanel.ts +367 -149
  17. package/src/sap/cux/home/AppsContainer.js +2 -1
  18. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  19. package/src/sap/cux/home/AppsContainer.ts +2 -2
  20. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  21. package/src/sap/cux/home/BaseContainer.js +9 -1
  22. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  23. package/src/sap/cux/home/BaseContainer.ts +6 -2
  24. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  25. package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
  26. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  27. package/src/sap/cux/home/BaseContainerRenderer.ts +6 -0
  28. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  29. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  30. package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
  31. package/src/sap/cux/home/BasePanel.js +3 -2
  32. package/src/sap/cux/home/BasePanel.js.map +1 -1
  33. package/src/sap/cux/home/BasePanel.ts +2 -1
  34. package/src/sap/cux/home/CardsContainer.d.ts +108 -0
  35. package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
  36. package/src/sap/cux/home/CardsContainer.js +207 -0
  37. package/src/sap/cux/home/CardsContainer.js.map +1 -0
  38. package/src/sap/cux/home/CardsContainer.ts +202 -0
  39. package/src/sap/cux/home/CardsPanel.d.ts +25 -59
  40. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  41. package/src/sap/cux/home/CardsPanel.js +157 -155
  42. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  43. package/src/sap/cux/home/CardsPanel.ts +152 -175
  44. package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
  45. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  46. package/src/sap/cux/home/ContentAdditionDialog.js +12 -6
  47. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  48. package/src/sap/cux/home/ContentAdditionDialog.ts +13 -5
  49. package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
  50. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  51. package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
  52. package/src/sap/cux/home/ErrorPanel.js +11 -16
  53. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  54. package/src/sap/cux/home/ErrorPanel.ts +7 -19
  55. package/src/sap/cux/home/FavAppPanel.d.ts +1 -2
  56. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  57. package/src/sap/cux/home/FavAppPanel.js +296 -301
  58. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  59. package/src/sap/cux/home/FavAppPanel.ts +18 -14
  60. package/src/sap/cux/home/InsightsAdditionPanel.d.ts +4 -4
  61. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  62. package/src/sap/cux/home/InsightsAdditionPanel.js +10 -9
  63. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  64. package/src/sap/cux/home/InsightsAdditionPanel.ts +9 -8
  65. package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
  66. package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
  67. package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +3 -3
  68. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
  69. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
  70. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
  71. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
  72. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +288 -58
  73. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  74. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
  75. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  76. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
  77. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
  78. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  79. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
  80. package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
  81. package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
  82. package/src/sap/cux/home/Layout.d.ts +3 -1
  83. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  84. package/src/sap/cux/home/Layout.js +45 -8
  85. package/src/sap/cux/home/Layout.js.map +1 -1
  86. package/src/sap/cux/home/Layout.ts +55 -8
  87. package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
  88. package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
  89. package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
  90. package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
  91. package/src/sap/cux/home/LayoutSettingsPanel.ts +380 -64
  92. package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -14
  93. package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
  94. package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
  95. package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
  96. package/src/sap/cux/home/NewsContainer.js.map +1 -0
  97. package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +29 -118
  98. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  99. package/src/sap/cux/home/NewsGroup.ts +1 -1
  100. package/src/sap/cux/home/NewsPanel.js +2 -2
  101. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  102. package/src/sap/cux/home/NewsPanel.ts +3 -3
  103. package/src/sap/cux/home/NewsSettingsPanel.js +3 -3
  104. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  105. package/src/sap/cux/home/NewsSettingsPanel.ts +4 -4
  106. package/src/sap/cux/home/PagePanel.d.ts +1 -1
  107. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  108. package/src/sap/cux/home/PagePanel.js +18 -10
  109. package/src/sap/cux/home/PagePanel.js.map +1 -1
  110. package/src/sap/cux/home/PagePanel.ts +25 -15
  111. package/src/sap/cux/home/PagesContainer.d.ts +72 -0
  112. package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
  113. package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
  114. package/src/sap/cux/home/PagesContainer.js +333 -0
  115. package/src/sap/cux/home/PagesContainer.js.map +1 -0
  116. package/src/sap/cux/home/PagesContainer.ts +179 -0
  117. package/src/sap/cux/home/SettingsDialog.d.ts +7 -0
  118. package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
  119. package/src/sap/cux/home/SettingsDialog.js +18 -10
  120. package/src/sap/cux/home/SettingsDialog.js.map +1 -1
  121. package/src/sap/cux/home/SettingsDialog.ts +20 -13
  122. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
  123. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  124. package/src/sap/cux/home/SpaceInsightsPanel.js +66 -132
  125. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  126. package/src/sap/cux/home/SpaceInsightsPanel.ts +69 -151
  127. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  128. package/src/sap/cux/home/TaskPanel.js +14 -12
  129. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  130. package/src/sap/cux/home/TaskPanel.ts +17 -15
  131. package/src/sap/cux/home/TilesContainer.d.ts +111 -0
  132. package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
  133. package/src/sap/cux/home/TilesContainer.js +218 -0
  134. package/src/sap/cux/home/TilesContainer.js.map +1 -0
  135. package/src/sap/cux/home/TilesContainer.ts +216 -0
  136. package/src/sap/cux/home/TilesPanel.d.ts +22 -52
  137. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  138. package/src/sap/cux/home/TilesPanel.js +184 -165
  139. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  140. package/src/sap/cux/home/TilesPanel.ts +160 -154
  141. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  142. package/src/sap/cux/home/ToDoPanel.js +30 -58
  143. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  144. package/src/sap/cux/home/ToDoPanel.ts +29 -28
  145. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +2 -2
  146. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
  147. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +1 -1
  148. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
  149. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +4 -4
  150. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +2 -2
  151. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  152. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -1
  153. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  154. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +4 -4
  155. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +2 -2
  156. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
  157. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +1 -1
  158. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
  159. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +3 -3
  160. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +2 -2
  161. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
  162. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +4 -4
  163. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
  164. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +5 -5
  165. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
  166. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +30 -3
  167. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
  168. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +23 -1
  169. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
  170. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
  171. package/src/sap/cux/home/flexibility/Layout.flexibility.js +78 -2
  172. package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
  173. package/src/sap/cux/home/flexibility/Layout.flexibility.ts +81 -1
  174. package/src/sap/cux/home/i18n/messagebundle.properties +33 -13
  175. package/src/sap/cux/home/i18n/messagebundle_ar.properties +8 -4
  176. package/src/sap/cux/home/i18n/messagebundle_bg.properties +8 -4
  177. package/src/sap/cux/home/i18n/messagebundle_ca.properties +8 -4
  178. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +8 -4
  179. package/src/sap/cux/home/i18n/messagebundle_cs.properties +8 -4
  180. package/src/sap/cux/home/i18n/messagebundle_cy.properties +8 -4
  181. package/src/sap/cux/home/i18n/messagebundle_da.properties +8 -4
  182. package/src/sap/cux/home/i18n/messagebundle_de.properties +8 -4
  183. package/src/sap/cux/home/i18n/messagebundle_el.properties +8 -4
  184. package/src/sap/cux/home/i18n/messagebundle_en.properties +9 -5
  185. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +8 -4
  186. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +14 -6
  187. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +14 -6
  188. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +8 -4
  189. package/src/sap/cux/home/i18n/messagebundle_es.properties +8 -4
  190. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +8 -4
  191. package/src/sap/cux/home/i18n/messagebundle_et.properties +8 -4
  192. package/src/sap/cux/home/i18n/messagebundle_fi.properties +8 -4
  193. package/src/sap/cux/home/i18n/messagebundle_fr.properties +8 -4
  194. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +8 -4
  195. package/src/sap/cux/home/i18n/messagebundle_hi.properties +8 -4
  196. package/src/sap/cux/home/i18n/messagebundle_hr.properties +8 -4
  197. package/src/sap/cux/home/i18n/messagebundle_hu.properties +8 -4
  198. package/src/sap/cux/home/i18n/messagebundle_id.properties +8 -4
  199. package/src/sap/cux/home/i18n/messagebundle_it.properties +10 -6
  200. package/src/sap/cux/home/i18n/messagebundle_iw.properties +8 -4
  201. package/src/sap/cux/home/i18n/messagebundle_ja.properties +8 -4
  202. package/src/sap/cux/home/i18n/messagebundle_kk.properties +8 -4
  203. package/src/sap/cux/home/i18n/messagebundle_ko.properties +8 -4
  204. package/src/sap/cux/home/i18n/messagebundle_lt.properties +8 -4
  205. package/src/sap/cux/home/i18n/messagebundle_lv.properties +8 -4
  206. package/src/sap/cux/home/i18n/messagebundle_mk.properties +8 -4
  207. package/src/sap/cux/home/i18n/messagebundle_ms.properties +8 -4
  208. package/src/sap/cux/home/i18n/messagebundle_nl.properties +8 -4
  209. package/src/sap/cux/home/i18n/messagebundle_no.properties +8 -4
  210. package/src/sap/cux/home/i18n/messagebundle_pl.properties +8 -4
  211. package/src/sap/cux/home/i18n/messagebundle_pt.properties +8 -4
  212. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +8 -4
  213. package/src/sap/cux/home/i18n/messagebundle_ro.properties +8 -4
  214. package/src/sap/cux/home/i18n/messagebundle_ru.properties +8 -4
  215. package/src/sap/cux/home/i18n/messagebundle_sh.properties +8 -4
  216. package/src/sap/cux/home/i18n/messagebundle_sk.properties +8 -4
  217. package/src/sap/cux/home/i18n/messagebundle_sl.properties +8 -4
  218. package/src/sap/cux/home/i18n/messagebundle_sr.properties +8 -4
  219. package/src/sap/cux/home/i18n/messagebundle_sv.properties +8 -4
  220. package/src/sap/cux/home/i18n/messagebundle_th.properties +8 -4
  221. package/src/sap/cux/home/i18n/messagebundle_tr.properties +8 -4
  222. package/src/sap/cux/home/i18n/messagebundle_uk.properties +8 -4
  223. package/src/sap/cux/home/i18n/messagebundle_vi.properties +8 -4
  224. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +8 -4
  225. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +8 -4
  226. package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -0
  227. package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
  228. package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
  229. package/src/sap/cux/home/interface/AppsInterface.ts +1 -0
  230. package/src/sap/cux/home/interface/KeyUserInterface.d.ts +27 -4
  231. package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
  232. package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
  233. package/src/sap/cux/home/interface/KeyUserInterface.ts +23 -4
  234. package/src/sap/cux/home/interface/LayoutInterface.d.ts +7 -0
  235. package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
  236. package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
  237. package/src/sap/cux/home/interface/LayoutInterface.ts +7 -0
  238. package/src/sap/cux/home/library.d.ts.map +1 -1
  239. package/src/sap/cux/home/library.js +7 -4
  240. package/src/sap/cux/home/library.js.map +1 -1
  241. package/src/sap/cux/home/library.ts +10 -5
  242. package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
  243. package/src/sap/cux/home/themes/base/BaseLayout.less +11 -0
  244. package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +0 -45
  245. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
  246. package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
  247. package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
  248. package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
  249. package/src/sap/cux/home/themes/base/library.source.less +2 -1
  250. package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
  251. package/src/sap/cux/home/utils/AppManager.js +2 -1
  252. package/src/sap/cux/home/utils/AppManager.js.map +1 -1
  253. package/src/sap/cux/home/utils/AppManager.ts +2 -2
  254. package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
  255. package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
  256. package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
  257. package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
  258. package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
  259. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +155 -151
  260. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
  261. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
  262. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
  263. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
  264. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
  265. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
  266. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
  267. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
  268. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
  269. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
  270. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
  271. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
  272. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
  273. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
  274. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
  275. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
  276. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
  277. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
  278. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
  279. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
  280. package/ui5.yaml +1 -0
  281. package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
  282. package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
  283. package/src/sap/cux/home/InsightsContainer.js +0 -459
  284. package/src/sap/cux/home/InsightsContainer.js.map +0 -1
  285. package/src/sap/cux/home/InsightsContainer.ts +0 -489
  286. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
  287. package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
  288. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
  289. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
  290. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
  291. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
  292. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
  293. 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"];
@@ -44,8 +45,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
44
45
  const addFESRId = ___utils_FESRUtil["addFESRId"];
45
46
  const addFESRNavigationSource = ___utils_FESRUtil["addFESRNavigationSource"];
46
47
  const FESRNavigationSource = ___utils_FESRUtil["FESRNavigationSource"];
47
- const createShowMoreActionButton = ___utils_InsightsUtils["createShowMoreActionButton"];
48
- const createShowMoreMenuItem = ___utils_InsightsUtils["createShowMoreMenuItem"];
48
+ const getAssociatedFullScreenButton = ___utils_InsightsUtils["getAssociatedFullScreenButton"];
49
49
  const getAssociatedFullScreenMenuItem = ___utils_InsightsUtils["getAssociatedFullScreenMenuItem"];
50
50
  const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
51
51
  const targetsAreEqual = ___utils_InsightsUtils["targetsAreEqual"];
@@ -54,21 +54,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
54
54
  var cardsMenuItems = /*#__PURE__*/function (cardsMenuItems) {
55
55
  cardsMenuItems["REFRESH"] = "cards-refresh";
56
56
  cardsMenuItems["EDIT_CARDS"] = "cards-editCards";
57
- cardsMenuItems["AI_INSIGHT_CARD"] = "cards-addAIInsightCard";
58
57
  return cardsMenuItems;
59
58
  }(cardsMenuItems || {});
60
- var cardsContainerMenuItems = /*#__PURE__*/function (cardsContainerMenuItems) {
61
- cardsContainerMenuItems["REFRESH"] = "container-cards-refresh";
62
- cardsContainerMenuItems["EDIT_CARDS"] = "container-cards-editCards";
63
- cardsContainerMenuItems["SHOW_MORE"] = "cardsContainerFullScreenMenuItem";
64
- cardsContainerMenuItems["AI_INSIGHT_CARD"] = "container-cards-addAIInsightCard";
65
- return cardsContainerMenuItems;
66
- }(cardsContainerMenuItems || {});
67
- var cardsContainerActionButtons = /*#__PURE__*/function (cardsContainerActionButtons) {
68
- cardsContainerActionButtons["SHOW_MORE"] = "cardsContanerFullScreenActionButton";
69
- return cardsContainerActionButtons;
70
- }(cardsContainerActionButtons || {});
71
- 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"];
72
68
  const Constants = {
73
69
  PLACEHOLDER_CARD_COUNT: 10,
74
70
  CARDS_GAP: 16
@@ -173,7 +169,6 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
173
169
  this.aVisibleCardInstances = [];
174
170
  this.cardsInViewport = [];
175
171
  this._appSwitched = false;
176
- this._headerVisible = false;
177
172
  },
178
173
  /**
179
174
  * Initializes the Cards Panel.
@@ -184,6 +179,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
184
179
  init: function _init() {
185
180
  const _this = this;
186
181
  BasePanel.prototype.init.call(this);
182
+ this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")}`);
187
183
  this.setProperty("key", "cards");
188
184
  this.setProperty("enableFullScreen", true);
189
185
  this.cardWidth = "19rem";
@@ -610,6 +606,23 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
610
606
  return Promise.reject(e);
611
607
  }
612
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
+ },
613
626
  /**
614
627
  * Rerenders the cards.
615
628
  *
@@ -625,8 +638,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
625
638
  try {
626
639
  const _temp1 = _catch(function () {
627
640
  // Enable placeholders after updating/rerendering cards
628
- const sDefaultAggreName = _this10._getCardContainer().getMetadata().getDefaultAggregationName();
629
- _this10._getCardContainer().removeAllAggregation(sDefaultAggreName);
641
+ const sDefaultAggreName = _this10._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
642
+ _this10._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
630
643
  _this10._showPlaceHolders();
631
644
  // Fetch Cards from insights service
632
645
  const preferedCardIDs = _this10.hasCustomSpace ? PREFERED_CARDS : [];
@@ -637,14 +650,27 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
637
650
  listBinding?.enableExtendedChangeDetection(true, "/cards", {});
638
651
  listBinding?.attachChange(function () {
639
652
  try {
640
- return Promise.resolve(_this10._cardsRendered ?? Promise.resolve()).then(function () {
653
+ function _temp11() {
641
654
  const visibleCards = userVisibleCardModel.getProperty("/cards");
642
655
  if (visibleCards.length !== _this10.aVisibleCardInstances.length && visibleCards.length > 0) {
656
+ // Show cards in UI
643
657
  _this10._showCards(visibleCards);
644
658
  } else if (!visibleCards.length) {
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
+ });
645
664
  _this10.fireHandleHidePanel();
665
+ _this10._addErrorPanel();
666
+ }
667
+ }
668
+ const _temp10 = function () {
669
+ if (_this10._cardsRendered) {
670
+ return Promise.resolve(_this10._cardsRendered).then(function () {});
646
671
  }
647
- });
672
+ }();
673
+ return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10));
648
674
  } catch (e) {
649
675
  return Promise.reject(e);
650
676
  }
@@ -667,6 +693,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
667
693
  // else show available visible cards
668
694
  return Promise.resolve(_this10.checkForRecommendedCards(aCards)).then(function () {});
669
695
  }
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
+ });
670
703
  const _temp6 = function () {
671
704
  if (showRecommendation === undefined) {
672
705
  return Promise.resolve(_this10._updateRecommendationStatus()).then(function () {});
@@ -675,6 +708,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
675
708
  return _temp6 && _temp6.then ? _temp6.then(_temp7) : _temp7(_temp6);
676
709
  } else {
677
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
+ }
678
719
  }
679
720
  }();
680
721
  if (_temp8 && _temp8.then) return _temp8.then(function () {});
@@ -685,6 +726,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
685
726
  });
686
727
  }, function (error) {
687
728
  _this10.fireHandleHidePanel();
729
+ _this10._addErrorPanel();
688
730
  _this10._cardsRendered = undefined;
689
731
  if (error instanceof Error) {
690
732
  Log.error(error.message);
@@ -703,6 +745,47 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
703
745
  return Promise.reject(e);
704
746
  }
705
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
+ },
706
789
  /**
707
790
  * Sets the new visible cards in the model and updates the UI.
708
791
  * @private
@@ -753,10 +836,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
753
836
  const uniqueManifestDetails = _this12.getUniqueManifestDetails(manifestIds);
754
837
  return Promise.resolve(_this12.regenerateCards(uniqueManifestDetails, manifestIds)).then(function (aUpdatedCards) {
755
838
  let _exit2 = false;
756
- function _temp11(_result2) {
839
+ function _temp13(_result2) {
757
840
  return _exit2 ? _result2 : Promise.resolve(_this12.setNewVisibleCards()).then(function () {});
758
841
  }
759
- const _temp10 = function () {
842
+ const _temp12 = function () {
760
843
  if (aUpdatedCards?.length) {
761
844
  // Update the model with updated cards
762
845
  return Promise.resolve(_this12.cardHelperInstance._updateCards(aUpdatedCards.map(oCard => oCard?.newManifest?.descriptorContent))).then(function () {});
@@ -764,7 +847,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
764
847
  _exit2 = true;
765
848
  }
766
849
  }();
767
- return _temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10);
850
+ return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
768
851
  });
769
852
  } else {
770
853
  _this12._showCards(aCards);
@@ -959,19 +1042,19 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
959
1042
  _getPersonalizationData: function _getPersonalizationData() {
960
1043
  try {
961
1044
  const _this15 = this;
962
- function _temp13() {
1045
+ function _temp15() {
963
1046
  return Promise.resolve(_this15.oPersonalizer.read()).then(function (oPersData) {
964
1047
  return oPersData || {};
965
1048
  });
966
1049
  }
967
- const _temp12 = function () {
1050
+ const _temp14 = function () {
968
1051
  if (!_this15.oPersonalizer) {
969
1052
  return Promise.resolve(_this15._getPersonalization()).then(function (_this15$_getPersonali) {
970
1053
  _this15.oPersonalizer = _this15$_getPersonali;
971
1054
  });
972
1055
  }
973
1056
  }();
974
- return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12));
1057
+ return Promise.resolve(_temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14));
975
1058
  } catch (e) {
976
1059
  return Promise.reject(e);
977
1060
  }
@@ -1052,12 +1135,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1052
1135
  rowSize: this.cardHeight,
1053
1136
  gap: "1rem"
1054
1137
  });
1055
- this.cardsContainer = new GridContainer(`${this.getId()}-insightsCardsFlexBox`, {
1138
+ this.cardsWrapperContainer = new GridContainer(`${this.getId()}-insightsCardsFlexBox`, {
1056
1139
  visible: "{= !${/isPhone}}"
1057
1140
  }).addStyleClass("sapUiSmallMarginTop").setLayout(this.cardsContainerSettings);
1058
- this.cardsContainer.setModel(this._controlModel);
1059
- this.addDragDropConfigTo(this.cardsContainer, oEvent => this._handleCardsDnd(oEvent));
1060
- return this.cardsContainer;
1141
+ this.cardsWrapperContainer.setModel(this._controlModel);
1142
+ this.addDragDropConfigTo(this.cardsWrapperContainer, oEvent => this._handleCardsDnd(oEvent));
1143
+ return this.cardsWrapperContainer;
1061
1144
  },
1062
1145
  /**
1063
1146
  * Creates the mobile card container.
@@ -1104,9 +1187,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1104
1187
  });
1105
1188
 
1106
1189
  // add HBox as item to GridList
1107
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1190
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1108
1191
  if (sDefaultAggreName) {
1109
- this._getCardContainer().addAggregation(sDefaultAggreName, oPreviewHBox);
1192
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewHBox);
1110
1193
  }
1111
1194
  },
1112
1195
  /**
@@ -1116,7 +1199,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1116
1199
  * @returns {number} The number of placeholder cards that should be displayed. Defaults to 1 if no valid count is determined.
1117
1200
  */
1118
1201
  _calculatePlaceholderCardCount: function _calculatePlaceholderCardCount() {
1119
- const layoutDomRef = this._getInsightsContainer()?._getLayout()?.getDomRef();
1202
+ const layoutDomRef = this._getCardsContainer()?._getLayout()?.getDomRef();
1120
1203
  let count = 0;
1121
1204
  if (layoutDomRef) {
1122
1205
  const sectionDomRef = layoutDomRef.childNodes[0];
@@ -1144,14 +1227,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1144
1227
  * @param {ICard[]} aCards - The cards to display.
1145
1228
  */
1146
1229
  _showCards: function _showCards(aCards) {
1147
- const panelName = this.getMetadata().getName();
1230
+ const parentContainer = this._getCardsContainer();
1231
+ parentContainer.removeContent(this._errorPanel);
1148
1232
  this.fireHandleUnhidePanel();
1149
- this._getInsightsContainer()?.updatePanelsItemCount(aCards.length, panelName);
1150
- if (this._headerVisible) {
1151
- this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${aCards.length})`);
1152
- }
1153
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1154
- this._getCardContainer().removeAllAggregation(sDefaultAggreName);
1233
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1234
+ this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
1155
1235
  this.aVisibleCardInstances = [];
1156
1236
  this.cardsInViewport = [];
1157
1237
 
@@ -1195,8 +1275,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1195
1275
  });
1196
1276
 
1197
1277
  // add VBox as item to GridList
1198
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1199
- this._getCardContainer().addAggregation(sDefaultAggreName, oPreviewVBox);
1278
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1279
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewVBox);
1200
1280
  });
1201
1281
  },
1202
1282
  /**
@@ -1206,34 +1286,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1206
1286
  * @param {Event} event - The event object.
1207
1287
  */
1208
1288
  _handleEditCards: function _handleEditCards(event) {
1209
- /* 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.
1210
1290
  _getLayout is available at Container Level*/
1211
1291
  let parent = event.getSource().getParent() || this;
1212
- if (parent instanceof CardsPanel) {
1292
+ if (parent instanceof CardsPanel || parent instanceof ErrorPanel) {
1213
1293
  parent = parent.getParent();
1214
1294
  }
1215
1295
  parent?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
1216
1296
  },
1217
- /**
1218
- * Hides the header of the cards panel.
1219
- *
1220
- * @private
1221
- */
1222
- handleHideHeader: function _handleHideHeader() {
1223
- this._headerVisible = false;
1224
- this.setProperty("title", "");
1225
- this._toggleHeaderActions(false);
1226
- },
1227
- /**
1228
- * Adds the header to the cards panel.
1229
- *
1230
- * @private
1231
- */
1232
- handleAddHeader: function _handleAddHeader() {
1233
- this._headerVisible = true;
1234
- this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${this._controlModel.getProperty("/userVisibleCards")?.length})`);
1235
- this._toggleHeaderActions(true);
1236
- },
1237
1297
  /**
1238
1298
  * Refreshes the cards.
1239
1299
  *
@@ -1259,14 +1319,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1259
1319
  iDropItemIndex = oDragItem.getParent().indexOfItem(oDropItem);
1260
1320
  _this19._cardsFlexWrapper?.setBusy(true);
1261
1321
  // take the moved item from dragIndex and add to dropindex
1262
- const _temp16 = _finallyRethrows(function () {
1322
+ const _temp18 = _finallyRethrows(function () {
1263
1323
  return _catch(function () {
1264
- function _temp15() {
1324
+ function _temp17() {
1265
1325
  setTimeout(() => {
1266
- focusDraggedItem(_this19._getCardContainer(), iDropItemIndex);
1326
+ focusDraggedItem(_this19._getCardWrapperContainer(), iDropItemIndex);
1267
1327
  }, 0);
1268
1328
  }
1269
- const _temp14 = function () {
1329
+ const _temp16 = function () {
1270
1330
  if (!_this19._controlModel.getProperty("/userAllCards").length) {
1271
1331
  return Promise.resolve(_this19.cardHelperInstance._getUserAllCardModel()).then(function (userAllCardsModel) {
1272
1332
  _this19._controlModel.setProperty("/userAllCards", userAllCardsModel.getProperty("/cards"));
@@ -1276,7 +1336,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1276
1336
  return Promise.resolve(_this19.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex)).then(function () {});
1277
1337
  }
1278
1338
  }();
1279
- return _temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14);
1339
+ return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
1280
1340
  }, function (error) {
1281
1341
  if (error instanceof Error) {
1282
1342
  Log.error(error.message);
@@ -1287,7 +1347,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1287
1347
  if (_wasThrown) throw _result3;
1288
1348
  return _result3;
1289
1349
  });
1290
- return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(function () {}) : void 0);
1350
+ return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(function () {}) : void 0);
1291
1351
  } catch (e) {
1292
1352
  return Promise.reject(e);
1293
1353
  }
@@ -1318,7 +1378,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1318
1378
  } else if (sInsertPosition === "After" && iUpdatedDragItemIndex > iUpdatedDropItemIndex) {
1319
1379
  iUpdatedDropItemIndex++;
1320
1380
  }
1321
- const _temp17 = function () {
1381
+ const _temp19 = function () {
1322
1382
  if (iUpdatedDragItemIndex !== iUpdatedDropItemIndex) {
1323
1383
  const aUpdatedCards = _this20.cardHelperInstance.handleDndCardsRanking(iUpdatedDragItemIndex, iUpdatedDropItemIndex, aUserAllCards);
1324
1384
  return Promise.resolve(_this20.cardHelperInstance._updateMultipleCards(aUpdatedCards, "PUT")).then(function () {
@@ -1329,7 +1389,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1329
1389
  });
1330
1390
  }
1331
1391
  }();
1332
- return Promise.resolve(_temp17 && _temp17.then ? _temp17.then(function () {}) : void 0);
1392
+ return Promise.resolve(_temp19 && _temp19.then ? _temp19.then(function () {}) : void 0);
1333
1393
  } catch (e) {
1334
1394
  return Promise.reject(e);
1335
1395
  }
@@ -1386,7 +1446,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1386
1446
  * @returns {number} - The number of visible cards.
1387
1447
  */
1388
1448
  _calculateVisibleCardCount: function _calculateVisibleCardCount() {
1389
- const layout = this._getInsightsContainer()._getLayout();
1449
+ const layout = this._getCardsContainer()._getLayout();
1390
1450
  const pageDomRef = layout.getDomRef();
1391
1451
  const deviceType = this.getDeviceType();
1392
1452
  let count = 1;
@@ -1422,7 +1482,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1422
1482
  * @override
1423
1483
  */
1424
1484
  _adjustLayout: function _adjustLayout() {
1425
- const layout = this._getInsightsContainer()?._getLayout();
1485
+ const layout = this._getCardsContainer()?._getLayout();
1426
1486
  let cardWidth = this.cardWidth;
1427
1487
  const isMobileDevice = this.getDeviceType() === DeviceType.Mobile;
1428
1488
  if (layout && this.aVisibleCardInstances?.length > 0) {
@@ -1439,8 +1499,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1439
1499
  // update cards in viewport
1440
1500
  if (cardCount !== this.cardsInViewport.length) {
1441
1501
  this.cardsInViewport = this.aVisibleCardInstances.slice(0, cardCount);
1442
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1443
- this._getCardContainer().removeAllAggregation(sDefaultAggreName);
1502
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1503
+ this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
1444
1504
  this.cardsInViewport.forEach(card => {
1445
1505
  const manifest = card.getManifest();
1446
1506
  const sType = manifest["sap.card"]?.type;
@@ -1463,22 +1523,21 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1463
1523
  if (overlayHBoxWrapper) {
1464
1524
  cardWrapper.addItem(overlayHBoxWrapper);
1465
1525
  }
1466
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1467
- this._getCardContainer().addAggregation(sDefaultAggreName, cardWrapper);
1526
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1527
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, cardWrapper);
1468
1528
  });
1469
1529
  this.shareCardsInViewport();
1470
1530
  }
1471
-
1472
- // show/hide Full Screen Button if available
1531
+ // show/hide full screen button
1473
1532
  const showFullScreenButton = isElementExpanded || this.aVisibleCardInstances.length > cardCount;
1474
- if (this._headerVisible) {
1475
- this._getInsightsContainer()?.toggleFullScreenElements(this, showFullScreenButton);
1476
- } else {
1477
- const fullScreenButton = getAssociatedFullScreenMenuItem(this);
1478
- const fullScreenText = fullScreenButton?.getTitle();
1479
- this._getInsightsContainer()?.updateMenuItem(this._controlMap.get(`${this.getId()}-${cardsContainerMenuItems.SHOW_MORE}`), showFullScreenButton, fullScreenText);
1480
- this._getInsightsContainer()?.updateActionButton(this._controlMap.get(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`), showFullScreenButton, fullScreenText);
1481
- }
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);
1482
1541
  } else {
1483
1542
  this.cardWidth = this.getDeviceType() === DeviceType.Mobile ? "19rem" : "22rem";
1484
1543
  }
@@ -1489,50 +1548,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1489
1548
  this.cardsContainerSettings?.setColumnSize(this.cardWidth);
1490
1549
  }
1491
1550
  },
1492
- /**
1493
- * Retrieves the menu items for the container.
1494
- *
1495
- * @private
1496
- * @returns {MenuItem[]} An array of MenuItem instances.
1497
- */
1498
- getContainerMenuItems: function _getContainerMenuItems() {
1499
- if (!this._containerMenuItems) {
1500
- const containerRefreshMenuItem = this._createRefreshMenuItem(cardsContainerMenuItems.REFRESH, "containerCardsRefresh");
1501
- const containerEditCardsMenuItem = this._createEditCardsMenuItem(cardsContainerMenuItems.EDIT_CARDS, "containerManageCards");
1502
- const containerShowMoreMenuItem = createShowMoreMenuItem(this, cardsContainerMenuItems.SHOW_MORE, "containerCardsShowMore");
1503
- this._controlMap.set(`${this.getId()}-${cardsContainerMenuItems.SHOW_MORE}`, containerShowMoreMenuItem);
1504
- this._containerMenuItems = [containerRefreshMenuItem, containerEditCardsMenuItem, containerShowMoreMenuItem];
1505
- }
1506
- return this._containerMenuItems;
1507
- },
1508
- /**
1509
- * Retrieves the action buttons for the container.
1510
- *
1511
- * @private
1512
- * @returns {Button[]} An array of Button instances.
1513
- */
1514
- getContainerActionButtons: function _getContainerActionButtons() {
1515
- if (!this._containerActionButtons) {
1516
- this._containerActionButtons = [];
1517
- const actionButton = createShowMoreActionButton(this, cardsContainerActionButtons.SHOW_MORE, "containerCardsShowMore");
1518
- if (actionButton) {
1519
- this._controlMap.set(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`, actionButton);
1520
- this._containerActionButtons.push(actionButton);
1521
- }
1522
- }
1523
- return this._containerActionButtons;
1524
- },
1525
1551
  /**
1526
1552
  * Retrieves the insights container.
1527
1553
  *
1528
1554
  * @private
1529
- * @returns {InsightsContainer} - The insights container.
1555
+ * @returns {CardsContainer} - The cards container.
1530
1556
  */
1531
- _getInsightsContainer: function _getInsightsContainer() {
1532
- if (!this.insightsContainer) {
1533
- this.insightsContainer = this.getParent();
1557
+ _getCardsContainer: function _getCardsContainer() {
1558
+ if (!this.cardsContainer) {
1559
+ this.cardsContainer = this.getParent();
1534
1560
  }
1535
- return this.insightsContainer;
1561
+ return this.cardsContainer;
1536
1562
  },
1537
1563
  /**
1538
1564
  * Creates the refresh menu item.
@@ -1576,18 +1602,6 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1576
1602
  }
1577
1603
  return menuItem;
1578
1604
  },
1579
- /**
1580
- * Toggles the visibility of the header actions.
1581
- *
1582
- * @param {boolean} bShow - Whether to show or hide the header actions.
1583
- * @private
1584
- */
1585
- _toggleHeaderActions: function _toggleHeaderActions(bShow) {
1586
- this.getAggregation("menuItems")?.forEach(menuItem => {
1587
- this._getInsightsContainer()?.toggleMenuListItem(menuItem, bShow);
1588
- });
1589
- this.getAggregation("actionButtons")?.forEach(actionButton => this._getInsightsContainer()?.toggleActionButton(actionButton, bShow));
1590
- },
1591
1605
  /**
1592
1606
  * Retrieves the card container based on the device type.
1593
1607
  *
@@ -1595,23 +1609,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1595
1609
  * @returns {GridContainer | HeaderContainer} - The card container.
1596
1610
  *
1597
1611
  */
1598
- _getCardContainer: function _getCardContainer() {
1612
+ _getCardWrapperContainer: function _getCardWrapperContainer() {
1599
1613
  if (this.getDeviceType() === DeviceType.Mobile) {
1600
1614
  return this.cardsMobileContainer;
1601
1615
  }
1602
- return this.cardsContainer;
1603
- },
1604
- /**
1605
- * Sorts the menu items based on the provided order.
1606
- *
1607
- * @private
1608
- * @param {string[]} menuItems - The order of the menu items.
1609
- */
1610
- _sortMenuItems: function _sortMenuItems(menuItems) {
1611
- const panelMenuItems = this.getAggregation("menuItems");
1612
- let sortedMenuItems = sortMenuItems(menuItems, panelMenuItems);
1613
- this.removeAllAggregation("menuItems");
1614
- sortedMenuItems?.forEach(menuItem => this.addAggregation("menuItems", menuItem));
1616
+ return this.cardsWrapperContainer;
1615
1617
  },
1616
1618
  /**
1617
1619
  * Shares the cards that are currently in the viewport by firing the "visibleCardsUpdated" event.
@@ -1640,8 +1642,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
1640
1642
  }
1641
1643
  });
1642
1644
  CardsPanel.cardsMenuItems = cardsMenuItems;
1643
- CardsPanel.cardsContainerMenuItems = cardsContainerMenuItems;
1644
- CardsPanel.cardsContainerActionButtons = cardsContainerActionButtons;
1645
+ CardsPanel.cardsActionButtons = cardsActionButtons;
1646
+ CardsPanel.errorPanelMenuItems = errorPanelMenuItems;
1645
1647
  return CardsPanel;
1646
1648
  });
1647
1649
  //# sourceMappingURL=CardsPanel.js.map