@sapui5/sap.ushell 1.139.0 → 1.141.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.
- package/package.json +2 -2
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +2 -2
- package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +0 -1
- package/src/main/js/sap/ushell/ApplicationType/guiResolution.js +6 -6
- package/src/main/js/sap/ushell/ApplicationType/systemAlias.js +22 -25
- package/src/main/js/sap/ushell/ApplicationType/urlResolution.js +12 -6
- package/src/main/js/sap/ushell/ApplicationType/urlTemplateResolution.js +277 -302
- package/src/main/js/sap/ushell/ApplicationType/wcfResolution.js +0 -1
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +11 -10
- package/src/main/js/sap/ushell/ApplicationType.js +8 -8
- package/src/main/js/sap/ushell/Container.js +54 -56
- package/src/main/js/sap/ushell/EventHub.js +5 -7
- package/src/main/js/sap/ushell/Fiori20Adapter.js +17 -11
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/SessionHandler.js +1 -1
- package/src/main/js/sap/ushell/TechnicalParameters.js +5 -5
- package/src/main/js/sap/ushell/URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/Functions.js +11 -4
- package/src/main/js/sap/ushell/URLTemplateProcessor/Resolvers.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/TemplateParameterParser.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/utils.js +13 -2
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +13 -3
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +4 -2
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +29 -27
- package/src/main/js/sap/ushell/User.js +13 -14
- package/src/main/js/sap/ushell/UserActivityLog.js +3 -3
- package/src/main/js/sap/ushell/adapters/AppVariantPersonalizationAdapter.js +54 -43
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +13 -10
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +15 -14
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +155 -129
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +25 -23
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegion.controller.js +4 -4
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_Personalization/internals.js +8 -13
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +6 -3
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +42 -30
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +112 -97
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/utilsCdm.js +5 -6
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +10 -8
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +13 -14
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +162 -162
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +14 -14
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +22 -22
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +4 -4
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +4 -4
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +14 -14
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +8 -13
- package/src/main/js/sap/ushell/api/common/ComponentInstantiation.js +5 -5
- package/src/main/js/sap/ushell/api/performance/Extension.js +147 -0
- package/src/main/js/sap/ushell/api/performance/NavigationSource.js +86 -0
- package/src/main/js/sap/ushell/appIntegration/AppLifeCycle.js +66 -156
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +10 -44
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerCache.js +9 -6
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainer.js +41 -15
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainerRenderer.js +0 -3
- package/src/main/js/sap/ushell/appIntegration/KeepAliveApps.js +82 -30
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/AppInfoHandler.js +228 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/AppStateHandler.js +188 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/BookmarkHandler.js +725 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/EnvironmentHandler.js +347 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/ExtensionHandler.js +573 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/LifecycleHandler.js +226 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/MessageBrokerHandler.js +165 -0
- package/src/main/js/sap/ushell/appIntegration/{PostMessageManager → PostMessageHandler}/NWBCHandler.js +12 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/NavigationHandler.js +648 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/SessionHandler.js +157 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler.js +146 -0
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +26 -13
- package/src/main/js/sap/ushell/appIntegration/PostMessagePluginInterface.js +249 -95
- package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainer.js +0 -1
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +2 -23
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV1Handler.js +0 -4
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +1 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/AppCommunicationMgr.js +103 -81
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +77 -83
- package/src/main/js/sap/ushell/appRuntime/ui5/SessionHandlerAgent.js +33 -29
- package/src/main/js/sap/ushell/appRuntime/ui5/libsPreload.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/performance/FesrEnhancer.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils.js +11 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/BaseRTAPluginStatus.js +9 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +50 -31
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer.js +8 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Trigger.js +6 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +3 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_vi.properties +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +12 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/AccessKeysAgent.js +5 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +15 -15
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +5 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +4 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +6 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +199 -225
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +11 -11
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +18 -18
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +15 -15
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +9 -7
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +93 -36
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +10 -10
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +16 -18
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker/Client.js +114 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +157 -58
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +9 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +9 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +31 -35
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +7 -7
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +6 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +20 -22
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserDefaultParameters.js +7 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +8 -8
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/ContainerAdapter.js +4 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/FLPLoader.js +1 -3
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent.js +21 -22
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +5 -5
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +9 -9
- package/src/main/js/sap/ushell/bootstrap/common/common.debug.mode.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +14 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.load.script.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.read.metatags.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandbox.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/CatalogsManager.js +3 -3
- package/src/main/js/sap/ushell/components/HomepageManager.js +120 -117
- package/src/main/js/sap/ushell/components/SharedComponentUtils.js +24 -13
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +18 -18
- package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +4 -4
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +6 -3
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +10 -4
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +3 -3
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +119 -108
- package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +17 -15
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +35 -33
- package/src/main/js/sap/ushell/components/cards/ManifestPropertyHelper.js +6 -4
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/Edition.js +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/People.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +6 -6
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ar.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_bg.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ca.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cs.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cy.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_da.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_de.properties +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_el.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_GB.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es_MX.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_et.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fi.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr_CA.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hi.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hu.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_id.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_it.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_iw.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ja.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_kk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ko.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lt.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lv.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_mk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ms.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_nl.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_no.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pl.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt_PT.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ro.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ru.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sh.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sl.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sv.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_th.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_tr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_uk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_vi.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_CN.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_TW.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +29 -13
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +6 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +2 -2
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +8 -8
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +55 -46
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +24 -15
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +3 -3
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +9 -9
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +25 -16
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +3 -3
- package/src/main/js/sap/ushell/components/shell/Search/Component.js +3 -1
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +9 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +3 -3
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +32 -30
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +19 -17
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +30 -28
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/Component.js +240 -118
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/FrequentActivityProvider.js +4 -5
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/RecentSearchProvider.js +20 -18
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchProvider.js +4 -4
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchServiceProvider.js +31 -29
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources.properties +9 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_ar.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_bg.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_ca.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_cnr.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_cs.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_cy.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_da.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_de.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_el.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_en.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_en_GB.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_en_US_saprigi.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_es.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_es_MX.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_et.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_fi.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_fr.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_fr_CA.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_hi.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_hr.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_hu.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_id.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_it.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_iw.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_ja.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_kk.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_ko.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_lt.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_lv.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_mk.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_ms.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_nl.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_no.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_pl.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_pt.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_pt_PT.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_ro.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_ru.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_sh.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_sk.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_sl.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_sr.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_sv.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_th.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_tr.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_uk.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_vi.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_zh_CN.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources_zh_TW.properties +12 -0
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +11 -7
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +21 -20
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +90 -67
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +6 -6
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +3 -3
- package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesSetting.controller.js +8 -7
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +4 -3
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +3 -3
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +5 -5
- package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +47 -2
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +20 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +9 -6
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +48 -59
- package/src/main/js/sap/ushell/components/shell/SideNavigation/fragment/Popover.fragment.xml +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/interface/ListProviderAPI.js +144 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/interface/NavContainer.js +82 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AllSpaces.js +4 -4
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Favorites.js +36 -9
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericFixedNavigationListProvider.js +49 -28
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericNavigationListProvider.js +104 -49
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/MyHome.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/NavigationHelper.js +17 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/RecentActivity.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Spaces.js +18 -7
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/SpacesNavigationListProvider.js +11 -5
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources.properties +2 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ar.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_bg.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ca.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cnr.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cs.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cy.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_da.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_de.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_el.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en_GB.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en_US_saprigi.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_es.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_es_MX.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_et.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fi.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fr.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fr_CA.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hi.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hr.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hu.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_id.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_it.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_iw.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ja.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_kk.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ko.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_lt.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_lv.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_mk.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ms.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_nl.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_no.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pl.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pt.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pt_PT.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ro.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ru.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sh.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sk.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sl.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sr.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sv.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_th.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_tr.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_uk.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_vi.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_zh_CN.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_zh_TW.properties +1 -0
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +1 -0
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/action/ActionTile.controller.js +22 -14
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +43 -13
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +43 -13
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +12 -2
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +12 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.controller.js +157 -152
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.controller.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.view.js +23 -22
- package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.controller.js +4 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.controller.js +5 -5
- package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.controller.js +106 -102
- package/src/main/js/sap/ushell/components/tiles/indicatorHarveyBall/HarveyBallTile.controller.js +8 -7
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +96 -53
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +63 -52
- package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.controller.js +4 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.controller.js +2 -1
- package/src/main/js/sap/ushell/components/tiles/indicatordeviation/DeviationTile.controller.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/utils.js +25 -25
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Avatar.js +111 -113
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Button.js +215 -137
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Label.js +68 -70
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItem.js +81 -80
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemBase.js +40 -39
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemGroup.js +146 -84
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Menu.js +178 -120
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +186 -156
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +517 -368
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/IllustratedMessage.js +97 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationList.js +128 -79
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListGroupItem.js +76 -75
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItem.js +119 -99
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItemBase.js +48 -46
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js +156 -138
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItem.js +68 -62
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItemGroup.js +30 -29
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchMessageArea.js +46 -45
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchScope.js +48 -49
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBar.js +373 -214
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarBranding.js +71 -70
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarItem.js +81 -64
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSearch.js +150 -127
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSpacer.js +42 -41
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenu.js +190 -137
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuAccount.js +76 -75
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuItem.js +35 -34
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +1706 -1389
- package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +3011 -2450
- package/src/main/js/sap/ushell/library.js +1 -1
- package/src/main/js/sap/ushell/modules/NavigationMenu/ListProvider.js +56 -0
- package/src/main/js/sap/ushell/modules/NavigationMenu/ListProviderAPI.js +119 -0
- package/src/main/js/sap/ushell/modules/NavigationMenu/NavContainer.js +60 -0
- package/src/main/js/sap/ushell/modules/NavigationMenu/NavigationMenuMode.js +37 -0
- package/src/main/js/sap/ushell/modules/NavigationMenu.js +17 -16
- package/src/main/js/sap/ushell/navigation/NavigationState.js +0 -3
- package/src/main/js/sap/ushell/navigationMode.js +5 -5
- package/src/main/js/sap/ushell/override.js +1 -2
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +51 -15
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +19 -10
- package/src/main/js/sap/ushell/plugins/BaseRTAPlugin.js +8 -2
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_de.properties +1 -1
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_vi.properties +1 -1
- package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +17 -13
- package/src/main/js/sap/ushell/renderer/NavContainer.js +7 -0
- package/src/main/js/sap/ushell/renderer/Renderer.js +13 -13
- package/src/main/js/sap/ushell/renderer/RendererAppContainer.js +3 -3
- package/src/main/js/sap/ushell/renderer/RendererManagedComponents.js +194 -0
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +29 -39
- package/src/main/js/sap/ushell/renderer/Shell.view.js +8 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +18 -18
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +38 -31
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +2 -2
- package/src/main/js/sap/ushell/resources.js +1 -1
- package/src/main/js/sap/ushell/services/AllMyApps.js +1 -3
- package/src/main/js/sap/ushell/services/AppConfiguration.js +2 -2
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +33 -30
- package/src/main/js/sap/ushell/services/AppState.js +3 -3
- package/src/main/js/sap/ushell/services/Bookmark.js +35 -39
- package/src/main/js/sap/ushell/services/BookmarkV2.js +6 -8
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +5 -5
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +13 -14
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +82 -78
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +201 -230
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +3 -3
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +2 -2
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +61 -57
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +2 -2
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker/ClientAlias.js +37 -0
- package/src/main/js/sap/ushell/services/MessageBroker/ClientConnectionMessage.js +37 -0
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +463 -622
- package/src/main/js/sap/ushell/services/MessageBroker.js +127 -60
- package/src/main/js/sap/ushell/services/MessageInternal.js +2 -2
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +4 -4
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +2 -3
- package/src/main/js/sap/ushell/services/Navigation/utils.js +3 -3
- package/src/main/js/sap/ushell/services/Navigation.js +5 -5
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +21 -11
- package/src/main/js/sap/ushell/services/Notifications.js +1 -1
- package/src/main/js/sap/ushell/services/NotificationsV2.js +152 -109
- package/src/main/js/sap/ushell/services/PageBuilding.js +4 -2
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +32 -32
- package/src/main/js/sap/ushell/services/Personalization.js +36 -32
- package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +6 -6
- package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +3 -3
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +2 -2
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +4 -4
- package/src/main/js/sap/ushell/services/PersonalizationV2/utils.js +4 -8
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +17 -15
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +3 -3
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +22 -22
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +2 -2
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +3 -3
- package/src/main/js/sap/ushell/services/SearchableContent.js +2 -2
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +2 -2
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +2 -3
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +5 -5
- package/src/main/js/sap/ushell/services/URLParsing.js +10 -10
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +20 -20
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +7 -7
- package/src/main/js/sap/ushell/services/UserInfo.js +4 -4
- package/src/main/js/sap/ushell/services/UserRecents/RecentAppsUsage.js +2 -2
- package/src/main/js/sap/ushell/services/UserRecents/UserRecentsBase.js +6 -6
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +18 -15
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +3 -3
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +3 -3
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +2 -2
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +10 -10
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +8 -8
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +14 -14
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +2 -2
- package/src/main/js/sap/ushell/services/appstate/AppState.js +8 -8
- package/src/main/js/sap/ushell/services/appstate/WindowAdapter.js +3 -3
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadEndItemsStrategy.js +7 -0
- package/src/main/js/sap/ushell/state/modules/BackNavigation.js +7 -24
- package/src/main/js/sap/ushell/state/modules/ContentDensity.js +1 -1
- package/src/main/js/sap/ushell/state/modules/Favicon.js +1 -1
- package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +3 -3
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ActionMode.less +1 -1
- package/src/main/js/sap/ushell/themes/base/ToolAreaItem.less +1 -1
- package/src/main/js/sap/ushell/thirdparty/Avatar.js +9 -9
- package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +6 -12
- package/src/main/js/sap/ushell/thirdparty/Button.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/Button2.js +74 -22
- package/src/main/js/sap/ushell/thirdparty/FocusableElements.js +10 -0
- package/src/main/js/sap/ushell/thirdparty/Icon.js +32 -15
- package/src/main/js/sap/ushell/thirdparty/Icons.js +149 -111
- package/src/main/js/sap/ushell/thirdparty/IllustratedMessage.js +1297 -0
- package/src/main/js/sap/ushell/thirdparty/Label.js +5 -5
- package/src/main/js/sap/ushell/thirdparty/Link.js +7 -7
- package/src/main/js/sap/ushell/thirdparty/List.js +55 -75
- package/src/main/js/sap/ushell/thirdparty/ListItemAdditionalText.css.js +10 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemBase.js +23 -11
- package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +64 -48
- package/src/main/js/sap/ushell/thirdparty/ListItemGroup.js +239 -74
- package/src/main/js/sap/ushell/thirdparty/Menu.js +14 -15
- package/src/main/js/sap/ushell/thirdparty/MenuItem.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +55 -21
- package/src/main/js/sap/ushell/thirdparty/NotificationList.js +10 -10
- package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +14 -14
- package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +23 -14
- package/src/main/js/sap/ushell/thirdparty/NotificationListItemBase.js +6 -6
- package/src/main/js/sap/ushell/thirdparty/ResponsivePopover.js +94 -52
- package/src/main/js/sap/ushell/thirdparty/SearchItem.js +25 -8
- package/src/main/js/sap/ushell/thirdparty/SearchItemGroup.js +4 -7
- package/src/main/js/sap/ushell/thirdparty/SearchMessageArea.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/ShellBar.js +85 -51
- package/src/main/js/sap/ushell/thirdparty/ShellBarBranding.js +6 -6
- package/src/main/js/sap/ushell/thirdparty/ShellBarSearch.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/ShellBarSearch2.js +308 -176
- package/src/main/js/sap/ushell/thirdparty/Tag.js +7 -7
- package/src/main/js/sap/ushell/thirdparty/Text.js +5 -5
- package/src/main/js/sap/ushell/thirdparty/Title.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +23 -23
- package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +3 -3
- package/src/main/js/sap/ushell/thirdparty/WrappingType.js +24 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/InputSuggestions.js +5 -52
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT.js +202 -178
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT2.js +145 -121
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons.js +2 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons2.js +2 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +13 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +174 -717
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +837 -582
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en4.js +602 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +174 -711
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +837 -582
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd4.js +596 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +174 -717
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +837 -582
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi4.js +602 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +174 -711
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +837 -582
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc4.js +596 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +145 -19
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +7 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +145 -19
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +144 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +143 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +6 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css25.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css26.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css27.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +110 -145
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +152 -104
- package/src/main/js/sap/ushell/thirdparty/information.js +10 -10
- package/src/main/js/sap/ushell/thirdparty/overflow.js +16 -36
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +4 -1
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css2.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css3.js +8 -0
- package/src/main/js/sap/ushell/thirdparty/slim-arrow-down.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons/AllIcons.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-business-suite/AllIcons.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-tnt/AllIcons.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +80 -67
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +14 -14
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +29 -29
- package/src/main/js/sap/ushell/ui/QuickAccess.js +22 -14
- package/src/main/js/sap/ushell/ui/ShellHeader.js +4 -4
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternal.js +3 -3
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AboutDialog.controller.js +4 -4
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +7 -7
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +4 -3
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/CatalogsContainer.js +2 -3
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapperRenderer.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileContainerUtils.js +1 -2
- package/src/main/js/sap/ushell/ui/launchpad/TileRenderer.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +7 -4
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +3 -2
- package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +20 -20
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/TileBase.js +3 -3
- package/src/main/js/sap/ushell/ui/utils.js +6 -6
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +3 -0
- package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/CallbackQueue.js +114 -0
- package/src/main/js/sap/ushell/utils/Deferred.js +3 -3
- package/src/main/js/sap/ushell/utils/DynamicTileRequest.js +6 -6
- package/src/main/js/sap/ushell/utils/HttpClient.js +68 -68
- package/src/main/js/sap/ushell/utils/LaunchpadError.js +21 -0
- package/src/main/js/sap/ushell/utils/UrlParsing.js +16 -17
- package/src/main/js/sap/ushell/utils/UrlShortening.js +2 -2
- package/src/main/js/sap/ushell/utils/WindowUtils.js +5 -3
- package/src/main/js/sap/ushell/utils/chipsUtils.js +7 -5
- package/src/main/js/sap/ushell/utils/tilecard/TileCard.js +2 -2
- package/src/main/js/sap/ushell/utils/tilecard/TileCardExtension.js +9 -9
- package/src/main/js/sap/ushell/utils/utilsCdm.js +5 -6
- package/src/main/js/sap/ushell/utils/workpage/DestinationResolver.js +15 -11
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +18 -19
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +11 -7
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
- package/src/main/js/sap/ushell/utils.js +45 -65
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +69 -70
- package/ui5.yaml +37 -16
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/AppruntimeHandler.js +0 -121
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/LifecycleHandler.js +0 -631
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/MessageBrokerHandler.js +0 -59
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ServiceHandler.js +0 -1541
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeService.js +0 -40
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css3.js +0 -7
- /package/src/main/js/sap/ushell/appIntegration/{PostMessageManager → PostMessageHandler}/ExtensionItems.js +0 -0
|
@@ -1,1541 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
-
/**
|
|
3
|
-
* @file This file contains the ServiceHandler class.
|
|
4
|
-
*/
|
|
5
|
-
sap.ui.define([
|
|
6
|
-
"sap/base/i18n/Formatting",
|
|
7
|
-
"sap/base/i18n/Localization",
|
|
8
|
-
"sap/base/Log",
|
|
9
|
-
"sap/base/util/deepExtend",
|
|
10
|
-
"sap/ui/core/Element",
|
|
11
|
-
"sap/ui/core/UIComponent",
|
|
12
|
-
"sap/ui/thirdparty/hasher",
|
|
13
|
-
"sap/ushell/appIntegration/PostMessageManager",
|
|
14
|
-
"sap/ushell/appIntegration/PostMessageManager/ExtensionItems",
|
|
15
|
-
"sap/ushell/Container",
|
|
16
|
-
"sap/ushell/EventHub",
|
|
17
|
-
"sap/ushell/library",
|
|
18
|
-
"sap/ushell/services/Navigation/compatibility",
|
|
19
|
-
"sap/ushell/utils",
|
|
20
|
-
"sap/ushell/utils/UrlParsing"
|
|
21
|
-
], (
|
|
22
|
-
Formatting,
|
|
23
|
-
Localization,
|
|
24
|
-
Log,
|
|
25
|
-
deepExtend,
|
|
26
|
-
Element,
|
|
27
|
-
UIComponent,
|
|
28
|
-
hasher,
|
|
29
|
-
PostMessageManager,
|
|
30
|
-
ExtensionItems,
|
|
31
|
-
Container,
|
|
32
|
-
EventHub,
|
|
33
|
-
ushellLibrary,
|
|
34
|
-
navigationCompatibility,
|
|
35
|
-
ushellUtils,
|
|
36
|
-
UrlParsing
|
|
37
|
-
) => {
|
|
38
|
-
"use strict";
|
|
39
|
-
|
|
40
|
-
// shortcut for sap.ushell.ContentNodeType
|
|
41
|
-
const ContentNodeType = ushellLibrary.ContentNodeType;
|
|
42
|
-
|
|
43
|
-
let oExtensionItems;
|
|
44
|
-
const oDummyComponent = new UIComponent();
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Helper function for removing the service URL of dynamic bookmark tiles
|
|
48
|
-
* if the bookmark is created from a local service provider
|
|
49
|
-
* <p>
|
|
50
|
-
* This is a short-term mitigation for customer incident 57472/2021.
|
|
51
|
-
* The service URLs for dynamic tiles created as bookmark for apps created
|
|
52
|
-
* locally on CF (either manually or deployed to the local HTML5 repo) cannot
|
|
53
|
-
* be correctly constructed, because the path prefix cannot be resolved.
|
|
54
|
-
* As intermediate workaround, we remove the service URL to avoid the display
|
|
55
|
-
* of the ERROR state.
|
|
56
|
-
*
|
|
57
|
-
* @private
|
|
58
|
-
* @param {object} oParameters parameters for bookmark creation
|
|
59
|
-
* @param {object} oSystemContext the system context for bookmark creation
|
|
60
|
-
*/
|
|
61
|
-
function stripBookmarkServiceUrlForLocalContentProvider (oParameters, oSystemContext) {
|
|
62
|
-
if (!oParameters || !oParameters.serviceUrl || !oSystemContext) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (oSystemContext.id === "" || oSystemContext.id === "saas_approuter") {
|
|
67
|
-
oParameters.serviceUrl = undefined;
|
|
68
|
-
|
|
69
|
-
Log.warning("Dynamic data bookmarks tiles are not supported for local content providers");
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Destroys a control by its ID.
|
|
75
|
-
* Does nothing if the control does not exist.
|
|
76
|
-
* @param {string} sControlId The ID of the control.
|
|
77
|
-
*
|
|
78
|
-
* @since 1.125.0
|
|
79
|
-
* @private
|
|
80
|
-
*/
|
|
81
|
-
function destroyControl (sControlId) {
|
|
82
|
-
oExtensionItems.removeItem(sControlId);
|
|
83
|
-
|
|
84
|
-
const oControl = Element.getElementById(sControlId);
|
|
85
|
-
if (oControl?.destroy) {
|
|
86
|
-
oControl.destroy();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const oServiceRequestHandlers = {
|
|
91
|
-
"sap.ushell.services.Navigation.getHref": {
|
|
92
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
93
|
-
const { oTarget } = oMessageBody;
|
|
94
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
95
|
-
|
|
96
|
-
return Navigation.getHref(oTarget);
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"sap.ushell.services.Navigation.backToPreviousApp": {
|
|
100
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
101
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
102
|
-
await Navigation.backToPreviousApp();
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"sap.ushell.services.Navigation.historyBack": {
|
|
106
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
107
|
-
const { iSteps } = oMessageBody;
|
|
108
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
109
|
-
|
|
110
|
-
Navigation.historyBack(iSteps);
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"sap.ushell.services.Navigation.isInitialNavigation": {
|
|
114
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
115
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
116
|
-
return Navigation.isInitialNavigation();
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"sap.ushell.services.Navigation.navigate": {
|
|
120
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
121
|
-
const { oTarget } = oMessageBody;
|
|
122
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
123
|
-
|
|
124
|
-
const oTargetClone = deepExtend({}, oTarget);
|
|
125
|
-
ushellUtils.storeSapSystemToLocalStorage(oTargetClone);
|
|
126
|
-
|
|
127
|
-
await Navigation.navigate(oTargetClone);
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"sap.ushell.services.Navigation.getPrimaryIntent": {
|
|
131
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
132
|
-
const { sSemanticObject, oLinkFilter } = oMessageBody;
|
|
133
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
134
|
-
|
|
135
|
-
return Navigation.getPrimaryIntent(sSemanticObject, oLinkFilter);
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"sap.ushell.services.Navigation.getLinks": {
|
|
139
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
140
|
-
const oParams = oMessageBody;
|
|
141
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
142
|
-
|
|
143
|
-
return Navigation.getLinks(oParams);
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"sap.ushell.services.Navigation.getSemanticObjects": {
|
|
147
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
148
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
149
|
-
return Navigation.getSemanticObjects();
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"sap.ushell.services.Navigation.isNavigationSupported": {
|
|
153
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
154
|
-
const { aTargets } = oMessageBody;
|
|
155
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
156
|
-
|
|
157
|
-
return Navigation.isNavigationSupported(aTargets);
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"sap.ushell.services.Navigation.getAppState": {
|
|
161
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
162
|
-
const { sAppStateKey } = oMessageBody;
|
|
163
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
164
|
-
|
|
165
|
-
const oAppState = await Navigation.getAppState(oDummyComponent, sAppStateKey);
|
|
166
|
-
delete oAppState._oServiceInstance;
|
|
167
|
-
|
|
168
|
-
return oAppState;
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
"sap.ushell.services.Navigation.resolveIntent": {
|
|
172
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
173
|
-
const { sHashFragment } = oMessageBody;
|
|
174
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
175
|
-
|
|
176
|
-
return Navigation.resolveIntent(sHashFragment);
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"sap.ushell.services.Navigation.isUrlSupported": {
|
|
180
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
181
|
-
const { sUrl } = oMessageBody;
|
|
182
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
183
|
-
|
|
184
|
-
await Navigation.isUrlSupported(sUrl);
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"sap.ushell.services.CrossApplicationNavigation.hrefForExternal": {
|
|
188
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
189
|
-
const { oArgs } = oMessageBody;
|
|
190
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
191
|
-
|
|
192
|
-
return Navigation.getHref(oArgs);
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"sap.ushell.services.CrossApplicationNavigation.getSemanticObjectLinks": {
|
|
196
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
197
|
-
// beware sSemanticObject may also be an array of argument arrays
|
|
198
|
-
// {sSemanticObject, mParameters, bIgnoreFormFactors }
|
|
199
|
-
const { sSemanticObject, mParameters, bIgnoreFormFactors, sAppStateKey, bCompactIntents } = oMessageBody;
|
|
200
|
-
|
|
201
|
-
return navigationCompatibility.getSemanticObjectLinks(
|
|
202
|
-
sSemanticObject,
|
|
203
|
-
mParameters,
|
|
204
|
-
bIgnoreFormFactors,
|
|
205
|
-
undefined, // oComponent
|
|
206
|
-
sAppStateKey,
|
|
207
|
-
bCompactIntents
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"sap.ushell.services.CrossApplicationNavigation.isIntentSupported": {
|
|
212
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
213
|
-
const { aIntents } = oMessageBody;
|
|
214
|
-
|
|
215
|
-
return navigationCompatibility.isIntentSupported(aIntents);
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"sap.ushell.services.CrossApplicationNavigation.isNavigationSupported": {
|
|
219
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
220
|
-
const { aIntents } = oMessageBody;
|
|
221
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
222
|
-
|
|
223
|
-
return Navigation.isNavigationSupported(aIntents);
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
"sap.ushell.services.CrossApplicationNavigation.backToPreviousApp": {
|
|
227
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
228
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
229
|
-
return Navigation.backToPreviousApp();
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"sap.ushell.services.CrossApplicationNavigation.historyBack": {
|
|
233
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
234
|
-
const { iSteps } = oMessageBody;
|
|
235
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
236
|
-
|
|
237
|
-
return Navigation.historyBack(iSteps);
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"sap.ushell.services.CrossApplicationNavigation.toExternal": {
|
|
241
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
242
|
-
const { oArgs } = oMessageBody;
|
|
243
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
244
|
-
|
|
245
|
-
const oArgsClone = deepExtend({}, oArgs);
|
|
246
|
-
ushellUtils.storeSapSystemToLocalStorage(oArgsClone);
|
|
247
|
-
|
|
248
|
-
await Navigation.navigate(oArgsClone);
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
"sap.ushell.services.CrossApplicationNavigation.registerBeforeAppCloseEvent": {
|
|
252
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
253
|
-
const oParams = oMessageBody;
|
|
254
|
-
|
|
255
|
-
oApplicationContainer.addCapabilities([
|
|
256
|
-
"sap.ushell.services.CrossApplicationNavigation.beforeAppCloseEvent"
|
|
257
|
-
]);
|
|
258
|
-
|
|
259
|
-
oApplicationContainer.setBeforeAppCloseEvent({
|
|
260
|
-
enabled: true,
|
|
261
|
-
params: oParams
|
|
262
|
-
});
|
|
263
|
-
},
|
|
264
|
-
options: {
|
|
265
|
-
provideApplicationContext: true,
|
|
266
|
-
allowInactive: true
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
"sap.ushell.services.CrossApplicationNavigation.expandCompactHash": {
|
|
270
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
271
|
-
const { sHashFragment } = oMessageBody;
|
|
272
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
273
|
-
|
|
274
|
-
const oDeferred = NavTargetResolutionInternal.expandCompactHash(sHashFragment);
|
|
275
|
-
return ushellUtils.promisify(oDeferred);
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
"sap.ushell.services.CrossApplicationNavigation.getDistinctSemanticObjects": {
|
|
279
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
280
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
281
|
-
|
|
282
|
-
return Navigation.getSemanticObjects();
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
"sap.ushell.services.CrossApplicationNavigation.getLinks": {
|
|
286
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
287
|
-
const vParams = oMessageBody;
|
|
288
|
-
|
|
289
|
-
return navigationCompatibility.getLinks(vParams);
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
"sap.ushell.services.CrossApplicationNavigation.getPrimaryIntent": {
|
|
293
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
294
|
-
const { sSemanticObject, mParameters } = oMessageBody;
|
|
295
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
296
|
-
|
|
297
|
-
return Navigation.getPrimaryIntent(sSemanticObject, mParameters);
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
"sap.ushell.services.CrossApplicationNavigation.hrefForAppSpecificHash": {
|
|
301
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
302
|
-
const { sAppHash } = oMessageBody;
|
|
303
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
304
|
-
|
|
305
|
-
return Navigation.getHref({
|
|
306
|
-
appSpecificRoute: sAppHash
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"sap.ushell.services.CrossApplicationNavigation.isInitialNavigation": {
|
|
311
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
312
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
313
|
-
return Navigation.isInitialNavigation();
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
"sap.ushell.services.CrossApplicationNavigation.getAppState": {
|
|
317
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
318
|
-
const { sAppStateKey } = oMessageBody;
|
|
319
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
320
|
-
|
|
321
|
-
const oAppState = await Navigation.getAppState(oDummyComponent, sAppStateKey);
|
|
322
|
-
delete oAppState._oServiceInstance;
|
|
323
|
-
|
|
324
|
-
return oAppState;
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
"sap.ushell.services.CrossApplicationNavigation.getAppStateData": {
|
|
328
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
329
|
-
// note: sAppStateKey may be an array of argument arrays
|
|
330
|
-
const { sAppStateKey: vAppStateKey } = oMessageBody;
|
|
331
|
-
|
|
332
|
-
return navigationCompatibility.getAppStateData(vAppStateKey);
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"sap.ushell.services.CrossApplicationNavigation.setInnerAppStateData": {
|
|
336
|
-
handler: async (oMessageBody) => {
|
|
337
|
-
const { sData } = oMessageBody;
|
|
338
|
-
let oValue;
|
|
339
|
-
|
|
340
|
-
if (sData !== undefined) {
|
|
341
|
-
try {
|
|
342
|
-
oValue = JSON.parse(sData);
|
|
343
|
-
} catch (e) {
|
|
344
|
-
oValue = sData;
|
|
345
|
-
}
|
|
346
|
-
} else {
|
|
347
|
-
oValue = {};
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
351
|
-
const oNewAppState = AppState.createEmptyAppState();
|
|
352
|
-
|
|
353
|
-
oNewAppState.setData(oValue);
|
|
354
|
-
await ushellUtils.promisify(oNewAppState.save());
|
|
355
|
-
const sNewAppStateKey = oNewAppState.getKey();
|
|
356
|
-
|
|
357
|
-
let sHash = hasher.getHash();
|
|
358
|
-
if (sHash.indexOf("&/") > 0) {
|
|
359
|
-
if (sHash.indexOf("sap-iapp-state=") > 0) {
|
|
360
|
-
const sCurrAppStateKey = /(?:sap-iapp-state=)([^&/]+)/.exec(sHash)[1];
|
|
361
|
-
sHash = sHash.replace(sCurrAppStateKey, sNewAppStateKey);
|
|
362
|
-
} else {
|
|
363
|
-
sHash = `${sHash}/sap-iapp-state=${sNewAppStateKey}`;
|
|
364
|
-
}
|
|
365
|
-
} else {
|
|
366
|
-
sHash = `${sHash}&/sap-iapp-state=${sNewAppStateKey}`;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
hasher.disableBlueBoxHashChangeTrigger = true;
|
|
370
|
-
hasher.replaceHash(sHash);
|
|
371
|
-
hasher.disableBlueBoxHashChangeTrigger = false;
|
|
372
|
-
|
|
373
|
-
return sNewAppStateKey;
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
"sap.ushell.services.CrossApplicationNavigation.setInnerAppRoute": {
|
|
377
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
378
|
-
const { appSpecificRoute, writeHistory } = oMessageBody;
|
|
379
|
-
|
|
380
|
-
const oHash = UrlParsing.parseShellHash(hasher.getHash());
|
|
381
|
-
|
|
382
|
-
// do nothing if new is exactly like the current one
|
|
383
|
-
if (oHash.appSpecificRoute === appSpecificRoute) {
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
oHash.appSpecificRoute = appSpecificRoute;
|
|
387
|
-
const sNewHash = `#${UrlParsing.constructShellHash(oHash)}`;
|
|
388
|
-
hasher.disableBlueBoxHashChangeTrigger = true;
|
|
389
|
-
if (writeHistory === true || writeHistory === "true") {
|
|
390
|
-
hasher.setHash(sNewHash);
|
|
391
|
-
} else {
|
|
392
|
-
hasher.replaceHash(sNewHash);
|
|
393
|
-
}
|
|
394
|
-
hasher.disableBlueBoxHashChangeTrigger = false;
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"sap.ushell.services.CrossApplicationNavigation.resolveIntent": {
|
|
398
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
399
|
-
const { sHashFragment } = oMessageBody;
|
|
400
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
401
|
-
|
|
402
|
-
return Navigation.resolveIntent(sHashFragment);
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
"sap.ushell.services.AppState.getAppState": {
|
|
406
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
407
|
-
const { sKey } = oMessageBody;
|
|
408
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
409
|
-
|
|
410
|
-
const oDeferred = AppState.getAppState(sKey);
|
|
411
|
-
|
|
412
|
-
const oAppState = await ushellUtils.promisify(oDeferred);
|
|
413
|
-
delete oAppState._oServiceInstance;
|
|
414
|
-
return oAppState;
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
"sap.ushell.services.AppState._saveAppState": {
|
|
418
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
419
|
-
const { sKey, sData, sAppName, sComponent, bTransient, iPersistencyMethod, oPersistencySettings } = oMessageBody;
|
|
420
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
421
|
-
|
|
422
|
-
const oDeferred = AppState._saveAppState(
|
|
423
|
-
sKey,
|
|
424
|
-
sData,
|
|
425
|
-
sAppName,
|
|
426
|
-
sComponent,
|
|
427
|
-
bTransient,
|
|
428
|
-
iPersistencyMethod,
|
|
429
|
-
oPersistencySettings
|
|
430
|
-
);
|
|
431
|
-
await ushellUtils.promisify(oDeferred);
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
"sap.ushell.services.AppState.deleteAppState": {
|
|
435
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
436
|
-
const { sKey } = oMessageBody;
|
|
437
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
438
|
-
|
|
439
|
-
const oDeferred = AppState.deleteAppState(sKey);
|
|
440
|
-
await ushellUtils.promisify(oDeferred);
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
"sap.ushell.services.AppState.makeStatePersistent": {
|
|
444
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
445
|
-
const { sKey, iPersistencyMethod, oPersistencySettings } = oMessageBody;
|
|
446
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
447
|
-
|
|
448
|
-
const oDeferred = AppState.makeStatePersistent(sKey, iPersistencyMethod, oPersistencySettings);
|
|
449
|
-
return ushellUtils.promisify(oDeferred);
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
"sap.ushell.services.Bookmark.addBookmarkUI5": {
|
|
453
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
454
|
-
const { oParameters, vContainer } = oMessageBody;
|
|
455
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
456
|
-
|
|
457
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
458
|
-
stripBookmarkServiceUrlForLocalContentProvider(oParameters, oSystemContext);
|
|
459
|
-
|
|
460
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
461
|
-
|
|
462
|
-
await BookmarkV2.addBookmark(oParameters, vContainer, oSystemContext.id);
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
// Bookmark@addBookmarkByGroupId is mapped to sap.ushell.services.Bookmark.addBookmark
|
|
466
|
-
// Bookmark@addBookmark is mapped to sap.ushell.services.Bookmark.addBookmarkUI5
|
|
467
|
-
"sap.ushell.services.Bookmark.addBookmark": {
|
|
468
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
469
|
-
/**
|
|
470
|
-
* @deprecated since 1.120. Deprecated together with the classic homepage.
|
|
471
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
472
|
-
if (true) {
|
|
473
|
-
const { oParameters, groupId } = oMessageBody;
|
|
474
|
-
|
|
475
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
476
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
477
|
-
|
|
478
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
479
|
-
|
|
480
|
-
await BookmarkV2.addBookmarkByGroupId(oParameters, groupId, oSystemContext.id);
|
|
481
|
-
return;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
throw new Error("Bookmark.addBookmarkByGroupId is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
"sap.ushell.services.Bookmark.getShellGroupIDs": {
|
|
488
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
489
|
-
/**
|
|
490
|
-
* @deprecated since 1.120. Deprecated together with the classic homepage.
|
|
491
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
492
|
-
if (true) {
|
|
493
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
494
|
-
|
|
495
|
-
return BookmarkV2.getShellGroupIDs();
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
throw new Error("Bookmark.getShellGroupIDs is deprecated. Please use BookmarkV2.getContentNodes instead.");
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
"sap.ushell.services.Bookmark.addCatalogTileToGroup": {
|
|
502
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
503
|
-
Log.error("Bookmark.addCatalogTileToGroup is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* @deprecated since 1.120. Deprecated together with the classic homepage.
|
|
507
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
508
|
-
if (true) {
|
|
509
|
-
const { sCatalogTileId, sGroupId, oCatalogData } = oMessageBody;
|
|
510
|
-
const Bookmark = await Container.getServiceAsync("Bookmark");
|
|
511
|
-
|
|
512
|
-
const oDeferred = Bookmark.addCatalogTileToGroup(sCatalogTileId, sGroupId, oCatalogData);
|
|
513
|
-
await ushellUtils.promisify(oDeferred);
|
|
514
|
-
return;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
throw new Error("Bookmark.addCatalogTileToGroup is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
"sap.ushell.services.Bookmark.countBookmarks": {
|
|
521
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
522
|
-
const { sUrl } = oMessageBody;
|
|
523
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
524
|
-
|
|
525
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
526
|
-
|
|
527
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
528
|
-
|
|
529
|
-
return BookmarkV2.countBookmarks(sUrl, oSystemContext.id);
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
"sap.ushell.services.Bookmark.deleteBookmarks": {
|
|
533
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
534
|
-
const { sUrl } = oMessageBody;
|
|
535
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
536
|
-
|
|
537
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
538
|
-
|
|
539
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
540
|
-
|
|
541
|
-
return BookmarkV2.deleteBookmarks(sUrl, oSystemContext.id);
|
|
542
|
-
}
|
|
543
|
-
},
|
|
544
|
-
"sap.ushell.services.Bookmark.updateBookmarks": {
|
|
545
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
546
|
-
const { sUrl, oParameters } = oMessageBody;
|
|
547
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
548
|
-
|
|
549
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
550
|
-
|
|
551
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
552
|
-
|
|
553
|
-
return BookmarkV2.updateBookmarks(sUrl, oParameters, oSystemContext.id);
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
"sap.ushell.services.Bookmark.getContentNodes": {
|
|
557
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
558
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
559
|
-
|
|
560
|
-
return BookmarkV2.getContentNodes();
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
"sap.ushell.services.Bookmark.addCustomBookmark": {
|
|
564
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
565
|
-
const { sVizType, oConfig, vContentNodes } = oMessageBody;
|
|
566
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
567
|
-
|
|
568
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
569
|
-
|
|
570
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
571
|
-
|
|
572
|
-
await BookmarkV2.addCustomBookmark(sVizType, oConfig, vContentNodes, oSystemContext.id);
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
"sap.ushell.services.Bookmark.countCustomBookmarks": {
|
|
576
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
577
|
-
const { oIdentifier } = oMessageBody;
|
|
578
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
579
|
-
|
|
580
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
581
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
582
|
-
|
|
583
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
584
|
-
|
|
585
|
-
return BookmarkV2.countCustomBookmarks(oIdentifier);
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
"sap.ushell.services.Bookmark.updateCustomBookmarks": {
|
|
589
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
590
|
-
const { oIdentifier, oConfig } = oMessageBody;
|
|
591
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
592
|
-
|
|
593
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
594
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
595
|
-
|
|
596
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
597
|
-
|
|
598
|
-
return BookmarkV2.updateCustomBookmarks(oIdentifier, oConfig);
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
"sap.ushell.services.Bookmark.deleteCustomBookmarks": {
|
|
602
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
603
|
-
const { oIdentifier } = oMessageBody;
|
|
604
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
605
|
-
|
|
606
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
607
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
608
|
-
|
|
609
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
610
|
-
|
|
611
|
-
return BookmarkV2.deleteCustomBookmarks(oIdentifier);
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
"sap.ushell.services.Bookmark.addBookmarkToPage": {
|
|
615
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
616
|
-
const { oParameters, sPageId } = oMessageBody;
|
|
617
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
618
|
-
|
|
619
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
620
|
-
|
|
621
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
622
|
-
|
|
623
|
-
await BookmarkV2.addBookmarkToPage(oParameters, sPageId, oSystemContext.id);
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
"sap.ushell.services.BookmarkV2.addBookmarkUI5": {
|
|
627
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
628
|
-
const { oParameters, vContainer } = oMessageBody;
|
|
629
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
630
|
-
|
|
631
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
632
|
-
stripBookmarkServiceUrlForLocalContentProvider(oParameters, oSystemContext);
|
|
633
|
-
|
|
634
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
635
|
-
|
|
636
|
-
return BookmarkV2.addBookmark(oParameters, vContainer, oSystemContext.id);
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
// BookmarkV2@addBookmarkByGroupId is mapped to sap.ushell.services.BookmarkV2.addBookmark
|
|
640
|
-
// BookmarkV2@addBookmark is mapped to sap.ushell.services.BookmarkV2.addBookmarkUI5
|
|
641
|
-
"sap.ushell.services.BookmarkV2.addBookmark": {
|
|
642
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
643
|
-
/**
|
|
644
|
-
* @deprecated since 1.120. Deprecated together with the classic homepage.
|
|
645
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
646
|
-
if (true) {
|
|
647
|
-
const { oParameters, groupId } = oMessageBody;
|
|
648
|
-
|
|
649
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
650
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
651
|
-
|
|
652
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
653
|
-
|
|
654
|
-
await BookmarkV2.addBookmarkByGroupId(oParameters, groupId, oSystemContext.id);
|
|
655
|
-
return;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
throw new Error("BookmarkV2.addBookmarkByGroupId is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
"sap.ushell.services.BookmarkV2.getShellGroupIDs": {
|
|
662
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
663
|
-
/**
|
|
664
|
-
* @deprecated since 1.120. Deprecated together with the classic homepage.
|
|
665
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
666
|
-
if (true) {
|
|
667
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
668
|
-
|
|
669
|
-
return BookmarkV2.getShellGroupIDs();
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
throw new Error("BookmarkV2.getShellGroupIDs is deprecated. Please use BookmarkV2.getContentNodes instead.");
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
"sap.ushell.services.BookmarkV2.countBookmarks": {
|
|
676
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
677
|
-
const { sUrl } = oMessageBody;
|
|
678
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
679
|
-
|
|
680
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
681
|
-
|
|
682
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
683
|
-
|
|
684
|
-
return BookmarkV2.countBookmarks(sUrl, oSystemContext.id);
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
"sap.ushell.services.BookmarkV2.deleteBookmarks": {
|
|
688
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
689
|
-
const { sUrl } = oMessageBody;
|
|
690
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
691
|
-
|
|
692
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
693
|
-
|
|
694
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
695
|
-
|
|
696
|
-
return BookmarkV2.deleteBookmarks(sUrl, oSystemContext.id);
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
|
-
"sap.ushell.services.BookmarkV2.updateBookmarks": {
|
|
700
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
701
|
-
const { sUrl, oParameters } = oMessageBody;
|
|
702
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
703
|
-
|
|
704
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
705
|
-
|
|
706
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
707
|
-
|
|
708
|
-
return BookmarkV2.updateBookmarks(sUrl, oParameters, oSystemContext.id);
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
"sap.ushell.services.BookmarkV2.getContentNodes": {
|
|
712
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
713
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
714
|
-
|
|
715
|
-
return BookmarkV2.getContentNodes();
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
"sap.ushell.services.BookmarkV2.addCustomBookmark": {
|
|
719
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
720
|
-
const { sVizType, oConfig, vContentNodes } = oMessageBody;
|
|
721
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
722
|
-
|
|
723
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
724
|
-
|
|
725
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
726
|
-
|
|
727
|
-
await BookmarkV2.addCustomBookmark(sVizType, oConfig, vContentNodes, oSystemContext.id);
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
"sap.ushell.services.BookmarkV2.countCustomBookmarks": {
|
|
731
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
732
|
-
const { oIdentifier } = oMessageBody;
|
|
733
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
734
|
-
|
|
735
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
736
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
737
|
-
|
|
738
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
739
|
-
|
|
740
|
-
return BookmarkV2.countCustomBookmarks(oIdentifier);
|
|
741
|
-
}
|
|
742
|
-
},
|
|
743
|
-
"sap.ushell.services.BookmarkV2.updateCustomBookmarks": {
|
|
744
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
745
|
-
const { oIdentifier, oConfig } = oMessageBody;
|
|
746
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
747
|
-
|
|
748
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
749
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
750
|
-
|
|
751
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
752
|
-
|
|
753
|
-
return BookmarkV2.updateCustomBookmarks(oIdentifier, oConfig);
|
|
754
|
-
}
|
|
755
|
-
},
|
|
756
|
-
"sap.ushell.services.BookmarkV2.deleteCustomBookmarks": {
|
|
757
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
758
|
-
const { oIdentifier } = oMessageBody;
|
|
759
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
760
|
-
|
|
761
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
762
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
763
|
-
|
|
764
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
765
|
-
|
|
766
|
-
return BookmarkV2.deleteCustomBookmarks(oIdentifier);
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
"sap.ushell.services.BookmarkV2.addBookmarkToPage": {
|
|
770
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
771
|
-
const { oParameters, sPageId } = oMessageBody;
|
|
772
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
773
|
-
|
|
774
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
775
|
-
|
|
776
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
777
|
-
|
|
778
|
-
await BookmarkV2.addBookmarkToPage(oParameters, sPageId, oSystemContext.id);
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
"sap.ushell.services.UserInfo.getThemeList": {
|
|
782
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
783
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
784
|
-
|
|
785
|
-
const oDeferred = UserInfo.getThemeList();
|
|
786
|
-
|
|
787
|
-
return ushellUtils.promisify(oDeferred);
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
"sap.ushell.services.UserInfo.getShellUserInfo": {
|
|
791
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
792
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
793
|
-
|
|
794
|
-
return UserInfo.getShellUserInfo();
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
"sap.ushell.services.UserInfo.getLanguageList": {
|
|
798
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
799
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
800
|
-
|
|
801
|
-
const oDeferred = UserInfo.getLanguageList();
|
|
802
|
-
|
|
803
|
-
return ushellUtils.promisify(oDeferred);
|
|
804
|
-
}
|
|
805
|
-
},
|
|
806
|
-
"sap.ushell.services.UserInfo.updateUserPreferences": {
|
|
807
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
808
|
-
const { language } = oMessageBody;
|
|
809
|
-
|
|
810
|
-
if (!language) {
|
|
811
|
-
return;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
const oUser = Container.getUser();
|
|
815
|
-
oUser.setLanguage(language);
|
|
816
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
817
|
-
|
|
818
|
-
const oDeferred = UserInfo.updateUserPreferences();
|
|
819
|
-
await ushellUtils.promisify(oDeferred);
|
|
820
|
-
|
|
821
|
-
oUser.resetChangedProperty("language");
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
"sap.ushell.services.UserInfo.openThemeManager": {
|
|
825
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
826
|
-
EventHub.emit("openThemeManager", Date.now());
|
|
827
|
-
}
|
|
828
|
-
},
|
|
829
|
-
"sap.ushell.services.UserInfo.getLocaleData": {
|
|
830
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
831
|
-
const oLocaleData = {
|
|
832
|
-
// date format
|
|
833
|
-
calendarType: Formatting.getCalendarType(),
|
|
834
|
-
dateFormatShort: Formatting.getDatePattern("short"),
|
|
835
|
-
dateFormatMedium: Formatting.getDatePattern("medium"),
|
|
836
|
-
// number format
|
|
837
|
-
numberFormatGroup: Formatting.getNumberSymbol("group"),
|
|
838
|
-
numberFormatDecimal: Formatting.getNumberSymbol("decimal"),
|
|
839
|
-
// time format
|
|
840
|
-
timeFormatShort: Formatting.getTimePattern("short"),
|
|
841
|
-
timeFormatMedium: Formatting.getTimePattern("medium"),
|
|
842
|
-
// calendar customizing
|
|
843
|
-
calendarMapping: Formatting.getCustomIslamicCalendarData(),
|
|
844
|
-
// timezone
|
|
845
|
-
timeZone: Localization.getTimezone(),
|
|
846
|
-
// currency formats
|
|
847
|
-
currencyFormats: Formatting.getCustomCurrencies()
|
|
848
|
-
};
|
|
849
|
-
return oLocaleData;
|
|
850
|
-
}
|
|
851
|
-
},
|
|
852
|
-
"sap.ushell.services.UserDefaultParameters.getValue": {
|
|
853
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
854
|
-
const { sParameterName } = oMessageBody;
|
|
855
|
-
const [AppLifeCycle, UserDefaultParameters] = await Promise.all([
|
|
856
|
-
Container.getServiceAsync("AppLifeCycle"),
|
|
857
|
-
Container.getServiceAsync("UserDefaultParameters")
|
|
858
|
-
]);
|
|
859
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
860
|
-
return UserDefaultParameters.getValue(sParameterName, oSystemContext);
|
|
861
|
-
}
|
|
862
|
-
},
|
|
863
|
-
"sap.ushell.services.ShellNavigation.toExternal": {
|
|
864
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
865
|
-
const { oArgs, bWriteHistory } = oMessageBody;
|
|
866
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
867
|
-
|
|
868
|
-
ShellNavigationInternal.toExternal(oArgs, undefined, bWriteHistory);
|
|
869
|
-
}
|
|
870
|
-
},
|
|
871
|
-
"sap.ushell.services.ShellNavigation.toAppHash": {
|
|
872
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
873
|
-
const { sAppHash, bWriteHistory } = oMessageBody;
|
|
874
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
875
|
-
|
|
876
|
-
ShellNavigationInternal.toAppHash(sAppHash, bWriteHistory);
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
"sap.ushell.services.ShellNavigationInternal.toExternal": {
|
|
880
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
881
|
-
const { oArgs, bWriteHistory } = oMessageBody;
|
|
882
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
883
|
-
|
|
884
|
-
ShellNavigationInternal.toExternal(oArgs, undefined, bWriteHistory);
|
|
885
|
-
}
|
|
886
|
-
},
|
|
887
|
-
"sap.ushell.services.ShellNavigationInternal.toAppHash": {
|
|
888
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
889
|
-
const { sAppHash, bWriteHistory } = oMessageBody;
|
|
890
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
891
|
-
|
|
892
|
-
ShellNavigationInternal.toAppHash(sAppHash, bWriteHistory);
|
|
893
|
-
}
|
|
894
|
-
},
|
|
895
|
-
"sap.ushell.services.NavTargetResolution.getDistinctSemanticObjects": {
|
|
896
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
897
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
898
|
-
|
|
899
|
-
const oDeferred = NavTargetResolutionInternal.getDistinctSemanticObjects();
|
|
900
|
-
|
|
901
|
-
return ushellUtils.promisify(oDeferred);
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
"sap.ushell.services.NavTargetResolution.expandCompactHash": {
|
|
905
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
906
|
-
const { sHashFragment } = oMessageBody;
|
|
907
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
908
|
-
|
|
909
|
-
const oDeferred = NavTargetResolutionInternal.expandCompactHash(sHashFragment);
|
|
910
|
-
|
|
911
|
-
return ushellUtils.promisify(oDeferred);
|
|
912
|
-
}
|
|
913
|
-
},
|
|
914
|
-
"sap.ushell.services.NavTargetResolution.resolveHashFragment": {
|
|
915
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
916
|
-
const { sHashFragment } = oMessageBody;
|
|
917
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
918
|
-
|
|
919
|
-
const oDeferred = NavTargetResolutionInternal.resolveHashFragment(sHashFragment);
|
|
920
|
-
|
|
921
|
-
return ushellUtils.promisify(oDeferred);
|
|
922
|
-
}
|
|
923
|
-
},
|
|
924
|
-
"sap.ushell.services.NavTargetResolution.isIntentSupported": {
|
|
925
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
926
|
-
const { aIntents } = oMessageBody;
|
|
927
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
928
|
-
|
|
929
|
-
// isIntentSupported: [intent1, intent2, ...] => { intent1: result1, intent2: result2, ... }
|
|
930
|
-
// isNavigationSupported: [intent1, intent2, ...] => [result1, result2, ...]
|
|
931
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
932
|
-
const aResults = await ushellUtils.promisify(oDeferred);
|
|
933
|
-
|
|
934
|
-
return aResults.reduce((oResult, oIntentSupported, iIndex) => {
|
|
935
|
-
const sIntent = aIntents[iIndex];
|
|
936
|
-
oResult[sIntent] = oIntentSupported;
|
|
937
|
-
return oResult;
|
|
938
|
-
}, {});
|
|
939
|
-
}
|
|
940
|
-
},
|
|
941
|
-
"sap.ushell.services.NavTargetResolution.isNavigationSupported": {
|
|
942
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
943
|
-
const { aIntents } = oMessageBody;
|
|
944
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
945
|
-
|
|
946
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
947
|
-
|
|
948
|
-
return ushellUtils.promisify(oDeferred);
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
"sap.ushell.services.NavTargetResolutionInternal.getDistinctSemanticObjects": {
|
|
952
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
953
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
954
|
-
|
|
955
|
-
const oDeferred = NavTargetResolutionInternal.getDistinctSemanticObjects();
|
|
956
|
-
|
|
957
|
-
return ushellUtils.promisify(oDeferred);
|
|
958
|
-
}
|
|
959
|
-
},
|
|
960
|
-
"sap.ushell.services.NavTargetResolutionInternal.expandCompactHash": {
|
|
961
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
962
|
-
const { sHashFragment } = oMessageBody;
|
|
963
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
964
|
-
|
|
965
|
-
const oDeferred = NavTargetResolutionInternal.expandCompactHash(sHashFragment);
|
|
966
|
-
|
|
967
|
-
return ushellUtils.promisify(oDeferred);
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
"sap.ushell.services.NavTargetResolutionInternal.resolveHashFragment": {
|
|
971
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
972
|
-
const { sHashFragment } = oMessageBody;
|
|
973
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
974
|
-
|
|
975
|
-
const oDeferred = NavTargetResolutionInternal.resolveHashFragment(sHashFragment);
|
|
976
|
-
|
|
977
|
-
return ushellUtils.promisify(oDeferred);
|
|
978
|
-
}
|
|
979
|
-
},
|
|
980
|
-
"sap.ushell.services.NavTargetResolutionInternal.isIntentSupported": {
|
|
981
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
982
|
-
const { aIntents } = oMessageBody;
|
|
983
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
984
|
-
|
|
985
|
-
// isIntentSupported: [intent1, intent2, ...] => { intent1: result1, intent2: result2, ... }
|
|
986
|
-
// isNavigationSupported: [intent1, intent2, ...] => [result1, result2, ...]
|
|
987
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
988
|
-
const aResults = await ushellUtils.promisify(oDeferred);
|
|
989
|
-
|
|
990
|
-
return aResults.reduce((oResult, oIntentSupported, iIndex) => {
|
|
991
|
-
const sIntent = aIntents[iIndex];
|
|
992
|
-
oResult[sIntent] = oIntentSupported;
|
|
993
|
-
return oResult;
|
|
994
|
-
}, {});
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
"sap.ushell.services.NavTargetResolutionInternal.isNavigationSupported": {
|
|
998
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
999
|
-
const { aIntents } = oMessageBody;
|
|
1000
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1001
|
-
|
|
1002
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
1003
|
-
|
|
1004
|
-
return ushellUtils.promisify(oDeferred);
|
|
1005
|
-
}
|
|
1006
|
-
},
|
|
1007
|
-
"sap.ushell.services.Renderer.addHeaderItem": {
|
|
1008
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
1009
|
-
const { sId, sTooltip, sIcon, iFloatingNumber, bVisible } = oMessageBody;
|
|
1010
|
-
const FrameBoundExtension = await Container.getServiceAsync("FrameBoundExtension");
|
|
1011
|
-
|
|
1012
|
-
const oItem = await FrameBoundExtension.createHeaderItem({
|
|
1013
|
-
id: sId,
|
|
1014
|
-
tooltip: sTooltip,
|
|
1015
|
-
icon: sIcon,
|
|
1016
|
-
floatingNumber: iFloatingNumber,
|
|
1017
|
-
press: function () {
|
|
1018
|
-
PostMessageManager.sendRequest(
|
|
1019
|
-
"sap.ushell.appRuntime.buttonClick",
|
|
1020
|
-
{ buttonId: sId },
|
|
1021
|
-
oApplicationContainer.getPostMessageTarget(),
|
|
1022
|
-
oApplicationContainer.getPostMessageTargetOrigin(),
|
|
1023
|
-
false // bWaitForResponse
|
|
1024
|
-
);
|
|
1025
|
-
}
|
|
1026
|
-
}, {
|
|
1027
|
-
position: "begin"
|
|
1028
|
-
});
|
|
1029
|
-
|
|
1030
|
-
oExtensionItems.storeItem(sId, oItem);
|
|
1031
|
-
oExtensionItems.applyItemVisibility(oItem, bVisible);
|
|
1032
|
-
},
|
|
1033
|
-
options: {
|
|
1034
|
-
provideApplicationContext: true
|
|
1035
|
-
}
|
|
1036
|
-
},
|
|
1037
|
-
"sap.ushell.services.Renderer.showHeaderItem": {
|
|
1038
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1039
|
-
const { aIds: vIds } = oMessageBody;
|
|
1040
|
-
|
|
1041
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1042
|
-
|
|
1043
|
-
oExtensionItems.visitItems(aIds, (oItem) => {
|
|
1044
|
-
oExtensionItems.applyItemVisibility(oItem, true);
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
"sap.ushell.services.Renderer.hideHeaderItem": {
|
|
1049
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1050
|
-
const { aIds: vIds } = oMessageBody;
|
|
1051
|
-
|
|
1052
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1053
|
-
|
|
1054
|
-
oExtensionItems.visitItems(aIds, (oItem) => {
|
|
1055
|
-
oExtensionItems.applyItemVisibility(oItem, false);
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1059
|
-
"sap.ushell.services.Renderer.updateHeaderItem": {
|
|
1060
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1061
|
-
const { sId, oControlProperties } = oMessageBody;
|
|
1062
|
-
|
|
1063
|
-
// we only support update of floatingNumber
|
|
1064
|
-
if (!Object.hasOwn(oControlProperties, "floatingNumber")) {
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
const oItem = oExtensionItems.getItem(sId);
|
|
1069
|
-
|
|
1070
|
-
if (oItem?.getControl) {
|
|
1071
|
-
const oControl = await oItem.getControl();
|
|
1072
|
-
oControl?.setFloatingNumber?.(oControlProperties.floatingNumber);
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
},
|
|
1076
|
-
"sap.ushell.services.Renderer.addHeaderEndItem": {
|
|
1077
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
1078
|
-
const { sId, sTooltip, sIcon, iFloatingNumber, bVisible } = oMessageBody;
|
|
1079
|
-
const FrameBoundExtension = await Container.getServiceAsync("FrameBoundExtension");
|
|
1080
|
-
|
|
1081
|
-
const oItem = await FrameBoundExtension.createHeaderItem({
|
|
1082
|
-
id: sId,
|
|
1083
|
-
tooltip: sTooltip,
|
|
1084
|
-
icon: sIcon,
|
|
1085
|
-
floatingNumber: iFloatingNumber,
|
|
1086
|
-
press: function () {
|
|
1087
|
-
PostMessageManager.sendRequest(
|
|
1088
|
-
"sap.ushell.appRuntime.buttonClick",
|
|
1089
|
-
{ buttonId: sId },
|
|
1090
|
-
oApplicationContainer.getPostMessageTarget(),
|
|
1091
|
-
oApplicationContainer.getPostMessageTargetOrigin(),
|
|
1092
|
-
false // bWaitForResponse
|
|
1093
|
-
);
|
|
1094
|
-
}
|
|
1095
|
-
}, {
|
|
1096
|
-
position: "end"
|
|
1097
|
-
});
|
|
1098
|
-
|
|
1099
|
-
oExtensionItems.storeItem(sId, oItem);
|
|
1100
|
-
oExtensionItems.applyItemVisibility(oItem, bVisible);
|
|
1101
|
-
},
|
|
1102
|
-
options: {
|
|
1103
|
-
provideApplicationContext: true
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
|
-
"sap.ushell.services.Renderer.showHeaderEndItem": {
|
|
1107
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1108
|
-
const { aIds: vIds } = oMessageBody;
|
|
1109
|
-
|
|
1110
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1111
|
-
|
|
1112
|
-
oExtensionItems.visitItems(aIds, (oItem) => {
|
|
1113
|
-
oExtensionItems.applyItemVisibility(oItem, true);
|
|
1114
|
-
});
|
|
1115
|
-
}
|
|
1116
|
-
},
|
|
1117
|
-
"sap.ushell.services.Renderer.hideHeaderEndItem": {
|
|
1118
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1119
|
-
const { aIds: vIds } = oMessageBody;
|
|
1120
|
-
|
|
1121
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1122
|
-
|
|
1123
|
-
oExtensionItems.visitItems(aIds, (oItem) => {
|
|
1124
|
-
oExtensionItems.applyItemVisibility(oItem, false);
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
},
|
|
1128
|
-
"sap.ushell.services.Renderer.addUserAction": {
|
|
1129
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
1130
|
-
const { controlType, oControlProperties, bIsVisible } = oMessageBody.oParameters;
|
|
1131
|
-
const FrameBoundExtension = await Container.getServiceAsync("FrameBoundExtension");
|
|
1132
|
-
|
|
1133
|
-
oControlProperties.press = async function () {
|
|
1134
|
-
PostMessageManager.sendRequest(
|
|
1135
|
-
"sap.ushell.appRuntime.buttonClick",
|
|
1136
|
-
{ buttonId: oControlProperties.id },
|
|
1137
|
-
oApplicationContainer.getPostMessageTarget(),
|
|
1138
|
-
oApplicationContainer.getPostMessageTargetOrigin(),
|
|
1139
|
-
false // bWaitForResponse
|
|
1140
|
-
);
|
|
1141
|
-
};
|
|
1142
|
-
|
|
1143
|
-
const oItem = await FrameBoundExtension.createUserAction(oControlProperties, {
|
|
1144
|
-
controlType
|
|
1145
|
-
});
|
|
1146
|
-
|
|
1147
|
-
oExtensionItems.storeItem(oControlProperties.id, oItem);
|
|
1148
|
-
oExtensionItems.applyItemVisibility(oItem, bIsVisible);
|
|
1149
|
-
},
|
|
1150
|
-
options: {
|
|
1151
|
-
provideApplicationContext: true
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
"sap.ushell.services.Renderer.showActionButton": {
|
|
1155
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1156
|
-
const { aIds: vIds } = oMessageBody;
|
|
1157
|
-
|
|
1158
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1159
|
-
|
|
1160
|
-
oExtensionItems.visitItems(aIds, (oItem) => {
|
|
1161
|
-
oExtensionItems.applyItemVisibility(oItem, true);
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
"sap.ushell.services.Renderer.hideActionButton": {
|
|
1166
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1167
|
-
const { aIds: vIds } = oMessageBody;
|
|
1168
|
-
|
|
1169
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1170
|
-
|
|
1171
|
-
oExtensionItems.visitItems(aIds, (oItem) => {
|
|
1172
|
-
oExtensionItems.applyItemVisibility(oItem, false);
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
},
|
|
1176
|
-
"sap.ushell.services.Renderer.addOptionsActionSheetButton": {
|
|
1177
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
1178
|
-
const vButtons = oMessageBody;
|
|
1179
|
-
const [Button] = await ushellUtils.requireAsync(["sap/m/Button"]);
|
|
1180
|
-
const FrameBoundExtension = await Container.getServiceAsync("FrameBoundExtension");
|
|
1181
|
-
|
|
1182
|
-
const aButtons = Array.isArray(vButtons) ? vButtons : [vButtons];
|
|
1183
|
-
|
|
1184
|
-
aButtons.forEach(async (oButton) => {
|
|
1185
|
-
destroyControl(oButton.id);
|
|
1186
|
-
|
|
1187
|
-
// eslint-disable-next-line no-new
|
|
1188
|
-
new Button({
|
|
1189
|
-
id: oButton.id,
|
|
1190
|
-
text: oButton.text,
|
|
1191
|
-
icon: oButton.icon,
|
|
1192
|
-
tooltip: oButton.tooltip,
|
|
1193
|
-
press: async function () {
|
|
1194
|
-
PostMessageManager.sendRequest(
|
|
1195
|
-
"sap.ushell.appRuntime.buttonClick",
|
|
1196
|
-
{ buttonId: oButton.id },
|
|
1197
|
-
oApplicationContainer.getPostMessageTarget(),
|
|
1198
|
-
oApplicationContainer.getPostMessageTargetOrigin(),
|
|
1199
|
-
false // bWaitForResponse
|
|
1200
|
-
);
|
|
1201
|
-
}
|
|
1202
|
-
});
|
|
1203
|
-
|
|
1204
|
-
const oItem = await FrameBoundExtension.createUserAction({
|
|
1205
|
-
id: oButton.id
|
|
1206
|
-
});
|
|
1207
|
-
|
|
1208
|
-
oExtensionItems.storeItem(oButton.id, oItem);
|
|
1209
|
-
oExtensionItems.applyItemVisibility(oItem, true);
|
|
1210
|
-
});
|
|
1211
|
-
},
|
|
1212
|
-
options: {
|
|
1213
|
-
provideApplicationContext: true
|
|
1214
|
-
}
|
|
1215
|
-
},
|
|
1216
|
-
"sap.ushell.services.Renderer.removeOptionsActionSheetButton": {
|
|
1217
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1218
|
-
const vButtons = oMessageBody;
|
|
1219
|
-
|
|
1220
|
-
const aButtons = Array.isArray(vButtons) ? vButtons : [vButtons];
|
|
1221
|
-
|
|
1222
|
-
aButtons.forEach((oButton) => {
|
|
1223
|
-
const oItem = oExtensionItems.getItem(oButton.id);
|
|
1224
|
-
if (!oItem) {
|
|
1225
|
-
Log.warning(`User action with id ${oButton.id} not found`);
|
|
1226
|
-
return;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
oExtensionItems.applyItemVisibility(oItem, false);
|
|
1230
|
-
return destroyControl(oButton.id);
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
"sap.ushell.services.Renderer.destroyButton": {
|
|
1235
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1236
|
-
const { aIds: vIds } = oMessageBody;
|
|
1237
|
-
|
|
1238
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1239
|
-
|
|
1240
|
-
aIds.forEach((sId) => {
|
|
1241
|
-
destroyControl(sId);
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
|
-
"sap.ushell.services.Renderer.createShellHeadItem": {
|
|
1246
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
1247
|
-
const { params } = oMessageBody;
|
|
1248
|
-
params.press = async function () {
|
|
1249
|
-
PostMessageManager.sendRequest(
|
|
1250
|
-
"sap.ushell.appRuntime.buttonClick",
|
|
1251
|
-
{ buttonId: params.id },
|
|
1252
|
-
oApplicationContainer.getPostMessageTarget(),
|
|
1253
|
-
oApplicationContainer.getPostMessageTargetOrigin(),
|
|
1254
|
-
false // bWaitForResponse
|
|
1255
|
-
);
|
|
1256
|
-
};
|
|
1257
|
-
|
|
1258
|
-
const [ShellHeadItem] = await ushellUtils.requireAsync(["sap/ushell/ui/shell/ShellHeadItem"]);
|
|
1259
|
-
|
|
1260
|
-
// eslint-disable-next-line no-new
|
|
1261
|
-
new ShellHeadItem(params);
|
|
1262
|
-
},
|
|
1263
|
-
options: {
|
|
1264
|
-
provideApplicationContext: true
|
|
1265
|
-
}
|
|
1266
|
-
},
|
|
1267
|
-
"sap.ushell.services.Renderer.setHeaderTitle": { // secondTitle
|
|
1268
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1269
|
-
const { sTitle } = oMessageBody;
|
|
1270
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1271
|
-
|
|
1272
|
-
Extension.setSecondTitle(sTitle);
|
|
1273
|
-
}
|
|
1274
|
-
},
|
|
1275
|
-
"sap.ushell.services.Renderer.setHeaderVisibility": {
|
|
1276
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1277
|
-
const { bVisible, bCurrentState, aStates } = oMessageBody;
|
|
1278
|
-
const oRenderer = Container.getRendererInternal("fiori2");
|
|
1279
|
-
|
|
1280
|
-
oRenderer.setHeaderVisibility(bVisible, !!bCurrentState, aStates);
|
|
1281
|
-
}
|
|
1282
|
-
},
|
|
1283
|
-
"sap.ushell.services.Extension.createHeaderItem": {
|
|
1284
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
1285
|
-
const { controlProperties, events, parameters } = oMessageBody;
|
|
1286
|
-
const sItemId = oExtensionItems.generateItemId();
|
|
1287
|
-
|
|
1288
|
-
events.forEach((sEventName) => {
|
|
1289
|
-
controlProperties[sEventName] = async function () {
|
|
1290
|
-
PostMessageManager.sendRequest(
|
|
1291
|
-
"sap.ushell.services.Extension.handleControlEvent",
|
|
1292
|
-
{
|
|
1293
|
-
eventName: sEventName,
|
|
1294
|
-
itemId: sItemId
|
|
1295
|
-
},
|
|
1296
|
-
oApplicationContainer.getPostMessageTarget(),
|
|
1297
|
-
oApplicationContainer.getPostMessageTargetOrigin(),
|
|
1298
|
-
false // bWaitForResponse
|
|
1299
|
-
);
|
|
1300
|
-
};
|
|
1301
|
-
});
|
|
1302
|
-
|
|
1303
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1304
|
-
const oItem = await Extension.createHeaderItem(controlProperties, parameters);
|
|
1305
|
-
oExtensionItems.storeItem(sItemId, oItem);
|
|
1306
|
-
|
|
1307
|
-
return {
|
|
1308
|
-
itemId: sItemId
|
|
1309
|
-
};
|
|
1310
|
-
},
|
|
1311
|
-
options: {
|
|
1312
|
-
provideApplicationContext: true
|
|
1313
|
-
}
|
|
1314
|
-
},
|
|
1315
|
-
"sap.ushell.services.Extension.createUserAction": {
|
|
1316
|
-
async handler (oMessageBody, oApplicationContainer, oMessageEvent) {
|
|
1317
|
-
const { controlProperties, events, parameters } = oMessageBody;
|
|
1318
|
-
const sItemId = oExtensionItems.generateItemId();
|
|
1319
|
-
|
|
1320
|
-
events.forEach((sEventName) => {
|
|
1321
|
-
controlProperties[sEventName] = async function () {
|
|
1322
|
-
PostMessageManager.sendRequest(
|
|
1323
|
-
"sap.ushell.services.Extension.handleControlEvent",
|
|
1324
|
-
{
|
|
1325
|
-
eventName: sEventName,
|
|
1326
|
-
itemId: sItemId
|
|
1327
|
-
},
|
|
1328
|
-
oApplicationContainer.getPostMessageTarget(),
|
|
1329
|
-
oApplicationContainer.getPostMessageTargetOrigin(),
|
|
1330
|
-
false // bWaitForResponse
|
|
1331
|
-
);
|
|
1332
|
-
};
|
|
1333
|
-
});
|
|
1334
|
-
|
|
1335
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1336
|
-
const oItem = await Extension.createUserAction(controlProperties, parameters);
|
|
1337
|
-
oExtensionItems.storeItem(sItemId, oItem);
|
|
1338
|
-
|
|
1339
|
-
return {
|
|
1340
|
-
itemId: sItemId
|
|
1341
|
-
};
|
|
1342
|
-
},
|
|
1343
|
-
options: {
|
|
1344
|
-
provideApplicationContext: true
|
|
1345
|
-
}
|
|
1346
|
-
},
|
|
1347
|
-
"sap.ushell.services.Extension.Item.destroy": {
|
|
1348
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1349
|
-
const { itemId } = oMessageBody;
|
|
1350
|
-
|
|
1351
|
-
const oItem = oExtensionItems.getItem(itemId);
|
|
1352
|
-
if (!oItem) {
|
|
1353
|
-
Log.error(`Extension item with id ${itemId} not found - cannot destroy it.`);
|
|
1354
|
-
return;
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
oExtensionItems.removeItem(itemId);
|
|
1358
|
-
oItem.destroy();
|
|
1359
|
-
}
|
|
1360
|
-
},
|
|
1361
|
-
"sap.ushell.services.Extension.Item.showForCurrentApp": {
|
|
1362
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1363
|
-
const { itemId } = oMessageBody;
|
|
1364
|
-
|
|
1365
|
-
const oItem = oExtensionItems.getItem(itemId);
|
|
1366
|
-
if (!oItem) {
|
|
1367
|
-
Log.error(`Extension item with id ${itemId} not found - cannot update its visibility.`);
|
|
1368
|
-
return;
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
oItem.showForCurrentApp();
|
|
1372
|
-
}
|
|
1373
|
-
},
|
|
1374
|
-
"sap.ushell.services.Extension.Item.hideForCurrentApp": {
|
|
1375
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1376
|
-
const { itemId } = oMessageBody;
|
|
1377
|
-
|
|
1378
|
-
const oItem = oExtensionItems.getItem(itemId);
|
|
1379
|
-
if (!oItem) {
|
|
1380
|
-
Log.error(`Extension item with id ${itemId} not found - cannot update its visibility.`);
|
|
1381
|
-
return;
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
oItem.hideForCurrentApp();
|
|
1385
|
-
}
|
|
1386
|
-
},
|
|
1387
|
-
"sap.ushell.services.Extension.Item.showForAllApps": {
|
|
1388
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1389
|
-
const { itemId } = oMessageBody;
|
|
1390
|
-
|
|
1391
|
-
const oItem = oExtensionItems.getItem(itemId);
|
|
1392
|
-
if (!oItem) {
|
|
1393
|
-
Log.error(`Extension item with id ${itemId} not found - cannot update its visibility.`);
|
|
1394
|
-
return;
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
oItem.showForAllApps();
|
|
1398
|
-
}
|
|
1399
|
-
},
|
|
1400
|
-
"sap.ushell.services.Extension.Item.hideForAllApps": {
|
|
1401
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1402
|
-
const { itemId } = oMessageBody;
|
|
1403
|
-
|
|
1404
|
-
const oItem = oExtensionItems.getItem(itemId);
|
|
1405
|
-
if (!oItem) {
|
|
1406
|
-
Log.error(`Extension item with id ${itemId} not found - cannot update its visibility.`);
|
|
1407
|
-
return;
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
oItem.hideForAllApps();
|
|
1411
|
-
}
|
|
1412
|
-
},
|
|
1413
|
-
"sap.ushell.services.Extension.Item.showOnHome": {
|
|
1414
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1415
|
-
const { itemId } = oMessageBody;
|
|
1416
|
-
|
|
1417
|
-
const oItem = oExtensionItems.getItem(itemId);
|
|
1418
|
-
if (!oItem) {
|
|
1419
|
-
Log.error(`Extension item with id ${itemId} not found - cannot update its visibility.`);
|
|
1420
|
-
return;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
oItem.showOnHome();
|
|
1424
|
-
}
|
|
1425
|
-
},
|
|
1426
|
-
"sap.ushell.services.Extension.Item.hideOnHome": {
|
|
1427
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1428
|
-
const { itemId } = oMessageBody;
|
|
1429
|
-
|
|
1430
|
-
const oItem = oExtensionItems.getItem(itemId);
|
|
1431
|
-
if (!oItem) {
|
|
1432
|
-
Log.error(`Extension item with id ${itemId} not found - cannot update its visibility.`);
|
|
1433
|
-
return;
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
oItem.hideOnHome();
|
|
1437
|
-
}
|
|
1438
|
-
},
|
|
1439
|
-
"sap.ushell.services.Extension.setSecondTitle": {
|
|
1440
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1441
|
-
const { title } = oMessageBody;
|
|
1442
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1443
|
-
|
|
1444
|
-
return Extension.setSecondTitle(title);
|
|
1445
|
-
}
|
|
1446
|
-
},
|
|
1447
|
-
"sap.ushell.services.LaunchPage.getGroupsForBookmarks": {
|
|
1448
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1449
|
-
/**
|
|
1450
|
-
* @deprecated since 1.120. Deprecated together with the classic homepage.
|
|
1451
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
1452
|
-
if (true) {
|
|
1453
|
-
const FlpLaunchPage = await Container.getServiceAsync("FlpLaunchPage");
|
|
1454
|
-
|
|
1455
|
-
const oDeferred = FlpLaunchPage.getGroupsForBookmarks();
|
|
1456
|
-
|
|
1457
|
-
return ushellUtils.promisify(oDeferred);
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
throw new Error("LaunchPage.getGroupsForBookmarks is deprecated. Please use BookmarkV2.getContentNodes instead.");
|
|
1461
|
-
}
|
|
1462
|
-
},
|
|
1463
|
-
"sap.ushell.services.Menu.getSpacesPagesHierarchy": {
|
|
1464
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1465
|
-
const Menu = await Container.getServiceAsync("Menu");
|
|
1466
|
-
|
|
1467
|
-
const aContentNodes = await Menu.getContentNodes([ContentNodeType.Space, ContentNodeType.Page]);
|
|
1468
|
-
|
|
1469
|
-
return aContentNodes.map(({ id: spaceId, label: spaceLabel, children }) => {
|
|
1470
|
-
return {
|
|
1471
|
-
id: spaceId,
|
|
1472
|
-
title: spaceLabel,
|
|
1473
|
-
pages: (children || []).map(({ id: pageId, label: pageLabel }) => {
|
|
1474
|
-
return {
|
|
1475
|
-
id: pageId,
|
|
1476
|
-
title: pageLabel
|
|
1477
|
-
};
|
|
1478
|
-
})
|
|
1479
|
-
};
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
},
|
|
1483
|
-
"sap.ushell.services.CommonDataModel.getAllPages": {
|
|
1484
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1485
|
-
const CommonDataModel = await Container.getServiceAsync("CommonDataModel");
|
|
1486
|
-
|
|
1487
|
-
return CommonDataModel.getAllPages();
|
|
1488
|
-
}
|
|
1489
|
-
},
|
|
1490
|
-
"sap.ushell.services.UITracer.trace": {
|
|
1491
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1492
|
-
const { trace } = oMessageBody;
|
|
1493
|
-
await Container.getServiceAsync("UITracer");
|
|
1494
|
-
|
|
1495
|
-
EventHub.emit("UITracer.trace", trace);
|
|
1496
|
-
}
|
|
1497
|
-
},
|
|
1498
|
-
"sap.ushell.services.SearchableContent.getApps": {
|
|
1499
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1500
|
-
const oOptions = oMessageBody.oOptions || {};
|
|
1501
|
-
const SearchableContent = await Container.getServiceAsync("SearchableContent");
|
|
1502
|
-
|
|
1503
|
-
return SearchableContent.getApps(oOptions);
|
|
1504
|
-
}
|
|
1505
|
-
},
|
|
1506
|
-
"sap.ushell.services.ReferenceResolver.resolveReferences": {
|
|
1507
|
-
async handler (oMessageBody, oMessageEvent) {
|
|
1508
|
-
const { aReferences } = oMessageBody;
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* This API is for S/Cube only!
|
|
1512
|
-
*
|
|
1513
|
-
* For S/Cube references are resolved in the context of the outer shell.
|
|
1514
|
-
* Therefore, we resolve the references without a system context.
|
|
1515
|
-
* However, for regular cflp integrations we would need to resolve with a system context.
|
|
1516
|
-
*/
|
|
1517
|
-
|
|
1518
|
-
const ReferenceResolver = await Container.getServiceAsync("ReferenceResolver");
|
|
1519
|
-
|
|
1520
|
-
return ReferenceResolver.resolveReferences(aReferences);
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
};
|
|
1524
|
-
|
|
1525
|
-
return {
|
|
1526
|
-
register () {
|
|
1527
|
-
oExtensionItems = new ExtensionItems();
|
|
1528
|
-
|
|
1529
|
-
Object.keys(oServiceRequestHandlers).forEach((sServiceRequest) => {
|
|
1530
|
-
const oHandler = oServiceRequestHandlers[sServiceRequest];
|
|
1531
|
-
PostMessageManager.setRequestHandler(sServiceRequest, oHandler.handler, oHandler.options);
|
|
1532
|
-
});
|
|
1533
|
-
},
|
|
1534
|
-
|
|
1535
|
-
// for testing,
|
|
1536
|
-
stripBookmarkServiceUrlForLocalContentProvider,
|
|
1537
|
-
getExtensionItems () {
|
|
1538
|
-
return oExtensionItems;
|
|
1539
|
-
}
|
|
1540
|
-
};
|
|
1541
|
-
});
|