@sapui5/sap.ushell 1.111.1 → 1.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +104 -4
- package/src/main/js/sap/ushell/ApplicationType.js +11 -4
- package/src/main/js/sap/ushell/Container.js +0 -32
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/TechnicalParameters.js +51 -21
- 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 +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 +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 +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +24 -158
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- 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 +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/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 +1 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +22 -140
- 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 +2 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.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 +1 -1
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.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 +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +12 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +28 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +7 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.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 +1 -1
- 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.read.ushell.config.from.url.js +26 -23
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +69 -33
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +3 -0
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +15 -3
- package/src/main/js/sap/ushell/components/applicationIntegration/Storage.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +29 -18
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +15 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +9 -4
- 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/cepsearchresult/app/Main.controller.js +1 -7
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/controls/Paginator.css +14 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/controls/Paginator.js +57 -11
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +14 -2
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +470 -23
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +308 -6
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +83 -12
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +33 -6
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +7 -7
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +96 -0
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +44 -14
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +82 -25
- package/src/main/js/sap/ushell/components/contentFinder/view/ContentFinderDialog.view.xml +18 -10
- package/src/main/js/sap/ushell/components/contentFinder/view/WidgetGallery.view.xml +52 -1
- package/src/main/js/sap/ushell/components/contentFinderAppSearch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderAppSearch/controller/ContentFinderAppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderAppSearch/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +116 -40
- 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 +1 -1
- 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/controller/PageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +17 -6
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.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 +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/NavigationSvcSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/ContentWrapper.fragment.xml +7 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +9 -10
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +49 -57
- 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/cdm/applauncherdynamic/DynamicTile.controller.js +4 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +26 -27
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +23 -4
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/ContentFinderDialog.controller.js +12 -9
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +67 -16
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources.properties +5 -3
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +4 -262
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +1 -170
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +1 -3
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/AccessKeysHandler.js +3 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +2 -2
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyApps.controller.js +2 -1
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyApps.view.xml +10 -1
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources.properties +15 -5
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources_de.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 +0 -37
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +52 -3
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +93 -30
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +5 -243
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +1 -1
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +31 -12
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +4 -2
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +21 -3
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -3
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +178 -125
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +15 -18
- package/src/main/js/sap/ushell/services/SmartNavigation.js +32 -6
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- 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 +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +5 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +2 -2
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/_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 +131 -135
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +341 -308
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- 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 +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/Catalog.less +4 -0
- package/src/main/js/sap/ushell/themes/base/ContentFinder.less +5 -1
- package/src/main/js/sap/ushell/themes/base/SearchFLP.less +0 -5
- package/src/main/js/sap/ushell/themes/base/ShellAppTitle.less +6 -9
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.json +16 -1
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/base/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_belize/ShellHeader.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_belize/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/ShellHeader.less +0 -27
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/ShellHeader.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +2 -11
- package/src/main/js/sap/ushell/themes/sap_fiori_3/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellHeader.less +2 -11
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/ShellHeader.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/ShellHeader.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_hcb/ShellHeader.less +0 -24
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellAppTitle.less +2 -12
- package/src/main/js/sap/ushell/themes/sap_horizon/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellAppTitle.less +2 -12
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellAppTitle.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellAppTitle.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/library.source.less +0 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +0 -15
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +199 -0
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +202 -0
- package/src/main/js/sap/ushell/ui/contentFinder/AppBox.js +17 -2
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialogRenderer.js +2 -45
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/TileRenderer.js +4 -21
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +6 -8
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellLayout.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +21 -62
- package/src/main/js/sap/ushell/ui/shell/SplitContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -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/utils/DynamicTileRequest.js +25 -5
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +53 -51
- package/src/main/js/sap/ushell/services/ContentExtension.js +0 -114
- package/src/main/js/sap/ushell/themes/base/UserPreferencesButton.less +0 -35
- package/src/main/js/sap/ushell/themes/base/flower-standalone.less +0 -774
- package/src/main/js/sap/ushell/themes/sap_belize/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/flower-standalone.less +0 -23
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/flower-standalone.less +0 -33
- package/src/main/js/sap/ushell/themes/sap_hcb/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_hcb/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_horizon/UserPreferencesButton.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/UserPreferencesButton.less +0 -8
- package/src/main/js/sap/ushell/ui/footerbar/SettingsButton.js +0 -90
- package/src/main/js/sap/ushell/ui/footerbar/UserPreferencesButton.js +0 -505
- package/src/main/js/sap/ushell/ui5service/CardNavigation.js +0 -131
- package/src/main/js/sap/ushell/ui5service/CardUserFrequents.js +0 -138
- package/src/main/js/sap/ushell/ui5service/CardUserRecents.js +0 -101
- package/src/main/js/sap/ushell/ui5service/_CardUserRecents/CardUserRecentsBase.js +0 -108
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview resolves references
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.112.1
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
9
9
|
"sap/base/util/deepExtend",
|
|
10
10
|
"sap/base/util/isEmptyObject",
|
|
11
|
-
"sap/m/DynamicDateUtil",
|
|
12
11
|
"sap/ui/core/CalendarType",
|
|
13
12
|
"sap/ui/core/Configuration",
|
|
14
13
|
"sap/ui/core/format/DateFormat",
|
|
@@ -20,7 +19,6 @@ sap.ui.define([
|
|
|
20
19
|
Log,
|
|
21
20
|
deepExtend,
|
|
22
21
|
isEmptyObject,
|
|
23
|
-
DynamicDateUtil,
|
|
24
22
|
CalendarType,
|
|
25
23
|
Configuration,
|
|
26
24
|
DateFormat,
|
|
@@ -578,6 +576,27 @@ sap.ui.define([
|
|
|
578
576
|
return oDeferred.promise();
|
|
579
577
|
};
|
|
580
578
|
|
|
579
|
+
/**
|
|
580
|
+
* Loads the Dynamic Date Range und its prerequisite, the unified library.
|
|
581
|
+
* @returns {Promise} Promise that resolves with the Dynamic Date Range.
|
|
582
|
+
*/
|
|
583
|
+
this._loadDynamicDateRange = function () {
|
|
584
|
+
return sap.ui.getCore()
|
|
585
|
+
.loadLibrary("sap/ui/unified", {async: true})
|
|
586
|
+
.then(function () {
|
|
587
|
+
return new Promise(function (fnResolve) {
|
|
588
|
+
sap.ui.require(["sap/m/DynamicDateRange"], function (oDynamicDateRange) {
|
|
589
|
+
fnResolve(oDynamicDateRange);
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
});
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
/*
|
|
596
|
+
* The regex to identify semantic date range placeholders.
|
|
597
|
+
*/
|
|
598
|
+
this._rSemanticDateRangeRegex = /^DynamicDate\..+/;
|
|
599
|
+
|
|
581
600
|
/**
|
|
582
601
|
* Resolves semantic date range parameters within the given URL.
|
|
583
602
|
*
|
|
@@ -599,57 +618,77 @@ sap.ui.define([
|
|
|
599
618
|
* <position>: Marks the start or end of a date range.
|
|
600
619
|
*
|
|
601
620
|
* @param {string} sUrl
|
|
602
|
-
*
|
|
603
|
-
* @param {
|
|
604
|
-
*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
*
|
|
609
|
-
*
|
|
610
|
-
*
|
|
611
|
-
*
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
*
|
|
621
|
+
* URL containing semantic date range parameters like YESTERDAY or THISYEAR
|
|
622
|
+
* @param {string} sODataVersion
|
|
623
|
+
* The services's OData version. Used to format values according to the specified version.
|
|
624
|
+
* Only relevant if Semantic Date Ranges are actually found in the URL.
|
|
625
|
+
* Valid values are "2.0" and "4.0".
|
|
626
|
+
* @returns {Promise<object>}
|
|
627
|
+
* The returned object has the following properties:
|
|
628
|
+
* <ul>
|
|
629
|
+
* <li> url: The URL with the resolved semantic date ranges or the original URL if it didn't contain any semantic date ranges
|
|
630
|
+
* <li> hasSemanticDateRanges: The info if semantic date ranges were found at all
|
|
631
|
+
* <li> invalidSemanticDateRanges: Semantic date ranges that are specified incorrectly
|
|
632
|
+
* <li> ignoredReferences: References that are no semantic date ranges
|
|
633
|
+
* <ul>
|
|
634
|
+
*
|
|
635
|
+
* Example:
|
|
636
|
+
* <pre>
|
|
637
|
+
* {
|
|
638
|
+
* url: "/some/url/$count?$filter=(PostingDate eq '20221204')", // url with resolved semantic date ranges
|
|
639
|
+
* hasSemanticDateRanges: true, // the URL contains semantic date ranges
|
|
640
|
+
* invalidSemanticDates: ["DynamicDate.UNKNOWN"], // semantic date range with invalid definition
|
|
641
|
+
* ignoredReferences: ["abc"] // references which are not semantic date ranges
|
|
642
|
+
* }
|
|
643
|
+
* </pre>
|
|
615
644
|
*
|
|
616
645
|
* @private
|
|
617
646
|
* @since 1.110.0
|
|
618
647
|
*/
|
|
619
|
-
this.resolveSemanticDateRanges = function (sUrl,
|
|
620
|
-
var oPlaceholders = this._extractUrlPlaceholders(sUrl,
|
|
648
|
+
this.resolveSemanticDateRanges = function (sUrl, sODataVersion) {
|
|
649
|
+
var oPlaceholders = this._extractUrlPlaceholders(sUrl, this._rSemanticDateRangeRegex);
|
|
621
650
|
var aSemanticDateRangeReferences = oPlaceholders.extractedReferences;
|
|
622
651
|
var aIgnoredReferences = oPlaceholders.ignoredReferences;
|
|
623
652
|
|
|
624
653
|
if (aSemanticDateRangeReferences.length === 0) {
|
|
625
|
-
return {
|
|
654
|
+
return Promise.resolve({
|
|
626
655
|
url: sUrl,
|
|
627
|
-
|
|
656
|
+
hasSemanticDateRanges: false,
|
|
657
|
+
invalidSemanticDates: [],
|
|
628
658
|
ignoredReferences: aIgnoredReferences
|
|
629
|
-
};
|
|
659
|
+
});
|
|
630
660
|
}
|
|
631
661
|
|
|
632
|
-
var
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
if (Log.getLevel() >= Log.Level.DEBUG) {
|
|
636
|
-
var aResolvedSemanticDateRanges = aSemanticDateRanges.filter(function (oElement) {
|
|
637
|
-
return "value" in oElement;
|
|
638
|
-
});
|
|
639
|
-
Log.debug(
|
|
640
|
-
"Resolving semantic date ranges \n" +
|
|
641
|
-
"- URL: " + sUrl + "\n" +
|
|
642
|
-
"- ignoring references: " + JSON.stringify(aIgnoredReferences, null, 4) + "\n" +
|
|
643
|
-
"- resolved semantic date ranges: " + JSON.stringify(aResolvedSemanticDateRanges, null, 4) + "\n" +
|
|
644
|
-
"- invalid semantic date ranges:" + JSON.stringify(oReplacementResult.placeholdersWithoutValue, null, 4) + "\n" +
|
|
645
|
-
"- final URL: " + oReplacementResult.resolvedUrl, null, sModuleName);
|
|
662
|
+
var aValidODataVersions = ["2.0", "4.0"];
|
|
663
|
+
if (!sODataVersion || !aValidODataVersions.includes(sODataVersion)) {
|
|
664
|
+
return Promise.reject("Invalid OData version: " + sODataVersion);
|
|
646
665
|
}
|
|
666
|
+
var bODataV4 = sODataVersion === "4.0";
|
|
647
667
|
|
|
648
|
-
return
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
668
|
+
return this._resolveSemanticDateRanges(aSemanticDateRangeReferences, bODataV4)
|
|
669
|
+
.then(function (aSemanticDateRanges) {
|
|
670
|
+
var oReplacementResult = this._replaceUrlPlaceholders(sUrl, aSemanticDateRanges, bODataV4);
|
|
671
|
+
|
|
672
|
+
if (Log.getLevel() >= Log.Level.DEBUG) {
|
|
673
|
+
var aResolvedSemanticDateRanges = aSemanticDateRanges.filter(function (oElement) {
|
|
674
|
+
return "value" in oElement;
|
|
675
|
+
});
|
|
676
|
+
Log.debug(
|
|
677
|
+
"Resolving semantic date ranges \n" +
|
|
678
|
+
"- URL: " + sUrl + "\n" +
|
|
679
|
+
"- ignoring references: " + JSON.stringify(aIgnoredReferences, null, 4) + "\n" +
|
|
680
|
+
"- resolved semantic date ranges: " + JSON.stringify(aResolvedSemanticDateRanges, null, 4) + "\n" +
|
|
681
|
+
"- invalid semantic date ranges:" + JSON.stringify(oReplacementResult.placeholdersWithoutValue, null, 4) + "\n" +
|
|
682
|
+
"- final URL: " + oReplacementResult.resolvedUrl, null, sModuleName);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
return {
|
|
686
|
+
url: oReplacementResult.resolvedUrl,
|
|
687
|
+
hasSemanticDateRanges: aSemanticDateRangeReferences.length > 0,
|
|
688
|
+
invalidSemanticDates: oReplacementResult.placeholdersWithoutValue,
|
|
689
|
+
ignoredReferences: aIgnoredReferences
|
|
690
|
+
};
|
|
691
|
+
}.bind(this));
|
|
653
692
|
};
|
|
654
693
|
|
|
655
694
|
/**
|
|
@@ -659,102 +698,100 @@ sap.ui.define([
|
|
|
659
698
|
* An array of semantic date ranges to resolve with name and EdmType
|
|
660
699
|
* @param {boolean} [bODataV4=false]
|
|
661
700
|
* Format values according to ODataV4 if this flag is set to true
|
|
662
|
-
* @returns {array
|
|
663
|
-
* An array containing the resolved semantic date ranges
|
|
701
|
+
* @returns {Promise<Array>} A promise that resolves with an array containing the resolved semantic date ranges
|
|
664
702
|
* @private
|
|
665
703
|
* @since 1.110.0
|
|
666
704
|
*/
|
|
667
705
|
this._resolveSemanticDateRanges = function (aSemanticDateRanges, bODataV4) {
|
|
668
|
-
if (aSemanticDateRanges.length <= 0) {
|
|
669
|
-
return [];
|
|
670
|
-
}
|
|
671
|
-
|
|
672
706
|
var oDateTimeFormatters = this._getDateTimeFormatters();
|
|
673
707
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
sPosition
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
708
|
+
// must be required dynamically because of a dependency to sap.ui.unified
|
|
709
|
+
return this._loadDynamicDateRange()
|
|
710
|
+
.then(function (DynamicDateRange) {
|
|
711
|
+
return aSemanticDateRanges.map(function resolveSemanticDateRange (oSemanticDate) {
|
|
712
|
+
var oResult = {
|
|
713
|
+
name: oSemanticDate.name,
|
|
714
|
+
edmType: oSemanticDate.edmType
|
|
715
|
+
};
|
|
716
|
+
var aSemanticDate = oSemanticDate.name.split(".");
|
|
717
|
+
|
|
718
|
+
/* Analyze the semantic date. It can have 2 - 5 parts, depending on the operator
|
|
719
|
+
and the usage in the OData request.
|
|
720
|
+
Examples:
|
|
721
|
+
DynamicDate.YESTERDAY
|
|
722
|
+
DynamicDate.YESTERDAY.start
|
|
723
|
+
DynamicDate.NEXTDAYS.5.start
|
|
724
|
+
DynamicDate.TODAYFROMTO.1.5.start
|
|
725
|
+
*/
|
|
726
|
+
|
|
727
|
+
var oDateValue = {
|
|
728
|
+
operator: aSemanticDate[1],
|
|
729
|
+
values: []
|
|
730
|
+
};
|
|
731
|
+
var sPosition;
|
|
732
|
+
|
|
733
|
+
if (aSemanticDate.length === 3) {
|
|
734
|
+
sPosition = aSemanticDate[2];
|
|
735
|
+
} else if (aSemanticDate.length === 4) {
|
|
736
|
+
oDateValue.values.push(aSemanticDate[2]);
|
|
737
|
+
sPosition = aSemanticDate[3];
|
|
738
|
+
} else if (aSemanticDate.length === 5) {
|
|
739
|
+
oDateValue.values = aSemanticDate.slice(2, 4);
|
|
740
|
+
sPosition = aSemanticDate[4];
|
|
741
|
+
}
|
|
705
742
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
743
|
+
var aDynamicDate;
|
|
744
|
+
try {
|
|
745
|
+
aDynamicDate = DynamicDateRange.toDates(oDateValue);
|
|
746
|
+
} catch (error) {
|
|
747
|
+
return oResult;
|
|
748
|
+
}
|
|
712
749
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
750
|
+
if (aSemanticDate.length >= 3 && sPosition !== "start" && sPosition !== "end") {
|
|
751
|
+
return oResult;
|
|
752
|
+
}
|
|
716
753
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
oDate.setUTCHours(0, 0, 0, 0);
|
|
742
|
-
oResult.value = oDate;
|
|
743
|
-
break;
|
|
744
|
-
case "Edm.DateTimeOffset":
|
|
745
|
-
if (bODataV4) {
|
|
746
|
-
// The OData V4 formatter doesn't do any formatting for datetimeoffset so it is done here
|
|
747
|
-
oResult.value = oDateTimeFormatters.dateTimeOffsetV4.format(oDate, true);
|
|
748
|
-
} else {
|
|
749
|
-
// The OData formatter converts the date object's UTC time to an OData string
|
|
754
|
+
var oDate;
|
|
755
|
+
if (sPosition === "end") {
|
|
756
|
+
oDate = aDynamicDate[1];
|
|
757
|
+
} else {
|
|
758
|
+
oDate = aDynamicDate[0];
|
|
759
|
+
}
|
|
760
|
+
if (!oDate) {
|
|
761
|
+
return oResult;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
switch (oSemanticDate.edmType) {
|
|
765
|
+
case "Edm.String":
|
|
766
|
+
oResult.value = oDateTimeFormatters.string.format(oDate);
|
|
767
|
+
break;
|
|
768
|
+
case "Edm.Date":
|
|
769
|
+
// This is an OData V4 only type
|
|
770
|
+
// The OData V4 formatter doesn't do any formatting for date so it is done here
|
|
771
|
+
oResult.value = oDateTimeFormatters.date.format(oDate);
|
|
772
|
+
break;
|
|
773
|
+
case "Edm.DateTime":
|
|
774
|
+
// The OData formatter that is used later on converts the date object's UTC time to an OData string
|
|
775
|
+
// Therefore set the UTC date to the local date
|
|
776
|
+
oDate.setUTCFullYear(oDate.getFullYear(), oDate.getMonth(), oDate.getDate());
|
|
777
|
+
oDate.setUTCHours(0, 0, 0, 0);
|
|
750
778
|
oResult.value = oDate;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
779
|
+
break;
|
|
780
|
+
case "Edm.DateTimeOffset":
|
|
781
|
+
if (bODataV4) {
|
|
782
|
+
// The OData V4 formatter doesn't do any formatting for datetimeoffset so it is done here
|
|
783
|
+
oResult.value = oDateTimeFormatters.dateTimeOffsetV4.format(oDate, true);
|
|
784
|
+
} else {
|
|
785
|
+
// The OData formatter converts the date object's UTC time to an OData string
|
|
786
|
+
oResult.value = oDate;
|
|
787
|
+
}
|
|
788
|
+
break;
|
|
789
|
+
default:
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
756
792
|
|
|
757
|
-
|
|
793
|
+
return oResult;
|
|
794
|
+
});
|
|
758
795
|
});
|
|
759
796
|
};
|
|
760
797
|
|
|
@@ -787,6 +824,22 @@ sap.ui.define([
|
|
|
787
824
|
return this._oDateTimeFormatters;
|
|
788
825
|
};
|
|
789
826
|
|
|
827
|
+
/**
|
|
828
|
+
* Checks if a URL contains semantic date range placeholders
|
|
829
|
+
*
|
|
830
|
+
* @param {string} sUrl
|
|
831
|
+
* A URL
|
|
832
|
+
* @returns {boolean}
|
|
833
|
+
* Returns true if the URL contains semantic date range placeholders
|
|
834
|
+
*
|
|
835
|
+
* @private
|
|
836
|
+
* @since 1.112.0
|
|
837
|
+
*/
|
|
838
|
+
this.hasSemanticDateRanges = function (sUrl) {
|
|
839
|
+
var oPlaceholders = this._extractUrlPlaceholders(sUrl, this._rSemanticDateRangeRegex);
|
|
840
|
+
return oPlaceholders.extractedReferences.length > 0;
|
|
841
|
+
};
|
|
842
|
+
|
|
790
843
|
}
|
|
791
844
|
|
|
792
845
|
ReferenceResolver.hasNoAdapter = true;
|
|
@@ -409,13 +409,9 @@ sap.ui.define([
|
|
|
409
409
|
* @private
|
|
410
410
|
*/
|
|
411
411
|
ShellNavigationHashChanger.prototype.hrefForExternal = function (oArgs, bVerbose, oComponent, bAsync) {
|
|
412
|
-
//
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
// must encode
|
|
416
|
-
|
|
417
|
-
function encodeResult (vResult, bVerbose) {
|
|
418
|
-
if (bVerbose === true) {
|
|
412
|
+
// must encode the result
|
|
413
|
+
function encodeResult (vResult, bIsVerbose) {
|
|
414
|
+
if (bIsVerbose === true) {
|
|
419
415
|
vResult.hash = encodeURI(vResult.hash);
|
|
420
416
|
} else {
|
|
421
417
|
vResult = encodeURI(vResult);
|
|
@@ -423,19 +419,20 @@ sap.ui.define([
|
|
|
423
419
|
return vResult;
|
|
424
420
|
}
|
|
425
421
|
|
|
426
|
-
if (
|
|
427
|
-
|
|
428
|
-
}
|
|
422
|
+
if (bAsync) {
|
|
423
|
+
var oDeferred = new jQuery.Deferred();
|
|
429
424
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
oDeferred.
|
|
435
|
-
|
|
436
|
-
|
|
425
|
+
this.hrefForExternalNoEncAsync(oArgs, bVerbose, oComponent)
|
|
426
|
+
.then(function (vResult) {
|
|
427
|
+
oDeferred.resolve(encodeResult(vResult, bVerbose));
|
|
428
|
+
})
|
|
429
|
+
.catch(oDeferred.reject.bind(oDeferred));
|
|
430
|
+
|
|
431
|
+
return oDeferred;
|
|
432
|
+
}
|
|
437
433
|
|
|
438
|
-
|
|
434
|
+
var vResult = this.hrefForExternalNoEnc(oArgs, bVerbose, oComponent);
|
|
435
|
+
return encodeResult(vResult, bVerbose);
|
|
439
436
|
};
|
|
440
437
|
|
|
441
438
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* it is pertinent that the API user employs this service's version of <code>toExternal()</code> for cross application
|
|
13
13
|
* navigation (instead) of using the one provided by CrossApplicationNavigation service.</p>
|
|
14
14
|
*
|
|
15
|
-
* @version 1.
|
|
15
|
+
* @version 1.112.1
|
|
16
16
|
*/
|
|
17
17
|
sap.ui.define([
|
|
18
18
|
"sap/ui/thirdparty/jquery",
|
|
@@ -48,6 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
* @name sap.ushell.services.SmartNavigation
|
|
49
49
|
* @constructor
|
|
50
50
|
* @public
|
|
51
|
+
* @deprecated since 1.112. This service has been deprecated. Please use the CrossApplicationNavigation service instead.
|
|
51
52
|
* @since 1.44.0
|
|
52
53
|
*/
|
|
53
54
|
function SmartNavigation (oContainerInterface, sParameters, oServiceConfig) {
|
|
@@ -84,6 +85,11 @@ sap.ui.define([
|
|
|
84
85
|
SmartNavigation.prototype.getLinks = function (oArgs) {
|
|
85
86
|
var oDeferred = new jQuery.Deferred();
|
|
86
87
|
|
|
88
|
+
Log.error("Call to deprecated service: 'SmartNavigation.getLinks'. Please use 'CrossApplicationNavigation.getLinks' instead",
|
|
89
|
+
null,
|
|
90
|
+
"sap.ushell.services.SmartNavigation"
|
|
91
|
+
);
|
|
92
|
+
|
|
87
93
|
this._oCrossAppNavigationServicePromise
|
|
88
94
|
.then(function (CrossApplicationNavigationService) {
|
|
89
95
|
var oAllLinksPromise = CrossApplicationNavigationService.getLinks(oArgs);
|
|
@@ -105,7 +111,7 @@ sap.ui.define([
|
|
|
105
111
|
}
|
|
106
112
|
|
|
107
113
|
if (!sFromCurrentShellHash) {
|
|
108
|
-
// This may happen because, the application (the calling component belongs to) probably has not
|
|
114
|
+
// This may happen because, the application (the calling component belongs to) probably has not initialized fully.
|
|
109
115
|
Log.warning("Call to SmartNavigation#getLinks() simply delegated to CrossApplicationNavigation#getLinks()"
|
|
110
116
|
+ " because AppConfiguration#getCurrentApplication()#sShellHash evaluates to undefined.");
|
|
111
117
|
|
|
@@ -151,6 +157,11 @@ sap.ui.define([
|
|
|
151
157
|
SmartNavigation.prototype.toExternal = function (oArgs) {
|
|
152
158
|
var aArguments = arguments;
|
|
153
159
|
|
|
160
|
+
Log.error("Call to deprecated service: 'SmartNavigation.toExternal'. Please use 'CrossApplicationNavigation.toExternal' instead",
|
|
161
|
+
null,
|
|
162
|
+
"sap.ushell.services.SmartNavigation"
|
|
163
|
+
);
|
|
164
|
+
|
|
154
165
|
this._oCrossAppNavigationServicePromise
|
|
155
166
|
.then(function (CrossApplicationNavigationService) {
|
|
156
167
|
if (!this._isTrackingEnabled(this._oServiceConfig)) {
|
|
@@ -207,7 +218,7 @@ sap.ui.define([
|
|
|
207
218
|
"sap.ushell.services.SmartNavigation"
|
|
208
219
|
);
|
|
209
220
|
|
|
210
|
-
// Container.getService is OK because alternatives are provided for external use. The
|
|
221
|
+
// Container.getService is OK because alternatives are provided for external use. The function is not called by ushell itself.
|
|
211
222
|
var CrossApplicationNavigationService = sap.ushell.Container.getService("CrossApplicationNavigation"); // LEGACY API (deprecated)
|
|
212
223
|
|
|
213
224
|
return CrossApplicationNavigationService.hrefForExternal.apply(CrossApplicationNavigationService, arguments);
|
|
@@ -226,6 +237,11 @@ sap.ui.define([
|
|
|
226
237
|
SmartNavigation.prototype.hrefForExternalAsync = function () {
|
|
227
238
|
var aArguments = arguments;
|
|
228
239
|
|
|
240
|
+
Log.error("Call to deprecated service: 'SmartNavigation.hrefForExternalAsync'. Please use 'CrossApplicationNavigation.hrefForExternalAsync' instead",
|
|
241
|
+
null,
|
|
242
|
+
"sap.ushell.services.SmartNavigation"
|
|
243
|
+
);
|
|
244
|
+
|
|
229
245
|
return this._oCrossAppNavigationServicePromise
|
|
230
246
|
.then(function (CrossApplicationNavigationService) {
|
|
231
247
|
return CrossApplicationNavigationService.hrefForExternalAsync.apply(CrossApplicationNavigationService, aArguments);
|
|
@@ -246,6 +262,11 @@ sap.ui.define([
|
|
|
246
262
|
var oDeferred = new jQuery.Deferred();
|
|
247
263
|
var aArguments = arguments;
|
|
248
264
|
|
|
265
|
+
Log.error("Call to deprecated service: 'SmartNavigation.getPrimaryIntent'. Please use 'CrossApplicationNavigation.getPrimaryIntent' instead",
|
|
266
|
+
null,
|
|
267
|
+
"sap.ushell.services.SmartNavigation"
|
|
268
|
+
);
|
|
269
|
+
|
|
249
270
|
this._oCrossAppNavigationServicePromise
|
|
250
271
|
.then(function (CrossApplicationNavigationService) {
|
|
251
272
|
CrossApplicationNavigationService.getPrimaryIntent.apply(CrossApplicationNavigationService, aArguments)
|
|
@@ -282,6 +303,11 @@ sap.ui.define([
|
|
|
282
303
|
* @memberof sap.ushell.services.SmartNavigation#
|
|
283
304
|
*/
|
|
284
305
|
SmartNavigation.prototype.trackNavigation = function (oArgs) {
|
|
306
|
+
Log.error("Call to deprecated service: 'SmartNavigation.trackNavigation'.",
|
|
307
|
+
null,
|
|
308
|
+
"sap.ushell.services.SmartNavigation"
|
|
309
|
+
);
|
|
310
|
+
|
|
285
311
|
if (!this._isTrackingEnabled(this._oServiceConfig)) {
|
|
286
312
|
Log.debug("Call to SmartNavigation#trackNavigation() ignored because Service is not enabled via Configuration", null, "sap.ushell.services.SmartNavigation");
|
|
287
313
|
return jQuery.when(null);
|
|
@@ -293,7 +319,7 @@ sap.ui.define([
|
|
|
293
319
|
var sDestinationShellHash;
|
|
294
320
|
|
|
295
321
|
if (!sFromCurrentShellHash) {
|
|
296
|
-
// Possibly the application (the calling component belongs to) has not
|
|
322
|
+
// Possibly the application (the calling component belongs to) has not initialized fully.
|
|
297
323
|
Log.warning("Call to SmartNavigation#trackNavigation() simply ignored"
|
|
298
324
|
+ " because AppConfiguration#getCurrentApplication()#sShellHash evaluates to undefined.");
|
|
299
325
|
|
|
@@ -500,7 +526,7 @@ sap.ui.define([
|
|
|
500
526
|
* @param {string} sFromCurrentShellHash The origin of navigation.
|
|
501
527
|
* @param {string} sToDestinationShellHash The destination of the navigation.
|
|
502
528
|
* @param {object} oComponent The currently running application's component.
|
|
503
|
-
* @returns {Promise|
|
|
529
|
+
* @returns {Promise|jQuery.Deferred} A promise to record navigation occurrences.
|
|
504
530
|
* @private
|
|
505
531
|
*/
|
|
506
532
|
SmartNavigation.prototype._recordNavigationOccurrences = function (sFromCurrentShellHash, sToDestinationShellHash, oComponent) {
|
|
@@ -571,7 +597,7 @@ sap.ui.define([
|
|
|
571
597
|
* Note that the update is done in place. In other words, the passed `oHistoryEntry` reference will be mutated.
|
|
572
598
|
*
|
|
573
599
|
* @param {ActionHistoryEntry|SemanticObjectHistoryEntry} oHistoryEntry A history entry item to be updated.
|
|
574
|
-
* @returns {ActionHistoryEntry|SemanticObjectHistoryEntry} A reference to the updated history
|
|
600
|
+
* @returns {ActionHistoryEntry|SemanticObjectHistoryEntry} A reference to the updated history entry item.
|
|
575
601
|
* @private
|
|
576
602
|
*/
|
|
577
603
|
SmartNavigation.prototype._updateHistoryEntryWithCurrentUsage = function (oHistoryEntry) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Service wrapper for the sap/ushell/utils/UrlShortening module.
|
|
7
7
|
* Deprecated. Please use the UrlShortening module directly.
|
|
8
8
|
*
|
|
9
|
-
* @version 1.
|
|
9
|
+
* @version 1.112.1
|
|
10
10
|
*/
|
|
11
11
|
sap.ui.define(["sap/ushell/utils/UrlShortening"], function (UrlShortening) {
|
|
12
12
|
"use strict";
|