@sapui5/sap.ushell 1.121.2 → 1.122.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 (351) hide show
  1. package/package.json +2 -2
  2. package/src/main/js/sap/ushell/.library +1 -1
  3. package/src/main/js/sap/ushell/CanvasShapesManager.js +5 -3
  4. package/src/main/js/sap/ushell/Container.js +14 -0
  5. package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
  6. package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
  7. package/src/main/js/sap/ushell/Layout.js +1 -1
  8. package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
  9. package/src/main/js/sap/ushell/SessionHandler.js +1 -1
  10. package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
  11. package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
  12. package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
  13. package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
  14. package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
  15. package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
  16. package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
  17. package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +1 -1
  18. package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
  19. package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
  20. package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
  21. package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +1 -1
  22. package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
  23. package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
  24. package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.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 +1 -1
  46. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +8 -185
  47. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +198 -0
  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 +6 -5
  52. package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +5 -4
  53. package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
  54. package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +27 -22
  55. package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
  56. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +7 -193
  57. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +205 -0
  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/api/workpage/Designtime.js +24 -4
  69. package/src/main/js/sap/ushell/api/workpage/Runtime.js +45 -7
  70. package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +6 -0
  71. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils.js +4 -4
  72. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer.js +17 -49
  73. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +13 -18
  74. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +24 -36
  75. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +2 -3
  76. package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +4 -4
  77. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +4 -5
  78. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +113 -0
  79. package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +2 -2
  80. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
  81. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
  82. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
  83. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
  84. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
  85. package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +1 -1
  86. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
  87. package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +3 -1
  88. package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +2 -1
  89. package/src/main/js/sap/ushell/bootstrap/common/common.util.js +17 -2
  90. package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +12 -3
  91. package/src/main/js/sap/ushell/bootstrap/sandbox2.js +54 -22
  92. package/src/main/js/sap/ushell/components/CatalogsManager.js +31 -11
  93. package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +1 -1
  94. package/src/main/js/sap/ushell/components/HomepageManager.js +5 -3
  95. package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +2 -2
  96. package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +1 -1
  97. package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +3 -4
  98. package/src/main/js/sap/ushell/components/appfinder/Component.js +5 -2
  99. package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +3 -3
  100. package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
  101. package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +2 -13
  102. package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
  103. package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
  104. package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +64 -8
  105. package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +67 -83
  106. package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
  107. package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
  108. package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +1 -1
  109. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/AdvancedFormatters.js +3 -3
  110. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/appendStyleVars.js +3 -3
  111. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Event.js +3 -3
  112. package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +4 -4
  113. package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
  114. package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +12 -5
  115. package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
  116. package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +1 -1
  117. package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
  118. package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +1 -1
  119. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +3 -1
  120. package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
  121. package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +37 -37
  122. package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
  123. package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +2 -2
  124. package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
  125. package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +2 -2
  126. package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +2 -2
  127. package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
  128. package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
  129. package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
  130. package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
  131. package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +1 -1
  132. package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
  133. package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
  134. package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
  135. package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
  136. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
  137. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
  138. package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
  139. package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +525 -613
  140. package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
  141. package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
  142. package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
  143. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
  144. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
  145. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
  146. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
  147. package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
  148. package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +4 -4
  149. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsEntry.js +3 -5
  150. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
  151. package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
  152. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/indicatorTileHelper.js +18 -18
  153. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +1 -1
  154. package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
  155. package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
  156. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
  157. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +2 -2
  158. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
  159. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
  160. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
  161. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
  162. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
  163. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
  164. package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +3 -3
  165. package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
  166. package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -1
  167. package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
  168. package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
  169. package/src/main/js/sap/ushell/library.js +9 -1
  170. package/src/main/js/sap/ushell/navigationMode.js +3 -3
  171. package/src/main/js/sap/ushell/performance/FesrEnhancer.js +33 -4
  172. package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
  173. package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
  174. package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
  175. package/src/main/js/sap/ushell/plugins/rta-personalize/Component.js +6 -254
  176. package/src/main/js/sap/ushell/plugins/rta-personalize/manifest.json +0 -102
  177. package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +0 -8
  178. package/src/main/js/sap/ushell/renderer/Renderer.js +2 -2
  179. package/src/main/js/sap/ushell/renderer/Shell.controller.js +7 -7
  180. package/src/main/js/sap/ushell/renderer/Shell.view.js +2 -10
  181. package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +10 -11
  182. package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.view.xml +49 -71
  183. package/src/main/js/sap/ushell/renderer/resources/resources.properties +0 -2
  184. package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
  185. package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +1 -1
  186. package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
  187. package/src/main/js/sap/ushell/services/AppState.js +1 -1
  188. package/src/main/js/sap/ushell/services/Bookmark.js +2 -2
  189. package/src/main/js/sap/ushell/services/BookmarkV2.js +2 -2
  190. package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +3 -3
  191. package/src/main/js/sap/ushell/services/CommonDataModel.js +3 -5
  192. package/src/main/js/sap/ushell/services/Configuration.js +1 -1
  193. package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
  194. package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
  195. package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +20 -20
  196. package/src/main/js/sap/ushell/services/DarkModeSupport.js +3 -3
  197. package/src/main/js/sap/ushell/services/Extension/FloatingContainer.js +1 -1
  198. package/src/main/js/sap/ushell/services/Extension/Footer.js +1 -1
  199. package/src/main/js/sap/ushell/services/Extension/Header.js +1 -1
  200. package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
  201. package/src/main/js/sap/ushell/services/Extension/SidePane.js +1 -1
  202. package/src/main/js/sap/ushell/services/Extension/ToolArea.js +1 -1
  203. package/src/main/js/sap/ushell/services/Extension.js +1 -1
  204. package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
  205. package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
  206. package/src/main/js/sap/ushell/services/Menu.js +1 -1
  207. package/src/main/js/sap/ushell/services/Message.js +1 -1
  208. package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
  209. package/src/main/js/sap/ushell/services/NavTargetResolution.js +24 -995
  210. package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +1272 -0
  211. package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
  212. package/src/main/js/sap/ushell/services/Navigation.js +11 -11
  213. package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
  214. package/src/main/js/sap/ushell/services/Notifications.js +0 -14
  215. package/src/main/js/sap/ushell/services/NotificationsV2.js +10 -34
  216. package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
  217. package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
  218. package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
  219. package/src/main/js/sap/ushell/services/Pages.js +1 -1
  220. package/src/main/js/sap/ushell/services/Personalization.js +1 -1
  221. package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
  222. package/src/main/js/sap/ushell/services/PluginManager.js +2 -2
  223. package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
  224. package/src/main/js/sap/ushell/services/Search.js +1 -1
  225. package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
  226. package/src/main/js/sap/ushell/services/SearchableContent.js +2 -2
  227. package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
  228. package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +1 -1
  229. package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +3 -2
  230. package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
  231. package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
  232. package/src/main/js/sap/ushell/services/UITracer.js +5 -5
  233. package/src/main/js/sap/ushell/services/URLParsing.js +2 -2
  234. package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
  235. package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
  236. package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
  237. package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
  238. package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
  239. package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
  240. package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
  241. package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
  242. package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
  243. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
  244. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +1 -1
  245. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +1 -1
  246. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +1 -1
  247. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +1 -1
  248. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
  249. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +1 -1
  250. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
  251. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
  252. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +1 -1
  253. package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +1 -1
  254. package/src/main/js/sap/ushell/services/_CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
  255. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
  256. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
  257. package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
  258. package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
  259. package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +4 -4
  260. package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
  261. package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +1 -1
  262. package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
  263. package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +1 -1
  264. package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
  265. package/src/main/js/sap/ushell/themes/base/Catalog.less +12 -2
  266. package/src/main/js/sap/ushell/themes/base/SearchCEP.less +1 -1
  267. package/src/main/js/sap/ushell/themes/base/ShellAppTitle.less +15 -57
  268. package/src/main/js/sap/ushell/themes/base/WorkPageCell.less +0 -1
  269. package/src/main/js/sap/ushell/themes/base/img/launchicons/phone-icon_120x120.png +0 -0
  270. package/src/main/js/sap/ushell/themes/base/img/launchicons/phone-retina_180x180.png +0 -0
  271. package/src/main/js/sap/ushell/themes/base/img/launchicons/tablet-icon_152x152.png +0 -0
  272. package/src/main/js/sap/ushell/themes/base/img/launchicons/tablet-retina_167x167.png +0 -0
  273. package/src/main/js/sap/ushell/themes/sap_belize/ShellHeader.less +11 -36
  274. package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +9 -31
  275. package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellHeader.less +9 -32
  276. package/src/main/js/sap/ushell/themes/sap_horizon/ShellAppTitle.less +11 -39
  277. package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellAppTitle.less +11 -39
  278. package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +3 -136
  279. package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternal.js +161 -0
  280. package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +6 -0
  281. package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
  282. package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +1 -1
  283. package/src/main/js/sap/ushell/ui/launchpad/CatalogEntryContainer.js +1 -1
  284. package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
  285. package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
  286. package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +1 -1
  287. package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLaunchPage.js +1 -1
  288. package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
  289. package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +7 -9
  290. package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
  291. package/src/main/js/sap/ushell/ui/utils.js +1 -1
  292. package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
  293. package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
  294. package/src/main/js/sap/ushell/utils/UrlShortening.js +2 -2
  295. package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +366 -0
  296. package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +1 -1
  297. package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +5 -2
  298. package/src/main/js/sap/ushell/utils/workpage/resources/resources.properties +157 -0
  299. package/src/main/js/sap/ushell/utils/workpage/resources/resources_ar.properties +78 -0
  300. package/src/main/js/sap/ushell/utils/workpage/resources/resources_bg.properties +78 -0
  301. package/src/main/js/sap/ushell/utils/workpage/resources/resources_ca.properties +78 -0
  302. package/src/main/js/sap/ushell/utils/workpage/resources/resources_cs.properties +78 -0
  303. package/src/main/js/sap/ushell/utils/workpage/resources/resources_cy.properties +78 -0
  304. package/src/main/js/sap/ushell/utils/workpage/resources/resources_da.properties +78 -0
  305. package/src/main/js/sap/ushell/utils/workpage/resources/resources_de.properties +78 -0
  306. package/src/main/js/sap/ushell/utils/workpage/resources/resources_el.properties +78 -0
  307. package/src/main/js/sap/ushell/utils/workpage/resources/resources_en.properties +78 -0
  308. package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_GB.properties +78 -0
  309. package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_sappsd.properties +78 -0
  310. package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saprigi.properties +78 -0
  311. package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saptrc.properties +78 -0
  312. package/src/main/js/sap/ushell/utils/workpage/resources/resources_es.properties +78 -0
  313. package/src/main/js/sap/ushell/utils/workpage/resources/resources_es_MX.properties +78 -0
  314. package/src/main/js/sap/ushell/utils/workpage/resources/resources_et.properties +78 -0
  315. package/src/main/js/sap/ushell/utils/workpage/resources/resources_fi.properties +78 -0
  316. package/src/main/js/sap/ushell/utils/workpage/resources/resources_fr.properties +78 -0
  317. package/src/main/js/sap/ushell/utils/workpage/resources/resources_fr_CA.properties +78 -0
  318. package/src/main/js/sap/ushell/utils/workpage/resources/resources_hi.properties +78 -0
  319. package/src/main/js/sap/ushell/utils/workpage/resources/resources_hr.properties +78 -0
  320. package/src/main/js/sap/ushell/utils/workpage/resources/resources_hu.properties +78 -0
  321. package/src/main/js/sap/ushell/utils/workpage/resources/resources_id.properties +78 -0
  322. package/src/main/js/sap/ushell/utils/workpage/resources/resources_it.properties +78 -0
  323. package/src/main/js/sap/ushell/utils/workpage/resources/resources_iw.properties +78 -0
  324. package/src/main/js/sap/ushell/utils/workpage/resources/resources_ja.properties +78 -0
  325. package/src/main/js/sap/ushell/utils/workpage/resources/resources_kk.properties +78 -0
  326. package/src/main/js/sap/ushell/utils/workpage/resources/resources_ko.properties +78 -0
  327. package/src/main/js/sap/ushell/utils/workpage/resources/resources_lt.properties +78 -0
  328. package/src/main/js/sap/ushell/utils/workpage/resources/resources_lv.properties +78 -0
  329. package/src/main/js/sap/ushell/utils/workpage/resources/resources_ms.properties +78 -0
  330. package/src/main/js/sap/ushell/utils/workpage/resources/resources_nl.properties +78 -0
  331. package/src/main/js/sap/ushell/utils/workpage/resources/resources_no.properties +78 -0
  332. package/src/main/js/sap/ushell/utils/workpage/resources/resources_pl.properties +78 -0
  333. package/src/main/js/sap/ushell/utils/workpage/resources/resources_pt.properties +78 -0
  334. package/src/main/js/sap/ushell/utils/workpage/resources/resources_pt_PT.properties +78 -0
  335. package/src/main/js/sap/ushell/utils/workpage/resources/resources_ro.properties +78 -0
  336. package/src/main/js/sap/ushell/utils/workpage/resources/resources_ru.properties +78 -0
  337. package/src/main/js/sap/ushell/utils/workpage/resources/resources_sh.properties +78 -0
  338. package/src/main/js/sap/ushell/utils/workpage/resources/resources_sk.properties +78 -0
  339. package/src/main/js/sap/ushell/utils/workpage/resources/resources_sl.properties +78 -0
  340. package/src/main/js/sap/ushell/utils/workpage/resources/resources_sv.properties +78 -0
  341. package/src/main/js/sap/ushell/utils/workpage/resources/resources_th.properties +78 -0
  342. package/src/main/js/sap/ushell/utils/workpage/resources/resources_tr.properties +78 -0
  343. package/src/main/js/sap/ushell/utils/workpage/resources/resources_uk.properties +78 -0
  344. package/src/main/js/sap/ushell/utils/workpage/resources/resources_vi.properties +78 -0
  345. package/src/main/js/sap/ushell/utils/workpage/resources/resources_zh_CN.properties +78 -0
  346. package/src/main/js/sap/ushell/utils/workpage/resources/resources_zh_TW.properties +78 -0
  347. package/src/main/js/sap/ushell/utils.js +2 -2
  348. package/src/test/js/sap/ushell/bootstrap/sandbox.js +70 -60
  349. package/ui5.yaml +30 -2
  350. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.js +0 -350
  351. package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n.properties +0 -38
@@ -6,23 +6,29 @@ sap.ui.define([
6
6
  "./Designtime",
7
7
  "sap/ushell/utils/workpage/WorkPageVizInstantiation",
8
8
  "sap/ushell/utils/workpage/WorkPageService",
9
+ "sap/ushell/utils/workpage/WorkPageHost",
9
10
  "sap/ushell/EventHub"
10
11
  ], function (
11
12
  Designtime,
12
13
  WorkPageVizInstantiation,
13
14
  WorkPageService,
15
+ WorkPageHost,
14
16
  EventHub
15
17
  ) {
16
18
  "use strict";
17
19
 
18
20
 
19
21
  /**
20
- * Runtime API Facade for work page builder.
22
+ * @alias sap.ushell.api.workpage.Runtime
23
+ * @class
24
+ * @classdesc Runtime API Facade for work page builder.
21
25
  *
22
26
  * This class <b>MUST</b> only be used in a running unified shell context, i.e. only after the unified shell
23
27
  * container has been initialized.
24
28
  *
25
- * @namespace sap.ushell.api.workpage
29
+ * @hideconstructor
30
+ * @augments sap.ushell.api.workpage.Designtime
31
+ *
26
32
  * @since 1.121.0
27
33
  * @private
28
34
  * @ui5-restricted dws-packages
@@ -33,6 +39,14 @@ sap.ui.define([
33
39
 
34
40
  _oWorkPageService;
35
41
 
42
+ /**
43
+ * Returns the singleton instance of the Runtime API.
44
+ * @returns {Promise<sap.ushell.api.workpage.Runtime>} A promise that resolves with the runtime instance.
45
+ *
46
+ * @since 1.121.0
47
+ * @private
48
+ * @ui5-restricted dws-packages
49
+ */
36
50
  static async getInstance () {
37
51
  if (!Runtime.#instance) {
38
52
  const oWorkPageVizInstantiation = await WorkPageVizInstantiation.getInstance();
@@ -49,7 +63,9 @@ sap.ui.define([
49
63
  }
50
64
 
51
65
  /**
52
- * @typedef {object} SiteData Additional visualization properties retrieved from the CDM Runtime Site
66
+ * @typedef {object} sap.ushell.api.workpage.Runtime.SiteData
67
+ * Additional visualization properties retrieved from the CDM Runtime Site
68
+ *
53
69
  * @property {object} [target] The harmonized navigation target of the visualization
54
70
  * @property {string} [targetURL] The target URL of the visualization
55
71
  * @property {object} [dataSource] The data source for the indicator data source of the visualization
@@ -60,16 +76,18 @@ sap.ui.define([
60
76
  */
61
77
 
62
78
  /**
63
- * @typedef {object} ExtendedVisualization An extension of a visualization retrieved from the content API
79
+ * @typedef {object} sap.ushell.api.workpage.Runtime.ExtendedVisualization
80
+ * An extension of a visualization retrieved from the content API
81
+ *
64
82
  * @property {string} id The id of the visualization
65
83
  * @property {string} type The type of the visualization
66
84
  * @property {object} descriptor The descriptor of the visualization
67
85
  * @property {object} descriptorResources The descriptor resources of the visualization
68
- * @property {SiteData} [_siteData] The additional app properties retrieved from the CDM Runtime Site
86
+ * @property {sap.ushell.api.workpage.Runtime.SiteData} [_siteData] The additional app properties retrieved from the CDM Runtime Site
69
87
  *
70
88
  * @private
71
89
  * @ui5-restricted dws-packages
72
- */
90
+ */
73
91
 
74
92
  /**
75
93
  * Load the WorkPage data for the given page id and the visualizations used on that WorkPage.
@@ -77,8 +95,11 @@ sap.ui.define([
77
95
  * app in the <code>_siteData</code> property.
78
96
  *
79
97
  * @param {string} sPageId The WorkPage id.
80
- * @returns {Promise<{ workPage: {usedVisualizations: { nodes: ExtendedVisualization[] }, editable: boolean}}>}
98
+ * @returns {Promise<{ workPage: { usedVisualizations: { nodes: sap.ushell.api.workpage.Runtime.ExtendedVisualization[] }, editable: boolean } }>}
81
99
  * A promise resolving with the loaded work page and visualizations, enhanced with app data retrieved from the CDM Runtime Site.
100
+ *
101
+ * @private
102
+ * @ui5-restricted dws-packages
82
103
  */
83
104
  fetchPageData (sPageId) {
84
105
  return this._oWorkPageService.loadWorkPageAndVisualizations(sPageId);
@@ -87,10 +108,27 @@ sap.ui.define([
87
108
  /**
88
109
  * Event that should be fired after the content for the first page has been added.
89
110
  * This will trigger loading of lazy shell components like menu bar, user settings, search, ...
111
+ *
112
+ * @private
113
+ * @ui5-restricted dws-packages
90
114
  */
91
115
  fireAfterContentAdded () {
92
116
  EventHub.emit("CenterViewPointContentRendered");
93
117
  }
118
+
119
+ /**
120
+ * Creates a new work page host instance.
121
+ *
122
+ * @param {string} sId the ID of the host.
123
+ * @param {object} [mSettings] the settings of the host instance.
124
+ * @returns {sap.ui.integration.Host} a new work page host instance.
125
+ *
126
+ * @private
127
+ * @ui5-restricted dws-packages
128
+ */
129
+ createHost (sId, mSettings) {
130
+ return new WorkPageHost(sId, mSettings);
131
+ }
94
132
  }
95
133
 
96
134
  return Runtime;
@@ -886,6 +886,12 @@ sap.ui.define([
886
886
  module: "sap.ushell.appRuntime.ui5.services.adapters.EmptyAdapter"
887
887
  }
888
888
  },
889
+ NavTargetResolutionInternal: {
890
+ module: "sap.ushell.appRuntime.ui5.services.NavTargetResolutionInternal",
891
+ adapter: {
892
+ module: "sap.ushell.appRuntime.ui5.services.adapters.EmptyAdapter"
893
+ }
894
+ },
889
895
  ShellNavigation: {
890
896
  module: "sap.ushell.appRuntime.ui5.services.ShellNavigation",
891
897
  adapter: {
@@ -5,17 +5,17 @@
5
5
  sap.ui.define([], function () {
6
6
  "use strict";
7
7
 
8
- var AppLifeCycleUtils = {
8
+ const AppLifeCycleUtils = {
9
9
  /**
10
10
  * Gets the app life cycle service.
11
11
  * @returns {Promise<object>} Resolves to the app life cycle service
12
12
  * @private
13
13
  */
14
14
  getAppLifeCycleService: function () {
15
- var oContainer = AppLifeCycleUtils.getContainer();
15
+ const oContainer = AppLifeCycleUtils.getContainer();
16
16
  return oContainer.getServiceAsync("AppLifeCycle")
17
17
  .catch(function (vError) {
18
- var sError = "Error getting AppLifeCycle service from ushell container: " + vError;
18
+ const sError = "Error getting AppLifeCycle service from ushell container: " + vError;
19
19
  throw new Error(sError);
20
20
  });
21
21
  },
@@ -26,7 +26,7 @@ sap.ui.define([], function () {
26
26
  * @private
27
27
  */
28
28
  getContainer: function () {
29
- var oContainer = sap.ui.require("sap/ushell/Container");
29
+ const oContainer = sap.ui.require("sap/ushell/Container");
30
30
  if (!oContainer) {
31
31
  throw new Error(
32
32
  "Illegal state: shell container not available; this component must be executed in a unified shell runtime context.");
@@ -11,58 +11,26 @@ sap.ui.define([
11
11
  ) {
12
12
  "use strict";
13
13
 
14
- var Renderer = {
14
+ const Renderer = {
15
15
 
16
- /**
17
- * Returns the shell renderer instance in a reliable way,
18
- * i.e. independent from the initialization time of the plug-in.
19
- * This means that the current renderer is returned immediately, if it
20
- * is already created (plug-in is loaded after renderer creation) or it
21
- * listens to the &quot;rendererCreated&quot; event (plug-in is loaded
22
- * before the renderer is created).
23
- *
24
- * @param {object} oComponent - Object with information about the current application
25
- * @returns {promise} Resolves with the renderer instance or rejected with an error message.
26
- */
27
- getRenderer: function (oComponent) {
28
- var oContainer = AppLifeCycleUtils.getContainer();
16
+ createActionButton: async function (oComponent, onClickHandler, bIsVisible) {
17
+ const oContainer = AppLifeCycleUtils.getContainer();
18
+ const ExtensionService = await oContainer.getServiceAsync("Extension");
29
19
 
30
- return new Promise(function (resolve, reject) {
31
- var oRenderer = oContainer.getRenderer();
32
- if (oRenderer) {
33
- oComponent.oRenderer = oRenderer;
34
- resolve(oRenderer);
35
- } else {
36
- // renderer not initialized yet, listen to rendererCreated event
37
- oComponent._onRendererCreated = function (oEvent) {
38
- oRenderer = oEvent.getParameter("renderer");
39
- if (oRenderer) {
40
- oComponent.oRenderer = oRenderer;
41
- resolve(oRenderer);
42
- } else {
43
- reject("Illegal state: shell renderer not available after recieving 'rendererCreated' event.");
44
- }
45
- };
46
- oContainer.attachRendererCreatedEvent(oComponent._onRendererCreated, oComponent);
47
- }
48
- });
49
- },
50
-
51
- createActionButton: function (oComponent, onClickHandler, bIsVisible) {
52
- return this.getRenderer(oComponent)
53
- .then(function (oRenderer) {
54
- //Button will only be added once even when more instances of this component are created
55
- oRenderer.addActionButton("sap.ushell.ui.launchpad.ActionItem", {
56
- id: oComponent.mConfig.id,
57
- text: oComponent.mConfig.i18n.getText(oComponent.mConfig.text),
58
- icon: oComponent.mConfig.icon,
59
- press: onClickHandler,
60
- visible: bIsVisible
61
- }, true, false, [oRenderer.LaunchpadState.App]);
62
- })
63
- .catch(function (sErrorMessage) {
64
- Log.error(sErrorMessage, undefined, oComponent.mConfig.sComponentName);
20
+ try {
21
+ const oUserAction = await ExtensionService.createUserAction({
22
+ id: oComponent.mConfig.id,
23
+ text: oComponent.mConfig.i18n.getText(oComponent.mConfig.text),
24
+ icon: oComponent.mConfig.icon,
25
+ press: onClickHandler,
26
+ visible: bIsVisible
27
+ }, {
28
+ controlType: "sap.ushell.ui.launchpad.ActionItem"
65
29
  });
30
+ oUserAction.showForAllApps();
31
+ } catch (sErrorMessage) {
32
+ Log.error(sErrorMessage, undefined, oComponent.mConfig.sComponentName);
33
+ }
66
34
  },
67
35
 
68
36
  exit: function () {}
@@ -1,26 +1,26 @@
1
1
  // Copyright (c) 2009-2023 SAP SE, All Rights Reserved
2
2
  sap.ui.define([
3
+ "sap/base/Log",
3
4
  "sap/ui/core/Component",
4
5
  "sap/ui/core/EventBus",
5
6
  "sap/ui/fl/write/api/FeaturesAPI",
6
- "sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions",
7
+ "sap/ushell/api/RTA",
7
8
  "sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils",
8
- "sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer",
9
- "sap/ushell/appRuntime/ui5/plugins/baseRta/Trigger",
10
- "sap/base/Log"
11
- ], function(
9
+ "sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions",
10
+ "sap/ushell/appRuntime/ui5/plugins/baseRta/Trigger"
11
+ ], function (
12
+ Log,
12
13
  Component,
13
14
  EventBus,
14
15
  FeaturesAPI,
15
- CheckConditions,
16
+ RtaApi,
16
17
  AppLifeCycleUtils,
17
- Renderer,
18
- Trigger,
19
- Log
18
+ CheckConditions,
19
+ Trigger
20
20
  ) {
21
21
  "use strict";
22
22
 
23
- var oPostMessageInterface;
23
+ let oPostMessageInterface;
24
24
 
25
25
  function getInitialConfiguration () {
26
26
  return {
@@ -111,11 +111,6 @@ sap.ui.define([
111
111
 
112
112
  .then(function (oAppLifeCycleService) {
113
113
  oAppLifeCycleService.attachAppLoaded(this._onAppLoaded, this);
114
- return Renderer.getRenderer(this);
115
- }.bind(this))
116
-
117
- .then(function (oRenderer) {
118
- this.oRenderer = oRenderer;
119
114
  }.bind(this))
120
115
 
121
116
  .then(postShowAdaptUIMessageToFLP)
@@ -142,7 +137,7 @@ sap.ui.define([
142
137
  "appClosed",
143
138
  onAppClosed.bind(this)
144
139
  );
145
- this.oRenderer.addTopHeaderPlaceHolder();
140
+ RtaApi.addTopHeaderPlaceHolder();
146
141
  this.oTrigger.triggerStartRta(this);
147
142
  return oPostMessageInterface.createPostMessageResult();
148
143
  }.bind(this)
@@ -163,7 +158,7 @@ sap.ui.define([
163
158
  if (CheckConditions.checkRestartRTA(this.mConfig.layer)) {
164
159
  return postSwitchToolbarVisibilityMessageToFLP(false)
165
160
  .then(function () {
166
- this.oRenderer.addTopHeaderPlaceHolder();
161
+ RtaApi.addTopHeaderPlaceHolder();
167
162
  return this.oTrigger.triggerStartRta(this);
168
163
  }.bind(this));
169
164
  }
@@ -206,7 +201,7 @@ sap.ui.define([
206
201
  EventBus.getInstance().unsubscribe("sap.ushell", "appClosed", onAppClosed.bind(this));
207
202
  postSwitchToolbarVisibilityMessageToFLP(true);
208
203
  this.oTrigger.exitRta();
209
- this.oRenderer.removeTopHeaderPlaceHolder();
204
+ RtaApi.removeTopHeaderPlaceHolder();
210
205
  },
211
206
 
212
207
  exit: function () {
@@ -2,19 +2,21 @@
2
2
  sap.ui.define([
3
3
  "sap/ui/core/Component",
4
4
  "sap/ui/core/Element",
5
- "sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer",
5
+ "sap/ui/thirdparty/jquery",
6
+ "sap/ushell/api/RTA",
6
7
  "sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils",
7
- "sap/ui/thirdparty/jquery"
8
+ "sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer"
8
9
  ], function(
9
10
  Component,
10
11
  Element,
11
- Renderer,
12
+ jQuery,
13
+ RtaApi,
12
14
  AppLifeCycleUtils,
13
- jQuery
15
+ Renderer
14
16
  ) {
15
17
  "use strict";
16
18
 
17
- var oPostMessageInterface;
19
+ let oPostMessageInterface;
18
20
 
19
21
  function getInitialConfiguration () {
20
22
  return {
@@ -27,15 +29,13 @@ sap.ui.define([
27
29
  };
28
30
  }
29
31
 
30
- function switchToolbarVisibility (oRenderer, bVisible) {
31
- if (oRenderer) {
32
- oRenderer.setHeaderVisibility(bVisible, false);
33
- }
32
+ function switchToolbarVisibility (bVisible) {
33
+ RtaApi.setShellHeaderVisibility(bVisible, false);
34
34
  }
35
35
 
36
- function postStartUIAdaptationToApp (oRenderer) {
36
+ function postStartUIAdaptationToApp () {
37
37
  return new Promise(function (resolve, reject) {
38
- switchToolbarVisibility(oRenderer, false);
38
+ switchToolbarVisibility(false);
39
39
  oPostMessageInterface.postMessageToApp(
40
40
  "user.postapi.rtaPlugin",
41
41
  "startUIAdaptation"
@@ -74,10 +74,10 @@ sap.ui.define([
74
74
  },
75
75
  switchToolbarVisibility: {
76
76
  executeServiceCallFn: function (oServiceParams) {
77
- var bVisible = oServiceParams.oMessageData.body.visible;
78
- switchToolbarVisibility(this.oRenderer, bVisible);
77
+ const bVisible = oServiceParams.oMessageData.body.visible;
78
+ switchToolbarVisibility(bVisible);
79
79
  return oPostMessageInterface.createPostMessageResult();
80
- }.bind(this)
80
+ }
81
81
  }
82
82
  },
83
83
  outCalls: {
@@ -95,17 +95,11 @@ sap.ui.define([
95
95
  this.mConfig.i18n = this.getModel("i18n").getResourceBundle();
96
96
 
97
97
  return new jQuery.Deferred(function (oDeffered) {
98
- Renderer.getRenderer(this)
99
- .then(function (oRenderer) {
100
- this.oRenderer = oRenderer;
101
- }.bind(this))
102
- .then(function () {
103
- return Renderer.createActionButton(
104
- this,
105
- postStartUIAdaptationToApp.bind(undefined, this.oRenderer),
106
- this.mConfig.visible
107
- );
108
- }.bind(this))
98
+ Renderer.createActionButton(
99
+ this,
100
+ postStartUIAdaptationToApp.bind(undefined),
101
+ this.mConfig.visible
102
+ )
109
103
  .then(function () {
110
104
  return AppLifeCycleUtils.getAppLifeCycleService();
111
105
  })
@@ -121,7 +115,7 @@ sap.ui.define([
121
115
  },
122
116
 
123
117
  _changeActionButtonVisibility: function (bVisible) {
124
- var vControl = Element.getElementById(this.mConfig.id);
118
+ const vControl = Element.getElementById(this.mConfig.id);
125
119
  if (vControl) {
126
120
  vControl.setVisible(bVisible);
127
121
  }
@@ -135,17 +129,11 @@ sap.ui.define([
135
129
  },
136
130
 
137
131
  exit: function () {
138
- if (this.oRenderer) {
139
- switchToolbarVisibility(this.oRenderer, false);
140
- }
132
+ switchToolbarVisibility(false);
141
133
  return AppLifeCycleUtils.getAppLifeCycleService()
142
- .then(function (oAppLifeCycleService) {
143
- oAppLifeCycleService.detachAppLoaded(this._onAppLoaded, this);
144
- if (this._onRendererCreated) {
145
- var oContainer = AppLifeCycleUtils.getContainer();
146
- oContainer.detachRendererCreatedEvent(this._onRendererCreated, this);
147
- }
148
- }.bind(this));
134
+ .then(function (oAppLifeCycleService) {
135
+ oAppLifeCycleService.detachAppLoaded(this._onAppLoaded, this);
136
+ }.bind(this));
149
137
  }
150
138
  });
151
139
  });
@@ -441,7 +441,7 @@ sap.ui.define([
441
441
  .removeSearch("sap-ushell-defaultedParameterNames")
442
442
  .toString();
443
443
  }
444
- Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolution) {
444
+ Container.getServiceAsync("NavTargetResolutionInternal").then(function (oNavTargetResolution) {
445
445
  oNavTargetResolution.resolveHashFragmentLocal("#" + sAppIntent + sParams)
446
446
  .done(function (oResolvedHashFragment) {
447
447
  var oParsedHash = oUrlParsing.parseShellHash("#" + sAppIntent + sParams);
@@ -557,9 +557,8 @@ sap.ui.define([
557
557
  if (window.confirm(sDatalossMessage)) {
558
558
  Container.setDirtyFlag(false);
559
559
  return true;
560
- } else {
561
- return false;
562
560
  }
561
+ return false;
563
562
  }
564
563
  return true;
565
564
  };
@@ -126,8 +126,8 @@ sap.ui.define([
126
126
  //ready also for scube
127
127
  if (AppRuntimeContext.getIsScube()) {
128
128
  var oDeferred = new jQuery.Deferred();
129
- Container.getServiceAsync("NavTargetResolution").then(function (NavTargetResolution) {
130
- NavTargetResolution.isIntentSupported(aIntents, oComponent).done(oDeferred.resolve, oDeferred.reject);
129
+ Container.getServiceAsync("NavTargetResolutionInternal").then(function (NavTargetResolutionInternal) {
130
+ NavTargetResolutionInternal.isIntentSupported(aIntents, oComponent).done(oDeferred.resolve, oDeferred.reject);
131
131
  });
132
132
  return oDeferred.promise();
133
133
  }
@@ -167,8 +167,8 @@ sap.ui.define([
167
167
  }
168
168
  return oArg;
169
169
  });
170
- Container.getServiceAsync("NavTargetResolution").then(function (NavTargetResolution) {
171
- NavTargetResolution.isNavigationSupported(aFilteredIntents, oComponent).done(oDeferred.resolve, oDeferred.reject);
170
+ Container.getServiceAsync("NavTargetResolutionInternal").then(function (NavTargetResolutionInternal) {
171
+ NavTargetResolutionInternal.isNavigationSupported(aFilteredIntents, oComponent).done(oDeferred.resolve, oDeferred.reject);
172
172
  });
173
173
  return oDeferred.promise();
174
174
  }
@@ -52,7 +52,6 @@ sap.ui.define([
52
52
  this.resolveHashFragment = function (sHashFragment) {
53
53
  if (AppRuntimeContext.getIsScube()) {
54
54
  var oDeferred = new jQuery.Deferred();
55
-
56
55
  this.resolveHashFragmentLocal(sHashFragment)
57
56
  .done(oDeferred.resolve)
58
57
  .fail(function () {
@@ -71,10 +70,10 @@ sap.ui.define([
71
70
 
72
71
  this.isIntentSupportedLocal = this.isIntentSupported;
73
72
  this.isIntentSupported = function (aIntents) {
74
- var oDeferred = new jQuery.Deferred(),
75
- aPromises = [],
76
- oResult1,
77
- oResult2;
73
+ var oDeferred = new jQuery.Deferred();
74
+ var aPromises = [];
75
+ var oResult1;
76
+ var oResult2;
78
77
 
79
78
  aPromises.push(AppRuntimeContext.getIsScube() ? this.isIntentSupportedLocal(aIntents) : Promise.resolve(undefined));
80
79
  aPromises.push(AppRuntimeService.postMessageToFLP(
@@ -0,0 +1,113 @@
1
+ // Copyright (c) 2009-2023 SAP SE, All Rights Reserved
2
+
3
+ sap.ui.define([
4
+ "sap/ushell/services/NavTargetResolutionInternal",
5
+ "sap/ushell/appRuntime/ui5/AppRuntimeService",
6
+ "sap/ushell/appRuntime/ui5/AppRuntimeContext",
7
+ "sap/ui/thirdparty/jquery"
8
+ ], function (
9
+ NavTargetResolutionInternal,
10
+ AppRuntimeService,
11
+ AppRuntimeContext,
12
+ jQuery
13
+ ) {
14
+ "use strict";
15
+
16
+ function NavTargetResolutionInternalProxy (oAdapter, oContainerInterface, sParameters, oServiceConfiguration) {
17
+ NavTargetResolutionInternal.call(this, oAdapter, oContainerInterface, sParameters, oServiceConfiguration);
18
+
19
+ this.getDistinctSemanticObjectsLocal = this.getDistinctSemanticObjects;
20
+ this.getDistinctSemanticObjects = function () {
21
+ var oDeferred = new jQuery.Deferred(),
22
+ aPromises = [],
23
+ arrResult;
24
+
25
+ aPromises.push(AppRuntimeContext.getIsScube() ? this.getDistinctSemanticObjectsLocal() : Promise.resolve([]));
26
+ aPromises.push(AppRuntimeService.postMessageToFLP(
27
+ "sap.ushell.services.NavTargetResolutionInternal.getDistinctSemanticObjects"
28
+ ));
29
+ Promise.allSettled(aPromises).then(function (aResults) {
30
+ arrResult = aResults[0].status === "fulfilled" ? aResults[0].value : [];
31
+ arrResult = arrResult.concat(aResults[1].status === "fulfilled" ? aResults[1].value : []);
32
+ arrResult = arrResult.filter(function (item, pos, self) {
33
+ return self.indexOf(item) === pos;
34
+ }).sort();
35
+ oDeferred.resolve(arrResult);
36
+ });
37
+
38
+ return oDeferred.promise();
39
+ };
40
+
41
+ this.expandCompactHash = function (sHashFragment) {
42
+ if (sHashFragment && sHashFragment.indexOf("sap-intent-param") > 0) {
43
+ return AppRuntimeService.sendMessageToOuterShell(
44
+ "sap.ushell.services.NavTargetResolutionInternal.expandCompactHash", {
45
+ sHashFragment: sHashFragment
46
+ });
47
+ }
48
+ return new jQuery.Deferred().resolve(sHashFragment).promise();
49
+ };
50
+
51
+ this.resolveHashFragmentLocal = this.resolveHashFragment;
52
+ this.resolveHashFragment = function (sHashFragment) {
53
+ if (AppRuntimeContext.getIsScube()) {
54
+ var oDeferred = new jQuery.Deferred();
55
+
56
+ this.resolveHashFragmentLocal(sHashFragment)
57
+ .done(oDeferred.resolve)
58
+ .fail(function () {
59
+ return AppRuntimeService.postMessageToFLP(
60
+ "sap.ushell.services.NavTargetResolutionInternal.resolveHashFragment", {
61
+ sHashFragment: sHashFragment
62
+ }).then(oDeferred.resolve, oDeferred.reject);
63
+ });
64
+ return oDeferred.promise();
65
+ }
66
+ return AppRuntimeService.sendMessageToOuterShell(
67
+ "sap.ushell.services.NavTargetResolutionInternal.resolveHashFragment", {
68
+ sHashFragment: sHashFragment
69
+ });
70
+
71
+ };
72
+
73
+ this.isIntentSupportedLocal = this.isIntentSupported;
74
+ this.isIntentSupported = function (aIntents) {
75
+ var oDeferred = new jQuery.Deferred(),
76
+ aPromises = [],
77
+ oResult1,
78
+ oResult2;
79
+
80
+ aPromises.push(AppRuntimeContext.getIsScube() ? this.isIntentSupportedLocal(aIntents) : Promise.resolve(undefined));
81
+ aPromises.push(AppRuntimeService.postMessageToFLP(
82
+ "sap.ushell.services.NavTargetResolutionInternal.isIntentSupported", {
83
+ aIntents: aIntents
84
+ }));
85
+ Promise.allSettled(aPromises).then(function (aResults) {
86
+ oResult1 = aResults[0].status === "fulfilled" ? aResults[0].value : undefined;
87
+ oResult2 = aResults[1].status === "fulfilled" ? aResults[1].value : undefined;
88
+ if (oResult1 && oResult2) {
89
+ Object.keys(oResult1).forEach(function (sIntent) {
90
+ oResult1[sIntent].supported = oResult1[sIntent].supported || oResult2[sIntent].supported;
91
+ });
92
+ } else if (oResult1 || oResult2) {
93
+ oResult1 = oResult1 || oResult2;
94
+ } else {
95
+ oResult1 = {};
96
+ aIntents.forEach(function (sIntent) {
97
+ oResult1[sIntent] = { supported: undefined };
98
+ });
99
+ }
100
+ oDeferred.resolve(oResult1);
101
+ });
102
+
103
+ return oDeferred.promise();
104
+ };
105
+ this._isIntentSupportedLocal = this.isIntentSupportedLocal;
106
+ this._isIntentSupported = this.isIntentSupported;
107
+ }
108
+
109
+ NavTargetResolutionInternalProxy.prototype = NavTargetResolutionInternal.prototype;
110
+ NavTargetResolutionInternalProxy.hasNoAdapter = NavTargetResolutionInternal.hasNoAdapter;
111
+
112
+ return NavTargetResolutionInternalProxy;
113
+ }, true);
@@ -154,8 +154,8 @@ sap.ui.define([
154
154
  }
155
155
  return oArg;
156
156
  });
157
- return Container.getServiceAsync("NavTargetResolution").then(function (NavTargetResolution) {
158
- return NavTargetResolution.isNavigationSupported(aFilteredIntents, oComponent);
157
+ return Container.getServiceAsync("NavTargetResolutionInternal").then(function (NavTargetResolutionInternal) {
158
+ return NavTargetResolutionInternal.isNavigationSupported(aFilteredIntents, oComponent);
159
159
  });
160
160
  }
161
161
 
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  return;
18
18
  }
19
19
  if (AppRuntimeContext.getIsScube()) {
20
- Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolution) {
20
+ Container.getServiceAsync("NavTargetResolutionInternal").then(function (oNavTargetResolution) {
21
21
  var sTargetHash = UrlParsing.constructShellHash(oArgs);
22
22
  oNavTargetResolution.isIntentSupportedLocal([sTargetHash]).then(function (oSupported) {
23
23
  if (oSupported[sTargetHash].supported === true) {
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  return;
18
18
  }
19
19
  if (AppRuntimeContext.getIsScube()) {
20
- return Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolution) {
20
+ return Container.getServiceAsync("NavTargetResolutionInternal").then(function (oNavTargetResolution) {
21
21
  var sTargetHash = UrlParsing.constructShellHash(oArgs);
22
22
  return oNavTargetResolution.isIntentSupportedLocal([sTargetHash]).then(function (oSupported) {
23
23
  if (oSupported[sTargetHash].supported === true) {
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's Ui5ComponentLoaderAdapter for the application runtime platform
4
4
  *
5
- * @version 1.121.2
5
+ * @version 1.122.1
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -45,7 +45,7 @@
45
45
  * }, false);
46
46
  * </pre>
47
47
  *
48
- * @version 1.121.2
48
+ * @version 1.122.1
49
49
  */
50
50
 
51
51
  sap.ui.define([