@sapui5/sap.ushell 1.141.3 → 1.143.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 -7
- package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +7 -11
- package/src/main/js/sap/ushell/ApplicationType/utils.js +9 -9
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +18 -0
- 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 -3
- 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 -12
- 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 -2
- 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 +2 -3
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +41 -24
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +3 -2
- 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 +94 -114
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +43 -20
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerRenderer.js +0 -11
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainer.js +89 -32
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainerRenderer.js +53 -52
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/LifecycleHandler.js +1 -3
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/NWBCHandler.js +1 -1
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/NavigationHandler.js +4 -4
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +58 -17
- package/src/main/js/sap/ushell/appIntegration/PostMessagePluginInterface.js +4 -0
- package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainer.js +15 -28
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +16 -27
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +6 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +0 -12
- 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 +20 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +17 -6
- 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 +2 -2
- 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 +2 -2
- 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/LoadingConfiguration.json +4 -0
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +35 -17
- 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/cdm/cdm.constants.js +0 -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 +29 -5
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Component.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +5 -5
- 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/factsheet/factory/ThingInspector.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +3 -3
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +10 -10
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +3 -3
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +4 -4
- 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/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 +25 -50
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsList.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsListPopoverContent.view.xml +2 -2
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsListPopoverHeader.fragment.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsModule.js +169 -0
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +4 -4
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/Component.js +6 -2
- package/src/main/js/sap/ushell/components/shell/Search/SearchModule.js +58 -0
- 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/SearchCEPNew/Component.js +33 -22
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +0 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +35 -7
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.view.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +14 -9
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +15 -21
- 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 +23 -18
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -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 +5 -5
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.fragment.xml +2 -2
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +1 -8
- package/src/main/js/sap/ushell/modules/Assistant/AssistantAPI.js +94 -0
- package/src/main/js/sap/ushell/modules/Assistant/AssistantProvider.js +50 -0
- package/src/main/js/sap/ushell/modules/Assistant/VisualConfiguration.js +41 -0
- package/src/main/js/sap/ushell/modules/Assistant.js +56 -0
- package/src/main/js/sap/ushell/modules/BaseAPI.js +107 -0
- package/src/main/js/sap/ushell/modules/BaseProvider.js +43 -0
- package/src/main/js/sap/ushell/modules/Notifications/NotificationsAPI.js +253 -0
- package/src/main/js/sap/ushell/modules/Notifications/NotificationsProvider.js +50 -0
- package/src/main/js/sap/ushell/modules/Notifications.js +53 -0
- package/src/main/js/sap/ushell/modules/Search/SearchAPI.js +271 -0
- package/src/main/js/sap/ushell/modules/Search/SearchProvider.js +50 -0
- package/src/main/js/sap/ushell/modules/Search.js +56 -0
- package/src/main/js/sap/ushell/modules/loader/AbstractLoader.js +95 -0
- package/src/main/js/sap/ushell/modules/loader/AssistantLoader.js +156 -0
- package/src/main/js/sap/ushell/modules/loader/NotificationsLoader.js +148 -0
- package/src/main/js/sap/ushell/modules/loader/SearchLoader.js +153 -0
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +136 -40
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +26 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/ghostapp/FakeModel.js +19 -14
- package/src/main/js/sap/ushell/renderer/Renderer.js +6 -7
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +204 -102
- package/src/main/js/sap/ushell/renderer/Shell.view.js +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +7 -9
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +4 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +5 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +4 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +5 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +1 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +5 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +4 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +5 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +5 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +6 -7
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +13 -14
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +3 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +3 -4
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.controller.js +0 -14
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.fragment.xml +0 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +5 -63
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +45 -37
- 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 +6 -5
- 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 +13 -13
- 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 +15 -3
- 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 +21 -8
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +1 -181
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +3 -3
- package/src/main/js/sap/ushell/services/MessageBroker.js +3 -3
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +3 -3
- 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 +20 -20
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +2 -6
- 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 +6 -7
- package/src/main/js/sap/ushell/services/SearchableContent.js +3 -5
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +52 -73
- 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/URLParsing.js +65 -47
- 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 +6 -44
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +2 -2
- package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +5 -5
- 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/StateManager.js +14 -5
- package/src/main/js/sap/ushell/state/StateRules.js +10 -1
- package/src/main/js/sap/ushell/state/modules/BackNavigation.js +1 -1
- package/src/main/js/sap/ushell/state/modules/ContentDensity.js +1 -1
- package/src/main/js/sap/ushell/state/modules/Favicon.js +1 -1
- package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_belize_base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/ui/ShellHeader.js +4 -29
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +0 -14
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +11 -11
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +12 -12
- 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/VizInstance.js +113 -22
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceCdm.js +0 -2
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +0 -8
- 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/SmartBusiness.js +139 -0
- package/src/main/js/sap/ushell/utils/UrlParsing.js +335 -208
- 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 +36 -56
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +19 -34
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +0 -228
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +0 -277
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +0 -2128
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +0 -462
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +0 -182
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +0 -135
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +0 -400
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +0 -345
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +0 -103
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +0 -147
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRenderer.js +0 -60
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +0 -277
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +0 -96
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +0 -59
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources.properties +0 -177
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ar.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_bg.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ca.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cnr.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cs.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cy.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_da.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_de.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_el.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_GB.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_sappsd.properties +0 -79
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saprigi.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saptrc.properties +0 -90
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_es.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_es_MX.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_et.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_fi.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_fr.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_fr_CA.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_hi.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_hr.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_hu.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_id.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_it.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_iw.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ja.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_kk.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ko.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_lt.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_lv.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_mk.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ms.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_nl.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_no.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_pl.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_pt.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_pt_PT.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ro.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ru.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sh.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sk.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sl.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sr.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sv.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_th.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_tr.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_uk.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_vi.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_zh_CN.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_zh_TW.properties +0 -93
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +0 -248
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageCellDeleteDialog.fragment.xml +0 -25
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageRowDeleteDialog.fragment.xml +0 -25
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +0 -67
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +0 -176
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +0 -50
- package/src/main/js/sap/ushell/components/workPageRuntime/view/WorkPageRuntime.view.xml +0 -37
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Avatar.js +0 -119
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Button.js +0 -219
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Label.js +0 -75
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItem.js +0 -76
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemBase.js +0 -39
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemGroup.js +0 -153
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Menu.js +0 -185
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +0 -198
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +0 -576
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/IllustratedMessage.js +0 -98
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationList.js +0 -135
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListGroupItem.js +0 -91
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItem.js +0 -134
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItemBase.js +0 -55
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js +0 -163
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItem.js +0 -83
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItemGroup.js +0 -36
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchMessageArea.js +0 -53
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchScope.js +0 -55
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBar.js +0 -380
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarBranding.js +0 -78
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarItem.js +0 -88
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSearch.js +0 -157
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSpacer.js +0 -49
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenu.js +0 -197
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuAccount.js +0 -83
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuItem.js +0 -42
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +0 -1652
- package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +0 -2823
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +0 -58
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +0 -35
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +0 -65
- package/src/main/js/sap/ushell/thirdparty/AccessibilityTextsHelper.js +0 -13
- package/src/main/js/sap/ushell/thirdparty/Avatar.js +0 -453
- package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +0 -233
- package/src/main/js/sap/ushell/thirdparty/Button.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/Button2.js +0 -656
- package/src/main/js/sap/ushell/thirdparty/FocusableElements.js +0 -10
- package/src/main/js/sap/ushell/thirdparty/Icon.js +0 -313
- package/src/main/js/sap/ushell/thirdparty/Icons.js +0 -234
- package/src/main/js/sap/ushell/thirdparty/IllustratedMessage.js +0 -1297
- package/src/main/js/sap/ushell/thirdparty/Label.js +0 -115
- package/src/main/js/sap/ushell/thirdparty/Link.js +0 -316
- package/src/main/js/sap/ushell/thirdparty/List.js +0 -1253
- package/src/main/js/sap/ushell/thirdparty/ListBoxItemGroupTemplate.js +0 -14
- package/src/main/js/sap/ushell/thirdparty/ListItemAdditionalText.css.js +0 -10
- package/src/main/js/sap/ushell/thirdparty/ListItemBase.js +0 -251
- package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +0 -1689
- package/src/main/js/sap/ushell/thirdparty/ListItemGroup.js +0 -637
- package/src/main/js/sap/ushell/thirdparty/Menu.js +0 -389
- package/src/main/js/sap/ushell/thirdparty/MenuItem.js +0 -10
- package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +0 -762
- package/src/main/js/sap/ushell/thirdparty/NotificationList.js +0 -291
- package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +0 -310
- package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +0 -534
- package/src/main/js/sap/ushell/thirdparty/NotificationListItemBase.js +0 -98
- package/src/main/js/sap/ushell/thirdparty/ResponsivePopover.js +0 -2312
- package/src/main/js/sap/ushell/thirdparty/SearchItem.js +0 -157
- package/src/main/js/sap/ushell/thirdparty/SearchItemGroup.js +0 -44
- package/src/main/js/sap/ushell/thirdparty/SearchMessageArea.js +0 -49
- package/src/main/js/sap/ushell/thirdparty/SearchScope.js +0 -39
- package/src/main/js/sap/ushell/thirdparty/ShellBar.js +0 -1809
- package/src/main/js/sap/ushell/thirdparty/ShellBarBranding.js +0 -119
- package/src/main/js/sap/ushell/thirdparty/ShellBarItem.js +0 -89
- package/src/main/js/sap/ushell/thirdparty/ShellBarSearch.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/ShellBarSearch2.js +0 -3453
- package/src/main/js/sap/ushell/thirdparty/ShellBarSpacer.js +0 -40
- package/src/main/js/sap/ushell/thirdparty/Tag.js +0 -302
- package/src/main/js/sap/ushell/thirdparty/Text.js +0 -127
- package/src/main/js/sap/ushell/thirdparty/Title.js +0 -167
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +0 -950
- package/src/main/js/sap/ushell/thirdparty/UserMenuAccount.js +0 -114
- package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +0 -61
- package/src/main/js/sap/ushell/thirdparty/ValueState.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/WrappingType.js +0 -24
- package/src/main/js/sap/ushell/thirdparty/_dynamics/InputComposition.js +0 -35
- package/src/main/js/sap/ushell/thirdparty/_dynamics/InputSuggestions.js +0 -397
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +0 -193
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT.js +0 -585
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT2.js +0 -585
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite.js +0 -1194
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite2.js +0 -1194
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons.js +0 -2509
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons2.js +0 -2509
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW.js +0 -866
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +0 -611
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css25.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css26.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css27.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/encodeXML.js +0 -87
- package/src/main/js/sap/ushell/thirdparty/event-strict.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/generateHighlightedMarkup.js +0 -9
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +0 -115
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +0 -159
- package/src/main/js/sap/ushell/thirdparty/information.js +0 -100
- package/src/main/js/sap/ushell/thirdparty/information2.js +0 -13
- package/src/main/js/sap/ushell/thirdparty/overflow.js +0 -25
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +0 -11
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css2.js +0 -44
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css3.js +0 -8
- package/src/main/js/sap/ushell/thirdparty/query.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/slim-arrow-down.js +0 -44
- package/src/main/js/sap/ushell/thirdparty/sys-enter-2.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/toLowercaseEnumValue.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons/AllIcons.js +0 -26
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-business-suite/AllIcons.js +0 -26
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-tnt/AllIcons.js +0 -26
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +0 -4301
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base2.js +0 -7
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +0 -146
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +0 -170
- package/src/main/js/sap/ushell/thirdparty/willShowContent.js +0 -7
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
sap.ui.define([
|
|
4
|
+
"sap/ui/core/Element",
|
|
5
|
+
"sap/ushell/modules/BaseAPI",
|
|
6
|
+
"sap/ushell/state/StateManager"
|
|
7
|
+
], (
|
|
8
|
+
Element,
|
|
9
|
+
BaseAPI,
|
|
10
|
+
StateManager
|
|
11
|
+
) => {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
// shortcut for sap.ushell.state.StateManager.Operation
|
|
15
|
+
const Operation = StateManager.Operation;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @alias sap.ushell.modules.Notifications.NotificationsAPI
|
|
19
|
+
* @namespace
|
|
20
|
+
* @description The API object for the Notifications module.
|
|
21
|
+
* This module cannot be required it gets injected in the constructor of the Notifications module.
|
|
22
|
+
* @see sap.ushell.modules.Notifications.Notifications
|
|
23
|
+
*
|
|
24
|
+
* @hideconstructor
|
|
25
|
+
*
|
|
26
|
+
* @since 1.142.0
|
|
27
|
+
* @private
|
|
28
|
+
* @ui5-restricted ANS
|
|
29
|
+
*/
|
|
30
|
+
class NotificationsAPI extends BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* The instance of the ShellBar or ShellHeader depending on the ushell Config.
|
|
33
|
+
*
|
|
34
|
+
* @type {sap.f.gen.ui5.webcomponents_fiori.dist.ShellBar|sap.ushell.ui.ShellHeader}
|
|
35
|
+
* @since 1.142.0
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
#oShellBar;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new instance of the NotificationsAPI.
|
|
42
|
+
*
|
|
43
|
+
* @param {object} oConfig The configuration object for the notifications module.
|
|
44
|
+
* @since 1.142.0
|
|
45
|
+
* @private
|
|
46
|
+
* @ui5-restricted ANS
|
|
47
|
+
*/
|
|
48
|
+
constructor (oConfig) {
|
|
49
|
+
super(oConfig);
|
|
50
|
+
this.#oShellBar = Element.getElementById("shell-header")?.getComponentInstance?.()?.getRootControl()?.byId("shellBar");
|
|
51
|
+
if (!this.#oShellBar) {
|
|
52
|
+
// use the ShellHeader for compatibility reasons
|
|
53
|
+
this.#oShellBar = Element.getElementById("shell-header");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Gets the notifications button by ID as it would be expected in the ShellHeader.
|
|
59
|
+
* In case the ShellBar is used this method returns undefined as the button is not available.
|
|
60
|
+
*
|
|
61
|
+
* @returns {sap.ushell.ui.shell.ShellHeadItem|undefined} The notifications button or undefined if not available.
|
|
62
|
+
* @since 1.142.0
|
|
63
|
+
* @private
|
|
64
|
+
*/
|
|
65
|
+
#getShellHeaderNotificationsButton () {
|
|
66
|
+
if (this.#isShellBar()) {
|
|
67
|
+
// only available in ShellBar
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
return Element.getElementById("NotificationsCountButton");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Checks if the ShellBar instance is available. This is used as long as the ShellHeader may still be used.
|
|
75
|
+
*
|
|
76
|
+
* @returns {boolean} True if the ShellBar instance is available, false otherwise.
|
|
77
|
+
* @since 1.142.0
|
|
78
|
+
* @private
|
|
79
|
+
*/
|
|
80
|
+
#isShellBar () {
|
|
81
|
+
return this.#oShellBar?.isA("sap.f.gen.ui5.webcomponents_fiori.dist.ShellBar");
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Sets the notifications count.
|
|
86
|
+
*
|
|
87
|
+
* @param {int} iCount The notifications count to set.
|
|
88
|
+
* @since 1.142.0
|
|
89
|
+
* @private
|
|
90
|
+
* @ui5-restricted ANS
|
|
91
|
+
*/
|
|
92
|
+
setNotificationsCount (iCount) {
|
|
93
|
+
if (this.#isShellBar()) {
|
|
94
|
+
// need to map 0 to undefined as ShellBar would show "0" otherwise
|
|
95
|
+
this.#oShellBar.setNotificationsCount(iCount || undefined);
|
|
96
|
+
} else {
|
|
97
|
+
this.#getShellHeaderNotificationsButton()?.setFloatingNumber(iCount);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Gets the notifications count.
|
|
103
|
+
*
|
|
104
|
+
* @returns {int} The current notifications count.
|
|
105
|
+
* @since 1.142.0
|
|
106
|
+
* @private
|
|
107
|
+
* @ui5-restricted ANS
|
|
108
|
+
*/
|
|
109
|
+
getNotificationsCount () {
|
|
110
|
+
if (this.#isShellBar()) {
|
|
111
|
+
return parseInt(this.#oShellBar.getNotificationsCount(), 10) || 0;
|
|
112
|
+
}
|
|
113
|
+
return this.#getShellHeaderNotificationsButton()?.getFloatingNumber();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Binds the notifications count property to a model. The model value must be compatible with
|
|
118
|
+
* the value of @see #setNotificationsCount.
|
|
119
|
+
*
|
|
120
|
+
* @param {string} sPath Absolute path to the property in the model.
|
|
121
|
+
* @param {sap.ui.model.Model} oModel The model to bind to.
|
|
122
|
+
* @since 1.142.0
|
|
123
|
+
* @private
|
|
124
|
+
* @ui5-restricted ANS
|
|
125
|
+
*/
|
|
126
|
+
bindNotificationsCount (sPath, oModel) {
|
|
127
|
+
this.bindModelProperty(sPath, oModel, "notificationsCount", this.setNotificationsCount.bind(this));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Unbinds the notifications count property from a model.
|
|
132
|
+
*
|
|
133
|
+
* @since 1.142.0
|
|
134
|
+
* @private
|
|
135
|
+
* @ui5-restricted ANS
|
|
136
|
+
*/
|
|
137
|
+
unbindNotificationsCount () {
|
|
138
|
+
this.unbindModelProperty("notificationsCount");
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Sets whether notifications should be currently shown.
|
|
143
|
+
* The actual value can differ from the set value due FLP state management.
|
|
144
|
+
*
|
|
145
|
+
* @param {boolean} bShow Whether to show notifications.
|
|
146
|
+
* @since 1.142.0
|
|
147
|
+
* @private
|
|
148
|
+
* @ui5-restricted ANS
|
|
149
|
+
*/
|
|
150
|
+
setShowNotifications (bShow) {
|
|
151
|
+
StateManager.updateAllBaseStates("header.notifications.visible", Operation.Set, bShow);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Returns whether notifications are currently shown.
|
|
156
|
+
* The returned value can differ from last set value due FLP state management.
|
|
157
|
+
*
|
|
158
|
+
* @returns {boolean} Whether notifications are shown.
|
|
159
|
+
* @since 1.142.0
|
|
160
|
+
* @private
|
|
161
|
+
* @ui5-restricted ANS
|
|
162
|
+
*/
|
|
163
|
+
getShowNotifications () {
|
|
164
|
+
if (this.#isShellBar()) {
|
|
165
|
+
return this.#oShellBar.getShowNotifications();
|
|
166
|
+
}
|
|
167
|
+
return this.#getShellHeaderNotificationsButton()?.getVisible();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Binds the the notifaction visibility to a model. The model value must be compatible with
|
|
172
|
+
* the value of @see #setShowNotifications.
|
|
173
|
+
*
|
|
174
|
+
* @param {string} sPath Absolute path to the property in the model.
|
|
175
|
+
* @param {sap.ui.model.Model} oModel The model to bind to.
|
|
176
|
+
* @since 1.142.0
|
|
177
|
+
* @private
|
|
178
|
+
* @ui5-restricted ANS
|
|
179
|
+
*/
|
|
180
|
+
bindShowNotifications (sPath, oModel) {
|
|
181
|
+
this.bindModelProperty(sPath, oModel, "showNotifications", this.setShowNotifications.bind(this));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Unbinds the notifaction visibility.
|
|
186
|
+
*
|
|
187
|
+
* @since 1.142.0
|
|
188
|
+
* @private
|
|
189
|
+
* @ui5-restricted ANS
|
|
190
|
+
*/
|
|
191
|
+
unbindShowNotifications () {
|
|
192
|
+
this.unbindModelProperty("showNotifications");
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Attaches a handler to the notifications press event.
|
|
197
|
+
*
|
|
198
|
+
* @param {object} [oData] An object that will be passed to the handler along with the event object when the event is fired
|
|
199
|
+
* @param {function} fnFunction The handler function to call when the event occurs.
|
|
200
|
+
* This function will be called in the context of the oListener instance (if present)
|
|
201
|
+
* or on the event provider instance. The event object (@see: sap.ui.base.Event) is provided
|
|
202
|
+
* as first argument of the handler. Handlers must not change the content of the event.
|
|
203
|
+
* The second argument is the specified oData instance (if present).
|
|
204
|
+
* @param {object} [oListener] The object that wants to be notified when the event occurs (this context within the handler function).
|
|
205
|
+
*
|
|
206
|
+
* @since 1.142.0
|
|
207
|
+
* @private
|
|
208
|
+
* @ui5-restricted ANS
|
|
209
|
+
*/
|
|
210
|
+
attachNotificationsPress (...args) {
|
|
211
|
+
if (this.#isShellBar()) {
|
|
212
|
+
this.#oShellBar.attachNotificationsClick(...args);
|
|
213
|
+
} else {
|
|
214
|
+
this.#getShellHeaderNotificationsButton()?.attachPress(...args);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Detaches a handler from the notifications press event.
|
|
220
|
+
*
|
|
221
|
+
* @param {function} fnFunction The handler function to detach from the event.
|
|
222
|
+
* @param {object} [oListener] The object that wanted to be notified when the event occurred.
|
|
223
|
+
*
|
|
224
|
+
* @since 1.142.0
|
|
225
|
+
* @private
|
|
226
|
+
* @ui5-restricted ANS
|
|
227
|
+
*/
|
|
228
|
+
detachNotificationsPress (...args) {
|
|
229
|
+
if (this.#isShellBar()) {
|
|
230
|
+
this.#oShellBar.detachNotificationsClick(...args);
|
|
231
|
+
} else {
|
|
232
|
+
this.#getShellHeaderNotificationsButton()?.detachPress(...args);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Gets the DOM reference for the notifications area.
|
|
238
|
+
*
|
|
239
|
+
* @returns {Element} The DOM reference.
|
|
240
|
+
* @since 1.142.0
|
|
241
|
+
* @private
|
|
242
|
+
* @ui5-restricted ANS
|
|
243
|
+
*/
|
|
244
|
+
getNotificationsDomRef () {
|
|
245
|
+
if (this.#isShellBar()) {
|
|
246
|
+
return this.#oShellBar.getNotificationsDomRef();
|
|
247
|
+
}
|
|
248
|
+
return this.#getShellHeaderNotificationsButton()?.getDomRef();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
return NotificationsAPI;
|
|
253
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file This is an empty wrapper for the NotificationsProvider module implementation to document the required interface
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ushell/modules/BaseProvider"
|
|
8
|
+
], (
|
|
9
|
+
BaseProvider
|
|
10
|
+
) => {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @alias sap.ushell.modules.Notifications.NotificationsProvider
|
|
15
|
+
* @class
|
|
16
|
+
* @description The required interface for a Notifications module.
|
|
17
|
+
*
|
|
18
|
+
* @abstract
|
|
19
|
+
*
|
|
20
|
+
* @since 1.142.0
|
|
21
|
+
* @private
|
|
22
|
+
*
|
|
23
|
+
* @ui5-restricted ANS
|
|
24
|
+
*/
|
|
25
|
+
class NotificationsProvider extends BaseProvider {
|
|
26
|
+
/**
|
|
27
|
+
* Loads the search component and initializes the search functionality.
|
|
28
|
+
* @param {sap.ushell.modules.Notifications.NotificationsAPI} oNotificationsAPI The notifications API object.
|
|
29
|
+
*
|
|
30
|
+
* @since 1.142.0
|
|
31
|
+
* @private
|
|
32
|
+
* @ui5-restricted ANS
|
|
33
|
+
*/
|
|
34
|
+
constructor (oNotificationsAPI) {
|
|
35
|
+
super(oNotificationsAPI);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Cleans up the component instance.
|
|
40
|
+
*
|
|
41
|
+
* @since 1.142.0
|
|
42
|
+
* @private
|
|
43
|
+
* @ui5-restricted ANS
|
|
44
|
+
*/
|
|
45
|
+
exit () {
|
|
46
|
+
// to be overridden by subclasses
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return NotificationsProvider;
|
|
50
|
+
}, false);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file This module provides an API for configuring the notifications of the Launchpad shell bar.
|
|
5
|
+
* It allows adding a NotificationsProvider to the notifications via for example a Plugin.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ushell/Config",
|
|
10
|
+
"sap/ushell/utils"
|
|
11
|
+
], (
|
|
12
|
+
Config,
|
|
13
|
+
ushellUtils
|
|
14
|
+
) => {
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @alias sap.ushell.modules.Notifications
|
|
19
|
+
* @namespace
|
|
20
|
+
* @description The Notifications module API to set a NotficiationsProvider and Config.
|
|
21
|
+
*
|
|
22
|
+
* @since 1.142.0
|
|
23
|
+
* @private
|
|
24
|
+
*
|
|
25
|
+
* @ui5-restricted ANS
|
|
26
|
+
*/
|
|
27
|
+
class Notifications {
|
|
28
|
+
/**
|
|
29
|
+
* Sets the notifications provider for the notifications module.
|
|
30
|
+
* @param {string} sModulePath The module path of the notifications provider.
|
|
31
|
+
* @param {object} oConfiguration The configuration object for the notifications provider.
|
|
32
|
+
*
|
|
33
|
+
* @returns {Promise} A promise that resolves when the configuration is set.
|
|
34
|
+
*
|
|
35
|
+
* @since 1.142.0
|
|
36
|
+
* @private
|
|
37
|
+
* @ui5-restricted ANS
|
|
38
|
+
*/
|
|
39
|
+
async setNotificationsProvider (sModulePath, oConfiguration) {
|
|
40
|
+
Config.emit("/core/notifications", {
|
|
41
|
+
enabled: true,
|
|
42
|
+
modulePath: sModulePath,
|
|
43
|
+
configuration: JSON.stringify(oConfiguration || {})
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// ensure the NotificationsLoader is loaded so it can react to the config change.
|
|
47
|
+
// This may happen asynchronously if the FLP was not configured to use notifications at startup.
|
|
48
|
+
const [oNotificationsLoader] = await ushellUtils.requireAsync(["sap/ushell/modules/loader/NotificationsLoader"]);
|
|
49
|
+
await oNotificationsLoader.initialized();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return new Notifications();
|
|
53
|
+
});
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileOverview The Search API for the Fiori Launchpad.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Element",
|
|
9
|
+
"sap/ushell/modules/BaseAPI"
|
|
10
|
+
], (
|
|
11
|
+
Element,
|
|
12
|
+
BaseAPI
|
|
13
|
+
) => {
|
|
14
|
+
"use strict";
|
|
15
|
+
/**
|
|
16
|
+
* @alias sap.ushell.modules.Search.SearchAPI
|
|
17
|
+
* @class
|
|
18
|
+
* @description The API object for the Search module.
|
|
19
|
+
* This module cannot be required it gets injected in the constructor of the Search module.
|
|
20
|
+
* @see sap.ushell.modules.Search.Search
|
|
21
|
+
*
|
|
22
|
+
* @hideconstructor
|
|
23
|
+
*
|
|
24
|
+
* @since 1.142.0
|
|
25
|
+
* @private
|
|
26
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
27
|
+
*/
|
|
28
|
+
class SearchAPI extends BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* The instance of the ShellBar or ShellHeader depending on the ushell Config.
|
|
31
|
+
*
|
|
32
|
+
* @type {sap.f.gen.ui5.webcomponents_fiori.dist.ShellBar|sap.ushell.ui.ShellHeader}
|
|
33
|
+
* @since 1.142.0
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
#oShellBar;
|
|
37
|
+
|
|
38
|
+
constructor (oConfig) {
|
|
39
|
+
super(oConfig);
|
|
40
|
+
this.#oShellBar = Element.getElementById("shell-header")?.getComponentInstance?.()?.getRootControl()?.byId("shellBar");
|
|
41
|
+
if (!this.#oShellBar) {
|
|
42
|
+
// use the ShellHeader for compatibility reasons
|
|
43
|
+
this.#oShellBar = Element.getElementById("shell-header");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Gets the search button by ID as it would be expected in the ShellHeader.
|
|
49
|
+
* In case the ShellBar is used this method returns undefined as the button is not available.
|
|
50
|
+
*
|
|
51
|
+
* @returns {sap.ushell.ui.shell.ShellHeadItem|undefined} The search button or undefined if not available.
|
|
52
|
+
* @since 1.142.0
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
#getShellHeaderSearchButton () {
|
|
56
|
+
if (this.#isShellBar()) {
|
|
57
|
+
// only available in ShellHeader
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
return Element.getElementById("sf");
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Checks if the ShellBar instance is available. This is used as long as the ShellHeader may still be used.
|
|
65
|
+
*
|
|
66
|
+
* @returns {boolean} True if the ShellBar instance is available, false otherwise.
|
|
67
|
+
* @since 1.142.0
|
|
68
|
+
* @private
|
|
69
|
+
*/
|
|
70
|
+
#isShellBar () {
|
|
71
|
+
return this.#oShellBar.isA("sap.f.gen.ui5.webcomponents_fiori.dist.ShellBar");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Gets the search field instance.
|
|
76
|
+
* In case the ShellHeader is used this method returns undefined as the search field is not available.
|
|
77
|
+
* @returns {Promise<sap.f.gen.ui5.webcomponents_fiori.dist.ShellBarSearch>|undefined} A promise that resolves to the search field instance or undefined if not available.
|
|
78
|
+
* @since 1.142.0
|
|
79
|
+
* @private
|
|
80
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
81
|
+
*/
|
|
82
|
+
async getSearchField () {
|
|
83
|
+
if (this.#isShellBar()) {
|
|
84
|
+
return this.#oShellBar.getSearchField()[0];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Shows or hides the search field.
|
|
90
|
+
* Note: Hiding the search field will also collapse it if it is expanded.
|
|
91
|
+
*
|
|
92
|
+
* @param {boolean} bShow Whether to show or hide the search field.
|
|
93
|
+
* @since 1.142.0
|
|
94
|
+
* @private
|
|
95
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
96
|
+
*/
|
|
97
|
+
setShowSearchField (...args) {
|
|
98
|
+
if (this.#isShellBar()) {
|
|
99
|
+
this.#oShellBar.setShowSearchField(...args);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Gets whether the search field is shown or hidden.
|
|
105
|
+
*
|
|
106
|
+
* @returns {boolean|undefined} True if the search field is shown, false if it is hidden, or undefined if not available.
|
|
107
|
+
* @since 1.142.0
|
|
108
|
+
* @private
|
|
109
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
110
|
+
*/
|
|
111
|
+
getShowSearchField () {
|
|
112
|
+
if (this.#isShellBar()) {
|
|
113
|
+
return this.#oShellBar.getShowSearchField();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Binds the ShowSearchField property to a model. The model value must be compatible with
|
|
119
|
+
* the value of @see #setShowSearchField.
|
|
120
|
+
*
|
|
121
|
+
* @param {string} sPath Absolute path to the property in the model.
|
|
122
|
+
* @param {sap.ui.model.Model} oModel The model to bind to.
|
|
123
|
+
* @since 1.142.0
|
|
124
|
+
* @private
|
|
125
|
+
* @ui5-restricted ANS
|
|
126
|
+
*/
|
|
127
|
+
bindShowSearchField (sPath, oModel) {
|
|
128
|
+
this.bindModelProperty(sPath, oModel, "showSearchField", this.setShowSearchField.bind(this));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Unbinds the ShowSearchField property from a model.
|
|
133
|
+
*
|
|
134
|
+
* @since 1.142.0
|
|
135
|
+
* @private
|
|
136
|
+
* @ui5-restricted ANS
|
|
137
|
+
*/
|
|
138
|
+
unbindShowSearchField () {
|
|
139
|
+
this.unbindModelProperty("showSearchField");
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Attaches a handler to the search button press event.
|
|
144
|
+
* Fired, when the search button is activated.
|
|
145
|
+
* Note: You can prevent expanding/collapsing of the search field by calling <code>event.preventDefault()</code>.
|
|
146
|
+
*
|
|
147
|
+
* @param {object} [oData] An object that will be passed to the handler along with the event object when the event is fired
|
|
148
|
+
* @param {function} fnFunction The handler function to call when the event occurs.
|
|
149
|
+
* This function will be called in the context of the oListener instance (if present)
|
|
150
|
+
* or on the event provider instance. The event object (@see: sap.ui.base.Event) is provided
|
|
151
|
+
* as first argument of the handler. Handlers must not change the content of the event.
|
|
152
|
+
* The second argument is the specified oData instance (if present).
|
|
153
|
+
* @param {object} [oListener] The object that wants to be notified when the event occurs (this context within the handler function).
|
|
154
|
+
*
|
|
155
|
+
* @since 1.142.0
|
|
156
|
+
* @private
|
|
157
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
158
|
+
*/
|
|
159
|
+
attachSearchButtonPress (...args) {
|
|
160
|
+
if (this.#isShellBar()) {
|
|
161
|
+
this.#oShellBar.attachSearchButtonClick(...args);
|
|
162
|
+
} else {
|
|
163
|
+
this.#getShellHeaderSearchButton()?.attachPress(...args);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Detaches a handler from the search button press event.
|
|
169
|
+
*
|
|
170
|
+
* @param {function} fnFunction The handler function to detach from the event.
|
|
171
|
+
* @param {object} [oListener] The object that wanted to be notified when the event occurred.
|
|
172
|
+
*
|
|
173
|
+
* @since 1.142.0
|
|
174
|
+
* @private
|
|
175
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
176
|
+
*/
|
|
177
|
+
detachSearchButtonPress (...args) {
|
|
178
|
+
if (this.#isShellBar()) {
|
|
179
|
+
this.#oShellBar.detachSearchButtonClick(...args);
|
|
180
|
+
} else {
|
|
181
|
+
this.#getShellHeaderSearchButton()?.detachPress(...args);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Detaches a handler from the search button toggle event.
|
|
187
|
+
* Fired, when the search field is expanded or collapsed.
|
|
188
|
+
* Note: this event is only available when using the ShellBar.
|
|
189
|
+
*
|
|
190
|
+
* @param {object} [oData] An object that will be passed to the handler along with the event object when the event is fired
|
|
191
|
+
* @param {function} fnFunction The handler function to call when the event occurs.
|
|
192
|
+
* This function will be called in the context of the oListener instance (if present)
|
|
193
|
+
* or on the event provider instance. The event object (@see: sap.ui.base.Event) is provided
|
|
194
|
+
* as first argument of the handler. Handlers must not change the content of the event.
|
|
195
|
+
* The second argument is the specified oData instance (if present).
|
|
196
|
+
* @param {object} [oListener] The object that wants to be notified when the event occurs (this context within the handler function).
|
|
197
|
+
*
|
|
198
|
+
* @since 1.142.0
|
|
199
|
+
* @private
|
|
200
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
201
|
+
*/
|
|
202
|
+
attachSearchFieldToggle (...args) {
|
|
203
|
+
if (this.#isShellBar()) {
|
|
204
|
+
this.#oShellBar.attachSearchFieldToggle(...args);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Detaches a handler from the search field toggle event.
|
|
210
|
+
*
|
|
211
|
+
* @param {function} fnFunction The handler function to detach from the event.
|
|
212
|
+
* @param {object} [oListener] The object that wanted to be notified when the event occurred.
|
|
213
|
+
*
|
|
214
|
+
* @since 1.142.0
|
|
215
|
+
* @private
|
|
216
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
217
|
+
*/
|
|
218
|
+
detachSearchFieldToggle (...args) {
|
|
219
|
+
if (this.#isShellBar()) {
|
|
220
|
+
this.#oShellBar.detachSearchFieldToggle(...args);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Attaches a handler to the search field clear event.
|
|
226
|
+
* Fired, when the search cancel button is activated.
|
|
227
|
+
* Note: You can prevent the default behavior (clearing the search field value)
|
|
228
|
+
* by calling <code>event.preventDefault()</code>. The search will still be closed.
|
|
229
|
+
* Note: The search-field-clear event is in an experimental state and is a
|
|
230
|
+
* subject to change.
|
|
231
|
+
* Note: this event is only available when using the ShellBar.
|
|
232
|
+
*
|
|
233
|
+
* @param {object} [oData] An object that will be passed to the handler along with the event object when the event is fired
|
|
234
|
+
* @param {function} fnFunction The handler function to call when the event occurs.
|
|
235
|
+
* This function will be called in the context of the oListener instance (if present)
|
|
236
|
+
* or on the event provider instance. The event object (@see: sap.ui.base.Event) is provided
|
|
237
|
+
* as first argument of the handler. Handlers must not change the content of the event.
|
|
238
|
+
* The second argument is the specified oData instance (if present).
|
|
239
|
+
* @param {object} [oListener] The object that wants to be notified when the event occurs (this context within the handler function).
|
|
240
|
+
*
|
|
241
|
+
* @since 1.142.0
|
|
242
|
+
* @private
|
|
243
|
+
* @experimental
|
|
244
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
245
|
+
*/
|
|
246
|
+
attachSearchFieldClear (...args) {
|
|
247
|
+
if (this.#isShellBar()) {
|
|
248
|
+
this.#oShellBar.attachSearchFieldClear(...args);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Detaches a handler from the search field clear event.
|
|
254
|
+
*
|
|
255
|
+
* @param {function} fnFunction The handler function to detach from the event.
|
|
256
|
+
* @param {object} [oListener] The object that wanted to be notified when the event occurred.
|
|
257
|
+
*
|
|
258
|
+
* @since 1.142.0
|
|
259
|
+
* @private
|
|
260
|
+
* @experimental
|
|
261
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
262
|
+
*/
|
|
263
|
+
detachSearchFieldClear (...args) {
|
|
264
|
+
if (this.#isShellBar()) {
|
|
265
|
+
this.#oShellBar.detachSearchFieldClear(...args);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return SearchAPI;
|
|
271
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file This is an empty wrapper for the SearchProvider module implementation to document the required interface
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ushell/modules/BaseProvider"
|
|
8
|
+
], (
|
|
9
|
+
BaseProvider
|
|
10
|
+
) => {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @alias sap.ushell.modules.Search.SearchProvider
|
|
15
|
+
* @class
|
|
16
|
+
* @description The required interface for a Search module.
|
|
17
|
+
*
|
|
18
|
+
* @abstract
|
|
19
|
+
*
|
|
20
|
+
* @since 1.142.0
|
|
21
|
+
* @private
|
|
22
|
+
*
|
|
23
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
24
|
+
*/
|
|
25
|
+
class SearchProvider extends BaseProvider {
|
|
26
|
+
/**
|
|
27
|
+
* Loads the search component and initializes the search functionality.
|
|
28
|
+
* @param {sap.ushell.modules.Search.SearchAPI} oSearchAPI The search API object.
|
|
29
|
+
*
|
|
30
|
+
* @since 1.142.0
|
|
31
|
+
* @private
|
|
32
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
33
|
+
*/
|
|
34
|
+
constructor (oSearchAPI) {
|
|
35
|
+
super(oSearchAPI);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Cleans up the component instance.
|
|
40
|
+
*
|
|
41
|
+
* @since 1.142.0
|
|
42
|
+
* @private
|
|
43
|
+
* @ui5-restricted HAN-AS-INA-UI
|
|
44
|
+
*/
|
|
45
|
+
exit () {
|
|
46
|
+
// to be overridden by subclasses
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return SearchProvider;
|
|
50
|
+
}, false);
|