@sapui5/sap.cux.home 1.138.0 → 1.139.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 (298) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +1 -1
  3. package/src/sap/cux/home/App.d.ts +2 -2
  4. package/src/sap/cux/home/App.js +2 -2
  5. package/src/sap/cux/home/App.js.map +1 -1
  6. package/src/sap/cux/home/App.ts +2 -2
  7. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  8. package/src/sap/cux/home/AppsAdditionPanel.js +17 -10
  9. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  10. package/src/sap/cux/home/AppsAdditionPanel.ts +19 -12
  11. package/src/sap/cux/home/AppsContainer.d.ts +2 -3
  12. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  13. package/src/sap/cux/home/AppsContainer.js +5 -8
  14. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  15. package/src/sap/cux/home/AppsContainer.ts +4 -8
  16. package/src/sap/cux/home/BaseApp.d.ts +2 -2
  17. package/src/sap/cux/home/BaseApp.js +2 -2
  18. package/src/sap/cux/home/BaseApp.js.map +1 -1
  19. package/src/sap/cux/home/BaseApp.ts +2 -2
  20. package/src/sap/cux/home/BaseAppPanel.js +1 -1
  21. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  22. package/src/sap/cux/home/BaseAppPanel.ts +1 -1
  23. package/src/sap/cux/home/BaseContainer.d.ts +2 -2
  24. package/src/sap/cux/home/BaseContainer.js +3 -3
  25. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  26. package/src/sap/cux/home/BaseContainer.ts +3 -3
  27. package/src/sap/cux/home/BaseContainerRenderer.d.ts +4 -4
  28. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  29. package/src/sap/cux/home/BaseContainerRenderer.js +17 -19
  30. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  31. package/src/sap/cux/home/BaseContainerRenderer.ts +21 -25
  32. package/src/sap/cux/home/BaseLayout.d.ts +2 -2
  33. package/src/sap/cux/home/BaseLayout.js +2 -2
  34. package/src/sap/cux/home/BaseLayout.js.map +1 -1
  35. package/src/sap/cux/home/BaseLayout.ts +2 -2
  36. package/src/sap/cux/home/BaseNewsItem.d.ts +2 -2
  37. package/src/sap/cux/home/BaseNewsItem.js +2 -2
  38. package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
  39. package/src/sap/cux/home/BaseNewsItem.ts +2 -2
  40. package/src/sap/cux/home/BaseNewsPanel.d.ts +2 -2
  41. package/src/sap/cux/home/BaseNewsPanel.js +2 -2
  42. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  43. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  44. package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
  45. package/src/sap/cux/home/BasePagePanel.js +2 -2
  46. package/src/sap/cux/home/BasePagePanel.js.map +1 -1
  47. package/src/sap/cux/home/BasePagePanel.ts +2 -2
  48. package/src/sap/cux/home/BasePanel.d.ts +2 -2
  49. package/src/sap/cux/home/BasePanel.js +2 -2
  50. package/src/sap/cux/home/BasePanel.js.map +1 -1
  51. package/src/sap/cux/home/BasePanel.ts +2 -2
  52. package/src/sap/cux/home/BaseSettingsDialog.d.ts +2 -2
  53. package/src/sap/cux/home/BaseSettingsDialog.js +2 -2
  54. package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
  55. package/src/sap/cux/home/BaseSettingsDialog.ts +2 -2
  56. package/src/sap/cux/home/BaseSettingsPanel.d.ts +3 -3
  57. package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
  58. package/src/sap/cux/home/BaseSettingsPanel.js +4 -3
  59. package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
  60. package/src/sap/cux/home/BaseSettingsPanel.ts +6 -4
  61. package/src/sap/cux/home/CardsPanel.d.ts +2 -2
  62. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  63. package/src/sap/cux/home/CardsPanel.js +4 -4
  64. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  65. package/src/sap/cux/home/CardsPanel.ts +4 -7
  66. package/src/sap/cux/home/ContentAdditionDialog.js +1 -1
  67. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  68. package/src/sap/cux/home/ContentAdditionDialog.ts +1 -1
  69. package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
  70. package/src/sap/cux/home/ErrorPanel.js +2 -2
  71. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  72. package/src/sap/cux/home/ErrorPanel.ts +2 -2
  73. package/src/sap/cux/home/FavAppPanel.d.ts +2 -2
  74. package/src/sap/cux/home/FavAppPanel.js +2 -2
  75. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  76. package/src/sap/cux/home/FavAppPanel.ts +2 -2
  77. package/src/sap/cux/home/FrequentAppPanel.d.ts +2 -2
  78. package/src/sap/cux/home/FrequentAppPanel.js +2 -2
  79. package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
  80. package/src/sap/cux/home/FrequentAppPanel.ts +2 -2
  81. package/src/sap/cux/home/Group.d.ts +2 -2
  82. package/src/sap/cux/home/Group.js +2 -2
  83. package/src/sap/cux/home/Group.js.map +1 -1
  84. package/src/sap/cux/home/Group.ts +2 -2
  85. package/src/sap/cux/home/IToDoPanel.d.ts +2 -2
  86. package/src/sap/cux/home/IToDoPanel.js.map +1 -1
  87. package/src/sap/cux/home/IToDoPanel.ts +2 -2
  88. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  89. package/src/sap/cux/home/InsightsAdditionPanel.js +4 -7
  90. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  91. package/src/sap/cux/home/InsightsAdditionPanel.ts +4 -8
  92. package/src/sap/cux/home/InsightsContainer.d.ts +2 -3
  93. package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
  94. package/src/sap/cux/home/InsightsContainer.js +6 -6
  95. package/src/sap/cux/home/InsightsContainer.js.map +1 -1
  96. package/src/sap/cux/home/InsightsContainer.ts +13 -7
  97. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  98. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +5 -3
  99. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  100. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +4 -2
  101. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts +11 -5
  102. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
  103. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +160 -82
  104. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  105. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +164 -82
  106. package/src/sap/cux/home/Layout.d.ts +2 -3
  107. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  108. package/src/sap/cux/home/Layout.js +2 -3
  109. package/src/sap/cux/home/Layout.js.map +1 -1
  110. package/src/sap/cux/home/Layout.ts +2 -4
  111. package/src/sap/cux/home/MenuItem.d.ts +2 -2
  112. package/src/sap/cux/home/MenuItem.js +2 -2
  113. package/src/sap/cux/home/MenuItem.js.map +1 -1
  114. package/src/sap/cux/home/MenuItem.ts +2 -2
  115. package/src/sap/cux/home/NewsAndPagesContainer.d.ts +24 -3
  116. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
  117. package/src/sap/cux/home/NewsAndPagesContainer.js +49 -21
  118. package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
  119. package/src/sap/cux/home/NewsAndPagesContainer.ts +53 -21
  120. package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
  121. package/src/sap/cux/home/NewsGroup.js +11 -6
  122. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  123. package/src/sap/cux/home/NewsGroup.ts +11 -8
  124. package/src/sap/cux/home/NewsPanel.d.ts +36 -7
  125. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  126. package/src/sap/cux/home/NewsPanel.gen.d.ts +0 -91
  127. package/src/sap/cux/home/NewsPanel.js +281 -200
  128. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  129. package/src/sap/cux/home/NewsPanel.ts +168 -102
  130. package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
  131. package/src/sap/cux/home/NewsSettingsPanel.js +10 -6
  132. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  133. package/src/sap/cux/home/NewsSettingsPanel.ts +12 -6
  134. package/src/sap/cux/home/NoDataContainer.d.ts +2 -3
  135. package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
  136. package/src/sap/cux/home/NoDataContainer.js +2 -2
  137. package/src/sap/cux/home/NoDataContainer.js.map +1 -1
  138. package/src/sap/cux/home/NoDataContainer.ts +2 -2
  139. package/src/sap/cux/home/PagePanel.d.ts +2 -2
  140. package/src/sap/cux/home/PagePanel.js +2 -2
  141. package/src/sap/cux/home/PagePanel.js.map +1 -1
  142. package/src/sap/cux/home/PagePanel.ts +2 -2
  143. package/src/sap/cux/home/RecentAppPanel.d.ts +2 -2
  144. package/src/sap/cux/home/RecentAppPanel.js +2 -2
  145. package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
  146. package/src/sap/cux/home/RecentAppPanel.ts +2 -2
  147. package/src/sap/cux/home/RecommendedAppPanel.d.ts +2 -2
  148. package/src/sap/cux/home/RecommendedAppPanel.js +2 -2
  149. package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
  150. package/src/sap/cux/home/RecommendedAppPanel.ts +2 -2
  151. package/src/sap/cux/home/SituationPanel.d.ts +2 -2
  152. package/src/sap/cux/home/SituationPanel.js +2 -2
  153. package/src/sap/cux/home/SituationPanel.js.map +1 -1
  154. package/src/sap/cux/home/SituationPanel.ts +2 -2
  155. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +2 -2
  156. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  157. package/src/sap/cux/home/SpaceInsightsPanel.js +6 -3
  158. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  159. package/src/sap/cux/home/SpaceInsightsPanel.ts +6 -3
  160. package/src/sap/cux/home/SpacePanel.d.ts +2 -2
  161. package/src/sap/cux/home/SpacePanel.js +2 -2
  162. package/src/sap/cux/home/SpacePanel.js.map +1 -1
  163. package/src/sap/cux/home/SpacePanel.ts +2 -2
  164. package/src/sap/cux/home/TaskPanel.d.ts +2 -2
  165. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  166. package/src/sap/cux/home/TaskPanel.js +4 -11
  167. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  168. package/src/sap/cux/home/TaskPanel.ts +5 -11
  169. package/src/sap/cux/home/TilesPanel.d.ts +2 -2
  170. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  171. package/src/sap/cux/home/TilesPanel.js +6 -6
  172. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  173. package/src/sap/cux/home/TilesPanel.ts +6 -12
  174. package/src/sap/cux/home/ToDoPanel.d.ts +2 -2
  175. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  176. package/src/sap/cux/home/ToDoPanel.js +4 -19
  177. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  178. package/src/sap/cux/home/ToDoPanel.ts +4 -20
  179. package/src/sap/cux/home/ToDosContainer.d.ts +2 -3
  180. package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
  181. package/src/sap/cux/home/ToDosContainer.js +5 -5
  182. package/src/sap/cux/home/ToDosContainer.js.map +1 -1
  183. package/src/sap/cux/home/ToDosContainer.ts +3 -3
  184. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  185. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -0
  186. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  187. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +1 -0
  188. package/src/sap/cux/home/i18n/messagebundle.properties +17 -5
  189. package/src/sap/cux/home/i18n/messagebundle_ar.properties +5 -5
  190. package/src/sap/cux/home/i18n/messagebundle_bg.properties +5 -5
  191. package/src/sap/cux/home/i18n/messagebundle_ca.properties +5 -5
  192. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +5 -5
  193. package/src/sap/cux/home/i18n/messagebundle_cs.properties +5 -5
  194. package/src/sap/cux/home/i18n/messagebundle_cy.properties +5 -5
  195. package/src/sap/cux/home/i18n/messagebundle_da.properties +5 -5
  196. package/src/sap/cux/home/i18n/messagebundle_de.properties +15 -15
  197. package/src/sap/cux/home/i18n/messagebundle_el.properties +5 -5
  198. package/src/sap/cux/home/i18n/messagebundle_en.properties +5 -5
  199. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +5 -5
  200. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +12 -6
  201. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +12 -6
  202. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +5 -5
  203. package/src/sap/cux/home/i18n/messagebundle_es.properties +5 -5
  204. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +5 -5
  205. package/src/sap/cux/home/i18n/messagebundle_et.properties +5 -5
  206. package/src/sap/cux/home/i18n/messagebundle_fi.properties +5 -5
  207. package/src/sap/cux/home/i18n/messagebundle_fr.properties +5 -5
  208. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +5 -5
  209. package/src/sap/cux/home/i18n/messagebundle_hi.properties +5 -5
  210. package/src/sap/cux/home/i18n/messagebundle_hr.properties +5 -5
  211. package/src/sap/cux/home/i18n/messagebundle_hu.properties +5 -5
  212. package/src/sap/cux/home/i18n/messagebundle_id.properties +6 -6
  213. package/src/sap/cux/home/i18n/messagebundle_it.properties +5 -5
  214. package/src/sap/cux/home/i18n/messagebundle_iw.properties +5 -5
  215. package/src/sap/cux/home/i18n/messagebundle_ja.properties +9 -9
  216. package/src/sap/cux/home/i18n/messagebundle_kk.properties +5 -5
  217. package/src/sap/cux/home/i18n/messagebundle_ko.properties +5 -5
  218. package/src/sap/cux/home/i18n/messagebundle_lt.properties +5 -5
  219. package/src/sap/cux/home/i18n/messagebundle_lv.properties +5 -5
  220. package/src/sap/cux/home/i18n/messagebundle_mk.properties +5 -5
  221. package/src/sap/cux/home/i18n/messagebundle_ms.properties +5 -5
  222. package/src/sap/cux/home/i18n/messagebundle_nl.properties +5 -5
  223. package/src/sap/cux/home/i18n/messagebundle_no.properties +5 -5
  224. package/src/sap/cux/home/i18n/messagebundle_pl.properties +5 -5
  225. package/src/sap/cux/home/i18n/messagebundle_pt.properties +5 -5
  226. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +5 -5
  227. package/src/sap/cux/home/i18n/messagebundle_ro.properties +5 -5
  228. package/src/sap/cux/home/i18n/messagebundle_ru.properties +5 -5
  229. package/src/sap/cux/home/i18n/messagebundle_sh.properties +5 -5
  230. package/src/sap/cux/home/i18n/messagebundle_sk.properties +6 -6
  231. package/src/sap/cux/home/i18n/messagebundle_sl.properties +5 -5
  232. package/src/sap/cux/home/i18n/messagebundle_sr.properties +5 -5
  233. package/src/sap/cux/home/i18n/messagebundle_sv.properties +5 -5
  234. package/src/sap/cux/home/i18n/messagebundle_th.properties +7 -7
  235. package/src/sap/cux/home/i18n/messagebundle_tr.properties +5 -5
  236. package/src/sap/cux/home/i18n/messagebundle_uk.properties +6 -6
  237. package/src/sap/cux/home/i18n/messagebundle_vi.properties +5 -5
  238. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +5 -5
  239. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +5 -5
  240. package/src/sap/cux/home/interface/CardsInterface.d.ts +1 -5
  241. package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
  242. package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
  243. package/src/sap/cux/home/interface/CardsInterface.ts +1 -1
  244. package/src/sap/cux/home/interface/KeyUserInterface.d.ts +2 -0
  245. package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
  246. package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
  247. package/src/sap/cux/home/interface/KeyUserInterface.ts +2 -0
  248. package/src/sap/cux/home/library.d.ts +26 -15
  249. package/src/sap/cux/home/library.d.ts.map +1 -1
  250. package/src/sap/cux/home/library.js +26 -15
  251. package/src/sap/cux/home/library.js.map +1 -1
  252. package/src/sap/cux/home/library.ts +27 -15
  253. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +0 -8
  254. package/src/sap/cux/home/themes/base/NewsAndPagesContainer.less +4 -0
  255. package/src/sap/cux/home/themes/base/ToDosContainer.less +2 -1
  256. package/src/sap/cux/home/utils/CommonUtils.d.ts +1 -1
  257. package/src/sap/cux/home/utils/CommonUtils.d.ts.map +1 -1
  258. package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
  259. package/src/sap/cux/home/utils/CommonUtils.ts +5 -2
  260. package/src/sap/cux/home/utils/FeatureUtils.js +0 -2
  261. package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
  262. package/src/sap/cux/home/utils/FeatureUtils.ts +3 -3
  263. package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
  264. package/src/sap/cux/home/utils/HttpHelper.ts +1 -1
  265. package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +1 -1
  266. package/src/sap/cux/home/utils/KeyUserPersonalization.js +0 -1
  267. package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +1 -1
  268. package/src/sap/cux/home/utils/KeyUserPersonalization.ts +0 -1
  269. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +9 -4
  270. package/src/sap/cux/home/{AppsContainerGenericPlaceholder.d.ts → utils/placeholder/AppsPlaceholder.d.ts} +2 -2
  271. package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.d.ts.map +1 -0
  272. package/src/sap/cux/home/{AppsContainerGenericPlaceholder.js → utils/placeholder/AppsPlaceholder.js} +1 -1
  273. package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.js.map +1 -0
  274. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +8 -0
  275. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +1 -0
  276. package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.js → utils/placeholder/InsightsPlaceholder.js} +1 -1
  277. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +1 -0
  278. package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.d.ts → utils/placeholder/NewsAndPagesPlaceholder.d.ts} +3 -3
  279. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +1 -0
  280. package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.js → utils/placeholder/NewsAndPagesPlaceholder.js} +1 -1
  281. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +1 -0
  282. package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.d.ts → utils/placeholder/ToDosPlaceholder.d.ts} +2 -2
  283. package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.d.ts.map +1 -0
  284. package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.js → utils/placeholder/ToDosPlaceholder.js} +1 -1
  285. package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.js.map +1 -0
  286. package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts.map +0 -1
  287. package/src/sap/cux/home/AppsContainerGenericPlaceholder.js.map +0 -1
  288. package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts.map +0 -1
  289. package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js.map +0 -1
  290. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts +0 -8
  291. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts.map +0 -1
  292. package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js.map +0 -1
  293. package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts.map +0 -1
  294. package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js.map +0 -1
  295. /package/src/sap/cux/home/{AppsContainerGenericPlaceholder.ts → utils/placeholder/AppsPlaceholder.ts} +0 -0
  296. /package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.ts → utils/placeholder/InsightsPlaceholder.ts} +0 -0
  297. /package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.ts → utils/placeholder/NewsAndPagesPlaceholder.ts} +0 -0
  298. /package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.ts → utils/placeholder/ToDosPlaceholder.ts} +0 -0
@@ -2,7 +2,7 @@
2
2
  * SAP UI development toolkit for HTML5 (SAPUI5)
3
3
  * * (c) Copyright 2009-2025 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "sap/m/MessageBox", "sap/m/MessageStrip", "sap/m/MessageToast", "sap/m/Toolbar", "sap/m/VBox", "sap/m/library", "sap/ui/core/EventBus", "sap/ui/core/message/MessageType", "sap/ui/layout/form/SimpleForm", "sap/ui/unified/FileUploader", "sap/ushell/Container", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./utils/Constants", "./utils/HttpHelper"], function (Button, CheckBox, Input, Label, MessageBox, MessageStrip, MessageToast, Toolbar, VBox, Library, EventBus, MessageType, SimpleForm, FileUploader, Container, __BaseSettingsPanel, ___flexibility_Layoutflexibility, ___utils_Constants, __HttpHelper) {
5
+ sap.ui.define(["sap/m/Button", "sap/m/Input", "sap/m/Label", "sap/m/MessageBox", "sap/m/MessageStrip", "sap/m/MessageToast", "sap/m/RadioButton", "sap/m/Toolbar", "sap/m/VBox", "sap/m/library", "sap/ui/core/EventBus", "sap/ui/core/message/MessageType", "sap/ui/layout/form/SimpleForm", "sap/ui/unified/FileUploader", "sap/ushell/Container", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./library", "./utils/Constants", "./utils/HttpHelper"], function (Button, Input, Label, MessageBox, MessageStrip, MessageToast, RadioButton, Toolbar, VBox, Library, EventBus, MessageType, SimpleForm, FileUploader, Container, __BaseSettingsPanel, ___flexibility_Layoutflexibility, ___library, ___utils_Constants, __HttpHelper) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
@@ -21,6 +21,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
21
21
  }
22
22
  const BaseSettingsPanel = _interopRequireDefault(__BaseSettingsPanel);
23
23
  const CHANGE_TYPES = ___flexibility_Layoutflexibility["CHANGE_TYPES"];
24
+ const NewsType = ___library["NewsType"];
24
25
  const DEFAULT_NEWS_URL = ___utils_Constants["DEFAULT_NEWS_URL"];
25
26
  const KEYUSER_SETTINGS_PANELS_KEYS = ___utils_Constants["KEYUSER_SETTINGS_PANELS_KEYS"];
26
27
  const HttpHelper = _interopRequireDefault(__HttpHelper);
@@ -94,18 +95,22 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
94
95
  this.controlMap.set(wrapperVBoxId, wrapperVBox);
95
96
  return wrapperVBox;
96
97
  },
98
+ checkNewsType: function _checkNewsType(type) {
99
+ if (this._getPanel().getProperty("type") === type) return true;
100
+ return false;
101
+ },
97
102
  isValidChanges: function _isValidChanges(newsVisible) {
98
103
  try {
99
104
  const _this = this;
100
- function _temp4() {
105
+ function _temp5() {
101
106
  return _this.validChanges;
102
107
  }
103
108
  _this.validChanges = true;
104
109
  const fileUploader = _this.getFileUploader();
105
110
  const keyUserChangeContent = _this.getCurrentKeyUserChange();
106
- const showCustom = _this.customNewsVisibility === undefined ? Boolean(_this._getPanel().getProperty("showCustom")) : _this.customNewsVisibility;
107
- const showDefault = _this.defaultNewsVisibility ?? !!_this._getPanel().getProperty("showDefault");
108
- const _temp3 = function () {
111
+ const showCustom = _this.customNewsVisibility ?? !!_this.checkNewsType(NewsType.Custom);
112
+ const showDefault = _this.defaultNewsVisibility ?? !!_this.checkNewsType(NewsType.Default);
113
+ const _temp4 = function () {
109
114
  if (_this.getNewsFeedUploadBtn().getEnabled()) {
110
115
  if (showCustom) {
111
116
  MessageBox.error(String(_this._i18nBundle.getText("newsFeedSaveUploadChanges")));
@@ -116,24 +121,32 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
116
121
  }
117
122
  }
118
123
  } else {
119
- const _temp2 = function () {
124
+ const _temp3 = function () {
120
125
  if (showCustom && fileUploader.getValue() === "" && newsVisible) {
121
126
  _this.showMessageStrip(true, MessageType.Error, "noNewsFileError");
122
127
  _this.validChanges = false;
123
128
  } else {
124
- const _temp = function () {
129
+ const _temp2 = function () {
125
130
  if (!showCustom && !showDefault && newsVisible && !_this.getMessageStrip().getVisible()) {
126
131
  const newsUrl = keyUserChangeContent.newsFeedURL;
127
- return Promise.resolve(_this._getPanel().setURL(String(newsUrl))).then(function () {});
132
+ const _temp = function () {
133
+ if (!newsUrl?.trim()) {
134
+ _this.showMessageStrip(true, MessageType.Error, "invalidNewsUrl");
135
+ _this.validChanges = false;
136
+ } else {
137
+ return Promise.resolve(_this._getPanel().setURL(String(newsUrl))).then(function () {});
138
+ }
139
+ }();
140
+ if (_temp && _temp.then) return _temp.then(function () {});
128
141
  }
129
142
  }();
130
- if (_temp && _temp.then) return _temp.then(function () {});
143
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
131
144
  }
132
145
  }();
133
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
146
+ if (_temp3 && _temp3.then) return _temp3.then(function () {});
134
147
  }
135
148
  }();
136
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3));
149
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4));
137
150
  } catch (e) {
138
151
  return Promise.reject(e);
139
152
  }
@@ -144,12 +157,14 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
144
157
  const newsUrlInput = this.controlMap.get(`${this.getId()}-newsFeedURLInput`);
145
158
  const url = String(newsPanel.getProperty("url"));
146
159
  newsUrlInput.setValue(url !== DEFAULT_NEWS_URL ? url : "");
147
- this.customNewsVisibility = Boolean(newsPanel.getProperty("showCustom"));
148
- this.defaultNewsVisibility = Boolean(newsPanel.getProperty("showDefault"));
160
+ this.customNewsVisibility = this.checkNewsType(NewsType.Custom);
161
+ this.defaultNewsVisibility = this.checkNewsType(NewsType.Default);
162
+ this.rssNewsVisibility = this.checkNewsType(NewsType.NewsUrl);
149
163
  this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(this.customNewsVisibility);
150
- this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(!this.customNewsVisibility);
151
- this.controlMap.get(`${this.getId()}-customNewsFeedCheckBox`).setSelected(this.customNewsVisibility);
152
- this.controlMap.get(`${this.getId()}-defaultNewsFeedCheckBox`).setSelected(this.defaultNewsVisibility);
164
+ this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(this.rssNewsVisibility);
165
+ this.controlMap.get(`${this.getId()}-customNewsFeedRadioBtn`).setSelected(this.customNewsVisibility);
166
+ this.controlMap.get(`${this.getId()}-defaultNewsFeedRadioBtn`).setSelected(this.defaultNewsVisibility);
167
+ this.controlMap.get(`${this.getId()}-newsUrlRadioBtn`).setSelected(this.rssNewsVisibility);
153
168
  this.getFileUploader().setValue(String(newsPanel.getProperty("customFileName")));
154
169
  this.clearKeyUserChanges();
155
170
  },
@@ -175,10 +190,9 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
175
190
  wrapperVBox.addItem(this.controlMap.get(keyUserNewsPanelToolbarId));
176
191
  },
177
192
  handleSelectCustomNewsFeed: function _handleSelectCustomNewsFeed(oEvent) {
178
- this.customNewsVisibility = oEvent.getSource().getSelected();
193
+ this.customNewsVisibility = oEvent.getParameter("selected");
179
194
  this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(this.customNewsVisibility);
180
195
  this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(!this.customNewsVisibility);
181
- this.controlMap.get(`${this.getId()}-defaultNewsFeedCheckBox`).setEnabled(!this.customNewsVisibility);
182
196
  const newsPanel = this._getPanel();
183
197
  const newsPageContainer = newsPanel.getParent();
184
198
  const layout = newsPageContainer.getParent();
@@ -190,14 +204,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
190
204
  changeType: CHANGE_TYPES.NEWS_FEED_URL,
191
205
  content: {
192
206
  oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
193
- oldShowCustomNewsFeed: Boolean(this._getPanel().getProperty("showCustom")),
207
+ oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
194
208
  oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
195
- oldshowDefaultNewsFeed: Boolean(this._getPanel().getProperty("showDefault")),
209
+ oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
210
+ oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
196
211
  newsFeedURL: String(this._getPanel().getProperty("url")),
197
212
  showCustomNewsFeed: this.customNewsVisibility,
198
213
  customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
199
214
  customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
200
- showDefaultNewsFeed: this.defaultNewsVisibility
215
+ showDefaultNewsFeed: false,
216
+ showRssNewsFeed: false
201
217
  }
202
218
  }
203
219
  });
@@ -214,63 +230,124 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
214
230
  });
215
231
  },
216
232
  /**
217
- * Add CheckBox for Custom News Feed.
233
+ * Add Radio Button for Custom News Feed.
218
234
  *
219
235
  * @private
220
236
  */
221
- addCustomNewsFeedCheckBox: function _addCustomNewsFeedCheckBox(wrapperVBox) {
222
- const customNewsFeedCheckBoxId = `${this.getId()}-customNewsFeedCheckBox`;
223
- const showCustom = Boolean(this._getPanel().getProperty("showCustom"));
224
- const showDefault = this._getPanel().getProperty("showDefault");
225
- if (!this.controlMap.get(customNewsFeedCheckBoxId)) {
226
- const customNewsFeedCheckBox = new CheckBox(`${this.getId()}-customNewsFeedCheckBox`, {
237
+ addCustomNewsFeedRadioBtn: function _addCustomNewsFeedRadioBtn(wrapperVBox) {
238
+ const customNewsFeedRadioBtnId = `${this.getId()}-customNewsFeedRadioBtn`;
239
+ const showCustom = this.checkNewsType(NewsType.Custom);
240
+ if (!this.controlMap.get(customNewsFeedRadioBtnId)) {
241
+ const customNewsFeedRadioBtn = new RadioButton(`${this.getId()}-customNewsFeedRadioBtn`, {
227
242
  text: this._i18nBundle.getText("selectCustomNewsFeed"),
228
243
  selected: showCustom,
229
- select: this.handleSelectCustomNewsFeed.bind(this),
230
- enabled: !showDefault
244
+ select: this.handleSelectCustomNewsFeed.bind(this)
231
245
  }).addStyleClass("sapUiTinyMargin");
232
- this.controlMap.set(customNewsFeedCheckBoxId, customNewsFeedCheckBox);
246
+ this.controlMap.set(customNewsFeedRadioBtnId, customNewsFeedRadioBtn);
233
247
  } else if (!this.getCurrentKeyUserChange()) {
234
- let customCheckbox = this.controlMap.get(`${this.getId()}-customNewsFeedCheckBox`);
235
- customCheckbox.setSelected(showCustom);
236
- customCheckbox.setEnabled(!showDefault);
248
+ let customRadioBtn = this.controlMap.get(`${this.getId()}-customNewsFeedRadioBtn`);
249
+ customRadioBtn.setSelected(showCustom);
250
+ this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(showCustom);
237
251
  }
238
- wrapperVBox.addItem(this.controlMap.get(customNewsFeedCheckBoxId));
252
+ wrapperVBox.addItem(this.controlMap.get(customNewsFeedRadioBtnId));
239
253
  },
240
254
  /**
241
- * Add CheckBox for Manage News Feed.
255
+ * Add Radio Button for Manage News Feed.
242
256
  *
243
257
  * @private
244
258
  */
245
- addDefaultNewsFeedCheckBox: function _addDefaultNewsFeedCheckBox(wrapperVBox) {
246
- const defaultNewsFeedCheckBoxId = `${this.getId()}-defaultNewsFeedCheckBox`;
247
- const showDefault = Boolean(this._getPanel().getProperty("showDefault"));
248
- const showCustom = this._getPanel().getProperty("showCustom");
249
- if (!this.controlMap.get(defaultNewsFeedCheckBoxId)) {
250
- const defaultNewsFeedCheckBox = new CheckBox(`${this.getId()}-defaultNewsFeedCheckBox`, {
259
+ addDefaultNewsFeedRadioBtn: function _addDefaultNewsFeedRadioBtn(wrapperVBox) {
260
+ const defaultNewsFeedRadioBtnId = `${this.getId()}-defaultNewsFeedRadioBtn`;
261
+ const showDefault = this.checkNewsType(NewsType.Default);
262
+ if (!this.controlMap.get(defaultNewsFeedRadioBtnId)) {
263
+ const defaultNewsFeedRadioBtn = new RadioButton(`${this.getId()}-defaultNewsFeedRadioBtn`, {
251
264
  text: this._i18nBundle.getText("selectDefaultNewsFeed"),
252
265
  selected: showDefault,
253
- select: this.handleselectDefaultNewsFeed.bind(this),
254
- enabled: !showCustom
266
+ select: this.handleselectDefaultNewsFeed.bind(this)
255
267
  }).addStyleClass("sapUiTinyMargin");
256
- this.controlMap.set(defaultNewsFeedCheckBoxId, defaultNewsFeedCheckBox);
268
+ this.controlMap.set(defaultNewsFeedRadioBtnId, defaultNewsFeedRadioBtn);
257
269
  } else if (!this.getCurrentKeyUserChange()) {
258
- let checkbox = this.controlMap.get(`${this.getId()}-defaultNewsFeedCheckBox`);
259
- checkbox.setSelected(showDefault);
260
- checkbox.setEnabled(!showCustom);
270
+ let defaultRadioBtn = this.controlMap.get(`${this.getId()}-defaultNewsFeedRadioBtn`);
271
+ defaultRadioBtn.setSelected(showDefault);
272
+ }
273
+ wrapperVBox.addItem(this.controlMap.get(defaultNewsFeedRadioBtnId));
274
+ },
275
+ addNewsPaneLabel: function _addNewsPaneLabel(wrapperVBox) {
276
+ const newsPanelLabelId = `${this.getId()}-newsPanelLabel`;
277
+ if (!this.controlMap.get(newsPanelLabelId)) {
278
+ const newsPanelLabel = new Label(newsPanelLabelId, {
279
+ text: this._i18nBundle.getText("newsFeedOptionLabel")
280
+ }).addStyleClass("sapUiTinyMargin");
281
+ this.controlMap.set(newsPanelLabelId, newsPanelLabel);
261
282
  }
262
- wrapperVBox.addItem(this.controlMap.get(defaultNewsFeedCheckBoxId));
283
+ wrapperVBox.addItem(this.controlMap.get(newsPanelLabelId));
284
+ },
285
+ handleSelectRssNewsFeed: function _handleSelectRssNewsFeed(oEvent) {
286
+ this.rssNewsVisibility = oEvent.getParameter("selected");
287
+ this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(!this.rssNewsVisibility);
288
+ this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(this.rssNewsVisibility);
289
+ const newsPanel = this._getPanel();
290
+ const newsPageContainer = newsPanel.getParent();
291
+ const layout = newsPageContainer.getParent();
292
+ const keyUserChangeContent = this.getCurrentKeyUserChange();
293
+ if (!keyUserChangeContent) {
294
+ this.addKeyUserChanges({
295
+ selectorControl: layout,
296
+ changeSpecificData: {
297
+ changeType: CHANGE_TYPES.NEWS_FEED_URL,
298
+ content: {
299
+ oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
300
+ oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
301
+ oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
302
+ oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
303
+ oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
304
+ newsFeedURL: String(this._getPanel().getProperty("url")),
305
+ showCustomNewsFeed: false,
306
+ customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
307
+ customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
308
+ showDefaultNewsFeed: false,
309
+ showRssNewsFeed: this.rssNewsVisibility
310
+ }
311
+ }
312
+ });
313
+ this._eventBus.publish("KeyUserChanges", "addNewsPagesChanges", {
314
+ changes: this.getKeyUserChanges()
315
+ });
316
+ } else if (keyUserChangeContent.showRssNewsFeed !== this.rssNewsVisibility) {
317
+ keyUserChangeContent.showRssNewsFeed = this.rssNewsVisibility;
318
+ }
319
+ this.removeUrlMesageStrip();
320
+ this._eventBus.publish("KeyUserChanges", "disabledSaveBtn", {
321
+ disable: false,
322
+ date: new Date()
323
+ });
324
+ },
325
+ addNewsUrlRadioBtn: function _addNewsUrlRadioBtn(wrapperVBox) {
326
+ const newsUrlRadioBtnId = `${this.getId()}-newsUrlRadioBtn`;
327
+ const showRss = this.checkNewsType(NewsType.NewsUrl);
328
+ if (!this.controlMap.get(newsUrlRadioBtnId)) {
329
+ const newsUrlRadioBtn = new RadioButton(`${this.getId()}-newsUrlRadioBtn`, {
330
+ text: this._i18nBundle.getText("selectNewsFeedUrl"),
331
+ selected: showRss,
332
+ select: this.handleSelectRssNewsFeed.bind(this)
333
+ }).addStyleClass("sapUiTinyMargin");
334
+ this.controlMap.set(newsUrlRadioBtnId, newsUrlRadioBtn);
335
+ } else if (!this.getCurrentKeyUserChange()) {
336
+ let rssRadioBtn = this.controlMap.get(`${this.getId()}-newsUrlRadioBtn`);
337
+ rssRadioBtn.setSelected(showRss);
338
+ this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(showRss);
339
+ }
340
+ wrapperVBox.addItem(this.controlMap.get(newsUrlRadioBtnId));
263
341
  },
264
342
  /**
265
- * Handle the selection of the Manage News Feed checkbox.
343
+ * Handle the selection of the Manage News Feed Radio Button.
266
344
  *
267
345
  * @private
268
346
  */
269
347
  handleselectDefaultNewsFeed: function _handleselectDefaultNewsFeed(oEvent) {
270
- this.defaultNewsVisibility = oEvent.getSource().getSelected();
348
+ this.defaultNewsVisibility = oEvent.getParameter("selected");
271
349
  this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(!this.defaultNewsVisibility);
272
350
  this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(!this.defaultNewsVisibility);
273
- this.controlMap.get(`${this.getId()}-customNewsFeedCheckBox`).setEnabled(!this.defaultNewsVisibility);
274
351
  const newsPanel = this._getPanel();
275
352
  const newsPageContainer = newsPanel.getParent();
276
353
  const layout = newsPageContainer.getParent();
@@ -283,14 +360,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
283
360
  changeType: CHANGE_TYPES.NEWS_FEED_URL,
284
361
  content: {
285
362
  oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
286
- oldShowCustomNewsFeed: Boolean(this._getPanel().getProperty("showCustom")),
363
+ oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
287
364
  oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
288
- oldshowDefaultNewsFeed: Boolean(this._getPanel().getProperty("showDefault")),
365
+ oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
366
+ oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
289
367
  newsFeedURL: String(newsUrlInput.getValue()),
290
- showCustomNewsFeed: this.customNewsVisibility,
368
+ showCustomNewsFeed: false,
291
369
  customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
292
370
  customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
293
- showDefaultNewsFeed: this.defaultNewsVisibility
371
+ showDefaultNewsFeed: this.defaultNewsVisibility,
372
+ showRssNewsFeed: false
294
373
  }
295
374
  }
296
375
  });
@@ -299,6 +378,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
299
378
  });
300
379
  } else if (keyUserChangeContent.showDefaultNewsFeed !== this.defaultNewsVisibility) {
301
380
  keyUserChangeContent.showDefaultNewsFeed = this.defaultNewsVisibility;
381
+ keyUserChangeContent.showCustomNewsFeed = false;
302
382
  }
303
383
  this.removeUrlMesageStrip();
304
384
  this._eventBus.publish("KeyUserChanges", "disabledSaveBtn", {
@@ -325,14 +405,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
325
405
  changeType: CHANGE_TYPES.NEWS_FEED_URL,
326
406
  content: {
327
407
  oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
328
- oldShowCustomNewsFeed: Boolean(this._getPanel().getProperty("showCustom")),
408
+ oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
329
409
  oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
330
- oldshowDefaultNewsFeed: Boolean(this._getPanel().getProperty("showDefault")),
410
+ oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
411
+ oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
331
412
  newsFeedURL: newsUrl,
332
413
  showCustomNewsFeed: false,
333
414
  customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
334
415
  customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
335
- showDefaultNewsFeed: false
416
+ showDefaultNewsFeed: false,
417
+ showRssNewsFeed: this.rssNewsVisibility
336
418
  }
337
419
  }
338
420
  });
@@ -390,22 +472,17 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
390
472
  */
391
473
  addNewsURLSimpleForm: function _addNewsURLSimpleForm(wrapperVBox) {
392
474
  const newsFeedURLSimpleFormId = `${this.getId()}-newsFeedURLSimpleForm`;
393
- const showCustom = Boolean(this._getPanel().getProperty("showCustom"));
394
- const showDefault = Boolean(this._getPanel().getProperty("showDefault"));
475
+ const showRss = this.checkNewsType(NewsType.NewsUrl);
395
476
  const newsInputUrl = String(this._getPanel().getProperty("url"));
396
477
  if (!this.controlMap.get(newsFeedURLSimpleFormId)) {
397
- const newsFeedURLSimpleForm = new SimpleForm(`${this.getId()}-newsFeedURLSimpleForm`, {
398
- content: [new Label(`${this.getId()}-newsFeedURLLabel`, {
399
- text: this._i18nBundle.getText("editNewsURL")
400
- })]
401
- }).addStyleClass("sapContrastPlus");
478
+ const newsFeedURLSimpleForm = new SimpleForm(`${this.getId()}-newsFeedURLSimpleForm`).addStyleClass("sapContrastPlus");
402
479
  const newsFeedURLInputId = `${this.getId()}-newsFeedURLInput`;
403
480
  const newsFeedURLInput = new Input(newsFeedURLInputId, {
404
481
  value: newsInputUrl !== DEFAULT_NEWS_URL ? newsInputUrl : "",
405
482
  type: Library.InputType.Url,
406
483
  change: this.onNewsUrlChange.bind(this),
407
484
  liveChange: this.onUrlLiveChange.bind(this),
408
- enabled: !showCustom && !showDefault
485
+ enabled: showRss
409
486
  });
410
487
  this.controlMap.set(newsFeedURLInputId, newsFeedURLInput);
411
488
  newsFeedURLSimpleForm.addContent(newsFeedURLInput);
@@ -413,7 +490,6 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
413
490
  } else if (this.getCurrentKeyUserChange()) {
414
491
  let inputUrlField = this.controlMap.get(`${this.getId()}-newsFeedURLInput`);
415
492
  inputUrlField.setValue(newsInputUrl);
416
- inputUrlField.setEnabled(!showCustom && !showDefault);
417
493
  }
418
494
  wrapperVBox.addItem(this.controlMap.get(newsFeedURLSimpleFormId));
419
495
  },
@@ -488,14 +564,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
488
564
  changeType: CHANGE_TYPES.NEWS_FEED_URL,
489
565
  content: {
490
566
  oldNewsFeedUrl: String(_this2._getPanel().getProperty("url")),
491
- oldShowCustomNewsFeed: Boolean(_this2._getPanel().getProperty("showCustom")),
567
+ oldShowCustomNewsFeed: _this2.checkNewsType(NewsType.Custom),
492
568
  oldCustomNewsFeedKey: String(_this2._getPanel().getProperty("customFeedKey")),
493
- oldshowDefaultNewsFeed: Boolean(_this2._getPanel().getProperty("showDefault")),
569
+ oldshowDefaultNewsFeed: _this2.checkNewsType(NewsType.Default),
570
+ oldShowRssNewsFeed: _this2.checkNewsType(NewsType.NewsUrl),
494
571
  newsFeedURL: String(_this2._getPanel().getProperty("url")),
495
572
  showCustomNewsFeed: true,
496
573
  customNewsFeedKey: String(_this2._getPanel().getProperty("customFeedKey")),
497
574
  customNewsFeedFileName: String(_this2._getPanel().getProperty("customFileName")),
498
- showDefaultNewsFeed: _this2.defaultNewsVisibility
575
+ showDefaultNewsFeed: false,
576
+ showRssNewsFeed: false
499
577
  }
500
578
  }
501
579
  });
@@ -514,14 +592,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
514
592
  changeType: CHANGE_TYPES.NEWS_FEED_URL,
515
593
  content: {
516
594
  oldNewsFeedUrl: String(_this2._getPanel().getProperty("url")),
517
- oldShowCustomNewsFeed: Boolean(_this2._getPanel().getProperty("showCustom")),
595
+ oldShowCustomNewsFeed: _this2.checkNewsType(NewsType.Custom),
518
596
  oldCustomNewsFeedKey: String(_this2._getPanel().getProperty("customFeedKey")),
519
- oldshowDefaultNewsFeed: Boolean(_this2._getPanel().getProperty("showDefault")),
597
+ oldshowDefaultNewsFeed: _this2.checkNewsType(NewsType.Default),
598
+ oldShowRssNewsFeed: _this2.checkNewsType(NewsType.NewsUrl),
520
599
  newsFeedURL: String(_this2._getPanel().getProperty("url")),
521
600
  showCustomNewsFeed: true,
522
601
  customNewsFeedKey: customKey,
523
602
  customNewsFeedFileName: _this2.getFileUploader().getValue(),
524
- showDefaultNewsFeed: _this2.defaultNewsVisibility
603
+ showDefaultNewsFeed: false,
604
+ showRssNewsFeed: false
525
605
  }
526
606
  }
527
607
  });
@@ -592,11 +672,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
592
672
  addCustomNewsUploadSimpleForm: function _addCustomNewsUploadSimpleForm(wrapperVBox) {
593
673
  const customNewsUploadSimpleFormId = `${this.getId()}-customNewsUploadSimpleForm`;
594
674
  if (!this.controlMap.get(customNewsUploadSimpleFormId)) {
595
- const customNewsUploadSimpleForm = new SimpleForm(`${this.getId()}-customNewsUploadSimpleForm`, {
596
- content: [new Label(`${this.getId()}-customNewsUploadLabel`, {
597
- text: this._i18nBundle.getText("customNewsFeed")
598
- })]
599
- }).addStyleClass("sapContrastPlus");
675
+ const customNewsUploadSimpleForm = new SimpleForm(`${this.getId()}-customNewsUploadSimpleForm`).addStyleClass("sapContrastPlus");
600
676
  const customNewsUploadVBox = new VBox(`${this.getId()}-customNewsUploadVBox`);
601
677
  const customNewsUploadFileUploader = `${this.getId()}-customNewsUploadFileUploader`;
602
678
  const newsPanel = this._getPanel();
@@ -611,7 +687,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
611
687
  sameFilenameAllowed: true,
612
688
  afterDialogClose: this.handleFileDialogClose.bind(this),
613
689
  value: String(this._getPanel().getProperty("customFileName")),
614
- enabled: this._getPanel().getProperty("showCustom")
690
+ enabled: this.checkNewsType(NewsType.Custom)
615
691
  });
616
692
  this.controlMap.set(customNewsUploadFileUploader, customNewsUploadFileUploaderControl);
617
693
  const customNewsUploadFileUploaderButtonId = `${this.getId()}-customNewsUploadFileUploaderButton`;
@@ -639,9 +715,11 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
639
715
  const wrapperVBox = this.controlMap.get(wrapperVBoxId);
640
716
  wrapperVBox.removeAllItems();
641
717
  this.addMessageStrip(wrapperVBox);
642
- this.addDefaultNewsFeedCheckBox(wrapperVBox);
643
- this.addCustomNewsFeedCheckBox(wrapperVBox);
718
+ this.addNewsPaneLabel(wrapperVBox);
719
+ this.addDefaultNewsFeedRadioBtn(wrapperVBox);
720
+ this.addNewsUrlRadioBtn(wrapperVBox);
644
721
  this.addNewsURLSimpleForm(wrapperVBox);
722
+ this.addCustomNewsFeedRadioBtn(wrapperVBox);
645
723
  this.addCustomNewsUploadSimpleForm(wrapperVBox);
646
724
  }
647
725
  });