@sapui5/sap.ushell 1.118.0 → 1.119.2

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 (372) hide show
  1. package/package.json +6 -5
  2. package/src/main/js/sap/ushell/.library +1 -1
  3. package/src/main/js/sap/ushell/ApplicationType.js +1 -1
  4. package/src/main/js/sap/ushell/CanvasShapesManager.js +13 -7
  5. package/src/main/js/sap/ushell/Config.js +1 -1
  6. package/src/main/js/sap/ushell/Container.js +255 -185
  7. package/src/main/js/sap/ushell/EventHub.js +1 -1
  8. package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
  9. package/src/main/js/sap/ushell/Fiori20AdapterTest.js +2 -2
  10. package/src/main/js/sap/ushell/Layout.js +3 -3
  11. package/src/main/js/sap/ushell/NWBCInterface.js +3 -3
  12. package/src/main/js/sap/ushell/TechnicalParameters.js +3 -3
  13. package/src/main/js/sap/ushell/UIActions.js +44 -44
  14. package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
  15. package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
  16. package/src/main/js/sap/ushell/Ui5ServiceFactory.js +4 -4
  17. package/src/main/js/sap/ushell/User.js +1 -1
  18. package/src/main/js/sap/ushell/UserActivityLog.js +8 -8
  19. package/src/main/js/sap/ushell/_ApplicationType/guiResolution.js +5 -5
  20. package/src/main/js/sap/ushell/_ApplicationType/systemAlias.js +1 -1
  21. package/src/main/js/sap/ushell/_ApplicationType/urlTemplateResolution.js +16 -11
  22. package/src/main/js/sap/ushell/_Config/utils.js +5 -5
  23. package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
  24. package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
  25. package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
  26. package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +1 -1
  27. package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
  28. package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
  29. package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +14 -8
  30. package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +4 -5
  31. package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
  32. package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -2
  33. package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +12 -13
  34. package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +1 -1
  35. package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +4 -3
  36. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
  37. package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
  38. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +2 -2
  39. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
  40. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
  41. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
  42. package/src/main/js/sap/ushell/adapters/cdm/_Personalization/internals.js +1 -1
  43. package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +5 -2
  44. package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +4 -1
  45. package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +3 -4
  46. package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +10 -11
  47. package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
  48. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
  49. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
  50. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
  51. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
  52. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
  53. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
  54. package/src/main/js/sap/ushell/adapters/cdm/v3/utilsCdm.js +2 -2
  55. package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +0 -1
  56. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +3 -4
  57. package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +3 -2
  58. package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +3 -3
  59. package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
  60. package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +2 -3
  61. package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +3 -3
  62. package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -3
  63. package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +2 -3
  64. package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +1 -1
  65. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
  66. package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
  67. package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +2 -2
  68. package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -2
  69. package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
  70. package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
  71. package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
  72. package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
  73. package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -2
  74. package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
  75. package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +5 -9
  76. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +5 -3
  77. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +31 -3
  78. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +2 -0
  79. package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +7 -3
  80. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
  81. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/FLPLoader.js +1 -1
  82. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
  83. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +3 -3
  84. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.js +2 -2
  85. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
  86. package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +1 -0
  87. package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +2 -2
  88. package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +7 -3
  89. package/src/main/js/sap/ushell/bootstrap/common/common.load.script.js +4 -4
  90. package/src/main/js/sap/ushell/bootstrap/common/common.util.js +7 -7
  91. package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +214 -0
  92. package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxSite.json +511 -0
  93. package/src/main/js/sap/ushell/bootstrap/sandbox2.js +398 -0
  94. package/src/main/js/sap/ushell/components/CatalogsManager.js +26 -25
  95. package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +20 -15
  96. package/src/main/js/sap/ushell/components/DestroyHelper.js +2 -2
  97. package/src/main/js/sap/ushell/components/HomepageManager.js +6 -6
  98. package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +1 -1
  99. package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +5 -5
  100. package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +19 -15
  101. package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +12 -12
  102. package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +18 -18
  103. package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +1 -1
  104. package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +2 -2
  105. package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +6 -6
  106. package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +4 -4
  107. package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
  108. package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +8 -6
  109. package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +2 -2
  110. package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
  111. package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +1 -1
  112. package/src/main/js/sap/ushell/components/applicationIntegration/application/WebGUIStatefulHandler.js +5 -5
  113. package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +21 -26
  114. package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
  115. package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
  116. package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +1 -1
  117. package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +2 -2
  118. package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +6 -2
  119. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +44 -6
  120. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +22 -9
  121. package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +23 -16
  122. package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
  123. package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
  124. package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
  125. package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +1 -1
  126. package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
  127. package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
  128. package/src/main/js/sap/ushell/components/factsheet/controls/PictureTile.js +1 -2
  129. package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +5 -6
  130. package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerItem.js +1 -2
  131. package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +3 -3
  132. package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.controller.js +0 -1
  133. package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.view.xml +7 -6
  134. package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
  135. package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +2 -7
  136. package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +13 -13
  137. package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
  138. package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
  139. package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
  140. package/src/main/js/sap/ushell/components/pages/ActionMode.js +10 -10
  141. package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
  142. package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
  143. package/src/main/js/sap/ushell/components/pages/StateManager.js +2 -2
  144. package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +12 -12
  145. package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +93 -95
  146. package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
  147. package/src/main/js/sap/ushell/components/pages/view/PageRuntime.view.xml +31 -23
  148. package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
  149. package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
  150. package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +7 -6
  151. package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
  152. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -3
  153. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +2 -2
  154. package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
  155. package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +2 -2
  156. package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
  157. package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +1 -1
  158. package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
  159. package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +2 -2
  160. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +74 -16
  161. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchFieldFragment.fragment.xml +2 -1
  162. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -2
  163. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -2
  164. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
  165. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -2
  166. package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
  167. package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +8 -9
  168. package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +53 -13
  169. package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +5 -0
  170. package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +41 -38
  171. package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +1 -1
  172. package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +2 -2
  173. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +1 -1
  174. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +7 -3
  175. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
  176. package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
  177. package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.view.js +0 -2
  178. package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTileTmp.view.js +0 -2
  179. package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTileTmp.view.js +0 -2
  180. package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.js +0 -2
  181. package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +1 -1
  182. package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.js +0 -2
  183. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +41 -48
  184. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +3 -3
  185. package/src/main/js/sap/ushell/components/tiles/utils.js +1 -1
  186. package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +5 -18
  187. package/src/main/js/sap/ushell/components/visualizationOrganizer/VisualizationOrganizerPopover.fragment.xml +3 -3
  188. package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
  189. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
  190. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +65 -95
  191. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +182 -90
  192. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.js +1 -1
  193. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
  194. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
  195. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
  196. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
  197. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +0 -2
  198. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
  199. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +53 -3
  200. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +3 -0
  201. package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
  202. package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +1 -0
  203. package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
  204. package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +6 -2
  205. package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
  206. package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +1 -2
  207. package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +1 -2
  208. package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
  209. package/src/main/js/sap/ushell/library.js +4 -2
  210. package/src/main/js/sap/ushell/navigationMode.js +10 -5
  211. package/src/main/js/sap/ushell/override.js +1 -1
  212. package/src/main/js/sap/ushell/performance/FesrEnhancer.js +248 -187
  213. package/src/main/js/sap/ushell/performance/ShellAnalytics.js +206 -207
  214. package/src/main/js/sap/ushell/performance/StatisticalRecord.js +366 -230
  215. package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
  216. package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +39 -23
  217. package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +105 -25
  218. package/src/main/js/sap/ushell/renderers/fiori2/Shell.controller.js +63 -52
  219. package/src/main/js/sap/ushell/renderers/fiori2/ShellLayout.js +1 -1
  220. package/src/main/js/sap/ushell/renderers/fiori2/resources/resources.properties +1 -1
  221. package/src/main/js/sap/ushell/renderers/fiori2/resources/resources_ko.properties +1 -1
  222. package/src/main/js/sap/ushell/renderers/fiori2/search/searchComponent/manifest.json +1 -1
  223. package/src/main/js/sap/ushell/services/AppConfiguration.js +3 -3
  224. package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
  225. package/src/main/js/sap/ushell/services/AppState.js +2 -3
  226. package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
  227. package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
  228. package/src/main/js/sap/ushell/services/CommonDataModel.js +4 -5
  229. package/src/main/js/sap/ushell/services/Configuration.js +1 -2
  230. package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +2 -2
  231. package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
  232. package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +36 -33
  233. package/src/main/js/sap/ushell/services/DarkModeSupport.js +2 -2
  234. package/src/main/js/sap/ushell/services/EndUserFeedback.js +2 -2
  235. package/src/main/js/sap/ushell/services/LaunchPage.js +11 -8
  236. package/src/main/js/sap/ushell/services/Menu.js +31 -37
  237. package/src/main/js/sap/ushell/services/Message.js +1 -2
  238. package/src/main/js/sap/ushell/services/MessageBroker.js +1 -2
  239. package/src/main/js/sap/ushell/services/NavTargetResolution.js +58 -9
  240. package/src/main/js/sap/ushell/services/Navigation.js +1356 -0
  241. package/src/main/js/sap/ushell/services/NavigationDataProvider.js +7 -5
  242. package/src/main/js/sap/ushell/services/Notifications.js +16 -16
  243. package/src/main/js/sap/ushell/services/PageBuilding.js +1 -2
  244. package/src/main/js/sap/ushell/services/PagePersistence.js +6 -6
  245. package/src/main/js/sap/ushell/services/PageReferencing.js +2 -2
  246. package/src/main/js/sap/ushell/services/Pages.js +24 -25
  247. package/src/main/js/sap/ushell/services/Personalization.js +5 -5
  248. package/src/main/js/sap/ushell/services/PluginManager.js +1 -2
  249. package/src/main/js/sap/ushell/services/ReferenceResolver.js +2 -2
  250. package/src/main/js/sap/ushell/services/Search.js +1 -1
  251. package/src/main/js/sap/ushell/services/SearchCEP.js +2 -1
  252. package/src/main/js/sap/ushell/services/SearchableContent.js +85 -59
  253. package/src/main/js/sap/ushell/services/ShellNavigation.js +59 -17
  254. package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +115 -39
  255. package/src/main/js/sap/ushell/services/SmartNavigation.js +4 -4
  256. package/src/main/js/sap/ushell/services/SpaceContent.js +5 -6
  257. package/src/main/js/sap/ushell/services/SupportTicket.js +1 -1
  258. package/src/main/js/sap/ushell/services/UITracer.js +5 -3
  259. package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
  260. package/src/main/js/sap/ushell/services/URLTemplate.js +2 -2
  261. package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +7 -7
  262. package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -2
  263. package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
  264. package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
  265. package/src/main/js/sap/ushell/services/UserRecents.js +91 -69
  266. package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +10 -6
  267. package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -3
  268. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
  269. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +1 -1
  270. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +2 -5
  271. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +2 -2
  272. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +11 -11
  273. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
  274. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +1 -1
  275. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +6 -6
  276. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
  277. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +2 -2
  278. package/src/main/js/sap/ushell/services/_CommonDataModel/PersonalizationProcessor.js +1 -2
  279. package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +1 -1
  280. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
  281. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
  282. package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +9 -14
  283. package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
  284. package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
  285. package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +34 -21
  286. package/src/main/js/sap/ushell/services/_Personalization/Variant.js +5 -2
  287. package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +18 -12
  288. package/src/main/js/sap/ushell/services/_Personalization/utils.js +2 -2
  289. package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
  290. package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +3 -3
  291. package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
  292. package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +1 -1
  293. package/src/main/js/sap/ushell/services/_UserRecents/RecentActivity.js +206 -214
  294. package/src/main/js/sap/ushell/services/_UserRecents/RecentAppsUsage.js +46 -54
  295. package/src/main/js/sap/ushell/services/_UserRecents/RecentsList.js +39 -40
  296. package/src/main/js/sap/ushell/services/_UserRecents/UserRecentsBase.js +29 -36
  297. package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstance.js +1 -1
  298. package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceAbap.js +1 -1
  299. package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceCdm.js +1 -1
  300. package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLaunchPage.js +10 -8
  301. package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +2 -2
  302. package/src/main/js/sap/ushell/services/appstate/LimitedBuffer.js +1 -2
  303. package/src/main/js/sap/ushell/services/appstate/Sequentializer.js +1 -1
  304. package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
  305. package/src/main/js/sap/ushell/themes/base/SearchCEP.less +8 -0
  306. package/src/main/js/sap/ushell/themes/base/ShellHeader.less +12 -6
  307. package/src/main/js/sap/ushell/themes/base/WorkPage.less +34 -4
  308. package/src/main/js/sap/ushell/themes/base/WorkPageCell.less +3 -1
  309. package/src/main/js/sap/ushell/themes/base/WorkPageColumn.less +3 -76
  310. package/src/main/js/sap/ushell/themes/base/WorkPageColumnResizer.less +2 -1
  311. package/src/main/js/sap/ushell/themes/base/WorkPageRow.less +822 -6
  312. package/src/main/js/sap/ushell/themes/sap_horizon/SearchCEP.less +4 -0
  313. package/src/main/js/sap/ushell/themes/sap_horizon/ToolAreaItem.less +1 -1
  314. package/src/main/js/sap/ushell/themes/sap_horizon_dark/SearchCEP.less +4 -0
  315. package/src/main/js/sap/ushell/themes/sap_horizon_dark/ToolAreaItem.less +1 -1
  316. package/src/main/js/sap/ushell/themes/sap_horizon_hcb/SearchCEP.less +5 -0
  317. package/src/main/js/sap/ushell/themes/sap_horizon_hcw/SearchCEP.less +5 -0
  318. package/src/main/js/sap/ushell/ui/AppContainer.js +0 -1
  319. package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +1 -1
  320. package/src/main/js/sap/ushell/ui/QuickAccess.js +2 -2
  321. package/src/main/js/sap/ushell/ui/ShellHeader.js +21 -5
  322. package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +1 -0
  323. package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +0 -1
  324. package/src/main/js/sap/ushell/ui/bookmark/SaveOnPage.view.xml +6 -6
  325. package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +1 -1
  326. package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
  327. package/src/main/js/sap/ushell/ui/footerbar/AboutButton.js +0 -1
  328. package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +32 -17
  329. package/src/main/js/sap/ushell/ui/footerbar/ContactSupportButton.js +0 -1
  330. package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +0 -1
  331. package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +0 -1
  332. package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +0 -1
  333. package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +1 -12
  334. package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +0 -1
  335. package/src/main/js/sap/ushell/ui/launchpad/ActionItem.js +0 -1
  336. package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +0 -1
  337. package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +0 -1
  338. package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
  339. package/src/main/js/sap/ushell/ui/launchpad/FailedTileDialog.js +4 -4
  340. package/src/main/js/sap/ushell/ui/launchpad/GroupHeaderActions.js +0 -1
  341. package/src/main/js/sap/ushell/ui/launchpad/GroupListItem.js +0 -1
  342. package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +1 -1
  343. package/src/main/js/sap/ushell/ui/launchpad/LoadingDialog.js +0 -1
  344. package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
  345. package/src/main/js/sap/ushell/ui/launchpad/PlusTile.js +0 -1
  346. package/src/main/js/sap/ushell/ui/launchpad/Section.js +3 -3
  347. package/src/main/js/sap/ushell/ui/launchpad/Tile.js +0 -1
  348. package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +0 -1
  349. package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +4 -5
  350. package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +1 -1
  351. package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +7 -8
  352. package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +1 -1
  353. package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -2
  354. package/src/main/js/sap/ushell/ui/tile/DynamicTile.js +0 -1
  355. package/src/main/js/sap/ushell/ui/tile/ImageTile.js +0 -1
  356. package/src/main/js/sap/ushell/ui/tile/StaticTile.js +0 -1
  357. package/src/main/js/sap/ushell/ui/tile/TileBase.js +0 -1
  358. package/src/main/js/sap/ushell/ui/utils.js +1 -1
  359. package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
  360. package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
  361. package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +1 -1
  362. package/src/main/js/sap/ushell/utils/HttpClient.js +0 -1
  363. package/src/main/js/sap/ushell/utils/RestrictedJSONModel.js +1 -1
  364. package/src/main/js/sap/ushell/utils/UrlParsing.js +18 -14
  365. package/src/main/js/sap/ushell/utils/UrlShortening.js +2 -2
  366. package/src/main/js/sap/ushell/utils/objectOperations.js +1 -1
  367. package/src/main/js/sap/ushell/utils/type.js +1 -1
  368. package/src/main/js/sap/ushell/utils/utilsCdm.js +3 -3
  369. package/src/main/js/sap/ushell/utils.js +128 -21
  370. package/src/test/js/sap/ushell/bootstrap/sandbox.js +2 -2
  371. package/ui5.yaml +1 -0
  372. package/src/main/js/sap/ushell/appRuntime/ui5/services/Menu.js +0 -22
@@ -30,9 +30,8 @@ sap.ui.define([
30
30
  * @extends sap.ui.core.Control
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.118.0
33
+ * @version 1.119.2
34
34
  *
35
- * @constructor
36
35
  * @private
37
36
  * @since 1.15.1
38
37
  * @alias sap.ushell.ui.shell.ShellHeadItem
@@ -255,8 +254,8 @@ sap.ui.define([
255
254
  } else {
256
255
  var maxValue = this.getFloatingNumberMaxValue();
257
256
  this._oAriaDescribedbyText.setText((count > maxValue)
258
- ? resources.i18n.getText("NotificationToggleButton.NewNotifications.MaxExceeded", maxValue)
259
- : resources.i18n.getText("NotificationToggleButton.NewNotifications", count)
257
+ ? resources.i18n.getText("NotificationToggleButton.NewNotifications.MaxExceeded", [maxValue])
258
+ : resources.i18n.getText("NotificationToggleButton.NewNotifications", [count])
260
259
  );
261
260
  }
262
261
  break;
@@ -282,14 +281,14 @@ sap.ui.define([
282
281
  case FloatingNumberType.Notifications:
283
282
  if (!count) { return resources.i18n.getText("NotificationToggleButton.NoNewNotifications"); }
284
283
  return (count > maxValue
285
- ? resources.i18n.getText("NotificationToggleButton.NewNotifications.MaxExceeded", maxValue)
286
- : resources.i18n.getText("NotificationToggleButton.NewNotifications", count));
284
+ ? resources.i18n.getText("NotificationToggleButton.NewNotifications.MaxExceeded", [maxValue])
285
+ : resources.i18n.getText("NotificationToggleButton.NewNotifications", [count]));
287
286
  case FloatingNumberType.OverflowButton:
288
287
  var sTooltip = resources.i18n.getText("shellHeaderOverflowBtn_tooltip");
289
288
  if (!count) { return sTooltip; }
290
289
  sTooltip += " (" + (count > maxValue
291
- ? resources.i18n.getText("NotificationToggleButton.NewNotifications.MaxExceeded", maxValue)
292
- : resources.i18n.getText("NotificationToggleButton.NewNotifications", count)) + ")";
290
+ ? resources.i18n.getText("NotificationToggleButton.NewNotifications.MaxExceeded", [maxValue])
291
+ : resources.i18n.getText("NotificationToggleButton.NewNotifications", [count])) + ")";
293
292
  return sTooltip;
294
293
  }
295
294
  };
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @extends sap.ui.core.Control
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.118.0
48
+ * @version 1.119.2
49
49
  *
50
50
  * @private
51
51
  * @alias sap.ushell.ui.shell.SysInfoBar
@@ -18,9 +18,8 @@ sap.ui.define([
18
18
  * A control to be placed in the tool area
19
19
  * @extends sap.ui.core.Control
20
20
  *
21
- * @version 1.118.0
21
+ * @version 1.119.2
22
22
  *
23
- * @constructor
24
23
  * @public
25
24
  * @since 1.30.5
26
25
  *
@@ -28,7 +28,6 @@ sap.ui.define([
28
28
  * An applauncher for apps that need to display dynamically updated information
29
29
  * @extends sap.ushell.ui.tile.TileBase
30
30
  *
31
- * @constructor
32
31
  * @public
33
32
  * @name sap.ushell.ui.tile.DynamicTile
34
33
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
@@ -22,7 +22,6 @@ sap.ui.define([
22
22
  * Add your documentation for the newui/tile/ImageTile
23
23
  * @extends sap.ushell.ui.tile.TileBase
24
24
  *
25
- * @constructor
26
25
  * @public
27
26
  * @name sap.ushell.ui.tile.ImageTile
28
27
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
@@ -25,7 +25,6 @@ sap.ui.define([
25
25
  * An applauncher tile for simple, static apps, displaying title, subtitle, an icon and additional information
26
26
  * @extends sap.ushell.ui.tile.TileBase
27
27
  *
28
- * @constructor
29
28
  * @since 1.15.0
30
29
  * @public
31
30
  * @name sap.ushell.ui.tile.StaticTile
@@ -29,7 +29,6 @@ sap.ui.define([
29
29
  * Base class for tiles that already provides several visual elements like title, subtitle, icon and additional information
30
30
  * @extends sap.ui.core.Control
31
31
  *
32
- * @constructor
33
32
  * @public
34
33
  * @name sap.ushell.ui.tile.TileBase
35
34
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
@@ -6,7 +6,7 @@
6
6
  * This is a utility module that collects common activities implemented
7
7
  * by controllers of different ui components.
8
8
  *
9
- * @version 1.118.0
9
+ * @version 1.119.2
10
10
  * @private
11
11
  */
12
12
 
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The ShellUIService UI5 service
5
5
  *
6
- * @version 1.118.0
6
+ * @version 1.119.2
7
7
  */
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The UserStatus UI5 service
5
5
  *
6
- * @version 1.118.0
6
+ * @version 1.119.2
7
7
  */
8
8
 
9
9
  /**
@@ -749,7 +749,7 @@ sap.ui.define([
749
749
  * Returns version number in use (e.g. 2 for Fiori 2.0). Will be used
750
750
  * for checking whether the Fiori 2.0 header should be used or not.
751
751
  *
752
- * @returns {number}
752
+ * @returns {int}
753
753
  * the version number
754
754
  *
755
755
  * @since 1.38.0
@@ -74,7 +74,6 @@ sap.ui.define([
74
74
  *
75
75
  * The necessary CSRF token handling is done automatically.
76
76
  *
77
- * @constructor
78
77
  * @class
79
78
  * @namespace sap.ushell.utils.XHttpClient
80
79
  *
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * Constructor for a new RestrictedJSONModel.
18
18
  *
19
19
  * @extends sap.ui.model.json.JSONModel
20
- * @constructor
20
+ * @class
21
21
  * @since 1.72.0
22
22
  *
23
23
  * @private
@@ -50,7 +50,6 @@ sap.ui.define([
50
50
  * notably we do not aim do "degrade" nicefully or support partial parsing of corrupted urls.
51
51
  *
52
52
  * @name sap.ushell.utils.UrlParsing
53
- * @constructor
54
53
  * @class
55
54
  * @since 1.94.0
56
55
  * @private
@@ -83,7 +82,7 @@ sap.ui.define([
83
82
  *
84
83
  * @param {string} sShellHashString a valid (Shell) url, e.g. <br/>
85
84
  * <code>http://xx.b.c#Object-name~AFE2==?PV1=PV2&PV4=V5&/display/detail/7?UU=HH</code>
86
- * @returns {Object} the parsed result
85
+ * @returns {object} the parsed result
87
86
  * @since 1.94.0
88
87
  * @protected
89
88
  */
@@ -220,18 +219,23 @@ sap.ui.define([
220
219
  * @protected
221
220
  */
222
221
  UrlParsing.parseParameters = function (sParams) {
223
- var oUriParams = UriParameters.fromQuery(sParams);
224
- var vKeys = oUriParams.keys();
225
- var oKey = vKeys.next();
226
- var oParamObject = {};
222
+ try {
223
+ var oUriParams = UriParameters.fromQuery(sParams);
224
+ var vKeys = oUriParams.keys();
225
+ var oKey = vKeys.next();
226
+ var oParamObject = {};
227
227
 
228
- while (oKey.done === false) {
229
- // decodeURIComponent: required when a key has double encoding, e.g. "%2524" (BCP: 2180415300)
230
- // this extra decode is fine as long as literal "%" characters are not used on keys
231
- oParamObject[decodeURIComponent(oKey.value)] = oUriParams.getAll(oKey.value);
232
- oKey = vKeys.next();
228
+ while (oKey.done === false) {
229
+ // decodeURIComponent: required when a key has double encoding, e.g. "%2524" (BCP: 2180415300)
230
+ // this extra decode is fine as long as literal "%" characters are not used on keys
231
+ oParamObject[decodeURIComponent(oKey.value)] = oUriParams.getAll(oKey.value);
232
+ oKey = vKeys.next();
233
+ }
234
+ return oParamObject;
235
+ } catch (err) {
236
+ Log.error("URL parsing - malformed URL parameters string:", sParams);
237
+ return {};
233
238
  }
234
- return oParamObject;
235
239
  };
236
240
 
237
241
  /**
@@ -285,7 +289,7 @@ sap.ui.define([
285
289
  * combine members of a javascript object into a parameter string,
286
290
  * note that parameters are ordered in an arbitrary manner which is subject to change
287
291
  *
288
- * @param {Object} oParams any value { ABC : [1,"1 2"], DEF : ["4"]}
292
+ * @param {object} oParams any value { ABC : [1,"1 2"], DEF : ["4"]}
289
293
  * @returns {string} <code>ABC=1&ABC=1%202DEF=4</code>
290
294
  * Note that the result is *not* prefixed with a "?", parameter values are encodeURIComponent encoded.
291
295
  * @since 1.94.0
@@ -298,7 +302,7 @@ sap.ui.define([
298
302
  /**
299
303
  * Internal function
300
304
  *
301
- * @param {Object} oParams parameter object
305
+ * @param {object} oParams parameter object
302
306
  * @param {string} sDelimiter string to use as parameter delimiter (e.g., "&")
303
307
  * @param {string} sAssign string to use for parameter assignment (e.g., "=")
304
308
  * @returns {string} the result parameters
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * This module is for internal Shell usage only
7
7
  *
8
- * @version 1.118.0
8
+ * @version 1.119.2
9
9
  */
10
10
  sap.ui.define(["sap/base/Log", "sap/ushell/utils/UrlParsing"], function (Log, urlParsing) {
11
11
  "use strict";
@@ -260,7 +260,7 @@
260
260
  *
261
261
  * @param {Array} aArray an array of string containing the strings to match
262
262
  * @param {string} sTest the string to test for
263
- * @returns {integer} the index of a matching entry, or -1 if not found
263
+ * @returns {int} the index of a matching entry, or -1 if not found
264
264
  * @since 1.32.0
265
265
  * @private
266
266
  */
@@ -61,7 +61,7 @@ sap.ui.define([
61
61
  * @param {string|array} oAccessPath one or more access paths to nested properties as string or array.
62
62
  * E.g. "sap|flp.type" giving access to property o["sap.flp"].type of object o.
63
63
  * A bar '|' is used to signal a dot in the property name.
64
- * @param {Object} [oDefault] default value
64
+ * @param {object} [oDefault] default value
65
65
  * @returns {any} the value of the desired property, or the default value if the desired property is not defined in any object of <code>aObjects</code>.
66
66
  * <code>undefined</code> is taken as default value if not explicitly specified.
67
67
  * @private
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @param {variant} v
48
48
  * Any value
49
49
  *
50
- * @return {boolean}
50
+ * @returns {boolean}
51
51
  * Whether the passed value is defined
52
52
  *
53
53
  * @private
@@ -253,7 +253,7 @@ sap.ui.define([
253
253
  * Formats the target mappings contained in the CDM site projection into inbounds.
254
254
  *
255
255
  * @param {object} oSite the CDM site projection.
256
- * @return {object[]} The inbounds suitable for ClientSideTargetResolution service consumption.
256
+ * @returns {object[]} The inbounds suitable for ClientSideTargetResolution service consumption.
257
257
  */
258
258
  function formatSite (oSite) {
259
259
  if (!oSite) {
@@ -298,7 +298,7 @@ sap.ui.define([
298
298
  * Constructs a hash string from the given inbound.
299
299
  *
300
300
  * @param {object} oInbound oInbound structure as specified in App Descriptor schema.
301
- * @return {string} The constructed hash without leading "#", or undefined if not successful.
301
+ * @returns {string} The constructed hash without leading "#", or undefined if not successful.
302
302
  */
303
303
  function toHashFromInbound (oInbound) {
304
304
  var oShellHash,
@@ -340,7 +340,7 @@ sap.ui.define([
340
340
  * Constructs an hash string from the given outbound.
341
341
  *
342
342
  * @param {object} oOutbound Outbound structure as specified in App Descriptor schema.
343
- * @return {string} The constructed hash without leading "#", or undefined if not successful.
343
+ * @returns {string} The constructed hash without leading "#", or undefined if not successful.
344
344
  */
345
345
  function toHashFromOutbound (oOutbound) {
346
346
  var oShellHash,
@@ -467,7 +467,11 @@ sap.ui.define([
467
467
  };
468
468
 
469
469
  /**
470
- * Determines whether the given application type is to be embedded in an iframe (like gui or WDA applications).
470
+ * Determines whether the given application type is to be embedded in an iframe (like GUI or NWBC-wrapped WDA applications).
471
+ *
472
+ * Note:
473
+ * For now directly embedded WDA apps are handled differently! Therefore, application type "WDA" is NOT embedded in iframe
474
+ * in the sense of this function.
471
475
  *
472
476
  * @param {string} sApplicationType The type of the application.
473
477
  * @returns {boolean} Whether the ApplicationType is to be rendered embedded into an iframe
@@ -475,7 +479,7 @@ sap.ui.define([
475
479
  * @private
476
480
  */
477
481
  utils.isApplicationTypeEmbeddedInIframe = function (sApplicationType) {
478
- return sApplicationType === "NWBC" || sApplicationType === "WDA" || sApplicationType === "TR" || sApplicationType === "WCF";
482
+ return sApplicationType === "NWBC" || sApplicationType === "TR" || sApplicationType === "WCF";
479
483
  };
480
484
 
481
485
  /**
@@ -563,14 +567,38 @@ sap.ui.define([
563
567
  *
564
568
  * @param {string} sUrl The URL to be amended.
565
569
  * @param {string} sApplicationType The application type for the given URL.
570
+ *
566
571
  * @returns {string} The URL where the parameter should be appended to.
567
572
  * @private
573
+ * @deprecated since 1.119.0
568
574
  */
569
- utils.appendSapShellParam = function (sUrl, sApplicationType) {
575
+ utils.appendSapShellParamSync = function (sUrl, sApplicationType) {
570
576
  var sUrlSuffix = sApplicationType === "TR"
571
577
  ? ""
572
578
  : "-NWBC",
573
- sVersion = utils.getUi5Version();
579
+ sVersion = utils.getUi5VersionSync();
580
+ if (sVersion) {
581
+ // we pass it either completely or not at all
582
+ sUrl += sUrl.indexOf("?") >= 0 ? "&" : "?"; // FIXME: This is a bug.
583
+ sUrl += "sap-shell=" + encodeURIComponent("FLP" + sVersion + sUrlSuffix);
584
+ }
585
+ return sUrl;
586
+ };
587
+
588
+ /**
589
+ * Appends a "sap-shell" parameter to the given URL to indicate the FLP version to legacy applications.
590
+ * This method should be called only when it is necessary to add the sap-shell parameter to the URL.
591
+ *
592
+ * @param {string} sUrl The URL to be amended.
593
+ * @param {string} sApplicationType The application type for the given URL.
594
+ *
595
+ * @returns {Promise<string>} The URL where the parameter should be appended to.
596
+ * @private
597
+ * @since 1.119.0
598
+ */
599
+ utils.appendSapShellParam = async function (sUrl, sApplicationType) {
600
+ const sUrlSuffix = sApplicationType === "TR" ? "" : "-NWBC";
601
+ const sVersion = await utils.getUi5Version();
574
602
  if (sVersion) {
575
603
  // we pass it either completely or not at all
576
604
  sUrl += sUrl.indexOf("?") >= 0 ? "&" : "?"; // FIXME: This is a bug.
@@ -616,13 +644,20 @@ sap.ui.define([
616
644
  return undefined;
617
645
  }
618
646
 
619
- utils.getUi5VersionAsync = function () {
647
+ /**
648
+ * Returns the current UI5 version e.g. "1.119.0"
649
+ * @returns {Promise<string>} the UI5 version
650
+ * @since 1.119.0
651
+ * @private
652
+ */
653
+ utils.getUi5Version = function () {
620
654
  return new Promise(function (resolve, reject) {
621
655
  sap.ui.require(["sap/ui/VersionInfo"], function (VersionInfo) {
622
- VersionInfo.load().then(
623
- function (oVersionInfo) {
656
+ VersionInfo.load()
657
+ .then(function (oVersionInfo) {
624
658
  resolve(_extractUi5Version(oVersionInfo.version));
625
- }).catch(function () {
659
+ })
660
+ .catch(function () {
626
661
  Log.error("sap ui version could not be determined, using Configuration.getVersion() (core version) as fallback");
627
662
  resolve(_extractUi5Version(Configuration.getVersion()));
628
663
  });
@@ -630,7 +665,13 @@ sap.ui.define([
630
665
  });
631
666
  };
632
667
 
633
- utils.getUi5Version = function () {
668
+ /**
669
+ * Returns the current UI5 version e.g. "1.119.0"
670
+ * @returns {string} the UI5 version
671
+ * @private
672
+ * @deprecated since 1.119.0
673
+ */
674
+ utils.getUi5VersionSync = function () {
634
675
  var sVersion;
635
676
 
636
677
  try { // in the sandbox localhost scenario, "sap.ui.getVersionInfo()" triggers an exception
@@ -1058,10 +1099,30 @@ sap.ui.define([
1058
1099
  };
1059
1100
 
1060
1101
  /**
1061
- * @param {function} fnFunction The function.
1062
- * @param {array} aArguments The arguments.
1063
- * @param {string[]} aArgumentsNames array of the argument names for non-trivial functions with more than one argument
1064
- * @returns {jQuery.Deferred.promise|function} a promise or a function
1102
+ * Calls the handler with the provided list of arguments
1103
+ * simple case:
1104
+ * aArguments=[a,b,c] => fnFunction(a,b,c)
1105
+ * returns <return value of call>
1106
+ *
1107
+ * complex case:
1108
+ * aArguments=[[
1109
+ * [a,b,c], // => fnFunction(a,b,c)
1110
+ * [d,e,f], // => fnFunction(d,e,f)
1111
+ * [g,h,i] // => fnFunction(g,h,i)
1112
+ * ]]
1113
+ * returns [
1114
+ * [<return value of first call>],
1115
+ * [<return value of second call>]
1116
+ * [<return value of third call>]
1117
+ * ]
1118
+ *
1119
+ * edge case:
1120
+ * aArguments=[[]] => no call
1121
+ * returns []
1122
+ *
1123
+ * @param {function} fnFunction The function to call
1124
+ * @param {object[]} aArguments A list of arguments or a list of calls with their arguments
1125
+ * @returns {jQuery.Deferred.promise} Resolves once all handlers are done
1065
1126
  */
1066
1127
  utils.invokeUnfoldingArrayArguments = function (fnFunction, aArguments) {
1067
1128
  var that = this,
@@ -1160,23 +1221,23 @@ sap.ui.define([
1160
1221
  iDays = parseInt(iTimeGap / (1000 * 60 * 60 * 24), 10);
1161
1222
  if (iDays > 0) {
1162
1223
  if (iDays === 1) {
1163
- return ushellResources.i18n.getText("time_day", iDays);
1224
+ return ushellResources.i18n.getText("time_day", [iDays]);
1164
1225
  }
1165
- return ushellResources.i18n.getText("time_days", iDays);
1226
+ return ushellResources.i18n.getText("time_days", [iDays]);
1166
1227
  }
1167
1228
  iHours = parseInt(iTimeGap / (1000 * 60 * 60), 10);
1168
1229
  if (iHours > 0) {
1169
1230
  if (iHours === 1) {
1170
- return ushellResources.i18n.getText("time_hour", iHours);
1231
+ return ushellResources.i18n.getText("time_hour", [iHours]);
1171
1232
  }
1172
- return ushellResources.i18n.getText("time_hours", iHours);
1233
+ return ushellResources.i18n.getText("time_hours", [iHours]);
1173
1234
  }
1174
1235
  iMinutes = parseInt(iTimeGap / (1000 * 60), 10);
1175
1236
  if (iMinutes > 0) {
1176
1237
  if (iMinutes === 1) {
1177
- return ushellResources.i18n.getText("time_minute", iMinutes);
1238
+ return ushellResources.i18n.getText("time_minute", [iMinutes]);
1178
1239
  }
1179
- return ushellResources.i18n.getText("time_minutes", iMinutes);
1240
+ return ushellResources.i18n.getText("time_minutes", [iMinutes]);
1180
1241
  }
1181
1242
  return ushellResources.i18n.getText("just_now");
1182
1243
  };
@@ -1611,9 +1672,14 @@ sap.ui.define([
1611
1672
  */
1612
1673
  utils.promisify = function (vValue) {
1613
1674
  if (vValue.done) { // jQuery.Deferred
1614
- return new Promise(function (resolve, reject) {
1675
+ return new Promise((resolve, reject) => {
1615
1676
  vValue
1616
- .done(resolve)
1677
+ .done((...args) => {
1678
+ if (args.length > 1) {
1679
+ Log.warning("jQuery.Deferred provided multiple return values, but only single return values are supported!");
1680
+ }
1681
+ resolve(args[0]);
1682
+ })
1617
1683
  .fail(reject);
1618
1684
  });
1619
1685
  }
@@ -1623,5 +1689,46 @@ sap.ui.define([
1623
1689
  return Promise.resolve(vValue);
1624
1690
  };
1625
1691
 
1692
+ /**
1693
+ * Wraps the sap.ui.require into a promise
1694
+ * @param {string[]} aModuleNames A list of module names
1695
+ * @returns {Promise<object[]>} Resolves the list of required modules
1696
+ * @private
1697
+ * @since 1.119.0
1698
+ */
1699
+ utils.requireAsync = function (aModuleNames) {
1700
+ return new Promise(function (resolve, reject) {
1701
+ sap.ui.require(aModuleNames, (...aModules) => {
1702
+ resolve(aModules);
1703
+ });
1704
+ });
1705
+ };
1706
+
1707
+
1708
+ /**
1709
+ * Requests Theming Parameters in an async way
1710
+ * @param {string[]} aNames A list of ThemingParameters names
1711
+ * @returns {Promise<string[]>} Resolves the list of requested parameters
1712
+ *
1713
+ * @private
1714
+ * @since 1.119.0
1715
+ */
1716
+ utils.getThemingParameters = async function (aNames) {
1717
+ const oParameterMap = await new Promise((resolve, reject) => {
1718
+ sap.ui.require(["sap/ui/core/theming/Parameters"], (ThemingParameters) => {
1719
+ const oParameterMap = ThemingParameters.get({
1720
+ name: aNames,
1721
+ callback: resolve
1722
+ });
1723
+ if (oParameterMap) {
1724
+ resolve(oParameterMap);
1725
+ }
1726
+ });
1727
+ });
1728
+ return aNames.map((sName) => {
1729
+ return oParameterMap[sName];
1730
+ });
1731
+ };
1732
+
1626
1733
  return utils;
1627
1734
  }, /* bExport= */ false);
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's bootstrap code for development sandbox scenarios.
5
5
  *
6
- * @version 1.118.0
6
+ * @version 1.119.2
7
7
  */
8
8
 
9
9
  (function () {
@@ -221,7 +221,7 @@
221
221
  * Get the path of our own script; module paths are registered relative to this path, not
222
222
  * relative to the HTML page we introduce an ID for the bootstrap script, similar to UI5;
223
223
  * allows to reference it later as well
224
- * @return {String} path of the bootstrap script
224
+ * @returns {string} path of the bootstrap script
225
225
  */
226
226
  function getBootstrapScriptPath () {
227
227
  var oScripts, oBootstrapScript, sBootstrapScriptUrl, sBootstrapScriptPath;
package/ui5.yaml CHANGED
@@ -267,6 +267,7 @@ builder:
267
267
  - sap/ushell/iconfonts.js
268
268
  - sap/ushell/override.js
269
269
  - sap/ushell/renderers/fiori2/Renderer.js
270
+ - sap/ushell/renderers/fiori2/RendererExtensions.js
270
271
  - sap/ushell/renderers/fiori2/Shell.controller.js
271
272
  - sap/ushell/renderers/fiori2/Shell.view.js
272
273
  - sap/ushell/renderers/fiori2/ShellAsync.view.js
@@ -1,22 +0,0 @@
1
- // Copyright (c) 2009-2023 SAP SE, All Rights Reserved
2
- sap.ui.define([
3
- "sap/ushell/services/Menu",
4
- "sap/ushell/appRuntime/ui5/AppRuntimeService"
5
- ], function (Menu, AppRuntimeService) {
6
- "use strict";
7
-
8
- function MenuProxy () {
9
- Menu.call(this, arguments);
10
-
11
- this.getSpacesPagesHierarchy = function () {
12
- return new Promise(function (fnResolve) {
13
- AppRuntimeService.sendMessageToOuterShell("sap.ushell.services.Menu.getSpacesPagesHierarchy").done(fnResolve);
14
- });
15
- };
16
- }
17
-
18
- MenuProxy.prototype = Menu.prototype;
19
- MenuProxy.hasNoAdapter = Menu.hasNoAdapter;
20
-
21
- return MenuProxy;
22
- });