@sapui5/sap.ushell 1.119.3 → 1.120.1
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 +3 -3
- package/src/main/js/sap/ushell/Container.js +272 -41
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +3 -2
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/SessionHandler.js +11 -6
- package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/User.js +26 -35
- package/src/main/js/sap/ushell/_ApplicationType/urlTemplateResolution.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/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +15 -11
- 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 +16 -11
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +18 -0
- 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/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/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 +24 -18
- 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/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +4 -7
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +17 -22
- 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 +19 -0
- 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 +11 -7
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +8 -8
- package/src/main/js/sap/ushell/api/RTA.js +47 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +12 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeContext.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent.js +2 -2
- 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-def-dev.js +6 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ushell.js +3 -0
- package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +34 -2
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +7 -2
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +1 -1
- package/src/main/js/sap/ushell/components/HomepageManager.js +5 -5
- package/src/main/js/sap/ushell/components/SharedComponentUtils.js +7 -10
- package/src/main/js/sap/ushell/components/_HeaderManager/ShellHeader.controller.js +3 -3
- package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +5 -0
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +5 -0
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +5 -0
- package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +5 -0
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +3 -3
- package/src/main/js/sap/ushell/components/appfinder/EasyAccessView.js +0 -8
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +4 -4
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +18 -16
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +1 -1
- package/src/main/js/sap/ushell/components/cards/Card.controller.js +2 -2
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +92 -71
- 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/controller/WidgetGallery.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +4 -4
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homeApp/error/manifest.json +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 +2 -2
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +5 -5
- 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/StateManager.js +37 -24
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.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 +2 -2
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +7 -4
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +6 -7
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +39 -13
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +3 -3
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +5 -5
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +25 -45
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +3 -3
- 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 +4 -4
- package/src/main/js/sap/ushell/components/shell/Settings/ProfilingLoader.js +4 -0
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +4 -0
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +4 -3
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +10 -13
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +13 -22
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +11 -14
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/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 +2 -2
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +4 -6
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +14 -18
- 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 +16 -12
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.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/view/WorkPageBuilder.view.xml +3 -3
- 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 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- 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/{renderers/fiori2 → renderer}/AccessKeysHandler.js +1 -1
- package/src/main/js/sap/ushell/renderer/History.js +84 -0
- package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +96 -0
- package/src/main/js/sap/ushell/renderer/Renderer.js +2851 -0
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +3155 -0
- package/src/main/js/sap/ushell/{renderers/fiori2/ShellAsync.view.js → renderer/Shell.view.js} +29 -18
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/ShellLayout.js +3 -3
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/allMyApps/AllMyApps.controller.js +4 -4
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/allMyApps/AllMyApps.view.xml +1 -1
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsKeyboardHandler.js +108 -0
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +453 -0
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources.properties +4 -0
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/Component.js +3 -3
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/controller/CEPSearchApp.controller.js +1 -1
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/controller/SearchApp.controller.js +1 -1
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/manifest.json +2 -2
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/view/CEPSearchApp.view.js +2 -2
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/view/SearchApp.view.js +2 -2
- package/src/main/js/sap/ushell/renderers/fiori2/History.js +7 -68
- package/src/main/js/sap/ushell/renderers/fiori2/LogonFrameProvider.js +9 -79
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +101 -1882
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +2 -3
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.controller.js +8 -3130
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +7 -7
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsKeyboardHandler.js +7 -92
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsManager.js +8 -438
- package/src/main/js/sap/ushell/resources.js +1 -1
- package/src/main/js/sap/ushell/services/AllMyApps.js +16 -7
- package/src/main/js/sap/ushell/services/AppConfiguration.js +12 -0
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +11 -14
- package/src/main/js/sap/ushell/services/AppState.js +12 -8
- package/src/main/js/sap/ushell/services/Bookmark.js +15 -13
- package/src/main/js/sap/ushell/services/BookmarkV2.js +919 -0
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +229 -241
- package/src/main/js/sap/ushell/services/CommonDataModel.js +14 -4
- package/src/main/js/sap/ushell/services/Configuration.js +12 -11
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +13 -10
- package/src/main/js/sap/ushell/services/Container.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +8 -6
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +16 -10
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/FloatingContainer.js +103 -0
- package/src/main/js/sap/ushell/services/Extension/Footer.js +61 -0
- package/src/main/js/sap/ushell/services/Extension/Header.js +193 -0
- package/src/main/js/sap/ushell/services/Extension/Item.js +195 -0
- package/src/main/js/sap/ushell/services/Extension/SidePane.js +155 -0
- package/src/main/js/sap/ushell/services/Extension/ToolArea.js +152 -0
- package/src/main/js/sap/ushell/services/Extension.js +381 -0
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +48 -59
- package/src/main/js/sap/ushell/services/Message.js +15 -14
- package/src/main/js/sap/ushell/services/MessageBroker.js +12 -12
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +48 -70
- package/src/main/js/sap/ushell/services/Navigation/utils.js +565 -0
- package/src/main/js/sap/ushell/services/Navigation.js +152 -139
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +11 -8
- package/src/main/js/sap/ushell/services/Notifications.js +118 -1523
- package/src/main/js/sap/ushell/services/NotificationsV2.js +1872 -0
- package/src/main/js/sap/ushell/services/PageBuilding.js +11 -8
- package/src/main/js/sap/ushell/services/PagePersistence.js +11 -8
- package/src/main/js/sap/ushell/services/PageReferencing.js +11 -8
- package/src/main/js/sap/ushell/services/Pages.js +11 -15
- package/src/main/js/sap/ushell/services/Personalization.js +5 -3
- package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +410 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +109 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/TransientPersonalizer.js +57 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/Variant.js +180 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSet.js +296 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.js +125 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +71 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +172 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.js +23 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.private.js +18 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/utils.js +233 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +641 -0
- package/src/main/js/sap/ushell/services/PluginManager.js +47 -55
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +61 -54
- package/src/main/js/sap/ushell/services/Search.js +15 -2
- package/src/main/js/sap/ushell/services/SearchCEP.js +40 -44
- package/src/main/js/sap/ushell/services/SearchableContent.js +9 -9
- package/src/main/js/sap/ushell/services/ShellNavigation.js +14 -13
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +9 -10
- package/src/main/js/sap/ushell/services/SupportTicket.js +14 -14
- package/src/main/js/sap/ushell/services/UITracer.js +31 -35
- package/src/main/js/sap/ushell/services/URLParsing.js +9 -11
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +14 -13
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +29 -26
- package/src/main/js/sap/ushell/services/UsageAnalytics.js +6 -0
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +11 -7
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +20 -26
- package/src/main/js/sap/ushell/services/UserInfo.js +44 -23
- package/src/main/js/sap/ushell/services/UserRecents.js +13 -5
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +12 -9
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +10 -8
- 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 +3 -4
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +4 -4
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.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 +2 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +6 -0
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +5 -1
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +13 -9
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +17 -13
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +5 -0
- package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +5 -1
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +4 -0
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +17 -9
- package/src/main/js/sap/ushell/services/_Personalization/VariantSetAdapter.js +4 -6
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapter.js +5 -44
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapterContainer.js +5 -101
- package/src/main/js/sap/ushell/services/_Personalization/constants.js +3 -0
- package/src/main/js/sap/ushell/services/_Personalization/constants.private.js +3 -0
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +3 -0
- 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/_Ui5ComponentLoader/utils.js +29 -5
- package/src/main/js/sap/ushell/services/_UserRecents/UserRecentsBase.js +19 -27
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstance.js +4 -0
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceAbap.js +3 -0
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +1 -1
- package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +13 -15
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellAppTitle.less +4 -4
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellAppTitle.less +4 -4
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellAppTitle.less +2 -2
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellAppTitle.less +2 -2
- package/src/main/js/sap/ushell/ui/AppContainer.js +2 -2
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +2 -2
- package/src/main/js/sap/ushell/ui/ShellHeader.js +2 -2
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +8 -12
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +21 -8
- package/src/main/js/sap/ushell/ui/launchpad/TileState.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +14 -26
- package/src/main/js/sap/ushell/utils/Deferred.js +88 -0
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/WindowUtils.js +8 -8
- package/src/main/js/sap/ushell/utils.js +31 -67
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +7 -2
- package/ui5.yaml +8 -2
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/HeadEndItemsOverflowPopover.fragment.xml +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ar.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_bg.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ca.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_cs.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_cy.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_da.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_de.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_el.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_GB.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_US_sappsd.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_US_saprigi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_US_saptrc.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_es.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_es_MX.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_et.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_fi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_fr.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_fr_CA.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_hi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_hr.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_hu.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_id.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_it.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_iw.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ja.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_kk.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ko.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_lt.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_lv.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ms.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_nl.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_no.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_pl.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_pt.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_pt_PT.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ro.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ru.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sh.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sk.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sl.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sv.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_th.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_tr.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_uk.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_vi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_zh_CN.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_zh_TW.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/util.js +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/utils.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @file Exposes a CommonDataModel
|
|
5
|
-
* @version 1.
|
|
4
|
+
* @file Exposes a CommonDataModel-based site document in a platform-neutral format to it's clients
|
|
5
|
+
* @version 1.120.1
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ushell/services/_CommonDataModel/PersonalizationProcessor",
|
|
@@ -59,6 +59,15 @@ sap.ui.define([
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
+
* @alias sap.ushell.services.CommonDataModel
|
|
63
|
+
* @class
|
|
64
|
+
* @classdesc The Unified Shell's CommonDataModel service.
|
|
65
|
+
* Exposes a CommonDataModel-based site document in a platform-neutral format to its clients.
|
|
66
|
+
*
|
|
67
|
+
* <b>Note:</b> To retrieve a valid instance of this service, it is necessary to call
|
|
68
|
+
* <code>sap.ushell.Container.getServiceAsync("CommonDataModel")</code>. For details, see
|
|
69
|
+
* {@link sap.ushell.services.Container#getServiceAsync}.
|
|
70
|
+
*
|
|
62
71
|
* @param {object} oAdapter
|
|
63
72
|
* Adapter, provides an array of Inbounds
|
|
64
73
|
* @param {object} oContainerInterface
|
|
@@ -68,9 +77,10 @@ sap.ui.define([
|
|
|
68
77
|
* @param {object} oServiceConfiguration
|
|
69
78
|
* The service configuration not in use
|
|
70
79
|
*
|
|
71
|
-
* @
|
|
72
|
-
*
|
|
80
|
+
* @hideconstructor
|
|
81
|
+
*
|
|
73
82
|
* @since 1.40.0
|
|
83
|
+
* @private
|
|
74
84
|
*/
|
|
75
85
|
function CommonDataModel (oAdapter, oContainerInterface, sParameters, oServiceConfiguration) {
|
|
76
86
|
this._oAdapter = oAdapter;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's Configuration service enables Components of any kind to consume parts of Configuration
|
|
5
5
|
* provided by the shell. It allows to attach on updates and receive the current values
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.120.1
|
|
8
8
|
*/
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/ushell/Config",
|
|
@@ -13,17 +13,18 @@ sap.ui.define([
|
|
|
13
13
|
"use strict";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* @alias sap.ushell.services.Configuration
|
|
17
|
+
* @class
|
|
18
|
+
* @classdesc The unified shell's Configuration service.
|
|
19
|
+
* Allows attaching to <b>selected</b> launchpad configuration settings and their value changes.
|
|
19
20
|
*
|
|
20
|
-
*
|
|
21
|
+
* <b>Note:</b> To retrieve a valid instance of this service, it is necessary to call
|
|
22
|
+
* <code>sap.ushell.Container.getServiceAsync("Configuration")</code>. For details, see
|
|
23
|
+
* {@link sap.ushell.services.Container#getServiceAsync}.
|
|
21
24
|
*
|
|
22
|
-
* @
|
|
23
|
-
* launchpad configuration settings and their value changes.
|
|
25
|
+
* @hideconstructor
|
|
24
26
|
*
|
|
25
27
|
* @since 1.64.0
|
|
26
|
-
* @see sap.ushell.services.Container#getServiceAsync
|
|
27
28
|
* @public
|
|
28
29
|
*/
|
|
29
30
|
function Configuration () {
|
|
@@ -33,9 +34,9 @@ sap.ui.define([
|
|
|
33
34
|
* The returned value can directly be used in {@link sap.m.GenericTile#sizeBehavior}.
|
|
34
35
|
*
|
|
35
36
|
* Once attached, <code>fnCallback</code> will be called once initially for the <b>current value</b>
|
|
36
|
-
* and afterwards
|
|
37
|
+
* and afterwards every time the value changed.
|
|
37
38
|
*
|
|
38
|
-
* Please ensure to detach from the registry by calling <code>.detach</code> on the
|
|
39
|
+
* Please ensure to detach from the registry by calling <code>.detach</code> on the returned object
|
|
39
40
|
* e.g. in the destroy function of your component or controller! Make sure that you do not attach
|
|
40
41
|
* twice with the same function as otherwise a detach cannot be performed later!
|
|
41
42
|
*
|
|
@@ -46,7 +47,7 @@ sap.ui.define([
|
|
|
46
47
|
* // the callback that is called whenever the property changes
|
|
47
48
|
* var fnCallback = function (sSizeBehavior) {
|
|
48
49
|
* // do something with sSizeBehavior like setting it on a
|
|
49
|
-
* // sap.m.
|
|
50
|
+
* // sap.m.GenericTile via model and data binding!
|
|
50
51
|
* };
|
|
51
52
|
*
|
|
52
53
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The Unified Shell's Configuration Defaults service exposes default configurations set in the code base.
|
|
5
5
|
*
|
|
6
|
-
* @version 1.
|
|
6
|
+
* @version 1.120.1
|
|
7
7
|
*/
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/base/Log",
|
|
@@ -12,17 +12,20 @@ sap.ui.define([
|
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* @alias sap.ushell.services.ConfigurationDefaults
|
|
16
|
+
* @class
|
|
17
|
+
* @classdesc The Unified Shell's Configuration Defaults service.
|
|
18
|
+
* Exposes default configurations set in the code base.
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
+
* <b>Note:</b> To retrieve a valid instance of this service, it is necessary to call
|
|
21
|
+
* <code>sap.ushell.Container.getServiceAsync("ConfigurationDefaults")</code>. For details, see
|
|
22
|
+
* {@link sap.ushell.services.Container#getServiceAsync}.
|
|
20
23
|
*
|
|
21
24
|
* @param {object} oAdapter The service adapter for the ConfigurationDefaults service
|
|
22
25
|
*
|
|
23
|
-
* @
|
|
26
|
+
* @hideconstructor
|
|
27
|
+
*
|
|
24
28
|
* @since 1.70.0
|
|
25
|
-
* @see sap.ushell.services.Container#getServiceAsync
|
|
26
29
|
* @private
|
|
27
30
|
*/
|
|
28
31
|
function ConfigurationDefaults (oAdapter) {
|
|
@@ -57,9 +60,9 @@ sap.ui.define([
|
|
|
57
60
|
var aResult = aConfigurationPaths.reduce(function (oDefaultsResult, sPath) {
|
|
58
61
|
var oResolvedDefaults;
|
|
59
62
|
if (that._isValidConfigPath(sPath)) {
|
|
60
|
-
var aPath = sPath.split("/")
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
var aPath = sPath.split("/");
|
|
64
|
+
var sPropertyName = aPath.pop();
|
|
65
|
+
var oObject = oDefaultConfig;
|
|
63
66
|
|
|
64
67
|
for (var i = 0; i < aPath.length && oObject; i++) {
|
|
65
68
|
oObject = oObject[aPath[i]];
|
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
*
|
|
15
15
|
* @param {object} oAdapter the platform-specific adapter corresponding to this service
|
|
16
16
|
* @class
|
|
17
|
-
* @classdesc The Unified Shell's container
|
|
17
|
+
* @classdesc The Unified Shell's container. Manages renderers, services, and adapters.
|
|
18
18
|
* @alias sap.ushell.services.Container
|
|
19
19
|
* @since 1.15.0
|
|
20
20
|
* @deprecated since 1.101
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* This file exposes an API to perform (invoke) Cross Application Navigation for applications.
|
|
6
6
|
* It exposes interfaces to perform a hash change and/or trigger an external navigation.
|
|
7
7
|
*
|
|
8
|
-
* @deprecated since 1.120
|
|
9
|
-
* @version 1.
|
|
8
|
+
* @deprecated since 1.120 Please use {@link sap.ushell.services.Navigation} instead
|
|
9
|
+
* @version 1.120.1
|
|
10
10
|
*/
|
|
11
11
|
sap.ui.define([
|
|
12
12
|
"sap/ushell/services/AppConfiguration",
|
|
@@ -50,8 +50,9 @@ sap.ui.define([
|
|
|
50
50
|
/**
|
|
51
51
|
* @alias sap.ushell.services.CrossApplicationNavigation
|
|
52
52
|
* @class
|
|
53
|
-
* @classdesc The Unified Shell's CrossApplicationNavigation service
|
|
54
|
-
* of the
|
|
53
|
+
* @classdesc The Unified Shell's CrossApplicationNavigation service.
|
|
54
|
+
* Allows navigating to "external" targets outside of the currently running app (but still in scope of the current Fiori launchpad)
|
|
55
|
+
* or to create links to such external targets.
|
|
55
56
|
*
|
|
56
57
|
* To use the CrossApplicationNavigation service you can retrieve an instance via ushell's Container:
|
|
57
58
|
* <pre>
|
|
@@ -113,6 +114,7 @@ sap.ui.define([
|
|
|
113
114
|
* @see sap.ushell.services.Container#getServiceAsync
|
|
114
115
|
*
|
|
115
116
|
* @since 1.15.0
|
|
117
|
+
* @deprecated since 1.120 Please use {@link sap.ushell.services.Navigation} instead
|
|
116
118
|
* @public
|
|
117
119
|
*/
|
|
118
120
|
function CrossApplicationNavigation (oContainerInterface, sParameters, oServiceConf) {
|
|
@@ -746,7 +748,7 @@ sap.ui.define([
|
|
|
746
748
|
* A navigation to the Fiori launchpad Home is performed when this method is called on a first navigation.
|
|
747
749
|
* In all other cases, this function simply performs a browser back navigation.
|
|
748
750
|
*
|
|
749
|
-
*
|
|
751
|
+
* Note that the behavior of this method is subject to change and therefore it may not yield to the expected results
|
|
750
752
|
* especially on mobile devices where "back" is the previous inner-app state if these are put into the history!
|
|
751
753
|
*
|
|
752
754
|
* @returns {Promise<undefined>} A promise which resolves once the back navigation was triggered
|
|
@@ -1387,7 +1389,7 @@ sap.ui.define([
|
|
|
1387
1389
|
* <ul>
|
|
1388
1390
|
* <li>
|
|
1389
1391
|
* <b>required</b>: whether the parameter must be required (true) or not required (false) in the signature of the matching target
|
|
1390
|
-
* (once the navigation occurs to the returned link).
|
|
1392
|
+
* (once the navigation occurs to the returned link). Note that this option will be effective if the Fiori Launchpad is
|
|
1391
1393
|
* configured to resolve navigation targets via <code>sap.ushell.services.ClientSideTargetResolution</code>
|
|
1392
1394
|
* and therefore may not be supported in all platforms.<br />
|
|
1393
1395
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* The service provide dark mode support functionality
|
|
7
7
|
*
|
|
8
|
-
* @version 1.
|
|
8
|
+
* @version 1.120.1
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define([
|
|
11
11
|
"sap/base/Log",
|
|
@@ -27,10 +27,16 @@ sap.ui.define([
|
|
|
27
27
|
var PREFERS_DARK_COLOR_QUERY = "(prefers-color-scheme: dark)";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @name sap.ushell.services.DarkModeSupport
|
|
30
|
+
* @alias sap.ushell.services.DarkModeSupport
|
|
33
31
|
* @class
|
|
32
|
+
* @classdesc Dark Mode service.
|
|
33
|
+
*
|
|
34
|
+
* <b>Note:</b> To retrieve a valid instance of this service, it is necessary to call
|
|
35
|
+
* <code>sap.ushell.Container.getServiceAsync("DarkModeSupport")</code>. For details, see
|
|
36
|
+
* {@link sap.ushell.services.Container#getServiceAsync}.
|
|
37
|
+
*
|
|
38
|
+
* @hideconstructor
|
|
39
|
+
*
|
|
34
40
|
* @since 1.72.0
|
|
35
41
|
* @private
|
|
36
42
|
*/
|
|
@@ -130,8 +136,8 @@ sap.ui.define([
|
|
|
130
136
|
DarkModeSupport.prototype._toggleDarkModeBasedOnSystemColorScheme = function () {
|
|
131
137
|
var sCurrentTheme = this._getCurrentTheme();
|
|
132
138
|
if (this.darkMediaQueryList && this.isThemeSupportDarkMode(sCurrentTheme)) {
|
|
133
|
-
var oSupportedThemePair = this._findSupportedThemePair(sCurrentTheme)
|
|
134
|
-
|
|
139
|
+
var oSupportedThemePair = this._findSupportedThemePair(sCurrentTheme);
|
|
140
|
+
var bIsDarkModeInSystem = this.darkMediaQueryList.matches;
|
|
135
141
|
|
|
136
142
|
var sToTheme = bIsDarkModeInSystem ? oSupportedThemePair.dark : oSupportedThemePair.light;
|
|
137
143
|
sap.ushell.Container.getUser().applyTheme(sToTheme);
|
|
@@ -152,8 +158,8 @@ sap.ui.define([
|
|
|
152
158
|
* @private
|
|
153
159
|
*/
|
|
154
160
|
DarkModeSupport.prototype.toggleModeChange = function () {
|
|
155
|
-
var sCurrentTheme = this._getCurrentTheme()
|
|
156
|
-
|
|
161
|
+
var sCurrentTheme = this._getCurrentTheme();
|
|
162
|
+
var oSupportedThemePair = this._findSupportedThemePair(sCurrentTheme);
|
|
157
163
|
if (oSupportedThemePair) {
|
|
158
164
|
var sToTheme = sCurrentTheme === oSupportedThemePair.light
|
|
159
165
|
? oSupportedThemePair.dark
|
|
@@ -211,8 +217,8 @@ sap.ui.define([
|
|
|
211
217
|
* @private
|
|
212
218
|
*/
|
|
213
219
|
DarkModeSupport.prototype.getCurrentThemeMode = function () {
|
|
214
|
-
var sCurrentTheme = this._getCurrentTheme()
|
|
215
|
-
|
|
220
|
+
var sCurrentTheme = this._getCurrentTheme();
|
|
221
|
+
var oSupportedThemePair = this._findSupportedThemePair(sCurrentTheme);
|
|
216
222
|
if (oSupportedThemePair) {
|
|
217
223
|
return sCurrentTheme === oSupportedThemePair.light
|
|
218
224
|
? DarkModeSupport.Mode.LIGHT
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @class
|
|
18
18
|
* @classdesc The Unified Shell's end user feedback service.
|
|
19
19
|
* This service is deprecated and does nothing.
|
|
20
|
-
* End user feedback functionality
|
|
20
|
+
* End user feedback functionality is not part of the ushell library.
|
|
21
21
|
*
|
|
22
22
|
* @public
|
|
23
23
|
* @see sap.ushell.services.Container#getServiceAsync
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileOverview Defines the interface for extensions in the FloatingContainer ShellArea.
|
|
5
|
+
*
|
|
6
|
+
* @version 1.120.1
|
|
7
|
+
*/
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ushell/Container"
|
|
10
|
+
], function (
|
|
11
|
+
Container
|
|
12
|
+
) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @alias sap.ushell.services.Extension.FloatingContainer
|
|
17
|
+
* @class
|
|
18
|
+
* @classdesc The FloatingContainer.
|
|
19
|
+
* To be instantiated by {@link sap.ushell.services.Extension}.
|
|
20
|
+
* <p><b>Restriction:</b> Might be ignored for apps running in an iframe</p>
|
|
21
|
+
*
|
|
22
|
+
* @hideconstructor
|
|
23
|
+
*
|
|
24
|
+
* @since 1.120.0
|
|
25
|
+
* @experimental since 1.120.0
|
|
26
|
+
* @private
|
|
27
|
+
* @ui5-restricted
|
|
28
|
+
*/
|
|
29
|
+
class FloatingContainer {
|
|
30
|
+
#renderer = Container.getRendererInternal();
|
|
31
|
+
#eventDelegate = null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Sets the content of the FloatingContainer.
|
|
35
|
+
* @param {sap.ui.core.Control} control The actual content of the extension.
|
|
36
|
+
* @param {string} dragSelector CSS selector describing the drag handle to enable drag and drop.
|
|
37
|
+
* @returns {sap.ushell.services.Extension.FloatingContainer} this to allow method chaining.
|
|
38
|
+
*
|
|
39
|
+
* @since 1.120.0
|
|
40
|
+
* @private
|
|
41
|
+
* @ui5-restricted
|
|
42
|
+
*/
|
|
43
|
+
setContent (control, dragSelector) {
|
|
44
|
+
this.#renderer.setFloatingContainerContent(control);
|
|
45
|
+
this.#eventDelegate = {
|
|
46
|
+
onAfterRendering: () => {
|
|
47
|
+
this.#renderer.setFloatingContainerDragSelector(dragSelector);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
control.addEventDelegate(this.#eventDelegate, this);
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @returns {sap.ushell.services.Extension.FloatingContainer} this to allow method chaining.
|
|
56
|
+
*
|
|
57
|
+
* @since 1.120.0
|
|
58
|
+
* @private
|
|
59
|
+
* @ui5-restricted
|
|
60
|
+
*/
|
|
61
|
+
show () {
|
|
62
|
+
this.#renderer.setFloatingContainerVisibility(true);
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @returns {sap.ushell.services.Extension.FloatingContainer} this to allow method chaining.
|
|
68
|
+
*
|
|
69
|
+
* @since 1.120.0
|
|
70
|
+
* @private
|
|
71
|
+
* @ui5-restricted
|
|
72
|
+
*/
|
|
73
|
+
hide () {
|
|
74
|
+
this.#renderer.setFloatingContainerVisibility(false);
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @returns {Promise<boolean>} Whether the floating container is currently in <code>docked</code> state.
|
|
80
|
+
*
|
|
81
|
+
* @since 1.120.0
|
|
82
|
+
* @private
|
|
83
|
+
* @ui5-restricted
|
|
84
|
+
*/
|
|
85
|
+
async isDocked () {
|
|
86
|
+
const sFloatingContainerState = this.#renderer.getFloatingContainerState() || "";
|
|
87
|
+
return sFloatingContainerState.startsWith("docked");
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @returns {Promise<boolean>} Whether the floating container is currently visible.
|
|
92
|
+
*
|
|
93
|
+
* @since 1.120.0
|
|
94
|
+
* @private
|
|
95
|
+
* @ui5-restricted
|
|
96
|
+
*/
|
|
97
|
+
async isVisible () {
|
|
98
|
+
return this.#renderer.getFloatingContainerVisiblity();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return FloatingContainer;
|
|
103
|
+
});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileOverview Defines the interface for extensions in the Footer ShellArea.
|
|
5
|
+
*
|
|
6
|
+
* @version 1.120.1
|
|
7
|
+
*/
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ushell/Container"
|
|
10
|
+
], function (
|
|
11
|
+
Container
|
|
12
|
+
) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @alias sap.ushell.services.Extension.Footer
|
|
17
|
+
* @class
|
|
18
|
+
* @classdesc The footer extension point is positioned below the launchpad content.
|
|
19
|
+
* To be instantiated by {@link sap.ushell.services.Extension}.
|
|
20
|
+
* <p><b>Restriction:</b> Might be ignored for apps running in an iframe</p>
|
|
21
|
+
*
|
|
22
|
+
* @hideconstructor
|
|
23
|
+
*
|
|
24
|
+
* @since 1.120.0
|
|
25
|
+
* @experimental since 1.120.0
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
class Footer {
|
|
29
|
+
#renderer = Container.getRendererInternal();
|
|
30
|
+
#control = null;
|
|
31
|
+
|
|
32
|
+
constructor (control) {
|
|
33
|
+
this.#control = control;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Returns the related control instance.
|
|
38
|
+
* @returns {Promise<sap.ui.core.Control>} The control.
|
|
39
|
+
*
|
|
40
|
+
* @since 1.120.0
|
|
41
|
+
* @private
|
|
42
|
+
* @ui5-restricted
|
|
43
|
+
*/
|
|
44
|
+
async getControl () {
|
|
45
|
+
return this.#control;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Destroys the footer.
|
|
50
|
+
* @returns {Promise} Resolves once the footer was destroyed.
|
|
51
|
+
*
|
|
52
|
+
* @since 1.120.0
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
async destroy () {
|
|
56
|
+
this.#renderer.removeFooterById(this.#control.getId());
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return Footer;
|
|
61
|
+
});
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileOverview Defines the interface for extensions in the ShellHeader ShellArea.
|
|
5
|
+
*
|
|
6
|
+
* @version 1.120.1
|
|
7
|
+
*/
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/base/Log",
|
|
10
|
+
"sap/ushell/Config",
|
|
11
|
+
"sap/ushell/Container",
|
|
12
|
+
"sap/ushell/utils"
|
|
13
|
+
], function (
|
|
14
|
+
Log,
|
|
15
|
+
Config,
|
|
16
|
+
Container,
|
|
17
|
+
ushellUtils
|
|
18
|
+
) {
|
|
19
|
+
"use strict";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @alias sap.ushell.services.Extension.Header
|
|
23
|
+
* @class
|
|
24
|
+
* @classdesc Extension point of the Header.
|
|
25
|
+
* To be instantiated by {@link sap.ushell.services.Extension}.
|
|
26
|
+
*
|
|
27
|
+
* @hideconstructor
|
|
28
|
+
*
|
|
29
|
+
* @since 1.120.0
|
|
30
|
+
* @experimental since 1.120.0
|
|
31
|
+
* @private
|
|
32
|
+
* @ui5-restricted
|
|
33
|
+
*/
|
|
34
|
+
class Header {
|
|
35
|
+
#renderer = Container.getRendererInternal();
|
|
36
|
+
#visibilityMap = {};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @param {boolean} visible
|
|
40
|
+
* Whether the item shall be visible or not.
|
|
41
|
+
* @param {boolean} currentState
|
|
42
|
+
* Whether the new visibility shall be applied only to the 'currentState'.
|
|
43
|
+
* @param {sap.ushell.renderer.Renderer.LaunchpadState} launchpadState
|
|
44
|
+
* To which launchpad state the new visibility shall be applied.
|
|
45
|
+
* Is only Considered if <code>currentState</code> is <code>false</code>.
|
|
46
|
+
* @returns {Promise} Resolves after visibility was changed.
|
|
47
|
+
*/
|
|
48
|
+
#visibilityHandler = async (visible, currentState, launchpadState) => {
|
|
49
|
+
const states = launchpadState ? [launchpadState] : undefined;
|
|
50
|
+
await ushellUtils.promisify(this.#renderer.setHeaderVisibility(visible, currentState, states));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Overwrites the title in the header
|
|
55
|
+
* @param {string} newTitle The new title
|
|
56
|
+
* @returns {sap.ushell.services.Extension.Header} this to allow method chaining.
|
|
57
|
+
*
|
|
58
|
+
* @since 1.120.0
|
|
59
|
+
* @private
|
|
60
|
+
* @ui5-restricted
|
|
61
|
+
*/
|
|
62
|
+
setTitle (newTitle) {
|
|
63
|
+
this.#renderer.setHeaderTitle(newTitle);
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @param {boolean} visible Whether the item should be visible or not
|
|
69
|
+
*
|
|
70
|
+
* @since 1.120.0
|
|
71
|
+
* @private
|
|
72
|
+
*/
|
|
73
|
+
setVisibilityForCurrentApp (visible) {
|
|
74
|
+
if (!visible && this.#visibilityMap[this.#getCurrentState()]) {
|
|
75
|
+
Log.warning("The header was set to 'visible' for the current launchpad state and cannot be turned off for this app");
|
|
76
|
+
}
|
|
77
|
+
this.#visibilityHandler(visible, true, undefined);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @param {sap.ushell.renderer.Renderer.LaunchpadState} launchpadState The launchpad state to change
|
|
82
|
+
* @param {boolean} visible Whether the item should be visible or not
|
|
83
|
+
*
|
|
84
|
+
* @since 1.120.0
|
|
85
|
+
* @private
|
|
86
|
+
*/
|
|
87
|
+
setVisibilityForLaunchpadState (launchpadState, visible) {
|
|
88
|
+
this.#visibilityMap[launchpadState] = visible;
|
|
89
|
+
this.#visibilityHandler(visible, false, launchpadState);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Shows the item for the current application.
|
|
94
|
+
* The item will be hidden after the user navigates away from this application.
|
|
95
|
+
* The item will <b>not<b> be added again if the user navigates back to the application.
|
|
96
|
+
* @returns {sap.ushell.services.Extension.Header} this to allow method chaining.
|
|
97
|
+
*
|
|
98
|
+
* @since 1.120.0
|
|
99
|
+
* @private
|
|
100
|
+
* @ui5-restricted
|
|
101
|
+
*/
|
|
102
|
+
showForCurrentApp () {
|
|
103
|
+
this.setVisibilityForCurrentApp(true);
|
|
104
|
+
return this;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Hides the item for the current application.
|
|
109
|
+
* Note: The item will not be hidden if it was set visible for all apps {@link #showForAllApps}
|
|
110
|
+
* @returns {sap.ushell.services.Extension.Header} this to allow method chaining.
|
|
111
|
+
*
|
|
112
|
+
* @since 1.120.0
|
|
113
|
+
* @private
|
|
114
|
+
* @ui5-restricted
|
|
115
|
+
*/
|
|
116
|
+
hideForCurrentApp () {
|
|
117
|
+
if (this.#visibilityMap[this.#getCurrentState()]) {
|
|
118
|
+
Log.warning("The extension was set visible for the current launchpad state and cannot be turned off for this app");
|
|
119
|
+
}
|
|
120
|
+
this.setVisibilityForCurrentApp(false);
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Shows the item for all applications.
|
|
126
|
+
* Does not change the visibility of the item for the launchpad "home".
|
|
127
|
+
* @returns {sap.ushell.services.Extension.Header} this to allow method chaining.
|
|
128
|
+
*
|
|
129
|
+
* @since 1.120.0
|
|
130
|
+
* @private
|
|
131
|
+
* @ui5-restricted
|
|
132
|
+
*/
|
|
133
|
+
showForAllApps () {
|
|
134
|
+
this.setVisibilityForLaunchpadState("app", true);
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Shows the item for all applications.
|
|
140
|
+
* Does not change the visibility of the item for the launchpad "home".
|
|
141
|
+
* @returns {sap.ushell.services.Extension.Header} this to allow method chaining.
|
|
142
|
+
*
|
|
143
|
+
* @since 1.120.0
|
|
144
|
+
* @private
|
|
145
|
+
* @ui5-restricted
|
|
146
|
+
*/
|
|
147
|
+
hideForAllApps () {
|
|
148
|
+
this.setVisibilityForLaunchpadState("app", false);
|
|
149
|
+
return this;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Shows the item for launchpad "home".
|
|
154
|
+
* Does not change the visibility of the item within applications.
|
|
155
|
+
* @returns {sap.ushell.services.Extension.Header} this to allow method chaining.
|
|
156
|
+
*
|
|
157
|
+
* @since 1.120.0
|
|
158
|
+
* @private
|
|
159
|
+
* @ui5-restricted
|
|
160
|
+
*/
|
|
161
|
+
showOnHome () {
|
|
162
|
+
this.setVisibilityForLaunchpadState("home", true);
|
|
163
|
+
return this;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Hides the item for launchpad "home".
|
|
168
|
+
* Does not change the visibility of the item within applications.
|
|
169
|
+
* @returns {sap.ushell.services.Extension.Header} this to allow method chaining.
|
|
170
|
+
*
|
|
171
|
+
* @since 1.120.0
|
|
172
|
+
* @private
|
|
173
|
+
* @ui5-restricted
|
|
174
|
+
*/
|
|
175
|
+
hideOnHome () {
|
|
176
|
+
this.setVisibilityForLaunchpadState("home", false);
|
|
177
|
+
return this;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @returns {sap.ushell.renderer.Renderer.LaunchpadState} The current state.
|
|
182
|
+
*
|
|
183
|
+
* @since 1.120.0
|
|
184
|
+
* @private
|
|
185
|
+
*/
|
|
186
|
+
#getCurrentState () {
|
|
187
|
+
const sCurrentState = Config.last("/core/shell/model/currentState/stateName");
|
|
188
|
+
return sCurrentState;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return Header;
|
|
193
|
+
});
|