@sapui5/sap.cux.home 1.139.0 → 1.140.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +1 -1
  3. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +7 -0
  4. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
  5. package/src/sap/cux/home/AdvancedSettingsPanel.js +113 -64
  6. package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
  7. package/src/sap/cux/home/AdvancedSettingsPanel.ts +47 -15
  8. package/src/sap/cux/home/App.d.ts +2 -2
  9. package/src/sap/cux/home/App.js +2 -2
  10. package/src/sap/cux/home/App.js.map +1 -1
  11. package/src/sap/cux/home/App.ts +2 -2
  12. package/src/sap/cux/home/AppsContainer.d.ts +2 -2
  13. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  14. package/src/sap/cux/home/AppsContainer.js +3 -4
  15. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  16. package/src/sap/cux/home/AppsContainer.ts +3 -4
  17. package/src/sap/cux/home/BaseApp.d.ts +2 -2
  18. package/src/sap/cux/home/BaseApp.js +2 -2
  19. package/src/sap/cux/home/BaseApp.js.map +1 -1
  20. package/src/sap/cux/home/BaseApp.ts +2 -2
  21. package/src/sap/cux/home/BaseAppPanel.d.ts +10 -0
  22. package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
  23. package/src/sap/cux/home/BaseAppPanel.js +21 -2
  24. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  25. package/src/sap/cux/home/BaseAppPanel.ts +15 -2
  26. package/src/sap/cux/home/BaseContainer.d.ts +10 -27
  27. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  28. package/src/sap/cux/home/BaseContainer.gen.d.ts +61 -0
  29. package/src/sap/cux/home/BaseContainer.js +39 -71
  30. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  31. package/src/sap/cux/home/BaseContainer.ts +33 -77
  32. package/src/sap/cux/home/BaseContainerRenderer.d.ts +2 -0
  33. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  34. package/src/sap/cux/home/BaseContainerRenderer.js +31 -3
  35. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  36. package/src/sap/cux/home/BaseContainerRenderer.ts +39 -2
  37. package/src/sap/cux/home/BaseLayout.d.ts +2 -2
  38. package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
  39. package/src/sap/cux/home/BaseLayout.js +5 -4
  40. package/src/sap/cux/home/BaseLayout.js.map +1 -1
  41. package/src/sap/cux/home/BaseLayout.ts +5 -4
  42. package/src/sap/cux/home/BaseNewsItem.d.ts +2 -2
  43. package/src/sap/cux/home/BaseNewsItem.js +2 -2
  44. package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
  45. package/src/sap/cux/home/BaseNewsItem.ts +2 -2
  46. package/src/sap/cux/home/BaseNewsPanel.d.ts +4 -3
  47. package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
  48. package/src/sap/cux/home/BaseNewsPanel.js +14 -3
  49. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  50. package/src/sap/cux/home/BaseNewsPanel.ts +10 -4
  51. package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
  52. package/src/sap/cux/home/BasePagePanel.d.ts.map +1 -1
  53. package/src/sap/cux/home/BasePagePanel.js +10 -2
  54. package/src/sap/cux/home/BasePagePanel.js.map +1 -1
  55. package/src/sap/cux/home/BasePagePanel.ts +6 -2
  56. package/src/sap/cux/home/BasePanel.d.ts +2 -21
  57. package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
  58. package/src/sap/cux/home/BasePanel.gen.d.ts +109 -0
  59. package/src/sap/cux/home/BasePanel.js +15 -31
  60. package/src/sap/cux/home/BasePanel.js.map +1 -1
  61. package/src/sap/cux/home/BasePanel.ts +11 -34
  62. package/src/sap/cux/home/BaseSettingsDialog.d.ts +2 -2
  63. package/src/sap/cux/home/BaseSettingsDialog.js +2 -2
  64. package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
  65. package/src/sap/cux/home/BaseSettingsDialog.ts +2 -2
  66. package/src/sap/cux/home/BaseSettingsPanel.d.ts +2 -2
  67. package/src/sap/cux/home/BaseSettingsPanel.js +2 -2
  68. package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
  69. package/src/sap/cux/home/BaseSettingsPanel.ts +2 -2
  70. package/src/sap/cux/home/CardsPanel.d.ts +2 -2
  71. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  72. package/src/sap/cux/home/CardsPanel.js +13 -5
  73. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  74. package/src/sap/cux/home/CardsPanel.ts +9 -5
  75. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  76. package/src/sap/cux/home/ContentAdditionDialog.js +0 -1
  77. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  78. package/src/sap/cux/home/ContentAdditionDialog.ts +0 -1
  79. package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
  80. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  81. package/src/sap/cux/home/ErrorPanel.js +13 -3
  82. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  83. package/src/sap/cux/home/ErrorPanel.ts +9 -3
  84. package/src/sap/cux/home/FavAppPanel.d.ts +2 -2
  85. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  86. package/src/sap/cux/home/FavAppPanel.js +7 -6
  87. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  88. package/src/sap/cux/home/FavAppPanel.ts +10 -9
  89. package/src/sap/cux/home/FrequentAppPanel.d.ts +2 -2
  90. package/src/sap/cux/home/FrequentAppPanel.js +2 -2
  91. package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
  92. package/src/sap/cux/home/FrequentAppPanel.ts +2 -2
  93. package/src/sap/cux/home/Group.d.ts +2 -2
  94. package/src/sap/cux/home/Group.js +2 -2
  95. package/src/sap/cux/home/Group.js.map +1 -1
  96. package/src/sap/cux/home/Group.ts +2 -2
  97. package/src/sap/cux/home/IToDoPanel.d.ts +2 -2
  98. package/src/sap/cux/home/IToDoPanel.js.map +1 -1
  99. package/src/sap/cux/home/IToDoPanel.ts +2 -2
  100. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  101. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  102. package/src/sap/cux/home/InsightsAdditionPanel.ts +3 -1
  103. package/src/sap/cux/home/InsightsContainer.d.ts +4 -4
  104. package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
  105. package/src/sap/cux/home/InsightsContainer.js +6 -11
  106. package/src/sap/cux/home/InsightsContainer.js.map +1 -1
  107. package/src/sap/cux/home/InsightsContainer.ts +6 -11
  108. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  109. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +2 -2
  110. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  111. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +2 -3
  112. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
  113. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +4 -4
  114. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  115. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +6 -4
  116. package/src/sap/cux/home/KeyUserSettingsDialog.d.ts.map +1 -1
  117. package/src/sap/cux/home/KeyUserSettingsDialog.js +18 -12
  118. package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
  119. package/src/sap/cux/home/KeyUserSettingsDialog.ts +9 -5
  120. package/src/sap/cux/home/Layout.d.ts +2 -3
  121. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  122. package/src/sap/cux/home/Layout.js +35 -42
  123. package/src/sap/cux/home/Layout.js.map +1 -1
  124. package/src/sap/cux/home/Layout.ts +15 -19
  125. package/src/sap/cux/home/MenuItem.d.ts +2 -2
  126. package/src/sap/cux/home/MenuItem.js +2 -2
  127. package/src/sap/cux/home/MenuItem.js.map +1 -1
  128. package/src/sap/cux/home/MenuItem.ts +2 -2
  129. package/src/sap/cux/home/NewsAndPagesContainer.d.ts +11 -7
  130. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
  131. package/src/sap/cux/home/NewsAndPagesContainer.js +22 -26
  132. package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
  133. package/src/sap/cux/home/NewsAndPagesContainer.ts +26 -32
  134. package/src/sap/cux/home/NewsPanel.d.ts +10 -2
  135. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  136. package/src/sap/cux/home/NewsPanel.js +24 -16
  137. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  138. package/src/sap/cux/home/NewsPanel.ts +25 -18
  139. package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
  140. package/src/sap/cux/home/NewsSettingsPanel.js +1 -1
  141. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  142. package/src/sap/cux/home/NewsSettingsPanel.ts +2 -2
  143. package/src/sap/cux/home/NoDataContainer.d.ts +2 -2
  144. package/src/sap/cux/home/NoDataContainer.js +3 -3
  145. package/src/sap/cux/home/NoDataContainer.js.map +1 -1
  146. package/src/sap/cux/home/NoDataContainer.ts +3 -3
  147. package/src/sap/cux/home/PagePanel.d.ts +11 -3
  148. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  149. package/src/sap/cux/home/PagePanel.js +17 -6
  150. package/src/sap/cux/home/PagePanel.js.map +1 -1
  151. package/src/sap/cux/home/PagePanel.ts +17 -7
  152. package/src/sap/cux/home/RecentAppPanel.d.ts +2 -2
  153. package/src/sap/cux/home/RecentAppPanel.js +2 -2
  154. package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
  155. package/src/sap/cux/home/RecentAppPanel.ts +2 -2
  156. package/src/sap/cux/home/RecommendedAppPanel.d.ts +2 -2
  157. package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
  158. package/src/sap/cux/home/RecommendedAppPanel.js +15 -9
  159. package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
  160. package/src/sap/cux/home/RecommendedAppPanel.ts +11 -6
  161. package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +48 -0
  162. package/src/sap/cux/home/SideBySideIconTabFilter.d.ts.map +1 -0
  163. package/src/sap/cux/home/SideBySideIconTabFilter.gen.d.ts +33 -0
  164. package/src/sap/cux/home/SideBySideIconTabFilter.js +83 -0
  165. package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -0
  166. package/src/sap/cux/home/SideBySideIconTabFilter.ts +87 -0
  167. package/src/sap/cux/home/SituationPanel.d.ts +2 -2
  168. package/src/sap/cux/home/SituationPanel.js +2 -2
  169. package/src/sap/cux/home/SituationPanel.js.map +1 -1
  170. package/src/sap/cux/home/SituationPanel.ts +2 -2
  171. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +2 -2
  172. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  173. package/src/sap/cux/home/SpaceInsightsPanel.js +11 -3
  174. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  175. package/src/sap/cux/home/SpaceInsightsPanel.ts +7 -3
  176. package/src/sap/cux/home/SpacePanel.d.ts +2 -2
  177. package/src/sap/cux/home/SpacePanel.js +2 -2
  178. package/src/sap/cux/home/SpacePanel.js.map +1 -1
  179. package/src/sap/cux/home/SpacePanel.ts +2 -2
  180. package/src/sap/cux/home/TaskPanel.d.ts +2 -2
  181. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  182. package/src/sap/cux/home/TaskPanel.js +5 -3
  183. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  184. package/src/sap/cux/home/TaskPanel.ts +4 -3
  185. package/src/sap/cux/home/TilesPanel.d.ts +2 -3
  186. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  187. package/src/sap/cux/home/TilesPanel.js +89 -59
  188. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  189. package/src/sap/cux/home/TilesPanel.ts +93 -70
  190. package/src/sap/cux/home/ToDoPanel.d.ts +2 -2
  191. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  192. package/src/sap/cux/home/ToDoPanel.js +13 -3
  193. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  194. package/src/sap/cux/home/ToDoPanel.ts +9 -3
  195. package/src/sap/cux/home/ToDosContainer.d.ts +2 -3
  196. package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
  197. package/src/sap/cux/home/ToDosContainer.js +3 -8
  198. package/src/sap/cux/home/ToDosContainer.js.map +1 -1
  199. package/src/sap/cux/home/ToDosContainer.ts +2 -9
  200. package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts +1 -2
  201. package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts.map +1 -1
  202. package/src/sap/cux/home/changeHandler/LayoutHandler.js +0 -3
  203. package/src/sap/cux/home/changeHandler/LayoutHandler.js.map +1 -1
  204. package/src/sap/cux/home/changeHandler/LayoutHandler.ts +2 -6
  205. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
  206. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +0 -3
  207. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
  208. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +0 -3
  209. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  210. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +0 -3
  211. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  212. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +0 -3
  213. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
  214. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +0 -3
  215. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
  216. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +0 -3
  217. package/src/sap/cux/home/designtime/Layout.designtime.d.ts +1 -1
  218. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
  219. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +4 -3
  220. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
  221. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +3 -2
  222. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +0 -2
  223. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
  224. package/src/sap/cux/home/flexibility/Layout.flexibility.js +0 -2
  225. package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
  226. package/src/sap/cux/home/flexibility/Layout.flexibility.ts +0 -2
  227. package/src/sap/cux/home/i18n/messagebundle.properties +6 -9
  228. package/src/sap/cux/home/i18n/messagebundle_ar.properties +12 -6
  229. package/src/sap/cux/home/i18n/messagebundle_bg.properties +12 -6
  230. package/src/sap/cux/home/i18n/messagebundle_ca.properties +12 -6
  231. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +12 -6
  232. package/src/sap/cux/home/i18n/messagebundle_cs.properties +12 -6
  233. package/src/sap/cux/home/i18n/messagebundle_cy.properties +12 -6
  234. package/src/sap/cux/home/i18n/messagebundle_da.properties +12 -6
  235. package/src/sap/cux/home/i18n/messagebundle_de.properties +12 -6
  236. package/src/sap/cux/home/i18n/messagebundle_el.properties +18 -12
  237. package/src/sap/cux/home/i18n/messagebundle_en.properties +12 -6
  238. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +12 -6
  239. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +5 -5
  240. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +5 -5
  241. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +12 -6
  242. package/src/sap/cux/home/i18n/messagebundle_es.properties +12 -6
  243. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +12 -6
  244. package/src/sap/cux/home/i18n/messagebundle_et.properties +12 -6
  245. package/src/sap/cux/home/i18n/messagebundle_fi.properties +12 -6
  246. package/src/sap/cux/home/i18n/messagebundle_fr.properties +14 -8
  247. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +12 -6
  248. package/src/sap/cux/home/i18n/messagebundle_hi.properties +12 -6
  249. package/src/sap/cux/home/i18n/messagebundle_hr.properties +12 -6
  250. package/src/sap/cux/home/i18n/messagebundle_hu.properties +12 -6
  251. package/src/sap/cux/home/i18n/messagebundle_id.properties +16 -10
  252. package/src/sap/cux/home/i18n/messagebundle_it.properties +13 -7
  253. package/src/sap/cux/home/i18n/messagebundle_iw.properties +12 -6
  254. package/src/sap/cux/home/i18n/messagebundle_ja.properties +12 -6
  255. package/src/sap/cux/home/i18n/messagebundle_kk.properties +12 -6
  256. package/src/sap/cux/home/i18n/messagebundle_ko.properties +12 -6
  257. package/src/sap/cux/home/i18n/messagebundle_lt.properties +12 -6
  258. package/src/sap/cux/home/i18n/messagebundle_lv.properties +12 -6
  259. package/src/sap/cux/home/i18n/messagebundle_mk.properties +12 -6
  260. package/src/sap/cux/home/i18n/messagebundle_ms.properties +12 -6
  261. package/src/sap/cux/home/i18n/messagebundle_nl.properties +12 -6
  262. package/src/sap/cux/home/i18n/messagebundle_no.properties +12 -6
  263. package/src/sap/cux/home/i18n/messagebundle_pl.properties +12 -6
  264. package/src/sap/cux/home/i18n/messagebundle_pt.properties +12 -6
  265. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +12 -6
  266. package/src/sap/cux/home/i18n/messagebundle_ro.properties +12 -6
  267. package/src/sap/cux/home/i18n/messagebundle_ru.properties +22 -16
  268. package/src/sap/cux/home/i18n/messagebundle_sh.properties +12 -6
  269. package/src/sap/cux/home/i18n/messagebundle_sk.properties +12 -6
  270. package/src/sap/cux/home/i18n/messagebundle_sl.properties +12 -6
  271. package/src/sap/cux/home/i18n/messagebundle_sr.properties +12 -6
  272. package/src/sap/cux/home/i18n/messagebundle_sv.properties +12 -6
  273. package/src/sap/cux/home/i18n/messagebundle_th.properties +12 -6
  274. package/src/sap/cux/home/i18n/messagebundle_tr.properties +12 -6
  275. package/src/sap/cux/home/i18n/messagebundle_uk.properties +12 -6
  276. package/src/sap/cux/home/i18n/messagebundle_vi.properties +12 -6
  277. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +12 -6
  278. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +12 -6
  279. package/src/sap/cux/home/library.d.ts +10 -6
  280. package/src/sap/cux/home/library.d.ts.map +1 -1
  281. package/src/sap/cux/home/library.js +10 -6
  282. package/src/sap/cux/home/library.js.map +1 -1
  283. package/src/sap/cux/home/library.ts +10 -6
  284. package/src/sap/cux/home/themes/base/BaseContainer.less +31 -0
  285. package/src/sap/cux/home/themes/base/KeyUserSettingsDialog.less +5 -0
  286. package/src/sap/cux/home/themes/base/ToDosContainer.less +0 -4
  287. package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +0 -4
  288. package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
  289. package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
  290. package/src/sap/cux/home/utils/UshellPersonalizer.ts +0 -1
  291. package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts +0 -19
  292. package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +0 -1
  293. package/src/sap/cux/home/utils/KeyUserPersonalization.js +0 -126
  294. package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +0 -1
  295. package/src/sap/cux/home/utils/KeyUserPersonalization.ts +0 -93
@@ -17,8 +17,8 @@ declare module "sap/cux/home/BasePagePanel" {
17
17
  * @since 1.121
18
18
  *
19
19
  * @abstract
20
- * @internal
21
- * @public
20
+ * @private
21
+ * @ui5-restricted ux.eng.s4producthomes1
22
22
  *
23
23
  * @alias sap.cux.home.BasePagePanel
24
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BasePagePanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/BasePagePanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,4BAA4B,CAAC;IAC5C;;;OAGG;IACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;IACpE,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAE/C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAc,SAAQ,SAAS;oBAChD,YAAY,CAAC,EAAE,MAAM,GAAG,sBAAsB;oBAC9C,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,sBAAsB;QAW1D,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAkBvC;KACF;CAEA"}
1
+ {"version":3,"file":"BasePagePanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/BasePagePanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,4BAA4B,CAAC;IAC5C;;;OAGG;IACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;IACpE,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAE/C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAc,SAAQ,SAAS;oBAChD,YAAY,CAAC,EAAE,MAAM,GAAG,sBAAsB;oBAC9C,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,sBAAsB;QAW1D,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAsBvC;KACF;CAEA"}
@@ -20,8 +20,8 @@ sap.ui.define(["./BasePanel"], function (__BasePanel) {
20
20
  * @since 1.121
21
21
  *
22
22
  * @abstract
23
- * @internal
24
- * @public
23
+ * @private
24
+ * @ui5-restricted ux.eng.s4producthomes1
25
25
  *
26
26
  * @alias sap.cux.home.BasePagePanel
27
27
  */
@@ -45,6 +45,14 @@ sap.ui.define(["./BasePanel"], function (__BasePanel) {
45
45
  }
46
46
  },
47
47
  aggregations: {
48
+ /**
49
+ * Specifies the content aggregation of the panel.
50
+ */
51
+ content: {
52
+ multiple: true,
53
+ singularName: "content",
54
+ visibility: "hidden"
55
+ },
48
56
  /**
49
57
  * Collection of pages that this panel manages.
50
58
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BasePagePanel.js","names":["sap","ui","define","__BasePanel","_interopRequireDefault","obj","__esModule","default","BasePanel","BasePagePanel","extend","metadata","library","properties","title","type","group","key","aggregations","pages","singularName","multiple","constructor","_constructor","id","settings","BasePanel.prototype.constructor.call"],"sources":["BasePagePanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport { $BasePagePanelSettings } from \"./BasePagePanel\";\nimport BasePanel from \"./BasePanel\";\n\n/**\n *\n * Base Panel class for managing and storing Pages.\n *\n * @extends sap.cux.home.BasePanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @abstract\n * @internal\n * @public\n *\n * @alias sap.cux.home.BasePagePanel\n */\nexport default abstract class BasePagePanel extends BasePanel {\n\tconstructor(idOrSettings?: string | $BasePagePanelSettings);\n\tconstructor(id?: string, settings?: $BasePagePanelSettings);\n\t/**\n\t * Constructor for a new Base Page Panel.\n\t *\n\t * @param {string} [id] ID for the new panel, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new panel\n\t */\n\tpublic constructor(id?: string, settings?: $BasePagePanelSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Title of the control.\n\t\t\t */\n\t\t\ttitle: { type: \"string\", group: \"Misc\" },\n\t\t\t/**\n\t\t\t * Unique key identifier for the control.\n\t\t\t */\n\t\t\tkey: { type: \"string\", group: \"Misc\" }\n\t\t},\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Collection of pages that this panel manages.\n\t\t\t */\n\t\t\tpages: { type: \"sap.cux.home.Page\", singularName: \"page\", multiple: true }\n\t\t}\n\t};\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,4BAAAC,WAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAMOG,SAAS,GAAAJ,sBAAA,CAAAD,WAAA;EAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAfA,MAgB8BM,aAAa,GAASD,SAAS,CAAAE,MAAA;IAa5CC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,KAAK,EAAE;UAAEC,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE;QAAO,CAAC;QACxC;AACH;AACA;QACGC,GAAG,EAAE;UAAEF,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE;QAAO;MACtC,CAAC;MACDE,YAAY,EAAE;QACb;AACH;AACA;QACGC,KAAK,EAAE;UAAEJ,IAAI,EAAE,mBAAmB;UAAEK,YAAY,EAAE,MAAM;UAAEC,QAAQ,EAAE;QAAK;MAC1E;IACD,CAAC;IA5BD;AACD;AACA;AACA;AACA;AACA;IACQC,WAAW,WAAAC,aAACC,EAAW,EAAEC,QAAiC,EAAE;MAClEC,oCAAA,OAAMF,EAAE,EAAEC,QAAQ;IACnB;EAAC;EAAA,OAX4BhB,aAAa;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"BasePagePanel.js","names":["sap","ui","define","__BasePanel","_interopRequireDefault","obj","__esModule","default","BasePanel","BasePagePanel","extend","metadata","library","properties","title","type","group","key","aggregations","content","multiple","singularName","visibility","pages","constructor","_constructor","id","settings","BasePanel.prototype.constructor.call"],"sources":["BasePagePanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport { $BasePagePanelSettings } from \"./BasePagePanel\";\nimport BasePanel from \"./BasePanel\";\n\n/**\n *\n * Base Panel class for managing and storing Pages.\n *\n * @extends sap.cux.home.BasePanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @abstract\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.BasePagePanel\n */\nexport default abstract class BasePagePanel extends BasePanel {\n\tconstructor(idOrSettings?: string | $BasePagePanelSettings);\n\tconstructor(id?: string, settings?: $BasePagePanelSettings);\n\t/**\n\t * Constructor for a new Base Page Panel.\n\t *\n\t * @param {string} [id] ID for the new panel, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new panel\n\t */\n\tpublic constructor(id?: string, settings?: $BasePagePanelSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Title of the control.\n\t\t\t */\n\t\t\ttitle: { type: \"string\", group: \"Misc\" },\n\t\t\t/**\n\t\t\t * Unique key identifier for the control.\n\t\t\t */\n\t\t\tkey: { type: \"string\", group: \"Misc\" }\n\t\t},\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Specifies the content aggregation of the panel.\n\t\t\t */\n\t\t\tcontent: { multiple: true, singularName: \"content\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Collection of pages that this panel manages.\n\t\t\t */\n\t\t\tpages: { type: \"sap.cux.home.Page\", singularName: \"page\", multiple: true }\n\t\t}\n\t};\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,4BAAAC,WAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAMOG,SAAS,GAAAJ,sBAAA,CAAAD,WAAA;EAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAfA,MAgB8BM,aAAa,GAASD,SAAS,CAAAE,MAAA;IAa5CC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,KAAK,EAAE;UAAEC,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE;QAAO,CAAC;QACxC;AACH;AACA;QACGC,GAAG,EAAE;UAAEF,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE;QAAO;MACtC,CAAC;MACDE,YAAY,EAAE;QACb;AACH;AACA;QACGC,OAAO,EAAE;UAAEC,QAAQ,EAAE,IAAI;UAAEC,YAAY,EAAE,SAAS;UAAEC,UAAU,EAAE;QAAS,CAAC;QAC1E;AACH;AACA;QACGC,KAAK,EAAE;UAAER,IAAI,EAAE,mBAAmB;UAAEM,YAAY,EAAE,MAAM;UAAED,QAAQ,EAAE;QAAK;MAC1E;IACD,CAAC;IAhCD;AACD;AACA;AACA;AACA;AACA;IACQI,WAAW,WAAAC,aAACC,EAAW,EAAEC,QAAiC,EAAE;MAClEC,oCAAA,OAAMF,EAAE,EAAEC,QAAQ;IACnB;EAAC;EAAA,OAX4BlB,aAAa;AAAA","ignoreList":[]}
@@ -17,8 +17,8 @@ import BasePanel from "./BasePanel";
17
17
  * @since 1.121
18
18
  *
19
19
  * @abstract
20
- * @internal
21
- * @public
20
+ * @private
21
+ * @ui5-restricted ux.eng.s4producthomes1
22
22
  *
23
23
  * @alias sap.cux.home.BasePagePanel
24
24
  */
@@ -48,6 +48,10 @@ export default abstract class BasePagePanel extends BasePanel {
48
48
  key: { type: "string", group: "Misc" }
49
49
  },
50
50
  aggregations: {
51
+ /**
52
+ * Specifies the content aggregation of the panel.
53
+ */
54
+ content: { multiple: true, singularName: "content", visibility: "hidden" },
51
55
  /**
52
56
  * Collection of pages that this panel manages.
53
57
  */
@@ -7,7 +7,6 @@ declare module "sap/cux/home/BasePanel" {
7
7
  import GridContainer from "sap/f/GridContainer";
8
8
  import FlexBox from "sap/m/FlexBox";
9
9
  import HeaderContainer from "sap/m/HeaderContainer";
10
- import Control from "sap/ui/core/Control";
11
10
  import { DropInfo$DropEvent } from "sap/ui/core/dnd/DropInfo";
12
11
  import type { MetadataOptions } from "sap/ui/core/Element";
13
12
  import Element from "sap/ui/core/Element";
@@ -25,14 +24,13 @@ declare module "sap/cux/home/BasePanel" {
25
24
  * @since 1.121
26
25
  *
27
26
  * @abstract
28
- * @internal
29
- * @public
27
+ * @private
28
+ * @ui5-restricted ux.eng.s4producthomes1
30
29
  *
31
30
  * @alias sap.cux.home.BasePanel
32
31
  */
33
32
  export default abstract class BasePanel extends Element {
34
33
  protected _i18nBundle: ResourceBundle;
35
- private _content;
36
34
  constructor(id?: string | $BasePanelSettings);
37
35
  constructor(id?: string, settings?: $BasePanelSettings);
38
36
  static readonly metadata: MetadataOptions;
@@ -43,23 +41,6 @@ declare module "sap/cux/home/BasePanel" {
43
41
  * @override
44
42
  */
45
43
  init(): void;
46
- /**
47
- * Cache and return panel content since the content would
48
- * have a different inner control as parent after rendering
49
- *
50
- * @private
51
- * @returns {Control[]} - array of panel content
52
- */
53
- _getContent(): Control[];
54
- /**
55
- * Overridden method for adding content to a panel so that
56
- * it's added to the corresponding layout-specific inner
57
- * control as well
58
- *
59
- * @private
60
- * @param {Control} control - control to be added to the content
61
- */
62
- _addContent(control: Control): void;
63
44
  /**
64
45
  * Updates the count information of IconTabFilter of IconTabBar inner control
65
46
  * in case of SideBySide layout
@@ -1 +1 @@
1
- {"version":3,"file":"BasePanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/BasePanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,wBAAwB,CAAC;IACxC;;;OAGG;IAEH,OAAO,cAAc,MAAM,8BAA8B,CAAC;IAC1D,OAAO,aAAa,MAAM,qBAAqB,CAAC;IAChD,OAAO,OAAO,MAAM,eAAe,CAAC;IACpC,OAAO,eAAe,MAAM,uBAAuB,CAAC;IACpD,OAAO,OAAO,MAAM,qBAAqB,CAAC;IAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;IAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAC3D,OAAO,OAAO,MAAM,qBAAqB,CAAC;IAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;IAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;IAC5D,OAAO,EAAE,UAAU,EAAuB,MAAM,2BAA2B,CAAC;IAG5E;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,SAAU,SAAQ,OAAO;QACtD,SAAS,CAAC,WAAW,EAAG,cAAc,CAAC;QACvC,OAAO,CAAC,QAAQ,CAAa;oBAEjB,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB;oBAChC,EAAE,CAAC,EAAE,MAAM,EAAE,QA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5E;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,SAAU,SAAQ,OAAO;QACtD,SAAS,CAAC,WAAW,EAAG,cAAc,CAAC;oBAE3B,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB;oBAChC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,kBAAkB;QAWtD,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAkEvC;QAEF;;;;;WAKG;QACI,IAAI,IAAI,IAAI;QASnB;;;;;;WAMG;QACI,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;QAItC;;;;;;WAMG;QACH,SAAS,CAAC,aAAa,IAAI,UAAU;QAKrC,SAAS,CAAC,mBAAmB,CAC5B,SAAS,EAAE,aAAa,GAAG,OAAO,GAAG,eAAe,EACpD,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,EAChD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,EAChD,gBAAgB,GAAE,GAAG,CAAC,YAAuC,GAC3D,IAAI;KAqBP;CAEA"}
@@ -4,6 +4,7 @@ declare module "sap/cux/home/BasePanel" {
4
4
  * * (c) Copyright 2009-2025 SAP SE. All rights reserved
5
5
  */
6
6
  import Event from "sap/ui/base/Event";
7
+ import Control from "sap/ui/core/Control";
7
8
  import Button from "sap/m/Button";
8
9
  import MenuItem from "sap/cux/home/MenuItem";
9
10
  import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
@@ -25,6 +26,16 @@ import { $ElementSettings } from "sap/ui/core/Element";
25
26
  */
26
27
  key?: string | PropertyBindingInfo;
27
28
 
29
+ /**
30
+ * Specifies whether the panel should be visible.
31
+ */
32
+ visible?: boolean | PropertyBindingInfo | `{${string}}`;
33
+
34
+ /**
35
+ * Specifies the content aggregation of the panel.
36
+ */
37
+ content?: Control[] | Control | AggregationBindingInfo | `{${string}}`;
38
+
28
39
  /**
29
40
  * Specifies the actions to be shown within the panel.
30
41
  */
@@ -98,6 +109,104 @@ import { $ElementSettings } from "sap/ui/core/Element";
98
109
  */
99
110
  setKey(key: string): this;
100
111
 
112
+ // property: visible
113
+
114
+ /**
115
+ * Gets current value of property "visible".
116
+ *
117
+ * Specifies whether the panel should be visible.
118
+ *
119
+ * Default value is: true
120
+ * @returns Value of property "visible"
121
+ */
122
+ getVisible(): boolean;
123
+
124
+ /**
125
+ * Sets a new value for property "visible".
126
+ *
127
+ * Specifies whether the panel should be visible.
128
+ *
129
+ * When called with a value of "null" or "undefined", the default value of the property will be restored.
130
+ *
131
+ * Default value is: true
132
+ * @param [visible=true] New value for property "visible"
133
+ * @returns Reference to "this" in order to allow method chaining
134
+ */
135
+ setVisible(visible: boolean): this;
136
+
137
+ // aggregation: content
138
+
139
+ /**
140
+ * Gets content of aggregation "content".
141
+ *
142
+ * Specifies the content aggregation of the panel.
143
+ */
144
+ getContent(): Control[];
145
+
146
+ /**
147
+ * Adds some content to the aggregation "content".
148
+ *
149
+ * Specifies the content aggregation of the panel.
150
+ *
151
+ * @param content The content to add; if empty, nothing is inserted
152
+ * @returns Reference to "this" in order to allow method chaining
153
+ */
154
+ addContent(content: Control): this;
155
+
156
+ /**
157
+ * Inserts a content into the aggregation "content".
158
+ *
159
+ * Specifies the content aggregation of the panel.
160
+ *
161
+ * @param content The content to insert; if empty, nothing is inserted
162
+ * @param index The "0"-based index the content should be inserted at; for
163
+ * a negative value of "iIndex", the content is inserted at position 0; for a value
164
+ * greater than the current size of the aggregation, the content is inserted at
165
+ * the last position
166
+ * @returns Reference to "this" in order to allow method chaining
167
+ */
168
+ insertContent(content: Control, index: number): this;
169
+
170
+ /**
171
+ * Removes a content from the aggregation "content".
172
+ *
173
+ * Specifies the content aggregation of the panel.
174
+ *
175
+ * @param content The content to remove or its index or id
176
+ * @returns The removed content or "null"
177
+ */
178
+ removeContent(content: number | string | Control): Control | null;
179
+
180
+ /**
181
+ * Removes all the controls from the aggregation "content".
182
+ * Additionally, it unregisters them from the hosting UIArea.
183
+ *
184
+ * Specifies the content aggregation of the panel.
185
+ *
186
+ * @returns An array of the removed elements (might be empty)
187
+ */
188
+ removeAllContent(): Control[];
189
+
190
+ /**
191
+ * Checks for the provided "sap.ui.core.Control" in the aggregation "content".
192
+ * and returns its index if found or -1 otherwise.
193
+ *
194
+ * Specifies the content aggregation of the panel.
195
+ *
196
+ * @param content The content whose index is looked for
197
+ * @returns The index of the provided control in the aggregation if found, or -1 otherwise
198
+ */
199
+ indexOfContent(content: Control): number;
200
+
201
+ /**
202
+ * Destroys all the content in the aggregation "content".
203
+ *
204
+ * Specifies the content aggregation of the panel.
205
+ *
206
+ * @returns Reference to "this" in order to allow method chaining
207
+ */
208
+ destroyContent(): this;
209
+
101
210
  // aggregation: actionButtons
102
211
 
103
212
  /**
@@ -19,8 +19,8 @@ sap.ui.define(["sap/ui/core/dnd/DragDropInfo", "sap/ui/core/Element", "sap/ui/co
19
19
  * @since 1.121
20
20
  *
21
21
  * @abstract
22
- * @internal
23
- * @public
22
+ * @private
23
+ * @ui5-restricted ux.eng.s4producthomes1
24
24
  *
25
25
  * @alias sap.cux.home.BasePanel
26
26
  */
@@ -44,6 +44,14 @@ sap.ui.define(["sap/ui/core/dnd/DragDropInfo", "sap/ui/core/Element", "sap/ui/co
44
44
  group: "Misc",
45
45
  defaultValue: ""
46
46
  },
47
+ /**
48
+ * Specifies whether the panel should be visible.
49
+ */
50
+ visible: {
51
+ type: "boolean",
52
+ group: "Misc",
53
+ defaultValue: true
54
+ },
47
55
  /**
48
56
  * Tooltip for the panel.
49
57
  */
@@ -96,8 +104,7 @@ sap.ui.define(["sap/ui/core/dnd/DragDropInfo", "sap/ui/core/Element", "sap/ui/co
96
104
  */
97
105
  content: {
98
106
  multiple: true,
99
- singularName: "content",
100
- visibility: "hidden"
107
+ singularName: "content"
101
108
  },
102
109
  /**
103
110
  * Specifies the actions to be shown within the panel.
@@ -151,35 +158,12 @@ sap.ui.define(["sap/ui/core/dnd/DragDropInfo", "sap/ui/core/Element", "sap/ui/co
151
158
  * @override
152
159
  */
153
160
  init: function _init() {
154
- this._content = [];
155
161
  this._i18nBundle = Lib.getResourceBundleFor("sap.cux.home.i18n");
156
- },
157
- /**
158
- * Cache and return panel content since the content would
159
- * have a different inner control as parent after rendering
160
- *
161
- * @private
162
- * @returns {Control[]} - array of panel content
163
- */
164
- _getContent: function _getContent() {
165
- this._content = this._content || this.getAggregation("content");
166
- return this._content;
167
- },
168
- /**
169
- * Overridden method for adding content to a panel so that
170
- * it's added to the corresponding layout-specific inner
171
- * control as well
172
- *
173
- * @private
174
- * @param {Control} control - control to be added to the content
175
- */
176
- _addContent: function _addContent(control) {
177
- this._content = this._content || this.getAggregation("content");
178
- this._content.push(control);
179
- this.insertAggregation("content", control, 0);
180
162
 
181
- //Insert into parent's layout control
182
- this.getParent()?._addToPanel(this, control);
163
+ // set default key if not provided
164
+ if (!this.getProperty("key")) {
165
+ this.setProperty("key", this.getId());
166
+ }
183
167
  },
184
168
  /**
185
169
  * Updates the count information of IconTabFilter of IconTabBar inner control
@@ -1 +1 @@
1
- {"version":3,"file":"BasePanel.js","names":["sap","ui","define","DragDropInfo","Element","Lib","sap_ui_core_library","___utils_Device","___utils_DragDropUtils","dnd","calculateDeviceType","attachKeyboardHandler","BasePanel","extend","metadata","library","properties","title","type","group","defaultValue","key","tooltip","visibility","enableSettings","enableKeyUserSettings","enableFullScreen","fullScreenName","defaultAggregation","aggregations","content","multiple","singularName","actionButtons","menuItems","events","onExpand","loaded","associations","fullScreenButton","constructor","_constructor","id","settings","Element.prototype.constructor.call","init","_init","_content","_i18nBundle","getResourceBundleFor","_getContent","getAggregation","_addContent","control","push","insertAggregation","getParent","_addToPanel","_setCount","count","_setPanelCount","getDeviceType","_getDeviceType","container","addDragDropConfigTo","_addDragDropConfigTo","dropHandler","keyboardHandler","dropPositionType","DropPosition","Between","addDragDropConfig","getId","sourceAggregation","targetAggregation","dropPosition","dropLayout","DropLayout","Horizontal","drop","attachBrowserEvent","event","disableNavigation","metaKey","ctrlKey","dragDropEvent"],"sources":["BasePanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport ResourceBundle from \"sap/base/i18n/ResourceBundle\";\nimport GridContainer from \"sap/f/GridContainer\";\nimport FlexBox from \"sap/m/FlexBox\";\nimport HeaderContainer from \"sap/m/HeaderContainer\";\nimport Control from \"sap/ui/core/Control\";\nimport DragDropInfo from \"sap/ui/core/dnd/DragDropInfo\";\nimport { DropInfo$DropEvent } from \"sap/ui/core/dnd/DropInfo\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Element from \"sap/ui/core/Element\";\nimport Lib from \"sap/ui/core/Lib\";\nimport { dnd } from \"sap/ui/core/library\";\nimport BaseContainer from \"./BaseContainer\";\nimport { $BasePanelSettings } from \"./BasePanel\";\nimport { DeviceType, calculateDeviceType } from \"./utils/Device\";\nimport { attachKeyboardHandler } from \"./utils/DragDropUtils\";\n\n/**\n *\n * Abstract base class for all panels placed in {@link sap.cux.home.BaseContainer}.\n *\n * @extends sap.ui.core.Element\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @abstract\n * @internal\n * @public\n *\n * @alias sap.cux.home.BasePanel\n */\nexport default abstract class BasePanel extends Element {\n\tprotected _i18nBundle!: ResourceBundle;\n\tprivate _content!: Control[];\n\n\tconstructor(id?: string | $BasePanelSettings);\n\tconstructor(id?: string, settings?: $BasePanelSettings);\n\t/**\n\t * Constructor for a new Base Panel.\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?: $BasePanelSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Title for the panel.\n\t\t\t */\n\t\t\ttitle: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Key for the panel.\n\t\t\t */\n\t\t\tkey: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Tooltip for the panel.\n\t\t\t */\n\t\t\ttooltip: { type: \"string\", group: \"Misc\", defaultValue: \"\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Specifies whether settings should be enabled for the panel.\n\t\t\t */\n\t\t\tenableSettings: { type: \"boolean\", group: \"Misc\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Specifies whether key user settings should be enabled for the panel.\n\t\t\t */\n\t\t\tenableKeyUserSettings: { type: \"boolean\", group: \"Misc\", visibility: \"hidden\", defaultValue: true },\n\t\t\t/**\n\t\t\t * Indicates whether full screen is enabled for this control.\n\t\t\t */\n\t\t\tenableFullScreen: { type: \"boolean\", group: \"Misc\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * The name of the URL parameter used to expand the container into full-screen mode.\n\t\t\t * This property specifies the parameter key expected in the URL query string\n\t\t\t * to identify the container to be expanded.\n\t\t\t */\n\t\t\tfullScreenName: { type: \"string\", group: \"Misc\", visibility: \"hidden\" }\n\t\t},\n\t\tdefaultAggregation: \"content\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Specifies the content aggregation of the panel.\n\t\t\t */\n\t\t\tcontent: { multiple: true, singularName: \"content\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Specifies the actions to be shown within the panel.\n\t\t\t */\n\t\t\tactionButtons: { type: \"sap.m.Button\", multiple: true, singularName: \"actionButton\" },\n\t\t\t/**\n\t\t\t * Specifies the items that are shown within the dropdown menu of the panel.\n\t\t\t */\n\t\t\tmenuItems: { type: \"sap.cux.home.MenuItem\", multiple: true, singularName: \"menuItem\" }\n\t\t},\n\t\tevents: {\n\t\t\t/**\n\t\t\t * Event is fired before the container is expanded.\n\t\t\t */\n\t\t\tonExpand: {},\n\t\t\t/**\n\t\t\t * Event is fired after the panel is loaded.\n\t\t\t */\n\t\t\tloaded: {}\n\t\t},\n\t\tassociations: {\n\t\t\tfullScreenButton: { type: \"sap.m.Button\", multiple: false, singularName: \"fullScreenButton\", visibility: \"hidden\" }\n\t\t}\n\t};\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tthis._content = [];\n\t\tthis._i18nBundle = Lib.getResourceBundleFor(\"sap.cux.home.i18n\") as ResourceBundle;\n\t}\n\n\t/**\n\t * Cache and return panel content since the content would\n\t * have a different inner control as parent after rendering\n\t *\n\t * @private\n\t * @returns {Control[]} - array of panel content\n\t */\n\tpublic _getContent(): Control[] {\n\t\tthis._content = this._content || this.getAggregation(\"content\");\n\t\treturn this._content;\n\t}\n\n\t/**\n\t * Overridden method for adding content to a panel so that\n\t * it's added to the corresponding layout-specific inner\n\t * control as well\n\t *\n\t * @private\n\t * @param {Control} control - control to be added to the content\n\t */\n\tpublic _addContent(control: Control): void {\n\t\tthis._content = this._content || this.getAggregation(\"content\");\n\t\tthis._content.push(control);\n\t\tthis.insertAggregation(\"content\", control, 0);\n\n\t\t//Insert into parent's layout control\n\t\t(this.getParent() as BaseContainer)?._addToPanel(this, control);\n\t}\n\n\t/**\n\t * Updates the count information of IconTabFilter of IconTabBar inner control\n\t * in case of SideBySide layout\n\t *\n\t * @private\n\t * @param {string} count - updated count information\n\t */\n\tpublic _setCount(count?: string): void {\n\t\t(this.getParent() as BaseContainer)?._setPanelCount(this, count);\n\t}\n\n\t/**\n\t * Retrieves the device type for the current panel.\n\t *\n\t * @private\n\t * @returns {DeviceType} - The device type of the parent container if it exists,\n\t * otherwise calculates and returns the device type based on the current device width.\n\t */\n\tprotected getDeviceType(): DeviceType {\n\t\tconst container = this.getParent() as BaseContainer;\n\t\treturn container ? container.getDeviceType() : calculateDeviceType();\n\t}\n\n\tprotected addDragDropConfigTo(\n\t\tcontainer: GridContainer | FlexBox | HeaderContainer,\n\t\tdropHandler: (event: DropInfo$DropEvent) => void,\n\t\tkeyboardHandler?: (event: KeyboardEvent) => void,\n\t\tdropPositionType: dnd.DropPosition = dnd.DropPosition.Between\n\t): void {\n\t\tcontainer\n\t\t\t.addDragDropConfig(\n\t\t\t\tnew DragDropInfo(`${container.getId()}--addDragDropConfig`, {\n\t\t\t\t\tsourceAggregation: \"items\",\n\t\t\t\t\ttargetAggregation: \"items\",\n\t\t\t\t\tdropPosition: dropPositionType,\n\t\t\t\t\tdropLayout: dnd.DropLayout.Horizontal,\n\t\t\t\t\tdrop: dropHandler\n\t\t\t\t})\n\t\t\t)\n\t\t\t.attachBrowserEvent(\"keydown\", (event: KeyboardEvent) => {\n\t\t\t\tconst disableNavigation = event.metaKey || event.ctrlKey;\n\t\t\t\tvoid attachKeyboardHandler(event, disableNavigation, (dragDropEvent: DropInfo$DropEvent) => {\n\t\t\t\t\tdropHandler(dragDropEvent);\n\t\t\t\t});\n\t\t\t});\n\t\tif (keyboardHandler) {\n\t\t\tcontainer.attachBrowserEvent(\"keydown\", keyboardHandler);\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,yJAAAC,YAAA,EAAAC,OAAA,EAAAC,GAAA,EAAAC,mBAAA,EAAAC,eAAA,EAAAC,sBAAA;EAAA;;EAAA,MAeSC,GAAG,GAAAH,mBAAA;EAAA,MAGSI,mBAAmB,GAAAH,eAAA;EAAA,MAC/BI,qBAAqB,GAAAH,sBAAA;EAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAfA,MAgB8BI,SAAS,GAASR,OAAO,CAAAS,MAAA;IAgBtCC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,KAAK,EAAE;UAAEC,IAAI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["sap","ui","define","DragDropInfo","Element","Lib","sap_ui_core_library","___utils_Device","___utils_DragDropUtils","dnd","calculateDeviceType","attachKeyboardHandler","BasePanel","extend","metadata","library","properties","title","type","group","defaultValue","key","visible","tooltip","visibility","enableSettings","enableKeyUserSettings","enableFullScreen","fullScreenName","defaultAggregation","aggregations","content","multiple","singularName","actionButtons","menuItems","events","onExpand","loaded","associations","fullScreenButton","constructor","_constructor","id","settings","Element.prototype.constructor.call","init","_init","_i18nBundle","getResourceBundleFor","getProperty","setProperty","getId","_setCount","count","getParent","_setPanelCount","getDeviceType","_getDeviceType","container","addDragDropConfigTo","_addDragDropConfigTo","dropHandler","keyboardHandler","dropPositionType","DropPosition","Between","addDragDropConfig","sourceAggregation","targetAggregation","dropPosition","dropLayout","DropLayout","Horizontal","drop","attachBrowserEvent","event","disableNavigation","metaKey","ctrlKey","dragDropEvent"],"sources":["BasePanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport ResourceBundle from \"sap/base/i18n/ResourceBundle\";\nimport GridContainer from \"sap/f/GridContainer\";\nimport FlexBox from \"sap/m/FlexBox\";\nimport HeaderContainer from \"sap/m/HeaderContainer\";\nimport DragDropInfo from \"sap/ui/core/dnd/DragDropInfo\";\nimport { DropInfo$DropEvent } from \"sap/ui/core/dnd/DropInfo\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Element from \"sap/ui/core/Element\";\nimport Lib from \"sap/ui/core/Lib\";\nimport { dnd } from \"sap/ui/core/library\";\nimport BaseContainer from \"./BaseContainer\";\nimport { $BasePanelSettings } from \"./BasePanel\";\nimport { DeviceType, calculateDeviceType } from \"./utils/Device\";\nimport { attachKeyboardHandler } from \"./utils/DragDropUtils\";\n\n/**\n *\n * Abstract base class for all panels placed in {@link sap.cux.home.BaseContainer}.\n *\n * @extends sap.ui.core.Element\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @abstract\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.BasePanel\n */\nexport default abstract class BasePanel extends Element {\n\tprotected _i18nBundle!: ResourceBundle;\n\n\tconstructor(id?: string | $BasePanelSettings);\n\tconstructor(id?: string, settings?: $BasePanelSettings);\n\t/**\n\t * Constructor for a new Base Panel.\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?: $BasePanelSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Title for the panel.\n\t\t\t */\n\t\t\ttitle: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Key for the panel.\n\t\t\t */\n\t\t\tkey: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Specifies whether the panel should be visible.\n\t\t\t */\n\t\t\tvisible: { type: \"boolean\", group: \"Misc\", defaultValue: true },\n\t\t\t/**\n\t\t\t * Tooltip for the panel.\n\t\t\t */\n\t\t\ttooltip: { type: \"string\", group: \"Misc\", defaultValue: \"\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Specifies whether settings should be enabled for the panel.\n\t\t\t */\n\t\t\tenableSettings: { type: \"boolean\", group: \"Misc\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Specifies whether key user settings should be enabled for the panel.\n\t\t\t */\n\t\t\tenableKeyUserSettings: { type: \"boolean\", group: \"Misc\", visibility: \"hidden\", defaultValue: true },\n\t\t\t/**\n\t\t\t * Indicates whether full screen is enabled for this control.\n\t\t\t */\n\t\t\tenableFullScreen: { type: \"boolean\", group: \"Misc\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * The name of the URL parameter used to expand the container into full-screen mode.\n\t\t\t * This property specifies the parameter key expected in the URL query string\n\t\t\t * to identify the container to be expanded.\n\t\t\t */\n\t\t\tfullScreenName: { type: \"string\", group: \"Misc\", visibility: \"hidden\" }\n\t\t},\n\t\tdefaultAggregation: \"content\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Specifies the content aggregation of the panel.\n\t\t\t */\n\t\t\tcontent: { multiple: true, singularName: \"content\" },\n\t\t\t/**\n\t\t\t * Specifies the actions to be shown within the panel.\n\t\t\t */\n\t\t\tactionButtons: { type: \"sap.m.Button\", multiple: true, singularName: \"actionButton\" },\n\t\t\t/**\n\t\t\t * Specifies the items that are shown within the dropdown menu of the panel.\n\t\t\t */\n\t\t\tmenuItems: { type: \"sap.cux.home.MenuItem\", multiple: true, singularName: \"menuItem\" }\n\t\t},\n\t\tevents: {\n\t\t\t/**\n\t\t\t * Event is fired before the container is expanded.\n\t\t\t */\n\t\t\tonExpand: {},\n\t\t\t/**\n\t\t\t * Event is fired after the panel is loaded.\n\t\t\t */\n\t\t\tloaded: {}\n\t\t},\n\t\tassociations: {\n\t\t\tfullScreenButton: { type: \"sap.m.Button\", multiple: false, singularName: \"fullScreenButton\", visibility: \"hidden\" }\n\t\t}\n\t};\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tthis._i18nBundle = Lib.getResourceBundleFor(\"sap.cux.home.i18n\") as ResourceBundle;\n\n\t\t// set default key if not provided\n\t\tif (!this.getProperty(\"key\")) {\n\t\t\tthis.setProperty(\"key\", this.getId());\n\t\t}\n\t}\n\n\t/**\n\t * Updates the count information of IconTabFilter of IconTabBar inner control\n\t * in case of SideBySide layout\n\t *\n\t * @private\n\t * @param {string} count - updated count information\n\t */\n\tpublic _setCount(count?: string): void {\n\t\t(this.getParent() as BaseContainer)?._setPanelCount(this, count);\n\t}\n\n\t/**\n\t * Retrieves the device type for the current panel.\n\t *\n\t * @private\n\t * @returns {DeviceType} - The device type of the parent container if it exists,\n\t * otherwise calculates and returns the device type based on the current device width.\n\t */\n\tprotected getDeviceType(): DeviceType {\n\t\tconst container = this.getParent() as BaseContainer;\n\t\treturn container ? container.getDeviceType() : calculateDeviceType();\n\t}\n\n\tprotected addDragDropConfigTo(\n\t\tcontainer: GridContainer | FlexBox | HeaderContainer,\n\t\tdropHandler: (event: DropInfo$DropEvent) => void,\n\t\tkeyboardHandler?: (event: KeyboardEvent) => void,\n\t\tdropPositionType: dnd.DropPosition = dnd.DropPosition.Between\n\t): void {\n\t\tcontainer\n\t\t\t.addDragDropConfig(\n\t\t\t\tnew DragDropInfo(`${container.getId()}--addDragDropConfig`, {\n\t\t\t\t\tsourceAggregation: \"items\",\n\t\t\t\t\ttargetAggregation: \"items\",\n\t\t\t\t\tdropPosition: dropPositionType,\n\t\t\t\t\tdropLayout: dnd.DropLayout.Horizontal,\n\t\t\t\t\tdrop: dropHandler\n\t\t\t\t})\n\t\t\t)\n\t\t\t.attachBrowserEvent(\"keydown\", (event: KeyboardEvent) => {\n\t\t\t\tconst disableNavigation = event.metaKey || event.ctrlKey;\n\t\t\t\tvoid attachKeyboardHandler(event, disableNavigation, (dragDropEvent: DropInfo$DropEvent) => {\n\t\t\t\t\tdropHandler(dragDropEvent);\n\t\t\t\t});\n\t\t\t});\n\t\tif (keyboardHandler) {\n\t\t\tcontainer.attachBrowserEvent(\"keydown\", keyboardHandler);\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,yJAAAC,YAAA,EAAAC,OAAA,EAAAC,GAAA,EAAAC,mBAAA,EAAAC,eAAA,EAAAC,sBAAA;EAAA;;EAAA,MAcSC,GAAG,GAAAH,mBAAA;EAAA,MAGSI,mBAAmB,GAAAH,eAAA;EAAA,MAC/BI,qBAAqB,GAAAH,sBAAA;EAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAfA,MAgB8BI,SAA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SAAS,CAAC,CAAkB;MACnD,OAAOI,SAAS,GAAGA,SAAS,CAACF,aAAa,CAAC,CAAC,GAAG/C,mBAAmB,CAAC,CAAC;IACrE,CAAC;IAESkD,mBAAmB,WAAAC,qBAC5BF,SAAoD,EACpDG,WAAgD,EAChDC,eAAgD,EAChDC,gBAAkC,GAAGvD,GAAG,CAACwD,YAAY,CAACC,OAAO,EACtD;MACPP,SAAS,CACPQ,iBAAiB,CACjB,IAAIhE,YAAY,CAAC,GAAGwD,SAAS,CAACP,KAAK,CAAC,CAAC,qBAAqB,EAAE;QAC3DgB,iBAAiB,EAAE,OAAO;QAC1BC,iBAAiB,EAAE,OAAO;QAC1BC,YAAY,EAAEN,gBAAgB;QAC9BO,UAAU,EAAE9D,GAAG,CAAC+D,UAAU,CAACC,UAAU;QACrCC,IAAI,EAAEZ;MACP,CAAC,CACF,CAAC,CACAa,kBAAkB,CAAC,SAAS,EAAGC,KAAoB,IAAK;QACxD,MAAMC,iBAAiB,GAAGD,KAAK,CAACE,OAAO,IAAIF,KAAK,CAACG,OAAO;QACxD,KAAKpE,qBAAqB,CAACiE,KAAK,EAAEC,iBAAiB,EAAGG,aAAiC,IAAK;UAC3FlB,WAAW,CAACkB,aAAa,CAAC;QAC3B,CAAC,CAAC;MACH,CAAC,CAAC;MACH,IAAIjB,eAAe,EAAE;QACpBJ,SAAS,CAACgB,kBAAkB,CAAC,SAAS,EAAEZ,eAAe,CAAC;MACzD;IACD;EAAC;EAAA,OAlJ4BnD,SAAS;AAAA","ignoreList":[]}
@@ -7,7 +7,6 @@ import ResourceBundle from "sap/base/i18n/ResourceBundle";
7
7
  import GridContainer from "sap/f/GridContainer";
8
8
  import FlexBox from "sap/m/FlexBox";
9
9
  import HeaderContainer from "sap/m/HeaderContainer";
10
- import Control from "sap/ui/core/Control";
11
10
  import DragDropInfo from "sap/ui/core/dnd/DragDropInfo";
12
11
  import { DropInfo$DropEvent } from "sap/ui/core/dnd/DropInfo";
13
12
  import type { MetadataOptions } from "sap/ui/core/Element";
@@ -30,14 +29,13 @@ import { attachKeyboardHandler } from "./utils/DragDropUtils";
30
29
  * @since 1.121
31
30
  *
32
31
  * @abstract
33
- * @internal
34
- * @public
32
+ * @private
33
+ * @ui5-restricted ux.eng.s4producthomes1
35
34
  *
36
35
  * @alias sap.cux.home.BasePanel
37
36
  */
38
37
  export default abstract class BasePanel extends Element {
39
38
  protected _i18nBundle!: ResourceBundle;
40
- private _content!: Control[];
41
39
 
42
40
  constructor(id?: string | $BasePanelSettings);
43
41
  constructor(id?: string, settings?: $BasePanelSettings);
@@ -62,6 +60,10 @@ export default abstract class BasePanel extends Element {
62
60
  * Key for the panel.
63
61
  */
64
62
  key: { type: "string", group: "Misc", defaultValue: "" },
63
+ /**
64
+ * Specifies whether the panel should be visible.
65
+ */
66
+ visible: { type: "boolean", group: "Misc", defaultValue: true },
65
67
  /**
66
68
  * Tooltip for the panel.
67
69
  */
@@ -90,7 +92,7 @@ export default abstract class BasePanel extends Element {
90
92
  /**
91
93
  * Specifies the content aggregation of the panel.
92
94
  */
93
- content: { multiple: true, singularName: "content", visibility: "hidden" },
95
+ content: { multiple: true, singularName: "content" },
94
96
  /**
95
97
  * Specifies the actions to be shown within the panel.
96
98
  */
@@ -122,37 +124,12 @@ export default abstract class BasePanel extends Element {
122
124
  * @override
123
125
  */
124
126
  public init(): void {
125
- this._content = [];
126
127
  this._i18nBundle = Lib.getResourceBundleFor("sap.cux.home.i18n") as ResourceBundle;
127
- }
128
128
 
129
- /**
130
- * Cache and return panel content since the content would
131
- * have a different inner control as parent after rendering
132
- *
133
- * @private
134
- * @returns {Control[]} - array of panel content
135
- */
136
- public _getContent(): Control[] {
137
- this._content = this._content || this.getAggregation("content");
138
- return this._content;
139
- }
140
-
141
- /**
142
- * Overridden method for adding content to a panel so that
143
- * it's added to the corresponding layout-specific inner
144
- * control as well
145
- *
146
- * @private
147
- * @param {Control} control - control to be added to the content
148
- */
149
- public _addContent(control: Control): void {
150
- this._content = this._content || this.getAggregation("content");
151
- this._content.push(control);
152
- this.insertAggregation("content", control, 0);
153
-
154
- //Insert into parent's layout control
155
- (this.getParent() as BaseContainer)?._addToPanel(this, control);
129
+ // set default key if not provided
130
+ if (!this.getProperty("key")) {
131
+ this.setProperty("key", this.getId());
132
+ }
156
133
  }
157
134
 
158
135
  /**
@@ -17,9 +17,9 @@ declare module "sap/cux/home/BaseSettingsDialog" {
17
17
  * @version 0.0.1
18
18
  * @since 1.121
19
19
  *
20
- * @internal
21
20
  * @abstract
22
- * @public
21
+ * @private
22
+ * @ui5-restricted ux.eng.s4producthomes1
23
23
  *
24
24
  * @alias sap.cux.home.BaseSettingsDialog
25
25
  */
@@ -15,9 +15,9 @@ sap.ui.define(["sap/m/Dialog", "sap/ui/core/Lib"], function (Dialog, Lib) {
15
15
  * @version 0.0.1
16
16
  * @since 1.121
17
17
  *
18
- * @internal
19
18
  * @abstract
20
- * @public
19
+ * @private
20
+ * @ui5-restricted ux.eng.s4producthomes1
21
21
  *
22
22
  * @alias sap.cux.home.BaseSettingsDialog
23
23
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSettingsDialog.js","names":["sap","ui","define","Dialog","Lib","BaseSettingsDialog","extend","renderer","apiVersion","metadata","library","properties","selectedKey","type","group","defaultValue","visibility","context","defaultAggregation","aggregations","panels","singularName","multiple","constructor","_constructor","id","settings","Dialog.prototype.constructor.call","init","_init","Dialog.prototype.init.call","_i18nBundle","getResourceBundleFor","_panelCache","addStyleClass","getPanels","_getPanels","slice","addPanel","_addPanel","panel","push","addAggregation","insertPanel","_insertPanel","index","splice","insertAggregation","removePanel","_removePanel","indexOf","removeAggregation","removeAllPanels","_removeAllPanels","removeAllAggregation"],"sources":["BaseSettingsDialog.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport ResourceBundle from \"sap/base/i18n/ResourceBundle\";\nimport Dialog from \"sap/m/Dialog\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Lib from \"sap/ui/core/Lib\";\nimport { $BaseSettingsDialogSettings } from \"./BaseSettingsDialog\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\n\n/**\n *\n * Abstract base class for custom settings dialog for {@link sap.cux.home.BaseLayout}.\n *\n * @extends Dialog\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @internal\n * @abstract\n * @public\n *\n * @alias sap.cux.home.BaseSettingsDialog\n */\nexport default abstract class BaseSettingsDialog extends Dialog {\n\tprotected _i18nBundle!: ResourceBundle;\n\tprivate _panelCache!: BaseSettingsPanel[];\n\n\tconstructor(id?: string | $BaseSettingsDialogSettings);\n\tconstructor(id?: string, settings?: $BaseSettingsDialogSettings);\n\t/**\n\t * Constructor for a new Base Settings Dialog.\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?: $BaseSettingsDialogSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * The selectedkey of the settings dialog\n\t\t\t */\n\t\t\tselectedKey: { type: \"string\", group: \"Misc\", defaultValue: \"\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Additional context of the settings dialog\n\t\t\t */\n\t\t\tcontext: { type: \"object\", group: \"Misc\", defaultValue: {}, visibility: \"hidden\" }\n\t\t},\n\t\tdefaultAggregation: \"panels\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Contains the panels aggregation and should be of type BaseSettingsPanel.\n\t\t\t */\n\t\t\tpanels: { type: \"sap.cux.home.BaseSettingsPanel\", singularName: \"panel\", multiple: true }\n\t\t}\n\t};\n\n\tstatic renderer = {\n\t\tapiVersion: 2\n\t};\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @public\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis._i18nBundle = Lib.getResourceBundleFor(\"sap.cux.home.i18n\") as ResourceBundle;\n\n\t\t//setup page\n\t\tthis._panelCache = [];\n\t\tthis.addStyleClass(\"sapContrastPlus\");\n\t}\n\n\t/**\n\t * Returns all the panels in the dialog.\n\t * Overridden to return cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @returns {BaseSettingsPanel[]} panel array\n\t */\n\tpublic getPanels(): BaseSettingsPanel[] {\n\t\treturn this._panelCache.slice();\n\t}\n\n\t/**\n\t * Adds a new panel at the end of the available panels.\n\t * Overridden to update cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @returns {BaseSettingsDialog} the dialog for chaining\n\t */\n\taddPanel(panel: BaseSettingsPanel): BaseSettingsDialog {\n\t\tthis._panelCache.push(panel);\n\t\tthis.addAggregation(\"panels\", panel);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Adds a new panel to the 'panels' aggregation at the index.\n\t * Overridden to update cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @param {BaseSettingsPanel} panel The panel to insert.\n\t * @param {number} index The index at which to insert the panel.\n\t * @returns {BaseSettingsDialog} Returns 'this' to allow method chaining.\n\t */\n\tinsertPanel(panel: BaseSettingsPanel, index: number): BaseSettingsDialog {\n\t\tthis._panelCache.splice(index, 0, panel);\n\t\tthis.insertAggregation(\"panels\", panel, index);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Removes a panel from the dialog and updates the cache.\n\t *\n\t * @public\n\t * @param {BaseSettingsPanel} panel - The panel to remove.\n\t * @returns {BaseSettingsPanel} The removed panel.\n\t */\n\tremovePanel(panel: BaseSettingsPanel): BaseSettingsPanel {\n\t\tthis._panelCache.splice(this._panelCache.indexOf(panel), 1);\n\t\treturn this.removeAggregation(\"panels\", panel) as BaseSettingsPanel;\n\t}\n\n\t/**\n\t * Removes all panels from the dialog, clears the internal panel cache.\n\t * Overridden to update cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @returns {BaseSettingsPanel[]} An empty array representing the removed panels.\n\t */\n\tremoveAllPanels(): BaseSettingsPanel[] {\n\t\tthis._panelCache = [];\n\t\tthis.removeAllAggregation(\"panels\");\n\t\treturn this.getPanels();\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,gDAAAC,MAAA,EAAAC,GAAA;EAAA;;EAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAfA,MAgB8BC,kBAAkB,GAASF,MAAM,CAAAG,MAAA;IAqCvDC,QAAQ,EAAG;MACjBC,UAAU,EAAE;IACb,CAAC;IAvBeC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,WAAW,EAAE;UAAEC,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE,EAAE;UAAEC,UAAU,EAAE;QAAS,CAAC;QACtF;AACH;AACA;QACGC,OAAO,EAAE;UAAEJ,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE,CAAC,CAAC;UAAEC,UAAU,EAAE;QAAS;MAClF,CAAC;MACDE,kBAAkB,EAAE,QAAQ;MAC5BC,YAAY,EAAE;QACb;AACH;AACA;QACGC,MAAM,EAAE;UAAEP,IAAI,EAAE,gCAAgC;UAAEQ,YAAY,EAAE,OAAO;UAAEC,QAAQ,EAAE;QAAK;MACzF;IACD,CAAC;IA7BD;AACD;AACA;AACA;AACA;AACA;IACQC,WAAW,WAAAC,aAACC,EAAW,EAAEC,QAAsC,EAAE;MACvEC,iCAAA,OAAMF,EAAE,EAAEC,QAAQ;IACnB,CAAC;IA2BD;AACD;AACA;AACA;AACA;AACA;IACQE,IAAI,WAAAC,MAAA,EAAS;MACnBC,0BAAA;MACA,IAAI,CAACC,WAAW,GAAG3B,G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SAAS,CAAC,CAAC;IACxB;EAAC;EAAA,OA1H4B9B,kBAAkB;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"BaseSettingsDialog.js","names":["sap","ui","define","Dialog","Lib","BaseSettingsDialog","extend","renderer","apiVersion","metadata","library","properties","selectedKey","type","group","defaultValue","visibility","context","defaultAggregation","aggregations","panels","singularName","multiple","constructor","_constructor","id","settings","Dialog.prototype.constructor.call","init","_init","Dialog.prototype.init.call","_i18nBundle","getResourceBundleFor","_panelCache","addStyleClass","getPanels","_getPanels","slice","addPanel","_addPanel","panel","push","addAggregation","insertPanel","_insertPanel","index","splice","insertAggregation","removePanel","_removePanel","indexOf","removeAggregation","removeAllPanels","_removeAllPanels","removeAllAggregation"],"sources":["BaseSettingsDialog.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport ResourceBundle from \"sap/base/i18n/ResourceBundle\";\nimport Dialog from \"sap/m/Dialog\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Lib from \"sap/ui/core/Lib\";\nimport { $BaseSettingsDialogSettings } from \"./BaseSettingsDialog\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\n\n/**\n *\n * Abstract base class for custom settings dialog for {@link sap.cux.home.BaseLayout}.\n *\n * @extends Dialog\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @abstract\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.BaseSettingsDialog\n */\nexport default abstract class BaseSettingsDialog extends Dialog {\n\tprotected _i18nBundle!: ResourceBundle;\n\tprivate _panelCache!: BaseSettingsPanel[];\n\n\tconstructor(id?: string | $BaseSettingsDialogSettings);\n\tconstructor(id?: string, settings?: $BaseSettingsDialogSettings);\n\t/**\n\t * Constructor for a new Base Settings Dialog.\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?: $BaseSettingsDialogSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * The selectedkey of the settings dialog\n\t\t\t */\n\t\t\tselectedKey: { type: \"string\", group: \"Misc\", defaultValue: \"\", visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Additional context of the settings dialog\n\t\t\t */\n\t\t\tcontext: { type: \"object\", group: \"Misc\", defaultValue: {}, visibility: \"hidden\" }\n\t\t},\n\t\tdefaultAggregation: \"panels\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Contains the panels aggregation and should be of type BaseSettingsPanel.\n\t\t\t */\n\t\t\tpanels: { type: \"sap.cux.home.BaseSettingsPanel\", singularName: \"panel\", multiple: true }\n\t\t}\n\t};\n\n\tstatic renderer = {\n\t\tapiVersion: 2\n\t};\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @public\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis._i18nBundle = Lib.getResourceBundleFor(\"sap.cux.home.i18n\") as ResourceBundle;\n\n\t\t//setup page\n\t\tthis._panelCache = [];\n\t\tthis.addStyleClass(\"sapContrastPlus\");\n\t}\n\n\t/**\n\t * Returns all the panels in the dialog.\n\t * Overridden to return cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @returns {BaseSettingsPanel[]} panel array\n\t */\n\tpublic getPanels(): BaseSettingsPanel[] {\n\t\treturn this._panelCache.slice();\n\t}\n\n\t/**\n\t * Adds a new panel at the end of the available panels.\n\t * Overridden to update cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @returns {BaseSettingsDialog} the dialog for chaining\n\t */\n\taddPanel(panel: BaseSettingsPanel): BaseSettingsDialog {\n\t\tthis._panelCache.push(panel);\n\t\tthis.addAggregation(\"panels\", panel);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Adds a new panel to the 'panels' aggregation at the index.\n\t * Overridden to update cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @param {BaseSettingsPanel} panel The panel to insert.\n\t * @param {number} index The index at which to insert the panel.\n\t * @returns {BaseSettingsDialog} Returns 'this' to allow method chaining.\n\t */\n\tinsertPanel(panel: BaseSettingsPanel, index: number): BaseSettingsDialog {\n\t\tthis._panelCache.splice(index, 0, panel);\n\t\tthis.insertAggregation(\"panels\", panel, index);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Removes a panel from the dialog and updates the cache.\n\t *\n\t * @public\n\t * @param {BaseSettingsPanel} panel - The panel to remove.\n\t * @returns {BaseSettingsPanel} The removed panel.\n\t */\n\tremovePanel(panel: BaseSettingsPanel): BaseSettingsPanel {\n\t\tthis._panelCache.splice(this._panelCache.indexOf(panel), 1);\n\t\treturn this.removeAggregation(\"panels\", panel) as BaseSettingsPanel;\n\t}\n\n\t/**\n\t * Removes all panels from the dialog, clears the internal panel cache.\n\t * Overridden to update cached panels.\n\t *\n\t * @public\n\t * @override\n\t * @returns {BaseSettingsPanel[]} An empty array representing the removed panels.\n\t */\n\tremoveAllPanels(): BaseSettingsPanel[] {\n\t\tthis._panelCache = [];\n\t\tthis.removeAllAggregation(\"panels\");\n\t\treturn this.getPanels();\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,gDAAAC,MAAA,EAAAC,GAAA;EAAA;;EAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAfA,MAgB8BC,kBAAkB,GAASF,MAAM,CAAAG,MAAA;IAqCvDC,QAAQ,EAAG;MACjBC,UAAU,EAAE;IACb,CAAC;IAvBeC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,WAAW,EAAE;UAAEC,IAAI,EAAE,QAAQ;UAAEC,K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AwB,EAAEK,KAAa,EAAsB;MACxE,IAAI,CAACZ,WAAW,CAACa,MAAM,CAACD,KAAK,EAAE,CAAC,EAAEL,KAAK,CAAC;MACxC,IAAI,CAACO,iBAAiB,CAAC,QAAQ,EAAEP,KAAK,EAAEK,KAAK,CAAC;MAC9C,OAAO,IAAI;IACZ,CAAC;IAED;AACD;AACA;AACA;AACA;AACA;AACA;IACCG,WAAW,WAAAC,aAACT,KAAwB,EAAqB;MACxD,IAAI,CAACP,WAAW,CAACa,MAAM,CAAC,IAAI,CAACb,WAAW,CAACiB,OAAO,CAACV,KAAK,CAAC,EAAE,CAAC,CAAC;MAC3D,OAAO,IAAI,CAACW,iBAAiB,CAAC,QAAQ,EAAEX,KAAK,CAAC;IAC/C,CAAC;IAED;AACD;AACA;AACA;AACA;AACA;AACA;AACA;IACCY,eAAe,WAAAC,iBAAA,EAAwB;MACtC,IAAI,CAACpB,WAAW,GAAG,EAAE;MACrB,IAAI,CAACqB,oBAAoB,CAAC,QAAQ,CAAC;MACnC,OAAO,IAAI,CAACnB,SAAS,CAAC,CAAC;IACxB;EAAC;EAAA,OA1H4B9B,kBAAkB;AAAA","ignoreList":[]}
@@ -20,9 +20,9 @@ import BaseSettingsPanel from "./BaseSettingsPanel";
20
20
  * @version 0.0.1
21
21
  * @since 1.121
22
22
  *
23
- * @internal
24
23
  * @abstract
25
- * @public
24
+ * @private
25
+ * @ui5-restricted ux.eng.s4producthomes1
26
26
  *
27
27
  * @alias sap.cux.home.BaseSettingsDialog
28
28
  */
@@ -24,9 +24,9 @@ declare module "sap/cux/home/BaseSettingsPanel" {
24
24
  * @version 0.0.1
25
25
  * @since 1.121
26
26
  *
27
- * @internal
28
27
  * @abstract
29
- * @public
28
+ * @private
29
+ * @ui5-restricted ux.eng.s4producthomes1
30
30
  *
31
31
  * @alias sap.cux.home.BaseSettingsPanel
32
32
  */
@@ -17,9 +17,9 @@ sap.ui.define(["sap/ui/core/dnd/DragDropInfo", "sap/ui/core/Element", "sap/ui/co
17
17
  * @version 0.0.1
18
18
  * @since 1.121
19
19
  *
20
- * @internal
21
20
  * @abstract
22
- * @public
21
+ * @private
22
+ * @ui5-restricted ux.eng.s4producthomes1
23
23
  *
24
24
  * @alias sap.cux.home.BaseSettingsPanel
25
25
  */