@sapui5/sap.ushell 1.133.0 → 1.134.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +3 -2
- package/src/main/js/sap/ushell/AppInfoParameters.js +18 -4
- package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +217 -0
- package/src/main/js/sap/ushell/ApplicationType/guiResolution.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType/systemAlias.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType/ui5Resolution.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType/urlResolution.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType/urlTemplateResolution.js +14 -7
- package/src/main/js/sap/ushell/ApplicationType/utils.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType/wcfResolution.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType.js +1 -1
- package/src/main/js/sap/ushell/CanvasShapesManager.js +1 -1
- package/src/main/js/sap/ushell/Config/utils.js +1 -1
- package/src/main/js/sap/ushell/Config.js +1 -1
- package/src/main/js/sap/ushell/Container.js +1 -1
- package/src/main/js/sap/ushell/EventHub.js +1 -1
- package/src/main/js/sap/ushell/Fiori20Adapter.js +2 -2
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +2 -2
- package/src/main/js/sap/ushell/Layout.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +11 -5
- package/src/main/js/sap/ushell/SessionHandler.js +139 -97
- package/src/main/js/sap/ushell/System.js +1 -1
- package/src/main/js/sap/ushell/TechnicalParameters.js +2 -2
- package/src/main/js/sap/ushell/UI5ComponentType.js +1 -1
- package/src/main/js/sap/ushell/UIActions.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/DefinitionParameterSetBuilder.js +2 -2
- package/src/main/js/sap/ushell/URLTemplateProcessor/DependencyGraph.js +2 -2
- package/src/main/js/sap/ushell/URLTemplateProcessor/Functions.js +2 -2
- package/src/main/js/sap/ushell/URLTemplateProcessor/Resolvers.js +2 -2
- package/src/main/js/sap/ushell/URLTemplateProcessor/TemplateParameterParser.js +2 -2
- package/src/main/js/sap/ushell/URLTemplateProcessor/utils.js +2 -2
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +2 -2
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +2 -2
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +2 -2
- package/src/main/js/sap/ushell/User.js +43 -11
- package/src/main/js/sap/ushell/UserActivityLog.js +1 -1
- package/src/main/js/sap/ushell/adapters/AppVariantPersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +22 -6
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegion.controller.js +251 -0
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegion.view.xml +69 -0
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegionEntry.js +67 -0
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/_Personalization/internals.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/utilsCdm.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +6 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +2 -2
- 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 +2 -2
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +2 -2
- package/src/main/js/sap/ushell/api/BootstrapObserver.js +1 -1
- package/src/main/js/sap/ushell/api/Copilot.js +1 -1
- package/src/main/js/sap/ushell/api/Inbox.js +1 -1
- package/src/main/js/sap/ushell/api/NewExperience/CustomOverflowListItem.js +1 -1
- package/src/main/js/sap/ushell/api/NewExperience.js +1 -1
- package/src/main/js/sap/ushell/api/RTA.js +1 -1
- package/src/main/js/sap/ushell/api/S4MyHome.js +1 -1
- package/src/main/js/sap/ushell/api/SAPBusinessClient.js +129 -0
- package/src/main/js/sap/ushell/api/common/ComponentInstantiation.js +1 -1
- package/src/main/js/sap/ushell/api/workpage/Designtime.js +1 -1
- package/src/main/js/sap/ushell/api/workpage/Runtime.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/neo/AppInfoService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/neo/AppRuntimeNeo.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/neo/ProxyAppUtils.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppCommunicationMgr.js +24 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeContext.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/BusyIndicator.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/SessionHandlerAgent.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/libsPreload.js +1 -1
- 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 +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/BaseRTAPluginStatus.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Trigger.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/Component.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/AccessKeysAgent.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/EmptyAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/ui/UIProxy.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/EventProcessor.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/FLPLoader.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/FLPScheduler.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/LoadingConfiguration.json +4 -0
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +33 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-dev.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-loader.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.boot.task.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.path.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.script.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.task.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.extractLibs.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5language.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5theme.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.constants.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +58 -25
- package/src/main/js/sap/ushell/bootstrap/common/common.debug.mode.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.bootstrapExtension.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.model.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.script.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.override.registermodulepath.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.read.metatags.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ui5theme.from.config.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandbox.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxBootTask.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/ui5loader-config.js +1 -1
- package/src/main/js/sap/ushell/components/CatalogsManager.js +1 -1
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +1 -1
- package/src/main/js/sap/ushell/components/DestroyHelper.js +1 -1
- package/src/main/js/sap/ushell/components/GroupsHelper.js +1 -1
- package/src/main/js/sap/ushell/components/HomepageManager.js +1 -1
- package/src/main/js/sap/ushell/components/MessagingHelper.js +1 -1
- package/src/main/js/sap/ushell/components/SharedComponentUtils.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +11 -3
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/EasyAccessView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/GroupListPopover.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/GroupListPopoverView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFoldersView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +707 -916
- package/src/main/js/sap/ushell/components/applicationIntegration/ApplicationContainer.js +272 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/ApplicationContainerCache.js +229 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/ApplicationContainerRenderer.js +35 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/IframeApplicationContainer.js +372 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/IframeApplicationContainerRenderer.js +296 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/KeepAliveApps.js +68 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessageManager/AppruntimeHandler.js +120 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessageManager/ExtensionItems.js +143 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessageManager/LifecycleHandler.js +618 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessageManager/MessageBrokerHandler.js +64 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessageManager/NWBCHandler.js +83 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessageManager/ServiceHandler.js +1503 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessageManager.js +638 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/PostMessagePluginInterface.js +152 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/Storage.js +21 -50
- package/src/main/js/sap/ushell/components/applicationIntegration/UI5ApplicationContainer.js +168 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/UI5ApplicationContainerRenderer.js +41 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +30 -679
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +13 -390
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxesCache.js +8 -249
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +9 -2365
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPIInterface.js +10 -127
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageUtils.js +10 -177
- package/src/main/js/sap/ushell/components/applicationIntegration/application/WebGUIStatefulHandler.js +10 -74
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +21 -12
- package/src/main/js/sap/ushell/components/applicationIntegration/contracts/EmbeddedUI5Handler.js +176 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/contracts/StatefulContainerV1Handler.js +91 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/contracts/StatefulContainerV2Handler.js +175 -0
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +13 -74
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/AppLifeCycle.js +1926 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/Storage.js +62 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/Application.js +709 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/BlueBoxHandler.js +406 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/BlueBoxesCache.js +263 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/PostMessageAPI.js +2382 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/PostMessageAPIInterface.js +143 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/PostMessageUtils.js +192 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/WebGUIStatefulHandler.js +90 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/configuration/AppMeta.js +193 -0
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/relatedServices/RelatedServices.js +91 -0
- package/src/main/js/sap/ushell/components/cards/Card.controller.js +1 -1
- package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +1 -1
- package/src/main/js/sap/ushell/components/cards/ManifestPropertyHelper.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Component.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Component.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Config.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Extension.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/AdvancedFormatters.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/Edition.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/EditionAdvanced.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/EditionStandard.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/appendStyleVars.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Highlighter.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Paginator.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/All.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Event.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/People.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Workpage.js +1 -1
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +38 -22
- package/src/main/js/sap/ushell/components/container/IframePOSTUtils.js +5 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +14 -5
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +2 -2
- 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/model/GraphQLListBinding.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/model/GraphQLModel.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +32 -8
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/view/VisualizationsNoDataIllustratedMessage.fragment.xml +6 -3
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +2 -2
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +54 -14
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources.properties +6 -0
- package/src/main/js/sap/ushell/components/factsheet/Component.js +2 -2
- package/src/main/js/sap/ushell/components/factsheet/annotation/Mapping.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTile.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTileRenderer.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerItem.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerRenderer.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/tools/ODataUrlTemplating.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/views/ThingViewer.controller.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/views/ThingViewer.view.js +1 -1
- package/src/main/js/sap/ushell/components/homeApp/error/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.controller.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +2 -2
- 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 +2 -2
- package/src/main/js/sap/ushell/components/pages/Component.js +2 -2
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +2 -2
- package/src/main/js/sap/ushell/components/pages/StateManager.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/MyHome.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +2 -2
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/Component.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +2 -2
- 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/controls/FloatingContainer.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/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +1 -2
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/Component.js +39 -4
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +30 -63
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +118 -0
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenu.view.xml +64 -17
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenuButton.view.xml +24 -0
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Search/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +1 -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 +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/ProvidersExecuter.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +19 -16
- package/src/main/js/sap/ushell/components/shell/Settings/ContentWrapper.fragment.xml +3 -2
- package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +44 -17
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +29 -24
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/AppearanceEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/search/Search.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/search/SearchEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/ExtendedValueDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/UserLanguageRegionEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +95 -215
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +77 -178
- package/src/main/js/sap/ushell/components/shell/SideNavigation/css/style.css +3 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/fragment/Popover.fragment.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +8 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AllSpaces.js +52 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AppFinder.js +48 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Favorites.js +222 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericFixedNavigationListProvider.js +142 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericNavigationListProvider.js +186 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/MyHome.js +73 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/NavigationHelper.js +79 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/RecentActivity.js +141 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Spaces.js +288 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/SpacesNavigationListProvider.js +79 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources.properties +15 -6
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ar.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_bg.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ca.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cnr.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cs.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cy.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_da.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_de.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_el.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en_GB.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en_US_saprigi.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_es.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_es_MX.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_et.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fi.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fr.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fr_CA.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hi.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hr.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hu.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_id.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_it.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_iw.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ja.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_kk.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ko.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_lt.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_lv.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_mk.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ms.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_nl.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_no.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pl.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pt.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pt_PT.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ro.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ru.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sh.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sk.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sl.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sr.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sv.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_th.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_tr.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_uk.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_vi.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_zh_CN.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_zh_TW.properties +10 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/view/SideNavigation.view.xml +37 -28
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +142 -15
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.fragment.xml +33 -0
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenuPopover.fragment.xml +25 -8
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/action/ActionTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/action/Configuration.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/Configuration.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Configuration.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +1 -3
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/generic.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorHarveyBall/HarveyBallTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorHarveyBall/HarveyBallTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/cache.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/indicatorTileHelper.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatordeviation/DeviationTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatordeviation/DeviationTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatornumeric/NumericTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatornumeric/NumericTile.view.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/sbtilecontent.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/utils.js +1 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRenderer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.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 +2 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +2 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +2 -2
- package/src/main/js/sap/ushell/functionBindPrototype.js +1 -1
- package/src/main/js/sap/ushell/iconfonts.js +1 -1
- package/src/main/js/sap/ushell/library.js +68 -2
- package/src/main/js/sap/ushell/navigationMode.js +2 -2
- package/src/main/js/sap/ushell/override.js +1 -1
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +2 -2
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +2 -2
- package/src/main/js/sap/ushell/plugins/BaseRTAPlugin.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +2 -2
- package/src/main/js/sap/ushell/plugins/appwarmup/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/plugins/ghostapp/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/ghostapp/FakeModel.js +1 -1
- package/src/main/js/sap/ushell/plugins/rta/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/rta-personalize/Component.js +1 -1
- package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +1 -1
- package/src/main/js/sap/ushell/renderer/History.js +1 -1
- package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +1 -1
- package/src/main/js/sap/ushell/renderer/Renderer.js +3 -3
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +327 -140
- package/src/main/js/sap/ushell/renderer/Shell.view.js +1 -1
- package/src/main/js/sap/ushell/renderer/ShellLayout.js +10 -2
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +1 -1
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +5 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +51 -45
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +12 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +11 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +10 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +11 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +9 -3
- package/src/main/js/sap/ushell/renderer/search/searchComponent/Component.js +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/CEPSearchApp.controller.js +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/SearchApp.controller.js +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/view/CEPSearchApp.view.js +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/view/SearchApp.view.js +1 -1
- package/src/main/js/sap/ushell/renderer/search/util.js +1 -1
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.controller.js +13 -7
- package/src/main/js/sap/ushell/renderer/utils.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/History.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/LogonFrameProvider.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.controller.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsManager.js +1 -1
- package/src/main/js/sap/ushell/resources.js +1 -1
- package/src/main/js/sap/ushell/services/AllMyApps.js +1 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +4 -3
- package/src/main/js/sap/ushell/services/AppState.js +2 -2
- package/src/main/js/sap/ushell/services/AppType.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +2 -2
- package/src/main/js/sap/ushell/services/BookmarkV2.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/ParameterMapping.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +2 -2
- package/src/main/js/sap/ushell/services/CommonDataModel/PersonalizationProcessor.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +2 -2
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +2 -2
- package/src/main/js/sap/ushell/services/CommonDataModel.js +2 -13
- package/src/main/js/sap/ushell/services/Configuration.js +2 -2
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +2 -2
- package/src/main/js/sap/ushell/services/Container.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +2 -2
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +2 -2
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +2 -2
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +2 -2
- package/src/main/js/sap/ushell/services/Extension.js +2 -2
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +63 -0
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +14 -10
- package/src/main/js/sap/ushell/services/LaunchPage.js +2 -2
- package/src/main/js/sap/ushell/services/Menu.js +2 -2
- package/src/main/js/sap/ushell/services/Message.js +2 -2
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +269 -143
- package/src/main/js/sap/ushell/services/MessageBroker.js +2 -2
- package/src/main/js/sap/ushell/services/MessageInternal.js +2 -2
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +2 -2
- package/src/main/js/sap/ushell/services/Navigation/utils.js +2 -2
- package/src/main/js/sap/ushell/services/Navigation.js +6 -6
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +2 -2
- package/src/main/js/sap/ushell/services/Notifications.js +1 -1
- package/src/main/js/sap/ushell/services/NotificationsV2.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +2 -2
- package/src/main/js/sap/ushell/services/PagePersistence.js +2 -2
- package/src/main/js/sap/ushell/services/PageReferencing.js +2 -2
- package/src/main/js/sap/ushell/services/Pages.js +2 -2
- package/src/main/js/sap/ushell/services/Personalization.js +2 -2
- package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/TransientPersonalizer.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/Variant.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSet.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.private.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/utils.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +2 -2
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +2 -2
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +2 -2
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +2 -2
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +2 -2
- package/src/main/js/sap/ushell/services/PluginManager.js +22 -9
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +2 -2
- package/src/main/js/sap/ushell/services/Search.js +2 -2
- package/src/main/js/sap/ushell/services/SearchCEP.js +2 -2
- package/src/main/js/sap/ushell/services/SearchableContent.js +2 -2
- package/src/main/js/sap/ushell/services/ShellNavigation.js +2 -2
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +2 -2
- package/src/main/js/sap/ushell/services/SpaceContent.js +2 -2
- package/src/main/js/sap/ushell/services/SupportTicket.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +2 -2
- package/src/main/js/sap/ushell/services/URLParsing.js +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +2 -2
- package/src/main/js/sap/ushell/services/URLTemplate.js +2 -2
- package/src/main/js/sap/ushell/services/Ui5ComponentHandle.js +11 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader/utils.js +2 -2
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +2 -2
- package/src/main/js/sap/ushell/services/UsageAnalytics.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +2 -2
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +2 -2
- package/src/main/js/sap/ushell/services/UserInfo.js +2 -2
- package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents/RecentAppsUsage.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents/UserRecentsBase.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +2 -2
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +2 -2
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +2 -2
- package/src/main/js/sap/ushell/services/_AppState/AppStatePersistencyMethod.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +2 -2
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +2 -2
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +2 -2
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +2 -2
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/VariantSetAdapter.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapter.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/constants.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/constants.private.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/AppStatePersistencyMethod.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/AppStatePersistencySettings.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/LimitedBuffer.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/Sequentializer.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/SequentializingAdapter.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/WindowAdapter.js +1 -1
- package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +1 -1
- package/src/main/js/sap/ushell/state/BackNavigation.js +91 -0
- package/src/main/js/sap/ushell/state/BaseState.js +1 -1
- package/src/main/js/sap/ushell/state/BindingHelper.js +18 -15
- package/src/main/js/sap/ushell/state/ControlManager.js +1 -1
- package/src/main/js/sap/ushell/state/CurrentState.js +1 -1
- package/src/main/js/sap/ushell/state/KeepAlive.js +1 -1
- package/src/main/js/sap/ushell/state/ShellModel.js +1 -1
- package/src/main/js/sap/ushell/state/StateManager/LaunchpadState.js +1 -1
- package/src/main/js/sap/ushell/state/StateManager/Operation.js +1 -1
- package/src/main/js/sap/ushell/state/StateManager/ShellMode.js +1 -1
- package/src/main/js/sap/ushell/state/StateManager.js +1 -1
- package/src/main/js/sap/ushell/state/StateRules.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/DefaultStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/FloatingActionsStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/FloatingContainerStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadEndItemsStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadItemsStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/SidePaneStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/SubHeaderStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory/UserActionsStrategy.js +1 -1
- package/src/main/js/sap/ushell/state/StrategyFactory.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +2 -2
- package/src/main/js/sap/ushell/themes/base/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_belize/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_belize_base/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/HistoryScreen.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/HistoryScreen.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_belize_plus/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/HistoryScreen.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_hcb/HistoryScreen.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/library.source.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/library.source.less +1 -1
- package/src/main/js/sap/ushell/thirdparty/Icons.js +191 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +1809 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenuAccount.js +104 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +420 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons.js +2508 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons2.js +2508 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ar.js +7139 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ar_EG.js +7139 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ar_SA.js +7138 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/bg.js +6031 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ca.js +6133 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/cnr.js +6219 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/cs.js +6759 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/da.js +5977 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/de.js +6098 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/de_AT.js +6099 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/de_CH.js +6097 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/el.js +5882 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/el_CY.js +5882 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en.js +6094 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_AU.js +6134 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_GB.js +6125 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_HK.js +6136 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_IE.js +6125 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_IN.js +6132 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_NZ.js +6125 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_PG.js +6126 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_SG.js +6132 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/en_ZA.js +6126 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es.js +6153 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_AR.js +6156 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_BO.js +6155 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_CL.js +6048 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_CO.js +6048 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_MX.js +6157 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_PE.js +5939 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_UY.js +5941 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/es_VE.js +5940 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/et.js +6077 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/fa.js +6002 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/fi.js +6245 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/fr.js +6047 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_BE.js +6047 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_CA.js +6041 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_CH.js +6065 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_LU.js +6047 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/he.js +6593 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/hi.js +5911 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/hr.js +6246 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/hu.js +5995 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/id.js +5783 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/it.js +6036 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/it_CH.js +6036 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ja.js +5942 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/kk.js +5989 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ko.js +5823 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/lt.js +6628 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/lv.js +6164 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +656 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +542 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_in.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_in2.js +266 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_in3.js +143 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW.js +182 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +515 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/mk.js +6095 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ms.js +5617 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/nb.js +6085 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/nl.js +6252 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/nl_BE.js +6252 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css2.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css3.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/pl.js +6639 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/pt.js +6165 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/pt_PT.js +6230 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ro.js +6250 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ru.js +6553 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ru_UA.js +6553 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/sk.js +6482 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/sl.js +6494 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/sr.js +6291 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/sr_Latn.js +6278 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/sv.js +6126 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/th.js +5928 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/tr.js +6146 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/uk.js +6504 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/vi.js +5720 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_CN.js +5770 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_HK.js +5779 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_SG.js +5779 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_TW.js +5846 -0
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css25.js +7177 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/ListItem.js +81 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/ListItemBase.js +44 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/MenuItem.js +119 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-base.js +212 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/UserMenu.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/UserMenuAccount.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/UserMenuItem.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/UserMenu.js +99 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/UserMenuAccount.js +75 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/UserMenuItem.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori.js +347 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons/AllIcons.js +26 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents.js +650 -0
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +4279 -0
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base2.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +146 -0
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +381 -0
- package/src/main/js/sap/ushell/ui/AppContainer.js +22 -8
- package/src/main/js/sap/ushell/ui/AppContainerRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +1 -1
- package/src/main/js/sap/ushell/ui/ContentNodeSelectorRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/ContentNodeTreeItem.js +1 -1
- package/src/main/js/sap/ushell/ui/CustomGroupHeaderListItem.js +1 -1
- package/src/main/js/sap/ushell/ui/CustomGroupHeaderListItemRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/QuickAccess.js +1 -1
- package/src/main/js/sap/ushell/ui/ShellHeader.js +56 -40
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternal.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternalRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/PinButton.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/PinButtonRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/bookmark/SaveOnPage.controller.js +1 -1
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +2 -2
- package/src/main/js/sap/ushell/ui/footerbar/AboutButton.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AboutDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportButton.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/AccessibilityCustomData.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ActionItem.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItemRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBarRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/CatalogEntryContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/CatalogsContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainerRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/FailedTileDialog.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/GroupHeaderActions.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItem.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItemRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapperRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialog.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialogRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/PageRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/PlusTile.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/PlusTileRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/SectionRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Tile.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileContainerRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileContainerUtils.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileState.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileStateInternal.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileStateInternalRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileStateRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ViewPortState.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceAbap.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceBase.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceCdm.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLink.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactAreaRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ContentRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/NavigationMiniTile.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/OverflowListItem.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingAction.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingActionRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingActions.js +1 -9
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/SidePane.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/SubHeader.js +8 -51
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/SysInfoBarRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +2 -2
- package/src/main/js/sap/ushell/ui/tile/DynamicTile.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/DynamicTileRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/ImageTile.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/ImageTileRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/StaticTile.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/StaticTileRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/TileBase.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/TileBaseRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/utils.js +2 -2
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +2 -2
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +2 -2
- package/src/main/js/sap/ushell/utils/AppType.js +1 -1
- package/src/main/js/sap/ushell/utils/Deferred.js +1 -1
- package/src/main/js/sap/ushell/utils/DynamicTileRequest.js +1 -1
- package/src/main/js/sap/ushell/utils/HttpClient.js +1 -1
- package/src/main/js/sap/ushell/utils/RestrictedJSONModel.js +17 -1
- package/src/main/js/sap/ushell/utils/UriParameters.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlParsing.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlShortening.js +2 -2
- package/src/main/js/sap/ushell/utils/WindowUtils.js +1 -1
- package/src/main/js/sap/ushell/utils/chipsUtils.js +1 -1
- package/src/main/js/sap/ushell/utils/objectOperations.js +1 -1
- package/src/main/js/sap/ushell/utils/tilecard/TileCard.js +1 -1
- package/src/main/js/sap/ushell/utils/tilecard/TileCardExtension.js +1 -1
- package/src/main/js/sap/ushell/utils/type.js +1 -1
- package/src/main/js/sap/ushell/utils/utilsCdm.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/DestinationResolver.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +2 -2
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +3 -3
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +3 -3
- package/src/main/js/sap/ushell/utils.js +9 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +2 -2
- package/ui5.yaml +20 -1
package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js
CHANGED
|
@@ -1,2378 +1,22 @@
|
|
|
1
|
-
// Copyright (c) 2009-
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview defines the post message API for all applications running in iframe within the shell
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.134.1
|
|
6
6
|
* @private
|
|
7
7
|
*/
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
"sap/
|
|
10
|
-
"sap/
|
|
11
|
-
"sap/ui/core/Element",
|
|
12
|
-
"sap/ushell/utils",
|
|
13
|
-
"sap/ui/core/library",
|
|
14
|
-
"sap/ui/thirdparty/jquery",
|
|
15
|
-
"sap/base/Log",
|
|
16
|
-
"sap/ui/core/UIComponent",
|
|
17
|
-
"sap/ushell/services/AppConfiguration",
|
|
18
|
-
"sap/ushell/services/Navigation/compatibility",
|
|
19
|
-
"sap/ushell/EventHub",
|
|
20
|
-
"sap/ushell/components/applicationIntegration/application/PostMessageAPIInterface",
|
|
21
|
-
"sap/ui/thirdparty/URI",
|
|
22
|
-
"sap/base/util/deepExtend",
|
|
23
|
-
"sap/ushell/Config",
|
|
24
|
-
"sap/ushell/library",
|
|
25
|
-
"sap/ushell/utils/UrlParsing",
|
|
26
|
-
"sap/m/Button",
|
|
27
|
-
"sap/m/library",
|
|
28
|
-
"sap/ui/thirdparty/hasher",
|
|
29
|
-
"sap/ui/core/EventBus",
|
|
30
|
-
"sap/ushell/resources",
|
|
31
|
-
"sap/ushell/ui/shell/ShellHeadItem",
|
|
32
|
-
"sap/base/util/uid",
|
|
33
|
-
"sap/ushell/Container",
|
|
34
|
-
"sap/base/util/Deferred",
|
|
35
|
-
"sap/ushell/state/ShellModel",
|
|
36
|
-
"sap/ushell/ApplicationType/systemAlias"
|
|
9
|
+
"sap/ushell/components/applicationIntegrationOld/application/PostMessageAPI",
|
|
10
|
+
"sap/ushell/Config"
|
|
37
11
|
], function (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Element,
|
|
41
|
-
ushellUtils,
|
|
42
|
-
coreLib,
|
|
43
|
-
jQuery,
|
|
44
|
-
Log,
|
|
45
|
-
UIComponent,
|
|
46
|
-
AppConfiguration,
|
|
47
|
-
navigationCompatibility,
|
|
48
|
-
EventHub,
|
|
49
|
-
PostMessageAPIInterface,
|
|
50
|
-
URI,
|
|
51
|
-
deepExtend,
|
|
52
|
-
Config,
|
|
53
|
-
ushellLibrary,
|
|
54
|
-
UrlParsing,
|
|
55
|
-
Button,
|
|
56
|
-
mobileLibrary,
|
|
57
|
-
hasher,
|
|
58
|
-
EventBus,
|
|
59
|
-
resources,
|
|
60
|
-
ShellHeadItem,
|
|
61
|
-
fnGetUid,
|
|
62
|
-
Container,
|
|
63
|
-
Deferred,
|
|
64
|
-
ShellModel,
|
|
65
|
-
SystemAlias
|
|
12
|
+
PostMessageAPIFallback,
|
|
13
|
+
Config
|
|
66
14
|
) {
|
|
67
15
|
"use strict";
|
|
68
16
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const SAP_API_PREFIX = "sap.ushell.";
|
|
73
|
-
|
|
74
|
-
const oDummyComponent = new UIComponent();
|
|
75
|
-
const URLHelper = mobileLibrary.URLHelper;
|
|
76
|
-
/**
|
|
77
|
-
* All APIs must start with "sap.ushell" prefix
|
|
78
|
-
*/
|
|
79
|
-
const oAPIs = {
|
|
80
|
-
"sap.ushell.services.Navigation": {
|
|
81
|
-
oServiceCalls: {
|
|
82
|
-
getHref: {
|
|
83
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
84
|
-
const { oTarget } = oServiceParams.oMessageData.body;
|
|
85
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
86
|
-
|
|
87
|
-
return Navigation.getHref(oTarget);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
backToPreviousApp: {
|
|
91
|
-
executeServiceCallFn: async () => {
|
|
92
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
93
|
-
return Navigation.backToPreviousApp();
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
historyBack: {
|
|
97
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
98
|
-
const { iSteps } = oServiceParams.oMessageData.body;
|
|
99
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
100
|
-
|
|
101
|
-
return Navigation.historyBack(iSteps);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
isInitialNavigation: {
|
|
105
|
-
executeServiceCallFn: async () => {
|
|
106
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
107
|
-
return Navigation.isInitialNavigation();
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
navigate: {
|
|
111
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
112
|
-
const { oTarget } = oServiceParams.oMessageData.body;
|
|
113
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
114
|
-
|
|
115
|
-
const oTargetClone = deepExtend({}, oTarget);
|
|
116
|
-
ushellUtils.storeSapSystemToLocalStorage(oTargetClone);
|
|
117
|
-
|
|
118
|
-
return Navigation.navigate(oTargetClone);
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
getPrimaryIntent: {
|
|
122
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
123
|
-
const { sSemanticObject, oLinkFilter } = oServiceParams.oMessageData.body;
|
|
124
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
125
|
-
|
|
126
|
-
return Navigation.getPrimaryIntent(sSemanticObject, oLinkFilter);
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
getLinks: {
|
|
130
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
131
|
-
const oParams = oServiceParams.oMessageData.body;
|
|
132
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
133
|
-
|
|
134
|
-
return Navigation.getLinks(oParams);
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
getSemanticObjects: {
|
|
138
|
-
executeServiceCallFn: async () => {
|
|
139
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
140
|
-
return Navigation.getSemanticObjects();
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
isNavigationSupported: {
|
|
145
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
146
|
-
const { aTargets } = oServiceParams.oMessageData.body;
|
|
147
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
148
|
-
|
|
149
|
-
return Navigation.isNavigationSupported(aTargets);
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
getAppState: {
|
|
153
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
154
|
-
const { sAppStateKey } = oServiceParams.oMessageData.body;
|
|
155
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
156
|
-
|
|
157
|
-
const oAppState = await Navigation.getAppState(oDummyComponent, sAppStateKey);
|
|
158
|
-
delete oAppState._oServiceInstance;
|
|
159
|
-
|
|
160
|
-
return oAppState;
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
resolveIntent: {
|
|
164
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
165
|
-
const { sHashFragment } = oServiceParams.oMessageData.body;
|
|
166
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
167
|
-
|
|
168
|
-
return Navigation.resolveIntent(sHashFragment);
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
isUrlSupported: {
|
|
172
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
173
|
-
const { sUrl } = oServiceParams.oMessageData.body;
|
|
174
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
175
|
-
|
|
176
|
-
return Navigation.isUrlSupported(sUrl);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"sap.ushell.services.CrossApplicationNavigation": {
|
|
182
|
-
oServiceCalls: {
|
|
183
|
-
hrefForExternal: {
|
|
184
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
185
|
-
const { oArgs } = oServiceParams.oMessageData.body;
|
|
186
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
187
|
-
|
|
188
|
-
return Navigation.getHref(oArgs);
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
getSemanticObjectLinks: {
|
|
192
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
193
|
-
// beware sSemanticObject may also be an array of argument arrays
|
|
194
|
-
// {sSemanticObject, mParameters, bIgnoreFormFactors }
|
|
195
|
-
const { sSemanticObject, mParameters, bIgnoreFormFactors, bCompactIntents } = oServiceParams.oMessageData.body;
|
|
196
|
-
|
|
197
|
-
return navigationCompatibility.getSemanticObjectLinks(
|
|
198
|
-
sSemanticObject,
|
|
199
|
-
mParameters,
|
|
200
|
-
bIgnoreFormFactors,
|
|
201
|
-
undefined,
|
|
202
|
-
undefined,
|
|
203
|
-
bCompactIntents
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
isIntentSupported: {
|
|
208
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
209
|
-
const { aIntents } = oServiceParams.oMessageData.body;
|
|
210
|
-
|
|
211
|
-
return navigationCompatibility.isIntentSupported(aIntents);
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
isNavigationSupported: {
|
|
215
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
216
|
-
const { aIntents } = oServiceParams.oMessageData.body;
|
|
217
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
218
|
-
|
|
219
|
-
return Navigation.isNavigationSupported(aIntents);
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
backToPreviousApp: {
|
|
223
|
-
executeServiceCallFn: async () => {
|
|
224
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
225
|
-
Navigation.backToPreviousApp();
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
historyBack: {
|
|
229
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
230
|
-
const { iSteps } = oServiceParams.oMessageData.body;
|
|
231
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
232
|
-
|
|
233
|
-
Navigation.historyBack(iSteps);
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
getAppStateData: {
|
|
237
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
238
|
-
// note: sAppStateKey may be an array of argument arrays
|
|
239
|
-
const { sAppStateKey: vAppStateKey } = oServiceParams.oMessageData.body;
|
|
240
|
-
|
|
241
|
-
return navigationCompatibility.getAppStateData(vAppStateKey);
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
toExternal: {
|
|
245
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
246
|
-
const { oArgs } = oServiceParams.oMessageData.body;
|
|
247
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
248
|
-
|
|
249
|
-
const oArgsClone = deepExtend({}, oArgs);
|
|
250
|
-
ushellUtils.storeSapSystemToLocalStorage(oArgsClone);
|
|
251
|
-
|
|
252
|
-
return Navigation.navigate(oArgsClone);
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
registerBeforeAppCloseEvent: {
|
|
256
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
257
|
-
const oParams = oServiceParams.oMessageData.body;
|
|
258
|
-
oServiceParams.oContainer.setProperty(
|
|
259
|
-
"beforeAppCloseEvent",
|
|
260
|
-
{
|
|
261
|
-
enabled: true,
|
|
262
|
-
params: oParams
|
|
263
|
-
},
|
|
264
|
-
true
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
expandCompactHash: {
|
|
269
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
270
|
-
const { sHashFragment } = oServiceParams.oMessageData.body;
|
|
271
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
272
|
-
|
|
273
|
-
const oDeferred = NavTargetResolutionInternal.expandCompactHash(sHashFragment);
|
|
274
|
-
return ushellUtils.promisify(oDeferred);
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
getDistinctSemanticObjects: {
|
|
278
|
-
executeServiceCallFn: async () => {
|
|
279
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
280
|
-
|
|
281
|
-
return Navigation.getSemanticObjects();
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
getLinks: {
|
|
285
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
286
|
-
const vParams = oServiceParams.oMessageData.body;
|
|
287
|
-
|
|
288
|
-
return navigationCompatibility.getLinks(vParams);
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
getPrimaryIntent: {
|
|
292
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
293
|
-
const { sSemanticObject, mParameters } = oServiceParams.oMessageData.body;
|
|
294
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
295
|
-
|
|
296
|
-
return Navigation.getPrimaryIntent(sSemanticObject, mParameters);
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
hrefForAppSpecificHash: {
|
|
300
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
301
|
-
const { sAppHash } = oServiceParams.oMessageData.body;
|
|
302
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
303
|
-
|
|
304
|
-
return Navigation.getHref(sAppHash);
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
isInitialNavigation: {
|
|
308
|
-
executeServiceCallFn: async () => {
|
|
309
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
310
|
-
return Navigation.isInitialNavigation();
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
getAppState: {
|
|
314
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
315
|
-
const { sAppStateKey } = oServiceParams.oMessageData.body;
|
|
316
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
317
|
-
|
|
318
|
-
const oAppState = await Navigation.getAppState(oDummyComponent, sAppStateKey);
|
|
319
|
-
delete oAppState._oServiceInstance;
|
|
320
|
-
|
|
321
|
-
return oAppState;
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
setInnerAppRoute: {
|
|
325
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
326
|
-
const { appSpecificRoute, writeHistory } = oServiceParams.oMessageData.body;
|
|
327
|
-
|
|
328
|
-
const oHash = UrlParsing.parseShellHash(hasher.getHash());
|
|
329
|
-
|
|
330
|
-
//do nothing if new is exactly like the current one
|
|
331
|
-
if (oHash.appSpecificRoute === appSpecificRoute) {
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
oHash.appSpecificRoute = appSpecificRoute;
|
|
335
|
-
const sNewHash = `#${UrlParsing.constructShellHash(oHash)}`;
|
|
336
|
-
hasher.disableBlueBoxHashChangeTrigger = true;
|
|
337
|
-
if (writeHistory === true || writeHistory === "true") {
|
|
338
|
-
hasher.setHash(sNewHash);
|
|
339
|
-
} else {
|
|
340
|
-
hasher.replaceHash(sNewHash);
|
|
341
|
-
}
|
|
342
|
-
hasher.disableBlueBoxHashChangeTrigger = false;
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
setInnerAppStateData: {
|
|
346
|
-
executeServiceCallFn: (oServiceParams) => {
|
|
347
|
-
return PostMessageAPI.prototype._createNewInnerAppState(oServiceParams);
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
resolveIntent: {
|
|
351
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
352
|
-
const { sHashFragment } = oServiceParams.oMessageData.body;
|
|
353
|
-
const Navigation = await Container.getServiceAsync("Navigation");
|
|
354
|
-
|
|
355
|
-
return Navigation.resolveIntent(sHashFragment);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
"sap.ushell.ui5service.ShellUIService": {
|
|
361
|
-
oServiceCalls: {
|
|
362
|
-
setTitle: {
|
|
363
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
364
|
-
const { sTitle, oAdditionalInformation } = oServiceParams.oMessageData.body;
|
|
365
|
-
const ShellUIService = oServiceParams.oContainer.getShellUIService();
|
|
366
|
-
|
|
367
|
-
ShellUIService.setTitle(sTitle, oAdditionalInformation);
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
setBackNavigation: {
|
|
371
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
372
|
-
const ShellUIService = oServiceParams.oContainer.getShellUIService();
|
|
373
|
-
|
|
374
|
-
let fnCallback;
|
|
375
|
-
if (oServiceParams?.oMessageData?.body?.callbackMessage?.service) {
|
|
376
|
-
fnCallback = PostMessageAPI.prototype._backButtonPressedCallback.bind(
|
|
377
|
-
null,
|
|
378
|
-
oServiceParams.oMessage.source,
|
|
379
|
-
oServiceParams.oMessageData.body.callbackMessage.service,
|
|
380
|
-
oServiceParams.oMessage.origin
|
|
381
|
-
);
|
|
382
|
-
} // empty body or callback message will call the setBackNavigation with undefined, this should reset the back button callback
|
|
383
|
-
|
|
384
|
-
ShellUIService.setBackNavigation(fnCallback);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
"sap.ushell.services.ShellUIService": {
|
|
390
|
-
oServiceCalls: {
|
|
391
|
-
setTitle: {
|
|
392
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
393
|
-
const { sTitle, oAdditionalInformation } = oServiceParams.oMessageData.body;
|
|
394
|
-
const ShellUIService = oServiceParams.oContainer.getShellUIService();
|
|
395
|
-
|
|
396
|
-
ShellUIService.setTitle(sTitle, oAdditionalInformation);
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
setHierarchy: {
|
|
400
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
401
|
-
const { aHierarchyLevels } = oServiceParams.oMessageData.body;
|
|
402
|
-
const ShellUIService = oServiceParams.oContainer.getShellUIService();
|
|
403
|
-
|
|
404
|
-
ShellUIService.setHierarchy(aHierarchyLevels);
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
setRelatedApps: {
|
|
408
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
409
|
-
const { aRelatedApps } = oServiceParams.oMessageData.body;
|
|
410
|
-
const ShellUIService = oServiceParams.oContainer.getShellUIService();
|
|
411
|
-
|
|
412
|
-
ShellUIService.setRelatedApps(aRelatedApps);
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
setDirtyFlag: {
|
|
416
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
417
|
-
const { bIsDirty } = oServiceParams.oMessageData.body;
|
|
418
|
-
|
|
419
|
-
Container.setDirtyFlag(bIsDirty);
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
showShellUIBlocker: {
|
|
423
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
424
|
-
Log.error("'sap.ushell.services.ShellUIService.showShellUIBlocker' was discontinued. This call will be ignored.");
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
getFLPUrl: {
|
|
428
|
-
executeServiceCallFn: (oServiceParams) => {
|
|
429
|
-
const bIncludeHash = oServiceParams?.oMessageData?.body?.bIncludeHash;
|
|
430
|
-
|
|
431
|
-
return Container.getFLPUrlAsync(bIncludeHash);
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
getShellGroupIDs: {
|
|
435
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
436
|
-
/**
|
|
437
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
438
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
439
|
-
if (true) {
|
|
440
|
-
const { bGetAll } = oServiceParams.oMessageData.body || {};
|
|
441
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
442
|
-
|
|
443
|
-
return BookmarkV2.getShellGroupIDs(bGetAll);
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
throw new Error("Bookmark.getShellGroupIDs is deprecated. Please use BookmarkV2.getContentNodes instead.");
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
addBookmark: {
|
|
450
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
451
|
-
/**
|
|
452
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
453
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
454
|
-
if (true) {
|
|
455
|
-
const { oParameters, groupId } = oServiceParams.oMessageData.body;
|
|
456
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
457
|
-
|
|
458
|
-
return BookmarkV2.addBookmarkByGroupId(oParameters, groupId);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
throw new Error("Bookmark.addBookmarkByGroupId is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
addBookmarkDialog: {
|
|
465
|
-
executeServiceCallFn: async () => {
|
|
466
|
-
const [AddBookmarkButton] = await ushellUtils.requireAsync(["sap/ushell/ui/footerbar/AddBookmarkButton"]);
|
|
467
|
-
const dialogButton = new AddBookmarkButton();
|
|
468
|
-
dialogButton.firePress({});
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
getShellGroupTiles: {
|
|
472
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
473
|
-
/**
|
|
474
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
475
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
476
|
-
if (true) {
|
|
477
|
-
const { groupId } = oServiceParams.oMessageData.body;
|
|
478
|
-
const FlpLaunchPage = await Container.getServiceAsync("FlpLaunchPage");
|
|
479
|
-
|
|
480
|
-
const oDeferred = FlpLaunchPage.getTilesByGroupId(groupId);
|
|
481
|
-
return ushellUtils.promisify(oDeferred);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
throw new Error("Classic homepage is deprecated.");
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
sendUrlAsEmail: {
|
|
488
|
-
executeServiceCallFn: async () => {
|
|
489
|
-
const sAppName = ShellModel.getModel().getProperty("/application/title");
|
|
490
|
-
|
|
491
|
-
let sSubject;
|
|
492
|
-
if (sAppName === undefined) {
|
|
493
|
-
sSubject = resources.i18n.getText("linkToApplication");
|
|
494
|
-
} else {
|
|
495
|
-
sSubject = `${resources.i18n.getText("linkTo")} '${sAppName}'`;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
PostMessageAPI.prototype._sendEmail(
|
|
499
|
-
"",
|
|
500
|
-
sSubject,
|
|
501
|
-
document.URL,
|
|
502
|
-
"",
|
|
503
|
-
"",
|
|
504
|
-
document.URL,
|
|
505
|
-
true
|
|
506
|
-
);
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
|
-
sendEmailWithFLPButton: {
|
|
510
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
511
|
-
const { bSetAppStateToPublic } = oServiceParams.oMessageData.body;
|
|
512
|
-
|
|
513
|
-
const sAppName = ShellModel.getModel().getProperty("/application/title");
|
|
514
|
-
let sSubject;
|
|
515
|
-
if (sAppName === undefined) {
|
|
516
|
-
sSubject = resources.i18n.getText("linkToApplication");
|
|
517
|
-
} else {
|
|
518
|
-
sSubject = `${resources.i18n.getText("linkTo")} '${sAppName}'`;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
PostMessageAPI.prototype._sendEmail(
|
|
522
|
-
"",
|
|
523
|
-
sSubject,
|
|
524
|
-
document.URL,
|
|
525
|
-
"",
|
|
526
|
-
"",
|
|
527
|
-
document.URL,
|
|
528
|
-
bSetAppStateToPublic
|
|
529
|
-
);
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
sendEmail: {
|
|
533
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
534
|
-
const { sTo, sSubject, sBody, sCc, sBcc, sIFrameURL, bSetAppStateToPublic } = oServiceParams.oMessageData.body;
|
|
535
|
-
|
|
536
|
-
PostMessageAPI.prototype._sendEmail(
|
|
537
|
-
sTo,
|
|
538
|
-
sSubject,
|
|
539
|
-
sBody,
|
|
540
|
-
sCc,
|
|
541
|
-
sBcc,
|
|
542
|
-
sIFrameURL,
|
|
543
|
-
bSetAppStateToPublic
|
|
544
|
-
);
|
|
545
|
-
}
|
|
546
|
-
},
|
|
547
|
-
processHotKey: {
|
|
548
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
549
|
-
const oParams = oServiceParams.oMessageData.body;
|
|
550
|
-
// IE doesn't support creating the KeyboardEvent object with a the "new" constructor, hence if this will fail, it will be created
|
|
551
|
-
// using the document object- https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent
|
|
552
|
-
// This KeyboardEvent has a constructor, so checking for its ecsitaance will not solve this, hence, only solution found is try-catch
|
|
553
|
-
let oEvent;
|
|
554
|
-
try {
|
|
555
|
-
oEvent = new KeyboardEvent("keydown", oParams);
|
|
556
|
-
} catch (err) {
|
|
557
|
-
const { altKey, ctrlKey, shiftKey, key, keyCode } = oParams;
|
|
558
|
-
const IEevent = document.createEvent("KeyboardEvent");
|
|
559
|
-
|
|
560
|
-
let sSpecialKeys = ""; // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent
|
|
561
|
-
if (altKey) {
|
|
562
|
-
sSpecialKeys += "Alt ";
|
|
563
|
-
}
|
|
564
|
-
if (ctrlKey) {
|
|
565
|
-
sSpecialKeys += "Control ";
|
|
566
|
-
}
|
|
567
|
-
if (shiftKey) {
|
|
568
|
-
sSpecialKeys += "Shift ";
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
IEevent.initKeyboardEvent("keydown", false, false, null, key, keyCode, sSpecialKeys, 0, false);
|
|
572
|
-
oEvent = IEevent;
|
|
573
|
-
}
|
|
574
|
-
document.dispatchEvent(oEvent);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
},
|
|
579
|
-
"sap.ushell.services.Container": {
|
|
580
|
-
oServiceCalls: {
|
|
581
|
-
setDirtyFlag: {
|
|
582
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
583
|
-
const { bIsDirty } = oServiceParams.oMessageData.body;
|
|
584
|
-
Container.setDirtyFlag(bIsDirty);
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
registerDirtyStateProvider: {
|
|
588
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
589
|
-
const { bRegister } = oServiceParams.oMessageData.body;
|
|
590
|
-
if (bRegister) {
|
|
591
|
-
PostMessageAPI.prototype.registerAsyncDirtyStateProvider(oServiceParams);
|
|
592
|
-
} else {
|
|
593
|
-
PostMessageAPI.prototype.deregisterAsyncDirtyStateProvider(oServiceParams);
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
},
|
|
597
|
-
getFLPUrl: {
|
|
598
|
-
executeServiceCallFn: (oServiceParams) => {
|
|
599
|
-
const bIncludeHash = oServiceParams?.oMessageData?.body?.bIncludeHash;
|
|
600
|
-
return Container.getFLPUrlAsync(bIncludeHash);
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
getFLPConfig: {
|
|
604
|
-
executeServiceCallFn: async () => {
|
|
605
|
-
return Container.getFLPConfig();
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
|
-
getFLPPlatform: {
|
|
609
|
-
executeServiceCallFn: () => {
|
|
610
|
-
return Container.getFLPPlatform();
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
attachLogoutEvent: {
|
|
614
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
615
|
-
Container.attachLogoutEvent(async function () {
|
|
616
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
617
|
-
|
|
618
|
-
return PostMessageUtils.postMessageToIframeApp(
|
|
619
|
-
oServiceParams.oContainer,
|
|
620
|
-
"sap.ushell.appRuntime",
|
|
621
|
-
"executeLogoutFunctions",
|
|
622
|
-
{},
|
|
623
|
-
true
|
|
624
|
-
);
|
|
625
|
-
}, true);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
"sap.ushell.services.AppState": {
|
|
631
|
-
oServiceCalls: {
|
|
632
|
-
getAppState: {
|
|
633
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
634
|
-
const { sKey } = oServiceParams.oMessageData.body;
|
|
635
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
636
|
-
|
|
637
|
-
const oDeferred = AppState.getAppState(sKey);
|
|
638
|
-
|
|
639
|
-
const oAppState = await ushellUtils.promisify(oDeferred);
|
|
640
|
-
delete oAppState._oServiceInstance;
|
|
641
|
-
return oAppState;
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
_saveAppState: {
|
|
645
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
646
|
-
const { sKey, sData, sAppName, sComponent, bTransient, iPersistencyMethod, oPersistencySettings } = oServiceParams.oMessageData.body;
|
|
647
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
648
|
-
|
|
649
|
-
const oDeferred = AppState._saveAppState(
|
|
650
|
-
sKey,
|
|
651
|
-
sData,
|
|
652
|
-
sAppName,
|
|
653
|
-
sComponent,
|
|
654
|
-
bTransient,
|
|
655
|
-
iPersistencyMethod,
|
|
656
|
-
oPersistencySettings
|
|
657
|
-
);
|
|
658
|
-
return ushellUtils.promisify(oDeferred);
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
_loadAppState: {
|
|
662
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
663
|
-
const { sKey } = oServiceParams.oMessageData.body;
|
|
664
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
665
|
-
|
|
666
|
-
const oDeferred = AppState._loadAppState(sKey);
|
|
667
|
-
return ushellUtils.promisify(oDeferred);
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
deleteAppState: {
|
|
671
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
672
|
-
const { sKey } = oServiceParams.oMessageData.body;
|
|
673
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
674
|
-
|
|
675
|
-
const oDeferred = AppState.deleteAppState(sKey);
|
|
676
|
-
return ushellUtils.promisify(oDeferred);
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
makeStatePersistent: {
|
|
680
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
681
|
-
const { sKey, iPersistencyMethod, oPersistencySettings } = oServiceParams.oMessageData.body;
|
|
682
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
683
|
-
|
|
684
|
-
const oDeferred = AppState.makeStatePersistent(sKey, iPersistencyMethod, oPersistencySettings);
|
|
685
|
-
return ushellUtils.promisify(oDeferred);
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
},
|
|
690
|
-
"sap.ushell.services.Bookmark": {
|
|
691
|
-
oServiceCalls: {
|
|
692
|
-
addBookmarkUI5: {
|
|
693
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
694
|
-
const { oParameters, vContainer } = oServiceParams.oMessageData.body;
|
|
695
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
696
|
-
|
|
697
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
698
|
-
PostMessageAPI.prototype._stripBookmarkServiceUrlForLocalContentProvider(oParameters, oSystemContext);
|
|
699
|
-
|
|
700
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
701
|
-
|
|
702
|
-
return BookmarkV2.addBookmark(oParameters, vContainer, oSystemContext.id);
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
|
-
// Bookmark@addBookmarkByGroupId is mapped to sap.ushell.services.Bookmark.addBookmark
|
|
706
|
-
// Bookmark@addBookmark is mapped to sap.ushell.services.Bookmark.addBookmarkUI5
|
|
707
|
-
addBookmark: {
|
|
708
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
709
|
-
/**
|
|
710
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
711
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
712
|
-
if (true) {
|
|
713
|
-
const { oParameters, groupId } = oServiceParams.oMessageData.body;
|
|
714
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
715
|
-
|
|
716
|
-
return BookmarkV2.addBookmarkByGroupId(oParameters, groupId);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
throw new Error("Bookmark.addBookmarkByGroupId is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
getShellGroupIDs: {
|
|
723
|
-
executeServiceCallFn: async () => {
|
|
724
|
-
/**
|
|
725
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
726
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
727
|
-
if (true) {
|
|
728
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
729
|
-
|
|
730
|
-
return BookmarkV2.getShellGroupIDs();
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
throw new Error("Bookmark.getShellGroupIDs is deprecated. Please use BookmarkV2.getContentNodes instead.");
|
|
734
|
-
}
|
|
735
|
-
},
|
|
736
|
-
addCatalogTileToGroup: {
|
|
737
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
738
|
-
Log.error("Bookmark.addCatalogTileToGroup is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
742
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
743
|
-
if (true) {
|
|
744
|
-
const { sCatalogTileId, sGroupId, oCatalogData } = oServiceParams.oMessageData.body;
|
|
745
|
-
const Bookmark = await Container.getServiceAsync("Bookmark");
|
|
746
|
-
|
|
747
|
-
const oDeferred = Bookmark.addCatalogTileToGroup(sCatalogTileId, sGroupId, oCatalogData);
|
|
748
|
-
return ushellUtils.promisify(oDeferred);
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
throw new Error("Bookmark.addCatalogTileToGroup is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
countBookmarks: {
|
|
755
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
756
|
-
const { sUrl } = oServiceParams.oMessageData.body;
|
|
757
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
758
|
-
|
|
759
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
760
|
-
|
|
761
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
762
|
-
|
|
763
|
-
return BookmarkV2.countBookmarks(sUrl, oSystemContext.id);
|
|
764
|
-
}
|
|
765
|
-
},
|
|
766
|
-
deleteBookmarks: {
|
|
767
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
768
|
-
const { sUrl } = oServiceParams.oMessageData.body;
|
|
769
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
770
|
-
|
|
771
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
772
|
-
|
|
773
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
774
|
-
|
|
775
|
-
return BookmarkV2.deleteBookmarks(sUrl, oSystemContext.id);
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
updateBookmarks: {
|
|
779
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
780
|
-
const { sUrl, oParameters } = oServiceParams.oMessageData.body;
|
|
781
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
782
|
-
|
|
783
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
784
|
-
|
|
785
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
786
|
-
|
|
787
|
-
return BookmarkV2.updateBookmarks(sUrl, oParameters, oSystemContext.id);
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
getContentNodes: {
|
|
791
|
-
executeServiceCallFn: async () => {
|
|
792
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
793
|
-
|
|
794
|
-
return BookmarkV2.getContentNodes();
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
addCustomBookmark: {
|
|
798
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
799
|
-
const { sVizType, oConfig, vContentNodes } = oServiceParams.oMessageData.body;
|
|
800
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
801
|
-
|
|
802
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
803
|
-
|
|
804
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
805
|
-
|
|
806
|
-
return BookmarkV2.addCustomBookmark(sVizType, oConfig, vContentNodes, oSystemContext.id);
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
countCustomBookmarks: {
|
|
810
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
811
|
-
const { oIdentifier } = oServiceParams.oMessageData.body;
|
|
812
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
813
|
-
|
|
814
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
815
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
816
|
-
|
|
817
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
818
|
-
|
|
819
|
-
return BookmarkV2.countCustomBookmarks(oIdentifier);
|
|
820
|
-
}
|
|
821
|
-
},
|
|
822
|
-
updateCustomBookmarks: {
|
|
823
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
824
|
-
const { oIdentifier, oConfig } = oServiceParams.oMessageData.body;
|
|
825
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
826
|
-
|
|
827
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
828
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
829
|
-
|
|
830
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
831
|
-
|
|
832
|
-
return BookmarkV2.updateCustomBookmarks(oIdentifier, oConfig);
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
deleteCustomBookmarks: {
|
|
836
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
837
|
-
const { oIdentifier } = oServiceParams.oMessageData.body;
|
|
838
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
839
|
-
|
|
840
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
841
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
842
|
-
|
|
843
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
844
|
-
|
|
845
|
-
return BookmarkV2.deleteCustomBookmarks(oIdentifier);
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
addBookmarkToPage: {
|
|
849
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
850
|
-
const { oParameters, sPageId } = oServiceParams.oMessageData.body;
|
|
851
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
852
|
-
|
|
853
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
854
|
-
|
|
855
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
856
|
-
|
|
857
|
-
return BookmarkV2.addBookmarkToPage(oParameters, sPageId, oSystemContext.id);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
"sap.ushell.services.BookmarkV2": {
|
|
863
|
-
oServiceCalls: {
|
|
864
|
-
addBookmarkUI5: {
|
|
865
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
866
|
-
const { oParameters, vContainer } = oServiceParams.oMessageData.body;
|
|
867
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
868
|
-
|
|
869
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
870
|
-
PostMessageAPI.prototype._stripBookmarkServiceUrlForLocalContentProvider(oParameters, oSystemContext);
|
|
871
|
-
|
|
872
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
873
|
-
|
|
874
|
-
return BookmarkV2.addBookmark(oParameters, vContainer, oSystemContext.id);
|
|
875
|
-
}
|
|
876
|
-
},
|
|
877
|
-
// BookmarkV2@addBookmarkByGroupId is mapped to sap.ushell.services.BookmarkV2.addBookmark
|
|
878
|
-
// BookmarkV2@addBookmark is mapped to sap.ushell.services.BookmarkV2.addBookmarkUI5
|
|
879
|
-
addBookmark: {
|
|
880
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
881
|
-
/**
|
|
882
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
883
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
884
|
-
if (true) {
|
|
885
|
-
const { oParameters, groupId } = oServiceParams.oMessageData.body;
|
|
886
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
887
|
-
|
|
888
|
-
return BookmarkV2.addBookmarkByGroupId(oParameters, groupId);
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
throw new Error("BookmarkV2.addBookmarkByGroupId is deprecated. Please use BookmarkV2.addBookmark instead.");
|
|
892
|
-
}
|
|
893
|
-
},
|
|
894
|
-
getShellGroupIDs: {
|
|
895
|
-
executeServiceCallFn: async () => {
|
|
896
|
-
/**
|
|
897
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
898
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
899
|
-
if (true) {
|
|
900
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
901
|
-
|
|
902
|
-
return BookmarkV2.getShellGroupIDs();
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
throw new Error("BookmarkV2.getShellGroupIDs is deprecated. Please use BookmarkV2.getContentNodes instead.");
|
|
906
|
-
}
|
|
907
|
-
},
|
|
908
|
-
countBookmarks: {
|
|
909
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
910
|
-
const { sUrl } = oServiceParams.oMessageData.body;
|
|
911
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
912
|
-
|
|
913
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
914
|
-
|
|
915
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
916
|
-
|
|
917
|
-
return BookmarkV2.countBookmarks(sUrl, oSystemContext.id);
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
deleteBookmarks: {
|
|
921
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
922
|
-
const { sUrl } = oServiceParams.oMessageData.body;
|
|
923
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
924
|
-
|
|
925
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
926
|
-
|
|
927
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
928
|
-
|
|
929
|
-
return BookmarkV2.deleteBookmarks(sUrl, oSystemContext.id);
|
|
930
|
-
}
|
|
931
|
-
},
|
|
932
|
-
updateBookmarks: {
|
|
933
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
934
|
-
const { sUrl, oParameters } = oServiceParams.oMessageData.body;
|
|
935
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
936
|
-
|
|
937
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
938
|
-
|
|
939
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
940
|
-
|
|
941
|
-
return BookmarkV2.updateBookmarks(sUrl, oParameters, oSystemContext.id);
|
|
942
|
-
}
|
|
943
|
-
},
|
|
944
|
-
getContentNodes: {
|
|
945
|
-
executeServiceCallFn: async () => {
|
|
946
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
947
|
-
|
|
948
|
-
return BookmarkV2.getContentNodes();
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
addCustomBookmark: {
|
|
952
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
953
|
-
const { sVizType, oConfig, vContentNodes } = oServiceParams.oMessageData.body;
|
|
954
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
955
|
-
|
|
956
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
957
|
-
|
|
958
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
959
|
-
|
|
960
|
-
return BookmarkV2.addCustomBookmark(sVizType, oConfig, vContentNodes, oSystemContext.id);
|
|
961
|
-
}
|
|
962
|
-
},
|
|
963
|
-
countCustomBookmarks: {
|
|
964
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
965
|
-
const { oIdentifier } = oServiceParams.oMessageData.body;
|
|
966
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
967
|
-
|
|
968
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
969
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
970
|
-
|
|
971
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
972
|
-
|
|
973
|
-
return BookmarkV2.countCustomBookmarks(oIdentifier);
|
|
974
|
-
}
|
|
975
|
-
},
|
|
976
|
-
updateCustomBookmarks: {
|
|
977
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
978
|
-
const { oIdentifier, oConfig } = oServiceParams.oMessageData.body;
|
|
979
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
980
|
-
|
|
981
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
982
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
983
|
-
|
|
984
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
985
|
-
|
|
986
|
-
return BookmarkV2.updateCustomBookmarks(oIdentifier, oConfig);
|
|
987
|
-
}
|
|
988
|
-
},
|
|
989
|
-
deleteCustomBookmarks: {
|
|
990
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
991
|
-
const { oIdentifier } = oServiceParams.oMessageData.body;
|
|
992
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
993
|
-
|
|
994
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
995
|
-
oIdentifier.contentProviderId = oSystemContext.id;
|
|
996
|
-
|
|
997
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
998
|
-
|
|
999
|
-
return BookmarkV2.deleteCustomBookmarks(oIdentifier);
|
|
1000
|
-
}
|
|
1001
|
-
},
|
|
1002
|
-
addBookmarkToPage: {
|
|
1003
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1004
|
-
const { oParameters, sPageId } = oServiceParams.oMessageData.body;
|
|
1005
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
1006
|
-
|
|
1007
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
1008
|
-
|
|
1009
|
-
const BookmarkV2 = await Container.getServiceAsync("BookmarkV2");
|
|
1010
|
-
|
|
1011
|
-
return BookmarkV2.addBookmarkToPage(oParameters, sPageId, oSystemContext.id);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
"sap.ushell.services.AppLifeCycle": {
|
|
1017
|
-
oServiceCalls: {
|
|
1018
|
-
reloadCurrentApp: {
|
|
1019
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1020
|
-
// should only be called for appruntime
|
|
1021
|
-
EventHub.emit("reloadCurrentApp", {
|
|
1022
|
-
// Omit sAppContainerId, otherwise the entire iframe will be reloaded
|
|
1023
|
-
sCurrentHash: hasher.getHash(),
|
|
1024
|
-
date: Date.now()
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
},
|
|
1028
|
-
getFullyQualifiedXhrUrl: {
|
|
1029
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1030
|
-
const { path } = oServiceParams.oMessageData.body;
|
|
1031
|
-
|
|
1032
|
-
if (path !== "" && path !== undefined && path !== null) {
|
|
1033
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
1034
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
1035
|
-
const sXhrUrl = oSystemContext.getFullyQualifiedXhrUrl(path);
|
|
1036
|
-
|
|
1037
|
-
let sHostName = "";
|
|
1038
|
-
let sProtocol = "";
|
|
1039
|
-
let sPort = "";
|
|
1040
|
-
const sFlpURL = Container.getFLPUrl(true);
|
|
1041
|
-
const oURI = new URI(sFlpURL);
|
|
1042
|
-
if (oURI.protocol() !== null && oURI.protocol() !== undefined && oURI.protocol() !== "") {
|
|
1043
|
-
sProtocol = `${oURI.protocol()}://`;
|
|
1044
|
-
}
|
|
1045
|
-
if (oURI.hostname() !== null && oURI.hostname() !== undefined && oURI.hostname() !== "") {
|
|
1046
|
-
sHostName = oURI.hostname();
|
|
1047
|
-
}
|
|
1048
|
-
if (oURI.port() !== null && oURI.port() !== undefined && oURI.port() !== "") {
|
|
1049
|
-
sPort = `:${oURI.port()}`;
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
const sResult = sProtocol + sHostName + sPort + sXhrUrl;
|
|
1053
|
-
return sResult;
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
},
|
|
1057
|
-
getSystemAlias: {
|
|
1058
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1059
|
-
const oAppTargetResolution = oServiceParams.oContainer.getCurrentAppTargetResolution();
|
|
1060
|
-
const sFullyQualifiedSystemAlias = oAppTargetResolution.systemAlias;
|
|
1061
|
-
const sContentProviderId = oAppTargetResolution.contentProviderId;
|
|
1062
|
-
return SystemAlias.getSystemAliasInProvider(sFullyQualifiedSystemAlias, sContentProviderId);
|
|
1063
|
-
}
|
|
1064
|
-
},
|
|
1065
|
-
setNewAppInfo: {
|
|
1066
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1067
|
-
const oParams = oServiceParams.oMessageData.body;
|
|
1068
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
1069
|
-
|
|
1070
|
-
AppLifeCycle.setAppInfo(oParams, true);
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
updateCurrentAppInfo: {
|
|
1074
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1075
|
-
const oParams = oServiceParams.oMessageData.body;
|
|
1076
|
-
const AppLifeCycle = await Container.getServiceAsync("AppLifeCycle");
|
|
1077
|
-
|
|
1078
|
-
AppLifeCycle.setAppInfo(oParams, false);
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
},
|
|
1083
|
-
"sap.ushell.services.AppConfiguration": {
|
|
1084
|
-
oServiceCalls: {
|
|
1085
|
-
setApplicationFullWidth: {
|
|
1086
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1087
|
-
const { bValue } = oServiceParams.oMessageData.body;
|
|
1088
|
-
AppConfiguration.setApplicationFullWidthInternal(bValue);
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
},
|
|
1093
|
-
"sap.ushell.appRuntime": {
|
|
1094
|
-
oRequestCalls: {
|
|
1095
|
-
innerAppRouteChange: {
|
|
1096
|
-
isActiveOnly: true,
|
|
1097
|
-
distributionType: ["all"]
|
|
1098
|
-
},
|
|
1099
|
-
keepAliveAppHide: {
|
|
1100
|
-
isActiveOnly: true,
|
|
1101
|
-
distributionType: ["all"]
|
|
1102
|
-
},
|
|
1103
|
-
keepAliveAppShow: {
|
|
1104
|
-
isActiveOnly: true,
|
|
1105
|
-
distributionType: ["all"]
|
|
1106
|
-
},
|
|
1107
|
-
hashChange: {
|
|
1108
|
-
isActiveOnly: true,
|
|
1109
|
-
distributionType: ["URL"]
|
|
1110
|
-
},
|
|
1111
|
-
setDirtyFlag: {
|
|
1112
|
-
isActiveOnly: true,
|
|
1113
|
-
distributionType: ["URL"]
|
|
1114
|
-
},
|
|
1115
|
-
getDirtyFlag: {
|
|
1116
|
-
isActiveOnly: true,
|
|
1117
|
-
distributionType: ["URL"]
|
|
1118
|
-
},
|
|
1119
|
-
themeChange: {
|
|
1120
|
-
isActiveOnly: false,
|
|
1121
|
-
distributionType: ["all"]
|
|
1122
|
-
},
|
|
1123
|
-
uiDensityChange: {
|
|
1124
|
-
isActiveOnly: false,
|
|
1125
|
-
distributionType: ["all"]
|
|
1126
|
-
}
|
|
1127
|
-
},
|
|
1128
|
-
oServiceCalls: {
|
|
1129
|
-
hashChange: {
|
|
1130
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1131
|
-
const { newHash, direction } = oServiceParams.oMessageData.body;
|
|
1132
|
-
//FIX for internal incident #1980317281 - In general, hash structure in FLP is splitted into 3 parts:
|
|
1133
|
-
//A - application identification & B - Application parameters & C - Internal application area
|
|
1134
|
-
// Now, when an IFrame changes its hash, it sends PostMessage up to the FLP. The FLP does 2 things: Change its URL
|
|
1135
|
-
// and send a PostMessage back to the IFrame. This fix instruct the Shell.Controller.js to block only
|
|
1136
|
-
// the message back to the IFrame.
|
|
1137
|
-
hasher.disableBlueBoxHashChangeTrigger = true;
|
|
1138
|
-
hasher.replaceHash(newHash);
|
|
1139
|
-
hasher.disableBlueBoxHashChangeTrigger = false;
|
|
1140
|
-
|
|
1141
|
-
//Getting the history direction, taken from the history object of UI5 (sent by the Iframe).
|
|
1142
|
-
//The direction value is used to update the direction property of the UI5 history object
|
|
1143
|
-
// that is running in the Iframe.
|
|
1144
|
-
if (direction) {
|
|
1145
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
1146
|
-
ShellNavigationInternal.hashChanger.fireEvent(
|
|
1147
|
-
"hashReplaced",
|
|
1148
|
-
{
|
|
1149
|
-
hash: ShellNavigationInternal.hashChanger.getHash(),
|
|
1150
|
-
direction: direction
|
|
1151
|
-
}
|
|
1152
|
-
);
|
|
1153
|
-
Log.debug(`PostMessageAPI.hashChange :: Informed by the Iframe, to change the History direction property in FLP to: ${direction}`);
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
return;
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
iframeIsValid: {
|
|
1160
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1161
|
-
oServiceParams.oContainer.setProperty("isIframeValidTime", { time: new Date().getTime() }, true);
|
|
1162
|
-
}
|
|
1163
|
-
},
|
|
1164
|
-
iframeIsBusy: {
|
|
1165
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1166
|
-
//deprecated since 1.118 and not used anymore
|
|
1167
|
-
}
|
|
1168
|
-
},
|
|
1169
|
-
isInvalidIframe: {
|
|
1170
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1171
|
-
const { bValue } = oServiceParams.oMessageData.body;
|
|
1172
|
-
oServiceParams.oContainer.setProperty("isInvalidIframe", bValue, true);
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
},
|
|
1177
|
-
"sap.ushell.services.UserInfo": {
|
|
1178
|
-
oServiceCalls: {
|
|
1179
|
-
getThemeList: {
|
|
1180
|
-
executeServiceCallFn: async () => {
|
|
1181
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
1182
|
-
|
|
1183
|
-
const oDeferred = UserInfo.getThemeList();
|
|
1184
|
-
|
|
1185
|
-
return ushellUtils.promisify(oDeferred);
|
|
1186
|
-
}
|
|
1187
|
-
},
|
|
1188
|
-
getShellUserInfo: {
|
|
1189
|
-
executeServiceCallFn: async () => {
|
|
1190
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
1191
|
-
|
|
1192
|
-
return UserInfo.getShellUserInfo();
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
getLanguageList: {
|
|
1196
|
-
executeServiceCallFn: async () => {
|
|
1197
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
1198
|
-
|
|
1199
|
-
const oDeferred = UserInfo.getLanguageList();
|
|
1200
|
-
|
|
1201
|
-
return ushellUtils.promisify(oDeferred);
|
|
1202
|
-
}
|
|
1203
|
-
},
|
|
1204
|
-
updateUserPreferences: {
|
|
1205
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1206
|
-
const { language } = oServiceParams.oMessageData.body;
|
|
1207
|
-
|
|
1208
|
-
if (language) {
|
|
1209
|
-
const oUser = Container.getUser();
|
|
1210
|
-
oUser.setLanguage(language);
|
|
1211
|
-
const UserInfo = await Container.getServiceAsync("UserInfo");
|
|
1212
|
-
|
|
1213
|
-
const oDeferred = UserInfo.updateUserPreferences();
|
|
1214
|
-
await ushellUtils.promisify(oDeferred);
|
|
1215
|
-
|
|
1216
|
-
oUser.resetChangedProperty("language");
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
openThemeManager: {
|
|
1221
|
-
executeServiceCallFn: async () => {
|
|
1222
|
-
EventHub.emit("openThemeManager", Date.now());
|
|
1223
|
-
}
|
|
1224
|
-
},
|
|
1225
|
-
getLocaleData: {
|
|
1226
|
-
executeServiceCallFn: async () => {
|
|
1227
|
-
const oLocaleData = {
|
|
1228
|
-
//date format
|
|
1229
|
-
calendarType: Formatting.getCalendarType(),
|
|
1230
|
-
dateFormatShort: Formatting.getDatePattern("short"),
|
|
1231
|
-
dateFormatMedium: Formatting.getDatePattern("medium"),
|
|
1232
|
-
//number format
|
|
1233
|
-
numberFormatGroup: Formatting.getNumberSymbol("group"),
|
|
1234
|
-
numberFormatDecimal: Formatting.getNumberSymbol("decimal"),
|
|
1235
|
-
//time format
|
|
1236
|
-
timeFormatShort: Formatting.getTimePattern("short"),
|
|
1237
|
-
timeFormatMedium: Formatting.getTimePattern("medium"),
|
|
1238
|
-
//calendar customizing
|
|
1239
|
-
calendarMapping: Formatting.getCustomIslamicCalendarData(),
|
|
1240
|
-
//timezone
|
|
1241
|
-
timeZone: Localization.getTimezone(),
|
|
1242
|
-
//currency formats
|
|
1243
|
-
currencyFormats: Formatting.getCustomCurrencies()
|
|
1244
|
-
};
|
|
1245
|
-
return oLocaleData;
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
},
|
|
1250
|
-
"sap.ushell.services.UserDefaultParameters": {
|
|
1251
|
-
oServiceCalls: {
|
|
1252
|
-
getValue: {
|
|
1253
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1254
|
-
const { sParameterName } = oServiceParams.oMessageData.body;
|
|
1255
|
-
const [AppLifeCycle, UserDefaultParameters] = await Promise.all([
|
|
1256
|
-
Container.getServiceAsync("AppLifeCycle"),
|
|
1257
|
-
Container.getServiceAsync("UserDefaultParameters")
|
|
1258
|
-
]);
|
|
1259
|
-
const oSystemContext = await AppLifeCycle.getCurrentApplication().getSystemContext();
|
|
1260
|
-
return UserDefaultParameters.getValue(sParameterName, oSystemContext);
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
},
|
|
1265
|
-
"sap.ushell.services.ShellNavigation": {
|
|
1266
|
-
oServiceCalls: {
|
|
1267
|
-
toExternal: {
|
|
1268
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1269
|
-
const { oArgs, bWriteHistory } = oServiceParams.oMessageData.body;
|
|
1270
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
1271
|
-
|
|
1272
|
-
ShellNavigationInternal.toExternal(oArgs, undefined, bWriteHistory);
|
|
1273
|
-
}
|
|
1274
|
-
},
|
|
1275
|
-
toAppHash: {
|
|
1276
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1277
|
-
const { sAppHash, bWriteHistory } = oServiceParams.oMessageData.body;
|
|
1278
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
1279
|
-
|
|
1280
|
-
ShellNavigationInternal.toAppHash(sAppHash, bWriteHistory);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
},
|
|
1285
|
-
"sap.ushell.services.ShellNavigationInternal": {
|
|
1286
|
-
oServiceCalls: {
|
|
1287
|
-
toExternal: {
|
|
1288
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1289
|
-
const { oArgs, bWriteHistory } = oServiceParams.oMessageData.body;
|
|
1290
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
1291
|
-
|
|
1292
|
-
ShellNavigationInternal.toExternal(oArgs, undefined, bWriteHistory);
|
|
1293
|
-
}
|
|
1294
|
-
},
|
|
1295
|
-
toAppHash: {
|
|
1296
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1297
|
-
const { sAppHash, bWriteHistory } = oServiceParams.oMessageData.body;
|
|
1298
|
-
const ShellNavigationInternal = await Container.getServiceAsync("ShellNavigationInternal");
|
|
1299
|
-
|
|
1300
|
-
ShellNavigationInternal.toAppHash(sAppHash, bWriteHistory);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
},
|
|
1305
|
-
"sap.ushell.services.NavTargetResolution": {
|
|
1306
|
-
oServiceCalls: {
|
|
1307
|
-
getDistinctSemanticObjects: {
|
|
1308
|
-
executeServiceCallFn: async () => {
|
|
1309
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1310
|
-
|
|
1311
|
-
const oDeferred = NavTargetResolutionInternal.getDistinctSemanticObjects();
|
|
1312
|
-
|
|
1313
|
-
return ushellUtils.promisify(oDeferred);
|
|
1314
|
-
}
|
|
1315
|
-
},
|
|
1316
|
-
expandCompactHash: {
|
|
1317
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1318
|
-
const { sHashFragment } = oServiceParams.oMessageData.body;
|
|
1319
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1320
|
-
|
|
1321
|
-
const oDeferred = NavTargetResolutionInternal.expandCompactHash(sHashFragment);
|
|
1322
|
-
|
|
1323
|
-
return ushellUtils.promisify(oDeferred);
|
|
1324
|
-
}
|
|
1325
|
-
},
|
|
1326
|
-
resolveHashFragment: {
|
|
1327
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1328
|
-
const { sHashFragment } = oServiceParams.oMessageData.body;
|
|
1329
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1330
|
-
|
|
1331
|
-
const oDeferred = NavTargetResolutionInternal.resolveHashFragment(sHashFragment);
|
|
1332
|
-
|
|
1333
|
-
return ushellUtils.promisify(oDeferred);
|
|
1334
|
-
}
|
|
1335
|
-
},
|
|
1336
|
-
isIntentSupported: {
|
|
1337
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1338
|
-
const { aIntents } = oServiceParams.oMessageData.body;
|
|
1339
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1340
|
-
|
|
1341
|
-
// isIntentSupported: [intent1, intent2, ...] => { intent1: result1, intent2: result2, ... }
|
|
1342
|
-
// isNavigationSupported: [intent1, intent2, ...] => [result1, result2, ...]
|
|
1343
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
1344
|
-
const aResults = await ushellUtils.promisify(oDeferred);
|
|
1345
|
-
|
|
1346
|
-
return aResults.reduce((oResult, oIntentSupported, iIndex) => {
|
|
1347
|
-
const sIntent = aIntents[iIndex];
|
|
1348
|
-
oResult[sIntent] = oIntentSupported;
|
|
1349
|
-
return oResult;
|
|
1350
|
-
}, {});
|
|
1351
|
-
}
|
|
1352
|
-
},
|
|
1353
|
-
isNavigationSupported: {
|
|
1354
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1355
|
-
const { aIntents } = oServiceParams.oMessageData.body;
|
|
1356
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1357
|
-
|
|
1358
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
1359
|
-
|
|
1360
|
-
return ushellUtils.promisify(oDeferred);
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
},
|
|
1365
|
-
"sap.ushell.services.NavTargetResolutionInternal": {
|
|
1366
|
-
oServiceCalls: {
|
|
1367
|
-
getDistinctSemanticObjects: {
|
|
1368
|
-
executeServiceCallFn: async () => {
|
|
1369
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1370
|
-
|
|
1371
|
-
const oDeferred = NavTargetResolutionInternal.getDistinctSemanticObjects();
|
|
1372
|
-
|
|
1373
|
-
return ushellUtils.promisify(oDeferred);
|
|
1374
|
-
}
|
|
1375
|
-
},
|
|
1376
|
-
expandCompactHash: {
|
|
1377
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1378
|
-
const { sHashFragment } = oServiceParams.oMessageData.body;
|
|
1379
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1380
|
-
|
|
1381
|
-
const oDeferred = NavTargetResolutionInternal.expandCompactHash(sHashFragment);
|
|
1382
|
-
|
|
1383
|
-
return ushellUtils.promisify(oDeferred);
|
|
1384
|
-
}
|
|
1385
|
-
},
|
|
1386
|
-
resolveHashFragment: {
|
|
1387
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1388
|
-
const { sHashFragment } = oServiceParams.oMessageData.body;
|
|
1389
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1390
|
-
|
|
1391
|
-
const oDeferred = NavTargetResolutionInternal.resolveHashFragment(sHashFragment);
|
|
1392
|
-
|
|
1393
|
-
return ushellUtils.promisify(oDeferred);
|
|
1394
|
-
}
|
|
1395
|
-
},
|
|
1396
|
-
isIntentSupported: {
|
|
1397
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1398
|
-
const { aIntents } = oServiceParams.oMessageData.body;
|
|
1399
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1400
|
-
|
|
1401
|
-
// isIntentSupported: [intent1, intent2, ...] => { intent1: result1, intent2: result2, ... }
|
|
1402
|
-
// isNavigationSupported: [intent1, intent2, ...] => [result1, result2, ...]
|
|
1403
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
1404
|
-
const aResults = await ushellUtils.promisify(oDeferred);
|
|
1405
|
-
|
|
1406
|
-
return aResults.reduce((oResult, oIntentSupported, iIndex) => {
|
|
1407
|
-
const sIntent = aIntents[iIndex];
|
|
1408
|
-
oResult[sIntent] = oIntentSupported;
|
|
1409
|
-
return oResult;
|
|
1410
|
-
}, {});
|
|
1411
|
-
}
|
|
1412
|
-
},
|
|
1413
|
-
isNavigationSupported: {
|
|
1414
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1415
|
-
const { aIntents } = oServiceParams.oMessageData.body;
|
|
1416
|
-
const NavTargetResolutionInternal = await Container.getServiceAsync("NavTargetResolutionInternal");
|
|
1417
|
-
|
|
1418
|
-
const oDeferred = NavTargetResolutionInternal.isNavigationSupported(aIntents);
|
|
1419
|
-
|
|
1420
|
-
return ushellUtils.promisify(oDeferred);
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
"sap.ushell.services.Renderer": {
|
|
1426
|
-
oServiceCalls: {
|
|
1427
|
-
addHeaderItem: {
|
|
1428
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1429
|
-
const { sId, sTooltip, sIcon, iFloatingNumber, bVisible, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1430
|
-
const FrameBoundExtension = await Container.getServiceAsync("FrameBoundExtension");
|
|
1431
|
-
|
|
1432
|
-
const oItem = await FrameBoundExtension.createHeaderItem({
|
|
1433
|
-
id: sId,
|
|
1434
|
-
tooltip: sTooltip,
|
|
1435
|
-
icon: sIcon,
|
|
1436
|
-
floatingNumber: iFloatingNumber,
|
|
1437
|
-
press: async function () {
|
|
1438
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
1439
|
-
|
|
1440
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
1441
|
-
oServiceParams.oContainer,
|
|
1442
|
-
"sap.ushell.appRuntime",
|
|
1443
|
-
"buttonClick",
|
|
1444
|
-
{ buttonId: sId }
|
|
1445
|
-
);
|
|
1446
|
-
}
|
|
1447
|
-
}, {
|
|
1448
|
-
position: "begin"
|
|
1449
|
-
});
|
|
1450
|
-
|
|
1451
|
-
storeItem(sId, oItem);
|
|
1452
|
-
applyItemVisibility(oItem, bVisible, bCurrentState, aStates);
|
|
1453
|
-
}
|
|
1454
|
-
},
|
|
1455
|
-
|
|
1456
|
-
addHeaderEndItem: {
|
|
1457
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1458
|
-
const { sId, sTooltip, sIcon, iFloatingNumber, bVisible, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1459
|
-
const FrameBoundExtension = await Container.getServiceAsync("FrameBoundExtension");
|
|
1460
|
-
|
|
1461
|
-
const oItem = await FrameBoundExtension.createHeaderItem({
|
|
1462
|
-
id: sId,
|
|
1463
|
-
tooltip: sTooltip,
|
|
1464
|
-
icon: sIcon,
|
|
1465
|
-
floatingNumber: iFloatingNumber,
|
|
1466
|
-
press: async function () {
|
|
1467
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
1468
|
-
|
|
1469
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
1470
|
-
oServiceParams.oContainer,
|
|
1471
|
-
"sap.ushell.appRuntime",
|
|
1472
|
-
"buttonClick",
|
|
1473
|
-
{ buttonId: sId }
|
|
1474
|
-
);
|
|
1475
|
-
}
|
|
1476
|
-
}, {
|
|
1477
|
-
position: "end"
|
|
1478
|
-
});
|
|
1479
|
-
|
|
1480
|
-
storeItem(sId, oItem);
|
|
1481
|
-
applyItemVisibility(oItem, bVisible, bCurrentState, aStates);
|
|
1482
|
-
}
|
|
1483
|
-
},
|
|
1484
|
-
|
|
1485
|
-
showHeaderItem: {
|
|
1486
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1487
|
-
const { aIds: vIds, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1488
|
-
|
|
1489
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1490
|
-
|
|
1491
|
-
visitItems(aIds, (oItem) => {
|
|
1492
|
-
applyItemVisibility(oItem, true, bCurrentState, aStates);
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
},
|
|
1496
|
-
showHeaderEndItem: {
|
|
1497
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1498
|
-
const { aIds: vIds, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1499
|
-
|
|
1500
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1501
|
-
|
|
1502
|
-
visitItems(aIds, (oItem) => {
|
|
1503
|
-
applyItemVisibility(oItem, true, bCurrentState, aStates);
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
hideHeaderItem: {
|
|
1508
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1509
|
-
const { aIds: vIds, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1510
|
-
|
|
1511
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1512
|
-
|
|
1513
|
-
visitItems(aIds, (oItem) => {
|
|
1514
|
-
applyItemVisibility(oItem, false, bCurrentState, aStates);
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
},
|
|
1518
|
-
hideHeaderEndItem: {
|
|
1519
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1520
|
-
const { aIds: vIds, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1521
|
-
|
|
1522
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1523
|
-
|
|
1524
|
-
visitItems(aIds, (oItem) => {
|
|
1525
|
-
applyItemVisibility(oItem, false, bCurrentState, aStates);
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
setHeaderTitle: { // secondTitle
|
|
1530
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1531
|
-
const { sTitle } = oServiceParams.oMessageData.body;
|
|
1532
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1533
|
-
|
|
1534
|
-
Extension.setSecondTitle(sTitle);
|
|
1535
|
-
}
|
|
1536
|
-
},
|
|
1537
|
-
setHeaderVisibility: {
|
|
1538
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1539
|
-
const { bVisible, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1540
|
-
const oRenderer = Container.getRendererInternal("fiori2");
|
|
1541
|
-
|
|
1542
|
-
oRenderer.setHeaderVisibility(bVisible, !!bCurrentState, aStates);
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
|
-
createShellHeadItem: {
|
|
1546
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1547
|
-
const { params } = oServiceParams.oMessageData.body;
|
|
1548
|
-
params.press = async function () {
|
|
1549
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
1550
|
-
|
|
1551
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
1552
|
-
oServiceParams.oContainer,
|
|
1553
|
-
"sap.ushell.appRuntime",
|
|
1554
|
-
"buttonClick",
|
|
1555
|
-
{ buttonId: params.id }
|
|
1556
|
-
);
|
|
1557
|
-
};
|
|
1558
|
-
// eslint-disable-next-line no-new
|
|
1559
|
-
new ShellHeadItem(params);
|
|
1560
|
-
}
|
|
1561
|
-
},
|
|
1562
|
-
showActionButton: {
|
|
1563
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1564
|
-
const { aIds: vIds, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1565
|
-
|
|
1566
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1567
|
-
|
|
1568
|
-
visitItems(aIds, (oItem) => {
|
|
1569
|
-
applyItemVisibility(oItem, true, bCurrentState, aStates);
|
|
1570
|
-
});
|
|
1571
|
-
}
|
|
1572
|
-
},
|
|
1573
|
-
hideActionButton: {
|
|
1574
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1575
|
-
const { aIds: vIds, bCurrentState, aStates } = oServiceParams.oMessageData.body;
|
|
1576
|
-
|
|
1577
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1578
|
-
|
|
1579
|
-
visitItems(aIds, (oItem) => {
|
|
1580
|
-
applyItemVisibility(oItem, true, bCurrentState, aStates);
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
},
|
|
1584
|
-
addUserAction: {
|
|
1585
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1586
|
-
const { controlType, oControlProperties, bIsVisible, bCurrentState, aStates } = oServiceParams.oMessageData.body.oParameters;
|
|
1587
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1588
|
-
|
|
1589
|
-
oControlProperties.press = async function () {
|
|
1590
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
1591
|
-
|
|
1592
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
1593
|
-
oServiceParams.oContainer,
|
|
1594
|
-
"sap.ushell.appRuntime",
|
|
1595
|
-
"buttonClick",
|
|
1596
|
-
{ buttonId: oControlProperties.id }
|
|
1597
|
-
);
|
|
1598
|
-
};
|
|
1599
|
-
|
|
1600
|
-
const oItem = await Extension.createUserAction(oControlProperties, {
|
|
1601
|
-
controlType
|
|
1602
|
-
});
|
|
1603
|
-
|
|
1604
|
-
storeItem(oControlProperties.id, oItem);
|
|
1605
|
-
applyItemVisibility(oItem, bIsVisible, bCurrentState, aStates);
|
|
1606
|
-
}
|
|
1607
|
-
},
|
|
1608
|
-
addOptionsActionSheetButton: {
|
|
1609
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1610
|
-
const vButtons = oServiceParams.oMessageData.body;
|
|
1611
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1612
|
-
|
|
1613
|
-
const aButtons = Array.isArray(vButtons) ? vButtons : [vButtons];
|
|
1614
|
-
|
|
1615
|
-
aButtons.forEach(async (oButton) => {
|
|
1616
|
-
destroyControl(oButton.id);
|
|
1617
|
-
|
|
1618
|
-
// eslint-disable-next-line no-new
|
|
1619
|
-
new Button({
|
|
1620
|
-
id: oButton.id,
|
|
1621
|
-
text: oButton.text,
|
|
1622
|
-
icon: oButton.icon,
|
|
1623
|
-
tooltip: oButton.tooltip,
|
|
1624
|
-
press: async function () {
|
|
1625
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
1626
|
-
|
|
1627
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
1628
|
-
oServiceParams.oContainer,
|
|
1629
|
-
"sap.ushell.appRuntime",
|
|
1630
|
-
"buttonClick",
|
|
1631
|
-
{ buttonId: oButton.id }
|
|
1632
|
-
);
|
|
1633
|
-
}
|
|
1634
|
-
});
|
|
1635
|
-
|
|
1636
|
-
const oItem = await Extension.createUserAction({
|
|
1637
|
-
id: oButton.id
|
|
1638
|
-
});
|
|
1639
|
-
|
|
1640
|
-
storeItem(oButton.id, oItem);
|
|
1641
|
-
applyItemVisibility(oItem, true, true, oButton.aStates);
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
},
|
|
1645
|
-
removeOptionsActionSheetButton: {
|
|
1646
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1647
|
-
const vButtons = oServiceParams.oMessageData.body;
|
|
1648
|
-
|
|
1649
|
-
const aButtons = Array.isArray(vButtons) ? vButtons : [vButtons];
|
|
1650
|
-
|
|
1651
|
-
aButtons.forEach((oButton) => {
|
|
1652
|
-
const oItem = getItem(oButton.id);
|
|
1653
|
-
if (oItem) {
|
|
1654
|
-
applyItemVisibility(oItem, true, true, oButton.aStates);
|
|
1655
|
-
|
|
1656
|
-
return destroyControl(oButton.id);
|
|
1657
|
-
}
|
|
1658
|
-
Log.warning(`User action with id ${oButton.id} not found`);
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
},
|
|
1662
|
-
updateHeaderItem: {
|
|
1663
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1664
|
-
const { sId, oControlProperties } = oServiceParams.oMessageData.body;
|
|
1665
|
-
|
|
1666
|
-
// we only support update of floatingNumber
|
|
1667
|
-
if (!Object.hasOwn(oControlProperties, "floatingNumber")) {
|
|
1668
|
-
return;
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
const oItem = getItem(sId);
|
|
1672
|
-
|
|
1673
|
-
if (oItem?.getControl) {
|
|
1674
|
-
const oControl = await oItem.getControl();
|
|
1675
|
-
oControl?.setFloatingNumber?.(oControlProperties.floatingNumber);
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
},
|
|
1679
|
-
destroyButton: {
|
|
1680
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1681
|
-
const { aIds: vIds } = oServiceParams.oMessageData.body;
|
|
1682
|
-
|
|
1683
|
-
const aIds = Array.isArray(vIds) ? vIds : [vIds];
|
|
1684
|
-
|
|
1685
|
-
aIds.forEach((sId) => {
|
|
1686
|
-
destroyControl(sId);
|
|
1687
|
-
});
|
|
1688
|
-
}
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
},
|
|
1692
|
-
"sap.ushell.services.Extension": {
|
|
1693
|
-
oServiceCalls: {
|
|
1694
|
-
createHeaderItem: {
|
|
1695
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1696
|
-
const { controlProperties, events, parameters } = oServiceParams.oMessageData.body;
|
|
1697
|
-
const sItemId = generateItemId();
|
|
1698
|
-
|
|
1699
|
-
events.forEach((sEventName) => {
|
|
1700
|
-
controlProperties[sEventName] = async function () {
|
|
1701
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
1702
|
-
|
|
1703
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
1704
|
-
oServiceParams.oContainer,
|
|
1705
|
-
"sap.ushell.services.Extension",
|
|
1706
|
-
"handleControlEvent", {
|
|
1707
|
-
eventName: sEventName,
|
|
1708
|
-
itemId: sItemId
|
|
1709
|
-
}
|
|
1710
|
-
);
|
|
1711
|
-
};
|
|
1712
|
-
});
|
|
1713
|
-
|
|
1714
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1715
|
-
const oItem = await Extension.createHeaderItem(controlProperties, parameters);
|
|
1716
|
-
storeItem(sItemId, oItem);
|
|
1717
|
-
|
|
1718
|
-
return {
|
|
1719
|
-
itemId: sItemId
|
|
1720
|
-
};
|
|
1721
|
-
}
|
|
1722
|
-
},
|
|
1723
|
-
createUserAction: {
|
|
1724
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1725
|
-
const { controlProperties, events, parameters } = oServiceParams.oMessageData.body;
|
|
1726
|
-
const sItemId = generateItemId();
|
|
1727
|
-
|
|
1728
|
-
events.forEach((sEventName) => {
|
|
1729
|
-
controlProperties[sEventName] = async function () {
|
|
1730
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
1731
|
-
|
|
1732
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
1733
|
-
oServiceParams.oContainer,
|
|
1734
|
-
"sap.ushell.services.Extension",
|
|
1735
|
-
"handleControlEvent",
|
|
1736
|
-
{
|
|
1737
|
-
eventName: sEventName,
|
|
1738
|
-
itemId: sItemId
|
|
1739
|
-
}
|
|
1740
|
-
);
|
|
1741
|
-
};
|
|
1742
|
-
});
|
|
1743
|
-
|
|
1744
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1745
|
-
const oItem = await Extension.createUserAction(controlProperties, parameters);
|
|
1746
|
-
storeItem(sItemId, oItem);
|
|
1747
|
-
|
|
1748
|
-
return {
|
|
1749
|
-
itemId: sItemId
|
|
1750
|
-
};
|
|
1751
|
-
}
|
|
1752
|
-
},
|
|
1753
|
-
"Item.destroy": {
|
|
1754
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1755
|
-
const { itemId } = oServiceParams.oMessageData.body;
|
|
1756
|
-
|
|
1757
|
-
const oItem = getItem(itemId);
|
|
1758
|
-
if (oItem?.destroy) {
|
|
1759
|
-
oItem.destroy();
|
|
1760
|
-
removeItem(itemId);
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
},
|
|
1764
|
-
"Item.showForCurrentApp": {
|
|
1765
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1766
|
-
const { itemId } = oServiceParams.oMessageData.body;
|
|
1767
|
-
|
|
1768
|
-
const oItem = getItem(itemId);
|
|
1769
|
-
if (oItem?.showForCurrentApp) {
|
|
1770
|
-
oItem.showForCurrentApp();
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
},
|
|
1774
|
-
"Item.hideForCurrentApp": {
|
|
1775
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1776
|
-
const { itemId } = oServiceParams.oMessageData.body;
|
|
1777
|
-
|
|
1778
|
-
const oItem = getItem(itemId);
|
|
1779
|
-
if (oItem?.hideForCurrentApp) {
|
|
1780
|
-
oItem.hideForCurrentApp();
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
},
|
|
1784
|
-
"Item.showForAllApps": {
|
|
1785
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1786
|
-
const { itemId } = oServiceParams.oMessageData.body;
|
|
1787
|
-
|
|
1788
|
-
const oItem = getItem(itemId);
|
|
1789
|
-
if (oItem?.showForAllApps) {
|
|
1790
|
-
oItem.showForAllApps();
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
},
|
|
1794
|
-
"Item.hideForAllApps": {
|
|
1795
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1796
|
-
const { itemId } = oServiceParams.oMessageData.body;
|
|
1797
|
-
|
|
1798
|
-
const oItem = getItem(itemId);
|
|
1799
|
-
if (oItem?.hideForAllApps) {
|
|
1800
|
-
oItem.hideForAllApps();
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
},
|
|
1804
|
-
"Item.showOnHome": {
|
|
1805
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1806
|
-
const { itemId } = oServiceParams.oMessageData.body;
|
|
1807
|
-
|
|
1808
|
-
const oItem = getItem(itemId);
|
|
1809
|
-
if (oItem?.showOnHome) {
|
|
1810
|
-
oItem.showOnHome();
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
},
|
|
1814
|
-
"Item.hideOnHome": {
|
|
1815
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1816
|
-
const { itemId } = oServiceParams.oMessageData.body;
|
|
1817
|
-
|
|
1818
|
-
const oItem = getItem(itemId);
|
|
1819
|
-
if (oItem?.hideOnHome) {
|
|
1820
|
-
oItem.hideOnHome();
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1823
|
-
},
|
|
1824
|
-
setSecondTitle: {
|
|
1825
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1826
|
-
const { title } = oServiceParams.oMessageData.body;
|
|
1827
|
-
const Extension = await Container.getServiceAsync("Extension");
|
|
1828
|
-
|
|
1829
|
-
return Extension.setSecondTitle(title);
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
},
|
|
1834
|
-
"sap.ushell.services.LaunchPage": {
|
|
1835
|
-
oServiceCalls: {
|
|
1836
|
-
getGroupsForBookmarks: {
|
|
1837
|
-
executeServiceCallFn: async () => {
|
|
1838
|
-
/**
|
|
1839
|
-
* @deprecated since 1.120 Classic homepage is deprecated.
|
|
1840
|
-
*/ // eslint-disable-next-line no-constant-condition
|
|
1841
|
-
if (true) {
|
|
1842
|
-
const FlpLaunchPage = await Container.getServiceAsync("FlpLaunchPage");
|
|
1843
|
-
|
|
1844
|
-
const oDeferred = FlpLaunchPage.getGroupsForBookmarks();
|
|
1845
|
-
|
|
1846
|
-
return ushellUtils.promisify(oDeferred);
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
throw new Error("LaunchPage.getGroupsForBookmarks is deprecated. Please use BookmarkV2.getContentNodes instead.");
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
},
|
|
1854
|
-
"sap.ushell.services.Menu": {
|
|
1855
|
-
oServiceCalls: {
|
|
1856
|
-
getSpacesPagesHierarchy: {
|
|
1857
|
-
executeServiceCallFn: async () => {
|
|
1858
|
-
const Menu = await Container.getServiceAsync("Menu");
|
|
1859
|
-
|
|
1860
|
-
const aContentNodes = Menu.getContentNodes([ContentNodeType.Space, ContentNodeType.Page]);
|
|
1861
|
-
|
|
1862
|
-
return aContentNodes.map(({ id: spaceId, label: spaceLabel, children }) => {
|
|
1863
|
-
return {
|
|
1864
|
-
id: spaceId,
|
|
1865
|
-
title: spaceLabel,
|
|
1866
|
-
pages: (children || []).map(({ id: pageId, label: pageLabel }) => {
|
|
1867
|
-
return {
|
|
1868
|
-
id: pageId,
|
|
1869
|
-
title: pageLabel
|
|
1870
|
-
};
|
|
1871
|
-
})
|
|
1872
|
-
};
|
|
1873
|
-
});
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
},
|
|
1878
|
-
"sap.ushell.services.CommonDataModel": {
|
|
1879
|
-
oServiceCalls: {
|
|
1880
|
-
getAllPages: {
|
|
1881
|
-
executeServiceCallFn: async () => {
|
|
1882
|
-
const CommonDataModel = await Container.getServiceAsync("CommonDataModel");
|
|
1883
|
-
|
|
1884
|
-
return CommonDataModel.getAllPages();
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
},
|
|
1889
|
-
"sap.ushell.services.UITracer": {
|
|
1890
|
-
oServiceCalls: {
|
|
1891
|
-
trace: {
|
|
1892
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1893
|
-
const { trace } = oServiceParams.oMessageData.body;
|
|
1894
|
-
await Container.getServiceAsync("UITracer");
|
|
1895
|
-
|
|
1896
|
-
EventHub.emit("UITracer.trace", trace);
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
},
|
|
1901
|
-
"sap.ushell.services.MessageBroker": {
|
|
1902
|
-
oServiceCalls: {
|
|
1903
|
-
_execute: {
|
|
1904
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1905
|
-
if (Config.last("/core/shell/enableMessageBroker")) {
|
|
1906
|
-
await Container.getServiceAsync("MessageBroker");
|
|
1907
|
-
const [MessageBrokerEngine] = await ushellUtils.requireAsync(["sap/ushell/services/MessageBroker/MessageBrokerEngine"]);
|
|
1908
|
-
|
|
1909
|
-
return MessageBrokerEngine.processPostMessage(oServiceParams);
|
|
1910
|
-
}
|
|
1911
|
-
return {};
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
}
|
|
1915
|
-
},
|
|
1916
|
-
"sap.ushell.services.SearchableContent": {
|
|
1917
|
-
oServiceCalls: {
|
|
1918
|
-
getApps: {
|
|
1919
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1920
|
-
const oOptions = oServiceParams?.oMessageData?.body?.oOptions || {};
|
|
1921
|
-
const SearchableContent = await Container.getServiceAsync("SearchableContent");
|
|
1922
|
-
|
|
1923
|
-
return SearchableContent.getApps(oOptions);
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
},
|
|
1928
|
-
"sap.ushell.services.ReferenceResolver": {
|
|
1929
|
-
oServiceCalls: {
|
|
1930
|
-
resolveReferences: {
|
|
1931
|
-
executeServiceCallFn: async (oServiceParams) => {
|
|
1932
|
-
const { aReferences } = oServiceParams.oMessageData.body;
|
|
1933
|
-
const ReferenceResolver = await Container.getServiceAsync("ReferenceResolver");
|
|
1934
|
-
|
|
1935
|
-
return ReferenceResolver.resolveReferences(aReferences);
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
|
-
|
|
1942
|
-
/**
|
|
1943
|
-
* @private
|
|
1944
|
-
*/
|
|
1945
|
-
function PostMessageAPI () {
|
|
1946
|
-
/**
|
|
1947
|
-
* @private
|
|
1948
|
-
*/
|
|
1949
|
-
this._getBrowserURL = function () {
|
|
1950
|
-
return document.URL;
|
|
1951
|
-
};
|
|
1952
|
-
|
|
1953
|
-
//check that all APIs start with "sap.ushell". FLP will not
|
|
1954
|
-
// start successfully if this is not the case
|
|
1955
|
-
Object.keys(oAPIs).forEach((sKey) => {
|
|
1956
|
-
if (sKey.indexOf(SAP_API_PREFIX) !== 0) {
|
|
1957
|
-
throw new Error(`All Post Message APIs must start with '${SAP_API_PREFIX}' - ${sKey}`);
|
|
1958
|
-
}
|
|
1959
|
-
});
|
|
1960
|
-
|
|
1961
|
-
PostMessageAPIInterface.init(
|
|
1962
|
-
true,
|
|
1963
|
-
PostMessageAPI.prototype.registerShellCommunicationHandler.bind(this)
|
|
1964
|
-
);
|
|
17
|
+
if (Config.last("/core/navigation/enableAppLifeCycleFallback")) {
|
|
18
|
+
return PostMessageAPIFallback;
|
|
1965
19
|
}
|
|
1966
20
|
|
|
1967
|
-
|
|
1968
|
-
* @private
|
|
1969
|
-
*/
|
|
1970
|
-
PostMessageAPI.prototype.getAPIs = function () {
|
|
1971
|
-
return oAPIs;
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
|
-
/**
|
|
1975
|
-
* @private
|
|
1976
|
-
*/
|
|
1977
|
-
function addShellCommunicationHandler (sKey, oCommunicationEntry) {
|
|
1978
|
-
//only one entry is possible in oCommunicationHandler because we got here from registerShellCommunicationHandler!
|
|
1979
|
-
const oCommObject = oAPIs[sKey];
|
|
1980
|
-
|
|
1981
|
-
//We have the entry just update it
|
|
1982
|
-
if (oCommObject) {
|
|
1983
|
-
//add the communication handler to that entry
|
|
1984
|
-
if (oCommunicationEntry.oServiceCalls) {
|
|
1985
|
-
Object.keys(oCommunicationEntry.oServiceCalls).forEach((key) => {
|
|
1986
|
-
oCommObject.oServiceCalls[key] = oCommunicationEntry.oServiceCalls[key];
|
|
1987
|
-
});
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
if (!oCommObject.oRequestCalls) {
|
|
1991
|
-
oCommObject.oRequestCalls = {};
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
if (oCommunicationEntry.oRequestCalls) {
|
|
1995
|
-
Object.keys(oCommunicationEntry.oRequestCalls).forEach((key) => {
|
|
1996
|
-
oCommObject.oRequestCalls[key] = oCommunicationEntry.oRequestCalls[key];
|
|
1997
|
-
});
|
|
1998
|
-
}
|
|
1999
|
-
return;
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
//create a new entry..
|
|
2003
|
-
const oNewCommEntry = {
|
|
2004
|
-
oRequestCalls: {},
|
|
2005
|
-
oServiceCalls: {}
|
|
2006
|
-
};
|
|
2007
|
-
|
|
2008
|
-
if (oCommunicationEntry.oServiceCalls) {
|
|
2009
|
-
Object.keys(oCommunicationEntry.oServiceCalls).forEach((key) => {
|
|
2010
|
-
oNewCommEntry.oServiceCalls[key] = oCommunicationEntry.oServiceCalls[key];
|
|
2011
|
-
});
|
|
2012
|
-
}
|
|
2013
|
-
|
|
2014
|
-
if (oCommunicationEntry.oRequestCalls) {
|
|
2015
|
-
Object.keys(oCommunicationEntry.oRequestCalls).forEach((key) => {
|
|
2016
|
-
oNewCommEntry.oRequestCalls[key] = oCommunicationEntry.oRequestCalls[key];
|
|
2017
|
-
});
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
oAPIs[sKey] = oNewCommEntry;
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
/**
|
|
2024
|
-
* @private
|
|
2025
|
-
*/
|
|
2026
|
-
PostMessageAPI.prototype._getPostMesageInterface = function (sServiceName, sInterface) {
|
|
2027
|
-
const oShellCommunicationHandlersObj = this.getAPIs();
|
|
2028
|
-
|
|
2029
|
-
if (oShellCommunicationHandlersObj[sServiceName]) {
|
|
2030
|
-
const oCommHandlerService = oShellCommunicationHandlersObj[sServiceName];
|
|
2031
|
-
if (oCommHandlerService?.oRequestCalls?.[sInterface]) {
|
|
2032
|
-
return oCommHandlerService.oRequestCalls[sInterface];
|
|
2033
|
-
}
|
|
2034
|
-
}
|
|
2035
|
-
};
|
|
2036
|
-
|
|
2037
|
-
/**
|
|
2038
|
-
* @private
|
|
2039
|
-
*/
|
|
2040
|
-
PostMessageAPI.prototype.registerShellCommunicationHandler = function (oCommunicationHandler) {
|
|
2041
|
-
Object.keys(oCommunicationHandler).forEach((sKey) => {
|
|
2042
|
-
addShellCommunicationHandler(sKey, oCommunicationHandler[sKey]);
|
|
2043
|
-
});
|
|
2044
|
-
};
|
|
2045
|
-
|
|
2046
|
-
/**
|
|
2047
|
-
* @private
|
|
2048
|
-
*/
|
|
2049
|
-
PostMessageAPI.prototype.isActiveOnly = function (sServiceName, sInterface) {
|
|
2050
|
-
const oCommandInterface = this._getPostMesageInterface(sServiceName, sInterface);
|
|
2051
|
-
|
|
2052
|
-
if (oCommandInterface) {
|
|
2053
|
-
return oCommandInterface.isActiveOnly;
|
|
2054
|
-
}
|
|
2055
|
-
};
|
|
2056
|
-
|
|
2057
|
-
/**
|
|
2058
|
-
* @private
|
|
2059
|
-
*/
|
|
2060
|
-
PostMessageAPI.prototype._createNewInnerAppState = async function (oServiceParams) {
|
|
2061
|
-
const { sData } = oServiceParams.oMessageData.body;
|
|
2062
|
-
let oValue;
|
|
2063
|
-
|
|
2064
|
-
if (sData !== undefined) {
|
|
2065
|
-
try {
|
|
2066
|
-
oValue = JSON.parse(sData);
|
|
2067
|
-
} catch (e) {
|
|
2068
|
-
oValue = sData;
|
|
2069
|
-
}
|
|
2070
|
-
} else {
|
|
2071
|
-
oValue = "";
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
const AppState = await Container.getServiceAsync("AppState");
|
|
2075
|
-
const oNewAppState = AppState.createEmptyAppState();
|
|
2076
|
-
|
|
2077
|
-
oNewAppState.setData(oValue);
|
|
2078
|
-
oNewAppState.save();
|
|
2079
|
-
const sNewAppStateKey = oNewAppState.getKey();
|
|
2080
|
-
|
|
2081
|
-
let sHash = hasher.getHash();
|
|
2082
|
-
if (sHash.indexOf("&/") > 0) {
|
|
2083
|
-
if (sHash.indexOf("sap-iapp-state=") > 0) {
|
|
2084
|
-
const sCurrAppStateKey = /(?:sap-iapp-state=)([^&/]+)/.exec(sHash)[1];
|
|
2085
|
-
sHash = sHash.replace(sCurrAppStateKey, sNewAppStateKey);
|
|
2086
|
-
} else {
|
|
2087
|
-
sHash = `${sHash}/sap-iapp-state=${sNewAppStateKey}`;
|
|
2088
|
-
}
|
|
2089
|
-
} else {
|
|
2090
|
-
sHash = `${sHash}&/sap-iapp-state=${sNewAppStateKey}`;
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
hasher.disableBlueBoxHashChangeTrigger = true;
|
|
2094
|
-
hasher.replaceHash(sHash);
|
|
2095
|
-
hasher.disableBlueBoxHashChangeTrigger = false;
|
|
2096
|
-
|
|
2097
|
-
return sNewAppStateKey;
|
|
2098
|
-
};
|
|
2099
|
-
|
|
2100
|
-
/**
|
|
2101
|
-
* Destroys a control by its ID.
|
|
2102
|
-
* Does nothing if the control does not exist.
|
|
2103
|
-
* @param {string} sControlId The ID of the control.
|
|
2104
|
-
*
|
|
2105
|
-
* @since 1.125.0
|
|
2106
|
-
* @private
|
|
2107
|
-
*/
|
|
2108
|
-
function destroyControl (sControlId) {
|
|
2109
|
-
const oControl = Element.getElementById(sControlId);
|
|
2110
|
-
if (oControl?.destroy) {
|
|
2111
|
-
oControl.destroy();
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
/**
|
|
2116
|
-
* Applies the visibility of an item according to the fiori2 renderer logic.
|
|
2117
|
-
* @param {sap.ushell.services.Extension.Item|sap.ushell.services.FrameBoundExtension.Item} oItem The extension item.
|
|
2118
|
-
* @param {boolean} bVisible The visibility for the item.
|
|
2119
|
-
* @param {boolean} bCurrentState Wether the visibility applies to the current state.
|
|
2120
|
-
* @param {sap.ushell.renderer.Renderer.LaunchpadState[]} aStates The desired launchpad states.
|
|
2121
|
-
*
|
|
2122
|
-
* @since 1.125.0
|
|
2123
|
-
* @private
|
|
2124
|
-
*/
|
|
2125
|
-
function applyItemVisibility (oItem, bVisible, bCurrentState, aStates) {
|
|
2126
|
-
/* eslint-disable no-unused-expressions */
|
|
2127
|
-
if (bCurrentState) {
|
|
2128
|
-
bVisible ? oItem.showForCurrentApp() : oItem.hideForCurrentApp();
|
|
2129
|
-
} else {
|
|
2130
|
-
bVisible ? oItem.hideForCurrentApp() : oItem.showForCurrentApp();
|
|
2131
|
-
|
|
2132
|
-
// aStates is only evaluated if bCurrentState is false
|
|
2133
|
-
if (Array.isArray(aStates)) {
|
|
2134
|
-
if (aStates.includes("app")) {
|
|
2135
|
-
bVisible ? oItem.showForAllApps() : oItem.hideForAllApps();
|
|
2136
|
-
} else {
|
|
2137
|
-
bVisible ? oItem.hideForAllApps() : oItem.showForAllApps();
|
|
2138
|
-
}
|
|
2139
|
-
if (aStates.includes("home")) {
|
|
2140
|
-
bVisible ? oItem.showOnHome() : oItem.hideOnHome();
|
|
2141
|
-
} else {
|
|
2142
|
-
bVisible ? oItem.hideOnHome() : oItem.showOnHome();
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
/* eslint-enable no-unused-expressions */
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
const oItemMap = {};
|
|
2150
|
-
|
|
2151
|
-
/**
|
|
2152
|
-
* Generates a unique ID for an item.
|
|
2153
|
-
* @returns {string} A unique ID.
|
|
2154
|
-
*
|
|
2155
|
-
* @see sap.ushell.services.Extension.Item
|
|
2156
|
-
* @see sap.ushell.services.FrameBoundExtension.Item
|
|
2157
|
-
*
|
|
2158
|
-
* @since 1.124.0
|
|
2159
|
-
* @private
|
|
2160
|
-
*/
|
|
2161
|
-
function generateItemId () {
|
|
2162
|
-
const sItemId = fnGetUid();
|
|
2163
|
-
if (Object.hasOwn(oItemMap, sItemId)) {
|
|
2164
|
-
return generateItemId();
|
|
2165
|
-
}
|
|
2166
|
-
// reserve the item ID in the map to avoid duplicates
|
|
2167
|
-
oItemMap[sItemId] = null;
|
|
2168
|
-
return sItemId;
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
|
-
/**
|
|
2172
|
-
* Stores the Item object by its ID.
|
|
2173
|
-
* @param {*} sItemId The ID of the item.
|
|
2174
|
-
* @param {object} oItem The item object.
|
|
2175
|
-
*
|
|
2176
|
-
* @see sap.ushell.services.Extension.Item
|
|
2177
|
-
* @see sap.ushell.services.FrameBoundExtension.Item
|
|
2178
|
-
*
|
|
2179
|
-
* @since 1.124.0
|
|
2180
|
-
* @private
|
|
2181
|
-
*/
|
|
2182
|
-
function storeItem (sItemId, oItem) {
|
|
2183
|
-
oItemMap[sItemId] = oItem;
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
/**
|
|
2187
|
-
* Returns the Item object by its ID.
|
|
2188
|
-
* @param {string} sItemId The ID of the item.
|
|
2189
|
-
* @returns {object} The item object.
|
|
2190
|
-
*
|
|
2191
|
-
* @see sap.ushell.services.Extension.Item
|
|
2192
|
-
* @see sap.ushell.services.FrameBoundExtension.Item
|
|
2193
|
-
*
|
|
2194
|
-
* @since 1.124.0
|
|
2195
|
-
* @private
|
|
2196
|
-
*/
|
|
2197
|
-
function getItem (sItemId) {
|
|
2198
|
-
return oItemMap[sItemId];
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
/**
|
|
2202
|
-
* Removes the Item object by its ID.
|
|
2203
|
-
* @param {string} sItemId The ID of the item.
|
|
2204
|
-
*
|
|
2205
|
-
* @see sap.ushell.services.Extension.Item
|
|
2206
|
-
* @see sap.ushell.services.FrameBoundExtension.Item
|
|
2207
|
-
*
|
|
2208
|
-
* @since 1.124.0
|
|
2209
|
-
* @private
|
|
2210
|
-
*/
|
|
2211
|
-
function removeItem (sItemId) {
|
|
2212
|
-
delete oItemMap[sItemId];
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* Visits each item by its ID and calls a callback function.
|
|
2217
|
-
* Ignores items that are not found.
|
|
2218
|
-
* @param {string[]} aIds The ids of the items to visit
|
|
2219
|
-
* @param {function} fnCallback The callback function to call for each item
|
|
2220
|
-
*
|
|
2221
|
-
* @since 1.125.0
|
|
2222
|
-
* @private
|
|
2223
|
-
*/
|
|
2224
|
-
function visitItems (aIds, fnCallback) {
|
|
2225
|
-
aIds.forEach((sId) => {
|
|
2226
|
-
const oItem = getItem(sId);
|
|
2227
|
-
if (oItem) {
|
|
2228
|
-
fnCallback(oItem);
|
|
2229
|
-
} else {
|
|
2230
|
-
Log.warning(`Item with id ${sId} not found`);
|
|
2231
|
-
}
|
|
2232
|
-
});
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
/**
|
|
2236
|
-
* @private
|
|
2237
|
-
*/
|
|
2238
|
-
PostMessageAPI.prototype.registerAsyncDirtyStateProvider = function (oServiceParams) {
|
|
2239
|
-
Container.setAsyncDirtyStateProvider(async function (oNavigationContext) {
|
|
2240
|
-
const [PostMessageUtils] = await ushellUtils.requireAsync(["sap/ushell/components/applicationIntegration/application/PostMessageUtils"]);
|
|
2241
|
-
|
|
2242
|
-
//safety check in case post message does not get result
|
|
2243
|
-
const oNativeDeferred = new Deferred();
|
|
2244
|
-
const backupTimer = setTimeout(() => {
|
|
2245
|
-
oNativeDeferred.resolve(false);
|
|
2246
|
-
}, 2500);
|
|
2247
|
-
|
|
2248
|
-
PostMessageUtils.postMessageToIframeApp(
|
|
2249
|
-
oServiceParams.oContainer,
|
|
2250
|
-
"sap.ushell.appRuntime",
|
|
2251
|
-
"handleDirtyStateProvider",
|
|
2252
|
-
{ oNavigationContext: oNavigationContext },
|
|
2253
|
-
true
|
|
2254
|
-
).then((oResponse) => {
|
|
2255
|
-
if (backupTimer) {
|
|
2256
|
-
clearTimeout(backupTimer);
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
oNativeDeferred.resolve(oResponse?.body?.result || false);
|
|
2260
|
-
});
|
|
2261
|
-
|
|
2262
|
-
return oNativeDeferred.promise;
|
|
2263
|
-
});
|
|
2264
|
-
};
|
|
2265
|
-
|
|
2266
|
-
/**
|
|
2267
|
-
* @private
|
|
2268
|
-
*/
|
|
2269
|
-
PostMessageAPI.prototype.deregisterAsyncDirtyStateProvider = function () {
|
|
2270
|
-
Container.setAsyncDirtyStateProvider();
|
|
2271
|
-
};
|
|
2272
|
-
|
|
2273
|
-
/**
|
|
2274
|
-
* @private
|
|
2275
|
-
*/
|
|
2276
|
-
PostMessageAPI.prototype._sendEmail = async function (sTo = "", sSubject = "", sBody = "", sCc = "", sBcc = "", sIFrameURL, bSetAppStateToPublic) {
|
|
2277
|
-
let sFLPUrl = (this._getBrowserURL && this._getBrowserURL()) || document.URL;
|
|
2278
|
-
|
|
2279
|
-
function replaceIframeUrlToFLPUrl (sIFrameURL1, sFLPUrl1, sXStateKey, sIStateKey, sXStateKeyNew, sIStateKeyNew) {
|
|
2280
|
-
//replace iframe url with flp url
|
|
2281
|
-
sSubject = sSubject.includes(sIFrameURL1) ? sSubject.replace(sIFrameURL1, sFLPUrl1) : sSubject;
|
|
2282
|
-
sBody = sBody.includes(sIFrameURL1) ? sBody.replace(sIFrameURL1, sFLPUrl1) : sBody;
|
|
2283
|
-
|
|
2284
|
-
//for cases where we do not find iframe url, replace the app state keys
|
|
2285
|
-
if (sXStateKey && sXStateKeyNew) {
|
|
2286
|
-
sSubject = sSubject.includes(sXStateKey) ? sSubject.replaceAll(sXStateKey, sXStateKeyNew) : sSubject;
|
|
2287
|
-
sBody = sBody.includes(sXStateKey) ? sBody.replaceAll(sXStateKey, sXStateKeyNew) : sBody;
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
if (sIStateKey && sIStateKeyNew) {
|
|
2291
|
-
sSubject = sSubject.includes(sIStateKey) ? sSubject.replaceAll(sIStateKey, sIStateKeyNew) : sSubject;
|
|
2292
|
-
sBody = sBody.includes(sIStateKey) ? sBody.replaceAll(sIStateKey, sIStateKeyNew) : sBody;
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
if (bSetAppStateToPublic) {
|
|
2298
|
-
const oAppStateService = await Container.getServiceAsync("AppState");
|
|
2299
|
-
oAppStateService.setAppStateToPublic(sIFrameURL).then((sNewURL, sXStateKey, sIStateKey, sXStateKeyNew = "", sIStateKeyNew = "") => {
|
|
2300
|
-
if (sXStateKeyNew) {
|
|
2301
|
-
sFLPUrl = sFLPUrl.replace(sXStateKey, sXStateKeyNew);
|
|
2302
|
-
}
|
|
2303
|
-
if (sIStateKeyNew) {
|
|
2304
|
-
sFLPUrl = sFLPUrl.replace(sIStateKey, sIStateKeyNew);
|
|
2305
|
-
}
|
|
2306
|
-
//check if the subject or the body of the email contain the IFrame URL
|
|
2307
|
-
replaceIframeUrlToFLPUrl(sIFrameURL, sFLPUrl, sXStateKey, sIStateKey, sXStateKeyNew, sIStateKeyNew);
|
|
2308
|
-
URLHelper.triggerEmail(sTo, sSubject, sBody, sCc, sBcc);
|
|
2309
|
-
}, Log.error);
|
|
2310
|
-
} else {
|
|
2311
|
-
//check if the subject or the body of the email contain the IFrame URL
|
|
2312
|
-
replaceIframeUrlToFLPUrl(sIFrameURL, sFLPUrl);
|
|
2313
|
-
URLHelper.triggerEmail(sTo, sSubject, sBody, sCc, sBcc);
|
|
2314
|
-
}
|
|
2315
|
-
};
|
|
2316
|
-
|
|
2317
|
-
/**
|
|
2318
|
-
* Helper function for removing the service URL of dynamic bookmark tiles
|
|
2319
|
-
* if the bookmark is created from a local service provider
|
|
2320
|
-
* <p>
|
|
2321
|
-
* This is a short-term mitigation for customer incident 57472/2021.
|
|
2322
|
-
* The service URLs for dynamic tiles created as bookmark for apps created
|
|
2323
|
-
* locally on CF (either manually or deployed to the local HTML5 repo) cannot
|
|
2324
|
-
* be correctly constructed, because the path prefix cannot be resolved.
|
|
2325
|
-
* As intermediate workaround, we remove the service URL to avoid the display
|
|
2326
|
-
* of the ERROR state.
|
|
2327
|
-
*
|
|
2328
|
-
* @private
|
|
2329
|
-
* @param {object} oParameters parameters for bookmark creation
|
|
2330
|
-
* @param {object} oSystemContext the system context for bookmark creation
|
|
2331
|
-
*/
|
|
2332
|
-
PostMessageAPI.prototype._stripBookmarkServiceUrlForLocalContentProvider = function (oParameters, oSystemContext) {
|
|
2333
|
-
if (!oParameters || !oParameters.serviceUrl || !oSystemContext) {
|
|
2334
|
-
return;
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
if (oSystemContext.id === "" || oSystemContext.id === "saas_approuter") {
|
|
2338
|
-
oParameters.serviceUrl = undefined;
|
|
2339
|
-
|
|
2340
|
-
Log.warning("Dynamic data bookmarks tiles are not supported for local content providers",
|
|
2341
|
-
null, "sap/ushell/components/applicationIntegration/application/PostMessageAPI");
|
|
2342
|
-
}
|
|
2343
|
-
};
|
|
2344
|
-
|
|
2345
|
-
/**
|
|
2346
|
-
* Callback for the back button registered via
|
|
2347
|
-
* <code>sap.ushell.ui5service.ShellUIService#setBackNavigation</code>
|
|
2348
|
-
*
|
|
2349
|
-
* Sends a postMessage request to the source window for triggering the
|
|
2350
|
-
* back navigation in the application.
|
|
2351
|
-
*
|
|
2352
|
-
* @param {object} oSourceWindow
|
|
2353
|
-
* the source window object
|
|
2354
|
-
* @param {string} sServiceName
|
|
2355
|
-
* the service name returned from the previous setBackNavigation
|
|
2356
|
-
* postMessage request
|
|
2357
|
-
* @param {string} sOrigin
|
|
2358
|
-
* a string identifying the origin where the message is sent from
|
|
2359
|
-
*/
|
|
2360
|
-
PostMessageAPI.prototype._backButtonPressedCallback = function (oSourceWindow, sServiceName, sOrigin) {
|
|
2361
|
-
const sRequestData = JSON.stringify({
|
|
2362
|
-
type: "request",
|
|
2363
|
-
service: sServiceName,
|
|
2364
|
-
request_id: fnGetUid(),
|
|
2365
|
-
body: {}
|
|
2366
|
-
});
|
|
2367
|
-
|
|
2368
|
-
Log.debug(
|
|
2369
|
-
`Sending post message request to origin ' ${sOrigin}': ${sRequestData}`,
|
|
2370
|
-
null,
|
|
2371
|
-
"sap.ushell.components.container.ApplicationContainer"
|
|
2372
|
-
);
|
|
2373
|
-
|
|
2374
|
-
oSourceWindow.postMessage(sRequestData, sOrigin);
|
|
2375
|
-
};
|
|
2376
|
-
|
|
2377
|
-
return new PostMessageAPI();
|
|
21
|
+
throw new Error("This module 'sap/ushell/components/applicationIntegration/application/PostMessageAPI' should not be used when the fallback is disabled");
|
|
2378
22
|
});
|