@sapui5/sap.cux.home 1.142.0 → 1.142.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +4 -1
  3. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +3 -2
  4. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
  5. package/src/sap/cux/home/AdvancedSettingsPanel.js +6 -5
  6. package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
  7. package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -5
  8. package/src/sap/cux/home/AppsAdditionPanel.d.ts +47 -34
  9. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  10. package/src/sap/cux/home/AppsAdditionPanel.js +333 -237
  11. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  12. package/src/sap/cux/home/AppsAdditionPanel.ts +344 -230
  13. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  14. package/src/sap/cux/home/AppsContainer.js +3 -2
  15. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  16. package/src/sap/cux/home/AppsContainer.ts +3 -2
  17. package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
  18. package/src/sap/cux/home/BaseAppPanel.js +6 -1
  19. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  20. package/src/sap/cux/home/BaseAppPanel.ts +6 -1
  21. package/src/sap/cux/home/BaseContainer.d.ts +1 -1
  22. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  23. package/src/sap/cux/home/BaseContainer.js +10 -2
  24. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  25. package/src/sap/cux/home/BaseContainer.ts +7 -3
  26. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  27. package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
  28. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  29. package/src/sap/cux/home/BaseContainerRenderer.ts +6 -0
  30. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  31. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  32. package/src/sap/cux/home/CardsContainer.d.ts +108 -0
  33. package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
  34. package/src/sap/cux/home/CardsContainer.js +207 -0
  35. package/src/sap/cux/home/CardsContainer.js.map +1 -0
  36. package/src/sap/cux/home/CardsContainer.ts +202 -0
  37. package/src/sap/cux/home/CardsPanel.d.ts +43 -62
  38. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  39. package/src/sap/cux/home/CardsPanel.js +345 -285
  40. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  41. package/src/sap/cux/home/CardsPanel.ts +211 -200
  42. package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
  43. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  44. package/src/sap/cux/home/ContentAdditionDialog.js +12 -6
  45. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  46. package/src/sap/cux/home/ContentAdditionDialog.ts +13 -5
  47. package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
  48. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  49. package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
  50. package/src/sap/cux/home/ErrorPanel.js +11 -16
  51. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  52. package/src/sap/cux/home/ErrorPanel.ts +7 -19
  53. package/src/sap/cux/home/FavAppPanel.d.ts +1 -2
  54. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  55. package/src/sap/cux/home/FavAppPanel.js +296 -301
  56. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  57. package/src/sap/cux/home/FavAppPanel.ts +14 -10
  58. package/src/sap/cux/home/InsightsAdditionPanel.d.ts +11 -4
  59. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  60. package/src/sap/cux/home/InsightsAdditionPanel.js +20 -8
  61. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  62. package/src/sap/cux/home/InsightsAdditionPanel.ts +20 -7
  63. package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts +8 -0
  64. package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts.map +1 -1
  65. package/src/sap/cux/home/InsightsCardsSettingsPanel.js +15 -0
  66. package/src/sap/cux/home/InsightsCardsSettingsPanel.js.map +1 -1
  67. package/src/sap/cux/home/InsightsCardsSettingsPanel.ts +11 -0
  68. package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
  69. package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
  70. package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +1 -1
  71. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
  72. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
  73. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
  74. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
  75. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +287 -57
  76. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  77. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
  78. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  79. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
  80. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
  81. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  82. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
  83. package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
  84. package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
  85. package/src/sap/cux/home/Layout.d.ts +3 -1
  86. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  87. package/src/sap/cux/home/Layout.js +49 -8
  88. package/src/sap/cux/home/Layout.js.map +1 -1
  89. package/src/sap/cux/home/Layout.ts +59 -8
  90. package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
  91. package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
  92. package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
  93. package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
  94. package/src/sap/cux/home/LayoutSettingsPanel.ts +379 -63
  95. package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -14
  96. package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
  97. package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
  98. package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
  99. package/src/sap/cux/home/NewsContainer.js.map +1 -0
  100. package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +29 -118
  101. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  102. package/src/sap/cux/home/NewsGroup.ts +1 -1
  103. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  104. package/src/sap/cux/home/NewsPanel.js +12 -14
  105. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  106. package/src/sap/cux/home/NewsPanel.ts +13 -16
  107. package/src/sap/cux/home/NewsSettingsPanel.js +4 -4
  108. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  109. package/src/sap/cux/home/NewsSettingsPanel.ts +5 -5
  110. package/src/sap/cux/home/PagePanel.d.ts +1 -1
  111. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  112. package/src/sap/cux/home/PagePanel.js +18 -10
  113. package/src/sap/cux/home/PagePanel.js.map +1 -1
  114. package/src/sap/cux/home/PagePanel.ts +25 -15
  115. package/src/sap/cux/home/PagesContainer.d.ts +72 -0
  116. package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
  117. package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
  118. package/src/sap/cux/home/PagesContainer.js +333 -0
  119. package/src/sap/cux/home/PagesContainer.js.map +1 -0
  120. package/src/sap/cux/home/PagesContainer.ts +179 -0
  121. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
  122. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  123. package/src/sap/cux/home/SpaceInsightsPanel.js +66 -132
  124. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  125. package/src/sap/cux/home/SpaceInsightsPanel.ts +69 -151
  126. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  127. package/src/sap/cux/home/TaskPanel.js +16 -1
  128. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  129. package/src/sap/cux/home/TaskPanel.ts +15 -1
  130. package/src/sap/cux/home/TilesContainer.d.ts +111 -0
  131. package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
  132. package/src/sap/cux/home/TilesContainer.js +218 -0
  133. package/src/sap/cux/home/TilesContainer.js.map +1 -0
  134. package/src/sap/cux/home/TilesContainer.ts +216 -0
  135. package/src/sap/cux/home/TilesPanel.d.ts +22 -52
  136. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  137. package/src/sap/cux/home/TilesPanel.js +184 -165
  138. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  139. package/src/sap/cux/home/TilesPanel.ts +160 -154
  140. package/src/sap/cux/home/ToDoPanel.d.ts +1 -0
  141. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  142. package/src/sap/cux/home/ToDoPanel.js +38 -63
  143. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  144. package/src/sap/cux/home/ToDoPanel.ts +32 -31
  145. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +2 -2
  146. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
  147. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +1 -1
  148. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
  149. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +4 -4
  150. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +2 -2
  151. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  152. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -1
  153. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  154. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +4 -4
  155. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +2 -2
  156. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
  157. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +1 -1
  158. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
  159. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +3 -3
  160. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +2 -2
  161. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
  162. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +4 -4
  163. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
  164. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +5 -5
  165. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
  166. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +30 -3
  167. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
  168. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +23 -1
  169. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
  170. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
  171. package/src/sap/cux/home/flexibility/Layout.flexibility.js +78 -2
  172. package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
  173. package/src/sap/cux/home/flexibility/Layout.flexibility.ts +81 -1
  174. package/src/sap/cux/home/i18n/messagebundle.properties +26 -12
  175. package/src/sap/cux/home/i18n/messagebundle_ar.properties +18 -2
  176. package/src/sap/cux/home/i18n/messagebundle_bg.properties +18 -2
  177. package/src/sap/cux/home/i18n/messagebundle_ca.properties +18 -2
  178. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +18 -2
  179. package/src/sap/cux/home/i18n/messagebundle_cs.properties +18 -2
  180. package/src/sap/cux/home/i18n/messagebundle_cy.properties +18 -2
  181. package/src/sap/cux/home/i18n/messagebundle_da.properties +18 -2
  182. package/src/sap/cux/home/i18n/messagebundle_de.properties +18 -2
  183. package/src/sap/cux/home/i18n/messagebundle_el.properties +18 -2
  184. package/src/sap/cux/home/i18n/messagebundle_en.properties +19 -3
  185. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +18 -2
  186. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +21 -5
  187. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +21 -5
  188. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +18 -2
  189. package/src/sap/cux/home/i18n/messagebundle_es.properties +19 -2
  190. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +18 -2
  191. package/src/sap/cux/home/i18n/messagebundle_et.properties +18 -2
  192. package/src/sap/cux/home/i18n/messagebundle_fi.properties +18 -2
  193. package/src/sap/cux/home/i18n/messagebundle_fr.properties +18 -2
  194. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +18 -2
  195. package/src/sap/cux/home/i18n/messagebundle_hi.properties +18 -2
  196. package/src/sap/cux/home/i18n/messagebundle_hr.properties +18 -2
  197. package/src/sap/cux/home/i18n/messagebundle_hu.properties +18 -2
  198. package/src/sap/cux/home/i18n/messagebundle_id.properties +18 -2
  199. package/src/sap/cux/home/i18n/messagebundle_it.properties +23 -7
  200. package/src/sap/cux/home/i18n/messagebundle_iw.properties +18 -2
  201. package/src/sap/cux/home/i18n/messagebundle_ja.properties +18 -2
  202. package/src/sap/cux/home/i18n/messagebundle_kk.properties +18 -2
  203. package/src/sap/cux/home/i18n/messagebundle_ko.properties +18 -2
  204. package/src/sap/cux/home/i18n/messagebundle_lt.properties +18 -2
  205. package/src/sap/cux/home/i18n/messagebundle_lv.properties +18 -2
  206. package/src/sap/cux/home/i18n/messagebundle_mk.properties +18 -2
  207. package/src/sap/cux/home/i18n/messagebundle_ms.properties +18 -2
  208. package/src/sap/cux/home/i18n/messagebundle_nl.properties +18 -2
  209. package/src/sap/cux/home/i18n/messagebundle_no.properties +18 -2
  210. package/src/sap/cux/home/i18n/messagebundle_pl.properties +18 -2
  211. package/src/sap/cux/home/i18n/messagebundle_pt.properties +18 -2
  212. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +18 -2
  213. package/src/sap/cux/home/i18n/messagebundle_ro.properties +18 -2
  214. package/src/sap/cux/home/i18n/messagebundle_ru.properties +18 -2
  215. package/src/sap/cux/home/i18n/messagebundle_sh.properties +18 -2
  216. package/src/sap/cux/home/i18n/messagebundle_sk.properties +18 -2
  217. package/src/sap/cux/home/i18n/messagebundle_sl.properties +18 -2
  218. package/src/sap/cux/home/i18n/messagebundle_sr.properties +18 -2
  219. package/src/sap/cux/home/i18n/messagebundle_sv.properties +18 -2
  220. package/src/sap/cux/home/i18n/messagebundle_th.properties +18 -2
  221. package/src/sap/cux/home/i18n/messagebundle_tr.properties +18 -2
  222. package/src/sap/cux/home/i18n/messagebundle_uk.properties +20 -4
  223. package/src/sap/cux/home/i18n/messagebundle_vi.properties +18 -2
  224. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +18 -2
  225. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +18 -2
  226. package/src/sap/cux/home/interface/CardsInterface.d.ts +6 -0
  227. package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
  228. package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
  229. package/src/sap/cux/home/interface/CardsInterface.ts +6 -1
  230. package/src/sap/cux/home/interface/KeyUserInterface.d.ts +27 -4
  231. package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
  232. package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
  233. package/src/sap/cux/home/interface/KeyUserInterface.ts +23 -4
  234. package/src/sap/cux/home/interface/LayoutInterface.d.ts +7 -0
  235. package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
  236. package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
  237. package/src/sap/cux/home/interface/LayoutInterface.ts +7 -0
  238. package/src/sap/cux/home/library.d.ts.map +1 -1
  239. package/src/sap/cux/home/library.js +7 -4
  240. package/src/sap/cux/home/library.js.map +1 -1
  241. package/src/sap/cux/home/library.ts +10 -5
  242. package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
  243. package/src/sap/cux/home/themes/base/BaseLayout.less +11 -0
  244. package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +0 -45
  245. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
  246. package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
  247. package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
  248. package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
  249. package/src/sap/cux/home/themes/base/library.source.less +2 -1
  250. package/src/sap/cux/home/utils/BatchHelper.d.ts +1 -0
  251. package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
  252. package/src/sap/cux/home/utils/BatchHelper.js +7 -2
  253. package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
  254. package/src/sap/cux/home/utils/BatchHelper.ts +8 -1
  255. package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
  256. package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
  257. package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
  258. package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
  259. package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
  260. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +150 -151
  261. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
  262. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
  263. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
  264. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
  265. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
  266. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
  267. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
  268. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
  269. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
  270. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
  271. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
  272. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
  273. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
  274. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
  275. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
  276. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
  277. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
  278. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
  279. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
  280. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
  281. package/ui5.yaml +1 -0
  282. package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
  283. package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
  284. package/src/sap/cux/home/InsightsContainer.js +0 -459
  285. package/src/sap/cux/home/InsightsContainer.js.map +0 -1
  286. package/src/sap/cux/home/InsightsContainer.ts +0 -489
  287. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
  288. package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
  289. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
  290. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
  291. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
  292. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
  293. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
  294. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +0 -1
@@ -2,13 +2,15 @@
2
2
  * SAP UI development toolkit for HTML5 (SAPUI5)
3
3
  * * (c) Copyright 2009-2025 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/MessageBox", "sap/m/ObjectIdentifier", "sap/m/Table", "sap/m/Text", "sap/m/ToggleButton", "sap/m/VBox", "sap/ui/core/Element", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./utils/Accessibility", "./utils/Constants", "./utils/DragDropUtils", "./utils/PersonalisationUtils"], function (Log, Button, Column, ColumnListItem, HBox, MessageBox, ObjectIdentifier, Table, Text, ToggleButton, VBox, Element, Icon, Lib, JSONModel, __BaseSettingsPanel, ___flexibility_Layoutflexibility, ___utils_Accessibility, ___utils_Constants, ___utils_DragDropUtils, __PersonalisationUtils) {
5
+ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/MessageBox", "sap/m/ObjectIdentifier", "sap/m/Table", "sap/m/Text", "sap/m/ToggleButton", "sap/m/VBox", "sap/ui/core/Element", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "./BaseContainer", "./BaseSettingsPanel", "./NoDataContainer", "./flexibility/Layout.flexibility", "./utils/Accessibility", "./utils/Constants", "./utils/DragDropUtils", "./utils/PersonalisationUtils"], function (Log, Button, Column, ColumnListItem, HBox, MessageBox, ObjectIdentifier, Table, Text, ToggleButton, VBox, Element, Icon, Lib, JSONModel, __BaseContainer, __BaseSettingsPanel, __NoDataContainer, ___flexibility_Layoutflexibility, ___utils_Accessibility, ___utils_Constants, ___utils_DragDropUtils, __PersonalisationUtils) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
9
9
  return obj && obj.__esModule && typeof obj.default !== "undefined" ? obj.default : obj;
10
10
  }
11
+ const BaseContainer = _interopRequireDefault(__BaseContainer);
11
12
  const BaseSettingsPanel = _interopRequireDefault(__BaseSettingsPanel);
13
+ const NoDataContainer = _interopRequireDefault(__NoDataContainer);
12
14
  const CHANGE_TYPES = ___flexibility_Layoutflexibility["CHANGE_TYPES"];
13
15
  const getInvisibleText = ___utils_Accessibility["getInvisibleText"];
14
16
  const SETTINGS_PANELS_KEYS = ___utils_Constants["SETTINGS_PANELS_KEYS"];
@@ -67,30 +69,48 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
67
69
  *
68
70
  * @private
69
71
  */
70
- createShowHideChangeFile: function _createShowHideChangeFile(oControlEvent) {
72
+ createShowHideChangeFile: function _createShowHideChangeFile(oControlEvent, itemIndex) {
71
73
  try {
72
74
  const _this = this;
73
75
  const toggle = oControlEvent.getSource();
74
76
  const bValue = !toggle.getPressed();
75
- const oContext = toggle.getBindingContext()?.getObject();
76
- oContext.visible = bValue;
77
- _this._getPanel().getSections().find(section => section.completeId === oContext.completeId).visible = bValue;
77
+ const contextObject = toggle.getBindingContext()?.getObject();
78
+ const selectedCompleteId = contextObject.isComposite ? contextObject.children[itemIndex].completeId : contextObject.completeId;
78
79
  const sChangeType = bValue ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;
79
- const oWrapperItem = Element.getElementById(oContext.completeId);
80
+ const oWrapperItem = Element.getElementById(selectedCompleteId);
80
81
  _this._manageSectionsChanges.push({
81
82
  selectorElement: oWrapperItem,
82
83
  changeSpecificData: {
83
- changeType: sChangeType
84
+ changeType: sChangeType,
85
+ content: {
86
+ compositeId: oWrapperItem.getProperty("compositeId")
87
+ }
84
88
  }
85
89
  });
86
- // }
87
90
  return Promise.resolve(_this._saveManageSectionsDialog()).then(function () {
88
91
  setTimeout(() => oWrapperItem.adjustLayout());
89
92
 
90
93
  // switch to collapsed view if the container is in expanded view
94
+ //update this._orderedSections visibility
95
+ //loop through this._orderedSections and update the visibility of the section which has same composite id as oWrapperItem
91
96
  if (!bValue) {
92
97
  _this._switchToCollapsedViewIfRequired([oWrapperItem]);
93
98
  }
99
+ toggle.setPressed(!bValue);
100
+ for (const section of _this._orderedSections) {
101
+ // Check for matching composite ID
102
+ if (section.compositeId === oWrapperItem.getProperty("compositeId") && section.compositeId !== undefined) {
103
+ for (const child of section.children || []) {
104
+ if (child.completeId === selectedCompleteId) {
105
+ child.visible = bValue;
106
+ return; // Exit the whole function once found & set
107
+ }
108
+ }
109
+ } else if (section.completeId === selectedCompleteId) {
110
+ section.visible = bValue;
111
+ return; // Exit the whole function once found & set
112
+ }
113
+ }
94
114
  });
95
115
  } catch (e) {
96
116
  return Promise.reject(e);
@@ -106,11 +126,70 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
106
126
  _switchToCollapsedViewIfRequired: function _switchToCollapsedViewIfRequired(containers) {
107
127
  const layout = this._getPanel();
108
128
  const isLayoutExpanded = layout.getProperty("expanded");
109
- const expandedContainer = containers.filter(container => layout._getCurrentExpandedElementName() === container.getProperty("fullScreenName"));
129
+ const expandedContainer = containers.filter(container => {
130
+ //find the fullscreename of the container if available else loop through the content of container
131
+ // and search in its panels which are present in its content aggregation
132
+ let fullScreenName = container.getProperty("fullScreenName") || undefined;
133
+ if (!fullScreenName) {
134
+ return container.getContent().some(panel => layout._getCurrentExpandedElementName() === panel.getProperty("fullScreenName"));
135
+ }
136
+ return layout._getCurrentExpandedElementName() === container.getProperty("fullScreenName");
137
+ });
110
138
  if (isLayoutExpanded) {
111
139
  layout.toggleFullScreen(expandedContainer[0]._getSelectedPanel());
112
140
  }
113
141
  },
142
+ //function to update this._orderedSections
143
+ _updateOrderedSections: function _updateOrderedSections() {
144
+ const createEmptyCompositeItem = () => ({
145
+ completeId: "",
146
+ sContainerType: "",
147
+ blocked: false,
148
+ visible: false,
149
+ title: "",
150
+ text: "",
151
+ isComposite: false,
152
+ children: []
153
+ });
154
+ const compositeMap = {};
155
+ this._orderedSections.forEach(section => {
156
+ const container = Element.getElementById(section.completeId);
157
+ if (container instanceof BaseContainer) {
158
+ const compositeId = container.getProperty("compositeId");
159
+ if (compositeId) {
160
+ if (!compositeMap[compositeId]) {
161
+ compositeMap[compositeId] = [];
162
+ }
163
+ section.compositeId = compositeId;
164
+ section.groupTitle = container.getCustomSettings().groupTitle || "";
165
+ compositeMap[compositeId].push(section);
166
+ } else {
167
+ section.compositeId = null;
168
+ }
169
+ }
170
+ });
171
+
172
+ // map through this.orderedSections and replace items with compositeId with a single composite item containing its children
173
+ this._orderedSections = this._orderedSections.map(section => {
174
+ if (section.compositeId && compositeMap[section.compositeId]) {
175
+ const compositeItem = createEmptyCompositeItem();
176
+ compositeMap[section.compositeId].forEach(section => {
177
+ this.addToCompositeItem(section, compositeItem, section.groupTitle);
178
+ });
179
+ delete compositeMap[section.compositeId];
180
+ return compositeItem;
181
+ }
182
+ return section;
183
+ });
184
+
185
+ //filter this.orderedSections to remove items which has same composite item with no children
186
+ this._orderedSections = this._orderedSections.filter(section => {
187
+ if (section.compositeId) {
188
+ return section.children && section.children.length > 0;
189
+ }
190
+ return true;
191
+ });
192
+ },
114
193
  /**
115
194
  * Method to load the sections
116
195
  *
@@ -121,52 +200,33 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
121
200
  const _this2 = this;
122
201
  const layout = _this2._getPanel();
123
202
  return Promise.resolve(layout._calculateSectionsState()).then(function () {
124
- _this2._orderedSections = JSON.parse(JSON.stringify(layout.getSections()));
125
- // not a good way as there could be more than one insights container, discuss
203
+ const sections = layout.getSections();
204
+ _this2._orderedSections = JSON.parse(JSON.stringify(sections));
205
+
206
+ //loop through this._orderedSections and take out the children items from composite items and add them to same list
126
207
  // attach collapse event handler to rearrange layout elements if required
127
- _this2._orderedSections.forEach(oSection => {
128
- if (oSection.sContainerType === "sap.cux.home.InsightsContainer" && !oSection.title) {
129
- oSection.title = String(_this2._i18nBundle?.getText("insights"));
208
+ _this2._orderedSections = _this2._orderedSections.reduce((accumulator, section) => {
209
+ if (section.isComposite && section.children) {
210
+ accumulator.push(...section.children);
211
+ } else {
212
+ accumulator.push(section);
130
213
  }
131
- });
214
+ return accumulator;
215
+ }, []);
216
+ _this2._updateOrderedSections();
132
217
  _this2._controlModel = new JSONModel(_this2._orderedSections);
133
218
  _this2._layoutTable.setModel(_this2._controlModel);
134
219
  _this2._layoutTable.bindItems({
135
220
  path: "/",
136
- factory: id => {
221
+ factory: (id, context) => {
137
222
  if (!_this2._dndInvisibleText || _this2._dndInvisibleText.isDestroyed()) {
138
223
  _this2._dndInvisibleText = getInvisibleText(_this2.getId() + "--layoutDndText", _this2._i18nBundle.getText("keyPressAriaText"));
139
224
  }
140
- return new ColumnListItem(`${id}--columnListItem`, {
141
- type: "Inactive",
142
- cells: [new HBox(`${id}--columnListHBox`, {
143
- alignItems: "Center",
144
- items: [new Icon(`${id}--columnListIcon`, {
145
- src: "sap-icon://vertical-grip"
146
- }).addStyleClass("sapUiSmallMarginEnd"), new HBox(`${id}--columnListItemHBox`, {
147
- justifyContent: "SpaceBetween",
148
- alignItems: "Center",
149
- width: "100%",
150
- items: [new ObjectIdentifier(`${id}--columnListObjectIdentifier`, {
151
- title: "{title}",
152
- text: "{text}",
153
- tooltip: "{title}"
154
- }), new ToggleButton(`${id}--layoutSettingstoggleButton`, {
155
- tooltip: "{= ${visible} ? '" + _this2._i18nBundle.getText("hideBtn") + "' : '" + _this2._i18nBundle.getText("showBtn") + "' }",
156
- icon: "sap-icon://show",
157
- type: "Emphasized",
158
- enabled: "{= !${blocked}}",
159
- press: event => {
160
- void _this2.createShowHideChangeFile(event);
161
- },
162
- pressed: "{= !${visible}}",
163
- ariaLabelledBy: ["selectLabel"]
164
- }).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
165
- }), _this2._dndInvisibleText],
166
- width: "100%"
167
- })],
168
- ariaLabelledBy: [_this2._dndInvisibleText.getId()]
169
- }).addStyleClass("insightsListItem insightsListMargin");
225
+ //check the condition for news and pages as it is a composite container
226
+ if (context.getObject()?.isComposite === true) {
227
+ return _this2.getCompositeLayoutListItem(id);
228
+ }
229
+ return _this2.getLayoutListItem(id);
170
230
  }
171
231
  });
172
232
  if (!_this2._isCollapseHandlerAttached) {
@@ -178,6 +238,138 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
178
238
  return Promise.reject(e);
179
239
  }
180
240
  },
241
+ addToCompositeItem: function _addToCompositeItem(section, compositeItem, compositeTitle) {
242
+ compositeItem.isComposite = true;
243
+ compositeItem.title = compositeTitle;
244
+ if (!compositeItem.completeId) {
245
+ compositeItem.completeId = section.completeId;
246
+ }
247
+ //Add compositeId
248
+ compositeItem.compositeId = section.compositeId;
249
+ compositeItem.children?.push({
250
+ ...section
251
+ });
252
+ compositeItem.text = section.text;
253
+ compositeItem.blocked = section.blocked;
254
+ compositeItem.visible = section.visible;
255
+ },
256
+ getLayoutListItem: function _getLayoutListItem(id) {
257
+ return new ColumnListItem(`${id}--columnListItem`, {
258
+ type: "Inactive",
259
+ cells: [new HBox(`${id}--columnListHBox`, {
260
+ alignItems: "Center",
261
+ items: [new Icon(`${id}--columnListIcon`, {
262
+ src: "sap-icon://vertical-grip"
263
+ }).addStyleClass("sapUiSmallMarginEnd"), new HBox(`${id}--columnListItemHBox`, {
264
+ justifyContent: "SpaceBetween",
265
+ alignItems: "Center",
266
+ width: "100%",
267
+ items: [new ObjectIdentifier(`${id}--columnListObjectIdentifier`, {
268
+ title: "{title}",
269
+ text: "{text}",
270
+ tooltip: "{title}"
271
+ }), new ToggleButton(`${id}--layoutSettingstoggleButton`, {
272
+ tooltip: "{= ${visible} ? '" + this._i18nBundle.getText("hideBtn") + "' : '" + this._i18nBundle.getText("showBtn") + "' }",
273
+ icon: "sap-icon://show",
274
+ type: "Emphasized",
275
+ enabled: "{= !${blocked}}",
276
+ press: event => {
277
+ void this.createShowHideChangeFile(event, 0);
278
+ },
279
+ pressed: "{= !${visible}}",
280
+ ariaLabelledBy: ["selectLabel"]
281
+ }).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
282
+ }), this._dndInvisibleText],
283
+ width: "100%"
284
+ })],
285
+ ariaLabelledBy: [this._dndInvisibleText.getId()]
286
+ }).addStyleClass("insightsListItem insightsListMargin");
287
+ },
288
+ getCompositeLayoutListItem: function _getCompositeLayoutListItem(id) {
289
+ const oTemplateHBox = new VBox(`${id}--compositeVBox`, {
290
+ items: {
291
+ path: "children",
292
+ factory: (childId, oContext) => {
293
+ const iIndex = parseInt(childId.split("-").pop() || "0", 10);
294
+ return new HBox(`${id}--columnListItemChildHBox${iIndex}`, {
295
+ justifyContent: "SpaceBetween",
296
+ alignItems: "Center",
297
+ items: [new ObjectIdentifier(`${id}--childObjectIdentifier${iIndex}`, {
298
+ title: oContext.getProperty("title"),
299
+ text: oContext.getProperty("text"),
300
+ tooltip: oContext.getProperty("title")
301
+ }), new ToggleButton(`${id}--layoutSettingstoggleButtonChild${iIndex}`, {
302
+ tooltip: {
303
+ parts: [{
304
+ path: "visible"
305
+ }, {
306
+ path: "blocked"
307
+ }],
308
+ formatter: (bVisible, bBlocked) => {
309
+ if (bBlocked) {
310
+ return this._i18nBundle.getText("blockedTooltip");
311
+ }
312
+ return bVisible ? this._i18nBundle.getText("hideBtn") : this._i18nBundle.getText("showBtn");
313
+ }
314
+ },
315
+ icon: "sap-icon://show",
316
+ type: "Emphasized",
317
+ enabled: "{= !${blocked}}",
318
+ pressed: "{= !${visible}}",
319
+ ariaLabelledBy: ["selectLabel"],
320
+ press: event => {
321
+ void this.createShowHideChangeFile(event, iIndex);
322
+ }
323
+ }).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
324
+ }).addStyleClass("sapCuxCompositeItem");
325
+ }
326
+ }
327
+ });
328
+ return new ColumnListItem(`${id}--columnListItem`, {
329
+ type: "Inactive",
330
+ cells: [new VBox(`${id}--compositeVBoxContainer`, {
331
+ items: [
332
+ // Header (main title)
333
+ new HBox(`${id}--columnListHBox`, {
334
+ alignItems: "Center",
335
+ items: [new Icon(`${id}--columnListIcon`, {
336
+ src: "sap-icon://vertical-grip"
337
+ }).addStyleClass("sapUiSmallMarginEnd"), new HBox(`${id}--columnListItemHBox`, {
338
+ justifyContent: "SpaceBetween",
339
+ alignItems: "Center",
340
+ width: "100%",
341
+ items: [new ObjectIdentifier(`${id}--columnListObjectIdentifier`, {
342
+ title: "{title}",
343
+ text: "{text}",
344
+ tooltip: "{title}"
345
+ })]
346
+ })],
347
+ width: "100%"
348
+ }).addStyleClass("sapUiTinyMarginTopBottom"),
349
+ // Dynamically bound children
350
+ oTemplateHBox,
351
+ // Drag-n-drop invisible text
352
+ this._dndInvisibleText]
353
+ })],
354
+ ariaLabelledBy: [this._dndInvisibleText.getId()]
355
+ }).addStyleClass("insightsListItem insightsListMargin");
356
+ },
357
+ /**
358
+ * Reduces the ordered sections by flattening composite items.
359
+ * @private
360
+ * @returns {IElement[]} The reduced list of ordered sections.
361
+ */
362
+ _reduceOrderedSections: function _reduceOrderedSections() {
363
+ //loop through this._orderedSections and take out the children items from composite items and add them to same list
364
+ return this._orderedSections.reduce((accumulator, section) => {
365
+ if (section.isComposite && section.children) {
366
+ accumulator.push(...section.children);
367
+ } else {
368
+ accumulator.push(section);
369
+ }
370
+ return accumulator;
371
+ }, []);
372
+ },
181
373
  /**
182
374
  * Rearranges the layout elements if their order has changed.
183
375
  *
@@ -187,6 +379,12 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
187
379
  const layout = this._getPanel();
188
380
  const currentLayoutElements = layout.getItems();
189
381
  if (Array.isArray(this._allLayoutElements) && currentLayoutElements.length === this._allLayoutElements.length) {
382
+ //pick each elements out from this._orderedSections
383
+ const elementList = this._reduceOrderedSections();
384
+ //Now loop through elementList and _allLayoutElements to rearrange _allLayoutElements list based on completeId
385
+ this._allLayoutElements = elementList.map(element => {
386
+ return this._allLayoutElements.find(layoutElement => layoutElement.getId() === element.completeId);
387
+ });
190
388
  const isOrderChanged = currentLayoutElements.some((element, index) => {
191
389
  return element.getId() !== this._allLayoutElements[index].getId();
192
390
  });
@@ -319,7 +517,7 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
319
517
  */
320
518
  _getActualIndex: function _getActualIndex(id) {
321
519
  const layout = this._getPanel();
322
- this._allLayoutElements = this._allLayoutElements || [...layout.getItems()];
520
+ this._allLayoutElements = [...layout.getItems()];
323
521
  const isLayoutExpanded = layout.getProperty("expanded");
324
522
  const expandedElementConfig = layout._getCurrentExpandedElement();
325
523
  if (isLayoutExpanded && expandedElementConfig) {
@@ -374,12 +572,42 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
374
572
  const sectionOrder = _this4._orderedSections;
375
573
  const dragObject = oDragItem.getBindingContext()?.getObject();
376
574
  const dropObject = oDropItem.getBindingContext()?.getObject();
377
- const actualDragItemIndex = _this4._getActualIndex(dragObject.completeId);
378
- const actualDropItemIndex = _this4._getActualIndex(dropObject.completeId);
575
+ let actualDragItemIndex = _this4._getActualIndex(dragObject.completeId);
576
+ let actualDropItemIndex = _this4._getActualIndex(dropObject.completeId);
379
577
  _this4._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);
380
578
  sectionOrder.splice(iDragItemIndex, 1);
381
579
  sectionOrder.splice(iDropItemIndex, 0, dragObject);
382
580
  oWrapper.setSections(sectionOrder);
581
+ //loop through the oWrapper.getItems() and find the index and noData Container
582
+ let noDataContainerIndex = -1;
583
+ const items = oWrapper.getItems();
584
+ let noDataContainer = null;
585
+ for (let i = 0; i < items.length; i++) {
586
+ const item = items[i];
587
+ if (item instanceof NoDataContainer) {
588
+ noDataContainerIndex = i;
589
+ noDataContainer = item;
590
+ }
591
+ }
592
+
593
+ //now insert the noDataContainer back to its noDataContainerIndex in sectionOrder
594
+ if (noDataContainer && noDataContainerIndex !== -1) {
595
+ sectionOrder.splice(noDataContainerIndex, 0, noDataContainer);
596
+ }
597
+ let finalTargetIndex = 0;
598
+ const elementList = _this4._reduceOrderedSections();
599
+ finalTargetIndex = elementList.findIndex(element => element.completeId === dragObject.completeId);
600
+
601
+ //find the composite child for this dragObject if it has a composite id
602
+ const compositeChildren = elementList.filter(element => {
603
+ if (dragObject.compositeId && dragObject.compositeId === element.compositeId && element.completeId !== dragObject.completeId) {
604
+ return true;
605
+ }
606
+ });
607
+ if (noDataContainer && noDataContainerIndex !== -1) {
608
+ //remove noDataContainer from sectionOrder to avoid the display of an empty item in myhome Settings dialog
609
+ sectionOrder.splice(noDataContainerIndex, 1);
610
+ }
383
611
  _this4._manageSectionsChanges.push({
384
612
  selectorElement: oWrapper,
385
613
  changeSpecificData: {
@@ -387,7 +615,8 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
387
615
  movedElements: [{
388
616
  id: dragObject.completeId,
389
617
  sourceIndex: actualDragItemIndex,
390
- targetIndex: actualDropItemIndex
618
+ targetIndex: iDragItemIndex < iDropItemIndex && dragObject.isComposite && compositeChildren.length ? finalTargetIndex + 1 // Adjust index when composite has children and moving forward
619
+ : finalTargetIndex
391
620
  }],
392
621
  source: {
393
622
  id: wrapperId,
@@ -399,11 +628,60 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
399
628
  }
400
629
  }
401
630
  });
631
+ if (compositeChildren.length > 0) {
632
+ compositeChildren.forEach(compositeChild => {
633
+ _this4._manageSectionsChanges.push({
634
+ selectorElement: oWrapper,
635
+ changeSpecificData: {
636
+ changeType: CHANGE_TYPES.MOVE,
637
+ movedElements: [{
638
+ id: compositeChild.completeId,
639
+ sourceIndex: actualDragItemIndex,
640
+ targetIndex: finalTargetIndex + 1 // +1 as it will be after the main dragObject
641
+ }],
642
+ source: {
643
+ id: wrapperId,
644
+ aggregation: "items"
645
+ },
646
+ target: {
647
+ id: wrapperId,
648
+ aggregation: "items"
649
+ }
650
+ }
651
+ });
652
+ });
653
+ }
402
654
  return Promise.resolve(_this4._saveManageSectionsDialog()).then(function () {
403
- //switch to collapsed view if any of the containers is in expanded view
404
- const draggedContainer = Element.getElementById(dragObject.completeId);
405
- const droppedContainer = Element.getElementById(dropObject.completeId);
406
- _this4._switchToCollapsedViewIfRequired([draggedContainer, droppedContainer]);
655
+ // Switch to collapsed view if any of the containers is in expanded view
656
+ const isLayoutExpanded = oWrapper.getProperty("expanded");
657
+ if (isLayoutExpanded && dragObject.isComposite) {
658
+ const expandedElementName = oWrapper._getCurrentExpandedElementName();
659
+ const compositeContainer = Element.getElementById(dragObject.completeId);
660
+ //find the fullScreenName of the expanded element from the content of composite container
661
+ const fullScreenName = compositeContainer.getContent().find(panel => panel.getProperty("fullScreenName") === expandedElementName)?.getProperty("fullScreenName");
662
+ let draggedContainer;
663
+
664
+ // If expanded element name differs, find the matching child container
665
+ if (expandedElementName !== fullScreenName) {
666
+ const matchingChild = dragObject.children?.find(child => {
667
+ const childContainer = Element.getElementById(child.completeId);
668
+ //loop through the content of childContainer to find the panel which has fullScreenName property same as expandedElementName
669
+ return childContainer.getContent().find(panel => {
670
+ return panel.getProperty("fullScreenName") === expandedElementName;
671
+ });
672
+ });
673
+ draggedContainer = matchingChild ? Element.getElementById(matchingChild.completeId) : Element.getElementById(dragObject.completeId);
674
+ } else {
675
+ draggedContainer = Element.getElementById(dragObject.completeId);
676
+ }
677
+ const droppedContainer = Element.getElementById(dropObject.completeId);
678
+ _this4._switchToCollapsedViewIfRequired([draggedContainer, droppedContainer]);
679
+ } else {
680
+ // Fallback: always collapse dragged and dropped containers
681
+ const draggedContainer = Element.getElementById(dragObject.completeId);
682
+ const droppedContainer = Element.getElementById(dropObject.completeId);
683
+ _this4._switchToCollapsedViewIfRequired([draggedContainer, droppedContainer]);
684
+ }
407
685
  });
408
686
  }
409
687
  }();
@@ -430,8 +708,15 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
430
708
  if (oAction === _this5._i18nBundle.getText("reset_cards_button")) {
431
709
  const aChangesForDeletion = [];
432
710
  for (let section of _this5._orderedSections) {
433
- const element = Element.getElementById(section.completeId);
434
- aChangesForDeletion.push(element);
711
+ if (section.isComposite && section.children) {
712
+ for (let panel of section.children) {
713
+ const element = Element.getElementById(panel.completeId);
714
+ aChangesForDeletion.push(element);
715
+ }
716
+ } else {
717
+ const element = Element.getElementById(section.completeId);
718
+ aChangesForDeletion.push(element);
719
+ }
435
720
  }
436
721
  // Revert Changes Related to DragnDrop
437
722
  aChangesForDeletion.push(_this5._getPanel());