@sapui5/sap.ushell 1.131.0 → 1.132.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 +37 -1
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +26 -21
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
- package/src/main/js/sap/ushell/UIActions.js +8 -13
- 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 +74 -48
- 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 +67 -11
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +357 -182
- 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 +68 -4
- 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/appRuntime/ui5/AppRuntime.js +0 -11
- package/src/main/js/sap/ushell/appRuntime/ui5/BusyIndicator.js +21 -27
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en_US_saptrc.properties +5 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en_US_saptrc.properties +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +4 -12
- 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 +33 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +13 -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/appRuntime/ui5/style.css +48 -0
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/LoadingConfiguration.json +4 -0
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +20 -0
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +10 -4
- 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 +11 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +1 -2
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/MessagingHelper.js +3 -3
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +14 -11
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxesCache.js +32 -51
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +31 -68
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +26 -8
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +40 -32
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en_US_saptrc.properties +37 -37
- package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en_US_saptrc.properties +9 -9
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_US_saptrc.properties +109 -109
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +2 -1
- package/src/main/js/sap/ushell/components/container/resources/resources_en_US_saptrc.properties +6 -6
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +507 -359
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +253 -161
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +30 -39
- package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +98 -0
- package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +50 -0
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +5 -6
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +193 -141
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +14 -30
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ar.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_bg.properties +7 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ca.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cs.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cy.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_da.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_de.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_el.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_GB.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +2 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saptrc.properties +45 -26
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es_MX.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_et.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fi.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr_CA.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hi.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hr.properties +8 -4
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hu.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_id.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_it.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_iw.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ja.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_kk.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ko.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lt.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lv.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_mk.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ms.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_nl.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_no.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pl.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt_PT.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ro.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ru.properties +7 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sh.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sk.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sl.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sr.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sv.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_th.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_tr.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_uk.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_vi.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_CN.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_TW.properties +6 -2
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +90 -96
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +58 -38
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTree.fragment.xml +20 -8
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchList.fragment.xml +41 -26
- package/src/main/js/sap/ushell/components/contentFinder/view/ContentFinderDialog.view.xml +24 -58
- package/src/main/js/sap/ushell/components/contentFinder/view/VisualizationsNoDataIllustratedMessage.fragment.xml +7 -9
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +5 -5
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +180 -162
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +33 -4
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources.properties +5 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources_en_US_saptrc.properties +3 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/view/ContentFinderStandalone.view.xml +9 -8
- 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 +5 -3
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +49 -16
- package/src/main/js/sap/ushell/components/pages/fragment/DialogPageNotExists.fragment.xml +27 -0
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/view/PageRuntime.view.xml +1 -6
- 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/controller/MenuBar.controller.js +1 -0
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +4 -12
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +4 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.view.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +16 -0
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.view.xml +40 -9
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +57 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +432 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +45 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/resources/resources.properties +8 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/view/SideNavigation.view.xml +35 -0
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/Configuration.view.xml +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Configuration.view.xml +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 +61 -61
- 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 +4 -10
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources.properties +6 -0
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saptrc.properties +88 -77
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +9 -2
- 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 +7 -2
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_en_US_saptrc.properties +8 -8
- package/src/main/js/sap/ushell/renderer/Renderer.js +2 -2
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +27 -11
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +8 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +4 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saptrc.properties +1009 -990
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +12 -12
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +7 -7
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +29 -29
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +12 -12
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +10 -10
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +19 -19
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +16 -16
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +9 -9
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +9 -9
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +8 -8
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +8 -8
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +12 -4
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +56 -8
- package/src/main/js/sap/ushell/services/BookmarkV2.js +180 -171
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +156 -137
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/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 +17 -86
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +18 -1
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -1
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +3 -5
- 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/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +4 -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/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/Catalog.less +1 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.json +5 -1
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Catalog.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/Catalog.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Catalog.less +1 -0
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.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/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/tilecard/resources/resources_en_US_saptrc.properties +3 -3
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +8 -7
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +75 -11
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +47 -2
- package/src/main/js/sap/ushell/utils/workpage/resources/resources.properties +6 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saptrc.properties +95 -77
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_es.properties +5 -5
- package/src/main/js/sap/ushell/utils.js +1 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +1 -0
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +0 -62
- package/src/main/js/sap/ushell/components/contentFinder/view/WidgetGallery.view.xml +0 -102
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifestAppSearch.json +0 -50
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
sap.ui.define([
|
|
3
|
+
"sap/base/util/ObjectPath",
|
|
4
|
+
"sap/tnt/NavigationListItem",
|
|
5
|
+
"sap/ui/core/CustomData",
|
|
6
|
+
"sap/ui/core/EventBus",
|
|
7
|
+
"sap/ui/core/mvc/Controller",
|
|
8
|
+
"sap/ui/Device",
|
|
9
|
+
"sap/ui/model/json/JSONModel",
|
|
10
|
+
"sap/ushell/Container",
|
|
11
|
+
"sap/ushell/EventHub",
|
|
12
|
+
"sap/ushell/utils/UrlParsing",
|
|
13
|
+
"sap/ushell/utils/WindowUtils"
|
|
14
|
+
], function (
|
|
15
|
+
ObjectPath,
|
|
16
|
+
NavigationListItem,
|
|
17
|
+
CustomData,
|
|
18
|
+
EventBus,
|
|
19
|
+
Controller,
|
|
20
|
+
Device,
|
|
21
|
+
JSONModel,
|
|
22
|
+
Container,
|
|
23
|
+
EventHub,
|
|
24
|
+
UrlParsing,
|
|
25
|
+
WindowUtils
|
|
26
|
+
) {
|
|
27
|
+
"use strict";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @alias sap.ushell.components.shell.SideNavigation.controller.SideNavigation
|
|
31
|
+
* @class
|
|
32
|
+
* @classdesc Controller of the SideNavigation view.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} sId Controller id
|
|
35
|
+
* @param {object} oParams Controller parameter
|
|
36
|
+
*
|
|
37
|
+
* @extends sap.ui.core.mvc.Controller
|
|
38
|
+
*
|
|
39
|
+
* @since 1.132.0
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
return Controller.extend("sap.ushell.components.shell.SideNavigation.controller.SideNavigation", /** @lends sap.ushell.components.shell.SideNavigation.controller.SideNavigation.prototype */ {
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* UI5 lifecycle method which is called upon controller initialization.
|
|
46
|
+
* It gets all the required UShell services and
|
|
47
|
+
* initializes the view.
|
|
48
|
+
*
|
|
49
|
+
* @private
|
|
50
|
+
* @since 1.132.0
|
|
51
|
+
*/
|
|
52
|
+
onInit: function () {
|
|
53
|
+
const oSideNavigation = this.byId("sideNavigation");
|
|
54
|
+
|
|
55
|
+
if (Device.support.touch) {
|
|
56
|
+
oSideNavigation.addStyleClass("sapUiSizeCozy");
|
|
57
|
+
} else {
|
|
58
|
+
oSideNavigation.addStyleClass("sapUiSizeCompact");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
this.oContainerRouter = Container.getRendererInternal().getRouter();
|
|
62
|
+
|
|
63
|
+
this.oContainerRouter.getRoute("home").attachMatched(this._selectIndexAfterRouteChange, this);
|
|
64
|
+
this.oContainerRouter.getRoute("openFLPPage").attachMatched(this._selectIndexAfterRouteChange, this);
|
|
65
|
+
this.oContainerRouter.getRoute("openWorkPage").attachMatched(this._selectIndexAfterRouteChange, this);
|
|
66
|
+
|
|
67
|
+
this._addHamburgerButton();
|
|
68
|
+
|
|
69
|
+
this.oEnableMenuBarNavigationListener = EventHub.on("enableMenuBarNavigation").do((bEnableSideNavigation) => this.onEnableSideNavigation(bEnableSideNavigation));
|
|
70
|
+
EventBus.getInstance().subscribe("sap.ushell", "appOpened", this.deselectSideNavigationEntryOnAppOpened, this);
|
|
71
|
+
|
|
72
|
+
this.sNoneSelectedKey = "NONE";
|
|
73
|
+
const oViewConfiguration = new JSONModel({
|
|
74
|
+
//We need to initialize with a non-empty key to avoid flickering of the selection.
|
|
75
|
+
selectedKey: this.sNoneSelectedKey,
|
|
76
|
+
enableSideNavigation: true
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
this.getView().setModel(oViewConfiguration, "viewConfiguration");
|
|
80
|
+
|
|
81
|
+
this.oGetDefaultSpacePromise = Container.getServiceAsync("Menu")
|
|
82
|
+
.then(function (oMenuService) {
|
|
83
|
+
return oMenuService.getDefaultSpace();
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
this._selectIndexAfterRouteChange();
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Deselects the currently selected side navigation entry when an app is opened,
|
|
91
|
+
* which removes the visual indicator from the currently selected entry.
|
|
92
|
+
*
|
|
93
|
+
* - It sets the selected key in the view configuration model to the value
|
|
94
|
+
* of the string "sNoneSelectedKey".
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
97
|
+
* @since 1.132.0
|
|
98
|
+
*/
|
|
99
|
+
deselectSideNavigationEntryOnAppOpened: function () {
|
|
100
|
+
this.getView().getModel("viewConfiguration").setProperty("/selectedKey", this.sNoneSelectedKey);
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Enables or disables the side navigation based on the provided flag.
|
|
105
|
+
* It sets the "enableSideNavigation" property in the view configuration model to the provided value.
|
|
106
|
+
*
|
|
107
|
+
* @param {boolean} bEnableSideNavigation A flag indicating whether to enable or disable the side navigation.
|
|
108
|
+
*
|
|
109
|
+
* @private
|
|
110
|
+
* @since 1.132.0
|
|
111
|
+
*/
|
|
112
|
+
onEnableSideNavigation: function (bEnableSideNavigation) {
|
|
113
|
+
this.getView().getModel("viewConfiguration").setProperty("/enableSideNavigation", bEnableSideNavigation);
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Triggered whenever a user selects a side navigation item.
|
|
118
|
+
*
|
|
119
|
+
* @param {sap.base.Event} oEvent The 'itemSelect' event.
|
|
120
|
+
*
|
|
121
|
+
* @private
|
|
122
|
+
* @since 1.132.0
|
|
123
|
+
*/
|
|
124
|
+
onSideNavigationItemSelection: function (oEvent) {
|
|
125
|
+
const sSelectedNavigationEntryKey = oEvent.getParameter("item").getProperty("key");
|
|
126
|
+
const oSideNavigationModel = this.getView().getModel("sideNavigation");
|
|
127
|
+
let aSideNavigationEntries = oSideNavigationModel.getProperty("/");
|
|
128
|
+
const oDestinationIntent = this._getNestedSideNavigationEntryByUid(aSideNavigationEntries, sSelectedNavigationEntryKey);
|
|
129
|
+
|
|
130
|
+
if (oDestinationIntent.type === "IBN") {
|
|
131
|
+
this._performNavigation(oDestinationIntent.target);
|
|
132
|
+
} else if (oDestinationIntent.type === "URL") {
|
|
133
|
+
this._openURL(oDestinationIntent.target);
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Recursively searches for a nested side navigation entry that satisfies the provided check function.
|
|
139
|
+
*
|
|
140
|
+
* @param {object[]} aSideNavigationEntries An array of side navigation entries to search through.
|
|
141
|
+
* @param {function} fnCheck A function that takes a side navigation entry object and returns a boolean indicating whether it satisfies the desired condition.
|
|
142
|
+
* @returns {object|undefined} The matched side navigation entry object or undefined if no match is found.
|
|
143
|
+
*
|
|
144
|
+
* @private
|
|
145
|
+
* @since 1.132.0
|
|
146
|
+
*/
|
|
147
|
+
_getNestedSideNavigationEntry: function (aSideNavigationEntries, fnCheck) {
|
|
148
|
+
return aSideNavigationEntries.reduce((oSelectedSideNavigationEntry, oSideNavigationEntry) => {
|
|
149
|
+
if (oSelectedSideNavigationEntry) {
|
|
150
|
+
return oSelectedSideNavigationEntry;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (fnCheck(oSideNavigationEntry)) {
|
|
154
|
+
return oSideNavigationEntry;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (oSideNavigationEntry.menuEntries) {
|
|
158
|
+
|
|
159
|
+
return this._getNestedSideNavigationEntry(oSideNavigationEntry.menuEntries, fnCheck);
|
|
160
|
+
}
|
|
161
|
+
}, undefined);
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Searches for a nested side navigation entry with the specified unique
|
|
166
|
+
* identifier (UID) by calling the "_getNestedSideNavigationEntry" function
|
|
167
|
+
* with a custom check function.
|
|
168
|
+
*
|
|
169
|
+
* @param {object[]} aSideNavigationEntries An array of side navigation entries to search through.
|
|
170
|
+
* @param {string} sUid The unique identifier (UID) of the side navigation entry to find.
|
|
171
|
+
* @returns {object|undefined} The matched side navigation entry object or undefined if no match is found.
|
|
172
|
+
*
|
|
173
|
+
* @private
|
|
174
|
+
* @since 1.132.0
|
|
175
|
+
*/
|
|
176
|
+
_getNestedSideNavigationEntryByUid: function (aSideNavigationEntries, sUid) {
|
|
177
|
+
function fnCheck (oSideNavigationEntry) {
|
|
178
|
+
return oSideNavigationEntry.uid === sUid;
|
|
179
|
+
}
|
|
180
|
+
return this._getNestedSideNavigationEntry(aSideNavigationEntries, fnCheck);
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Factory function for creating a new NavigationListItem.
|
|
185
|
+
*
|
|
186
|
+
* - Responsible for rendering all side navigation entries upon initialization.
|
|
187
|
+
*
|
|
188
|
+
* @param {string} sId The ID of the NavigationListItem.
|
|
189
|
+
* @param {object} oContext The context containing the side navigation entry data.
|
|
190
|
+
* @returns {sap.tnt.NavigationListItem} The created NavigationListItem instance.
|
|
191
|
+
*
|
|
192
|
+
* @private
|
|
193
|
+
* @since 1.132.0
|
|
194
|
+
*/
|
|
195
|
+
_sideNavigationFactory: function (sId, oContext) {
|
|
196
|
+
let sIcon = oContext.getProperty("icon");
|
|
197
|
+
// Provide icon fallback only for Top Level Menu Entries
|
|
198
|
+
if (!sIcon && this._isTopLevelEntry(oContext)) {
|
|
199
|
+
sIcon = "sap-icon://document-text";
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const oNewItem = new NavigationListItem(sId, {
|
|
203
|
+
key: "{sideNavigation>uid}", // is not unique if used multiple times in a hierarchy
|
|
204
|
+
icon: sIcon,
|
|
205
|
+
text: "{sideNavigation>title}",
|
|
206
|
+
enabled: "{viewConfiguration>/enableSideNavigation}",
|
|
207
|
+
items: {
|
|
208
|
+
path: "sideNavigation>menuEntries",
|
|
209
|
+
factory: this._sideNavigationFactory.bind(this)
|
|
210
|
+
},
|
|
211
|
+
customData: [new CustomData({
|
|
212
|
+
key: "help-id",
|
|
213
|
+
value: "{= 'MenuEntry-' + ${sideNavigation>help-id}}",
|
|
214
|
+
writeToDom: "{= !!${sideNavigation>help-id}}"
|
|
215
|
+
})]
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
return oNewItem;
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Checks for top level menu entries.
|
|
223
|
+
*
|
|
224
|
+
* @param {oContext} oContext The context containing the menu entry path.
|
|
225
|
+
* @returns {boolean} True if top level menu entry.
|
|
226
|
+
*
|
|
227
|
+
* @private
|
|
228
|
+
* @since 1.132.0
|
|
229
|
+
*/
|
|
230
|
+
_isTopLevelEntry: function (oContext) {
|
|
231
|
+
return oContext.getPath().split("/").length === 2;
|
|
232
|
+
},
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Performs navigation to the specified destination target using the Navigation service.
|
|
236
|
+
*
|
|
237
|
+
* @param {object} oDestinationTarget The destination target object containing the navigation details.
|
|
238
|
+
* @returns {Promise} A promise that resolves when the navigation is completed.
|
|
239
|
+
*
|
|
240
|
+
* @private
|
|
241
|
+
* @since 1.132.0
|
|
242
|
+
*/
|
|
243
|
+
_performNavigation: function (oDestinationTarget) {
|
|
244
|
+
return Container.getServiceAsync("Navigation").then(function (oNavigationService) {
|
|
245
|
+
const oParams = {};
|
|
246
|
+
oDestinationTarget.parameters.forEach(function (oParameter) {
|
|
247
|
+
if (oParameter.name && oParameter.value) {
|
|
248
|
+
oParams[oParameter.name] = [oParameter.value];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
oNavigationService.navigate({
|
|
253
|
+
target: {
|
|
254
|
+
semanticObject: oDestinationTarget.semanticObject,
|
|
255
|
+
action: oDestinationTarget.action
|
|
256
|
+
},
|
|
257
|
+
params: oParams
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Opens the provided URL in a new browser tab.
|
|
264
|
+
*
|
|
265
|
+
* @param {object} destinationTarget
|
|
266
|
+
* The destination target which is used to determine the URL which should be
|
|
267
|
+
* opened in a new browser tab
|
|
268
|
+
*
|
|
269
|
+
* @private
|
|
270
|
+
* @since 1.132.0
|
|
271
|
+
*/
|
|
272
|
+
_openURL: function (destinationTarget) {
|
|
273
|
+
WindowUtils.openURL(destinationTarget.url, "_blank");
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Selects the appropriate side navigation entry after a route change
|
|
278
|
+
* based on the current hash and default space.
|
|
279
|
+
*
|
|
280
|
+
* - Updates the "selectedKey" property of the view configuration model,
|
|
281
|
+
* which is responsible for the visual indication of the currently selected
|
|
282
|
+
* side navigation entry.
|
|
283
|
+
*
|
|
284
|
+
* @returns {Promise} A promise that resolves when the selection is completed.
|
|
285
|
+
*
|
|
286
|
+
* @private
|
|
287
|
+
* @since 1.132.0
|
|
288
|
+
*/
|
|
289
|
+
_selectIndexAfterRouteChange: function () {
|
|
290
|
+
const oViewConfigModel = this.getView().getModel("viewConfiguration");
|
|
291
|
+
|
|
292
|
+
return Promise.all([
|
|
293
|
+
this.oGetDefaultSpacePromise,
|
|
294
|
+
this.getOwnerComponent().oMenuModelPromise
|
|
295
|
+
]).then((aResults) => {
|
|
296
|
+
const oDefaultSpace = aResults[0];
|
|
297
|
+
|
|
298
|
+
let sSelectedMenuKey;
|
|
299
|
+
const sHash = window.hasher.getHash();
|
|
300
|
+
const oHashParts = UrlParsing.parseShellHash(sHash);
|
|
301
|
+
const aSideNavigationEntries = this.getView().getModel("sideNavigation").getProperty("/");
|
|
302
|
+
|
|
303
|
+
if (oHashParts.semanticObject === "Shell" && oHashParts.action === "home") {
|
|
304
|
+
// Determine the user's default page and initiate loading
|
|
305
|
+
const oDefaultSpacePage = oDefaultSpace && oDefaultSpace.children && oDefaultSpace.children[0];
|
|
306
|
+
sSelectedMenuKey = (oDefaultSpacePage) ? this._getMenuUID(aSideNavigationEntries, oDefaultSpace.id, oDefaultSpacePage.id) || "" : "";
|
|
307
|
+
oViewConfigModel.setProperty("/selectedKey", sSelectedMenuKey);
|
|
308
|
+
} else {
|
|
309
|
+
const sSpaceId = ObjectPath.get("params.spaceId.0", oHashParts);
|
|
310
|
+
const sPageId = ObjectPath.get("params.pageId.0", oHashParts);
|
|
311
|
+
|
|
312
|
+
// First evaluate the last clicked key and search for the top level entry if it matches the parameters
|
|
313
|
+
const sSelectedKey = oViewConfigModel.getProperty("/selectedKey");
|
|
314
|
+
|
|
315
|
+
const oSideNavigationEntry = this._getNestedSideNavigationEntryByUid(aSideNavigationEntries, sSelectedKey);
|
|
316
|
+
if (this._hasSpaceIdAndPageId(oSideNavigationEntry, sSpaceId, sPageId)) {
|
|
317
|
+
sSelectedMenuKey = oSideNavigationEntry.uid;
|
|
318
|
+
} else {
|
|
319
|
+
sSelectedMenuKey = this._getMenuUID(aSideNavigationEntries, sSpaceId, sPageId);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (sSelectedMenuKey) {
|
|
323
|
+
oViewConfigModel.setProperty("/selectedKey", sSelectedMenuKey);
|
|
324
|
+
} else {
|
|
325
|
+
oViewConfigModel.setProperty("/selectedKey", this.sNoneSelectedKey);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
},
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Retrieves the menu unique identifier (UID) based on the provided space ID and page ID.
|
|
333
|
+
*
|
|
334
|
+
* @param {object[]} aSideNavigationEntries An array of side navigation entries to search through.
|
|
335
|
+
* @param {string} spaceId The space ID to match.
|
|
336
|
+
* @param {string} pageId The page ID to match.
|
|
337
|
+
* @returns {string|undefined} The menu UID if found, or undefined if not found.
|
|
338
|
+
*
|
|
339
|
+
* @private
|
|
340
|
+
* @since 1.132.0
|
|
341
|
+
*/
|
|
342
|
+
_getMenuUID: function (aSideNavigationEntries, spaceId, pageId) {
|
|
343
|
+
function fnCheck (oSideNavigationEntry) {
|
|
344
|
+
return this._hasSpaceIdAndPageId(oSideNavigationEntry, spaceId, pageId);
|
|
345
|
+
}
|
|
346
|
+
const oMatchedSideNavigationEntry = this._getNestedSideNavigationEntry(aSideNavigationEntries, fnCheck.bind(this));
|
|
347
|
+
return oMatchedSideNavigationEntry && oMatchedSideNavigationEntry.uid;
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Checks if a side navigation entry has the specified space ID and page ID in its target parameters.
|
|
352
|
+
*
|
|
353
|
+
* @param {object} oSideNavigationEntry The side navigation entry object to check.
|
|
354
|
+
* @param {string} sSpaceId The space ID to match.
|
|
355
|
+
* @param {string} sPageId The page ID to match.
|
|
356
|
+
* @returns {boolean} True if the side navigation entry has the specified space ID and page ID, false otherwise.
|
|
357
|
+
*
|
|
358
|
+
* @private
|
|
359
|
+
* @since 1.132.0
|
|
360
|
+
*/
|
|
361
|
+
_hasSpaceIdAndPageId: function (oSideNavigationEntry, sSpaceId, sPageId) {
|
|
362
|
+
const aParameters = ObjectPath.get("target.parameters", oSideNavigationEntry) || [];
|
|
363
|
+
const oSpaceIdParam = aParameters.some(function (oParameter) {
|
|
364
|
+
return oParameter.name === "spaceId" && oParameter.value === sSpaceId;
|
|
365
|
+
});
|
|
366
|
+
const oPageIdParam = aParameters.some(function (oParameter) {
|
|
367
|
+
return oParameter.name === "pageId" && oParameter.value === sPageId;
|
|
368
|
+
});
|
|
369
|
+
return oSpaceIdParam !== false && oPageIdParam !== false;
|
|
370
|
+
},
|
|
371
|
+
|
|
372
|
+
onCollapseSideNavigationPress: function () {
|
|
373
|
+
const oSideNavigation = this.getView().byId("sideNavigation");
|
|
374
|
+
oSideNavigation.setExpanded(!oSideNavigation.getExpanded());
|
|
375
|
+
},
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Creates a header item for the side navigation button (hamburger button) in the shell bar.
|
|
379
|
+
* The button is used to expand or collapse the side navigation.
|
|
380
|
+
* @returns {Promise<sap.ushell.services.Extension.Item>} A promise that resolves to the newly created header item.
|
|
381
|
+
*
|
|
382
|
+
* @see sap.ushell.services.Extension#createHeaderItem
|
|
383
|
+
* @async
|
|
384
|
+
* @since 1.132.0
|
|
385
|
+
* @private
|
|
386
|
+
*/
|
|
387
|
+
_hamburgerButtonFatory: async function () {
|
|
388
|
+
const oResourceBundle = this.getOwnerComponent().getModel("i18n").getResourceBundle();
|
|
389
|
+
const sTooltipSideMenu = oResourceBundle.getText("ShellBar.SideNavigation.Button.Tooltip");
|
|
390
|
+
const sTitle = oResourceBundle.getText("ShellBar.SideNavigation.Button.Text");
|
|
391
|
+
const Extension = await Container.getServiceAsync("Extension");
|
|
392
|
+
|
|
393
|
+
return await Extension.createHeaderItem({
|
|
394
|
+
id: "sideMenuExpandCollapseBtn",
|
|
395
|
+
ariaLabel: sTooltipSideMenu,
|
|
396
|
+
ariaHaspopup: "dialog",
|
|
397
|
+
icon: "sap-icon://menu2",
|
|
398
|
+
tooltip: sTooltipSideMenu,
|
|
399
|
+
text: sTitle,
|
|
400
|
+
press: this.onCollapseSideNavigationPress.bind(this)
|
|
401
|
+
}, {
|
|
402
|
+
position: "begin"
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Adds (attach) the hamburger button to the shell bar.
|
|
408
|
+
* Shows the button on the home page and for all apps.
|
|
409
|
+
*
|
|
410
|
+
* @since 1.132.0
|
|
411
|
+
* @private
|
|
412
|
+
* @async
|
|
413
|
+
*/
|
|
414
|
+
_addHamburgerButton: async function () {
|
|
415
|
+
this.headerHamburgerButtonItemStart = await this._hamburgerButtonFatory();
|
|
416
|
+
this.headerHamburgerButtonItemStart.showOnHome();
|
|
417
|
+
this.headerHamburgerButtonItemStart.showForAllApps();
|
|
418
|
+
},
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* UI5 lifecycle method which is called upon controller destruction.
|
|
422
|
+
* It detaches the router events and config listeners.
|
|
423
|
+
*
|
|
424
|
+
* @private
|
|
425
|
+
* @since 1.132.0
|
|
426
|
+
*/
|
|
427
|
+
onExit: function () {
|
|
428
|
+
this.oEnableMenuBarNavigationListener.off();
|
|
429
|
+
EventBus.getInstance().unsubscribe("sap.ushell", "appOpened", this.deselectSideNavigationEntryOnAppOpened, this);
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_version": "1.68.0",
|
|
3
|
+
"sap.app": {
|
|
4
|
+
"id": "sap.ushell.components.shell.SideNavigation",
|
|
5
|
+
"applicationVersion": {
|
|
6
|
+
"version": "1.132.0"
|
|
7
|
+
},
|
|
8
|
+
"i18n": {
|
|
9
|
+
"bundleUrl": "./resources/resources.properties",
|
|
10
|
+
"fallbackLocale": "en"
|
|
11
|
+
},
|
|
12
|
+
"type": "component",
|
|
13
|
+
"ach": "CA-FLP-FE-COR",
|
|
14
|
+
"title": "",
|
|
15
|
+
"resources": "resources.json"
|
|
16
|
+
},
|
|
17
|
+
"sap.ui": {
|
|
18
|
+
"technology": "UI5",
|
|
19
|
+
"deviceTypes": {
|
|
20
|
+
"desktop": true,
|
|
21
|
+
"phone": true,
|
|
22
|
+
"tablet": true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"sap.ui5": {
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"minUI5Version": "1.132",
|
|
28
|
+
"libs": {
|
|
29
|
+
"sap.m": {},
|
|
30
|
+
"sap.tnt": {},
|
|
31
|
+
"sap.ui.core": {}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"models": {
|
|
35
|
+
"i18n": {
|
|
36
|
+
"type": "sap.ui.model.resource.ResourceModel",
|
|
37
|
+
"uri": "./resources/resources.properties"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"contentDensities": {
|
|
41
|
+
"compact": true,
|
|
42
|
+
"cozy": true
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Translatable texts for the SideNavigation component
|
|
2
|
+
# __ldi.translation.uuid=89a2c3a0-c9af-11ef-a8fa-0800200c9a66
|
|
3
|
+
|
|
4
|
+
# Side Navigation Hamburger Button
|
|
5
|
+
#XBUT
|
|
6
|
+
ShellBar.SideNavigation.Button.Text=Side Menu Button
|
|
7
|
+
#XTOL
|
|
8
|
+
ShellBar.SideNavigation.Button.Tooltip=Collapse / Expand Side Menu
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<mvc:View
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:tnt="sap.tnt"
|
|
4
|
+
xmlns:core="sap.ui.core"
|
|
5
|
+
xmlns:mvc="sap.ui.core.mvc"
|
|
6
|
+
controllerName="sap.ushell.components.shell.SideNavigation.controller.SideNavigation"
|
|
7
|
+
displayBlock="true"
|
|
8
|
+
height="100%"
|
|
9
|
+
core:require="{
|
|
10
|
+
mLibrary: 'sap/m/library'
|
|
11
|
+
}">
|
|
12
|
+
<VBox
|
|
13
|
+
class="sapUiSizeCompact"
|
|
14
|
+
renderType="{= mLibrary.FlexRendertype.Bare }"
|
|
15
|
+
alignItems="Start"
|
|
16
|
+
height="100%">
|
|
17
|
+
<tnt:SideNavigation
|
|
18
|
+
id="sideNavigation"
|
|
19
|
+
itemSelect=".onSideNavigationItemSelection"
|
|
20
|
+
selectedKey="{viewConfiguration>/selectedKey}">
|
|
21
|
+
<tnt:NavigationList
|
|
22
|
+
selectedKey="{viewConfiguration>/selectedKey}"
|
|
23
|
+
items="{
|
|
24
|
+
path: 'sideNavigation>/',
|
|
25
|
+
factory: '._sideNavigationFactory'
|
|
26
|
+
}"/>
|
|
27
|
+
<tnt:customData>
|
|
28
|
+
<core:CustomData
|
|
29
|
+
key="sap-ui-fastnavgroup"
|
|
30
|
+
value="true"
|
|
31
|
+
writeToDom="true"/>
|
|
32
|
+
</tnt:customData>
|
|
33
|
+
</tnt:SideNavigation>
|
|
34
|
+
</VBox>
|
|
35
|
+
</mvc:View>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
class="sapUiResponsiveMargin"
|
|
16
16
|
visible="{= !!${/config/deprecation_text}}"
|
|
17
17
|
text="{/config/deprecation_text}" />
|
|
18
|
-
<form:SimpleForm id="configuration" maxContainerCols="2"
|
|
18
|
+
<form:SimpleForm id="configuration" maxContainerCols="2" editable="true">
|
|
19
19
|
<form:content>
|
|
20
20
|
<core:Title id="categoryCommon" text="{i18n>configuration.category.general}" />
|
|
21
21
|
<Label text="{i18n>configuration.display_title_text}" />
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
class="sapUiResponsiveMargin"
|
|
16
16
|
visible="{= !!${/config/deprecation_text}}"
|
|
17
17
|
text="{/config/deprecation_text}" />
|
|
18
|
-
<form:SimpleForm id="configuration" maxContainerCols="8"
|
|
18
|
+
<form:SimpleForm id="configuration" maxContainerCols="8" editable="true">
|
|
19
19
|
<form:content>
|
|
20
20
|
<core:Title id="categoryCommon" text="{i18n>configuration.category.general}" />
|
|
21
21
|
<Label text="{i18n>configuration.display_title_text}" />
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
// visualizationOrganizer Component
|
|
41
41
|
return UIComponent.extend("sap.ushell.components.visualizationOrganizer.Component", {
|
|
42
42
|
metadata: {
|
|
43
|
-
version: "1.
|
|
43
|
+
version: "1.132.0",
|
|
44
44
|
library: "sap.ushell",
|
|
45
45
|
dependencies: { libs: ["sap.m"] },
|
|
46
46
|
properties: {
|