@sapui5/sap.ushell 1.131.1 → 1.132.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/package.json +1 -1
  2. package/src/main/js/sap/ushell/.library +37 -1
  3. package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +26 -21
  4. package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
  5. package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
  6. package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
  7. package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
  8. package/src/main/js/sap/ushell/UIActions.js +8 -13
  9. package/src/main/js/sap/ushell/URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
  10. package/src/main/js/sap/ushell/URLTemplateProcessor/DependencyGraph.js +1 -1
  11. package/src/main/js/sap/ushell/URLTemplateProcessor/Functions.js +1 -1
  12. package/src/main/js/sap/ushell/URLTemplateProcessor/Resolvers.js +1 -1
  13. package/src/main/js/sap/ushell/URLTemplateProcessor/TemplateParameterParser.js +1 -1
  14. package/src/main/js/sap/ushell/URLTemplateProcessor/utils.js +1 -1
  15. package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
  16. package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
  17. package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
  18. package/src/main/js/sap/ushell/User.js +74 -48
  19. package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
  20. package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +1 -1
  21. package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
  22. package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +67 -11
  23. package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
  24. package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +1 -1
  25. package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
  26. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
  27. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
  28. package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
  29. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
  30. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
  31. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
  32. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
  33. package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
  34. package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
  35. package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
  36. package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
  37. package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
  38. package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
  39. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
  40. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
  41. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
  42. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
  43. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
  44. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
  45. package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +357 -182
  46. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
  47. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +1 -1
  48. package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
  49. package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +1 -1
  50. package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
  51. package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +1 -1
  52. package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +1 -1
  53. package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +68 -4
  54. package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +1 -1
  55. package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
  56. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
  57. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +1 -1
  58. package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
  59. package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +1 -1
  60. package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -1
  61. package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +1 -1
  62. package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
  63. package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
  64. package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
  65. package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
  66. package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
  67. package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
  68. package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +0 -11
  69. package/src/main/js/sap/ushell/appRuntime/ui5/BusyIndicator.js +21 -27
  70. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en_US_saptrc.properties +5 -5
  71. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en_US_saptrc.properties +2 -2
  72. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
  73. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
  74. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +1 -1
  75. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +4 -12
  76. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +1 -1
  77. package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
  78. package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +1 -1
  79. package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
  80. package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +33 -9
  81. package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
  82. package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
  83. package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
  84. package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
  85. package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
  86. package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
  87. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
  88. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
  89. package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
  90. package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
  91. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
  92. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
  93. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +13 -1
  94. package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
  95. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
  96. package/src/main/js/sap/ushell/appRuntime/ui5/style.css +48 -0
  97. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/LoadingConfiguration.json +4 -0
  98. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +20 -0
  99. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +1 -1
  100. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +10 -4
  101. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
  102. package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +11 -1
  103. package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +1 -2
  104. package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
  105. package/src/main/js/sap/ushell/components/MessagingHelper.js +3 -3
  106. package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
  107. package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +14 -11
  108. package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
  109. package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
  110. package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxesCache.js +32 -51
  111. package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +31 -68
  112. package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +26 -8
  113. package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +40 -32
  114. package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en_US_saptrc.properties +37 -37
  115. package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en_US_saptrc.properties +9 -9
  116. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_US_saptrc.properties +109 -109
  117. package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +2 -1
  118. package/src/main/js/sap/ushell/components/container/resources/resources_en_US_saptrc.properties +6 -6
  119. package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +1 -1
  120. package/src/main/js/sap/ushell/components/contentFinder/Component.js +507 -359
  121. package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +253 -161
  122. package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +30 -39
  123. package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +98 -0
  124. package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +50 -0
  125. package/src/main/js/sap/ushell/components/contentFinder/manifest.json +5 -6
  126. package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +193 -141
  127. package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +14 -30
  128. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ar.properties +6 -2
  129. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_bg.properties +7 -3
  130. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ca.properties +6 -2
  131. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +6 -2
  132. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cs.properties +6 -2
  133. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cy.properties +6 -2
  134. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_da.properties +6 -2
  135. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_de.properties +6 -2
  136. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_el.properties +6 -2
  137. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +6 -2
  138. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_GB.properties +6 -2
  139. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +2 -1
  140. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saptrc.properties +45 -26
  141. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es.properties +6 -2
  142. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es_MX.properties +6 -2
  143. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_et.properties +6 -2
  144. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fi.properties +6 -2
  145. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr.properties +6 -2
  146. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr_CA.properties +6 -2
  147. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hi.properties +6 -2
  148. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hr.properties +8 -4
  149. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hu.properties +6 -2
  150. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_id.properties +6 -2
  151. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_it.properties +6 -2
  152. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_iw.properties +6 -2
  153. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ja.properties +6 -2
  154. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_kk.properties +6 -2
  155. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ko.properties +6 -2
  156. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lt.properties +6 -2
  157. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lv.properties +6 -2
  158. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_mk.properties +6 -2
  159. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ms.properties +6 -2
  160. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_nl.properties +6 -2
  161. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_no.properties +6 -2
  162. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pl.properties +6 -2
  163. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt.properties +6 -2
  164. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt_PT.properties +6 -2
  165. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ro.properties +6 -2
  166. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ru.properties +7 -3
  167. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sh.properties +6 -2
  168. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sk.properties +6 -2
  169. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sl.properties +6 -2
  170. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sr.properties +6 -2
  171. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sv.properties +6 -2
  172. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_th.properties +6 -2
  173. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_tr.properties +6 -2
  174. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_uk.properties +6 -2
  175. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_vi.properties +6 -2
  176. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_CN.properties +6 -2
  177. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_TW.properties +6 -2
  178. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +90 -96
  179. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +58 -38
  180. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTree.fragment.xml +20 -8
  181. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchList.fragment.xml +41 -26
  182. package/src/main/js/sap/ushell/components/contentFinder/view/ContentFinderDialog.view.xml +24 -58
  183. package/src/main/js/sap/ushell/components/contentFinder/view/VisualizationsNoDataIllustratedMessage.fragment.xml +7 -9
  184. package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +5 -5
  185. package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +180 -162
  186. package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +33 -4
  187. package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources.properties +5 -0
  188. package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_en_US_saptrc.properties +3 -0
  189. package/src/main/js/sap/ushell/components/contentFinderStandalone/view/ContentFinderStandalone.view.xml +9 -8
  190. package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
  191. package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
  192. package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +5 -3
  193. package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
  194. package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
  195. package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
  196. package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
  197. package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
  198. package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
  199. package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +49 -16
  200. package/src/main/js/sap/ushell/components/pages/fragment/DialogPageNotExists.fragment.xml +27 -0
  201. package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
  202. package/src/main/js/sap/ushell/components/pages/view/PageRuntime.view.xml +1 -6
  203. package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
  204. package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
  205. package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
  206. package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +1 -0
  207. package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
  208. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
  209. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
  210. package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
  211. package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
  212. package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
  213. package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
  214. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +4 -12
  215. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
  216. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
  217. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
  218. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
  219. package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
  220. package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +4 -1
  221. package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.view.xml +1 -1
  222. package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +16 -0
  223. package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.view.xml +40 -9
  224. package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +57 -0
  225. package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +432 -0
  226. package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +45 -0
  227. package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources.properties +8 -0
  228. package/src/main/js/sap/ushell/components/shell/SideNavigation/view/SideNavigation.view.xml +35 -0
  229. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
  230. package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
  231. package/src/main/js/sap/ushell/components/tiles/applauncher/Configuration.view.xml +1 -1
  232. package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Configuration.view.xml +1 -1
  233. package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
  234. package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
  235. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
  236. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +61 -61
  237. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
  238. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
  239. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
  240. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
  241. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
  242. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
  243. package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +4 -10
  244. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources.properties +6 -0
  245. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saptrc.properties +88 -77
  246. package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +9 -2
  247. package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
  248. package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -1
  249. package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
  250. package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
  251. package/src/main/js/sap/ushell/library.js +7 -2
  252. package/src/main/js/sap/ushell/navigationMode.js +1 -1
  253. package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
  254. package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
  255. package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
  256. package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_en_US_saptrc.properties +8 -8
  257. package/src/main/js/sap/ushell/renderer/Renderer.js +2 -2
  258. package/src/main/js/sap/ushell/renderer/Shell.controller.js +27 -11
  259. package/src/main/js/sap/ushell/renderer/resources/resources.properties +8 -0
  260. package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +8 -8
  261. package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +8 -8
  262. package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +8 -8
  263. package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +8 -8
  264. package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +8 -8
  265. package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +8 -8
  266. package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +8 -8
  267. package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +8 -8
  268. package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +8 -8
  269. package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +8 -8
  270. package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +8 -8
  271. package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +4 -3
  272. package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saptrc.properties +1009 -990
  273. package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +12 -12
  274. package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +8 -8
  275. package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +8 -8
  276. package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +8 -8
  277. package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +8 -8
  278. package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +8 -8
  279. package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +7 -7
  280. package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +29 -29
  281. package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +8 -8
  282. package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +12 -12
  283. package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +8 -8
  284. package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +8 -8
  285. package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +8 -8
  286. package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +8 -8
  287. package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +8 -8
  288. package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +8 -8
  289. package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +8 -8
  290. package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +10 -10
  291. package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +8 -8
  292. package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +8 -8
  293. package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +8 -8
  294. package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +8 -8
  295. package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +8 -8
  296. package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +8 -8
  297. package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +19 -19
  298. package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +8 -8
  299. package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +8 -8
  300. package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +8 -8
  301. package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +8 -8
  302. package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +8 -8
  303. package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +8 -8
  304. package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +16 -16
  305. package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +8 -8
  306. package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +9 -9
  307. package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +9 -9
  308. package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +8 -8
  309. package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +8 -8
  310. package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
  311. package/src/main/js/sap/ushell/services/AppConfiguration.js +12 -4
  312. package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
  313. package/src/main/js/sap/ushell/services/AppState.js +1 -1
  314. package/src/main/js/sap/ushell/services/Bookmark.js +56 -8
  315. package/src/main/js/sap/ushell/services/BookmarkV2.js +180 -171
  316. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +1 -1
  317. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +1 -1
  318. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +1 -1
  319. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +1 -1
  320. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
  321. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
  322. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
  323. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
  324. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
  325. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
  326. package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
  327. package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
  328. package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
  329. package/src/main/js/sap/ushell/services/CommonDataModel.js +156 -137
  330. package/src/main/js/sap/ushell/services/Configuration.js +1 -1
  331. package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
  332. package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
  333. package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
  334. package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
  335. package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
  336. package/src/main/js/sap/ushell/services/Extension.js +1 -1
  337. package/src/main/js/sap/ushell/services/FlpLaunchPage.js +17 -86
  338. package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
  339. package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
  340. package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
  341. package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
  342. package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
  343. package/src/main/js/sap/ushell/services/FrameBoundExtension.js +1 -1
  344. package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
  345. package/src/main/js/sap/ushell/services/Menu.js +18 -1
  346. package/src/main/js/sap/ushell/services/Message.js +1 -1
  347. package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +1 -1
  348. package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
  349. package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
  350. package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
  351. package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
  352. package/src/main/js/sap/ushell/services/Navigation.js +1 -1
  353. package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
  354. package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
  355. package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
  356. package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
  357. package/src/main/js/sap/ushell/services/Pages.js +1 -1
  358. package/src/main/js/sap/ushell/services/Personalization.js +1 -1
  359. package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
  360. package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +1 -1
  361. package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +1 -1
  362. package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +1 -1
  363. package/src/main/js/sap/ushell/services/PluginManager.js +1 -1
  364. package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
  365. package/src/main/js/sap/ushell/services/Search.js +1 -1
  366. package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
  367. package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
  368. package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
  369. package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +3 -5
  370. package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
  371. package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
  372. package/src/main/js/sap/ushell/services/UITracer.js +1 -1
  373. package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
  374. package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
  375. package/src/main/js/sap/ushell/services/Ui5ComponentLoader/utils.js +1 -1
  376. package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
  377. package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
  378. package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
  379. package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
  380. package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +4 -1
  381. package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
  382. package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
  383. package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
  384. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
  385. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
  386. package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
  387. package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
  388. package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
  389. package/src/main/js/sap/ushell/themes/base/Catalog.less +1 -0
  390. package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.json +5 -1
  391. package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.ttf +0 -0
  392. package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff +0 -0
  393. package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff2 +0 -0
  394. package/src/main/js/sap/ushell/themes/sap_belize_base/Catalog.less +1 -0
  395. package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/Catalog.less +1 -0
  396. package/src/main/js/sap/ushell/themes/sap_hcb/base_Catalog.less +1 -0
  397. package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
  398. package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
  399. package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
  400. package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
  401. package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
  402. package/src/main/js/sap/ushell/ui/utils.js +1 -1
  403. package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +1 -1
  404. package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
  405. package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
  406. package/src/main/js/sap/ushell/utils/tilecard/resources/resources_en_US_saptrc.properties +3 -3
  407. package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +8 -7
  408. package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +75 -11
  409. package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +47 -2
  410. package/src/main/js/sap/ushell/utils/workpage/resources/resources.properties +6 -0
  411. package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saptrc.properties +95 -77
  412. package/src/main/js/sap/ushell/utils/workpage/resources/resources_es.properties +5 -5
  413. package/src/main/js/sap/ushell/utils.js +1 -1
  414. package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
  415. package/ui5.yaml +1 -0
  416. package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +0 -62
  417. package/src/main/js/sap/ushell/components/contentFinder/view/WidgetGallery.view.xml +0 -102
  418. package/src/main/js/sap/ushell/components/contentFinderStandalone/manifestAppSearch.json +0 -50
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's bookmark service. Allows creating shortcuts on the user's home page.
5
5
  *
6
- * @version 1.131.1
6
+ * @version 1.132.1
7
7
  */
8
8
  sap.ui.define([
9
9
  "sap/ui/core/EventBus",
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  "sap/base/Log",
15
15
  "sap/ushell/utils",
16
16
  "sap/ushell/Container"
17
- ], function (
17
+ ], (
18
18
  EventBus,
19
19
  Config,
20
20
  ushellLibrary,
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  Log,
24
24
  ushellUtils,
25
25
  Container
26
- ) {
26
+ ) => {
27
27
  "use strict";
28
28
 
29
29
  const sModuleName = "sap.ushell.services.BookmarkV2";
@@ -167,24 +167,23 @@ sap.ui.define([
167
167
  * @since 1.119.0
168
168
  * @private
169
169
  */
170
- this._addBookmarkToContentNodes = function (oBookmarkParams, aContentNodes, bCustom, sContentProviderId) {
171
- const aPromises = aContentNodes.map(function (oContentNode) {
170
+ this._addBookmarkToContentNodes = async function (oBookmarkParams, aContentNodes, bCustom, sContentProviderId) {
171
+ const aPromises = aContentNodes.map(async (oContentNode) => {
172
172
  if (oContentNode && oContentNode.hasOwnProperty("type") && oContentNode.isContainer) {
173
173
  if (oContentNode.type === ContentNodeType.Page) {
174
174
  return this.addBookmarkToPage(oBookmarkParams, oContentNode.id, sContentProviderId);
175
175
  }
176
176
  // deprecated As of version 1.120
177
177
  if (oContentNode.type === ContentNodeType.HomepageGroup) {
178
- return this._getLaunchPageService()
179
- .then((oLaunchPageService) => ushellUtils.promisify(oLaunchPageService.getGroupById(oContentNode.id)))
180
- .then(function (oGroup) {
181
- return this.addBookmarkToHomepageGroup(oBookmarkParams, oGroup, bCustom, sContentProviderId);
182
- }.bind(this));
178
+ const LaunchPage = await this._getLaunchPageService();
179
+ const oGroup = await ushellUtils.promisify(LaunchPage.getGroupById(oContentNode.id));
180
+
181
+ return this.addBookmarkToHomepageGroup(oBookmarkParams, oGroup, bCustom, sContentProviderId);
183
182
  }
184
- return Promise.reject("Bookmark Service: The API needs to be called with a valid content node type. '" + oContentNode.type + "' is not supported.");
183
+ throw new Error(`Bookmark Service: The API needs to be called with a valid content node type. '${ oContentNode.type }' is not supported.`);
185
184
  }
186
- return Promise.reject("Bookmark Service: Not a valid content node.");
187
- }.bind(this));
185
+ throw new Error("Bookmark Service: Not a valid content node.");
186
+ });
188
187
 
189
188
  return Promise.all(aPromises);
190
189
  };
@@ -213,48 +212,46 @@ sap.ui.define([
213
212
  * @since 1.119.0
214
213
  * @public
215
214
  */
216
- this.addBookmark = function (oParameters, vContainer, sContentProviderId) {
215
+ this.addBookmark = async function (oParameters, vContainer, sContentProviderId) {
217
216
  const bEnablePersonalization = Config.last("/core/shell/enablePersonalization");
218
217
  const bEnableSpace = Config.last("/core/spaces/enabled");
219
218
  const bEnableMyHome = Config.last("/core/spaces/myHome/enabled");
220
219
 
221
220
  // Ignore call and do not complain if personalization is disabled
222
221
  if (!bEnablePersonalization && (!bEnableSpace || !bEnableMyHome)) {
223
- return Promise.resolve();
222
+ return;
224
223
  }
225
224
 
226
- return this._checkBookmarkParameters(oParameters)
227
- .then(function () {
228
- // Check if no container was provided and we are in spaces mode.
229
- if (typeof vContainer === "undefined" && bEnableSpace) {
230
- return Container.getServiceAsync("Menu")
231
- .then((oMenuService) => oMenuService.getDefaultSpace())
232
- .then((oDefaultSpace) => {
233
- const oDefaultPage = oDefaultSpace && oDefaultSpace.children && oDefaultSpace.children[0];
234
- return oDefaultPage;
235
- })
236
- .then(function (oContentNode) {
237
- return this._addBookmarkToContentNodes(oParameters, [oContentNode], false, sContentProviderId);
238
- }.bind(this));
239
- }
225
+ try {
226
+ await this._checkBookmarkParameters(oParameters);
240
227
 
241
- /**
242
- * Check if an old Launchpad Group object was provided instead of a content node
243
- * @deprecated As of version 1.120
244
- */
245
- if ((typeof vContainer === "undefined" || !vContainer.hasOwnProperty("type")) && !Array.isArray(vContainer)) {
246
- return this.addBookmarkToHomepageGroup(oParameters, vContainer, false, sContentProviderId);
247
- }
228
+ const oBookmarkConfig = deepClone(oParameters, 20);
229
+ oBookmarkConfig.url = await this._changeUrlStatesToPersistent(oBookmarkConfig.url);
248
230
 
249
- // Make sure we always use an array of content nodes
250
- const aContentNodes = [].concat(vContainer);
231
+ // Check if no container was provided and we are in spaces mode.
232
+ if (typeof vContainer === "undefined" && bEnableSpace) {
233
+ const Menu = await Container.getServiceAsync("Menu");
234
+ const oDefaultSpace = await Menu.getDefaultSpace();
235
+ const oDefaultPage = oDefaultSpace && oDefaultSpace.children && oDefaultSpace.children[0];
236
+ return this._addBookmarkToContentNodes(oBookmarkConfig, [oDefaultPage], false, sContentProviderId);
237
+ }
251
238
 
252
- return this._addBookmarkToContentNodes(oParameters, aContentNodes, false, sContentProviderId);
253
- }.bind(this))
254
- .catch(function (vError) {
255
- Log.error("Error during Bookmark creation: ", vError, sModuleName);
256
- throw vError;
257
- });
239
+ /**
240
+ * Check if an old Launchpad Group object was provided instead of a content node
241
+ * @deprecated As of version 1.120
242
+ */
243
+ if ((typeof vContainer === "undefined" || !vContainer.hasOwnProperty("type")) && !Array.isArray(vContainer)) {
244
+ return this.addBookmarkToHomepageGroup(oBookmarkConfig, vContainer, false, sContentProviderId);
245
+ }
246
+
247
+ // Make sure we always use an array of content nodes
248
+ const aContentNodes = [].concat(vContainer);
249
+
250
+ return this._addBookmarkToContentNodes(oBookmarkConfig, aContentNodes, false, sContentProviderId);
251
+ } catch (vError) {
252
+ Log.error("Error during Bookmark creation: ", vError, sModuleName);
253
+ throw vError;
254
+ }
258
255
  };
259
256
 
260
257
  /**
@@ -308,7 +305,7 @@ sap.ui.define([
308
305
  * @private
309
306
  * @ui5-restricted ssuite.smartbusiness
310
307
  */
311
- this.addCustomBookmark = function (sVizType, oConfig, vContentNodes, sContentProviderId) {
308
+ this.addCustomBookmark = async function (sVizType, oConfig, vContentNodes, sContentProviderId) {
312
309
  const oClonedConfig = deepClone(oConfig);
313
310
  const oBookmarkConfig = deepExtend(oClonedConfig, {
314
311
  vizType: sVizType,
@@ -325,6 +322,8 @@ sap.ui.define([
325
322
  delete oBookmarkConfig.chipConfig;
326
323
  delete oBookmarkConfig.loadManifest;
327
324
 
325
+ oBookmarkConfig.url = await this._changeUrlStatesToPersistent(oBookmarkConfig.url);
326
+
328
327
  // Make sure we always use an array of content nodes
329
328
  const aContentNodes = [].concat(vContentNodes);
330
329
 
@@ -378,7 +377,7 @@ sap.ui.define([
378
377
  this.addBookmarkToHomepageGroup = async function (oParameters, oGroup, bCustom, sContentProviderId) {
379
378
  // Reject if in launchpad spaces mode
380
379
  if (Config.last("/core/spaces/enabled")) {
381
- return Promise.reject("Bookmark Service: The API is not available in spaces mode.");
380
+ throw new Error("Bookmark Service: The API is not available in spaces mode.");
382
381
  }
383
382
 
384
383
  // Delegate to launchpage service and publish event
@@ -416,10 +415,10 @@ sap.ui.define([
416
415
  * @since 1.119.0
417
416
  * @private
418
417
  */
419
- this.addBookmarkToPage = function (oParameters, sPageId, sContentProviderId) {
418
+ this.addBookmarkToPage = async function (oParameters, sPageId, sContentProviderId) {
420
419
  // Reject of in launchpad home page mode
421
420
  if (!Config.last("/core/spaces/enabled")) {
422
- return Promise.reject("Bookmark Service: 'addBookmarkToPage' is not valid in launchpad home page mode, use 'addBookmark' instead.");
421
+ throw new Error("Bookmark Service: 'addBookmarkToPage' is not valid in launchpad home page mode, use 'addBookmark' instead.");
423
422
  }
424
423
 
425
424
  // Reject if personalization is disabled
@@ -427,17 +426,16 @@ sap.ui.define([
427
426
  const bEnableMyHome = Config.last("/core/spaces/myHome/enabled");
428
427
  const sMyHomePageId = Config.last("/core/spaces/myHome/myHomePageId");
429
428
  if (!bEnablePersonalization && (!bEnableMyHome || (bEnableMyHome && sPageId !== sMyHomePageId))) {
430
- return Promise.reject("Bookmark Service: Add bookmark is not allowed as the personalization functionality is not enabled.");
429
+ throw new Error("Bookmark Service: Add bookmark is not allowed as the personalization functionality is not enabled.");
431
430
  }
432
431
 
433
432
  if (oParameters && (typeof oParameters.title !== "string" || typeof oParameters.url !== "string")) {
434
- return Promise.reject("Bookmark Service - Invalid bookmark data.");
433
+ throw new Error("Bookmark Service - Invalid bookmark data.");
435
434
  }
436
435
 
437
436
  // Delegate to pages service
438
- return this._getPagesService().then((oPagesService) => {
439
- return oPagesService.addBookmarkToPage(sPageId, oParameters, undefined, sContentProviderId);
440
- });
437
+ const Pages = await this._getPagesService();
438
+ return Pages.addBookmarkToPage(sPageId, oParameters, undefined, sContentProviderId);
441
439
  };
442
440
 
443
441
  /**
@@ -464,19 +462,18 @@ sap.ui.define([
464
462
  * @deprecated As of version 1.120. Use {@link sap.ushell.services.BookmarkV2.addBookmark} instead.
465
463
  * @private
466
464
  */
467
- this.addBookmarkByGroupId = function (oParameters, groupId, sContentProviderId) {
465
+ this.addBookmarkByGroupId = async function (oParameters, groupId, sContentProviderId) {
468
466
  // Reject if in launchpad spaces mode
469
467
  if (Config.last("/core/spaces/enabled")) {
470
468
  const sError = "Bookmark Service: The API 'addBookmarkByGroupId' is not supported in launchpad spaces mode.";
471
- return Promise.reject(sError);
469
+ throw new Error(sError);
472
470
  }
473
471
 
474
- return this._getLaunchPageService()
475
- .then((oLaunchPageService) => ushellUtils.promisify(oLaunchPageService.getGroups()))
476
- .then(function (aGroups) {
477
- const oGroup = aGroups.find((entry) => entry.id === groupId) || null;
478
- return this.addBookmark(oParameters, oGroup, sContentProviderId);
479
- }.bind(this));
472
+ const LaunchPage = await this._getLaunchPageService();
473
+ const aGroups = await ushellUtils.promisify(LaunchPage.getGroups());
474
+ const oGroup = aGroups.find((entry) => entry.id === groupId) || null;
475
+
476
+ return this.addBookmark(oParameters, oGroup, sContentProviderId);
480
477
  };
481
478
 
482
479
  /**
@@ -492,40 +489,22 @@ sap.ui.define([
492
489
  * @deprecated As of version 1.120. Use {@link sap.ushell.services.BookmarkV2.getContentNodes} instead.
493
490
  * @private
494
491
  */
495
- this.getShellGroupIDs = function (bGetAll) {
492
+ this.getShellGroupIDs = async function (bGetAll) {
496
493
  // Reject if in launchpad spaces mode
497
494
  if (Config.last("/core/spaces/enabled")) {
498
495
  const sError = "Bookmark Service: The API 'getShellGroupIDs' is not supported in launchpad spaces mode.";
499
- return Promise.reject(sError);
496
+ throw new Error(sError);
500
497
  }
501
498
 
502
- return this._getLaunchPageService()
503
- .then((oLaunchPageService) => {
504
- return ushellUtils.promisify(oLaunchPageService.getGroupsForBookmarks(bGetAll))
505
- .then((aGroups) => {
506
- aGroups = aGroups.map((group) => {
507
- return {
508
- id: oLaunchPageService.getGroupId(group.object),
509
- title: group.title
510
- };
511
- });
512
- return aGroups;
513
- });
514
- });
515
- };
516
-
517
- this._isSameCatalogTile = function (sCatalogTileId, oCatalogTile, oLaunchPageService) {
518
- const sIdWithPotentialSuffix = oLaunchPageService.getCatalogTileId(oCatalogTile);
519
-
520
- if (sIdWithPotentialSuffix === undefined) {
521
- // prevent to call undefined.indexOf.
522
- // assumption is that undefined is not a valid ID, so it is not the same tile. Thus false is returned.
523
- return false;
524
- }
525
- // getCatalogTileId appends the system alias of the catalog if present.
526
- // This must be considered when comparing the IDs.
527
- // see BCP 0020751295 0000142292 2017
528
- return sIdWithPotentialSuffix.indexOf(sCatalogTileId) === 0;
499
+ const LaunchPage = await this._getLaunchPageService();
500
+ let aGroups = await ushellUtils.promisify(LaunchPage.getGroupsForBookmarks(bGetAll));
501
+ aGroups = aGroups.map((group) => {
502
+ return {
503
+ id: LaunchPage.getGroupId(group.object),
504
+ title: group.title
505
+ };
506
+ });
507
+ return aGroups;
529
508
  };
530
509
 
531
510
  /**
@@ -537,35 +516,30 @@ sap.ui.define([
537
516
  * @since 1.119.0
538
517
  * @private
539
518
  */
540
- this._checkBookmarkParameters = function (oParameters) {
541
- return Promise.resolve()
542
- .then(function () {
543
- if (!oParameters) {
544
- throw new Error("Invalid Bookmark Data: No bookmark parameters passed.");
545
- }
546
- const oDataSource = oParameters.dataSource;
547
- let sODataVersion;
548
- if (oDataSource) {
549
- if (oDataSource.type !== "OData") {
550
- throw new Error("Invalid Bookmark Data: Unknown data source type: " + oDataSource.type);
551
- }
552
-
553
- sODataVersion = oDataSource.settings && oDataSource.settings.odataVersion;
554
- const aValidODataVersions = ["2.0", "4.0"];
555
- if (!aValidODataVersions.includes(sODataVersion)) {
556
- throw new Error("Invalid Bookmark Data: Unknown OData version in the data source: " + sODataVersion);
557
- }
558
- }
519
+ this._checkBookmarkParameters = async function (oParameters) {
520
+ if (!oParameters) {
521
+ throw new Error("Invalid Bookmark Data: No bookmark parameters passed.");
522
+ }
523
+ const oDataSource = oParameters.dataSource;
524
+ let sODataVersion;
525
+ if (oDataSource) {
526
+ if (oDataSource.type !== "OData") {
527
+ throw new Error(`Invalid Bookmark Data: Unknown data source type: ${oDataSource.type}`);
528
+ }
559
529
 
560
- if (oParameters.serviceUrl) {
561
- return Container.getServiceAsync("ReferenceResolver")
562
- .then((oReferenceResolver) => {
563
- if (oReferenceResolver.hasSemanticDateRanges(oParameters.serviceUrl) && !oDataSource) {
564
- throw new Error("Invalid Bookmark Data: Provide a data source to use semantic date ranges.");
565
- }
566
- });
567
- }
568
- });
530
+ sODataVersion = oDataSource.settings && oDataSource.settings.odataVersion;
531
+ const aValidODataVersions = ["2.0", "4.0"];
532
+ if (!aValidODataVersions.includes(sODataVersion)) {
533
+ throw new Error(`Invalid Bookmark Data: Unknown OData version in the data source: ${sODataVersion}`);
534
+ }
535
+ }
536
+
537
+ if (oParameters.serviceUrl) {
538
+ const ReferenceResolver = await Container.getServiceAsync("ReferenceResolver");
539
+ if (ReferenceResolver.hasSemanticDateRanges(oParameters.serviceUrl) && !oDataSource) {
540
+ throw new Error("Invalid Bookmark Data: Provide a data source to use semantic date ranges.");
541
+ }
542
+ }
569
543
  };
570
544
 
571
545
  /**
@@ -589,17 +563,17 @@ sap.ui.define([
589
563
  * @since 1.119.0
590
564
  * @public
591
565
  */
592
- this.countBookmarks = function (sUrl, sContentProviderId) {
566
+ this.countBookmarks = async function (sUrl, sContentProviderId) {
593
567
  /**
594
568
  * @deprecated As of version 1.120
595
569
  */
596
570
  if (!Config.last("/core/spaces/enabled")) {
597
- return this._getLaunchPageService()
598
- .then((oLaunchPageService) => ushellUtils.promisify(oLaunchPageService.countBookmarks(sUrl, sContentProviderId)));
571
+ const LaunchPage = await this._getLaunchPageService();
572
+ return ushellUtils.promisify(LaunchPage.countBookmarks(sUrl, sContentProviderId));
599
573
  }
600
574
 
601
- return this._getPagesService()
602
- .then((oPagesService) => oPagesService.countBookmarks({ url: sUrl, contentProviderId: sContentProviderId }));
575
+ const Pages = await this._getPagesService();
576
+ return Pages.countBookmarks({ url: sUrl, contentProviderId: sContentProviderId });
603
577
  };
604
578
 
605
579
  /**
@@ -624,19 +598,21 @@ sap.ui.define([
624
598
  * @private
625
599
  * @ui5-restricted ssuite.smartbusiness
626
600
  */
627
- this.countCustomBookmarks = function (oIdentifier) {
601
+ this.countCustomBookmarks = async function (oIdentifier) {
628
602
  if (!oIdentifier || !oIdentifier.url || !oIdentifier.vizType) {
629
- return Promise.reject("countCustomBookmarks: required parameters are missing.");
603
+ throw new Error("countCustomBookmarks: required parameters are missing.");
630
604
  }
631
605
 
632
606
  /**
633
607
  * @deprecated As of version 1.120
634
608
  */
635
609
  if (!Config.last("/core/spaces/enabled")) {
636
- return this._getLaunchPageService().then((LaunchPageService) => LaunchPageService.countCustomBookmarks(oIdentifier));
610
+ const LaunchPage = await this._getLaunchPageService();
611
+ return LaunchPage.countCustomBookmarks(oIdentifier);
637
612
  }
638
613
 
639
- return this._getPagesService().then((oPagesService) => oPagesService.countBookmarks(oIdentifier));
614
+ const Pages = await this._getPagesService();
615
+ return Pages.countBookmarks(oIdentifier);
640
616
  };
641
617
 
642
618
  /**
@@ -657,21 +633,20 @@ sap.ui.define([
657
633
  * @since 1.119.0
658
634
  * @public
659
635
  */
660
- this.deleteBookmarks = function (sUrl, sContentProviderId) {
636
+ this.deleteBookmarks = async function (sUrl, sContentProviderId) {
661
637
  /**
662
638
  * @deprecated As of version 1.120
663
639
  */
664
640
  if (!Config.last("/core/spaces/enabled")) {
665
- return this._getLaunchPageService()
666
- .then((LaunchPageService) => ushellUtils.promisify(LaunchPageService.deleteBookmarks(sUrl, sContentProviderId)))
667
- .then((oResult) => {
668
- EventBus.getInstance().publish("sap.ushell.services.Bookmark", "bookmarkTileDeleted", sUrl);
669
- return oResult;
670
- });
641
+ const LaunchPage = await this._getLaunchPageService();
642
+ const oResult = await ushellUtils.promisify(LaunchPage.deleteBookmarks(sUrl, sContentProviderId));
643
+ EventBus.getInstance().publish("sap.ushell.services.Bookmark", "bookmarkTileDeleted", sUrl);
644
+
645
+ return oResult;
671
646
  }
672
647
 
673
- return this._getPagesService()
674
- .then((oPagesService) => oPagesService.deleteBookmarks({ url: sUrl, contentProviderId: sContentProviderId }));
648
+ const Pages = await this._getPagesService();
649
+ return Pages.deleteBookmarks({ url: sUrl, contentProviderId: sContentProviderId });
675
650
  };
676
651
 
677
652
  /**
@@ -696,23 +671,24 @@ sap.ui.define([
696
671
  * @private
697
672
  * @ui5-restricted ssuite.smartbusiness
698
673
  */
699
- this.deleteCustomBookmarks = function (oIdentifier) {
674
+ this.deleteCustomBookmarks = async function (oIdentifier) {
700
675
  if (!oIdentifier || !oIdentifier.url || !oIdentifier.vizType) {
701
- return Promise.reject("deleteCustomBookmarks: Some required parameters are missing.");
676
+ throw new Error("deleteCustomBookmarks: Some required parameters are missing.");
702
677
  }
703
678
 
704
679
  /**
705
680
  * @deprecated As of version 1.120
706
681
  */
707
682
  if (!Config.last("/core/spaces/enabled")) {
708
- return this._getLaunchPageService()
709
- .then((oLaunchPageService) => oLaunchPageService.deleteCustomBookmarks(oIdentifier))
710
- .then(() => {
711
- EventBus.getInstance().publish("sap.ushell.services.Bookmark", "bookmarkTileDeleted", oIdentifier.url);
712
- });
683
+ const LaunchPage = await this._getLaunchPageService();
684
+ await LaunchPage.deleteCustomBookmarks(oIdentifier);
685
+
686
+ EventBus.getInstance().publish("sap.ushell.services.Bookmark", "bookmarkTileDeleted", oIdentifier.url);
687
+ return;
713
688
  }
714
689
 
715
- return this._getPagesService().then((oPagesService) => oPagesService.deleteBookmarks(oIdentifier));
690
+ const Pages = await this._getPagesService();
691
+ return Pages.deleteBookmarks(oIdentifier);
716
692
  };
717
693
 
718
694
  /**
@@ -743,17 +719,20 @@ sap.ui.define([
743
719
  * @since 1.119.0
744
720
  * @public
745
721
  */
746
- this.updateBookmarks = function (sUrl, oParameters, sContentProviderId) {
722
+ this.updateBookmarks = async function (sUrl, oParameters, sContentProviderId) {
723
+ const oBookmarkConfig = deepClone(oParameters, 20);
724
+ oBookmarkConfig.url = await this._changeUrlStatesToPersistent(oBookmarkConfig.url);
725
+
747
726
  /**
748
727
  * @deprecated As of version 1.120
749
728
  */
750
729
  if (!Config.last("/core/spaces/enabled")) {
751
- return this._getLaunchPageService().then((LaunchPageService) => {
752
- return ushellUtils.promisify(LaunchPageService.updateBookmarks(sUrl, oParameters, sContentProviderId));
753
- });
730
+ const LaunchPage = await this._getLaunchPageService();
731
+ return ushellUtils.promisify(LaunchPage.updateBookmarks(sUrl, oBookmarkConfig, sContentProviderId));
754
732
  }
755
- return this._getPagesService()
756
- .then((oPagesService) => oPagesService.updateBookmarks({ url: sUrl, contentProviderId: sContentProviderId }, oParameters));
733
+
734
+ const Pages = await this._getPagesService();
735
+ return Pages.updateBookmarks({ url: sUrl, contentProviderId: sContentProviderId }, oBookmarkConfig);
757
736
  };
758
737
 
759
738
  /**
@@ -810,9 +789,9 @@ sap.ui.define([
810
789
  * @private
811
790
  * @ui5-restricted ssuite.smartbusiness
812
791
  */
813
- this.updateCustomBookmarks = function (oIdentifier, oConfig) {
792
+ this.updateCustomBookmarks = async function (oIdentifier, oConfig) {
814
793
  if (!oIdentifier || !oIdentifier.url || !oIdentifier.vizType) {
815
- return Promise.reject("deleteCustomBookmarks: Some required parameters are missing.");
794
+ throw new Error("deleteCustomBookmarks: Some required parameters are missing.");
816
795
  }
817
796
 
818
797
  const oBookmarkConfig = deepExtend({}, oConfig, {
@@ -829,16 +808,18 @@ sap.ui.define([
829
808
  delete oBookmarkConfig.chipConfig;
830
809
  delete oBookmarkConfig.loadManifest;
831
810
 
811
+ oBookmarkConfig.url = await this._changeUrlStatesToPersistent(oBookmarkConfig.url);
812
+
832
813
  /**
833
814
  * @deprecated As of version 1.120
834
815
  */
835
816
  if (!Config.last("/core/spaces/enabled")) {
836
- return this._getLaunchPageService()
837
- .then((oLaunchPageService) => oLaunchPageService.updateCustomBookmarks(oIdentifier, oBookmarkConfig));
817
+ const LaunchPage = await this._getLaunchPageService();
818
+ return LaunchPage.updateCustomBookmarks(oIdentifier, oBookmarkConfig);
838
819
  }
839
820
 
840
- return this._getPagesService()
841
- .then((oPagesService) => oPagesService.updateBookmarks(oIdentifier, oBookmarkConfig));
821
+ const Pages = await this._getPagesService();
822
+ return Pages.updateBookmarks(oIdentifier, oBookmarkConfig);
842
823
  };
843
824
 
844
825
  /**
@@ -861,33 +842,61 @@ sap.ui.define([
861
842
  * @public
862
843
  * @since 1.119.0
863
844
  */
864
- this.getContentNodes = function () {
845
+ this.getContentNodes = async function () {
865
846
  /**
866
847
  * @deprecated As of version 1.120
867
848
  */
868
849
  if (!Config.last("/core/spaces/enabled")) {
869
850
  // Classic home page
870
- return this._getLaunchPageService().then((oLaunchPageService) => {
871
- return ushellUtils.promisify(oLaunchPageService.getGroupsForBookmarks())
872
- .then((aHomepageGroups) => {
873
- const aResults = aHomepageGroups.map((oBookmarkGroup) => {
874
- return {
875
- id: oLaunchPageService.getGroupId(oBookmarkGroup.object),
876
- label: oBookmarkGroup.title,
877
- type: ContentNodeType.HomepageGroup,
878
- isContainer: true
879
- };
880
- });
881
- return aResults;
882
- });
851
+ const LaunchPage = await this._getLaunchPageService();
852
+ const aHomepageGroups = await ushellUtils.promisify(LaunchPage.getGroupsForBookmarks());
853
+
854
+ const aResults = aHomepageGroups.map((oBookmarkGroup) => {
855
+ return {
856
+ id: LaunchPage.getGroupId(oBookmarkGroup.object),
857
+ label: oBookmarkGroup.title,
858
+ type: ContentNodeType.HomepageGroup,
859
+ isContainer: true
860
+ };
883
861
  });
862
+ return aResults;
884
863
  }
885
864
 
886
865
  // Spaces mode
887
- return Container.getServiceAsync("Menu").then((oMenuService) => oMenuService.getContentNodes());
866
+ const Menu = await Container.getServiceAsync("Menu");
867
+ return Menu.getContentNodes();
868
+ };
869
+
870
+ /**
871
+ * If the bookmark created contains state keys, change their state
872
+ * to be persistent (originally, a cFLP requirement).
873
+ * In case of an error, the function reports it but it will not stop
874
+ * the creation of the bookmark.
875
+ *
876
+ * @param {string} sUrl The URL of the bookmark.
877
+ * @returns {Promise<string>} The URL with the changed states
878
+ * @since 1.133
879
+ * @private
880
+ */
881
+ this._changeUrlStatesToPersistent = async function (sUrl) {
882
+ const AppState = await Container.getServiceAsync("AppState");
883
+
884
+ const bAppStateConfigPersistent = AppState.getPersistentWhenShared();
885
+ // gate keeper - if the platform did not implement yet the new persistency mechanism
886
+ // with different persistency method types, no action should be taken
887
+ if (AppState.getSupportedPersistencyMethods().length === 0 && bAppStateConfigPersistent !== true) {
888
+ return sUrl;
889
+ }
890
+
891
+ if (!sUrl || typeof sUrl !== "string") {
892
+ return sUrl;
893
+ }
894
+
895
+ return ushellUtils.promisify(AppState.setAppStateToPublic(sUrl));
888
896
  };
889
897
  }
890
898
 
899
+
891
900
  BookmarkV2.hasNoAdapter = true;
892
901
  return BookmarkV2;
893
902
  }, true /* bExport */);
@@ -13,7 +13,7 @@
13
13
  * <p>This is a dependency of ClientSideTargetResolution. Interfaces exposed
14
14
  * by this module may change at any time without notice.</p>
15
15
  *
16
- * @version 1.131.1
16
+ * @version 1.132.1
17
17
  */
18
18
  sap.ui.define([
19
19
  ], function () {
@@ -27,7 +27,7 @@
27
27
  *
28
28
  * @private
29
29
  *
30
- * @version 1.131.1
30
+ * @version 1.132.1
31
31
  */
32
32
  sap.ui.define([
33
33
  "sap/base/util/ObjectPath",
@@ -34,7 +34,7 @@
34
34
  * <p>This is a dependency of ClientSideTargetResolution. Interfaces exposed
35
35
  * by this module may change at any time without notice.</p>
36
36
  *
37
- * @version 1.131.1
37
+ * @version 1.132.1
38
38
  */
39
39
  sap.ui.define([
40
40
  "sap/ushell/services/ClientSideTargetResolution/VirtualInbounds",
@@ -4,7 +4,7 @@
4
4
  * @file PrelaunchOperations are executed just before launching the application (post parameter mapping and app state merging) if the
5
5
  * <code>sap-prelaunch-operations</code> parameter is specified as a technical parameter.
6
6
  *
7
- * @version 1.131.1
7
+ * @version 1.132.1
8
8
  */
9
9
  sap.ui.define([
10
10
  "sap/base/Log",
@@ -8,7 +8,7 @@
8
8
  * <p>This is a dependency of ClientSideTargetResolution. Interfaces exposed
9
9
  * by this module may change at any time without notice.</p>
10
10
  *
11
- * @version 1.131.1
11
+ * @version 1.132.1
12
12
  */
13
13
  sap.ui.define([
14
14
  "sap/ushell/utils",
@@ -39,7 +39,7 @@
39
39
  *
40
40
  * This is a dependency of ClientSideTargetResolution. Interfaces exposed by this module may change at any time without notice.
41
41
  *
42
- * @version 1.131.1
42
+ * @version 1.132.1
43
43
  */
44
44
  sap.ui.define([
45
45
  "sap/base/Log"