@sapui5/sap.ushell 1.118.0 → 1.119.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -5
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/ApplicationType.js +1 -1
- package/src/main/js/sap/ushell/CanvasShapesManager.js +13 -7
- package/src/main/js/sap/ushell/Config.js +1 -1
- package/src/main/js/sap/ushell/Container.js +255 -185
- package/src/main/js/sap/ushell/EventHub.js +1 -1
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +2 -2
- package/src/main/js/sap/ushell/Layout.js +3 -3
- package/src/main/js/sap/ushell/NWBCInterface.js +3 -3
- package/src/main/js/sap/ushell/TechnicalParameters.js +3 -3
- package/src/main/js/sap/ushell/UIActions.js +44 -44
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +4 -4
- package/src/main/js/sap/ushell/User.js +1 -1
- package/src/main/js/sap/ushell/UserActivityLog.js +8 -8
- package/src/main/js/sap/ushell/_ApplicationType/guiResolution.js +5 -5
- package/src/main/js/sap/ushell/_ApplicationType/systemAlias.js +1 -1
- package/src/main/js/sap/ushell/_ApplicationType/urlTemplateResolution.js +16 -11
- package/src/main/js/sap/ushell/_Config/utils.js +5 -5
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +14 -8
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +4 -5
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -2
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +12 -13
- package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +4 -3
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.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 +2 -2
- 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 +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +5 -2
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +4 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +3 -4
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +10 -11
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/utilsCdm.js +2 -2
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +0 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +3 -4
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +3 -2
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +2 -3
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -3
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +2 -3
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -2
- 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 +1 -2
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +5 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +5 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +31 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +2 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +7 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/FLPLoader.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +1 -0
- package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +7 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.load.script.js +4 -4
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +7 -7
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +214 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxSite.json +511 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +398 -0
- package/src/main/js/sap/ushell/components/CatalogsManager.js +26 -25
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +20 -15
- package/src/main/js/sap/ushell/components/DestroyHelper.js +2 -2
- package/src/main/js/sap/ushell/components/HomepageManager.js +6 -6
- package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +5 -5
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +19 -15
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +12 -12
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +18 -18
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +6 -6
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +4 -4
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +8 -6
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/WebGUIStatefulHandler.js +5 -5
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +21 -26
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +1 -1
- package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +6 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +44 -6
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +22 -9
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +23 -16
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTile.js +1 -2
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +5 -6
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerItem.js +1 -2
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +3 -3
- package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.controller.js +0 -1
- package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.view.xml +7 -6
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +2 -7
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +13 -13
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +10 -10
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/StateManager.js +2 -2
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +12 -12
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +93 -95
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/view/PageRuntime.view.xml +31 -23
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +7 -6
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -3
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +2 -2
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +74 -16
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchFieldFragment.fragment.xml +2 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -2
- 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 +1 -2
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +8 -9
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +53 -13
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +5 -0
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +41 -38
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +2 -2
- 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 +7 -3
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTileTmp.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTileTmp.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +41 -48
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +3 -3
- package/src/main/js/sap/ushell/components/tiles/utils.js +1 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +5 -18
- package/src/main/js/sap/ushell/components/visualizationOrganizer/VisualizationOrganizerPopover.fragment.xml +3 -3
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +65 -95
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +182 -90
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +0 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +53 -3
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +3 -0
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +1 -0
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +6 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +1 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +1 -2
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +4 -2
- package/src/main/js/sap/ushell/navigationMode.js +10 -5
- package/src/main/js/sap/ushell/override.js +1 -1
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +248 -187
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +206 -207
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +366 -230
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +39 -23
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +105 -25
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.controller.js +63 -52
- package/src/main/js/sap/ushell/renderers/fiori2/ShellLayout.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources.properties +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources_ko.properties +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +3 -3
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/services/AppState.js +2 -3
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +4 -5
- package/src/main/js/sap/ushell/services/Configuration.js +1 -2
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +2 -2
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +36 -33
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +2 -2
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +2 -2
- package/src/main/js/sap/ushell/services/LaunchPage.js +11 -8
- package/src/main/js/sap/ushell/services/Menu.js +31 -37
- package/src/main/js/sap/ushell/services/Message.js +1 -2
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -2
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +58 -9
- package/src/main/js/sap/ushell/services/Navigation.js +1356 -0
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +7 -5
- package/src/main/js/sap/ushell/services/Notifications.js +16 -16
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -2
- package/src/main/js/sap/ushell/services/PagePersistence.js +6 -6
- package/src/main/js/sap/ushell/services/PageReferencing.js +2 -2
- package/src/main/js/sap/ushell/services/Pages.js +24 -25
- package/src/main/js/sap/ushell/services/Personalization.js +5 -5
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -2
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +2 -2
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +2 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +85 -59
- package/src/main/js/sap/ushell/services/ShellNavigation.js +59 -17
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +115 -39
- package/src/main/js/sap/ushell/services/SmartNavigation.js +4 -4
- package/src/main/js/sap/ushell/services/SpaceContent.js +5 -6
- package/src/main/js/sap/ushell/services/SupportTicket.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +5 -3
- 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 +7 -7
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -2
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +91 -69
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +10 -6
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -3
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +2 -5
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +2 -2
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +11 -11
- 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 +6 -6
- 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 +1 -2
- package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +1 -1
- 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 +9 -14
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +34 -21
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +5 -2
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +18 -12
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +2 -2
- package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +3 -3
- package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_UserRecents/RecentActivity.js +206 -214
- package/src/main/js/sap/ushell/services/_UserRecents/RecentAppsUsage.js +46 -54
- package/src/main/js/sap/ushell/services/_UserRecents/RecentsList.js +39 -40
- package/src/main/js/sap/ushell/services/_UserRecents/UserRecentsBase.js +29 -36
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstance.js +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceAbap.js +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceCdm.js +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLaunchPage.js +10 -8
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +2 -2
- package/src/main/js/sap/ushell/services/appstate/LimitedBuffer.js +1 -2
- package/src/main/js/sap/ushell/services/appstate/Sequentializer.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/SearchCEP.less +8 -0
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +12 -6
- package/src/main/js/sap/ushell/themes/base/WorkPage.less +34 -4
- package/src/main/js/sap/ushell/themes/base/WorkPageCell.less +3 -1
- package/src/main/js/sap/ushell/themes/base/WorkPageColumn.less +3 -76
- package/src/main/js/sap/ushell/themes/base/WorkPageColumnResizer.less +2 -1
- package/src/main/js/sap/ushell/themes/base/WorkPageRow.less +822 -6
- package/src/main/js/sap/ushell/themes/sap_horizon/SearchCEP.less +4 -0
- package/src/main/js/sap/ushell/themes/sap_horizon/ToolAreaItem.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/SearchCEP.less +4 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ToolAreaItem.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/SearchCEP.less +5 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/SearchCEP.less +5 -0
- package/src/main/js/sap/ushell/ui/AppContainer.js +0 -1
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +1 -1
- package/src/main/js/sap/ushell/ui/QuickAccess.js +2 -2
- package/src/main/js/sap/ushell/ui/ShellHeader.js +21 -5
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +1 -0
- package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +0 -1
- package/src/main/js/sap/ushell/ui/bookmark/SaveOnPage.view.xml +6 -6
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AboutButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +32 -17
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +1 -12
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/ActionItem.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/FailedTileDialog.js +4 -4
- package/src/main/js/sap/ushell/ui/launchpad/GroupHeaderActions.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItem.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialog.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/PlusTile.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +3 -3
- package/src/main/js/sap/ushell/ui/launchpad/Tile.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +4 -5
- package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +7 -8
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -2
- package/src/main/js/sap/ushell/ui/tile/DynamicTile.js +0 -1
- package/src/main/js/sap/ushell/ui/tile/ImageTile.js +0 -1
- package/src/main/js/sap/ushell/ui/tile/StaticTile.js +0 -1
- package/src/main/js/sap/ushell/ui/tile/TileBase.js +0 -1
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +1 -1
- package/src/main/js/sap/ushell/utils/HttpClient.js +0 -1
- package/src/main/js/sap/ushell/utils/RestrictedJSONModel.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlParsing.js +18 -14
- package/src/main/js/sap/ushell/utils/UrlShortening.js +2 -2
- package/src/main/js/sap/ushell/utils/objectOperations.js +1 -1
- package/src/main/js/sap/ushell/utils/type.js +1 -1
- package/src/main/js/sap/ushell/utils/utilsCdm.js +3 -3
- package/src/main/js/sap/ushell/utils.js +128 -21
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +2 -2
- package/ui5.yaml +1 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Menu.js +0 -22
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* This file exposes an API to perform (invoke) Cross Application Navigation for applications.
|
|
6
6
|
* It exposes interfaces to perform a hash change and/or trigger an external navigation.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @deprecated since 1.120
|
|
9
|
+
* @version 1.119.2
|
|
9
10
|
*/
|
|
10
11
|
sap.ui.define([
|
|
11
12
|
"sap/ushell/services/AppConfiguration",
|
|
@@ -595,7 +596,7 @@ sap.ui.define([
|
|
|
595
596
|
return "";
|
|
596
597
|
}
|
|
597
598
|
|
|
598
|
-
return ShellNavigation.
|
|
599
|
+
return ShellNavigation.hrefForExternalSync(oArgsClone, undefined, oComponent);
|
|
599
600
|
};
|
|
600
601
|
|
|
601
602
|
/**
|
|
@@ -707,9 +708,9 @@ sap.ui.define([
|
|
|
707
708
|
}.bind(this))
|
|
708
709
|
.then(function (ShellNavigation) {
|
|
709
710
|
return new Promise(function (resolve, reject) {
|
|
710
|
-
ShellNavigation.hrefForExternal(oArgsClone, undefined, oComponent
|
|
711
|
-
.
|
|
712
|
-
.
|
|
711
|
+
ShellNavigation.hrefForExternal(oArgsClone, undefined, oComponent)
|
|
712
|
+
.then(resolve)
|
|
713
|
+
.catch(reject);
|
|
713
714
|
});
|
|
714
715
|
})
|
|
715
716
|
.catch(function () {
|
|
@@ -748,7 +749,7 @@ sap.ui.define([
|
|
|
748
749
|
* Please note that the behavior of this method is subject to change and therefore it may not yield to the expected results
|
|
749
750
|
* especially on mobile devices where "back" is the previous inner-app state if these are put into the history!
|
|
750
751
|
*
|
|
751
|
-
* @returns {Promise<
|
|
752
|
+
* @returns {Promise<undefined>} A promise which resolves once the back navigation was triggered
|
|
752
753
|
*
|
|
753
754
|
* @public
|
|
754
755
|
* @alias sap.ushell.services.CrossApplicationNavigation#backToPreviousApp
|
|
@@ -770,7 +771,7 @@ sap.ui.define([
|
|
|
770
771
|
* Navigates back in history the number of given steps if this is supported by the underlying platform.
|
|
771
772
|
* If no argument is provided it will navigate back 1 step.
|
|
772
773
|
*
|
|
773
|
-
* @param {
|
|
774
|
+
* @param {int} iSteps positive integer representing the steps to go back in the history
|
|
774
775
|
* @public
|
|
775
776
|
* @alias sap.ushell.services.CrossApplicationNavigation#historyBack
|
|
776
777
|
*/
|
|
@@ -956,7 +957,7 @@ sap.ui.define([
|
|
|
956
957
|
*
|
|
957
958
|
* @param {object} [oComponent] an optional UI5 component, used to logically attach a possibly generated app state.
|
|
958
959
|
*
|
|
959
|
-
* @returns {Promise<
|
|
960
|
+
* @returns {Promise<undefined>} A <code>Promise</code> which resolves once the navigation was triggered. The <code>Promise</code> might never reject or resolve
|
|
960
961
|
* when an error occurs during the navigation.
|
|
961
962
|
*
|
|
962
963
|
* @since 1.15.0
|
|
@@ -1780,36 +1781,38 @@ sap.ui.define([
|
|
|
1780
1781
|
* It does not validate whether a URL is valid in general.
|
|
1781
1782
|
*
|
|
1782
1783
|
* @param {string} sUrl URL to test
|
|
1783
|
-
* @returns {
|
|
1784
|
-
* is supported and rejected if not. The promise does not return parameters.
|
|
1784
|
+
* @returns {Promise} A Promise which is resolved if the URL is supported and rejected if not. The promise does not return parameters.
|
|
1785
1785
|
* @since 1.30.0
|
|
1786
1786
|
* @private
|
|
1787
1787
|
*/
|
|
1788
1788
|
this.isUrlSupported = function (sUrl) {
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
return oDeferred.promise();
|
|
1794
|
-
}
|
|
1789
|
+
return new Promise((resolve, reject) => {
|
|
1790
|
+
if (typeof sUrl !== "string") {
|
|
1791
|
+
reject();
|
|
1792
|
+
}
|
|
1795
1793
|
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
oDeferred.resolve();
|
|
1802
|
-
} else {
|
|
1803
|
-
oDeferred.reject();
|
|
1794
|
+
if (UrlParsing.isIntentUrl(sUrl)) {
|
|
1795
|
+
const sHash = UrlParsing.getHash(sUrl);
|
|
1796
|
+
const oTarget = {
|
|
1797
|
+
target: {
|
|
1798
|
+
shellHash: sHash
|
|
1804
1799
|
}
|
|
1805
|
-
}
|
|
1806
|
-
.
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1800
|
+
};
|
|
1801
|
+
this.isNavigationSupported([oTarget])
|
|
1802
|
+
.done(oResult => {
|
|
1803
|
+
if (oResult[0].supported) {
|
|
1804
|
+
resolve();
|
|
1805
|
+
} else {
|
|
1806
|
+
reject();
|
|
1807
|
+
}
|
|
1808
|
+
})
|
|
1809
|
+
.fail(() => {
|
|
1810
|
+
reject();
|
|
1811
|
+
});
|
|
1812
|
+
} else {
|
|
1813
|
+
resolve();
|
|
1814
|
+
}
|
|
1815
|
+
});
|
|
1813
1816
|
};
|
|
1814
1817
|
|
|
1815
1818
|
/**
|
|
@@ -2273,7 +2276,7 @@ sap.ui.define([
|
|
|
2273
2276
|
* Method to set or modify the AppState's persistency method of a state identified by key
|
|
2274
2277
|
*
|
|
2275
2278
|
* @param {string} sKey the AppState key
|
|
2276
|
-
* @param {
|
|
2279
|
+
* @param {int} iPersistencyMethod The chosen persistency method
|
|
2277
2280
|
* @param {object} oPersistencySettings The additional settings PersistencySettings
|
|
2278
2281
|
*
|
|
2279
2282
|
* @returns {jQuery.Promise<string>} A promise which resolves a new key
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* The service provide dark mode support functionality
|
|
7
7
|
*
|
|
8
|
-
* @version 1.
|
|
8
|
+
* @version 1.119.2
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define([
|
|
11
11
|
"sap/base/Log",
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* Dark Mode service.
|
|
31
31
|
*
|
|
32
32
|
* @name sap.ushell.services.DarkModeSupport
|
|
33
|
-
* @
|
|
33
|
+
* @class
|
|
34
34
|
* @since 1.72.0
|
|
35
35
|
* @private
|
|
36
36
|
*/
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
/**
|
|
53
53
|
* The service is deprecated. The function always returns a negative answer.
|
|
54
54
|
*
|
|
55
|
-
* @returns {
|
|
55
|
+
* @returns {object} Rejected promise
|
|
56
56
|
* @public
|
|
57
57
|
* @alias sap.ushell.services.EndUserFeedback#isEnabled
|
|
58
58
|
* @since 1.25.1
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* @param {
|
|
66
|
+
* @param {string} sURL sURL
|
|
67
67
|
* @returns {string} Path of the given URL (based on URI-API)
|
|
68
68
|
* @private
|
|
69
69
|
* @since 1.30.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file The Unified Shell's page builder service providing the data for the Fiori launchpad's classic Homepage.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.119.2
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
@@ -45,7 +45,6 @@ sap.ui.define([
|
|
|
45
45
|
*
|
|
46
46
|
* @param {object} oAdapter the page builder adapter for the logon system
|
|
47
47
|
* @param {object} oContainerInterface the interface provided by the container
|
|
48
|
-
* @constructor
|
|
49
48
|
* @see sap.ushell.services.Container#getServiceAsync
|
|
50
49
|
* @since 1.15.0
|
|
51
50
|
* @deprecated since 1.99. This service has been deprecated as it only works for the classic homepage.
|
|
@@ -872,7 +871,7 @@ sap.ui.define([
|
|
|
872
871
|
*
|
|
873
872
|
* Use <code>Function.prototype.bind()</code> to determine the callback's <code>this</code> or some of its arguments.
|
|
874
873
|
*
|
|
875
|
-
* @param {
|
|
874
|
+
* @param {object} fnProvider A callback which returns an array of action objects.
|
|
876
875
|
* @public
|
|
877
876
|
* @deprecated since 1.99. This feature has been deprecated with the classic homepage. There is no alternative with spaces and pages.
|
|
878
877
|
* @alias sap.ushell.services.LaunchPage#registerTileActionsProvider
|
|
@@ -1118,18 +1117,20 @@ sap.ui.define([
|
|
|
1118
1117
|
* Returns the UI5 view or control of a catalog tile
|
|
1119
1118
|
*
|
|
1120
1119
|
* @param {object} oCatalogTile The catalog tile
|
|
1120
|
+
* @param {boolean} [bPreview] SAP-internal: Whether the tile should be displayed in preview mode
|
|
1121
1121
|
* @returns {object} jQuery.deferred.promise object that when resolved, returns the Catalog Tile View
|
|
1122
1122
|
* @public
|
|
1123
1123
|
* @alias sap.ushell.services.LaunchPage#getCatalogTileViewControl
|
|
1124
1124
|
*/
|
|
1125
|
-
this.getCatalogTileViewControl = function (oCatalogTile) {
|
|
1125
|
+
this.getCatalogTileViewControl = function (oCatalogTile, bPreview) {
|
|
1126
|
+
// bPreview is only implemented on the abap platform
|
|
1126
1127
|
var sAdapterName = oCatalogTile && oCatalogTile.contentProvider;
|
|
1127
1128
|
var oLaunchpageAdapter = this._getAdapter(sAdapterName);
|
|
1128
1129
|
if (typeof oLaunchpageAdapter.getCatalogTileViewControl === "function") {
|
|
1129
|
-
return oLaunchpageAdapter.getCatalogTileViewControl(oCatalogTile);
|
|
1130
|
+
return oLaunchpageAdapter.getCatalogTileViewControl(oCatalogTile, bPreview);
|
|
1130
1131
|
}
|
|
1131
1132
|
var oDeferred = new jQuery.Deferred();
|
|
1132
|
-
var oResult = this.getCatalogTileView(oCatalogTile);
|
|
1133
|
+
var oResult = this.getCatalogTileView(oCatalogTile, bPreview);
|
|
1133
1134
|
|
|
1134
1135
|
oDeferred.resolve(oResult);
|
|
1135
1136
|
return oDeferred.promise();
|
|
@@ -1139,12 +1140,14 @@ sap.ui.define([
|
|
|
1139
1140
|
* Returns the UI5 view or control of a catalog tile
|
|
1140
1141
|
*
|
|
1141
1142
|
* @param {object} oCatalogTile The catalog tile
|
|
1143
|
+
* @param {boolean} [bPreview] SAP-internal: Whether the tile should be displayed in preview mode
|
|
1142
1144
|
* @returns {object} UI5 view or control
|
|
1143
1145
|
* @public
|
|
1144
1146
|
* @alias sap.ushell.services.LaunchPage#getCatalogTileView
|
|
1145
1147
|
* @deprecated since 1.48. Please use {@link #getCatalogTileViewControl} instead.
|
|
1146
1148
|
*/
|
|
1147
|
-
this.getCatalogTileView = function (oCatalogTile) {
|
|
1149
|
+
this.getCatalogTileView = function (oCatalogTile, bPreview) {
|
|
1150
|
+
// bPreview is only implemented on the abap platform
|
|
1148
1151
|
Log.error("Deprecated API call of 'sap.ushell.LaunchPage.getCatalogTileView'. Please use 'getCatalogTileViewControl' instead",
|
|
1149
1152
|
null,
|
|
1150
1153
|
"sap.ushell.services.LaunchPage"
|
|
@@ -1152,7 +1155,7 @@ sap.ui.define([
|
|
|
1152
1155
|
var sAdapterName = oCatalogTile && oCatalogTile.contentProvider;
|
|
1153
1156
|
var oLaunchpageAdapter = this._getAdapter(sAdapterName);
|
|
1154
1157
|
if (oLaunchpageAdapter.getCatalogTileView) {
|
|
1155
|
-
return oLaunchpageAdapter.getCatalogTileView(oCatalogTile);
|
|
1158
|
+
return oLaunchpageAdapter.getCatalogTileView(oCatalogTile, bPreview);
|
|
1156
1159
|
}
|
|
1157
1160
|
var sTitle = this.getTileTitle(oCatalogTile) || this.getCatalogTileTitle(oCatalogTile);
|
|
1158
1161
|
return this._createErrorTile(sTitle, "The LaunchPageAdapter does not support getCatalogTileView");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The menu service provides the entries for the menu bar
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.119.2
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ushell/Config",
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* Constructs a new instance of the menu service.
|
|
33
33
|
*
|
|
34
34
|
* @namespace sap.ushell.services.Menu
|
|
35
|
-
* @
|
|
35
|
+
* @class
|
|
36
36
|
* @see sap.ushell.services.Container#getServiceAsync
|
|
37
37
|
* @since 1.71.0
|
|
38
38
|
* @private
|
|
@@ -97,6 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
.then(function (aMenuEntries) {
|
|
98
98
|
if (Config.last("/core/homeApp/enabled")) {
|
|
99
99
|
var oHomeAppEntry = {
|
|
100
|
+
id: Config.last("/core/spaces/myHome/myHomeSpaceId"),
|
|
100
101
|
title: resources.i18n.getText("HomeApp.Menu.Title"),
|
|
101
102
|
"help-id": "homeApp-menuEntry",
|
|
102
103
|
description: "",
|
|
@@ -299,46 +300,39 @@ sap.ui.define([
|
|
|
299
300
|
* @since 1.105.0
|
|
300
301
|
* @private
|
|
301
302
|
*/
|
|
302
|
-
Menu.prototype.getDefaultSpace = function () {
|
|
303
|
+
Menu.prototype.getDefaultSpace = async function () {
|
|
304
|
+
const aContentNodes = await this.getContentNodes([ContentNodeType.Space, ContentNodeType.Page]);
|
|
303
305
|
if (Config.last("/core/menu/personalization/enabled")) {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
return aContentNodes.some(function testForSpaceWithAtLeastOnePage (oContentNode) {
|
|
321
|
-
return oMenuEntry.id === oContentNode.id && oContentNode.children.length;
|
|
322
|
-
});
|
|
323
|
-
})
|
|
324
|
-
.reduce(function chooseSpaceWithLowerSortOrder (oCurrentMinimalMenuEntry, oCurrentMenuEntry) {
|
|
325
|
-
return oCurrentMinimalMenuEntry.pinnedSortOrder < oCurrentMenuEntry.pinnedSortOrder ? oCurrentMinimalMenuEntry : oCurrentMenuEntry;
|
|
326
|
-
}, {});
|
|
306
|
+
const oMenuModel = await this.getMenuModel();
|
|
307
|
+
|
|
308
|
+
//use of pinnedSortOrder property to find default space
|
|
309
|
+
// Pinned sort order is always defined.
|
|
310
|
+
const oFirstPersonalizedSpace = oMenuModel.getData()
|
|
311
|
+
.filter(function filterOutTheSeparatorAndTheUnpinnedMenuEntries (oMenuEntry) {
|
|
312
|
+
return oMenuEntry.type !== "separator" && oMenuEntry.pinned;
|
|
313
|
+
})
|
|
314
|
+
.filter(function filterOutEmptySpaces (oMenuEntry) {
|
|
315
|
+
return aContentNodes.some(function testForSpaceWithAtLeastOnePage (oContentNode) {
|
|
316
|
+
return oMenuEntry.id === oContentNode.id && oContentNode.children.length;
|
|
317
|
+
});
|
|
318
|
+
})
|
|
319
|
+
.reduce(function chooseSpaceWithLowerSortOrder (oCurrentMinimalMenuEntry, oCurrentMenuEntry) {
|
|
320
|
+
return oCurrentMinimalMenuEntry.pinnedSortOrder < oCurrentMenuEntry.pinnedSortOrder ? oCurrentMinimalMenuEntry : oCurrentMenuEntry;
|
|
321
|
+
}, {});
|
|
327
322
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
});
|
|
331
|
-
return oNonEmptySpace;
|
|
323
|
+
const oNonEmptyPersonalizedSpace = aContentNodes.find(function findContentNodeForMenuEntry (oContentNode) {
|
|
324
|
+
return oFirstPersonalizedSpace.id === oContentNode.id;
|
|
332
325
|
});
|
|
326
|
+
if (oNonEmptyPersonalizedSpace) {
|
|
327
|
+
return oNonEmptyPersonalizedSpace;
|
|
328
|
+
}
|
|
329
|
+
// if no space is pinned fallback to content nodes
|
|
333
330
|
}
|
|
334
331
|
|
|
335
|
-
|
|
336
|
-
.
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
});
|
|
340
|
-
return oNonEmptySpace;
|
|
341
|
-
});
|
|
332
|
+
const oNonEmptySpace = aContentNodes.find(function (oContentNode) {
|
|
333
|
+
return oContentNode.children.length;
|
|
334
|
+
});
|
|
335
|
+
return oNonEmptySpace;
|
|
342
336
|
};
|
|
343
337
|
|
|
344
338
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The Unified Shell's message service.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.119.2
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
@@ -53,7 +53,6 @@ sap.ui.define([
|
|
|
53
53
|
* Message service.
|
|
54
54
|
*
|
|
55
55
|
* @name sap.ushell.services.Message
|
|
56
|
-
* @constructor
|
|
57
56
|
* @class
|
|
58
57
|
* @see sap.ushell.services.Container#getServiceAsync
|
|
59
58
|
* @since 1.16.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview This module exposes API enpoints for Generic Communication
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.119.2
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ushell/services/_MessageBroker/MessageBrokerEngine",
|
|
@@ -17,7 +17,6 @@ sap.ui.define([
|
|
|
17
17
|
*
|
|
18
18
|
* @namespace sap.ushell.services.MessageBroker
|
|
19
19
|
*
|
|
20
|
-
* @constructor
|
|
21
20
|
* @class
|
|
22
21
|
* @see {@link sap.ushell.services.Container#getServiceAsync}
|
|
23
22
|
* @since 1.72.0
|
|
@@ -448,11 +448,12 @@ sap.ui.define([
|
|
|
448
448
|
.done(function (oResult) {
|
|
449
449
|
this._adjustResolutionResultForUi5Components(oResult);
|
|
450
450
|
|
|
451
|
-
|
|
452
|
-
if (isPlainObject(oResult)) {
|
|
451
|
+
if (oResult && oResult.navigationMode !== undefined) {
|
|
453
452
|
oResult.targetNavigationMode = NavigationMode.getExternalNavigationMode(
|
|
454
453
|
oResult.navigationMode
|
|
455
454
|
);
|
|
455
|
+
} else {
|
|
456
|
+
Log.error("Resolution Result doesn't contain mandatory navigationMode!", "sap.ushell.services.NavTargetResolution");
|
|
456
457
|
}
|
|
457
458
|
|
|
458
459
|
// add a sap-system if not already there
|
|
@@ -659,17 +660,17 @@ sap.ui.define([
|
|
|
659
660
|
|
|
660
661
|
sap.ushell.Container.getServiceAsync("ShellNavigation")
|
|
661
662
|
.then(function (ShellNavigationService) {
|
|
662
|
-
ShellNavigationService.hrefForExternal(oHrefForExternalArg, true, oComponent
|
|
663
|
-
.
|
|
663
|
+
ShellNavigationService.hrefForExternal(oHrefForExternalArg, true, oComponent)
|
|
664
|
+
.then(function (oResVerboseCompacted) {
|
|
664
665
|
// may contain sap-intent-param (but server does nothing with it)
|
|
665
666
|
var oMaybeCompactedParameters = oResVerboseCompacted.params || oParameters;
|
|
666
667
|
|
|
667
668
|
fnResolverBound(sSemanticObject, oMaybeCompactedParameters, bIgnoreFormFactor)
|
|
668
|
-
.
|
|
669
|
-
.
|
|
669
|
+
.then(fnHandleGetLinksSuccess)
|
|
670
|
+
.catch(oDeferred.reject);
|
|
670
671
|
|
|
671
672
|
})
|
|
672
|
-
.
|
|
673
|
+
.catch(oDeferred.reject);
|
|
673
674
|
});
|
|
674
675
|
} else {
|
|
675
676
|
// 'this' in fnResolverBound will be client side target resolution
|
|
@@ -875,12 +876,60 @@ sap.ui.define([
|
|
|
875
876
|
return oDeferred.resolve(mResult).promise();
|
|
876
877
|
};
|
|
877
878
|
|
|
879
|
+
/**
|
|
880
|
+
* Tells whether the given intent(s) are supported, taking into account the form factor of the current device.
|
|
881
|
+
* "Supported" means that navigation to the intent is possible.
|
|
882
|
+
*
|
|
883
|
+
* @param {string[]} aIntents the intents (such as <code>"#AnObject-action?A=B&C=e&C=j"</code>) to be checked.
|
|
884
|
+
* The intents must be in internal format and expanded.
|
|
885
|
+
* @returns {jQuery.Promise} A jQuery Promise which is resolved with a map
|
|
886
|
+
* containing the intents from <code>aIntents</code> as keys.
|
|
887
|
+
* The map values are objects with a property <code>supported</code> of type <code>boolean</code>.<br/>
|
|
888
|
+
* Example:
|
|
889
|
+
* <pre>
|
|
890
|
+
* {
|
|
891
|
+
* "#AnObject-action?A=B&C=e&C=j": { supported: false },
|
|
892
|
+
* "#AnotherObject-action2": { supported: true }
|
|
893
|
+
* }
|
|
894
|
+
* </pre>
|
|
895
|
+
* @private
|
|
896
|
+
*
|
|
897
|
+
*/
|
|
898
|
+
this._isIntentSupported = function (aIntents) {
|
|
899
|
+
var mResult = {};
|
|
900
|
+
var oDeferred = new jQuery.Deferred();
|
|
901
|
+
|
|
902
|
+
if (this._isClientSideTargetResolutionEnabled()) {
|
|
903
|
+
// NOTE: request ClientSideTargetResolution service only if enabled!
|
|
904
|
+
sap.ushell.Container.getServiceAsync("ClientSideTargetResolution")
|
|
905
|
+
.then(function (ClientSideTargetResolutionService) {
|
|
906
|
+
ClientSideTargetResolutionService.isIntentSupported(aIntents)
|
|
907
|
+
.done(oDeferred.resolve)
|
|
908
|
+
.fail(oDeferred.reject);
|
|
909
|
+
})
|
|
910
|
+
.catch(oDeferred.reject);
|
|
911
|
+
|
|
912
|
+
return oDeferred.promise();
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
// Adapter based implementation
|
|
916
|
+
if (oAdapter.isIntentSupported) {
|
|
917
|
+
return oAdapter.isIntentSupported(aIntents);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
// Fallback for no adapter available
|
|
921
|
+
aIntents.forEach(function (sIntent) {
|
|
922
|
+
mResult[sIntent] = { supported: undefined };
|
|
923
|
+
});
|
|
924
|
+
return oDeferred.resolve(mResult).promise();
|
|
925
|
+
};
|
|
926
|
+
|
|
878
927
|
/**
|
|
879
928
|
* Tells whether the given navigation intent(s) are supported for the given parameters
|
|
880
929
|
* Supported" means that a valid navigation target is configured for the user for the given device form factor.
|
|
881
930
|
*
|
|
882
931
|
* This is effectively a test function for {@link toExternal}/ {@link hrefForExternal}.
|
|
883
|
-
* It
|
|
932
|
+
* It function accepts the same input as {@link toExternal}/ {@link hrefForExternal}.
|
|
884
933
|
*
|
|
885
934
|
* @param {object[]} aIntents the intents (such as <code>["#AnObject-action?A=B&c=e"]</code>) to be checked
|
|
886
935
|
* with object being instances the oArgs object of toExternal, hrefForExternal etc.
|
|
@@ -967,7 +1016,7 @@ sap.ui.define([
|
|
|
967
1016
|
}
|
|
968
1017
|
return "#" + UrlParsing.constructShellHash(oArg);
|
|
969
1018
|
});
|
|
970
|
-
this.
|
|
1019
|
+
this._isIntentSupported(aIntentsAsString).done(function (oResult) {
|
|
971
1020
|
var aResults = aIntentsAsString.map(function (sIntent) { return oResult[sIntent] || { supported: false }; });
|
|
972
1021
|
oDeferred.resolve(aResults);
|
|
973
1022
|
}).fail(oDeferred.reject.bind(oDeferred));
|