@sapui5/sap.ushell 1.121.2 → 1.122.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 +2 -2
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/CanvasShapesManager.js +5 -3
- package/src/main/js/sap/ushell/Container.js +14 -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/Layout.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/SessionHandler.js +1 -1
- 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/_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 +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +8 -185
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +198 -0
- 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 +6 -5
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +5 -4
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +27 -22
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +7 -193
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +205 -0
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/api/workpage/Designtime.js +24 -4
- package/src/main/js/sap/ushell/api/workpage/Runtime.js +45 -7
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +6 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer.js +17 -49
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +13 -18
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +24 -36
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +2 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +4 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +113 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +2 -2
- 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/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +3 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +2 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +17 -2
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +12 -3
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +54 -22
- package/src/main/js/sap/ushell/components/CatalogsManager.js +31 -11
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +1 -1
- package/src/main/js/sap/ushell/components/HomepageManager.js +5 -3
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +3 -4
- package/src/main/js/sap/ushell/components/appfinder/Component.js +5 -2
- package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +3 -3
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +2 -13
- 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 +64 -8
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +67 -83
- 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/cepsearchresult/app/util/AdvancedFormatters.js +3 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/appendStyleVars.js +3 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Event.js +3 -3
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +4 -4
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +12 -5
- 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/resources/resources.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +3 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +37 -37
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +2 -2
- 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 +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/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/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +525 -613
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +4 -4
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsEntry.js +3 -5
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/indicatorTileHelper.js +18 -18
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +1 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +2 -2
- 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 +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 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +9 -1
- package/src/main/js/sap/ushell/navigationMode.js +3 -3
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +33 -4
- 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/plugins/rta-personalize/Component.js +6 -254
- package/src/main/js/sap/ushell/plugins/rta-personalize/manifest.json +0 -102
- package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +0 -8
- package/src/main/js/sap/ushell/renderer/Renderer.js +2 -2
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +7 -7
- package/src/main/js/sap/ushell/renderer/Shell.view.js +2 -10
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +10 -11
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.view.xml +49 -71
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +0 -2
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +1 -1
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +2 -2
- package/src/main/js/sap/ushell/services/BookmarkV2.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +3 -3
- package/src/main/js/sap/ushell/services/CommonDataModel.js +3 -5
- 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 +20 -20
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +3 -3
- package/src/main/js/sap/ushell/services/Extension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Header.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +1 -1
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +24 -995
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +1272 -0
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +11 -11
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/Notifications.js +0 -14
- package/src/main/js/sap/ushell/services/NotificationsV2.js +10 -34
- 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.js +2 -2
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +2 -2
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +3 -2
- 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 +5 -5
- package/src/main/js/sap/ushell/services/URLParsing.js +2 -2
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_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/_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/_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/_MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +4 -4
- 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 +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/Catalog.less +12 -2
- package/src/main/js/sap/ushell/themes/base/SearchCEP.less +1 -1
- package/src/main/js/sap/ushell/themes/base/ShellAppTitle.less +15 -57
- package/src/main/js/sap/ushell/themes/base/WorkPageCell.less +0 -1
- package/src/main/js/sap/ushell/themes/base/img/launchicons/phone-icon_120x120.png +0 -0
- package/src/main/js/sap/ushell/themes/base/img/launchicons/phone-retina_180x180.png +0 -0
- package/src/main/js/sap/ushell/themes/base/img/launchicons/tablet-icon_152x152.png +0 -0
- package/src/main/js/sap/ushell/themes/base/img/launchicons/tablet-retina_167x167.png +0 -0
- package/src/main/js/sap/ushell/themes/sap_belize/ShellHeader.less +11 -36
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +9 -31
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellHeader.less +9 -32
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellAppTitle.less +11 -39
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellAppTitle.less +11 -39
- package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +3 -136
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternal.js +161 -0
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +6 -0
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/CatalogEntryContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +7 -9
- 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/utils/UrlShortening.js +2 -2
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +366 -0
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +5 -2
- package/src/main/js/sap/ushell/utils/workpage/resources/resources.properties +157 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ar.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_bg.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ca.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_cs.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_cy.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_da.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_de.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_el.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_GB.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_sappsd.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saprigi.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en_US_saptrc.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_es.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_es_MX.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_et.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_fi.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_fr.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_fr_CA.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_hi.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_hr.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_hu.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_id.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_it.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_iw.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ja.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_kk.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ko.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_lt.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_lv.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ms.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_nl.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_no.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_pl.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_pt.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_pt_PT.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ro.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_ru.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sh.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sk.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sl.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sv.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_th.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_tr.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_uk.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_vi.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_zh_CN.properties +78 -0
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_zh_TW.properties +78 -0
- package/src/main/js/sap/ushell/utils.js +2 -2
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +70 -60
- package/ui5.yaml +30 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.js +0 -350
- package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n.properties +0 -38
package/ui5.yaml
CHANGED
|
@@ -159,6 +159,8 @@ builder:
|
|
|
159
159
|
- sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js
|
|
160
160
|
- sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js
|
|
161
161
|
- sap/ushell/adapters/cdm/v3/utilsCdm.js
|
|
162
|
+
- sap/ushell/ui/cards/FrequentActivitiesExtension.js
|
|
163
|
+
- sap/ushell/ui/cards/RecentActivitiesExtension.js
|
|
162
164
|
resolve: false
|
|
163
165
|
renderer: false
|
|
164
166
|
bundleOptions:
|
|
@@ -260,6 +262,7 @@ builder:
|
|
|
260
262
|
- sap/ushell/adapters/cep/MenuAdapter.js
|
|
261
263
|
- sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js
|
|
262
264
|
- sap/ushell/adapters/local/NavTargetResolutionAdapter.js
|
|
265
|
+
- sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js
|
|
263
266
|
- sap/ushell/adapters/local/UserInfoAdapter.js
|
|
264
267
|
- sap/ushell/api/RTA.js
|
|
265
268
|
- sap/ushell/bootstrap/_SchedulingAgent/*.json # json files must be explicitly defined
|
|
@@ -299,6 +302,7 @@ builder:
|
|
|
299
302
|
- sap/ushell/services/Menu.js
|
|
300
303
|
- sap/ushell/services/MessageBroker.js
|
|
301
304
|
- sap/ushell/services/NavTargetResolution.js
|
|
305
|
+
- sap/ushell/services/NavTargetResolutionInternal.js
|
|
302
306
|
- sap/ushell/services/PagePersistence.js
|
|
303
307
|
- sap/ushell/services/Pages.js
|
|
304
308
|
- sap/ushell/services/Personalization.js
|
|
@@ -321,8 +325,6 @@ builder:
|
|
|
321
325
|
- sap/ushell/services/VisualizationInstantiation.js
|
|
322
326
|
- sap/ushell/ui/RendererRootView.fragment.xml
|
|
323
327
|
- sap/ushell/ui/ShellHeader.fragment.xml
|
|
324
|
-
- sap/ushell/ui/cards/FrequentActivitiesExtension.js
|
|
325
|
-
- sap/ushell/ui/cards/RecentActivitiesExtension.js
|
|
326
328
|
- sap/ushell/ui5service/ShellUIService.js
|
|
327
329
|
- sap/ushell/utils/HttpClient.js
|
|
328
330
|
- sap/ushell/utils/utilsCdm.js
|
|
@@ -455,6 +457,29 @@ builder:
|
|
|
455
457
|
bundleOptions:
|
|
456
458
|
optimize: true
|
|
457
459
|
usePredefineCalls: true
|
|
460
|
+
- bundleDefinition:
|
|
461
|
+
# bundle for modules used by both work page runtimes (ushell & dws page builder)
|
|
462
|
+
name: sap/ushell/preload-bundles/workpage-rt-common.js
|
|
463
|
+
sections:
|
|
464
|
+
- mode: provided
|
|
465
|
+
filters: *core-min-preload
|
|
466
|
+
resolve: true
|
|
467
|
+
- mode: provided
|
|
468
|
+
filters: *core-min-provided
|
|
469
|
+
resolve: true
|
|
470
|
+
- mode: preload
|
|
471
|
+
name: sap/ushell/workpage-runtime-common-preload
|
|
472
|
+
filters: &workpage-rt-common-provided
|
|
473
|
+
- sap/ushell/api/workpage/
|
|
474
|
+
- sap/ushell/utils/workpage/
|
|
475
|
+
- sap/ushell/utils/workpage/resources/resources*.properties
|
|
476
|
+
resolve: true
|
|
477
|
+
renderer: true
|
|
478
|
+
sort: true
|
|
479
|
+
bundleOptions:
|
|
480
|
+
optimize: true
|
|
481
|
+
usePredefineCalls: true
|
|
482
|
+
numberOfParts: 1
|
|
458
483
|
- bundleDefinition:
|
|
459
484
|
name: sap/ushell/preload-bundles/workpage-rt.js
|
|
460
485
|
sections:
|
|
@@ -464,6 +489,9 @@ builder:
|
|
|
464
489
|
- mode: provided
|
|
465
490
|
filters: *core-min-provided
|
|
466
491
|
resolve: true
|
|
492
|
+
- mode: provided
|
|
493
|
+
filters: *workpage-rt-common-provided
|
|
494
|
+
resolve: true
|
|
467
495
|
- mode: preload
|
|
468
496
|
name: sap/ushell/workpage-runtime-preload
|
|
469
497
|
filters:
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
//Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file WorkPageHost for WorkPageBuilder
|
|
5
|
-
* @version 1.121.2
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
"sap/ui/integration/Host",
|
|
10
|
-
"sap/ui/model/json/JSONModel",
|
|
11
|
-
"sap/ushell/Container",
|
|
12
|
-
"sap/ushell/EventHub",
|
|
13
|
-
"sap/ui/model/resource/ResourceModel"
|
|
14
|
-
], function (
|
|
15
|
-
Host,
|
|
16
|
-
JSONModel,
|
|
17
|
-
Container,
|
|
18
|
-
EventHub,
|
|
19
|
-
ResourceModel
|
|
20
|
-
) {
|
|
21
|
-
"use strict";
|
|
22
|
-
|
|
23
|
-
return function (sId, mSettings) {
|
|
24
|
-
|
|
25
|
-
var oHost = new Host(sId, mSettings);
|
|
26
|
-
|
|
27
|
-
// private variables to store context information , filled lazy after by getContext, getContextValue was called, via _applyHostContext.
|
|
28
|
-
oHost._oHostContext = null;
|
|
29
|
-
oHost._oHostContextModel = null;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Resolves the destination for a given name
|
|
33
|
-
* @param {string} The name of the destination to resolve.
|
|
34
|
-
* @returns {Promise<string>} Promise with the target destination
|
|
35
|
-
*/
|
|
36
|
-
oHost.setResolveDestination(function (sDestinationName) {
|
|
37
|
-
if (!sDestinationName) {
|
|
38
|
-
return Promise.reject();
|
|
39
|
-
}
|
|
40
|
-
return Promise.resolve(location.origin + "/dynamic_dest/" + sDestinationName);
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Handles cardStateChange events and emits an Init entry the usage of the card to the UITracer.trace event.
|
|
45
|
-
* The event is fired multiple times today.
|
|
46
|
-
* The referenceId property (providerId) needs to be maintained on the card instance in the WorkPage or InterestCardService
|
|
47
|
-
*/
|
|
48
|
-
oHost.attachCardInitialized(function (oEvent) {
|
|
49
|
-
var oCard = oEvent.getParameter("card");
|
|
50
|
-
if (oCard && oCard.isA && oCard.isA("sap.ui.integration.widgets.Card")) {
|
|
51
|
-
EventHub.emit("UITracer.trace", {
|
|
52
|
-
source: "Card",
|
|
53
|
-
reason: "Init",
|
|
54
|
-
data: {
|
|
55
|
-
cardId: oCard.getManifestEntry("/sap.app/id"),
|
|
56
|
-
providerId: oCard.getReferenceId()
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Sets the UShell Container to be used to create the Navigation service.
|
|
64
|
-
*
|
|
65
|
-
* @param {sap.ushell.Container} oContainer the UShell container to be used.
|
|
66
|
-
*/
|
|
67
|
-
oHost._setContainer = function (oContainer) {
|
|
68
|
-
this.oContainer = oContainer;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Sets whether the navigation action is disabled
|
|
73
|
-
*
|
|
74
|
-
* @param {boolean} bValue value of navigation disabled.
|
|
75
|
-
*/
|
|
76
|
-
oHost._setNavigationDisabled = function (bValue) {
|
|
77
|
-
this._bNavigationDisabled = !!bValue;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Executes the Navigation. If event's type is Navigation, a new window will be opened
|
|
82
|
-
*
|
|
83
|
-
* @param {sap.base.Event} oEvent Event triggered by the card
|
|
84
|
-
* @returns {Promise<undefined>} Promise that will resolve if Navigation is successful
|
|
85
|
-
*/
|
|
86
|
-
oHost._executeNavigation = function (oEvent) {
|
|
87
|
-
|
|
88
|
-
var oParameters = oEvent.getParameter("parameters"),
|
|
89
|
-
oCard = oEvent.getParameter("card");
|
|
90
|
-
|
|
91
|
-
if (oEvent.getParameter("type") !== "Navigation" ||
|
|
92
|
-
this._bNavigationDisabled) {
|
|
93
|
-
return Promise.resolve();
|
|
94
|
-
}
|
|
95
|
-
if (oParameters && oParameters.hasOwnProperty("url")) {
|
|
96
|
-
EventHub.emit("UITracer.trace", {
|
|
97
|
-
reason: "LaunchApp",
|
|
98
|
-
source: "Card",
|
|
99
|
-
data: {
|
|
100
|
-
cardId: oCard.getManifestEntry("/sap.app/id"),
|
|
101
|
-
providerId: oCard.getReferenceId(),
|
|
102
|
-
targetUrl: oParameters.url
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
return Promise.resolve();
|
|
106
|
-
}
|
|
107
|
-
// Prevent event bubbling here, to avoid opening the same target twice
|
|
108
|
-
oEvent.preventDefault(true);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return this.oContainer.getServiceAsync("Navigation")
|
|
112
|
-
.then(function (oNavigationService) {
|
|
113
|
-
var oNavigationParameters = {};
|
|
114
|
-
if (oParameters.hasOwnProperty("ibnTarget")) {
|
|
115
|
-
oNavigationParameters.target = oParameters.ibnTarget;
|
|
116
|
-
}
|
|
117
|
-
if (oParameters.hasOwnProperty("ibnParams")) {
|
|
118
|
-
oNavigationParameters.params = oParameters.ibnParams;
|
|
119
|
-
}
|
|
120
|
-
if (oParameters.hasOwnProperty("ibnAppSpecificRoute")) {
|
|
121
|
-
oNavigationParameters.appSpecificRoute = oParameters.ibnAppSpecificRoute;
|
|
122
|
-
}
|
|
123
|
-
EventHub.emit("UITracer.trace", {
|
|
124
|
-
reason: "LaunchApp",
|
|
125
|
-
source: "Card",
|
|
126
|
-
data: {
|
|
127
|
-
cardId: oCard.getManifestEntry("/sap.app/id"),
|
|
128
|
-
providerId: oCard.getReferenceId(),
|
|
129
|
-
targetUrl: "#" + oNavigationParameters.target.semanticObject + "-" + oNavigationParameters.target.action
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
return oNavigationService.navigate(oNavigationParameters);
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
};
|
|
136
|
-
oHost.attachAction(oHost._executeNavigation.bind(oHost));
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Handle fetch call of cards and and emits a FetchData entry to the UITracer.trace event
|
|
140
|
-
* The status, statusText, url (resource) of the response are logged.
|
|
141
|
-
* statusText is normalized as the native Response.statusText might be missing for http2
|
|
142
|
-
* @param {string} sResource This defines the resource that you wish to fetch.
|
|
143
|
-
* @param {object} mOptions An object containing any custom settings that you want to apply to the request.
|
|
144
|
-
* @param {object} mRequestSettings The map of request settings defined in the card manifest. Use this only for reading, they can not be modified.
|
|
145
|
-
* @param {sap.ui.integration.widgets.Card} oCard The card which initiated the request.
|
|
146
|
-
* @returns {Promise<Response>} A <code>Promise</code> that resolves to a <code>Response</code> object.
|
|
147
|
-
*
|
|
148
|
-
* @see sap.ui.integration.Host#fetch
|
|
149
|
-
*
|
|
150
|
-
* @private
|
|
151
|
-
* @since 1.117.0
|
|
152
|
-
*/
|
|
153
|
-
oHost.fetch = function (sResource, mOptions, mRequestSettings, oCard) {
|
|
154
|
-
if (oCard && oCard.isA && oCard.isA("sap.ui.integration.widgets.Card")) {
|
|
155
|
-
return Host.prototype.fetch.apply(this, arguments)
|
|
156
|
-
.then(function (oRes) {
|
|
157
|
-
EventHub.emit("UITracer.trace", {
|
|
158
|
-
source: "Card",
|
|
159
|
-
reason: "FetchData",
|
|
160
|
-
data: {
|
|
161
|
-
cardId: oCard.getManifestEntry("/sap.app/id"),
|
|
162
|
-
providerId: oCard.getReferenceId(),
|
|
163
|
-
targetUrl: sResource,
|
|
164
|
-
status: oRes.status
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
return oRes;
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
return Host.prototype.fetch.apply(this, arguments);
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Resolves host context value based on a given content path
|
|
175
|
-
*
|
|
176
|
-
* @param {string} sPath The context path used at runtime, e.g "sap.workzone/currentUser/value".
|
|
177
|
-
*
|
|
178
|
-
* @returns {Promise<any>} Promise that resolves to the context paths value.
|
|
179
|
-
* @private
|
|
180
|
-
* @since 1.115.0
|
|
181
|
-
*/
|
|
182
|
-
oHost.getContextValue = function (sPath) {
|
|
183
|
-
try {
|
|
184
|
-
if (!sPath) {
|
|
185
|
-
return Promise.reject();
|
|
186
|
-
}
|
|
187
|
-
if (sPath.charAt(0) === "/") {
|
|
188
|
-
return oHost.getContextValue(sPath.substring(1));
|
|
189
|
-
}
|
|
190
|
-
return oHost.getContext().then(function () {
|
|
191
|
-
return oHost._oHostContextModel.getProperty("/" + sPath);
|
|
192
|
-
});
|
|
193
|
-
} catch (ex) {
|
|
194
|
-
return Promise.resolve();
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Returns the promise with the host context information.
|
|
200
|
-
*
|
|
201
|
-
* The information is collected from the UserInfo service once and stored in
|
|
202
|
-
* this.oHostContext member.
|
|
203
|
-
* The context contains information for id, name, email and timezone of the user.
|
|
204
|
-
*
|
|
205
|
-
* Additionally this structure is used for the configuration editor of cards that can
|
|
206
|
-
* select a corresponding value from a drop down. Label, placeholder and descriptions for
|
|
207
|
-
* such configuration is also added.
|
|
208
|
-
*
|
|
209
|
-
* This structure is returned for the configuration editor of the card via the 'getContext' method of the host.
|
|
210
|
-
*
|
|
211
|
-
* For the Standard Edition the content object will contain:
|
|
212
|
-
* {
|
|
213
|
-
* "sap.workzone": {
|
|
214
|
-
* currentUser: {
|
|
215
|
-
* id: {
|
|
216
|
-
* label: string
|
|
217
|
-
* description: string,
|
|
218
|
-
* placeholder: string,
|
|
219
|
-
* type: "string",
|
|
220
|
-
* value: The user id as string
|
|
221
|
-
* },
|
|
222
|
-
* name: {
|
|
223
|
-
* label: string
|
|
224
|
-
* description: string,
|
|
225
|
-
* placeholder: string,
|
|
226
|
-
* type: "string",
|
|
227
|
-
* value: The users full name as string
|
|
228
|
-
* },
|
|
229
|
-
* firstName: {
|
|
230
|
-
* label: string
|
|
231
|
-
* description: string,
|
|
232
|
-
* placeholder: string,
|
|
233
|
-
* type: "string",
|
|
234
|
-
* value: The firstName name as string
|
|
235
|
-
* },
|
|
236
|
-
* lastName: {
|
|
237
|
-
* label: string
|
|
238
|
-
* description: string,
|
|
239
|
-
* placeholder: string,
|
|
240
|
-
* type: "string",
|
|
241
|
-
* value: The users lastName as string
|
|
242
|
-
* },
|
|
243
|
-
* email: {
|
|
244
|
-
* label: string
|
|
245
|
-
* description: string,
|
|
246
|
-
* placeholder: string,
|
|
247
|
-
* type: "string",
|
|
248
|
-
* value: The users email as string
|
|
249
|
-
* }
|
|
250
|
-
* }
|
|
251
|
-
* }
|
|
252
|
-
* }
|
|
253
|
-
*
|
|
254
|
-
* @returns {Promise<object>} The sap.workzone context object
|
|
255
|
-
*
|
|
256
|
-
* @private
|
|
257
|
-
* @since 1.115.0
|
|
258
|
-
*/
|
|
259
|
-
oHost.getContext = function () {
|
|
260
|
-
if (!oHost._oHostContext) {
|
|
261
|
-
oHost._oHostContext = Container.getServiceAsync("UserInfo")
|
|
262
|
-
.then(function (UserInfo) {
|
|
263
|
-
return oHost._getBundle()
|
|
264
|
-
.then(function (oBundle) {
|
|
265
|
-
return oHost._applyHostContext(UserInfo, oBundle);
|
|
266
|
-
})
|
|
267
|
-
.catch(function () {
|
|
268
|
-
return oHost._applyHostContext(UserInfo);
|
|
269
|
-
});
|
|
270
|
-
})
|
|
271
|
-
.catch(function () {
|
|
272
|
-
return {};
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
return Promise.resolve(oHost._oHostContext);
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
// loads resuource bundle
|
|
279
|
-
oHost._getBundle = function() {
|
|
280
|
-
return new ResourceModel({
|
|
281
|
-
bundleName: "sap.ushell.components.workPageBuilder.resources.resources",
|
|
282
|
-
async: true
|
|
283
|
-
}).getResourceBundle();
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Applies a oHost._HostContext object and oHost._HostContexModel as json model to access the context values via getContextValue.
|
|
288
|
-
*
|
|
289
|
-
* @param {sap.ushell.services.UserInfo} UserInfo UserInfo Service instance.
|
|
290
|
-
* @param {sap.base.i18n.ResourceBundle} [oBundle] Resourcebundle for context labels, descriptions and placeholders.
|
|
291
|
-
* @returns {object} the created _oHostContext object.
|
|
292
|
-
*/
|
|
293
|
-
oHost._applyHostContext = function(UserInfo, oBundle) {
|
|
294
|
-
if (!oBundle) {
|
|
295
|
-
oBundle = {
|
|
296
|
-
getText: function (s) {
|
|
297
|
-
return s;
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
oHost._oHostContext = {
|
|
302
|
-
"sap.workzone": {
|
|
303
|
-
label: oBundle.getText("WorkPage.Host.Context.WorkZone.Label"),
|
|
304
|
-
currentUser: {
|
|
305
|
-
label: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Label"),
|
|
306
|
-
id: {
|
|
307
|
-
label: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Id.Label"),
|
|
308
|
-
type: "string",
|
|
309
|
-
tags: ["technical"],
|
|
310
|
-
placeholder: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Id.Placeholder"),
|
|
311
|
-
description: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Id.Desc"),
|
|
312
|
-
value: UserInfo.getId()
|
|
313
|
-
},
|
|
314
|
-
name: {
|
|
315
|
-
label: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Name.Label"),
|
|
316
|
-
type: "string",
|
|
317
|
-
placeholder: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Name.Placeholder"),
|
|
318
|
-
description: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Name.Desc"),
|
|
319
|
-
value: UserInfo.getFullName()
|
|
320
|
-
},
|
|
321
|
-
firstName: {
|
|
322
|
-
label: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.FirstName.Label"),
|
|
323
|
-
type: "string",
|
|
324
|
-
placeholder: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.FirstName.Placeholder"),
|
|
325
|
-
description: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.FirstName.Desc"),
|
|
326
|
-
value: UserInfo.getFirstName()
|
|
327
|
-
},
|
|
328
|
-
lastName: {
|
|
329
|
-
label: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.LastName.Label"),
|
|
330
|
-
type: "string",
|
|
331
|
-
placeholder: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.LastName.Placeholder"),
|
|
332
|
-
description: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.LastName.Desc"),
|
|
333
|
-
value: UserInfo.getLastName()
|
|
334
|
-
},
|
|
335
|
-
email: {
|
|
336
|
-
label: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Email.Label"),
|
|
337
|
-
type: "string",
|
|
338
|
-
placeholder: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Email.Placeholder"),
|
|
339
|
-
description: oBundle.getText("WorkPage.Host.Context.WorkZone.CurrentUser.Email.Desc"),
|
|
340
|
-
value: UserInfo.getEmail()
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
oHost._oHostContextModel = new JSONModel(oHost._oHostContext);
|
|
346
|
-
return oHost._oHostContext;
|
|
347
|
-
};
|
|
348
|
-
return oHost;
|
|
349
|
-
};
|
|
350
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Resource bundle for personalize ushell plug-in
|
|
2
|
-
# __ldi.translation.uuid=71db0b00-f74a-11e6-9598-0800200c9a66
|
|
3
|
-
|
|
4
|
-
#XTIT
|
|
5
|
-
PERSONALIZE_BUTTON_TEXT=Personalize App
|
|
6
|
-
|
|
7
|
-
#XTIT
|
|
8
|
-
END_PERSONALIZE_BUTTON_TEXT=Exit Personalization Mode
|
|
9
|
-
|
|
10
|
-
#XTIT
|
|
11
|
-
ERROR_TITLE=Error
|
|
12
|
-
|
|
13
|
-
#XTIT: Application title of the FLP plugin in app descriptor
|
|
14
|
-
APP_TITLE=Personalize FLP Plugin
|
|
15
|
-
|
|
16
|
-
#XMSG: Error Message when using unsupported Browser
|
|
17
|
-
MSG_UNSUPPORTED_BROWSER=Sorry, your browser is not supported. Please use Google Chrome or Microsoft Internet Explorer (version 10 or higher).
|
|
18
|
-
|
|
19
|
-
#XMSG: Error Message when Personalize UI could not be started
|
|
20
|
-
MSG_STARTUP_FAILED=Sorry, could not start personalization mode.
|
|
21
|
-
|
|
22
|
-
#XTIT: Title of the ErrorMessage Window
|
|
23
|
-
TIT_UNSUPPORTED_BROWSER=Unsupported Browser
|
|
24
|
-
|
|
25
|
-
#XMSG: Information Message when, after starting, the screen can't be personalized
|
|
26
|
-
MSG_STARTUP_NO_OVERLAYS=Sorry, this screen cannot be personalized.
|
|
27
|
-
|
|
28
|
-
#XMSG: Message when we close and save RTA successfully
|
|
29
|
-
SAVE_SUCCESSFUL=Your changes have been saved.
|
|
30
|
-
|
|
31
|
-
#XMSG: Message when the wrong Layer is set via URL
|
|
32
|
-
MSG_STARTUP_WRONG_LAYER=You can not start Personalization in a layer other than 'USER'. Please remove the parameter 'sap-ui-layer' from the URL.
|
|
33
|
-
|
|
34
|
-
#XHED: Title of a dialog explaining that personalization will be closed
|
|
35
|
-
HEADER_FLEX_DISABLED=Information
|
|
36
|
-
|
|
37
|
-
#XMSG: Dialog message for flex not enabled
|
|
38
|
-
MSG_FLEX_DISABLED=This application is not enabled for personalization. For more information, see [here](https://help.sap.com/viewer/4fc8d03390c342da8a60f8ee387bca1a/latest/en-US/ef97b2485aa34a8890f4d51e5c2b15a8.html).
|