@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
@@ -27,9 +27,11 @@ import Container from "sap/ushell/Container";
27
27
  import S4MyHome from "sap/ushell/api/S4MyHome";
28
28
  import { Intent } from "sap/ushell/services/AppLifeCycle";
29
29
  import Navigation from "sap/ushell/services/Navigation";
30
+ import BaseContainer from "./BaseContainer";
30
31
  import BasePanel from "./BasePanel";
32
+ import CardsContainer from "./CardsContainer";
31
33
  import { $CardsPanelSettings } from "./CardsPanel";
32
- import InsightsContainer from "./InsightsContainer";
34
+ import ErrorPanel from "./ErrorPanel";
33
35
  import MenuItem from "./MenuItem";
34
36
  import {
35
37
  ICard,
@@ -51,41 +53,25 @@ import { recycleId } from "./utils/DataFormatUtils";
51
53
  import { calculateCardWidth, DeviceType, fetchElementProperties } from "./utils/Device";
52
54
  import { focusDraggedItem } from "./utils/DragDropUtils";
53
55
  import { addFESRId, addFESRNavigationSource, FESRNavigationSource } from "./utils/FESRUtil";
54
- import {
55
- createShowMoreActionButton,
56
- createShowMoreMenuItem,
57
- getAssociatedFullScreenMenuItem,
58
- sortMenuItems,
59
- targetsAreEqual
60
- } from "./utils/InsightsUtils";
56
+ import { getAssociatedFullScreenButton, getAssociatedFullScreenMenuItem, sortMenuItems, targetsAreEqual } from "./utils/InsightsUtils";
61
57
  import PageManager from "./utils/PageManager";
62
58
  import PersonalisationUtils from "./utils/PersonalisationUtils";
63
59
  import UShellPersonalizer, { IPersonalizationData } from "./utils/UshellPersonalizer";
64
60
 
65
61
  export enum cardsMenuItems {
66
62
  REFRESH = "cards-refresh",
67
- EDIT_CARDS = "cards-editCards",
68
- AI_INSIGHT_CARD = "cards-addAIInsightCard"
63
+ EDIT_CARDS = "cards-editCards"
69
64
  }
70
65
 
71
- export enum cardsContainerMenuItems {
72
- REFRESH = "container-cards-refresh",
73
- EDIT_CARDS = "container-cards-editCards",
74
- SHOW_MORE = "cardsContainerFullScreenMenuItem",
75
- AI_INSIGHT_CARD = "container-cards-addAIInsightCard"
66
+ export enum cardsActionButtons {
67
+ SHOW_MORE = "fullScreen"
76
68
  }
77
69
 
78
- export enum cardsContainerActionButtons {
79
- SHOW_MORE = "cardsContanerFullScreenActionButton"
70
+ export enum errorPanelMenuItems {
71
+ EDIT_CARDS = "cards-errorPanel-editCards"
80
72
  }
81
- const sortedMenuItems: (cardsMenuItems | string)[] = [
82
- cardsMenuItems.REFRESH,
83
- cardsMenuItems.EDIT_CARDS,
84
- cardsMenuItems.AI_INSIGHT_CARD,
85
- "showMore",
86
- "settings"
87
- ];
88
73
 
74
+ const sortedMenuItems: (cardsMenuItems | string)[] = [cardsMenuItems.REFRESH, cardsMenuItems.EDIT_CARDS, "showMore", "settings"];
89
75
  interface IcardActionEvent {
90
76
  getParameter(sParam: string): unknown;
91
77
  preventDefault(): void;
@@ -163,7 +149,7 @@ export default class CardsPanel extends BasePanel {
163
149
  };
164
150
  private cardHelperInstance!: ICardHelperInstance;
165
151
  private _cardsFlexWrapper!: VBox;
166
- private cardsContainer!: GridContainer;
152
+ private cardsWrapperContainer!: GridContainer;
167
153
  private cardsMobileContainer!: HeaderContainer;
168
154
  private aVisibleCardInstances: Card[] = [];
169
155
  private _oData!: Record<string, unknown>;
@@ -176,14 +162,12 @@ export default class CardsPanel extends BasePanel {
176
162
  private cardsInViewport: Card[] = [];
177
163
  private oEventBus!: EventBus;
178
164
  private _appSwitched: boolean = false;
179
- private _containerMenuItems!: MenuItem[];
180
- private _containerActionButtons!: Button[];
181
- private insightsContainer!: InsightsContainer;
182
- private _headerVisible: boolean = false;
165
+ private cardsContainer!: CardsContainer;
183
166
  private _controlMap!: Map<string, UI5Element>;
184
167
  private _cardsRendered!: Promise<void> | undefined;
185
168
  private pageManagerInstance!: PageManager;
186
169
  private hasCustomSpace!: boolean;
170
+ private _errorPanel!: ErrorPanel;
187
171
 
188
172
  constructor(idOrSettings?: string | $CardsPanelSettings);
189
173
  constructor(id?: string, settings?: $CardsPanelSettings);
@@ -205,6 +189,7 @@ export default class CardsPanel extends BasePanel {
205
189
  */
206
190
  public init() {
207
191
  super.init();
192
+ this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")}`);
208
193
  this.setProperty("key", "cards");
209
194
  this.setProperty("enableFullScreen", true);
210
195
  this.cardWidth = "19rem";
@@ -383,9 +368,7 @@ export default class CardsPanel extends BasePanel {
383
368
  icon: "sap-icon://filter",
384
369
  action: (oCard: Card) => {
385
370
  const cardId = (oCard.getManifestEntry("sap.app") as ISapApp).id;
386
- (this.getParent() as InsightsContainer)
387
- ?._getLayout()
388
- .openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS, { cardId });
371
+ (this.getParent() as CardsContainer)?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS, { cardId });
389
372
  },
390
373
  visible: async (oCard: Card) => {
391
374
  const oEntry = await this._getManifestEntryFromCard(oCard, "sap.insights");
@@ -591,6 +574,30 @@ export default class CardsPanel extends BasePanel {
591
574
  this.fireEvent("loaded");
592
575
  }
593
576
 
577
+ /**
578
+ * Sorts the menu items based on the provided order.
579
+ *
580
+ * @private
581
+ * @param {string[]} menuItems - The order of the menu items.
582
+ */
583
+ private _sortMenuItems(menuItems: string[]) {
584
+ const panelMenuItems = this.getAggregation("menuItems") as MenuItem[];
585
+ let sortedMenuItems = sortMenuItems(menuItems, panelMenuItems);
586
+ this.removeAllAggregation("menuItems");
587
+ sortedMenuItems?.forEach((menuItem) => this.addAggregation("menuItems", menuItem));
588
+ }
589
+
590
+ private _setMenuItemsVisibility(menuItem: MenuItem, bVisible: boolean) {
591
+ if (
592
+ menuItem &&
593
+ (menuItem.getId().includes(cardsMenuItems.REFRESH) ||
594
+ menuItem.getId().includes(cardsMenuItems.EDIT_CARDS) ||
595
+ menuItem.getId().includes("showMore"))
596
+ ) {
597
+ menuItem.setVisible(bVisible);
598
+ }
599
+ }
600
+
594
601
  /**
595
602
  * Rerenders the cards.
596
603
  *
@@ -603,9 +610,9 @@ export default class CardsPanel extends BasePanel {
603
610
  void (async () => {
604
611
  try {
605
612
  // Enable placeholders after updating/rerendering cards
606
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
613
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
607
614
 
608
- this._getCardContainer().removeAllAggregation(sDefaultAggreName);
615
+ this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
609
616
  this._showPlaceHolders();
610
617
  // Fetch Cards from insights service
611
618
  const preferedCardIDs = this.hasCustomSpace ? PREFERED_CARDS : [];
@@ -615,12 +622,21 @@ export default class CardsPanel extends BasePanel {
615
622
  if (!listBinding.hasListeners("change")) {
616
623
  listBinding?.enableExtendedChangeDetection(true, "/cards", {});
617
624
  listBinding?.attachChange(async () => {
618
- await (this._cardsRendered ?? Promise.resolve());
625
+ if (this._cardsRendered) {
626
+ await this._cardsRendered;
627
+ }
619
628
  const visibleCards = userVisibleCardModel.getProperty("/cards") as ICard[];
620
629
  if (visibleCards.length !== this.aVisibleCardInstances.length && visibleCards.length > 0) {
630
+ // Show cards in UI
621
631
  this._showCards(visibleCards);
622
632
  } else if (!visibleCards.length) {
633
+ //if there are no tiles, hide the panel and show the error panel
634
+ this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")}`);
635
+ this.getMenuItems().forEach((item) => {
636
+ this._setMenuItemsVisibility(item, false);
637
+ });
623
638
  this.fireHandleHidePanel();
639
+ this._addErrorPanel();
624
640
  }
625
641
  });
626
642
  }
@@ -630,6 +646,13 @@ export default class CardsPanel extends BasePanel {
630
646
  if (aCards.length === 0 && showRecommendation === undefined && !skipRecommendation) {
631
647
  await this._getRecommendationCards();
632
648
  } else if (aCards.length) {
649
+ this._errorPanel?.setVisible(false);
650
+ //Update the panel title with the number of cards
651
+ this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${aCards.length})`);
652
+ //if the panel has been loaded and has cards, update the visibility of header elements of the panel
653
+ this.getMenuItems().forEach((item) => {
654
+ this._setMenuItemsVisibility(item, true);
655
+ });
633
656
  if (showRecommendation === undefined) {
634
657
  await this._updateRecommendationStatus();
635
658
  }
@@ -638,11 +661,20 @@ export default class CardsPanel extends BasePanel {
638
661
  await this.checkForRecommendedCards(aCards);
639
662
  } else {
640
663
  this.fireHandleHidePanel();
664
+ this._addErrorPanel();
665
+ const layout = this._getCardsContainer()?._getLayout();
666
+ if (layout.getProperty("expanded")) {
667
+ this.cardsContainer.addContent(this);
668
+ layout?.toggleFullScreen(this);
669
+ //remove the cards panel from the cards container
670
+ this.cardsContainer.removeContent(this);
671
+ }
641
672
  }
642
673
  this._cardsRendered = undefined;
643
674
  resolve();
644
675
  } catch (error) {
645
676
  this.fireHandleHidePanel();
677
+ this._addErrorPanel();
646
678
  this._cardsRendered = undefined;
647
679
  if (error instanceof Error) {
648
680
  Log.error(error.message);
@@ -654,6 +686,52 @@ export default class CardsPanel extends BasePanel {
654
686
  }
655
687
  return this._cardsRendered;
656
688
  }
689
+
690
+ /**
691
+ * Adds an error panel when no cards are available.
692
+ *
693
+ * @private
694
+ */
695
+ private _addErrorPanel() {
696
+ const parentContainer = this._getCardsContainer() as BaseContainer;
697
+ //set the visibility of cards panel to false
698
+ this.setVisible(false);
699
+ if (!this._errorPanel) {
700
+ this._errorPanel = new ErrorPanel(`${this.getId()}-errorCardsPanel`, {
701
+ additionalData: [
702
+ new Button(`${this.getId()}-addInsightsCardsBtn`, {
703
+ text: this._i18nBundle.getText("addInsightsCardBtn"),
704
+ type: "Emphasized",
705
+ press: () => {
706
+ (this._getCardsContainer() as BaseContainer)
707
+ ?._getLayout()
708
+ .openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
709
+ }
710
+ })
711
+ ],
712
+ messageTitle: this._i18nBundle.getText("noAppsTitle"),
713
+ messageDescription: this._i18nBundle.getText("noInsightsCardsMsg")
714
+ });
715
+ this._errorPanel.getData();
716
+ //Add the menu items and action buttons to the error panel
717
+ const editCardsMenuItem = this._createEditCardsMenuItem(errorPanelMenuItems.EDIT_CARDS, "manageCards");
718
+ this._errorPanel.addAggregation("menuItems", editCardsMenuItem);
719
+ this._sortMenuItems(sortedMenuItems);
720
+ this._errorPanel.setProperty("enableSettings", true);
721
+ }
722
+ //Add the title to the error panel
723
+ this._errorPanel.setProperty("title", this._i18nBundle?.getText("insightsCards"));
724
+ this._errorPanel.setVisible(true);
725
+ parentContainer.addAggregation("content", this._errorPanel);
726
+ //set the visibility of header elements of the error panel
727
+ this._errorPanel.getMenuItems().forEach((item) => {
728
+ if (item.getId().includes(errorPanelMenuItems.EDIT_CARDS) || item.getId().includes("settings")) {
729
+ item.setVisible(true);
730
+ } else {
731
+ item.setVisible(false);
732
+ }
733
+ });
734
+ }
657
735
  /**
658
736
  * Sets the new visible cards in the model and updates the UI.
659
737
  * @private
@@ -965,15 +1043,15 @@ export default class CardsPanel extends BasePanel {
965
1043
  rowSize: this.cardHeight,
966
1044
  gap: "1rem"
967
1045
  });
968
- this.cardsContainer = new GridContainer(`${this.getId()}-insightsCardsFlexBox`, {
1046
+ this.cardsWrapperContainer = new GridContainer(`${this.getId()}-insightsCardsFlexBox`, {
969
1047
  visible: "{= !${/isPhone}}"
970
1048
  })
971
1049
  .addStyleClass("sapUiSmallMarginTop")
972
1050
  .setLayout(this.cardsContainerSettings);
973
- this.cardsContainer.setModel(this._controlModel);
974
- this.addDragDropConfigTo(this.cardsContainer, (oEvent) => this._handleCardsDnd(oEvent));
1051
+ this.cardsWrapperContainer.setModel(this._controlModel);
1052
+ this.addDragDropConfigTo(this.cardsWrapperContainer, (oEvent) => this._handleCardsDnd(oEvent));
975
1053
 
976
- return this.cardsContainer;
1054
+ return this.cardsWrapperContainer;
977
1055
  }
978
1056
 
979
1057
  /**
@@ -1023,9 +1101,9 @@ export default class CardsPanel extends BasePanel {
1023
1101
  });
1024
1102
 
1025
1103
  // add HBox as item to GridList
1026
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1104
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1027
1105
  if (sDefaultAggreName) {
1028
- this._getCardContainer().addAggregation(sDefaultAggreName, oPreviewHBox);
1106
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewHBox);
1029
1107
  }
1030
1108
  }
1031
1109
 
@@ -1036,7 +1114,7 @@ export default class CardsPanel extends BasePanel {
1036
1114
  * @returns {number} The number of placeholder cards that should be displayed. Defaults to 1 if no valid count is determined.
1037
1115
  */
1038
1116
  private _calculatePlaceholderCardCount(): number {
1039
- const layoutDomRef = this._getInsightsContainer()?._getLayout()?.getDomRef();
1117
+ const layoutDomRef = this._getCardsContainer()?._getLayout()?.getDomRef();
1040
1118
  let count = 0;
1041
1119
  if (layoutDomRef) {
1042
1120
  const sectionDomRef = layoutDomRef.childNodes[0] as Element;
@@ -1069,14 +1147,11 @@ export default class CardsPanel extends BasePanel {
1069
1147
  * @param {ICard[]} aCards - The cards to display.
1070
1148
  */
1071
1149
  private _showCards(aCards: ICard[]) {
1072
- const panelName = this.getMetadata().getName();
1150
+ const parentContainer = this._getCardsContainer() as BaseContainer;
1151
+ parentContainer.removeContent(this._errorPanel);
1073
1152
  this.fireHandleUnhidePanel();
1074
- this._getInsightsContainer()?.updatePanelsItemCount(aCards.length, panelName);
1075
- if (this._headerVisible) {
1076
- this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${aCards.length})`);
1077
- }
1078
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1079
- this._getCardContainer().removeAllAggregation(sDefaultAggreName);
1153
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1154
+ this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
1080
1155
  this.aVisibleCardInstances = [];
1081
1156
  this.cardsInViewport = [];
1082
1157
 
@@ -1124,8 +1199,8 @@ export default class CardsPanel extends BasePanel {
1124
1199
  });
1125
1200
 
1126
1201
  // add VBox as item to GridList
1127
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1128
- this._getCardContainer().addAggregation(sDefaultAggreName, oPreviewVBox);
1202
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1203
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewVBox);
1129
1204
  });
1130
1205
  }
1131
1206
 
@@ -1136,38 +1211,13 @@ export default class CardsPanel extends BasePanel {
1136
1211
  * @param {Event} event - The event object.
1137
1212
  */
1138
1213
  private _handleEditCards(event: Event) {
1139
- /* If called from Panel Header event.source() will return TilesPanel, if called from Insights Container event.source() will return InsightsContainer.
1214
+ /* If called from Panel Header event.source() will return TilesPanel, if called from cards Container event.source() will return cardsContainer.
1140
1215
  _getLayout is available at Container Level*/
1141
1216
  let parent: ManagedObject = event.getSource<CardsPanel>().getParent() || this;
1142
- if (parent instanceof CardsPanel) {
1217
+ if (parent instanceof CardsPanel || parent instanceof ErrorPanel) {
1143
1218
  parent = parent.getParent() as ManagedObject;
1144
1219
  }
1145
- (parent as InsightsContainer)?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
1146
- }
1147
-
1148
- /**
1149
- * Hides the header of the cards panel.
1150
- *
1151
- * @private
1152
- */
1153
- public handleHideHeader() {
1154
- this._headerVisible = false;
1155
- this.setProperty("title", "");
1156
- this._toggleHeaderActions(false);
1157
- }
1158
-
1159
- /**
1160
- * Adds the header to the cards panel.
1161
- *
1162
- * @private
1163
- */
1164
- public handleAddHeader() {
1165
- this._headerVisible = true;
1166
- this.setProperty(
1167
- "title",
1168
- `${this._i18nBundle?.getText("insightsCards")} (${(this._controlModel.getProperty("/userVisibleCards") as ICard[])?.length})`
1169
- );
1170
- this._toggleHeaderActions(true);
1220
+ (parent as CardsContainer)?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
1171
1221
  }
1172
1222
 
1173
1223
  /**
@@ -1204,7 +1254,7 @@ export default class CardsPanel extends BasePanel {
1204
1254
  await this.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex);
1205
1255
  }
1206
1256
  setTimeout(() => {
1207
- focusDraggedItem(this._getCardContainer(), iDropItemIndex);
1257
+ focusDraggedItem(this._getCardWrapperContainer(), iDropItemIndex);
1208
1258
  }, 0);
1209
1259
  } catch (error) {
1210
1260
  if (error instanceof Error) {
@@ -1310,7 +1360,7 @@ export default class CardsPanel extends BasePanel {
1310
1360
  * @returns {number} - The number of visible cards.
1311
1361
  */
1312
1362
  private _calculateVisibleCardCount() {
1313
- const layout = this._getInsightsContainer()._getLayout();
1363
+ const layout = this._getCardsContainer()._getLayout();
1314
1364
  const pageDomRef = layout.getDomRef();
1315
1365
  const deviceType = this.getDeviceType();
1316
1366
  let count = 1;
@@ -1344,7 +1394,7 @@ export default class CardsPanel extends BasePanel {
1344
1394
  * @override
1345
1395
  */
1346
1396
  public _adjustLayout() {
1347
- const layout = this._getInsightsContainer()?._getLayout();
1397
+ const layout = this._getCardsContainer()?._getLayout();
1348
1398
  let cardWidth = this.cardWidth;
1349
1399
  const isMobileDevice = this.getDeviceType() === DeviceType.Mobile;
1350
1400
 
@@ -1363,8 +1413,8 @@ export default class CardsPanel extends BasePanel {
1363
1413
  if (cardCount !== this.cardsInViewport.length) {
1364
1414
  this.cardsInViewport = this.aVisibleCardInstances.slice(0, cardCount);
1365
1415
 
1366
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1367
- this._getCardContainer().removeAllAggregation(sDefaultAggreName);
1416
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1417
+ this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
1368
1418
  this.cardsInViewport.forEach((card) => {
1369
1419
  const manifest = card.getManifest() as ICardManifest;
1370
1420
  const sType = manifest["sap.card"]?.type;
@@ -1387,31 +1437,22 @@ export default class CardsPanel extends BasePanel {
1387
1437
  if (overlayHBoxWrapper) {
1388
1438
  cardWrapper.addItem(overlayHBoxWrapper);
1389
1439
  }
1390
- const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
1391
- this._getCardContainer().addAggregation(sDefaultAggreName, cardWrapper);
1440
+ const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
1441
+ this._getCardWrapperContainer().addAggregation(sDefaultAggreName, cardWrapper);
1392
1442
  });
1393
1443
 
1394
1444
  this.shareCardsInViewport();
1395
1445
  }
1396
-
1397
- // show/hide Full Screen Button if available
1446
+ // show/hide full screen button
1398
1447
  const showFullScreenButton = isElementExpanded || this.aVisibleCardInstances.length > cardCount;
1399
- if (this._headerVisible) {
1400
- this._getInsightsContainer()?.toggleFullScreenElements(this, showFullScreenButton);
1401
- } else {
1402
- const fullScreenButton = getAssociatedFullScreenMenuItem(this);
1403
- const fullScreenText = fullScreenButton?.getTitle();
1404
- this._getInsightsContainer()?.updateMenuItem(
1405
- this._controlMap.get(`${this.getId()}-${cardsContainerMenuItems.SHOW_MORE}`) as MenuItem,
1406
- showFullScreenButton,
1407
- fullScreenText
1408
- );
1409
- this._getInsightsContainer()?.updateActionButton(
1410
- this._controlMap.get(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`) as Button,
1411
- showFullScreenButton,
1412
- fullScreenText
1413
- );
1414
- }
1448
+ const fullScreenButton = getAssociatedFullScreenMenuItem(this);
1449
+ const fullScreenText = fullScreenButton.getTitle();
1450
+ //update the panel menu-item show more button and show more action button in panel header
1451
+ fullScreenButton?.setVisible(showFullScreenButton);
1452
+ fullScreenButton?.setTitle(fullScreenText);
1453
+ const fullScreenActionButton = getAssociatedFullScreenButton(this);
1454
+ fullScreenActionButton?.setVisible(showFullScreenButton);
1455
+ fullScreenActionButton?.setText(fullScreenText);
1415
1456
  } else {
1416
1457
  this.cardWidth = this.getDeviceType() === DeviceType.Mobile ? "19rem" : "22rem";
1417
1458
  }
@@ -1423,53 +1464,17 @@ export default class CardsPanel extends BasePanel {
1423
1464
  }
1424
1465
  }
1425
1466
 
1426
- /**
1427
- * Retrieves the menu items for the container.
1428
- *
1429
- * @private
1430
- * @returns {MenuItem[]} An array of MenuItem instances.
1431
- */
1432
- public getContainerMenuItems(): MenuItem[] {
1433
- if (!this._containerMenuItems) {
1434
- const containerRefreshMenuItem = this._createRefreshMenuItem(cardsContainerMenuItems.REFRESH, "containerCardsRefresh");
1435
- const containerEditCardsMenuItem = this._createEditCardsMenuItem(cardsContainerMenuItems.EDIT_CARDS, "containerManageCards");
1436
- const containerShowMoreMenuItem = createShowMoreMenuItem(this, cardsContainerMenuItems.SHOW_MORE, "containerCardsShowMore");
1437
- this._controlMap.set(`${this.getId()}-${cardsContainerMenuItems.SHOW_MORE}`, containerShowMoreMenuItem);
1438
- this._containerMenuItems = [containerRefreshMenuItem, containerEditCardsMenuItem, containerShowMoreMenuItem];
1439
- }
1440
- return this._containerMenuItems;
1441
- }
1442
-
1443
- /**
1444
- * Retrieves the action buttons for the container.
1445
- *
1446
- * @private
1447
- * @returns {Button[]} An array of Button instances.
1448
- */
1449
- public getContainerActionButtons(): Button[] {
1450
- if (!this._containerActionButtons) {
1451
- this._containerActionButtons = [];
1452
- const actionButton = createShowMoreActionButton(this, cardsContainerActionButtons.SHOW_MORE, "containerCardsShowMore");
1453
- if (actionButton) {
1454
- this._controlMap.set(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`, actionButton);
1455
- this._containerActionButtons.push(actionButton);
1456
- }
1457
- }
1458
-
1459
- return this._containerActionButtons;
1460
- }
1461
-
1462
1467
  /**
1463
1468
  * Retrieves the insights container.
1464
1469
  *
1465
1470
  * @private
1466
- * @returns {InsightsContainer} - The insights container.
1471
+ * @returns {CardsContainer} - The cards container.
1467
1472
  */
1468
- private _getInsightsContainer(): InsightsContainer {
1469
- if (!this.insightsContainer) {
1470
- this.insightsContainer = this.getParent() as InsightsContainer;
1473
+ private _getCardsContainer(): CardsContainer {
1474
+ if (!this.cardsContainer) {
1475
+ this.cardsContainer = this.getParent() as CardsContainer;
1471
1476
  }
1472
- return this.insightsContainer;
1477
+ return this.cardsContainer;
1473
1478
  }
1474
1479
 
1475
1480
  /**
@@ -1517,21 +1522,6 @@ export default class CardsPanel extends BasePanel {
1517
1522
  return menuItem;
1518
1523
  }
1519
1524
 
1520
- /**
1521
- * Toggles the visibility of the header actions.
1522
- *
1523
- * @param {boolean} bShow - Whether to show or hide the header actions.
1524
- * @private
1525
- */
1526
- private _toggleHeaderActions(bShow: boolean) {
1527
- (this.getAggregation("menuItems") as MenuItem[])?.forEach((menuItem) => {
1528
- this._getInsightsContainer()?.toggleMenuListItem(menuItem, bShow);
1529
- });
1530
- (this.getAggregation("actionButtons") as Button[])?.forEach((actionButton) =>
1531
- this._getInsightsContainer()?.toggleActionButton(actionButton, bShow)
1532
- );
1533
- }
1534
-
1535
1525
  /**
1536
1526
  * Retrieves the card container based on the device type.
1537
1527
  *
@@ -1539,24 +1529,11 @@ export default class CardsPanel extends BasePanel {
1539
1529
  * @returns {GridContainer | HeaderContainer} - The card container.
1540
1530
  *
1541
1531
  */
1542
- private _getCardContainer() {
1532
+ private _getCardWrapperContainer() {
1543
1533
  if (this.getDeviceType() === DeviceType.Mobile) {
1544
1534
  return this.cardsMobileContainer;
1545
1535
  }
1546
- return this.cardsContainer;
1547
- }
1548
-
1549
- /**
1550
- * Sorts the menu items based on the provided order.
1551
- *
1552
- * @private
1553
- * @param {string[]} menuItems - The order of the menu items.
1554
- */
1555
- private _sortMenuItems(menuItems: string[]) {
1556
- const panelMenuItems = this.getAggregation("menuItems") as MenuItem[];
1557
- let sortedMenuItems = sortMenuItems(menuItems, panelMenuItems);
1558
- this.removeAllAggregation("menuItems");
1559
- sortedMenuItems?.forEach((menuItem) => this.addAggregation("menuItems", menuItem));
1536
+ return this.cardsWrapperContainer;
1560
1537
  }
1561
1538
 
1562
1539
  /**
@@ -23,6 +23,7 @@ declare module "sap/cux/home/ContentAdditionDialog" {
23
23
  private cancelButton;
24
24
  private panelsAdded;
25
25
  private errorMessageContainer;
26
+ private _appsAdditionPanel;
26
27
  static renderer: {
27
28
  apiVersion: number;
28
29
  };
@@ -33,6 +34,7 @@ declare module "sap/cux/home/ContentAdditionDialog" {
33
34
  * @override
34
35
  */
35
36
  init(): void;
37
+ onAfterRendering(): void;
36
38
  /**
37
39
  * Sets up the dialog content with an icon tab bar and error message container.
38
40
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ContentAdditionDialog.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/ContentAdditionDialog.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,oCAAoC,CAAC;IACpD;;;OAGG;IAEH,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;IAW9C,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;IAOjE;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,kBAAkB;QACpE,OAAO,CAAC,UAAU,CAAc;QAChC,OAAO,CAAC,YAAY,CAAU;QAC9B,OAAO,CAAC,WAAW,CAAW;QAC9B,OAAO,CAAC,qBAAqB,CAAW;QAExC,MAAM,CAAC,QAAQ;;UAEb;QAEF;;;;;WAKG;QACI,IAAI,IAAI,IAAI;QAoBnB;;;;WAIG;QACH,OAAO,CAAC,mBAAmB;QAiC3B;;;;;;WAMG;QACI,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;QAclD;;;;;WAKG;gBACW,sBAAsB;QA8BpC;;;;;;WAMG;QACH,OAAO,CAAC,iBAAiB;QASzB;;;;WAIG;QACI,mBAAmB,IAAI,IAAI;QA0BlC;;;;WAIG;QACH,OAAO,CAAC,aAAa;KAGrB;CAEA"}
1
+ {"version":3,"file":"ContentAdditionDialog.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/ContentAdditionDialog.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,oCAAoC,CAAC;IACpD;;;OAGG;IAEH,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;IAW9C,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;IAQjE;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,kBAAkB;QACpE,OAAO,CAAC,UAAU,CAAc;QAChC,OAAO,CAAC,YAAY,CAAU;QAC9B,OAAO,CAAC,WAAW,CAAW;QAC9B,OAAO,CAAC,qBAAqB,CAAW;QACxC,OAAO,CAAC,kBAAkB,CAAqB;QAE/C,MAAM,CAAC,QAAQ;;UAEb;QAEF;;;;;WAKG;QACI,IAAI,IAAI,IAAI;QAuBZ,gBAAgB;QAMvB;;;;WAIG;QACH,OAAO,CAAC,mBAAmB;QAiC3B;;;;;;WAMG;QACI,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;QAWlD;;;;;WAKG;gBACW,sBAAsB;QA8BpC;;;;;;WAMG;QACH,OAAO,CAAC,iBAAiB;QASzB;;;;WAIG;QACI,mBAAmB,IAAI,IAAI;QA0BlC;;;;WAIG;QACH,OAAO,CAAC,aAAa;KAGrB;CAEA"}
@@ -2,7 +2,7 @@
2
2
  * SAP UI development toolkit for HTML5 (SAPUI5)
3
3
  * * (c) Copyright 2009-2025 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(["sap/m/Button", "sap/m/FlexBox", "sap/m/IconTabBar", "sap/m/IconTabFilter", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/library", "./AppsAdditionPanel", "./BaseSettingsDialog", "./InsightsAdditionPanel", "./utils/Constants", "./utils/FESRUtil", "./utils/PXFeedback"], function (Button, FlexBox, IconTabBar, IconTabFilter, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, sap_m_library, __AppsAdditionPanel, __BaseSettingsDialog, __InsightsAdditionPanel, ___utils_Constants, ___utils_FESRUtil, ___utils_PXFeedback) {
5
+ sap.ui.define(["sap/m/Button", "sap/m/FlexBox", "sap/m/IconTabBar", "sap/m/IconTabFilter", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/library", "./AppsAdditionPanel", "./BaseSettingsDialog", "./InsightsAdditionPanel", "./utils/Constants", "./utils/DataFormatUtils", "./utils/FESRUtil", "./utils/PXFeedback"], function (Button, FlexBox, IconTabBar, IconTabFilter, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, sap_m_library, __AppsAdditionPanel, __BaseSettingsDialog, __InsightsAdditionPanel, ___utils_Constants, ___utils_DataFormatUtils, ___utils_FESRUtil, ___utils_PXFeedback) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
@@ -169,6 +169,7 @@ sap.ui.define(["sap/m/Button", "sap/m/FlexBox", "sap/m/IconTabBar", "sap/m/IconT
169
169
  const BaseSettingsDialog = _interopRequireDefault(__BaseSettingsDialog);
170
170
  const InsightsAdditionPanel = _interopRequireDefault(__InsightsAdditionPanel);
171
171
  const FESR_IDS = ___utils_Constants["FESR_IDS"];
172
+ const recycleId = ___utils_DataFormatUtils["recycleId"];
172
173
  const addFESRSemanticStepName = ___utils_FESRUtil["addFESRSemanticStepName"];
173
174
  const FESR_EVENTS = ___utils_FESRUtil["FESR_EVENTS"];
174
175
  const triggerPXIntegration = ___utils_PXFeedback["triggerPXIntegration"];
@@ -206,14 +207,22 @@ sap.ui.define(["sap/m/Button", "sap/m/FlexBox", "sap/m/IconTabBar", "sap/m/IconT
206
207
  this.setTitle(this._i18nBundle.getText("addContent"));
207
208
  this.addStyleClass("sapCuxContentAdditionDialog");
208
209
  this.attachAfterClose(this.onDialogClose.bind(this));
210
+ //update action buttons to be displayed before dialog opens
211
+ this.attachBeforeOpen(this.updateActionButtons.bind(this));
209
212
 
210
213
  //setup panels
211
- this.addPanel(new AppsAdditionPanel(`${this.getId()}-appsAdditionPanel`));
212
- this.addPanel(new InsightsAdditionPanel(`${this.getId()}-cardsAdditionPanel`));
214
+ this._appsAdditionPanel = new AppsAdditionPanel(recycleId(`${this.getId()}-appsAdditionPanel`));
215
+ this.addPanel(this._appsAdditionPanel);
216
+ this.addPanel(new InsightsAdditionPanel(recycleId(`${this.getId()}-cardsAdditionPanel`)));
213
217
 
214
218
  //setup content
215
219
  this._setupDialogContent();
216
220
  },
221
+ onAfterRendering: function _onAfterRendering() {
222
+ setTimeout(() => {
223
+ this._appsAdditionPanel?.setIllustrationSize();
224
+ }, 0);
225
+ },
217
226
  /**
218
227
  * Sets up the dialog content with an icon tab bar and error message container.
219
228
  *
@@ -263,9 +272,6 @@ sap.ui.define(["sap/m/Button", "sap/m/FlexBox", "sap/m/IconTabBar", "sap/m/IconT
263
272
  //set selected key
264
273
  const selectedKey = this.getProperty("selectedKey") || this.getPanels()[0]?.getProperty("key");
265
274
  this.iconTabBar.setSelectedKey(selectedKey);
266
-
267
- //update action buttons to be displayed
268
- this.updateActionButtons();
269
275
  },
270
276
  /**
271
277
  * Adds supported panels to the icon tab bar.