@sapui5/sap.cux.home 1.136.1 → 1.138.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 (412) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +1 -1
  3. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +0 -3
  4. package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
  5. package/src/sap/cux/home/AdvancedSettingsPanel.js +33 -30
  6. package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
  7. package/src/sap/cux/home/AdvancedSettingsPanel.ts +13 -7
  8. package/src/sap/cux/home/App.d.ts +1 -2
  9. package/src/sap/cux/home/App.d.ts.map +1 -1
  10. package/src/sap/cux/home/App.js +7 -2
  11. package/src/sap/cux/home/App.js.map +1 -1
  12. package/src/sap/cux/home/App.ts +8 -3
  13. package/src/sap/cux/home/AppsAdditionPanel.d.ts +0 -2
  14. package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
  15. package/src/sap/cux/home/AppsAdditionPanel.js +28 -23
  16. package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
  17. package/src/sap/cux/home/AppsAdditionPanel.ts +18 -5
  18. package/src/sap/cux/home/AppsContainer.d.ts +0 -1
  19. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  20. package/src/sap/cux/home/AppsContainer.js +22 -25
  21. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  22. package/src/sap/cux/home/AppsContainer.ts +4 -4
  23. package/src/sap/cux/home/BaseApp.d.ts +2 -2
  24. package/src/sap/cux/home/BaseApp.d.ts.map +1 -1
  25. package/src/sap/cux/home/BaseApp.js +10 -3
  26. package/src/sap/cux/home/BaseApp.js.map +1 -1
  27. package/src/sap/cux/home/BaseApp.ts +11 -4
  28. package/src/sap/cux/home/BaseAppPanel.d.ts +0 -2
  29. package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
  30. package/src/sap/cux/home/BaseAppPanel.js +7 -12
  31. package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
  32. package/src/sap/cux/home/BaseAppPanel.ts +2 -4
  33. package/src/sap/cux/home/BaseAppPersPanel.d.ts +3 -3
  34. package/src/sap/cux/home/BaseAppPersPanel.d.ts.map +1 -1
  35. package/src/sap/cux/home/BaseAppPersPanel.js +17 -13
  36. package/src/sap/cux/home/BaseAppPersPanel.js.map +1 -1
  37. package/src/sap/cux/home/BaseAppPersPanel.ts +18 -11
  38. package/src/sap/cux/home/BaseContainer.d.ts +0 -1
  39. package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
  40. package/src/sap/cux/home/BaseContainer.js +16 -13
  41. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  42. package/src/sap/cux/home/BaseContainer.ts +10 -5
  43. package/src/sap/cux/home/BaseLayout.d.ts +0 -1
  44. package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
  45. package/src/sap/cux/home/BaseLayout.js +6 -13
  46. package/src/sap/cux/home/BaseLayout.js.map +1 -1
  47. package/src/sap/cux/home/BaseLayout.ts +1 -2
  48. package/src/sap/cux/home/BaseNewsItem.d.ts +1 -2
  49. package/src/sap/cux/home/BaseNewsItem.d.ts.map +1 -1
  50. package/src/sap/cux/home/BaseNewsItem.js +7 -2
  51. package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
  52. package/src/sap/cux/home/BaseNewsItem.ts +8 -3
  53. package/src/sap/cux/home/BaseNewsPanel.d.ts +1 -2
  54. package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
  55. package/src/sap/cux/home/BaseNewsPanel.js +7 -2
  56. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  57. package/src/sap/cux/home/BaseNewsPanel.ts +8 -3
  58. package/src/sap/cux/home/BasePagePanel.d.ts +1 -2
  59. package/src/sap/cux/home/BasePagePanel.d.ts.map +1 -1
  60. package/src/sap/cux/home/BasePagePanel.gen.d.ts +34 -0
  61. package/src/sap/cux/home/BasePagePanel.js +16 -2
  62. package/src/sap/cux/home/BasePagePanel.js.map +1 -1
  63. package/src/sap/cux/home/BasePagePanel.ts +17 -3
  64. package/src/sap/cux/home/BasePanel.d.ts +0 -1
  65. package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
  66. package/src/sap/cux/home/BasePanel.js +1 -3
  67. package/src/sap/cux/home/BasePanel.js.map +1 -1
  68. package/src/sap/cux/home/BasePanel.ts +0 -1
  69. package/src/sap/cux/home/BaseSettingsDialog.d.ts +0 -1
  70. package/src/sap/cux/home/BaseSettingsDialog.d.ts.map +1 -1
  71. package/src/sap/cux/home/BaseSettingsDialog.js +0 -1
  72. package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
  73. package/src/sap/cux/home/BaseSettingsDialog.ts +0 -1
  74. package/src/sap/cux/home/BaseSettingsPanel.d.ts +1 -2
  75. package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
  76. package/src/sap/cux/home/BaseSettingsPanel.js +0 -1
  77. package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
  78. package/src/sap/cux/home/BaseSettingsPanel.ts +1 -2
  79. package/src/sap/cux/home/CardsPanel.d.ts +0 -1
  80. package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
  81. package/src/sap/cux/home/CardsPanel.js +103 -104
  82. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  83. package/src/sap/cux/home/CardsPanel.ts +4 -3
  84. package/src/sap/cux/home/ContentAdditionDialog.d.ts +0 -3
  85. package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
  86. package/src/sap/cux/home/ContentAdditionDialog.js +3 -7
  87. package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
  88. package/src/sap/cux/home/ContentAdditionDialog.ts +3 -7
  89. package/src/sap/cux/home/ErrorPanel.d.ts +1 -2
  90. package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
  91. package/src/sap/cux/home/ErrorPanel.gen.d.ts +24 -0
  92. package/src/sap/cux/home/ErrorPanel.js +16 -2
  93. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  94. package/src/sap/cux/home/ErrorPanel.ts +17 -3
  95. package/src/sap/cux/home/FavAppPanel.d.ts +0 -1
  96. package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
  97. package/src/sap/cux/home/FavAppPanel.js +286 -291
  98. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  99. package/src/sap/cux/home/FavAppPanel.ts +23 -18
  100. package/src/sap/cux/home/FrequentAppPanel.d.ts +0 -1
  101. package/src/sap/cux/home/FrequentAppPanel.d.ts.map +1 -1
  102. package/src/sap/cux/home/FrequentAppPanel.js +1 -4
  103. package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
  104. package/src/sap/cux/home/FrequentAppPanel.ts +0 -1
  105. package/src/sap/cux/home/Group.d.ts +2 -2
  106. package/src/sap/cux/home/Group.d.ts.map +1 -1
  107. package/src/sap/cux/home/Group.gen.d.ts +47 -1
  108. package/src/sap/cux/home/Group.js +30 -3
  109. package/src/sap/cux/home/Group.js.map +1 -1
  110. package/src/sap/cux/home/Group.ts +26 -6
  111. package/src/sap/cux/home/IToDoPanel.d.ts +1 -2
  112. package/src/sap/cux/home/IToDoPanel.d.ts.map +1 -1
  113. package/src/sap/cux/home/IToDoPanel.js.map +1 -1
  114. package/src/sap/cux/home/IToDoPanel.ts +1 -2
  115. package/src/sap/cux/home/InsightsAdditionPanel.d.ts +0 -4
  116. package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
  117. package/src/sap/cux/home/InsightsAdditionPanel.js +1 -7
  118. package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
  119. package/src/sap/cux/home/InsightsAdditionPanel.ts +1 -8
  120. package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts +0 -3
  121. package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts.map +1 -1
  122. package/src/sap/cux/home/InsightsCardsSettingsPanel.js +0 -3
  123. package/src/sap/cux/home/InsightsCardsSettingsPanel.js.map +1 -1
  124. package/src/sap/cux/home/InsightsCardsSettingsPanel.ts +0 -3
  125. package/src/sap/cux/home/InsightsContainer.d.ts +1 -1
  126. package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
  127. package/src/sap/cux/home/InsightsContainer.js +19 -3
  128. package/src/sap/cux/home/InsightsContainer.js.map +1 -1
  129. package/src/sap/cux/home/InsightsContainer.ts +17 -4
  130. package/src/sap/cux/home/InsightsTilesSettingsPanel.d.ts +0 -3
  131. package/src/sap/cux/home/InsightsTilesSettingsPanel.d.ts.map +1 -1
  132. package/src/sap/cux/home/InsightsTilesSettingsPanel.js +5 -5
  133. package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
  134. package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +5 -5
  135. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +0 -3
  136. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
  137. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +0 -3
  138. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
  139. package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +0 -3
  140. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts +0 -3
  141. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
  142. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +0 -3
  143. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
  144. package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +0 -3
  145. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts +0 -3
  146. package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
  147. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +22 -13
  148. package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
  149. package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +22 -17
  150. package/src/sap/cux/home/KeyUserPagesSettingsPanel.d.ts +0 -3
  151. package/src/sap/cux/home/KeyUserPagesSettingsPanel.d.ts.map +1 -1
  152. package/src/sap/cux/home/KeyUserPagesSettingsPanel.js +0 -3
  153. package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
  154. package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +0 -3
  155. package/src/sap/cux/home/KeyUserSettingsDialog.d.ts +0 -3
  156. package/src/sap/cux/home/KeyUserSettingsDialog.d.ts.map +1 -1
  157. package/src/sap/cux/home/KeyUserSettingsDialog.js +1 -4
  158. package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
  159. package/src/sap/cux/home/KeyUserSettingsDialog.ts +1 -4
  160. package/src/sap/cux/home/Layout.d.ts +0 -1
  161. package/src/sap/cux/home/Layout.d.ts.map +1 -1
  162. package/src/sap/cux/home/Layout.js +7 -10
  163. package/src/sap/cux/home/Layout.js.map +1 -1
  164. package/src/sap/cux/home/Layout.ts +3 -4
  165. package/src/sap/cux/home/LayoutSettingsPanel.d.ts +0 -3
  166. package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
  167. package/src/sap/cux/home/LayoutSettingsPanel.js +0 -3
  168. package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
  169. package/src/sap/cux/home/LayoutSettingsPanel.ts +0 -3
  170. package/src/sap/cux/home/MenuItem.d.ts +0 -1
  171. package/src/sap/cux/home/MenuItem.d.ts.map +1 -1
  172. package/src/sap/cux/home/MenuItem.js +0 -1
  173. package/src/sap/cux/home/MenuItem.js.map +1 -1
  174. package/src/sap/cux/home/MenuItem.ts +0 -1
  175. package/src/sap/cux/home/NewsAndPagesContainer.d.ts +0 -1
  176. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
  177. package/src/sap/cux/home/NewsAndPagesContainer.js +0 -1
  178. package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
  179. package/src/sap/cux/home/NewsAndPagesContainer.ts +0 -1
  180. package/src/sap/cux/home/NewsGroup.d.ts +0 -3
  181. package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
  182. package/src/sap/cux/home/NewsGroup.js +1 -4
  183. package/src/sap/cux/home/NewsGroup.js.map +1 -1
  184. package/src/sap/cux/home/NewsGroup.ts +1 -4
  185. package/src/sap/cux/home/NewsItem.d.ts +0 -3
  186. package/src/sap/cux/home/NewsItem.d.ts.map +1 -1
  187. package/src/sap/cux/home/NewsItem.js +0 -3
  188. package/src/sap/cux/home/NewsItem.js.map +1 -1
  189. package/src/sap/cux/home/NewsItem.ts +0 -3
  190. package/src/sap/cux/home/NewsPanel.d.ts +0 -1
  191. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  192. package/src/sap/cux/home/NewsPanel.js +84 -96
  193. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  194. package/src/sap/cux/home/NewsPanel.ts +32 -35
  195. package/src/sap/cux/home/NewsSettingsPanel.d.ts +6 -3
  196. package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
  197. package/src/sap/cux/home/NewsSettingsPanel.js +18 -4
  198. package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
  199. package/src/sap/cux/home/NewsSettingsPanel.ts +16 -4
  200. package/src/sap/cux/home/NoDataContainer.d.ts +0 -1
  201. package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
  202. package/src/sap/cux/home/NoDataContainer.js +0 -1
  203. package/src/sap/cux/home/NoDataContainer.js.map +1 -1
  204. package/src/sap/cux/home/NoDataContainer.ts +0 -1
  205. package/src/sap/cux/home/Page.d.ts +0 -3
  206. package/src/sap/cux/home/Page.d.ts.map +1 -1
  207. package/src/sap/cux/home/Page.gen.d.ts +0 -12
  208. package/src/sap/cux/home/Page.js +0 -7
  209. package/src/sap/cux/home/Page.js.map +1 -1
  210. package/src/sap/cux/home/Page.ts +0 -7
  211. package/src/sap/cux/home/PagePanel.d.ts +0 -4
  212. package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
  213. package/src/sap/cux/home/PagePanel.js +5 -11
  214. package/src/sap/cux/home/PagePanel.js.map +1 -1
  215. package/src/sap/cux/home/PagePanel.ts +4 -9
  216. package/src/sap/cux/home/PageSettingsPanel.d.ts +0 -3
  217. package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
  218. package/src/sap/cux/home/PageSettingsPanel.js +3 -5
  219. package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
  220. package/src/sap/cux/home/PageSettingsPanel.ts +3 -5
  221. package/src/sap/cux/home/RecentAppPanel.d.ts +0 -1
  222. package/src/sap/cux/home/RecentAppPanel.d.ts.map +1 -1
  223. package/src/sap/cux/home/RecentAppPanel.js +2 -6
  224. package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
  225. package/src/sap/cux/home/RecentAppPanel.ts +0 -1
  226. package/src/sap/cux/home/RecommendedAppPanel.d.ts +0 -1
  227. package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
  228. package/src/sap/cux/home/RecommendedAppPanel.js +0 -1
  229. package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
  230. package/src/sap/cux/home/RecommendedAppPanel.ts +0 -1
  231. package/src/sap/cux/home/SettingsDialog.d.ts +0 -3
  232. package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
  233. package/src/sap/cux/home/SettingsDialog.js +25 -23
  234. package/src/sap/cux/home/SettingsDialog.js.map +1 -1
  235. package/src/sap/cux/home/SettingsDialog.ts +9 -16
  236. package/src/sap/cux/home/SituationPanel.d.ts +0 -1
  237. package/src/sap/cux/home/SituationPanel.d.ts.map +1 -1
  238. package/src/sap/cux/home/SituationPanel.js +0 -1
  239. package/src/sap/cux/home/SituationPanel.js.map +1 -1
  240. package/src/sap/cux/home/SituationPanel.ts +0 -1
  241. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +207 -0
  242. package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -0
  243. package/src/sap/cux/home/SpaceInsightsPanel.gen.d.ts +200 -0
  244. package/src/sap/cux/home/SpaceInsightsPanel.js +786 -0
  245. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -0
  246. package/src/sap/cux/home/SpaceInsightsPanel.ts +628 -0
  247. package/src/sap/cux/home/SpacePanel.d.ts +117 -0
  248. package/src/sap/cux/home/SpacePanel.d.ts.map +1 -0
  249. package/src/sap/cux/home/SpacePanel.gen.d.ts +77 -0
  250. package/src/sap/cux/home/SpacePanel.js +599 -0
  251. package/src/sap/cux/home/SpacePanel.js.map +1 -0
  252. package/src/sap/cux/home/SpacePanel.ts +461 -0
  253. package/src/sap/cux/home/TaskPanel.d.ts +0 -1
  254. package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
  255. package/src/sap/cux/home/TaskPanel.js +14 -24
  256. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  257. package/src/sap/cux/home/TaskPanel.ts +6 -11
  258. package/src/sap/cux/home/TilesPanel.d.ts +0 -1
  259. package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
  260. package/src/sap/cux/home/TilesPanel.js +4 -5
  261. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  262. package/src/sap/cux/home/TilesPanel.ts +3 -3
  263. package/src/sap/cux/home/ToDoPanel.d.ts +11 -1
  264. package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
  265. package/src/sap/cux/home/ToDoPanel.js +67 -17
  266. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  267. package/src/sap/cux/home/ToDoPanel.ts +70 -13
  268. package/src/sap/cux/home/ToDosContainer.d.ts +0 -1
  269. package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
  270. package/src/sap/cux/home/ToDosContainer.js +0 -1
  271. package/src/sap/cux/home/ToDosContainer.js.map +1 -1
  272. package/src/sap/cux/home/ToDosContainer.ts +0 -1
  273. package/src/sap/cux/home/i18n/messagebundle.properties +8 -6
  274. package/src/sap/cux/home/i18n/messagebundle_ar.properties +55 -9
  275. package/src/sap/cux/home/i18n/messagebundle_bg.properties +55 -9
  276. package/src/sap/cux/home/i18n/messagebundle_ca.properties +55 -9
  277. package/src/sap/cux/home/i18n/messagebundle_cnr.properties +55 -9
  278. package/src/sap/cux/home/i18n/messagebundle_cs.properties +59 -13
  279. package/src/sap/cux/home/i18n/messagebundle_cy.properties +55 -9
  280. package/src/sap/cux/home/i18n/messagebundle_da.properties +55 -9
  281. package/src/sap/cux/home/i18n/messagebundle_de.properties +55 -9
  282. package/src/sap/cux/home/i18n/messagebundle_el.properties +55 -9
  283. package/src/sap/cux/home/i18n/messagebundle_en.properties +55 -9
  284. package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +55 -9
  285. package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +55 -9
  286. package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +46 -6
  287. package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +55 -9
  288. package/src/sap/cux/home/i18n/messagebundle_es.properties +62 -16
  289. package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +55 -9
  290. package/src/sap/cux/home/i18n/messagebundle_et.properties +55 -9
  291. package/src/sap/cux/home/i18n/messagebundle_fi.properties +54 -8
  292. package/src/sap/cux/home/i18n/messagebundle_fr.properties +55 -9
  293. package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +55 -9
  294. package/src/sap/cux/home/i18n/messagebundle_hi.properties +55 -9
  295. package/src/sap/cux/home/i18n/messagebundle_hr.properties +55 -9
  296. package/src/sap/cux/home/i18n/messagebundle_hu.properties +56 -10
  297. package/src/sap/cux/home/i18n/messagebundle_id.properties +55 -9
  298. package/src/sap/cux/home/i18n/messagebundle_it.properties +55 -9
  299. package/src/sap/cux/home/i18n/messagebundle_iw.properties +55 -9
  300. package/src/sap/cux/home/i18n/messagebundle_ja.properties +55 -9
  301. package/src/sap/cux/home/i18n/messagebundle_kk.properties +56 -10
  302. package/src/sap/cux/home/i18n/messagebundle_ko.properties +58 -12
  303. package/src/sap/cux/home/i18n/messagebundle_lt.properties +55 -9
  304. package/src/sap/cux/home/i18n/messagebundle_lv.properties +55 -9
  305. package/src/sap/cux/home/i18n/messagebundle_mk.properties +55 -9
  306. package/src/sap/cux/home/i18n/messagebundle_ms.properties +55 -9
  307. package/src/sap/cux/home/i18n/messagebundle_nl.properties +55 -9
  308. package/src/sap/cux/home/i18n/messagebundle_no.properties +55 -9
  309. package/src/sap/cux/home/i18n/messagebundle_pl.properties +56 -10
  310. package/src/sap/cux/home/i18n/messagebundle_pt.properties +55 -9
  311. package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +55 -9
  312. package/src/sap/cux/home/i18n/messagebundle_ro.properties +55 -9
  313. package/src/sap/cux/home/i18n/messagebundle_ru.properties +55 -9
  314. package/src/sap/cux/home/i18n/messagebundle_sh.properties +55 -9
  315. package/src/sap/cux/home/i18n/messagebundle_sk.properties +55 -9
  316. package/src/sap/cux/home/i18n/messagebundle_sl.properties +55 -9
  317. package/src/sap/cux/home/i18n/messagebundle_sr.properties +55 -9
  318. package/src/sap/cux/home/i18n/messagebundle_sv.properties +55 -9
  319. package/src/sap/cux/home/i18n/messagebundle_th.properties +55 -9
  320. package/src/sap/cux/home/i18n/messagebundle_tr.properties +55 -9
  321. package/src/sap/cux/home/i18n/messagebundle_uk.properties +57 -11
  322. package/src/sap/cux/home/i18n/messagebundle_vi.properties +55 -9
  323. package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +55 -9
  324. package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +56 -10
  325. package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -0
  326. package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
  327. package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
  328. package/src/sap/cux/home/interface/AppsInterface.ts +1 -0
  329. package/src/sap/cux/home/library.d.ts +3 -4
  330. package/src/sap/cux/home/library.d.ts.map +1 -1
  331. package/src/sap/cux/home/library.js +3 -4
  332. package/src/sap/cux/home/library.js.map +1 -1
  333. package/src/sap/cux/home/library.ts +3 -4
  334. package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +1 -1
  335. package/src/sap/cux/home/themes/base/InsightsContainer.less +4 -0
  336. package/src/sap/cux/home/utils/Accessibility.js +3 -4
  337. package/src/sap/cux/home/utils/Accessibility.js.map +1 -1
  338. package/src/sap/cux/home/utils/Accessibility.ts +2 -2
  339. package/src/sap/cux/home/utils/AnalyticalCardSkeleton.d.ts +0 -1
  340. package/src/sap/cux/home/utils/AnalyticalCardSkeleton.d.ts.map +1 -1
  341. package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js +0 -1
  342. package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js.map +1 -1
  343. package/src/sap/cux/home/utils/AnalyticalCardSkeleton.ts +0 -1
  344. package/src/sap/cux/home/utils/AppManager.d.ts +12 -7
  345. package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
  346. package/src/sap/cux/home/utils/AppManager.js +172 -172
  347. package/src/sap/cux/home/utils/AppManager.js.map +1 -1
  348. package/src/sap/cux/home/utils/AppManager.ts +42 -23
  349. package/src/sap/cux/home/utils/BatchHelper.d.ts +0 -3
  350. package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
  351. package/src/sap/cux/home/utils/BatchHelper.js +5 -10
  352. package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
  353. package/src/sap/cux/home/utils/BatchHelper.ts +0 -3
  354. package/src/sap/cux/home/utils/CommonUtils.d.ts +9 -0
  355. package/src/sap/cux/home/utils/CommonUtils.d.ts.map +1 -1
  356. package/src/sap/cux/home/utils/CommonUtils.js +23 -2
  357. package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
  358. package/src/sap/cux/home/utils/CommonUtils.ts +25 -1
  359. package/src/sap/cux/home/utils/Constants.d.ts +4 -5
  360. package/src/sap/cux/home/utils/Constants.d.ts.map +1 -1
  361. package/src/sap/cux/home/utils/Constants.js +5 -5
  362. package/src/sap/cux/home/utils/Constants.js.map +1 -1
  363. package/src/sap/cux/home/utils/Constants.ts +4 -5
  364. package/src/sap/cux/home/utils/DecisionDialog.d.ts +0 -3
  365. package/src/sap/cux/home/utils/DecisionDialog.d.ts.map +1 -1
  366. package/src/sap/cux/home/utils/DecisionDialog.js +0 -3
  367. package/src/sap/cux/home/utils/DecisionDialog.js.map +1 -1
  368. package/src/sap/cux/home/utils/DecisionDialog.ts +0 -3
  369. package/src/sap/cux/home/utils/Device.js +1 -2
  370. package/src/sap/cux/home/utils/Device.js.map +1 -1
  371. package/src/sap/cux/home/utils/FESRUtil.js +1 -1
  372. package/src/sap/cux/home/utils/FESRUtil.js.map +1 -1
  373. package/src/sap/cux/home/utils/FESRUtil.ts +1 -1
  374. package/src/sap/cux/home/utils/FeatureUtils.d.ts +20 -13
  375. package/src/sap/cux/home/utils/FeatureUtils.d.ts.map +1 -1
  376. package/src/sap/cux/home/utils/FeatureUtils.js +38 -33
  377. package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
  378. package/src/sap/cux/home/utils/FeatureUtils.ts +39 -32
  379. package/src/sap/cux/home/utils/HttpHelper.d.ts +7 -3
  380. package/src/sap/cux/home/utils/HttpHelper.d.ts.map +1 -1
  381. package/src/sap/cux/home/utils/HttpHelper.js +43 -3
  382. package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
  383. package/src/sap/cux/home/utils/HttpHelper.ts +25 -3
  384. package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +1 -1
  385. package/src/sap/cux/home/utils/KeyUserPersonalization.js +33 -13
  386. package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +1 -1
  387. package/src/sap/cux/home/utils/KeyUserPersonalization.ts +2 -2
  388. package/src/sap/cux/home/utils/PageManager.d.ts +0 -3
  389. package/src/sap/cux/home/utils/PageManager.d.ts.map +1 -1
  390. package/src/sap/cux/home/utils/PageManager.js +8 -14
  391. package/src/sap/cux/home/utils/PageManager.js.map +1 -1
  392. package/src/sap/cux/home/utils/PageManager.ts +0 -3
  393. package/src/sap/cux/home/utils/PersonalisationUtils.d.ts +0 -3
  394. package/src/sap/cux/home/utils/PersonalisationUtils.d.ts.map +1 -1
  395. package/src/sap/cux/home/utils/PersonalisationUtils.js +1 -5
  396. package/src/sap/cux/home/utils/PersonalisationUtils.js.map +1 -1
  397. package/src/sap/cux/home/utils/PersonalisationUtils.ts +0 -3
  398. package/src/sap/cux/home/utils/SituationUtils.js +1 -2
  399. package/src/sap/cux/home/utils/SituationUtils.js.map +1 -1
  400. package/src/sap/cux/home/utils/TaskUtils.js +1 -2
  401. package/src/sap/cux/home/utils/TaskUtils.js.map +1 -1
  402. package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +0 -3
  403. package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
  404. package/src/sap/cux/home/utils/UshellPersonalizer.js +0 -3
  405. package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
  406. package/src/sap/cux/home/utils/UshellPersonalizer.ts +0 -3
  407. package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +16 -17
  408. package/src/sap/cux/home/utils/CardSkeleton.d.ts +0 -54
  409. package/src/sap/cux/home/utils/CardSkeleton.d.ts.map +0 -1
  410. package/src/sap/cux/home/utils/CardSkeleton.js +0 -61
  411. package/src/sap/cux/home/utils/CardSkeleton.js.map +0 -1
  412. package/src/sap/cux/home/utils/CardSkeleton.ts +0 -53
@@ -8,49 +8,56 @@ import Navigation, { Target } from "sap/ushell/services/Navigation";
8
8
  import { FEATURE_TOGGLE_SRVC_URL, FEATURE_TOGGLES } from "./Constants";
9
9
  import HttpHelper from "./HttpHelper";
10
10
 
11
- interface IFeatureToggles {
12
- TASK_ACTIONS: string;
13
- }
11
+ interface FeatureToggle {
12
+ key: FEATURE_TOGGLES;
13
+ enabled: boolean;
14
+ };
15
+
16
+ interface FeatureToggleResponse {
17
+ value: {
18
+ ToggleId: FEATURE_TOGGLES;
19
+ State: string;
20
+ }[];
21
+ };
22
+
23
+ const featureToggles = new Map<FEATURE_TOGGLES, boolean>();
14
24
 
15
25
  /**
16
- * Checks if feature is enabled or not.
26
+ * Utility to check if a feature toggle is enabled.
17
27
  *
18
- * @param {string} sToggleId - feature toggle id
19
- * @returns {boolean} - returns true if feature is enabled.
28
+ * @param key The key of the feature toggle to check.
29
+ * @returns Promise resolving to `true` if the feature toggle is enabled, `false` otherwise.
20
30
  */
21
- export const isFeatureEnabled = async (sToggleId: string) => {
31
+ export const isFeatureEnabled = async (key: FEATURE_TOGGLES): Promise<boolean> => {
32
+ if (featureToggles.has(key)) {
33
+ return featureToggles.get(key)!;
34
+ }
35
+
22
36
  try {
23
- const aFeatureToggles = await _getFeatureToggles();
24
- const oToggle = aFeatureToggles.find((oFeatureToggle) => {
25
- return oFeatureToggle.ToggleId === sToggleId;
26
- });
27
- return !oToggle || oToggle.State === "" ? false : true;
37
+ const unavailableToggles = Object.values(FEATURE_TOGGLES).filter((toggle) => !featureToggles.has(toggle));
38
+ (await getFeatureToggles(unavailableToggles)).forEach((toggle) => featureToggles.set(toggle.key, toggle.enabled));
28
39
  } catch (error) {
29
- Log.error("Unable to load feature toggles: " + (error as Error).message);
30
- return false;
40
+ Log.error("Error fetching feature toggles", (error as Error).message);
41
+ featureToggles.set(key, false);
31
42
  }
43
+
44
+ return featureToggles.get(key) || false;
32
45
  };
33
46
 
34
47
  /**
35
- * Returns array of all feature toggles
48
+ * Utility to fetch feature toggles from the server.
36
49
  *
37
- * @returns {object[]} - returns array of all feature toggles.
50
+ * @param keys An array of feature toggle keys to fetch.
51
+ * @returns Promise resolving to an array of feature toggles.
38
52
  */
39
- export const _getFeatureToggles = async () => {
40
- let sFeatureToggleUrl = FEATURE_TOGGLE_SRVC_URL + "?$filter=";
41
- const FEATURE_TOGGLE_KEYS = Object.keys(FEATURE_TOGGLES);
42
- const toggleFilter = FEATURE_TOGGLE_KEYS.map((sToggleKey) => {
43
- return "ToggleId eq '" + FEATURE_TOGGLES[sToggleKey as keyof IFeatureToggles] + "'";
44
- }).join(" or ");
45
- sFeatureToggleUrl = sFeatureToggleUrl + "(" + toggleFilter + ")";
46
- const oResponse = (await HttpHelper.GetJSON(sFeatureToggleUrl)) as {
47
- error: { message: string };
48
- value: Array<{ ToggleId: string; State: string }>;
49
- };
50
- if (oResponse?.error) {
51
- throw new Error(oResponse.error.message);
52
- }
53
- return oResponse?.value || [];
53
+ const getFeatureToggles = async (keys: FEATURE_TOGGLES[]): Promise<FeatureToggle[]> => {
54
+ const filterExpression = `?$filter=(ToggleId eq '${keys.join("' or ToggleId eq '")}')`;
55
+ const { value = [] } = await HttpHelper.GetJSON(FEATURE_TOGGLE_SRVC_URL + filterExpression) as FeatureToggleResponse;
56
+
57
+ return keys.map((key) => ({
58
+ key,
59
+ enabled: value.some((toggle) => toggle.ToggleId === key && toggle.State.toUpperCase() === "X")
60
+ }));
54
61
  };
55
62
 
56
63
  /**
@@ -61,7 +68,7 @@ export const _getFeatureToggles = async () => {
61
68
  * @param action Action name for the semantic object.
62
69
  * @returns Promise resolving to `true` if navigation is supported and feature is enabled.
63
70
  */
64
- export const isNavigationSupportedForFeature = async (featureToggle: string, intent: Target): Promise<boolean> => {
71
+ export const isNavigationSupportedForFeature = async (featureToggle: FEATURE_TOGGLES, intent: Target): Promise<boolean> => {
65
72
  try {
66
73
  const isFeatureToggleEnabled = await isFeatureEnabled(featureToggle);
67
74
  if (!isFeatureToggleEnabled) {
@@ -9,10 +9,7 @@ declare module "sap/cux/home/utils/HttpHelper" {
9
9
  * @author SAP SE
10
10
  * @version 0.0.1
11
11
  * @since 1.121.0
12
- *
13
12
  * @private
14
- * @experimental Since 1.121
15
- * @hidden
16
13
  *
17
14
  * @alias sap.cux.home.utils.HttpHelper
18
15
  */
@@ -36,6 +33,13 @@ declare module "sap/cux/home/utils/HttpHelper" {
36
33
  * @returns {Promise<unknown>} Promise that resolves with the JSON data response
37
34
  */
38
35
  static GetJSON(url: string): Promise<unknown>;
36
+ /**
37
+ * Get Method for Multiple Requests
38
+ *
39
+ * @param {string[]} urls - An array of URLs to get from
40
+ * @returns {Promise<(string | object)[]>} Promise that resolves with the responses from the URLs
41
+ */
42
+ static GetMultipleRequests(urls?: string[]): Promise<(string | object)[]>;
39
43
  }
40
44
  }
41
45
  //# sourceMappingURL=HttpHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HttpHelper.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/HttpHelper.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,+BAA+B,CAAC;IAM/C,OAAO,UAAU,MAAM,oBAAoB,CAAC;IAG5C;;;;;;;;;;;;;;;OAeG;IAEH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU;QACjD,OAAO;QAIP;;;WAGG;QACH,OAAO,CAAC,MAAM,CAAC,cAAc;QAmB7B;;;;;WAKG;eACW,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;QAoBlE;;;;WAIG;eACW,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;KASpD;CAEA"}
1
+ {"version":3,"file":"HttpHelper.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/HttpHelper.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,+BAA+B,CAAC;IAM/C,OAAO,UAAU,MAAM,oBAAoB,CAAC;IAG5C;;;;;;;;;;;;OAYG;IAEH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU;QACjD,OAAO;QAIP;;;WAGG;QACH,OAAO,CAAC,MAAM,CAAC,cAAc;QAmB7B;;;;;WAKG;eACW,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;QAoBlE;;;;WAIG;eACW,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;QASpD;;;;;WAKG;eACiB,mBAAmB,CAAC,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;KAmB1F;CAEA"}
@@ -5,6 +5,17 @@
5
5
  sap.ui.define(["sap/base/Log", "sap/ui/base/Object", "./Constants"], function (Log, BaseObject, ___Constants) {
6
6
  "use strict";
7
7
 
8
+ function _catch(body, recover) {
9
+ try {
10
+ var result = body();
11
+ } catch (e) {
12
+ return recover(e);
13
+ }
14
+ if (result && result.then) {
15
+ return result.then(void 0, recover);
16
+ }
17
+ return result;
18
+ }
8
19
  const REPO_BASE_URL = ___Constants["REPO_BASE_URL"];
9
20
  /**
10
21
  *
@@ -15,10 +26,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/base/Object", "./Constants"], function (L
15
26
  * @author SAP SE
16
27
  * @version 0.0.1
17
28
  * @since 1.121.0
18
- *
19
29
  * @private
20
- * @experimental Since 1.121
21
- * @hidden
22
30
  *
23
31
  * @alias sap.cux.home.utils.HttpHelper
24
32
  */
@@ -83,6 +91,38 @@ sap.ui.define(["sap/base/Log", "sap/ui/base/Object", "./Constants"], function (L
83
91
  Log.error(error.message);
84
92
  });
85
93
  }
94
+ /**
95
+ * Get Method for Multiple Requests
96
+ *
97
+ * @param {string[]} urls - An array of URLs to get from
98
+ * @returns {Promise<(string | object)[]>} Promise that resolves with the responses from the URLs
99
+ */
100
+ static GetMultipleRequests(urls = []) {
101
+ try {
102
+ return Promise.resolve(_catch(function () {
103
+ return Promise.resolve(Promise.all(urls.map(function (url) {
104
+ try {
105
+ return Promise.resolve(fetch(url)).then(function (response) {
106
+ if (response.headers.get("Content-Type")?.includes("application/json")) {
107
+ return Promise.resolve(response.json()).then(function (_response$json) {
108
+ return _response$json;
109
+ });
110
+ } else {
111
+ return Promise.resolve(response.text());
112
+ }
113
+ });
114
+ } catch (e) {
115
+ return Promise.reject(e);
116
+ }
117
+ })));
118
+ }, function (error) {
119
+ Log.error(error?.message);
120
+ return [];
121
+ }));
122
+ } catch (e) {
123
+ return Promise.reject(e);
124
+ }
125
+ }
86
126
  }
87
127
  return HttpHelper;
88
128
  });
@@ -1 +1 @@
1
- {"version":3,"file":"HttpHelper.js","names":["sap","ui","define","Log","BaseObject","___Constants","REPO_BASE_URL","HttpHelper","constructor","fetchCSRFToken","fetch","method","headers","then","response","token","get","ok","Error","catch","error","message","Post","url","payload","csrfToken","body","JSON","stringify","json","GetJSON"],"sources":["HttpHelper.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Log from \"sap/base/Log\";\nimport BaseObject from \"sap/ui/base/Object\";\nimport { REPO_BASE_URL } from \"./Constants\";\n\n/**\n *\n * @class Provides the HttpHelper Class used for Get and Post Calls.\n *\n * @extends sap.ui.BaseObject\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @private\n * @experimental Since 1.121\n * @hidden\n *\n * @alias sap.cux.home.utils.HttpHelper\n */\n\nexport default class HttpHelper extends BaseObject {\n\tprivate constructor() {\n\t\tsuper();\n\t}\n\n\t/**\n\t * Fetches the CSRF Token\n\t * @returns {Promise<string | void>} Promise that resolves with the CSRF Token\n\t */\n\tprivate static fetchCSRFToken(): Promise<string | void> {\n\t\treturn fetch(REPO_BASE_URL, {\n\t\t\tmethod: \"HEAD\",\n\t\t\theaders: {\n\t\t\t\t\"X-CSRF-Token\": \"Fetch\"\n\t\t\t}\n\t\t})\n\t\t\t.then((response) => {\n\t\t\t\tconst token = response.headers.get(\"X-CSRF-Token\");\n\t\t\t\tif (response.ok && token) {\n\t\t\t\t\treturn token;\n\t\t\t\t}\n\t\t\t\tthrow new Error(\"Cannot fetch X-CSRF-Token.\");\n\t\t\t})\n\t\t\t.catch((error: Error) => {\n\t\t\t\tLog.error(error.message);\n\t\t\t});\n\t}\n\n\t/**\n\t * Post Method\n\t * @param {string} url - The URL to post to\n\t * @param {object} payload - The payload to post\n\t * @returns {Promise<unknown>} Promise that resolves with the response\n\t */\n\tpublic static Post(url: string, payload: object): Promise<unknown> {\n\t\treturn HttpHelper.fetchCSRFToken()\n\t\t\t.then((csrfToken) => {\n\t\t\t\treturn fetch(url, {\n\t\t\t\t\tmethod: \"POST\",\n\t\t\t\t\theaders: {\n\t\t\t\t\t\t\"X-CSRF-Token\": csrfToken as string,\n\t\t\t\t\t\t\"content-type\": \"application/json\"\n\t\t\t\t\t},\n\t\t\t\t\tbody: JSON.stringify(payload)\n\t\t\t\t});\n\t\t\t})\n\t\t\t.then((response) => {\n\t\t\t\treturn response.json();\n\t\t\t})\n\t\t\t.catch((error: Error) => {\n\t\t\t\tLog.error(error.message);\n\t\t\t});\n\t}\n\n\t/**\n\t * Get Method for JSON Data\n\t * @param {string} url - The URL to get from\n\t * @returns {Promise<unknown>} Promise that resolves with the JSON data response\n\t */\n\tpublic static GetJSON(url: string): Promise<unknown> {\n\t\treturn fetch(url)\n\t\t\t.then((response) => {\n\t\t\t\treturn response.json();\n\t\t\t})\n\t\t\t.catch((error: Error) => {\n\t\t\t\tLog.error(error.message);\n\t\t\t});\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,kEAAAC,GAAA,EAAAC,UAAA,EAAAC,YAAA;EAAA;;EAAA,MAMSC,aAAa,GAAAD,YAAA;EAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAEe,MAAME,UAAU,SAASH,UAAU,CAAC;IAC1CI,WAAWA,CAAA,EAAG;MACrB,KAAK,CAAC,CAAC;IACR;;IAEA;AACD;AACA;AACA;IACC,OAAeC,cAAcA,CAAA,EAA2B;MACvD,OAAOC,KAAK,CAACJ,aAAa,EAAE;QAC3BK,MAAM,EAAE,MAAM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Y,IAAK;QACxBjB,GAAG,CAACiB,KAAK,CAACA,KAAK,CAACC,OAAO,CAAC;MACzB,CAAC,CAAC;IACJ;EACD;EAAC,OAAAd,UAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"HttpHelper.js","names":["sap","ui","define","Log","BaseObject","___Constants","_catch","body","recover","result","e","then","REPO_BASE_URL","HttpHelper","constructor","fetchCSRFToken","fetch","method","headers","response","token","get","ok","Error","catch","error","message","Post","url","payload","csrfToken","JSON","stringify","json","GetJSON","GetMultipleRequests","urls","Promise","resolve","all","map","includes","_response$json","text","reject"],"sources":["HttpHelper.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Log from \"sap/base/Log\";\nimport BaseObject from \"sap/ui/base/Object\";\nimport { REPO_BASE_URL } from \"./Constants\";\n\n/**\n *\n * @class Provides the HttpHelper Class used for Get and Post Calls.\n *\n * @extends sap.ui.BaseObject\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n * @private\n *\n * @alias sap.cux.home.utils.HttpHelper\n */\n\nexport default class HttpHelper extends BaseObject {\n\tprivate constructor() {\n\t\tsuper();\n\t}\n\n\t/**\n\t * Fetches the CSRF Token\n\t * @returns {Promise<string | void>} Promise that resolves with the CSRF Token\n\t */\n\tprivate static fetchCSRFToken(): Promise<string | void> {\n\t\treturn fetch(REPO_BASE_URL, {\n\t\t\tmethod: \"HEAD\",\n\t\t\theaders: {\n\t\t\t\t\"X-CSRF-Token\": \"Fetch\"\n\t\t\t}\n\t\t})\n\t\t\t.then((response) => {\n\t\t\t\tconst token = response.headers.get(\"X-CSRF-Token\");\n\t\t\t\tif (response.ok && token) {\n\t\t\t\t\treturn token;\n\t\t\t\t}\n\t\t\t\tthrow new Error(\"Cannot fetch X-CSRF-Token.\");\n\t\t\t})\n\t\t\t.catch((error: Error) => {\n\t\t\t\tLog.error(error.message);\n\t\t\t});\n\t}\n\n\t/**\n\t * Post Method\n\t * @param {string} url - The URL to post to\n\t * @param {object} payload - The payload to post\n\t * @returns {Promise<unknown>} Promise that resolves with the response\n\t */\n\tpublic static Post(url: string, payload: object): Promise<unknown> {\n\t\treturn HttpHelper.fetchCSRFToken()\n\t\t\t.then((csrfToken) => {\n\t\t\t\treturn fetch(url, {\n\t\t\t\t\tmethod: \"POST\",\n\t\t\t\t\theaders: {\n\t\t\t\t\t\t\"X-CSRF-Token\": csrfToken as string,\n\t\t\t\t\t\t\"content-type\": \"application/json\"\n\t\t\t\t\t},\n\t\t\t\t\tbody: JSON.stringify(payload)\n\t\t\t\t});\n\t\t\t})\n\t\t\t.then((response) => {\n\t\t\t\treturn response.json();\n\t\t\t})\n\t\t\t.catch((error: Error) => {\n\t\t\t\tLog.error(error.message);\n\t\t\t});\n\t}\n\n\t/**\n\t * Get Method for JSON Data\n\t * @param {string} url - The URL to get from\n\t * @returns {Promise<unknown>} Promise that resolves with the JSON data response\n\t */\n\tpublic static GetJSON(url: string): Promise<unknown> {\n\t\treturn fetch(url)\n\t\t\t.then((response) => {\n\t\t\t\treturn response.json();\n\t\t\t})\n\t\t\t.catch((error: Error) => {\n\t\t\t\tLog.error(error.message);\n\t\t\t});\n\t}\n\t/**\n\t * Get Method for Multiple Requests\n\t *\n\t * @param {string[]} urls - An array of URLs to get from\n\t * @returns {Promise<(string | object)[]>} Promise that resolves with the responses from the URLs\n\t */\n\tpublic static async GetMultipleRequests(urls: string[] = []): Promise<(string | object)[]> {\n\t\ttry {\n\t\t\tconst results = await Promise.all(\n\t\t\t\turls.map(async (url) => {\n\t\t\t\t\tconst response = await fetch(url);\n\t\t\t\t\tif (response.headers.get(\"Content-Type\")?.includes(\"application/json\")) {\n\t\t\t\t\t\treturn await response.json() as object;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn await response.text();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t);\n\n\t\t\treturn results;\n\t\t} catch (error: unknown) {\n\t\t\tLog.error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B,IAAA,WAA3BQ,QAAQ;gBAAA,IACVA,QAAQ,CAACD,OAAO,CAACG,GAAG,CAAC,cAAc,CAAC,EAAEoB,QAAQ,CAAC,kBAAkB,CAAC;kBAAA,OAAAJ,OAAA,CAAAC,OAAA,CACxDnB,QAAQ,CAACc,IAAI,CAAC,CAAC,EAAAtB,IAAA,WAAA+B,cAAA;oBAA5B,OAAAA,cAAA;kBAAuC;gBAAA;kBAAA,OAAAL,OAAA,CAAAC,OAAA,CAE1BnB,QAAQ,CAACwB,IAAI,CAAC,CAAC;gBAAA;cAAA;YAE9B,CAAC,QAAAjC,CAAA;cAAA,OAAA2B,OAAA,CAAAO,MAAA,CAAAlC,CAAA;YAAA;UAAA,EACF,CAAC;QAGF,CAAC,YAAQe,KAAc,EAAE;UACxBtB,GAAG,CAACsB,KAAK,CAAEA,KAAK,EAAYC,OAAO,CAAC;UACpC,OAAO,EAAE;QACV,CAAC;MACF,CAAC,QAAAhB,CAAA;QAAA,OAAA2B,OAAA,CAAAO,MAAA,CAAAlC,CAAA;MAAA;IAAA;EACF;EAAC,OAAAG,UAAA;AAAA","ignoreList":[]}
@@ -15,10 +15,7 @@ import { REPO_BASE_URL } from "./Constants";
15
15
  * @author SAP SE
16
16
  * @version 0.0.1
17
17
  * @since 1.121.0
18
- *
19
18
  * @private
20
- * @experimental Since 1.121
21
- * @hidden
22
19
  *
23
20
  * @alias sap.cux.home.utils.HttpHelper
24
21
  */
@@ -91,4 +88,29 @@ export default class HttpHelper extends BaseObject {
91
88
  Log.error(error.message);
92
89
  });
93
90
  }
91
+ /**
92
+ * Get Method for Multiple Requests
93
+ *
94
+ * @param {string[]} urls - An array of URLs to get from
95
+ * @returns {Promise<(string | object)[]>} Promise that resolves with the responses from the URLs
96
+ */
97
+ public static async GetMultipleRequests(urls: string[] = []): Promise<(string | object)[]> {
98
+ try {
99
+ const results = await Promise.all(
100
+ urls.map(async (url) => {
101
+ const response = await fetch(url);
102
+ if (response.headers.get("Content-Type")?.includes("application/json")) {
103
+ return await response.json() as object;
104
+ } else {
105
+ return await response.text();
106
+ }
107
+ })
108
+ );
109
+
110
+ return results;
111
+ } catch (error: unknown) {
112
+ Log.error((error as Error)?.message);
113
+ return [];
114
+ }
115
+ }
94
116
  }
@@ -1 +1 @@
1
- {"version":3,"file":"KeyUserPersonalization.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/KeyUserPersonalization.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,2CAA2C,CAAC;IAC3D;;;OAGG;IAEH,OAAO,cAAc,MAAM,8BAA8B,CAAC;IAE1D,OAAO,UAAU,MAAM,oBAAoB,CAAC;IAI5C,OAAO,WAAW,MAAM,yBAAyB,CAAC;IAMlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;IAE3D,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,UAAU;QAC7D,OAAO,CAAC,SAAS,CAA2B;QAC5C,OAAO,CAAC,UAAU,CAAkB;QACpC,OAAO,CAAC,cAAc,CAAmB;oBAE7B,SAAS,EAAE,WAAW,GAAG,SAAS,EAAE,UAAU,EAAE,cAAc;QAoB7D,gBAAgB,IAAI,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;gBAuB5D,UAAU;KA0BxB;CAEA"}
1
+ {"version":3,"file":"KeyUserPersonalization.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/KeyUserPersonalization.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,2CAA2C,CAAC;IAC3D;;;OAGG;IAEH,OAAO,cAAc,MAAM,8BAA8B,CAAC;IAE1D,OAAO,UAAU,MAAM,oBAAoB,CAAC;IAI5C,OAAO,WAAW,MAAM,yBAAyB,CAAC;IAKlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;IAE3D,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,UAAU;QAC7D,OAAO,CAAC,SAAS,CAA2B;QAC5C,OAAO,CAAC,UAAU,CAAkB;QACpC,OAAO,CAAC,cAAc,CAAmB;oBAE7B,SAAS,EAAE,WAAW,GAAG,SAAS,EAAE,UAAU,EAAE,cAAc;QAoB7D,gBAAgB,IAAI,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;gBAwB5D,UAAU;KA0BxB;CAEA"}
@@ -2,9 +2,26 @@
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/ui/base/Object", "sap/ui/core/Lib", "sap/ui/core/routing/HashChanger", "sap/ui/fl/write/api/FeaturesAPI", "sap/ui/rta/api/startKeyUserAdaptation", "sap/ushell/Container", "sap/ushell/EventHub"], function (Log, BaseObject, Lib, HashChanger, FeaturesAPI, startKeyUserAdaptation, Container, EventHub) {
5
+ sap.ui.define(["sap/base/Log", "sap/ui/base/Object", "sap/ui/core/Lib", "sap/ui/core/routing/HashChanger", "sap/ui/rta/api/startKeyUserAdaptation", "sap/ushell/Container", "sap/ushell/EventHub"], function (Log, BaseObject, Lib, HashChanger, startKeyUserAdaptation, Container, EventHub) {
6
6
  "use strict";
7
7
 
8
+ function __ui5_require_async(path) {
9
+ return new Promise(function (resolve, reject) {
10
+ sap.ui.require([path], function (module) {
11
+ if (!(module && module.__esModule)) {
12
+ module = module === null || !(typeof module === "object" && path.endsWith("/library")) ? {
13
+ default: module
14
+ } : module;
15
+ Object.defineProperty(module, "__esModule", {
16
+ value: true
17
+ });
18
+ }
19
+ resolve(module);
20
+ }, function (err) {
21
+ reject(err);
22
+ });
23
+ });
24
+ }
8
25
  function _catch(body, recover) {
9
26
  try {
10
27
  var result = body();
@@ -41,18 +58,21 @@ sap.ui.define(["sap/base/Log", "sap/ui/base/Object", "sap/ui/core/Lib", "sap/ui/
41
58
  return Promise.resolve(Lib.load({
42
59
  name: "sap.ui.fl"
43
60
  })).then(function () {
44
- return Promise.resolve(FeaturesAPI.isKeyUser()).then(function (isKeyUser) {
45
- let rtaUserActionProperties;
46
- if (isKeyUser) {
47
- rtaUserActionProperties = {
48
- id: `${_this.component?.getId()}-s4MyHomeAdaptUIBtn`,
49
- icon: "sap-icon://wrench",
50
- text: _this.i18nBundle.getText("adaptUIBtn"),
51
- tooltip: _this.i18nBundle.getText("adaptUIBtn"),
52
- press: () => _this.triggerRTA()
53
- };
54
- }
55
- return Promise.resolve(rtaUserActionProperties);
61
+ return Promise.resolve(__ui5_require_async("sap/ui/fl/initial/api/InitialFlexAPI")).then(function (_import) {
62
+ const InitialFlexAPI = _import.default;
63
+ return Promise.resolve(InitialFlexAPI.isKeyUser()).then(function (isKeyUser) {
64
+ let rtaUserActionProperties;
65
+ if (isKeyUser) {
66
+ rtaUserActionProperties = {
67
+ id: `${_this.component?.getId()}-s4MyHomeAdaptUIBtn`,
68
+ icon: "sap-icon://wrench",
69
+ text: _this.i18nBundle.getText("adaptUIBtn"),
70
+ tooltip: _this.i18nBundle.getText("adaptUIBtn"),
71
+ press: () => _this.triggerRTA()
72
+ };
73
+ }
74
+ return Promise.resolve(rtaUserActionProperties);
75
+ });
56
76
  });
57
77
  });
58
78
  }, function (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"KeyUserPersonalization.js","names":["sap","ui","define","Log","BaseObject","Lib","HashChanger","FeaturesAPI","startKeyUserAdaptation","Container","EventHub","_catch","body","recover","result","e","then","KeyUserPersonalization","constructor","component","i18nBundle","on","do","adaptationCustomData","byId","getAggregation","adaptationData","getValue","JSON","parse","setValue","getRTAUserAction","_this","Promise","resolve","load","name","isKeyUser","rtaUserActionProperties","id","getId","icon","text","getText","tooltip","press","triggerRTA","error","Error","message","reject","_this2","_temp","rootControl","catch","getServiceAsync","URLParsingService","hashChangerInstance","getInstance","shellHash","parseShellHash","getHash","hashParams","params","rtaKey","value","Object","prototype","hasOwnProperty","call","replaceHash","constructShellHash","window","location","reload"],"sources":["KeyUserPersonalization.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport ResourceBundle from \"sap/base/i18n/ResourceBundle\";\nimport Log from \"sap/base/Log\";\nimport BaseObject from \"sap/ui/base/Object\";\nimport CustomData from \"sap/ui/core/CustomData\";\nimport Lib from \"sap/ui/core/Lib\";\nimport HashChanger from \"sap/ui/core/routing/HashChanger\";\nimport UIComponent from \"sap/ui/core/UIComponent\";\nimport FeaturesAPI from \"sap/ui/fl/write/api/FeaturesAPI\";\nimport startKeyUserAdaptation from \"sap/ui/rta/api/startKeyUserAdaptation\";\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport URLParsing from \"sap/ushell/services/URLParsing\";\nimport { UserActionProperties } from \"../Layout\";\n\nexport default class KeyUserPersonalization extends BaseObject {\n\tprivate component!: UIComponent | undefined;\n\tprivate i18nBundle!: ResourceBundle;\n\tprivate adaptationData!: object | string;\n\n\tconstructor(component: UIComponent | undefined, i18nBundle: ResourceBundle) {\n\t\tsuper();\n\n\t\tthis.component = component;\n\t\tthis.i18nBundle = i18nBundle;\n\n\t\tEventHub.on(\"keyUserAdaptationDataChange\").do(() => {\n\t\t\tconst adaptationCustomData = this.component?.byId(\"sectionWrapper\")?.getAggregation(\"adaptationData\") as CustomData;\n\t\t\tif (adaptationCustomData) {\n\t\t\t\tthis.adaptationData = adaptationCustomData.getValue() as object | string;\n\n\t\t\t\t// parse adaptation data if string\n\t\t\t\tif (typeof this.adaptationData === \"string\") {\n\t\t\t\t\tthis.adaptationData = JSON.parse(this.adaptationData) as object;\n\t\t\t\t\tadaptationCustomData.setValue(this.adaptationData);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic async getRTAUserAction(): Promise<UserActionProperties | undefined> {\n\t\ttry {\n\t\t\tawait Lib.load({ name: \"sap.ui.fl\" });\n\t\t\tconst isKeyUser = await FeaturesAPI.isKeyUser();\n\t\t\tlet rtaUserActionProperties: UserActionProperties | undefined;\n\n\t\t\tif (isKeyUser) {\n\t\t\t\trtaUserActionProperties = {\n\t\t\t\t\tid: `${this.component?.getId()}-s4MyHomeAdaptUIBtn`,\n\t\t\t\t\ticon: \"sap-icon://wrench\",\n\t\t\t\t\ttext: this.i18nBundle.getText(\"adaptUIBtn\") as string,\n\t\t\t\t\ttooltip: this.i18nBundle.getText(\"adaptUIBtn\") as string,\n\t\t\t\t\tpress: () => this.triggerRTA()\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn Promise.resolve(rtaUserActionProperties);\n\t\t} catch (error: unknown) {\n\t\t\tLog.error(error instanceof Error ? error.message : (error as string));\n\t\t\treturn;\n\t\t}\n\t}\n\n\tprivate async triggerRTA() {\n\t\ttry {\n\t\t\tawait Lib.load({ name: \"sap.ui.fl\" });\n\t\t\tif (this.component) {\n\t\t\t\tstartKeyUserAdaptation({ rootControl: this.component }).catch(async () => {\n\t\t\t\t\tconst URLParsingService = await Container.getServiceAsync<URLParsing>(\"URLParsing\");\n\t\t\t\t\tconst hashChangerInstance = HashChanger.getInstance();\n\t\t\t\t\t//Trigger Manual Reload of Application in case of failure\n\t\t\t\t\tconst shellHash = URLParsingService.parseShellHash(hashChangerInstance.getHash());\n\t\t\t\t\tconst hashParams = (shellHash?.params || {}) as Record<string, unknown>;\n\t\t\t\t\tconst rtaKey = \"sap-ui-fl-max-layer\";\n\t\t\t\t\tconst value = \"CUSTOMER\";\n\n\t\t\t\t\tif (!Object.prototype.hasOwnProperty.call(hashParams, rtaKey)) {\n\t\t\t\t\t\thashParams[rtaKey] = value;\n\t\t\t\t\t\thashChangerInstance.replaceHash(URLParsingService.constructShellHash(shellHash), \"Unknown\");\n\t\t\t\t\t}\n\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t});\n\t\t\t}\n\t\t} catch (error: unknown) {\n\t\t\tLog.error(error instanceof Error ? error.message : (error as string));\n\t\t\treturn;\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;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;QAAA,OAAAkB,OAAA,CAAAiB,MAAA,CAAAnC,CAAA;MAAA;IAAA;EACF;EAAC,OAAAE,sBAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"KeyUserPersonalization.js","names":["sap","ui","define","Log","BaseObject","Lib","HashChanger","startKeyUserAdaptation","Container","EventHub","__ui5_require_async","path","Promise","resolve","reject","require","module","__esModule","endsWith","default","Object","defineProperty","value","err","_catch","body","recover","result","e","then","KeyUserPersonalization","constructor","component","i18nBundle","on","do","adaptationCustomData","byId","getAggregation","adaptationData","getValue","JSON","parse","setValue","getRTAUserAction","_this","load","name","_import","InitialFlexAPI","isKeyUser","rtaUserActionProperties","id","getId","icon","text","getText","tooltip","press","triggerRTA","error","Error","message","_this2","_temp","rootControl","catch","getServiceAsync","URLParsingService","hashChangerInstance","getInstance","shellHash","parseShellHash","getHash","hashParams","params","rtaKey","prototype","hasOwnProperty","call","replaceHash","constructShellHash","window","location","reload"],"sources":["KeyUserPersonalization.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport ResourceBundle from \"sap/base/i18n/ResourceBundle\";\nimport Log from \"sap/base/Log\";\nimport BaseObject from \"sap/ui/base/Object\";\nimport CustomData from \"sap/ui/core/CustomData\";\nimport Lib from \"sap/ui/core/Lib\";\nimport HashChanger from \"sap/ui/core/routing/HashChanger\";\nimport UIComponent from \"sap/ui/core/UIComponent\";\nimport startKeyUserAdaptation from \"sap/ui/rta/api/startKeyUserAdaptation\";\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport URLParsing from \"sap/ushell/services/URLParsing\";\nimport { UserActionProperties } from \"../Layout\";\n\nexport default class KeyUserPersonalization extends BaseObject {\n\tprivate component!: UIComponent | undefined;\n\tprivate i18nBundle!: ResourceBundle;\n\tprivate adaptationData!: object | string;\n\n\tconstructor(component: UIComponent | undefined, i18nBundle: ResourceBundle) {\n\t\tsuper();\n\n\t\tthis.component = component;\n\t\tthis.i18nBundle = i18nBundle;\n\n\t\tEventHub.on(\"keyUserAdaptationDataChange\").do(() => {\n\t\t\tconst adaptationCustomData = this.component?.byId(\"sectionWrapper\")?.getAggregation(\"adaptationData\") as CustomData;\n\t\t\tif (adaptationCustomData) {\n\t\t\t\tthis.adaptationData = adaptationCustomData.getValue() as object | string;\n\n\t\t\t\t// parse adaptation data if string\n\t\t\t\tif (typeof this.adaptationData === \"string\") {\n\t\t\t\t\tthis.adaptationData = JSON.parse(this.adaptationData) as object;\n\t\t\t\t\tadaptationCustomData.setValue(this.adaptationData);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic async getRTAUserAction(): Promise<UserActionProperties | undefined> {\n\t\ttry {\n\t\t\tawait Lib.load({ name: \"sap.ui.fl\" });\n\t\t\tconst InitialFlexAPI = (await import(\"sap/ui/fl/initial/api/InitialFlexAPI\")).default;\n\t\t\tconst isKeyUser = await InitialFlexAPI.isKeyUser();\n\t\t\tlet rtaUserActionProperties: UserActionProperties | undefined;\n\n\t\t\tif (isKeyUser) {\n\t\t\t\trtaUserActionProperties = {\n\t\t\t\t\tid: `${this.component?.getId()}-s4MyHomeAdaptUIBtn`,\n\t\t\t\t\ticon: \"sap-icon://wrench\",\n\t\t\t\t\ttext: this.i18nBundle.getText(\"adaptUIBtn\") as string,\n\t\t\t\t\ttooltip: this.i18nBundle.getText(\"adaptUIBtn\") as string,\n\t\t\t\t\tpress: () => this.triggerRTA()\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn Promise.resolve(rtaUserActionProperties);\n\t\t} catch (error: unknown) {\n\t\t\tLog.error(error instanceof Error ? error.message : (error as string));\n\t\t\treturn;\n\t\t}\n\t}\n\n\tprivate async triggerRTA() {\n\t\ttry {\n\t\t\tawait Lib.load({ name: \"sap.ui.fl\" });\n\t\t\tif (this.component) {\n\t\t\t\tstartKeyUserAdaptation({ rootControl: this.component }).catch(async () => {\n\t\t\t\t\tconst URLParsingService = await Container.getServiceAsync<URLParsing>(\"URLParsing\");\n\t\t\t\t\tconst hashChangerInstance = HashChanger.getInstance();\n\t\t\t\t\t//Trigger Manual Reload of Application in case of failure\n\t\t\t\t\tconst shellHash = URLParsingService.parseShellHash(hashChangerInstance.getHash());\n\t\t\t\t\tconst hashParams = (shellHash?.params || {}) as Record<string, unknown>;\n\t\t\t\t\tconst rtaKey = \"sap-ui-fl-max-layer\";\n\t\t\t\t\tconst value = \"CUSTOMER\";\n\n\t\t\t\t\tif (!Object.prototype.hasOwnProperty.call(hashParams, rtaKey)) {\n\t\t\t\t\t\thashParams[rtaKey] = value;\n\t\t\t\t\t\thashChangerInstance.replaceHash(URLParsingService.constructShellHash(shellHash), \"Unknown\");\n\t\t\t\t\t}\n\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t});\n\t\t\t}\n\t\t} catch (error: unknown) {\n\t\t\tLog.error(error instanceof Error ? error.message : (error as string));\n\t\t\treturn;\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,iMAAAC,GAAA,EAAAC,UAAA,EAAAC,GAAA,EAAAC,WAAA,EAAAC,sBAAA,EAAAC,SAAA,EAAAC,QAAA;EAAA;;EAAA,SAAAC,oBAAAC,IAAA;IAAA,WAAAC,OAAA,WAAAC,OAAA,EAAAC,MAAA;MAAAd,GAAA,CAAAC,EAAA,CAAAc,OAAA,EAAAJ,IAAA,aAAAK,MAAA;QAAA,MAAAA,MAAA,IAAAA,MAAA,CAAAC,UAAA;UAAAD,MAAA,GAAAA,MAAA,sBAAAA,MAAA,iBAAAL,IAAA,CAAAO,QAAA;YAAAC,OAAA,EAAAH;UAAA,IAAAA,MAAA;UAAAI,MAAA,CAAAC,cAAA,CAAAL,MAAA;YAAAM,KAAA;UAAA;QAAA;QAAAT,OAAA,CAAAG,MAAA;MAAA,aAAAO,GAAA;QAAAT,MAAA,CAAAS,GAAA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A;MACF,CAAC,QAAAD,CAAA;QAAA,OAAAhB,OAAA,CAAAE,MAAA,CAAAc,CAAA;MAAA;IAAA;EACF;EAAC,OAAAE,sBAAA;AAAA","ignoreList":[]}
@@ -10,7 +10,6 @@ import CustomData from "sap/ui/core/CustomData";
10
10
  import Lib from "sap/ui/core/Lib";
11
11
  import HashChanger from "sap/ui/core/routing/HashChanger";
12
12
  import UIComponent from "sap/ui/core/UIComponent";
13
- import FeaturesAPI from "sap/ui/fl/write/api/FeaturesAPI";
14
13
  import startKeyUserAdaptation from "sap/ui/rta/api/startKeyUserAdaptation";
15
14
  import Container from "sap/ushell/Container";
16
15
  import EventHub from "sap/ushell/EventHub";
@@ -45,7 +44,8 @@ export default class KeyUserPersonalization extends BaseObject {
45
44
  public async getRTAUserAction(): Promise<UserActionProperties | undefined> {
46
45
  try {
47
46
  await Lib.load({ name: "sap.ui.fl" });
48
- const isKeyUser = await FeaturesAPI.isKeyUser();
47
+ const InitialFlexAPI = (await import("sap/ui/fl/initial/api/InitialFlexAPI")).default;
48
+ const isKeyUser = await InitialFlexAPI.isKeyUser();
49
49
  let rtaUserActionProperties: UserActionProperties | undefined;
50
50
 
51
51
  if (isKeyUser) {
@@ -18,10 +18,7 @@ declare module "sap/cux/home/utils/PageManager" {
18
18
  * @author SAP SE
19
19
  * @version 0.0.1
20
20
  * @since 1.121.0
21
- *
22
21
  * @private
23
- * @experimental Since 1.121
24
- * @hidden
25
22
  *
26
23
  * @alias sap.cux.home.utils.PageManager
27
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PageManager.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/PageManager.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,gCAAgC,CAAC;IAChD;;;OAGG;IAEH,OAAO,UAAU,MAAM,oBAAoB,CAAC;IAC5C,OAAO,SAAS,MAAM,uBAAuB,CAAC;IAK9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;IACpF,OAA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sB;QAMjB,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,sBAAsB,GAAE,OAAe;QA4B7E,gBAAgB,CAAC,YAAY,GAAE,OAAe;gBAevC,YAAY;QAkCb,0BAA0B,CAAC,gBAAgB,CAAC,EAAE,yBAAyB,EAAE;QA2EzE,yBAAyB,CAAC,gBAAgB,CAAC,EAAE,yBAAyB,EAAE;KA+CrF;CAEA"}
@@ -27,10 +27,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
27
27
  * @author SAP SE
28
28
  * @version 0.0.1
29
29
  * @since 1.121.0
30
- *
31
30
  * @private
32
- * @experimental Since 1.121
33
- * @hidden
34
31
  *
35
32
  * @alias sap.cux.home.utils.PageManager
36
33
  */
@@ -69,8 +66,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
69
66
  return Promise.reject(e);
70
67
  }
71
68
  },
72
- fetchAllAvailablePages: function _fetchAllAvailablePages() {
73
- let bFetchDistinctPages = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
69
+ fetchAllAvailablePages: function _fetchAllAvailablePages(bFetchDistinctPages = false) {
74
70
  try {
75
71
  const _this2 = this;
76
72
  if (_this2._aPages) {
@@ -132,8 +128,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
132
128
  this._getIconForPage(oPage);
133
129
  });
134
130
  },
135
- getFavPages: function _getFavPages(aFavPages) {
136
- let bUpdatePersonalisation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
131
+ getFavPages: function _getFavPages(aFavPages, bUpdatePersonalisation = false) {
137
132
  try {
138
133
  const _this4 = this;
139
134
  function _temp4() {
@@ -181,8 +176,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
181
176
  return Promise.reject(e);
182
177
  }
183
178
  },
184
- getFavoritePages: function _getFavoritePages() {
185
- let bForceUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
179
+ getFavoritePages: function _getFavoritePages(bForceUpdate = false) {
186
180
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
187
181
  const bSpaceEnabled = encodeURIComponent(Config.last("/core/spaces/enabled"));
188
182
  if (!bSpaceEnabled) {
@@ -261,7 +255,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
261
255
  applyColorPersonalizations: function _applyColorPersonalizations(personalizations) {
262
256
  try {
263
257
  const _this6 = this;
264
- function _temp10() {
258
+ function _temp0() {
265
259
  return Promise.resolve(_this6.fetchAllAvailableSpaces()).then(function (allSpaces) {
266
260
  personalizations.forEach(personalization => {
267
261
  const isPagePersonalization = !!personalization.pageId;
@@ -334,7 +328,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
334
328
  return Promise.resolve(_this6.getFavoritePages()).then(function () {});
335
329
  }
336
330
  }();
337
- return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9));
331
+ return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(_temp0) : _temp0(_temp9));
338
332
  } catch (e) {
339
333
  return Promise.reject(e);
340
334
  }
@@ -342,7 +336,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
342
336
  applyIconPersonalizations: function _applyIconPersonalizations(personalizations) {
343
337
  try {
344
338
  const _this7 = this;
345
- function _temp12() {
339
+ function _temp10() {
346
340
  return Promise.resolve(_this7.fetchAllAvailableSpaces()).then(function (allSpaces) {
347
341
  personalizations.forEach(personalization => {
348
342
  const isPagePersonalization = !!personalization.pageId;
@@ -385,12 +379,12 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/core/EventBus", "sap/ushell/Config"
385
379
  if (!personalizations?.length) {
386
380
  return Promise.resolve();
387
381
  }
388
- const _temp11 = function () {
382
+ const _temp1 = function () {
389
383
  if (!_this7.aFavPages) {
390
384
  return Promise.resolve(_this7._getFavPages(false)).then(function () {});
391
385
  }
392
386
  }();
393
- return Promise.resolve(_temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11));
387
+ return Promise.resolve(_temp1 && _temp1.then ? _temp1.then(_temp10) : _temp10(_temp1));
394
388
  } catch (e) {
395
389
  return Promise.reject(e);
396
390
  }