@sapui5/sap.ushell 1.134.1 → 1.136.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 +42 -22
- package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +3 -7
- package/src/main/js/sap/ushell/ApplicationType/guiResolution.js +185 -174
- package/src/main/js/sap/ushell/ApplicationType/urlTemplateResolution.js +5 -12
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +69 -61
- package/src/main/js/sap/ushell/Container.js +11 -11
- package/src/main/js/sap/ushell/EventHub.js +1 -3
- package/src/main/js/sap/ushell/Fiori20Adapter.js +5 -3
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +6 -4
- package/src/main/js/sap/ushell/Layout.js +3 -3
- package/src/main/js/sap/ushell/NWBCInterface.js +8 -11
- package/src/main/js/sap/ushell/SessionHandler.js +16 -77
- 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 +8 -19
- 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 +9 -7
- 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 +36 -27
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +50 -50
- 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 +13 -13
- 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/NewExperience.js +24 -2
- package/src/main/js/sap/ushell/api/RTA.js +65 -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 +1677 -0
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/ApplicationContainer.js +192 -21
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/ApplicationContainerCache.js +2 -8
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerRenderer.js +49 -0
- package/src/main/js/sap/ushell/appIntegration/ApplicationHandle.js +51 -0
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/IframeApplicationContainer.js +129 -19
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/IframeApplicationContainerRenderer.js +34 -26
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/KeepAliveApps.js +1 -7
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/AppruntimeHandler.js +8 -12
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/ExtensionItems.js +3 -9
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/LifecycleHandler.js +20 -26
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/MessageBrokerHandler.js +1 -5
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/NWBCHandler.js +4 -10
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager/ServiceHandler.js +10 -15
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessageManager.js +39 -28
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/PostMessagePluginInterface.js +3 -9
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/UI5ApplicationContainer.js +31 -14
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/UI5ApplicationContainerRenderer.js +16 -8
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/contracts/EmbeddedUI5Handler.js +10 -15
- package/src/main/js/sap/ushell/{components/applicationIntegration → appIntegration}/contracts/StatefulContainerV1Handler.js +6 -25
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +136 -0
- package/src/main/js/sap/ushell/appRuntime/neo/AppInfoService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/neo/ProxyAppUtils.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/AppCommunicationMgr.js +1 -8
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +32 -19
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/AccessKeysAgent.js +2 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +17 -29
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +3 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +3 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +33 -30
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +7 -13
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +25 -39
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +24 -26
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +6 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +58 -75
- 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 +14 -20
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +14 -21
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +30 -45
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +11 -16
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +8 -12
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +16 -21
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserDefaultParameters.js +3 -4
- 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 +65 -36
- package/src/main/js/sap/ushell/bootstrap/common/common.override.registermodulepath.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/CatalogsManager.js +11 -11
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +6 -6
- package/src/main/js/sap/ushell/components/HomepageManager.js +3 -2
- package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +21 -21
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +6 -6
- package/src/main/js/sap/ushell/components/appfinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +4 -5
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +3 -3
- package/src/main/js/sap/ushell/components/container/resources/resources_de.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +12 -6
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +49 -11
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +107 -42
- 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 +4 -4
- 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/model/formatter.js +2 -2
- 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 +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_bg.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ca.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cs.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cy.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_da.properties +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_de.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_el.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_GB.properties +4 -2
- 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 +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es_MX.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_et.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fi.properties +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr.properties +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr_CA.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hi.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hr.properties +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hu.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_id.properties +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_it.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_iw.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ja.properties +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_kk.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ko.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lt.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lv.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_mk.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ms.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_nl.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_no.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pl.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt_PT.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ro.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ru.properties +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sh.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sk.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sl.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sr.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sv.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_th.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_tr.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_uk.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_vi.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_CN.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_TW.properties +4 -2
- 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 +69 -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 +10 -5
- 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/factsheet/tools/ODataUrlTemplating.js +1 -0
- package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.view.xml +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +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 +10 -5
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/view/MyHomeStart.view.xml +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 +4 -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 +191 -64
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsList.controller.js +876 -0
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsListPopoverContent.view.xml +84 -0
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsListPopoverHeader.fragment.xml +35 -0
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +23 -9
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +22 -9
- 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 +37 -20
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +5 -4
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +12 -17
- 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 +123 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +350 -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_ar.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_bg.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_ca.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_cnr.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_cs.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_cy.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_da.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_de.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_el.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_en.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_en_GB.properties +5 -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/resources/resources_es.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_es_MX.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_et.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_fi.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_fr.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_fr_CA.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_hi.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_hr.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_hu.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_id.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_it.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_iw.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_ja.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_kk.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_ko.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_lt.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_lv.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_mk.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_ms.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_nl.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_no.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_pl.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_pt.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_pt_PT.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_ro.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_ru.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_sh.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_sk.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_sl.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_sr.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_sv.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_th.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_tr.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_uk.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_vi.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_zh_CN.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/resources/resources_zh_TW.properties +5 -0
- package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +67 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +77 -51
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +105 -61
- package/src/main/js/sap/ushell/components/shell/SideNavigation/css/style.css +5 -0
- 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 +12 -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 +158 -32
- 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 +22 -6
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +2 -0
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.fragment.xml +1 -0
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/generic.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.controller.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.controller.js +4 -4
- package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.controller.js +18 -18
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +11 -11
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +30 -36
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +4 -4
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +2 -2
- 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_es_MX.properties +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 +2 -2
- 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 +39 -11
- package/src/main/js/sap/ushell/modules/NavigationMenu.js +90 -0
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderer/NavContainer.js +260 -0
- package/src/main/js/sap/ushell/{ui/AppContainerRenderer.js → renderer/NavContainerRenderer.js} +4 -4
- package/src/main/js/sap/ushell/renderer/Renderer.js +145 -126
- package/src/main/js/sap/ushell/renderer/RendererAppContainer.js +236 -0
- package/src/main/js/sap/ushell/renderer/RendererRootView.fragment.xml +2 -2
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +85 -213
- package/src/main/js/sap/ushell/renderer/Shell.view.js +105 -43
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +6 -6
- package/src/main/js/sap/ushell/renderer/rendererTargetWrapper/Component.js +105 -0
- package/src/main/js/sap/ushell/renderer/rendererTargetWrapper/RendererTarget.controller.js +83 -0
- package/src/main/js/sap/ushell/renderer/rendererTargetWrapper/RendererTarget.view.xml +12 -0
- package/src/main/js/sap/ushell/renderer/rendererTargetWrapper/manifest.json +43 -0
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +37 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +28 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +28 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +29 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +28 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +29 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +33 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +30 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +60 -33
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +42 -15
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +31 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +28 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +30 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +29 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +29 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +29 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +29 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +29 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +27 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +27 -0
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.controller.js +5 -11
- package/src/main/js/sap/ushell/renderers/fiori2/History.js +6 -6
- package/src/main/js/sap/ushell/renderers/fiori2/LogonFrameProvider.js +6 -6
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +11 -11
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +2 -2
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +11 -1
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsManager.js +6 -6
- package/src/main/js/sap/ushell/services/AppConfiguration.js +10 -10
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +369 -378
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/AppType.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +3 -3
- package/src/main/js/sap/ushell/services/BookmarkV2.js +15 -15
- 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 +6 -6
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +4 -4
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +9 -4
- 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 +55 -53
- 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 +101 -10
- 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 +21 -53
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -3
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +2 -2
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +0 -1
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +4 -3
- 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/Notifications.js +2 -1
- package/src/main/js/sap/ushell/services/NotificationsV2.js +7 -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 +3 -3
- 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 +85 -80
- 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 +2 -2
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +5 -5
- 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 +2 -2
- 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/UsageAnalytics.js +10 -10
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +2 -2
- package/src/main/js/sap/ushell/services/_AppState/AppStatePersistencyMethod.js +1 -0
- 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 +9 -10
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +6 -6
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +11 -13
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +4 -4
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +12 -11
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +5 -3
- package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +4 -4
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +7 -7
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +3 -5
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapter.js +2 -2
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapterContainer.js +2 -1
- package/src/main/js/sap/ushell/services/_Personalization/constants.js +9 -10
- package/src/main/js/sap/ushell/services/_Personalization/constants.private.js +3 -4
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +2 -1
- package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +4 -2
- package/src/main/js/sap/ushell/state/BackNavigation.js +1 -7
- package/src/main/js/sap/ushell/state/ContentDensity.js +207 -0
- package/src/main/js/sap/ushell/state/Favicon.js +115 -0
- package/src/main/js/sap/ushell/state/StateManager.js +10 -3
- package/src/main/js/sap/ushell/state/StateRules.js +5 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadEndItemsStrategy.js +8 -1
- 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/MenuBar.less +3 -0
- package/src/main/js/sap/ushell/themes/base/NavContainer.less +6 -0
- package/src/main/js/sap/ushell/themes/base/Notifications.less +29 -0
- package/src/main/js/sap/ushell/themes/base/ShellBar.less +7 -0
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +13 -8
- package/src/main/js/sap/ushell/themes/base/library.source.less +3 -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_fiori_3_hcb/Notifications.less +4 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/Notifications.less +4 -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_MenuBar.less +3 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_NavContainer.less +6 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellBar.less +7 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +6 -1
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +2 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/Notifications.less +3 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/Notifications.less +4 -0
- package/src/main/js/sap/ushell/thirdparty/Avatar.js +381 -0
- package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +464 -0
- package/src/main/js/sap/ushell/thirdparty/Button.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/Button2.js +524 -0
- package/src/main/js/sap/ushell/thirdparty/Icon.js +296 -0
- package/src/main/js/sap/ushell/thirdparty/Icons.js +77 -74
- package/src/main/js/sap/ushell/thirdparty/Label.js +115 -0
- package/src/main/js/sap/ushell/thirdparty/Link.js +315 -0
- package/src/main/js/sap/ushell/thirdparty/List.js +1705 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +95 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemTemplate.js +3917 -0
- package/src/main/js/sap/ushell/thirdparty/Menu.js +406 -0
- package/src/main/js/sap/ushell/thirdparty/MenuItem.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +355 -0
- package/src/main/js/sap/ushell/thirdparty/NotificationList.js +291 -0
- package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +310 -0
- package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +531 -0
- package/src/main/js/sap/ushell/thirdparty/NotificationListItemBase.js +98 -0
- package/src/main/js/sap/ushell/thirdparty/ShellBar.js +1664 -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/Tag.js +307 -0
- package/src/main/js/sap/ushell/thirdparty/Text.js +127 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +98 -980
- 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/ListItemStandardExpandableTextTemplate.js +193 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT.js +561 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT2.js +561 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite.js +1194 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite2.js +1194 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +44 -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 +44 -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 +44 -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 +44 -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 +47 -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 +44 -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 +46 -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 +44 -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 +44 -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 +44 -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 +44 -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 +44 -5
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +12 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +22 -10
- 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 +44 -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 +44 -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 +44 -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 +44 -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 +44 -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 +46 -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 +44 -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 +44 -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 +53 -14
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +44 -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 +554 -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 +79 -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 +44 -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 +44 -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 +44 -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 +46 -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 +44 -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 +44 -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 +46 -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 +45 -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 +44 -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 +44 -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 +44 -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 +44 -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 +44 -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 +44 -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 +44 -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 +44 -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 +44 -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 +45 -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 +44 -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 +46 -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 +44 -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 +44 -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 +45 -6
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +16 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +44 -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 +44 -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 +44 -5
- 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.css25.js +7 -0
- 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 +152 -0
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +93 -0
- package/src/main/js/sap/ushell/thirdparty/information.js +103 -0
- package/src/main/js/sap/ushell/thirdparty/overflow.js +45 -0
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +8 -0
- package/src/main/js/sap/ushell/thirdparty/toLowercaseEnumValue.js +15 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/Avatar.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/Button.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/Label.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/Menu.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/MenuItem.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/Avatar.js +113 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/Button.js +123 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/Label.js +75 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents/dist/Menu.js +90 -0
- 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/NotificationList.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/NotificationListGroupItem.js +4 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/NotificationListItem.js +4 -0
- 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/NotificationList.js +60 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/NotificationListGroupItem.js +72 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/NotificationListItem.js +96 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/NotificationListItemBase.js +51 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori/dist/ShellBar.js +150 -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-icons-business-suite/AllIcons.js +26 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-tnt/AllIcons.js +26 -0
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents.js +2 -1
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +44 -40
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +10 -10
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +20 -20
- package/src/main/js/sap/ushell/ui/ShellHeader.js +4 -40
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +5 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +2 -1
- 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/AddBookmarkButton.js +5 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +3 -2
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +2 -1
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItemRenderer.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBarRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainer.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainerRenderer.js +3 -2
- 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/ViewPortState.js +3 -3
- package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +23 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceAbap.js +35 -34
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceCdm.js +6 -9
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +2 -2
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +108 -9
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +2 -2
- 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/UriParameters.js +1 -0
- package/src/main/js/sap/ushell/utils/UrlParsing.js +96 -94
- package/src/main/js/sap/ushell/utils/UrlShortening.js +3 -3
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +5 -5
- 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/main/js/sap/ushell/utils/workpage/resources/resources_es_MX.properties +1 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +1 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +0 -1702
- package/src/main/js/sap/ushell/components/applicationIntegration/ApplicationContainerRenderer.js +0 -35
- package/src/main/js/sap/ushell/components/applicationIntegration/Storage.js +0 -25
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +0 -56
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +0 -23
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxesCache.js +0 -16
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +0 -22
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPIInterface.js +0 -17
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageUtils.js +0 -19
- package/src/main/js/sap/ushell/components/applicationIntegration/application/WebGUIStatefulHandler.js +0 -20
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +0 -198
- package/src/main/js/sap/ushell/components/applicationIntegration/contracts/StatefulContainerV2Handler.js +0 -175
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +0 -24
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/AppLifeCycle.js +0 -1926
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/Storage.js +0 -62
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/Application.js +0 -709
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/BlueBoxHandler.js +0 -406
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/BlueBoxesCache.js +0 -263
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/PostMessageAPI.js +0 -2382
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/PostMessageAPIInterface.js +0 -143
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/PostMessageUtils.js +0 -192
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/application/WebGUIStatefulHandler.js +0 -90
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/configuration/AppMeta.js +0 -193
- package/src/main/js/sap/ushell/components/applicationIntegrationOld/relatedServices/RelatedServices.js +0 -91
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +0 -1769
- package/src/main/js/sap/ushell/components/container/IframePOSTUtils.js +0 -232
- 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/thirdparty/_dynamics/parameters-bundle.css.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css25.js +0 -7177
- package/src/main/js/sap/ushell/ui/AppContainer.js +0 -265
- /package/src/main/js/sap/ushell/components/shell/MenuBar/view/{MenuBarPersonalization.view.xml → MenuBarWithPersonalizationButton.view.xml} +0 -0
|
@@ -0,0 +1,1664 @@
|
|
|
1
|
+
sap.ui.define(['require', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdparty/webcomponents', 'sap/ushell/thirdparty/webcomponents-fiori', 'sap/ushell/thirdparty/Icons', 'sap/ushell/thirdparty/event-strict', 'sap/ushell/thirdparty/i18n-defaults', 'sap/ushell/thirdparty/toLowercaseEnumValue', 'sap/ushell/thirdparty/ListItemTemplate', 'sap/ushell/thirdparty/Icon', 'sap/ushell/thirdparty/overflow', 'sap/ushell/thirdparty/List', 'sap/ushell/thirdparty/Button2', 'sap/ushell/thirdparty/Menu', 'sap/ushell/thirdparty/information', 'sap/ushell/thirdparty/parameters-bundle.css', 'sap/ushell/thirdparty/i18n-defaults2', 'sap/ushell/thirdparty/BusyIndicator', 'sap/ushell/thirdparty/Label', 'sap/ushell/thirdparty/MenuItem2', 'sap/ushell/thirdparty/ListItemCustom'], (function (require, webcomponentsBase, webcomponents, webcomponentsFiori, Icons, eventStrict, i18nDefaults, toLowercaseEnumValue, ListItemTemplate, Icon, overflow, List, Button, Menu, information, parametersBundle_css, i18nDefaults$1, BusyIndicator, Label, MenuItem, ListItemCustom) { 'use strict';
|
|
2
|
+
|
|
3
|
+
const predefinedHooks = {
|
|
4
|
+
imageBegin,
|
|
5
|
+
iconBegin,
|
|
6
|
+
iconEnd,
|
|
7
|
+
listItemContent
|
|
8
|
+
};
|
|
9
|
+
function ListItemStandardTemplate(hooks) {
|
|
10
|
+
const currentHooks = { ...predefinedHooks, ...hooks };
|
|
11
|
+
return ListItemTemplate.ListItemTemplate.call(this, currentHooks);
|
|
12
|
+
}
|
|
13
|
+
function listItemContent() {
|
|
14
|
+
return i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [i18nDefaults.jsxs("div", { class: "ui5-li-text-wrapper", children: [renderTitle.call(this), renderDescription.call(this), !this.typeActive && i18nDefaults.jsx("span", { class: "ui5-hidden-text", children: this.type })] }), !this.description && renderAdditionalText.call(this)] });
|
|
15
|
+
}
|
|
16
|
+
function renderTitle() {
|
|
17
|
+
if (this.wrappingType === overflow.WrappingType.Normal) {
|
|
18
|
+
return this.expandableTextTemplate?.call(this, {
|
|
19
|
+
className: "ui5-li-title",
|
|
20
|
+
text: this._textContent,
|
|
21
|
+
maxCharacters: this._maxCharacters,
|
|
22
|
+
part: "title",
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return (i18nDefaults.jsx("span", { part: "title", class: "ui5-li-title", children: this.text ? this.text : i18nDefaults.jsx("slot", {}) }));
|
|
26
|
+
}
|
|
27
|
+
function renderDescription() {
|
|
28
|
+
if (!this.description) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
if (this.wrappingType === overflow.WrappingType.Normal) {
|
|
32
|
+
return (i18nDefaults.jsxs("div", { class: "ui5-li-description-info-wrapper", children: [this.expandableTextTemplate?.call(this, {
|
|
33
|
+
className: "ui5-li-desc",
|
|
34
|
+
text: this.description,
|
|
35
|
+
maxCharacters: this._maxCharacters,
|
|
36
|
+
part: "description",
|
|
37
|
+
}), renderAdditionalText.call(this)] }));
|
|
38
|
+
}
|
|
39
|
+
return (i18nDefaults.jsxs("div", { class: "ui5-li-description-info-wrapper", children: [i18nDefaults.jsx("span", { part: "description", class: "ui5-li-desc", children: this.description }), renderAdditionalText.call(this)] }));
|
|
40
|
+
}
|
|
41
|
+
function renderAdditionalText() {
|
|
42
|
+
if (!this.additionalText) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return i18nDefaults.jsx("span", { part: "additional-text", class: "ui5-li-additional-text", children: this.additionalText });
|
|
46
|
+
}
|
|
47
|
+
function imageBegin() {
|
|
48
|
+
if (this.hasImage) {
|
|
49
|
+
return i18nDefaults.jsx("div", { class: "ui5-li-image", children: i18nDefaults.jsx("slot", { name: "image" }) });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function iconBegin() {
|
|
53
|
+
if (this.displayIconBegin) {
|
|
54
|
+
return i18nDefaults.jsx(Icon.Icon, { part: "icon", name: this.icon, class: "ui5-li-icon", mode: "Decorative" });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function iconEnd() {
|
|
58
|
+
if (this.displayIconEnd) {
|
|
59
|
+
return i18nDefaults.jsx(Icon.Icon, { part: "icon", name: this.icon, class: "ui5-li-icon", mode: "Decorative" });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
64
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
65
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
66
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
67
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
68
|
+
};
|
|
69
|
+
var ListItemStandard_1;
|
|
70
|
+
/**
|
|
71
|
+
* Maximum number of characters to display for small screens (Size S)
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
const MAX_CHARACTERS_SIZE_S = 100;
|
|
75
|
+
/**
|
|
76
|
+
* Maximum number of characters to display for medium and larger screens (Size M and above)
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
const MAX_CHARACTERS_SIZE_M = 300;
|
|
80
|
+
/**
|
|
81
|
+
* @class
|
|
82
|
+
* The `ui5-li` represents the simplest type of item for a `ui5-list`.
|
|
83
|
+
*
|
|
84
|
+
* This is a list item,
|
|
85
|
+
* providing the most common use cases such as `text`,
|
|
86
|
+
* `image` and `icon`.
|
|
87
|
+
|
|
88
|
+
* @csspart title - Used to style the title of the list item
|
|
89
|
+
* @csspart description - Used to style the description of the list item
|
|
90
|
+
* @csspart additional-text - Used to style the additionalText of the list item
|
|
91
|
+
* @csspart icon - Used to style the icon of the list item
|
|
92
|
+
* @csspart native-li - Used to style the main li tag of the list item
|
|
93
|
+
* @csspart content - Used to style the content area of the list item
|
|
94
|
+
* @csspart detail-button - Used to style the button rendered when the list item is of type detail
|
|
95
|
+
* @csspart delete-button - Used to style the button rendered when the list item is in delete mode
|
|
96
|
+
* @csspart radio - Used to style the radio button rendered when the list item is in single selection mode
|
|
97
|
+
* @csspart checkbox - Used to style the checkbox rendered when the list item is in multiple selection mode
|
|
98
|
+
* @slot {Node[]} default - Defines the text of the component.
|
|
99
|
+
*
|
|
100
|
+
* **Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design. <br/>
|
|
101
|
+
* **Note:** Deprecated since version `2.10.0`. Use the `text` property instead. <br/>
|
|
102
|
+
* Only use the default slot if you need to apply custom text formatting with HTML elements (like `<b>`, `<i>`, etc.).
|
|
103
|
+
* @constructor
|
|
104
|
+
* @extends ListItem
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
let ListItemStandard = ListItemStandard_1 = class ListItemStandard extends ListItemTemplate.ListItem {
|
|
108
|
+
constructor() {
|
|
109
|
+
super(...arguments);
|
|
110
|
+
/**
|
|
111
|
+
* Defines whether the `icon` should be displayed in the beginning of the list item or in the end.
|
|
112
|
+
*
|
|
113
|
+
* @default false
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
this.iconEnd = false;
|
|
117
|
+
/**
|
|
118
|
+
* Defines the state of the `additionalText`.
|
|
119
|
+
*
|
|
120
|
+
* Available options are: `"None"` (by default), `"Positive"`, `"Critical"`, `"Information"` and `"Negative"`.
|
|
121
|
+
* @default "None"
|
|
122
|
+
* @public
|
|
123
|
+
* @since 1.0.0-rc.15
|
|
124
|
+
*/
|
|
125
|
+
this.additionalTextState = "None";
|
|
126
|
+
/**
|
|
127
|
+
* Defines whether the item is movable.
|
|
128
|
+
* @default false
|
|
129
|
+
* @public
|
|
130
|
+
* @since 2.0.0
|
|
131
|
+
*/
|
|
132
|
+
this.movable = false;
|
|
133
|
+
/**
|
|
134
|
+
* Defines if the text of the component should wrap when it's too long.
|
|
135
|
+
* When set to "Normal", the content (title, description) will be wrapped
|
|
136
|
+
* using the `ui5-expandable-text` component.<br/>
|
|
137
|
+
*
|
|
138
|
+
* The text can wrap up to 100 characters on small screens (size S) and
|
|
139
|
+
* up to 300 characters on larger screens (size M and above). When text exceeds
|
|
140
|
+
* these limits, it truncates with an ellipsis followed by a text expansion trigger.
|
|
141
|
+
*
|
|
142
|
+
* Available options are:
|
|
143
|
+
* - `None` (default) - The text will truncate with an ellipsis.
|
|
144
|
+
* - `Normal` - The text will wrap (without truncation).
|
|
145
|
+
*
|
|
146
|
+
* @default "None"
|
|
147
|
+
* @public
|
|
148
|
+
* @since 2.10.0
|
|
149
|
+
*/
|
|
150
|
+
this.wrappingType = "None";
|
|
151
|
+
/**
|
|
152
|
+
* Indicates if the list item has text content.
|
|
153
|
+
* @private
|
|
154
|
+
*/
|
|
155
|
+
this.hasTitle = false;
|
|
156
|
+
this._hasImage = false;
|
|
157
|
+
}
|
|
158
|
+
onBeforeRendering() {
|
|
159
|
+
super.onBeforeRendering();
|
|
160
|
+
this.hasTitle = !!(this.text || this.textContent);
|
|
161
|
+
this._hasImage = this.hasImage;
|
|
162
|
+
// Only load ExpandableText if "Normal" wrapping is used
|
|
163
|
+
if (this.wrappingType === "Normal") {
|
|
164
|
+
// If feature is already loaded (preloaded by the user via importing ListItemStandardExpandableText.js), the template is already available
|
|
165
|
+
if (ListItemStandard_1.ExpandableTextTemplate) {
|
|
166
|
+
this.expandableTextTemplate = ListItemStandard_1.ExpandableTextTemplate;
|
|
167
|
+
// If feature is not preloaded, load the template dynamically
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
new Promise(function (resolve, reject) { require(['sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate'], resolve, reject); }).then(module => {
|
|
171
|
+
this.expandableTextTemplate = module.default;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Returns the content text, either from text property or from the default slot
|
|
178
|
+
* @private
|
|
179
|
+
*/
|
|
180
|
+
get _textContent() {
|
|
181
|
+
return this.text || this.textContent || "";
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Determines the maximum characters to display based on the current media range.
|
|
185
|
+
* - Size S: 100 characters
|
|
186
|
+
* - Size M and larger: 300 characters
|
|
187
|
+
* @private
|
|
188
|
+
*/
|
|
189
|
+
get _maxCharacters() {
|
|
190
|
+
return this.mediaRange === "S" ? MAX_CHARACTERS_SIZE_S : MAX_CHARACTERS_SIZE_M;
|
|
191
|
+
}
|
|
192
|
+
get displayIconBegin() {
|
|
193
|
+
return !!(this.icon && !this.iconEnd);
|
|
194
|
+
}
|
|
195
|
+
get displayIconEnd() {
|
|
196
|
+
return !!(this.icon && this.iconEnd);
|
|
197
|
+
}
|
|
198
|
+
get hasImage() {
|
|
199
|
+
return !!this.image.length;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
__decorate$1([
|
|
203
|
+
webcomponentsBase.s()
|
|
204
|
+
], ListItemStandard.prototype, "text", void 0);
|
|
205
|
+
__decorate$1([
|
|
206
|
+
webcomponentsBase.s()
|
|
207
|
+
], ListItemStandard.prototype, "description", void 0);
|
|
208
|
+
__decorate$1([
|
|
209
|
+
webcomponentsBase.s()
|
|
210
|
+
], ListItemStandard.prototype, "icon", void 0);
|
|
211
|
+
__decorate$1([
|
|
212
|
+
webcomponentsBase.s({ type: Boolean })
|
|
213
|
+
], ListItemStandard.prototype, "iconEnd", void 0);
|
|
214
|
+
__decorate$1([
|
|
215
|
+
webcomponentsBase.s()
|
|
216
|
+
], ListItemStandard.prototype, "additionalText", void 0);
|
|
217
|
+
__decorate$1([
|
|
218
|
+
webcomponentsBase.s()
|
|
219
|
+
], ListItemStandard.prototype, "additionalTextState", void 0);
|
|
220
|
+
__decorate$1([
|
|
221
|
+
webcomponentsBase.s({ type: Boolean })
|
|
222
|
+
], ListItemStandard.prototype, "movable", void 0);
|
|
223
|
+
__decorate$1([
|
|
224
|
+
webcomponentsBase.s()
|
|
225
|
+
], ListItemStandard.prototype, "accessibleName", void 0);
|
|
226
|
+
__decorate$1([
|
|
227
|
+
webcomponentsBase.s()
|
|
228
|
+
], ListItemStandard.prototype, "wrappingType", void 0);
|
|
229
|
+
__decorate$1([
|
|
230
|
+
webcomponentsBase.s({ type: Boolean })
|
|
231
|
+
], ListItemStandard.prototype, "hasTitle", void 0);
|
|
232
|
+
__decorate$1([
|
|
233
|
+
webcomponentsBase.s({ type: Boolean })
|
|
234
|
+
], ListItemStandard.prototype, "_hasImage", void 0);
|
|
235
|
+
__decorate$1([
|
|
236
|
+
webcomponentsBase.s({ noAttribute: true })
|
|
237
|
+
], ListItemStandard.prototype, "expandableTextTemplate", void 0);
|
|
238
|
+
__decorate$1([
|
|
239
|
+
webcomponentsBase.d()
|
|
240
|
+
], ListItemStandard.prototype, "image", void 0);
|
|
241
|
+
ListItemStandard = ListItemStandard_1 = __decorate$1([
|
|
242
|
+
webcomponentsBase.m({
|
|
243
|
+
tag: "ui5-li",
|
|
244
|
+
renderer: i18nDefaults.d,
|
|
245
|
+
template: ListItemStandardTemplate,
|
|
246
|
+
})
|
|
247
|
+
], ListItemStandard);
|
|
248
|
+
ListItemStandard.define();
|
|
249
|
+
var ListItemStandard$1 = ListItemStandard;
|
|
250
|
+
|
|
251
|
+
const name$9 = "search";
|
|
252
|
+
const pathData$9 = "M470 426q10 9 10 22.5T470 471q-9 9-22 9t-23-9L308 353q-45 31-100 31-36 0-68-13.5T84 333t-38-56-14-69q0-36 14-68t38-56 56-38 68-14 68 14 56 38 38 56 14 68q0 28-8.5 53T353 308zm-262-74q30 0 56-11t45.5-30.5 31-46T352 208t-11.5-56-31-45.5-45.5-31T208 64t-56.5 11.5-46 31T75 152t-11 56 11 56.5 30.5 46 46 30.5 56.5 11z";
|
|
253
|
+
const ltr$9 = true;
|
|
254
|
+
const accData$1 = information.ICON_SEARCH;
|
|
255
|
+
const collection$9 = "SAP-icons-v4";
|
|
256
|
+
const packageName$9 = "@ui5/webcomponents-icons";
|
|
257
|
+
|
|
258
|
+
Icons.f(name$9, { pathData: pathData$9, ltr: ltr$9, accData: accData$1, collection: collection$9, packageName: packageName$9 });
|
|
259
|
+
|
|
260
|
+
const name$8 = "search";
|
|
261
|
+
const pathData$8 = "M473 436q7 7 7 18t-7.5 18.5T454 480q-10 0-18-8l-95-95q-51 39-117 39-40 0-75-15t-61-41-41-61-15-75 15-75 41-61 61-41 75-15 75 15 61 41 41 61 15 75q0 64-39 117zM83 224q0 30 11 55.5t30 44.5 44.5 30 55.5 11 55.5-11 44.5-30 30-44.5 11-55.5-11-55.5-30-44.5-44.5-30T224 83t-55.5 11-44.5 30-30 44.5T83 224z";
|
|
262
|
+
const ltr$8 = true;
|
|
263
|
+
const accData = information.ICON_SEARCH;
|
|
264
|
+
const collection$8 = "SAP-icons-v5";
|
|
265
|
+
const packageName$8 = "@ui5/webcomponents-icons";
|
|
266
|
+
|
|
267
|
+
Icons.f(name$8, { pathData: pathData$8, ltr: ltr$8, accData, collection: collection$8, packageName: packageName$8 });
|
|
268
|
+
|
|
269
|
+
var search = "search";
|
|
270
|
+
|
|
271
|
+
const name$7 = "da";
|
|
272
|
+
const pathData$7 = "M36 163l220 305 221-306-89-130H137zm220 349q-8 0-13-7L3 172q-3-5-3-10t3-9L117 6q5-6 12-6h267q9 0 13 7l100 146q3 4 3 9t-3 10L269 505q-5 7-13 7zm120-326q-26 9-39.5 22.5T315 248q-3 8-11 8t-11-8q-8-26-21.5-39.5T232 186q-8-2-8-10t8-11q26-9 39.5-22.5T293 103q3-7 11-7t11 7q8 26 21.5 39.5T376 165q8 3 8 11 0 3-1.5 6t-6.5 4z";
|
|
273
|
+
const ltr$7 = true;
|
|
274
|
+
const collection$7 = "SAP-icons-v4";
|
|
275
|
+
const packageName$7 = "@ui5/webcomponents-icons";
|
|
276
|
+
|
|
277
|
+
Icons.f(name$7, { pathData: pathData$7, ltr: ltr$7, collection: collection$7, packageName: packageName$7 });
|
|
278
|
+
|
|
279
|
+
const name$6 = "da";
|
|
280
|
+
const pathData$6 = "M256.499 511.002q-12.975 0-20.959-10.979L5.988 180.647q-11.976-14.97 0-29.941L114.776 9.98Q122.76 0 134.736 0h255.502q14.97 0 20.959 10.979l95.813 140.725q9.98 14.97 0 28.943L277.458 500.023q-7.984 10.979-20.959 10.979zM57.887 166.674l198.612 275.462 198.612-276.46-77.848-114.775H147.712zm318.378 19.961q-25.95 7.985-39.423 21.459t-22.456 39.423q-1.996 7.984-9.98 7.984t-10.98-7.984q-8.982-25.95-22.455-39.423t-39.423-21.459q-7.985-2.994-7.985-10.978t7.985-10.979q25.95-7.984 39.423-21.957t22.456-39.922q2.994-7.984 10.978-7.984t9.981 7.984q8.982 25.95 22.456 39.922t39.423 21.957q7.985 2.995 7.985 10.979t-7.985 10.978z";
|
|
281
|
+
const ltr$6 = true;
|
|
282
|
+
const collection$6 = "SAP-icons-v5";
|
|
283
|
+
const packageName$6 = "@ui5/webcomponents-icons";
|
|
284
|
+
|
|
285
|
+
Icons.f(name$6, { pathData: pathData$6, ltr: ltr$6, collection: collection$6, packageName: packageName$6 });
|
|
286
|
+
|
|
287
|
+
var da = "da";
|
|
288
|
+
|
|
289
|
+
const name$5 = "bell";
|
|
290
|
+
const pathData$5 = "M32 416q0-7 15-21t31-40.5 25.5-67.5-1.5-101q-5-29 3-54.5t25-45 42-33T225 35q0-15 7-25t24-10q14 0 22.5 9t8.5 26q26 5 50 18t41 33 24.5 45.5T404 186q-12 60-1.5 101t27.5 67.5 33.5 40.5 16.5 21q0 14-9 23t-23 9H320q0 26-19 45t-45 19-45-19-19-45H64q-14 0-23-9t-9-23zm39 0h369q-10-11-25.5-30.5t-28-48.5-18-68 4.5-89q5-25-2.5-44T354 106q-19-23-42-32.5T256 64q-32 0-57.5 9.5T154 106q-10 11-18 30t-3 44q9 50 4 89t-16 68-25.5 48.5T71 416z";
|
|
291
|
+
const ltr$5 = false;
|
|
292
|
+
const collection$5 = "SAP-icons-v4";
|
|
293
|
+
const packageName$5 = "@ui5/webcomponents-icons";
|
|
294
|
+
|
|
295
|
+
Icons.f(name$5, { pathData: pathData$5, ltr: ltr$5, collection: collection$5, packageName: packageName$5 });
|
|
296
|
+
|
|
297
|
+
const name$4 = "bell";
|
|
298
|
+
const pathData$4 = "M475 374q5 7 5 16 0 11-7 18.5t-18 7.5H334q-5 27-27 45.5T256 480t-51-18.5-27-45.5H58q-11 0-18.5-7.5T32 390q0-10 6-16 1-1 8-9.5T61 341t14.5-35.5T82 260v-20q0-100 45-154t129-54 129.5 54T431 240v20q0 25 6.5 45.5T452 341t15 23.5 8 9.5zm-69-9q-11-20-19-46.5t-8-58.5v-20q0-32-5.5-60t-20-50-38-34.5T256 83t-59.5 12.5-38 34.5-20 50-5.5 60v20q0 32-8 58.5T106 365h300z";
|
|
299
|
+
const ltr$4 = false;
|
|
300
|
+
const collection$4 = "SAP-icons-v5";
|
|
301
|
+
const packageName$4 = "@ui5/webcomponents-icons";
|
|
302
|
+
|
|
303
|
+
Icons.f(name$4, { pathData: pathData$4, ltr: ltr$4, collection: collection$4, packageName: packageName$4 });
|
|
304
|
+
|
|
305
|
+
var bell = "bell";
|
|
306
|
+
|
|
307
|
+
const name$3 = "grid";
|
|
308
|
+
const pathData$3 = "M394 362h55q14 0 22.5 9t8.5 23v54q0 14-8.5 23t-22.5 9h-55q-14 0-22.5-9t-8.5-23v-54q0-14 8.5-23t22.5-9zM228 197h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5h-55q-13 0-22-9.5t-9-22.5v-54q0-14 8.5-23t22.5-9zm135-79V64q0-14 8.5-23t22.5-9h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5h-55q-13 0-22-9.5t-9-22.5zm31 79h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5h-55q-13 0-22-9.5t-9-22.5v-54q0-14 8.5-23t22.5-9zM63 32h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5H63q-13 0-22-9.5T32 118V64q0-14 8.5-23T63 32zM32 229q0-14 8.5-23t22.5-9h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5H63q-13 0-22-9.5T32 283v-54zm31 133h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5H63q-13 0-22-9.5T32 448v-54q0-14 8.5-23t22.5-9zM228 32h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5h-55q-13 0-22-9.5t-9-22.5V64q0-14 8.5-23t22.5-9zm-31 362q0-14 8.5-23t22.5-9h55q14 0 22.5 9t8.5 23v54q0 13-9 22.5t-22 9.5h-55q-13 0-22-9.5t-9-22.5v-54z";
|
|
309
|
+
const ltr$3 = false;
|
|
310
|
+
const collection$3 = "SAP-icons-v4";
|
|
311
|
+
const packageName$3 = "@ui5/webcomponents-icons";
|
|
312
|
+
|
|
313
|
+
Icons.f(name$3, { pathData: pathData$3, ltr: ltr$3, collection: collection$3, packageName: packageName$3 });
|
|
314
|
+
|
|
315
|
+
const name$2 = "grid";
|
|
316
|
+
const pathData$2 = "M80 128q-20 0-34-14T32 80t14-34 34-14 34 14 14 34-14 34-34 14zm176 0q-20 0-34-14t-14-34 14-34 34-14 34 14 14 34-14 34-34 14zm176 0q-20 0-34-14t-14-34 14-34 34-14 34 14 14 34-14 34-34 14zM80 208q20 0 34 14t14 34-14 34-34 14-34-14-14-34 14-34 34-14zm176 0q20 0 34 14t14 34-14 34-34 14-34-14-14-34 14-34 34-14zm176 0q20 0 34 14t14 34-14 34-34 14-34-14-14-34 14-34 34-14zM80 384q20 0 34 14t14 34-14 34-34 14-34-14-14-34 14-34 34-14zm176 0q20 0 34 14t14 34-14 34-34 14-34-14-14-34 14-34 34-14zm176 0q20 0 34 14t14 34-14 34-34 14-34-14-14-34 14-34 34-14z";
|
|
317
|
+
const ltr$2 = false;
|
|
318
|
+
const collection$2 = "SAP-icons-v5";
|
|
319
|
+
const packageName$2 = "@ui5/webcomponents-icons";
|
|
320
|
+
|
|
321
|
+
Icons.f(name$2, { pathData: pathData$2, ltr: ltr$2, collection: collection$2, packageName: packageName$2 });
|
|
322
|
+
|
|
323
|
+
var grid = "grid";
|
|
324
|
+
|
|
325
|
+
function n(e,o){let t=null,l=null;return function(...u){if(l){t=u;return}e(...u),l=setTimeout(()=>{t&&(e(...t),t=null),l=null;},o);}}
|
|
326
|
+
|
|
327
|
+
function PopoversTemplate() {
|
|
328
|
+
return (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [i18nDefaults.jsx(ListItemTemplate.Popover, { class: "ui5-shellbar-menu-popover", hideArrow: true, placement: "Bottom", preventInitialFocus: true, onBeforeOpen: this._menuPopoverBeforeOpen, onClose: this._menuPopoverAfterClose, children: i18nDefaults.jsx(List.List, { separators: "None", selectionMode: "Single", onItemClick: this._menuItemPress, children: i18nDefaults.jsx("slot", { name: "menuItems" }) }) }), i18nDefaults.jsx(ListItemTemplate.Popover, { class: "ui5-shellbar-overflow-popover", placement: "Bottom", preventInitialFocus: true, horizontalAlign: this.popoverHorizontalAlign, hideArrow: true, onBeforeOpen: this._overflowPopoverBeforeOpen, onClose: this._overflowPopoverAfterClose, children: i18nDefaults.jsx(List.List, { separators: "None", onItemClick: this._handleActionListClick, children: this._hiddenIcons.map((icon, index) => (i18nDefaults.jsx(ListItemStandard$1, { "data-count": icon.count, "data-ui5-external-action-item-id": icon.refItemid, icon: icon.icon ? icon.icon : "", type: "Active", "onui5-_press": icon.press, tooltip: icon.tooltip, accessibilityAttributes: this.accInfo.search.accessibilityAttributes, children: icon.text }, index))) }) })] }));
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
const name$1 = "slim-arrow-down";
|
|
332
|
+
const pathData$1 = "M420.5 187q11-12 23 0 5 5 5 11t-5 11l-165 165q-10 9-23 9t-22-9l-166-165q-5-5-5-11.5t5-11.5 11.5-5 11.5 5l160 160q5 6 11 0z";
|
|
333
|
+
const ltr$1 = false;
|
|
334
|
+
const collection$1 = "SAP-icons-v4";
|
|
335
|
+
const packageName$1 = "@ui5/webcomponents-icons";
|
|
336
|
+
|
|
337
|
+
Icons.f(name$1, { pathData: pathData$1, ltr: ltr$1, collection: collection$1, packageName: packageName$1 });
|
|
338
|
+
|
|
339
|
+
const name = "slim-arrow-down";
|
|
340
|
+
const pathData = "M96 186q0-11 7.5-18.5T122 160q10 0 18 8l116 121 116-121q8-8 18-8 11 0 18.5 7.5T416 186q0 10-7 17L275 344q-8 8-19 8-12 0-18-8L103 203q-7-7-7-17z";
|
|
341
|
+
const ltr = false;
|
|
342
|
+
const collection = "SAP-icons-v5";
|
|
343
|
+
const packageName = "@ui5/webcomponents-icons";
|
|
344
|
+
|
|
345
|
+
Icons.f(name, { pathData, ltr, collection, packageName });
|
|
346
|
+
|
|
347
|
+
var slimArrowDown = "slim-arrow-down";
|
|
348
|
+
|
|
349
|
+
function ShellBarTemplate() {
|
|
350
|
+
return (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [i18nDefaults.jsxs("header", { class: this.classes.wrapper, "aria-label": this._shellbarText, onKeyDown: this._onKeyDown, part: "root", children: [i18nDefaults.jsxs("div", { class: "ui5-shellbar-overflow-container ui5-shellbar-overflow-container-left", children: [this.startButton.length > 0 && i18nDefaults.jsx("slot", { name: "startButton" }), this.hasMenuItems && (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [!this.showLogoInMenuButton && this.hasLogo && singleLogo.call(this), this.showTitleInMenuButton && i18nDefaults.jsx("h1", { class: "ui5-hidden-text", children: this.primaryTitle }), this.showMenuButton && (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [i18nDefaults.jsxs("button", { class: {
|
|
351
|
+
"ui5-shellbar-menu-button": true,
|
|
352
|
+
...this.classes.button,
|
|
353
|
+
}, onClick: this._headerPress, "aria-haspopup": "menu", "aria-expanded": this._menuPopoverExpanded, "aria-label": this._brandingText, "data-ui5-stable": "menu", tabIndex: 0, children: [this.showLogoInMenuButton && (i18nDefaults.jsx("span", { class: "ui5-shellbar-logo", "aria-label": this._logoText, title: this._logoText, children: i18nDefaults.jsx("slot", { name: "logo" }) })), this.showTitleInMenuButton && (i18nDefaults.jsx("div", { class: "ui5-shellbar-menu-button-title", children: this.primaryTitle })), i18nDefaults.jsx(Icon.Icon, { class: "ui5-shellbar-menu-button-arrow", name: slimArrowDown })] }), this.secondaryTitle && !this.isSBreakPoint && (i18nDefaults.jsx("div", { style: { display: "block" }, class: "ui5-shellbar-secondary-title", "data-ui5-stable": "secondary-title", children: this.secondaryTitle }))] }))] })), !this.hasMenuItems && (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [this.isSBreakPoint && this.hasLogo && singleLogo.call(this), !this.isSBreakPoint && (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [combinedLogo.call(this), this.secondaryTitle && this.primaryTitle && (i18nDefaults.jsx("h2", { class: "ui5-shellbar-secondary-title", "data-ui5-stable": "secondary-title", children: this.secondaryTitle }))] }))] }))] }), this.hasMidContent && (i18nDefaults.jsx("div", { class: "ui5-shellbar-overflow-container ui5-shellbar-mid-content", children: i18nDefaults.jsx("slot", { name: "midContent" }) })), i18nDefaults.jsx("div", { class: "ui5-shellbar-overflow-container ui5-shellbar-overflow-container-right", children: i18nDefaults.jsxs("div", { class: "ui5-shellbar-overflow-container-right-inner", children: [this.hasContentItems && (i18nDefaults.jsxs("div", { class: "ui5-shellbar-content-items", role: this._contentItemsRole, "aria-label": this._contentItemsText, children: [this.showStartSeparator && (i18nDefaults.jsx("div", { class: {
|
|
354
|
+
"ui5-shellbar-separator": true,
|
|
355
|
+
"ui5-shellbar-separator-start": true,
|
|
356
|
+
} })), this.startContent.map(item => {
|
|
357
|
+
const itemInfo = this._contentInfo.find(info => info.id === item._individualSlot);
|
|
358
|
+
return (i18nDefaults.jsxs("div", { id: item._individualSlot, class: itemInfo?.classes, children: [this.shouldIncludeSeparator(itemInfo, this.startContentInfoSorted) && (
|
|
359
|
+
// never displayed, only "packed" with last item that was hidden, used for measurement purposes
|
|
360
|
+
i18nDefaults.jsx("div", { class: {
|
|
361
|
+
"ui5-shellbar-separator": true,
|
|
362
|
+
"ui5-shellbar-separator-start": true,
|
|
363
|
+
} })), i18nDefaults.jsx("slot", { name: item._individualSlot })] }, item._individualSlot));
|
|
364
|
+
}), i18nDefaults.jsx("div", { class: "ui5-shellbar-spacer" }), this.endContent.map(item => {
|
|
365
|
+
const itemInfo = this._contentInfo.find(info => info.id === item._individualSlot);
|
|
366
|
+
return (i18nDefaults.jsxs("div", { id: item._individualSlot, class: itemInfo?.classes, children: [i18nDefaults.jsx("slot", { name: item._individualSlot }), this.shouldIncludeSeparator(itemInfo, this.endContentInfoSorted) && (
|
|
367
|
+
// never displayed, only "packed" with last item that was hidden, used for measurement purposes
|
|
368
|
+
i18nDefaults.jsx("div", { class: {
|
|
369
|
+
"ui5-shellbar-separator": true,
|
|
370
|
+
"ui5-shellbar-separator-end": true,
|
|
371
|
+
} }))] }, item._individualSlot));
|
|
372
|
+
}), this.showEndSeparator && (i18nDefaults.jsx("div", { class: {
|
|
373
|
+
"ui5-shellbar-separator": true,
|
|
374
|
+
"ui5-shellbar-separator-end": true,
|
|
375
|
+
} }))] })), !this.hasContentItems && i18nDefaults.jsx("div", { class: "ui5-shellbar-spacer" }), i18nDefaults.jsxs("div", { class: "ui5-shellbar-overflow-container-right-child", role: this._rightChildRole, children: [this.hasSearchField && (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [this.showFullWidthSearch && (i18nDefaults.jsxs("div", { class: "ui5-shellbar-search-full-width-wrapper", style: this.styles.searchField, children: [i18nDefaults.jsx("div", { class: "ui5-shellbar-search-full-field", children: i18nDefaults.jsx("slot", { name: "searchField" }) }), i18nDefaults.jsx(Button.Button, { onClick: this._handleCancelButtonPress, class: "ui5-shellbar-button ui5-shellbar-cancel-button", "data-ui5-stable": "cancel-search", children: this._cancelBtnText })] })), i18nDefaults.jsx("div", { id: this.hasSelfCollapsibleSearch ? `${this._id}-item-1` : undefined, class: this.classes.searchField, style: this.styles.searchField, children: i18nDefaults.jsx("slot", { name: "searchField" }) }), !(this.hasSelfCollapsibleSearch || this.hideSearchButton) && (i18nDefaults.jsx(Button.Button, { id: `${this._id}-item-1`, class: {
|
|
376
|
+
"ui5-shellbar-button": true,
|
|
377
|
+
"ui5-shellbar-search-button": true,
|
|
378
|
+
"ui5-shellbar-search-item-for-arrow-nav": true,
|
|
379
|
+
...this.classes.search,
|
|
380
|
+
}, icon: "sap-icon://search", "data-ui5-text": "Search", "data-ui5-notifications-count": this.notificationsCount, "data-ui5-stable": "toggle-search", onClick: this._handleSearchIconPress, tooltip: this._searchBtnOpen, "aria-label": this._searchBtnOpen, "aria-expanded": this.showSearchField, accessibilityAttributes: this.accInfo.search.accessibilityAttributes }))] })), this.hasAssistant && (i18nDefaults.jsx("div", { id: `${this._id}-assistant`, class: this.classes.assistant, children: i18nDefaults.jsx("slot", { name: "assistant" }) })), this.showNotifications && (i18nDefaults.jsx(Button.Button, { id: `${this._id}-item-2`, class: {
|
|
381
|
+
"ui5-shellbar-button": true,
|
|
382
|
+
"ui5-shellbar-bell-button": true,
|
|
383
|
+
"ui5-shellbar-items-for-arrow-nav": true,
|
|
384
|
+
...this.classes.notification,
|
|
385
|
+
}, icon: "sap-icon://bell", "data-ui5-text": "Notifications", "data-ui5-notifications-count": this.notificationsCount, onClick: this._handleNotificationsPress, tooltip: this._notificationsText, accessibilityAttributes: this.accInfo.notifications.accessibilityAttributes, "data-ui5-stable": "notifications" })), this.customItemsInfo.map(item => (i18nDefaults.jsx(Button.Button, { id: item.id, class: `${item.classes} ui5-shellbar-items-for-arrow-nav`, icon: item.icon, tooltip: item.tooltip, "data-count": item.count, "data-ui5-notifications-count": this.notificationsCount, "data-ui5-external-action-item-id": item.refItemid, "data-ui5-stable": item.stableDomRef, onClick: item.press, accessibilityAttributes: item.accessibilityAttributes, accessibleName: item.accessibleName }, item.id)))] })] }) }), i18nDefaults.jsx(Button.Button, { id: `${this._id}-item-5`, class: {
|
|
386
|
+
"ui5-shellbar-button": true,
|
|
387
|
+
"ui5-shellbar-overflow-button": true,
|
|
388
|
+
"ui5-shellbar-items-for-arrow-nav": true,
|
|
389
|
+
...this.classes.overflow,
|
|
390
|
+
}, icon: "sap-icon://overflow", "data-count": this._overflowNotifications, onClick: this._handleOverflowPress, tooltip: this._overflowText, accessibilityAttributes: this.accInfo.overflow.accessibilityAttributes, "data-ui5-stable": "overflow" }), this.hasProfile && profileButton.call(this), this.showProductSwitch && (i18nDefaults.jsx(Button.Button, { id: `${this._id}-item-4`, class: "ui5-shellbar-no-overflow-button ui5-shellbar-button ui5-shellbar-button-product-switch ui5-shellbar-items-for-arrow-nav", icon: "sap-icon://grid", "data-ui5-text": "Product Switch", onClick: this._handleProductSwitchPress, tooltip: this._productsText, "aria-label": this._productSwitchBtnText, "aria-haspopup": "dialog", "aria-expanded": this.accInfo.products.accessibilityAttributes.expanded, accessibilityAttributes: this.accInfo.products.accessibilityAttributes, "data-ui5-stable": "product-switch" }))] }), PopoversTemplate.call(this)] }));
|
|
391
|
+
}
|
|
392
|
+
function profileButton() {
|
|
393
|
+
return (i18nDefaults.jsx(Button.Button, { "data-profile-btn": true, id: `${this._id}-item-3`, onClick: this._handleProfilePress, tooltip: this._profileText, class: "ui5-shellbar-button ui5-shellbar-image-button ui5-shellbar-no-overflow-button ui5-shellbar-items-for-arrow-nav", "aria-label": this.imageBtnText, "aria-haspopup": "dialog", accessibilityAttributes: this.accInfo.profile.accessibilityAttributes, "data-ui5-stable": "profile", children: i18nDefaults.jsx("slot", { name: "profile" }) }));
|
|
394
|
+
}
|
|
395
|
+
function singleLogo() {
|
|
396
|
+
return (i18nDefaults.jsx("span", { role: this.accLogoRole, class: "ui5-shellbar-logo", "aria-label": this._logoText, title: this._logoText, onClick: this._logoPress, onKeyDown: this._logoKeydown, onKeyUp: this._logoKeyup, tabIndex: 0, "data-ui5-stable": "logo", children: i18nDefaults.jsx("slot", { name: "logo" }) }));
|
|
397
|
+
}
|
|
398
|
+
function combinedLogo() {
|
|
399
|
+
return (i18nDefaults.jsxs("div", { role: this.accLogoRole, class: "ui5-shellbar-logo-area", onClick: this._logoPress, tabIndex: 0, onKeyDown: this._logoKeydown, onKeyUp: this._logoKeyup, "aria-label": this.accessibilityAttributes.branding?.name || this._logoAreaText, children: [this.hasLogo && (i18nDefaults.jsx("span", { class: "ui5-shellbar-logo", title: this._logoText, onClick: this._logoPress, onKeyDown: this._logoKeydown, onKeyUp: this._logoKeyup, "data-ui5-stable": "logo", children: i18nDefaults.jsx("slot", { name: "logo" }) })), i18nDefaults.jsx("div", { class: "ui5-shellbar-headings", children: this.primaryTitle && (i18nDefaults.jsx("h1", { class: "ui5-shellbar-title", children: i18nDefaults.jsx("bdi", { children: this.primaryTitle }) })) })] }));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => i18nDefaults.defaultThemeBase);
|
|
403
|
+
Icons.p("@ui5/webcomponents-fiori", "sap_horizon", async () => parametersBundle_css.defaultTheme);
|
|
404
|
+
var shellBarStyles = `.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block;width:100%;max-width:100%;background:var(--sapShellColor);box-sizing:border-box}:host{--_ui5-v2-10-0-rc-2_input_placeholder_color: var(--sapShell_InteractiveTextColor);--_ui5-v2-10-0-rc-2_input_border_radius: var(--_ui5-v2-10-0-rc-2_shellbar_input_border_radius);--_ui5-v2-10-0-rc-2_input_focus_border_radius: var(--_ui5-v2-10-0-rc-2_shellbar_input_focus_border_radius);--_ui5-v2-10-0-rc-2_input_background_color: var(--_ui5-v2-10-0-rc-2_shellbar_input_background_color);--_ui5-v2-10-0-rc-2_input_focus_outline_color: var(--_ui5-v2-10-0-rc-2_shellbar_input_focus_outline_color);--_ui5-v2-10-0-rc-2_input_margin_top_bottom: 0;box-shadow:inset 0 -.0625rem 0 0 var(--sapPageHeader_BorderColor)}.ui5-shellbar-root{position:relative;display:flex;justify-content:space-between;align-items:center;height:var(--_ui5-v2-10-0-rc-2_shellbar_root_height);font-family:"72override",var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;box-sizing:border-box}.ui5-shellbar-menu-button,.ui5-shellbar-button,.ui5-shellbar-image-button,::slotted([ui5-toggle-button]:not([slot^="content"])),::slotted([ui5-button]:not([slot^="content"])){height:2.25rem;padding:0;margin-inline-start:var(--_ui5-v2-10-0-rc-2-shellbar-overflow-button-margin);border:.0625rem solid var(--sapButton_Lite_BorderColor);background:var(--sapButton_Lite_Background);outline-color:var(--_ui5-v2-10-0-rc-2_shellbar_logo_outline_color);color:var(--sapShell_TextColor);box-sizing:border-box;cursor:pointer;border-radius:var(--_ui5-v2-10-0-rc-2_shellbar_button_border_radius);position:relative;font-weight:700;white-space:initial;overflow:initial;text-overflow:initial;line-height:inherit;letter-spacing:inherit;word-spacing:inherit}::slotted([ui5-toggle-button][slot="assistant"]){margin-inline-start:0}.ui5-shellbar-assistant-button{margin-inline-start:var(--_ui5-v2-10-0-rc-2-shellbar-overflow-button-margin)}::slotted([ui5-button][slot="startButton"]){margin-inline-start:0}::slotted([ui5-toggle-button]:hover),::slotted([ui5-button]:hover),.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:hover,.ui5-shellbar-button:hover,.ui5-shellbar-image-button:hover,::slotted([ui5-button][slot="midContent"]:hover){background:var(--sapShell_Hover_Background);border-color:var(--sapButton_Lite_Hover_BorderColor);color:var(--sapShell_TextColor)}::slotted([ui5-toggle-button][slot="assistant"][pressed]),::slotted([ui5-toggle-button][slot="assistant"][pressed]:hover:not([active])){color:var(--sapShell_Assistant_ForegroundColor)}::slotted([ui5-toggle-button][active]),::slotted([ui5-button][active]),.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:active,.ui5-shellbar-button[active],.ui5-shellbar-image-button:active{background:var(--sapShell_Active_Background);border-color:var(--sapButton_Lite_Active_BorderColor);color:var(--_ui5-v2-10-0-rc-2_shellbar_button_active_color)}:host([desktop]) .ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:focus,.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:focus-visible{outline:var(--_ui5-v2-10-0-rc-2_shellbar_logo_outline);outline-offset:var(--_ui5-v2-10-0-rc-2_shellbar_outline_offset)}slot[name=profile]{min-width:0}::slotted([ui5-avatar][slot="profile"]){display:block;width:2rem;height:2rem;min-width:0;min-height:2rem;pointer-events:none}.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive::-moz-focus-inner{border:none}.ui5-shellbar-menu-button-arrow,.ui5-shellbar-menu-button-title,.ui5-shellbar-title{display:inline-block;font-family:var(--sapFontSemiboldFamily);margin:0;font-size:var(--_ui5-v2-10-0-rc-2_shellbar_menu_button_title_font_size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--sapShell_SubBrand_TextColor)}:host(:not([primary-title])) .ui5-shellbar-menu-button{min-width:2.25rem;justify-content:center}.ui5-shellbar-secondary-title{display:inline-block;font-size:var(--sapFontSmallSize);color:var(--sapShell_TextColor);font-weight:400;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin:0;text-align:start}.ui5-shellbar-headings{display:flex;flex-direction:column;justify-content:center;height:100%;overflow:hidden;margin-left:.25rem}.ui5-shellbar-menu-button--interactive .ui5-shellbar-menu-button-arrow{margin-inline-start:.375rem}.ui5-shellbar-overflow-container{display:flex;justify-content:center;align-items:center;height:100%;overflow:hidden}.ui5-shellbar-overflow-container-middle{align-self:flex-start;height:var(--_ui5-v2-10-0-rc-2_shellbar_overflow_container_middle_height);width:0;flex-shrink:0}.ui5-shellbar-mid-content{height:var(--_ui5-v2-10-0-rc-2_shellbar_overflow_container_middle_height)}:host([breakpoint-size="S"]) .ui5-shellbar-menu-button{margin-inline-start:0}:host([breakpoint-size="S"]){padding:0 1rem}:host([breakpoint-size="S"]) .ui5-shellbar-search-full-width-wrapper{padding:0 1rem}:host([breakpoint-size="M"]){padding:0 2rem}:host([breakpoint-size="M"]) .ui5-shellbar-search-full-width-wrapper{padding:0 2rem}:host([breakpoint-size="L"]){padding:0 2rem}:host([breakpoint-size="XL"]){padding:0 3rem}:host([breakpoint-size="XXL"]){padding:0 3rem}.ui5-shellbar-logo{overflow:hidden;cursor:pointer;max-height:2rem;max-width:3.75rem}.ui5-shellbar-logo-area{overflow:hidden;display:flex;align-items:center;padding:.25rem .5rem .25rem .25rem;box-sizing:border-box;cursor:pointer;background:var(--sapButton_Lite_Background);border:1px solid var(--sapButton_Lite_BorderColor);color:var(--sapShell_TextColor);margin-inline-start:.125rem}.ui5-shellbar-logo:focus,.ui5-shellbar-logo-area:focus{outline:var(--_ui5-v2-10-0-rc-2_shellbar_logo_outline);border-radius:var(--_ui5-v2-10-0-rc-2_shellbar_logo_border_radius)}.ui5-shellbar-overflow-container>.ui5-shellbar-logo:hover,.ui5-shellbar-logo-area:hover{box-shadow:var(--_ui5-v2-10-0-rc-2_shellbar_button_box_shadow);border-radius:var(--_ui5-v2-10-0-rc-2_shellbar_logo_border_radius)}.ui5-shellbar-logo-area:active:focus{background:var(--sapShell_Active_Background);border:1px solid var(--sapButton_Lite_Active_BorderColor);color:var(--sapShell_Active_TextColor)}.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:hover{box-shadow:var(--_ui5-v2-10-0-rc-2_shellbar_button_box_shadow)}.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:active{box-shadow:var(--_ui5-v2-10-0-rc-2_shellbar_button_box_shadow_active)}.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:active .ui5-shellbar-menu-button-arrow,.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive:active .ui5-shellbar-menu-button-title{color:var(--sapShell_Active_TextColor)}.ui5-shellbar-menu-button .ui5-shellbar-logo:hover{box-shadow:none}.ui5-shellbar-button{width:2.5rem;box-sizing:border-box}.ui5-shellbar-button,::slotted([ui5-button][slot="startButton"]){--_ui5-v2-10-0-rc-2_button_focused_border: var(--_ui5-v2-10-0-rc-2_shellbar_button_focused_border)}.ui5-shellbar-search-button{--_ui5-v2-10-0-rc-2_button_focused_border_radius: var(--_ui5-v2-10-0-rc-2_shellbar_search_button_border_radius);--_ui5-v2-10-0-rc-2_shellbar_button_border_radius: var(--_ui5-v2-10-0-rc-2_shellbar_search_button_border_radius);height:var(--_ui5-v2-10-0-rc-2_shellbar_search_button_size);width:var(--_ui5-v2-10-0-rc-2_shellbar_search_button_size);min-width:var(--_ui5-v2-10-0-rc-2_shellbar_search_button_size)}.ui5-shellbar-image-button{display:flex;justify-content:center;align-items:center;min-width:auto;height:2.5rem;--_ui5-v2-10-0-rc-2_button_focused_border_radius: var(--_ui5-v2-10-0-rc-2_shellbar_image_button_border_radius);border-radius:var(--_ui5-v2-10-0-rc-2_shellbar_image_button_border_radius)}.ui5-shellbar-overflow-container-left{padding:0;justify-content:flex-start;max-width:75%;flex-shrink:0}.ui5-shellbar-overflow-container-left>:nth-child(n){margin-inline-end:.5rem}.ui5-shellbar-menu-button{white-space:nowrap;overflow:hidden;display:flex;align-items:center;padding:.25rem .5rem;cursor:text;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ui5-shellbar-menu-button.ui5-shellbar-menu-button--interactive{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;background:var(--sapButton_Lite_Background);border:var(--_ui5-v2-10-0-rc-2_shellbar_button_border);color:var(--sapShell_TextColor)}:host(:not([with-logo])) .ui5-shellbar-menu-button{margin-inline-start:0}.ui5-shellbar-overflow-container-right{flex-grow:1;justify-content:flex-end}.ui5-shellbar-overflow-container-right .ui5-shellbar-overflow-container-right-child{display:flex;justify-content:flex-end;height:inherit;align-items:center}.ui5-shellbar-overflow-container-right-inner{display:flex;flex-grow:1}.ui5-shellbar-content-items{display:flex;justify-content:center;align-items:center;flex-grow:1;min-width:max-content}.ui5-shellbar-spacer{flex-grow:1;height:1px;flex-basis:1rem;flex-shrink:1}.ui5-shellbar-separator{flex-grow:0;flex-shrink:0;height:1rem;width:1px;background-color:var(--sapToolbar_SeparatorColor)}.ui5-shellbar-separator-end{margin-inline-start:.5rem}.ui5-shellbar-overflow-container-right-child .ui5-shellbar-button[data-count]:has(+.ui5-shellbar-overflow-button):before{inset-inline-end:var(--_ui5-v2-10-0-rc-2-shellbar-notification-btn-count-offset)}:host([breakpoint-size="S"]) .ui5-shellbar-overflow-container-right{padding-inline-start:0}::slotted([hidden]){visibility:hidden;order:-1;position:absolute}.ui5-shellbar-content-item{display:flex;align-items:center;flex-shrink:0;padding-inline-start:var(--_ui5-v2-10-0-rc-2-shellbar-content-margin-start)}:host(:not([notifications-count])) .ui5-shellbar-bell-button{position:relative}:host([notifications-count]:not([notifications-count=""])) .ui5-shellbar-bell-button:before,.ui5-shellbar-button[data-count]:before{position:absolute;width:auto;height:1rem;min-width:1rem;background:var(--sapContent_BadgeBackground);border:var(--_ui5-v2-10-0-rc-2_shellbar_button_badge_border);color:var(--sapContent_BadgeTextColor);top:-.25rem;right:-.25rem;padding:0 .3125rem;border-radius:.5rem;display:flex;justify-content:center;align-items:center;font-size:var(--sapFontSmallSize);font-family:"72override",var(--sapFontFamily);z-index:2;box-sizing:border-box}:host([notifications-count]:not([notifications-count=""])) .ui5-shellbar-bell-button:before{content:attr(data-ui5-notifications-count);inset-inline-end:var(--_ui5-v2-10-0-rc-2-shellbar-notification-btn-count-offset)}.ui5-shellbar-button[data-count]:before{content:attr(data-count)}.ui5-shellbar-button[data-count=" "]:before{height:.75rem;min-width:.75rem}.ui5-shellbar-menu-button{margin-inline-start:.5rem}.ui5-shellbar-search-field{padding-inline-start:var(--_ui5-v2-10-0-rc-2-shellbar-content-margin-start);min-width:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_width);align-items:center;flex-grow:1;margin-inline-start:.5rem}.ui5-shellbar-overflow-container-right-child>:first-child,.ui5-shellbar-search-field:first-child+.ui5-shellbar-button:not(.ui5-shellbar-search-button){margin-inline-start:0}.ui5-shellbar-search-full-width-wrapper .ui5-shellbar-search-full-field{height:2.25rem;width:100%}.ui5-shellbar-search-full-width-wrapper{position:absolute;top:0;left:0;background:var(--sapShellColor);height:100%;width:100%;z-index:100;display:flex;align-items:center;box-sizing:border-box}.ui5-shellbar-search-full-width-wrapper .ui5-shellbar-button{width:auto}::slotted([ui5-input]){background:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_background);border:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_border);box-shadow:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_box_shadow);color:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_color);height:2.25rem;width:100%;min-width:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_width)}:host([breakpoint-size="M"]) ::slotted([ui5-input]),:host([breakpoint-size="S"]) ::slotted([ui5-input]){min-width:1rem}:host([breakpoint-size="M"][show-search-field]) .ui5-shellbar-overflow-container-right-child{flex-grow:1}::slotted([ui5-input]:hover){background:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_background_hover);box-shadow:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_box_shadow_hover)}::slotted([ui5-input][focused]){outline:var(--_ui5-v2-10-0-rc-2_shellbar_search_field_outline_focused)}::slotted([slot="logo"]){max-height:2rem;max-width:3.75rem;pointer-events:none}.ui5-shellbar-co-pilot-placeholder{width:2.75rem;height:2.75rem}.ui5-shellbar-coPilot-pressed,.ui5-shellbar-coPilot-pressed:hover{color:var(--sapShell_Assistant_ForegroundColor)}::slotted([ui5-button][slot="startButton"]){margin-inline:0 .5rem;justify-content:center;align-items:center}::slotted([ui5-button][data-profile-btn]){width:auto}::slotted(.ui5-shellbar-hidden-button),.ui5-shellbar-hidden-button,.ui5-shellbar-invisible-button{visibility:hidden;order:-1;opacity:0;min-width:0;width:0;margin:0;padding:0;padding-inline-start:0;border:0;margin-inline-start:0}
|
|
405
|
+
`;
|
|
406
|
+
|
|
407
|
+
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => i18nDefaults.defaultThemeBase);
|
|
408
|
+
Icons.p("@ui5/webcomponents-fiori", "sap_horizon", async () => parametersBundle_css.defaultTheme);
|
|
409
|
+
var ShellBarPopoverCss = `.ui5-shellbar-menu-popover::part(content),.ui5-shellbar-overflow-popover::part(content){padding:0}.ui5-shellbar-overflow-popover [ui5-li]::part(icon){color:var(--sapList_TextColor)}.ui5-shellbar-overflow-popover [ui5-li]::part(title){font-size:var(--sapFontSize)}.ui5-shellbar-overflow-popover [ui5-li]:after{position:relative;width:fit-content;height:1rem;min-width:1rem;background:var(--sapContent_BadgeBackground);border:var(--_ui5-v2-10-0-rc-2_shellbar_button_badge_border);color:var(--sapContent_BadgeTextColor);bottom:calc(100% + .0625rem);left:1.25rem;padding:0 .3125rem;border-radius:.5rem;display:flex;justify-content:center;align-items:center;font-size:var(--sapFontSmallSize);font-family:"72override",var(--sapFontFamily);z-index:2;box-sizing:border-box;pointer-events:none}.ui5-shellbar-overflow-popover [ui5-li][data-count]:after{content:attr(data-count)}
|
|
410
|
+
`;
|
|
411
|
+
|
|
412
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
413
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
414
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
415
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
416
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
417
|
+
};
|
|
418
|
+
var ShellBar_1;
|
|
419
|
+
const RESIZE_THROTTLE_RATE = 200; // ms
|
|
420
|
+
// actions always visible in lean mode, order is important
|
|
421
|
+
const PREDEFINED_PLACE_ACTIONS = ["feedback", "sys-help"];
|
|
422
|
+
/**
|
|
423
|
+
* @class
|
|
424
|
+
* ### Overview
|
|
425
|
+
*
|
|
426
|
+
* The `ui5-shellbar` is meant to serve as an application header
|
|
427
|
+
* and includes numerous built-in features, such as: logo, profile image/icon, title, search field, notifications and so on.
|
|
428
|
+
*
|
|
429
|
+
* ### Stable DOM Refs
|
|
430
|
+
*
|
|
431
|
+
* You can use the following stable DOM refs for the `ui5-shellbar`:
|
|
432
|
+
*
|
|
433
|
+
* - logo
|
|
434
|
+
* - notifications
|
|
435
|
+
* - overflow
|
|
436
|
+
* - profile
|
|
437
|
+
* - product-switch
|
|
438
|
+
*
|
|
439
|
+
* ### Keyboard Handling
|
|
440
|
+
*
|
|
441
|
+
* #### Fast Navigation
|
|
442
|
+
* This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].
|
|
443
|
+
* In order to use this functionality, you need to import the following module:
|
|
444
|
+
* `import "@ui5/webcomponents-base/dist/features/F6Navigation.js"`
|
|
445
|
+
*
|
|
446
|
+
* ### ES6 Module Import
|
|
447
|
+
* `import "@ui5/webcomponents-fiori/dist/ShellBar.js";`
|
|
448
|
+
* @csspart root - Used to style the outermost wrapper of the `ui5-shellbar`
|
|
449
|
+
* @constructor
|
|
450
|
+
* @extends UI5Element
|
|
451
|
+
* @public
|
|
452
|
+
* @since 0.8.0
|
|
453
|
+
*/
|
|
454
|
+
let ShellBar = ShellBar_1 = class ShellBar extends webcomponentsBase.b {
|
|
455
|
+
static get FIORI_3_BREAKPOINTS() {
|
|
456
|
+
return [
|
|
457
|
+
599,
|
|
458
|
+
1023,
|
|
459
|
+
1439,
|
|
460
|
+
1919,
|
|
461
|
+
10000,
|
|
462
|
+
];
|
|
463
|
+
}
|
|
464
|
+
static get FIORI_3_BREAKPOINTS_MAP() {
|
|
465
|
+
return {
|
|
466
|
+
"599": "S",
|
|
467
|
+
"1023": "M",
|
|
468
|
+
"1439": "L",
|
|
469
|
+
"1919": "XL",
|
|
470
|
+
"10000": "XXL",
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
constructor() {
|
|
474
|
+
super();
|
|
475
|
+
/**
|
|
476
|
+
* Defines the visibility state of the search button.
|
|
477
|
+
*
|
|
478
|
+
* **Note:** The `hideSearchButton` property is in an experimental state and is a subject to change.
|
|
479
|
+
* @default false
|
|
480
|
+
* @public
|
|
481
|
+
*/
|
|
482
|
+
this.hideSearchButton = false;
|
|
483
|
+
/**
|
|
484
|
+
* Disables the automatic search field expansion/collapse when the available space is not enough.
|
|
485
|
+
*
|
|
486
|
+
* **Note:** The `disableAutoSearchField` property is in an experimental state and is a subject to change.
|
|
487
|
+
* @default false
|
|
488
|
+
* @public
|
|
489
|
+
*/
|
|
490
|
+
this.disableAutoSearchField = false;
|
|
491
|
+
/**
|
|
492
|
+
* Defines, if the notification icon would be displayed.
|
|
493
|
+
* @default false
|
|
494
|
+
* @public
|
|
495
|
+
*/
|
|
496
|
+
this.showNotifications = false;
|
|
497
|
+
/**
|
|
498
|
+
* Defines, if the product switch icon would be displayed.
|
|
499
|
+
* @default false
|
|
500
|
+
* @public
|
|
501
|
+
*/
|
|
502
|
+
this.showProductSwitch = false;
|
|
503
|
+
/**
|
|
504
|
+
* Defines additional accessibility attributes on different areas of the component.
|
|
505
|
+
*
|
|
506
|
+
* The accessibilityAttributes object has the following fields,
|
|
507
|
+
* where each field is an object supporting one or more accessibility attributes:
|
|
508
|
+
*
|
|
509
|
+
* - **logo** - `logo.role` and `logo.name`.
|
|
510
|
+
* - **notifications** - `notifications.expanded` and `notifications.hasPopup`.
|
|
511
|
+
* - **profile** - `profile.expanded`, `profile.hasPopup` and `profile.name`.
|
|
512
|
+
* - **product** - `product.expanded` and `product.hasPopup`.
|
|
513
|
+
* - **search** - `search.hasPopup`.
|
|
514
|
+
* - **overflow** - `overflow.expanded` and `overflow.hasPopup`.
|
|
515
|
+
* - **branding** - `branding.name`.
|
|
516
|
+
*
|
|
517
|
+
* The accessibility attributes support the following values:
|
|
518
|
+
*
|
|
519
|
+
* - **role**: Defines the accessible ARIA role of the logo area.
|
|
520
|
+
* Accepts the following string values: `button` or `link`.
|
|
521
|
+
*
|
|
522
|
+
* - **expanded**: Indicates whether the button, or another grouping element it controls,
|
|
523
|
+
* is currently expanded or collapsed.
|
|
524
|
+
* Accepts the following string values: `true` or `false`.
|
|
525
|
+
*
|
|
526
|
+
* - **hasPopup**: Indicates the availability and type of interactive popup element,
|
|
527
|
+
* such as menu or dialog, that can be triggered by the button.
|
|
528
|
+
*
|
|
529
|
+
* Accepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.
|
|
530
|
+
* - **name**: Defines the accessible ARIA name of the area.
|
|
531
|
+
* Accepts any string.
|
|
532
|
+
*
|
|
533
|
+
* @default {}
|
|
534
|
+
* @public
|
|
535
|
+
* @since 1.10.0
|
|
536
|
+
*/
|
|
537
|
+
this.accessibilityAttributes = {};
|
|
538
|
+
/**
|
|
539
|
+
* @private
|
|
540
|
+
*/
|
|
541
|
+
this.breakpointSize = "S";
|
|
542
|
+
/**
|
|
543
|
+
* @private
|
|
544
|
+
*/
|
|
545
|
+
this.withLogo = false;
|
|
546
|
+
this._itemsInfo = [];
|
|
547
|
+
this._contentInfo = [];
|
|
548
|
+
this._menuPopoverExpanded = false;
|
|
549
|
+
this._overflowPopoverExpanded = false;
|
|
550
|
+
this.showFullWidthSearch = false;
|
|
551
|
+
this._cachedHiddenContent = [];
|
|
552
|
+
this._lastOffsetWidth = 0;
|
|
553
|
+
this._observableContent = [];
|
|
554
|
+
this._autoRestoreSearchField = false;
|
|
555
|
+
this._showSearchField = false;
|
|
556
|
+
this._hiddenIcons = [];
|
|
557
|
+
this._isInitialRendering = true;
|
|
558
|
+
this._overflowNotifications = null;
|
|
559
|
+
// marks if preventDefault() is called in item's press handler
|
|
560
|
+
this._defaultItemPressPrevented = false;
|
|
561
|
+
this.contentItemsObserver = new MutationObserver(() => {
|
|
562
|
+
this._handleActionsOverflow();
|
|
563
|
+
});
|
|
564
|
+
this._headerPress = () => {
|
|
565
|
+
if (this.hasMenuItems) {
|
|
566
|
+
const menuPopover = this._getMenuPopover();
|
|
567
|
+
menuPopover.opener = this.shadowRoot.querySelector(".ui5-shellbar-menu-button");
|
|
568
|
+
menuPopover.open = true;
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
this._handleResize = n(() => {
|
|
572
|
+
this.menuPopover = this._getMenuPopover();
|
|
573
|
+
this.overflowPopover = this._getOverflowPopover();
|
|
574
|
+
this.overflowPopover.open = false;
|
|
575
|
+
if (this._lastOffsetWidth !== this.offsetWidth) {
|
|
576
|
+
this._overflowActions();
|
|
577
|
+
if (this.autoSearchField) {
|
|
578
|
+
this._updateSearchFieldState();
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}, RESIZE_THROTTLE_RATE);
|
|
582
|
+
}
|
|
583
|
+
_updateSearchFieldState() {
|
|
584
|
+
const spacerWidth = this.shadowRoot.querySelector(".ui5-shellbar-spacer") ? this.shadowRoot.querySelector(".ui5-shellbar-spacer").getBoundingClientRect().width : 0;
|
|
585
|
+
const searchFieldWidth = this.domCalculatedValues("--_ui5_shellbar_search_field_width");
|
|
586
|
+
if (this.showFullWidthSearch) {
|
|
587
|
+
this.setSearchState(true);
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
if ((spacerWidth <= searchFieldWidth && this.contentItemsHidden.length !== 0) && this.showSearchField) {
|
|
591
|
+
this.setSearchState(false);
|
|
592
|
+
this._autoRestoreSearchField = true;
|
|
593
|
+
}
|
|
594
|
+
else if (spacerWidth > searchFieldWidth && this._autoRestoreSearchField) {
|
|
595
|
+
this.setSearchState(true);
|
|
596
|
+
this._autoRestoreSearchField = false;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
_onKeyDown(e) {
|
|
600
|
+
const items = this._getVisibleAndInteractiveItems();
|
|
601
|
+
const activeElement = webcomponentsBase.t();
|
|
602
|
+
const currentIndex = items.findIndex(el => el === activeElement);
|
|
603
|
+
if (webcomponentsBase.K(e) || webcomponentsBase.c(e)) {
|
|
604
|
+
e.preventDefault(); // Prevent the default behavior to avoid any further automatic focus movemen
|
|
605
|
+
// Focus navigation based on the key pressed
|
|
606
|
+
if (webcomponentsBase.K(e)) {
|
|
607
|
+
this._focusPreviousItem(items, currentIndex);
|
|
608
|
+
}
|
|
609
|
+
else if (webcomponentsBase.c(e)) {
|
|
610
|
+
this._focusNextItem(items, currentIndex);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
_focusNextItem(items, currentIndex) {
|
|
615
|
+
if (currentIndex < items.length - 1) {
|
|
616
|
+
(items[currentIndex + 1]).focus(); // Focus the next element
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
_focusPreviousItem(items, currentIndex) {
|
|
620
|
+
if (currentIndex > 0) {
|
|
621
|
+
(items[currentIndex - 1]).focus(); // Focus the previous element
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
_isVisible(element) {
|
|
625
|
+
const style = getComputedStyle(element);
|
|
626
|
+
return style.display !== "none" && style.visibility !== "hidden" && element.offsetWidth > 0 && element.offsetHeight > 0;
|
|
627
|
+
}
|
|
628
|
+
_getNavigableContent() {
|
|
629
|
+
const elements = [
|
|
630
|
+
...this.startButton,
|
|
631
|
+
...this.logo,
|
|
632
|
+
...this.shadowRoot.querySelectorAll(".ui5-shellbar-logo"),
|
|
633
|
+
...this.shadowRoot.querySelectorAll(".ui5-shellbar-logo-area"),
|
|
634
|
+
...this.shadowRoot.querySelectorAll(".ui5-shellbar-menu-button"),
|
|
635
|
+
...this.contentItems,
|
|
636
|
+
...this._getRightChildItems(),
|
|
637
|
+
];
|
|
638
|
+
return elements.map((element) => {
|
|
639
|
+
const component = element;
|
|
640
|
+
if (component.isUI5Element) {
|
|
641
|
+
return component.getFocusDomRef();
|
|
642
|
+
}
|
|
643
|
+
return element;
|
|
644
|
+
}).filter(el => !!el);
|
|
645
|
+
}
|
|
646
|
+
_getRightChildItems() {
|
|
647
|
+
return [
|
|
648
|
+
...this.searchField,
|
|
649
|
+
...this.shadowRoot.querySelectorAll(".ui5-shellbar-search-item-for-arrow-nav"),
|
|
650
|
+
...this.assistant,
|
|
651
|
+
...this.shadowRoot.querySelectorAll(".ui5-shellbar-items-for-arrow-nav"),
|
|
652
|
+
];
|
|
653
|
+
}
|
|
654
|
+
_getVisibleAndInteractiveItems() {
|
|
655
|
+
const items = this._getNavigableContent();
|
|
656
|
+
const visibleAndInteractiveItems = items.filter(item => {
|
|
657
|
+
return this._isVisible(item) && item.tabIndex === 0;
|
|
658
|
+
});
|
|
659
|
+
return visibleAndInteractiveItems;
|
|
660
|
+
}
|
|
661
|
+
_menuItemPress(e) {
|
|
662
|
+
const shouldContinue = this.fireDecoratorEvent("menu-item-click", {
|
|
663
|
+
item: e.detail.item,
|
|
664
|
+
});
|
|
665
|
+
if (shouldContinue) {
|
|
666
|
+
this.menuPopover.open = false;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
_logoPress() {
|
|
670
|
+
this.fireDecoratorEvent("logo-click", {
|
|
671
|
+
targetRef: this.shadowRoot.querySelector(".ui5-shellbar-logo"),
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
_menuPopoverBeforeOpen() {
|
|
675
|
+
this._menuPopoverExpanded = true;
|
|
676
|
+
if (this.menuPopover.content && this.menuPopover.content.length) {
|
|
677
|
+
this.menuPopover.content[0].focusFirstItem();
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
_menuPopoverAfterClose() {
|
|
681
|
+
this._menuPopoverExpanded = false;
|
|
682
|
+
}
|
|
683
|
+
_overflowPopoverBeforeOpen() {
|
|
684
|
+
this._overflowPopoverExpanded = true;
|
|
685
|
+
if (this.overflowPopover.content && this.overflowPopover.content.length) {
|
|
686
|
+
this.overflowPopover.content[0].focusFirstItem();
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
_overflowPopoverAfterClose() {
|
|
690
|
+
this._overflowPopoverExpanded = false;
|
|
691
|
+
}
|
|
692
|
+
_logoKeyup(e) {
|
|
693
|
+
if (webcomponentsBase.i(e)) {
|
|
694
|
+
this._logoPress();
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
_logoKeydown(e) {
|
|
698
|
+
if (webcomponentsBase.i(e)) {
|
|
699
|
+
e.preventDefault();
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
if (webcomponentsBase.b$1(e)) {
|
|
703
|
+
this._logoPress();
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
_calculateCSSREMValue(styleSet, propertyName) {
|
|
707
|
+
return Number(styleSet.getPropertyValue(propertyName).replace("rem", "")) * parseInt(getComputedStyle(document.body).getPropertyValue("font-size"));
|
|
708
|
+
}
|
|
709
|
+
domCalculatedValues(cssVar) {
|
|
710
|
+
const shellbarComputerStyle = getComputedStyle(this.getDomRef());
|
|
711
|
+
return this._calculateCSSREMValue(shellbarComputerStyle, Icons.d(cssVar)); // px
|
|
712
|
+
}
|
|
713
|
+
onBeforeRendering() {
|
|
714
|
+
this.withLogo = this.hasLogo;
|
|
715
|
+
this._hiddenIcons = this._itemsInfo.filter(info => {
|
|
716
|
+
const isHidden = (info.classes.indexOf("ui5-shellbar-hidden-button") !== -1);
|
|
717
|
+
const isSet = info.classes.indexOf("ui5-shellbar-invisible-button") === -1;
|
|
718
|
+
const isOverflowIcon = info.classes.indexOf("ui5-shellbar-overflow-button") !== -1;
|
|
719
|
+
const isImageIcon = info.classes.indexOf("ui5-shellbar-image-button") !== -1;
|
|
720
|
+
const shouldStayOnScreen = isOverflowIcon || (isImageIcon && this.hasProfile);
|
|
721
|
+
return isHidden && isSet && !shouldStayOnScreen;
|
|
722
|
+
});
|
|
723
|
+
this._observeContentItems();
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Defines, if the Search Field would be displayed when there is a valid `searchField` slot.
|
|
727
|
+
*
|
|
728
|
+
* **Note:** By default the Search Field is not displayed.
|
|
729
|
+
* @default false
|
|
730
|
+
* @public
|
|
731
|
+
*/
|
|
732
|
+
set showSearchField(value) {
|
|
733
|
+
if (isSelfCollapsibleSearch(this.search)) {
|
|
734
|
+
this.search.collapsed = !value;
|
|
735
|
+
}
|
|
736
|
+
this._showSearchField = value;
|
|
737
|
+
}
|
|
738
|
+
get showSearchField() {
|
|
739
|
+
if (isSelfCollapsibleSearch(this.search)) {
|
|
740
|
+
return !this.search.collapsed;
|
|
741
|
+
}
|
|
742
|
+
return this._showSearchField;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Use this method to change the state of the search filed according to internal logic.
|
|
746
|
+
* An event is fired to notify the change.
|
|
747
|
+
*/
|
|
748
|
+
async setSearchState(expanded) {
|
|
749
|
+
this.showSearchField = expanded;
|
|
750
|
+
await Icons.f$3();
|
|
751
|
+
this.fireDecoratorEvent("search-field-toggle", { expanded });
|
|
752
|
+
}
|
|
753
|
+
onAfterRendering() {
|
|
754
|
+
this._lastOffsetWidth = this.offsetWidth;
|
|
755
|
+
this._overflowActions();
|
|
756
|
+
this.onInitialRendering();
|
|
757
|
+
}
|
|
758
|
+
async onInitialRendering() {
|
|
759
|
+
if (this._isInitialRendering) {
|
|
760
|
+
await Icons.f$3();
|
|
761
|
+
if (this.autoSearchField) {
|
|
762
|
+
this._updateSearchFieldState();
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
this._isInitialRendering = false;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Closes the overflow area.
|
|
769
|
+
* Useful to manually close the overflow after having suppressed automatic closing with preventDefault() of ShellbarItem's press event
|
|
770
|
+
* @public
|
|
771
|
+
*/
|
|
772
|
+
closeOverflow() {
|
|
773
|
+
if (this.overflowPopover) {
|
|
774
|
+
this.overflowPopover.open = false;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
_handleBarBreakpoints() {
|
|
778
|
+
const width = this.getBoundingClientRect().width;
|
|
779
|
+
const breakpoints = ShellBar_1.FIORI_3_BREAKPOINTS;
|
|
780
|
+
const size = breakpoints.find(bp1 => width <= bp1) || ShellBar_1.FIORI_3_BREAKPOINTS[ShellBar_1.FIORI_3_BREAKPOINTS.length - 1];
|
|
781
|
+
const mappedSize = ShellBar_1.FIORI_3_BREAKPOINTS_MAP[size];
|
|
782
|
+
if (this.breakpointSize !== mappedSize) {
|
|
783
|
+
this.breakpointSize = mappedSize;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
_hideItems(items) {
|
|
787
|
+
items.forEach(item => {
|
|
788
|
+
if (item.classes.indexOf("ui5-shellbar-no-overflow-button") === -1) {
|
|
789
|
+
item.classes = `${item.classes} ui5-shellbar-hidden-button`;
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
return items;
|
|
793
|
+
}
|
|
794
|
+
_resetItemsVisibility(items) {
|
|
795
|
+
items.forEach(item => {
|
|
796
|
+
item.classList.remove("ui5-shellbar-hidden-button");
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
_handleActionsOverflow() {
|
|
800
|
+
const inner = this.overflowInner;
|
|
801
|
+
const wrapper = this.overflowWrapper;
|
|
802
|
+
const hidableDomElements = this.hidableDomElements;
|
|
803
|
+
const hiddenItems = [];
|
|
804
|
+
let lastHiddenIndex = 0;
|
|
805
|
+
this._resetItemsVisibility(hidableDomElements);
|
|
806
|
+
for (let i = 0; i < hidableDomElements.length; i++) {
|
|
807
|
+
if (inner?.offsetWidth === wrapper?.offsetWidth) {
|
|
808
|
+
lastHiddenIndex = i;
|
|
809
|
+
break;
|
|
810
|
+
}
|
|
811
|
+
const item = hidableDomElements[i];
|
|
812
|
+
hiddenItems.push(item.id);
|
|
813
|
+
item.classList.add("ui5-shellbar-hidden-button");
|
|
814
|
+
}
|
|
815
|
+
if (hiddenItems.length === 1 && !this.showSearchField) {
|
|
816
|
+
const nextItemToHide = hidableDomElements[++lastHiddenIndex];
|
|
817
|
+
if (nextItemToHide) {
|
|
818
|
+
hiddenItems.push(nextItemToHide.id);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
const itemsInfo = this._getItemsInfo().filter(item => item.show && item.classes.indexOf("ui5-shellbar-no-overflow-button") === -1);
|
|
822
|
+
const contentInfo = this._getContentInfo().sort((a, b) => a.hideOrder - b.hideOrder);
|
|
823
|
+
const itemsToHide = [...itemsInfo, ...contentInfo].filter(item => hiddenItems.includes(item.id));
|
|
824
|
+
this._hideItems(itemsToHide);
|
|
825
|
+
return { itemsInfo, contentInfo };
|
|
826
|
+
}
|
|
827
|
+
_overflowActions() {
|
|
828
|
+
this._handleBarBreakpoints();
|
|
829
|
+
const { itemsInfo, contentInfo } = this._handleActionsOverflow();
|
|
830
|
+
this._updateItemsInfo(itemsInfo);
|
|
831
|
+
this._updateContentInfo(contentInfo);
|
|
832
|
+
this._updateOverflowNotifications();
|
|
833
|
+
this.showFullWidthSearch = this.overflowed && this.showSearchField;
|
|
834
|
+
}
|
|
835
|
+
_toggleActionPopover() {
|
|
836
|
+
const overflowButton = this.shadowRoot.querySelector(".ui5-shellbar-overflow-button");
|
|
837
|
+
const overflowPopover = this._getOverflowPopover();
|
|
838
|
+
overflowPopover.opener = overflowButton;
|
|
839
|
+
overflowPopover.open = true;
|
|
840
|
+
}
|
|
841
|
+
onEnterDOM() {
|
|
842
|
+
webcomponentsBase.f.register(this, this._handleResize);
|
|
843
|
+
if (Icons.f$1()) {
|
|
844
|
+
this.setAttribute("desktop", "");
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
onExitDOM() {
|
|
848
|
+
this.contentItemsObserver.disconnect();
|
|
849
|
+
this._observableContent = [];
|
|
850
|
+
webcomponentsBase.f.deregister(this, this._handleResize);
|
|
851
|
+
}
|
|
852
|
+
_handleSearchIconPress() {
|
|
853
|
+
const searchButtonRef = this.shadowRoot.querySelector(".ui5-shellbar-search-button");
|
|
854
|
+
const defaultPrevented = !this.fireDecoratorEvent("search-button-click", {
|
|
855
|
+
targetRef: searchButtonRef,
|
|
856
|
+
searchFieldVisible: this.showSearchField,
|
|
857
|
+
});
|
|
858
|
+
if (defaultPrevented) {
|
|
859
|
+
return;
|
|
860
|
+
}
|
|
861
|
+
this.setSearchState(!this.showSearchField);
|
|
862
|
+
if (!this.showSearchField) {
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
const input = this.searchField[0];
|
|
866
|
+
// update the state immediately
|
|
867
|
+
if (input) {
|
|
868
|
+
input.focused = true;
|
|
869
|
+
}
|
|
870
|
+
// move the focus later
|
|
871
|
+
setTimeout(() => {
|
|
872
|
+
if (input) {
|
|
873
|
+
input.focus();
|
|
874
|
+
}
|
|
875
|
+
}, 100);
|
|
876
|
+
}
|
|
877
|
+
async _handleActionListClick() {
|
|
878
|
+
if (!this._defaultItemPressPrevented) {
|
|
879
|
+
this.closeOverflow();
|
|
880
|
+
// wait for DOM to be updated when ui5-popover is closed, otherwise if Enter key is hold
|
|
881
|
+
// there will be no visual indication that this has happened
|
|
882
|
+
await Icons.f$3();
|
|
883
|
+
}
|
|
884
|
+
this._defaultItemPressPrevented = false;
|
|
885
|
+
}
|
|
886
|
+
_handleCustomActionPress(e) {
|
|
887
|
+
const target = e.target;
|
|
888
|
+
const refItemId = target.getAttribute("data-ui5-external-action-item-id");
|
|
889
|
+
if (refItemId) {
|
|
890
|
+
const shellbarItem = this.items.find(item => {
|
|
891
|
+
return item._id === refItemId;
|
|
892
|
+
});
|
|
893
|
+
const prevented = shellbarItem.fireClickEvent(e);
|
|
894
|
+
this._defaultItemPressPrevented = prevented;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
_handleOverflowPress() {
|
|
898
|
+
this._toggleActionPopover();
|
|
899
|
+
}
|
|
900
|
+
_handleNotificationsPress(e) {
|
|
901
|
+
const notificationIconRef = this.shadowRoot.querySelector(".ui5-shellbar-bell-button"), target = e.target;
|
|
902
|
+
this._defaultItemPressPrevented = !this.fireDecoratorEvent("notifications-click", {
|
|
903
|
+
targetRef: notificationIconRef.classList.contains("ui5-shellbar-hidden-button") ? target : notificationIconRef,
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
_handleProfilePress() {
|
|
907
|
+
this.fireDecoratorEvent("profile-click", {
|
|
908
|
+
targetRef: this.shadowRoot.querySelector(".ui5-shellbar-image-button"),
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
_handleCancelButtonPress() {
|
|
912
|
+
this.showFullWidthSearch = false;
|
|
913
|
+
this.setSearchState(false);
|
|
914
|
+
}
|
|
915
|
+
_handleProductSwitchPress(e) {
|
|
916
|
+
const buttonRef = this.shadowRoot.querySelector(".ui5-shellbar-button-product-switch"), target = e.target;
|
|
917
|
+
this._defaultItemPressPrevented = !this.fireDecoratorEvent("product-switch-click", {
|
|
918
|
+
targetRef: buttonRef.classList.contains("ui5-shellbar-hidden-button") ? target : buttonRef,
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Returns the `logo` DOM ref.
|
|
923
|
+
* @public
|
|
924
|
+
* @default null
|
|
925
|
+
* @since 1.0.0-rc.16
|
|
926
|
+
*/
|
|
927
|
+
get logoDomRef() {
|
|
928
|
+
return this.shadowRoot.querySelector(`*[data-ui5-stable="logo"]`);
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Returns the `notifications` icon DOM ref.
|
|
932
|
+
* @public
|
|
933
|
+
* @default null
|
|
934
|
+
* @since 1.0.0-rc.16
|
|
935
|
+
*/
|
|
936
|
+
get notificationsDomRef() {
|
|
937
|
+
return this.shadowRoot.querySelector(`*[data-ui5-stable="notifications"]`);
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Returns the `overflow` icon DOM ref.
|
|
941
|
+
* @public
|
|
942
|
+
* @default null
|
|
943
|
+
* @since 1.0.0-rc.16
|
|
944
|
+
*/
|
|
945
|
+
get overflowDomRef() {
|
|
946
|
+
return this.shadowRoot.querySelector(`*[data-ui5-stable="overflow"]`);
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Returns the `profile` icon DOM ref.
|
|
950
|
+
* @public
|
|
951
|
+
* @default null
|
|
952
|
+
* @since 1.0.0-rc.16
|
|
953
|
+
*/
|
|
954
|
+
get profileDomRef() {
|
|
955
|
+
return this.shadowRoot.querySelector(`*[data-ui5-stable="profile"]`);
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Returns the `product-switch` icon DOM ref.
|
|
959
|
+
* @public
|
|
960
|
+
* @default null
|
|
961
|
+
* @since 1.0.0-rc.16
|
|
962
|
+
*/
|
|
963
|
+
get productSwitchDomRef() {
|
|
964
|
+
return this.shadowRoot.querySelector(`*[data-ui5-stable="product-switch"]`);
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Returns the `search` icon DOM ref.
|
|
968
|
+
* @returns The search icon DOM ref
|
|
969
|
+
* @public
|
|
970
|
+
* @since 2.10.0
|
|
971
|
+
*/
|
|
972
|
+
async getSearchButtonDomRef() {
|
|
973
|
+
await Icons.f$3();
|
|
974
|
+
return this.shadowRoot.querySelector(`*[data-ui5-stable="toggle-search"]`);
|
|
975
|
+
}
|
|
976
|
+
_getContentInfo() {
|
|
977
|
+
return [
|
|
978
|
+
...this.contentItemsSorted.map(item => {
|
|
979
|
+
return {
|
|
980
|
+
hideOrder: parseInt(item.getAttribute("data-hide-order") || "0"),
|
|
981
|
+
id: item.slot,
|
|
982
|
+
classes: "ui5-shellbar-content-item",
|
|
983
|
+
show: false,
|
|
984
|
+
};
|
|
985
|
+
}),
|
|
986
|
+
];
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Returns all items that will be placed in the right of the bar as icons / dom elements.
|
|
990
|
+
*/
|
|
991
|
+
_getItemsInfo() {
|
|
992
|
+
const items = [
|
|
993
|
+
{
|
|
994
|
+
icon: search,
|
|
995
|
+
text: this._searchText,
|
|
996
|
+
classes: `${this.searchField.length ? "" : "ui5-shellbar-invisible-button"} ui5-shellbar-search-button ui5-shellbar-button`,
|
|
997
|
+
id: `${this._id}-item-${1}`,
|
|
998
|
+
press: this._handleSearchIconPress.bind(this),
|
|
999
|
+
show: !!this.searchField.length,
|
|
1000
|
+
tooltip: this._searchText,
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
icon: da,
|
|
1004
|
+
text: "Assistant",
|
|
1005
|
+
classes: `${this.assistant.length ? "" : "ui5-shellbar-invisible-button"} ui5-shellbar-assistant-button`,
|
|
1006
|
+
id: `${this._id}-assistant`,
|
|
1007
|
+
show: !!this.assistant.length,
|
|
1008
|
+
press: () => { },
|
|
1009
|
+
tooltip: this.assistant.length ? (this.assistant[0].getAttribute("text") || this.assistant[0].getAttribute("title") || undefined) : undefined,
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
icon: bell,
|
|
1013
|
+
title: this._notificationsText,
|
|
1014
|
+
text: ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_NOTIFICATIONS_NO_COUNT),
|
|
1015
|
+
count: this.notificationsCount,
|
|
1016
|
+
classes: `${this.showNotifications ? "" : "ui5-shellbar-invisible-button"} ui5-shellbar-bell-button ui5-shellbar-button`,
|
|
1017
|
+
id: `${this._id}-item-${2}`,
|
|
1018
|
+
show: this.showNotifications,
|
|
1019
|
+
press: this._handleNotificationsPress.bind(this),
|
|
1020
|
+
tooltip: this._notificationsText,
|
|
1021
|
+
},
|
|
1022
|
+
// sort feedback and help to always be last
|
|
1023
|
+
...this.items.sort((a, b) => {
|
|
1024
|
+
const aIndex = PREDEFINED_PLACE_ACTIONS.indexOf(a.icon || "");
|
|
1025
|
+
const bIndex = PREDEFINED_PLACE_ACTIONS.indexOf(b.icon || "");
|
|
1026
|
+
return aIndex - bIndex;
|
|
1027
|
+
}).map((item) => {
|
|
1028
|
+
item._getRealDomRef = () => this.getDomRef().querySelector(`*[data-ui5-stable=${item.stableDomRef}]`);
|
|
1029
|
+
// check if included for lean mode
|
|
1030
|
+
const show = !!item.icon || false;
|
|
1031
|
+
return {
|
|
1032
|
+
icon: item.icon,
|
|
1033
|
+
id: item._id,
|
|
1034
|
+
count: item.count || undefined,
|
|
1035
|
+
refItemid: item._id,
|
|
1036
|
+
text: item.text,
|
|
1037
|
+
classes: "ui5-shellbar-custom-item ui5-shellbar-button",
|
|
1038
|
+
show,
|
|
1039
|
+
press: this._handleCustomActionPress.bind(this),
|
|
1040
|
+
custom: true,
|
|
1041
|
+
title: item.title,
|
|
1042
|
+
stableDomRef: item.stableDomRef,
|
|
1043
|
+
tooltip: item.title || item.text,
|
|
1044
|
+
accessibilityAttributes: item.accessibilityAttributes,
|
|
1045
|
+
accessibleName: item.count ? `${item.title || item.text}, ${item.count}` : (item.title || item.text),
|
|
1046
|
+
};
|
|
1047
|
+
}),
|
|
1048
|
+
{
|
|
1049
|
+
icon: overflow.overflow,
|
|
1050
|
+
text: "Overflow",
|
|
1051
|
+
classes: "ui5-shellbar-hidden-button ui5-shellbar-no-overflow-button ui5-shellbar-overflow-button ui5-shellbar-button",
|
|
1052
|
+
id: `${this.id}-item-${5}`,
|
|
1053
|
+
press: this._handleOverflowPress.bind(this),
|
|
1054
|
+
show: true,
|
|
1055
|
+
tooltip: this._overflowText,
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
text: "Person",
|
|
1059
|
+
classes: `${this.hasProfile ? "" : "ui5-shellbar-invisible-button"} ui5-shellbar-no-overflow-button ui5-shellbar-image-button ui5-shellbar-button`,
|
|
1060
|
+
profile: true,
|
|
1061
|
+
id: `${this._id}-item-${3}`,
|
|
1062
|
+
show: this.hasProfile,
|
|
1063
|
+
press: this._handleProfilePress.bind(this),
|
|
1064
|
+
tooltip: this._profileText,
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
icon: grid,
|
|
1068
|
+
text: this._productsText,
|
|
1069
|
+
classes: `${this.showProductSwitch ? "" : "ui5-shellbar-invisible-button"} ui5-shellbar-no-overflow-button ui5-shellbar-button ui5-shellbar-image-button ui5-shellbar-button-product-switch`,
|
|
1070
|
+
id: `${this._id}-item-${4}`,
|
|
1071
|
+
show: this.showProductSwitch,
|
|
1072
|
+
press: this._handleProductSwitchPress.bind(this),
|
|
1073
|
+
tooltip: this._productsText,
|
|
1074
|
+
},
|
|
1075
|
+
];
|
|
1076
|
+
return items;
|
|
1077
|
+
}
|
|
1078
|
+
_updateItemsInfo(newItemsInfo) {
|
|
1079
|
+
const isDifferent = JSON.stringify(this._itemsInfo) !== JSON.stringify(newItemsInfo);
|
|
1080
|
+
if (isDifferent) {
|
|
1081
|
+
this._itemsInfo = newItemsInfo;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
_updateContentInfo(newContentInfo) {
|
|
1085
|
+
const isDifferent = JSON.stringify(this._contentInfo) !== JSON.stringify(newContentInfo);
|
|
1086
|
+
if (isDifferent) {
|
|
1087
|
+
this._contentInfo = newContentInfo;
|
|
1088
|
+
this._fireContentItemVisibilityChangeEvent();
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
_fireContentItemVisibilityChangeEvent() {
|
|
1092
|
+
const hiddenByClass = this._contentInfo
|
|
1093
|
+
.filter(item => item.classes.indexOf("ui5-shellbar-hidden-button") !== -1)
|
|
1094
|
+
.map(item => item.id);
|
|
1095
|
+
this.fireDecoratorEvent("content-item-visibility-change", {
|
|
1096
|
+
items: this.contentItems.filter(item => hiddenByClass.includes(item.slot)),
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
_updateOverflowNotifications() {
|
|
1100
|
+
const notificationsArr = [];
|
|
1101
|
+
let overflowNotifications = null;
|
|
1102
|
+
this._itemsInfo.forEach(item => {
|
|
1103
|
+
if (item.count && this.isIconHidden(item.icon)) {
|
|
1104
|
+
notificationsArr.push(item.count);
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
if (notificationsArr.length === 1) {
|
|
1108
|
+
overflowNotifications = notificationsArr[0];
|
|
1109
|
+
}
|
|
1110
|
+
else if (notificationsArr.length > 1) {
|
|
1111
|
+
overflowNotifications = " ";
|
|
1112
|
+
}
|
|
1113
|
+
this._overflowNotifications = overflowNotifications;
|
|
1114
|
+
}
|
|
1115
|
+
_observeContentItems() {
|
|
1116
|
+
if (this.hasMatchingContent) {
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
1119
|
+
this.contentItems.forEach(item => {
|
|
1120
|
+
if (!this._observableContent.includes(item)) {
|
|
1121
|
+
this.contentItemsObserver.observe(item, {
|
|
1122
|
+
characterData: false,
|
|
1123
|
+
childList: false,
|
|
1124
|
+
subtree: false,
|
|
1125
|
+
attributes: true,
|
|
1126
|
+
attributeFilter: ["data-hide-order"],
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
this._observableContent = this.contentItems;
|
|
1131
|
+
}
|
|
1132
|
+
_getOverflowPopover() {
|
|
1133
|
+
return this.shadowRoot.querySelector(".ui5-shellbar-overflow-popover");
|
|
1134
|
+
}
|
|
1135
|
+
_getMenuPopover() {
|
|
1136
|
+
return this.shadowRoot.querySelector(".ui5-shellbar-menu-popover");
|
|
1137
|
+
}
|
|
1138
|
+
isIconHidden(name) {
|
|
1139
|
+
const itemInfo = this._itemsInfo.find(item => item.icon === name);
|
|
1140
|
+
if (!itemInfo) {
|
|
1141
|
+
return false;
|
|
1142
|
+
}
|
|
1143
|
+
return itemInfo.classes.indexOf("ui5-shellbar-hidden-button") !== -1;
|
|
1144
|
+
}
|
|
1145
|
+
get hasMatchingContent() {
|
|
1146
|
+
if (this._observableContent.length !== this.contentItems.length) {
|
|
1147
|
+
return false;
|
|
1148
|
+
}
|
|
1149
|
+
const observableContentSet = new WeakSet(this._observableContent);
|
|
1150
|
+
return this.contentItems.every(item => observableContentSet.has(item));
|
|
1151
|
+
}
|
|
1152
|
+
get contentItemsSorted() {
|
|
1153
|
+
return this.contentItems.toReversed().sort((a, b) => {
|
|
1154
|
+
return parseInt(a.getAttribute("data-hide-order") || "0") - parseInt(b.getAttribute("data-hide-order") || "0");
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
get contentItemsWrappersSorted() {
|
|
1158
|
+
return this.contentItemsSorted.map(item => this.shadowRoot.querySelector(`#${item.slot}`)).filter(item => item !== null);
|
|
1159
|
+
}
|
|
1160
|
+
get autoSearchField() {
|
|
1161
|
+
const onFocus = document.activeElement === this.searchField[0];
|
|
1162
|
+
const hasValue = this.searchField[0]?.value?.length > 0;
|
|
1163
|
+
const disableAutoSearchField = this.disableAutoSearchField || onFocus || hasValue;
|
|
1164
|
+
if (disableAutoSearchField) {
|
|
1165
|
+
return false;
|
|
1166
|
+
}
|
|
1167
|
+
return this.showSearchField || this._autoRestoreSearchField;
|
|
1168
|
+
}
|
|
1169
|
+
get startContentInfoSorted() {
|
|
1170
|
+
return this._contentInfo
|
|
1171
|
+
.filter(item => this.startContent.find(contentItem => contentItem.slot === item.id))
|
|
1172
|
+
.sort((a, b) => a.hideOrder - b.hideOrder);
|
|
1173
|
+
}
|
|
1174
|
+
get endContentInfoSorted() {
|
|
1175
|
+
return this._contentInfo
|
|
1176
|
+
.filter(item => this.endContent.find(contentItem => contentItem.slot === item.id))
|
|
1177
|
+
.sort((a, b) => a.hideOrder - b.hideOrder);
|
|
1178
|
+
}
|
|
1179
|
+
get showStartSeparator() {
|
|
1180
|
+
return this.startContentInfoSorted.some(item => !item.classes.includes("ui5-shellbar-hidden-button"));
|
|
1181
|
+
}
|
|
1182
|
+
get showEndSeparator() {
|
|
1183
|
+
return this.endContentInfoSorted.some(item => !item.classes.includes("ui5-shellbar-hidden-button"));
|
|
1184
|
+
}
|
|
1185
|
+
shouldIncludeSeparator(itemInfo, contentInfo) {
|
|
1186
|
+
// once the last item from the start/end content was hidden, the
|
|
1187
|
+
// separator is "packed" with it in order to account for any next measurements
|
|
1188
|
+
if (!itemInfo) {
|
|
1189
|
+
return false;
|
|
1190
|
+
}
|
|
1191
|
+
const lastVisibleItem = contentInfo.at(-1);
|
|
1192
|
+
return lastVisibleItem?.id === itemInfo.id && itemInfo.classes.indexOf("ui5-shellbar-hidden-button") > -1;
|
|
1193
|
+
}
|
|
1194
|
+
get classes() {
|
|
1195
|
+
return {
|
|
1196
|
+
wrapper: {
|
|
1197
|
+
"ui5-shellbar-root": true,
|
|
1198
|
+
"ui5-shellbar-with-searchfield": this.hasSearchField,
|
|
1199
|
+
},
|
|
1200
|
+
button: {
|
|
1201
|
+
"ui5-shellbar-menu-button--interactive": this.hasMenuItems,
|
|
1202
|
+
},
|
|
1203
|
+
notification: {
|
|
1204
|
+
"ui5-shellbar-hidden-button": this.isIconHidden("bell"),
|
|
1205
|
+
},
|
|
1206
|
+
search: {
|
|
1207
|
+
"ui5-shellbar-hidden-button": this.isIconHidden("search"),
|
|
1208
|
+
"ui5-shellbar-search-toggle": true,
|
|
1209
|
+
},
|
|
1210
|
+
overflow: {
|
|
1211
|
+
"ui5-shellbar-hidden-button": this._hiddenIcons.length === 0,
|
|
1212
|
+
},
|
|
1213
|
+
assistant: {
|
|
1214
|
+
"ui5-shellbar-hidden-button": this.isIconHidden("assistant"),
|
|
1215
|
+
"ui5-shellbar-assistant-button": true,
|
|
1216
|
+
},
|
|
1217
|
+
searchField: {
|
|
1218
|
+
"ui5-shellbar-search-field": this.showSearchField,
|
|
1219
|
+
"ui5-shellbar-search-toggle": isSelfCollapsibleSearch(this.search),
|
|
1220
|
+
"ui5-shellbar-hidden-button": !this.showSearchField,
|
|
1221
|
+
},
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
get styles() {
|
|
1225
|
+
const styles = {
|
|
1226
|
+
"display": this.showSearchField ? "flex" : "none",
|
|
1227
|
+
};
|
|
1228
|
+
return {
|
|
1229
|
+
searchField: isSelfCollapsibleSearch(this.search) ? {} : styles,
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
get customItemsInfo() {
|
|
1233
|
+
return this._itemsInfo.filter(itemInfo => !!itemInfo.custom);
|
|
1234
|
+
}
|
|
1235
|
+
get hasLogo() {
|
|
1236
|
+
return !!this.logo.length;
|
|
1237
|
+
}
|
|
1238
|
+
get showLogoInMenuButton() {
|
|
1239
|
+
return this.hasLogo && (this.breakpointSize === "S");
|
|
1240
|
+
}
|
|
1241
|
+
get showTitleInMenuButton() {
|
|
1242
|
+
return this.primaryTitle && !(this.showLogoInMenuButton);
|
|
1243
|
+
}
|
|
1244
|
+
get showMenuButton() {
|
|
1245
|
+
return this.primaryTitle || this.showLogoInMenuButton;
|
|
1246
|
+
}
|
|
1247
|
+
get popoverHorizontalAlign() {
|
|
1248
|
+
return this.effectiveDir === "rtl" ? "Start" : "End";
|
|
1249
|
+
}
|
|
1250
|
+
get hasAssistant() {
|
|
1251
|
+
return !!this.assistant.length;
|
|
1252
|
+
}
|
|
1253
|
+
get hasSearchField() {
|
|
1254
|
+
return !!this.searchField.length;
|
|
1255
|
+
}
|
|
1256
|
+
get hasMidContent() {
|
|
1257
|
+
return !!this.midContent.length;
|
|
1258
|
+
}
|
|
1259
|
+
get hasProfile() {
|
|
1260
|
+
return !!this.profile.length;
|
|
1261
|
+
}
|
|
1262
|
+
get hasMenuItems() {
|
|
1263
|
+
return this.menuItems.length > 0;
|
|
1264
|
+
}
|
|
1265
|
+
get imageBtnText() {
|
|
1266
|
+
return toLowercaseEnumValue.A(this);
|
|
1267
|
+
}
|
|
1268
|
+
get _shellbarText() {
|
|
1269
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_LABEL);
|
|
1270
|
+
}
|
|
1271
|
+
get _logoText() {
|
|
1272
|
+
return this.accessibilityAttributes.logo?.name || ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_LOGO);
|
|
1273
|
+
}
|
|
1274
|
+
get _notificationsText() {
|
|
1275
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_NOTIFICATIONS, this.notificationsCount || 0);
|
|
1276
|
+
}
|
|
1277
|
+
get _cancelBtnText() {
|
|
1278
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_CANCEL);
|
|
1279
|
+
}
|
|
1280
|
+
get _logoAreaText() {
|
|
1281
|
+
const primaryTitle = this.primaryTitle ?? "";
|
|
1282
|
+
const secondaryTitle = this.secondaryTitle ?? "";
|
|
1283
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_LOGO_AREA, primaryTitle, secondaryTitle);
|
|
1284
|
+
}
|
|
1285
|
+
get _contentItemsText() {
|
|
1286
|
+
return this._enableContentAreaAccessibility ? ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_ADDITIONAL_CONTEXT) : undefined;
|
|
1287
|
+
}
|
|
1288
|
+
get _searchFieldDescription() {
|
|
1289
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_SEARCHFIELD_DESCRIPTION);
|
|
1290
|
+
}
|
|
1291
|
+
get _contentItemsRole() {
|
|
1292
|
+
if (this._enableContentAreaAccessibility) {
|
|
1293
|
+
return "group";
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
get _enableContentAreaAccessibility() {
|
|
1297
|
+
return this.contentItems.length > 1;
|
|
1298
|
+
}
|
|
1299
|
+
get contentItems() {
|
|
1300
|
+
return [...this.startContent, ...this.endContent];
|
|
1301
|
+
}
|
|
1302
|
+
get startContent() {
|
|
1303
|
+
// all items before the first spacer
|
|
1304
|
+
const spacerIndex = this.content.findIndex(child => child.hasAttribute("ui5-shellbar-spacer"));
|
|
1305
|
+
if (spacerIndex === -1) {
|
|
1306
|
+
return this.content;
|
|
1307
|
+
}
|
|
1308
|
+
return this.content.slice(0, spacerIndex);
|
|
1309
|
+
}
|
|
1310
|
+
get endContent() {
|
|
1311
|
+
// all items after the first spacer
|
|
1312
|
+
const spacerIndex = this.content.findIndex(child => child.hasAttribute("ui5-shellbar-spacer"));
|
|
1313
|
+
if (spacerIndex === -1) {
|
|
1314
|
+
return [];
|
|
1315
|
+
}
|
|
1316
|
+
return this.content.slice(spacerIndex + 1);
|
|
1317
|
+
}
|
|
1318
|
+
get _rightChildRole() {
|
|
1319
|
+
const items = this._getRightChildItems();
|
|
1320
|
+
const visibleItems = items.filter(item => {
|
|
1321
|
+
return this._isVisible(item);
|
|
1322
|
+
});
|
|
1323
|
+
if (visibleItems.length === 1) {
|
|
1324
|
+
return;
|
|
1325
|
+
}
|
|
1326
|
+
return "toolbar";
|
|
1327
|
+
}
|
|
1328
|
+
get _searchFieldText() {
|
|
1329
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_SEARCH_FIELD);
|
|
1330
|
+
}
|
|
1331
|
+
get _searchBtnOpen() {
|
|
1332
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_SEARCH_BTN_OPEN);
|
|
1333
|
+
}
|
|
1334
|
+
get _productSwitchBtnText() {
|
|
1335
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_PRODUCT_SWITCH_BTN);
|
|
1336
|
+
}
|
|
1337
|
+
get _profileText() {
|
|
1338
|
+
return this.accessibilityAttributes.profile?.name || ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_PROFILE);
|
|
1339
|
+
}
|
|
1340
|
+
get _productsText() {
|
|
1341
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_PRODUCTS);
|
|
1342
|
+
}
|
|
1343
|
+
get _searchText() {
|
|
1344
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_SEARCH);
|
|
1345
|
+
}
|
|
1346
|
+
get _overflowText() {
|
|
1347
|
+
return ShellBar_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_OVERFLOW);
|
|
1348
|
+
}
|
|
1349
|
+
get _brandingText() {
|
|
1350
|
+
return this.accessibilityAttributes.branding?.name || this.primaryTitle;
|
|
1351
|
+
}
|
|
1352
|
+
get hasContentItems() {
|
|
1353
|
+
return this.contentItems.length > 0;
|
|
1354
|
+
}
|
|
1355
|
+
get hidableDomElements() {
|
|
1356
|
+
const items = Array.from(this.shadowRoot.querySelectorAll(".ui5-shellbar-button:not(.ui5-shellbar-search-button):not(.ui5-shellbar-overflow-button):not(.ui5-shellbar-cancel-button):not(.ui5-shellbar-no-overflow-button)"));
|
|
1357
|
+
const assistant = this.shadowRoot.querySelector(".ui5-shellbar-assistant-button");
|
|
1358
|
+
const searchToggle = this.shadowRoot.querySelector(".ui5-shellbar-search-toggle");
|
|
1359
|
+
const contentItems = this.contentItemsWrappersSorted;
|
|
1360
|
+
const firstContentItem = contentItems.pop();
|
|
1361
|
+
const prioritizeContent = this.showSearchField && this.hasSearchField;
|
|
1362
|
+
// order here is important for the responsive behavior, the items will be
|
|
1363
|
+
// measured and hidden in the order they are returned until no overlap is detected
|
|
1364
|
+
let itemsToHide = [];
|
|
1365
|
+
if (prioritizeContent) {
|
|
1366
|
+
// search field was toggled, the content items should make space for it
|
|
1367
|
+
const overflowItems = [...items, assistant];
|
|
1368
|
+
const visibleItems = overflowItems.filter(item => item && !item.classList.contains("ui5-shellbar-hidden-button"));
|
|
1369
|
+
const hiddenItems = overflowItems.filter(item => item && item.classList.contains("ui5-shellbar-hidden-button"));
|
|
1370
|
+
itemsToHide = [
|
|
1371
|
+
...hiddenItems,
|
|
1372
|
+
...contentItems,
|
|
1373
|
+
firstContentItem,
|
|
1374
|
+
...visibleItems,
|
|
1375
|
+
];
|
|
1376
|
+
}
|
|
1377
|
+
else {
|
|
1378
|
+
// search field is close, actions should go to the overflow first
|
|
1379
|
+
itemsToHide = [
|
|
1380
|
+
...items.toReversed(),
|
|
1381
|
+
assistant,
|
|
1382
|
+
...contentItems,
|
|
1383
|
+
searchToggle,
|
|
1384
|
+
firstContentItem,
|
|
1385
|
+
];
|
|
1386
|
+
}
|
|
1387
|
+
return itemsToHide.filter(Boolean);
|
|
1388
|
+
}
|
|
1389
|
+
get contentItemsHidden() {
|
|
1390
|
+
return this.contentItemsWrappersSorted.filter(item => item.classList.contains("ui5-shellbar-hidden-button"));
|
|
1391
|
+
}
|
|
1392
|
+
get overflowWrapper() {
|
|
1393
|
+
return this.shadowRoot.querySelector(".ui5-shellbar-overflow-container-right");
|
|
1394
|
+
}
|
|
1395
|
+
get overflowInner() {
|
|
1396
|
+
return this.shadowRoot.querySelector(".ui5-shellbar-overflow-container-right-inner");
|
|
1397
|
+
}
|
|
1398
|
+
get overflowed() {
|
|
1399
|
+
const wrapper = this.overflowWrapper;
|
|
1400
|
+
const inner = this.overflowInner;
|
|
1401
|
+
if (!wrapper || !inner) {
|
|
1402
|
+
return false;
|
|
1403
|
+
}
|
|
1404
|
+
return inner.offsetWidth > wrapper.offsetWidth;
|
|
1405
|
+
}
|
|
1406
|
+
get accInfo() {
|
|
1407
|
+
const overflowExpanded = this.accessibilityAttributes.overflow?.expanded;
|
|
1408
|
+
return {
|
|
1409
|
+
notifications: {
|
|
1410
|
+
"title": this._notificationsText,
|
|
1411
|
+
"accessibilityAttributes": {
|
|
1412
|
+
expanded: this.accessibilityAttributes.notifications?.expanded,
|
|
1413
|
+
hasPopup: this.accessibilityAttributes.notifications?.hasPopup,
|
|
1414
|
+
},
|
|
1415
|
+
},
|
|
1416
|
+
profile: {
|
|
1417
|
+
"title": this._profileText,
|
|
1418
|
+
"accessibilityAttributes": {
|
|
1419
|
+
hasPopup: this.accessibilityAttributes.profile?.hasPopup,
|
|
1420
|
+
expanded: this.accessibilityAttributes.profile?.expanded,
|
|
1421
|
+
},
|
|
1422
|
+
},
|
|
1423
|
+
products: {
|
|
1424
|
+
"title": this._productsText,
|
|
1425
|
+
"accessibilityAttributes": {
|
|
1426
|
+
hasPopup: this.accessibilityAttributes.product?.hasPopup,
|
|
1427
|
+
expanded: this.accessibilityAttributes.product?.expanded,
|
|
1428
|
+
},
|
|
1429
|
+
},
|
|
1430
|
+
search: {
|
|
1431
|
+
"title": this._searchText,
|
|
1432
|
+
"accessibilityAttributes": {
|
|
1433
|
+
hasPopup: this.accessibilityAttributes.search?.hasPopup,
|
|
1434
|
+
},
|
|
1435
|
+
},
|
|
1436
|
+
overflow: {
|
|
1437
|
+
"title": this._overflowText,
|
|
1438
|
+
"accessibilityAttributes": {
|
|
1439
|
+
hasPopup: this.accessibilityAttributes.overflow?.hasPopup || "menu",
|
|
1440
|
+
expanded: overflowExpanded === undefined ? this._overflowPopoverExpanded : overflowExpanded,
|
|
1441
|
+
},
|
|
1442
|
+
},
|
|
1443
|
+
branding: {
|
|
1444
|
+
"title": this._brandingText,
|
|
1445
|
+
"accessibilityAttributes": {
|
|
1446
|
+
name: this.accessibilityAttributes.branding?.name,
|
|
1447
|
+
},
|
|
1448
|
+
},
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
get accLogoRole() {
|
|
1452
|
+
return this.accessibilityAttributes.logo?.role || "link";
|
|
1453
|
+
}
|
|
1454
|
+
get isSBreakPoint() {
|
|
1455
|
+
return this.breakpointSize === "S";
|
|
1456
|
+
}
|
|
1457
|
+
get hasSelfCollapsibleSearch() {
|
|
1458
|
+
return isSelfCollapsibleSearch(this.search);
|
|
1459
|
+
}
|
|
1460
|
+
get search() {
|
|
1461
|
+
return this.searchField.length ? this.searchField[0] : null;
|
|
1462
|
+
}
|
|
1463
|
+
};
|
|
1464
|
+
__decorate([
|
|
1465
|
+
webcomponentsBase.s({ type: Boolean })
|
|
1466
|
+
], ShellBar.prototype, "hideSearchButton", void 0);
|
|
1467
|
+
__decorate([
|
|
1468
|
+
webcomponentsBase.s({ type: Boolean })
|
|
1469
|
+
], ShellBar.prototype, "disableAutoSearchField", void 0);
|
|
1470
|
+
__decorate([
|
|
1471
|
+
webcomponentsBase.s()
|
|
1472
|
+
], ShellBar.prototype, "primaryTitle", void 0);
|
|
1473
|
+
__decorate([
|
|
1474
|
+
webcomponentsBase.s()
|
|
1475
|
+
], ShellBar.prototype, "secondaryTitle", void 0);
|
|
1476
|
+
__decorate([
|
|
1477
|
+
webcomponentsBase.s()
|
|
1478
|
+
], ShellBar.prototype, "notificationsCount", void 0);
|
|
1479
|
+
__decorate([
|
|
1480
|
+
webcomponentsBase.s({ type: Boolean })
|
|
1481
|
+
], ShellBar.prototype, "showNotifications", void 0);
|
|
1482
|
+
__decorate([
|
|
1483
|
+
webcomponentsBase.s({ type: Boolean })
|
|
1484
|
+
], ShellBar.prototype, "showProductSwitch", void 0);
|
|
1485
|
+
__decorate([
|
|
1486
|
+
webcomponentsBase.s({ type: Object })
|
|
1487
|
+
], ShellBar.prototype, "accessibilityAttributes", void 0);
|
|
1488
|
+
__decorate([
|
|
1489
|
+
webcomponentsBase.s()
|
|
1490
|
+
], ShellBar.prototype, "breakpointSize", void 0);
|
|
1491
|
+
__decorate([
|
|
1492
|
+
webcomponentsBase.s({ type: Boolean })
|
|
1493
|
+
], ShellBar.prototype, "withLogo", void 0);
|
|
1494
|
+
__decorate([
|
|
1495
|
+
webcomponentsBase.s({ type: Object })
|
|
1496
|
+
], ShellBar.prototype, "_itemsInfo", void 0);
|
|
1497
|
+
__decorate([
|
|
1498
|
+
webcomponentsBase.s({ type: Object })
|
|
1499
|
+
], ShellBar.prototype, "_contentInfo", void 0);
|
|
1500
|
+
__decorate([
|
|
1501
|
+
webcomponentsBase.s({ type: Boolean, noAttribute: true })
|
|
1502
|
+
], ShellBar.prototype, "_menuPopoverExpanded", void 0);
|
|
1503
|
+
__decorate([
|
|
1504
|
+
webcomponentsBase.s({ type: Boolean, noAttribute: true })
|
|
1505
|
+
], ShellBar.prototype, "_overflowPopoverExpanded", void 0);
|
|
1506
|
+
__decorate([
|
|
1507
|
+
webcomponentsBase.s({ type: Boolean, noAttribute: true })
|
|
1508
|
+
], ShellBar.prototype, "showFullWidthSearch", void 0);
|
|
1509
|
+
__decorate([
|
|
1510
|
+
webcomponentsBase.d()
|
|
1511
|
+
], ShellBar.prototype, "assistant", void 0);
|
|
1512
|
+
__decorate([
|
|
1513
|
+
webcomponentsBase.d({ type: HTMLElement, "default": true, invalidateOnChildChange: true })
|
|
1514
|
+
], ShellBar.prototype, "items", void 0);
|
|
1515
|
+
__decorate([
|
|
1516
|
+
webcomponentsBase.d()
|
|
1517
|
+
], ShellBar.prototype, "profile", void 0);
|
|
1518
|
+
__decorate([
|
|
1519
|
+
webcomponentsBase.d()
|
|
1520
|
+
], ShellBar.prototype, "logo", void 0);
|
|
1521
|
+
__decorate([
|
|
1522
|
+
webcomponentsBase.d()
|
|
1523
|
+
], ShellBar.prototype, "menuItems", void 0);
|
|
1524
|
+
__decorate([
|
|
1525
|
+
webcomponentsBase.d({
|
|
1526
|
+
type: HTMLElement,
|
|
1527
|
+
invalidateOnChildChange: true,
|
|
1528
|
+
})
|
|
1529
|
+
], ShellBar.prototype, "searchField", void 0);
|
|
1530
|
+
__decorate([
|
|
1531
|
+
webcomponentsBase.d()
|
|
1532
|
+
], ShellBar.prototype, "startButton", void 0);
|
|
1533
|
+
__decorate([
|
|
1534
|
+
webcomponentsBase.d()
|
|
1535
|
+
], ShellBar.prototype, "midContent", void 0);
|
|
1536
|
+
__decorate([
|
|
1537
|
+
webcomponentsBase.d({ type: HTMLElement, individualSlots: true })
|
|
1538
|
+
], ShellBar.prototype, "content", void 0);
|
|
1539
|
+
__decorate([
|
|
1540
|
+
webcomponentsBase.s({ type: Boolean })
|
|
1541
|
+
], ShellBar.prototype, "showSearchField", null);
|
|
1542
|
+
__decorate([
|
|
1543
|
+
i18nDefaults.i("@ui5/webcomponents-fiori")
|
|
1544
|
+
], ShellBar, "i18nBundle", void 0);
|
|
1545
|
+
ShellBar = ShellBar_1 = __decorate([
|
|
1546
|
+
webcomponentsBase.m({
|
|
1547
|
+
tag: "ui5-shellbar",
|
|
1548
|
+
fastNavigation: true,
|
|
1549
|
+
languageAware: true,
|
|
1550
|
+
renderer: i18nDefaults.d,
|
|
1551
|
+
template: ShellBarTemplate,
|
|
1552
|
+
styles: [shellBarStyles, ShellBarPopoverCss],
|
|
1553
|
+
dependencies: [
|
|
1554
|
+
Button.Button,
|
|
1555
|
+
Icon.Icon,
|
|
1556
|
+
List.List,
|
|
1557
|
+
ListItemTemplate.Popover,
|
|
1558
|
+
ListItemStandard$1,
|
|
1559
|
+
Menu,
|
|
1560
|
+
],
|
|
1561
|
+
})
|
|
1562
|
+
/**
|
|
1563
|
+
*
|
|
1564
|
+
* Fired, when the notification icon is activated.
|
|
1565
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
1566
|
+
* @public
|
|
1567
|
+
*/
|
|
1568
|
+
,
|
|
1569
|
+
eventStrict.l("notifications-click", {
|
|
1570
|
+
cancelable: true,
|
|
1571
|
+
bubbles: true,
|
|
1572
|
+
})
|
|
1573
|
+
/**
|
|
1574
|
+
* Fired, when the profile slot is present.
|
|
1575
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
1576
|
+
* @public
|
|
1577
|
+
*/
|
|
1578
|
+
,
|
|
1579
|
+
eventStrict.l("profile-click", {
|
|
1580
|
+
bubbles: true,
|
|
1581
|
+
})
|
|
1582
|
+
/**
|
|
1583
|
+
* Fired, when the product switch icon is activated.
|
|
1584
|
+
*
|
|
1585
|
+
* **Note:** You can prevent closing of overflow popover by calling `event.preventDefault()`.
|
|
1586
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
1587
|
+
* @public
|
|
1588
|
+
*/
|
|
1589
|
+
,
|
|
1590
|
+
eventStrict.l("product-switch-click", {
|
|
1591
|
+
cancelable: true,
|
|
1592
|
+
bubbles: true,
|
|
1593
|
+
})
|
|
1594
|
+
/**
|
|
1595
|
+
* Fired, when the logo is activated.
|
|
1596
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
1597
|
+
* @since 0.10
|
|
1598
|
+
* @public
|
|
1599
|
+
*/
|
|
1600
|
+
,
|
|
1601
|
+
eventStrict.l("logo-click", {
|
|
1602
|
+
bubbles: true,
|
|
1603
|
+
})
|
|
1604
|
+
/**
|
|
1605
|
+
* Fired, when a menu item is activated
|
|
1606
|
+
*
|
|
1607
|
+
* **Note:** You can prevent closing of overflow popover by calling `event.preventDefault()`.
|
|
1608
|
+
* @param {HTMLElement} item DOM ref of the activated list item
|
|
1609
|
+
* @since 0.10
|
|
1610
|
+
* @public
|
|
1611
|
+
*/
|
|
1612
|
+
,
|
|
1613
|
+
eventStrict.l("menu-item-click", {
|
|
1614
|
+
bubbles: true,
|
|
1615
|
+
cancelable: true,
|
|
1616
|
+
})
|
|
1617
|
+
/**
|
|
1618
|
+
* Fired, when the search button is activated.
|
|
1619
|
+
*
|
|
1620
|
+
* **Note:** You can prevent expanding/collapsing of the search field by calling `event.preventDefault()`.
|
|
1621
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
1622
|
+
* @param {Boolean} searchFieldVisible whether the search field is visible
|
|
1623
|
+
* @public
|
|
1624
|
+
*/
|
|
1625
|
+
,
|
|
1626
|
+
eventStrict.l("search-button-click", {
|
|
1627
|
+
cancelable: true,
|
|
1628
|
+
bubbles: true,
|
|
1629
|
+
})
|
|
1630
|
+
/**
|
|
1631
|
+
* Fired, when the search field is expanded or collapsed.
|
|
1632
|
+
* @since 2.10.0
|
|
1633
|
+
* @param {Boolean} expanded whether the search field is expanded
|
|
1634
|
+
* @public
|
|
1635
|
+
*/
|
|
1636
|
+
,
|
|
1637
|
+
eventStrict.l("search-field-toggle", {
|
|
1638
|
+
bubbles: true,
|
|
1639
|
+
})
|
|
1640
|
+
/**
|
|
1641
|
+
* Fired, when an item from the content slot is hidden or shown.
|
|
1642
|
+
* **Note:** The `content-item-visibility-change` event is in an experimental state and is a subject to change.
|
|
1643
|
+
*
|
|
1644
|
+
* @param {Array<HTMLElement>} array of all the items that are hidden
|
|
1645
|
+
* @public
|
|
1646
|
+
* @since 2.7.0
|
|
1647
|
+
*/
|
|
1648
|
+
,
|
|
1649
|
+
eventStrict.l("content-item-visibility-change", {
|
|
1650
|
+
bubbles: true,
|
|
1651
|
+
})
|
|
1652
|
+
], ShellBar);
|
|
1653
|
+
const isSelfCollapsibleSearch = (searchField) => {
|
|
1654
|
+
if (searchField) {
|
|
1655
|
+
return "collapsed" in searchField;
|
|
1656
|
+
}
|
|
1657
|
+
return false;
|
|
1658
|
+
};
|
|
1659
|
+
ShellBar.define();
|
|
1660
|
+
var ShellBar$1 = ShellBar;
|
|
1661
|
+
|
|
1662
|
+
return ShellBar$1;
|
|
1663
|
+
|
|
1664
|
+
}));
|