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