@sapui5/sap.ushell 1.128.1 → 1.129.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/Fiori20Adapter.js +32 -10
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +17 -14
- 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/UIActions.js +11 -0
- 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/AppVariantPersonalizationAdapter.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 +1 -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/NavTargetResolutionInternalAdapter.js +2 -2
- 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/api/Copilot.js +42 -0
- package/src/main/js/sap/ushell/api/Inbox.js +5 -164
- package/src/main/js/sap/ushell/api/S4MyHome.js +132 -0
- package/src/main/js/sap/ushell/api/common/ComponentInstantiation.js +215 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +26 -23
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en_US_sappsd.properties +3 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en_US_saptrc.properties +5 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en_US_sappsd.properties +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en_US_saptrc.properties +2 -2
- 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/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 +10 -12
- 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/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 +2 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.model.js +2 -8
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +1 -3
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +5 -7
- package/src/main/js/sap/ushell/components/appfinder/Component.js +9 -9
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +6 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +689 -592
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +29 -18
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +5 -5
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +6 -163
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +9 -4
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en_US_sappsd.properties +4 -4
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en_US_saptrc.properties +37 -37
- package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en_US_sappsd.properties +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en_US_saptrc.properties +9 -9
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_US_sappsd.properties +32 -32
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_US_saptrc.properties +109 -109
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/components/container/IframePOSTUtils.js +1 -1
- package/src/main/js/sap/ushell/components/container/resources/resources_en_US_saptrc.properties +6 -6
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +18 -15
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +27 -20
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +100 -7
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +13 -8
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +16 -0
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ar.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_bg.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ca.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cs.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cy.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_da.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_de.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_el.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_GB.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_sappsd.properties +7 -5
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +7 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saptrc.properties +26 -24
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es_MX.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_et.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fi.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr_CA.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hi.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hr.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hu.properties +6 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_id.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_it.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_iw.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ja.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_kk.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ko.properties +6 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lt.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lv.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_mk.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ms.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_nl.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_no.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pl.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt_PT.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ro.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ru.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sh.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sk.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sl.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sr.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sv.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_th.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_tr.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_uk.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_vi.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_CN.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_TW.properties +4 -1
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +275 -127
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +61 -24
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchList.fragment.xml +73 -0
- package/src/main/js/sap/ushell/components/contentFinder/view/ContentFinderDialog.view.xml +20 -10
- 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/contentFinderStandalone/manifestAppSearch.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_ar.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_bg.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_ca.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_cnr.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_cs.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_cy.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_da.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_de.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_el.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_en.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_en_GB.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_en_US_saprigi.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_es.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_es_MX.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_et.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_fi.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_fr.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_fr_CA.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_hi.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_hr.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_hu.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_id.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_it.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_iw.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_ja.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_kk.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_ko.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_lt.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_lv.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_mk.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_ms.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_nl.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_no.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_pl.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_pt.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_pt_PT.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_ro.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_ru.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_sh.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_sk.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_sl.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_sr.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_sv.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_th.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_tr.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_uk.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_vi.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_zh_CN.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_zh_TW.properties +3 -0
- 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 +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +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 +12 -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/FloatingContainer/Component.js +1158 -0
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/FloatingContainer.fragment.xml +17 -0
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/controls/FloatingContainer.js +55 -0
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +84 -0
- 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/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 +1 -1
- 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/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +3 -0
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.view.xml +3 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +15 -6
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +43 -62
- 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/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +9 -5
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +8 -5
- 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_en_US_sappsd.properties +27 -26
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saptrc.properties +68 -67
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/view/WorkPageRuntime.view.xml +3 -4
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/iconfonts.js +36 -420
- package/src/main/js/sap/ushell/library.js +1 -1
- 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/plugins/rta/i18n/i18n_en_US_sappsd.properties +3 -3
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_en_US_saptrc.properties +8 -8
- package/src/main/js/sap/ushell/renderer/Renderer.js +127 -127
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +694 -1182
- package/src/main/js/sap/ushell/renderer/Shell.view.js +38 -102
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_sappsd.properties +128 -130
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saptrc.properties +989 -991
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +2 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +1 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +1 -0
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/{components/_HeaderManager → renderer/shellHeader}/ShellHeader.controller.js +1 -5
- package/src/main/js/sap/ushell/{ui → renderer/shellHeader}/ShellHeader.fragment.xml +6 -3
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +36 -100
- 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 +1 -1
- 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 +44 -156
- 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.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 +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
- 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 +1 -1
- 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/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/PluginManager.js +1 -1
- 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 +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- 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 +5 -4
- 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/utils.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 +100 -65
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +2 -3
- package/src/main/js/sap/ushell/services/UserRecents/RecentAppsUsage.js +4 -4
- package/src/main/js/sap/ushell/services/UserRecents/RecentsList.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 +2 -2
- 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/BindingHelper.js +79 -0
- package/src/main/js/sap/ushell/state/StateManager.js +4 -2
- package/src/main/js/sap/ushell/state/StrategyFactory/FloatingContainerStrategy.js +36 -0
- package/src/main/js/sap/ushell/state/StrategyFactory.js +6 -0
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/UserSettings.less +0 -12
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.json +393 -384
- 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/sap_belize_base/UserSettings.less +0 -13
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/UserSettings.less +0 -13
- package/src/main/js/sap/ushell/themes/sap_hcb/base_UserSettings.less +0 -13
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +18 -6
- package/src/main/js/sap/ushell/ui/bookmark/SaveOnPage.view.xml +6 -6
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +3 -0
- 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/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/ShellUIService.js +811 -22
- package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +477 -0
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/WindowUtils.js +21 -18
- package/src/main/js/sap/ushell/utils/tilecard/resources/resources_en_US_sappsd.properties +5 -0
- package/src/main/js/sap/ushell/utils/tilecard/resources/resources_en_US_saptrc.properties +5 -0
- package/src/main/js/sap/ushell/utils/workpage/DestinationResolver.js +68 -25
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +64 -9
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +3 -2
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/resources/resources.properties +14 -2
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ar.properties +28 -16
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_bg.properties +29 -17
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ca.properties +26 -14
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_cnr.properties +11 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_cs.properties +15 -3
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_cy.properties +15 -3
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_da.properties +19 -7
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_de.properties +16 -4
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_el.properties +16 -4
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en.properties +13 -2
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_GB.properties +18 -6
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_sappsd.properties +28 -27
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saprigi.properties +78 -66
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saptrc.properties +68 -67
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_es.properties +44 -32
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_es_MX.properties +16 -4
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_et.properties +24 -12
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_fi.properties +16 -4
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_fr.properties +29 -17
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_fr_CA.properties +19 -7
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_hi.properties +20 -8
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_hr.properties +27 -15
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_hu.properties +19 -7
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_id.properties +13 -1
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_it.properties +18 -6
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_iw.properties +13 -1
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ja.properties +19 -7
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_kk.properties +21 -9
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ko.properties +14 -2
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_lt.properties +19 -7
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_lv.properties +31 -19
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_mk.properties +11 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ms.properties +17 -5
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_nl.properties +17 -5
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_no.properties +16 -4
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_pl.properties +17 -5
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_pt.properties +17 -5
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_pt_PT.properties +34 -22
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ro.properties +15 -3
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ru.properties +15 -3
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sh.properties +11 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sk.properties +16 -4
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sl.properties +27 -15
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sr.properties +11 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sv.properties +14 -2
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_th.properties +18 -6
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_tr.properties +22 -10
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_uk.properties +15 -3
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_vi.properties +24 -12
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_zh_CN.properties +13 -1
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_zh_TW.properties +17 -5
- package/src/main/js/sap/ushell/utils.js +14 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +5 -3
- 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/ui/shell/FloatingContainer.js +0 -238
- package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +0 -746
- /package/src/main/js/sap/ushell/{ui → renderer}/RendererRootView.fragment.xml +0 -0
|
@@ -1,746 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
-
|
|
3
|
-
sap.ui.define([
|
|
4
|
-
"sap/ui/base/EventProvider",
|
|
5
|
-
"sap/ui/thirdparty/hasher",
|
|
6
|
-
"sap/base/util/isPlainObject",
|
|
7
|
-
"sap/base/util/Version",
|
|
8
|
-
"sap/base/Log",
|
|
9
|
-
"sap/ushell/utils/UrlParsing",
|
|
10
|
-
"sap/ui/core/Configuration"
|
|
11
|
-
], function (
|
|
12
|
-
EventProvider,
|
|
13
|
-
hasher,
|
|
14
|
-
isPlainObject,
|
|
15
|
-
Version,
|
|
16
|
-
Log,
|
|
17
|
-
UrlParsing,
|
|
18
|
-
Configuration
|
|
19
|
-
) {
|
|
20
|
-
"use strict";
|
|
21
|
-
|
|
22
|
-
return function (oSetting) {
|
|
23
|
-
var ServiceFactoryRegistry = oSetting.serviceRegistry;
|
|
24
|
-
var ServiceFactory = oSetting.serviceFactory;
|
|
25
|
-
var Service = oSetting.service;
|
|
26
|
-
|
|
27
|
-
var sLastSetTitle;
|
|
28
|
-
|
|
29
|
-
var oEventProvider = new EventProvider();
|
|
30
|
-
|
|
31
|
-
var O_EVENT_NAME = {
|
|
32
|
-
hierarchyChanged: "hierarchyChanged",
|
|
33
|
-
relatedAppsChanged: "relatedAppsChanged",
|
|
34
|
-
titleChanged: "titleChanged",
|
|
35
|
-
backNavigationChanged: "backNavigationChanged"
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var sActiveComponentId;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Returns an instance of the ShellUIService. This constructor must only be
|
|
42
|
-
* called internally by the Fiori Launchpad renderer and never by
|
|
43
|
-
* applications.
|
|
44
|
-
*
|
|
45
|
-
* Instead, this service should be consumed by app components as described
|
|
46
|
-
* in the overview section of this class.
|
|
47
|
-
*
|
|
48
|
-
* @alias sap.ushell.ui5service.ShellUIService
|
|
49
|
-
* @class
|
|
50
|
-
*
|
|
51
|
-
* @classdesc The Unified Shell's ShellUIService service.
|
|
52
|
-
*
|
|
53
|
-
* Allows apps to interact with the Fiori Launchpad UI.
|
|
54
|
-
* The service is injected in the app components by the FLP renderer before the corresponding apps start.
|
|
55
|
-
* To consume the service, app components should declare it in their "manifest.json" as follows:
|
|
56
|
-
* <pre>
|
|
57
|
-
* {
|
|
58
|
-
* ...
|
|
59
|
-
* "sap.ui5": {
|
|
60
|
-
* "services" : {
|
|
61
|
-
* "ShellUIService": {
|
|
62
|
-
* "factoryName": "sap.ushell.ui5service.ShellUIService"
|
|
63
|
-
* }
|
|
64
|
-
* }
|
|
65
|
-
* }
|
|
66
|
-
* ...
|
|
67
|
-
* }
|
|
68
|
-
* </pre>
|
|
69
|
-
*
|
|
70
|
-
* The service can be then retrieved and consumed from the app root component
|
|
71
|
-
* as in the following example:
|
|
72
|
-
* <pre>
|
|
73
|
-
* // Component.js (the app root component)
|
|
74
|
-
* ...
|
|
75
|
-
* this.getService("ShellUIService").then( // promise is returned
|
|
76
|
-
* function (oService) {
|
|
77
|
-
* oService.setTitle("Application Title");
|
|
78
|
-
* },
|
|
79
|
-
* function (oError) {
|
|
80
|
-
* Log.error("Cannot get ShellUIService", oError, "my.app.Component");
|
|
81
|
-
* }
|
|
82
|
-
* );
|
|
83
|
-
* ...
|
|
84
|
-
* </pre>
|
|
85
|
-
*
|
|
86
|
-
* The ShellUIService can work together with the routing defined in a UI5
|
|
87
|
-
* app to set title and hierarchy automatically, as the navigation within
|
|
88
|
-
* the app occurs. This can be achieved by enabling the ShellUIService to
|
|
89
|
-
* load instantly and configuring one or both <code>setTitle</code> and
|
|
90
|
-
* <code>setHierarchy</code> options to
|
|
91
|
-
* <code>auto</code> in the app manifest, as shown in the example below:
|
|
92
|
-
*
|
|
93
|
-
* <pre>
|
|
94
|
-
* {
|
|
95
|
-
* "sap.ui5": {
|
|
96
|
-
* "services" : {
|
|
97
|
-
* "ShellUIService": {
|
|
98
|
-
* "lazy": false,
|
|
99
|
-
* "factoryName": "sap.ushell.ui5service.ShellUIService",
|
|
100
|
-
* "settings": {
|
|
101
|
-
* "setHierarchy": "auto",
|
|
102
|
-
* "setTitle": "auto"
|
|
103
|
-
* }
|
|
104
|
-
* }
|
|
105
|
-
* }
|
|
106
|
-
* }
|
|
107
|
-
* }
|
|
108
|
-
* </pre>
|
|
109
|
-
*
|
|
110
|
-
* Note that the <code>setHierarchy</code> or <code>setTitle</code>
|
|
111
|
-
* methods should not be actively called by the application when title and
|
|
112
|
-
* hierarchy are set automatically.
|
|
113
|
-
*
|
|
114
|
-
* <strong>Note:</strong> Please be aware that the sapFiori2Adaptation configuration
|
|
115
|
-
* of the application may cause the ShellUIService service to work incorrectly.
|
|
116
|
-
* We recommend to disable the sapFiori2Adaptation configuration for the new applications
|
|
117
|
-
* if you use ShellUIService.
|
|
118
|
-
*
|
|
119
|
-
* @param {object} oCallerContext
|
|
120
|
-
* The context in which the service was instantiated. Must have the
|
|
121
|
-
* format:
|
|
122
|
-
* <pre>
|
|
123
|
-
* {
|
|
124
|
-
* scopeType: "component",
|
|
125
|
-
* scopeObject: [a UI5 Component in the sap.ushell package]
|
|
126
|
-
* }
|
|
127
|
-
* </pre>
|
|
128
|
-
*
|
|
129
|
-
* @public
|
|
130
|
-
* @hideconstructor
|
|
131
|
-
* @extends sap.ui.core.service.Service
|
|
132
|
-
* @since 1.38.0
|
|
133
|
-
*/
|
|
134
|
-
// @ts-ignore
|
|
135
|
-
var ShellUIService = Service.extend("sap.ushell.ui5service.ShellUIService", /** @lends sap.ushell.ui5service.ShellUIService.prototype */ {
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Defines essential information about an app.
|
|
139
|
-
*
|
|
140
|
-
* Example:
|
|
141
|
-
* <pre>
|
|
142
|
-
* {
|
|
143
|
-
* title: "App 1",
|
|
144
|
-
* icon: "sap-icon://folder",
|
|
145
|
-
* subtitle: "go to app 1",
|
|
146
|
-
* intent: "#Action-toapp1"
|
|
147
|
-
* }
|
|
148
|
-
* </pre>
|
|
149
|
-
*
|
|
150
|
-
* @typedef {object} sap.ushell.ui5service.ShellUIService.AppInfo
|
|
151
|
-
* @property {string} title The title of the app.
|
|
152
|
-
* @property {string} icon The icon src representing the app.
|
|
153
|
-
* @property {string} [subtitle] An optional subtitle of the app.
|
|
154
|
-
* @property {string} intent The navigation intent of the app.
|
|
155
|
-
*
|
|
156
|
-
* @since 1.120.0
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
init: function () {
|
|
161
|
-
// Service injection
|
|
162
|
-
var that = this;
|
|
163
|
-
var oPublicInterface = this.getInterface();
|
|
164
|
-
|
|
165
|
-
// Only one component can set/get at a given time. Here we try to
|
|
166
|
-
// avoid that no yet-to-be-destroyed apps call set/get methods by
|
|
167
|
-
// giving priority to the last instantiated component.
|
|
168
|
-
oPublicInterface.init = function () {
|
|
169
|
-
that._amendPublicServiceInstance.call(
|
|
170
|
-
that, // always the "private" service
|
|
171
|
-
this // public service instance
|
|
172
|
-
);
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
ServiceFactoryRegistry.register(
|
|
176
|
-
"sap.ushell.ui5service.ShellUIService",
|
|
177
|
-
new ServiceFactory(oPublicInterface)
|
|
178
|
-
);
|
|
179
|
-
},
|
|
180
|
-
/**
|
|
181
|
-
* Sets the id of the active component, that is, the component allowed
|
|
182
|
-
* to call public methods of this service. This method is mainly here
|
|
183
|
-
* for supportability purposes.
|
|
184
|
-
*
|
|
185
|
-
* @param {string} sId
|
|
186
|
-
* The id of the active component.
|
|
187
|
-
* @private
|
|
188
|
-
* @since 1.38.0
|
|
189
|
-
*/
|
|
190
|
-
_setActiveComponentId: function (sId) {
|
|
191
|
-
sActiveComponentId = sId;
|
|
192
|
-
},
|
|
193
|
-
/**
|
|
194
|
-
* Getter for the id of the active component. This method is mainly
|
|
195
|
-
* here for supportability purposes.
|
|
196
|
-
*
|
|
197
|
-
* @returns {string}
|
|
198
|
-
* The id of the component currently active in the Launchpad.
|
|
199
|
-
* @private
|
|
200
|
-
* @since 1.38.0
|
|
201
|
-
*/
|
|
202
|
-
_getActiveComponentId: function () {
|
|
203
|
-
return sActiveComponentId;
|
|
204
|
-
},
|
|
205
|
-
/**
|
|
206
|
-
* Determines whether the hierarchy should be set automatically
|
|
207
|
-
* using the UI5 router for the given App component.
|
|
208
|
-
*
|
|
209
|
-
* @param {object} oAppComponent
|
|
210
|
-
* The UI5 App root component.
|
|
211
|
-
*
|
|
212
|
-
* @returns {boolean}
|
|
213
|
-
* Whether the hierarchy should be set automatically in the given
|
|
214
|
-
* app component.
|
|
215
|
-
*
|
|
216
|
-
* @private
|
|
217
|
-
* @since 1.44.0
|
|
218
|
-
*/
|
|
219
|
-
_shouldEnableAutoHierarchy: function (oAppComponent) {
|
|
220
|
-
return typeof oAppComponent.getManifestEntry === "function"
|
|
221
|
-
&& oAppComponent.getManifestEntry("/sap.ui5/services/ShellUIService/settings/setHierarchy") === "auto";
|
|
222
|
-
},
|
|
223
|
-
/**
|
|
224
|
-
* Determines whether the title should be set automatically using the
|
|
225
|
-
* UI5 router for the given App component.
|
|
226
|
-
*
|
|
227
|
-
* @param {object} oAppComponent
|
|
228
|
-
* The UI5 App root component.
|
|
229
|
-
*
|
|
230
|
-
* @returns {boolean}
|
|
231
|
-
* Whether the title should be set automatically in the given
|
|
232
|
-
* app component.
|
|
233
|
-
*
|
|
234
|
-
* @private
|
|
235
|
-
* @since 1.44.0
|
|
236
|
-
*/
|
|
237
|
-
_shouldEnableAutoTitle: function (oAppComponent) {
|
|
238
|
-
return typeof oAppComponent.getManifestEntry === "function"
|
|
239
|
-
&& oAppComponent.getManifestEntry("/sap.ui5/services/ShellUIService/settings/setTitle") === "auto";
|
|
240
|
-
},
|
|
241
|
-
/**
|
|
242
|
-
* Enables automatic <code>setHierarchy</code> calls based on
|
|
243
|
-
* UI5 Router on the given app component.
|
|
244
|
-
*
|
|
245
|
-
* @param {object} oAppComponent
|
|
246
|
-
* The UI5 root app component with a router.
|
|
247
|
-
*
|
|
248
|
-
* @private
|
|
249
|
-
* @since 1.44.0
|
|
250
|
-
*/
|
|
251
|
-
_enableAutoHierarchy: function (oAppComponent) {
|
|
252
|
-
var that = this;
|
|
253
|
-
var oRouter = oAppComponent.getRouter && oAppComponent.getRouter();
|
|
254
|
-
if (!oRouter) {
|
|
255
|
-
Log.error(
|
|
256
|
-
"Could not enable automatic setHierarchy on the current app",
|
|
257
|
-
"Router could not be obtained on the app root component via getRouter",
|
|
258
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
259
|
-
);
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
oRouter.attachTitleChanged(function (oEvent) {
|
|
264
|
-
var aHistory = oEvent.getParameter("history");
|
|
265
|
-
that.setHierarchy(aHistory.reverse().map(function (oUi5HierarchyItem) {
|
|
266
|
-
var sShellHash = that._getCurrentShellHashWithoutAppRoute();
|
|
267
|
-
|
|
268
|
-
return {
|
|
269
|
-
title: oUi5HierarchyItem.title,
|
|
270
|
-
intent: sShellHash + "&/" + oUi5HierarchyItem.hash
|
|
271
|
-
};
|
|
272
|
-
}));
|
|
273
|
-
});
|
|
274
|
-
},
|
|
275
|
-
/**
|
|
276
|
-
* Enables automatic <code>setTitle</code> calls based on
|
|
277
|
-
* UI5 Router on the given app component.
|
|
278
|
-
*
|
|
279
|
-
* @param {object} oAppComponent
|
|
280
|
-
* The UI5 root app component with a router.
|
|
281
|
-
*
|
|
282
|
-
* @private
|
|
283
|
-
* @since 1.44.0
|
|
284
|
-
*/
|
|
285
|
-
_enableAutoTitle: function (oAppComponent) {
|
|
286
|
-
var that = this;
|
|
287
|
-
var oRouter = oAppComponent.getRouter && oAppComponent.getRouter();
|
|
288
|
-
if (!oRouter) {
|
|
289
|
-
Log.error(
|
|
290
|
-
"Could not enable automatic setTitle on the current app",
|
|
291
|
-
"Router could not be obtained on the app root component via getRouter",
|
|
292
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
293
|
-
);
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
// set the initial title
|
|
298
|
-
var oTitleHistory = oRouter.getTitleHistory()[0];
|
|
299
|
-
if (oTitleHistory && oTitleHistory.title) {
|
|
300
|
-
setTimeout(function () {
|
|
301
|
-
that.setTitle(oTitleHistory.title);
|
|
302
|
-
}, 0);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
oRouter.attachTitleChanged(function (oEvent) {
|
|
306
|
-
// set title after navigation
|
|
307
|
-
var sTitle = oEvent.getParameter("title");
|
|
308
|
-
that.setTitle(sTitle);
|
|
309
|
-
});
|
|
310
|
-
},
|
|
311
|
-
/**
|
|
312
|
-
* Helper function that returns the Hash part of the current URL
|
|
313
|
-
* without the inner app hash part.
|
|
314
|
-
*
|
|
315
|
-
* @returns {string}
|
|
316
|
-
* The intent (i.e., URL hash) without any inner app hash part.
|
|
317
|
-
*
|
|
318
|
-
* @private
|
|
319
|
-
* @since 1.44.0
|
|
320
|
-
*/
|
|
321
|
-
_getCurrentShellHashWithoutAppRoute: function () {
|
|
322
|
-
var sFullURL = "#" + hasher.getHash();
|
|
323
|
-
var sURLHashWithParams = UrlParsing.getShellHash(sFullURL);
|
|
324
|
-
|
|
325
|
-
if (!sURLHashWithParams) {
|
|
326
|
-
Log.error(
|
|
327
|
-
"Cannot get the current shell hash",
|
|
328
|
-
"UrlParsing service returned a falsy value for " + sFullURL,
|
|
329
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
330
|
-
);
|
|
331
|
-
return "";
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
return "#" + sURLHashWithParams;
|
|
335
|
-
},
|
|
336
|
-
/**
|
|
337
|
-
* Getter for the event provider. This method is mainly
|
|
338
|
-
* here for supportability purposes.
|
|
339
|
-
*
|
|
340
|
-
* @returns {object}
|
|
341
|
-
* The event provider
|
|
342
|
-
* @private
|
|
343
|
-
* @since 1.38.0
|
|
344
|
-
*/
|
|
345
|
-
_getEventProvider: function () {
|
|
346
|
-
return oEventProvider;
|
|
347
|
-
},
|
|
348
|
-
/**
|
|
349
|
-
* Getter for the title. This method is mainly
|
|
350
|
-
* here for supportability purposes.
|
|
351
|
-
*
|
|
352
|
-
* @returns {object}
|
|
353
|
-
* The event provider
|
|
354
|
-
* @private
|
|
355
|
-
* @since 1.38.0
|
|
356
|
-
*/
|
|
357
|
-
_getLastSetTitle: function () {
|
|
358
|
-
return sLastSetTitle;
|
|
359
|
-
},
|
|
360
|
-
/**
|
|
361
|
-
* Ensures that the given argument is an array of object, having all string values.
|
|
362
|
-
* This method logs an error message in case this is not the case.
|
|
363
|
-
*
|
|
364
|
-
* <pre>
|
|
365
|
-
* IMPORTANT: this method must not rely on its context when called or
|
|
366
|
-
* produce side effects.
|
|
367
|
-
* </pre>
|
|
368
|
-
*
|
|
369
|
-
* @param {variant} vArg
|
|
370
|
-
* Any value.
|
|
371
|
-
* @param {string} sMethodName
|
|
372
|
-
* The name of the method that called this function.
|
|
373
|
-
* @returns {boolean}
|
|
374
|
-
* Whether <code>vArg</code> is a string. Logs an error message
|
|
375
|
-
* reporting <code>sMethodName</code> in case <code>vArg</code> is
|
|
376
|
-
* not a string.
|
|
377
|
-
*
|
|
378
|
-
* @private
|
|
379
|
-
* @since 1.38.0
|
|
380
|
-
*/
|
|
381
|
-
_ensureArrayOfObjectOfStrings: function (vArg, sMethodName) {
|
|
382
|
-
var bValidates = Array.isArray(vArg) && vArg.every(function (oObject) {
|
|
383
|
-
return isPlainObject(oObject)
|
|
384
|
-
&& Object.keys(oObject).length > 0
|
|
385
|
-
&& Object.keys(oObject).every(function (sKey) {
|
|
386
|
-
return typeof oObject[sKey] === "string";
|
|
387
|
-
});
|
|
388
|
-
});
|
|
389
|
-
|
|
390
|
-
if (!bValidates) {
|
|
391
|
-
Log.error(
|
|
392
|
-
"'" + sMethodName + "' was called with invalid parameters",
|
|
393
|
-
"An array of non-empty objects with string values is expected",
|
|
394
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
395
|
-
);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
return bValidates;
|
|
399
|
-
},
|
|
400
|
-
/**
|
|
401
|
-
* Ensures that the given argument is a function, logging an error
|
|
402
|
-
* message in case it's not.
|
|
403
|
-
*
|
|
404
|
-
* <pre>
|
|
405
|
-
* IMPORTANT: this method must not rely on its context when called or
|
|
406
|
-
* produce side effects.
|
|
407
|
-
* </pre>
|
|
408
|
-
*
|
|
409
|
-
* @param {variant} vArg
|
|
410
|
-
* Any value.
|
|
411
|
-
* @param {string} sMethodName
|
|
412
|
-
* The name of the method that called this function.
|
|
413
|
-
* @returns {boolean}
|
|
414
|
-
* Whether <code>vArg</code> is a function. Logs an error message
|
|
415
|
-
* reporting <code>sMethodName</code> in case <code>vArg</code> is
|
|
416
|
-
* not a function.
|
|
417
|
-
*
|
|
418
|
-
* @private
|
|
419
|
-
* @since 1.38.0
|
|
420
|
-
*/
|
|
421
|
-
_ensureFunction: function (vArg, sMethodName) {
|
|
422
|
-
var sType = typeof vArg;
|
|
423
|
-
if (sType !== "function") {
|
|
424
|
-
Log.error(
|
|
425
|
-
"'" + sMethodName + "' was called with invalid arguments",
|
|
426
|
-
"the parameter should be a function, got '" + sType + "' instead",
|
|
427
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
428
|
-
);
|
|
429
|
-
return false;
|
|
430
|
-
}
|
|
431
|
-
return true;
|
|
432
|
-
},
|
|
433
|
-
/**
|
|
434
|
-
* Ensures that the given argument is a string, logging an error
|
|
435
|
-
* message in case it's not.
|
|
436
|
-
*
|
|
437
|
-
* <pre>
|
|
438
|
-
* IMPORTANT: this method must not rely on its context when called or
|
|
439
|
-
* produce side effects.
|
|
440
|
-
* </pre>
|
|
441
|
-
*
|
|
442
|
-
* @param {variant} vArg
|
|
443
|
-
* Any value.
|
|
444
|
-
* @param {string} sMethodName
|
|
445
|
-
* The name of the method that called this function.
|
|
446
|
-
* @returns {boolean}
|
|
447
|
-
* Whether <code>vArg</code> is a string. Logs an error message
|
|
448
|
-
* reporting <code>sMethodName</code> in case <code>vArg</code> is
|
|
449
|
-
* not a string.
|
|
450
|
-
*
|
|
451
|
-
* @private
|
|
452
|
-
* @since 1.38.0
|
|
453
|
-
*/
|
|
454
|
-
_ensureString: function (vArg, sMethodName) {
|
|
455
|
-
var sType = typeof vArg;
|
|
456
|
-
if (sType !== "string") {
|
|
457
|
-
Log.error(
|
|
458
|
-
"'" + sMethodName + "' was called with invalid arguments",
|
|
459
|
-
"the parameter should be a string, got '" + sType + "' instead",
|
|
460
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
461
|
-
);
|
|
462
|
-
return false;
|
|
463
|
-
}
|
|
464
|
-
return true;
|
|
465
|
-
},
|
|
466
|
-
/**
|
|
467
|
-
* Wraps a given public service interface method with a check that
|
|
468
|
-
* determines whether the method can be called. This helps preventing
|
|
469
|
-
* cases in which calling the method would disrupt the functionality of
|
|
470
|
-
* the currently running app. For example, this check would prevent a
|
|
471
|
-
* still alive app to change the header title while another app is
|
|
472
|
-
* being displayed.
|
|
473
|
-
*
|
|
474
|
-
* @param {object} oPublicServiceInstance
|
|
475
|
-
* The instance of the public service interface.
|
|
476
|
-
* @param {string} sPublicServiceMethod
|
|
477
|
-
* The method to be wrapped with the check.
|
|
478
|
-
*
|
|
479
|
-
* @private
|
|
480
|
-
* @since 1.38.0
|
|
481
|
-
*/
|
|
482
|
-
_addCallAllowedCheck: function (oPublicServiceInstance, sPublicServiceMethod) {
|
|
483
|
-
var that = this;
|
|
484
|
-
oPublicServiceInstance[sPublicServiceMethod] = function () {
|
|
485
|
-
var oContext = oPublicServiceInstance.getContext(); // undefined -> don't authorize
|
|
486
|
-
|
|
487
|
-
if (!oContext || oContext.scopeObject.getId() !== sActiveComponentId) {
|
|
488
|
-
Log.warning(
|
|
489
|
-
"Call to " + sPublicServiceMethod + " is not allowed",
|
|
490
|
-
"This may be caused by an app component other than the active '" + sActiveComponentId + "' that tries to call the method",
|
|
491
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
492
|
-
);
|
|
493
|
-
return undefined; // eslint
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
if (sPublicServiceMethod === "setHierarchy" /* app called setHierarchy... */
|
|
497
|
-
&& oContext.scopeType === "component"
|
|
498
|
-
&& oContext.scopeObject
|
|
499
|
-
&& that._shouldEnableAutoHierarchy(oContext.scopeObject) /* ... but should be called automatically */) {
|
|
500
|
-
Log.warning(
|
|
501
|
-
"Call to " + sPublicServiceMethod + " is not allowed",
|
|
502
|
-
"The app defines that setHierarchy should be called automatically",
|
|
503
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
504
|
-
);
|
|
505
|
-
return undefined; // eslint
|
|
506
|
-
}
|
|
507
|
-
if (sPublicServiceMethod === "setTitle" /* app called setHierarchy... */
|
|
508
|
-
&& oContext.scopeType === "component"
|
|
509
|
-
&& oContext.scopeObject
|
|
510
|
-
&& that._shouldEnableAutoTitle(oContext.scopeObject) /* ... but should be called automatically */) {
|
|
511
|
-
Log.warning(
|
|
512
|
-
"Call to " + sPublicServiceMethod + " is not allowed",
|
|
513
|
-
"The app defines that setTitle should be called automatically",
|
|
514
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
515
|
-
);
|
|
516
|
-
return undefined; // eslint
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
return that[sPublicServiceMethod].apply(oPublicServiceInstance, arguments);
|
|
520
|
-
};
|
|
521
|
-
},
|
|
522
|
-
/**
|
|
523
|
-
* Adjusts the method of the public service instance.
|
|
524
|
-
* Specifically:
|
|
525
|
-
* <ul>
|
|
526
|
-
* <li>Adds safety checks to public methods</li>
|
|
527
|
-
* <li>Register the component that called <code>.getService</code> as
|
|
528
|
-
* the currently active component.
|
|
529
|
-
* </ul>
|
|
530
|
-
*
|
|
531
|
-
* @param {sap.ui.base.Interface} oPublicServiceInstance
|
|
532
|
-
* The public service interface.
|
|
533
|
-
*
|
|
534
|
-
* @private
|
|
535
|
-
* @since 1.38.0
|
|
536
|
-
*/
|
|
537
|
-
_amendPublicServiceInstance: function (oPublicServiceInstance) {
|
|
538
|
-
var that = this;
|
|
539
|
-
|
|
540
|
-
// attempt to register this as the "active component"
|
|
541
|
-
var oContext = oPublicServiceInstance.getContext();
|
|
542
|
-
if (typeof oContext === "undefined") {
|
|
543
|
-
// ServiceFactoryRegistry#get static method was used on the
|
|
544
|
-
// service factory to obtain the service. Don't record the
|
|
545
|
-
// currently active component so that future call from an
|
|
546
|
-
// active app succeed. E.g., on view change.
|
|
547
|
-
//
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
// must re-bind all public methods to the public interface
|
|
552
|
-
// instance, as they would be otherwise called in the context of
|
|
553
|
-
// the service instance.
|
|
554
|
-
["setTitle", "setHierarchy", "setRelatedApps", "setBackNavigation"].forEach(function (sMethodToSetup) {
|
|
555
|
-
that._addCallAllowedCheck(oPublicServiceInstance, sMethodToSetup);
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
var oAppComponent = oContext.scopeObject;
|
|
559
|
-
if (oContext.scopeType === "component" && oAppComponent) {
|
|
560
|
-
this._setActiveComponentId(oAppComponent.getId());
|
|
561
|
-
|
|
562
|
-
if (this._shouldEnableAutoHierarchy(oAppComponent)) {
|
|
563
|
-
this._enableAutoHierarchy(oAppComponent);
|
|
564
|
-
}
|
|
565
|
-
if (this._shouldEnableAutoTitle(oAppComponent)) {
|
|
566
|
-
this._enableAutoTitle(oAppComponent);
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
return;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
Log.error(
|
|
573
|
-
"Invalid context for ShellUIService interface",
|
|
574
|
-
"The context must be empty or an object like { scopeType: ..., scopeObject: ... }",
|
|
575
|
-
"sap.ushell.ui5service.ShellUIService"
|
|
576
|
-
);
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* Displays the given hierarchy in the shell header.
|
|
581
|
-
*
|
|
582
|
-
* @param {sap.ushell.ui5service.ShellUIService.AppInfo[]} [aHierarchyLevels]
|
|
583
|
-
* An array representing hierarchies of the currently displayed
|
|
584
|
-
* app.
|
|
585
|
-
*
|
|
586
|
-
* The default app hierarchy is applied if no parameter is given.
|
|
587
|
-
*
|
|
588
|
-
* @since 1.38.0
|
|
589
|
-
* @public
|
|
590
|
-
*/
|
|
591
|
-
setHierarchy: function (aHierarchyLevels) {
|
|
592
|
-
/*
|
|
593
|
-
* IMPORTANT: this method may be called in the context of the
|
|
594
|
-
* service or the public service instance. In the latter case
|
|
595
|
-
* "this" has no access to private methods.
|
|
596
|
-
*/
|
|
597
|
-
|
|
598
|
-
// validate input
|
|
599
|
-
if (typeof aHierarchyLevels !== "undefined"
|
|
600
|
-
&& !ShellUIService.prototype._ensureArrayOfObjectOfStrings(aHierarchyLevels, "setHierarchy")) {
|
|
601
|
-
return;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
var oComponent = this.getContext().scopeObject;
|
|
605
|
-
|
|
606
|
-
oEventProvider.fireEvent(O_EVENT_NAME.hierarchyChanged, {
|
|
607
|
-
data: aHierarchyLevels,
|
|
608
|
-
component: oComponent
|
|
609
|
-
});
|
|
610
|
-
},
|
|
611
|
-
/**
|
|
612
|
-
* Displays the given title in the shell header. This method should not
|
|
613
|
-
* be called if the app calling the method is not currently displayed
|
|
614
|
-
* in the Fiori Launchpad.
|
|
615
|
-
*
|
|
616
|
-
* @param {string} [sTitle]
|
|
617
|
-
* The new title. The default title is set if this argument is not given.
|
|
618
|
-
*
|
|
619
|
-
* @since 1.38.0
|
|
620
|
-
* @public
|
|
621
|
-
*/
|
|
622
|
-
setTitle: function (sTitle) {
|
|
623
|
-
/*
|
|
624
|
-
* IMPORTANT: this method may be called in the context of the
|
|
625
|
-
* service or the public service instance. In the latter case
|
|
626
|
-
* "this" has no access to private methods.
|
|
627
|
-
*/
|
|
628
|
-
|
|
629
|
-
// validate input
|
|
630
|
-
if (typeof sTitle !== "undefined"
|
|
631
|
-
&& !ShellUIService.prototype._ensureString(sTitle, "setTitle")) {
|
|
632
|
-
return;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
sLastSetTitle = sTitle;
|
|
636
|
-
var oEventData = {
|
|
637
|
-
data: sTitle,
|
|
638
|
-
component: this.getContext().scopeObject
|
|
639
|
-
};
|
|
640
|
-
if (typeof arguments[1] === "boolean" && arguments[1]) {
|
|
641
|
-
oEventData.bAcceptEmptyString = true;
|
|
642
|
-
}
|
|
643
|
-
oEventProvider.fireEvent(O_EVENT_NAME.titleChanged, oEventData);
|
|
644
|
-
},
|
|
645
|
-
/**
|
|
646
|
-
* Displays the back button in the shell header.
|
|
647
|
-
*
|
|
648
|
-
* @param {function} [fnCallback]
|
|
649
|
-
* A callback function called when the button is clicked in the UI.
|
|
650
|
-
*
|
|
651
|
-
* @since 1.38.0
|
|
652
|
-
* @private
|
|
653
|
-
* @ui5-restricted sap.fe, sap.suite.ui.generic
|
|
654
|
-
*/
|
|
655
|
-
setBackNavigation: function (fnCallback) {
|
|
656
|
-
/*
|
|
657
|
-
* IMPORTANT: this method may be called in the context of the
|
|
658
|
-
* service or the public service instance. In the latter case
|
|
659
|
-
* "this" has no access to private methods.
|
|
660
|
-
*/
|
|
661
|
-
|
|
662
|
-
// validate input
|
|
663
|
-
if (typeof fnCallback !== "undefined"
|
|
664
|
-
&& !ShellUIService.prototype._ensureFunction(fnCallback, "setBackNavigation")) {
|
|
665
|
-
return;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
var oComponent = this.getContext().scopeObject;
|
|
669
|
-
|
|
670
|
-
oEventProvider.fireEvent(O_EVENT_NAME.backNavigationChanged, {
|
|
671
|
-
data: fnCallback,
|
|
672
|
-
component: oComponent
|
|
673
|
-
});
|
|
674
|
-
},
|
|
675
|
-
/**
|
|
676
|
-
* Returns the title that was last set via {@link setTitle}.
|
|
677
|
-
*
|
|
678
|
-
* @returns {string}
|
|
679
|
-
* The title that was last set via {@link setTitle}.
|
|
680
|
-
*
|
|
681
|
-
* @since 1.38.0
|
|
682
|
-
* @public
|
|
683
|
-
*/
|
|
684
|
-
getTitle: function () {
|
|
685
|
-
return this._getLastSetTitle();
|
|
686
|
-
},
|
|
687
|
-
/**
|
|
688
|
-
* Used by apps to set related apps. This setting is propagated
|
|
689
|
-
* towards the Shell Header via corresponding events.
|
|
690
|
-
*
|
|
691
|
-
* @param {sap.ushell.ui5service.ShellUIService.AppInfo[]} [aRelatedApps]
|
|
692
|
-
* An array of related apps.
|
|
693
|
-
*
|
|
694
|
-
* @since 1.40.0
|
|
695
|
-
* @public
|
|
696
|
-
*/
|
|
697
|
-
setRelatedApps: function (aRelatedApps) {
|
|
698
|
-
/*
|
|
699
|
-
* IMPORTANT: this method may be called in the context of the
|
|
700
|
-
* service or the public service instance. In the latter case
|
|
701
|
-
* "this" has no access to private methods.
|
|
702
|
-
*/
|
|
703
|
-
|
|
704
|
-
// validate input
|
|
705
|
-
if (typeof aRelatedApps !== "undefined"
|
|
706
|
-
&& !ShellUIService.prototype._ensureArrayOfObjectOfStrings(aRelatedApps, "setRelatedApps")) {
|
|
707
|
-
return;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
var oComponent = this.getContext().scopeObject;
|
|
711
|
-
|
|
712
|
-
oEventProvider.fireEvent(O_EVENT_NAME.relatedAppsChanged, {
|
|
713
|
-
data: aRelatedApps,
|
|
714
|
-
component: oComponent
|
|
715
|
-
});
|
|
716
|
-
},
|
|
717
|
-
|
|
718
|
-
_attachHierarchyChanged: function (fnFunction) {
|
|
719
|
-
this._getEventProvider().attachEvent(O_EVENT_NAME.hierarchyChanged, fnFunction);
|
|
720
|
-
},
|
|
721
|
-
_detachHierarchyChanged: function (fnFunction) {
|
|
722
|
-
this._getEventProvider().detachEvent(O_EVENT_NAME.hierarchyChanged, fnFunction);
|
|
723
|
-
},
|
|
724
|
-
_attachTitleChanged: function (fnFunction) {
|
|
725
|
-
this._getEventProvider().attachEvent(O_EVENT_NAME.titleChanged, fnFunction);
|
|
726
|
-
},
|
|
727
|
-
_attachBackNavigationChanged: function (fnFunction) {
|
|
728
|
-
this._getEventProvider().attachEvent(O_EVENT_NAME.backNavigationChanged, fnFunction);
|
|
729
|
-
},
|
|
730
|
-
_detachBackNavigationChanged: function (fnFunction) {
|
|
731
|
-
this._getEventProvider().detachEvent(O_EVENT_NAME.backNavigationChanged, fnFunction);
|
|
732
|
-
},
|
|
733
|
-
_detachTitleChanged: function (fnFunction) {
|
|
734
|
-
this._getEventProvider().detachEvent(O_EVENT_NAME.titleChanged, fnFunction);
|
|
735
|
-
},
|
|
736
|
-
_attachRelatedAppsChanged: function (fnFunction) {
|
|
737
|
-
this._getEventProvider().attachEvent(O_EVENT_NAME.relatedAppsChanged, fnFunction);
|
|
738
|
-
},
|
|
739
|
-
_detachRelatedAppsChanged: function (fnFunction) {
|
|
740
|
-
this._getEventProvider().detachEvent(O_EVENT_NAME.relatedAppsChanged, fnFunction);
|
|
741
|
-
}
|
|
742
|
-
});
|
|
743
|
-
|
|
744
|
-
return ShellUIService;
|
|
745
|
-
};
|
|
746
|
-
});
|