@sapui5/sap.ushell 1.142.0 → 1.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/ApplicationType/utils.js +9 -9
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +18 -0
- 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 +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/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/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 +1 -1
- 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/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/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 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +2 -3
- 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/NavTargetResolutionInternalAdapter.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/FlpLaunchPageAdapter.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/NavTargetResolutionInternalAdapter.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/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appIntegration/AppLifeCycle.js +93 -110
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/LifecycleHandler.js +1 -3
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/NavigationHandler.js +4 -4
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +6 -2
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +3 -3
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +0 -12
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/LoadingConfiguration.json +4 -0
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +21 -0
- 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 +12 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Component.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +5 -5
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +10 -10
- 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 +2 -2
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +4 -4
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.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/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/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/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/Component.js +3 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +35 -7
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.view.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +14 -9
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +4 -3
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -1
- 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.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +1 -1
- package/src/main/js/sap/ushell/modules/Assistant/AssistantAPI.js +94 -0
- package/src/main/js/sap/ushell/modules/Assistant/AssistantProvider.js +50 -0
- package/src/main/js/sap/ushell/modules/Assistant/VisualConfiguration.js +41 -0
- package/src/main/js/sap/ushell/modules/Assistant.js +56 -0
- package/src/main/js/sap/ushell/modules/Notifications/NotificationsProvider.js +1 -1
- package/src/main/js/sap/ushell/modules/Search.js +1 -0
- package/src/main/js/sap/ushell/modules/loader/AssistantLoader.js +156 -0
- 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/renderer/Renderer.js +4 -5
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +96 -99
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +6 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +13 -13
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +3 -3
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.controller.js +0 -14
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.fragment.xml +0 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +5 -63
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +2 -2
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/BookmarkV2.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 +1 -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 +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +5 -5
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +1 -1
- 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 +13 -13
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +1 -1
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +3 -3
- package/src/main/js/sap/ushell/services/MessageBroker.js +3 -3
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +3 -3
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +20 -20
- 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 +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +2 -5
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +6 -7
- package/src/main/js/sap/ushell/services/SearchableContent.js +3 -5
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +52 -73
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLParsing.js +65 -47
- 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 +2 -10
- 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/RecentActivity.js +2 -2
- package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +5 -5
- 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/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/state/StateManager.js +9 -4
- package/src/main/js/sap/ushell/state/modules/BackNavigation.js +1 -1
- package/src/main/js/sap/ushell/state/modules/ContentDensity.js +1 -1
- package/src/main/js/sap/ushell/state/modules/Favicon.js +1 -1
- package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_belize_base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/ui/ShellHeader.js +4 -29
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +0 -14
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +11 -11
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +12 -12
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +113 -22
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.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/ShellUIServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/SmartBusiness.js +39 -2
- package/src/main/js/sap/ushell/utils/UrlParsing.js +335 -208
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
- package/src/main/js/sap/ushell/utils.js +26 -22
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +0 -2
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +0 -58
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +0 -35
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +0 -65
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's personalization service, which provides generic read and write access to the currently logged on user's
|
|
5
5
|
* personalization settings for the app currently executed in the shell.
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.143.0
|
|
8
8
|
* @deprecated since 1.120. Please use {@link sap.ushell.services.PersonalizationV2} instead.
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define([
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's personalization service, which provides generic read and write access to the currently logged on user's
|
|
5
5
|
* personalization settings for the app currently executed in the shell.
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.143.0
|
|
8
8
|
*/
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/base/Log",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This allows to enter simple postfix expressions and to test if an id complies with the expression.
|
|
5
5
|
* It can replace unsafe regular expressions that are vulnerable to ReDoS attacks.
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.143.0
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
sap.ui.define([], () => {
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The Unified Shell's PluginManager service. Allows handling the loading of Fiori Launchpad plugins.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.143.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
9
9
|
"sap/ui/thirdparty/jquery",
|
|
10
10
|
"sap/ushell/appIntegration/PostMessagePluginInterface",
|
|
11
|
-
"sap/ushell/services/PluginManager/Extensions",
|
|
12
11
|
"sap/ushell/UI5ComponentType",
|
|
13
12
|
"sap/ushell/utils",
|
|
14
13
|
"sap/ushell/Container",
|
|
@@ -17,7 +16,6 @@ sap.ui.define([
|
|
|
17
16
|
Log,
|
|
18
17
|
jQuery,
|
|
19
18
|
PostMessagePluginInterface,
|
|
20
|
-
fnGetExtensions,
|
|
21
19
|
UI5ComponentType,
|
|
22
20
|
ushellUtils,
|
|
23
21
|
Container,
|
|
@@ -207,8 +205,7 @@ sap.ui.define([
|
|
|
207
205
|
const oComponentOptions = JSON.parse(JSON.stringify(oPlugin));
|
|
208
206
|
const oApplicationProperties = {
|
|
209
207
|
ui5ComponentName: oComponentOptions.component,
|
|
210
|
-
url: oComponentOptions.url
|
|
211
|
-
getExtensions: fnGetExtensions.bind(null, oPlugin.component)
|
|
208
|
+
url: oComponentOptions.url
|
|
212
209
|
};
|
|
213
210
|
|
|
214
211
|
function makeRejectHandler (sErrorMessage) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The Unified Shell's Search for myHome.
|
|
5
5
|
*
|
|
6
|
-
* @version 1.
|
|
6
|
+
* @version 1.143.0
|
|
7
7
|
*/
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/base/Log",
|
|
@@ -63,8 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* @typedef SearchResults
|
|
67
|
-
* @type {object}
|
|
66
|
+
* @typedef {object} SearchResults
|
|
68
67
|
* @property {int} count the total number of results
|
|
69
68
|
* @property {object[]} data an array of search results
|
|
70
69
|
*/
|
|
@@ -133,10 +132,10 @@ sap.ui.define([
|
|
|
133
132
|
|
|
134
133
|
if (sUrl.startsWith("#")) {
|
|
135
134
|
if (sSearchTerm) {
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
138
|
-
|
|
139
|
-
sUrl = UrlParsing.constructShellHash(
|
|
135
|
+
const oParsedHash = UrlParsing.parseShellHash(sUrl);
|
|
136
|
+
if (oParsedHash) {
|
|
137
|
+
oParsedHash.params.searchTerm = sSearchTerm;
|
|
138
|
+
sUrl = UrlParsing.constructShellHash(oParsedHash);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview This module exposes the searchable content.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.143.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ushell/Config",
|
|
@@ -59,8 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
SearchableContent.COMPONENT_NAME = "sap/ushell/services/SearchableContent";
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* @typedef sap.ushell.services.SearchableContent.AppData
|
|
63
|
-
* @type {object}
|
|
62
|
+
* @typedef {object} sap.ushell.services.SearchableContent.AppData
|
|
64
63
|
* @property {string} id
|
|
65
64
|
* @property {string} title
|
|
66
65
|
* @property {string} subtitle
|
|
@@ -81,8 +80,7 @@ sap.ui.define([
|
|
|
81
80
|
*/
|
|
82
81
|
|
|
83
82
|
/**
|
|
84
|
-
* @typedef sap.ushell.services.SearchableContent.VizData
|
|
85
|
-
* @type {object}
|
|
83
|
+
* @typedef {object} sap.ushell.services.SearchableContent.VizData
|
|
86
84
|
* @property {string} id
|
|
87
85
|
* @property {string} vizId
|
|
88
86
|
* @property {string} vizType
|
|
@@ -103,9 +103,9 @@ sap.ui.define([
|
|
|
103
103
|
HashChanger.apply(this);
|
|
104
104
|
this._initializedByShellNav = false; // initialization flag for the shellNavigationService
|
|
105
105
|
this._bReloadApplication = false;
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
106
|
+
this._fnShellCallback = null;
|
|
107
|
+
this._appHashPrefix = "&/";
|
|
108
|
+
this._hashPrefix = "#";
|
|
109
109
|
this.aNavigationFilters = [];
|
|
110
110
|
this.NavigationFilterStatus = {
|
|
111
111
|
Continue: "Continue",
|
|
@@ -139,14 +139,12 @@ sap.ui.define([
|
|
|
139
139
|
/**
|
|
140
140
|
* Obtains the current shell hash (with #) urlDecoded
|
|
141
141
|
* Shortened(!)
|
|
142
|
-
* @returns {
|
|
142
|
+
* @returns {string} the shell hash
|
|
143
143
|
* @private
|
|
144
144
|
*/
|
|
145
|
-
ShellNavigationHashChanger.prototype.
|
|
146
|
-
const
|
|
147
|
-
return {
|
|
148
|
-
hash: `#${res?.shellPart || ""}`
|
|
149
|
-
};
|
|
145
|
+
ShellNavigationHashChanger.prototype._getCurrentShellHash = function () {
|
|
146
|
+
const oSplitHash = this._splitHash(hasher.getHash());
|
|
147
|
+
return `#${oSplitHash?.shellPart || ""}`;
|
|
150
148
|
};
|
|
151
149
|
|
|
152
150
|
/**
|
|
@@ -156,20 +154,10 @@ sap.ui.define([
|
|
|
156
154
|
* @returns {string} constructed full hash
|
|
157
155
|
* @private
|
|
158
156
|
*/
|
|
159
|
-
ShellNavigationHashChanger.prototype.
|
|
160
|
-
const
|
|
161
|
-
oShellHash.hash += sAppSpecific;
|
|
162
|
-
return oShellHash;
|
|
163
|
-
};
|
|
157
|
+
ShellNavigationHashChanger.prototype._constructHash = function (sAppSpecific) {
|
|
158
|
+
const sHash = this._getCurrentShellHash();
|
|
164
159
|
|
|
165
|
-
|
|
166
|
-
* internal, without #
|
|
167
|
-
* @param {object} oShellHash shell hash concept
|
|
168
|
-
* @returns {string} return constructed string
|
|
169
|
-
* @private
|
|
170
|
-
*/
|
|
171
|
-
ShellNavigationHashChanger.prototype.privconstructShellHash = function (oShellHash) {
|
|
172
|
-
return UrlParsing.constructShellHash(oShellHash);
|
|
160
|
+
return `${sHash}${sAppSpecific}`;
|
|
173
161
|
};
|
|
174
162
|
|
|
175
163
|
/** split a shell hash into app and shell specific part
|
|
@@ -180,7 +168,7 @@ sap.ui.define([
|
|
|
180
168
|
*/
|
|
181
169
|
// this method is deliberately restrictive to work only on proper hashes
|
|
182
170
|
// this may be made part of URLParser
|
|
183
|
-
ShellNavigationHashChanger.prototype.
|
|
171
|
+
ShellNavigationHashChanger.prototype._splitHash = function (sHash) {
|
|
184
172
|
if (sHash === undefined || sHash === null || sHash === "") {
|
|
185
173
|
return {
|
|
186
174
|
shellPart: null,
|
|
@@ -191,19 +179,19 @@ sap.ui.define([
|
|
|
191
179
|
}
|
|
192
180
|
// break down hash into parts
|
|
193
181
|
// "#SO-ABC~CONTXT?ABC=3A&DEF=4B&/detail/1?A=B");
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
182
|
+
const oParsedHash = UrlParsing.parseShellHash(sHash);
|
|
183
|
+
if (oParsedHash === undefined || oParsedHash === null) {
|
|
196
184
|
return null;
|
|
197
185
|
}
|
|
198
186
|
|
|
199
|
-
const oShellHashParams = (
|
|
200
|
-
const sAppSpecificRoute =
|
|
201
|
-
|
|
187
|
+
const oShellHashParams = (oParsedHash.params && !isEmptyObject(oParsedHash.params)) ? oParsedHash.params : null;
|
|
188
|
+
const sAppSpecificRoute = oParsedHash.appSpecificRoute;
|
|
189
|
+
oParsedHash.appSpecificRoute = undefined;
|
|
202
190
|
return {
|
|
203
|
-
shellPart:
|
|
191
|
+
shellPart: UrlParsing.stripLeadingHash(UrlParsing.constructShellHash(oParsedHash)) || null,
|
|
204
192
|
appSpecificRoute: sAppSpecificRoute || null, // ,"&/detail/1?A=B");
|
|
205
|
-
intent: (
|
|
206
|
-
&& (`${
|
|
193
|
+
intent: (oParsedHash.semanticObject && oParsedHash.action
|
|
194
|
+
&& (`${oParsedHash.semanticObject}-${oParsedHash.action}${oParsedHash.contextRaw || ""}`)) || null,
|
|
207
195
|
params: oShellHashParams
|
|
208
196
|
};
|
|
209
197
|
};
|
|
@@ -216,9 +204,9 @@ sap.ui.define([
|
|
|
216
204
|
* @param {boolean} bWriteHistory whether to create a history record (true, undefined) or replace the hash (false)
|
|
217
205
|
* @private
|
|
218
206
|
*/
|
|
219
|
-
ShellNavigationHashChanger.prototype.
|
|
207
|
+
ShellNavigationHashChanger.prototype._setHash = function (sFullHash, sAppHash, bWriteHistory) {
|
|
220
208
|
hasher.prependHash = "";
|
|
221
|
-
sFullHash =
|
|
209
|
+
sFullHash = UrlParsing.stripLeadingHash(sFullHash);
|
|
222
210
|
sAppHash = sAppHash || "";
|
|
223
211
|
if (bWriteHistory === undefined) {
|
|
224
212
|
bWriteHistory = true;
|
|
@@ -236,13 +224,6 @@ sap.ui.define([
|
|
|
236
224
|
}
|
|
237
225
|
};
|
|
238
226
|
|
|
239
|
-
ShellNavigationHashChanger.prototype.privstripLeadingHash = function (sHash) {
|
|
240
|
-
if (sHash[0] === "#") {
|
|
241
|
-
return sHash.substring(1);
|
|
242
|
-
}
|
|
243
|
-
return sHash;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
227
|
ShellNavigationHashChanger.prototype.registerNavigationFilter = function (fnFilter) {
|
|
247
228
|
if (typeof fnFilter !== "function") {
|
|
248
229
|
throw new Error("fnFilter must be a function");
|
|
@@ -523,16 +504,16 @@ sap.ui.define([
|
|
|
523
504
|
return oDeferred.promise();
|
|
524
505
|
}
|
|
525
506
|
|
|
526
|
-
const
|
|
507
|
+
const sHash = this._hrefForExternalNoEnc(oArgs);
|
|
527
508
|
if (bVerbose) {
|
|
528
509
|
return {
|
|
529
|
-
hash:
|
|
530
|
-
params:
|
|
531
|
-
skippedParams:
|
|
510
|
+
hash: sHash,
|
|
511
|
+
params: undefined,
|
|
512
|
+
skippedParams: undefined
|
|
532
513
|
};
|
|
533
514
|
}
|
|
534
515
|
|
|
535
|
-
return
|
|
516
|
+
return sHash;
|
|
536
517
|
};
|
|
537
518
|
|
|
538
519
|
/**
|
|
@@ -555,15 +536,15 @@ sap.ui.define([
|
|
|
555
536
|
ShellNavigationHashChanger.prototype.hrefForExternalNoEncAsync = async function (oArgs, bVerbose) {
|
|
556
537
|
let vResult;
|
|
557
538
|
|
|
558
|
-
const
|
|
539
|
+
const sHash = this._hrefForExternalNoEnc(oArgs);
|
|
559
540
|
if (bVerbose) {
|
|
560
541
|
vResult = {
|
|
561
|
-
hash:
|
|
562
|
-
params:
|
|
563
|
-
skippedParams:
|
|
542
|
+
hash: sHash,
|
|
543
|
+
params: undefined,
|
|
544
|
+
skippedParams: undefined
|
|
564
545
|
};
|
|
565
546
|
} else {
|
|
566
|
-
vResult =
|
|
547
|
+
vResult = sHash;
|
|
567
548
|
}
|
|
568
549
|
|
|
569
550
|
return vResult;
|
|
@@ -572,26 +553,24 @@ sap.ui.define([
|
|
|
572
553
|
/**
|
|
573
554
|
* Shortened(!)
|
|
574
555
|
* @param {object} oArgs arguments
|
|
575
|
-
* @returns {
|
|
556
|
+
* @returns {string} THE hash
|
|
576
557
|
*/
|
|
577
|
-
ShellNavigationHashChanger.prototype.
|
|
558
|
+
ShellNavigationHashChanger.prototype._hrefForExternalNoEnc = function (oArgs) {
|
|
578
559
|
if (oArgs === undefined) {
|
|
579
|
-
return this.
|
|
560
|
+
return this._getCurrentShellHash();
|
|
580
561
|
}
|
|
581
562
|
// construct url
|
|
582
563
|
if (oArgs && oArgs.target && (typeof oArgs.target.semanticObject === "string" || typeof oArgs.target.shellHash === "string")) {
|
|
583
|
-
return {
|
|
584
|
-
hash: `#${this.privconstructShellHash(oArgs)}`
|
|
585
|
-
};
|
|
564
|
+
return `#${UrlParsing.constructShellHash(oArgs)}`;
|
|
586
565
|
}
|
|
587
|
-
return this.
|
|
566
|
+
return this._getCurrentShellHash();
|
|
588
567
|
};
|
|
589
568
|
|
|
590
|
-
ShellNavigationHashChanger.prototype.
|
|
569
|
+
ShellNavigationHashChanger.prototype._getAppHash = function (oArgs) {
|
|
591
570
|
let sAppHash;
|
|
592
571
|
if (oArgs && oArgs.target && (typeof oArgs.target.shellHash === "string")) {
|
|
593
|
-
const
|
|
594
|
-
sAppHash =
|
|
572
|
+
const oParsedHash = UrlParsing.parseShellHash(oArgs.target.shellHash);
|
|
573
|
+
sAppHash = oParsedHash && oParsedHash.appSpecificRoute;
|
|
595
574
|
sAppHash = sAppHash && sAppHash.substring(2);
|
|
596
575
|
}
|
|
597
576
|
return sAppHash;
|
|
@@ -613,7 +592,7 @@ sap.ui.define([
|
|
|
613
592
|
* @private
|
|
614
593
|
*/
|
|
615
594
|
ShellNavigationHashChanger.prototype.hrefForAppSpecificHash = function (sAppHash) {
|
|
616
|
-
return encodeURI(this.
|
|
595
|
+
return encodeURI(this._constructHash(this._appHashPrefix + sAppHash));
|
|
617
596
|
};
|
|
618
597
|
|
|
619
598
|
/**
|
|
@@ -637,9 +616,9 @@ sap.ui.define([
|
|
|
637
616
|
* @private
|
|
638
617
|
*/
|
|
639
618
|
ShellNavigationHashChanger.prototype.toExternal = function (oArgs, oComponent, bWriteHistory) {
|
|
640
|
-
const sHash = this.
|
|
641
|
-
const sAppHash = this.
|
|
642
|
-
this.
|
|
619
|
+
const sHash = this._hrefForExternalNoEnc(oArgs);
|
|
620
|
+
const sAppHash = this._getAppHash(oArgs);
|
|
621
|
+
this._setHash(sHash, sAppHash, bWriteHistory);
|
|
643
622
|
return Promise.resolve();
|
|
644
623
|
};
|
|
645
624
|
|
|
@@ -651,8 +630,8 @@ sap.ui.define([
|
|
|
651
630
|
* @private
|
|
652
631
|
*/
|
|
653
632
|
ShellNavigationHashChanger.prototype.toAppHash = function (sAppHash, bWriteHistory) {
|
|
654
|
-
const sHash = this.
|
|
655
|
-
this.
|
|
633
|
+
const sHash = this._constructHash(this._appHashPrefix + sAppHash);
|
|
634
|
+
this._setHash(sHash, sAppHash, bWriteHistory);
|
|
656
635
|
};
|
|
657
636
|
|
|
658
637
|
/**
|
|
@@ -669,7 +648,7 @@ sap.ui.define([
|
|
|
669
648
|
return false;
|
|
670
649
|
}
|
|
671
650
|
|
|
672
|
-
this.
|
|
651
|
+
this._fnShellCallback = fnShellCallback;
|
|
673
652
|
|
|
674
653
|
hasher.changed.add(this.treatHashChanged, this); // parse hash changes
|
|
675
654
|
|
|
@@ -698,7 +677,7 @@ sap.ui.define([
|
|
|
698
677
|
return false;
|
|
699
678
|
}
|
|
700
679
|
// fire initial hash change event for the app-specific part
|
|
701
|
-
const oNewHash = this.
|
|
680
|
+
const oNewHash = this._splitHash(hasher.getHash());
|
|
702
681
|
const sAppSpecificRoute = (oNewHash?.appSpecificRoute || " ").substring(2); // strip &/
|
|
703
682
|
const sDelimiterIfNecessary = sAppSpecificRoute ? "&/" : "";
|
|
704
683
|
const sShellPart = oNewHash?.shellPart || "";
|
|
@@ -768,8 +747,8 @@ sap.ui.define([
|
|
|
768
747
|
let bShouldKeep;
|
|
769
748
|
newHash = UrlShortening.expandHash(newHash); // do synchronous expansion if possible
|
|
770
749
|
oldHash = UrlShortening.expandHash(oldHash); // if not, the parameter remains and is expanded during NavTargetResolutionInternal
|
|
771
|
-
const oNewHash = this.
|
|
772
|
-
let oOldHash = this.
|
|
750
|
+
const oNewHash = this._splitHash(newHash);
|
|
751
|
+
let oOldHash = this._splitHash(oldHash);
|
|
773
752
|
|
|
774
753
|
if (!oNewHash) {
|
|
775
754
|
// illegal new hash; pass the full string and an error object
|
|
@@ -781,7 +760,7 @@ sap.ui.define([
|
|
|
781
760
|
oldShellHash: (oOldHash ? oOldHash.shellPart : oldHash),
|
|
782
761
|
error: oError
|
|
783
762
|
});
|
|
784
|
-
this.
|
|
763
|
+
this._fnShellCallback(newHash, null, (oOldHash ? oOldHash.shellPart : oldHash), (oOldHash ? oOldHash.appSpecificRoute : null), oError);
|
|
785
764
|
this._endFesrInteraction();
|
|
786
765
|
this.setReloadApplication(false);
|
|
787
766
|
return;
|
|
@@ -929,7 +908,7 @@ sap.ui.define([
|
|
|
929
908
|
oldAppSpecificRouteNoSeparator: this._removeInnerAppSeparator(oOldHash.appSpecificRoute),
|
|
930
909
|
newAppSpecificRouteNoSeparator: this._removeInnerAppSeparator(oNewHash.appSpecificRoute)
|
|
931
910
|
});
|
|
932
|
-
this.
|
|
911
|
+
this._fnShellCallback(oNewHash.shellPart, oNewHash.appSpecificRoute, oOldHash.shellPart, oOldHash.appSpecificRoute);
|
|
933
912
|
|
|
934
913
|
this._endFesrInteraction();
|
|
935
914
|
this.setReloadApplication(false);
|
|
@@ -974,7 +953,7 @@ sap.ui.define([
|
|
|
974
953
|
* @private
|
|
975
954
|
*/
|
|
976
955
|
ShellNavigationHashChanger.prototype.getAppHash = function () {
|
|
977
|
-
const oNewHash = this.
|
|
956
|
+
const oNewHash = this._splitHash(hasher.getHash());
|
|
978
957
|
const sAppSpecificRoute = (oNewHash?.appSpecificRoute || " ").substring(2); // strip &/
|
|
979
958
|
return sAppSpecificRoute;
|
|
980
959
|
};
|
|
@@ -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.143.0
|
|
16
16
|
*
|
|
17
17
|
* @deprecated since 1.112. Please use the CrossApplicationNavigation service instead.
|
|
18
18
|
*/
|
|
@@ -27,10 +27,69 @@ sap.ui.define([
|
|
|
27
27
|
) => {
|
|
28
28
|
"use strict";
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @typedef {sap.ushell.services.URLParsing.DecomposedHash|sap.ushell.services.URLParsing.Target|sap.ushell.services.URLParsing.SimpleTarget} sap.ushell.services.URLParsing.ShellHash
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef {object} sap.ushell.services.URLParsing.DecomposedHash
|
|
36
|
+
* Describes the result of {@link #parseShellHash}.
|
|
37
|
+
*
|
|
38
|
+
* @property {string} semanticObject the semantic object
|
|
39
|
+
* @property {string} action the action
|
|
40
|
+
* @property {string} contextRaw the raw context string
|
|
41
|
+
* @property {Object<string, string[]>} params the parameters
|
|
42
|
+
* @property {string} [appStateKey] the app state key
|
|
43
|
+
* @property {string} appSpecificRoute the app specific route
|
|
44
|
+
*
|
|
45
|
+
* @since 1.120.0
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @typedef {object} sap.ushell.services.URLParsing.SimpleTarget
|
|
51
|
+
* Commonly used by services like {@link sap.ushell.services.Navigation}.
|
|
52
|
+
* Use this type for edge cases only. Use {@link sap.ushell.services.URLParsing.DecomposedHash} instead.
|
|
53
|
+
* This type ignores all other properties
|
|
54
|
+
*
|
|
55
|
+
* @property {object} target The target object
|
|
56
|
+
* @property {sap.ushell.services.Navigation.TargetIntent} target.shellHash The shell hash
|
|
57
|
+
*
|
|
58
|
+
* @since 1.124.0
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @typedef {object} sap.ushell.services.URLParsing.Target
|
|
64
|
+
* Commonly used by services like {@link sap.ushell.services.Navigation}
|
|
65
|
+
*
|
|
66
|
+
* @property {object} target The target object
|
|
67
|
+
* @property {string} target.semanticObject the semantic object
|
|
68
|
+
* @property {string} target.action the action
|
|
69
|
+
* @property {string} target.contextRaw the raw context string
|
|
70
|
+
* @property {Object<string, string|string[]>} params the parameters
|
|
71
|
+
* @property {string} appSpecificRoute the app specific route
|
|
72
|
+
* @property {string} [appStateKey] the app state key
|
|
73
|
+
*
|
|
74
|
+
* @since 1.142.0
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @typedef {string|int} sap.ushell.services.URLParsing.URLValue
|
|
80
|
+
* Type for Url value
|
|
81
|
+
* @since 1.120.0
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @typedef {object} sap.ushell.services.URLParsing.SplitHash
|
|
87
|
+
* Type for SplitHash
|
|
88
|
+
* @property {sap.ui.core.URI} shellPart the shell part of the hash
|
|
89
|
+
* @property {sap.ui.core.URI} appSpecificRoute the app specific route part of the hash
|
|
90
|
+
* @since 1.120.0
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
34
93
|
|
|
35
94
|
/**
|
|
36
95
|
* @alias sap.ushell.services.URLParsing
|
|
@@ -163,13 +222,6 @@ sap.ui.define([
|
|
|
163
222
|
return UrlParsingUtil.isIntentUrlAsync(sUrl);
|
|
164
223
|
};
|
|
165
224
|
|
|
166
|
-
/**
|
|
167
|
-
* @typedef {string|int} sap.ushell.services.URLParsing.URLValue
|
|
168
|
-
* Type for Url value
|
|
169
|
-
* @since 1.120.0
|
|
170
|
-
* @public
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
225
|
/**
|
|
174
226
|
* This method parses parameters from a URI query string (starting with ?)
|
|
175
227
|
* and puts the result into a parameter object.
|
|
@@ -232,31 +284,6 @@ sap.ui.define([
|
|
|
232
284
|
return UrlParsingUtil.urlParametersToString(oParams, sDelimiter, sAssign);
|
|
233
285
|
};
|
|
234
286
|
|
|
235
|
-
/**
|
|
236
|
-
* @typedef {object} sap.ushell.services.URLParsing.DecomposedHash
|
|
237
|
-
* Type for DecomposedHash
|
|
238
|
-
* @property {string} semanticObject the semantic object
|
|
239
|
-
* @property {string} action the action
|
|
240
|
-
* @property {string} contextRaw the raw context string
|
|
241
|
-
* @property {Object<string, string[]>} params the parameters
|
|
242
|
-
* @property {string} [appStateKey] the app state key
|
|
243
|
-
* @property {string} [appSpecificRoute] the app specific route
|
|
244
|
-
*
|
|
245
|
-
* @since 1.120.0
|
|
246
|
-
* @public
|
|
247
|
-
*/
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* @typedef {object} sap.ushell.services.URLParsing.SimpleDecomposedHash
|
|
251
|
-
* Simple Type for DecomposedHash with shell hash as part of the target property.
|
|
252
|
-
* Use this type for edge cases only. Use {@link sap.ushell.services.URLParsing.DecomposedHash} instead.
|
|
253
|
-
* @property {object} target The target object
|
|
254
|
-
* @property {sap.ushell.services.Navigation.TargetIntent} target.shallHash The shell hash
|
|
255
|
-
*
|
|
256
|
-
* @since 1.124.0
|
|
257
|
-
* @public
|
|
258
|
-
*/
|
|
259
|
-
|
|
260
287
|
/**
|
|
261
288
|
* Decompose a shell hash into the respective parts
|
|
262
289
|
*
|
|
@@ -283,18 +310,9 @@ sap.ui.define([
|
|
|
283
310
|
* @private
|
|
284
311
|
*/
|
|
285
312
|
this.privstripLeadingHash = function (sHash) {
|
|
286
|
-
return UrlParsingUtil.
|
|
313
|
+
return UrlParsingUtil.stripLeadingHash(sHash);
|
|
287
314
|
};
|
|
288
315
|
|
|
289
|
-
/**
|
|
290
|
-
* @typedef {object} sap.ushell.services.URLParsing.SplitHash
|
|
291
|
-
* Type for SplitHash
|
|
292
|
-
* @property {sap.ui.core.URI} shellPart the shell part of the hash
|
|
293
|
-
* @property {sap.ui.core.URI} appSpecificRoute the app specific route part of the hash
|
|
294
|
-
* @since 1.120.0
|
|
295
|
-
* @public
|
|
296
|
-
*/
|
|
297
|
-
|
|
298
316
|
/**
|
|
299
317
|
* split a Unified Shell compliant hash into an Object containing a shell specific part and an app specific parts</br>
|
|
300
318
|
* for non compliant hash strings, the empty object {} is returned.
|
|
@@ -326,7 +344,7 @@ sap.ui.define([
|
|
|
326
344
|
* compose a shell Hash from it's respective parts
|
|
327
345
|
* Note that it also may append an app specific route!
|
|
328
346
|
*
|
|
329
|
-
* @param {sap.ushell.services.URLParsing.
|
|
347
|
+
* @param {sap.ushell.services.URLParsing.ShellHash} [oShellHash] The parts of a shell hash.
|
|
330
348
|
* Its action must be a valid action,
|
|
331
349
|
* It may not contain "?" or directly a parameter string.
|
|
332
350
|
* Note: In general it is preferred to add an appStateKey directly to the params object.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Service wrapper for the sap/ushell/utils/UrlShortening module.
|
|
7
7
|
* @deprecated since 1.118. Please use the UrlShortening module directly.
|
|
8
8
|
*
|
|
9
|
-
* @version 1.
|
|
9
|
+
* @version 1.143.0
|
|
10
10
|
*/
|
|
11
11
|
sap.ui.define(["sap/ushell/utils/UrlShortening"], (UrlShortening) => {
|
|
12
12
|
"use strict";
|