@sapui5/sap.cux.home 1.142.0 → 1.143.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +4 -1
  3. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +3 -2
  4. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
  5. package/src/sap/cux/home/AdvancedSettingsPanel.js +6 -5
  6. package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
  7. package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -5
  8. package/src/sap/cux/home/App.d.ts.map +1 -1
  9. package/src/sap/cux/home/App.js +3 -0
  10. package/src/sap/cux/home/App.js.map +1 -1
  11. package/src/sap/cux/home/App.ts +3 -0
  12. package/src/sap/cux/home/AppsAdditionPanel.d.ts +74 -34
  13. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  14. package/src/sap/cux/home/AppsAdditionPanel.js +344 -146
  15. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  16. package/src/sap/cux/home/AppsAdditionPanel.ts +367 -149
  17. package/src/sap/cux/home/AppsContainer.js +2 -1
  18. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  19. package/src/sap/cux/home/AppsContainer.ts +2 -2
  20. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  21. package/src/sap/cux/home/BaseContainer.js +9 -1
  22. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  23. package/src/sap/cux/home/BaseContainer.ts +6 -2
  24. package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
  25. package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
  26. package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
  27. package/src/sap/cux/home/BaseContainerRenderer.ts +6 -0
  28. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  29. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  30. package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
  31. package/src/sap/cux/home/BasePanel.js +3 -2
  32. package/src/sap/cux/home/BasePanel.js.map +1 -1
  33. package/src/sap/cux/home/BasePanel.ts +2 -1
  34. package/src/sap/cux/home/CardsContainer.d.ts +108 -0
  35. package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
  36. package/src/sap/cux/home/CardsContainer.js +207 -0
  37. package/src/sap/cux/home/CardsContainer.js.map +1 -0
  38. package/src/sap/cux/home/CardsContainer.ts +202 -0
  39. package/src/sap/cux/home/CardsPanel.d.ts +25 -59
  40. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  41. package/src/sap/cux/home/CardsPanel.js +157 -155
  42. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  43. package/src/sap/cux/home/CardsPanel.ts +152 -175
  44. package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
  45. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  46. package/src/sap/cux/home/ContentAdditionDialog.js +12 -6
  47. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  48. package/src/sap/cux/home/ContentAdditionDialog.ts +13 -5
  49. package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
  50. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  51. package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
  52. package/src/sap/cux/home/ErrorPanel.js +11 -16
  53. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  54. package/src/sap/cux/home/ErrorPanel.ts +7 -19
  55. package/src/sap/cux/home/FavAppPanel.d.ts +1 -2
  56. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  57. package/src/sap/cux/home/FavAppPanel.js +296 -301
  58. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  59. package/src/sap/cux/home/FavAppPanel.ts +18 -14
  60. package/src/sap/cux/home/InsightsAdditionPanel.d.ts +4 -4
  61. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  62. package/src/sap/cux/home/InsightsAdditionPanel.js +10 -9
  63. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  64. package/src/sap/cux/home/InsightsAdditionPanel.ts +9 -8
  65. package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
  66. package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
  67. package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +3 -3
  68. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
  69. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
  70. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
  71. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
  72. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +288 -58
  73. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  74. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
  75. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  76. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
  77. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
  78. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  79. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
  80. package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
  81. package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
  82. package/src/sap/cux/home/Layout.d.ts +3 -1
  83. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  84. package/src/sap/cux/home/Layout.js +45 -8
  85. package/src/sap/cux/home/Layout.js.map +1 -1
  86. package/src/sap/cux/home/Layout.ts +55 -8
  87. package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
  88. package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
  89. package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
  90. package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
  91. package/src/sap/cux/home/LayoutSettingsPanel.ts +380 -64
  92. package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -14
  93. package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
  94. package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
  95. package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
  96. package/src/sap/cux/home/NewsContainer.js.map +1 -0
  97. package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +29 -118
  98. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  99. package/src/sap/cux/home/NewsGroup.ts +1 -1
  100. package/src/sap/cux/home/NewsPanel.js +2 -2
  101. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  102. package/src/sap/cux/home/NewsPanel.ts +3 -3
  103. package/src/sap/cux/home/NewsSettingsPanel.js +3 -3
  104. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  105. package/src/sap/cux/home/NewsSettingsPanel.ts +4 -4
  106. package/src/sap/cux/home/PagePanel.d.ts +1 -1
  107. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  108. package/src/sap/cux/home/PagePanel.js +18 -10
  109. package/src/sap/cux/home/PagePanel.js.map +1 -1
  110. package/src/sap/cux/home/PagePanel.ts +25 -15
  111. package/src/sap/cux/home/PagesContainer.d.ts +72 -0
  112. package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
  113. package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
  114. package/src/sap/cux/home/PagesContainer.js +333 -0
  115. package/src/sap/cux/home/PagesContainer.js.map +1 -0
  116. package/src/sap/cux/home/PagesContainer.ts +179 -0
  117. package/src/sap/cux/home/SettingsDialog.d.ts +7 -0
  118. package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
  119. package/src/sap/cux/home/SettingsDialog.js +18 -10
  120. package/src/sap/cux/home/SettingsDialog.js.map +1 -1
  121. package/src/sap/cux/home/SettingsDialog.ts +20 -13
  122. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
  123. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
  124. package/src/sap/cux/home/SpaceInsightsPanel.js +66 -132
  125. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  126. package/src/sap/cux/home/SpaceInsightsPanel.ts +69 -151
  127. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  128. package/src/sap/cux/home/TaskPanel.js +14 -12
  129. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  130. package/src/sap/cux/home/TaskPanel.ts +17 -15
  131. package/src/sap/cux/home/TilesContainer.d.ts +111 -0
  132. package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
  133. package/src/sap/cux/home/TilesContainer.js +218 -0
  134. package/src/sap/cux/home/TilesContainer.js.map +1 -0
  135. package/src/sap/cux/home/TilesContainer.ts +216 -0
  136. package/src/sap/cux/home/TilesPanel.d.ts +22 -52
  137. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  138. package/src/sap/cux/home/TilesPanel.js +184 -165
  139. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  140. package/src/sap/cux/home/TilesPanel.ts +160 -154
  141. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  142. package/src/sap/cux/home/ToDoPanel.js +30 -58
  143. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  144. package/src/sap/cux/home/ToDoPanel.ts +29 -28
  145. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +2 -2
  146. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
  147. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +1 -1
  148. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
  149. package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +4 -4
  150. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +2 -2
  151. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
  152. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -1
  153. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
  154. package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +4 -4
  155. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +2 -2
  156. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
  157. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +1 -1
  158. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
  159. package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +3 -3
  160. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +2 -2
  161. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
  162. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +4 -4
  163. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
  164. package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +5 -5
  165. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
  166. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +30 -3
  167. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
  168. package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +23 -1
  169. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
  170. package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
  171. package/src/sap/cux/home/flexibility/Layout.flexibility.js +78 -2
  172. package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
  173. package/src/sap/cux/home/flexibility/Layout.flexibility.ts +81 -1
  174. package/src/sap/cux/home/i18n/messagebundle.properties +33 -13
  175. package/src/sap/cux/home/i18n/messagebundle_ar.properties +8 -4
  176. package/src/sap/cux/home/i18n/messagebundle_bg.properties +8 -4
  177. package/src/sap/cux/home/i18n/messagebundle_ca.properties +8 -4
  178. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +8 -4
  179. package/src/sap/cux/home/i18n/messagebundle_cs.properties +8 -4
  180. package/src/sap/cux/home/i18n/messagebundle_cy.properties +8 -4
  181. package/src/sap/cux/home/i18n/messagebundle_da.properties +8 -4
  182. package/src/sap/cux/home/i18n/messagebundle_de.properties +8 -4
  183. package/src/sap/cux/home/i18n/messagebundle_el.properties +8 -4
  184. package/src/sap/cux/home/i18n/messagebundle_en.properties +9 -5
  185. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +8 -4
  186. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +14 -6
  187. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +14 -6
  188. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +8 -4
  189. package/src/sap/cux/home/i18n/messagebundle_es.properties +8 -4
  190. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +8 -4
  191. package/src/sap/cux/home/i18n/messagebundle_et.properties +8 -4
  192. package/src/sap/cux/home/i18n/messagebundle_fi.properties +8 -4
  193. package/src/sap/cux/home/i18n/messagebundle_fr.properties +8 -4
  194. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +8 -4
  195. package/src/sap/cux/home/i18n/messagebundle_hi.properties +8 -4
  196. package/src/sap/cux/home/i18n/messagebundle_hr.properties +8 -4
  197. package/src/sap/cux/home/i18n/messagebundle_hu.properties +8 -4
  198. package/src/sap/cux/home/i18n/messagebundle_id.properties +8 -4
  199. package/src/sap/cux/home/i18n/messagebundle_it.properties +10 -6
  200. package/src/sap/cux/home/i18n/messagebundle_iw.properties +8 -4
  201. package/src/sap/cux/home/i18n/messagebundle_ja.properties +8 -4
  202. package/src/sap/cux/home/i18n/messagebundle_kk.properties +8 -4
  203. package/src/sap/cux/home/i18n/messagebundle_ko.properties +8 -4
  204. package/src/sap/cux/home/i18n/messagebundle_lt.properties +8 -4
  205. package/src/sap/cux/home/i18n/messagebundle_lv.properties +8 -4
  206. package/src/sap/cux/home/i18n/messagebundle_mk.properties +8 -4
  207. package/src/sap/cux/home/i18n/messagebundle_ms.properties +8 -4
  208. package/src/sap/cux/home/i18n/messagebundle_nl.properties +8 -4
  209. package/src/sap/cux/home/i18n/messagebundle_no.properties +8 -4
  210. package/src/sap/cux/home/i18n/messagebundle_pl.properties +8 -4
  211. package/src/sap/cux/home/i18n/messagebundle_pt.properties +8 -4
  212. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +8 -4
  213. package/src/sap/cux/home/i18n/messagebundle_ro.properties +8 -4
  214. package/src/sap/cux/home/i18n/messagebundle_ru.properties +8 -4
  215. package/src/sap/cux/home/i18n/messagebundle_sh.properties +8 -4
  216. package/src/sap/cux/home/i18n/messagebundle_sk.properties +8 -4
  217. package/src/sap/cux/home/i18n/messagebundle_sl.properties +8 -4
  218. package/src/sap/cux/home/i18n/messagebundle_sr.properties +8 -4
  219. package/src/sap/cux/home/i18n/messagebundle_sv.properties +8 -4
  220. package/src/sap/cux/home/i18n/messagebundle_th.properties +8 -4
  221. package/src/sap/cux/home/i18n/messagebundle_tr.properties +8 -4
  222. package/src/sap/cux/home/i18n/messagebundle_uk.properties +8 -4
  223. package/src/sap/cux/home/i18n/messagebundle_vi.properties +8 -4
  224. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +8 -4
  225. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +8 -4
  226. package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -0
  227. package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
  228. package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
  229. package/src/sap/cux/home/interface/AppsInterface.ts +1 -0
  230. package/src/sap/cux/home/interface/KeyUserInterface.d.ts +27 -4
  231. package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
  232. package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
  233. package/src/sap/cux/home/interface/KeyUserInterface.ts +23 -4
  234. package/src/sap/cux/home/interface/LayoutInterface.d.ts +7 -0
  235. package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
  236. package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
  237. package/src/sap/cux/home/interface/LayoutInterface.ts +7 -0
  238. package/src/sap/cux/home/library.d.ts.map +1 -1
  239. package/src/sap/cux/home/library.js +7 -4
  240. package/src/sap/cux/home/library.js.map +1 -1
  241. package/src/sap/cux/home/library.ts +10 -5
  242. package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
  243. package/src/sap/cux/home/themes/base/BaseLayout.less +11 -0
  244. package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +0 -45
  245. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
  246. package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
  247. package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
  248. package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
  249. package/src/sap/cux/home/themes/base/library.source.less +2 -1
  250. package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
  251. package/src/sap/cux/home/utils/AppManager.js +2 -1
  252. package/src/sap/cux/home/utils/AppManager.js.map +1 -1
  253. package/src/sap/cux/home/utils/AppManager.ts +2 -2
  254. package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
  255. package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
  256. package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
  257. package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
  258. package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
  259. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +155 -151
  260. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
  261. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
  262. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
  263. package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
  264. package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
  265. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
  266. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
  267. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
  268. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
  269. package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
  270. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
  271. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
  272. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
  273. package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
  274. package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
  275. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
  276. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
  277. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
  278. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
  279. package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
  280. package/ui5.yaml +1 -0
  281. package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
  282. package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
  283. package/src/sap/cux/home/InsightsContainer.js +0 -459
  284. package/src/sap/cux/home/InsightsContainer.js.map +0 -1
  285. package/src/sap/cux/home/InsightsContainer.ts +0 -489
  286. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
  287. package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
  288. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
  289. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
  290. package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
  291. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
  292. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
  293. package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +0 -1
@@ -2,14 +2,16 @@
2
2
  * SAP UI development toolkit for HTML5 (SAPUI5)
3
3
  * * (c) Copyright 2009-2025 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/ObjectIdentifier", "sap/m/Table", "sap/m/ToggleButton", "sap/ui/core/CustomData", "sap/ui/core/Element", "sap/ui/core/Icon", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./utils/Constants", "./utils/DataFormatUtils", "./utils/DragDropUtils"], function (Column, ColumnListItem, HBox, ObjectIdentifier, Table, ToggleButton, CustomData, Element, Icon, __BaseSettingsPanel, ___flexibility_Layoutflexibility, ___utils_Constants, ___utils_DataFormatUtils, ___utils_DragDropUtils) {
5
+ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/ObjectIdentifier", "sap/m/Table", "sap/m/ToggleButton", "sap/m/VBox", "sap/ui/core/CustomData", "sap/ui/core/Element", "sap/ui/core/Icon", "./BaseContainer", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./NoDataContainer", "./utils/Constants", "./utils/DataFormatUtils", "./utils/DragDropUtils"], function (Column, ColumnListItem, HBox, ObjectIdentifier, Table, ToggleButton, VBox, CustomData, Element, Icon, __BaseContainer, __BaseSettingsPanel, ___flexibility_Layoutflexibility, __NoDataContainer, ___utils_Constants, ___utils_DataFormatUtils, ___utils_DragDropUtils) {
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);
12
13
  const CHANGE_TYPES = ___flexibility_Layoutflexibility["CHANGE_TYPES"];
14
+ const NoDataContainer = _interopRequireDefault(__NoDataContainer);
13
15
  const KEYUSER_SETTINGS_PANELS_KEYS = ___utils_Constants["KEYUSER_SETTINGS_PANELS_KEYS"];
14
16
  const recycleId = ___utils_DataFormatUtils["recycleId"];
15
17
  const focusDraggedItem = ___utils_DragDropUtils["focusDraggedItem"];
@@ -83,47 +85,183 @@ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/Obje
83
85
  const layout = _this._getPanel();
84
86
  return Promise.resolve(layout._calculateSectionsState()).then(function () {
85
87
  _this.orderedSections = layout.getSections() || [];
86
- const keyUserSettingsDialog = _this.getParent();
88
+ //loop through this._orderedSections and take out the children items from composite items and add them to same list
89
+ // create composite list item
90
+ // map through this.orderedSections and replace items with compositeId with a single composite item containing its children
91
+ //filter this.orderedSections to remove items which has same composite item with no children
92
+ _this.orderedSections = _this.orderedSections.reduce((accumulator, section) => {
93
+ if (section.isComposite && section.children) {
94
+ accumulator.push(...section.children);
95
+ } else {
96
+ accumulator.push(section);
97
+ }
98
+ return accumulator;
99
+ }, []);
100
+ const createEmptyCompositeItem = () => ({
101
+ completeId: "",
102
+ sContainerType: "",
103
+ blocked: false,
104
+ visible: false,
105
+ title: "",
106
+ text: "",
107
+ isComposite: false,
108
+ compositeId: null,
109
+ children: []
110
+ });
111
+ const compositeMap = {};
112
+ _this.orderedSections.forEach(section => {
113
+ const container = Element.getElementById(section.completeId);
114
+ if (container instanceof BaseContainer) {
115
+ const compositeId = container.getProperty("compositeId");
116
+ if (compositeId) {
117
+ if (!compositeMap[compositeId]) {
118
+ compositeMap[compositeId] = [];
119
+ }
120
+ section.compositeId = compositeId;
121
+ section.groupTitle = container.getCustomSettings().groupTitle || "";
122
+ compositeMap[compositeId].push(section);
123
+ } else {
124
+ section.compositeId = null;
125
+ }
126
+ }
127
+ });
128
+ _this.orderedSections = _this.orderedSections.map(section => {
129
+ if (section.compositeId && compositeMap[section.compositeId]) {
130
+ const compositeItem = createEmptyCompositeItem();
131
+ compositeMap[section.compositeId].forEach(section => {
132
+ _this.addToCompositeItem(section, compositeItem, section.groupTitle);
133
+ });
134
+ delete compositeMap[section.compositeId];
135
+ return compositeItem;
136
+ }
137
+ return section;
138
+ });
139
+ _this.orderedSections = _this.orderedSections.filter(section => {
140
+ if (section.compositeId) {
141
+ return section.children && section.children.length > 0;
142
+ }
143
+ return true;
144
+ });
87
145
  _this.layoutTable.removeAllItems();
88
146
  _this.orderedSections.forEach((section, index) => {
89
- _this.layoutTable.addItem(new ColumnListItem(recycleId(`${_this.getId()}--layoutSettingsColumnListItem--${index}`), {
90
- type: _this.getParent()?.hasDetailsPage?.(section.completeId) ? "Navigation" : "Inactive",
91
- cells: [new HBox(recycleId(`${_this.getId()}--layoutColumnListHBox--${index}`), {
92
- alignItems: "Center",
93
- items: [new Icon(recycleId(`${_this.getId()}--layoutColumnListItemIcon--${index}`), {
94
- src: "sap-icon://vertical-grip"
95
- }).addStyleClass("sapUiSmallMarginEnd"), new HBox(recycleId(`${_this.getId()}--layoutColumnListItemHBox--${index}`), {
96
- justifyContent: "SpaceBetween",
97
- alignItems: "Center",
98
- width: "100%",
99
- items: [new ObjectIdentifier(recycleId(`${_this.getId()}--layoutColumnListObjectIdentifier--${index}`), {
100
- title: section.title,
101
- text: section.text,
102
- tooltip: section.title
103
- }), new ToggleButton(recycleId(`${_this.getId()}--layoutColumnListToggleButton--${index}`), {
104
- tooltip: section.visible ? _this._i18nBundle.getText("hideBtn") : _this._i18nBundle.getText("showBtn"),
105
- icon: "sap-icon://show",
106
- type: "Emphasized",
107
- enabled: !section.blocked,
108
- press: event => _this.createShowHideChangeFile(event, section),
109
- pressed: !section.visible,
110
- ariaLabelledBy: ["selectLabel"]
111
- }).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
112
- }).addStyleClass("sapUiTinyMarginBegin")],
113
- width: "100%"
114
- })],
115
- press: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),
116
- customData: new CustomData(recycleId(`${_this.getId()}--custom-data--${index}`), {
117
- key: "sectionObject",
118
- value: section
119
- })
120
- })).addStyleClass("insightsListItem insightsListMargin");
147
+ _this.layoutTable.addItem(_this.getLayoutListItem(section, index)).addStyleClass("insightsListItem insightsListMargin");
121
148
  });
122
149
  });
123
150
  } catch (e) {
124
151
  return Promise.reject(e);
125
152
  }
126
153
  },
154
+ getLayoutListItem: function _getLayoutListItem(section, index) {
155
+ const keyUserSettingsDialog = this.getParent();
156
+
157
+ //check the condition for news and pages as it is a composite container
158
+ if (section?.isComposite === true) {
159
+ return this.getCompositeLayoutListItem(section, index);
160
+ }
161
+ return new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {
162
+ type: this.getParent()?.hasDetailsPage?.(section.completeId) ? "Navigation" : "Inactive",
163
+ cells: [new HBox(recycleId(`${this.getId()}--layoutColumnListHBox--${index}`), {
164
+ alignItems: "Center",
165
+ items: [new Icon(recycleId(`${this.getId()}--layoutColumnListItemIcon--${index}`), {
166
+ src: "sap-icon://vertical-grip"
167
+ }).addStyleClass("sapUiSmallMarginEnd"), new HBox(recycleId(`${this.getId()}--layoutColumnListItemHBox--${index}`), {
168
+ justifyContent: "SpaceBetween",
169
+ alignItems: "Center",
170
+ width: "100%",
171
+ items: [new ObjectIdentifier(recycleId(`${this.getId()}--layoutColumnListObjectIdentifier--${index}`), {
172
+ title: section.title,
173
+ text: section.text,
174
+ tooltip: section.title
175
+ }), new ToggleButton(recycleId(`${this.getId()}--layoutColumnListToggleButton--${index}`), {
176
+ tooltip: section.visible ? this._i18nBundle.getText("hideBtn") : this._i18nBundle.getText("showBtn"),
177
+ icon: "sap-icon://show",
178
+ type: "Emphasized",
179
+ enabled: !section.blocked,
180
+ press: event => this.createShowHideChangeFile(event, section),
181
+ pressed: !section.visible,
182
+ ariaLabelledBy: ["selectLabel"]
183
+ }).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
184
+ }).addStyleClass("sapUiTinyMarginBegin")],
185
+ width: "100%"
186
+ })],
187
+ press: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),
188
+ customData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {
189
+ key: "sectionObject",
190
+ value: section
191
+ })
192
+ });
193
+ },
194
+ getCompositeLayoutListItem: function _getCompositeLayoutListItem(section, index) {
195
+ const keyUserSettingsDialog = this.getParent();
196
+
197
+ // Create child HBoxes dynamically based on number of children
198
+ const childBoxes = (section.children || []).map((child, childIndex) => {
199
+ return new HBox(recycleId(`${this.getId()}--columnListItemChildHBox--${index}-${childIndex}`), {
200
+ justifyContent: "SpaceBetween",
201
+ alignItems: "Center",
202
+ items: [new ObjectIdentifier(recycleId(`${this.getId()}--childObjectIdentifier--${index}-${childIndex}`), {
203
+ title: child.title,
204
+ text: child.text,
205
+ tooltip: child.title
206
+ }), new ToggleButton(recycleId(`${this.getId()}--layoutSettingstoggleButtonChild--${index}-${childIndex}`), {
207
+ tooltip: child.visible ? this._i18nBundle.getText("hideBtn") : this._i18nBundle.getText("showBtn"),
208
+ icon: "sap-icon://show",
209
+ type: "Emphasized",
210
+ enabled: !child.blocked,
211
+ press: event => this.createShowHideChangeFile(event, child),
212
+ pressed: !child.visible,
213
+ ariaLabelledBy: ["selectLabel"]
214
+ }).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
215
+ }).addStyleClass("sapCuxCompositeItem");
216
+ });
217
+
218
+ // Now build the main composite item layout
219
+ return new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {
220
+ type: keyUserSettingsDialog?.hasDetailsPage?.(section.completeId) ? "Navigation" : "Inactive",
221
+ press: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),
222
+ customData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {
223
+ key: "sectionObject",
224
+ value: section
225
+ }),
226
+ cells: [new VBox(recycleId(`${this.getId()}--compositeVBox--${index}`), {
227
+ items: [
228
+ // Parent section header (with main title)
229
+ new HBox(recycleId(`${this.getId()}--columnListHBox--${index}`), {
230
+ alignItems: "Center",
231
+ items: [new Icon(recycleId(`${this.getId()}--columnListIcon--${index}`), {
232
+ src: "sap-icon://vertical-grip"
233
+ }).addStyleClass("sapUiSmallMarginEnd"), new HBox(recycleId(`${this.getId()}--columnListItemHBox--${index}`), {
234
+ justifyContent: "SpaceBetween",
235
+ alignItems: "Center",
236
+ width: "100%",
237
+ items: [new ObjectIdentifier(recycleId(`${this.getId()}--columnListObjectIdentifier--${index}`), {
238
+ title: section.title,
239
+ text: section.text,
240
+ tooltip: section.title
241
+ })]
242
+ })],
243
+ width: "100%"
244
+ }).addStyleClass("sapUiTinyMarginTopBottom"),
245
+ // All dynamically created child boxes
246
+ ...childBoxes]
247
+ })]
248
+ }).addStyleClass("insightsListItem insightsListMargin");
249
+ },
250
+ addToCompositeItem: function _addToCompositeItem(section, compositeItem, compositeTitle) {
251
+ compositeItem.isComposite = true;
252
+ compositeItem.title = compositeTitle;
253
+ if (!compositeItem.completeId) {
254
+ compositeItem.completeId = section.completeId;
255
+ }
256
+ //Add compositeId
257
+ compositeItem.compositeId = section.compositeId;
258
+ compositeItem.children?.push({
259
+ ...section
260
+ });
261
+ compositeItem.text = section.text;
262
+ compositeItem.blocked = section.blocked;
263
+ compositeItem.visible = section.visible;
264
+ },
127
265
  /**
128
266
  * Function to execute drag and drop among sections
129
267
  *
@@ -140,12 +278,43 @@ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/Obje
140
278
  const sectionOrder = this.orderedSections;
141
279
  const dragObject = dragItem.data("sectionObject");
142
280
  const dropObject = dropItem.data("sectionObject");
143
- const actualDragItemIndex = this._getActualIndex(dragObject.completeId);
144
- const actualDropItemIndex = this._getActualIndex(dropObject.completeId);
281
+ let actualDragItemIndex = this._getActualIndex(dragObject.completeId);
282
+ let actualDropItemIndex = this._getActualIndex(dropObject.completeId);
145
283
  this._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);
146
284
  sectionOrder.splice(dragItemIndex, 1);
147
285
  sectionOrder.splice(dropItemIndex, 0, dragObject);
148
286
  wrapper.setSections(sectionOrder);
287
+ //loop through the wrapper.getItems() and find the index and noData Container
288
+ let noDataContainerIndex = -1;
289
+ const items = wrapper.getItems();
290
+ let noDataContainer = null;
291
+ for (let i = 0; i < items.length; i++) {
292
+ const item = items[i];
293
+ if (item instanceof NoDataContainer) {
294
+ noDataContainerIndex = i;
295
+ noDataContainer = item;
296
+ }
297
+ }
298
+ //now insert the noDataContainer back to its noDataContainerIndex in sectionOrder
299
+ if (noDataContainer && noDataContainerIndex !== -1) {
300
+ sectionOrder.splice(noDataContainerIndex, 0, noDataContainer);
301
+ }
302
+ let finalTargetIndex = 0;
303
+ const elementList = this.orderedSections.reduce((accumulator, section) => {
304
+ if (section.isComposite && section.children) {
305
+ accumulator.push(...section.children);
306
+ } else {
307
+ accumulator.push(section);
308
+ }
309
+ return accumulator;
310
+ }, []);
311
+ finalTargetIndex = elementList.findIndex(element => element.completeId === dragObject.completeId);
312
+ //find the composite child for this dragObject if it has a composite id
313
+ const compositeChildren = elementList.filter(element => dragObject.compositeId && dragObject.compositeId === element.compositeId && element.completeId !== dragObject.completeId);
314
+ if (noDataContainer && noDataContainerIndex !== -1) {
315
+ //remove noDataContainer from sectionOrder to avoid the display of an empty item in myhome Settings dialog
316
+ sectionOrder.splice(noDataContainerIndex, 1);
317
+ }
149
318
  this.addKeyUserChanges({
150
319
  selectorControl: wrapper,
151
320
  changeSpecificData: {
@@ -154,7 +323,7 @@ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/Obje
154
323
  movedElements: [{
155
324
  id: dragObject.completeId,
156
325
  sourceIndex: actualDragItemIndex,
157
- targetIndex: actualDropItemIndex
326
+ targetIndex: dragItemIndex < dropItemIndex && dragObject.isComposite ? finalTargetIndex + 1 : finalTargetIndex
158
327
  }],
159
328
  source: {
160
329
  id: wrapperId,
@@ -167,6 +336,31 @@ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/Obje
167
336
  }
168
337
  }
169
338
  });
339
+ if (compositeChildren.length > 0) {
340
+ compositeChildren.forEach(compositeChild => {
341
+ this.addKeyUserChanges({
342
+ selectorControl: wrapper,
343
+ changeSpecificData: {
344
+ changeType: CHANGE_TYPES.MOVE,
345
+ content: {
346
+ movedElements: [{
347
+ id: compositeChild.completeId,
348
+ sourceIndex: actualDragItemIndex,
349
+ targetIndex: finalTargetIndex + 1 // +1 as it will be after the main dragObject
350
+ }],
351
+ source: {
352
+ id: wrapperId,
353
+ aggregation: "items"
354
+ },
355
+ target: {
356
+ id: wrapperId,
357
+ aggregation: "items"
358
+ }
359
+ }
360
+ }
361
+ });
362
+ });
363
+ }
170
364
  void this.loadSections();
171
365
  }
172
366
  focusDraggedItem(this.layoutTable, dropItemIndex);
@@ -180,7 +374,7 @@ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/Obje
180
374
  */
181
375
  _getActualIndex: function _getActualIndex(id) {
182
376
  const layout = this._getPanel();
183
- this._allLayoutElements = this._allLayoutElements || [...layout.getItems()];
377
+ this._allLayoutElements = layout.getItems();
184
378
  const isLayoutExpanded = layout.getProperty("expanded");
185
379
  const expandedElementConfig = layout._getCurrentExpandedElement();
186
380
  if (isLayoutExpanded && expandedElementConfig) {
@@ -210,7 +404,9 @@ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/Obje
210
404
  */
211
405
  createShowHideChangeFile: function _createShowHideChangeFile(oControlEvent, section) {
212
406
  const isCheckBoxSelected = !oControlEvent.getParameter("pressed");
407
+ const selectedCompleteId = section.completeId;
213
408
  const keyUserChanges = this.getKeyUserChanges();
409
+ const wrapperItem = Element.getElementById(section.completeId);
214
410
  const changeType = isCheckBoxSelected ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;
215
411
  const oExistingChange = keyUserChanges.find(oChange => {
216
412
  return oChange.selectorControl.getId() === section.completeId;
@@ -223,10 +419,27 @@ sap.ui.define(["sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/Obje
223
419
  this.addKeyUserChanges({
224
420
  selectorControl: Element.getElementById(section.completeId),
225
421
  changeSpecificData: {
226
- changeType
422
+ changeType: changeType,
423
+ content: {
424
+ compositeId: wrapperItem.getProperty("compositeId")
425
+ }
227
426
  }
228
427
  });
229
428
  }
429
+ //update this.orderedSections
430
+ this.orderedSections.forEach(section => {
431
+ //now check if oWrapperItem has composite id and check if section has same composite id and composite id is not undefined
432
+ // if yes, then loop through the children item and update its visibility
433
+ if (section.compositeId === wrapperItem.getProperty("compositeId") && section.compositeId !== undefined) {
434
+ section.children?.forEach(child => {
435
+ if (child.completeId === selectedCompleteId) {
436
+ child.visible = isCheckBoxSelected;
437
+ }
438
+ });
439
+ } else if (section.completeId === selectedCompleteId) {
440
+ section.visible = isCheckBoxSelected;
441
+ }
442
+ });
230
443
  }
231
444
  });
232
445
  return KeyUserLayoutSettingsPanel;
@@ -1 +1 @@
1
- {"version":3,"file":"KeyUserLayoutSettingsPanel.js","names":["sap","ui","define","Column","ColumnListItem","HBox","ObjectIdentifier","Table","ToggleButton","CustomData","Element","Icon","__BaseSettingsPanel","___flexibility_Layoutflexibility","___utils_Constants","___utils_DataFormatUtils","___utils_DragDropUtils","_interopRequireDefault","obj","__esModule","default","BaseSettingsPanel","CHANGE_TYPES","KEYUSER_SETTINGS_PANELS_KEYS","recycleId","focusDraggedItem","KeyUserLayoutSettingsPanel","extend","metadata","library","init","_init","BaseSettingsPanel.prototype.init.call","setProperty","LAYOUT","_i18nBundle","getText","addAggregation","getContent","attachPanelNavigated","layout","_getPanel","resetSections","loadSections","_getContent","layoutTable","getId","width","items","columns","addStyleClass","addDragDropConfigTo","event","onDropLayoutSettings","_loadSections","_this","Promise","resolve","_calculateSectionsState","then","orderedSections","getSections","keyUserSettingsDialog","getParent","removeAllItems","forEach","section","index","addItem","type","hasDetailsPage","completeId","cells","alignItems","src","justifyContent","title","text","tooltip","visible","icon","enabled","blocked","press","createShowHideChangeFile","pressed","ariaLabelledBy","navigateToPage","getDetailsPage","customData","key","value","e","reject","_onDropLayoutSettings","wrapper","wrapperId","dragItem","getParameter","draggedControl","dragItemIndex","indexOfItem","dropItem","droppedControl","dropItemIndex","sectionOrder","dragObject","data","dropObject","actualDragItemIndex","_getActualIndex","actualDropItemIndex","_rearrangeLayoutElements","splice","setSections","addKeyUserChanges","selectorControl","changeSpecificData","changeType","MOVE","content","movedElements","id","sourceIndex","targetIndex","source","aggregation","target","_allLayoutElements","getItems","isLayoutExpanded","getProperty","expandedElementConfig","_getCurrentExpandedElement","some","element","targetContainer","findIndex","container","_createShowHideChangeFile","oControlEvent","isCheckBoxSelected","keyUserChanges","getKeyUserChanges","UNHIDE","HIDE","oExistingChange","find","oChange","getElementById"],"sources":["KeyUserLayoutSettingsPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Column from \"sap/m/Column\";\nimport ColumnListItem from \"sap/m/ColumnListItem\";\nimport HBox from \"sap/m/HBox\";\nimport ObjectIdentifier from \"sap/m/ObjectIdentifier\";\nimport Table from \"sap/m/Table\";\nimport ToggleButton, { ToggleButton$PressEvent } from \"sap/m/ToggleButton\";\nimport Control from \"sap/ui/core/Control\";\nimport CustomData from \"sap/ui/core/CustomData\";\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 Icon from \"sap/ui/core/Icon\";\nimport BaseContainer from \"./BaseContainer\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\nimport { CHANGE_TYPES } from \"./flexibility/Layout.flexibility\";\nimport { IDragEvent, IElement } from \"./interface/LayoutInterface\";\nimport KeyUserSettingsDialog from \"./KeyUserSettingsDialog\";\nimport Layout from \"./Layout\";\nimport { KEYUSER_SETTINGS_PANELS_KEYS } from \"./utils/Constants\";\nimport { recycleId } from \"./utils/DataFormatUtils\";\nimport { focusDraggedItem } from \"./utils/DragDropUtils\";\n\n/**\n *\n * Class for Layout Settings Panel for KeyUser Settings Dialog.\n *\n * @extends BaseSettingsPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n * @private\n *\n * @alias sap.cux.home.KeyUserLayoutSettingsPanel\n */\nexport default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\"\n\t};\n\n\tprivate layoutTable!: Table;\n\tprivate orderedSections!: IElement[];\n\tprivate _allLayoutElements!: BaseContainer[];\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\n\t\t//setup panel\n\t\tthis.setProperty(\"key\", KEYUSER_SETTINGS_PANELS_KEYS.LAYOUT);\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"editModeTitle\"));\n\n\t\t// //setup layout content\n\t\tthis.addAggregation(\"content\", this.getContent());\n\n\t\t//fired every time on panel navigation\n\t\tthis.attachPanelNavigated(() => {\n\t\t\tconst layout = this._getPanel() as Layout;\n\t\t\tlayout.resetSections();\n\t\t\tvoid this.loadSections();\n\t\t});\n\t}\n\n\t/**\n\t * Returns the content for the Layout Settings Panel.\n\t *\n\t * @private\n\t * @returns {VBox} The control containing the Layout Settings Panel content.\n\t */\n\tprivate getContent(): Table {\n\t\tif (!this.layoutTable) {\n\t\t\tthis.layoutTable = new Table(this.getId() + \"--idLayoutSettingsTable\", {\n\t\t\t\twidth: \"calc(100% - 2rem)\",\n\t\t\t\titems: [],\n\t\t\t\tcolumns: [\n\t\t\t\t\tnew Column(this.getId() + \"--idSectionTitleColumn\", {\n\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}).addStyleClass(\"layoutSettingsTable sapContrastPlus sapUiSmallMarginBegin\");\n\t\t\tthis.addDragDropConfigTo(this.layoutTable, (event) => this.onDropLayoutSettings(event));\n\t\t}\n\t\treturn this.layoutTable;\n\t}\n\n\t/**\n\t * Method to load the sections\n\t *\n\t * @private\n\t */\n\tprivate async loadSections(): Promise<void> {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tawait layout._calculateSectionsState();\n\t\tthis.orderedSections = layout.getSections() || [];\n\n\t\tconst keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;\n\n\t\tthis.layoutTable.removeAllItems();\n\t\tthis.orderedSections.forEach((section: IElement, index: number) => {\n\t\t\tthis.layoutTable\n\t\t\t\t.addItem(\n\t\t\t\t\tnew ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {\n\t\t\t\t\t\ttype: (this.getParent() as KeyUserSettingsDialog)?.hasDetailsPage?.(section.completeId) ? \"Navigation\" : \"Inactive\",\n\t\t\t\t\t\tcells: [\n\t\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListHBox--${index}`), {\n\t\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\tnew Icon(recycleId(`${this.getId()}--layoutColumnListItemIcon--${index}`), {\n\t\t\t\t\t\t\t\t\t\tsrc: \"sap-icon://vertical-grip\"\n\t\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiSmallMarginEnd\"),\n\t\t\t\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListItemHBox--${index}`), {\n\t\t\t\t\t\t\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--layoutColumnListObjectIdentifier--${index}`), {\n\t\t\t\t\t\t\t\t\t\t\t\ttitle: section.title,\n\t\t\t\t\t\t\t\t\t\t\t\ttext: section.text,\n\t\t\t\t\t\t\t\t\t\t\t\ttooltip: section.title\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tnew ToggleButton(recycleId(`${this.getId()}--layoutColumnListToggleButton--${index}`), {\n\t\t\t\t\t\t\t\t\t\t\t\ttooltip: section.visible\n\t\t\t\t\t\t\t\t\t\t\t\t\t? this._i18nBundle.getText(\"hideBtn\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t: this._i18nBundle.getText(\"showBtn\"),\n\t\t\t\t\t\t\t\t\t\t\t\ticon: \"sap-icon://show\",\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"Emphasized\",\n\t\t\t\t\t\t\t\t\t\t\t\tenabled: !section.blocked,\n\t\t\t\t\t\t\t\t\t\t\t\tpress: (event) => this.createShowHideChangeFile(event, section),\n\t\t\t\t\t\t\t\t\t\t\t\tpressed: !section.visible,\n\t\t\t\t\t\t\t\t\t\t\t\tariaLabelledBy: [\"selectLabel\"]\n\t\t\t\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginEnd sapUiTinyMarginTop\")\n\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginBegin\")\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t],\n\t\t\t\t\t\tpress: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),\n\t\t\t\t\t\tcustomData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {\n\t\t\t\t\t\t\tkey: \"sectionObject\",\n\t\t\t\t\t\t\tvalue: section\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\t.addStyleClass(\"insightsListItem insightsListMargin\");\n\t\t});\n\t}\n\n\t/**\n\t * Function to execute drag and drop among sections\n\t *\n\t * @private\n\t */\n\tprivate onDropLayoutSettings(event: DropInfo$DropEvent | IDragEvent) {\n\t\tconst wrapper = this._getPanel() as Layout | Control;\n\t\tconst wrapperId = wrapper.getId();\n\t\tconst dragItem = ((event as DropInfo$DropEvent).getParameter?.(\"draggedControl\") ||\n\t\t\t(event as IDragEvent).draggedControl) as ColumnListItem;\n\t\tconst dragItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dragItem);\n\t\tconst dropItem = ((event as DropInfo$DropEvent).getParameter?.(\"droppedControl\") ||\n\t\t\t(event as IDragEvent).droppedControl) as ColumnListItem;\n\t\tconst dropItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dropItem);\n\n\t\tif (dragItemIndex !== dropItemIndex) {\n\t\t\tconst sectionOrder = this.orderedSections;\n\t\t\tconst dragObject = dragItem.data(\"sectionObject\") as IElement;\n\t\t\tconst dropObject = dropItem.data(\"sectionObject\") as IElement;\n\n\t\t\tconst actualDragItemIndex = this._getActualIndex(dragObject.completeId);\n\t\t\tconst actualDropItemIndex = this._getActualIndex(dropObject.completeId);\n\t\t\tthis._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);\n\n\t\t\tsectionOrder.splice(dragItemIndex, 1);\n\t\t\tsectionOrder.splice(dropItemIndex, 0, dragObject);\n\t\t\t(wrapper as Layout).setSections(sectionOrder);\n\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: wrapper as Control,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType: CHANGE_TYPES.MOVE,\n\t\t\t\t\tcontent: {\n\t\t\t\t\t\tmovedElements: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: dragObject.completeId,\n\t\t\t\t\t\t\t\tsourceIndex: actualDragItemIndex,\n\t\t\t\t\t\t\t\ttargetIndex: actualDropItemIndex\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttarget: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tvoid this.loadSections();\n\t\t}\n\t\tfocusDraggedItem(this.layoutTable, dropItemIndex);\n\t}\n\n\t/**\n\t * Retrieves the actual index of a layout element by its ID.\n\t *\n\t * @private\n\t * @param {string} id - The ID of the layout element to find.\n\t * @returns {number} The index of the layout element.\n\t */\n\tprivate _getActualIndex(id: string): number {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tthis._allLayoutElements = this._allLayoutElements || [...layout.getItems()];\n\t\tconst isLayoutExpanded = layout.getProperty(\"expanded\") as boolean;\n\t\tconst expandedElementConfig = layout._getCurrentExpandedElement();\n\n\t\tif (isLayoutExpanded && expandedElementConfig) {\n\t\t\t// add the expanded element if it isn't already in the list\n\t\t\tif (!this._allLayoutElements.some((element) => element.getId() === expandedElementConfig.targetContainer.getId())) {\n\t\t\t\tthis._allLayoutElements.splice(\n\t\t\t\t\tlayout.indexOfItem(expandedElementConfig.targetContainer),\n\t\t\t\t\t0,\n\t\t\t\t\texpandedElementConfig.targetContainer\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn this._allLayoutElements.findIndex((element) => element.getId() === id);\n\t}\n\n\t/**\n\t * Rearranges the layout elements by moving an element from the source index to the target index.\n\t *\n\t * @private\n\t * @param {number} sourceIndex - The index of the element to move.\n\t * @param {number} targetIndex - The index to move the element to.\n\t */\n\tprivate _rearrangeLayoutElements(sourceIndex: number, targetIndex: number): void {\n\t\tconst container = this._allLayoutElements.splice(sourceIndex, 1)[0];\n\t\tthis._allLayoutElements.splice(targetIndex, 0, container);\n\t}\n\n\t/**\n\t * Method to set visibility of the container sections\n\t * Toggle button pressed event handler\n\t *\n\t * @private\n\t */\n\tprivate createShowHideChangeFile(oControlEvent: ToggleButton$PressEvent, section: IElement): void {\n\t\tconst isCheckBoxSelected: boolean = !oControlEvent.getParameter(\"pressed\");\n\t\tconst keyUserChanges = this.getKeyUserChanges();\n\t\tconst changeType = isCheckBoxSelected ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;\n\t\tconst oExistingChange = keyUserChanges.find((oChange) => {\n\t\t\treturn oChange.selectorControl.getId() === section.completeId;\n\t\t});\n\n\t\t//Check if the change already exists\n\t\tif (oExistingChange) {\n\t\t\toExistingChange.changeSpecificData.changeType = changeType;\n\t\t} else {\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: Element.getElementById(section.completeId) as Control,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,2UAAAC,MAAA,EAAAC,cAAA,EAAAC,IAAA,EAAAC,gBAAA,EAAAC,KAAA,EAAAC,YAAA,EAA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,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;MACnE,IAAI,CAACK,kBAAkB,CAACf,MAAM,CAACW,WAAW,EAAE,CAAC,EAAEc,SAAS,CAAC;IAC1D,CAAC;IAED;AACD;AACA;AACA;AACA;AACA;IACStD,wBAAwB,WAAAuD,0BAACC,aAAsC,EAAE1E,OAAiB,EAAQ;MACjG,MAAM2E,kBAA2B,GAAG,CAACD,aAAa,CAAC1C,YAAY,CAAC,SAAS,CAAC;MAC1E,MAAM4C,cAAc,GAAG,IAAI,CAACC,iBAAiB,CAAC,CAAC;MAC/C,MAAMzB,UAAU,GAAGuB,kBAAkB,GAAGvH,YAAY,CAAC0H,MAAM,GAAG1H,YAAY,CAAC2H,IAAI;MAC/E,MAAMC,eAAe,GAAGJ,cAAc,CAACK,IAAI,CAAEC,OAAO,IAAK;QACxD,OAAOA,OAAO,CAAChC,eAAe,CAACtE,KAAK,CAAC,CAAC,KAAKoB,OAAO,CAACK,UAAU;MAC9D,CAAC,CAAC;;MAEF;MACA,IAAI2E,eAAe,EAAE;QACpBA,eAAe,CAAC7B,kBAAkB,CAACC,UAAU,GAAGA,UAAU;MAC3D,CAAC,MAAM;QACN,IAAI,CAACH,iBAAiB,CAAC;UACtBC,eAAe,EAAE1G,OAAO,CAAC2I,cAAc,CAACnF,OAAO,CAACK,UAAU,CAAY;UACtE8C,kBAAkB,EAAE;YACnBC;UACD;QACD,CAAC,CAAC;MACH;IACD;EAAC;EAAA,OA/OmB5F,0BAA0B;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"KeyUserLayoutSettingsPanel.js","names":["sap","ui","define","Column","ColumnListItem","HBox","ObjectIdentifier","Table","ToggleButton","VBox","CustomData","Element","Icon","__BaseContainer","__BaseSettingsPanel","___flexibility_Layoutflexibility","__NoDataContainer","___utils_Constants","___utils_DataFormatUtils","___utils_DragDropUtils","_interopRequireDefault","obj","__esModule","default","BaseContainer","BaseSettingsPanel","CHANGE_TYPES","NoDataContainer","KEYUSER_SETTINGS_PANELS_KEYS","recycleId","focusDraggedItem","KeyUserLayoutSettingsPanel","extend","metadata","library","init","_init","BaseSettingsPanel.prototype.init.call","setProperty","LAYOUT","_i18nBundle","getText","addAggregation","getContent","attachPanelNavigated","layout","_getPanel","resetSections","loadSections","_getContent","layoutTable","getId","width","items","columns","addStyleClass","addDragDropConfigTo","event","onDropLayoutSettings","_loadSections","_this","Promise","resolve","_calculateSectionsState","then","orderedSections","getSections","reduce","accumulator","section","isComposite","children","push","createEmptyCompositeItem","completeId","sContainerType","blocked","visible","title","text","compositeId","compositeMap","forEach","container","getElementById","getProperty","groupTitle","getCustomSettings","map","compositeItem","addToCompositeItem","filter","length","removeAllItems","index","addItem","getLayoutListItem","e","reject","_getLayoutListItem","keyUserSettingsDialog","getParent","getCompositeLayoutListItem","type","hasDetailsPage","cells","alignItems","src","justifyContent","tooltip","icon","enabled","press","createShowHideChangeFile","pressed","ariaLabelledBy","navigateToPage","getDetailsPage","customData","key","value","_getCompositeLayoutListItem","childBoxes","child","childIndex","_addToCompositeItem","compositeTitle","_onDropLayoutSettings","wrapper","wrapperId","dragItem","getParameter","draggedControl","dragItemIndex","indexOfItem","dropItem","droppedControl","dropItemIndex","sectionOrder","dragObject","data","dropObject","actualDragItemIndex","_getActualIndex","actualDropItemIndex","_rearrangeLayoutElements","splice","setSections","noDataContainerIndex","getItems","noDataContainer","i","item","finalTargetIndex","elementList","findIndex","element","compositeChildren","addKeyUserChanges","selectorControl","changeSpecificData","changeType","MOVE","content","movedElements","id","sourceIndex","targetIndex","source","aggregation","target","compositeChild","_allLayoutElements","isLayoutExpanded","expandedElementConfig","_getCurrentExpandedElement","some","targetContainer","_createShowHideChangeFile","oControlEvent","isCheckBoxSelected","selectedCompleteId","keyUserChanges","getKeyUserChanges","wrapperItem","UNHIDE","HIDE","oExistingChange","find","oChange","undefined"],"sources":["KeyUserLayoutSettingsPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Column from \"sap/m/Column\";\nimport ColumnListItem from \"sap/m/ColumnListItem\";\nimport HBox from \"sap/m/HBox\";\nimport ObjectIdentifier from \"sap/m/ObjectIdentifier\";\nimport Table from \"sap/m/Table\";\nimport ToggleButton, { ToggleButton$PressEvent } from \"sap/m/ToggleButton\";\nimport VBox from \"sap/m/VBox\";\nimport CustomData from \"sap/ui/core/CustomData\";\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 Icon from \"sap/ui/core/Icon\";\nimport BaseContainer from \"./BaseContainer\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\nimport { CHANGE_TYPES } from \"./flexibility/Layout.flexibility\";\nimport { IDragEvent, IElement } from \"./interface/LayoutInterface\";\nimport KeyUserSettingsDialog from \"./KeyUserSettingsDialog\";\nimport Layout from \"./Layout\";\nimport NoDataContainer from \"./NoDataContainer\";\nimport { KEYUSER_SETTINGS_PANELS_KEYS } from \"./utils/Constants\";\nimport { recycleId } from \"./utils/DataFormatUtils\";\nimport { focusDraggedItem } from \"./utils/DragDropUtils\";\n\n/**\n *\n * Class for Layout Settings Panel for KeyUser Settings Dialog.\n *\n * @extends BaseSettingsPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n * @private\n *\n * @alias sap.cux.home.KeyUserLayoutSettingsPanel\n */\nexport default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\"\n\t};\n\n\tprivate layoutTable!: Table;\n\tprivate orderedSections!: IElement[];\n\tprivate _allLayoutElements!: BaseContainer[];\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\n\t\t//setup panel\n\t\tthis.setProperty(\"key\", KEYUSER_SETTINGS_PANELS_KEYS.LAYOUT);\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"editModeTitle\"));\n\n\t\t// //setup layout content\n\t\tthis.addAggregation(\"content\", this.getContent());\n\n\t\t//fired every time on panel navigation\n\t\tthis.attachPanelNavigated(() => {\n\t\t\tconst layout = this._getPanel() as Layout;\n\t\t\tlayout.resetSections();\n\t\t\tvoid this.loadSections();\n\t\t});\n\t}\n\n\t/**\n\t * Returns the content for the Layout Settings Panel.\n\t *\n\t * @private\n\t * @returns {VBox} The control containing the Layout Settings Panel content.\n\t */\n\tprivate getContent(): Table {\n\t\tif (!this.layoutTable) {\n\t\t\tthis.layoutTable = new Table(this.getId() + \"--idLayoutSettingsTable\", {\n\t\t\t\twidth: \"calc(100% - 2rem)\",\n\t\t\t\titems: [],\n\t\t\t\tcolumns: [\n\t\t\t\t\tnew Column(this.getId() + \"--idSectionTitleColumn\", {\n\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}).addStyleClass(\"layoutSettingsTable sapContrastPlus sapUiSmallMarginBegin\");\n\t\t\tthis.addDragDropConfigTo(this.layoutTable, (event) => this.onDropLayoutSettings(event));\n\t\t}\n\t\treturn this.layoutTable;\n\t}\n\n\t/**\n\t * Method to load the sections\n\t *\n\t * @private\n\t */\n\tprivate async loadSections(): Promise<void> {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tawait layout._calculateSectionsState();\n\t\tthis.orderedSections = layout.getSections() || [];\n\t\t//loop through this._orderedSections and take out the children items from composite items and add them to same list\n\t\tthis.orderedSections = this.orderedSections.reduce((accumulator, section) => {\n\t\t\tif (section.isComposite && section.children) {\n\t\t\t\taccumulator.push(...section.children);\n\t\t\t} else {\n\t\t\t\taccumulator.push(section);\n\t\t\t}\n\t\t\treturn accumulator;\n\t\t}, [] as IElement[]);\n\n\t\t// create composite list item\n\t\tconst createEmptyCompositeItem = (): IElement => ({\n\t\t\tcompleteId: \"\",\n\t\t\tsContainerType: \"\",\n\t\t\tblocked: false,\n\t\t\tvisible: false,\n\t\t\ttitle: \"\",\n\t\t\ttext: \"\",\n\t\t\tisComposite: false,\n\t\t\tcompositeId: null,\n\t\t\tchildren: []\n\t\t});\n\n\t\tconst compositeMap: { [key: string]: IElement[] } = {};\n\n\t\tthis.orderedSections.forEach((section) => {\n\t\t\tconst container = Element.getElementById(section.completeId) as BaseContainer | null;\n\n\t\t\tif (container instanceof BaseContainer) {\n\t\t\t\tconst compositeId = container.getProperty(\"compositeId\") as string;\n\t\t\t\tif (compositeId) {\n\t\t\t\t\tif (!compositeMap[compositeId]) {\n\t\t\t\t\t\tcompositeMap[compositeId] = [];\n\t\t\t\t\t}\n\t\t\t\t\tsection.compositeId = compositeId;\n\t\t\t\t\tsection.groupTitle = container.getCustomSettings().groupTitle || \"\";\n\t\t\t\t\tcompositeMap[compositeId].push(section);\n\t\t\t\t} else {\n\t\t\t\t\tsection.compositeId = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// map through this.orderedSections and replace items with compositeId with a single composite item containing its children\n\t\tthis.orderedSections = this.orderedSections.map((section) => {\n\t\t\tif (section.compositeId && compositeMap[section.compositeId]) {\n\t\t\t\tconst compositeItem = createEmptyCompositeItem();\n\t\t\t\tcompositeMap[section.compositeId].forEach((section) => {\n\t\t\t\t\tthis.addToCompositeItem(section, compositeItem, section.groupTitle as string);\n\t\t\t\t});\n\t\t\t\tdelete compositeMap[section.compositeId];\n\t\t\t\treturn compositeItem;\n\t\t\t}\n\t\t\treturn section;\n\t\t});\n\t\t//filter this.orderedSections to remove items which has same composite item with no children\n\t\tthis.orderedSections = this.orderedSections.filter((section) => {\n\t\t\tif (section.compositeId) {\n\t\t\t\treturn section.children && section.children.length > 0;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\n\t\tthis.layoutTable.removeAllItems();\n\t\tthis.orderedSections.forEach((section: IElement, index: number) => {\n\t\t\tthis.layoutTable.addItem(this.getLayoutListItem(section, index)).addStyleClass(\"insightsListItem insightsListMargin\");\n\t\t});\n\t}\n\n\tprivate getLayoutListItem(section: IElement, index: number): ColumnListItem {\n\t\tconst keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;\n\n\t\t//check the condition for news and pages as it is a composite container\n\t\tif (section?.isComposite === true) {\n\t\t\treturn this.getCompositeLayoutListItem(section, index);\n\t\t}\n\t\treturn new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {\n\t\t\ttype: (this.getParent() as KeyUserSettingsDialog)?.hasDetailsPage?.(section.completeId) ? \"Navigation\" : \"Inactive\",\n\t\t\tcells: [\n\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListHBox--${index}`), {\n\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\titems: [\n\t\t\t\t\t\tnew Icon(recycleId(`${this.getId()}--layoutColumnListItemIcon--${index}`), {\n\t\t\t\t\t\t\tsrc: \"sap-icon://vertical-grip\"\n\t\t\t\t\t\t}).addStyleClass(\"sapUiSmallMarginEnd\"),\n\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListItemHBox--${index}`), {\n\t\t\t\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--layoutColumnListObjectIdentifier--${index}`), {\n\t\t\t\t\t\t\t\t\ttitle: section.title,\n\t\t\t\t\t\t\t\t\ttext: section.text,\n\t\t\t\t\t\t\t\t\ttooltip: section.title\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tnew ToggleButton(recycleId(`${this.getId()}--layoutColumnListToggleButton--${index}`), {\n\t\t\t\t\t\t\t\t\ttooltip: section.visible ? this._i18nBundle.getText(\"hideBtn\") : this._i18nBundle.getText(\"showBtn\"),\n\t\t\t\t\t\t\t\t\ticon: \"sap-icon://show\",\n\t\t\t\t\t\t\t\t\ttype: \"Emphasized\",\n\t\t\t\t\t\t\t\t\tenabled: !section.blocked,\n\t\t\t\t\t\t\t\t\tpress: (event) => this.createShowHideChangeFile(event, section),\n\t\t\t\t\t\t\t\t\tpressed: !section.visible,\n\t\t\t\t\t\t\t\t\tariaLabelledBy: [\"selectLabel\"]\n\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginEnd sapUiTinyMarginTop\")\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginBegin\")\n\t\t\t\t\t],\n\t\t\t\t\twidth: \"100%\"\n\t\t\t\t})\n\t\t\t],\n\t\t\tpress: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),\n\t\t\tcustomData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {\n\t\t\t\tkey: \"sectionObject\",\n\t\t\t\tvalue: section\n\t\t\t})\n\t\t});\n\t}\n\n\tprivate getCompositeLayoutListItem(section: IElement, index: number): ColumnListItem {\n\t\tconst keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;\n\n\t\t// Create child HBoxes dynamically based on number of children\n\t\tconst childBoxes = (section.children || []).map((child, childIndex) => {\n\t\t\treturn new HBox(recycleId(`${this.getId()}--columnListItemChildHBox--${index}-${childIndex}`), {\n\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\talignItems: \"Center\",\n\t\t\t\titems: [\n\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--childObjectIdentifier--${index}-${childIndex}`), {\n\t\t\t\t\t\ttitle: child.title,\n\t\t\t\t\t\ttext: child.text,\n\t\t\t\t\t\ttooltip: child.title\n\t\t\t\t\t}),\n\t\t\t\t\tnew ToggleButton(recycleId(`${this.getId()}--layoutSettingstoggleButtonChild--${index}-${childIndex}`), {\n\t\t\t\t\t\ttooltip: child.visible ? this._i18nBundle.getText(\"hideBtn\") : this._i18nBundle.getText(\"showBtn\"),\n\t\t\t\t\t\ticon: \"sap-icon://show\",\n\t\t\t\t\t\ttype: \"Emphasized\",\n\t\t\t\t\t\tenabled: !child.blocked,\n\t\t\t\t\t\tpress: (event) => this.createShowHideChangeFile(event, child),\n\t\t\t\t\t\tpressed: !child.visible,\n\t\t\t\t\t\tariaLabelledBy: [\"selectLabel\"]\n\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginEnd sapUiTinyMarginTop\")\n\t\t\t\t]\n\t\t\t}).addStyleClass(\"sapCuxCompositeItem\");\n\t\t});\n\n\t\t// Now build the main composite item layout\n\t\treturn new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {\n\t\t\ttype: keyUserSettingsDialog?.hasDetailsPage?.(section.completeId) ? \"Navigation\" : \"Inactive\",\n\t\t\tpress: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),\n\t\t\tcustomData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {\n\t\t\t\tkey: \"sectionObject\",\n\t\t\t\tvalue: section\n\t\t\t}),\n\t\t\tcells: [\n\t\t\t\tnew VBox(recycleId(`${this.getId()}--compositeVBox--${index}`), {\n\t\t\t\t\titems: [\n\t\t\t\t\t\t// Parent section header (with main title)\n\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--columnListHBox--${index}`), {\n\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\tnew Icon(recycleId(`${this.getId()}--columnListIcon--${index}`), {\n\t\t\t\t\t\t\t\t\tsrc: \"sap-icon://vertical-grip\"\n\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiSmallMarginEnd\"),\n\t\t\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--columnListItemHBox--${index}`), {\n\t\t\t\t\t\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--columnListObjectIdentifier--${index}`), {\n\t\t\t\t\t\t\t\t\t\t\ttitle: section.title,\n\t\t\t\t\t\t\t\t\t\t\ttext: section.text,\n\t\t\t\t\t\t\t\t\t\t\ttooltip: section.title\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginTopBottom\"),\n\n\t\t\t\t\t\t// All dynamically created child boxes\n\t\t\t\t\t\t...childBoxes\n\t\t\t\t\t]\n\t\t\t\t})\n\t\t\t]\n\t\t}).addStyleClass(\"insightsListItem insightsListMargin\");\n\t}\n\n\tprivate addToCompositeItem(section: IElement, compositeItem: IElement, compositeTitle: string) {\n\t\tcompositeItem.isComposite = true;\n\t\tcompositeItem.title = compositeTitle;\n\n\t\tif (!compositeItem.completeId) {\n\t\t\tcompositeItem.completeId = section.completeId;\n\t\t}\n\t\t//Add compositeId\n\t\tcompositeItem.compositeId = section.compositeId;\n\n\t\tcompositeItem.children?.push({ ...section });\n\n\t\tcompositeItem.text = section.text;\n\t\tcompositeItem.blocked = section.blocked;\n\t\tcompositeItem.visible = section.visible;\n\t}\n\n\t/**\n\t * Function to execute drag and drop among sections\n\t *\n\t * @private\n\t */\n\tprivate onDropLayoutSettings(event: DropInfo$DropEvent | IDragEvent) {\n\t\tconst wrapper = this._getPanel() as Layout;\n\t\tconst wrapperId = wrapper.getId();\n\t\tconst dragItem = ((event as DropInfo$DropEvent).getParameter?.(\"draggedControl\") ||\n\t\t\t(event as IDragEvent).draggedControl) as ColumnListItem;\n\t\tconst dragItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dragItem);\n\t\tconst dropItem = ((event as DropInfo$DropEvent).getParameter?.(\"droppedControl\") ||\n\t\t\t(event as IDragEvent).droppedControl) as ColumnListItem;\n\t\tconst dropItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dropItem);\n\n\t\tif (dragItemIndex !== dropItemIndex) {\n\t\t\tconst sectionOrder = this.orderedSections;\n\t\t\tconst dragObject = dragItem.data(\"sectionObject\") as IElement;\n\t\t\tconst dropObject = dropItem.data(\"sectionObject\") as IElement;\n\n\t\t\tlet actualDragItemIndex = this._getActualIndex(dragObject.completeId);\n\t\t\tlet actualDropItemIndex = this._getActualIndex(dropObject.completeId);\n\t\t\tthis._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);\n\n\t\t\tsectionOrder.splice(dragItemIndex, 1);\n\t\t\tsectionOrder.splice(dropItemIndex, 0, dragObject);\n\t\t\twrapper.setSections(sectionOrder);\n\t\t\t//loop through the wrapper.getItems() and find the index and noData Container\n\t\t\tlet noDataContainerIndex = -1;\n\t\t\tconst items = wrapper.getItems();\n\t\t\tlet noDataContainer: NoDataContainer | null = null;\n\t\t\tfor (let i = 0; i < items.length; i++) {\n\t\t\t\tconst item = items[i];\n\t\t\t\tif (item instanceof NoDataContainer) {\n\t\t\t\t\tnoDataContainerIndex = i;\n\t\t\t\t\tnoDataContainer = item;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//now insert the noDataContainer back to its noDataContainerIndex in sectionOrder\n\t\t\tif (noDataContainer && noDataContainerIndex !== -1) {\n\t\t\t\tsectionOrder.splice(noDataContainerIndex, 0, noDataContainer as unknown as IElement);\n\t\t\t}\n\t\t\tlet finalTargetIndex = 0;\n\t\t\tconst elementList = this.orderedSections.reduce((accumulator, section) => {\n\t\t\t\tif (section.isComposite && section.children) {\n\t\t\t\t\taccumulator.push(...section.children);\n\t\t\t\t} else {\n\t\t\t\t\taccumulator.push(section);\n\t\t\t\t}\n\t\t\t\treturn accumulator;\n\t\t\t}, [] as IElement[]);\n\t\t\tfinalTargetIndex = elementList.findIndex((element) => element.completeId === dragObject.completeId);\n\t\t\t//find the composite child for this dragObject if it has a composite id\n\t\t\tconst compositeChildren = elementList.filter(\n\t\t\t\t(element) =>\n\t\t\t\t\tdragObject.compositeId && dragObject.compositeId === element.compositeId && element.completeId !== dragObject.completeId\n\t\t\t);\n\t\t\tif (noDataContainer && noDataContainerIndex !== -1) {\n\t\t\t\t//remove noDataContainer from sectionOrder to avoid the display of an empty item in myhome Settings dialog\n\t\t\t\tsectionOrder.splice(noDataContainerIndex, 1);\n\t\t\t}\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: wrapper,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType: CHANGE_TYPES.MOVE,\n\t\t\t\t\tcontent: {\n\t\t\t\t\t\tmovedElements: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: dragObject.completeId,\n\t\t\t\t\t\t\t\tsourceIndex: actualDragItemIndex,\n\t\t\t\t\t\t\t\ttargetIndex:\n\t\t\t\t\t\t\t\t\tdragItemIndex < dropItemIndex && dragObject.isComposite ? finalTargetIndex + 1 : finalTargetIndex\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttarget: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (compositeChildren.length > 0) {\n\t\t\t\tcompositeChildren.forEach((compositeChild) => {\n\t\t\t\t\tthis.addKeyUserChanges({\n\t\t\t\t\t\tselectorControl: wrapper,\n\t\t\t\t\t\tchangeSpecificData: {\n\t\t\t\t\t\t\tchangeType: CHANGE_TYPES.MOVE,\n\t\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\t\tmovedElements: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: compositeChild.completeId,\n\t\t\t\t\t\t\t\t\t\tsourceIndex: actualDragItemIndex,\n\t\t\t\t\t\t\t\t\t\ttargetIndex: finalTargetIndex + 1 // +1 as it will be after the main dragObject\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttarget: {\n\t\t\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tvoid this.loadSections();\n\t\t}\n\t\tfocusDraggedItem(this.layoutTable, dropItemIndex);\n\t}\n\n\t/**\n\t * Retrieves the actual index of a layout element by its ID.\n\t *\n\t * @private\n\t * @param {string} id - The ID of the layout element to find.\n\t * @returns {number} The index of the layout element.\n\t */\n\tprivate _getActualIndex(id: string): number {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tthis._allLayoutElements = layout.getItems();\n\t\tconst isLayoutExpanded = layout.getProperty(\"expanded\") as boolean;\n\t\tconst expandedElementConfig = layout._getCurrentExpandedElement();\n\n\t\tif (isLayoutExpanded && expandedElementConfig) {\n\t\t\t// add the expanded element if it isn't already in the list\n\t\t\tif (!this._allLayoutElements.some((element) => element.getId() === expandedElementConfig.targetContainer.getId())) {\n\t\t\t\tthis._allLayoutElements.splice(\n\t\t\t\t\tlayout.indexOfItem(expandedElementConfig.targetContainer),\n\t\t\t\t\t0,\n\t\t\t\t\texpandedElementConfig.targetContainer\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn this._allLayoutElements.findIndex((element) => element.getId() === id);\n\t}\n\n\t/**\n\t * Rearranges the layout elements by moving an element from the source index to the target index.\n\t *\n\t * @private\n\t * @param {number} sourceIndex - The index of the element to move.\n\t * @param {number} targetIndex - The index to move the element to.\n\t */\n\tprivate _rearrangeLayoutElements(sourceIndex: number, targetIndex: number): void {\n\t\tconst container = this._allLayoutElements.splice(sourceIndex, 1)[0];\n\t\tthis._allLayoutElements.splice(targetIndex, 0, container);\n\t}\n\n\t/**\n\t * Method to set visibility of the container sections\n\t * Toggle button pressed event handler\n\t *\n\t * @private\n\t */\n\tprivate createShowHideChangeFile(oControlEvent: ToggleButton$PressEvent, section: IElement): void {\n\t\tconst isCheckBoxSelected: boolean = !oControlEvent.getParameter(\"pressed\");\n\t\tconst selectedCompleteId = section.completeId;\n\t\tconst keyUserChanges = this.getKeyUserChanges();\n\t\tconst wrapperItem = Element.getElementById(section.completeId) as BaseContainer;\n\t\tconst changeType = isCheckBoxSelected ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;\n\t\tconst oExistingChange = keyUserChanges.find((oChange) => {\n\t\t\treturn oChange.selectorControl.getId() === section.completeId;\n\t\t});\n\n\t\t//Check if the change already exists\n\t\tif (oExistingChange) {\n\t\t\toExistingChange.changeSpecificData.changeType = changeType;\n\t\t} else {\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: Element.getElementById(section.completeId) as BaseContainer,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType: changeType,\n\t\t\t\t\tcontent: {\n\t\t\t\t\t\tcompositeId: wrapperItem.getProperty(\"compositeId\") as string\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t//update this.orderedSections\n\t\tthis.orderedSections.forEach((section) => {\n\t\t\t//now check if oWrapperItem has composite id and check if section has same composite id and composite id is not undefined\n\t\t\t// if yes, then loop through the children item and update its visibility\n\t\t\tif (section.compositeId === wrapperItem.getProperty(\"compositeId\") && section.compositeId !== undefined) {\n\t\t\t\tsection.children?.forEach((child) => {\n\t\t\t\t\tif (child.completeId === selectedCompleteId) {\n\t\t\t\t\t\tchild.visible = isCheckBoxSelected;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else if (section.completeId === selectedCompleteId) {\n\t\t\t\tsection.visible = isCheckBoxSelected;\n\t\t\t}\n\t\t});\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,iYAAAC,MAAA,EAAAC,cAAA,EAAAC,IAAA,EAAAC,gBAAA,EAAAC,KAAA,EAAAC,YAAA,EAAAC,IAAA,EAAAC,UAAA,EAAAC,OAAA,EAAAC,IAAA,EAAAC,eAAA,EAAAC,mBAAA,EAAAC,gCAAA,EAAAC,iBAAA,EAAAC,kBAAA,EAAAC,wBAAA,EAAAC,sBAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAiBOG,aAAa,GAAAJ,sBAAA,CAAAP,eAAA;EAAA,MACbY,iBAAiB,GAAAL,sBAAA,CAAAN,mBAAA;EAAA,MACfY,YAAY,GAAAX,gCAAA;EAAA,MAIdY,eAAe,GAAAP,sBAAA,CAAAJ,iBAAA;EAAA,MACbY,4BAA4B,GAAAX,kBAAA;EAAA,MAC5BY,SAAS,GAAAX,wBAAA;EAAA,MACTY,gBAAgB,GAAAX,sBAAA;EAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAZA,MAaqBY,0BAA0B,GAASN,iBAAiB,CAAAO,MAAA;IACxDC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE;IACV,CAAC;IAMD;AACD;AACA;AACA;AACA;AACA;IACQC,IAAI,WAAAC,MAAA,EAAS;MACnBC,qCAAA;;MAEA;MACA,IAAI,CAACC,WAAW,CAAC,KAAK,EAAEV,4BAA4B,CAACW,MAAM,CA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