@sapui5/sap.cux.home 1.142.0 → 1.142.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) 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/AppsAdditionPanel.d.ts +47 -34
  9. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  10. package/src/sap/cux/home/AppsAdditionPanel.js +333 -237
  11. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  12. package/src/sap/cux/home/AppsAdditionPanel.ts +344 -230
  13. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  14. package/src/sap/cux/home/AppsContainer.js +3 -2
  15. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  16. package/src/sap/cux/home/AppsContainer.ts +3 -2
  17. package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
  18. package/src/sap/cux/home/BaseAppPanel.js +6 -1
  19. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  20. package/src/sap/cux/home/BaseAppPanel.ts +6 -1
  21. package/src/sap/cux/home/BaseContainer.d.ts +1 -1
  22. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  23. package/src/sap/cux/home/BaseContainer.js +10 -2
  24. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  25. package/src/sap/cux/home/BaseContainer.ts +7 -3
  26. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  27. package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
  28. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  29. package/src/sap/cux/home/BaseContainerRenderer.ts +6 -0
  30. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  31. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  32. package/src/sap/cux/home/CardsContainer.d.ts +108 -0
  33. package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
  34. package/src/sap/cux/home/CardsContainer.js +207 -0
  35. package/src/sap/cux/home/CardsContainer.js.map +1 -0
  36. package/src/sap/cux/home/CardsContainer.ts +202 -0
  37. package/src/sap/cux/home/CardsPanel.d.ts +43 -62
  38. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  39. package/src/sap/cux/home/CardsPanel.js +345 -285
  40. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  41. package/src/sap/cux/home/CardsPanel.ts +211 -200
  42. package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
  43. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  44. package/src/sap/cux/home/ContentAdditionDialog.js +12 -6
  45. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  46. package/src/sap/cux/home/ContentAdditionDialog.ts +13 -5
  47. package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
  48. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  49. package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
  50. package/src/sap/cux/home/ErrorPanel.js +11 -16
  51. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  52. package/src/sap/cux/home/ErrorPanel.ts +7 -19
  53. package/src/sap/cux/home/FavAppPanel.d.ts +1 -2
  54. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  55. package/src/sap/cux/home/FavAppPanel.js +296 -301
  56. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  57. package/src/sap/cux/home/FavAppPanel.ts +14 -10
  58. package/src/sap/cux/home/InsightsAdditionPanel.d.ts +11 -4
  59. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  60. package/src/sap/cux/home/InsightsAdditionPanel.js +20 -8
  61. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  62. package/src/sap/cux/home/InsightsAdditionPanel.ts +20 -7
  63. package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts +8 -0
  64. package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts.map +1 -1
  65. package/src/sap/cux/home/InsightsCardsSettingsPanel.js +15 -0
  66. package/src/sap/cux/home/InsightsCardsSettingsPanel.js.map +1 -1
  67. package/src/sap/cux/home/InsightsCardsSettingsPanel.ts +11 -0
  68. package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
  69. package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
  70. package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +1 -1
  71. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
  72. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
  73. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
  74. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
  75. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +287 -57
  76. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  77. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
  78. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  79. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
  80. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
  81. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  82. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
  83. package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
  84. package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
  85. package/src/sap/cux/home/Layout.d.ts +3 -1
  86. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  87. package/src/sap/cux/home/Layout.js +49 -8
  88. package/src/sap/cux/home/Layout.js.map +1 -1
  89. package/src/sap/cux/home/Layout.ts +59 -8
  90. package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
  91. package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
  92. package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
  93. package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
  94. package/src/sap/cux/home/LayoutSettingsPanel.ts +379 -63
  95. package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -14
  96. package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
  97. package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
  98. package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
  99. package/src/sap/cux/home/NewsContainer.js.map +1 -0
  100. package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +29 -118
  101. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  102. package/src/sap/cux/home/NewsGroup.ts +1 -1
  103. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  104. package/src/sap/cux/home/NewsPanel.js +12 -14
  105. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  106. package/src/sap/cux/home/NewsPanel.ts +13 -16
  107. package/src/sap/cux/home/NewsSettingsPanel.js +4 -4
  108. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  109. package/src/sap/cux/home/NewsSettingsPanel.ts +5 -5
  110. package/src/sap/cux/home/PagePanel.d.ts +1 -1
  111. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  112. package/src/sap/cux/home/PagePanel.js +18 -10
  113. package/src/sap/cux/home/PagePanel.js.map +1 -1
  114. package/src/sap/cux/home/PagePanel.ts +25 -15
  115. package/src/sap/cux/home/PagesContainer.d.ts +72 -0
  116. package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
  117. package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
  118. package/src/sap/cux/home/PagesContainer.js +333 -0
  119. package/src/sap/cux/home/PagesContainer.js.map +1 -0
  120. package/src/sap/cux/home/PagesContainer.ts +179 -0
  121. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
  122. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  123. package/src/sap/cux/home/SpaceInsightsPanel.js +66 -132
  124. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  125. package/src/sap/cux/home/SpaceInsightsPanel.ts +69 -151
  126. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  127. package/src/sap/cux/home/TaskPanel.js +16 -1
  128. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  129. package/src/sap/cux/home/TaskPanel.ts +15 -1
  130. package/src/sap/cux/home/TilesContainer.d.ts +111 -0
  131. package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
  132. package/src/sap/cux/home/TilesContainer.js +218 -0
  133. package/src/sap/cux/home/TilesContainer.js.map +1 -0
  134. package/src/sap/cux/home/TilesContainer.ts +216 -0
  135. package/src/sap/cux/home/TilesPanel.d.ts +22 -52
  136. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  137. package/src/sap/cux/home/TilesPanel.js +184 -165
  138. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  139. package/src/sap/cux/home/TilesPanel.ts +160 -154
  140. package/src/sap/cux/home/ToDoPanel.d.ts +1 -0
  141. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  142. package/src/sap/cux/home/ToDoPanel.js +38 -63
  143. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  144. package/src/sap/cux/home/ToDoPanel.ts +32 -31
  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 +26 -12
  175. package/src/sap/cux/home/i18n/messagebundle_ar.properties +18 -2
  176. package/src/sap/cux/home/i18n/messagebundle_bg.properties +18 -2
  177. package/src/sap/cux/home/i18n/messagebundle_ca.properties +18 -2
  178. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +18 -2
  179. package/src/sap/cux/home/i18n/messagebundle_cs.properties +18 -2
  180. package/src/sap/cux/home/i18n/messagebundle_cy.properties +18 -2
  181. package/src/sap/cux/home/i18n/messagebundle_da.properties +18 -2
  182. package/src/sap/cux/home/i18n/messagebundle_de.properties +18 -2
  183. package/src/sap/cux/home/i18n/messagebundle_el.properties +18 -2
  184. package/src/sap/cux/home/i18n/messagebundle_en.properties +19 -3
  185. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +18 -2
  186. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +21 -5
  187. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +21 -5
  188. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +18 -2
  189. package/src/sap/cux/home/i18n/messagebundle_es.properties +19 -2
  190. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +18 -2
  191. package/src/sap/cux/home/i18n/messagebundle_et.properties +18 -2
  192. package/src/sap/cux/home/i18n/messagebundle_fi.properties +18 -2
  193. package/src/sap/cux/home/i18n/messagebundle_fr.properties +18 -2
  194. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +18 -2
  195. package/src/sap/cux/home/i18n/messagebundle_hi.properties +18 -2
  196. package/src/sap/cux/home/i18n/messagebundle_hr.properties +18 -2
  197. package/src/sap/cux/home/i18n/messagebundle_hu.properties +18 -2
  198. package/src/sap/cux/home/i18n/messagebundle_id.properties +18 -2
  199. package/src/sap/cux/home/i18n/messagebundle_it.properties +23 -7
  200. package/src/sap/cux/home/i18n/messagebundle_iw.properties +18 -2
  201. package/src/sap/cux/home/i18n/messagebundle_ja.properties +18 -2
  202. package/src/sap/cux/home/i18n/messagebundle_kk.properties +18 -2
  203. package/src/sap/cux/home/i18n/messagebundle_ko.properties +18 -2
  204. package/src/sap/cux/home/i18n/messagebundle_lt.properties +18 -2
  205. package/src/sap/cux/home/i18n/messagebundle_lv.properties +18 -2
  206. package/src/sap/cux/home/i18n/messagebundle_mk.properties +18 -2
  207. package/src/sap/cux/home/i18n/messagebundle_ms.properties +18 -2
  208. package/src/sap/cux/home/i18n/messagebundle_nl.properties +18 -2
  209. package/src/sap/cux/home/i18n/messagebundle_no.properties +18 -2
  210. package/src/sap/cux/home/i18n/messagebundle_pl.properties +18 -2
  211. package/src/sap/cux/home/i18n/messagebundle_pt.properties +18 -2
  212. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +18 -2
  213. package/src/sap/cux/home/i18n/messagebundle_ro.properties +18 -2
  214. package/src/sap/cux/home/i18n/messagebundle_ru.properties +18 -2
  215. package/src/sap/cux/home/i18n/messagebundle_sh.properties +18 -2
  216. package/src/sap/cux/home/i18n/messagebundle_sk.properties +18 -2
  217. package/src/sap/cux/home/i18n/messagebundle_sl.properties +18 -2
  218. package/src/sap/cux/home/i18n/messagebundle_sr.properties +18 -2
  219. package/src/sap/cux/home/i18n/messagebundle_sv.properties +18 -2
  220. package/src/sap/cux/home/i18n/messagebundle_th.properties +18 -2
  221. package/src/sap/cux/home/i18n/messagebundle_tr.properties +18 -2
  222. package/src/sap/cux/home/i18n/messagebundle_uk.properties +20 -4
  223. package/src/sap/cux/home/i18n/messagebundle_vi.properties +18 -2
  224. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +18 -2
  225. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +18 -2
  226. package/src/sap/cux/home/interface/CardsInterface.d.ts +6 -0
  227. package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
  228. package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
  229. package/src/sap/cux/home/interface/CardsInterface.ts +6 -1
  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/BatchHelper.d.ts +1 -0
  251. package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
  252. package/src/sap/cux/home/utils/BatchHelper.js +7 -2
  253. package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
  254. package/src/sap/cux/home/utils/BatchHelper.ts +8 -1
  255. package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
  256. package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
  257. package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
  258. package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
  259. package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
  260. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +150 -151
  261. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
  262. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
  263. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
  264. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
  265. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
  266. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
  267. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
  268. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
  269. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
  270. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
  271. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
  272. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
  273. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
  274. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
  275. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
  276. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
  277. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
  278. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
  279. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
  280. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
  281. package/ui5.yaml +1 -0
  282. package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
  283. package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
  284. package/src/sap/cux/home/InsightsContainer.js +0 -459
  285. package/src/sap/cux/home/InsightsContainer.js.map +0 -1
  286. package/src/sap/cux/home/InsightsContainer.ts +0 -489
  287. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
  288. package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
  289. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
  290. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
  291. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
  292. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
  293. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
  294. 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(["./BaseContainer", "./library", "./utils/Device", "./utils/placeholder/NewsAndPagesPlaceholder"], function (__BaseContainer, ___library, ___utils_Device, ___utils_placeholder_NewsAndPagesPlaceholder) {
5
+ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeholder/NewsPlaceholder"], function (__BaseContainer, ___library, ___utils_Device, ___utils_placeholder_NewsPlaceholder) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
@@ -166,43 +166,25 @@ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeh
166
166
  const NewsType = ___library["NewsType"];
167
167
  const OrientationType = ___library["OrientationType"];
168
168
  const DeviceType = ___utils_Device["DeviceType"];
169
- const getNewsPagesPlaceholder = ___utils_placeholder_NewsAndPagesPlaceholder["getNewsPagesPlaceholder"];
169
+ const getNewsPlaceholder = ___utils_placeholder_NewsPlaceholder["getNewsPlaceholder"];
170
170
  /**
171
171
  *
172
- * Container class for managing and storing News and Pages.
172
+ * Container class for managing and storing News.
173
173
  *
174
174
  * @extends BaseContainer
175
175
  *
176
176
  * @author SAP SE
177
177
  * @version 0.0.1
178
- * @since 1.121
178
+ * @since 1.142
179
179
  *
180
180
  * @private
181
181
  * @ui5-restricted ux.eng.s4producthomes1
182
182
  *
183
- * @alias sap.cux.home.NewsAndPagesContainer
183
+ * @alias sap.cux.home.NewsContainer
184
184
  */
185
- const NewsAndPagesContainer = BaseContainer.extend("sap.cux.home.NewsAndPagesContainer", {
185
+ const NewsContainer = BaseContainer.extend("sap.cux.home.NewsContainer", {
186
186
  metadata: {
187
187
  properties: {
188
- /**
189
- * Color Personalizations for Spaces & Pages
190
- */
191
- colorPersonalizations: {
192
- type: "array",
193
- group: "Misc",
194
- defaultValue: [],
195
- visibility: "hidden"
196
- },
197
- /**
198
- * Icon Personalizations for Spaces & Pages
199
- */
200
- iconPersonalizations: {
201
- type: "array",
202
- group: "Misc",
203
- defaultValue: [],
204
- visibility: "hidden"
205
- },
206
188
  /**
207
189
  * News feed visibility flag
208
190
  */
@@ -219,7 +201,7 @@ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeh
219
201
  apiVersion: 2
220
202
  },
221
203
  /**
222
- * Constructor for the new News and Pages container.
204
+ * Constructor for the new News container.
223
205
  *
224
206
  * @param {string} [id] ID for the new control, generated automatically if an ID is not provided
225
207
  * @param {object} [settings] Initial settings for the new control
@@ -233,6 +215,7 @@ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeh
233
215
  newsType: NewsType.None
234
216
  };
235
217
  },
218
+ //check remove pages code
236
219
  /**
237
220
  * Init lifecycle method
238
221
  *
@@ -243,11 +226,15 @@ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeh
243
226
  BaseContainer.prototype.init.call(this);
244
227
  this.panelLoaded = {};
245
228
  this.setProperty("orientation", this.getDeviceType() === DeviceType.Desktop || this.getDeviceType() === DeviceType.LargeDesktop || this.getDeviceType() === DeviceType.XLargeDesktop ? OrientationType.Horizontal : OrientationType.Vertical);
246
- this.addCustomSetting("title", this._i18nBundle.getText("myInterestMsg"));
229
+ this.setProperty("compositeId", "NewsAndPages");
230
+ this.addStyleClass("NewsAndPages");
231
+ this.addCustomSetting("title", this._i18nBundle.getText("newsTitle"));
232
+ this.addCustomSetting("groupTitle", this._i18nBundle.getText("myInterestMsg"));
247
233
  this.addStyleClass("sapCuxNewsAndPagesContainer");
234
+ this.addStyleClass("sapCuxHorizontalContainers");
248
235
  },
249
236
  /**
250
- * Loads the News and Pages section.
237
+ * Loads the News section.
251
238
  * Overrides the load method of the BaseContainer.
252
239
  *
253
240
  * @private
@@ -277,44 +264,6 @@ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeh
277
264
  return Promise.reject(e);
278
265
  }
279
266
  },
280
- /**
281
- * Sets property value for colorPersonalization.
282
- * Overridden to update cached personalizations.
283
- *
284
- * @private
285
- * @override
286
- * @returns {NewsAndPagesContainer} the container for chaining
287
- */
288
- setColorPersonalizations: function _setColorPersonalizations(personalizations) {
289
- const existingPers = this.getProperty("colorPersonalizations") || [];
290
- const updatedPers = existingPers.concat(personalizations);
291
- this.setProperty("colorPersonalizations", updatedPers);
292
- this.getContent().forEach(oContent => {
293
- if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
294
- oContent.applyColorPersonalizations(updatedPers);
295
- }
296
- });
297
- return this;
298
- },
299
- /**
300
- * Sets property value for iconPersonalization.
301
- * Overridden to update cached personalizations.
302
- *
303
- * @private
304
- * @override
305
- * @returns {NewsAndPagesContainer} the container for chaining
306
- */
307
- setIconPersonalizations: function _setIconPersonalizations(personalizations) {
308
- const existingPers = this.getProperty("iconPersonalizations") || [];
309
- const updatedPers = existingPers.concat(personalizations);
310
- this.setProperty("iconPersonalizations", updatedPers);
311
- this.getContent().forEach(oContent => {
312
- if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
313
- oContent.applyIconPersonalizations(updatedPers);
314
- }
315
- });
316
- return this;
317
- },
318
267
  /**
319
268
  * Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.
320
269
  *
@@ -393,42 +342,17 @@ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeh
393
342
  // same issue of panelwrapper not available at this time
394
343
  const aContent = this.getContent();
395
344
  aContent.forEach(oContent => {
396
- if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
397
- this.pagePanel = oContent;
398
- } else if (oContent.getMetadata().getName() === "sap.cux.home.NewsPanel") {
345
+ if (oContent.getMetadata().getName() === "sap.cux.home.NewsPanel") {
399
346
  this.newsPanel = oContent;
400
347
  }
401
348
  });
402
349
  this.panelLoaded[sPanelType] = oVal;
403
350
  this.adjustLayout();
404
351
  },
405
- adjustStyleLayout: function _adjustStyleLayout(bIsNewsTileVisible) {
406
- const sDeviceType = this.getDeviceType();
352
+ adjustStyleLayout: function _adjustStyleLayout() {
407
353
  const newsContentWrapper = this.newsPanel ? this.newsPanel.getContent()?.[0] : undefined;
408
- const pagesContentWrapper = this.pagePanel ? this.pagePanel.getContent()?.[0] : undefined;
409
- if (bIsNewsTileVisible) {
410
- this.newsPanel.adjustLayout();
411
- }
412
- if (sDeviceType === DeviceType.Desktop || sDeviceType === DeviceType.LargeDesktop || sDeviceType === DeviceType.XLargeDesktop) {
413
- if (bIsNewsTileVisible) {
414
- pagesContentWrapper?.setWidth("100%");
415
- }
416
- this.setOrientation(OrientationType.Horizontal);
417
- newsContentWrapper?.setWidth("100%");
418
- newsContentWrapper?.addStyleClass("newsTileMaxWidth");
419
- } else if (sDeviceType === DeviceType.Tablet) {
420
- this.setOrientation(OrientationType.Vertical);
421
- pagesContentWrapper?.setWidth("100%");
422
- pagesContentWrapper?.setJustifyContent("Start");
423
- newsContentWrapper?.setWidth("calc(100vw - 64px)");
424
- newsContentWrapper?.removeStyleClass("newsTileMaxWidth");
425
- } else {
426
- this.setOrientation(OrientationType.Vertical);
427
- newsContentWrapper?.setWidth("calc(100vw - 16px)");
428
- }
429
- if (pagesContentWrapper) {
430
- setTimeout(this.pagePanel.attachResizeHandler.bind(this.pagePanel, bIsNewsTileVisible, this.getDomRef()?.clientWidth || 0, pagesContentWrapper));
431
- }
354
+ this.newsPanel.adjustLayout();
355
+ newsContentWrapper?.setWidth("100%");
432
356
  },
433
357
  /**
434
358
  * Adjusts the layout of the all panels in the container.
@@ -437,32 +361,21 @@ sap.ui.define(["./BaseContainer", "./library", "./utils/Device", "./utils/placeh
437
361
  * @override
438
362
  */
439
363
  adjustLayout: function _adjustLayout() {
440
- if (this.pagePanel && this.newsPanel && this.newsPanel.getVisible()) {
441
- let bIsNewsTileVisible = true;
442
- if (this.panelLoaded["Page"]?.loaded || this.panelLoaded["News"]?.loaded) {
443
- // In case News Panel fails to load remove the panel and apply styles for page to take full width
444
- if (this.panelLoaded["News"]?.loaded === false) {
445
- bIsNewsTileVisible = false;
446
- this.removeContent(this.newsPanel);
447
- } else if (this.panelLoaded["Page"]?.loaded === false) {
448
- this.removeContent(this.pagePanel);
449
- }
450
- this.adjustStyleLayout(bIsNewsTileVisible);
364
+ if (this.newsPanel && this.newsPanel.getVisible()) {
365
+ if (this.panelLoaded["News"]?.loaded) {
366
+ this.adjustStyleLayout();
451
367
  }
452
- } else if (this.pagePanel && this.panelLoaded["Page"]?.loaded) {
453
- // If News Panel is not present apply styles for page to take full width
454
- this.adjustStyleLayout(false);
455
368
  }
456
369
  },
457
370
  /**
458
- * Retrieves the generic placeholder content for the News and Pages container.
371
+ * Retrieves the generic placeholder content for the News container.
459
372
  *
460
- * @returns {string} The HTML string representing the News and Pages container's placeholder content.
373
+ * @returns {string} The HTML string representing the News container's placeholder content.
461
374
  */
462
375
  getGenericPlaceholderContent: function _getGenericPlaceholderContent() {
463
- return getNewsPagesPlaceholder();
376
+ return getNewsPlaceholder();
464
377
  }
465
378
  });
466
- return NewsAndPagesContainer;
379
+ return NewsContainer;
467
380
  });
468
- //# sourceMappingURL=NewsAndPagesContainer.js.map
381
+ //# sourceMappingURL=NewsContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsContainer.js","names":["sap","ui","define","__BaseContainer","___library","___utils_Device","___utils_placeholder_NewsPlaceholder","_interopRequireDefault","obj","__esModule","default","_iteratorSymbol","Symbol","iterator","_settle","pact","state","value","s","_Pact","v","o","bind","then","observer","prototype","onFulfilled","onRejected","result","callback","e","_this","_isSettledPact","thenable","_forTo","array","body","check","i","reject","_cycle","length","BaseContainer","_forOf","target","step","next","done","return","_fixup","TypeError","values","push","NewsType","OrientationType","DeviceType","getNewsPlaceholder","NewsContainer","extend","metadata","properties","newsFeedVisibility","type","group","defaultValue","visibility","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","panelLoaded","keyUserChange","isEndUserChange","isEndUser","newsType","None","init","_init","BaseContainer.prototype.init.call","setProperty","getDeviceType","Desktop","LargeDesktop","XLargeDesktop","Horizontal","Vertical","addStyleClass","addCustomSetting","_i18nBundle","getText","load","_load","aContent","getContent","_temp","oContent","checkEndUserChanges","Promise","resolve","getData","getProperty","getMetadata","getName","setVisible","_checkEndUserChanges","getIsEndUserChange","_getIsEndUserChange","newsVisibilityChangeHandler","_newsVisibilityChangeHandler","personalization","forEach","newsPanel","isNewsFeedVisible","newsPersonalization","_newsPersonalization","personalizations","Boolean","showCustomNewsFeed","Custom","showRssNewsFeed","NewsUrl","Default","newsFeedURL","customNewsFeedKey","customNewsFeedFileName","url","customFeedKey","String","setCustomNewsFeed","showDefaultNewsFeed","setDefaultNews","setURL","panelLoadedFn","_panelLoadedFn","sPanelType","oVal","adjustLayout","adjustStyleLayout","_adjustStyleLayout","newsContentWrapper","undefined","setWidth","_adjustLayout","getVisible","loaded","getGenericPlaceholderContent","_getGenericPlaceholderContent"],"sources":["NewsContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport VBox from \"sap/m/VBox\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport type { $NewsContainerSettings } from \"./NewsContainer\";\nimport NewsPanel from \"./NewsPanel\";\nimport { INewsFeedVisibiliyChange, INewsPersData } from \"./interface/KeyUserInterface\";\nimport { NewsType, OrientationType } from \"./library\";\nimport { DeviceType } from \"./utils/Device\";\nimport { getNewsPlaceholder } from \"./utils/placeholder/NewsPlaceholder\";\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean; count: number };\n}\n\ninterface EndUserChangeStatus {\n\tisEndUser: boolean;\n\tnewsType: NewsType;\n}\n\n/**\n *\n * Container class for managing and storing News.\n *\n * @extends BaseContainer\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.142\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.NewsContainer\n */\n\nexport default class NewsContainer extends BaseContainer {\n\tstatic renderer = {\n\t\t...BaseContainer.renderer,\n\t\tapiVersion: 2\n\t};\n\tstatic readonly metadata: MetadataOptions = {\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * News feed visibility flag\n\t\t\t */\n\t\t\tnewsFeedVisibility: { type: \"boolean\", group: \"Misc\", defaultValue: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\tprivate panelLoaded: IpanelLoaded = {};\n\tprivate newsPanel!: NewsPanel;\n\tprivate keyUserChange: boolean = false;\n\tprivate isEndUserChange: EndUserChangeStatus = { isEndUser: false, newsType: NewsType.None };\n\n\tconstructor(id?: string | $NewsContainerSettings);\n\tconstructor(id?: string, settings?: $NewsContainerSettings);\n\t/**\n\t * Constructor for the new News container.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $NewsContainerSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\t//check remove pages code\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis.panelLoaded = {};\n\n\t\tthis.setProperty(\n\t\t\t\"orientation\",\n\t\t\tthis.getDeviceType() === DeviceType.Desktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.LargeDesktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.XLargeDesktop\n\t\t\t\t? OrientationType.Horizontal\n\t\t\t\t: OrientationType.Vertical\n\t\t);\n\t\tthis.setProperty(\"compositeId\", \"NewsAndPages\");\n\t\tthis.addStyleClass(\"NewsAndPages\");\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"newsTitle\") as string);\n\t\tthis.addCustomSetting(\"groupTitle\", this._i18nBundle.getText(\"myInterestMsg\") as string);\n\t\tthis.addStyleClass(\"sapCuxNewsAndPagesContainer\");\n\t\tthis.addStyleClass(\"sapCuxHorizontalContainers\");\n\t}\n\n\t/**\n\t * Loads the News section.\n\t * Overrides the load method of the BaseContainer.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic async load() {\n\t\tconst aContent = this.getContent() as NewsPanel[];\n\t\tfor (const oContent of aContent) {\n\t\t\tif (!this.keyUserChange) {\n\t\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\t}\n\t\t\tawait oContent.getData();\n\n\t\t\t// If the newsVisibilityChangeHandler is invoked before the data is loaded,\n\t\t\t// it may result in the news panel being incorrectly displayed if it was already set hidden by the handler.\n\t\t\t// newsFeedVisibility is set as false, then hide the news panel\n\t\t\tconst newsFeedVisibility = this.getProperty(\"newsFeedVisibility\") as boolean;\n\t\t\t// if newsFeedVisibility is false, hide the news panel\n\t\t\tif (oContent && oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !newsFeedVisibility) {\n\t\t\t\toContent.setVisible(false);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.\n\t *\n\t * @private\n\t * @param {BasePanel} oContent - The content panel to evaluate, typically of type `sap.cux.home.NewsPanel`.\n\t */\n\tpublic checkEndUserChanges(oContent: BasePanel) {\n\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && oContent.getProperty(\"url\") && !this.keyUserChange) {\n\t\t\tthis.isEndUserChange.isEndUser = true;\n\t\t}\n\t}\n\n\t/**\n\t * Returns the current end-user change status.\n\t *\n\t * @private\n\t * @returns {EndUserChangeStatus} An object containing the end-user change flag and the news type.\n\t */\n\tpublic getIsEndUserChange(): EndUserChangeStatus {\n\t\treturn this.isEndUserChange;\n\t}\n\n\tpublic newsVisibilityChangeHandler(personalization: INewsFeedVisibiliyChange) {\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tif (personalization.isNewsFeedVisible) {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", true);\n\t\t\t\t\tnewsPanel.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\tnewsPanel.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic newsPersonalization(personalizations: INewsPersData) {\n\t\tconst aContent = this.getContent();\n\t\tlet type: NewsType;\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !this.isEndUserChange.isEndUser) {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tconst newsFeedVisibility = Boolean(this.getProperty(\"newsFeedVisibility\"));\n\t\t\t\tthis.keyUserChange = true;\n\n\t\t\t\tif (personalizations.showCustomNewsFeed) {\n\t\t\t\t\ttype = NewsType.Custom;\n\t\t\t\t} else if (personalizations.showRssNewsFeed) {\n\t\t\t\t\ttype = NewsType.NewsUrl;\n\t\t\t\t} else {\n\t\t\t\t\ttype = NewsType.Default;\n\t\t\t\t}\n\t\t\t\tnewsPanel.setProperty(\"type\", type);\n\t\t\t\tnewsPanel.setProperty(\"url\", personalizations.newsFeedURL);\n\t\t\t\tnewsPanel.setProperty(\"customFeedKey\", personalizations.customNewsFeedKey);\n\t\t\t\tnewsPanel.setProperty(\"customFileName\", personalizations.customNewsFeedFileName);\n\n\t\t\t\tif (newsFeedVisibility) {\n\t\t\t\t\tconst url = personalizations.newsFeedURL as string;\n\t\t\t\t\tnewsPanel.setVisible(true);\n\t\t\t\t\tconst customFeedKey = String(newsPanel.getProperty(\"customFeedKey\"));\n\t\t\t\t\tif (personalizations.showCustomNewsFeed && customFeedKey) {\n\t\t\t\t\t\tnewsPanel.setProperty(\"newsAvailable\", true);\n\t\t\t\t\t\tvoid newsPanel.setCustomNewsFeed(customFeedKey);\n\t\t\t\t\t} else if (personalizations.showDefaultNewsFeed) {\n\t\t\t\t\t\tvoid newsPanel.setDefaultNews();\n\t\t\t\t\t} else if (personalizations.showRssNewsFeed && url) {\n\t\t\t\t\t\tvoid newsPanel.setURL(url);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnewsPanel.setVisible(false);\n\t\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic panelLoadedFn(sPanelType: string, oVal: { loaded: boolean; count: number }) {\n\t\t// same issue of panelwrapper not available at this time\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tthis.newsPanel = oContent as NewsPanel;\n\t\t\t}\n\t\t});\n\t\tthis.panelLoaded[sPanelType] = oVal;\n\t\tthis.adjustLayout();\n\t}\n\n\tpublic adjustStyleLayout() {\n\t\tconst newsContentWrapper = this.newsPanel ? (this.newsPanel.getContent()?.[0] as VBox) : undefined;\n\t\tthis.newsPanel.adjustLayout();\n\t\tnewsContentWrapper?.setWidth(\"100%\");\n\t}\n\n\t/**\n\t * Adjusts the layout of the all panels in the container.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic adjustLayout() {\n\t\tif (this.newsPanel && this.newsPanel.getVisible()) {\n\t\t\tif (this.panelLoaded[\"News\"]?.loaded) {\n\t\t\t\tthis.adjustStyleLayout();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the News container.\n\t *\n\t * @returns {string} The HTML string representing the News container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getNewsPlaceholder();\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,sGAAAC,eAAA,EAAAC,UAAA,EAAAC,eAAA,EAAAC,oCAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAoKaG,eAAA,GAAkB,aAAc,OAAOC,MAAM,KAAK,WAAW,GAAIA,MAAM,CAACC,QAAQ,KAAKD,MAAM,CAACC,QAAQ,GAAGD,MAAM,CAAC,iBAAiB,CAAC,CAAC,GAAI,YAAY;EA7HvJ,SAASE,OAAOA,CAACC,IAAI,EAAEC,KAAK,EAAEC,KAAK,EAAE;IAC3C,IAAI,CAACF,IAAI,CAACG,CAAC,EAAE;MACZ,IAAID,KAAK,YAAYE,KAAK,EAAE;QAC3B,IAAIF,KAAK,CAACC,CAAC,EAAE;UAC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AkB,GAAG,IAAI,CAAC5B,SAAS,GAAI,IAAI,CAACA,SAAS,CAAClB,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAY+C,SAAS;MAClG,IAAI,CAAC7B,SAAS,CAACyB,YAAY,CAAC,CAAC;MAC7BG,kBAAkB,EAAEE,QAAQ,CAAC,MAAM,CAAC;IACrC,CAAC;IAED;AACD;AACA;AACA;AACA;AACA;IACQL,YAAY,WAAAM,cAAA,EAAG;MACrB,IAAI,IAAI,CAAC/B,SAAS,IAAI,IAAI,CAACA,SAAS,CAACgC,UAAU,CAAC,CAAC,EAAE;QAClD,IAAI,IAAI,CAACzE,WAAW,CAAC,MAAM,CAAC,EAAE0E,MAAM,EAAE;UACrC,IAAI,CAACP,iBAAiB,CAAC,CAAC;QACzB;MACD;IACD,CAAC;IAED;AACD;AACA;AACA;AACA;IACWQ,4BAA4B,WAAAC,8BAAA,EAAW;MAChD,OAAO7F,kBAAkB,CAAC,CAAC;IAC5B;EAAC;EAAA,OA3MmBC,aAAa;AAAA","ignoreList":[]}
@@ -7,13 +7,12 @@ import VBox from "sap/m/VBox";
7
7
  import type { MetadataOptions } from "sap/ui/core/Element";
8
8
  import BaseContainer from "./BaseContainer";
9
9
  import BasePanel from "./BasePanel";
10
- import type { $NewsAndPagesContainerSettings } from "./NewsAndPagesContainer";
10
+ import type { $NewsContainerSettings } from "./NewsContainer";
11
11
  import NewsPanel from "./NewsPanel";
12
- import PagePanel from "./PagePanel";
13
- import { INewsFeedVisibiliyChange, INewsPersData, ISpacePagePersonalization } from "./interface/KeyUserInterface";
12
+ import { INewsFeedVisibiliyChange, INewsPersData } from "./interface/KeyUserInterface";
14
13
  import { NewsType, OrientationType } from "./library";
15
14
  import { DeviceType } from "./utils/Device";
16
- import { getNewsPagesPlaceholder } from "./utils/placeholder/NewsAndPagesPlaceholder";
15
+ import { getNewsPlaceholder } from "./utils/placeholder/NewsPlaceholder";
17
16
 
18
17
  interface IpanelLoaded {
19
18
  [key: string]: { loaded: boolean; count: number };
@@ -26,35 +25,27 @@ interface EndUserChangeStatus {
26
25
 
27
26
  /**
28
27
  *
29
- * Container class for managing and storing News and Pages.
28
+ * Container class for managing and storing News.
30
29
  *
31
30
  * @extends BaseContainer
32
31
  *
33
32
  * @author SAP SE
34
33
  * @version 0.0.1
35
- * @since 1.121
34
+ * @since 1.142
36
35
  *
37
36
  * @private
38
37
  * @ui5-restricted ux.eng.s4producthomes1
39
38
  *
40
- * @alias sap.cux.home.NewsAndPagesContainer
39
+ * @alias sap.cux.home.NewsContainer
41
40
  */
42
41
 
43
- export default class NewsAndPagesContainer extends BaseContainer {
42
+ export default class NewsContainer extends BaseContainer {
44
43
  static renderer = {
45
44
  ...BaseContainer.renderer,
46
45
  apiVersion: 2
47
46
  };
48
47
  static readonly metadata: MetadataOptions = {
49
48
  properties: {
50
- /**
51
- * Color Personalizations for Spaces & Pages
52
- */
53
- colorPersonalizations: { type: "array", group: "Misc", defaultValue: [], visibility: "hidden" },
54
- /**
55
- * Icon Personalizations for Spaces & Pages
56
- */
57
- iconPersonalizations: { type: "array", group: "Misc", defaultValue: [], visibility: "hidden" },
58
49
  /**
59
50
  * News feed visibility flag
60
51
  */
@@ -63,23 +54,23 @@ export default class NewsAndPagesContainer extends BaseContainer {
63
54
  };
64
55
 
65
56
  private panelLoaded: IpanelLoaded = {};
66
- private pagePanel!: PagePanel;
67
57
  private newsPanel!: NewsPanel;
68
58
  private keyUserChange: boolean = false;
69
59
  private isEndUserChange: EndUserChangeStatus = { isEndUser: false, newsType: NewsType.None };
70
60
 
71
- constructor(id?: string | $NewsAndPagesContainerSettings);
72
- constructor(id?: string, settings?: $NewsAndPagesContainerSettings);
61
+ constructor(id?: string | $NewsContainerSettings);
62
+ constructor(id?: string, settings?: $NewsContainerSettings);
73
63
  /**
74
- * Constructor for the new News and Pages container.
64
+ * Constructor for the new News container.
75
65
  *
76
66
  * @param {string} [id] ID for the new control, generated automatically if an ID is not provided
77
67
  * @param {object} [settings] Initial settings for the new control
78
68
  */
79
- public constructor(id?: string, settings?: $NewsAndPagesContainerSettings) {
69
+ public constructor(id?: string, settings?: $NewsContainerSettings) {
80
70
  super(id, settings);
81
71
  }
82
72
 
73
+ //check remove pages code
83
74
  /**
84
75
  * Init lifecycle method
85
76
  *
@@ -98,19 +89,23 @@ export default class NewsAndPagesContainer extends BaseContainer {
98
89
  ? OrientationType.Horizontal
99
90
  : OrientationType.Vertical
100
91
  );
101
- this.addCustomSetting("title", this._i18nBundle.getText("myInterestMsg") as string);
92
+ this.setProperty("compositeId", "NewsAndPages");
93
+ this.addStyleClass("NewsAndPages");
94
+ this.addCustomSetting("title", this._i18nBundle.getText("newsTitle") as string);
95
+ this.addCustomSetting("groupTitle", this._i18nBundle.getText("myInterestMsg") as string);
102
96
  this.addStyleClass("sapCuxNewsAndPagesContainer");
97
+ this.addStyleClass("sapCuxHorizontalContainers");
103
98
  }
104
99
 
105
100
  /**
106
- * Loads the News and Pages section.
101
+ * Loads the News section.
107
102
  * Overrides the load method of the BaseContainer.
108
103
  *
109
104
  * @private
110
105
  * @override
111
106
  */
112
107
  public async load() {
113
- const aContent = this.getContent() as PagePanel[] | NewsPanel[];
108
+ const aContent = this.getContent() as NewsPanel[];
114
109
  for (const oContent of aContent) {
115
110
  if (!this.keyUserChange) {
116
111
  this.checkEndUserChanges(oContent);
@@ -128,46 +123,6 @@ export default class NewsAndPagesContainer extends BaseContainer {
128
123
  }
129
124
  }
130
125
 
131
- /**
132
- * Sets property value for colorPersonalization.
133
- * Overridden to update cached personalizations.
134
- *
135
- * @private
136
- * @override
137
- * @returns {NewsAndPagesContainer} the container for chaining
138
- */
139
- setColorPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {
140
- const existingPers = (this.getProperty("colorPersonalizations") as ISpacePagePersonalization[]) || [];
141
- const updatedPers = existingPers.concat(personalizations);
142
- this.setProperty("colorPersonalizations", updatedPers);
143
- this.getContent().forEach((oContent) => {
144
- if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
145
- (oContent as PagePanel).applyColorPersonalizations(updatedPers);
146
- }
147
- });
148
- return this;
149
- }
150
-
151
- /**
152
- * Sets property value for iconPersonalization.
153
- * Overridden to update cached personalizations.
154
- *
155
- * @private
156
- * @override
157
- * @returns {NewsAndPagesContainer} the container for chaining
158
- */
159
- setIconPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {
160
- const existingPers = (this.getProperty("iconPersonalizations") as ISpacePagePersonalization[]) || [];
161
- const updatedPers = existingPers.concat(personalizations);
162
- this.setProperty("iconPersonalizations", updatedPers);
163
- this.getContent().forEach((oContent) => {
164
- if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
165
- (oContent as PagePanel).applyIconPersonalizations(updatedPers);
166
- }
167
- });
168
- return this;
169
- }
170
-
171
126
  /**
172
127
  * Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.
173
128
  *
@@ -252,9 +207,7 @@ export default class NewsAndPagesContainer extends BaseContainer {
252
207
  // same issue of panelwrapper not available at this time
253
208
  const aContent = this.getContent();
254
209
  aContent.forEach((oContent: BasePanel) => {
255
- if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
256
- this.pagePanel = oContent as PagePanel;
257
- } else if (oContent.getMetadata().getName() === "sap.cux.home.NewsPanel") {
210
+ if (oContent.getMetadata().getName() === "sap.cux.home.NewsPanel") {
258
211
  this.newsPanel = oContent as NewsPanel;
259
212
  }
260
213
  });
@@ -262,41 +215,10 @@ export default class NewsAndPagesContainer extends BaseContainer {
262
215
  this.adjustLayout();
263
216
  }
264
217
 
265
- public adjustStyleLayout(bIsNewsTileVisible: boolean) {
266
- const sDeviceType = this.getDeviceType();
218
+ public adjustStyleLayout() {
267
219
  const newsContentWrapper = this.newsPanel ? (this.newsPanel.getContent()?.[0] as VBox) : undefined;
268
- const pagesContentWrapper = this.pagePanel ? (this.pagePanel.getContent()?.[0] as VBox) : undefined;
269
- if (bIsNewsTileVisible) {
270
- this.newsPanel.adjustLayout();
271
- }
272
- if (sDeviceType === DeviceType.Desktop || sDeviceType === DeviceType.LargeDesktop || sDeviceType === DeviceType.XLargeDesktop) {
273
- if (bIsNewsTileVisible) {
274
- pagesContentWrapper?.setWidth("100%");
275
- }
276
- this.setOrientation(OrientationType.Horizontal);
277
- newsContentWrapper?.setWidth("100%");
278
- newsContentWrapper?.addStyleClass("newsTileMaxWidth");
279
- } else if (sDeviceType === DeviceType.Tablet) {
280
- this.setOrientation(OrientationType.Vertical);
281
- pagesContentWrapper?.setWidth("100%");
282
- pagesContentWrapper?.setJustifyContent("Start");
283
- newsContentWrapper?.setWidth("calc(100vw - 64px)");
284
- newsContentWrapper?.removeStyleClass("newsTileMaxWidth");
285
- } else {
286
- this.setOrientation(OrientationType.Vertical);
287
- newsContentWrapper?.setWidth("calc(100vw - 16px)");
288
- }
289
-
290
- if (pagesContentWrapper) {
291
- setTimeout(
292
- this.pagePanel.attachResizeHandler.bind(
293
- this.pagePanel,
294
- bIsNewsTileVisible,
295
- this.getDomRef()?.clientWidth || 0,
296
- pagesContentWrapper
297
- )
298
- );
299
- }
220
+ this.newsPanel.adjustLayout();
221
+ newsContentWrapper?.setWidth("100%");
300
222
  }
301
223
 
302
224
  /**
@@ -306,30 +228,19 @@ export default class NewsAndPagesContainer extends BaseContainer {
306
228
  * @override
307
229
  */
308
230
  public adjustLayout() {
309
- if (this.pagePanel && this.newsPanel && this.newsPanel.getVisible()) {
310
- let bIsNewsTileVisible = true;
311
- if (this.panelLoaded["Page"]?.loaded || this.panelLoaded["News"]?.loaded) {
312
- // In case News Panel fails to load remove the panel and apply styles for page to take full width
313
- if (this.panelLoaded["News"]?.loaded === false) {
314
- bIsNewsTileVisible = false;
315
- this.removeContent(this.newsPanel);
316
- } else if (this.panelLoaded["Page"]?.loaded === false) {
317
- this.removeContent(this.pagePanel);
318
- }
319
- this.adjustStyleLayout(bIsNewsTileVisible);
231
+ if (this.newsPanel && this.newsPanel.getVisible()) {
232
+ if (this.panelLoaded["News"]?.loaded) {
233
+ this.adjustStyleLayout();
320
234
  }
321
- } else if (this.pagePanel && this.panelLoaded["Page"]?.loaded) {
322
- // If News Panel is not present apply styles for page to take full width
323
- this.adjustStyleLayout(false);
324
235
  }
325
236
  }
326
237
 
327
238
  /**
328
- * Retrieves the generic placeholder content for the News and Pages container.
239
+ * Retrieves the generic placeholder content for the News container.
329
240
  *
330
- * @returns {string} The HTML string representing the News and Pages container's placeholder content.
241
+ * @returns {string} The HTML string representing the News container's placeholder content.
331
242
  */
332
243
  protected getGenericPlaceholderContent(): string {
333
- return getNewsPagesPlaceholder();
244
+ return getNewsPlaceholder();
334
245
  }
335
246
  }