@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/GridContainerItemLayoutData", "sap/m/Button", "sap/m/CustomListItem", "sap/m/Dialog", "sap/m/GenericTile", "sap/m/HBox", "sap/m/HeaderContainer", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/Label", "sap/m/List", "sap/m/ObjectIdentifier", "sap/m/Title", "sap/m/VBox", "sap/m/library", "sap/ui/core/EventBus", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "sap/ushell/Config", "sap/ushell/Container", "sap/ushell/api/S4MyHome", "./BasePanel", "./MenuItem", "./utils/Accessibility", "./utils/AppManager", "./utils/Constants", "./utils/DataFormatUtils", "./utils/Device", "./utils/DragDropUtils", "./utils/FESRUtil", "./utils/InsightsUtils"], function (Log, GridContainer, GridContainerItemLayoutData, Button, CustomListItem, Dialog, GenericTile, HBox, HeaderContainer, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, Label, List, ObjectIdentifier, Title, VBox, sap_m_library, EventBus, Icon, Lib, JSONModel, Config, Container, S4MyHome, __BasePanel, __MenuItem, ___utils_Accessibility, __AppManager, ___utils_Constants, ___utils_DataFormatUtils, ___utils_Device, ___utils_DragDropUtils, ___utils_FESRUtil, ___utils_InsightsUtils) {
5
+ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLayoutData", "sap/m/Button", "sap/m/CustomListItem", "sap/m/Dialog", "sap/m/GenericTile", "sap/m/HBox", "sap/m/HeaderContainer", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/Label", "sap/m/List", "sap/m/ObjectIdentifier", "sap/m/Title", "sap/m/VBox", "sap/m/library", "sap/ui/core/EventBus", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "sap/ushell/Config", "sap/ushell/Container", "sap/ushell/api/S4MyHome", "./BasePanel", "./ErrorPanel", "./MenuItem", "./utils/Accessibility", "./utils/AppManager", "./utils/Constants", "./utils/DataFormatUtils", "./utils/Device", "./utils/DragDropUtils", "./utils/FESRUtil", "./utils/InsightsUtils"], function (Log, GridContainer, GridContainerItemLayoutData, Button, CustomListItem, Dialog, GenericTile, HBox, HeaderContainer, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, Label, List, ObjectIdentifier, Title, VBox, sap_m_library, EventBus, Icon, Lib, JSONModel, Config, Container, S4MyHome, __BasePanel, __ErrorPanel, __MenuItem, ___utils_Accessibility, __AppManager, ___utils_Constants, ___utils_DataFormatUtils, ___utils_Device, ___utils_DragDropUtils, ___utils_FESRUtil, ___utils_InsightsUtils) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
@@ -33,6 +33,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
33
33
  }
34
34
  const LoadState = sap_m_library["LoadState"];
35
35
  const BasePanel = _interopRequireDefault(__BasePanel);
36
+ const ErrorPanel = _interopRequireDefault(__ErrorPanel);
36
37
  const MenuItem = _interopRequireDefault(__MenuItem);
37
38
  const checkPanelExists = ___utils_Accessibility["checkPanelExists"];
38
39
  const AppManager = _interopRequireDefault(__AppManager);
@@ -50,8 +51,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
50
51
  const addFESRSemanticStepName = ___utils_FESRUtil["addFESRSemanticStepName"];
51
52
  const FESR_EVENTS = ___utils_FESRUtil["FESR_EVENTS"];
52
53
  const FESRNavigationSource = ___utils_FESRUtil["FESRNavigationSource"];
53
- const createShowMoreActionButton = ___utils_InsightsUtils["createShowMoreActionButton"];
54
- const createShowMoreMenuItem = ___utils_InsightsUtils["createShowMoreMenuItem"];
54
+ const getAssociatedFullScreenButton = ___utils_InsightsUtils["getAssociatedFullScreenButton"];
55
55
  const getAssociatedFullScreenMenuItem = ___utils_InsightsUtils["getAssociatedFullScreenMenuItem"];
56
56
  const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
57
57
  var tilesMenuItems = /*#__PURE__*/function (tilesMenuItems) {
@@ -60,22 +60,20 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
60
60
  tilesMenuItems["EDIT_TILES"] = "tiles-editTiles";
61
61
  return tilesMenuItems;
62
62
  }(tilesMenuItems || {});
63
- var tilesContainerMenuItems = /*#__PURE__*/function (tilesContainerMenuItems) {
64
- tilesContainerMenuItems["REFRESH"] = "container-tiles-refresh";
65
- tilesContainerMenuItems["ADD_APPS"] = "container-tiles-addSmartApps";
66
- tilesContainerMenuItems["EDIT_TILES"] = "container-tiles-editTiles";
67
- tilesContainerMenuItems["SHOW_MORE"] = "tilesContainerFullScreenMenuItem";
68
- return tilesContainerMenuItems;
69
- }(tilesContainerMenuItems || {});
70
63
  var tilesActionButtons = /*#__PURE__*/function (tilesActionButtons) {
71
64
  tilesActionButtons["ADD_TILES"] = "tiles-addTilesButton";
65
+ tilesActionButtons["SHOW_MORE"] = "fullScreen";
72
66
  return tilesActionButtons;
73
67
  }(tilesActionButtons || {});
74
- var tilesContainerActionButtons = /*#__PURE__*/function (tilesContainerActionButtons) {
75
- tilesContainerActionButtons["ADD_TILES"] = "container-tiles-addTilesButton";
76
- tilesContainerActionButtons["SHOW_MORE"] = "tilesContanerFullScreenActionButton";
77
- return tilesContainerActionButtons;
78
- }(tilesContainerActionButtons || {});
68
+ var errorPanelMenuItems = /*#__PURE__*/function (errorPanelMenuItems) {
69
+ errorPanelMenuItems["ADD_APPS"] = "tiles-errorPanel-addSmartApps";
70
+ errorPanelMenuItems["EDIT_TILES"] = "tiles-errorPanel-editTiles";
71
+ return errorPanelMenuItems;
72
+ }(errorPanelMenuItems || {});
73
+ var errorPanelActionButtons = /*#__PURE__*/function (errorPanelActionButtons) {
74
+ errorPanelActionButtons["ADD_TILES"] = "tiles-errorPanel-addTilesButton";
75
+ return errorPanelActionButtons;
76
+ }(errorPanelActionButtons || {});
79
77
  var DisplayFormat = /*#__PURE__*/function (DisplayFormat) {
80
78
  DisplayFormat["Standard"] = "standard";
81
79
  DisplayFormat["StandardWide"] = "standardWide";
@@ -175,10 +173,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
175
173
  */
176
174
  constructor: function _constructor(id, settings) {
177
175
  BasePanel.prototype.constructor.call(this, id, settings);
178
- this._insightsSectionTitle = this._i18nBundle.getText("insights");
176
+ this._insightsSectionTitle = this._i18nBundle.getText("insightsTiles");
179
177
  this._addFromFavDialogId = `${this.getId()}-addFromFavDialog`;
180
178
  this.aInsightsApps = [];
181
- this._headerVisible = false;
182
179
  },
183
180
  /**
184
181
  * Initializes the Tiles Panel.
@@ -200,6 +197,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
200
197
  this._controlModel = new JSONModel(this._oData);
201
198
  this.appManagerInstance = AppManager.getInstance();
202
199
  this.setProperty("key", "tiles");
200
+ this.setProperty("title", this._i18nBundle.getText("insightsTiles"));
203
201
  this.setProperty("enableFullScreen", true);
204
202
  const refreshMenuItem = this._createRefreshMenuItem(tilesMenuItems.REFRESH, "tilesRefresh");
205
203
  const editTilesMenuItem = this._createEditTilesMenuItem(tilesMenuItems.EDIT_TILES, "manageTiles");
@@ -234,6 +232,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
234
232
 
235
233
  // Toggles the activity of tiles
236
234
  this._toggleTileActivity();
235
+ //Add error panel to the parent container 'TilesContainer'
236
+ const parentContainer = this._getTilesContainer();
237
+ parentContainer?.addContent(this._errorPanel);
238
+ //set its visibility to false initially
239
+ this._errorPanel?.setVisible(false);
237
240
  },
238
241
  /**
239
242
  * Toggles the activity of tiles on route change.
@@ -353,6 +356,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
353
356
  _this3._showPlaceHolders();
354
357
  if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
355
358
  const addFromFavAppMenuItem = _this3._createAddFromFavMenuItem(tilesMenuItems.ADD_APPS, "smartAppsDialog");
359
+ addFromFavAppMenuItem.setVisible(_showAddApps());
356
360
  _this3.addAggregation("menuItems", addFromFavAppMenuItem);
357
361
  _this3._sortMenuItems(sortedMenuItems);
358
362
  }
@@ -362,6 +366,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
362
366
  });
363
367
  }, function (error) {
364
368
  _this3.fireHandleHidePanel();
369
+ _this3._addErrorPanel();
365
370
  });
366
371
  }, function (_wasThrown, _result) {
367
372
  _this3.fireEvent("loaded");
@@ -395,26 +400,52 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
395
400
  refreshData: function _refreshData(refreshTiles = false) {
396
401
  try {
397
402
  const _this4 = this;
398
- const panelName = _this4.getMetadata().getName();
399
403
  return Promise.resolve(_this4.appManagerInstance.fetchInsightApps(true, _this4._insightsSectionTitle)).then(function (_this4$appManagerInst) {
400
404
  function _temp6() {
401
405
  _this4._clearPlaceHolders();
402
406
  _this4._controlModel.setProperty("/tiles", _this4.aInsightsApps);
403
407
  if (_this4.aInsightsApps?.length) {
408
+ _this4._errorPanel?.setVisible(false);
409
+ //loop through the contents of parent container of this panel i.e., TilesContainer
410
+ const parentContainer = _this4._getTilesContainer();
411
+ parentContainer?.getContent().forEach(content => {
412
+ if (content instanceof ErrorPanel) {
413
+ //remove the error panel from the TilesContainer
414
+ parentContainer.removeContent(content);
415
+ }
416
+ });
404
417
  _this4.fireHandleUnhidePanel();
405
418
  if (refreshTiles) {
406
419
  const isMobile = _this4.getDeviceType() === DeviceType.Mobile;
407
- const container = isMobile ? _this4.tilesMobileContainer : _this4.tilesContainer;
420
+ const container = isMobile ? _this4.tilesMobileContainer : _this4.tilesDesktopContainer;
408
421
  const sDefaultAggreName = container.getMetadata().getDefaultAggregationName();
409
422
  const dynamicTiles = container.getAggregation(sDefaultAggreName) || [];
410
423
  dynamicTiles.forEach(tiles => tiles.refresh?.());
411
424
  }
412
- _this4._getInsightsContainer()?.updatePanelsItemCount(_this4.aInsightsApps.length, panelName);
413
- if (_this4._headerVisible) {
414
- _this4.setProperty("title", `${_this4._i18nBundle?.getText("insightsTiles")} (${_this4.aInsightsApps.length})`);
415
- }
425
+ _this4.setProperty("title", `${_this4._i18nBundle?.getText("insightsTiles")} (${_this4.aInsightsApps.length})`);
426
+ //if the panel has been loaded and has tiles, update the visibility of header elements of the panel
427
+ _this4.getMenuItems().forEach(item => {
428
+ if (item.getId().includes(tilesMenuItems.REFRESH) || item.getId().includes(tilesMenuItems.EDIT_TILES) || item.getId().includes("showMore")) {
429
+ item.setVisible(true);
430
+ }
431
+ });
416
432
  } else {
433
+ //if there are no tiles, hide the panel and show the error panel
434
+ _this4.setProperty("title", `${_this4._i18nBundle?.getText("insightsTiles")}`);
435
+ _this4.getMenuItems().forEach(item => {
436
+ if (item.getId().includes(tilesMenuItems.REFRESH) || item.getId().includes(tilesMenuItems.EDIT_TILES) || item.getId().includes("showMore")) {
437
+ item.setVisible(false);
438
+ }
439
+ });
417
440
  _this4.fireHandleHidePanel();
441
+ _this4._addErrorPanel();
442
+ const layout = _this4._getTilesContainer()?._getLayout();
443
+ if (layout?.getProperty("expanded")) {
444
+ _this4.tilesContainer.addContent(_this4);
445
+ layout?.toggleFullScreen(_this4);
446
+ //remove the tiles panel from the tiles container
447
+ _this4.tilesContainer.removeContent(_this4);
448
+ }
418
449
  }
419
450
  }
420
451
  _this4.aInsightsApps = _this4$appManagerInst;
@@ -432,6 +463,69 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
432
463
  return Promise.reject(e);
433
464
  }
434
465
  },
466
+ /**
467
+ * Adds an error panel when there are no tiles available.
468
+ *
469
+ * @private
470
+ * @returns {void}
471
+ */
472
+ _addErrorPanel: function _addErrorPanel() {
473
+ const _this5 = this;
474
+ const parentContainer = this._getTilesContainer();
475
+ //set the visibility of tiles panel to false
476
+ this.setVisible(false);
477
+ if (!this._errorPanel) {
478
+ this._errorPanel = new ErrorPanel(`${this.getId()}-errorTilesPanel`, {
479
+ additionalData: [new Button(`${this.getId()}-addInsightsTilesBtn`, {
480
+ text: this._i18nBundle.getText("appFinderLink"),
481
+ type: "Emphasized",
482
+ press: function () {
483
+ try {
484
+ const container = _this5._getTilesContainer();
485
+ const _temp7 = function () {
486
+ if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
487
+ // Favorite App Panel is visible, proceed as usual
488
+ void _this5._handleAddFromFavApps();
489
+ } else {
490
+ // Favorite App Panel is NOT visible, navigate to App Finder
491
+ return Promise.resolve(_this5.navigateToAppFinder()).then(function () {});
492
+ }
493
+ }();
494
+ return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(function () {}) : void 0);
495
+ } catch (e) {
496
+ return Promise.reject(e);
497
+ }
498
+ }
499
+ })],
500
+ messageTitle: this._i18nBundle.getText("noAppsTitle"),
501
+ messageDescription: this._i18nBundle.getText("noInsightsTileMsg")
502
+ });
503
+ this._errorPanel.getData();
504
+ //Add the menu items and action buttons to the error panel
505
+ const editTilesMenuItem = this._createEditTilesMenuItem(errorPanelMenuItems.EDIT_TILES, "manageTiles");
506
+ const addFromFavAppMenuItem = this._createAddFromFavMenuItem(errorPanelMenuItems.ADD_APPS, "smartAppsDialog");
507
+ this._errorPanel.setProperty("enableSettings", true);
508
+ addFromFavAppMenuItem.setVisible(_showAddApps());
509
+ const menuItems = [editTilesMenuItem, addFromFavAppMenuItem];
510
+ menuItems.forEach(menuItem => this._errorPanel.addAggregation("menuItems", menuItem));
511
+ this._sortMenuItems(sortedMenuItems);
512
+ const addTilesButton = this._createAddTilesButton(errorPanelActionButtons.ADD_TILES, "addTiles");
513
+ const actionButtons = [addTilesButton];
514
+ actionButtons.forEach(actionButton => this._errorPanel.addAggregation("actionButtons", actionButton));
515
+ }
516
+ //Add the title to the error panel
517
+ this._errorPanel.setTitle(this._i18nBundle.getText("insightsTiles"));
518
+
519
+ //Add error panel to the parent container 'TilesContainer'
520
+ parentContainer.addAggregation("content", this._errorPanel);
521
+ this._errorPanel.setVisible(true);
522
+
523
+ //set the visibility of header elements of the error panel
524
+ this._errorPanel.getMenuItems().forEach(item => {
525
+ const itemVisibility = item.getId().includes(errorPanelMenuItems.ADD_APPS) || item.getId().includes(errorPanelMenuItems.EDIT_TILES) || item.getId().includes("settings");
526
+ item.setVisible(itemVisibility);
527
+ });
528
+ },
435
529
  /**
436
530
  * Generates the wrapper for the tiles container, if it doesn't already exist
437
531
  *
@@ -480,17 +574,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
480
574
  * @returns {sap.m.GridContainer} The generated tiles wrapper.
481
575
  */
482
576
  _createWrapperFlexBox: function _createWrapperFlexBox() {
483
- // Check if the tilesContainer already exists
484
- if (!this.tilesContainer) {
577
+ // Check if the tilesDesktopContainer already exists
578
+ if (!this.tilesDesktopContainer) {
485
579
  // Create the GridContainer with required properties
486
- this.tilesContainer = new GridContainer(`${this.getId()}-insightsTilesContainer`, {
580
+ this.tilesDesktopContainer = new GridContainer(`${this.getId()}-insightsTilesContainer`, {
487
581
  visible: "{= !${/isPhone}}"
488
582
  }).addStyleClass("insightTiles sapUiSmallMarginTop");
489
583
  // Attach aggregation to the container
490
- this._attachAggregationToContainer(this.tilesContainer);
584
+ this._attachAggregationToContainer(this.tilesDesktopContainer);
491
585
  }
492
586
  // Return the existing or newly created container
493
- return this.tilesContainer;
587
+ return this.tilesDesktopContainer;
494
588
  },
495
589
  /**
496
590
  * Updates the activation flags for Insights Tiles based on the device type and viewport.
@@ -511,15 +605,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
511
605
  * Attaches necessary aggregations and configurations to the provided container.
512
606
  *
513
607
  * @private
514
- * @param {GridContainer | HeaderContainer} tilesContainer - The container to which the aggregation and events are to be attached.
608
+ * @param {GridContainer | HeaderContainer} tilesDesktopContainer - The container to which the aggregation and events are to be attached.
515
609
  * @returns {void}
516
610
  *
517
611
  */
518
- _attachAggregationToContainer: function _attachAggregationToContainer(tilesContainer) {
519
- tilesContainer.setModel(this._controlModel);
520
- const sDefaultAggreName = tilesContainer.getMetadata().getDefaultAggregationName();
612
+ _attachAggregationToContainer: function _attachAggregationToContainer(tilesDesktopContainer) {
613
+ tilesDesktopContainer.setModel(this._controlModel);
614
+ const sDefaultAggreName = tilesDesktopContainer.getMetadata().getDefaultAggregationName();
521
615
  const isPhoneScreen = this.getDeviceType() === DeviceType.Mobile;
522
- tilesContainer.bindAggregation(sDefaultAggreName, {
616
+ tilesDesktopContainer.bindAggregation(sDefaultAggreName, {
523
617
  path: "/tiles",
524
618
  factory: (id, context) => {
525
619
  const oApp = context.getObject();
@@ -539,7 +633,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
539
633
  return oVisualization;
540
634
  }
541
635
  });
542
- this.addDragDropConfigTo(tilesContainer, oEvent => this._handleTilesDnd(oEvent));
636
+ this.addDragDropConfigTo(tilesDesktopContainer, oEvent => this._handleTilesDnd(oEvent));
543
637
  },
544
638
  /**
545
639
  * Sets the drop area rectangle function for the given visualization.
@@ -600,15 +694,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
600
694
  */
601
695
  _DragnDropTiles: function _DragnDropTiles(iDragItemIndex, iDropItemIndex, sInsertPosition) {
602
696
  try {
603
- const _this5 = this;
697
+ const _this6 = this;
604
698
  if (sInsertPosition === "Before" && iDragItemIndex < iDropItemIndex) {
605
699
  iDropItemIndex--;
606
700
  } else if (sInsertPosition === "After" && iDragItemIndex > iDropItemIndex) {
607
701
  iDropItemIndex++;
608
702
  }
609
- const oDisplacedItem = _this5.aInsightsApps[iDropItemIndex],
610
- oItemMoved = _this5.aInsightsApps.splice(iDragItemIndex, 1)[0];
611
- _this5.aInsightsApps.splice(iDropItemIndex, 0, oItemMoved);
703
+ const oDisplacedItem = _this6.aInsightsApps[iDropItemIndex],
704
+ oItemMoved = _this6.aInsightsApps.splice(iDragItemIndex, 1)[0];
705
+ _this6.aInsightsApps.splice(iDropItemIndex, 0, oItemMoved);
612
706
  const moveConfigs = {
613
707
  pageId: MYHOME_PAGE_ID,
614
708
  sourceSectionIndex: oItemMoved.persConfig?.sectionIndex,
@@ -616,12 +710,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
616
710
  targetSectionIndex: oDisplacedItem.persConfig?.sectionIndex,
617
711
  targetVisualizationIndex: oDisplacedItem.persConfig?.visualizationIndex
618
712
  };
619
- _this5._controlModel.setProperty("/tiles", _this5.aInsightsApps);
620
- return Promise.resolve(_this5.appManagerInstance.moveVisualization(moveConfigs)).then(function () {
621
- return Promise.resolve(_this5.refreshData(true)).then(function () {
713
+ _this6._controlModel.setProperty("/tiles", _this6.aInsightsApps);
714
+ return Promise.resolve(_this6.appManagerInstance.moveVisualization(moveConfigs)).then(function () {
715
+ return Promise.resolve(_this6.refreshData(true)).then(function () {
622
716
  // Ensures focus on tile after Panel refresh during DnD.
623
717
  setTimeout(() => {
624
- focusDraggedItem(_this5.tilesContainer, iDropItemIndex);
718
+ focusDraggedItem(_this6.tilesDesktopContainer, iDropItemIndex);
625
719
  }, 0);
626
720
  });
627
721
  });
@@ -635,32 +729,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
635
729
  * @param {Event} event - The event object.
636
730
  */
637
731
  handleEditTiles: function _handleEditTiles(event) {
638
- /* If called from Panel Header event.source() will return TilesPanel, if called from Insights Container event.source() will return InsightsContainer.
732
+ /* If called from Panel Header event.source() will return TilesPanel, if called from Insights Container event.source() will return TilesContainer.
639
733
  _getLayout is available at Container Level*/
640
734
  let parent = event.getSource().getParent() || this;
641
- if (parent instanceof TilesPanel) {
735
+ if (parent instanceof TilesPanel || parent instanceof ErrorPanel) {
642
736
  parent = parent.getParent();
643
737
  }
644
738
  parent?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_TILES);
645
739
  },
646
- /**
647
- * Hides the header of the tiles panel.
648
- * @private
649
- */
650
- handleHideHeader: function _handleHideHeader() {
651
- this._headerVisible = false;
652
- this.setProperty("title", "");
653
- this._toggleHeaderActions(false);
654
- },
655
- /**
656
- * Adds the header to the tiles panel.
657
- * @private
658
- */
659
- handleAddHeader: function _handleAddHeader() {
660
- this._headerVisible = true;
661
- this.setProperty("title", `${this._i18nBundle?.getText("insightsTiles")} (${this.aInsightsApps.length})`);
662
- this._toggleHeaderActions(true);
663
- },
664
740
  /**
665
741
  * Closes the "Add from Favorites" dialog.
666
742
  *
@@ -711,11 +787,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
711
787
  */
712
788
  _handleAddFromFavApps: function _handleAddFromFavApps() {
713
789
  try {
714
- const _this6 = this;
715
- return Promise.resolve(_this6._getFavToAdd()).then(function (appsToAdd) {
716
- const dialog = _this6._generateAddFromFavAppsDialog();
717
- _this6._controlMap.get(`${_this6._addFromFavDialogId}-errorMessage`)?.setVisible(appsToAdd.length === 0);
718
- _this6._generateAddFromFavAppsListItems(appsToAdd);
790
+ const _this7 = this;
791
+ return Promise.resolve(_this7._getFavToAdd()).then(function (appsToAdd) {
792
+ const dialog = _this7._generateAddFromFavAppsDialog();
793
+ _this7._controlMap.get(`${_this7._addFromFavDialogId}-errorMessage`)?.setVisible(appsToAdd.length === 0);
794
+ _this7._generateAddFromFavAppsListItems(appsToAdd);
719
795
  dialog.open();
720
796
  });
721
797
  } catch (e) {
@@ -731,13 +807,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
731
807
  */
732
808
  _getFavToAdd: function _getFavToAdd() {
733
809
  try {
734
- const _this7 = this;
735
- return Promise.resolve(_this7.appManagerInstance.fetchFavVizs(false, true)).then(function (aFavApps) {
810
+ const _this8 = this;
811
+ return Promise.resolve(_this8.appManagerInstance.fetchFavVizs(false, true)).then(function (aFavApps) {
736
812
  const aDynamicApps = aFavApps.filter(function (oDynApp) {
737
813
  return oDynApp.isCount || oDynApp.isSmartBusinessTile;
738
814
  });
739
815
  const aFilteredFavApps = aDynamicApps.filter(oDynApp => {
740
- const iAppIndex = _this7.aInsightsApps.findIndex(function (oInsightApps) {
816
+ const iAppIndex = _this8.aInsightsApps.findIndex(function (oInsightApps) {
741
817
  return !oDynApp.visualization?.isBookmark && oInsightApps.visualization?.vizId === oDynApp.visualization?.vizId || oDynApp.visualization?.isBookmark && oInsightApps.visualization?.targetURL === oDynApp.visualization?.targetURL;
742
818
  });
743
819
  return iAppIndex === -1;
@@ -888,11 +964,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
888
964
  */
889
965
  _addFromFavApps: function _addFromFavApps() {
890
966
  try {
891
- const _this8 = this;
892
- const dialog = _this8._controlMap.get(_this8._addFromFavDialogId);
967
+ const _this9 = this;
968
+ const dialog = _this9._controlMap.get(_this9._addFromFavDialogId);
893
969
  dialog.setBusy(true);
894
- const selectedItems = _this8._getSelectedInsights();
895
- return Promise.resolve(_this8.appManagerInstance._getSections()).then(function (sections) {
970
+ const selectedItems = _this9._getSelectedInsights();
971
+ return Promise.resolve(_this9.appManagerInstance._getSections()).then(function (sections) {
896
972
  return Promise.resolve(selectedItems.reduce(function (promise, oApp) {
897
973
  return Promise.resolve(promise).then(function () {
898
974
  const app = oApp.data("app");
@@ -900,7 +976,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
900
976
  pageId: MYHOME_PAGE_ID,
901
977
  sourceSectionIndex: app.persConfig?.sectionIndex,
902
978
  sourceVisualizationIndex: app.persConfig?.visualizationIndex,
903
- targetSectionIndex: _this8.appManagerInstance.insightsSectionIndex,
979
+ targetSectionIndex: _this9.appManagerInstance.insightsSectionIndex,
904
980
  targetVisualizationIndex: -1
905
981
  };
906
982
 
@@ -915,11 +991,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
915
991
  if (recentAppSectionIndex === -1) {
916
992
  oMovingConfig.sourceSectionIndex = 0;
917
993
  oMovingConfig.sourceVisualizationIndex = 0;
918
- oMovingConfig.targetSectionIndex = _this8.appManagerInstance.insightsSectionIndex + 1;
994
+ oMovingConfig.targetSectionIndex = _this9.appManagerInstance.insightsSectionIndex + 1;
919
995
  } else {
920
996
  oMovingConfig.sourceSectionIndex = recentAppSectionIndex;
921
997
  oMovingConfig.sourceVisualizationIndex = sections[recentAppSectionIndex]?.visualizations?.length || 0;
922
- oMovingConfig.targetSectionIndex = _this8.appManagerInstance.insightsSectionIndex;
998
+ oMovingConfig.targetSectionIndex = _this9.appManagerInstance.insightsSectionIndex;
923
999
  }
924
1000
  }
925
1001
  if (app.visualization?.displayFormatHint !== "standard" && app.visualization?.displayFormatHint !== "standardWide") {
@@ -932,17 +1008,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
932
1008
  if (!app.visualization?.vizId) {
933
1009
  app.visualization.vizId = app.visualization?.targetURL ?? "";
934
1010
  }
935
- const _temp7 = function () {
1011
+ const _temp8 = function () {
936
1012
  if (app.visualization?.isBookmark === true) {
937
- return Promise.resolve(_this8.appManagerInstance.addBookMark(app.visualization, oMovingConfig)).then(function () {});
1013
+ return Promise.resolve(_this9.appManagerInstance.addBookMark(app.visualization, oMovingConfig)).then(function () {});
938
1014
  } else {
939
- return Promise.resolve(_this8.appManagerInstance.addVisualization(app.visualization?.vizId, MYINSIGHT_SECTION_ID)).then(function () {});
1015
+ return Promise.resolve(_this9.appManagerInstance.addVisualization(app.visualization?.vizId, MYINSIGHT_SECTION_ID)).then(function () {});
940
1016
  }
941
1017
  }();
942
- if (_temp7 && _temp7.then) return _temp7.then(function () {});
1018
+ if (_temp8 && _temp8.then) return _temp8.then(function () {});
943
1019
  });
944
1020
  }, Promise.resolve())).then(function () {
945
- return Promise.resolve(_this8.refreshData()).then(function () {
1021
+ return Promise.resolve(_this9.refreshData()).then(function () {
946
1022
  dialog.setBusy(false);
947
1023
  dialog.close();
948
1024
  });
@@ -960,7 +1036,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
960
1036
  * @returns {number} - The number of visible tiles.
961
1037
  */
962
1038
  _calculateVisibleTileCount: function _calculateVisibleTileCount(insightsApps) {
963
- const layout = this._getInsightsContainer()?._getLayout();
1039
+ const layout = this._getTilesContainer()?._getLayout();
964
1040
  const layoutDomRef = layout?.getDomRef();
965
1041
  const apps = insightsApps || [];
966
1042
  let count = 0;
@@ -983,7 +1059,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
983
1059
  return count || 1;
984
1060
  },
985
1061
  _calculatePlaceholderTileCount: function _calculatePlaceholderTileCount() {
986
- const layoutDomRef = this._getInsightsContainer()?._getLayout()?.getDomRef();
1062
+ const layoutDomRef = this._getTilesContainer()?._getLayout()?.getDomRef();
987
1063
  let count = 0;
988
1064
  if (layoutDomRef) {
989
1065
  const sectionDomRef = layoutDomRef.childNodes[0];
@@ -1001,7 +1077,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
1001
1077
  * @override
1002
1078
  */
1003
1079
  _adjustLayout: function _adjustLayout() {
1004
- const layout = this._getInsightsContainer()?._getLayout();
1080
+ const layout = this._getTilesContainer()?._getLayout();
1005
1081
  const isMobileDevice = this.getDeviceType() === DeviceType.Mobile;
1006
1082
  if (layout) {
1007
1083
  const visibleTileCount = isMobileDevice ? this.aInsightsApps?.length : this._calculateVisibleTileCount(this.aInsightsApps);
@@ -1011,73 +1087,28 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
1011
1087
  this._updateTilesActivity();
1012
1088
  //Show/Hide Full Screen Button if panel header is visible otherwise update visibility of container Full Screen Button
1013
1089
  const showFullScreenButton = isElementExpanded || this.aInsightsApps.length > visibleTileCount;
1014
- if (this._headerVisible) {
1015
- if (!isMobileDevice) {
1016
- this.getAggregation("actionButtons")?.forEach(actionButton => {
1017
- if (actionButton.getId().includes(tilesActionButtons.ADD_TILES)) {
1018
- this._getInsightsContainer().toggleActionButton(actionButton, true);
1019
- }
1020
- });
1021
- }
1022
- this._getInsightsContainer()?.toggleFullScreenElements(this, showFullScreenButton);
1023
- } else {
1024
- const fullScreenButton = getAssociatedFullScreenMenuItem(this);
1025
- const fullScreenText = fullScreenButton?.getTitle() ?? "";
1026
- this._getInsightsContainer()?.updateMenuItem(this._controlMap.get(`${this.getId()}-${tilesContainerMenuItems.SHOW_MORE}`), showFullScreenButton, fullScreenText);
1027
- this._getInsightsContainer()?.updateActionButton(this._controlMap.get(`${this.getId()}-${tilesContainerActionButtons.SHOW_MORE}`), showFullScreenButton, fullScreenText);
1028
- }
1029
- }
1030
- },
1031
- /**
1032
- * Retrieves the InsightsContainer instance associated with this TilesPanel.
1033
- *
1034
- * @private
1035
- * @returns {InsightsContainer} The InsightsContainer instance.
1036
- */
1037
- _getInsightsContainer: function _getInsightsContainer() {
1038
- if (!this.insightsContainer) {
1039
- this.insightsContainer = this.getParent();
1040
- }
1041
- return this.insightsContainer;
1042
- },
1043
- /**
1044
- * Retrieves the menu items for the container.
1045
- *
1046
- * @private
1047
- * @returns {MenuItem[]} An array of MenuItem instances.
1048
- */
1049
- getContainerMenuItems: function _getContainerMenuItems() {
1050
- if (!this._containerMenuItems) {
1051
- const containerRefresh = this._createRefreshMenuItem(tilesContainerMenuItems.REFRESH, "containerTilesRefresh");
1052
- const containerEditTiles = this._createEditTilesMenuItem(tilesContainerMenuItems.EDIT_TILES, "containerManageTiles");
1053
- const containerShowMore = createShowMoreMenuItem(this, tilesContainerMenuItems.SHOW_MORE, "containerTilesShowMore");
1054
- const container = this.getParent();
1055
- this._controlMap.set(`${this.getId()}-${tilesContainerMenuItems.SHOW_MORE}`, containerShowMore);
1056
- this._containerMenuItems = [containerRefresh, containerEditTiles, containerShowMore];
1057
- if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
1058
- const containerAddFromFav = this._createAddFromFavMenuItem(tilesContainerMenuItems.ADD_APPS, "containerSmartAppsDialog");
1059
- this._containerMenuItems.splice(1, 0, containerAddFromFav);
1060
- }
1090
+ const fullScreenButton = getAssociatedFullScreenMenuItem(this);
1091
+ const fullScreenText = fullScreenButton?.getTitle() ?? "";
1092
+
1093
+ //update the panel menu-item show more button and show more action button in panel header
1094
+ fullScreenButton?.setVisible(showFullScreenButton);
1095
+ fullScreenButton?.setTitle(fullScreenText);
1096
+ const fullScreenActionButton = getAssociatedFullScreenButton(this);
1097
+ fullScreenActionButton?.setVisible(showFullScreenButton);
1098
+ fullScreenActionButton?.setText(fullScreenText);
1061
1099
  }
1062
- return this._containerMenuItems;
1063
1100
  },
1064
1101
  /**
1065
- * Retrieves the action buttons for the container.
1102
+ * Retrieves the TilesContainer instance associated with this TilesPanel.
1066
1103
  *
1067
1104
  * @private
1068
- * @returns {Button[]} An array of Button instances.
1105
+ * @returns {TilesContainer} The TilesContainer instance.
1069
1106
  */
1070
- getContainerActionButtons: function _getContainerActionButtons() {
1071
- if (!this._containerActionButtons) {
1072
- this._containerActionButtons = [];
1073
- this._containerActionButtons.push(this._createAddTilesButton(tilesContainerActionButtons.ADD_TILES, "containerSmartAppsDialog"));
1074
- const containerFullScreenActionButton = createShowMoreActionButton(this, tilesContainerActionButtons.SHOW_MORE, "containerTilesShowMore");
1075
- if (containerFullScreenActionButton) {
1076
- this._controlMap.set(`${this.getId()}-${tilesContainerActionButtons.SHOW_MORE}`, containerFullScreenActionButton);
1077
- this._containerActionButtons.push(containerFullScreenActionButton);
1078
- }
1107
+ _getTilesContainer: function _getTilesContainer() {
1108
+ if (!this.tilesContainer) {
1109
+ this.tilesContainer = this.getParent();
1079
1110
  }
1080
- return this._containerActionButtons;
1111
+ return this.tilesContainer;
1081
1112
  },
1082
1113
  /**
1083
1114
  * Creates a refresh menu item.
@@ -1153,23 +1184,23 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
1153
1184
  * @returns {Button} The created Button instance.
1154
1185
  */
1155
1186
  _createAddTilesButton: function _createAddTilesButton(id, fesrId) {
1156
- const _this9 = this;
1187
+ const _this0 = this;
1157
1188
  const actionButton = new Button(`${this.getId()}-${id}`, {
1158
1189
  text: this._i18nBundle.getText("appFinderLink"),
1159
1190
  tooltip: this._i18nBundle.getText("appFinderLink"),
1160
1191
  press: function () {
1161
1192
  try {
1162
- const container = _this9._getInsightsContainer();
1163
- const _temp8 = function () {
1193
+ const container = _this0._getTilesContainer();
1194
+ const _temp9 = function () {
1164
1195
  if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
1165
1196
  // Favorite App Panel is visible, proceed as usual
1166
- void _this9._handleAddFromFavApps();
1197
+ void _this0._handleAddFromFavApps();
1167
1198
  } else {
1168
1199
  // Favorite App Panel is NOT visible, navigate to App Finder
1169
- return Promise.resolve(_this9.navigateToAppFinder()).then(function () {});
1200
+ return Promise.resolve(_this0.navigateToAppFinder()).then(function () {});
1170
1201
  }
1171
1202
  }();
1172
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
1203
+ return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(function () {}) : void 0);
1173
1204
  } catch (e) {
1174
1205
  return Promise.reject(e);
1175
1206
  }
@@ -1180,24 +1211,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
1180
1211
  addFESRId(actionButton, fesrId);
1181
1212
  }
1182
1213
  return actionButton;
1183
- },
1184
- /**
1185
- * Toggles the visibility of the header actions.
1186
- *
1187
- * @param {boolean} bShow - Whether to show or hide the header actions.
1188
- * @private
1189
- */
1190
- _toggleHeaderActions: function _toggleHeaderActions(bShow) {
1191
- this.getAggregation("menuItems")?.forEach(menuItem => {
1192
- this._getInsightsContainer()?.toggleMenuListItem(menuItem, bShow);
1193
- });
1194
- this.getAggregation("actionButtons")?.forEach(actionButton => this._getInsightsContainer()?.toggleActionButton(actionButton, bShow));
1195
1214
  }
1196
1215
  });
1197
1216
  TilesPanel.tilesMenuItems = tilesMenuItems;
1198
- TilesPanel.tilesContainerMenuItems = tilesContainerMenuItems;
1199
1217
  TilesPanel.tilesActionButtons = tilesActionButtons;
1200
- TilesPanel.tilesContainerActionButtons = tilesContainerActionButtons;
1218
+ TilesPanel.errorPanelMenuItems = errorPanelMenuItems;
1219
+ TilesPanel.errorPanelActionButtons = errorPanelActionButtons;
1201
1220
  TilesPanel.DisplayFormat = DisplayFormat;
1202
1221
  return TilesPanel;
1203
1222
  });