@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
@@ -0,0 +1,786 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+ * * (c) Copyright 2009-2025 SAP SE. All rights reserved
4
+ */
5
+ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLayoutData", "sap/m/GenericTile", "sap/m/HeaderContainer", "sap/m/VBox", "sap/m/library", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "sap/ushell/Container", "sap/ushell/api/S4MyHome", "./BasePanel", "./utils/AppManager", "./utils/CommonUtils", "./utils/DataFormatUtils", "./utils/Device", "./utils/InsightsUtils"], function (Log, GridContainer, GridContainerItemLayoutData, GenericTile, HeaderContainer, VBox, sap_m_library, Lib, JSONModel, Container, S4MyHome, __BasePanel, __AppManager, ___utils_CommonUtils, ___utils_DataFormatUtils, ___utils_Device, ___utils_InsightsUtils) {
6
+ "use strict";
7
+
8
+ function _interopRequireDefault(obj) {
9
+ return obj && obj.__esModule && typeof obj.default !== "undefined" ? obj.default : obj;
10
+ }
11
+ function _catch(body, recover) {
12
+ try {
13
+ var result = body();
14
+ } catch (e) {
15
+ return recover(e);
16
+ }
17
+ if (result && result.then) {
18
+ return result.then(void 0, recover);
19
+ }
20
+ return result;
21
+ }
22
+ const LoadState = sap_m_library["LoadState"];
23
+ function _finallyRethrows(body, finalizer) {
24
+ try {
25
+ var result = body();
26
+ } catch (e) {
27
+ return finalizer(true, e);
28
+ }
29
+ if (result && result.then) {
30
+ return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
31
+ }
32
+ return finalizer(false, result);
33
+ }
34
+ const BasePanel = _interopRequireDefault(__BasePanel);
35
+ const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
36
+ function _settle(pact, state, value) {
37
+ if (!pact.s) {
38
+ if (value instanceof _Pact) {
39
+ if (value.s) {
40
+ if (state & 1) {
41
+ state = value.s;
42
+ }
43
+ value = value.v;
44
+ } else {
45
+ value.o = _settle.bind(null, pact, state);
46
+ return;
47
+ }
48
+ }
49
+ if (value && value.then) {
50
+ value.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));
51
+ return;
52
+ }
53
+ pact.s = state;
54
+ pact.v = value;
55
+ const observer = pact.o;
56
+ if (observer) {
57
+ observer(pact);
58
+ }
59
+ }
60
+ }
61
+ const _Pact = /*#__PURE__*/function () {
62
+ function _Pact() {}
63
+ _Pact.prototype.then = function (onFulfilled, onRejected) {
64
+ const result = new _Pact();
65
+ const state = this.s;
66
+ if (state) {
67
+ const callback = state & 1 ? onFulfilled : onRejected;
68
+ if (callback) {
69
+ try {
70
+ _settle(result, 1, callback(this.v));
71
+ } catch (e) {
72
+ _settle(result, 2, e);
73
+ }
74
+ return result;
75
+ } else {
76
+ return this;
77
+ }
78
+ }
79
+ this.o = function (_this) {
80
+ try {
81
+ const value = _this.v;
82
+ if (_this.s & 1) {
83
+ _settle(result, 1, onFulfilled ? onFulfilled(value) : value);
84
+ } else if (onRejected) {
85
+ _settle(result, 1, onRejected(value));
86
+ } else {
87
+ _settle(result, 2, value);
88
+ }
89
+ } catch (e) {
90
+ _settle(result, 2, e);
91
+ }
92
+ };
93
+ return result;
94
+ };
95
+ return _Pact;
96
+ }();
97
+ function _isSettledPact(thenable) {
98
+ return thenable instanceof _Pact && thenable.s & 1;
99
+ }
100
+ function _forTo(array, body, check) {
101
+ var i = -1,
102
+ pact,
103
+ reject;
104
+ function _cycle(result) {
105
+ try {
106
+ while (++i < array.length && (!check || !check())) {
107
+ result = body(i);
108
+ if (result && result.then) {
109
+ if (_isSettledPact(result)) {
110
+ result = result.v;
111
+ } else {
112
+ result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
113
+ return;
114
+ }
115
+ }
116
+ }
117
+ if (pact) {
118
+ _settle(pact, 1, result);
119
+ } else {
120
+ pact = result;
121
+ }
122
+ } catch (e) {
123
+ _settle(pact || (pact = new _Pact()), 2, e);
124
+ }
125
+ }
126
+ _cycle();
127
+ return pact;
128
+ }
129
+ const AppManager = _interopRequireDefault(__AppManager);
130
+ function _forOf(target, body, check) {
131
+ if (typeof target[_iteratorSymbol] === "function") {
132
+ var iterator = target[_iteratorSymbol](),
133
+ step,
134
+ pact,
135
+ reject;
136
+ function _cycle(result) {
137
+ try {
138
+ while (!(step = iterator.next()).done && (!check || !check())) {
139
+ result = body(step.value);
140
+ if (result && result.then) {
141
+ if (_isSettledPact(result)) {
142
+ result = result.v;
143
+ } else {
144
+ result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
145
+ return;
146
+ }
147
+ }
148
+ }
149
+ if (pact) {
150
+ _settle(pact, 1, result);
151
+ } else {
152
+ pact = result;
153
+ }
154
+ } catch (e) {
155
+ _settle(pact || (pact = new _Pact()), 2, e);
156
+ }
157
+ }
158
+ _cycle();
159
+ if (iterator.return) {
160
+ var _fixup = function (value) {
161
+ try {
162
+ if (!step.done) {
163
+ iterator.return();
164
+ }
165
+ } catch (e) {}
166
+ return value;
167
+ };
168
+ if (pact && pact.then) {
169
+ return pact.then(_fixup, function (e) {
170
+ throw _fixup(e);
171
+ });
172
+ }
173
+ _fixup();
174
+ }
175
+ return pact;
176
+ }
177
+ // No support for Symbol.iterator
178
+ if (!("length" in target)) {
179
+ throw new TypeError("Object is not iterable");
180
+ }
181
+ // Handle live collections properly
182
+ var values = [];
183
+ for (var i = 0; i < target.length; i++) {
184
+ values.push(target[i]);
185
+ }
186
+ return _forTo(values, function (i) {
187
+ return body(values[i]);
188
+ }, check);
189
+ }
190
+ const filterVisualizations = ___utils_CommonUtils["filterVisualizations"];
191
+ const getPageManagerInstance = ___utils_CommonUtils["getPageManagerInstance"];
192
+ const recycleId = ___utils_DataFormatUtils["recycleId"];
193
+ const DeviceType = ___utils_Device["DeviceType"];
194
+ const fetchElementProperties = ___utils_Device["fetchElementProperties"];
195
+ const createShowMoreActionButton = ___utils_InsightsUtils["createShowMoreActionButton"];
196
+ const createShowMoreMenuItem = ___utils_InsightsUtils["createShowMoreMenuItem"];
197
+ const getAssociatedFullScreenMenuItem = ___utils_InsightsUtils["getAssociatedFullScreenMenuItem"];
198
+ var tilesMenuItems = /*#__PURE__*/function (tilesMenuItems) {
199
+ tilesMenuItems["REFRESH"] = "tiles-refresh";
200
+ tilesMenuItems["ADD_APPS"] = "tiles-addSmartApps";
201
+ tilesMenuItems["EDIT_TILES"] = "tiles-editTiles";
202
+ return tilesMenuItems;
203
+ }(tilesMenuItems || {});
204
+ var tilesContainerMenuItems = /*#__PURE__*/function (tilesContainerMenuItems) {
205
+ tilesContainerMenuItems["REFRESH"] = "container-tiles-refresh";
206
+ tilesContainerMenuItems["ADD_APPS"] = "container-tiles-addSmartApps";
207
+ tilesContainerMenuItems["EDIT_TILES"] = "container-tiles-editTiles";
208
+ tilesContainerMenuItems["SHOW_MORE"] = "tilesContainerFullScreenMenuItem";
209
+ return tilesContainerMenuItems;
210
+ }(tilesContainerMenuItems || {});
211
+ var tilesActionButtons = /*#__PURE__*/function (tilesActionButtons) {
212
+ tilesActionButtons["ADD_TILES"] = "tiles-addTilesButton";
213
+ return tilesActionButtons;
214
+ }(tilesActionButtons || {});
215
+ var tilesContainerActionButtons = /*#__PURE__*/function (tilesContainerActionButtons) {
216
+ tilesContainerActionButtons["ADD_TILES"] = "container-tiles-addTilesButton";
217
+ tilesContainerActionButtons["SHOW_MORE"] = "tilesContanerFullScreenActionButton";
218
+ return tilesContainerActionButtons;
219
+ }(tilesContainerActionButtons || {});
220
+ var DisplayFormat = /*#__PURE__*/function (DisplayFormat) {
221
+ DisplayFormat["Standard"] = "standard";
222
+ DisplayFormat["StandardWide"] = "standardWide";
223
+ return DisplayFormat;
224
+ }(DisplayFormat || {});
225
+ const StandardTileWidth = 176;
226
+ const StandardWideTileWidth = 368;
227
+ const Gap = 16;
228
+
229
+ /**
230
+ *
231
+ * Tiles Panel class for managing and storing Space Insights Tiles.
232
+ *
233
+ * @extends sap.cux.home.BasePanel
234
+ *
235
+ * @author SAP SE
236
+ * @version 0.0.1
237
+ *
238
+ * @internal
239
+ * @public
240
+ * @ui5-experimental-since 1.138.0
241
+ *
242
+ * @alias sap.cux.home.SpaceInsightsPanel
243
+ */
244
+ const SpaceInsightsPanel = BasePanel.extend("sap.cux.home.SpaceInsightsPanel", {
245
+ metadata: {
246
+ library: "sap.cux.home",
247
+ properties: {
248
+ /**
249
+ * Specifies the space whose apps should be loaded.
250
+ */
251
+ spaceId: {
252
+ type: "string",
253
+ group: "Data",
254
+ defaultValue: ""
255
+ },
256
+ /**
257
+ * Title for the tiles panel
258
+ */
259
+ title: {
260
+ type: "string",
261
+ group: "Misc",
262
+ defaultValue: ""
263
+ },
264
+ /**
265
+ * The name of the URL parameter used to expand the container into full-screen mode.
266
+ */
267
+ fullScreenName: {
268
+ type: "string",
269
+ group: "Misc",
270
+ defaultValue: "SI3",
271
+ visibility: "hidden"
272
+ }
273
+ },
274
+ defaultAggregation: "tiles",
275
+ aggregations: {
276
+ /**
277
+ * Aggregation of tiles available within the tiles Panel
278
+ */
279
+ tiles: {
280
+ type: "sap.cux.home.App",
281
+ multiple: true,
282
+ singularName: "tile",
283
+ visibility: "hidden"
284
+ }
285
+ },
286
+ events: {
287
+ handleHidePanel: {
288
+ parameters: {}
289
+ },
290
+ handleUnhidePanel: {
291
+ parameters: {}
292
+ }
293
+ }
294
+ },
295
+ /**
296
+ * Constructor for a new Tiles Panel.
297
+ *
298
+ * @param {string} [id] ID for the new control, generated automatically if an ID is not provided
299
+ * @param {object} [settings] Initial settings for the new control
300
+ */
301
+ constructor: function _constructor(id, settings) {
302
+ BasePanel.prototype.constructor.call(this, id, settings);
303
+ this._headerVisible = false;
304
+ },
305
+ /**
306
+ * Initializes the Tiles Panel.
307
+ *
308
+ * @private
309
+ * @override
310
+ */
311
+ init: function _init() {
312
+ BasePanel.prototype.init.call(this);
313
+ this._controlMap = new Map();
314
+ //Initialise Tiles Model
315
+ this._oData = {
316
+ tiles: [],
317
+ activateInsightsTiles: true,
318
+ activateInsightsTilesOnPhone: false,
319
+ activateInsightsTilesOnDesktop: false
320
+ };
321
+ this._controlModel = new JSONModel(this._oData);
322
+ this.appManagerInstance = AppManager.getInstance();
323
+ this.pageManager = getPageManagerInstance(this);
324
+ this.setProperty("enableFullScreen", true);
325
+ this._createTilesFlexWrapper();
326
+ Container.getServiceAsync("VisualizationInstantiation").then(VizInstantiationService => {
327
+ this.VizInstantiationService = VizInstantiationService;
328
+ }).catch(error => {
329
+ Log.error(error instanceof Error ? error.message : String(error));
330
+ });
331
+
332
+ // Toggles the activity of tiles
333
+ this._toggleTileActivity();
334
+ },
335
+ setTitle: function _setTitle(title) {
336
+ if (!this.spaceTitle) this.spaceTitle = title;
337
+ return this.setProperty("title", title);
338
+ },
339
+ getTitle: function _getTitle() {
340
+ if (this.spaceTitle) return this.spaceTitle;
341
+ return this.getProperty("title");
342
+ },
343
+ /**
344
+ * Toggles the activity of tiles on route change.
345
+ *
346
+ * @private
347
+ * @returns {void}
348
+ */
349
+ _toggleTileActivity: function _toggleTileActivity() {
350
+ const _this = this;
351
+ const toggleUserActions = function (event) {
352
+ try {
353
+ const show = event.getParameter("isMyHomeRoute");
354
+ _this._controlModel.setProperty("/activateInsightsTiles", show);
355
+ const _temp2 = function () {
356
+ if (show) {
357
+ const _temp = function () {
358
+ if (_this._appSwitched) {
359
+ return Promise.resolve(_this.refreshData(true)).then(function () {
360
+ _this._appSwitched = false;
361
+ });
362
+ }
363
+ }();
364
+ if (_temp && _temp.then) return _temp.then(function () {});
365
+ } else {
366
+ _this._appSwitched = true;
367
+ }
368
+ }();
369
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
370
+ } catch (e) {
371
+ return Promise.reject(e);
372
+ }
373
+ };
374
+ try {
375
+ S4MyHome.attachRouteMatched({}, toggleUserActions, this);
376
+ } catch (error) {
377
+ Log.warning(error instanceof Error ? error.message : String(error));
378
+ }
379
+ },
380
+ /**
381
+ * Displays placeholder tiles while loading.
382
+ *
383
+ * @private
384
+ * @returns {void}
385
+ */
386
+ _showPlaceHolders: function _showPlaceHolders() {
387
+ const placeholderArray = new Array(this._calculatePlaceholderTileCount()).fill(LoadState.Loading);
388
+ this.aInsightsApps = placeholderArray.map((tileState, index) => {
389
+ return new GenericTile(recycleId(`${this.getId()}--placeHolderTile--${index}`), {
390
+ sizeBehavior: "Responsive",
391
+ state: tileState,
392
+ frameType: "OneByOne",
393
+ mode: "IconMode",
394
+ visible: true,
395
+ renderOnThemeChange: true,
396
+ ariaRole: "listitem",
397
+ dropAreaOffset: 8
398
+ }).setLayoutData?.(new GridContainerItemLayoutData(recycleId(`${this.getId()}--placeHolderTileLayoutData--${index}`), {
399
+ columns: 2
400
+ }));
401
+ });
402
+ this._controlModel.setProperty("/tiles", this.aInsightsApps);
403
+ },
404
+ /**
405
+ * Clears the placeholder tiles.
406
+ *
407
+ * @private
408
+ * @returns {void}
409
+ */
410
+ _clearPlaceHolders: function _clearPlaceHolders() {
411
+ this._controlModel.setProperty("/tiles", []);
412
+ },
413
+ /**
414
+ * Renders the panel.
415
+ *
416
+ * @private
417
+ * @returns {Promise<void>} A promise that resolves when the panel is rendered.
418
+ */
419
+ renderPanel: function _renderPanel() {
420
+ try {
421
+ let _exit = false;
422
+ const _this2 = this;
423
+ function _temp4(_result) {
424
+ return _exit ? _result : Promise.resolve();
425
+ }
426
+ const _temp3 = _finallyRethrows(function () {
427
+ return _catch(function () {
428
+ return Promise.resolve(_this2.refreshData()).then(function (_await$_this2$refresh) {
429
+ _exit = true;
430
+ return _await$_this2$refresh;
431
+ });
432
+ }, function (error) {
433
+ _this2.fireHandleHidePanel();
434
+ });
435
+ }, function (_wasThrown, _result) {
436
+ _this2.fireEvent("loaded");
437
+ if (_wasThrown) throw _result;
438
+ return _result;
439
+ });
440
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3));
441
+ } catch (e) {
442
+ return Promise.reject(e);
443
+ }
444
+ },
445
+ fetchDynamicAppInSpace: function _fetchDynamicAppInSpace() {
446
+ try {
447
+ const _this3 = this;
448
+ function _temp8(_this3$pageManager$fe) {
449
+ function _temp7() {
450
+ //Filter out dynamic tiles
451
+ allVisualizations = filterVisualizations(allVisualizations, true);
452
+ return allVisualizations;
453
+ }
454
+ _this3.allSpaces = _this3$pageManager$fe;
455
+ const space = _this3.allSpaces.find(space => space.id === spaceId);
456
+ if (!space || space.children.length === 0) return [];
457
+ let allVisualizations = [];
458
+ const _temp6 = function () {
459
+ if (space && space.children.length > 0) {
460
+ const _temp5 = _forOf(space.children, function (child) {
461
+ return Promise.resolve(_this3.appManagerInstance.fetchFavVizs(true, true, child.id)).then(function (visualizations) {
462
+ allVisualizations.push(...visualizations);
463
+ });
464
+ });
465
+ if (_temp5 && _temp5.then) return _temp5.then(function () {});
466
+ }
467
+ }();
468
+ return _temp6 && _temp6.then ? _temp6.then(_temp7) : _temp7(_temp6);
469
+ }
470
+ const spaceId = _this3.getProperty("spaceId");
471
+ const _this3$allSpaces = _this3.allSpaces;
472
+ return Promise.resolve(_this3$allSpaces ? _temp8(_this3$allSpaces) : Promise.resolve(_this3.pageManager.fetchAllAvailableSpaces()).then(_temp8));
473
+ } catch (e) {
474
+ return Promise.reject(e);
475
+ }
476
+ },
477
+ /**
478
+ * Refreshes the data in the panel.
479
+ *
480
+ * @private
481
+ * @param {boolean} [refreshTiles=false] - Whether to refresh the tiles.
482
+ * @returns {Promise<void>} A promise that resolves when the data is refreshed.
483
+ */
484
+ refreshData: function _refreshData(refreshTiles = false) {
485
+ try {
486
+ const _this4 = this;
487
+ const panelName = _this4.getMetadata().getName();
488
+ return Promise.resolve(_this4.fetchDynamicAppInSpace()).then(function (_this4$fetchDynamicAp) {
489
+ function _temp0() {
490
+ _this4._clearPlaceHolders();
491
+ _this4._controlModel.setProperty("/tiles", _this4.aInsightsApps);
492
+ if (_this4.aInsightsApps?.length) {
493
+ _this4.fireHandleUnhidePanel();
494
+ if (refreshTiles) {
495
+ const isMobile = _this4.getDeviceType() === DeviceType.Mobile;
496
+ const container = isMobile ? _this4.tilesMobileContainer : _this4.tilesContainer;
497
+ const sDefaultAggreName = container.getMetadata().getDefaultAggregationName();
498
+ const dynamicTiles = container.getAggregation(sDefaultAggreName) || [];
499
+ dynamicTiles.forEach(tiles => tiles.refresh?.());
500
+ }
501
+ _this4._getInsightsContainer().updatePanelsItemCount(_this4.aInsightsApps.length, panelName);
502
+ if (_this4._headerVisible) {
503
+ _this4.setProperty("title", `${_this4.spaceTitle} (${_this4.aInsightsApps.length})`);
504
+ }
505
+ } else {
506
+ _this4.fireHandleHidePanel();
507
+ }
508
+ }
509
+ _this4.aInsightsApps = _this4$fetchDynamicAp;
510
+ const bIsSmartBusinessTilePresent = _this4.aInsightsApps.some(oApp => oApp.isSmartBusinessTile);
511
+ const _temp9 = function () {
512
+ if (bIsSmartBusinessTilePresent) {
513
+ return Promise.resolve(Lib.load({
514
+ name: "sap.cloudfnd.smartbusiness.lib.reusetiles"
515
+ })).then(function () {});
516
+ }
517
+ }();
518
+ return _temp9 && _temp9.then ? _temp9.then(_temp0) : _temp0(_temp9);
519
+ });
520
+ } catch (e) {
521
+ return Promise.reject(e);
522
+ }
523
+ },
524
+ /**
525
+ * Generates the wrapper for the tiles container, if it doesn't already exist
526
+ *
527
+ * @private
528
+ * @override
529
+ * @returns {sap.m.VBox} The tiles Vbox wrapper.
530
+ */
531
+ _createTilesFlexWrapper: function _createTilesFlexWrapper() {
532
+ if (!this._tilesWrapper) {
533
+ this._tilesWrapper = new VBox(`${this.getId()}-tilesWrapper`, {
534
+ renderType: "Bare",
535
+ width: "100%",
536
+ items: [this._createMobileFlexWrapper(), this._createWrapperFlexBox()]
537
+ });
538
+ this._showPlaceHolders();
539
+ this._tilesWrapper.setModel(this._controlModel);
540
+ this._addContent(this._tilesWrapper);
541
+ }
542
+ },
543
+ /**
544
+ * Generates wrapper for displaying tiles in mobile mode.
545
+ * @private
546
+ * @returns {sap.m.HeaderContainer} The generated tiles wrapper.
547
+ */
548
+ _createMobileFlexWrapper: function _createMobileFlexWrapper() {
549
+ // Check if the mobile container already exists
550
+ if (!this.tilesMobileContainer) {
551
+ // Create the HeaderContainer with required properties
552
+ this.tilesMobileContainer = new HeaderContainer(`${this.getId()}-insightsTilesMobileContainer`, {
553
+ scrollStep: 0,
554
+ scrollStepByItem: 1,
555
+ gridLayout: true,
556
+ scrollTime: 1000,
557
+ showDividers: false,
558
+ visible: "{/isPhone}"
559
+ }).addStyleClass("sectionMarginTopTilesInsight sapMHeaderContainerAlign sapMHeaderContainerMarginBottom tilesBoxShadow");
560
+
561
+ // Attach aggregation to the container
562
+ this._attachAggregationToContainer(this.tilesMobileContainer);
563
+ }
564
+ // Return the existing or newly created container
565
+ return this.tilesMobileContainer;
566
+ },
567
+ /**
568
+ * Generates app wrapper (GridContainer) for displaying tiles.
569
+ * @private
570
+ * @returns {sap.m.GridContainer} The generated tiles wrapper.
571
+ */
572
+ _createWrapperFlexBox: function _createWrapperFlexBox() {
573
+ // Check if the tilesContainer already exists
574
+ if (!this.tilesContainer) {
575
+ // Create the GridContainer with required properties
576
+ this.tilesContainer = new GridContainer(`${this.getId()}-insightsTilesContainer`, {
577
+ visible: "{= !${/isPhone}}"
578
+ }).addStyleClass("insightTiles sapUiSmallMarginTop sapUiSmallMarginBottom");
579
+ // Attach aggregation to the container
580
+ this._attachAggregationToContainer(this.tilesContainer);
581
+ }
582
+ // Return the existing or newly created container
583
+ return this.tilesContainer;
584
+ },
585
+ /**
586
+ * Updates the activation flags for Insights Tiles based on the device type and viewport.
587
+ *
588
+ *
589
+ * @private
590
+ * @returns {void}
591
+ */
592
+ _updateTilesActivity: function _updateTilesActivity() {
593
+ // Activate Insights Tiles based on container in viewport
594
+ const isPhoneScreen = this.getDeviceType() === DeviceType.Mobile;
595
+ // Explicitly type the property being retrieved
596
+ const bActivateInsightsTiles = Boolean(this._controlModel.getProperty("/activateInsightsTiles"));
597
+ this._controlModel.setProperty("/activateInsightsTilesOnPhone", bActivateInsightsTiles && isPhoneScreen);
598
+ this._controlModel.setProperty("/activateInsightsTilesOnDesktop", bActivateInsightsTiles && !isPhoneScreen);
599
+ },
600
+ /**
601
+ * Attaches necessary aggregations and configurations to the provided container.
602
+ *
603
+ * @private
604
+ * @param {GridContainer | HeaderContainer} tilesContainer - The container to which the aggregation and events are to be attached.
605
+ * @returns {void}
606
+ *
607
+ */
608
+ _attachAggregationToContainer: function _attachAggregationToContainer(tilesContainer) {
609
+ tilesContainer.setModel(this._controlModel);
610
+ const sDefaultAggreName = tilesContainer.getMetadata().getDefaultAggregationName();
611
+ const isPhoneScreen = this.getDeviceType() === DeviceType.Mobile;
612
+ tilesContainer.bindAggregation(sDefaultAggreName, {
613
+ path: "/tiles",
614
+ factory: (id, context) => {
615
+ const oApp = context.getObject();
616
+ if (oApp instanceof GenericTile) {
617
+ return oApp;
618
+ }
619
+ const oVisualization = this.VizInstantiationService.instantiateVisualization(oApp.visualization);
620
+ oVisualization.setLayoutData?.(new GridContainerItemLayoutData(`${this.getId()}-itemLayoutData-${id}`, {
621
+ minRows: 2,
622
+ columns: oVisualization.getDisplayFormat?.() === DisplayFormat.Standard ? 2 : 4
623
+ }));
624
+ oVisualization?.bindProperty?.("active", isPhoneScreen ? "/activateInsightsTilesOnPhone" : "/activateInsightsTilesOnDesktop");
625
+ return oVisualization;
626
+ }
627
+ });
628
+ },
629
+ /**
630
+ * Hides the header of the tiles panel.
631
+ * @private
632
+ */
633
+ handleHideHeader: function _handleHideHeader() {
634
+ this._headerVisible = false;
635
+ this.setProperty("title", "");
636
+ this._toggleHeaderActions(false);
637
+ },
638
+ /**
639
+ * Adds the header to the tiles panel.
640
+ * @private
641
+ */
642
+ handleAddHeader: function _handleAddHeader() {
643
+ this._headerVisible = true;
644
+ this.setProperty("title", `${this.spaceTitle} (${this.aInsightsApps.length})`);
645
+ this._toggleHeaderActions(true);
646
+ },
647
+ /**
648
+ * Calculates the number of visible tiles that can fit within the available width of the parent container.
649
+ *
650
+ * @private
651
+ * @param {ICustomVisualization[]} insightsApps - An array of custom visualizations to be displayed as tiles.
652
+ * @returns {number} - The number of visible tiles.
653
+ */
654
+ _calculateVisibleTileCount: function _calculateVisibleTileCount(insightsApps) {
655
+ const layout = this._getInsightsContainer()?._getLayout();
656
+ const layoutDomRef = layout?.getDomRef();
657
+ const apps = insightsApps || [];
658
+ let count = 0;
659
+ if (layoutDomRef && apps.length) {
660
+ const isHeaderVisible = layout.getProperty("showHeader");
661
+ const sectionNodeIndex = isHeaderVisible ? 1 : 0;
662
+ const sectionDomRef = layoutDomRef.childNodes[sectionNodeIndex];
663
+ const domProperties = fetchElementProperties(sectionDomRef, ["width", "padding-left", "padding-right"]);
664
+ let availableWidth = domProperties.width - domProperties["padding-left"] - domProperties["padding-right"];
665
+ const widthMap = {};
666
+ widthMap[DisplayFormat.Standard] = StandardTileWidth + Gap;
667
+ widthMap[DisplayFormat.StandardWide] = StandardWideTileWidth + Gap;
668
+ let nextTileWidth = widthMap[apps[count].visualization?.displayFormatHint ?? DisplayFormat.Standard];
669
+ do {
670
+ availableWidth -= nextTileWidth;
671
+ ++count;
672
+ nextTileWidth = widthMap[apps[count]?.visualization?.displayFormatHint ?? DisplayFormat.Standard];
673
+ } while (availableWidth > nextTileWidth);
674
+ }
675
+ return count || 1;
676
+ },
677
+ _calculatePlaceholderTileCount: function _calculatePlaceholderTileCount() {
678
+ const layoutDomRef = this._getInsightsContainer()?._getLayout()?.getDomRef();
679
+ let count = 0;
680
+ if (layoutDomRef) {
681
+ const sectionDomRef = layoutDomRef.childNodes[0];
682
+ const domProperties = fetchElementProperties(sectionDomRef, ["width", "padding-left", "padding-right"]);
683
+ let availableWidth = domProperties.width - domProperties["padding-left"] - domProperties["padding-right"];
684
+ const width = StandardTileWidth + Gap;
685
+ count = Math.floor(availableWidth / width);
686
+ }
687
+ return count || 1;
688
+ },
689
+ /**
690
+ * Adjusts the layout of the tiles panel based on the current layout and device type.
691
+ *
692
+ * @private
693
+ * @override
694
+ */
695
+ _adjustLayout: function _adjustLayout() {
696
+ const layout = this._getInsightsContainer()?._getLayout();
697
+ const isMobileDevice = this.getDeviceType() === DeviceType.Mobile;
698
+ if (layout) {
699
+ const visibleTileCount = isMobileDevice ? this.aInsightsApps?.length : this._calculateVisibleTileCount(this.aInsightsApps);
700
+ const isElementExpanded = layout._getCurrentExpandedElementName() === this.getProperty("fullScreenName");
701
+ this._controlModel.setProperty("/tiles", isElementExpanded ? this.aInsightsApps : this.aInsightsApps?.slice(0, visibleTileCount));
702
+ this._controlModel.setProperty("/isPhone", isMobileDevice);
703
+ this._updateTilesActivity();
704
+ //Show/Hide Full Screen Button if panel header is visible otherwise update visibility of container Full Screen Button
705
+ const showFullScreenButton = isElementExpanded || this.aInsightsApps.length > visibleTileCount;
706
+ if (this._headerVisible) {
707
+ if (!isMobileDevice) {
708
+ this.getAggregation("actionButtons")?.forEach(actionButton => {
709
+ if (actionButton.getId().includes(tilesActionButtons.ADD_TILES)) {
710
+ this._getInsightsContainer().toggleActionButton(actionButton, true);
711
+ }
712
+ });
713
+ }
714
+ this._getInsightsContainer()?.toggleFullScreenElements(this, showFullScreenButton);
715
+ } else {
716
+ const fullScreenButton = getAssociatedFullScreenMenuItem(this);
717
+ const fullScreenText = fullScreenButton?.getTitle() ?? "";
718
+ this._getInsightsContainer()?.updateMenuItem(this._controlMap.get(`${this.getId()}-${tilesContainerMenuItems.SHOW_MORE}`), showFullScreenButton, fullScreenText);
719
+ this._getInsightsContainer()?.updateActionButton(this._controlMap.get(`${this.getId()}-${tilesContainerActionButtons.SHOW_MORE}`), showFullScreenButton, fullScreenText);
720
+ }
721
+ }
722
+ },
723
+ /**
724
+ * Retrieves the InsightsContainer instance associated with this TilesPanel.
725
+ *
726
+ * @private
727
+ * @returns {InsightsContainer} The InsightsContainer instance.
728
+ */
729
+ _getInsightsContainer: function _getInsightsContainer() {
730
+ if (!this.insightsContainer) {
731
+ this.insightsContainer = this.getParent();
732
+ }
733
+ return this.insightsContainer;
734
+ },
735
+ /**
736
+ * Retrieves the menu items for the container.
737
+ *
738
+ * @private
739
+ * @returns {MenuItem[]} An array of MenuItem instances.
740
+ */
741
+ getContainerMenuItems: function _getContainerMenuItems() {
742
+ if (!this._containerMenuItems) {
743
+ const containerShowMore = createShowMoreMenuItem(this, tilesContainerMenuItems.SHOW_MORE, "containerTilesShowMore");
744
+ this._controlMap.set(`${this.getId()}-${tilesContainerMenuItems.SHOW_MORE}`, containerShowMore);
745
+ this._containerMenuItems = [containerShowMore];
746
+ }
747
+ return this._containerMenuItems;
748
+ },
749
+ /**
750
+ * Retrieves the action buttons for the container.
751
+ *
752
+ * @private
753
+ * @returns {Button[]} An array of Button instances.
754
+ */
755
+ getContainerActionButtons: function _getContainerActionButtons() {
756
+ if (!this._containerActionButtons) {
757
+ this._containerActionButtons = [];
758
+ const containerFullScreenActionButton = createShowMoreActionButton(this, tilesContainerActionButtons.SHOW_MORE, "containerTilesShowMore");
759
+ if (containerFullScreenActionButton) {
760
+ this._controlMap.set(`${this.getId()}-${tilesContainerActionButtons.SHOW_MORE}`, containerFullScreenActionButton);
761
+ this._containerActionButtons.push(containerFullScreenActionButton);
762
+ }
763
+ }
764
+ return this._containerActionButtons;
765
+ },
766
+ /**
767
+ * Toggles the visibility of the header actions.
768
+ *
769
+ * @param {boolean} bShow - Whether to show or hide the header actions.
770
+ * @private
771
+ */
772
+ _toggleHeaderActions: function _toggleHeaderActions(bShow) {
773
+ this.getAggregation("menuItems")?.forEach(menuItem => {
774
+ this._getInsightsContainer()?.toggleMenuListItem(menuItem, bShow);
775
+ });
776
+ this.getAggregation("actionButtons")?.forEach(actionButton => this._getInsightsContainer()?.toggleActionButton(actionButton, bShow));
777
+ }
778
+ });
779
+ SpaceInsightsPanel.tilesMenuItems = tilesMenuItems;
780
+ SpaceInsightsPanel.tilesContainerMenuItems = tilesContainerMenuItems;
781
+ SpaceInsightsPanel.tilesActionButtons = tilesActionButtons;
782
+ SpaceInsightsPanel.tilesContainerActionButtons = tilesContainerActionButtons;
783
+ SpaceInsightsPanel.DisplayFormat = DisplayFormat;
784
+ return SpaceInsightsPanel;
785
+ });
786
+ //# sourceMappingURL=SpaceInsightsPanel.js.map