@sapui5/sap.ushell 1.120.7 → 1.121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (601) 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/AppInfoParameters.js +46 -49
  4. package/src/main/js/sap/ushell/CanvasShapesManager.js +8 -7
  5. package/src/main/js/sap/ushell/Container.js +333 -108
  6. package/src/main/js/sap/ushell/EventHub.js +6 -9
  7. package/src/main/js/sap/ushell/Fiori20Adapter.js +6 -7
  8. package/src/main/js/sap/ushell/Fiori20AdapterTest.js +5 -7
  9. package/src/main/js/sap/ushell/Layout.js +20 -16
  10. package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
  11. package/src/main/js/sap/ushell/SessionHandler.js +20 -12
  12. package/src/main/js/sap/ushell/System.js +4 -2
  13. package/src/main/js/sap/ushell/TechnicalParameters.js +34 -57
  14. package/src/main/js/sap/ushell/UIActions.js +28 -39
  15. package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
  16. package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +8 -7
  17. package/src/main/js/sap/ushell/Ui5ServiceFactory.js +10 -10
  18. package/src/main/js/sap/ushell/User.js +6 -4
  19. package/src/main/js/sap/ushell/UserActivityLog.js +13 -11
  20. package/src/main/js/sap/ushell/_ApplicationType/guiResolution.js +15 -19
  21. package/src/main/js/sap/ushell/_ApplicationType/systemAlias.js +5 -3
  22. package/src/main/js/sap/ushell/_ApplicationType/ui5Resolution.js +11 -10
  23. package/src/main/js/sap/ushell/_ApplicationType/urlTemplateResolution.js +17 -15
  24. package/src/main/js/sap/ushell/_ApplicationType/utils.js +7 -7
  25. package/src/main/js/sap/ushell/_ApplicationType/wdaResolution.js +8 -6
  26. package/src/main/js/sap/ushell/_Config/utils.js +1 -1
  27. package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
  28. package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
  29. package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
  30. package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +2 -2
  31. package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
  32. package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
  33. package/src/main/js/sap/ushell/adapters/AppVariantPersonalizationAdapter.js +5 -3
  34. package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +6 -11
  35. package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +6 -16
  36. package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
  37. package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +18 -14
  38. package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +16 -21
  39. package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +7 -18
  40. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
  41. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
  42. package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
  43. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
  44. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
  45. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
  46. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
  47. package/src/main/js/sap/ushell/adapters/cdm/_Personalization/internals.js +9 -9
  48. package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
  49. package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
  50. package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +36 -13
  51. package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +2629 -0
  52. package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +4 -2525
  53. package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
  54. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
  55. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
  56. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +13 -1
  57. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
  58. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +91 -25
  59. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
  60. package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +6 -6
  61. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +31 -6
  62. package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +7 -6
  63. package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +10 -20
  64. package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
  65. package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +14 -19
  66. package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +18 -20
  67. package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +25 -18
  68. package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +1558 -0
  69. package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +4 -1551
  70. package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +3 -3
  71. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +2 -4
  72. package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
  73. package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +1 -1
  74. package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +11 -8
  75. package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +1 -1
  76. package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
  77. package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
  78. package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
  79. package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
  80. package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +11 -23
  81. package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
  82. package/src/main/js/sap/ushell/api/RTA.js +27 -0
  83. package/src/main/js/sap/ushell/api/workpage/Designtime.js +69 -0
  84. package/src/main/js/sap/ushell/api/workpage/Runtime.js +97 -0
  85. package/src/main/js/sap/ushell/appRuntime/neo/AppInfoService.js +12 -3
  86. package/src/main/js/sap/ushell/appRuntime/neo/AppRuntimeNeo.js +4 -0
  87. package/src/main/js/sap/ushell/appRuntime/neo/ProxyAppUtils.js +4 -0
  88. package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +82 -78
  89. package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeContext.js +4 -3
  90. package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeService.js +8 -0
  91. package/src/main/js/sap/ushell/appRuntime/ui5/SessionHandlerAgent.js +35 -37
  92. package/src/main/js/sap/ushell/appRuntime/ui5/performance/FesrEnhancer.js +4 -5
  93. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils.js +2 -8
  94. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Trigger.js +9 -5
  95. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +6 -4
  96. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en.properties +0 -7
  97. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en_US_saprigi.properties +5 -5
  98. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +4 -3
  99. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en.properties +0 -4
  100. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en_US_saprigi.properties +2 -2
  101. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/AccessKeysAgent.js +1 -1
  102. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +14 -14
  103. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +2 -2
  104. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +8 -1
  105. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +39 -39
  106. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +15 -16
  107. package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +12 -54
  108. package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +154 -0
  109. package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -3
  110. package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +221 -206
  111. package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +15 -14
  112. package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +35 -55
  113. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +10 -14
  114. package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +212 -0
  115. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +6 -5
  116. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +67 -0
  117. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +4 -4
  118. package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +9 -3
  119. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/ContainerAdapter.js +9 -10
  120. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/EmptyAdapter.js +3 -0
  121. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
  122. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/FLPScheduler.js +12 -6
  123. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/StepConfiguration.json +1 -3
  124. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +2 -2
  125. package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +6 -7
  126. package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-dev.js +2 -1
  127. package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-loader.js +15 -5
  128. package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def.js +2 -2
  129. package/src/main/js/sap/ushell/bootstrap/cdm/cdm.boot.task.js +2 -2
  130. package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +14 -0
  131. package/src/main/js/sap/ushell/bootstrap/cdm.js +2 -2
  132. package/src/main/js/sap/ushell/bootstrap/common/common.boot.path.js +2 -2
  133. package/src/main/js/sap/ushell/bootstrap/common/common.boot.script.js +2 -2
  134. package/src/main/js/sap/ushell/bootstrap/common/common.boot.task.js +2 -2
  135. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.extractLibs.js +2 -2
  136. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +6 -6
  137. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5language.js +4 -4
  138. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ushell.js +37 -41
  139. package/src/main/js/sap/ushell/bootstrap/common/common.constants.js +2 -2
  140. package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +31 -20
  141. package/src/main/js/sap/ushell/bootstrap/common/common.debug.mode.js +2 -2
  142. package/src/main/js/sap/ushell/bootstrap/common/common.load.bootstrapExtension.js +2 -2
  143. package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +1 -1
  144. package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +2 -2
  145. package/src/main/js/sap/ushell/bootstrap/common/common.load.model.js +3 -3
  146. package/src/main/js/sap/ushell/bootstrap/common/common.load.ui5theme.js +3 -3
  147. package/src/main/js/sap/ushell/bootstrap/common/common.read.metatags.js +2 -2
  148. package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +5 -4
  149. package/src/main/js/sap/ushell/bootstrap/common/common.util.js +48 -14
  150. package/src/main/js/sap/ushell/bootstrap/sandbox2.js +8 -9
  151. package/src/main/js/sap/ushell/bootstrap/ui5loader-config.js +2 -2
  152. package/src/main/js/sap/ushell/components/CatalogsManager.js +49 -47
  153. package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +57 -45
  154. package/src/main/js/sap/ushell/components/DestroyHelper.js +2 -2
  155. package/src/main/js/sap/ushell/components/HeaderManager.js +3 -3
  156. package/src/main/js/sap/ushell/components/HomepageManager.js +27 -29
  157. package/src/main/js/sap/ushell/components/MessagingHelper.js +2 -2
  158. package/src/main/js/sap/ushell/components/SharedComponentUtils.js +13 -10
  159. package/src/main/js/sap/ushell/components/StateHelper.js +1 -1
  160. package/src/main/js/sap/ushell/components/_HeaderManager/AddHeadEndItemsStrategy.js +15 -15
  161. package/src/main/js/sap/ushell/components/_HeaderManager/AddHeadItemsStrategy.js +3 -3
  162. package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +4 -4
  163. package/src/main/js/sap/ushell/components/_HeaderManager/RemoveItemsStrategy.js +2 -2
  164. package/src/main/js/sap/ushell/components/_HeaderManager/ShellHeader.controller.js +13 -13
  165. package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +3 -3
  166. package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +1 -1
  167. package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +4 -4
  168. package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +9 -8
  169. package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +6 -6
  170. package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +29 -16
  171. package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +17 -17
  172. package/src/main/js/sap/ushell/components/appfinder/Component.js +4 -4
  173. package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +7 -7
  174. package/src/main/js/sap/ushell/components/appfinder/EasyAccessView.js +3 -9
  175. package/src/main/js/sap/ushell/components/appfinder/GroupListPopover.controller.js +3 -3
  176. package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +6 -7
  177. package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +2 -4
  178. package/src/main/js/sap/ushell/components/appfinder/HierarchyFoldersView.js +3 -3
  179. package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +9 -5
  180. package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
  181. package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +38 -55
  182. package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +20 -22
  183. package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +22 -33
  184. package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +563 -372
  185. package/src/main/js/sap/ushell/components/applicationIntegration/application/WebGUIStatefulHandler.js +8 -7
  186. package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +8 -6
  187. package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +9 -7
  188. package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +6 -5
  189. package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +2 -2
  190. package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +6 -5
  191. package/src/main/js/sap/ushell/components/cepsearchresult/app/Component.js +1 -1
  192. package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +2 -2
  193. package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Component.js +2 -2
  194. package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en.properties +0 -34
  195. package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en_US_saprigi.properties +37 -37
  196. package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en.properties +0 -11
  197. package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en_US_saprigi.properties +9 -9
  198. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.css +4 -0
  199. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Highlighter.js +1 -3
  200. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Paginator.js +1 -3
  201. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +27 -1
  202. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ca.properties +3 -3
  203. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en.properties +0 -111
  204. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_US_saprigi.properties +109 -109
  205. package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +105 -96
  206. package/src/main/js/sap/ushell/components/container/IframePOSTUtils.js +13 -13
  207. package/src/main/js/sap/ushell/components/container/resources/resources_en.properties +0 -9
  208. package/src/main/js/sap/ushell/components/container/resources/resources_en_US_saprigi.properties +6 -6
  209. package/src/main/js/sap/ushell/components/contentFinder/Component.js +54 -105
  210. package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +108 -142
  211. package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +16 -11
  212. package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +9 -7
  213. package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
  214. package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +6 -6
  215. package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +4 -2
  216. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +0 -29
  217. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +24 -24
  218. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +37 -17
  219. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +5 -3
  220. package/src/main/js/sap/ushell/components/contentFinder/view/ContentFinderDialog.view.xml +9 -4
  221. package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
  222. package/src/main/js/sap/ushell/components/factsheet/controls/PictureTileRenderer.js +2 -1
  223. package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerRenderer.js +2 -1
  224. package/src/main/js/sap/ushell/components/homepage/ActionMode.js +23 -19
  225. package/src/main/js/sap/ushell/components/homepage/Component.js +3 -3
  226. package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +3 -2
  227. package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +3 -4
  228. package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +17 -9
  229. package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +10 -3
  230. package/src/main/js/sap/ushell/components/homepage/FLPAnalytics.js +6 -4
  231. package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
  232. package/src/main/js/sap/ushell/components/pages/ActionMode.js +5 -5
  233. package/src/main/js/sap/ushell/components/pages/Component.js +2 -2
  234. package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +7 -7
  235. package/src/main/js/sap/ushell/components/pages/StateManager.js +3 -3
  236. package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +9 -12
  237. package/src/main/js/sap/ushell/components/pages/controller/MyHome.controller.js +2 -2
  238. package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +70 -15
  239. package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +2 -2
  240. package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
  241. package/src/main/js/sap/ushell/components/pages/view/PageRuntime.view.xml +7 -5
  242. package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +50 -8
  243. package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -8
  244. package/src/main/js/sap/ushell/components/runtimeSwitcher/view/RuntimeSwitcher.view.xml +13 -8
  245. package/src/main/js/sap/ushell/components/shell/MenuBar/Component.js +6 -4
  246. package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +6 -7
  247. package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
  248. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +13 -11
  249. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
  250. package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +16 -12
  251. package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +5 -5
  252. package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +14 -14
  253. package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +7 -7
  254. package/src/main/js/sap/ushell/components/shell/Search/Component.js +5 -4
  255. package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +8 -6
  256. package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
  257. package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +25 -18
  258. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +89 -67
  259. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +5 -4
  260. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +5 -4
  261. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
  262. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +8 -6
  263. package/src/main/js/sap/ushell/components/shell/Settings/Component.js +7 -7
  264. package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +1 -1
  265. package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +6 -6
  266. package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +4 -2
  267. package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +1 -1
  268. package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageSetting.view.xml +3 -1
  269. package/src/main/js/sap/ushell/components/shell/Settings/search/SearchEntry.js +95 -96
  270. package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountEntry.js +1 -1
  271. package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +1 -1
  272. package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSetting.fragment.xml +7 -1
  273. package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +1 -1
  274. package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.view.xml +7 -1
  275. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +1 -1
  276. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +3 -3
  277. package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +27 -31
  278. package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.view.xml +9 -2
  279. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +6 -6
  280. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +22 -20
  281. package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +8 -11
  282. package/src/main/js/sap/ushell/components/tiles/action/Configuration.controller.js +5 -4
  283. package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +1 -1
  284. package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +5 -3
  285. package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +16 -31
  286. package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.xml +1 -1
  287. package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +16 -33
  288. package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.xml +1 -1
  289. package/src/main/js/sap/ushell/components/tiles/generic.js +2 -1
  290. package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.controller.js +1 -1
  291. package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.controller.js +1 -1
  292. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/cache.js +12 -10
  293. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +49 -42
  294. package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.controller.js +1 -1
  295. package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.view.js +16 -18
  296. package/src/main/js/sap/ushell/components/tiles/utils.js +19 -15
  297. package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +31 -29
  298. package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +18 -219
  299. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
  300. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +62 -137
  301. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +4 -2
  302. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.js +185 -68
  303. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
  304. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +3 -6
  305. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +3 -6
  306. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +3 -6
  307. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +2 -1
  308. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +4 -7
  309. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRenderer.js +1 -1
  310. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +7 -5
  311. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +5 -5
  312. package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
  313. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources.properties +4 -1
  314. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en.properties +0 -76
  315. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saprigi.properties +66 -66
  316. package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +8 -0
  317. package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +2 -2
  318. package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +4 -7
  319. package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
  320. package/src/main/js/sap/ushell/components/workPageRuntime/view/WorkPageRuntime.view.xml +15 -8
  321. package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
  322. package/src/main/js/sap/ushell/iconfonts.js +1 -1
  323. package/src/main/js/sap/ushell/library.js +28 -26
  324. package/src/main/js/sap/ushell/navigationMode.js +4 -6
  325. package/src/main/js/sap/ushell/performance/FesrEnhancer.js +97 -18
  326. package/src/main/js/sap/ushell/performance/ShellAnalytics.js +7 -7
  327. package/src/main/js/sap/ushell/performance/StatisticalRecord.js +78 -23
  328. package/src/main/js/sap/ushell/plugins/BaseRTAPlugin.js +4 -3
  329. package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
  330. package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_en.properties +0 -10
  331. package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_en_US_saprigi.properties +8 -8
  332. package/src/main/js/sap/ushell/plugins/rta-personalize/Component.js +10 -6
  333. package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n_en.properties +0 -14
  334. package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n_en_US_saprigi.properties +12 -12
  335. package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +15 -13
  336. package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +7 -7
  337. package/src/main/js/sap/ushell/renderer/Renderer.js +163 -221
  338. package/src/main/js/sap/ushell/renderer/Shell.controller.js +133 -163
  339. package/src/main/js/sap/ushell/renderer/Shell.view.js +13 -14
  340. package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +65 -14
  341. package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +40 -17
  342. package/src/main/js/sap/ushell/renderer/resources/resources.properties +9 -3
  343. package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +5 -5
  344. package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +18 -951
  345. package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +991 -991
  346. package/src/main/js/sap/ushell/renderer/search/searchComponent/Component.js +8 -2
  347. package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/CEPSearchApp.controller.js +20 -13
  348. package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/SearchApp.controller.js +13 -9
  349. package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
  350. package/src/main/js/sap/ushell/renderer/search/searchComponent/view/CEPSearchApp.view.js +1 -1
  351. package/src/main/js/sap/ushell/renderer/search/searchComponent/view/SearchApp.view.js +1 -1
  352. package/src/main/js/sap/ushell/renderer/search/util.js +5 -7
  353. package/src/main/js/sap/ushell/renderer/utils.js +6 -6
  354. package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +14 -11
  355. package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +50 -42
  356. package/src/main/js/sap/ushell/resources.js +3 -3
  357. package/src/main/js/sap/ushell/services/AllMyApps.js +2 -3
  358. package/src/main/js/sap/ushell/services/AppConfiguration.js +56 -15
  359. package/src/main/js/sap/ushell/services/AppLifeCycle.js +14 -29
  360. package/src/main/js/sap/ushell/services/AppState.js +39 -28
  361. package/src/main/js/sap/ushell/services/Bookmark.js +18 -45
  362. package/src/main/js/sap/ushell/services/BookmarkV2.js +118 -120
  363. package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +20 -22
  364. package/src/main/js/sap/ushell/services/CommonDataModel.js +31 -94
  365. package/src/main/js/sap/ushell/services/Configuration.js +5 -5
  366. package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +2 -3
  367. package/src/main/js/sap/ushell/services/Container.js +6 -5
  368. package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +7 -5
  369. package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +80 -98
  370. package/src/main/js/sap/ushell/services/DarkModeSupport.js +6 -6
  371. package/src/main/js/sap/ushell/services/EndUserFeedback.js +17 -15
  372. package/src/main/js/sap/ushell/services/Extension/FloatingContainer.js +139 -67
  373. package/src/main/js/sap/ushell/services/Extension/Footer.js +2 -1
  374. package/src/main/js/sap/ushell/services/Extension/Header.js +9 -16
  375. package/src/main/js/sap/ushell/services/Extension/Item.js +12 -8
  376. package/src/main/js/sap/ushell/services/Extension/SidePane.js +5 -5
  377. package/src/main/js/sap/ushell/services/Extension/ToolArea.js +5 -5
  378. package/src/main/js/sap/ushell/services/Extension.js +12 -13
  379. package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1791 -0
  380. package/src/main/js/sap/ushell/services/LaunchPage.js +653 -1715
  381. package/src/main/js/sap/ushell/services/Menu.js +3 -3
  382. package/src/main/js/sap/ushell/services/Message.js +16 -9
  383. package/src/main/js/sap/ushell/services/MessageBroker.js +6 -6
  384. package/src/main/js/sap/ushell/services/NavTargetResolution.js +25 -28
  385. package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
  386. package/src/main/js/sap/ushell/services/Navigation.js +17 -16
  387. package/src/main/js/sap/ushell/services/NavigationDataProvider.js +2 -2
  388. package/src/main/js/sap/ushell/services/Notifications.js +55 -38
  389. package/src/main/js/sap/ushell/services/NotificationsV2.js +122 -49
  390. package/src/main/js/sap/ushell/services/PageBuilding.js +3 -4
  391. package/src/main/js/sap/ushell/services/PagePersistence.js +3 -3
  392. package/src/main/js/sap/ushell/services/PageReferencing.js +2 -2
  393. package/src/main/js/sap/ushell/services/Pages.js +295 -320
  394. package/src/main/js/sap/ushell/services/Personalization.js +40 -37
  395. package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +27 -24
  396. package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +7 -4
  397. package/src/main/js/sap/ushell/services/PersonalizationV2/TransientPersonalizer.js +2 -0
  398. package/src/main/js/sap/ushell/services/PersonalizationV2/Variant.js +7 -4
  399. package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSet.js +10 -11
  400. package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.js +10 -10
  401. package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +2 -2
  402. package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +5 -5
  403. package/src/main/js/sap/ushell/services/PersonalizationV2/constants.js +1 -1
  404. package/src/main/js/sap/ushell/services/PersonalizationV2.js +10 -9
  405. package/src/main/js/sap/ushell/services/PluginManager.js +77 -75
  406. package/src/main/js/sap/ushell/services/ReferenceResolver.js +36 -38
  407. package/src/main/js/sap/ushell/services/Search.js +4 -4
  408. package/src/main/js/sap/ushell/services/SearchCEP.js +2 -3
  409. package/src/main/js/sap/ushell/services/SearchableContent.js +93 -80
  410. package/src/main/js/sap/ushell/services/ShellNavigation.js +160 -450
  411. package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +27 -26
  412. package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +532 -0
  413. package/src/main/js/sap/ushell/services/SmartNavigation.js +23 -23
  414. package/src/main/js/sap/ushell/services/SpaceContent.js +4 -4
  415. package/src/main/js/sap/ushell/services/SupportTicket.js +4 -5
  416. package/src/main/js/sap/ushell/services/UITracer.js +2 -2
  417. package/src/main/js/sap/ushell/services/URLParsing.js +15 -14
  418. package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
  419. package/src/main/js/sap/ushell/services/URLTemplate.js +2 -2
  420. package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +47 -10
  421. package/src/main/js/sap/ushell/services/UsageAnalytics.js +25 -9
  422. package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +11 -11
  423. package/src/main/js/sap/ushell/services/UserDefaultParameters.js +34 -41
  424. package/src/main/js/sap/ushell/services/UserInfo.js +29 -53
  425. package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +480 -0
  426. package/src/main/js/sap/ushell/services/UserRecents/RecentAppsUsage.js +207 -0
  427. package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +119 -0
  428. package/src/main/js/sap/ushell/services/{_UserRecents → UserRecents}/UserRecentsBase.js +41 -9
  429. package/src/main/js/sap/ushell/services/UserRecents.js +185 -188
  430. package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +42 -41
  431. package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +27 -26
  432. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
  433. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +6 -6
  434. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +1 -1
  435. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/ParameterMapping.js +1 -1
  436. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +1 -1
  437. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +7 -9
  438. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
  439. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +1 -1
  440. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
  441. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
  442. package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +2 -2
  443. package/src/main/js/sap/ushell/services/_CommonDataModel/PersonalizationProcessor.js +5 -7
  444. package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +2 -2
  445. package/src/main/js/sap/ushell/services/_CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +105 -0
  446. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
  447. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
  448. package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
  449. package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +19 -37
  450. package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
  451. package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +28 -29
  452. package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +10 -10
  453. package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +7 -5
  454. package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +9 -6
  455. package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +9 -18
  456. package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +4 -11
  457. package/src/main/js/sap/ushell/services/_Personalization/Variant.js +11 -9
  458. package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +6 -5
  459. package/src/main/js/sap/ushell/services/_Personalization/utils.js +1 -2
  460. package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
  461. package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +1 -1
  462. package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
  463. package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +8 -22
  464. package/src/main/js/sap/ushell/services/appstate/Sequentializer.js +1 -1
  465. package/src/main/js/sap/ushell/services/appstate/SequentializingAdapter.js +3 -5
  466. package/src/main/js/sap/ushell/services/appstate/WindowAdapter.js +13 -12
  467. package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +2 -2
  468. package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +26 -22
  469. package/src/main/js/sap/ushell/themes/base/Catalog.less +12 -1
  470. package/src/main/js/sap/ushell/themes/base/ContentFinder.less +1 -0
  471. package/src/main/js/sap/ushell/themes/base/SearchCEP.less +9 -0
  472. package/src/main/js/sap/ushell/themes/base/img/SAPLogo.svg +1 -1
  473. package/src/main/js/sap/ushell/themes/base/img/launchicons/114_iPhone-Retina_Web_Clip.png +0 -0
  474. package/src/main/js/sap/ushell/themes/base/img/launchicons/144_iPad_Retina_Web_Clip.png +0 -0
  475. package/src/main/js/sap/ushell/themes/base/img/launchicons/57_iPhone_Desktop_Launch.png +0 -0
  476. package/src/main/js/sap/ushell/themes/base/img/launchicons/72_iPad_Desktop_Launch.png +0 -0
  477. package/src/main/js/sap/ushell/themes/base/img/launchpad_favicon.ico +0 -0
  478. package/src/main/js/sap/ushell/themes/sap_horizon/ShellHeader.less +0 -1
  479. package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellHeader.less +0 -1
  480. package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellHeader.less +0 -1
  481. package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellHeader.less +0 -1
  482. package/src/main/js/sap/ushell/ui/AppContainer.js +17 -22
  483. package/src/main/js/sap/ushell/ui/AppContainerRenderer.js +4 -6
  484. package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +8 -9
  485. package/src/main/js/sap/ushell/ui/ContentNodeTreeItem.js +2 -3
  486. package/src/main/js/sap/ushell/ui/QuickAccess.js +90 -81
  487. package/src/main/js/sap/ushell/ui/ShellHeader.js +26 -25
  488. package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +2 -1
  489. package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +20 -7
  490. package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +9 -0
  491. package/src/main/js/sap/ushell/ui/appfinder/PinButton.js +7 -6
  492. package/src/main/js/sap/ushell/ui/appfinder/PinButtonRenderer.js +2 -1
  493. package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +4 -4
  494. package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +5 -5
  495. package/src/main/js/sap/ushell/ui/footerbar/AboutButton.js +8 -13
  496. package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +10 -12
  497. package/src/main/js/sap/ushell/ui/footerbar/ContactSupportButton.js +22 -229
  498. package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.controller.js +116 -0
  499. package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.fragment.xml +85 -0
  500. package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +8 -12
  501. package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +9 -18
  502. package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +8 -12
  503. package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +4 -1
  504. package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +4 -1
  505. package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +6 -13
  506. package/src/main/js/sap/ushell/ui/launchpad/AccessibilityCustomData.js +4 -5
  507. package/src/main/js/sap/ushell/ui/launchpad/ActionItem.js +5 -4
  508. package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +8 -11
  509. package/src/main/js/sap/ushell/ui/launchpad/AnchorItemRenderer.js +6 -2
  510. package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +22 -19
  511. package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBarRenderer.js +6 -1
  512. package/src/main/js/sap/ushell/ui/launchpad/CatalogEntryContainer.js +10 -6
  513. package/src/main/js/sap/ushell/ui/launchpad/CatalogsContainer.js +9 -5
  514. package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainer.js +9 -5
  515. package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainerRenderer.js +6 -1
  516. package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
  517. package/src/main/js/sap/ushell/ui/launchpad/GroupHeaderActions.js +7 -9
  518. package/src/main/js/sap/ushell/ui/launchpad/GroupListItem.js +59 -67
  519. package/src/main/js/sap/ushell/ui/launchpad/GroupListItemRenderer.js +15 -15
  520. package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +4 -4
  521. package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapperRenderer.js +2 -1
  522. package/src/main/js/sap/ushell/ui/launchpad/LoadingDialog.js +7 -11
  523. package/src/main/js/sap/ushell/ui/launchpad/LoadingDialogRenderer.js +2 -2
  524. package/src/main/js/sap/ushell/ui/launchpad/Page.js +8 -12
  525. package/src/main/js/sap/ushell/ui/launchpad/PageRenderer.js +2 -1
  526. package/src/main/js/sap/ushell/ui/launchpad/PlusTile.js +5 -11
  527. package/src/main/js/sap/ushell/ui/launchpad/PlusTileRenderer.js +1 -1
  528. package/src/main/js/sap/ushell/ui/launchpad/Section.js +14 -26
  529. package/src/main/js/sap/ushell/ui/launchpad/SectionRenderer.js +3 -2
  530. package/src/main/js/sap/ushell/ui/launchpad/Tile.js +10 -13
  531. package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +10 -11
  532. package/src/main/js/sap/ushell/ui/launchpad/TileContainerRenderer.js +3 -2
  533. package/src/main/js/sap/ushell/ui/launchpad/TileRenderer.js +2 -1
  534. package/src/main/js/sap/ushell/ui/launchpad/TileState.js +8 -81
  535. package/src/main/js/sap/ushell/ui/launchpad/TileStateInternal.js +119 -0
  536. package/src/main/js/sap/ushell/ui/launchpad/TileStateInternalRenderer.js +72 -0
  537. package/src/main/js/sap/ushell/ui/launchpad/TileStateRenderer.js +4 -65
  538. package/src/main/js/sap/ushell/ui/launchpad/ViewPortState.js +6 -7
  539. package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstance.js +86 -78
  540. package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceAbap.js +6 -5
  541. package/src/main/js/sap/ushell/ui/launchpad/VizInstanceBase.js +40 -0
  542. package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceCdm.js +13 -11
  543. package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceLaunchPage.js +10 -7
  544. package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceLink.js +9 -61
  545. package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +8 -6
  546. package/src/main/js/sap/ushell/ui/launchpad/section/CompactAreaRenderer.js +2 -1
  547. package/src/main/js/sap/ushell/ui/shell/ContentRenderer.js +3 -3
  548. package/src/main/js/sap/ushell/ui/shell/FloatingContainer.js +10 -8
  549. package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +3 -3
  550. package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +32 -34
  551. package/src/main/js/sap/ushell/ui/shell/ShellFloatingAction.js +9 -6
  552. package/src/main/js/sap/ushell/ui/shell/ShellFloatingActionRenderer.js +1 -3
  553. package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +4 -7
  554. package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +8 -8
  555. package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +3 -8
  556. package/src/main/js/sap/ushell/ui/shell/ToolArea.js +2 -2
  557. package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
  558. package/src/main/js/sap/ushell/ui/tile/DynamicTile.js +6 -8
  559. package/src/main/js/sap/ushell/ui/tile/DynamicTileRenderer.js +1 -1
  560. package/src/main/js/sap/ushell/ui/tile/ImageTile.js +4 -5
  561. package/src/main/js/sap/ushell/ui/tile/ImageTileRenderer.js +5 -6
  562. package/src/main/js/sap/ushell/ui/tile/StaticTile.js +4 -5
  563. package/src/main/js/sap/ushell/ui/tile/StaticTileRenderer.js +5 -6
  564. package/src/main/js/sap/ushell/ui/tile/TileBase.js +5 -8
  565. package/src/main/js/sap/ushell/ui/tile/TileBaseRenderer.js +3 -3
  566. package/src/main/js/sap/ushell/ui/utils.js +2 -4
  567. package/src/main/js/sap/ushell/ui5service/ShellUIService.js +8 -9
  568. package/src/main/js/sap/ushell/ui5service/UserStatus.js +11 -12
  569. package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +6 -8
  570. package/src/main/js/sap/ushell/utils/DynamicTileRequest.js +5 -3
  571. package/src/main/js/sap/ushell/utils/HttpClient.js +6 -7
  572. package/src/main/js/sap/ushell/utils/RestrictedJSONModel.js +1 -1
  573. package/src/main/js/sap/ushell/utils/UrlParsing.js +5 -14
  574. package/src/main/js/sap/ushell/utils/UrlShortening.js +4 -4
  575. package/src/main/js/sap/ushell/utils/chipsUtils.js +10 -10
  576. package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +234 -0
  577. package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +141 -0
  578. package/src/main/js/sap/ushell/utils.js +17 -13
  579. package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
  580. package/ui5.yaml +6 -2
  581. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_cnr.properties +0 -10
  582. package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_cnr.properties +0 -4
  583. package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_cnr.properties +0 -41
  584. package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_cnr.properties +0 -19
  585. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_cnr.properties +0 -117
  586. package/src/main/js/sap/ushell/components/container/resources/resources_cnr.properties +0 -10
  587. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +0 -29
  588. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchPaginated.view.xml +0 -137
  589. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cnr.properties +0 -78
  590. package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +0 -115
  591. package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +0 -130
  592. package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_cnr.properties +0 -13
  593. package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n_cnr.properties +0 -24
  594. package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsKeyboardHandler.js +0 -108
  595. package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +0 -993
  596. package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsKeyboardHandler.js +0 -13
  597. package/src/main/js/sap/ushell/services/_UserRecents/RecentActivity.js +0 -481
  598. package/src/main/js/sap/ushell/services/_UserRecents/RecentAppsUsage.js +0 -207
  599. package/src/main/js/sap/ushell/services/_UserRecents/RecentsList.js +0 -92
  600. package/src/main/js/sap/ushell/themes/base/img/launchpadDefaultIcon.jpg +0 -0
  601. /package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceRenderer.js +0 -0
@@ -2,12 +2,13 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview defines the post message API for all applications running in iframe within the shell
5
- * @version 1.120.7
5
+ * @version 1.121.0
6
6
  * @private
7
7
  */
8
8
  sap.ui.define([
9
9
  "sap/base/i18n/Formatting",
10
10
  "sap/base/i18n/Localization",
11
+ "sap/ui/core/Element",
11
12
  "sap/ushell/utils",
12
13
  "sap/ui/core/library",
13
14
  "sap/ui/thirdparty/jquery",
@@ -20,17 +21,18 @@ sap.ui.define([
20
21
  "sap/base/util/deepExtend",
21
22
  "sap/ushell/Config",
22
23
  "sap/ushell/utils/UrlParsing",
23
- "sap/ui/core/Core",
24
24
  "sap/m/Button",
25
25
  "sap/m/library",
26
26
  "sap/ui/thirdparty/hasher",
27
+ "sap/ui/core/EventBus",
27
28
  "sap/ushell/resources",
28
29
  "sap/ushell/ui/shell/ShellHeadItem",
29
- "sap/ui/core/Configuration",
30
- "sap/base/util/uid"
30
+ "sap/base/util/uid",
31
+ "sap/ushell/Container"
31
32
  ], function (
32
33
  Formatting,
33
34
  Localization,
35
+ Element,
34
36
  utils,
35
37
  coreLib,
36
38
  jQuery,
@@ -43,43 +45,139 @@ sap.ui.define([
43
45
  deepExtend,
44
46
  Config,
45
47
  UrlParsing,
46
- Core,
47
48
  Button,
48
49
  mobileLibrary,
49
50
  hasher,
51
+ EventBus,
50
52
  resources,
51
53
  ShellHeadItem,
52
- CoreConfiguration,
53
- fnGetUid
54
+ fnGetUid,
55
+ Container
54
56
  ) {
55
57
  "use strict";
56
58
 
57
- var SAP_API_PREFIX = "sap.ushell.";
59
+ const SAP_API_PREFIX = "sap.ushell.";
58
60
 
59
- var oDummyComponent = new UIComponent();
60
- var URLHelper = mobileLibrary.URLHelper;
61
+ const oDummyComponent = new UIComponent();
62
+ const URLHelper = mobileLibrary.URLHelper;
61
63
  /**
62
64
  * All APIs must start with "sap.ushell" prefix
63
65
  */
64
66
  var oAPIs = {
67
+ "sap.ushell.services.Navigation": {
68
+ oServiceCalls: {
69
+ getHref: {
70
+ executeServiceCallFn: (oServiceParams) => {
71
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
72
+ return oNavigationService.getHref(oServiceParams.oMessageData.body.oTarget);
73
+ });
74
+ }
75
+ },
76
+ backToPreviousApp: {
77
+ executeServiceCallFn: () => {
78
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
79
+ return oNavigationService.backToPreviousApp();
80
+ });
81
+ }
82
+ },
83
+ historyBack: {
84
+ executeServiceCallFn: (oServiceParams) => {
85
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
86
+ return oNavigationService.historyBack(oServiceParams.oMessageData.body.iSteps);
87
+ });
88
+ }
89
+ },
90
+ isInitialNavigation: {
91
+ executeServiceCallFn: () => {
92
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
93
+ return oNavigationService.isInitialNavigation();
94
+ });
95
+ }
96
+ },
97
+ navigate: {
98
+ executeServiceCallFn: (oServiceParams) => {
99
+ const oTarget = deepExtend({}, oServiceParams.oMessageData.body.oTarget);
100
+ utils.storeSapSystemToLocalStorage(oTarget);
101
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
102
+ return oNavigationService.navigate(oTarget);
103
+ });
104
+ }
105
+ },
106
+ getPrimaryIntent: {
107
+ executeServiceCallFn: (oServiceParams) => {
108
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
109
+ return oNavigationService.getPrimaryIntent(
110
+ oServiceParams.oMessageData.body.sSemanticObject,
111
+ oServiceParams.oMessageData.body.oLinkFilter);
112
+ });
113
+ }
114
+ },
115
+ getLinks: {
116
+ executeServiceCallFn: (oServiceParams) => {
117
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
118
+ return oNavigationService.getLinks(oServiceParams.oMessageData.body);
119
+ });
120
+ }
121
+ },
122
+ getSemanticObjects: {
123
+ executeServiceCallFn: () => {
124
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
125
+ return oNavigationService.getSemanticObjects();
126
+ });
127
+ }
128
+ },
129
+
130
+ isNavigationSupported: {
131
+ executeServiceCallFn: (oServiceParams) => {
132
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
133
+ return oNavigationService.isNavigationSupported(oServiceParams.oMessageData.body.aTargets);
134
+ });
135
+ }
136
+ },
137
+ getAppState: {
138
+ executeServiceCallFn: (oServiceParams) => {
139
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
140
+ return oNavigationService.getAppState(
141
+ oDummyComponent,
142
+ oServiceParams.oMessageData.body.sAppStateKey
143
+ ).then(function (oState) {
144
+ delete oState._oServiceInstance;
145
+ return oState;
146
+ });
147
+ });
148
+ }
149
+ },
150
+ resolveIntent: {
151
+ executeServiceCallFn: (oServiceParams) => {
152
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
153
+ return oNavigationService.resolveIntent(oServiceParams.oMessageData.body.sHashFragment);
154
+ });
155
+ }
156
+ },
157
+ isUrlSupported: {
158
+ executeServiceCallFn: (oServiceParams) => {
159
+ return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
160
+ return oNavigationService.isUrlSupported(oServiceParams.oMessageData.body.sUrl);
161
+ });
162
+ }
163
+ }
164
+ }
165
+ },
65
166
  "sap.ushell.services.CrossApplicationNavigation": {
66
167
  oServiceCalls: {
67
168
  hrefForExternal: {
68
- executeServiceCallFn: function (oServiceParams) {
69
- var oDeferred = new jQuery.Deferred();
70
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
71
- oCrossAppNavService.hrefForExternalAsync(oServiceParams.oMessageData.body.oArgs, undefined, true)
72
- .then(oDeferred.resolve, oDeferred.reject);
169
+ executeServiceCallFn: (oServiceParams) => {
170
+ return Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
171
+ return oCrossAppNavService.hrefForExternalAsync(oServiceParams.oMessageData.body.oArgs);
73
172
  });
74
- return oDeferred.promise();
75
173
  }
76
174
  },
77
175
  getSemanticObjectLinks: {
78
- executeServiceCallFn: function (oServiceParams) {
176
+ executeServiceCallFn: (oServiceParams) => {
79
177
  // beware sSemanticObject may also be an array of argument arrays
80
178
  // {sSemanticObject, mParameters, bIgnoreFormFactors }
81
179
  var oDeferred = new jQuery.Deferred();
82
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
180
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
83
181
  oCrossAppNavService.getSemanticObjectLinks(
84
182
  oServiceParams.oMessageData.body.sSemanticObject, oServiceParams.oMessageData.body.mParameters,
85
183
  oServiceParams.oMessageData.body.bIgnoreFormFactors, undefined, undefined, oServiceParams.oMessageData.body.bCompactIntents)
@@ -89,102 +187,99 @@ sap.ui.define([
89
187
  }
90
188
  },
91
189
  isIntentSupported: {
92
- executeServiceCallFn: function (oServiceParams) {
190
+ executeServiceCallFn: (oServiceParams) => {
93
191
  var oDeferred = new jQuery.Deferred();
94
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
192
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
95
193
  oCrossAppNavService.isIntentSupported(oServiceParams.oMessageData.body.aIntents).then(oDeferred.resolve, oDeferred.reject);
96
194
  });
97
195
  return oDeferred.promise();
98
196
  }
99
197
  },
100
198
  isNavigationSupported: {
101
- executeServiceCallFn: function (oServiceParams) {
199
+ executeServiceCallFn: (oServiceParams) => {
102
200
  var oDeferred = new jQuery.Deferred();
103
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
201
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
104
202
  oCrossAppNavService.isNavigationSupported(oServiceParams.oMessageData.body.aIntents).then(oDeferred.resolve, oDeferred.reject);
105
203
  });
106
204
  return oDeferred.promise();
107
205
  }
108
206
  },
109
207
  backToPreviousApp: {
110
- executeServiceCallFn: function (/*oServiceParams*/) {
111
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
208
+ executeServiceCallFn: async () => {
209
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
112
210
  oCrossAppNavService.backToPreviousApp();
113
211
  });
114
- return new jQuery.Deferred().resolve().promise();
115
212
  }
116
213
  },
117
214
  historyBack: {
118
- executeServiceCallFn: function (oServiceParams) {
119
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
215
+ executeServiceCallFn: async (oServiceParams) => {
216
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
120
217
  oCrossAppNavService.historyBack(oServiceParams.oMessageData.body.iSteps);
121
218
  });
122
- return new jQuery.Deferred().resolve().promise();
123
219
  }
124
220
  },
125
221
  getAppStateData: {
126
- executeServiceCallFn: function (oServiceParams) {
222
+ executeServiceCallFn: (oServiceParams) => {
127
223
  // note: sAppStateKey may be an array of argument arrays
128
224
  var oDeferred = new jQuery.Deferred();
129
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
225
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
130
226
  oCrossAppNavService.getAppStateData(oServiceParams.oMessageData.body.sAppStateKey).then(oDeferred.resolve, oDeferred.reject);
131
227
  });
132
228
  return oDeferred.promise();
133
229
  }
134
230
  },
135
231
  toExternal: {
136
- executeServiceCallFn: function (oServiceParams) {
232
+ executeServiceCallFn: (oServiceParams) => {
137
233
  var oDeferred = new jQuery.Deferred(),
138
234
  oArgs = deepExtend({}, oServiceParams.oMessageData.body.oArgs);
139
235
 
140
236
  utils.storeSapSystemToLocalStorage(oArgs);
141
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
237
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
142
238
  oCrossAppNavService.toExternal(oArgs).then(oDeferred.resolve, oDeferred.reject);
143
239
  });
144
240
  return oDeferred.promise();
145
241
  }
146
242
  },
147
243
  registerBeforeAppCloseEvent: {
148
- executeServiceCallFn: function (oServiceParams) {
244
+ executeServiceCallFn: async (oServiceParams) => {
149
245
  oServiceParams.oContainer.setProperty("beforeAppCloseEvent", {
150
246
  enabled: true,
151
247
  params: oServiceParams.oMessageData.body},
152
248
  true
153
249
  );
154
- return new jQuery.Deferred().resolve().promise();
155
250
  }
156
251
  },
157
252
  expandCompactHash: {
158
- executeServiceCallFn: function (oServiceParams) {
253
+ executeServiceCallFn: (oServiceParams) => {
159
254
  var oDeferred = new jQuery.Deferred();
160
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
255
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
161
256
  oCrossAppNavService.expandCompactHash(oServiceParams.oMessageData.body.sHashFragment).then(oDeferred.resolve, oDeferred.reject);
162
257
  });
163
258
  return oDeferred.promise();
164
259
  }
165
260
  },
166
261
  getDistinctSemanticObjects: {
167
- executeServiceCallFn: function (/*oServiceParams*/) {
262
+ executeServiceCallFn: () => {
168
263
  var oDeferred = new jQuery.Deferred();
169
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
264
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
170
265
  oCrossAppNavService.getDistinctSemanticObjects().then(oDeferred.resolve, oDeferred.reject);
171
266
  });
172
267
  return oDeferred.promise();
173
268
  }
174
269
  },
175
270
  getLinks: {
176
- executeServiceCallFn: function (oServiceParams) {
271
+ executeServiceCallFn: (oServiceParams) => {
177
272
  var oDeferred = new jQuery.Deferred();
178
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
273
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
179
274
  oCrossAppNavService.getLinks(oServiceParams.oMessageData.body).then(oDeferred.resolve, oDeferred.reject);
180
275
  });
181
276
  return oDeferred.promise();
182
277
  }
183
278
  },
184
279
  getPrimaryIntent: {
185
- executeServiceCallFn: function (oServiceParams) {
280
+ executeServiceCallFn: (oServiceParams) => {
186
281
  var oDeferred = new jQuery.Deferred();
187
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
282
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
188
283
  oCrossAppNavService.getPrimaryIntent(
189
284
  oServiceParams.oMessageData.body.sSemanticObject,
190
285
  oServiceParams.oMessageData.body.mParameters).then(oDeferred.resolve, oDeferred.reject);
@@ -193,18 +288,18 @@ sap.ui.define([
193
288
  }
194
289
  },
195
290
  hrefForAppSpecificHash: {
196
- executeServiceCallFn: function (oServiceParams) {
291
+ executeServiceCallFn: (oServiceParams) => {
197
292
  var oDeferred = new jQuery.Deferred();
198
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
293
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
199
294
  oCrossAppNavService.hrefForAppSpecificHashAsync(oServiceParams.oMessageData.body.sAppHash).then(oDeferred.resolve, oDeferred.reject);
200
295
  });
201
296
  return oDeferred.promise();
202
297
  }
203
298
  },
204
299
  isInitialNavigation: {
205
- executeServiceCallFn: function () {
300
+ executeServiceCallFn: () => {
206
301
  var oDeferred = new jQuery.Deferred();
207
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
302
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
208
303
  oCrossAppNavService.isInitialNavigationAsync().then(function (bIsInitialNavigation) {
209
304
  oDeferred.resolve(bIsInitialNavigation);
210
305
  });
@@ -213,9 +308,9 @@ sap.ui.define([
213
308
  }
214
309
  },
215
310
  getAppState: {
216
- executeServiceCallFn: function (oServiceParams) {
311
+ executeServiceCallFn: (oServiceParams) => {
217
312
  var oDeferred = new jQuery.Deferred();
218
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
313
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
219
314
  oCrossAppNavService.getAppState(
220
315
  oDummyComponent,
221
316
  oServiceParams.oMessageData.body.sAppStateKey
@@ -228,13 +323,13 @@ sap.ui.define([
228
323
  }
229
324
  },
230
325
  setInnerAppRoute: {
231
- executeServiceCallFn: function (oServiceParams) {
326
+ executeServiceCallFn: async (oServiceParams) => {
232
327
  var oHash = UrlParsing.parseShellHash(hasher.getHash()),
233
328
  sNewHash;
234
329
 
235
330
  //do nothing if new is exactly like the current one
236
331
  if (oHash.appSpecificRoute === oServiceParams.oMessageData.body.appSpecificRoute) {
237
- return new jQuery.Deferred().resolve().promise();
332
+ return;
238
333
  }
239
334
  oHash.appSpecificRoute = oServiceParams.oMessageData.body.appSpecificRoute;
240
335
  sNewHash = "#" + UrlParsing.constructShellHash(oHash);
@@ -245,20 +340,19 @@ sap.ui.define([
245
340
  hasher.replaceHash(sNewHash);
246
341
  }
247
342
  hasher.disableBlueBoxHashChangeTrigger = false;
248
- return new jQuery.Deferred().resolve().promise();
249
343
  }
250
344
  },
251
345
  setInnerAppStateData: {
252
- executeServiceCallFn: function (oServiceParams) {
346
+ executeServiceCallFn: (oServiceParams) => {
253
347
  var oDeferred = new jQuery.Deferred();
254
348
  PostMessageAPI.prototype._createNewInnerAppState(oServiceParams).then(oDeferred.resolve);
255
349
  return oDeferred.promise();
256
350
  }
257
351
  },
258
352
  resolveIntent: {
259
- executeServiceCallFn: function (oServiceParams) {
353
+ executeServiceCallFn: (oServiceParams) => {
260
354
  var oDeferred = new jQuery.Deferred();
261
- sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
355
+ Container.getServiceAsync("CrossApplicationNavigation").then(function (oCrossAppNavService) {
262
356
  oCrossAppNavService.resolveIntent(oServiceParams.oMessageData.body.sHashFragment).then(oDeferred.resolve, oDeferred.reject);
263
357
  });
264
358
  return oDeferred.promise();
@@ -269,14 +363,14 @@ sap.ui.define([
269
363
  "sap.ushell.ui5service.ShellUIService": {
270
364
  oServiceCalls: {
271
365
  setTitle: {
272
- executeServiceCallFn: function (oServiceParams) {
273
- return new jQuery.Deferred().resolve(oServiceParams.oContainer.getShellUIService().setTitle(oServiceParams.oMessageData.body.sTitle)).promise();
366
+ executeServiceCallFn: async (oServiceParams) => {
367
+ oServiceParams.oContainer.getShellUIService().setTitle(oServiceParams.oMessageData.body.sTitle);
274
368
  }
275
369
  },
276
370
  setBackNavigation: {
277
- executeServiceCallFn: function (oServiceParams) {
371
+ executeServiceCallFn: async (oServiceParams) => {
278
372
  var fnCallback;
279
- if (oServiceParams.oMessageData.body && oServiceParams.oMessageData.body.callbackMessage && oServiceParams.oMessageData.body.callbackMessage.service) {
373
+ if (oServiceParams?.oMessageData?.body?.callbackMessage?.service) {
280
374
  fnCallback = PostMessageAPI.prototype._backButtonPressedCallback.bind(
281
375
  null,
282
376
  oServiceParams.oMessage.source,
@@ -285,7 +379,6 @@ sap.ui.define([
285
379
  );
286
380
  } // empty body or callback message will call the setBackNavigation with undefined, this should reset the back button callback
287
381
  oServiceParams.oContainer.getShellUIService().setBackNavigation(fnCallback);
288
- return Promise.resolve();
289
382
  }
290
383
  }
291
384
  }
@@ -293,59 +386,53 @@ sap.ui.define([
293
386
  "sap.ushell.services.ShellUIService": {
294
387
  oServiceCalls: {
295
388
  setTitle: {
296
- executeServiceCallFn: function (oServiceParams) {
297
- return new jQuery.Deferred().resolve(oServiceParams.oContainer.getShellUIService().setTitle(oServiceParams.oMessageData.body.sTitle)).promise();
389
+ executeServiceCallFn: async (oServiceParams) => {
390
+ oServiceParams.oContainer.getShellUIService().setTitle(oServiceParams.oMessageData.body.sTitle);
298
391
  }
299
392
  },
300
393
  setHierarchy: {
301
- executeServiceCallFn: function (oServiceParams) {
302
- return new jQuery.Deferred().resolve(oServiceParams.oContainer.getShellUIService().setHierarchy(oServiceParams.oMessageData.body.aHierarchyLevels)).promise();
394
+ executeServiceCallFn: async (oServiceParams) => {
395
+ oServiceParams.oContainer.getShellUIService().setHierarchy(oServiceParams.oMessageData.body.aHierarchyLevels);
303
396
  }
304
397
  },
305
398
  setRelatedApps: {
306
- executeServiceCallFn: function (oServiceParams) {
307
- return new jQuery.Deferred().resolve(oServiceParams.oContainer.getShellUIService().setRelatedApps(oServiceParams.oMessageData.body.aRelatedApps)).promise();
399
+ executeServiceCallFn: async (oServiceParams) => {
400
+ oServiceParams.oContainer.getShellUIService().setRelatedApps(oServiceParams.oMessageData.body.aRelatedApps);
308
401
  }
309
402
  },
310
403
  setDirtyFlag: {
311
- executeServiceCallFn: function (oServiceParams) {
312
- sap.ushell.Container.setDirtyFlag(oServiceParams.oMessageData.body.bIsDirty);
313
- return new jQuery.Deferred().resolve().promise();
404
+ executeServiceCallFn: async (oServiceParams) => {
405
+ Container.setDirtyFlag(oServiceParams.oMessageData.body.bIsDirty);
314
406
  }
315
407
  },
316
408
  showShellUIBlocker: {
317
- executeServiceCallFn: function (oServiceParams) {
409
+ executeServiceCallFn: async (oServiceParams) => {
318
410
  var bShow = oServiceParams.oMessageData.body.bShow;
319
411
  showUIBlocker(bShow);
320
- sap.ui.getCore().getEventBus().publish(
412
+ EventBus.getInstance().publish(
321
413
  "sap.ushell.services.ShellUIService", "showShellUIBlocker",
322
414
  { bShow: bShow }
323
415
  );
324
- return new jQuery.Deferred().resolve().promise();
325
416
  }
326
417
  },
327
418
  getFLPUrl: {
328
- executeServiceCallFn: function (oServiceParams) {
329
- var bIncludeHash = false;
330
- if (oServiceParams.oMessageData.body && oServiceParams.oMessageData.body.bIncludeHash === true) {
331
- bIncludeHash = true;
332
- }
333
- return new jQuery.Deferred().resolve(sap.ushell.Container.getFLPUrl(bIncludeHash)).promise();
419
+ executeServiceCallFn: (oServiceParams) => {
420
+ return Container.getFLPUrlAsync(oServiceParams?.oMessageData?.body?.bIncludeHash);
334
421
  }
335
422
  },
336
423
  getShellGroupIDs: {
337
- executeServiceCallFn: function (oServiceParams) {
424
+ executeServiceCallFn: (oServiceParams) => {
338
425
  var oDeferred = new jQuery.Deferred();
339
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
426
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
340
427
  oBookmarkService.getShellGroupIDs((oServiceParams.oMessageData.body ? oServiceParams.oMessageData.body.bGetAll : undefined)).then(oDeferred.resolve, oDeferred.reject);
341
428
  });
342
429
  return oDeferred.promise();
343
430
  }
344
431
  },
345
432
  addBookmark: {
346
- executeServiceCallFn: function (oServiceParams) {
433
+ executeServiceCallFn: (oServiceParams) => {
347
434
  var oDeferred = new jQuery.Deferred();
348
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
435
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
349
436
  oBookmarkService.addBookmarkByGroupId(oServiceParams.oMessageData.body.oParameters, oServiceParams.oMessageData.body.groupId)
350
437
  .then(oDeferred.resolve, oDeferred.reject);
351
438
  });
@@ -353,7 +440,7 @@ sap.ui.define([
353
440
  }
354
441
  },
355
442
  addBookmarkDialog: {
356
- executeServiceCallFn: function (oServiceParams) {
443
+ executeServiceCallFn: async (oServiceParams) => {
357
444
  // do not change the ["require"] to .require. This is to avoid
358
445
  // adding dependencies to the core min/ext.
359
446
  /*eslint-disable dot-notation*/
@@ -362,20 +449,19 @@ sap.ui.define([
362
449
  dialogButton.firePress({});
363
450
  });
364
451
  /*eslint-enable dot-notation*/
365
- return new jQuery.Deferred().resolve().promise();
366
452
  }
367
453
  },
368
454
  getShellGroupTiles: {
369
- executeServiceCallFn: function (oServiceParams) {
455
+ executeServiceCallFn: (oServiceParams) => {
370
456
  var oDeferred = new jQuery.Deferred();
371
- sap.ushell.Container.getServiceAsync("LaunchPage").then(function (oLaunchPageService) {
457
+ Container.getServiceAsync("LaunchPage").then(function (oLaunchPageService) {
372
458
  oLaunchPageService.getTilesByGroupId(oServiceParams.oMessageData.body.groupId).then(oDeferred.resolve, oDeferred.reject);
373
459
  });
374
460
  return oDeferred.promise();
375
461
  }
376
462
  },
377
463
  sendUrlAsEmail: {
378
- executeServiceCallFn: function (oServiceParams) {
464
+ executeServiceCallFn: async (oServiceParams) => {
379
465
  var sAppName = Config.last("/core/shellHeader/application").title;
380
466
  var sSubject = (sAppName === undefined) ?
381
467
  resources.i18n.getText("linkToApplication") :
@@ -389,11 +475,10 @@ sap.ui.define([
389
475
  document.URL,
390
476
  true
391
477
  );
392
- return new jQuery.Deferred().resolve().promise();
393
478
  }
394
479
  },
395
480
  sendEmailWithFLPButton: {
396
- executeServiceCallFn: function (oServiceParams) {
481
+ executeServiceCallFn: async (oServiceParams) => {
397
482
  var sAppName = Config.last("/core/shellHeader/application").title;
398
483
  var sSubject = (sAppName === undefined) ?
399
484
  resources.i18n.getText("linkToApplication") :
@@ -407,11 +492,10 @@ sap.ui.define([
407
492
  document.URL,
408
493
  oServiceParams.oMessageData.body.bSetAppStateToPublic
409
494
  );
410
- return new jQuery.Deferred().resolve().promise();
411
495
  }
412
496
  },
413
497
  sendEmail: {
414
- executeServiceCallFn: function (oServiceParams) {
498
+ executeServiceCallFn: async (oServiceParams) => {
415
499
  PostMessageAPI.prototype._sendEmail(
416
500
  oServiceParams.oMessageData.body.sTo,
417
501
  oServiceParams.oMessageData.body.sSubject,
@@ -421,11 +505,10 @@ sap.ui.define([
421
505
  oServiceParams.oMessageData.body.sIFrameURL,
422
506
  oServiceParams.oMessageData.body.bSetAppStateToPublic
423
507
  );
424
- return new jQuery.Deferred().resolve().promise();
425
508
  }
426
509
  },
427
510
  processHotKey: {
428
- executeServiceCallFn: function (oServiceParams) {
511
+ executeServiceCallFn: async (oServiceParams) => {
429
512
  var oEvent;
430
513
  // IE doesn't support creating the KeyboardEvent object with a the "new" constructor, hence if this will fail, it will be created
431
514
  // using the document object- https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent
@@ -449,7 +532,6 @@ sap.ui.define([
449
532
  oEvent = IEevent;
450
533
  }
451
534
  document.dispatchEvent(oEvent);
452
- return new jQuery.Deferred().resolve().promise();
453
535
  }
454
536
  }
455
537
  }
@@ -457,51 +539,45 @@ sap.ui.define([
457
539
  "sap.ushell.services.Container": {
458
540
  oServiceCalls: {
459
541
  setDirtyFlag: {
460
- executeServiceCallFn: function (oServiceParams) {
461
- sap.ushell.Container.setDirtyFlag(oServiceParams.oMessageData.body.bIsDirty);
462
- return new jQuery.Deferred().resolve().promise();
542
+ executeServiceCallFn: async (oServiceParams) => {
543
+ Container.setDirtyFlag(oServiceParams.oMessageData.body.bIsDirty);
463
544
  }
464
545
  },
465
546
  registerDirtyStateProvider: {
466
- executeServiceCallFn: function (oServiceParams) {
547
+ executeServiceCallFn: async (oServiceParams) => {
467
548
  if (oServiceParams.oMessageData.body.bRegister) {
468
549
  PostMessageAPI.prototype.registerAsyncDirtyStateProvider(oServiceParams);
469
550
  } else {
470
551
  PostMessageAPI.prototype.deregisterAsyncDirtyStateProvider(oServiceParams);
471
552
  }
472
- return new jQuery.Deferred().resolve().promise();
473
553
  }
474
554
  },
475
555
  getFLPUrl: {
476
- executeServiceCallFn: function (oServiceParams) {
477
- var bIncludeHash = false;
478
- if (oServiceParams.oMessageData.body && oServiceParams.oMessageData.body.bIncludeHash === true) {
479
- bIncludeHash = true;
480
- }
481
- return new jQuery.Deferred().resolve(sap.ushell.Container.getFLPUrl(bIncludeHash)).promise();
556
+ executeServiceCallFn: (oServiceParams) => {
557
+ return Container.getFLPUrlAsync(oServiceParams?.oMessageData?.body?.bIncludeHash);
482
558
  }
483
559
  },
484
560
  getFLPConfig: {
485
- executeServiceCallFn: function (oServiceParams) {
561
+ executeServiceCallFn: (oServiceParams) => {
486
562
  var oDeferred = new jQuery.Deferred();
487
563
 
488
- sap.ushell.Container.getFLPConfig().then(function (oFLPConfiguration) {
564
+ Container.getFLPConfig().then(function (oFLPConfiguration) {
489
565
  oDeferred.resolve(oFLPConfiguration);
490
566
  });
491
567
  return oDeferred.promise();
492
568
  }
493
569
  },
494
570
  getFLPPlatform: {
495
- executeServiceCallFn: function (oServiceParams) {
571
+ executeServiceCallFn: (oServiceParams) => {
496
572
  var oDeferred = new jQuery.Deferred();
497
573
 
498
- sap.ushell.Container.getFLPPlatform().then(oDeferred.resolve);
574
+ Container.getFLPPlatform().then(oDeferred.resolve);
499
575
  return oDeferred.promise();
500
576
  }
501
577
  },
502
578
  attachLogoutEvent: {
503
- executeServiceCallFn: function (oServiceParams) {
504
- sap.ushell.Container.attachLogoutEvent(function () {
579
+ executeServiceCallFn: async (oServiceParams) => {
580
+ Container.attachLogoutEvent(function () {
505
581
  return new Promise(function (fnResolve, fnReject) {
506
582
  sap.ui.require(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"], function (PostMessageUtils) {
507
583
  PostMessageUtils.postMessageToIframeApp(
@@ -509,7 +585,6 @@ sap.ui.define([
509
585
  });
510
586
  });
511
587
  }, true);
512
- return new jQuery.Deferred().resolve().promise();
513
588
  }
514
589
  }
515
590
  }
@@ -517,79 +592,60 @@ sap.ui.define([
517
592
  "sap.ushell.services.AppState": {
518
593
  oServiceCalls: {
519
594
  getAppState: {
520
- executeServiceCallFn: function (oServiceParams) {
521
- var oDeferred = new jQuery.Deferred();
522
- sap.ushell.Container.getServiceAsync("AppState").then(function (oAppStateService) {
523
- oAppStateService.getAppState(
524
- oServiceParams.oMessageData.body.sKey
525
- ).done(function (oState) {
526
- delete oState._oServiceInstance;
527
- oDeferred.resolve(oState);
528
- }).fail(function (oState) {
595
+ executeServiceCallFn: async (oServiceParams) => {
596
+ const oAppStateService = await Container.getServiceAsync("AppState");
597
+ return oAppStateService.getAppState(oServiceParams.oMessageData.body.sKey).always((oState) => {
598
+ if (oState?._oServiceInstance) {
529
599
  delete oState._oServiceInstance;
530
- oDeferred.resolve(oState);
531
- });
600
+ }
532
601
  });
533
- return oDeferred.promise();
534
602
  }
535
603
  },
536
604
  _saveAppState: {
537
- executeServiceCallFn: function (oServiceParams) {
538
- var oDeferred = new jQuery.Deferred();
539
- sap.ushell.Container.getServiceAsync("AppState").then(function (oAppStateService) {
540
- oAppStateService._saveAppState(
541
- oServiceParams.oMessageData.body.sKey,
542
- oServiceParams.oMessageData.body.sData,
543
- oServiceParams.oMessageData.body.sAppName,
544
- oServiceParams.oMessageData.body.sComponent,
545
- oServiceParams.oMessageData.body.bTransient,
546
- oServiceParams.oMessageData.body.iPersistencyMethod,
547
- oServiceParams.oMessageData.body.oPersistencySettings).then(oDeferred.resolve, oDeferred.reject);
548
- });
549
- return oDeferred.promise();
605
+ executeServiceCallFn: async (oServiceParams) => {
606
+ const oAppStateService = await Container.getServiceAsync("AppState");
607
+ return oAppStateService._saveAppState(
608
+ oServiceParams.oMessageData.body.sKey,
609
+ oServiceParams.oMessageData.body.sData,
610
+ oServiceParams.oMessageData.body.sAppName,
611
+ oServiceParams.oMessageData.body.sComponent,
612
+ oServiceParams.oMessageData.body.bTransient,
613
+ oServiceParams.oMessageData.body.iPersistencyMethod,
614
+ oServiceParams.oMessageData.body.oPersistencySettings);
550
615
  }
551
616
  },
552
617
  _loadAppState: {
553
- executeServiceCallFn: function (oServiceParams) {
554
- var oDeferred = new jQuery.Deferred();
555
- sap.ushell.Container.getServiceAsync("AppState").then(function (oAppStateService) {
556
- oAppStateService._loadAppState(oServiceParams.oMessageData.body.sKey).then(oDeferred.resolve, oDeferred.reject);
557
- });
558
- return oDeferred.promise();
618
+ executeServiceCallFn: async (oServiceParams) => {
619
+ const oAppStateService = await Container.getServiceAsync("AppState");
620
+ return oAppStateService._loadAppState(oServiceParams.oMessageData.body.sKey);
559
621
  }
560
622
  },
561
623
  deleteAppState: {
562
- executeServiceCallFn: function (oServiceParams) {
563
- var oDeferred = new jQuery.Deferred();
564
- sap.ushell.Container.getServiceAsync("AppState").then(function (oAppStateService) {
565
- oAppStateService.deleteAppState(oServiceParams.oMessageData.body.sKey).then(oDeferred.resolve, oDeferred.reject);
566
- });
567
- return oDeferred.promise();
624
+ executeServiceCallFn: async (oServiceParams) => {
625
+ const oAppStateService = await Container.getServiceAsync("AppState");
626
+ return oAppStateService.deleteAppState(oServiceParams.oMessageData.body.sKey);
568
627
  }
569
628
  },
570
629
  makeStatePersistent: {
571
- executeServiceCallFn: function (oServiceParams) {
572
- var oDeferred = new jQuery.Deferred();
573
- sap.ushell.Container.getServiceAsync("AppState").then(function (oAppStateService) {
574
- oAppStateService.makeStatePersistent(
575
- oServiceParams.oMessageData.body.sKey,
576
- oServiceParams.oMessageData.body.iPersistencyMethod,
577
- oServiceParams.oMessageData.body.oPersistencySettings).then(oDeferred.resolve, oDeferred.reject);
578
- });
579
- return oDeferred.promise();
580
- }
630
+ executeServiceCallFn: async (oServiceParams) => {
631
+ const oAppStateService = await Container.getServiceAsync("AppState");
632
+ return oAppStateService.makeStatePersistent(
633
+ oServiceParams.oMessageData.body.sKey,
634
+ oServiceParams.oMessageData.body.iPersistencyMethod,
635
+ oServiceParams.oMessageData.body.oPersistencySettings);
636
+ }
581
637
  }
582
638
  }
583
639
  },
584
640
  "sap.ushell.services.Bookmark": {
585
641
  oServiceCalls: {
586
642
  addBookmarkUI5: {
587
- executeServiceCallFn: function (oServiceParams) {
643
+ executeServiceCallFn: (oServiceParams) => {
588
644
  var oDeferred = new jQuery.Deferred();
589
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
645
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
590
646
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
591
647
  PostMessageAPI.prototype._stripBookmarkServiceUrlForLocalContentProvider(oServiceParams.oMessageData.body.oParameters, oSystemContext);
592
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
648
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
593
649
  oBookmarkService.addBookmark(
594
650
  oServiceParams.oMessageData.body.oParameters,
595
651
  oServiceParams.oMessageData.body.vContainer,
@@ -602,9 +658,9 @@ sap.ui.define([
602
658
  }
603
659
  },
604
660
  addBookmark: {
605
- executeServiceCallFn: function (oServiceParams) {
661
+ executeServiceCallFn: (oServiceParams) => {
606
662
  var oDeferred = new jQuery.Deferred();
607
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
663
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
608
664
  oBookmarkService.addBookmarkByGroupId(
609
665
  oServiceParams.oMessageData.body.oParameters,
610
666
  oServiceParams.oMessageData.body.groupId).then(oDeferred.resolve, oDeferred.reject);
@@ -613,18 +669,18 @@ sap.ui.define([
613
669
  }
614
670
  },
615
671
  getShellGroupIDs: {
616
- executeServiceCallFn: function (/*oServiceParams*/) {
672
+ executeServiceCallFn: () => {
617
673
  var oDeferred = new jQuery.Deferred();
618
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
674
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
619
675
  oBookmarkService.getShellGroupIDs().then(oDeferred.resolve, oDeferred.reject);
620
676
  });
621
677
  return oDeferred.promise();
622
678
  }
623
679
  },
624
680
  addCatalogTileToGroup: {
625
- executeServiceCallFn: function (oServiceParams) {
681
+ executeServiceCallFn: (oServiceParams) => {
626
682
  var oDeferred = new jQuery.Deferred();
627
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
683
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
628
684
  oBookmarkService.addCatalogTileToGroup(
629
685
  oServiceParams.oMessageData.body.sCatalogTileId,
630
686
  oServiceParams.oMessageData.body.sGroupId,
@@ -634,11 +690,11 @@ sap.ui.define([
634
690
  }
635
691
  },
636
692
  countBookmarks: {
637
- executeServiceCallFn: function (oServiceParams) {
693
+ executeServiceCallFn: (oServiceParams) => {
638
694
  var oDeferred = new jQuery.Deferred();
639
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
695
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
640
696
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
641
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
697
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
642
698
  oBookmarkService.countBookmarks(
643
699
  oServiceParams.oMessageData.body.sUrl,
644
700
  oSystemContext.id).then(oDeferred.resolve, oDeferred.reject);
@@ -649,11 +705,11 @@ sap.ui.define([
649
705
  }
650
706
  },
651
707
  deleteBookmarks: {
652
- executeServiceCallFn: function (oServiceParams) {
708
+ executeServiceCallFn: (oServiceParams) => {
653
709
  var oDeferred = new jQuery.Deferred();
654
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
710
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
655
711
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
656
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
712
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
657
713
  oBookmarkService.deleteBookmarks(
658
714
  oServiceParams.oMessageData.body.sUrl,
659
715
  oSystemContext.id).then(oDeferred.resolve, oDeferred.reject);
@@ -664,11 +720,11 @@ sap.ui.define([
664
720
  }
665
721
  },
666
722
  updateBookmarks: {
667
- executeServiceCallFn: function (oServiceParams) {
723
+ executeServiceCallFn: (oServiceParams) => {
668
724
  var oDeferred = new jQuery.Deferred();
669
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
725
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
670
726
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
671
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
727
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
672
728
  oBookmarkService.updateBookmarks(
673
729
  oServiceParams.oMessageData.body.sUrl,
674
730
  oServiceParams.oMessageData.body.oParameters,
@@ -680,20 +736,20 @@ sap.ui.define([
680
736
  }
681
737
  },
682
738
  getContentNodes: {
683
- executeServiceCallFn: function (/*oServiceParams*/) {
739
+ executeServiceCallFn: () => {
684
740
  var oDeferred = new jQuery.Deferred();
685
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
741
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
686
742
  oBookmarkService.getContentNodes().then(oDeferred.resolve, oDeferred.reject);
687
743
  });
688
744
  return oDeferred.promise();
689
745
  }
690
746
  },
691
747
  addCustomBookmark: {
692
- executeServiceCallFn: function (oServiceParams) {
748
+ executeServiceCallFn: (oServiceParams) => {
693
749
  var oDeferred = new jQuery.Deferred();
694
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
750
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
695
751
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
696
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
752
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
697
753
  oBookmarkService.addCustomBookmark(
698
754
  oServiceParams.oMessageData.body.sVizType,
699
755
  oServiceParams.oMessageData.body.oConfig,
@@ -706,12 +762,12 @@ sap.ui.define([
706
762
  }
707
763
  },
708
764
  countCustomBookmarks: {
709
- executeServiceCallFn: function (oServiceParams) {
765
+ executeServiceCallFn: (oServiceParams) => {
710
766
  var oDeferred = new jQuery.Deferred();
711
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
767
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
712
768
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
713
769
  oServiceParams.oMessageData.body.oIdentifier.contentProviderId = oSystemContext.id;
714
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
770
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
715
771
  oBookmarkService.countCustomBookmarks(oServiceParams.oMessageData.body.oIdentifier).then(oDeferred.resolve, oDeferred.reject);
716
772
  });
717
773
  });
@@ -720,12 +776,12 @@ sap.ui.define([
720
776
  }
721
777
  },
722
778
  updateCustomBookmarks: {
723
- executeServiceCallFn: function (oServiceParams) {
779
+ executeServiceCallFn: (oServiceParams) => {
724
780
  var oDeferred = new jQuery.Deferred();
725
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
781
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
726
782
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
727
783
  oServiceParams.oMessageData.body.oIdentifier.contentProviderId = oSystemContext.id;
728
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
784
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
729
785
  oBookmarkService.updateCustomBookmarks(
730
786
  oServiceParams.oMessageData.body.oIdentifier,
731
787
  oServiceParams.oMessageData.body.oConfig).then(oDeferred.resolve, oDeferred.reject);
@@ -736,12 +792,12 @@ sap.ui.define([
736
792
  }
737
793
  },
738
794
  deleteCustomBookmarks: {
739
- executeServiceCallFn: function (oServiceParams) {
795
+ executeServiceCallFn: (oServiceParams) => {
740
796
  var oDeferred = new jQuery.Deferred();
741
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
797
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
742
798
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
743
799
  oServiceParams.oMessageData.body.oIdentifier.contentProviderId = oSystemContext.id;
744
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (oBookmarkService) {
800
+ Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
745
801
  oBookmarkService.deleteCustomBookmarks(oServiceParams.oMessageData.body.oIdentifier).then(oDeferred.resolve, oDeferred.reject);
746
802
  });
747
803
  });
@@ -750,11 +806,11 @@ sap.ui.define([
750
806
  }
751
807
  },
752
808
  addBookmarkToPage: {
753
- executeServiceCallFn: function (oServiceParams) {
809
+ executeServiceCallFn: (oServiceParams) => {
754
810
  var oDeferred = new jQuery.Deferred();
755
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
811
+ Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
756
812
  oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
757
- sap.ushell.Container.getServiceAsync("Bookmark").then(function (BookmarkService) {
813
+ Container.getServiceAsync("BookmarkV2").then(function (BookmarkService) {
758
814
  BookmarkService.addBookmarkToPage(
759
815
  oServiceParams.oMessageData.body.oParameters,
760
816
  oServiceParams.oMessageData.body.sPageId,
@@ -767,24 +823,179 @@ sap.ui.define([
767
823
  }
768
824
  }
769
825
  },
826
+ "sap.ushell.services.BookmarkV2": {
827
+ oServiceCalls: {
828
+ addBookmarkUI5: {
829
+ executeServiceCallFn: (oServiceParams) => {
830
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
831
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext();
832
+ }).then(function (oSystemContext) {
833
+ PostMessageAPI.prototype._stripBookmarkServiceUrlForLocalContentProvider(oServiceParams.oMessageData.body.oParameters, oSystemContext);
834
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
835
+ return oBookmarkService.addBookmark(
836
+ oServiceParams.oMessageData.body.oParameters,
837
+ oServiceParams.oMessageData.body.vContainer,
838
+ oSystemContext.id);
839
+ });
840
+ });
841
+ }
842
+ },
843
+ addBookmark: {
844
+ executeServiceCallFn: (oServiceParams) => {
845
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
846
+ return oBookmarkService.addBookmarkByGroupId(
847
+ oServiceParams.oMessageData.body.oParameters,
848
+ oServiceParams.oMessageData.body.groupId);
849
+ });
850
+ }
851
+ },
852
+ getShellGroupIDs: {
853
+ executeServiceCallFn: () => {
854
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
855
+ return oBookmarkService.getShellGroupIDs();
856
+ });
857
+ }
858
+ },
859
+ addCatalogTileToGroup: {
860
+ executeServiceCallFn: (oServiceParams) => {
861
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
862
+ return oBookmarkService.addCatalogTileToGroup(
863
+ oServiceParams.oMessageData.body.sCatalogTileId,
864
+ oServiceParams.oMessageData.body.sGroupId,
865
+ oServiceParams.oMessageData.body.oCatalogData);
866
+ });
867
+ }
868
+ },
869
+ countBookmarks: {
870
+ executeServiceCallFn: (oServiceParams) => {
871
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
872
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
873
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
874
+ return oBookmarkService.countBookmarks(oServiceParams.oMessageData.body.sUrl, oSystemContext.id);
875
+ });
876
+ });
877
+ });
878
+ }
879
+ },
880
+ deleteBookmarks: {
881
+ executeServiceCallFn: (oServiceParams) => {
882
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
883
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
884
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
885
+ return oBookmarkService.deleteBookmarks(oServiceParams.oMessageData.body.sUrl, oSystemContext.id);
886
+ });
887
+ });
888
+ });
889
+ }
890
+ },
891
+ updateBookmarks: {
892
+ executeServiceCallFn: (oServiceParams) => {
893
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
894
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
895
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
896
+ return oBookmarkService.updateBookmarks(
897
+ oServiceParams.oMessageData.body.sUrl,
898
+ oServiceParams.oMessageData.body.oParameters,
899
+ oSystemContext.id);
900
+ });
901
+ });
902
+ });
903
+ }
904
+ },
905
+ getContentNodes: {
906
+ executeServiceCallFn: () => {
907
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
908
+ return oBookmarkService.getContentNodes();
909
+ });
910
+ }
911
+ },
912
+ addCustomBookmark: {
913
+ executeServiceCallFn: (oServiceParams) => {
914
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
915
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
916
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
917
+ return oBookmarkService.addCustomBookmark(
918
+ oServiceParams.oMessageData.body.sVizType,
919
+ oServiceParams.oMessageData.body.oConfig,
920
+ oServiceParams.oMessageData.body.vContentNodes,
921
+ oSystemContext.id);
922
+ });
923
+ });
924
+ });
925
+ }
926
+ },
927
+ countCustomBookmarks: {
928
+ executeServiceCallFn: (oServiceParams) => {
929
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
930
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
931
+ oServiceParams.oMessageData.body.oIdentifier.contentProviderId = oSystemContext.id;
932
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
933
+ return oBookmarkService.countCustomBookmarks(oServiceParams.oMessageData.body.oIdentifier);
934
+ });
935
+ });
936
+ });
937
+ }
938
+ },
939
+ updateCustomBookmarks: {
940
+ executeServiceCallFn: (oServiceParams) => {
941
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
942
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
943
+ oServiceParams.oMessageData.body.oIdentifier.contentProviderId = oSystemContext.id;
944
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
945
+ return oBookmarkService.updateCustomBookmarks(
946
+ oServiceParams.oMessageData.body.oIdentifier,
947
+ oServiceParams.oMessageData.body.oConfig);
948
+ });
949
+ });
950
+ });
951
+ }
952
+ },
953
+ deleteCustomBookmarks: {
954
+ executeServiceCallFn: (oServiceParams) => {
955
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
956
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
957
+ oServiceParams.oMessageData.body.oIdentifier.contentProviderId = oSystemContext.id;
958
+ return Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
959
+ return oBookmarkService.deleteCustomBookmarks(oServiceParams.oMessageData.body.oIdentifier);
960
+ });
961
+ });
962
+ });
963
+ }
964
+ },
965
+ addBookmarkToPage: {
966
+ executeServiceCallFn: (oServiceParams) => {
967
+ return Container.getServiceAsync("AppLifeCycle").then(function (oAppLifeCycleService) {
968
+ return oAppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
969
+ return Container.getServiceAsync("BookmarkV2").then(function (BookmarkService) {
970
+ return BookmarkService.addBookmarkToPage(
971
+ oServiceParams.oMessageData.body.oParameters,
972
+ oServiceParams.oMessageData.body.sPageId,
973
+ oSystemContext.id);
974
+ });
975
+ });
976
+ });
977
+ }
978
+ }
979
+ }
980
+ },
770
981
  "sap.ushell.services.AppLifeCycle": {
771
982
  oServiceCalls: {
772
983
  getFullyQualifiedXhrUrl: {
773
- executeServiceCallFn: function (oServiceParams) {
984
+ executeServiceCallFn: (oServiceParams) => {
774
985
  var result = "",
775
986
  xhr = "",
776
987
  oDeferred = new jQuery.Deferred(),
777
988
  path = oServiceParams.oMessageData.body.path;
778
989
 
779
990
  if (path !== "" && path !== undefined && path !== null) {
780
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (AppLifeCycleService) {
991
+ Container.getServiceAsync("AppLifeCycle").then(function (AppLifeCycleService) {
781
992
  AppLifeCycleService.getCurrentApplication().getSystemContext().then(function (oSystemContext) {
782
993
  xhr = oSystemContext.getFullyQualifiedXhrUrl(path);
783
994
 
784
995
  var sHostName = "",
785
996
  sProtocol = "",
786
997
  sPort = "",
787
- sFlpURL = sap.ushell.Container.getFLPUrl(true),
998
+ sFlpURL = Container.getFLPUrl(true),
788
999
  oURI = new URI(sFlpURL);
789
1000
  if (oURI.protocol() !== null && oURI.protocol() !== undefined && oURI.protocol() !== "") {
790
1001
  sProtocol = oURI.protocol() + "://";
@@ -806,41 +1017,26 @@ sap.ui.define([
806
1017
  }
807
1018
  },
808
1019
  getSystemAlias: {
809
- executeServiceCallFn: function (oServiceParams) {
1020
+ executeServiceCallFn: async (oServiceParams) => {
810
1021
  var sSystemAlias = oServiceParams.oContainer.getSystemAlias();
811
1022
  if (sSystemAlias === null || sSystemAlias === undefined) {
812
1023
  sSystemAlias = "";
813
1024
  }
814
-
815
- return new jQuery.Deferred().resolve(sSystemAlias).promise();
1025
+ return sSystemAlias;
816
1026
  }
817
1027
  },
818
1028
  setNewAppInfo: {
819
- executeServiceCallFn: function (oServiceParams) {
820
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (AppLifeCycleService) {
1029
+ executeServiceCallFn: async (oServiceParams) => {
1030
+ Container.getServiceAsync("AppLifeCycle").then(function (AppLifeCycleService) {
821
1031
  AppLifeCycleService.setAppInfo(oServiceParams.oMessageData.body, true);
822
1032
  });
823
- return new jQuery.Deferred().resolve().promise();
824
1033
  }
825
1034
  },
826
1035
  updateCurrentAppInfo: {
827
- executeServiceCallFn: function (oServiceParams) {
828
- sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (AppLifeCycleService) {
1036
+ executeServiceCallFn: async (oServiceParams) => {
1037
+ Container.getServiceAsync("AppLifeCycle").then(function (AppLifeCycleService) {
829
1038
  AppLifeCycleService.setAppInfo(oServiceParams.oMessageData.body, false);
830
1039
  });
831
- return Promise.resolve();
832
- }
833
- },
834
- changeAppKeepAliveStatus: {
835
- executeServiceCallFn: function (oServiceParams) {
836
- return new Promise(function (fnResolve) {
837
- sap.ui.require([
838
- "sap/ushell/components/applicationIntegration/AppLifeCycle"
839
- ], function (AppLifeCycleAI) {
840
- AppLifeCycleAI.changeAppKeepAliveStatus(oServiceParams.oContainer, oServiceParams.oMessageData.body);
841
- fnResolve();
842
- });
843
- });
844
1040
  }
845
1041
  }
846
1042
  }
@@ -848,9 +1044,8 @@ sap.ui.define([
848
1044
  "sap.ushell.services.AppConfiguration": {
849
1045
  oServiceCalls: {
850
1046
  setApplicationFullWidth: {
851
- executeServiceCallFn: function (oServiceParams) {
1047
+ executeServiceCallFn: async (oServiceParams) => {
852
1048
  AppConfiguration.setApplicationFullWidthInternal(oServiceParams.oMessageData.body.bValue);
853
- return new jQuery.Deferred().resolve().promise();
854
1049
  }
855
1050
  }
856
1051
  }
@@ -892,7 +1087,7 @@ sap.ui.define([
892
1087
  },
893
1088
  oServiceCalls: {
894
1089
  hashChange: {
895
- executeServiceCallFn: function (oServiceParams) {
1090
+ executeServiceCallFn: (oServiceParams) => {
896
1091
  //FIX for internal incident #1980317281 - In general, hash structure in FLP is splitted into 3 parts:
897
1092
  //A - application identification & B - Application parameters & C - Internal application area
898
1093
  // Now, when an IFrame changes its hash, it sends PostMessage up to the FLP. The FLP does 2 things: Change its URL
@@ -908,9 +1103,9 @@ sap.ui.define([
908
1103
  // that is running in the Iframe.
909
1104
  var sDirection = oServiceParams.oMessageData.body.direction;
910
1105
  if (sDirection) {
911
- sap.ushell.Container.getServiceAsync("ShellNavigation").then(function (oShellNavigationService) {
912
- oShellNavigationService.hashChanger.fireEvent("hashReplaced", {
913
- hash: oShellNavigationService.hashChanger.getHash(),
1106
+ Container.getServiceAsync("ShellNavigationInternal").then(function (oShellNavigationInternal) {
1107
+ oShellNavigationInternal.hashChanger.fireEvent("hashReplaced", {
1108
+ hash: oShellNavigationInternal.hashChanger.getHash(),
914
1109
  direction: sDirection
915
1110
  });
916
1111
  Log.debug("PostMessageAPI.hashChange :: Informed by the Iframe, to change the " +
@@ -925,21 +1120,18 @@ sap.ui.define([
925
1120
  }
926
1121
  },
927
1122
  iframeIsValid: {
928
- executeServiceCallFn: function (oServiceParams) {
1123
+ executeServiceCallFn: async (oServiceParams) => {
929
1124
  oServiceParams.oContainer.setProperty("isIframeValidTime", {time: new Date().getTime()}, true);
930
- return new jQuery.Deferred().resolve().promise();
931
1125
  }
932
1126
  },
933
1127
  iframeIsBusy: {
934
- executeServiceCallFn: function (oServiceParams) {
1128
+ executeServiceCallFn: async (oServiceParams) => {
935
1129
  //deprecated since 1.118 and not used anymore
936
- return new jQuery.Deferred().resolve().promise();
937
1130
  }
938
1131
  },
939
1132
  isInvalidIframe: {
940
- executeServiceCallFn: function (oServiceParams) {
1133
+ executeServiceCallFn: async (oServiceParams) => {
941
1134
  oServiceParams.oContainer.setProperty("isInvalidIframe", oServiceParams.oMessageData.body.bValue, true);
942
- return new jQuery.Deferred().resolve().promise();
943
1135
  }
944
1136
  }
945
1137
  }
@@ -947,40 +1139,40 @@ sap.ui.define([
947
1139
  "sap.ushell.services.UserInfo": {
948
1140
  oServiceCalls: {
949
1141
  getThemeList: {
950
- executeServiceCallFn: function (oServiceParams) {
1142
+ executeServiceCallFn: (oServiceParams) => {
951
1143
  var oDeferred = new jQuery.Deferred();
952
- sap.ushell.Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
1144
+ Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
953
1145
  oUserInfoService.getThemeList().then(oDeferred.resolve, oDeferred.reject);
954
1146
  });
955
1147
  return oDeferred.promise();
956
1148
  }
957
1149
  },
958
1150
  getShellUserInfo: {
959
- executeServiceCallFn: function (oServiceParams) {
1151
+ executeServiceCallFn: (oServiceParams) => {
960
1152
  var oDeferred = new jQuery.Deferred();
961
- sap.ushell.Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
1153
+ Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
962
1154
  oUserInfoService.getShellUserInfo().then(oDeferred.resolve, oDeferred.reject);
963
1155
  });
964
1156
  return oDeferred.promise();
965
1157
  }
966
1158
  },
967
1159
  getLanguageList: {
968
- executeServiceCallFn: function (oServiceParams) {
1160
+ executeServiceCallFn: (oServiceParams) => {
969
1161
  var oDeferred = new jQuery.Deferred();
970
- sap.ushell.Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
1162
+ Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
971
1163
  oUserInfoService.getLanguageList().then(oDeferred.resolve, oDeferred.reject);
972
1164
  });
973
1165
  return oDeferred.promise();
974
1166
  }
975
1167
  },
976
1168
  updateUserPreferences: {
977
- executeServiceCallFn: function (oServiceParams) {
1169
+ executeServiceCallFn: (oServiceParams) => {
978
1170
  var oDeferred = new jQuery.Deferred();
979
1171
  if (oServiceParams.oMessageData.body.language) {
980
- sap.ushell.Container.getUser().setLanguage(oServiceParams.oMessageData.body.language);
981
- sap.ushell.Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
1172
+ Container.getUser().setLanguage(oServiceParams.oMessageData.body.language);
1173
+ Container.getServiceAsync("UserInfo").then(function (oUserInfoService) {
982
1174
  oUserInfoService.updateUserPreferences().then(function () {
983
- sap.ushell.Container.getUser().resetChangedProperty("language");
1175
+ Container.getUser().resetChangedProperty("language");
984
1176
  oDeferred.resolve();
985
1177
  }, oDeferred.reject);
986
1178
  });
@@ -991,13 +1183,12 @@ sap.ui.define([
991
1183
  }
992
1184
  },
993
1185
  openThemeManager: {
994
- executeServiceCallFn: function (oServiceParams) {
1186
+ executeServiceCallFn: async (oServiceParams) => {
995
1187
  EventHub.emit("openThemeManager", Date.now());
996
- return new jQuery.Deferred().resolve().promise();
997
1188
  }
998
1189
  },
999
1190
  getLocaleData: {
1000
- executeServiceCallFn: function (oServiceParams) {
1191
+ executeServiceCallFn: async (oServiceParams) => {
1001
1192
  const oLocaleData = {
1002
1193
  //date format
1003
1194
  calendarType: Formatting.getCalendarType(),
@@ -1016,7 +1207,7 @@ sap.ui.define([
1016
1207
  //currency formats
1017
1208
  currencyFormats: Formatting.getCustomCurrencies()
1018
1209
  };
1019
- return new jQuery.Deferred().resolve(oLocaleData).promise();
1210
+ return oLocaleData;
1020
1211
  }
1021
1212
  }
1022
1213
  }
@@ -1024,24 +1215,45 @@ sap.ui.define([
1024
1215
  "sap.ushell.services.ShellNavigation": {
1025
1216
  oServiceCalls: {
1026
1217
  toExternal: {
1027
- executeServiceCallFn: function (oServiceParams) {
1028
- sap.ushell.Container.getServiceAsync("ShellNavigation").then(function (oShellNavigationService) {
1029
- oShellNavigationService.toExternal(
1218
+ executeServiceCallFn: async (oServiceParams) => {
1219
+ Container.getServiceAsync("ShellNavigationInternal").then(function (oShellNavigationInternal) {
1220
+ oShellNavigationInternal.toExternal(
1221
+ oServiceParams.oMessageData.body.oArgs,
1222
+ undefined,
1223
+ oServiceParams.oMessageData.body.bWriteHistory);
1224
+ });
1225
+ }
1226
+ },
1227
+ toAppHash: {
1228
+ executeServiceCallFn: async (oServiceParams) => {
1229
+ Container.getServiceAsync("ShellNavigationInternal").then(function (oShellNavigationInternal) {
1230
+ oShellNavigationInternal.toAppHash(
1231
+ oServiceParams.oMessageData.body.sAppHash,
1232
+ oServiceParams.oMessageData.body.bWriteHistory);
1233
+ });
1234
+ }
1235
+ }
1236
+ }
1237
+ },
1238
+ "sap.ushell.services.ShellNavigationInternal": {
1239
+ oServiceCalls: {
1240
+ toExternal: {
1241
+ executeServiceCallFn: async (oServiceParams) => {
1242
+ Container.getServiceAsync("ShellNavigationInternal").then(function (oShellNavigationInternal) {
1243
+ oShellNavigationInternal.toExternal(
1030
1244
  oServiceParams.oMessageData.body.oArgs,
1031
1245
  undefined,
1032
1246
  oServiceParams.oMessageData.body.bWriteHistory);
1033
1247
  });
1034
- return new jQuery.Deferred().resolve().promise();
1035
1248
  }
1036
1249
  },
1037
1250
  toAppHash: {
1038
- executeServiceCallFn: function (oServiceParams) {
1039
- sap.ushell.Container.getServiceAsync("ShellNavigation").then(function (oShellNavigationService) {
1040
- oShellNavigationService.toAppHash(
1251
+ executeServiceCallFn: async (oServiceParams) => {
1252
+ Container.getServiceAsync("ShellNavigationInternal").then(function (oShellNavigationInternal) {
1253
+ oShellNavigationInternal.toAppHash(
1041
1254
  oServiceParams.oMessageData.body.sAppHash,
1042
1255
  oServiceParams.oMessageData.body.bWriteHistory);
1043
1256
  });
1044
- return new jQuery.Deferred().resolve().promise();
1045
1257
  }
1046
1258
  }
1047
1259
  }
@@ -1049,45 +1261,45 @@ sap.ui.define([
1049
1261
  "sap.ushell.services.NavTargetResolution": {
1050
1262
  oServiceCalls: {
1051
1263
  getDistinctSemanticObjects: {
1052
- executeServiceCallFn: function (/*oServiceParams*/) {
1264
+ executeServiceCallFn: () => {
1053
1265
  var oDeferred = new jQuery.Deferred();
1054
- sap.ushell.Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1266
+ Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1055
1267
  oNavTargetResolutionService.getDistinctSemanticObjects().then(oDeferred.resolve, oDeferred.reject);
1056
1268
  });
1057
1269
  return oDeferred.promise();
1058
1270
  }
1059
1271
  },
1060
1272
  expandCompactHash: {
1061
- executeServiceCallFn: function (oServiceParams) {
1273
+ executeServiceCallFn: (oServiceParams) => {
1062
1274
  var oDeferred = new jQuery.Deferred();
1063
- sap.ushell.Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1275
+ Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1064
1276
  oNavTargetResolutionService.expandCompactHash(oServiceParams.oMessageData.body.sHashFragment).then(oDeferred.resolve, oDeferred.reject);
1065
1277
  });
1066
1278
  return oDeferred.promise();
1067
1279
  }
1068
1280
  },
1069
1281
  resolveHashFragment: {
1070
- executeServiceCallFn: function (oServiceParams) {
1282
+ executeServiceCallFn: (oServiceParams) => {
1071
1283
  var oDeferred = new jQuery.Deferred();
1072
- sap.ushell.Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1284
+ Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1073
1285
  oNavTargetResolutionService.resolveHashFragment(oServiceParams.oMessageData.body.sHashFragment).then(oDeferred.resolve, oDeferred.reject);
1074
1286
  });
1075
1287
  return oDeferred.promise();
1076
1288
  }
1077
1289
  },
1078
1290
  isIntentSupported: {
1079
- executeServiceCallFn: function (oServiceParams) {
1291
+ executeServiceCallFn: (oServiceParams) => {
1080
1292
  var oDeferred = new jQuery.Deferred();
1081
- sap.ushell.Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1293
+ Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1082
1294
  oNavTargetResolutionService.isIntentSupported(oServiceParams.oMessageData.body.aIntents).then(oDeferred.resolve, oDeferred.reject);
1083
1295
  });
1084
1296
  return oDeferred.promise();
1085
1297
  }
1086
1298
  },
1087
1299
  isNavigationSupported: {
1088
- executeServiceCallFn: function (oServiceParams) {
1300
+ executeServiceCallFn: (oServiceParams) => {
1089
1301
  var oDeferred = new jQuery.Deferred();
1090
- sap.ushell.Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1302
+ Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolutionService) {
1091
1303
  oNavTargetResolutionService.isNavigationSupported(oServiceParams.oMessageData.body.aIntents).then(oDeferred.resolve, oDeferred.reject);
1092
1304
  });
1093
1305
  return oDeferred.promise();
@@ -1098,79 +1310,69 @@ sap.ui.define([
1098
1310
  "sap.ushell.services.Renderer": {
1099
1311
  oServiceCalls: {
1100
1312
  addHeaderItem: {
1101
- executeServiceCallFn: function (oServiceParams) {
1313
+ executeServiceCallFn: async (oServiceParams) => {
1102
1314
  addRendererButton("addHeaderItem", oServiceParams);
1103
- return new jQuery.Deferred().resolve().promise();
1104
1315
  }
1105
1316
  },
1106
1317
 
1107
1318
  addHeaderEndItem: {
1108
- executeServiceCallFn: function (oServiceParams) {
1319
+ executeServiceCallFn: async (oServiceParams) => {
1109
1320
  addRendererButton("addHeaderEndItem", oServiceParams);
1110
- return new jQuery.Deferred().resolve().promise();
1111
1321
  }
1112
1322
  },
1113
1323
 
1114
1324
  showHeaderItem: {
1115
- executeServiceCallFn: function (oServiceParams) {
1116
- sap.ushell.Container.getRenderer("fiori2").showHeaderItem(
1325
+ executeServiceCallFn: async (oServiceParams) => {
1326
+ Container.getRendererInternal("fiori2").showHeaderItem(
1117
1327
  oServiceParams.oMessageData.body.aIds,
1118
1328
  oServiceParams.oMessageData.body.bCurrentState || true,
1119
1329
  oServiceParams.oMessageData.body.aStates
1120
1330
  );
1121
- return new jQuery.Deferred().resolve().promise();
1122
1331
  }
1123
1332
  },
1124
1333
  showHeaderEndItem: {
1125
- executeServiceCallFn: function (oServiceParams) {
1126
- sap.ushell.Container.getRenderer("fiori2").showHeaderEndItem(
1334
+ executeServiceCallFn: async (oServiceParams) => {
1335
+ Container.getRendererInternal("fiori2").showHeaderEndItem(
1127
1336
  oServiceParams.oMessageData.body.aIds,
1128
1337
  oServiceParams.oMessageData.body.bCurrentState || true,
1129
1338
  oServiceParams.oMessageData.body.aStates
1130
1339
  );
1131
- return new jQuery.Deferred().resolve().promise();
1132
1340
  }
1133
1341
  },
1134
1342
  hideHeaderItem: {
1135
- executeServiceCallFn: function (oServiceParams) {
1136
- sap.ushell.Container.getRenderer("fiori2").hideHeaderItem(
1343
+ executeServiceCallFn: async (oServiceParams) => {
1344
+ Container.getRendererInternal("fiori2").hideHeaderItem(
1137
1345
  oServiceParams.oMessageData.body.aIds,
1138
1346
  oServiceParams.oMessageData.body.bCurrentState || true,
1139
1347
  oServiceParams.oMessageData.body.aStates
1140
1348
  );
1141
- return new jQuery.Deferred().resolve().promise();
1142
1349
  }
1143
1350
  },
1144
1351
  hideHeaderEndItem: {
1145
- executeServiceCallFn: function (oServiceParams) {
1146
- sap.ushell.Container.getRenderer("fiori2").hideHeaderEndItem(
1352
+ executeServiceCallFn: async (oServiceParams) => {
1353
+ Container.getRendererInternal("fiori2").hideHeaderEndItem(
1147
1354
  oServiceParams.oMessageData.body.aIds,
1148
1355
  oServiceParams.oMessageData.body.bCurrentState || true,
1149
1356
  oServiceParams.oMessageData.body.aStates
1150
1357
  );
1151
- return new jQuery.Deferred().resolve().promise();
1152
1358
  }
1153
1359
  },
1154
1360
  setHeaderTitle: {
1155
- executeServiceCallFn: function (oServiceParams) {
1156
- sap.ushell.Container.getRenderer("fiori2").setHeaderTitle(
1157
- oServiceParams.oMessageData.body.sTitle
1158
- );
1159
- return new jQuery.Deferred().resolve().promise();
1361
+ executeServiceCallFn: async (oServiceParams) => {
1362
+ Container.getRendererInternal("fiori2").setHeaderTitle(oServiceParams.oMessageData.body.sTitle);
1160
1363
  }
1161
1364
  },
1162
1365
  setHeaderVisibility: {
1163
- executeServiceCallFn: function (oServiceParams) {
1164
- sap.ushell.Container.getRenderer("fiori2").setHeaderVisibility(
1366
+ executeServiceCallFn: async (oServiceParams) => {
1367
+ Container.getRendererInternal("fiori2").setHeaderVisibility(
1165
1368
  oServiceParams.oMessageData.body.bVisible,
1166
1369
  oServiceParams.oMessageData.body.bCurrentState || true,
1167
1370
  oServiceParams.oMessageData.body.aStates
1168
1371
  );
1169
- return new jQuery.Deferred().resolve().promise();
1170
1372
  }
1171
1373
  },
1172
1374
  createShellHeadItem: {
1173
- executeServiceCallFn: function (oServiceParams) {
1375
+ executeServiceCallFn: async (oServiceParams) => {
1174
1376
  var params = oServiceParams.oMessageData.body.params;
1175
1377
  params.press = function () {
1176
1378
  sap.ui.require(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"], function (PostMessageUtils) {
@@ -1180,51 +1382,47 @@ sap.ui.define([
1180
1382
  /*eslint-disable no-new*/
1181
1383
  new ShellHeadItem(params);
1182
1384
  /*eslint-enable no-new*/
1183
- return new jQuery.Deferred().resolve().promise();
1184
1385
  }
1185
1386
  },
1186
1387
  showActionButton: {
1187
- executeServiceCallFn: function (oServiceParams) {
1188
- sap.ushell.Container.getRenderer("fiori2").showActionButton(
1388
+ executeServiceCallFn: async (oServiceParams) => {
1389
+ Container.getRendererInternal("fiori2").showActionButton(
1189
1390
  oServiceParams.oMessageData.body.aIds,
1190
1391
  oServiceParams.oMessageData.body.bCurrentState,
1191
1392
  oServiceParams.oMessageData.body.aStates
1192
1393
  );
1193
- return new jQuery.Deferred().resolve().promise();
1194
1394
  }
1195
1395
  },
1196
1396
  hideActionButton: {
1197
- executeServiceCallFn: function (oServiceParams) {
1198
- sap.ushell.Container.getRenderer("fiori2").hideActionButton(
1397
+ executeServiceCallFn: async (oServiceParams) => {
1398
+ Container.getRendererInternal("fiori2").hideActionButton(
1199
1399
  oServiceParams.oMessageData.body.aIds,
1200
1400
  oServiceParams.oMessageData.body.bCurrentState,
1201
1401
  oServiceParams.oMessageData.body.aStates
1202
1402
  );
1203
- return new jQuery.Deferred().resolve().promise();
1204
1403
  }
1205
1404
  },
1206
1405
  addUserAction: {
1207
- executeServiceCallFn: function (oServiceParams) {
1406
+ executeServiceCallFn: async (oServiceParams) => {
1208
1407
  oServiceParams.oMessageData.body.oParameters.oControlProperties.press = function () {
1209
1408
  sap.ui.require(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"], function (PostMessageUtils) {
1210
1409
  PostMessageUtils.postMessageToIframeApp(oServiceParams.oContainer, "sap.ushell.appRuntime", "buttonClick",
1211
1410
  { buttonId: oServiceParams.oMessageData.body.oParameters.oControlProperties.id });
1212
1411
  });
1213
1412
  };
1214
- sap.ushell.Container.getRenderer("fiori2").addUserAction(
1413
+ Container.getRendererInternal("fiori2").addUserAction(
1215
1414
  oServiceParams.oMessageData.body.oParameters
1216
1415
  );
1217
- return new jQuery.Deferred().resolve().promise();
1218
1416
  }
1219
1417
  },
1220
1418
  addOptionsActionSheetButton: {
1221
- executeServiceCallFn: function (oServiceParams) {
1419
+ executeServiceCallFn: async (oServiceParams) => {
1222
1420
  var aButtons = Array.isArray(oServiceParams.oMessageData.body) ?
1223
1421
  oServiceParams.oMessageData.body : [oServiceParams.oMessageData.body];
1224
1422
 
1225
1423
  aButtons.forEach(function (oButton) {
1226
- if (Core.byId(oButton.id)) {
1227
- Core.byId(oButton.id).destroy();
1424
+ if (Element.getElementById(oButton.id)) {
1425
+ Element.getElementById(oButton.id).destroy();
1228
1426
  }
1229
1427
  /*eslint-disable no-new*/
1230
1428
  new Button({
@@ -1239,46 +1437,42 @@ sap.ui.define([
1239
1437
  }
1240
1438
  });
1241
1439
  /*eslint-enable no-new*/
1242
- sap.ushell.Container.getRenderer("fiori2").showActionButton(
1440
+ Container.getRendererInternal("fiori2").showActionButton(
1243
1441
  [oButton.id],
1244
1442
  true,
1245
1443
  oButton.aStates
1246
1444
  );
1247
1445
  });
1248
- return new jQuery.Deferred().resolve().promise();
1249
1446
  }
1250
1447
  },
1251
1448
  removeOptionsActionSheetButton: {
1252
- executeServiceCallFn: function (oServiceParams) {
1449
+ executeServiceCallFn: async (oServiceParams) => {
1253
1450
  var aButtons = Array.isArray(oServiceParams.oMessageData.body) ?
1254
1451
  oServiceParams.oMessageData.body : [oServiceParams.oMessageData.body];
1255
1452
 
1256
1453
  aButtons.forEach(function (oButton) {
1257
- sap.ushell.Container.getRenderer("fiori2").hideActionButton(
1454
+ Container.getRendererInternal("fiori2").hideActionButton(
1258
1455
  oButton.id,
1259
1456
  true,
1260
1457
  oButton.aStates
1261
1458
  );
1262
- if (Core.byId(oButton.id)) {
1263
- Core.byId(oButton.id).destroy();
1459
+ if (Element.getElementById(oButton.id)) {
1460
+ Element.getElementById(oButton.id).destroy();
1264
1461
  }
1265
1462
  });
1266
- return new jQuery.Deferred().resolve().promise();
1267
1463
  }
1268
1464
  },
1269
1465
  updateHeaderItem: {
1270
- executeServiceCallFn: function (oServiceParams) {
1271
- sap.ushell.Container.getRenderer("fiori2").updateHeaderItem(
1466
+ executeServiceCallFn: async (oServiceParams) => {
1467
+ Container.getRendererInternal("fiori2").updateHeaderItem(
1272
1468
  oServiceParams.oMessageData.body.sId,
1273
1469
  oServiceParams.oMessageData.body.oControlProperties);
1274
- return new jQuery.Deferred().resolve().promise();
1275
1470
  }
1276
1471
  },
1277
1472
  destroyButton: {
1278
- executeServiceCallFn: function (oServiceParams) {
1279
- sap.ushell.Container.getRenderer("fiori2").destroyButton(
1473
+ executeServiceCallFn: async (oServiceParams) => {
1474
+ Container.getRendererInternal("fiori2").destroyButton(
1280
1475
  oServiceParams.oMessageData.body.aIds);
1281
- return new jQuery.Deferred().resolve().promise();
1282
1476
  }
1283
1477
  }
1284
1478
  }
@@ -1286,9 +1480,9 @@ sap.ui.define([
1286
1480
  "sap.ushell.services.LaunchPage": {
1287
1481
  oServiceCalls: {
1288
1482
  getGroupsForBookmarks: {
1289
- executeServiceCallFn: function (/*oServiceParams*/) {
1483
+ executeServiceCallFn: () => {
1290
1484
  var oDeferred = new jQuery.Deferred();
1291
- sap.ushell.Container.getServiceAsync("LaunchPage").then(function (oLaunchPageService) {
1485
+ Container.getServiceAsync("LaunchPage").then(function (oLaunchPageService) {
1292
1486
  oLaunchPageService.getGroupsForBookmarks().then(oDeferred.resolve, oDeferred.reject);
1293
1487
  });
1294
1488
  return oDeferred.promise();
@@ -1299,9 +1493,9 @@ sap.ui.define([
1299
1493
  "sap.ushell.services.Menu": {
1300
1494
  oServiceCalls: {
1301
1495
  getSpacesPagesHierarchy: {
1302
- executeServiceCallFn: function (/*oServiceParams*/) {
1496
+ executeServiceCallFn: () => {
1303
1497
  var oDeferred = new jQuery.Deferred();
1304
- sap.ushell.Container.getServiceAsync("Menu").then(function (MenuService) {
1498
+ Container.getServiceAsync("Menu").then(function (MenuService) {
1305
1499
  MenuService.getSpacesPagesHierarchy().then(function (aSpacePagesHierarchy) {
1306
1500
  oDeferred.resolve(aSpacePagesHierarchy);
1307
1501
  });
@@ -1314,9 +1508,9 @@ sap.ui.define([
1314
1508
  "sap.ushell.services.CommonDataModel": {
1315
1509
  oServiceCalls: {
1316
1510
  getAllPages: {
1317
- executeServiceCallFn: function (/*oServiceParams*/) {
1511
+ executeServiceCallFn: () => {
1318
1512
  var oDeferred = new jQuery.Deferred();
1319
- sap.ushell.Container.getServiceAsync("CommonDataModel").then(function (CommonDataModelService) {
1513
+ Container.getServiceAsync("CommonDataModel").then(function (CommonDataModelService) {
1320
1514
  CommonDataModelService.getAllPages().then(function (aPages) {
1321
1515
  oDeferred.resolve(aPages);
1322
1516
  });
@@ -1329,9 +1523,9 @@ sap.ui.define([
1329
1523
  "sap.ushell.services.UITracer": {
1330
1524
  oServiceCalls: {
1331
1525
  trace: {
1332
- executeServiceCallFn: function (oServiceParams) {
1526
+ executeServiceCallFn: (oServiceParams) => {
1333
1527
  var oDeferred = new jQuery.Deferred();
1334
- sap.ushell.Container.getServiceAsync("UITracer").then(function () {
1528
+ Container.getServiceAsync("UITracer").then(function () {
1335
1529
  EventHub.emit("UITracer.trace", oServiceParams.oMessageData.body.trace);
1336
1530
  oDeferred.resolve();
1337
1531
  });
@@ -1343,17 +1537,17 @@ sap.ui.define([
1343
1537
  "sap.ushell.services.MessageBroker": {
1344
1538
  oServiceCalls: {
1345
1539
  _execute: {
1346
- executeServiceCallFn: function (oServiceParams) {
1540
+ executeServiceCallFn: (oServiceParams) => {
1347
1541
  var oDeferred = new jQuery.Deferred();
1348
1542
 
1349
1543
  if (Config.last("/core/shell/enableMessageBroker")) {
1350
- sap.ushell.Container.getServiceAsync("MessageBroker").then(function (oMessageBrokerService) {
1544
+ Container.getServiceAsync("MessageBroker").then(function (oMessageBrokerService) {
1351
1545
  sap.ui.require(["sap/ushell/services/_MessageBroker/MessageBrokerEngine"], function (MessageBrokerEngine) {
1352
1546
  MessageBrokerEngine.processPostMessage(oServiceParams).then(function (oResolvedData) {
1353
- oDeferred.resolve(oResolvedData);
1354
- }).catch(function (sError) {
1355
- oDeferred.reject(sError);
1356
- });
1547
+ oDeferred.resolve(oResolvedData);
1548
+ }).catch(function (sError) {
1549
+ oDeferred.reject(sError);
1550
+ });
1357
1551
  });
1358
1552
  });
1359
1553
  } else {
@@ -1367,9 +1561,9 @@ sap.ui.define([
1367
1561
  "sap.ushell.services.SearchableContent": {
1368
1562
  oServiceCalls: {
1369
1563
  getApps: {
1370
- executeServiceCallFn: function (oServiceParams) {
1564
+ executeServiceCallFn: (oServiceParams) => {
1371
1565
  var oDeferred = new jQuery.Deferred();
1372
- sap.ushell.Container.getServiceAsync("SearchableContent").then(function (SearchableContentService) {
1566
+ Container.getServiceAsync("SearchableContent").then(function (SearchableContentService) {
1373
1567
  var oOptions;
1374
1568
  try {
1375
1569
  oOptions = oServiceParams.oMessageData.body.oOptions;
@@ -1388,9 +1582,9 @@ sap.ui.define([
1388
1582
  "sap.ushell.services.ReferenceResolver": {
1389
1583
  oServiceCalls: {
1390
1584
  resolveReferences: {
1391
- executeServiceCallFn: function (oServiceParams) {
1585
+ executeServiceCallFn: (oServiceParams) => {
1392
1586
  var oDeferred = new jQuery.Deferred();
1393
- sap.ushell.Container.getServiceAsync("ReferenceResolver").then(function (ReferenceResolverService) {
1587
+ Container.getServiceAsync("ReferenceResolver").then(function (ReferenceResolverService) {
1394
1588
  ReferenceResolverService.resolveReferences(oServiceParams.oMessageData.body.aReferences).then(oDeferred.resolve, oDeferred.reject);
1395
1589
  });
1396
1590
  return oDeferred.promise();
@@ -1532,7 +1726,7 @@ sap.ui.define([
1532
1726
  sNewAppStateKey,
1533
1727
  oValue;
1534
1728
 
1535
- sap.ushell.Container.getServiceAsync("AppState").then(function (oAppStateService) {
1729
+ Container.getServiceAsync("AppState").then(function (oAppStateService) {
1536
1730
  oNewState = oAppStateService.createEmptyAppState();
1537
1731
  if (oServiceParams.oMessageData.body.sData !== undefined) {
1538
1732
  try {
@@ -1581,24 +1775,24 @@ sap.ui.define([
1581
1775
  */
1582
1776
  function showUIBlocker (bShow) {
1583
1777
  if (bShow === true) {
1584
- if (Core.byId("shell-header")) {
1585
- Core.byId("shell-header").setBlocked(true);
1778
+ if (Element.getElementById("shell-header")) {
1779
+ Element.getElementById("shell-header").setBlocked(true);
1586
1780
  var oHeaderElement = jQuery("#shell-header-blockedLayer");
1587
1781
  oHeaderElement.addClass("sapUshellShellBlocked");
1588
1782
  }
1589
- if (Core.byId("menuBar")) {
1783
+ if (Element.getElementById("menuBar")) {
1590
1784
  // This is a specific case for blocking menuPlugin items
1591
- Core.byId("menuBar").setBlocked(true);
1785
+ Element.getElementById("menuBar").setBlocked(true);
1592
1786
  var oMenuBarElement = jQuery("#menuBar-blockedLayer");
1593
1787
  oMenuBarElement.addClass("sapUshellMenuBarBlocked");
1594
1788
  }
1595
1789
  } else if (bShow === false) {
1596
- if (Core.byId("shell-header")) {
1597
- Core.byId("shell-header").setBlocked(false);
1790
+ if (Element.getElementById("shell-header")) {
1791
+ Element.getElementById("shell-header").setBlocked(false);
1598
1792
  }
1599
- if (Core.byId("menuBar")) {
1793
+ if (Element.getElementById("menuBar")) {
1600
1794
  // This is a specific case for blocking menuPlugin items
1601
- Core.byId("menuBar").setBlocked(false);
1795
+ Element.getElementById("menuBar").setBlocked(false);
1602
1796
  }
1603
1797
  }
1604
1798
  }
@@ -1607,7 +1801,7 @@ sap.ui.define([
1607
1801
  * @private
1608
1802
  */
1609
1803
  function addRendererButton (sAPI, oServiceParams) {
1610
- sap.ushell.Container.getRenderer("fiori2")[sAPI](
1804
+ Container.getRendererInternal("fiori2")[sAPI](
1611
1805
  "sap.ushell.ui.shell.ShellHeadItem",
1612
1806
  {
1613
1807
  id: oServiceParams.oMessageData.body.sId,
@@ -1630,7 +1824,7 @@ sap.ui.define([
1630
1824
  * @private
1631
1825
  */
1632
1826
  PostMessageAPI.prototype.registerAsyncDirtyStateProvider = function (oServiceParams) {
1633
- sap.ushell.Container.setAsyncDirtyStateProvider(function (oNavigationContext) {
1827
+ Container.setAsyncDirtyStateProvider(function (oNavigationContext) {
1634
1828
  return new Promise(function (fnResolve) {
1635
1829
  var backupTimer;
1636
1830
  sap.ui.require(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"], function (PostMessageUtils) {
@@ -1639,11 +1833,11 @@ sap.ui.define([
1639
1833
  "handleDirtyStateProvider",
1640
1834
  { oNavigationContext: oNavigationContext },
1641
1835
  true).then(function (oResponse) {
1642
- if (backupTimer) {
1643
- clearTimeout(backupTimer);
1644
- }
1645
- fnResolve(oResponse && oResponse.body && oResponse.body.result || false);
1646
- });
1836
+ if (backupTimer) {
1837
+ clearTimeout(backupTimer);
1838
+ }
1839
+ fnResolve(oResponse && oResponse.body && oResponse.body.result || false);
1840
+ });
1647
1841
  //safety check in case post message does not get result
1648
1842
  backupTimer = setTimeout(function () {
1649
1843
  fnResolve(false);
@@ -1657,48 +1851,45 @@ sap.ui.define([
1657
1851
  * @private
1658
1852
  */
1659
1853
  PostMessageAPI.prototype.deregisterAsyncDirtyStateProvider = function (oServiceParams) {
1660
- sap.ushell.Container.setAsyncDirtyStateProvider(undefined);
1854
+ Container.setAsyncDirtyStateProvider(undefined);
1661
1855
  };
1662
1856
 
1663
1857
  /**
1664
1858
  * @private
1665
1859
  */
1666
- PostMessageAPI.prototype._sendEmail = function (sTo, sSubject, sBody, sCc, sBcc, sIFrameURL, bSetAppStateToPublic) {
1860
+ PostMessageAPI.prototype._sendEmail = async function (sTo = "", sSubject = "", sBody = "", sCc = "", sBcc = "", sIFrameURL, bSetAppStateToPublic) {
1667
1861
  var sFLPUrl = (this._getBrowserURL && this._getBrowserURL()) || document.URL;
1668
1862
 
1669
1863
  function replaceIframeUrlToFLPUrl (sIFrameURL1, sFLPUrl1, sXStateKey, sIStateKey, sXStateKeyNew, sIStateKeyNew) {
1670
1864
  //replace iframe url with flp url
1671
- sSubject = sSubject && sSubject.includes(sIFrameURL1) ? sSubject.replace(sIFrameURL1, sFLPUrl1) : sSubject;
1672
- sBody = sBody && sBody.includes(sIFrameURL1) ? sBody.replace(sIFrameURL1, sFLPUrl1) : sBody;
1865
+ sSubject = sSubject.includes(sIFrameURL1) ? sSubject.replace(sIFrameURL1, sFLPUrl1) : sSubject;
1866
+ sBody = sBody.includes(sIFrameURL1) ? sBody.replace(sIFrameURL1, sFLPUrl1) : sBody;
1673
1867
 
1674
1868
  //for cases where we do not find iframe url, replace the app state keys
1675
- sSubject = sSubject && sXStateKey && sXStateKeyNew && sSubject.includes(sXStateKey) ? sSubject.replace(sXStateKey, sXStateKeyNew) : sSubject;
1676
- sSubject = sSubject && sIStateKey && sIStateKeyNew && sSubject.includes(sIStateKey) ? sSubject.replace(sIStateKey, sIStateKeyNew) : sSubject;
1677
- sBody = sBody && sXStateKey && sXStateKeyNew && sBody.includes(sXStateKey) ? sBody.replace(sXStateKey, sXStateKeyNew) : sBody;
1678
- sBody = sBody && sIStateKey && sIStateKeyNew && sBody.includes(sIStateKey) ? sBody.replace(sIStateKey, sIStateKeyNew) : sBody;
1869
+ if (sXStateKey && sXStateKeyNew) {
1870
+ sSubject = sSubject.includes(sXStateKey) ? sSubject.replace(sXStateKey, sXStateKeyNew) : sSubject;
1871
+ sSubject = sSubject.includes(sIStateKey) ? sSubject.replace(sIStateKey, sIStateKeyNew) : sSubject;
1872
+ sBody = sBody.includes(sXStateKey) ? sBody.replace(sXStateKey, sXStateKeyNew) : sBody;
1873
+ sBody = sBody.includes(sIStateKey) ? sBody.replace(sIStateKey, sIStateKeyNew) : sBody;
1874
+ }
1679
1875
  }
1680
1876
 
1681
1877
  if (bSetAppStateToPublic) {
1682
- sap.ushell.Container.getServiceAsync("AppState").then(function (oAppStateService) {
1683
- oAppStateService.setAppStateToPublic(sIFrameURL)
1684
- .done(function (sNewURL, sXStateKey, sIStateKey, sXStateKeyNew, sIStateKeyNew) {
1685
- if (sXStateKeyNew !== undefined) {
1686
- sFLPUrl = sFLPUrl.replace(sXStateKey, sXStateKeyNew);
1687
- }
1688
- if (sIStateKeyNew !== undefined) {
1689
- sFLPUrl = sFLPUrl.replace(sIStateKey, sIStateKeyNew);
1690
- }
1691
- //check if the subject or the body of the email contain the IFrame URL
1692
- replaceIframeUrlToFLPUrl(sIFrameURL, sFLPUrl, sXStateKey, sIStateKey, sXStateKeyNew, sIStateKeyNew);
1693
- // Send the email
1694
- URLHelper.triggerEmail(sTo, sSubject, sBody, sCc, sBcc);
1695
- })
1696
- .fail(Log.error);
1697
- });
1878
+ const oAppStateService = await Container.getServiceAsync("AppState");
1879
+ oAppStateService.setAppStateToPublic(sIFrameURL).then((sNewURL, sXStateKey, sIStateKey, sXStateKeyNew = "", sIStateKeyNew = "") => {
1880
+ if (sXStateKeyNew) {
1881
+ sFLPUrl = sFLPUrl.replace(sXStateKey, sXStateKeyNew);
1882
+ }
1883
+ if (sIStateKeyNew) {
1884
+ sFLPUrl = sFLPUrl.replace(sIStateKey, sIStateKeyNew);
1885
+ }
1886
+ //check if the subject or the body of the email contain the IFrame URL
1887
+ replaceIframeUrlToFLPUrl(sIFrameURL, sFLPUrl, sXStateKey, sIStateKey, sXStateKeyNew, sIStateKeyNew);
1888
+ URLHelper.triggerEmail(sTo, sSubject, sBody, sCc, sBcc);
1889
+ }, Log.error);
1698
1890
  } else {
1699
1891
  //check if the subject or the body of the email contain the IFrame URL
1700
1892
  replaceIframeUrlToFLPUrl(sIFrameURL, sFLPUrl);
1701
- //Send the email
1702
1893
  URLHelper.triggerEmail(sTo, sSubject, sBody, sCc, sBcc);
1703
1894
  }
1704
1895
  };
@@ -1747,7 +1938,7 @@ sap.ui.define([
1747
1938
  * a string identifying the origin where the message is sent from
1748
1939
  */
1749
1940
  PostMessageAPI.prototype._backButtonPressedCallback = function (oSourceWindow, sServiceName, sOrigin) {
1750
- var sRequestData = JSON.stringify({
1941
+ const sRequestData = JSON.stringify({
1751
1942
  type: "request",
1752
1943
  service: sServiceName,
1753
1944
  request_id: fnGetUid(),