@sapui5/sap.ushell 1.136.2 → 1.136.3
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/ApplicationType/wcfResolution.js +37 -32
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/Functions.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/Resolvers.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/TemplateParameterParser.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor/utils.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +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/appIntegration/AppLifeCycle.js +97 -50
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +6 -6
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +10 -6
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +17 -26
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +1 -9
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_cs.properties +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_hu.properties +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_vi.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 +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +3 -28
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/Component.js +3 -26
- 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 +5 -2
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsList.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +0 -3
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +8 -22
- package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +10 -17
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +5 -0
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Favorites.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ms.properties +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Avatar.js +7 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +10 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +1 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +81 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +80 -2
- package/src/main/js/sap/ushell/library.js +1 -1
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderer/Renderer.js +15 -6
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +19 -20
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +6 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +2 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +4 -2
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/BookmarkV2.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +1 -1
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/NotificationsV2.js +14 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -1
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/state/BackNavigation.js +1 -1
- package/src/main/js/sap/ushell/state/ContentDensity.js +12 -1
- package/src/main/js/sap/ushell/state/Favicon.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ShellBar.less +2 -1
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +1 -1
- package/src/main/js/sap/ushell/themes/base/ToolAreaItem.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +6 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +1 -1
- package/src/main/js/sap/ushell/thirdparty/Avatar.js +79 -12
- package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +15 -9
- package/src/main/js/sap/ushell/thirdparty/Button2.js +25 -6
- package/src/main/js/sap/ushell/thirdparty/Icon.js +5 -5
- package/src/main/js/sap/ushell/thirdparty/Icons.js +69 -68
- package/src/main/js/sap/ushell/thirdparty/Link.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/List.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/Menu.js +65 -76
- package/src/main/js/sap/ushell/thirdparty/MenuItem.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +342 -34
- package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +6 -6
- package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +5 -5
- package/src/main/js/sap/ushell/thirdparty/{ListItemTemplate.js → ResponsivePopover.js} +2986 -2830
- package/src/main/js/sap/ushell/thirdparty/ShellBar.js +112 -79
- package/src/main/js/sap/ushell/thirdparty/Tag.js +6 -6
- package/src/main/js/sap/ushell/thirdparty/Text.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +22 -22
- package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +3 -3
- 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 +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +27 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +23 -8
- 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 +27 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +20 -8
- 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 +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +4 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +5 -2
- 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_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.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 +1 -1
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/information.js +10 -10
- package/src/main/js/sap/ushell/thirdparty/overflow.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/toLowercaseEnumValue.js +3 -0
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +13 -13
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +5 -2
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
- 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.js +25 -0
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +8 -4
- package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +0 -95
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdparty/webcomponents', 'sap/ushell/thirdparty/i18n-defaults', 'sap/ushell/thirdparty/event-strict', 'sap/ushell/thirdparty/Icons', 'sap/ushell/thirdparty/information', 'sap/ushell/thirdparty/
|
|
1
|
+
sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdparty/webcomponents', 'sap/ushell/thirdparty/i18n-defaults', 'sap/ushell/thirdparty/event-strict', 'sap/ushell/thirdparty/Icons', 'sap/ushell/thirdparty/information', 'sap/ushell/thirdparty/ResponsivePopover', 'sap/ushell/thirdparty/BusyIndicator', 'sap/ushell/thirdparty/Button2', 'sap/ushell/thirdparty/List', 'sap/ushell/thirdparty/Icon'], (function (exports, webcomponentsBase, webcomponents, i18nDefaults, eventStrict, Icons, information, ResponsivePopover, BusyIndicator, Button, List, Icon) { 'use strict';
|
|
2
2
|
|
|
3
3
|
const name$1 = "nav-back";
|
|
4
4
|
const pathData$1 = "M375.5 426q9 9 9 22.5t-9 22.5q-10 10-23 10t-23-10l-192-192q-9-9-9-22.5t9-22.5l191-193q10-10 23-10t22 10q10 9 10 22t-10 23l-157 159q-5 5-5 11.5t5 11.5z";
|
|
@@ -7,7 +7,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
7
7
|
const collection$1 = "SAP-icons-v4";
|
|
8
8
|
const packageName$1 = "sap/ushell/gen/ui5/webcomponents-icons";
|
|
9
9
|
|
|
10
|
-
Icons.f(name$1, { pathData: pathData$1, ltr: ltr$1, accData: accData$1, collection: collection$1, packageName: packageName$1 });
|
|
10
|
+
Icons.f$2(name$1, { pathData: pathData$1, ltr: ltr$1, accData: accData$1, collection: collection$1, packageName: packageName$1 });
|
|
11
11
|
|
|
12
12
|
const name = "nav-back";
|
|
13
13
|
const pathData = "M326 96q11 0 18.5 7.5T352 122q0 10-8 18L223 256l121 116q8 8 8 18 0 11-7.5 18.5T326 416q-10 0-17-7L168 274q-8-6-8-18 0-11 8-19l141-134q7-7 17-7z";
|
|
@@ -16,25 +16,235 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
16
16
|
const collection = "SAP-icons-v5";
|
|
17
17
|
const packageName = "sap/ushell/gen/ui5/webcomponents-icons";
|
|
18
18
|
|
|
19
|
-
Icons.f(name, { pathData, ltr, accData, collection, packageName });
|
|
19
|
+
Icons.f$2(name, { pathData, ltr, accData, collection, packageName });
|
|
20
20
|
|
|
21
21
|
var navBackIcon = "nav-back";
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Menu item group check modes.
|
|
25
|
+
* @since 2.12.0
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
var MenuItemGroupCheckMode;
|
|
29
|
+
(function (MenuItemGroupCheckMode) {
|
|
30
|
+
/**
|
|
31
|
+
* default type (items in a group cannot be checked)
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
MenuItemGroupCheckMode["None"] = "None";
|
|
35
|
+
/**
|
|
36
|
+
* Single item check mode (only one item in a group can be checked at a time)
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
MenuItemGroupCheckMode["Single"] = "Single";
|
|
40
|
+
/**
|
|
41
|
+
* Multiple items check mode (multiple items in a group can be checked at a time)
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
MenuItemGroupCheckMode["Multiple"] = "Multiple";
|
|
45
|
+
})(MenuItemGroupCheckMode || (MenuItemGroupCheckMode = {}));
|
|
46
|
+
var MenuItemGroupCheckMode$1 = MenuItemGroupCheckMode;
|
|
47
|
+
|
|
48
|
+
function MenuSeparatorTemplate() {
|
|
49
|
+
return (i18nDefaults.jsx(ResponsivePopover.ListItemCustom, { class: "ui5-menu-separator", _forcedAccessibleRole: "separator", disabled: true }));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
Icons.p("sap/ushell/gen/ui5/webcomponents-theming", "sap_horizon", async () => i18nDefaults.defaultThemeBase);
|
|
53
|
+
Icons.p("sap/ushell/gen/ui5/webcomponents", "sap_horizon", async () => i18nDefaults.defaultTheme);
|
|
54
|
+
var menuSeparatorCss = `:host{border-top:.0625rem solid var(--sapGroup_ContentBorderColor);min-height:.125rem}.ui5-menu-separator{border:inherit;min-height:inherit;background:inherit;opacity:1}
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
var __decorate$2 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
58
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
59
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
60
|
+
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;
|
|
61
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @class
|
|
65
|
+
* The `ui5-menu-separator` represents a horizontal line to separate menu items inside a `ui5-menu`.
|
|
66
|
+
* @constructor
|
|
67
|
+
* @extends ListItemBase
|
|
68
|
+
* @implements {IMenuItem}
|
|
69
|
+
* @public
|
|
70
|
+
* @since 2.0.0
|
|
71
|
+
*/
|
|
72
|
+
let MenuSeparator = class MenuSeparator extends BusyIndicator.ListItemBase {
|
|
73
|
+
get isSeparator() {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
get classes() {
|
|
77
|
+
return {
|
|
78
|
+
main: {
|
|
79
|
+
"ui5-menu-separator": true,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @override
|
|
85
|
+
*/
|
|
86
|
+
get _focusable() {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @override
|
|
91
|
+
*/
|
|
92
|
+
get _pressable() {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
MenuSeparator = __decorate$2([
|
|
97
|
+
webcomponentsBase.m({
|
|
98
|
+
tag: "ui5-menu-separator",
|
|
99
|
+
renderer: i18nDefaults.y,
|
|
100
|
+
styles: [menuSeparatorCss],
|
|
101
|
+
template: MenuSeparatorTemplate,
|
|
102
|
+
})
|
|
103
|
+
], MenuSeparator);
|
|
104
|
+
const isInstanceOfMenuSeparator = (object) => {
|
|
105
|
+
return "isSeparator" in object;
|
|
106
|
+
};
|
|
107
|
+
MenuSeparator.define();
|
|
108
|
+
|
|
109
|
+
function MenuItemGroupTemplate() {
|
|
110
|
+
return (i18nDefaults.jsx("div", { role: "group", "onui5-check": this._handleItemCheck, children: i18nDefaults.jsx("slot", {}) }));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
114
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
115
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
116
|
+
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;
|
|
117
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* @class
|
|
121
|
+
*
|
|
122
|
+
* ### Overview
|
|
123
|
+
*
|
|
124
|
+
* The `ui5-menu-item-group` component represents a group of items designed for use inside a `ui5-menu`.
|
|
125
|
+
* Items belonging to the same group should be wrapped by a `ui5-menu-item-group`.
|
|
126
|
+
* Each group can have an `checkMode` property, which defines the check mode for the items within the group.
|
|
127
|
+
* The possible values for `checkMode` are:
|
|
128
|
+
* - 'None' (default) - no items can be checked
|
|
129
|
+
* - 'Single' - Only one item can be checked at a time
|
|
130
|
+
* - 'Multiple' - Multiple items can be checked simultaneously
|
|
131
|
+
*
|
|
132
|
+
* **Note:** If the `checkMode` property is set to 'Single', only one item can remain checked at any given time.
|
|
133
|
+
* If multiple items are marked as checked, the last checked item will take precedence.
|
|
134
|
+
*
|
|
135
|
+
* ### Usage
|
|
136
|
+
*
|
|
137
|
+
* `ui5-menu-item-group` represents a collection of `ui5-menu-item` components that can have the same check mode.
|
|
138
|
+
* The items are addeed to the group's `items` slot.
|
|
139
|
+
*
|
|
140
|
+
* ### ES6 Module Import
|
|
141
|
+
*
|
|
142
|
+
* `import "sap/ushell/gen/ui5/webcomponents/dist/MenuItemGroup.js";`
|
|
143
|
+
* @constructor
|
|
144
|
+
* @extends UI5Element
|
|
145
|
+
* @implements {IMenuItem}
|
|
146
|
+
* @since 2.12.0
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
let MenuItemGroup = class MenuItemGroup extends webcomponentsBase.b {
|
|
150
|
+
constructor() {
|
|
151
|
+
super(...arguments);
|
|
152
|
+
/**
|
|
153
|
+
* Defines the component's check mode.
|
|
154
|
+
* @default "None"
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
this.checkMode = "None";
|
|
158
|
+
}
|
|
159
|
+
get isGroup() {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
get _menuItems() {
|
|
163
|
+
return this.items.filter(isInstanceOfMenuItem);
|
|
164
|
+
}
|
|
165
|
+
onBeforeRendering() {
|
|
166
|
+
this._updateItemsCheckMode();
|
|
167
|
+
if (this.checkMode === MenuItemGroupCheckMode$1.Single) {
|
|
168
|
+
this._ensureSingleItemIsChecked();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Sets <code>_checkMode</code> property of all menu items in the group.
|
|
173
|
+
* @private
|
|
174
|
+
*/
|
|
175
|
+
_updateItemsCheckMode() {
|
|
176
|
+
this._menuItems.forEach((item) => {
|
|
177
|
+
item._checkMode = this.checkMode;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Sets <code>checked</code> property of all items in the group to <code>false</code>.
|
|
182
|
+
* @private
|
|
183
|
+
*/
|
|
184
|
+
_clearCheckedItems() {
|
|
185
|
+
this._menuItems.forEach((item) => { item.checked = false; });
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Ensures that only one item can remain checked at any given time. If multiple items are marked as checked,
|
|
189
|
+
* the last checked item will take precedence.
|
|
190
|
+
* @private
|
|
191
|
+
*/
|
|
192
|
+
_ensureSingleItemIsChecked() {
|
|
193
|
+
const lastCheckedItem = this._menuItems.findLast((item) => item.checked);
|
|
194
|
+
this._clearCheckedItems();
|
|
195
|
+
if (lastCheckedItem) {
|
|
196
|
+
lastCheckedItem.checked = true;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Handles the checking of an item in the group and unchecks other items if the item check mode is Single.
|
|
201
|
+
* @private
|
|
202
|
+
*/
|
|
203
|
+
_handleItemCheck(e) {
|
|
204
|
+
const clickedItem = e.target;
|
|
205
|
+
const isChecked = clickedItem.checked;
|
|
206
|
+
if (this.checkMode === MenuItemGroupCheckMode$1.Single) {
|
|
207
|
+
this._clearCheckedItems();
|
|
208
|
+
clickedItem.checked = isChecked;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
__decorate$1([
|
|
213
|
+
webcomponentsBase.s()
|
|
214
|
+
], MenuItemGroup.prototype, "checkMode", void 0);
|
|
215
|
+
__decorate$1([
|
|
216
|
+
webcomponentsBase.d({ "default": true, type: HTMLElement, invalidateOnChildChange: true })
|
|
217
|
+
], MenuItemGroup.prototype, "items", void 0);
|
|
218
|
+
MenuItemGroup = __decorate$1([
|
|
219
|
+
webcomponentsBase.m({
|
|
220
|
+
tag: "ui5-menu-item-group",
|
|
221
|
+
renderer: i18nDefaults.y,
|
|
222
|
+
template: MenuItemGroupTemplate,
|
|
223
|
+
})
|
|
224
|
+
], MenuItemGroup);
|
|
225
|
+
const isInstanceOfMenuItemGroup = (object) => {
|
|
226
|
+
return "isGroup" in object;
|
|
227
|
+
};
|
|
228
|
+
MenuItemGroup.define();
|
|
229
|
+
|
|
23
230
|
const predefinedHooks = {
|
|
24
231
|
listItemContent,
|
|
25
232
|
iconBegin,
|
|
26
233
|
};
|
|
27
234
|
function MenuItemTemplate(hooks) {
|
|
28
235
|
const currentHooks = { ...predefinedHooks, ...hooks };
|
|
29
|
-
return i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [
|
|
236
|
+
return i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [ResponsivePopover.ListItemTemplate.call(this, currentHooks), listItemPostContent.call(this)] });
|
|
30
237
|
}
|
|
31
238
|
function listItemContent() {
|
|
32
|
-
return (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [this.text && i18nDefaults.jsx("div", { class: "ui5-menu-item-text", children: this.text }), rightContent.call(this)] }));
|
|
239
|
+
return (i18nDefaults.jsxs(i18nDefaults.Fragment, { children: [this.text && i18nDefaults.jsx("div", { class: "ui5-menu-item-text", children: this.text }), rightContent.call(this), checkmarkContent.call(this)] }));
|
|
240
|
+
}
|
|
241
|
+
function checkmarkContent() {
|
|
242
|
+
return !this._markChecked ? "" : (i18nDefaults.jsx("div", { class: "ui5-menu-item-checked", children: i18nDefaults.jsx(Icon.Icon, { name: ResponsivePopover.checkIcon, class: "ui5-menu-item-icon-checked" }) }));
|
|
33
243
|
}
|
|
34
244
|
function rightContent() {
|
|
35
245
|
switch (true) {
|
|
36
246
|
case this.hasSubmenu:
|
|
37
|
-
return (i18nDefaults.jsx("div", { class: "ui5-menu-item-submenu-icon", children: i18nDefaults.jsx(Icon.Icon, { part: "subicon", name:
|
|
247
|
+
return (i18nDefaults.jsx("div", { class: "ui5-menu-item-submenu-icon", children: i18nDefaults.jsx(Icon.Icon, { part: "subicon", name: ResponsivePopover.slimArrowRight, class: "ui5-menu-item-icon-end" }) }));
|
|
38
248
|
case this.hasEndContent:
|
|
39
249
|
return i18nDefaults.jsx("slot", { name: "endContent", onKeyDown: this._endContentKeyDown });
|
|
40
250
|
case !!this.additionalText:
|
|
@@ -50,12 +260,12 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
50
260
|
}
|
|
51
261
|
}
|
|
52
262
|
function listItemPostContent() {
|
|
53
|
-
return this.hasSubmenu && i18nDefaults.jsxs(
|
|
263
|
+
return this.hasSubmenu && i18nDefaults.jsxs(ResponsivePopover.ResponsivePopover, { id: `${this._id}-menu-rp`, class: "ui5-menu-rp ui5-menu-rp-sub-menu", preventInitialFocus: true, preventFocusRestore: true, hideArrow: true, allowTargetOverlap: true, placement: this.placement, verticalAlign: "Top", accessibleName: this.acessibleNameText, onBeforeOpen: this._beforePopoverOpen, onOpen: this._afterPopoverOpen, onBeforeClose: this._beforePopoverClose, onClose: this._afterPopoverClose, children: [this.isPhone && (i18nDefaults.jsx(i18nDefaults.Fragment, { children: i18nDefaults.jsxs("div", { slot: "header", class: "ui5-menu-dialog-header", children: [i18nDefaults.jsx(Button.Button, { icon: navBackIcon, class: "ui5-menu-back-button", design: "Transparent", "aria-label": this.labelBack, onClick: this._close }), i18nDefaults.jsx("div", { class: "ui5-menu-dialog-title", children: i18nDefaults.jsx("div", { children: this.text }) }), i18nDefaults.jsx(Button.Button, { icon: information.decline, design: "Transparent", "aria-label": this.labelClose, onClick: this._closeAll })] }) })), i18nDefaults.jsx("div", { id: `${this._id}-menu-main`, children: this.items.length ? (i18nDefaults.jsx(List.List, { id: `${this._id}-menu-list`, selectionMode: "None", separators: "None", accessibleRole: "Menu", loading: this.loading, loadingDelay: this.loadingDelay, onMouseOver: this._itemMouseOver, onKeyDown: this._itemKeyDown, "onui5-close-menu": this._close, "onui5-exit-end-content": this._navigateOutOfEndContent, children: i18nDefaults.jsx("slot", {}) })) : this.loading && i18nDefaults.jsx(BusyIndicator.BusyIndicator, { id: `${this._id}-menu-busy-indicator`, delay: this.loadingDelay, class: "ui5-menu-busy-indicator", active: true }) })] });
|
|
54
264
|
}
|
|
55
265
|
|
|
56
266
|
Icons.p("sap/ushell/gen/ui5/webcomponents-theming", "sap_horizon", async () => i18nDefaults.defaultThemeBase);
|
|
57
267
|
Icons.p("sap/ushell/gen/ui5/webcomponents", "sap_horizon", async () => i18nDefaults.defaultTheme);
|
|
58
|
-
var menuItemCss = `:host{line-height:initial}::slotted([ui5-menu-item]){line-height:inherit}.ui5-menu-rp[ui5-responsive-popover]::part(header),.ui5-menu-rp[ui5-responsive-popover]::part(content),.ui5-menu-rp[ui5-responsive-popover]::part(footer){padding:0}.ui5-menu-rp[ui5-responsive-popover]{box-shadow:var(--sapContent_Shadow1);border-radius:var(--_ui5-v2-
|
|
268
|
+
var menuItemCss = `:host{line-height:initial}::slotted([ui5-menu-item]){line-height:inherit}.ui5-menu-rp[ui5-responsive-popover]::part(header),.ui5-menu-rp[ui5-responsive-popover]::part(content),.ui5-menu-rp[ui5-responsive-popover]::part(footer){padding:0}.ui5-menu-rp[ui5-responsive-popover]{box-shadow:var(--sapContent_Shadow1);border-radius:var(--_ui5-v2-12-0-rc-2_menu_popover_border_radius)}.ui5-menu-busy-indicator{width:100%}.ui5-menu-dialog-header{display:flex;height:var(--_ui5-v2-12-0-rc-2-responsive_popover_header_height);align-items:center;justify-content:space-between;padding:0px 1rem;width:100%;overflow:hidden}.ui5-menu-dialog-title{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:calc(100% - 6.5rem);padding-right:1rem;font-family:var(--sapFontHeaderFamily)}.ui5-menu-dialog-title>h1{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--sapFontHeader5Size)}.ui5-menu-back-button{margin-right:1rem}.ui5-menu-rp.ui5-menu-rp-sub-menu{margin-top:.25rem;margin-inline:var(--_ui5-v2-12-0-rc-2_menu_submenu_margin_offset)}.ui5-menu-rp.ui5-menu-rp-sub-menu[actual-placement=Start]{margin-top:.25rem;margin-inline:var(--_ui5-v2-12-0-rc-2_menu_submenu_placement_type_left_margin_offset)}:host([disabled]){pointer-events:initial;opacity:initial}:host([disabled])::part(content){opacity:var(--_ui5-v2-12-0-rc-2-listitembase_disabled_opacity)}:host([disabled][actionable]:not([active]):not([selected]):hover),:host([disabled][active][actionable]){background:var(--ui5-v2-12-0-rc-2-listitem-background-color)}:host([active]:not([disabled])),:host([active]:not([disabled])):hover{background-color:var(--sapList_Active_Background)}:host(:not([active]):not([selected]):not([disabled]):hover){background-color:var(--sapList_Hover_Background)}:host([disabled][active][actionable]) .ui5-li-root .ui5-li-icon{color:var(--sapContent_NonInteractiveIconColor)}:host([active]:not([disabled]))::part(content),:host([active]:not([disabled]))::part(additional-text),:host([active]:not([disabled])) .ui5-li-root .ui5-li-icon{color:var(--sapList_Active_TextColor)}:host([focused]:not([active]):not([disabled])){background-color:var(--sapList_Hover_Background)}:host::part(additional-text){margin:unset;margin-inline-start:1rem;color:var(--sapContent_LabelColor);min-width:max-content}.ui5-menu-item-text{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;display:inline-block}.ui5-menu-item-dummy-icon{visibility:hidden}:host::part(title){font-size:var(--sapFontSize);padding-top:.125rem}:host([icon]:not([is-phone]))::part(title),:host([is-phone]:not([icon=""]))::part(title){padding-top:0}:host(:not([is-phone]))::part(native-li){padding:var(--_ui5-v2-12-0-rc-2_menu_item_padding)}:host::part(content){padding-inline-end:.25rem}.ui5-menu-item-submenu-icon{min-width:var(--_ui5-v2-12-0-rc-2_list_item_icon_size);min-height:var(--_ui5-v2-12-0-rc-2_list_item_icon_size);display:inline-block;vertical-align:middle;pointer-events:none}.ui5-menu-item-icon-end{display:inline-block;vertical-align:middle;padding-inline-start:.5rem;pointer-events:none;position:absolute;inset-inline-end:var(--_ui5-v2-12-0-rc-2_menu_item_submenu_icon_right)}.ui5-menu-item-submenu-icon .ui5-menu-item-icon-end{color:var(--sapContent_NonInteractiveIconColor)}.ui5-menu-item-dummy-icon{min-width:var(--_ui5-v2-12-0-rc-2_list_item_icon_size);min-height:var(--_ui5-v2-12-0-rc-2_list_item_icon_size);display:inline-block;vertical-align:middle;padding-inline-end:.75rem;pointer-events:none}.ui5-menu-item-checked{padding-inline-start:.5rem;padding-inline-end:0;font-weight:400;text-align:center}.ui5-menu-item-icon-checked{color:var(--sapContent_BusyColor);padding-top:.25rem}
|
|
59
269
|
`;
|
|
60
270
|
|
|
61
271
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -88,43 +298,64 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
88
298
|
* @since 1.3.0
|
|
89
299
|
* @public
|
|
90
300
|
*/
|
|
91
|
-
let MenuItem = MenuItem_1 = class MenuItem extends
|
|
301
|
+
let MenuItem = MenuItem_1 = class MenuItem extends ResponsivePopover.ListItem {
|
|
92
302
|
constructor() {
|
|
93
303
|
super();
|
|
94
304
|
/**
|
|
95
|
-
* Defines whether
|
|
305
|
+
* Defines whether menu item is in disabled state.
|
|
96
306
|
*
|
|
97
|
-
* **Note:** A disabled
|
|
307
|
+
* **Note:** A disabled menu item is noninteractive.
|
|
98
308
|
* @default false
|
|
99
309
|
* @public
|
|
100
310
|
*/
|
|
101
311
|
this.disabled = false;
|
|
102
312
|
/**
|
|
103
|
-
* Defines the delay in milliseconds, after which the loading indicator will be displayed inside the corresponding
|
|
313
|
+
* Defines the delay in milliseconds, after which the loading indicator will be displayed inside the corresponding menu popover.
|
|
104
314
|
*
|
|
105
|
-
* **Note:** If set to `true` a
|
|
315
|
+
* **Note:** If set to `true` a busy indicator component will be displayed into the related one to the current menu item sub-menu popover.
|
|
106
316
|
* @default false
|
|
107
317
|
* @public
|
|
108
318
|
* @since 1.13.0
|
|
109
319
|
*/
|
|
110
320
|
this.loading = false;
|
|
111
321
|
/**
|
|
112
|
-
* Defines the delay in milliseconds, after which the loading indicator will be displayed inside the corresponding
|
|
322
|
+
* Defines the delay in milliseconds, after which the loading indicator will be displayed inside the corresponding menu popover.
|
|
113
323
|
* @default 1000
|
|
114
324
|
* @public
|
|
115
325
|
* @since 1.13.0
|
|
116
326
|
*/
|
|
117
327
|
this.loadingDelay = 1000;
|
|
328
|
+
/**
|
|
329
|
+
* Defines whether menu item is in checked state.
|
|
330
|
+
*
|
|
331
|
+
* **Note:** checked state is only taken into account when menu item is added to menu item group
|
|
332
|
+
* with `checkMode` other than `None`.
|
|
333
|
+
*
|
|
334
|
+
* **Note:** A checked menu item has a checkmark displayed at its end.
|
|
335
|
+
* @default false
|
|
336
|
+
* @public
|
|
337
|
+
* @since 2.12.0
|
|
338
|
+
*/
|
|
339
|
+
this.checked = false;
|
|
118
340
|
/**
|
|
119
341
|
* Indicates whether any of the element siblings have icon.
|
|
120
342
|
*/
|
|
121
343
|
this._siblingsWithIcon = false;
|
|
344
|
+
/**
|
|
345
|
+
* Defines the component's check mode.
|
|
346
|
+
* @default "None"
|
|
347
|
+
* @private
|
|
348
|
+
*/
|
|
349
|
+
this._checkMode = "None";
|
|
122
350
|
this._itemNavigation = new webcomponentsBase.f$1(this, {
|
|
123
351
|
navigationMode: webcomponentsBase.r.Horizontal,
|
|
124
352
|
behavior: webcomponentsBase.l.Static,
|
|
125
353
|
getItemsCallback: () => this._navigableItems,
|
|
126
354
|
});
|
|
127
355
|
}
|
|
356
|
+
get _list() {
|
|
357
|
+
return this.shadowRoot && this.shadowRoot.querySelector("[ui5-list]");
|
|
358
|
+
}
|
|
128
359
|
get _navigableItems() {
|
|
129
360
|
return [...this.endContent].filter(item => {
|
|
130
361
|
return item.hasAttribute("ui5-button")
|
|
@@ -164,7 +395,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
164
395
|
return this.text;
|
|
165
396
|
}
|
|
166
397
|
get isPhone() {
|
|
167
|
-
return Icons.d
|
|
398
|
+
return Icons.d();
|
|
168
399
|
}
|
|
169
400
|
get labelBack() {
|
|
170
401
|
return MenuItem_1.i18nBundle.getText(i18nDefaults.MENU_BACK_BUTTON_ARIA_LABEL);
|
|
@@ -175,43 +406,95 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
175
406
|
get acessibleNameText() {
|
|
176
407
|
return MenuItem_1.i18nBundle.getText(i18nDefaults.MENU_POPOVER_ACCESSIBLE_NAME);
|
|
177
408
|
}
|
|
178
|
-
get isSeparator() {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
409
|
onBeforeRendering() {
|
|
182
410
|
super.onBeforeRendering();
|
|
183
|
-
const siblingsWithIcon = this.
|
|
184
|
-
this.
|
|
411
|
+
const siblingsWithIcon = this._allMenuItems.some(menuItem => !!menuItem.icon);
|
|
412
|
+
this._setupItemNavigation();
|
|
413
|
+
this._allMenuItems.forEach(item => {
|
|
185
414
|
item._siblingsWithIcon = siblingsWithIcon;
|
|
186
415
|
});
|
|
187
416
|
}
|
|
188
417
|
async focus(focusOptions) {
|
|
189
|
-
await Icons.f$
|
|
418
|
+
await Icons.f$1();
|
|
190
419
|
if (this.hasSubmenu && this.isSubMenuOpen) {
|
|
191
|
-
|
|
420
|
+
const menuItems = this._allMenuItems;
|
|
421
|
+
return menuItems[0] && menuItems[0].focus(focusOptions);
|
|
192
422
|
}
|
|
193
423
|
return super.focus(focusOptions);
|
|
194
424
|
}
|
|
195
425
|
get _focusable() {
|
|
196
426
|
return true;
|
|
197
427
|
}
|
|
428
|
+
get _role() {
|
|
429
|
+
switch (this._checkMode) {
|
|
430
|
+
case MenuItemGroupCheckMode$1.Single:
|
|
431
|
+
return "menuitemradio";
|
|
432
|
+
case MenuItemGroupCheckMode$1.Multiple:
|
|
433
|
+
return "menuitemcheckbox";
|
|
434
|
+
default:
|
|
435
|
+
return "menuitem";
|
|
436
|
+
}
|
|
437
|
+
}
|
|
198
438
|
get _accInfo() {
|
|
199
439
|
const accInfoSettings = {
|
|
200
|
-
role: this.accessibilityAttributes.role ||
|
|
440
|
+
role: this.accessibilityAttributes.role || this._role,
|
|
201
441
|
ariaHaspopup: this.hasSubmenu ? "menu" : undefined,
|
|
202
442
|
ariaKeyShortcuts: this.accessibilityAttributes.ariaKeyShortcuts,
|
|
443
|
+
ariaExpanded: this.hasSubmenu ? this.isSubMenuOpen : undefined,
|
|
203
444
|
ariaHidden: !!this.additionalText && !!this.accessibilityAttributes.ariaKeyShortcuts ? true : undefined,
|
|
445
|
+
ariaChecked: this._markChecked ? true : undefined,
|
|
204
446
|
};
|
|
205
447
|
return { ...super._accInfo, ...accInfoSettings };
|
|
206
448
|
}
|
|
207
449
|
get _popover() {
|
|
208
|
-
return this.shadowRoot.querySelector("[ui5-responsive-popover]");
|
|
450
|
+
return this.shadowRoot && this.shadowRoot.querySelector("[ui5-responsive-popover]");
|
|
451
|
+
}
|
|
452
|
+
get _markChecked() {
|
|
453
|
+
return !this.hasSubmenu && this.checked && this._checkMode !== MenuItemGroupCheckMode$1.None;
|
|
209
454
|
}
|
|
455
|
+
/** Returns menu item groups */
|
|
456
|
+
get _menuItemGroups() {
|
|
457
|
+
return this.items.filter(isInstanceOfMenuItemGroup);
|
|
458
|
+
}
|
|
459
|
+
/** Returns menu items */
|
|
210
460
|
get _menuItems() {
|
|
211
|
-
return this.items.filter(
|
|
461
|
+
return this.items.filter(isInstanceOfMenuItem);
|
|
462
|
+
}
|
|
463
|
+
/** Returns all menu items (including those in groups */
|
|
464
|
+
get _allMenuItems() {
|
|
465
|
+
const items = [];
|
|
466
|
+
this.items.forEach(item => {
|
|
467
|
+
if (isInstanceOfMenuItemGroup(item)) {
|
|
468
|
+
items.push(...item._menuItems);
|
|
469
|
+
}
|
|
470
|
+
else if (!isInstanceOfMenuSeparator(item)) {
|
|
471
|
+
items.push(item);
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
return items;
|
|
475
|
+
}
|
|
476
|
+
/** Returns menu items included in the ItemNavigation */
|
|
477
|
+
get _navigatableMenuItems() {
|
|
478
|
+
const items = [];
|
|
479
|
+
const slottedItems = this.getSlottedNodes("items");
|
|
480
|
+
slottedItems.forEach(item => {
|
|
481
|
+
if (isInstanceOfMenuItemGroup(item)) {
|
|
482
|
+
const groupItems = item.getSlottedNodes("items");
|
|
483
|
+
items.push(...groupItems);
|
|
484
|
+
}
|
|
485
|
+
else if (!isInstanceOfMenuSeparator(item)) {
|
|
486
|
+
items.push(item);
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
return items;
|
|
490
|
+
}
|
|
491
|
+
_setupItemNavigation() {
|
|
492
|
+
if (this._list) {
|
|
493
|
+
this._list._itemNavigation._getItems = () => this._navigatableMenuItems;
|
|
494
|
+
}
|
|
212
495
|
}
|
|
213
496
|
_closeOtherSubMenus(item) {
|
|
214
|
-
const menuItems = this.
|
|
497
|
+
const menuItems = this._allMenuItems;
|
|
215
498
|
if (!menuItems.includes(item)) {
|
|
216
499
|
return;
|
|
217
500
|
}
|
|
@@ -222,7 +505,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
222
505
|
});
|
|
223
506
|
}
|
|
224
507
|
_itemMouseOver(e) {
|
|
225
|
-
if (!Icons.f
|
|
508
|
+
if (!Icons.f()) {
|
|
226
509
|
return;
|
|
227
510
|
}
|
|
228
511
|
const item = e.target;
|
|
@@ -234,7 +517,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
234
517
|
}
|
|
235
518
|
_itemKeyDown(e) {
|
|
236
519
|
const item = e.target;
|
|
237
|
-
const itemInMenuItems = this.
|
|
520
|
+
const itemInMenuItems = this._allMenuItems.includes(item);
|
|
238
521
|
const isTabNextPrevious = webcomponentsBase.B(e) || webcomponentsBase.m$1(e);
|
|
239
522
|
const isItemNavigation = webcomponentsBase.D(e) || webcomponentsBase.P(e);
|
|
240
523
|
const isItemSelection = webcomponentsBase.i(e) || webcomponentsBase.b$1(e);
|
|
@@ -255,7 +538,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
255
538
|
_navigateOutOfEndContent(e) {
|
|
256
539
|
const item = e.target;
|
|
257
540
|
const shouldNavigateToNextItem = e.detail.shouldNavigateToNextItem;
|
|
258
|
-
const menuItems = this.
|
|
541
|
+
const menuItems = this._allMenuItems;
|
|
259
542
|
const itemIndex = menuItems.indexOf(item);
|
|
260
543
|
if (itemIndex > -1) {
|
|
261
544
|
const nextItem = shouldNavigateToNextItem ? menuItems[itemIndex + 1] : menuItems[itemIndex - 1];
|
|
@@ -274,7 +557,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
274
557
|
_close() {
|
|
275
558
|
if (this._popover) {
|
|
276
559
|
this._popover.open = false;
|
|
277
|
-
this.
|
|
560
|
+
this._allMenuItems.forEach(item => item._close());
|
|
278
561
|
}
|
|
279
562
|
this.selected = false;
|
|
280
563
|
}
|
|
@@ -285,7 +568,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
285
568
|
}
|
|
286
569
|
}
|
|
287
570
|
_afterPopoverOpen() {
|
|
288
|
-
this.
|
|
571
|
+
this._allMenuItems[0]?.focus();
|
|
289
572
|
this.fireDecoratorEvent("open");
|
|
290
573
|
}
|
|
291
574
|
_beforePopoverClose(e) {
|
|
@@ -297,7 +580,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
297
580
|
this.selected = false;
|
|
298
581
|
if (e.detail.escPressed) {
|
|
299
582
|
this.focus();
|
|
300
|
-
if (Icons.d
|
|
583
|
+
if (Icons.d()) {
|
|
301
584
|
this.fireDecoratorEvent("close-menu");
|
|
302
585
|
}
|
|
303
586
|
}
|
|
@@ -308,6 +591,14 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
308
591
|
get isMenuItem() {
|
|
309
592
|
return true;
|
|
310
593
|
}
|
|
594
|
+
_updateCheckedState() {
|
|
595
|
+
if (this._checkMode === MenuItemGroupCheckMode$1.None) {
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
const newState = !this.checked;
|
|
599
|
+
this.checked = newState;
|
|
600
|
+
this.fireDecoratorEvent("check");
|
|
601
|
+
}
|
|
311
602
|
};
|
|
312
603
|
__decorate([
|
|
313
604
|
webcomponentsBase.s()
|
|
@@ -333,12 +624,18 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
333
624
|
__decorate([
|
|
334
625
|
webcomponentsBase.s()
|
|
335
626
|
], MenuItem.prototype, "tooltip", void 0);
|
|
627
|
+
__decorate([
|
|
628
|
+
webcomponentsBase.s({ type: Boolean })
|
|
629
|
+
], MenuItem.prototype, "checked", void 0);
|
|
336
630
|
__decorate([
|
|
337
631
|
webcomponentsBase.s({ type: Object })
|
|
338
632
|
], MenuItem.prototype, "accessibilityAttributes", void 0);
|
|
339
633
|
__decorate([
|
|
340
634
|
webcomponentsBase.s({ type: Boolean, noAttribute: true })
|
|
341
635
|
], MenuItem.prototype, "_siblingsWithIcon", void 0);
|
|
636
|
+
__decorate([
|
|
637
|
+
webcomponentsBase.s()
|
|
638
|
+
], MenuItem.prototype, "_checkMode", void 0);
|
|
342
639
|
__decorate([
|
|
343
640
|
webcomponentsBase.d({ "default": true, type: HTMLElement, invalidateOnChildChange: true })
|
|
344
641
|
], MenuItem.prototype, "items", void 0);
|
|
@@ -353,7 +650,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
353
650
|
tag: "ui5-menu-item",
|
|
354
651
|
renderer: i18nDefaults.y,
|
|
355
652
|
template: MenuItemTemplate,
|
|
356
|
-
styles: [
|
|
653
|
+
styles: [ResponsivePopover.ListItem.styles, menuItemCss],
|
|
357
654
|
})
|
|
358
655
|
/**
|
|
359
656
|
* Fired before the menu is opened. This event can be cancelled, which will prevent the menu from opening.
|
|
@@ -361,7 +658,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
361
658
|
* **Note:** Since 1.14.0 the event is also fired before a sub-menu opens.
|
|
362
659
|
* @public
|
|
363
660
|
* @since 1.10.0
|
|
364
|
-
* @param { HTMLElement } item The
|
|
661
|
+
* @param { HTMLElement } item The menu item that triggers opening of the sub-menu or undefined when fired upon root menu opening.
|
|
365
662
|
*/
|
|
366
663
|
,
|
|
367
664
|
eventStrict.l("before-open", {
|
|
@@ -406,6 +703,15 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
406
703
|
*/
|
|
407
704
|
,
|
|
408
705
|
eventStrict.l("close")
|
|
706
|
+
/**
|
|
707
|
+
* Fired when an item is checked or unchecked.
|
|
708
|
+
* @public
|
|
709
|
+
* @since 2.12.0
|
|
710
|
+
*/
|
|
711
|
+
,
|
|
712
|
+
eventStrict.l("check", {
|
|
713
|
+
bubbles: true,
|
|
714
|
+
})
|
|
409
715
|
], MenuItem);
|
|
410
716
|
MenuItem.define();
|
|
411
717
|
const isInstanceOfMenuItem = (object) => {
|
|
@@ -416,5 +722,7 @@ sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushel
|
|
|
416
722
|
exports.MenuItem = MenuItem$1;
|
|
417
723
|
exports.MenuItemTemplate = MenuItemTemplate;
|
|
418
724
|
exports.isInstanceOfMenuItem = isInstanceOfMenuItem;
|
|
725
|
+
exports.isInstanceOfMenuItemGroup = isInstanceOfMenuItemGroup;
|
|
726
|
+
exports.isInstanceOfMenuSeparator = isInstanceOfMenuSeparator;
|
|
419
727
|
|
|
420
728
|
}));
|