@sapui5/sap.ushell 1.134.1 → 1.135.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 +2 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +29 -6
- package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +3 -3
- package/src/main/js/sap/ushell/ApplicationType/guiResolution.js +185 -174
- package/src/main/js/sap/ushell/ApplicationType/urlTemplateResolution.js +1 -1
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +69 -61
- package/src/main/js/sap/ushell/EventHub.js +1 -3
- 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 +2 -2
- package/src/main/js/sap/ushell/SessionHandler.js +3 -3
- 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/User.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 +3 -11
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +13 -4
- 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/Settings/UserLanguageAndRegion/UserLanguageAndRegion.view.xml +4 -2
- 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 +12 -3
- 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/MenuAdapter.js +11 -5
- 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/api/DWS.js +87 -0
- package/src/main/js/sap/ushell/api/Inbox.js +20 -4
- package/src/main/js/sap/ushell/api/common/ComponentInstantiation.js +36 -36
- package/src/main/js/sap/ushell/appIntegration/AppLifeCycle/KeepAliveMode.js +43 -0
- package/src/main/js/sap/ushell/appIntegration/AppLifeCycle.js +1667 -0
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/ApplicationContainer.js +136 -11
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerRenderer.js +54 -0
- package/src/main/js/sap/ushell/appIntegration/ApplicationHandle.js +57 -0
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/IframeApplicationContainer.js +102 -15
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/IframeApplicationContainerRenderer.js +26 -20
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/KeepAliveApps.js +1 -1
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/AppruntimeHandler.js +7 -5
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/LifecycleHandler.js +17 -17
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/MessageBrokerHandler.js +1 -1
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/NWBCHandler.js +4 -4
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/ServiceHandler.js +4 -3
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager.js +37 -20
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessagePluginInterface.js +1 -1
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/UI5ApplicationContainer.js +31 -8
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/UI5ApplicationContainerRenderer.js +14 -1
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/contracts/EmbeddedUI5Handler.js +10 -9
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/contracts/StatefulContainerV1Handler.js +6 -19
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/contracts/StatefulContainerV2Handler.js +20 -55
- package/src/main/js/sap/ushell/appRuntime/ui5/AppCommunicationMgr.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +15 -0
- 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 +30 -0
- 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/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 +62 -35
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/HomepageManager.js +1 -0
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +6 -1684
- package/src/main/js/sap/ushell/components/applicationIntegration/Storage.js +1 -7
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +2 -35
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +2 -176
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/Application.js +3 -3
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/PostMessageAPI.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/configuration/AppMeta.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +12 -6
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +41 -3
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +103 -38
- 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/contentFinder/resources/resources.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ar.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_bg.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ca.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cs.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cy.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_da.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_de.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_el.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_GB.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es_MX.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_et.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fi.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr_CA.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hi.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hr.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hu.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_id.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_it.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_iw.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ja.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_kk.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ko.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lt.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lv.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_mk.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ms.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_nl.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_no.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pl.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt_PT.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ro.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ru.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sh.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sk.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sl.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sr.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sv.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_th.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_tr.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_uk.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_vi.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_CN.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_TW.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +6 -0
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTree.fragment.xml +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTreeTable.fragment.xml +70 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +8 -3
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.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 +4 -4
- 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 +3 -3
- 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/Component.js +9 -8
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +0 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/view/MenuBarPersonalized.view.xml +25 -0
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/Component.js +10 -21
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +12 -5
- 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 -7
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/ContextMenu.fragment.xml +6 -4
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenu.fragment.xml +76 -0
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenu.view.xml +6 -65
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenuButton.view.xml +2 -2
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenuPopover.fragment.xml +6 -65
- package/src/main/js/sap/ushell/components/shell/Notifications/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/ESearch.js +15 -2
- 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 +23 -11
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +114 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +248 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +48 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources.properties +11 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_en_US_saprigi.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +48 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +74 -51
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +27 -30
- package/src/main/js/sap/ushell/components/shell/SideNavigation/fragment/AllSpaces.fragment.xml +21 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/fragment/Popover.fragment.xml +6 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +5 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AllSpaces.js +56 -5
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Favorites.js +24 -9
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericNavigationListProvider.js +46 -67
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/MyHome.js +22 -4
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/NavigationHelper.js +3 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Spaces.js +187 -160
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/SpacesNavigationListProvider.js +27 -11
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ar.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_bg.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ca.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cnr.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cs.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_cy.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_da.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_de.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_el.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en_GB.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_en_US_saprigi.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_es.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_es_MX.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_et.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fi.properties +4 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fr.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_fr_CA.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hi.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hr.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_hu.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_id.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_it.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_iw.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ja.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_kk.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ko.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_lt.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_lv.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_mk.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ms.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_nl.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_no.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pl.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pt.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_pt_PT.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ro.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_ru.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sh.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sk.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sl.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sr.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_sv.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_th.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_tr.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_uk.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_vi.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_zh_CN.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources_zh_TW.properties +3 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/view/Main.view.xml +21 -6
- 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 +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/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_fr.properties +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +30 -10
- 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/NavContainer.js +266 -0
- package/src/main/js/sap/ushell/renderer/NavContainerRenderer.js +42 -0
- package/src/main/js/sap/ushell/renderer/Renderer.js +129 -112
- package/src/main/js/sap/ushell/renderer/RendererRootView.fragment.xml +2 -2
- package/src/main/js/sap/ushell/renderer/RendererRootViewFallback.fragment.xml +8 -0
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +119 -60
- package/src/main/js/sap/ushell/renderer/Shell.view.js +78 -26
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +3 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +10 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +10 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +11 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +14 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +42 -33
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +12 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +11 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +11 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +11 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +11 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +11 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +11 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +9 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +9 -0
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +18 -2
- package/src/main/js/sap/ushell/services/AppConfiguration.js +4 -4
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +374 -377
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +2 -2
- package/src/main/js/sap/ushell/services/BookmarkV2.js +2 -2
- 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 +298 -198
- 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 +2 -2
- 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 +2 -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 +98 -7
- 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 +5 -5
- 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 +2 -2
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +3 -3
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +12 -11
- 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/SimpleExpression.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +81 -63
- 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 +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +687 -272
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_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/BackNavigation.js +1 -1
- package/src/main/js/sap/ushell/state/ContentDensity.js +213 -0
- package/src/main/js/sap/ushell/state/Favicon.js +119 -0
- package/src/main/js/sap/ushell/state/StateManager.js +1 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/UserActionsStrategy.js +3 -2
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ApplicationContainer.less +3 -2
- package/src/main/js/sap/ushell/themes/base/FlexibleColumnLayout.less +10 -0
- package/src/main/js/sap/ushell/themes/base/NavContainer.less +6 -0
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +8 -8
- package/src/main/js/sap/ushell/themes/base/library.source.less +2 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ApplicationContainer.less +9 -1
- package/src/main/js/sap/ushell/themes/sap_belize_base/NavContainer.less +6 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/ApplicationContainer.less +9 -1
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/NavContainer.less +6 -0
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ApplicationContainer.less +9 -1
- package/src/main/js/sap/ushell/themes/sap_hcb/base_NavContainer.less +6 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +1 -0
- package/src/main/js/sap/ushell/thirdparty/Icons.js +49 -49
- package/src/main/js/sap/ushell/thirdparty/MenuItem.js +355 -0
- package/src/main/js/sap/ushell/thirdparty/ShellBar.js +1892 -0
- package/src/main/js/sap/ushell/thirdparty/ShellBarItem.js +89 -0
- package/src/main/js/sap/ushell/thirdparty/ShellBarSpacer.js +40 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +120 -204
- package/src/main/js/sap/ushell/thirdparty/UserMenuAccount.js +10 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +55 -414
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +44 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +43 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +9 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +16 -4
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +20 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +43 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +21 -6
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +42 -6
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/{messagebundle_in.js → messagebundle_id.js} +2 -2
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +665 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +551 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +33 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +76 -40
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +43 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +26 -11
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +43 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +17 -2
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +42 -6
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +20 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +18 -3
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +42 -6
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +43 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +42 -6
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +41 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css2.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css3.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/event-strict.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +146 -0
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css25.js +99 -82
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/MenuItem.js +5 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-base.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/ShellBar.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/ShellBarItem.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/ShellBarSpacer.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/ShellBar.js +138 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/ShellBarItem.js +61 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/ShellBarSpacer.js +46 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/UserMenuAccount.js +5 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori.js +6 -2
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents.js +2 -1
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +8 -8
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +4 -4
- package/src/main/js/sap/ushell/ui/AppContainer.js +6 -0
- package/src/main/js/sap/ushell/ui/ShellHeader.js +4 -40
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AboutDialog.controller.js +28 -27
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +1 -1
- 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/VizInstanceCdm.js +1 -7
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +249 -249
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +35 -3
- 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/RestrictedJSONModel.js +16 -0
- package/src/main/js/sap/ushell/utils/UrlParsing.js +96 -94
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +2 -2
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +12 -6
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/ApplicationContainerRenderer.js +0 -35
- package/src/main/js/sap/ushell/components/shell/SideNavigation/view/SideNavigation.view.xml +0 -52
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader/utils.js +0 -375
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_in2.js +0 -266
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_in3.js +0 -143
- /package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/ApplicationContainerCache.js +0 -0
- /package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/ExtensionItems.js +0 -0
- /package/src/main/js/sap/ushell/components/shell/MenuBar/view/{MenuBarPersonalization.view.xml → MenuBarWithPersonalizationButton.view.xml} +0 -0
|
@@ -4,21 +4,159 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's UI5 component loader service.
|
|
5
5
|
* This is a shell-internal service and no public or application facing API!
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.135.0
|
|
8
8
|
*/
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/base/Log",
|
|
11
|
+
"sap/base/util/deepExtend",
|
|
12
|
+
"sap/ui/core/Component",
|
|
11
13
|
"sap/ui/core/Lib",
|
|
14
|
+
"sap/ui/core/util/AsyncHintsHelper",
|
|
15
|
+
"sap/ui/thirdparty/jquery",
|
|
16
|
+
"sap/ui/thirdparty/URI",
|
|
12
17
|
"sap/ushell/Config",
|
|
13
|
-
"sap/ushell/utils",
|
|
14
|
-
"sap/ushell/services/Ui5ComponentHandle",
|
|
15
|
-
"sap/ushell/services/Ui5ComponentLoader/utils",
|
|
16
18
|
"sap/ushell/EventHub",
|
|
17
|
-
"sap/
|
|
18
|
-
"sap/
|
|
19
|
-
|
|
19
|
+
"sap/ushell/services/Ui5ComponentHandle",
|
|
20
|
+
"sap/ushell/utils",
|
|
21
|
+
"sap/ushell/utils/UriParameters"
|
|
22
|
+
], (
|
|
23
|
+
Log,
|
|
24
|
+
deepExtend,
|
|
25
|
+
Component,
|
|
26
|
+
Lib,
|
|
27
|
+
AsyncHintsHelper,
|
|
28
|
+
jQuery,
|
|
29
|
+
URI,
|
|
30
|
+
Config,
|
|
31
|
+
EventHub,
|
|
32
|
+
Ui5ComponentHandle,
|
|
33
|
+
ushellUtils,
|
|
34
|
+
UriParameters
|
|
35
|
+
) => {
|
|
20
36
|
"use strict";
|
|
21
37
|
|
|
38
|
+
/**
|
|
39
|
+
* @typedef {object} sap.ushell.services.Ui5ComponentLoader.AppProperties
|
|
40
|
+
* The input data structure for creating a UI5 component.
|
|
41
|
+
*
|
|
42
|
+
* @property {string} ui5ComponentName The name of the UI5 component
|
|
43
|
+
* @property {string} [ui5ComponentId] The id of the UI5 component
|
|
44
|
+
* @property {string} [url] The URL of the component resource
|
|
45
|
+
* @property {object} [componentData] The component data
|
|
46
|
+
* @property {object} [reservedParameters] Technical parameters
|
|
47
|
+
* @property {function} [getExtensions] Function for getting extensions
|
|
48
|
+
* This is only used for Plugins
|
|
49
|
+
* @property {sap.ushell.appIntegration.PostMessagePluginInterface} [oPostMessageInterface] Interface for post message communication.
|
|
50
|
+
* This is only used for Plugins
|
|
51
|
+
* @property {object} [applicationDependencies] Application dependencies
|
|
52
|
+
* @property {string} [applicationDependencies.name] The name of the component
|
|
53
|
+
* @property {string} [applicationDependencies.manifest] The URL of the manifest
|
|
54
|
+
* @property {object} [applicationDependencies.asyncHints] The asyncHints object
|
|
55
|
+
* @property {sap.ushell.services.Ui5ComponentLoader.ApplicationDependenciesMessage[]} [applicationDependencies.messages] messages to be logged.
|
|
56
|
+
* @property {object} [applicationConfiguration] The application configuration
|
|
57
|
+
* @property {boolean} [loadCoreExt] Whether the core-ext-light bundle should be loaded
|
|
58
|
+
* @property {boolean} [loadDefaultDependencies] Whether the default dependencies should be loaded
|
|
59
|
+
*
|
|
60
|
+
* @since 1.135.0
|
|
61
|
+
* @private
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @typedef {object} sap.ushell.services.Ui5ComponentLoader.ApplicationDependenciesMessage
|
|
66
|
+
*
|
|
67
|
+
* @property {string} [text] The message
|
|
68
|
+
* @property {string} [severity] The severity
|
|
69
|
+
* @property {string} [details] The details
|
|
70
|
+
* @since 1.135.0
|
|
71
|
+
* @private
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef {sap.ushell.services.Ui5ComponentLoader.AppProperties} sap.ushell.services.Ui5ComponentLoader.AppPropertiesResult
|
|
76
|
+
* The application properties enriched with the component handle.
|
|
77
|
+
* This data structure is the result of the instantiation of a UI5 component.
|
|
78
|
+
*
|
|
79
|
+
* @property {sap.ushell.services.Ui5ComponentHandle} componentHandle The component handle
|
|
80
|
+
*
|
|
81
|
+
* @since 1.135.0
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @typedef {object} sap.ushell.services.Ui5ComponentLoader.ComponentData
|
|
87
|
+
* Data which is handed over to the component as component data.
|
|
88
|
+
*
|
|
89
|
+
* @property {object} startupParameters Application startup parameters.
|
|
90
|
+
* Derived from <code>AppProperties.url</code>.
|
|
91
|
+
* If not provided it uses the current URL.
|
|
92
|
+
* @property {object} [technicalParameters] Technical parameters
|
|
93
|
+
* Derived from <code>AppProperties.reservedParameters</code>.
|
|
94
|
+
* @property {function} [getExtensions] Function to get extensions
|
|
95
|
+
* Derived from <code>AppProperties.getExtensions</code>.
|
|
96
|
+
* @property {sap.ushell.appIntegration.PostMessagePluginInterface} [oPostMessageInterface] Post message interface
|
|
97
|
+
* Derived from <code>AppProperties.oPostMessageInterface</code>.
|
|
98
|
+
* @property {object} [config] Application configuration
|
|
99
|
+
* Derived from <code>AppProperties.applicationConfiguration</code>.
|
|
100
|
+
*
|
|
101
|
+
* @since 1.135.0
|
|
102
|
+
* @private
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @typedef {object} sap.ushell.services.Ui5ComponentLoader.ComponentProperties
|
|
107
|
+
* Intermediate data structure for the instantiation of a UI5 component
|
|
108
|
+
* It can possibly contain all properties available for the instantiation of a UI5 component. {@link sap.ui.core.Component#create}
|
|
109
|
+
* This data structure derived from <code>AppProperties.applicationDependencies</code>.
|
|
110
|
+
*
|
|
111
|
+
* @property {string} [id] The id of the component.
|
|
112
|
+
* If parsed shell hash is provided it is derived from the semantic object and action.
|
|
113
|
+
* @property {string} name The component name.
|
|
114
|
+
* The name provided in <code>AppProperties.applicationDependencies.name</code> has priority over <code>AppProperties.name</code>.
|
|
115
|
+
* @property {string} url The URL of the component resource.
|
|
116
|
+
* The URL is derived from <code>AppProperties.url</code>.
|
|
117
|
+
* @property {string} [manifest] The URL of the manifest.
|
|
118
|
+
* The manifest is derived from <code>AppProperties.applicationDependencies.manifest</code>.
|
|
119
|
+
* @property {object} asyncHints The asyncHints object.
|
|
120
|
+
* The asyncHints object is derived from <code>AppProperties.applicationDependencies.asyncHints</code>.
|
|
121
|
+
* @property {string[]} [asyncHints.libs] The libraries to be loaded.
|
|
122
|
+
* The libraries are provided via <code>AppProperties.applicationDependencies.asyncHints.libs</code>.
|
|
123
|
+
* If not provided the libraries are set default libraries when <code>AppProperties.loadDefaultDependencies</code> is set to <code>true</code>.
|
|
124
|
+
* @property {string[]} [asyncHints.components] The components to be loaded.
|
|
125
|
+
* The components are provided via <code>AppProperties.applicationDependencies.asyncHints.components</code>.
|
|
126
|
+
* @property {string[]} [asyncHints.preloadBundles] The preload bundles to load.
|
|
127
|
+
* The preload bundles are provided via <code>AppProperties.applicationDependencies.asyncHints.preloadBundles</code>.
|
|
128
|
+
* This is extended with the core-ext-light bundle if <code>AppProperties.loadCoreExt</code> is set to <code>true</code>.
|
|
129
|
+
* @property {Promise[]} [asyncHints.waitFor] The promises to wait for before instantiating the component.
|
|
130
|
+
*
|
|
131
|
+
* @since 1.135.0
|
|
132
|
+
* @private
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @typedef {object} sap.ushell.services.Ui5ComponentLoader.InstantiationData
|
|
137
|
+
* This data structure contains all data needed for the instantiation of a UI5 component.
|
|
138
|
+
* It is a internal data structure used as interface.
|
|
139
|
+
*
|
|
140
|
+
* @property {sap.ushell.services.Ui5ComponentLoader.ComponentData} componentData The component data
|
|
141
|
+
* @property {sap.ushell.services.Ui5ComponentLoader.ComponentProperties} componentProperties The component properties
|
|
142
|
+
* @property {sap.ushell.services.Ui5ComponentLoader.AppProperties} appPropertiesSafe The original input properties. This is later extended with the componentHandle.
|
|
143
|
+
* @property {boolean} loadCoreExt Whether the core-ext-light bundle was loaded as part of the asyncHints
|
|
144
|
+
*
|
|
145
|
+
* @since 1.135.0
|
|
146
|
+
* @private
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Those libraries are added as asyncHints in case the manifest does not provide any asyncHints
|
|
151
|
+
*/
|
|
152
|
+
let aDefaultDependencies = ["sap.ui.unified"];
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The libraries are deprecated and shall not be added in 2.x
|
|
156
|
+
* @deprecated since 1.120.0
|
|
157
|
+
*/
|
|
158
|
+
aDefaultDependencies = ["sap.ca.scfld.md", "sap.ca.ui", "sap.me", "sap.ui.unified"];
|
|
159
|
+
|
|
22
160
|
/**
|
|
23
161
|
* @alias sap.ushell.services.Ui5ComponentLoader
|
|
24
162
|
* @class
|
|
@@ -66,289 +204,566 @@ sap.ui.define([
|
|
|
66
204
|
this._oAdapter = oAdapter;
|
|
67
205
|
|
|
68
206
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @param {object} oComponentProperties The component properties
|
|
71
|
-
* @param {object} vError The error to be logged
|
|
72
|
-
* @returns {Promise} Promise that resolves with vError
|
|
207
|
+
* Load the Core-Ext-Light bundle when the appropriate Event is emitted
|
|
73
208
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
vError + "",
|
|
80
|
-
vError.status,
|
|
81
|
-
vError.stack,
|
|
82
|
-
sComponentProperties
|
|
83
|
-
);
|
|
84
|
-
return Promise.reject(vError);
|
|
85
|
-
};
|
|
209
|
+
EventHub.once("loadCoreResourcesComplement")
|
|
210
|
+
.do(() => {
|
|
211
|
+
this.loadCoreResourcesComplement();
|
|
212
|
+
});
|
|
213
|
+
}
|
|
86
214
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
215
|
+
/**
|
|
216
|
+
* Modifies the component properties.
|
|
217
|
+
* It is the wrapper for the adapter, that may implement this method or not
|
|
218
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.InstantiationData} oInstantiationData The oData with component properties as a member
|
|
219
|
+
* @param {sap.ushell.UI5ComponentType} sUI5ComponentType Type used to define the type of loading a ui5component by FLP
|
|
220
|
+
* @returns {Promise} The promise that resolves with the modified oData
|
|
221
|
+
*
|
|
222
|
+
* @private
|
|
223
|
+
*/
|
|
224
|
+
Ui5ComponentLoader.prototype.modifyComponentProperties = async function (oInstantiationData, sUI5ComponentType) {
|
|
225
|
+
if (this._oAdapter.modifyComponentProperties) {
|
|
226
|
+
const oComponentProperties = await this._oAdapter.modifyComponentProperties(oInstantiationData.componentProperties, sUI5ComponentType);
|
|
227
|
+
oInstantiationData.componentProperties = oComponentProperties;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
return oInstantiationData;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Loads and creates the UI5 component from the specified application properties object
|
|
235
|
+
* (the result of a navigation target resolution).
|
|
236
|
+
*
|
|
237
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.AppProperties} oAppProperties Application properties as typically produced by resolveHashFragment,
|
|
238
|
+
* note that some members of componentData are propagated, this is used in the myinbox scenario,
|
|
239
|
+
* see (CrossApplicationNavigation.createComponentInstance)
|
|
240
|
+
* @param {sap.ushell.services.URLParsing.DecomposedHash} [oParsedShellHash] The shell hash of the application that is to be opened already parsed via
|
|
241
|
+
* <code>sap.ushell.services.URLParsing#parseShellHash</code><code>sap.ushell.services.URLParsing#parseShellHash</code>.
|
|
242
|
+
* @param {Promise[]} aWaitForBeforeInstantiation An array of promises which delays the instantiation of
|
|
243
|
+
* the Component class until those Promises are resolved.
|
|
244
|
+
* @param {sap.ushell.UI5ComponentType} sUI5ComponentType Type used to define the type of loading a ui5component by FLP
|
|
245
|
+
* as defined ushellLibrary
|
|
246
|
+
* @returns {Promise<sap.ushell.services.Ui5ComponentLoader.AppPropertiesResult>} Resolves with the application properties object which is enriched
|
|
247
|
+
* with an <code>componentHandle<code> object that encapsulates the loaded component.
|
|
248
|
+
* If the UI5 core resources have been loaded completely as a result of this call
|
|
249
|
+
* (either customPreload is disabled or the core-ext-light.js module is loaded as part of this call or was already loaded),
|
|
250
|
+
* the result object also gets a flag <code>coreResourcesFullyLoaded</code> which is true.
|
|
251
|
+
*
|
|
252
|
+
* @private
|
|
253
|
+
*/
|
|
254
|
+
Ui5ComponentLoader.prototype.createComponent = async function (oAppProperties, oParsedShellHash = {}, aWaitForBeforeInstantiation, sUI5ComponentType) {
|
|
255
|
+
let oInstantiationData;
|
|
256
|
+
try {
|
|
257
|
+
oInstantiationData = await this.createComponentData(oAppProperties, oParsedShellHash, aWaitForBeforeInstantiation);
|
|
258
|
+
oInstantiationData = await this.modifyComponentProperties(oInstantiationData, sUI5ComponentType);
|
|
259
|
+
} catch (oError) {
|
|
260
|
+
Log.error("Ui5ComponentLoader: Error while creating component data", oError, "sap.ushell.services.Ui5ComponentLoader");
|
|
261
|
+
return oAppProperties;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const oEnrichedAppProperties = await this.instantiateComponent(oInstantiationData);
|
|
265
|
+
return oEnrichedAppProperties;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Loads the UI5 component from the specified application properties object
|
|
270
|
+
* (the result of a navigation target resolution).
|
|
271
|
+
*
|
|
272
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.AppProperties} oAppProperties Application properties as typically produced by resolveHashFragment,
|
|
273
|
+
* note that some members of componentData are propagated, this is used in the myinbox scenario,
|
|
274
|
+
* see (CrossApplicationNavigation.createComponentInstance)
|
|
275
|
+
* @param {sap.ushell.services.URLParsing.DecomposedHash} oParsedShellHash The shell hash of the application that is to be opened already parsed via
|
|
276
|
+
* <code>sap.ushell.services.URLParsing#parseShellHash</code><code>sap.ushell.services.URLParsing#parseShellHash</code>.
|
|
277
|
+
* @param {Promise[]} aWaitForBeforeInstantiation An array of promises which delays the instantiation of
|
|
278
|
+
* the Component class until those Promises are resolved.
|
|
279
|
+
* @returns {Promise<sap.ushell.services.Ui5ComponentLoader.InstantiationData>} Resolves component data.
|
|
280
|
+
*
|
|
281
|
+
* @private
|
|
282
|
+
*/
|
|
283
|
+
Ui5ComponentLoader.prototype.createComponentData = async function (oAppProperties = {}, oParsedShellHash = {}, aWaitForBeforeInstantiation) {
|
|
284
|
+
const oInstantiationData = {};
|
|
285
|
+
const oApplicationDependencies = oAppProperties.applicationDependencies || {};
|
|
286
|
+
|
|
287
|
+
this._logAnyApplicationDependenciesMessages(
|
|
288
|
+
oApplicationDependencies.name,
|
|
289
|
+
oApplicationDependencies.messages
|
|
290
|
+
);
|
|
291
|
+
|
|
292
|
+
if (!oAppProperties.ui5ComponentName) {
|
|
293
|
+
throw new Error("Ui5ComponentLoader: ui5ComponentName is mandatory");
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
oInstantiationData.appPropertiesSafe = oAppProperties;
|
|
297
|
+
oInstantiationData.loadCoreExt = this._shouldLoadCoreExt(oAppProperties);
|
|
298
|
+
|
|
299
|
+
oInstantiationData.componentData = this._createComponentData(oAppProperties);
|
|
300
|
+
|
|
301
|
+
const bCustomPreloadEnabled = Config.last("/core/customPreload/enabled");
|
|
302
|
+
const bAddCoreExtPreloadBundle = oInstantiationData.loadCoreExt && bCustomPreloadEnabled;
|
|
303
|
+
const bLoadDefaultDependencies = this._shouldLoadDefaultDependencies(oAppProperties);
|
|
304
|
+
const sComponentId = oAppProperties.ui5ComponentId || this._constructAppComponentId(oParsedShellHash);
|
|
305
|
+
|
|
306
|
+
oInstantiationData.componentProperties = await this._createComponentProperties(
|
|
307
|
+
sComponentId,
|
|
308
|
+
oAppProperties,
|
|
309
|
+
aWaitForBeforeInstantiation,
|
|
310
|
+
bAddCoreExtPreloadBundle,
|
|
311
|
+
bLoadDefaultDependencies
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
// Avoid warnings in ApplicationContainer.
|
|
315
|
+
// TODO: can be removed when ApplicationContainer construction is changed.
|
|
316
|
+
delete oInstantiationData.appPropertiesSafe.loadCoreExt;
|
|
317
|
+
delete oInstantiationData.appPropertiesSafe.loadDefaultDependencies;
|
|
318
|
+
|
|
319
|
+
return oInstantiationData;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Creates the UI5 component from the specified application properties object
|
|
324
|
+
* (the result of a navigation target resolution).
|
|
325
|
+
*
|
|
326
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.InstantiationData} oInstantiationData Contains all application & component properties and data
|
|
327
|
+
* @returns {Promise<sap.ushell.services.Ui5ComponentLoader.AppPropertiesResult>} Resolves with the application properties object which is enriched
|
|
328
|
+
* with an <code>componentHandle<code> object that encapsulates the loaded component.
|
|
329
|
+
* If the UI5 core resources have been loaded completely as a result of this call
|
|
330
|
+
* (either customPreload is disabled or the core-ext-light.js module is loaded as part of this call or was already loaded),
|
|
331
|
+
* the result object also gets a flag <code>coreResourcesFullyLoaded</code> which is true.
|
|
332
|
+
*
|
|
333
|
+
* @private
|
|
334
|
+
*/
|
|
335
|
+
Ui5ComponentLoader.prototype.instantiateComponent = async function (oInstantiationData) {
|
|
336
|
+
const oComponentProperties = oInstantiationData.componentProperties;
|
|
337
|
+
oComponentProperties.componentData = oInstantiationData.componentData;
|
|
338
|
+
|
|
339
|
+
// notify we are about to create component
|
|
340
|
+
Ui5ComponentHandle.onBeforeApplicationInstanceCreated.call(null, oComponentProperties);
|
|
341
|
+
|
|
342
|
+
try {
|
|
343
|
+
const oComponent = await this._createUi5Component(oComponentProperties);
|
|
344
|
+
|
|
345
|
+
const oOriginalInputAppProperties = oInstantiationData.appPropertiesSafe;
|
|
346
|
+
oOriginalInputAppProperties.componentHandle = new Ui5ComponentHandle(oComponent);
|
|
347
|
+
|
|
348
|
+
const bCoreResourcesFullyLoaded = oInstantiationData.loadCoreExt;
|
|
349
|
+
if (bCoreResourcesFullyLoaded) {
|
|
350
|
+
oOriginalInputAppProperties.coreResourcesFullyLoaded = bCoreResourcesFullyLoaded;
|
|
351
|
+
EventHub.emit("CoreResourcesComplementLoaded", { status: "success" });
|
|
97
352
|
}
|
|
98
|
-
return this._oAdapter.modifyComponentProperties(oData.componentProperties, sUI5ComponentType)
|
|
99
|
-
.then(function (oComponentProperties) {
|
|
100
|
-
oData.componentProperties = oComponentProperties;
|
|
101
|
-
return oData;
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
353
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
* @param {object} oAppProperties Application properties as typically produced by resolveHashFragment,
|
|
110
|
-
* note that some members of componentData are propagated, this is used in the myinbox scenario,
|
|
111
|
-
* see (CrossApplicationNavigation.createComponentInstance)
|
|
112
|
-
* @param {object} oParsedShellHash The shell hash of the application that is to be opened already parsed via
|
|
113
|
-
* <code>sap.ushell.services.URLParsing#parseShellHash</code><code>sap.ushell.services.URLParsing#parseShellHash</code>.
|
|
114
|
-
* @param {Promise[]} aWaitForBeforeInstantiation An array of promises which delays the instantiation of
|
|
115
|
-
* the Component class until those Promises are resolved.
|
|
116
|
-
* @param {string} sUI5ComponentType Type used to define the type of loading a ui5component by FLP
|
|
117
|
-
* as defined ushellLibrary
|
|
118
|
-
* @returns {jQuery.Promise} Resolves with the application properties object which is enriched
|
|
119
|
-
* with an <code>componentHandle<code> object that encapsulates the loaded component.
|
|
120
|
-
* If the UI5 core resources have been loaded completely as a result of this call
|
|
121
|
-
* (either customPreload is disabled or the core-ext-light.js module is loaded as part of this call or was already loaded),
|
|
122
|
-
* the result object also gets a flag <code>coreResourcesFullyLoaded</code> which is true.
|
|
123
|
-
* @private
|
|
124
|
-
*/
|
|
125
|
-
this.createComponent = function (oAppProperties, oParsedShellHash, aWaitForBeforeInstantiation, sUI5ComponentType) {
|
|
126
|
-
var oDeferred = new jQuery.Deferred();
|
|
127
|
-
var that = this;
|
|
128
|
-
|
|
129
|
-
this.createComponentData(oAppProperties, oParsedShellHash, aWaitForBeforeInstantiation)
|
|
130
|
-
.then(function (oComponentData) {
|
|
131
|
-
return that.modifyComponentProperties(oComponentData, sUI5ComponentType);
|
|
132
|
-
})
|
|
133
|
-
.then(function (oData) {
|
|
134
|
-
that.instantiateComponent(oData).then(oDeferred.resolve, oDeferred.reject);
|
|
135
|
-
},
|
|
136
|
-
function () {
|
|
137
|
-
oDeferred.resolve(oAppProperties);
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
return oDeferred.promise();
|
|
141
|
-
};
|
|
354
|
+
return oOriginalInputAppProperties;
|
|
355
|
+
} catch (vError) {
|
|
356
|
+
const sApplicationName = oComponentProperties.name;
|
|
357
|
+
const sComponentProperties = JSON.stringify(oComponentProperties, null, 4);
|
|
142
358
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
* (the result of a navigation target resolution).
|
|
146
|
-
*
|
|
147
|
-
* @param {object} oAppProperties Application properties as typically produced by resolveHashFragment,
|
|
148
|
-
* note that some members of componentData are propagated, this is used in the myinbox scenario,
|
|
149
|
-
* see (CrossApplicationNavigation.createComponentInstance)
|
|
150
|
-
* @param {object} oParsedShellHash The shell hash of the application that is to be opened already parsed via
|
|
151
|
-
* <code>sap.ushell.services.URLParsing#parseShellHash</code><code>sap.ushell.services.URLParsing#parseShellHash</code>.
|
|
152
|
-
* @param {Promise[]} aWaitForBeforeInstantiation An array of promises which delays the instantiation of
|
|
153
|
-
* the Component class until those Promises are resolved.
|
|
154
|
-
* @returns {Promise} Resolves component data.
|
|
155
|
-
* @private
|
|
156
|
-
*/
|
|
157
|
-
this.createComponentData = function (oAppProperties, oParsedShellHash, aWaitForBeforeInstantiation) {
|
|
158
|
-
var that = this;
|
|
159
|
-
return new Promise(function (fnResolve, fnReject) {
|
|
160
|
-
var oData = {};
|
|
161
|
-
var oAppPropertiesSafe = oAppProperties || {};
|
|
162
|
-
var bLoadCoreExt = oUtils.shouldLoadCoreExt(oAppPropertiesSafe);
|
|
163
|
-
var bCustomPreloadEnabled = Config.last("/core/customPreload/enabled");
|
|
164
|
-
var bAddCoreExtPreloadBundle = bLoadCoreExt && bCustomPreloadEnabled;
|
|
165
|
-
var bLoadDefaultDependencies = oUtils.shouldLoadDefaultDependencies(oAppPropertiesSafe, that._oServiceConfig);
|
|
166
|
-
var bNoCachebusterTokens = oUshellUtils.getParameterValueBoolean("sap-ushell-nocb");
|
|
167
|
-
var oApplicationDependencies = oAppPropertiesSafe.applicationDependencies || {};
|
|
168
|
-
var sComponentId = oUtils.constructAppComponentId(oParsedShellHash || {});
|
|
169
|
-
var aCoreResourcesComplement = Config.last("/core/customPreload/coreResourcesComplement");
|
|
170
|
-
var oComponentData;
|
|
171
|
-
var oComponentProperties;
|
|
172
|
-
|
|
173
|
-
oUtils.logAnyApplicationDependenciesMessages(
|
|
174
|
-
oApplicationDependencies.name,
|
|
175
|
-
oApplicationDependencies.messages
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
if (!oAppPropertiesSafe.ui5ComponentName) {
|
|
179
|
-
fnReject();
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
// Avoid warnings in ApplicationContainer.
|
|
183
|
-
// TODO: can be removed when ApplicationContainer construction is changed.
|
|
184
|
-
delete oAppPropertiesSafe.loadCoreExt;
|
|
185
|
-
delete oAppPropertiesSafe.loadDefaultDependencies;
|
|
186
|
-
|
|
187
|
-
oComponentData = oUtils.createComponentData(
|
|
188
|
-
oAppPropertiesSafe.componentData || {},
|
|
189
|
-
oAppPropertiesSafe.url,
|
|
190
|
-
oAppPropertiesSafe.applicationConfiguration,
|
|
191
|
-
oAppPropertiesSafe.reservedParameters
|
|
192
|
-
);
|
|
193
|
-
|
|
194
|
-
if (oAppPropertiesSafe.getExtensions) {
|
|
195
|
-
oComponentData.getExtensions = oAppPropertiesSafe.getExtensions;
|
|
196
|
-
delete oAppPropertiesSafe.getExtensions;
|
|
197
|
-
}
|
|
198
|
-
if (oAppPropertiesSafe.oPostMessageInterface) {
|
|
199
|
-
oComponentData.oPostMessageInterface = oAppPropertiesSafe.oPostMessageInterface;
|
|
200
|
-
delete oAppPropertiesSafe.oPostMessageInterface;
|
|
201
|
-
}
|
|
359
|
+
let sErrorReason = `The issue is most likely caused by application ${sApplicationName}`;
|
|
360
|
+
let sAppPropertiesErrorMsg = `Failed to load UI5 component with properties: '${sComponentProperties}'.`;
|
|
202
361
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
oData.componentData = oComponentData;
|
|
216
|
-
oData.componentProperties = oComponentProperties;
|
|
217
|
-
oData.appPropertiesSafe = oAppPropertiesSafe;
|
|
218
|
-
oData.loadCoreExt = bLoadCoreExt;
|
|
219
|
-
|
|
220
|
-
//This code is for the Flexible UI team, to allow loading appliction with a specific manifest version:
|
|
221
|
-
// 1. first, we need to check if the "sap.ui.fl" is loaded
|
|
222
|
-
// 2. then we need to call special api provided by the FL team to give us the manifest
|
|
223
|
-
// version to load based on the app id
|
|
224
|
-
// 3. last, we concatinate the version to the manifest url
|
|
225
|
-
if (typeof oComponentProperties.manifest === "string" && oComponentProperties.manifest.length > 0 && "sap.ui.fl" in Library.all()) {
|
|
226
|
-
sap.ui.require(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"], (FlexRuntimeInfoAPI) => {
|
|
227
|
-
try {
|
|
228
|
-
const sNewVersion = FlexRuntimeInfoAPI.getFlexVersion({ reference: oData.appPropertiesSafe.ui5ComponentName });
|
|
229
|
-
if (typeof sNewVersion === "string" && sNewVersion.length > 0) {
|
|
230
|
-
const oManifestUrl = new URI(oComponentProperties.manifest);
|
|
231
|
-
oManifestUrl.addQuery("version", sNewVersion);
|
|
232
|
-
oComponentProperties.manifest = oManifestUrl.toString();
|
|
233
|
-
}
|
|
234
|
-
fnResolve(oData);
|
|
235
|
-
} catch (ex) {
|
|
236
|
-
//if exception occured in the process of getting the manifest version, continue without it so the component
|
|
237
|
-
//can be created
|
|
238
|
-
Log.error("Error when trying to get manifest version from 'sap.ui.fl.apply.api.FlexRuntimeInfoAPI'",
|
|
239
|
-
ex,
|
|
240
|
-
"sap.ushell.services.Ui5ComponentLoader");
|
|
241
|
-
fnResolve(oData);
|
|
242
|
-
}
|
|
243
|
-
}, (ex) => {
|
|
244
|
-
//if the "sap.ui.require" fails, we simply resolve in order to continue as is, so the component
|
|
245
|
-
//will be created without the manifest version (to avoid empty UI)
|
|
246
|
-
Log.error("Error when trying to load 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI'",
|
|
247
|
-
ex,
|
|
248
|
-
"sap.ushell.services.Ui5ComponentLoader");
|
|
249
|
-
fnResolve(oData);
|
|
250
|
-
});
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
362
|
+
if (vError.stack) {
|
|
363
|
+
sAppPropertiesErrorMsg += ` Error likely caused by:\n${vError.stack}`;
|
|
364
|
+
} else {
|
|
365
|
+
// Error usually appears in the stack trace if the app
|
|
366
|
+
// threw with new Error... but if it didn't we add it here:
|
|
367
|
+
sAppPropertiesErrorMsg += ` Error: '${vError}'`;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
if (vError.status === "parsererror") {
|
|
371
|
+
sErrorReason += ", as one or more of its resources could not be parsed";
|
|
372
|
+
}
|
|
373
|
+
sErrorReason += ". Please create a support incident and assign it to the support component of the respective application.";
|
|
253
374
|
|
|
254
|
-
|
|
375
|
+
Log.error(sErrorReason, sAppPropertiesErrorMsg, sApplicationName);
|
|
376
|
+
|
|
377
|
+
throw vError;
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Returns the CoreResources complement bundle information configured in the service
|
|
383
|
+
*
|
|
384
|
+
* @returns {string[]} The bundle resources that can be set as <code>preloadBundles</code>
|
|
385
|
+
* when loading UI5 components; an empty array is returned when the custom preload is disabled
|
|
386
|
+
*
|
|
387
|
+
* @since 1.102.0
|
|
388
|
+
* @private
|
|
389
|
+
*/
|
|
390
|
+
Ui5ComponentLoader.prototype.getCoreResourcesComplementBundle = function () {
|
|
391
|
+
if (Config.last("/core/customPreload/enabled")) {
|
|
392
|
+
return Config.last("/core/customPreload/coreResourcesComplement");
|
|
393
|
+
}
|
|
394
|
+
return [];
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Loads a Bundle that complements the Core Resources as configured in the configuration (default core-ext-light)
|
|
399
|
+
*
|
|
400
|
+
* This should normally be triggered by the corresponding EventHub Event (loadCoreExtLight)
|
|
401
|
+
* Can also be called directly and returns a promise if used that way.
|
|
402
|
+
*
|
|
403
|
+
* @returns {Promise} A Promise that resolves as soon as the Core Complements bundle is loaded
|
|
404
|
+
*
|
|
405
|
+
* @private
|
|
406
|
+
*/
|
|
407
|
+
Ui5ComponentLoader.prototype.loadCoreResourcesComplement = function () {
|
|
408
|
+
if (!this.loadCoreResourcesComplementPromise) {
|
|
409
|
+
this.loadCoreResourcesComplementPromise = new Promise(async (resolve, reject) => {
|
|
410
|
+
try {
|
|
411
|
+
await this._loadBundle(this.getCoreResourcesComplementBundle());
|
|
412
|
+
EventHub.emit("CoreResourcesComplementLoaded", { status: "success" });
|
|
413
|
+
resolve();
|
|
414
|
+
} catch (oError) {
|
|
415
|
+
EventHub.emit("CoreResourcesComplementLoaded", { status: "failed" });
|
|
416
|
+
reject(oError);
|
|
417
|
+
}
|
|
255
418
|
});
|
|
419
|
+
this.loadCoreResourcesComplementPromise.finally(() => {
|
|
420
|
+
// Reset... to allow requesting again
|
|
421
|
+
this.loadCoreResourcesComplementPromise = undefined;
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return this.loadCoreResourcesComplementPromise;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Creates a UI5 component instance asynchronously.
|
|
430
|
+
*
|
|
431
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.ComponentProperties} oComponentProperties the Ui5 component properties
|
|
432
|
+
*
|
|
433
|
+
* @returns {Promise<sap.ui.core.Component>} Resolves with an instance of
|
|
434
|
+
* <code>sap.ui.component</code> containing the instantiated Ui5 component.
|
|
435
|
+
*
|
|
436
|
+
* @private
|
|
437
|
+
*/
|
|
438
|
+
Ui5ComponentLoader.prototype._createUi5Component = function (oComponentProperties) {
|
|
439
|
+
if (oComponentProperties.manifest === undefined) {
|
|
440
|
+
oComponentProperties.manifest = false;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
return Component.create(oComponentProperties);
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Decides based on the application properties whether the core-ext-light bundle should be loaded.
|
|
448
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.AppProperties} oAppProperties The application properties.
|
|
449
|
+
* @returns {boolean} Whether the core-ext-light bundle should be loaded.
|
|
450
|
+
*
|
|
451
|
+
* @private
|
|
452
|
+
*/
|
|
453
|
+
Ui5ComponentLoader.prototype._shouldLoadCoreExt = function (oAppProperties) {
|
|
454
|
+
let bLoadCoreExt = true; /* default */
|
|
455
|
+
if (oAppProperties.hasOwnProperty("loadCoreExt")) {
|
|
456
|
+
bLoadCoreExt = oAppProperties.loadCoreExt;
|
|
457
|
+
}
|
|
458
|
+
return bLoadCoreExt;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Defines whether the default dependencies should be loaded.
|
|
463
|
+
* Can be overridden by the service configuration.
|
|
464
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.AppProperties} oAppProperties The application properties.
|
|
465
|
+
* @returns {boolean} Whether the default dependencies should be loaded.
|
|
466
|
+
*
|
|
467
|
+
* @private
|
|
468
|
+
*/
|
|
469
|
+
Ui5ComponentLoader.prototype._shouldLoadDefaultDependencies = function (oAppProperties) {
|
|
470
|
+
// default dependencies loading can be skipped explicitly (homepage component use case)
|
|
471
|
+
let bLoadDefaultDependencies = true;
|
|
472
|
+
if (oAppProperties.hasOwnProperty("loadDefaultDependencies")) {
|
|
473
|
+
bLoadDefaultDependencies = oAppProperties.loadDefaultDependencies;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// or via service configuration (needed for unit tests)
|
|
477
|
+
if (this._oServiceConfig && this._oServiceConfig.hasOwnProperty("loadDefaultDependencies")) {
|
|
478
|
+
bLoadDefaultDependencies = bLoadDefaultDependencies && this._oServiceConfig.loadDefaultDependencies;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
return bLoadDefaultDependencies;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Constructs the app id based on the parsed shell hash.
|
|
486
|
+
* @param {sap.ushell.services.URLParsing.DecomposedHash} [oParsedShellHash] The parsed shell hash.
|
|
487
|
+
* @returns {string} The constructed app component ID.
|
|
488
|
+
*
|
|
489
|
+
* @private
|
|
490
|
+
*/
|
|
491
|
+
Ui5ComponentLoader.prototype._constructAppComponentId = function (oParsedShellHash = {}) {
|
|
492
|
+
const sSemanticObject = oParsedShellHash.semanticObject || null;
|
|
493
|
+
const sAction = oParsedShellHash.action || null;
|
|
494
|
+
|
|
495
|
+
if (!sSemanticObject || !sAction) {
|
|
496
|
+
return null;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// todo: [FLPCOREANDUX-10024] Get rid of this calculation
|
|
500
|
+
return `application-${sSemanticObject}-${sAction}-component`;
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Removes the cachebuster token from the given URL if any is present.
|
|
505
|
+
*
|
|
506
|
+
* @param {string} sUrl The URL to remove the change buster token from
|
|
507
|
+
* @returns {string} The URL without the cachebuster token. The same URL is returned if no cachebuster token was present in the original URL.
|
|
508
|
+
*
|
|
509
|
+
* @private
|
|
510
|
+
*/
|
|
511
|
+
Ui5ComponentLoader.prototype._removeCacheBusterTokenFromUrl = function (sUrl) {
|
|
512
|
+
const rCacheBusterToken = new RegExp("[/]~[\\w-]+~[A-Z0-9]?");
|
|
513
|
+
return sUrl.replace(rCacheBusterToken, "");
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Remove any parameters from the given URL.
|
|
518
|
+
* @param {string} sUrl The URL to remove the parameters from.
|
|
519
|
+
* @returns {string} The URL without any parameters.
|
|
520
|
+
*
|
|
521
|
+
* @private
|
|
522
|
+
*/
|
|
523
|
+
Ui5ComponentLoader.prototype._removeParametersFromUrl = function (sUrl) {
|
|
524
|
+
if (!sUrl) { return sUrl; }
|
|
525
|
+
|
|
526
|
+
const iIndex = sUrl.indexOf("?");
|
|
527
|
+
if (iIndex >= 0) {
|
|
528
|
+
return sUrl.slice(0, iIndex);
|
|
529
|
+
}
|
|
530
|
+
return sUrl;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Returns a map of all search parameters present in the search string of the given URL.
|
|
535
|
+
*
|
|
536
|
+
* @param {string} sUrl the URL
|
|
537
|
+
* @returns {object}
|
|
538
|
+
* in member <code>startupParameters</code> <code>map<string, string[]}></code> from key to array of values,
|
|
539
|
+
* in members <code>sap-xapp-state</code> an array of Cross application Navigation state keys, if present
|
|
540
|
+
* Note that this key is removed from startupParameters!
|
|
541
|
+
*
|
|
542
|
+
* @private
|
|
543
|
+
*/
|
|
544
|
+
Ui5ComponentLoader.prototype._getParameterMap = function (sUrl) {
|
|
545
|
+
const mParams = UriParameters.fromURL(sUrl || window.location.href).mParams;
|
|
546
|
+
const xAppState = mParams["sap-xapp-state"];
|
|
547
|
+
const xAppStateData = mParams["sap-xapp-state-data"];
|
|
548
|
+
delete mParams["sap-xapp-state"];
|
|
549
|
+
delete mParams["sap-xapp-state-data"];
|
|
550
|
+
const oResult = {
|
|
551
|
+
startupParameters: mParams
|
|
256
552
|
};
|
|
553
|
+
if (xAppStateData) {
|
|
554
|
+
oResult["sap-xapp-state"] = xAppStateData;
|
|
555
|
+
}
|
|
556
|
+
if (xAppState) { // sap-xapp-state has priority over sap-xapp-state-data
|
|
557
|
+
oResult["sap-xapp-state"] = xAppState;
|
|
558
|
+
}
|
|
559
|
+
return oResult;
|
|
560
|
+
};
|
|
257
561
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
//
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
562
|
+
/**
|
|
563
|
+
* Loads the specified bundle resources asynchronously.
|
|
564
|
+
*
|
|
565
|
+
* @param {string[]} aBundleResources - the resources to be loaded;
|
|
566
|
+
* must follow the UI5 module definition spec (i.e. w/o .js extension)
|
|
567
|
+
* @returns {Promise} Promise that resolves as soon as all bundle resources are loaded.
|
|
568
|
+
*
|
|
569
|
+
* @private
|
|
570
|
+
*/
|
|
571
|
+
Ui5ComponentLoader.prototype._loadBundle = function (aBundleResources) {
|
|
572
|
+
if (!Array.isArray(aBundleResources)) {
|
|
573
|
+
Log.error("Ui5ComponentLoader: loadBundle called with invalid arguments");
|
|
574
|
+
return null;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
return Promise.all(aBundleResources.map((sResource) => {
|
|
578
|
+
// since 1.46, multiple calls of sap.ui.loader._.loadJSResourceAsync
|
|
579
|
+
// for the same module will return the same promise,
|
|
580
|
+
// i.e. there is no need to check if the module has been loaded before
|
|
581
|
+
// TODO: sap.ui.loader._.loadJSResourceAsync is private.
|
|
582
|
+
return sap.ui.loader._.loadJSResourceAsync(sResource);
|
|
583
|
+
})).catch((vError) => {
|
|
584
|
+
Log.error(`Ui5ComponentLoader: failed to load bundle resources: [${aBundleResources.join(", ")}]`);
|
|
585
|
+
return Promise.reject(vError);
|
|
586
|
+
});
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Creates a componentProperties object that can be used to instantiate a ui5 component
|
|
591
|
+
* excluding the component data.
|
|
592
|
+
* @param {string} sAppComponentId The ID of the app component.
|
|
593
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.AppProperties} oAppProperties The original application properties.
|
|
594
|
+
* @param {string[]} aWaitForBeforeInstantiation The list of components to wait for before instantiating the component.
|
|
595
|
+
* @param {boolean} bAddCoreExtPreloadBundle Whether to add the core-ext-light-preload bundle to the component properties.
|
|
596
|
+
* @param {boolean} bLoadDefaultDependencies Whether to load default dependencies.
|
|
597
|
+
*
|
|
598
|
+
* @returns {Promise<sap.ushell.services.Ui5ComponentLoader.ComponentProperties>} The component properties that can be used to instantiate the UI5 component.
|
|
599
|
+
*/
|
|
600
|
+
Ui5ComponentLoader.prototype._createComponentProperties = async function (sAppComponentId, oAppProperties, aWaitForBeforeInstantiation, bAddCoreExtPreloadBundle, bLoadDefaultDependencies) {
|
|
601
|
+
const sUi5ComponentName = oAppProperties.ui5ComponentName;
|
|
602
|
+
const sComponentUrl = oAppProperties.url;
|
|
603
|
+
const oApplicationDependencies = oAppProperties.applicationDependencies || {};
|
|
604
|
+
const bNoCachebusterTokens = ushellUtils.getParameterValueBoolean("sap-ushell-nocb");
|
|
605
|
+
// take over all properties of applicationDependencies to enable extensions in server w/o
|
|
606
|
+
// necessary changes in client
|
|
607
|
+
const oComponentProperties = deepExtend({}, oApplicationDependencies);
|
|
608
|
+
|
|
609
|
+
// set default library dependencies if no asyncHints defined (apps without manifest)
|
|
610
|
+
// TODO: move fallback logic to server implementation
|
|
611
|
+
if (!oComponentProperties.asyncHints) {
|
|
612
|
+
oComponentProperties.asyncHints = bLoadDefaultDependencies ? { libs: aDefaultDependencies } : {};
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
if (bAddCoreExtPreloadBundle) {
|
|
616
|
+
const aCoreResourcesComplement = Config.last("/core/customPreload/coreResourcesComplement");
|
|
617
|
+
|
|
618
|
+
oComponentProperties.asyncHints.preloadBundles = [
|
|
619
|
+
...(oComponentProperties.asyncHints.preloadBundles || []),
|
|
620
|
+
...aCoreResourcesComplement
|
|
621
|
+
];
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (aWaitForBeforeInstantiation) {
|
|
625
|
+
oComponentProperties.asyncHints.waitFor = aWaitForBeforeInstantiation;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
// Use component name from app properties (target mapping) only if no name
|
|
629
|
+
// was provided in the component properties (applicationDependencies)
|
|
630
|
+
// for supporting application variants, we have to differentiate between app ID
|
|
631
|
+
// and component name
|
|
632
|
+
if (!oComponentProperties.name) {
|
|
633
|
+
oComponentProperties.name = sUi5ComponentName;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (sComponentUrl) {
|
|
637
|
+
oComponentProperties.url = this._removeParametersFromUrl(sComponentUrl);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if (sAppComponentId) {
|
|
641
|
+
oComponentProperties.id = sAppComponentId;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if (bNoCachebusterTokens && oComponentProperties.asyncHints) {
|
|
645
|
+
AsyncHintsHelper.modifyUrls(oComponentProperties.asyncHints, this._removeCacheBusterTokenFromUrl);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
//This code is for the Flexible UI team, to allow loading application with a specific manifest version:
|
|
649
|
+
// 1. first, we need to check if the "sap.ui.fl" is loaded
|
|
650
|
+
// 2. then we need to call special api provided by the FL team to give us the manifest
|
|
651
|
+
// version to load based on the app id
|
|
652
|
+
// 3. last, we concatenate the version to the manifest url
|
|
653
|
+
const sManifest = oComponentProperties.manifest;
|
|
654
|
+
if (typeof sManifest === "string" && sManifest.length > 0 && "sap.ui.fl" in Lib.all()) {
|
|
655
|
+
try {
|
|
656
|
+
const [FlexRuntimeInfoAPI] = await ushellUtils.requireAsync(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"]);
|
|
657
|
+
try {
|
|
658
|
+
const sNewVersion = FlexRuntimeInfoAPI.getFlexVersion({ reference: sUi5ComponentName });
|
|
659
|
+
if (typeof sNewVersion === "string" && sNewVersion.length > 0) {
|
|
660
|
+
const oManifestUrl = new URI(sManifest);
|
|
661
|
+
oManifestUrl.addQuery("version", sNewVersion);
|
|
662
|
+
oComponentProperties.manifest = oManifestUrl.toString();
|
|
290
663
|
}
|
|
664
|
+
return oComponentProperties;
|
|
665
|
+
} catch (ex) {
|
|
666
|
+
//if exception occurred in the process of getting the manifest version, continue without it so the component
|
|
667
|
+
//can be created
|
|
668
|
+
Log.error("Error when trying to get manifest version from 'sap.ui.fl.apply.api.FlexRuntimeInfoAPI'",
|
|
669
|
+
ex,
|
|
670
|
+
"sap.ushell.services.Ui5ComponentLoader");
|
|
671
|
+
return oComponentProperties;
|
|
672
|
+
}
|
|
673
|
+
} catch (ex) {
|
|
674
|
+
//if the "sap.ui.require" fails, we simply resolve in order to continue as is, so the component
|
|
675
|
+
//will be created without the manifest version (to avoid empty UI)
|
|
676
|
+
Log.error("Error when trying to load 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI'",
|
|
677
|
+
ex,
|
|
678
|
+
"sap.ushell.services.Ui5ComponentLoader");
|
|
679
|
+
return oComponentProperties;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
291
682
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
.fail(this._logStackTrace.bind(this, oComponentProperties))
|
|
295
|
-
.catch(oDeferred.reject);
|
|
683
|
+
return oComponentProperties;
|
|
684
|
+
};
|
|
296
685
|
|
|
297
|
-
|
|
298
|
-
|
|
686
|
+
/**
|
|
687
|
+
* Creates a componentData object that can be used to instantiate a ui5 component.
|
|
688
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.AppProperties} oAppProperties The safe application properties.
|
|
689
|
+
* @returns {sap.ushell.services.Ui5ComponentLoader.ComponentData} The component data that is handed over to the component as component data.
|
|
690
|
+
*
|
|
691
|
+
* @private
|
|
692
|
+
*/
|
|
693
|
+
Ui5ComponentLoader.prototype._createComponentData = function (oAppProperties) {
|
|
694
|
+
const oBaseComponentData = oAppProperties.componentData || {};
|
|
695
|
+
const sComponentUrl = oAppProperties.url;
|
|
696
|
+
const oApplicationConfiguration = oAppProperties.applicationConfiguration;
|
|
697
|
+
const oTechnicalParameters = oAppProperties.reservedParameters;
|
|
299
698
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
* @returns {string[]} The bundle resources that can be set as <code>preloadBundles</code>
|
|
304
|
-
* when loading UI5 components; an empty array is returned when the custom preload is disabled
|
|
305
|
-
*
|
|
306
|
-
* @since 1.102.0
|
|
307
|
-
* @private
|
|
308
|
-
*/
|
|
309
|
-
this.getCoreResourcesComplementBundle = function () {
|
|
310
|
-
return Config.last("/core/customPreload/enabled") ? Config.last("/core/customPreload/coreResourcesComplement") : [];
|
|
311
|
-
};
|
|
699
|
+
const oComponentData = deepExtend({
|
|
700
|
+
startupParameters: {}
|
|
701
|
+
}, oBaseComponentData);
|
|
312
702
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
.catch(function () {
|
|
331
|
-
oEventHub.emit("CoreResourcesComplementLoaded", { status: "failed" });
|
|
332
|
-
reject();
|
|
333
|
-
});
|
|
334
|
-
}.bind(this));
|
|
335
|
-
this.loadCoreResourcesComplementPromise.finally(function () {
|
|
336
|
-
// Reset... to allow requesting again
|
|
337
|
-
this.loadCoreResourcesComplementPromise = undefined;
|
|
338
|
-
}.bind(this));
|
|
703
|
+
if (oApplicationConfiguration) {
|
|
704
|
+
oComponentData.config = oApplicationConfiguration;
|
|
705
|
+
}
|
|
706
|
+
if (oTechnicalParameters) {
|
|
707
|
+
oComponentData.technicalParameters = oTechnicalParameters;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
const bComponentUrlHasParameters = sComponentUrl && sComponentUrl.indexOf("?") >= 0;
|
|
711
|
+
if (bComponentUrlHasParameters) {
|
|
712
|
+
const oUrlData = this._getParameterMap(sComponentUrl);
|
|
713
|
+
|
|
714
|
+
// pass GET parameters of URL via component data as member
|
|
715
|
+
// startupParameters and as xAppState (to allow blending with
|
|
716
|
+
// other oComponentData usage, e.g. extensibility use case)
|
|
717
|
+
oComponentData.startupParameters = oUrlData.startupParameters;
|
|
718
|
+
if (oUrlData["sap-xapp-state-data"]) {
|
|
719
|
+
oComponentData["sap-xapp-state"] = oUrlData["sap-xapp-state-data"];
|
|
339
720
|
}
|
|
721
|
+
if (oUrlData["sap-xapp-state"]) { // sap-xapp-state has priority over sap-xapp-state-data
|
|
722
|
+
oComponentData["sap-xapp-state"] = oUrlData["sap-xapp-state"];
|
|
723
|
+
}
|
|
724
|
+
}
|
|
340
725
|
|
|
341
|
-
|
|
342
|
-
|
|
726
|
+
if (oAppProperties.getExtensions) {
|
|
727
|
+
oComponentData.getExtensions = oAppProperties.getExtensions;
|
|
728
|
+
delete oAppProperties.getExtensions;
|
|
729
|
+
}
|
|
730
|
+
if (oAppProperties.oPostMessageInterface) {
|
|
731
|
+
oComponentData.oPostMessageInterface = oAppProperties.oPostMessageInterface;
|
|
732
|
+
delete oAppProperties.oPostMessageInterface;
|
|
733
|
+
}
|
|
343
734
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
735
|
+
return oComponentData;
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* The applicationDependencies might contain messages which are logged.
|
|
740
|
+
* @param {string} sApplicationDependenciesName The component name provided in the applicationDependencies.
|
|
741
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.ApplicationDependenciesMessage[]} aMessages The messages to be logged.
|
|
742
|
+
*
|
|
743
|
+
* @private
|
|
744
|
+
*/
|
|
745
|
+
Ui5ComponentLoader.prototype._logAnyApplicationDependenciesMessages = function (sApplicationDependenciesName, aMessages) {
|
|
746
|
+
if (!Array.isArray(aMessages)) {
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
aMessages.forEach((oMessage) => {
|
|
751
|
+
let sSeverity = String.prototype.toLowerCase.call(oMessage.severity || "");
|
|
752
|
+
sSeverity = ["trace", "debug", "info", "warning", "error", "fatal"].indexOf(sSeverity) !== -1 ? sSeverity : "error";
|
|
753
|
+
Log[sSeverity](oMessage.text, oMessage.details, sApplicationDependenciesName);
|
|
754
|
+
});
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Overwrites the default dependencies used for components which don't define asyncHints
|
|
759
|
+
* @param {string[]} aNewDefaultDependencies List of dependencies
|
|
760
|
+
*
|
|
761
|
+
* @since 1.120.0
|
|
762
|
+
* @private
|
|
763
|
+
*/
|
|
764
|
+
Ui5ComponentLoader.prototype._setDefaultDependencies = function (aNewDefaultDependencies) {
|
|
765
|
+
aDefaultDependencies = aNewDefaultDependencies;
|
|
766
|
+
};
|
|
352
767
|
|
|
353
768
|
Ui5ComponentLoader.hasNoAdapter = false;
|
|
354
769
|
return Ui5ComponentLoader;
|