@sapui5/sap.ushell 1.135.0 → 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 +1 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +13 -16
- package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +0 -4
- package/src/main/js/sap/ushell/ApplicationType/urlTemplateResolution.js +5 -12
- package/src/main/js/sap/ushell/Container.js +11 -11
- 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 +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegion.view.xml +5 -5
- 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 +25 -25
- 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/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 +1 -1
- 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/appIntegration/AppLifeCycle.js +59 -49
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +57 -11
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerCache.js +2 -8
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerRenderer.js +1 -6
- package/src/main/js/sap/ushell/appIntegration/ApplicationHandle.js +0 -6
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainer.js +27 -4
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainerRenderer.js +8 -6
- package/src/main/js/sap/ushell/appIntegration/KeepAliveApps.js +0 -6
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/AppruntimeHandler.js +1 -7
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ExtensionItems.js +3 -9
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/LifecycleHandler.js +3 -9
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/MessageBrokerHandler.js +0 -4
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/NWBCHandler.js +0 -6
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ServiceHandler.js +6 -12
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +2 -8
- package/src/main/js/sap/ushell/appIntegration/PostMessagePluginInterface.js +2 -8
- package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainer.js +0 -6
- package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainerRenderer.js +3 -8
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +1 -7
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV1Handler.js +0 -6
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +9 -13
- 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 +0 -7
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +17 -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 +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +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 +3 -1
- 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 +2 -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 +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +9 -9
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +5 -5
- 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_ar.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_bg.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ca.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cs.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cy.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_da.properties +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_de.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_el.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_GB.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_es_MX.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_et.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fi.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_fr_CA.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hi.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hr.properties +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_hu.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_id.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_it.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_iw.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ja.properties +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_kk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ko.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lt.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_lv.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_mk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ms.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_nl.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_no.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pl.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_pt_PT.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ro.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_ru.properties +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sh.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sl.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_sv.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_th.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_tr.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_uk.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_vi.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_CN.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_zh_TW.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTreeTable.fragment.xml +0 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +3 -3
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/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 +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +8 -3
- 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/controller/MenuBar.controller.js +4 -0
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +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/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 +19 -14
- 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/ShellBar/Component.js +11 -2
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +123 -21
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
- 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_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 +22 -3
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +5 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +83 -36
- package/src/main/js/sap/ushell/components/shell/SideNavigation/css/style.css +5 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +8 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Favorites.js +137 -26
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Spaces.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/view/Main.view.xml +2 -1
- 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/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 +10 -2
- 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 +4 -10
- package/src/main/js/sap/ushell/renderer/Renderer.js +29 -27
- package/src/main/js/sap/ushell/renderer/RendererAppContainer.js +236 -0
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +25 -212
- package/src/main/js/sap/ushell/renderer/Shell.view.js +34 -24
- 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 +34 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +19 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +19 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +19 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +19 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +21 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +33 -15
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +19 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +19 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +19 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +18 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +18 -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 +2 -8
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsManager.js +6 -6
- package/src/main/js/sap/ushell/services/AppConfiguration.js +6 -6
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +10 -16
- 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 +2 -2
- package/src/main/js/sap/ushell/services/BookmarkV2.js +14 -14
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +6 -6
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +3 -3
- 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 +54 -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 +4 -4
- 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 +3 -2
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/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 +7 -20
- 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 +2 -2
- 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 +1 -7
- package/src/main/js/sap/ushell/state/Favicon.js +1 -5
- package/src/main/js/sap/ushell/state/StateManager.js +9 -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/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/MenuBar.less +3 -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 +5 -0
- package/src/main/js/sap/ushell/themes/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_MenuBar.less +3 -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 +5 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +1 -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 +38 -35
- 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 +2 -350
- 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 +319 -547
- 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 +68 -866
- package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +2 -2
- 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_ar3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +4 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +6 -6
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +11 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +3 -0
- 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/i18n-defaults.js +141 -135
- 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-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/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 +18 -6
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-fiori.js +1 -1
- 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 +1 -1
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +41 -37
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +8 -8
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +16 -16
- 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/AddBookmarkButton.js +5 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +2 -1
- 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 +5 -2
- 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 +249 -249
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +73 -6
- 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/UriParameters.js +1 -0
- package/src/main/js/sap/ushell/utils/UrlShortening.js +3 -3
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +4 -4
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_es_MX.properties +1 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +0 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +0 -24
- package/src/main/js/sap/ushell/components/applicationIntegration/Storage.js +0 -19
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +0 -23
- 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 -24
- 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/renderer/RendererRootViewFallback.fragment.xml +0 -8
- 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 -7194
- package/src/main/js/sap/ushell/ui/AppContainer.js +0 -271
- package/src/main/js/sap/ushell/ui/AppContainerRenderer.js +0 -42
|
@@ -1,831 +1,33 @@
|
|
|
1
|
-
sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdparty/webcomponents', 'sap/ushell/thirdparty/webcomponents-fiori', 'sap/ushell/thirdparty/event-strict', 'sap/ushell/thirdparty/
|
|
2
|
-
|
|
3
|
-
const o=e=>(t,r)=>{Object.defineProperty(t,r,{get(){return this.shadowRoot?.querySelector(e)}});};
|
|
4
|
-
|
|
5
|
-
function AvatarTemplate() {
|
|
6
|
-
return (parametersBundle_css.jsxs("div", { class: "ui5-avatar-root", tabindex: this.tabindex, "data-sap-focus-ref": true, role: this._role, "aria-haspopup": this._ariaHasPopup, "aria-label": this.accessibleNameText, onKeyUp: this._onkeyup, onKeyDown: this._onkeydown, onClick: this._onclick, children: [this.hasImage ?
|
|
7
|
-
parametersBundle_css.jsx("slot", {})
|
|
8
|
-
:
|
|
9
|
-
parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [this.icon && parametersBundle_css.jsx(parametersBundle_css.Icon, { class: "ui5-avatar-icon", name: this.icon, accessibleName: this.accessibleName }), this.initials &&
|
|
10
|
-
parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("span", { class: "ui5-avatar-initials ui5-avatar-initials-hidden", children: this.validInitials }), parametersBundle_css.jsx(parametersBundle_css.Icon, { name: this.fallbackIcon, class: "ui5-avatar-icon ui5-avatar-icon-fallback ui5-avatar-fallback-icon-hidden" })] })] }), parametersBundle_css.jsx("slot", { name: "badge" })] }));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
14
|
-
Icons.p("@ui5/webcomponents", "sap_horizon", async () => parametersBundle_css.defaultTheme$1);
|
|
15
|
-
var AvatarCss = `:host(:not([hidden])){display:inline-block;box-sizing:border-box;position:relative;font-family:"72override",var(--sapFontFamily)}:host(:not([hidden]).ui5_hovered){opacity:.7}:host([interactive]:not([disabled])){cursor:pointer}:host([interactive]:not([hidden]):active){background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([interactive]:not([hidden]):not([disabled]):not(:active):not([focused]):hover){box-shadow:var(--ui5-v2-9-0-avatar-hover-box-shadow-offset)}:host([interactive][desktop]:not([hidden])) .ui5-avatar-root:focus,:host([interactive]:not([hidden])) .ui5-avatar-root:focus-visible{outline:var(--_ui5-v2-9-0_avatar_outline);outline-offset:var(--_ui5-v2-9-0_avatar_focus_offset)}:host([disabled]){opacity:var(--sapContent_DisabledOpacity)}:host{height:3rem;width:3rem;border-radius:50%;border:var(--ui5-v2-9-0-avatar-initials-border);outline:none;color:var(--ui5-v2-9-0-avatar-initials-color)}.ui5-avatar-root{display:flex;align-items:center;justify-content:center;outline:none;height:100%;width:100%;border-radius:inherit}:host([_size="XS"]),:host([size="XS"]){height:2rem;width:2rem;min-height:2rem;min-width:2rem;font-size:var(--_ui5-v2-9-0_avatar_fontsize_XS)}:host(:not([size])),:host([_size="S"]),:host([size="S"]){min-height:3rem;min-width:3rem;font-size:var(--_ui5-v2-9-0_avatar_fontsize_S)}:host([_size="M"]),:host([size="M"]){min-height:4rem;min-width:4rem;font-size:var(--_ui5-v2-9-0_avatar_fontsize_M)}:host([_size="L"]),:host([size="L"]){min-height:5rem;min-width:5rem;font-size:var(--_ui5-v2-9-0_avatar_fontsize_L)}:host([_size="XL"]),:host([size="XL"]){min-height:7rem;min-width:7rem;font-size:var(--_ui5-v2-9-0_avatar_fontsize_XL)}:host .ui5-avatar-icon{height:var(--_ui5-v2-9-0_avatar_fontsize_S);width:var(--_ui5-v2-9-0_avatar_fontsize_S);color:inherit}:host([_size="XS"]) .ui5-avatar-icon,:host([size="XS"]) .ui5-avatar-icon{height:var(--_ui5-v2-9-0_avatar_icon_XS);width:var(--_ui5-v2-9-0_avatar_icon_XS)}:host([_size="S"]) .ui5-avatar-icon,:host([size="S"]) .ui5-avatar-icon{height:var(--_ui5-v2-9-0_avatar_icon_S);width:var(--_ui5-v2-9-0_avatar_icon_S)}:host([_size="M"]) .ui5-avatar-icon,:host([size="M"]) .ui5-avatar-icon{height:var(--_ui5-v2-9-0_avatar_icon_M);width:var(--_ui5-v2-9-0_avatar_icon_M)}:host([_size="L"]) .ui5-avatar-icon,:host([size="L"]) .ui5-avatar-icon{height:var(--_ui5-v2-9-0_avatar_icon_L);width:var(--_ui5-v2-9-0_avatar_icon_L)}:host([_size="XL"]) .ui5-avatar-icon,:host([size="XL"]) .ui5-avatar-icon{height:var(--_ui5-v2-9-0_avatar_icon_XL);width:var(--_ui5-v2-9-0_avatar_icon_XL)}::slotted(*){border-radius:50%;width:100%;height:100%;pointer-events:none}:host([shape="Square"]){border-radius:var(--ui5-v2-9-0-avatar-border-radius)}:host([shape="Square"]) ::slotted(*){border-radius:calc(var(--ui5-v2-9-0-avatar-border-radius) - var(--ui5-v2-9-0-avatar-border-radius-img-deduction))}:host(:not([color-scheme])),:host(:not([_has-image])),:host([color-scheme="Auto"]),:host([_color-scheme="Accent6"]),:host([ui5-avatar][color-scheme="Accent6"]){background-color:var(--ui5-v2-9-0-avatar-accent6);color:var(--ui5-v2-9-0-avatar-accent6-color);border-color:var(--ui5-v2-9-0-avatar-accent6-border-color)}:host([_color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_6_Hover_Background)}:host([_color-scheme="Accent1"]),:host([ui5-avatar][color-scheme="Accent1"]){background-color:var(--ui5-v2-9-0-avatar-accent1);color:var(--ui5-v2-9-0-avatar-accent1-color);border-color:var(--ui5-v2-9-0-avatar-accent1-border-color)}:host([_color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_1_Hover_Background)}:host([_color-scheme="Accent2"]),:host([ui5-avatar][color-scheme="Accent2"]){background-color:var(--ui5-v2-9-0-avatar-accent2);color:var(--ui5-v2-9-0-avatar-accent2-color);border-color:var(--ui5-v2-9-0-avatar-accent2-border-color)}:host([_color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_2_Hover_Background)}:host([_color-scheme="Accent3"]),:host([ui5-avatar][color-scheme="Accent3"]){background-color:var(--ui5-v2-9-0-avatar-accent3);color:var(--ui5-v2-9-0-avatar-accent3-color);border-color:var(--ui5-v2-9-0-avatar-accent3-border-color)}:host([_color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_3_Hover_Background)}:host([_color-scheme="Accent4"]),:host([ui5-avatar][color-scheme="Accent4"]){background-color:var(--ui5-v2-9-0-avatar-accent4);color:var(--ui5-v2-9-0-avatar-accent4-color);border-color:var(--ui5-v2-9-0-avatar-accent4-border-color)}:host([_color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_4_Hover_Background)}:host([_color-scheme="Accent5"]),:host([ui5-avatar][color-scheme="Accent5"]){background-color:var(--ui5-v2-9-0-avatar-accent5);color:var(--ui5-v2-9-0-avatar-accent5-color);border-color:var(--ui5-v2-9-0-avatar-accent5-border-color)}:host([_color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_5_Hover_Background)}:host([_color-scheme="Accent7"]),:host([ui5-avatar][color-scheme="Accent7"]){background-color:var(--ui5-v2-9-0-avatar-accent7);color:var(--ui5-v2-9-0-avatar-accent7-color);border-color:var(--ui5-v2-9-0-avatar-accent7-border-color)}:host([_color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_7_Hover_Background)}:host([_color-scheme="Accent8"]),:host([ui5-avatar][color-scheme="Accent8"]){background-color:var(--ui5-v2-9-0-avatar-accent8);color:var(--ui5-v2-9-0-avatar-accent8-color);border-color:var(--ui5-v2-9-0-avatar-accent8-border-color)}:host([_color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_8_Hover_Background)}:host([_color-scheme="Accent9"]),:host([ui5-avatar][color-scheme="Accent9"]){background-color:var(--ui5-v2-9-0-avatar-accent9);color:var(--ui5-v2-9-0-avatar-accent9-color);border-color:var(--ui5-v2-9-0-avatar-accent9-border-color)}:host([_color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_9_Hover_Background)}:host([_color-scheme="Accent10"]),:host([ui5-avatar][color-scheme="Accent10"]){background-color:var(--ui5-v2-9-0-avatar-accent10);color:var(--ui5-v2-9-0-avatar-accent10-color);border-color:var(--ui5-v2-9-0-avatar-accent10-border-color)}:host([_color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_10_Hover_Background)}:host([_color-scheme="Placeholder"]),:host([ui5-avatar][color-scheme="Placeholder"]){background-color:var(--ui5-v2-9-0-avatar-placeholder);color:var(--ui5-v2-9-0-avatar-placeholder-color);border-color:var(--sapAvatar_Lite_BorderColor)}:host([_has-image]){color:var(--ui5-v2-9-0-avatar-accent10-color);background-color:transparent;vertical-align:middle}.ui5-avatar-initials{color:inherit}.ui5-avatar-icon~.ui5-avatar-initials,.ui5-avatar-icon~.ui5-avatar-icon-fallback{display:none}.ui5-avatar-fallback-icon-hidden{display:none}.ui5-avatar-initials-hidden{position:absolute;visibility:hidden;z-index:0;pointer-events:none}::slotted([slot="badge"]){pointer-events:initial;position:absolute;bottom:0;right:0;width:1.125rem;height:1.125rem;font-family:"72override",var(--sapFontFamily);font-size:var(--sapFontSmallSize);color:var(--sapBackgroundColor);--_ui5-v2-9-0-tag-height: 1.125rem;--_ui5-v2-9-0-tag-border-radius: 50%}:host([_size="L"]) ::slotted([slot="badge"]),:host([size="L"]) ::slotted([slot="badge"]){width:1.25rem;height:1.25rem;--_ui5-v2-9-0-tag-height: 1.25rem;--_ui5-v2-9-0-tag-icon-width: .875rem}:host([_size="XL"]) ::slotted([slot="badge"]),:host([size="XL"]) ::slotted([slot="badge"]){width:1.75rem;height:1.75rem;--_ui5-v2-9-0-tag-height: 1.75rem;--_ui5-v2-9-0-tag-icon-width: 1rem}:host([shape="Square"]) ::slotted([slot="badge"]){bottom:-.125rem;right:-.125rem}:host([_size="L"][shape="Square"]) ::slotted([slot="badge"]),:host([size="L"][shape="Square"]) ::slotted([slot="badge"]){bottom:-.1875rem;right:-.1875rem}:host([_size="XL"][shape="Square"]) ::slotted([slot="badge"]),:host([size="XL"][shape="Square"]) ::slotted([slot="badge"]){bottom:-.25rem;right:-.25rem}
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Different types of AvatarSize.
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
var AvatarSize;
|
|
23
|
-
(function (AvatarSize) {
|
|
24
|
-
/**
|
|
25
|
-
* component size - 2rem
|
|
26
|
-
* font size - 1rem
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
AvatarSize["XS"] = "XS";
|
|
30
|
-
/**
|
|
31
|
-
* component size - 3rem
|
|
32
|
-
* font size - 1.5rem
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
AvatarSize["S"] = "S";
|
|
36
|
-
/**
|
|
37
|
-
* component size - 4rem
|
|
38
|
-
* font size - 2rem
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
|
-
AvatarSize["M"] = "M";
|
|
42
|
-
/**
|
|
43
|
-
* component size - 5rem
|
|
44
|
-
* font size - 2.5rem
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
47
|
-
AvatarSize["L"] = "L";
|
|
48
|
-
/**
|
|
49
|
-
* component size - 7rem
|
|
50
|
-
* font size - 3rem
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
AvatarSize["XL"] = "XL";
|
|
54
|
-
})(AvatarSize || (AvatarSize = {}));
|
|
55
|
-
var AvatarSize$1 = AvatarSize;
|
|
56
|
-
|
|
57
|
-
const name$b = "employee";
|
|
58
|
-
const pathData$b = "M448 512H64V384q0-26 10-49.5t27.5-41T142 266t50-10h64q-27 0-50-10t-40.5-27.5T138 178t-10-50q0-26 10-49.5t27.5-41T206 10t50-10q26 0 49.5 10t41 27.5 27.5 41 10 49.5q0 27-10 50t-27.5 40.5-41 27.5-49.5 10h64q26 0 49.5 10t41 27.5 27.5 41 10 49.5v128zM96 384v96h320v-96q0-40-28-68t-68-28H192q-40 0-68 28t-28 68zm160-160q40 0 68-28t28-68-28-68-68-28-68 28-28 68 28 68 68 28zm32 192v-32h96v32h-96z";
|
|
59
|
-
const ltr$b = false;
|
|
60
|
-
const collection$b = "SAP-icons-v4";
|
|
61
|
-
const packageName$b = "@ui5/webcomponents-icons";
|
|
62
|
-
|
|
63
|
-
Icons.f(name$b, { pathData: pathData$b, ltr: ltr$b, collection: collection$b, packageName: packageName$b });
|
|
64
|
-
|
|
65
|
-
const name$a = "employee";
|
|
66
|
-
const pathData$a = "M342 255q48 23 77 67.5t29 99.5v32q0 11-7.5 18.5T422 480H90q-11 0-18.5-7.5T64 454v-32q0-55 29-99.5t77-67.5l-4-5q-19-17-28.5-40.5T128 160q0-27 10-50t27.5-40.5 41-27.5T256 32t49.5 10.5 41 28T374 111t10 49q0 27-11 52t-31 43zm-163-95q0 32 22.5 54.5T256 237t54.5-22.5T333 160t-22.5-54.5T256 83t-54.5 22.5T179 160zm51 181l-25-15q-13-7-13-19v-6q-34 17-55.5 49T115 422v7h115v-88zm167 81q0-40-21-72t-56-49v6q0 12-13 19l-26 15v88h116v-7zm-71-70q11 0 18.5 7.5T352 378t-7.5 18-18.5 7h-12q-11 0-18.5-7t-7.5-18 7.5-18.5T314 352h12z";
|
|
67
|
-
const ltr$a = false;
|
|
68
|
-
const collection$a = "SAP-icons-v5";
|
|
69
|
-
const packageName$a = "@ui5/webcomponents-icons";
|
|
70
|
-
|
|
71
|
-
Icons.f(name$a, { pathData: pathData$a, ltr: ltr$a, collection: collection$a, packageName: packageName$a });
|
|
72
|
-
|
|
73
|
-
var __decorate$5 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
74
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
76
|
-
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;
|
|
77
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
78
|
-
};
|
|
79
|
-
var Avatar_1;
|
|
80
|
-
/**
|
|
81
|
-
* @class
|
|
82
|
-
* ### Overview
|
|
83
|
-
*
|
|
84
|
-
* An image-like component that has different display options for representing images and icons
|
|
85
|
-
* in different shapes and sizes, depending on the use case.
|
|
86
|
-
*
|
|
87
|
-
* The shape can be circular or square. There are several predefined sizes, as well as an option to
|
|
88
|
-
* set a custom size.
|
|
89
|
-
*
|
|
90
|
-
* ### Keyboard Handling
|
|
91
|
-
*
|
|
92
|
-
* - [Space] / [Enter] or [Return] - Fires the `click` event if the `interactive` property is set to true.
|
|
93
|
-
* - [Shift] - If [Space] is pressed, pressing [Shift] releases the component without triggering the click event.
|
|
94
|
-
*
|
|
95
|
-
* ### ES6 Module Import
|
|
96
|
-
* `import "@ui5/webcomponents/dist/Avatar.js";`
|
|
97
|
-
* @constructor
|
|
98
|
-
* @extends UI5Element
|
|
99
|
-
* @since 1.0.0-rc.6
|
|
100
|
-
* @implements {IAvatarGroupItem}
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
let Avatar = Avatar_1 = class Avatar extends webcomponentsBase.b {
|
|
104
|
-
constructor() {
|
|
105
|
-
super();
|
|
106
|
-
/**
|
|
107
|
-
* Defines whether the component is disabled.
|
|
108
|
-
* A disabled component can't be pressed or
|
|
109
|
-
* focused, and it is not in the tab chain.
|
|
110
|
-
* @default false
|
|
111
|
-
* @public
|
|
112
|
-
*/
|
|
113
|
-
this.disabled = false;
|
|
114
|
-
/**
|
|
115
|
-
* Defines if the avatar is interactive (focusable and pressable).
|
|
116
|
-
*
|
|
117
|
-
* **Note:** This property won't have effect if the `disabled`
|
|
118
|
-
* property is set to `true`.
|
|
119
|
-
* @default false
|
|
120
|
-
* @public
|
|
121
|
-
*/
|
|
122
|
-
this.interactive = false;
|
|
123
|
-
/**
|
|
124
|
-
* Defines the name of the fallback icon, which should be displayed in the following cases:
|
|
125
|
-
*
|
|
126
|
-
* - If the initials are not valid (more than 3 letters, unsupported languages or empty initials).
|
|
127
|
-
* - If there are three initials and they do not fit in the shape (e.g. WWW for some of the sizes).
|
|
128
|
-
* - If the image src is wrong.
|
|
129
|
-
*
|
|
130
|
-
* **Note:** If not set, a default fallback icon "employee" is displayed.
|
|
131
|
-
*
|
|
132
|
-
* **Note:** You should import the desired icon first, then use its name as "fallback-icon".
|
|
133
|
-
*
|
|
134
|
-
* `import "@ui5/webcomponents-icons/dist/{icon_name}.js"`
|
|
135
|
-
*
|
|
136
|
-
* `<ui5-avatar fallback-icon="alert">`
|
|
137
|
-
*
|
|
138
|
-
* See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).
|
|
139
|
-
* @default "employee"
|
|
140
|
-
* @public
|
|
141
|
-
*/
|
|
142
|
-
this.fallbackIcon = "employee";
|
|
143
|
-
/**
|
|
144
|
-
* Defines the shape of the component.
|
|
145
|
-
* @default "Circle"
|
|
146
|
-
* @public
|
|
147
|
-
*/
|
|
148
|
-
this.shape = "Circle";
|
|
149
|
-
/**
|
|
150
|
-
* Defines predefined size of the component.
|
|
151
|
-
* @default "S"
|
|
152
|
-
* @public
|
|
153
|
-
*/
|
|
154
|
-
this.size = "S";
|
|
155
|
-
/**
|
|
156
|
-
* Defines the background color of the desired image.
|
|
157
|
-
* If `colorScheme` is set to `Auto`, the avatar will be displayed with the `Accent6` color.
|
|
158
|
-
*
|
|
159
|
-
* @default "Auto"
|
|
160
|
-
* @public
|
|
161
|
-
*/
|
|
162
|
-
this.colorScheme = "Auto";
|
|
163
|
-
/**
|
|
164
|
-
* @private
|
|
165
|
-
*/
|
|
166
|
-
this._colorScheme = "Auto";
|
|
167
|
-
/**
|
|
168
|
-
* Defines the additional accessibility attributes that will be applied to the component.
|
|
169
|
-
* The following field is supported:
|
|
170
|
-
*
|
|
171
|
-
* - **hasPopup**: Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by the button.
|
|
172
|
-
* Accepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.
|
|
173
|
-
*
|
|
174
|
-
* @public
|
|
175
|
-
* @since 2.0.0
|
|
176
|
-
* @default {}
|
|
177
|
-
*/
|
|
178
|
-
this.accessibilityAttributes = {};
|
|
179
|
-
this._hasImage = false;
|
|
180
|
-
this._handleResizeBound = this.handleResize.bind(this);
|
|
181
|
-
}
|
|
182
|
-
get tabindex() {
|
|
183
|
-
if (this.forcedTabIndex) {
|
|
184
|
-
return parseInt(this.forcedTabIndex);
|
|
185
|
-
}
|
|
186
|
-
return this._interactive ? 0 : undefined;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Returns the effective avatar size.
|
|
190
|
-
* @default "S"
|
|
191
|
-
* @private
|
|
192
|
-
*/
|
|
193
|
-
get effectiveSize() {
|
|
194
|
-
// we read the attribute, because the "size" property will always have a default value
|
|
195
|
-
return this.getAttribute("size") || AvatarSize$1.S;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Returns the effective background color.
|
|
199
|
-
* @default "Auto"
|
|
200
|
-
* @private
|
|
201
|
-
*/
|
|
202
|
-
get effectiveBackgroundColor() {
|
|
203
|
-
// we read the attribute, because the "background-color" property will always have a default value
|
|
204
|
-
return this.getAttribute("color-scheme") || this._colorScheme;
|
|
205
|
-
}
|
|
206
|
-
get _role() {
|
|
207
|
-
return this._interactive ? "button" : "img";
|
|
208
|
-
}
|
|
209
|
-
get _ariaHasPopup() {
|
|
210
|
-
return this._getAriaHasPopup();
|
|
211
|
-
}
|
|
212
|
-
get _interactive() {
|
|
213
|
-
return this.interactive && !this.disabled;
|
|
214
|
-
}
|
|
215
|
-
get validInitials() {
|
|
216
|
-
// initials should consist of only 1,2 or 3 latin letters
|
|
217
|
-
const validInitials = /^[a-zA-Zà-üÀ-Ü]{1,3}$/, areInitialsValid = this.initials && validInitials.test(this.initials);
|
|
218
|
-
if (areInitialsValid) {
|
|
219
|
-
return this.initials;
|
|
220
|
-
}
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
223
|
-
get accessibleNameText() {
|
|
224
|
-
if (this.accessibleName) {
|
|
225
|
-
return this.accessibleName;
|
|
226
|
-
}
|
|
227
|
-
const defaultLabel = Avatar_1.i18nBundle.getText(parametersBundle_css.AVATAR_TOOLTIP);
|
|
228
|
-
return this.initials ? `${defaultLabel} ${this.initials}`.trim() : defaultLabel;
|
|
229
|
-
}
|
|
230
|
-
get hasImage() {
|
|
231
|
-
this._hasImage = !!this.image.length;
|
|
232
|
-
return this._hasImage;
|
|
233
|
-
}
|
|
234
|
-
get initialsContainer() {
|
|
235
|
-
return this.getDomRef().querySelector(".ui5-avatar-initials");
|
|
236
|
-
}
|
|
237
|
-
get fallBackIconDomRef() {
|
|
238
|
-
return this.getDomRef().querySelector(".ui5-avatar-icon-fallback");
|
|
239
|
-
}
|
|
240
|
-
async onAfterRendering() {
|
|
241
|
-
await Icons.f$1();
|
|
242
|
-
if (this.initials && !this.icon) {
|
|
243
|
-
this._checkInitials();
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
onEnterDOM() {
|
|
247
|
-
if (Icons.f$2()) {
|
|
248
|
-
this.setAttribute("desktop", "");
|
|
249
|
-
}
|
|
250
|
-
this.initialsContainer && webcomponentsBase.f$1.register(this.initialsContainer, this._handleResizeBound);
|
|
251
|
-
}
|
|
252
|
-
onExitDOM() {
|
|
253
|
-
this.initialsContainer && webcomponentsBase.f$1.deregister(this.initialsContainer, this._handleResizeBound);
|
|
254
|
-
}
|
|
255
|
-
handleResize() {
|
|
256
|
-
if (this.initials && !this.icon) {
|
|
257
|
-
this._checkInitials();
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
_checkInitials() {
|
|
261
|
-
const avatar = this.getDomRef();
|
|
262
|
-
const avatarInitials = avatar.querySelector(".ui5-avatar-initials");
|
|
263
|
-
const validInitials = this.validInitials && avatarInitials && avatarInitials.scrollWidth <= avatar.scrollWidth;
|
|
264
|
-
if (validInitials) {
|
|
265
|
-
this.showInitials();
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
this.showFallbackIcon();
|
|
269
|
-
}
|
|
270
|
-
showFallbackIcon() {
|
|
271
|
-
this.initialsContainer?.classList.add("ui5-avatar-initials-hidden");
|
|
272
|
-
this.fallBackIconDomRef?.classList.remove("ui5-avatar-fallback-icon-hidden");
|
|
273
|
-
}
|
|
274
|
-
showInitials() {
|
|
275
|
-
this.initialsContainer?.classList.remove("ui5-avatar-initials-hidden");
|
|
276
|
-
this.fallBackIconDomRef?.classList.add("ui5-avatar-fallback-icon-hidden");
|
|
277
|
-
}
|
|
278
|
-
_onclick(e) {
|
|
279
|
-
e.stopPropagation();
|
|
280
|
-
this._fireClick();
|
|
281
|
-
}
|
|
282
|
-
_onkeydown(e) {
|
|
283
|
-
if (!this._interactive) {
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
if (webcomponentsBase.b$1(e)) {
|
|
287
|
-
this._fireClick();
|
|
288
|
-
}
|
|
289
|
-
if (webcomponentsBase.i(e)) {
|
|
290
|
-
e.preventDefault(); // prevent scrolling
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
_onkeyup(e) {
|
|
294
|
-
if (this._interactive && !e.shiftKey && webcomponentsBase.i(e)) {
|
|
295
|
-
this._fireClick();
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
_fireClick() {
|
|
299
|
-
this.fireDecoratorEvent("click");
|
|
300
|
-
}
|
|
301
|
-
_getAriaHasPopup() {
|
|
302
|
-
const ariaHaspopup = this.accessibilityAttributes.hasPopup;
|
|
303
|
-
if (!this._interactive || !ariaHaspopup) {
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
return ariaHaspopup;
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
__decorate$5([
|
|
310
|
-
webcomponentsBase.s({ type: Boolean })
|
|
311
|
-
], Avatar.prototype, "disabled", void 0);
|
|
312
|
-
__decorate$5([
|
|
313
|
-
webcomponentsBase.s({ type: Boolean })
|
|
314
|
-
], Avatar.prototype, "interactive", void 0);
|
|
315
|
-
__decorate$5([
|
|
316
|
-
webcomponentsBase.s()
|
|
317
|
-
], Avatar.prototype, "icon", void 0);
|
|
318
|
-
__decorate$5([
|
|
319
|
-
webcomponentsBase.s()
|
|
320
|
-
], Avatar.prototype, "fallbackIcon", void 0);
|
|
321
|
-
__decorate$5([
|
|
322
|
-
webcomponentsBase.s()
|
|
323
|
-
], Avatar.prototype, "initials", void 0);
|
|
324
|
-
__decorate$5([
|
|
325
|
-
webcomponentsBase.s()
|
|
326
|
-
], Avatar.prototype, "shape", void 0);
|
|
327
|
-
__decorate$5([
|
|
328
|
-
webcomponentsBase.s()
|
|
329
|
-
], Avatar.prototype, "size", void 0);
|
|
330
|
-
__decorate$5([
|
|
331
|
-
webcomponentsBase.s()
|
|
332
|
-
], Avatar.prototype, "colorScheme", void 0);
|
|
333
|
-
__decorate$5([
|
|
334
|
-
webcomponentsBase.s()
|
|
335
|
-
], Avatar.prototype, "_colorScheme", void 0);
|
|
336
|
-
__decorate$5([
|
|
337
|
-
webcomponentsBase.s()
|
|
338
|
-
], Avatar.prototype, "accessibleName", void 0);
|
|
339
|
-
__decorate$5([
|
|
340
|
-
webcomponentsBase.s({ type: Object })
|
|
341
|
-
], Avatar.prototype, "accessibilityAttributes", void 0);
|
|
342
|
-
__decorate$5([
|
|
343
|
-
webcomponentsBase.s({ noAttribute: true })
|
|
344
|
-
], Avatar.prototype, "forcedTabIndex", void 0);
|
|
345
|
-
__decorate$5([
|
|
346
|
-
webcomponentsBase.s({ type: Boolean })
|
|
347
|
-
], Avatar.prototype, "_hasImage", void 0);
|
|
348
|
-
__decorate$5([
|
|
349
|
-
webcomponentsBase.d({ type: HTMLElement, "default": true })
|
|
350
|
-
], Avatar.prototype, "image", void 0);
|
|
351
|
-
__decorate$5([
|
|
352
|
-
webcomponentsBase.d()
|
|
353
|
-
], Avatar.prototype, "badge", void 0);
|
|
354
|
-
__decorate$5([
|
|
355
|
-
parametersBundle_css.i("@ui5/webcomponents")
|
|
356
|
-
], Avatar, "i18nBundle", void 0);
|
|
357
|
-
Avatar = Avatar_1 = __decorate$5([
|
|
358
|
-
webcomponentsBase.m({
|
|
359
|
-
tag: "ui5-avatar",
|
|
360
|
-
languageAware: true,
|
|
361
|
-
renderer: parametersBundle_css.d,
|
|
362
|
-
styles: AvatarCss,
|
|
363
|
-
template: AvatarTemplate,
|
|
364
|
-
})
|
|
365
|
-
/**
|
|
366
|
-
* Fired on mouseup, space and enter if avatar is interactive
|
|
367
|
-
*
|
|
368
|
-
* **Note:** The event will not be fired if the `disabled`
|
|
369
|
-
* property is set to `true`.
|
|
370
|
-
* @private
|
|
371
|
-
* @since 1.0.0-rc.11
|
|
372
|
-
*/
|
|
373
|
-
,
|
|
374
|
-
eventStrict.l("click", {
|
|
375
|
-
bubbles: true,
|
|
376
|
-
})
|
|
377
|
-
], Avatar);
|
|
378
|
-
Avatar.define();
|
|
379
|
-
var Avatar$1 = Avatar;
|
|
380
|
-
|
|
381
|
-
const name$9 = "sys-help-2";
|
|
382
|
-
const pathData$9 = "M256 0q53 0 99.5 20T437 74.5t55 81.5 20 100-20 99.5-55 81.5-81.5 55-99.5 20-100-20-81.5-55T20 355.5 0 256t20-100 54.5-81.5T156 20 256 0zm-5 425q15 0 26-11t11-26-11-25.5-26-10.5-25.5 10.5T215 388t10.5 26 25.5 11zm101-239q0-32-27-57t-77-25q-46 0-72.5 24T146 187h52q5-24 17.5-32.5T251 146t35 12.5 12 27.5q0 10-2.5 14T282 215l-20 17q-15 12-23 21t-11.5 18.5-4.5 21-1 27.5h50q0-12 .5-19t3-12.5T283 278t15-13l27-25 16-18 9-16z";
|
|
383
|
-
const ltr$9 = true;
|
|
384
|
-
const collection$9 = "SAP-icons-v4";
|
|
385
|
-
const packageName$9 = "@ui5/webcomponents-icons";
|
|
386
|
-
|
|
387
|
-
Icons.f(name$9, { pathData: pathData$9, ltr: ltr$9, collection: collection$9, packageName: packageName$9 });
|
|
388
|
-
|
|
389
|
-
const name$8 = "sys-help-2";
|
|
390
|
-
const pathData$8 = "M256 0q53 0 99.5 20T437 75t55 81.5 20 99.5-20 99.5-55 81.5-81.5 55-99.5 20-99.5-20T75 437t-55-81.5T0 256t20-99.5T75 75t81.5-55T256 0zm32 289q31-10 50.5-36.5T358 192q0-43-29.5-72.5T256 90q-21 0-39.5 8T184 118.5 162 148t-8 35q0 20 9 30.5t23 10.5q13 0 22.5-9t9.5-23q0-16 11-27t27-11 27 11 11 27-11 27-27 11q-14 0-23 9.5t-9 22.5v26q0 14 9 23t23 9q13 0 22-9t10-22zm-32 127q14 0 23-9t9-23-9-23-23-9-23 9-9 23 9 23 23 9z";
|
|
391
|
-
const ltr$8 = true;
|
|
392
|
-
const collection$8 = "SAP-icons-v5";
|
|
393
|
-
const packageName$8 = "@ui5/webcomponents-icons";
|
|
394
|
-
|
|
395
|
-
Icons.f(name$8, { pathData: pathData$8, ltr: ltr$8, collection: collection$8, packageName: packageName$8 });
|
|
396
|
-
|
|
397
|
-
var selectedAccount = "sys-enter-2";
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Defines tag design types.
|
|
401
|
-
* @public
|
|
402
|
-
*/
|
|
403
|
-
var TagDesign;
|
|
404
|
-
(function (TagDesign) {
|
|
405
|
-
/**
|
|
406
|
-
* Set1 of generic indication colors that are intended for industry-specific use cases
|
|
407
|
-
* @public
|
|
408
|
-
*/
|
|
409
|
-
TagDesign["Set1"] = "Set1";
|
|
410
|
-
/**
|
|
411
|
-
* Set2 of generic indication colors that are intended for industry-specific use cases
|
|
412
|
-
* @public
|
|
413
|
-
*/
|
|
414
|
-
TagDesign["Set2"] = "Set2";
|
|
415
|
-
/**
|
|
416
|
-
* Neutral design
|
|
417
|
-
* @public
|
|
418
|
-
*/
|
|
419
|
-
TagDesign["Neutral"] = "Neutral";
|
|
420
|
-
/**
|
|
421
|
-
* Information design
|
|
422
|
-
* @public
|
|
423
|
-
*/
|
|
424
|
-
TagDesign["Information"] = "Information";
|
|
425
|
-
/**
|
|
426
|
-
* Positive design
|
|
427
|
-
* @public
|
|
428
|
-
*/
|
|
429
|
-
TagDesign["Positive"] = "Positive";
|
|
430
|
-
/**
|
|
431
|
-
* Negative design
|
|
432
|
-
* @public
|
|
433
|
-
*/
|
|
434
|
-
TagDesign["Negative"] = "Negative";
|
|
435
|
-
/**
|
|
436
|
-
* Critical design
|
|
437
|
-
* @public
|
|
438
|
-
*/
|
|
439
|
-
TagDesign["Critical"] = "Critical";
|
|
440
|
-
})(TagDesign || (TagDesign = {}));
|
|
441
|
-
var TagDesign$1 = TagDesign;
|
|
442
|
-
|
|
443
|
-
function TagTemplate() {
|
|
444
|
-
return (parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: this.interactive ?
|
|
445
|
-
parametersBundle_css.jsx("button", { class: "ui5-tag-root", title: this._title, "aria-roledescription": this._roleDescription, "aria-description": this._valueState, onClick: this._onclick, part: "root", children: content.call(this) })
|
|
446
|
-
:
|
|
447
|
-
parametersBundle_css.jsx("div", { class: "ui5-tag-root", title: this._title, part: "root", children: content.call(this) }) }));
|
|
448
|
-
}
|
|
449
|
-
function content() {
|
|
450
|
-
return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("slot", { name: "icon" }), this._semanticIconName &&
|
|
451
|
-
parametersBundle_css.jsx(parametersBundle_css.Icon, { class: "ui5-tag-semantic-icon", name: this._semanticIconName }), parametersBundle_css.jsx("span", { class: "ui5-hidden-text", children: this.tagDescription }), this.hasText &&
|
|
452
|
-
parametersBundle_css.jsx("span", { class: "ui5-tag-text", children: parametersBundle_css.jsx("slot", {}) })] }));
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
456
|
-
Icons.p("@ui5/webcomponents", "sap_horizon", async () => parametersBundle_css.defaultTheme$1);
|
|
457
|
-
var tagCss = `.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}:host{font-size:var(--sapFontSmallSize);font-family:var(--sapFontBoldFamily);font-weight:var(--_ui5-v2-9-0-tag-font-weight);letter-spacing:var(--_ui5-v2-9-0-tag-letter-spacing);line-height:var(--_ui5-v2-9-0-tag-height)}.ui5-tag-root{display:flex;align-items:baseline;justify-content:center;width:100%;min-width:1.125em;max-width:100%;box-sizing:border-box;padding:var(--_ui5-v2-9-0-tag-text-padding);border:.0625rem solid;border-radius:var(--sapButton_BorderCornerRadius);white-space:normal;font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit}:host([interactive]) .ui5-tag-root:active{text-shadow:var(--ui5-v2-9-0-tag-text-shadow)}:host([interactive]) .ui5-tag-root{cursor:pointer}:host([desktop][interactive]) .ui5-tag-root:focus,:host([interactive]) .ui5-tag-root:focus-visible{outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:1px}:host([wrapping-type="None"]) .ui5-tag-root{white-space:nowrap}:host([_icon-only]) .ui5-tag-root{padding-inline:var(--_ui5-v2-9-0-tag-padding-inline-icon-only)}.ui5-tag-text{text-transform:var(--_ui5-v2-9-0-tag-text-transform);text-align:start;pointer-events:none;overflow:hidden;text-overflow:ellipsis}:host([_has-icon]) .ui5-tag-text{padding-inline-start:var(--_ui5-v2-9-0-tag-icon-gap)}[ui5-icon],::slotted([ui5-icon]){width:var(--_ui5-v2-9-0-tag-icon-width);min-width:var(--_ui5-v2-9-0-tag-icon-width);color:inherit;pointer-events:none;align-self:flex-start}.ui5-tag-root{background-color:var(--sapNeutralBackground);border-color:var(--sapNeutralBorderColor);color:var(--sapTextColor);text-shadow:var(--ui5-v2-9-0-tag-text-shadow)}:host([interactive]) .ui5-tag-root:hover{background-color:var(--sapButton_Neutral_Hover_Background);border-color:var(--sapButton_Neutral_Hover_BorderColor);color:var(--sapButton_Neutral_Hover_TextColor)}:host([interactive]) .ui5-tag-root:active{background-color:var(--sapButton_Neutral_Active_Background);border-color:var(--sapButton_Neutral_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([design="Positive"]) .ui5-tag-root{background-color:var(--sapButton_Success_Background);border-color:var(--sapButton_Success_BorderColor);color:var(--sapButton_Success_TextColor);text-shadow:var(--ui5-v2-9-0-tag-contrast-text-shadow)}:host([interactive][design="Positive"]) .ui5-tag-root:hover{background-color:var(--sapButton_Success_Hover_Background);border-color:var(--sapButton_Success_Hover_BorderColor);color:var(--sapButton_Success_Hover_TextColor)}:host([interactive][design="Positive"]) .ui5-tag-root:active{background-color:var(--sapButton_Success_Active_Background);border-color:var(--sapButton_Success_Active_BorderColor);color:var(--sapButton_Accept_Selected_TextColor)}:host([design="Negative"]) .ui5-tag-root{background-color:var(--sapButton_Negative_Background);border-color:var(--sapButton_Negative_BorderColor);color:var(--sapButton_Negative_TextColor);text-shadow:var(--ui5-v2-9-0-tag-contrast-text-shadow)}:host([interactive][design="Negative"]) .ui5-tag-root:hover{background-color:var(--sapButton_Negative_Hover_Background);border-color:var(--sapButton_Negative_Hover_BorderColor);color:var(--sapButton_Negative_Hover_TextColor)}:host([interactive][design="Negative"]) .ui5-tag-root:active{background-color:var(--sapButton_Negative_Active_Background);border-color:var(--sapButton_Negative_Active_BorderColor);color:var(--sapButton_Reject_Selected_TextColor)}:host([design="Critical"]) .ui5-tag-root{background-color:var(--sapButton_Critical_Background);border-color:var(--sapButton_Critical_BorderColor);color:var(--sapButton_Critical_TextColor);text-shadow:var(--ui5-v2-9-0-tag-contrast-text-shadow)}:host([interactive][design="Critical"]) .ui5-tag-root:hover{background-color:var(--sapButton_Critical_Hover_Background);border-color:var(--sapButton_Critical_Hover_BorderColor);color:var(--sapButton_Critical_Hover_TextColor)}:host([interactive][design="Critical"]) .ui5-tag-root:active{background-color:var(--sapButton_Critical_Active_Background);border-color:var(--sapButton_Critical_Active_BorderColor);color:var(--sapButton_Attention_Selected_TextColor)}:host([design="Information"]) .ui5-tag-root{background-color:var(--sapButton_Information_Background);border-color:var(--sapButton_Information_BorderColor);color:var(--sapButton_Information_TextColor);text-shadow:var(--ui5-v2-9-0-tag-information-text-shadow)}:host([interactive][design="Information"]) .ui5-tag-root:hover{background-color:var(--sapButton_Information_Hover_Background);border-color:var(--sapButton_Information_Hover_BorderColor);color:var(--sapButton_Information_Hover_TextColor)}:host([interactive][design="Information"]) .ui5-tag-root:active{background-color:var(--sapButton_Information_Active_Background);border-color:var(--sapButton_Information_Active_BorderColor);color:var(--sapButton_Selected_TextColor)}:host([design="Set1"]) .ui5-tag-root{text-shadow:var(--ui5-v2-9-0-tag-contrast-text-shadow)}:host([design="Set1"]) .ui5-tag-root,:host([interactive][design="Set1"]) .ui5-tag-root{background-color:var(--sapIndicationColor_1_Background);border-color:var(--sapIndicationColor_1_BorderColor);color:var(--sapIndicationColor_1_TextColor)}:host([interactive][design="Set1"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_1_Hover_Background)}:host([interactive][design="Set1"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_1_Active_Background);border-color:var(--sapIndicationColor_1_Active_BorderColor);color:var(--sapIndicationColor_1_Active_TextColor)}:host([design="Set1"][color-scheme="2"]) .ui5-tag-root{background-color:var(--sapIndicationColor_2_Background);border-color:var(--sapIndicationColor_2_BorderColor);color:var(--sapIndicationColor_2_TextColor)}:host([interactive][design="Set1"][color-scheme="2"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_2_Hover_Background)}:host([interactive][design="Set1"][color-scheme="2"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_2_Active_Background);border-color:var(--sapIndicationColor_2_Active_BorderColor);color:var(--sapIndicationColor_2_Active_TextColor)}:host([design="Set1"][color-scheme="3"]) .ui5-tag-root{background-color:var(--sapIndicationColor_3_Background);border-color:var(--sapIndicationColor_3_BorderColor);color:var(--sapIndicationColor_3_TextColor)}:host([interactive][design="Set1"][color-scheme="3"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_3_Hover_Background)}:host([interactive][design="Set1"][color-scheme="3"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_3_Active_Background);border-color:var(--sapIndicationColor_3_Active_BorderColor);color:var(--sapIndicationColor_3_Active_TextColor)}:host([design="Set1"][color-scheme="4"]) .ui5-tag-root{background-color:var(--sapIndicationColor_4_Background);border-color:var(--sapIndicationColor_4_BorderColor);color:var(--sapIndicationColor_4_TextColor)}:host([interactive][design="Set1"][color-scheme="4"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_4_Hover_Background)}:host([interactive][design="Set1"][color-scheme="4"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_4_Active_Background);border-color:var(--sapIndicationColor_4_Active_BorderColor);color:var(--sapIndicationColor_4_Active_TextColor)}:host([design="Set1"][color-scheme="5"]) .ui5-tag-root{background-color:var(--sapIndicationColor_5_Background);border-color:var(--sapIndicationColor_5_BorderColor);color:var(--sapIndicationColor_5_TextColor)}:host([interactive][design="Set1"][color-scheme="5"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_5_Hover_Background)}:host([interactive][design="Set1"][color-scheme="5"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_5_Active_Background);border-color:var(--sapIndicationColor_5_Active_BorderColor);color:var(--sapIndicationColor_5_Active_TextColor)}:host([design="Set1"][color-scheme="6"]) .ui5-tag-root{background-color:var(--sapIndicationColor_6_Background);border-color:var(--sapIndicationColor_6_BorderColor);color:var(--sapIndicationColor_6_TextColor)}:host([interactive][design="Set1"][color-scheme="6"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_6_Hover_Background)}:host([interactive][design="Set1"][color-scheme="6"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_6_Active_Background);border-color:var(--sapIndicationColor_6_Active_BorderColor);color:var(--sapIndicationColor_6_Active_TextColor)}:host([design="Set1"][color-scheme="7"]) .ui5-tag-root{background-color:var(--sapIndicationColor_7_Background);border-color:var(--sapIndicationColor_7_BorderColor);color:var(--sapIndicationColor_7_TextColor)}:host([interactive][design="Set1"][color-scheme="7"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_7_Hover_Background)}:host([interactive][design="Set1"][color-scheme="7"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_7_Active_Background);border-color:var(--sapIndicationColor_7_Active_BorderColor);color:var(--sapIndicationColor_7_Active_TextColor)}:host([design="Set1"][color-scheme="8"]) .ui5-tag-root{background-color:var(--sapIndicationColor_8_Background);border-color:var(--sapIndicationColor_8_BorderColor);color:var(--sapIndicationColor_8_TextColor)}:host([interactive][design="Set1"][color-scheme="8"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_8_Hover_Background)}:host([interactive][design="Set1"][color-scheme="8"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_8_Active_Background);border-color:var(--sapIndicationColor_8_Active_BorderColor);color:var(--sapIndicationColor_8_Active_TextColor)}:host([design="Set1"][color-scheme="9"]) .ui5-tag-root{background-color:var(--sapIndicationColor_9_Background);border-color:var(--sapIndicationColor_9_BorderColor);color:var(--sapIndicationColor_9_TextColor)}:host([interactive][design="Set1"][color-scheme="9"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_9_Hover_Background)}:host([interactive][design="Set1"][color-scheme="9"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_9_Active_Background);border-color:var(--sapIndicationColor_9_Active_BorderColor);color:var(--sapIndicationColor_9_Active_TextColor)}:host([design="Set1"][color-scheme="10"]) .ui5-tag-root{background-color:var(--sapIndicationColor_10_Background);border-color:var(--sapIndicationColor_10_BorderColor);color:var(--sapIndicationColor_10_TextColor)}:host([interactive][design="Set1"][color-scheme="10"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_10_Hover_Background)}:host([interactive][design="Set1"][color-scheme="10"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_10_Active_Background);border-color:var(--sapIndicationColor_10_Active_BorderColor);color:var(--sapIndicationColor_10_Active_TextColor)}:host([design="Set2"]) .ui5-tag-root{text-shadow:var(--ui5-v2-9-0-tag-text-shadow)}:host([design="Set2"]) .ui5-tag-root,:host([interactive][design="Set2"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-1-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-1-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-1-color)}:host([interactive][design="Set2"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-1-hover-background)}:host([interactive][design="Set2"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-1-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-1-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-1-active-color)}:host([design="Set2"][color-scheme="2"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-2-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-2-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-2-color)}:host([design="Set2"][color-scheme="3"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-3-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-3-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-3-color)}:host([interactive][design="Set2"][color-scheme="3"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-3-hover-background)}:host([interactive][design="Set2"][color-scheme="3"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-3-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-3-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-3-active-color)}:host([design="Set2"][color-scheme="4"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-4-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-4-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-4-color)}:host([interactive][design="Set2"][color-scheme="4"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-4-hover-background)}:host([interactive][design="Set2"][color-scheme="4"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-4-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-4-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-4-active-color)}:host([design="Set2"][color-scheme="5"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-5-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-5-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-5-color)}:host([interactive][design="Set2"][color-scheme="5"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-5-hover-background)}:host([interactive][design="Set2"][color-scheme="5"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-5-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-5-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-5-active-color)}:host([design="Set2"][color-scheme="6"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-6-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-6-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-6-color)}:host([interactive][design="Set2"][color-scheme="6"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-6-hover-background)}:host([interactive][design="Set2"][color-scheme="6"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-6-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-6-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-6-active-color)}:host([design="Set2"][color-scheme="7"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-7-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-7-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-7-color)}:host([interactive][design="Set2"][color-scheme="7"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-7-hover-background)}:host([interactive][design="Set2"][color-scheme="7"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-7-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-7-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-7-active-color)}:host([design="Set2"][color-scheme="8"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-8-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-8-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-8-color)}:host([interactive][design="Set2"][color-scheme="8"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-8-hover-background)}:host([interactive][design="Set2"][color-scheme="8"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-8-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-8-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-8-active-color)}:host([design="Set2"][color-scheme="9"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-9-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-9-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-9-color)}:host([interactive][design="Set2"][color-scheme="9"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-9-hover-background)}:host([interactive][design="Set2"][color-scheme="9"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-9-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-9-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-9-active-color)}:host([interactive][design="Set2"][color-scheme="10"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-10-hover-background)}:host([interactive][design="Set2"][color-scheme="10"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-10-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-10-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-10-active-color)}:host([design="Set2"][color-scheme="10"]) .ui5-tag-root{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-10-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-10-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-10-color)}:host([interactive][design="Set2"][color-scheme="2"]) .ui5-tag-root:hover{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-2-hover-background)}:host([interactive][design="Set2"][color-scheme="2"]) .ui5-tag-root:active{background-color:var(--ui5-v2-9-0-tag-set2-color-scheme-2-active-background);border-color:var(--ui5-v2-9-0-tag-set2-color-scheme-2-active-border);color:var(--ui5-v2-9-0-tag-set2-color-scheme-2-active-color)}:host([size="L"]){font-family:var(--sapFontSemiboldDuplexFamily);line-height:var(--_ui5-v2-9-0-tag-height_size_l)}:host([size="L"]) .ui5-tag-root{font-size:var(--_ui5-v2-9-0-tag-font-size_size_l);min-width:var(--_ui5-v2-9-0-tag-min-width_size_l);padding:var(--_ui5-v2-9-0-tag-text_padding_size_l)}:host([size="L"]) [ui5-icon],:host([size="L"]) ::slotted([ui5-icon]){min-width:var(--_ui5-v2-9-0-tag-icon_min_width_size_l);min-height:var(--_ui5-v2-9-0-tag-icon_min_height_size_l);height:var(--_ui5-v2-9-0-tag-icon_height_size_l)}
|
|
458
|
-
`;
|
|
459
|
-
|
|
460
|
-
var __decorate$4 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
461
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
462
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
463
|
-
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;
|
|
464
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
465
|
-
};
|
|
466
|
-
var Tag_1;
|
|
467
|
-
/**
|
|
468
|
-
* @class
|
|
469
|
-
* ### Overview
|
|
470
|
-
*
|
|
471
|
-
* The `ui5-tag` is a component which serves
|
|
472
|
-
* the purpose to attract the user attention to some piece
|
|
473
|
-
* of information (state, quantity, condition, etc.).
|
|
474
|
-
* It can contain icon and text information, and its design can be chosen from specific design types.
|
|
475
|
-
*
|
|
476
|
-
* ### Usage Guidelines
|
|
477
|
-
*
|
|
478
|
-
* - If the text is longer than the width of the component, it can wrap, or it can show ellipsis, depending on the `wrappingType` property.
|
|
479
|
-
* - Colors can be semantic or not semantic.
|
|
480
|
-
*
|
|
481
|
-
* ### ES6 Module Import
|
|
482
|
-
*
|
|
483
|
-
* `import "@ui5/webcomponents/dist/Tag.js";`
|
|
484
|
-
* @csspart root - Used to style the root element.
|
|
485
|
-
* @constructor
|
|
486
|
-
* @extends UI5Element
|
|
487
|
-
* @since 2.0.0
|
|
488
|
-
* @public
|
|
489
|
-
*/
|
|
490
|
-
let Tag = Tag_1 = class Tag extends webcomponentsBase.b {
|
|
491
|
-
constructor() {
|
|
492
|
-
super(...arguments);
|
|
493
|
-
/**
|
|
494
|
-
* Defines the design type of the component.
|
|
495
|
-
* @default "Neutral"
|
|
496
|
-
* @public
|
|
497
|
-
* @since 1.22.0
|
|
498
|
-
*/
|
|
499
|
-
this.design = "Neutral";
|
|
500
|
-
/**
|
|
501
|
-
* Defines the color scheme of the component.
|
|
502
|
-
* There are 10 predefined schemes.
|
|
503
|
-
* To use one you can set a number from `"1"` to `"10"`. The `colorScheme` `"1"` will be set by default.
|
|
504
|
-
* @default "1"
|
|
505
|
-
* @public
|
|
506
|
-
*/
|
|
507
|
-
this.colorScheme = "1";
|
|
508
|
-
/**
|
|
509
|
-
* Defines if the default state icon is shown.
|
|
510
|
-
* @default false
|
|
511
|
-
* @public
|
|
512
|
-
* @since 1.22.0
|
|
513
|
-
*/
|
|
514
|
-
this.hideStateIcon = false;
|
|
515
|
-
/**
|
|
516
|
-
* Defines if the component is interactive (focusable and pressable).
|
|
517
|
-
*
|
|
518
|
-
* @default false
|
|
519
|
-
* @public
|
|
520
|
-
* @since 1.22.0
|
|
521
|
-
*/
|
|
522
|
-
this.interactive = false;
|
|
523
|
-
/**
|
|
524
|
-
* Defines how the text of a component will be displayed when there is not enough space.
|
|
525
|
-
*
|
|
526
|
-
* **Note:** For option "Normal" the text will wrap and the
|
|
527
|
-
* words will not be broken based on hyphenation.
|
|
528
|
-
* @default "Normal"
|
|
529
|
-
* @public
|
|
530
|
-
* @since 1.22.0
|
|
531
|
-
*/
|
|
532
|
-
this.wrappingType = "Normal";
|
|
533
|
-
/**
|
|
534
|
-
* Defines predefined size of the component.
|
|
535
|
-
* @default "S"
|
|
536
|
-
* @public
|
|
537
|
-
* @since 2.0.0
|
|
538
|
-
*/
|
|
539
|
-
this.size = "S";
|
|
540
|
-
/**
|
|
541
|
-
* Defines if the tag has an icon.
|
|
542
|
-
* @private
|
|
543
|
-
*/
|
|
544
|
-
this._hasIcon = false;
|
|
545
|
-
/**
|
|
546
|
-
* Defines if the tag has only an icon (and no text).
|
|
547
|
-
* @private
|
|
548
|
-
*/
|
|
549
|
-
this._iconOnly = false;
|
|
550
|
-
}
|
|
551
|
-
onEnterDOM() {
|
|
552
|
-
if (Icons.f$2()) {
|
|
553
|
-
this.setAttribute("desktop", "");
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
onBeforeRendering() {
|
|
557
|
-
this._hasIcon = this.hasIcon || !!this._semanticIconName;
|
|
558
|
-
this._iconOnly = this.iconOnly;
|
|
559
|
-
}
|
|
560
|
-
get _roleDescription() {
|
|
561
|
-
return Tag_1.i18nBundle.getText(parametersBundle_css.TAG_ROLE_DESCRIPTION);
|
|
562
|
-
}
|
|
563
|
-
get _valueState() {
|
|
564
|
-
switch (this.design) {
|
|
565
|
-
case TagDesign$1.Positive:
|
|
566
|
-
return Tag_1.i18nBundle.getText(parametersBundle_css.TAG_SUCCESS);
|
|
567
|
-
case TagDesign$1.Negative:
|
|
568
|
-
return Tag_1.i18nBundle.getText(parametersBundle_css.TAG_ERROR);
|
|
569
|
-
case TagDesign$1.Critical:
|
|
570
|
-
return Tag_1.i18nBundle.getText(parametersBundle_css.TAG_WARNING);
|
|
571
|
-
case TagDesign$1.Information:
|
|
572
|
-
return Tag_1.i18nBundle.getText(parametersBundle_css.TAG_INFORMATION);
|
|
573
|
-
}
|
|
574
|
-
return undefined;
|
|
575
|
-
}
|
|
576
|
-
get hasText() {
|
|
577
|
-
return parametersBundle_css.t(this.text);
|
|
578
|
-
}
|
|
579
|
-
get hasIcon() {
|
|
580
|
-
return !!this.icon.length;
|
|
581
|
-
}
|
|
582
|
-
get iconOnly() {
|
|
583
|
-
return this.hasIcon && !this.hasText;
|
|
584
|
-
}
|
|
585
|
-
get _title() {
|
|
586
|
-
return this.title || undefined;
|
|
587
|
-
}
|
|
588
|
-
get tagDescription() {
|
|
589
|
-
if (this.interactive) {
|
|
590
|
-
return undefined;
|
|
591
|
-
}
|
|
592
|
-
const valueState = this._valueState;
|
|
593
|
-
let description = Tag_1.i18nBundle.getText(parametersBundle_css.TAG_DESCRIPTION_TAG);
|
|
594
|
-
if (valueState) {
|
|
595
|
-
description = `${description} ${valueState}`;
|
|
596
|
-
}
|
|
597
|
-
return description;
|
|
598
|
-
}
|
|
599
|
-
get _semanticIconName() {
|
|
600
|
-
if (this.hideStateIcon || this.hasIcon) {
|
|
601
|
-
return null;
|
|
602
|
-
}
|
|
603
|
-
switch (this.design) {
|
|
604
|
-
case TagDesign$1.Neutral:
|
|
605
|
-
return "sys-help-2";
|
|
606
|
-
case TagDesign$1.Positive:
|
|
607
|
-
return "sys-enter-2";
|
|
608
|
-
case TagDesign$1.Negative:
|
|
609
|
-
return "error";
|
|
610
|
-
case TagDesign$1.Critical:
|
|
611
|
-
return "alert";
|
|
612
|
-
case TagDesign$1.Information:
|
|
613
|
-
return "information";
|
|
614
|
-
default:
|
|
615
|
-
return null;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
_onclick(e) {
|
|
619
|
-
e.stopPropagation();
|
|
620
|
-
this.fireDecoratorEvent("click");
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
__decorate$4([
|
|
624
|
-
webcomponentsBase.s()
|
|
625
|
-
], Tag.prototype, "design", void 0);
|
|
626
|
-
__decorate$4([
|
|
627
|
-
webcomponentsBase.s()
|
|
628
|
-
], Tag.prototype, "colorScheme", void 0);
|
|
629
|
-
__decorate$4([
|
|
630
|
-
webcomponentsBase.s({ type: Boolean })
|
|
631
|
-
], Tag.prototype, "hideStateIcon", void 0);
|
|
632
|
-
__decorate$4([
|
|
633
|
-
webcomponentsBase.s({ type: Boolean })
|
|
634
|
-
], Tag.prototype, "interactive", void 0);
|
|
635
|
-
__decorate$4([
|
|
636
|
-
webcomponentsBase.s()
|
|
637
|
-
], Tag.prototype, "wrappingType", void 0);
|
|
638
|
-
__decorate$4([
|
|
639
|
-
webcomponentsBase.s()
|
|
640
|
-
], Tag.prototype, "size", void 0);
|
|
641
|
-
__decorate$4([
|
|
642
|
-
webcomponentsBase.s({ type: Boolean })
|
|
643
|
-
], Tag.prototype, "_hasIcon", void 0);
|
|
644
|
-
__decorate$4([
|
|
645
|
-
webcomponentsBase.s({ type: Boolean })
|
|
646
|
-
], Tag.prototype, "_iconOnly", void 0);
|
|
647
|
-
__decorate$4([
|
|
648
|
-
webcomponentsBase.d({ type: Node, "default": true })
|
|
649
|
-
], Tag.prototype, "text", void 0);
|
|
650
|
-
__decorate$4([
|
|
651
|
-
webcomponentsBase.d()
|
|
652
|
-
], Tag.prototype, "icon", void 0);
|
|
653
|
-
__decorate$4([
|
|
654
|
-
parametersBundle_css.i("@ui5/webcomponents")
|
|
655
|
-
], Tag, "i18nBundle", void 0);
|
|
656
|
-
Tag = Tag_1 = __decorate$4([
|
|
657
|
-
webcomponentsBase.m({
|
|
658
|
-
tag: "ui5-tag",
|
|
659
|
-
languageAware: true,
|
|
660
|
-
renderer: parametersBundle_css.d,
|
|
661
|
-
template: TagTemplate,
|
|
662
|
-
styles: tagCss,
|
|
663
|
-
})
|
|
664
|
-
/**
|
|
665
|
-
* Fired when the user clicks on an interactive tag.
|
|
666
|
-
*
|
|
667
|
-
* **Note:** The event will be fired if the `interactive` property is `true`
|
|
668
|
-
* @public
|
|
669
|
-
* @since 1.22.0
|
|
670
|
-
*/
|
|
671
|
-
,
|
|
672
|
-
eventStrict.l("click", {
|
|
673
|
-
bubbles: true,
|
|
674
|
-
})
|
|
675
|
-
], Tag);
|
|
676
|
-
Tag.define();
|
|
677
|
-
var Tag$1 = Tag;
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Empty Indicator Mode.
|
|
681
|
-
* @public
|
|
682
|
-
*/
|
|
683
|
-
var TextEmptyIndicatorMode;
|
|
684
|
-
(function (TextEmptyIndicatorMode) {
|
|
685
|
-
/**
|
|
686
|
-
* Empty indicator is never rendered.
|
|
687
|
-
* @public
|
|
688
|
-
*/
|
|
689
|
-
TextEmptyIndicatorMode["Off"] = "Off";
|
|
690
|
-
/**
|
|
691
|
-
* Empty indicator is rendered always when the component's content is empty.
|
|
692
|
-
* @public
|
|
693
|
-
*/
|
|
694
|
-
TextEmptyIndicatorMode["On"] = "On";
|
|
695
|
-
})(TextEmptyIndicatorMode || (TextEmptyIndicatorMode = {}));
|
|
696
|
-
var TextEmptyIndicatorMode$1 = TextEmptyIndicatorMode;
|
|
697
|
-
|
|
698
|
-
function TextTemplate() {
|
|
699
|
-
return parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: parametersBundle_css.jsx("span", { children: this._renderEmptyIndicator ?
|
|
700
|
-
parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("span", { className: "empty-indicator", "aria-hidden": "true", children: this._emptyIndicatorSymbol }), parametersBundle_css.jsx("span", { className: "empty-indicator-aria-label", children: this._emptyIndicatorAriaLabel })] })
|
|
701
|
-
:
|
|
702
|
-
parametersBundle_css.jsx("slot", {}) }) });
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
706
|
-
Icons.p("@ui5/webcomponents", "sap_horizon", async () => parametersBundle_css.defaultTheme$1);
|
|
707
|
-
var styles = `:host{max-width:100%;font-size:var(--sapFontSize);font-family:var(--sapFontFamily);color:var(--sapTextColor);line-height:normal;cursor:text;overflow:hidden}:host([max-lines="1"]){display:inline-block;text-overflow:ellipsis;white-space:nowrap}:host(:not([max-lines="1"])){display:-webkit-box;-webkit-line-clamp:var(--_ui5-v2-9-0_text_max_lines);line-clamp:var(--_ui5-v2-9-0_text_max_lines);-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.empty-indicator-aria-label{position:absolute!important;clip:rect(1px,1px,1px,1px);user-select:none;left:0;top:0;font-size:0}
|
|
708
|
-
`;
|
|
709
|
-
|
|
710
|
-
var __decorate$3 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
711
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
712
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
713
|
-
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;
|
|
714
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
715
|
-
};
|
|
716
|
-
var Text_1;
|
|
717
|
-
/**
|
|
718
|
-
* @class
|
|
719
|
-
*
|
|
720
|
-
* <h3>Overview</h3>
|
|
721
|
-
*
|
|
722
|
-
* The `ui5-text` component displays text that can be used in any content area of an application.
|
|
723
|
-
*
|
|
724
|
-
* <h3>Usage</h3>
|
|
725
|
-
*
|
|
726
|
-
* - Use the `ui5-text` if you want to display text inside a form, table, or any other content area.
|
|
727
|
-
* - Do not use the `ui5-text` if you need to reference input type of components (use ui5-label).
|
|
728
|
-
*
|
|
729
|
-
* <h3>Responsive behavior</h3>
|
|
730
|
-
*
|
|
731
|
-
* The `ui5-text` component is fully adaptive to all screen sizes.
|
|
732
|
-
* By default, the text will wrap when the space is not enough.
|
|
733
|
-
* In addition, the component supports truncation via the <code>max-lines</code> property,
|
|
734
|
-
* by defining the number of lines the text should wrap before start truncating.
|
|
735
|
-
*
|
|
736
|
-
* <h3>ES6 Module Import</h3>
|
|
737
|
-
*
|
|
738
|
-
* <code>import "@ui5/webcomponents/dist/Text";</code>
|
|
739
|
-
*
|
|
740
|
-
* @constructor
|
|
741
|
-
* @extends UI5Element
|
|
742
|
-
* @public
|
|
743
|
-
* @since 2.0.0
|
|
744
|
-
*/
|
|
745
|
-
let Text = Text_1 = class Text extends webcomponentsBase.b {
|
|
746
|
-
constructor() {
|
|
747
|
-
super(...arguments);
|
|
748
|
-
/**
|
|
749
|
-
* Defines the number of lines the text should wrap before it truncates.
|
|
750
|
-
* @default Infinity
|
|
751
|
-
* @public
|
|
752
|
-
*/
|
|
753
|
-
this.maxLines = Infinity;
|
|
754
|
-
/**
|
|
755
|
-
* Specifies if an empty indicator should be displayed when there is no text.
|
|
756
|
-
* @default "Off"
|
|
757
|
-
* @since 2.2.0
|
|
758
|
-
* @public
|
|
759
|
-
*/
|
|
760
|
-
this.emptyIndicatorMode = "Off";
|
|
761
|
-
}
|
|
762
|
-
onBeforeRendering() {
|
|
763
|
-
this.style.setProperty(Icons.d$1("--_ui5_text_max_lines"), `${this.maxLines}`);
|
|
764
|
-
}
|
|
765
|
-
get hasText() {
|
|
766
|
-
return parametersBundle_css.t(this.text);
|
|
767
|
-
}
|
|
768
|
-
get _renderEmptyIndicator() {
|
|
769
|
-
return !this.hasText && this.emptyIndicatorMode === TextEmptyIndicatorMode$1.On;
|
|
770
|
-
}
|
|
771
|
-
get _emptyIndicatorAriaLabel() {
|
|
772
|
-
return Text_1.i18nBundle.getText(parametersBundle_css.EMPTY_INDICATOR_ACCESSIBLE_TEXT);
|
|
773
|
-
}
|
|
774
|
-
get _emptyIndicatorSymbol() {
|
|
775
|
-
return Text_1.i18nBundle.getText(parametersBundle_css.EMPTY_INDICATOR_SYMBOL);
|
|
776
|
-
}
|
|
777
|
-
};
|
|
778
|
-
__decorate$3([
|
|
779
|
-
webcomponentsBase.s({ type: Number })
|
|
780
|
-
], Text.prototype, "maxLines", void 0);
|
|
781
|
-
__decorate$3([
|
|
782
|
-
webcomponentsBase.s()
|
|
783
|
-
], Text.prototype, "emptyIndicatorMode", void 0);
|
|
784
|
-
__decorate$3([
|
|
785
|
-
webcomponentsBase.d({ type: Node, "default": true })
|
|
786
|
-
], Text.prototype, "text", void 0);
|
|
787
|
-
__decorate$3([
|
|
788
|
-
parametersBundle_css.i("@ui5/webcomponents")
|
|
789
|
-
], Text, "i18nBundle", void 0);
|
|
790
|
-
Text = Text_1 = __decorate$3([
|
|
791
|
-
webcomponentsBase.m({
|
|
792
|
-
tag: "ui5-text",
|
|
793
|
-
renderer: parametersBundle_css.d,
|
|
794
|
-
template: TextTemplate,
|
|
795
|
-
styles,
|
|
796
|
-
})
|
|
797
|
-
], Text);
|
|
798
|
-
Text.define();
|
|
799
|
-
var Text$1 = Text;
|
|
1
|
+
sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdparty/webcomponents', 'sap/ushell/thirdparty/webcomponents-fiori', 'sap/ushell/thirdparty/event-strict', 'sap/ushell/thirdparty/i18n-defaults', 'sap/ushell/thirdparty/Tag', 'sap/ushell/thirdparty/ListItemTemplate', 'sap/ushell/thirdparty/Icons', 'sap/ushell/thirdparty/Avatar', 'sap/ushell/thirdparty/Button2', 'sap/ushell/thirdparty/Icon', 'sap/ushell/thirdparty/Text', 'sap/ushell/thirdparty/Label', 'sap/ushell/thirdparty/List', 'sap/ushell/thirdparty/ListItemCustom', 'sap/ushell/thirdparty/information', 'sap/ushell/thirdparty/parameters-bundle.css', 'sap/ushell/thirdparty/i18n-defaults2', 'sap/ushell/thirdparty/BusyIndicator', 'sap/ushell/thirdparty/toLowercaseEnumValue'], (function (webcomponentsBase, webcomponents, webcomponentsFiori, eventStrict, i18nDefaults, Tag, ListItemTemplate, Icons, Avatar, Button, Icon, Text, Label, List, ListItemCustom, information, parametersBundle_css, i18nDefaults$1, BusyIndicator, toLowercaseEnumValue) { 'use strict';
|
|
800
2
|
|
|
801
3
|
function PanelTemplate() {
|
|
802
|
-
return (
|
|
4
|
+
return (i18nDefaults.jsx(i18nDefaults.Fragment, { children: i18nDefaults.jsxs("div", { class: "ui5-panel-root", role: this.accRole, "aria-label": this.effectiveAccessibleName, "aria-labelledby": this.fixedPanelAriaLabelledbyReference, children: [this.hasHeaderOrHeaderText &&
|
|
803
5
|
// header: either header or h1 with header text
|
|
804
|
-
|
|
6
|
+
i18nDefaults.jsx("div", { class: {
|
|
805
7
|
"ui5-panel-heading-wrapper": true,
|
|
806
8
|
"ui5-panel-heading-wrapper-sticky": this.stickyHeader,
|
|
807
|
-
}, role: this.headingWrapperRole, "aria-level": this.headingWrapperAriaLevel, children:
|
|
808
|
-
|
|
809
|
-
|
|
9
|
+
}, role: this.headingWrapperRole, "aria-level": this.headingWrapperAriaLevel, children: i18nDefaults.jsxs("div", { onClick: this._headerClick, onKeyDown: this._headerKeyDown, onKeyUp: this._headerKeyUp, class: "ui5-panel-header", tabindex: this.headerTabIndex, role: this.accInfo.role, "aria-expanded": this.accInfo.ariaExpanded, "aria-controls": this.accInfo.ariaControls, "aria-labelledby": this.accInfo.ariaLabelledby, part: "header", children: [!this.fixed &&
|
|
10
|
+
i18nDefaults.jsx("div", { class: "ui5-panel-header-button-root", children: this._hasHeader ?
|
|
11
|
+
i18nDefaults.jsx(Button.Button, { design: "Transparent", class: "ui5-panel-header-button ui5-panel-header-button-with-icon", onClick: this._toggleButtonClick, accessibilityAttributes: this.accInfo.button.accessibilityAttributes, tooltip: this.accInfo.button.title, accessibleName: this.accInfo.button.ariaLabelButton, children: i18nDefaults.jsx("div", { class: "ui5-panel-header-icon-wrapper", children: i18nDefaults.jsx(Icon.Icon, { class: {
|
|
810
12
|
"ui5-panel-header-icon": true,
|
|
811
13
|
"ui5-panel-header-button-animated": !this.shouldNotAnimate,
|
|
812
|
-
}, name:
|
|
14
|
+
}, name: ListItemTemplate.slimArrowRight }) }) })
|
|
813
15
|
: // else
|
|
814
|
-
|
|
16
|
+
i18nDefaults.jsx(Icon.Icon, { class: {
|
|
815
17
|
"ui5-panel-header-button": true,
|
|
816
18
|
"ui5-panel-header-icon": true,
|
|
817
19
|
"ui5-panel-header-button-animated": !this.shouldNotAnimate,
|
|
818
|
-
}, name:
|
|
819
|
-
|
|
20
|
+
}, name: ListItemTemplate.slimArrowRight, showTooltip: true, accessibleName: this.toggleButtonTitle }) }), this._hasHeader ?
|
|
21
|
+
i18nDefaults.jsx("slot", { name: "header" })
|
|
820
22
|
: // else
|
|
821
|
-
|
|
23
|
+
i18nDefaults.jsx("div", { id: `${this._id}-header-title`, class: "ui5-panel-header-title", children: this.headerText })] }) }), i18nDefaults.jsx("div", { class: "ui5-panel-content", id: `${this._id}-content`, tabindex: -1, style: {
|
|
822
24
|
display: this._contentExpanded ? "block" : "none",
|
|
823
|
-
}, part: "content", children:
|
|
25
|
+
}, part: "content", children: i18nDefaults.jsx("slot", {}) })] }) }));
|
|
824
26
|
}
|
|
825
27
|
|
|
826
|
-
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () =>
|
|
827
|
-
Icons.p("@ui5/webcomponents", "sap_horizon", async () =>
|
|
828
|
-
var panelCss = `.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:block}:host{font-family:"72override",var(--sapFontFamily);background-color:var(--sapGroup_TitleBackground);border-radius:var(--_ui5-v2-
|
|
28
|
+
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => i18nDefaults.defaultThemeBase);
|
|
29
|
+
Icons.p("@ui5/webcomponents", "sap_horizon", async () => i18nDefaults.defaultTheme);
|
|
30
|
+
var panelCss = `.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:block}:host{font-family:"72override",var(--sapFontFamily);background-color:var(--sapGroup_TitleBackground);border-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius)}:host(:not([collapsed])){border-bottom:var(--_ui5-v2-10-0-rc-2_panel_border_bottom)}:host([fixed]) .ui5-panel-header{padding-left:1rem}.ui5-panel-header{min-height:var(--_ui5-v2-10-0-rc-2_panel_header_height);width:100%;position:relative;display:flex;justify-content:flex-start;align-items:center;outline:none;box-sizing:border-box;padding-right:var(--_ui5-v2-10-0-rc-2_panel_header_padding_right);font-family:"72override",var(--sapFontHeaderFamily);font-size:var(--sapGroup_Title_FontSize);font-weight:400;color:var(--sapGroup_TitleTextColor)}.ui5-panel-header-icon{color:var(--_ui5-v2-10-0-rc-2_panel_icon_color)}.ui5-panel-header-button-animated{transition:transform .4s ease-out}:host(:not([_has-header]):not([fixed])) .ui5-panel-header{cursor:pointer}:host(:not([_has-header]):not([fixed])) .ui5-panel-header:focus:after{content:"";position:absolute;pointer-events:none;z-index:2;border:var(--_ui5-v2-10-0-rc-2_panel_focus_border);border-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius);top:var(--_ui5-v2-10-0-rc-2_panel_focus_offset);bottom:var(--_ui5-v2-10-0-rc-2_panel_focus_bottom_offset);left:var(--_ui5-v2-10-0-rc-2_panel_focus_offset);right:var(--_ui5-v2-10-0-rc-2_panel_focus_offset)}:host(:not([collapsed]):not([_has-header]):not([fixed])) .ui5-panel-header:focus:after{border-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius_expanded)}:host(:not([collapsed])) .ui5-panel-header-button:not(.ui5-panel-header-button-with-icon),:host(:not([collapsed])) .ui5-panel-header-icon-wrapper [ui5-icon]{transform:var(--_ui5-v2-10-0-rc-2_panel_toggle_btn_rotation)}:host([fixed]) .ui5-panel-header-title{width:100%}.ui5-panel-heading-wrapper.ui5-panel-heading-wrapper-sticky{position:sticky;top:0;background-color:var(--_ui5-v2-10-0-rc-2_panel_header_background_color);z-index:100;border-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius)}.ui5-panel-header-title{width:calc(100% - var(--_ui5-v2-10-0-rc-2_panel_button_root_width));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui5-panel-content{padding:var(--_ui5-v2-10-0-rc-2_panel_content_padding);background-color:var(--sapGroup_ContentBackground);outline:none;border-bottom-left-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius);border-bottom-right-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius);overflow:auto}.ui5-panel-header-button-root{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:var(--_ui5-v2-10-0-rc-2_panel_button_root_width);height:var(--_ui5-v2-10-0-rc-2_panel_button_root_height);padding:var(--_ui5-v2-10-0-rc-2_panel_header_button_wrapper_padding);box-sizing:border-box}:host([fixed]:not([collapsed]):not([_has-header])) .ui5-panel-header,:host([collapsed]) .ui5-panel-header{border-bottom:.0625rem solid var(--sapGroup_TitleBorderColor)}:host([collapsed]) .ui5-panel-header{border-bottom-left-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius);border-bottom-right-radius:var(--_ui5-v2-10-0-rc-2_panel_border_radius)}:host(:not([fixed]):not([collapsed])) .ui5-panel-header{border-bottom:var(--_ui5-v2-10-0-rc-2_panel_default_header_border)}[ui5-button].ui5-panel-header-button{display:flex;justify-content:center;align-items:center;min-width:initial;height:100%;width:100%}.ui5-panel-header-icon-wrapper{display:flex;justify-content:center;align-items:center}.ui5-panel-header-icon-wrapper,.ui5-panel-header-icon-wrapper .ui5-panel-header-icon{color:inherit}.ui5-panel-header-icon-wrapper,[ui5-button].ui5-panel-header-button-with-icon [ui5-icon]{pointer-events:none}.ui5-panel-root{height:100%;display:flex;flex-direction:column}
|
|
829
31
|
`;
|
|
830
32
|
|
|
831
33
|
var __decorate$2 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -969,7 +171,7 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
969
171
|
return true;
|
|
970
172
|
}
|
|
971
173
|
get shouldNotAnimate() {
|
|
972
|
-
return this.noAnimation || webcomponentsBase.d$
|
|
174
|
+
return this.noAnimation || webcomponentsBase.d$2() === Icons.u$1.None;
|
|
973
175
|
}
|
|
974
176
|
_headerClick(e) {
|
|
975
177
|
if (!this.shouldToggle(e.target)) {
|
|
@@ -1034,7 +236,7 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1034
236
|
return target.classList.contains("sapMPanelWrappingDiv");
|
|
1035
237
|
}
|
|
1036
238
|
get toggleButtonTitle() {
|
|
1037
|
-
return Panel_1.i18nBundle.getText(
|
|
239
|
+
return Panel_1.i18nBundle.getText(i18nDefaults.PANEL_ICON);
|
|
1038
240
|
}
|
|
1039
241
|
get expanded() {
|
|
1040
242
|
return !this.collapsed;
|
|
@@ -1128,14 +330,14 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1128
330
|
webcomponentsBase.d()
|
|
1129
331
|
], Panel.prototype, "header", void 0);
|
|
1130
332
|
__decorate$2([
|
|
1131
|
-
|
|
333
|
+
i18nDefaults.i("@ui5/webcomponents")
|
|
1132
334
|
], Panel, "i18nBundle", void 0);
|
|
1133
335
|
Panel = Panel_1 = __decorate$2([
|
|
1134
336
|
webcomponentsBase.m({
|
|
1135
337
|
tag: "ui5-panel",
|
|
1136
338
|
fastNavigation: true,
|
|
1137
339
|
languageAware: true,
|
|
1138
|
-
renderer:
|
|
340
|
+
renderer: i18nDefaults.d,
|
|
1139
341
|
template: PanelTemplate,
|
|
1140
342
|
styles: panelCss,
|
|
1141
343
|
})
|
|
@@ -1152,12 +354,12 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1152
354
|
var Panel$1 = Panel;
|
|
1153
355
|
|
|
1154
356
|
function BarTemplate() {
|
|
1155
|
-
return (
|
|
357
|
+
return (i18nDefaults.jsxs("div", { class: "ui5-bar-root", "aria-label": this.accInfo.label, role: "toolbar", part: "bar", children: [i18nDefaults.jsx("div", { class: "ui5-bar-content-container ui5-bar-startcontent-container", part: "startContent", children: i18nDefaults.jsx("slot", { name: "startContent" }) }), i18nDefaults.jsx("div", { class: "ui5-bar-content-container ui5-bar-midcontent-container", part: "midContent", children: i18nDefaults.jsx("slot", {}) }), i18nDefaults.jsx("div", { class: "ui5-bar-content-container ui5-bar-endcontent-container", part: "endContent", children: i18nDefaults.jsx("slot", { name: "endContent" }) })] }));
|
|
1156
358
|
}
|
|
1157
359
|
|
|
1158
|
-
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () =>
|
|
1159
|
-
Icons.p("@ui5/webcomponents", "sap_horizon", async () =>
|
|
1160
|
-
var BarCss = `:host{background-color:var(--sapPageHeader_Background);height:var(--_ui5-v2-
|
|
360
|
+
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => i18nDefaults.defaultThemeBase);
|
|
361
|
+
Icons.p("@ui5/webcomponents", "sap_horizon", async () => i18nDefaults.defaultTheme);
|
|
362
|
+
var BarCss = `:host{background-color:var(--sapPageHeader_Background);height:var(--_ui5-v2-10-0-rc-2_bar_base_height);width:100%;box-shadow:var(--sapContent_HeaderShadow);display:block}.ui5-bar-root{display:flex;align-items:center;justify-content:space-between;height:100%;width:100%;background-color:inherit;box-shadow:inherit;border-radius:inherit}.ui5-bar-root .ui5-bar-startcontent-container{padding-inline-start:var(--_ui5-v2-10-0-rc-2_bar-start-container-padding-start);display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.ui5-bar-root .ui5-bar-content-container{min-width:calc(30% - calc(var(--_ui5-v2-10-0-rc-2_bar-start-container-padding-start) + var(--_ui5-v2-10-0-rc-2_bar-end-container-padding-end) + (2*var(--_ui5-v2-10-0-rc-2_bar-mid-container-padding-start-end))))}.ui5-bar-root.ui5-bar-root-shrinked .ui5-bar-content-container{min-width:0px;overflow:hidden;height:100%}.ui5-bar-root .ui5-bar-endcontent-container{padding-inline-end:var(--_ui5-v2-10-0-rc-2_bar-end-container-padding-end);display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.ui5-bar-root .ui5-bar-midcontent-container{padding:0 var(--_ui5-v2-10-0-rc-2_bar-mid-container-padding-start-end);display:flex;flex-direction:row;align-items:center;justify-content:center}:host([design="Footer"]){background-color:var(--sapPageFooter_Background);border-top:.0625rem solid var(--sapPageFooter_BorderColor);box-shadow:none}:host([design="Subheader"]){height:var(--_ui5-v2-10-0-rc-2_bar_subheader_height);margin-top:var(--_ui5-v2-10-0-rc-2_bar_subheader_margin-top)}:host([design="FloatingFooter"]){border-radius:var(--sapElement_BorderCornerRadius);background-color:var(--sapPageFooter_Background);box-shadow:var(--sapContent_Shadow1);border:none}::slotted(*){margin:0 .25rem}
|
|
1161
363
|
`;
|
|
1162
364
|
|
|
1163
365
|
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -1228,15 +430,15 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1228
430
|
bar.classList.toggle("ui5-bar-root-shrinked", needShrinked);
|
|
1229
431
|
}
|
|
1230
432
|
onEnterDOM() {
|
|
1231
|
-
webcomponentsBase.f
|
|
433
|
+
webcomponentsBase.f.register(this, this._handleResizeBound);
|
|
1232
434
|
this.getDomRef().querySelectorAll(".ui5-bar-content-container").forEach(child => {
|
|
1233
|
-
webcomponentsBase.f
|
|
435
|
+
webcomponentsBase.f.register(child, this._handleResizeBound);
|
|
1234
436
|
}, this);
|
|
1235
437
|
}
|
|
1236
438
|
onExitDOM() {
|
|
1237
|
-
webcomponentsBase.f
|
|
439
|
+
webcomponentsBase.f.deregister(this, this._handleResizeBound);
|
|
1238
440
|
this.getDomRef().querySelectorAll(".ui5-bar-content-container").forEach(child => {
|
|
1239
|
-
webcomponentsBase.f
|
|
441
|
+
webcomponentsBase.f.deregister(child, this._handleResizeBound);
|
|
1240
442
|
}, this);
|
|
1241
443
|
}
|
|
1242
444
|
};
|
|
@@ -1256,7 +458,7 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1256
458
|
webcomponentsBase.m({
|
|
1257
459
|
tag: "ui5-bar",
|
|
1258
460
|
fastNavigation: true,
|
|
1259
|
-
renderer:
|
|
461
|
+
renderer: i18nDefaults.d,
|
|
1260
462
|
styles: BarCss,
|
|
1261
463
|
template: BarTemplate,
|
|
1262
464
|
})
|
|
@@ -1337,41 +539,41 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1337
539
|
var userEdit = "user-edit";
|
|
1338
540
|
|
|
1339
541
|
function UserMenuTemplate() {
|
|
1340
|
-
return (
|
|
542
|
+
return (i18nDefaults.jsxs(ListItemTemplate.ResponsivePopover, { id: "user-menu-rp", class: "ui5-user-menu-rp", placement: "Bottom", verticalAlign: "Bottom", horizontalAlign: "End", tabindex: -1, accessibleName: this.accessibleNameText, "aria-labelledby": this.accessibleNameText, open: this.open, opener: this.opener, onClose: this._handlePopoverAfterClose, onOpen: this._handlePopoverAfterOpen, onScroll: this._handleScroll, children: [i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [i18nDefaults.jsxs(Bar$1, { class: {
|
|
1341
543
|
"ui5-user-menu-fixed-header": true,
|
|
1342
544
|
"ui5-user-menu-rp-scrolled": this._isScrolled || this._titleMovedToHeader
|
|
1343
545
|
}, slot: "header", children: [this._titleMovedToHeader &&
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
546
|
+
i18nDefaults.jsx(ListItemTemplate.Title, { level: "H1", wrappingType: "None", children: this._selectedAccount.titleText }), this._isPhone && i18nDefaults.jsx(Button.Button, { icon: information.decline, design: "Transparent", accessibleName: this._closeDialogAriaLabel, onClick: this._closeUserMenu, slot: "endContent" })] }), i18nDefaults.jsx("div", { class: "ui5-user-menu-header", children: headerContent.call(this) })] }), this.showOtherAccounts &&
|
|
547
|
+
i18nDefaults.jsx(i18nDefaults.Fragment, { children: otherAccountsContent.call(this) }), this.menuItems.length > 0 &&
|
|
548
|
+
i18nDefaults.jsx(List.List, { id: "ui5-user-menu-list", class: "ui5-user-menu-list", selectionMode: "None", separators: "None", accessibleRole: "Menu", onItemClick: this._handleMenuItemClick, "onui5-close-menu": this._handleMenuItemClose, children: i18nDefaults.jsx("slot", {}) }), i18nDefaults.jsx("div", { slot: "footer", class: "ui5-user-menu-footer", children: i18nDefaults.jsx(Button.Button, { class: "ui5-user-menu-sign-out-btn", design: "Transparent", icon: log, onClick: this._handleSignOutClick, children: this._signOutButtonText }) })] }));
|
|
1347
549
|
}
|
|
1348
550
|
function headerContent() {
|
|
1349
|
-
return (
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
551
|
+
return (i18nDefaults.jsx(i18nDefaults.Fragment, { children: this._selectedAccount &&
|
|
552
|
+
i18nDefaults.jsxs("div", { class: "ui5-user-menu-selected-account", "aria-labelledby": this._ariaLabelledByAccountInformationText, children: [i18nDefaults.jsxs(Avatar, { size: "L", onClick: this._handleAvatarClick, initials: this._selectedAccount._initials, fallbackIcon: personPlaceholder, class: "ui5-user-menu--selected-account-avatar", interactive: true, children: [this._selectedAccount.avatarSrc &&
|
|
553
|
+
i18nDefaults.jsx("img", { src: this._selectedAccount.avatarSrc }), this.showEditButton &&
|
|
554
|
+
i18nDefaults.jsx(Tag.Tag, { slot: "badge", wrappingType: "None", design: "Set1", colorScheme: "5", title: this._editAvatarTooltip, children: i18nDefaults.jsx(Icon.Icon, { slot: "icon", name: ListItemTemplate.edit }) })] }), this._selectedAccount.titleText &&
|
|
555
|
+
i18nDefaults.jsx(Text.Text, { maxLines: 2, id: "selected-account-title", class: "ui5-user-menu-selected-account-title", children: this._selectedAccount.titleText }), this._selectedAccount.subtitleText &&
|
|
556
|
+
i18nDefaults.jsx(Text.Text, { maxLines: 1, class: "ui5-user-menu-selected-account-subtitleText", children: this._selectedAccount.subtitleText }), this._selectedAccount.description &&
|
|
557
|
+
i18nDefaults.jsx(Text.Text, { maxLines: 1, class: "ui5-user-menu-selected-account-description", children: this._selectedAccount.description }), this.showManageAccount &&
|
|
558
|
+
i18nDefaults.jsx(Button.Button, { id: "selected-account-manage-btn", icon: userSettings, class: "ui5-user-menu-manage-account-btn", onClick: this._handleManageAccountClick, children: this._manageAccountButtonText })] }) }));
|
|
1357
559
|
}
|
|
1358
560
|
function otherAccountsContent() {
|
|
1359
|
-
return (
|
|
1360
|
-
|
|
1361
|
-
|
|
561
|
+
return (i18nDefaults.jsx(i18nDefaults.Fragment, { children: i18nDefaults.jsxs(Panel$1, { collapsed: true, class: "ui5-user-menu-other-accounts", "aria-labelledby": this._otherAccountsButtonText, children: [i18nDefaults.jsxs("div", { slot: "header", class: "ui5-user-menu-account-header", children: [i18nDefaults.jsxs(ListItemTemplate.Title, { slot: "header", level: "H4", "wrapping-type": "None", children: [this._otherAccountsButtonText, " (", this._otherAccounts.length, ")"] }), this.showEditAccounts &&
|
|
562
|
+
i18nDefaults.jsx(Button.Button, { slot: "header", class: "ui5-user-menu-add-account-btn", design: "Transparent", icon: userEdit, onClick: this._handleEditAccountsClick, tooltip: this._editAccountsTooltip })] }), this._otherAccounts.length > 0 &&
|
|
563
|
+
i18nDefaults.jsx(i18nDefaults.Fragment, { children: otherAccountsList.call(this) })] }) }));
|
|
1362
564
|
}
|
|
1363
565
|
function otherAccountsList() {
|
|
1364
|
-
return (
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
566
|
+
return (i18nDefaults.jsx(i18nDefaults.Fragment, { children: i18nDefaults.jsx(List.List, { onItemClick: this._handleAccountSwitch, "aria-labelledby": this._ariaLabelledByActions, loadingDelay: 0, loading: this._otherAccounts.some(account => account.loading === true), children: this._otherAccounts.map((account, index) => i18nDefaults.jsx(ListItemCustom.ListItemCustom, { ref: this.captureRef.bind(account), "aria-labelledby": account.titleText, "aria-possition": index + 1, "aria-setsize": this._otherAccounts.length, "aria-dectiption": this.getAccountDescriptionText(account), children: i18nDefaults.jsxs("div", { class: "ui5-user-menu-other-accounts-content", children: [i18nDefaults.jsx(Avatar, { slot: "image", size: "S", initials: account._initials, fallbackIcon: personPlaceholder, children: account.avatarSrc &&
|
|
567
|
+
i18nDefaults.jsx("img", { src: account.avatarSrc }) }), i18nDefaults.jsxs("div", { class: "ui5-user-menu-other-accounts-info", children: [account.titleText &&
|
|
568
|
+
i18nDefaults.jsx(ListItemTemplate.Title, { class: "ui5-user-menu-other-accounts-title", "wrapping-type": "None", children: account.titleText }), account.subtitleText &&
|
|
569
|
+
i18nDefaults.jsx(Label, { class: "ui5-user-menu-other-accounts-additional-info", "wrapping-type": "None", children: account.subtitleText }), account.description &&
|
|
570
|
+
i18nDefaults.jsx(Label, { class: "ui5-user-menu-other-accounts-additional-info", "wrapping-type": "None", children: account.description })] }), i18nDefaults.jsx("div", { children: account.selected &&
|
|
571
|
+
i18nDefaults.jsx(Icon.Icon, { part: "icon", name: Tag.selectedAccount, class: "ui5-user-menu-selected-account-icon", mode: "Decorative" }) })] }) })) }) }));
|
|
1370
572
|
}
|
|
1371
573
|
|
|
1372
|
-
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () =>
|
|
574
|
+
Icons.p("@ui5/webcomponents-theming", "sap_horizon", async () => i18nDefaults.defaultThemeBase);
|
|
1373
575
|
Icons.p("@ui5/webcomponents-fiori", "sap_horizon", async () => parametersBundle_css.defaultTheme);
|
|
1374
|
-
var UserMenuCss = `.ui5-user-menu-rp{width:20rem}.ui5-user-menu-rp::part(content),.ui5-user-menu-rp::part(footer){padding-inline:.5rem}.ui5-user-menu-rp::part(header){box-shadow:none;padding:0}.ui5-user-menu-header{display:flex;flex-direction:column}[on-phone] .ui5-user-menu-header{padding-inline:0}.ui5-user-menu-fixed-header:not(.ui5-user-menu-rp-scrolled){box-shadow:none}.ui5-user-menu-fixed-header::part(startContent),.ui5-user-menu-fixed-header::part(endContent){padding:0}.ui5-user-menu-fixed-header [ui5-button]{margin-inline:.5rem;font-family:var(--sapFontSemiboldFamily)}.ui5-user-menu-rp::part(content){padding-top:0;padding-bottom:.5rem}.ui5-user-menu-rp::part(footer){padding-block:.5rem}.ui5-user-menu-selected-account{display:flex;align-items:center;flex-direction:column;margin-bottom:1rem;overflow:hidden}.ui5-user-menu--selected-account-avatar{margin-block-start:.25rem;margin-block-end:.5rem}.ui5-user-menu-selected-account-title{margin-block:.25rem;font-family:var(--sapFontBoldFamily);font-size:var(--sapFontLargeSize);color:var(--sapTextColor)}.ui5-user-menu-selected-account-subtitleText{margin-bottom:.25rem;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);color:var(--sapContent_LabelColor)}.ui5-user-menu-selected-account-description{margin-bottom:1rem;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);color:var(--sapContent_LabelColor)}.ui5-user-menu-decline-btn{align-self:flex-end;font-family:var(--sapFontSemiboldFamily)}.ui5-user-menu-manage-account-btn,.ui5-user-menu-sign-out-btn{font-family:var(--sapFontSemiboldFamily)}.ui5-user-menu-other-accounts{margin-bottom:1rem}.ui5-user-menu-other-accounts::part(header){border-bottom-left-radius:0;border-bottom-right-radius:0}.ui5-user-menu-other-accounts::part(content){padding:0}.ui5-user-menu-other-accounts-content{display:flex;align-items:center;width:100%;height:4.5rem;gap:12px;padding-block:8px 16px}.ui5-user-menu-other-accounts-info{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;align-self:stretch;width:100%;overflow:hidden}.ui5-user-menu-other-accounts-title{overflow:hidden;color:var(--sapList_TextColor);text-overflow:ellipsis;font-family:var(--sapFontBoldFamily);font-size:var(--sapFontSize);font-style:normal;line-height:normal}.ui5-user-menu-other-accounts-additional-info{overflow:hidden;color:var(--sapContent_LabelColor);text-overflow:ellipsis;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-style:normal;line-height:normal}.ui5-user-menu-selected-account-icon{display:flex;width:18px;align-items:center;align-self:stretch;color:var(--sapContent_NonInteractiveIconColor);font-family:var(--_ui5-v2-
|
|
576
|
+
var UserMenuCss = `.ui5-user-menu-rp{width:20rem}.ui5-user-menu-rp::part(content),.ui5-user-menu-rp::part(footer){padding-inline:.5rem}.ui5-user-menu-rp::part(header){box-shadow:none;padding:0}.ui5-user-menu-header{display:flex;flex-direction:column}[on-phone] .ui5-user-menu-header{padding-inline:0}.ui5-user-menu-fixed-header:not(.ui5-user-menu-rp-scrolled){box-shadow:none}.ui5-user-menu-fixed-header::part(startContent),.ui5-user-menu-fixed-header::part(endContent){padding:0}.ui5-user-menu-fixed-header [ui5-button]{margin-inline:.5rem;font-family:var(--sapFontSemiboldFamily)}.ui5-user-menu-rp::part(content){padding-top:0;padding-bottom:.5rem}.ui5-user-menu-rp::part(footer){padding-block:.5rem}.ui5-user-menu-selected-account{display:flex;align-items:center;flex-direction:column;margin-bottom:1rem;overflow:hidden}.ui5-user-menu--selected-account-avatar{margin-block-start:.25rem;margin-block-end:.5rem}.ui5-user-menu-selected-account-title{margin-block:.25rem;font-family:var(--sapFontBoldFamily);font-size:var(--sapFontLargeSize);color:var(--sapTextColor)}.ui5-user-menu-selected-account-subtitleText{margin-bottom:.25rem;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);color:var(--sapContent_LabelColor)}.ui5-user-menu-selected-account-description{margin-bottom:1rem;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);color:var(--sapContent_LabelColor)}.ui5-user-menu-decline-btn{align-self:flex-end;font-family:var(--sapFontSemiboldFamily)}.ui5-user-menu-manage-account-btn,.ui5-user-menu-sign-out-btn{font-family:var(--sapFontSemiboldFamily)}.ui5-user-menu-other-accounts{margin-bottom:1rem}.ui5-user-menu-other-accounts::part(header){border-bottom-left-radius:0;border-bottom-right-radius:0}.ui5-user-menu-other-accounts::part(content){padding:0}.ui5-user-menu-other-accounts-content{display:flex;align-items:center;width:100%;height:4.5rem;gap:12px;padding-block:8px 16px}.ui5-user-menu-other-accounts-info{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;align-self:stretch;width:100%;overflow:hidden}.ui5-user-menu-other-accounts-title{overflow:hidden;color:var(--sapList_TextColor);text-overflow:ellipsis;font-family:var(--sapFontBoldFamily);font-size:var(--sapFontSize);font-style:normal;line-height:normal}.ui5-user-menu-other-accounts-additional-info{overflow:hidden;color:var(--sapContent_LabelColor);text-overflow:ellipsis;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-style:normal;line-height:normal}.ui5-user-menu-selected-account-icon{display:flex;width:18px;align-items:center;align-self:stretch;color:var(--sapContent_NonInteractiveIconColor);font-family:var(--_ui5-v2-10-0-rc-2_slider_handle_font_family);font-size:1.125rem}.ui5-user-menu-account-header{display:flex;flex:1;justify-content:space-between;align-items:center}.ui5-user-menu-footer{display:flex;flex:1;justify-content:flex-end;align-items:center}
|
|
1375
577
|
`;
|
|
1376
578
|
|
|
1377
579
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -1468,7 +670,7 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1468
670
|
}
|
|
1469
671
|
}
|
|
1470
672
|
get _isPhone() {
|
|
1471
|
-
return Icons.d();
|
|
673
|
+
return Icons.d$1();
|
|
1472
674
|
}
|
|
1473
675
|
_handleScroll(e) {
|
|
1474
676
|
this._isScrolled = e.detail.scrollTop > 0;
|
|
@@ -1556,37 +758,37 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1556
758
|
return this.accounts;
|
|
1557
759
|
}
|
|
1558
760
|
get _manageAccountButtonText() {
|
|
1559
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_MANAGE_ACCOUNT_BUTTON_TXT);
|
|
761
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_MANAGE_ACCOUNT_BUTTON_TXT);
|
|
1560
762
|
}
|
|
1561
763
|
get _otherAccountsButtonText() {
|
|
1562
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_OTHER_ACCOUNT_BUTTON_TXT);
|
|
764
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_OTHER_ACCOUNT_BUTTON_TXT);
|
|
1563
765
|
}
|
|
1564
766
|
get _signOutButtonText() {
|
|
1565
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_SIGN_OUT_BUTTON_TXT);
|
|
767
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_SIGN_OUT_BUTTON_TXT);
|
|
1566
768
|
}
|
|
1567
769
|
get _editAvatarTooltip() {
|
|
1568
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_EDIT_AVATAR_TXT);
|
|
770
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_EDIT_AVATAR_TXT);
|
|
1569
771
|
}
|
|
1570
772
|
get _editAccountsTooltip() {
|
|
1571
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_EDIT_ACCOUNTS_TXT);
|
|
773
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_EDIT_ACCOUNTS_TXT);
|
|
1572
774
|
}
|
|
1573
775
|
get _closeDialogAriaLabel() {
|
|
1574
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_CLOSE_DIALOG_BUTTON);
|
|
776
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_CLOSE_DIALOG_BUTTON);
|
|
1575
777
|
}
|
|
1576
778
|
get accessibleNameText() {
|
|
1577
779
|
if (!this._selectedAccount) {
|
|
1578
780
|
return "";
|
|
1579
781
|
}
|
|
1580
|
-
return `${UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_POPOVER_ACCESSIBLE_NAME)} ${this._selectedAccount.titleText}`;
|
|
782
|
+
return `${UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_POPOVER_ACCESSIBLE_NAME)} ${this._selectedAccount.titleText}`;
|
|
1581
783
|
}
|
|
1582
784
|
get _ariaLabelledByAccountInformationText() {
|
|
1583
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_CURRENT_INFORMATION_TXT);
|
|
785
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_CURRENT_INFORMATION_TXT);
|
|
1584
786
|
}
|
|
1585
787
|
get _ariaLabelledByActions() {
|
|
1586
|
-
return UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_ACTIONS_TXT);
|
|
788
|
+
return UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_ACTIONS_TXT);
|
|
1587
789
|
}
|
|
1588
790
|
getAccountDescriptionText(account) {
|
|
1589
|
-
return `${account.subtitleText} ${account.description} ${account.selected ? UserMenu_1.i18nBundle.getText(i18nDefaults.USER_MENU_POPOVER_ACCESSIBLE_ACCOUNT_SELECTED_TXT) : ""}`;
|
|
791
|
+
return `${account.subtitleText} ${account.description} ${account.selected ? UserMenu_1.i18nBundle.getText(i18nDefaults$1.USER_MENU_POPOVER_ACCESSIBLE_ACCOUNT_SELECTED_TXT) : ""}`;
|
|
1590
792
|
}
|
|
1591
793
|
getAccountByRefId(refId) {
|
|
1592
794
|
return this.accounts.find(account => account._id === refId);
|
|
@@ -1601,7 +803,7 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1601
803
|
webcomponentsBase.s({ type: Boolean })
|
|
1602
804
|
], UserMenu.prototype, "open", void 0);
|
|
1603
805
|
__decorate([
|
|
1604
|
-
webcomponentsBase.s({ converter:
|
|
806
|
+
webcomponentsBase.s({ converter: ListItemTemplate.e })
|
|
1605
807
|
], UserMenu.prototype, "opener", void 0);
|
|
1606
808
|
__decorate([
|
|
1607
809
|
webcomponentsBase.s({ type: Boolean })
|
|
@@ -1637,22 +839,22 @@ sap.ui.define(['sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdpart
|
|
|
1637
839
|
webcomponentsBase.s({ type: Boolean })
|
|
1638
840
|
], UserMenu.prototype, "_isScrolled", void 0);
|
|
1639
841
|
__decorate([
|
|
1640
|
-
o("#user-menu-rp")
|
|
842
|
+
Tag.o("#user-menu-rp")
|
|
1641
843
|
], UserMenu.prototype, "_responsivePopover", void 0);
|
|
1642
844
|
__decorate([
|
|
1643
|
-
o("#selected-account-title")
|
|
845
|
+
Tag.o("#selected-account-title")
|
|
1644
846
|
], UserMenu.prototype, "_selectedAccountTitleEl", void 0);
|
|
1645
847
|
__decorate([
|
|
1646
|
-
o("#selected-account-manage-btn")
|
|
848
|
+
Tag.o("#selected-account-manage-btn")
|
|
1647
849
|
], UserMenu.prototype, "_selectedAccountManageBtn", void 0);
|
|
1648
850
|
__decorate([
|
|
1649
|
-
|
|
851
|
+
i18nDefaults.i("@ui5/webcomponents-fiori")
|
|
1650
852
|
], UserMenu, "i18nBundle", void 0);
|
|
1651
853
|
UserMenu = UserMenu_1 = __decorate([
|
|
1652
854
|
webcomponentsBase.m({
|
|
1653
855
|
tag: "ui5-user-menu",
|
|
1654
856
|
languageAware: true,
|
|
1655
|
-
renderer:
|
|
857
|
+
renderer: i18nDefaults.d,
|
|
1656
858
|
template: UserMenuTemplate,
|
|
1657
859
|
styles: [UserMenuCss],
|
|
1658
860
|
})
|