@sapui5/sap.ushell 1.126.1 → 1.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/SessionHandler.js +2 -2
- 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 +7 -7
- package/src/main/js/sap/ushell/UserActivityLog.js +8 -13
- package/src/main/js/sap/ushell/_Config/utils.js +18 -0
- 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 +28 -9
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +4 -3
- 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/cdm/v3/utilsCdm.js +6 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/neo/AppInfoService.js +1 -0
- package/src/main/js/sap/ushell/appRuntime/neo/AppRuntimeNeo.js +1 -0
- package/src/main/js/sap/ushell/appRuntime/neo/ProxyAppUtils.js +1 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +6 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +19 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +51 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +6 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/FLPScheduler.js +47 -16
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/StepConfiguration.json +10 -3
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.js +9 -0
- 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 +13 -33
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/_HeaderManager/ShellHeader.controller.js +135 -8
- package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +0 -6
- package/src/main/js/sap/ushell/components/appfinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +74 -72
- 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 +35 -18
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +42 -27
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +19 -12
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +24 -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/model/formatter.js +47 -7
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +7 -6
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +5 -4
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTree.view.xml +34 -22
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +7 -6
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +3 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifestAppSearch.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/Component.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 +29 -24
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +10 -3
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +26 -5
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/Component.js +3 -2
- 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 +19 -3
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenu.view.xml +1 -0
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +24 -22
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +80 -17
- 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 +12 -16
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +9 -4
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +9 -9
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +3 -45
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +31 -23
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenuPopover.fragment.xml +7 -2
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +3 -3
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +0 -4
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +0 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.controller.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 +2 -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 +1939 -1946
- 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/workPageRuntime/Component.js +3 -2
- 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 +1 -1
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +15 -12
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +31 -9
- package/src/main/js/sap/ushell/renderer/Renderer.js +303 -287
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +99 -101
- package/src/main/js/sap/ushell/renderer/Shell.view.js +110 -89
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +29 -15
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.view.xml +2 -2
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +2 -0
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/History.js +1 -0
- package/src/main/js/sap/ushell/renderers/fiori2/LogonFrameProvider.js +1 -0
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +108 -87
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsManager.js +1 -0
- 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 +1 -1
- package/src/main/js/sap/ushell/services/BookmarkV2.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +2 -15
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +11 -5
- package/src/main/js/sap/ushell/services/Extension/Item.js +4 -4
- package/src/main/js/sap/ushell/services/Extension.js +36 -2
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +4 -4
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +18 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +20 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +96 -2
- 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/MessageInternal.js +13 -8
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/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 +4 -3
- 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 +1 -1
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +6 -5
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +3 -3
- 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/_AppState/AppStatePersistencyMethod.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 +2 -2
- 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 +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/VariantSetAdapter.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapter.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapterContainer.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/constants.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/constants.private.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +1 -0
- package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +2 -2
- 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/state/BaseState.js +79 -0
- package/src/main/js/sap/ushell/state/ControlManager.js +209 -0
- package/src/main/js/sap/ushell/state/CurrentState.js +180 -0
- package/src/main/js/sap/ushell/state/KeepAlive.js +75 -0
- package/src/main/js/sap/ushell/state/ShellModel.js +112 -0
- package/src/main/js/sap/ushell/state/StateManager/LaunchpadState.js +40 -0
- package/src/main/js/sap/ushell/state/StateManager/Operation.js +42 -0
- package/src/main/js/sap/ushell/state/StateManager/ShellMode.js +86 -0
- package/src/main/js/sap/ushell/state/StateManager.js +648 -0
- package/src/main/js/sap/ushell/state/StateRules.js +295 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/DefaultStrategy.js +74 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/FloatingActionsStrategy.js +78 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadEndItemsStrategy.js +130 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadItemsStrategy.js +104 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/SidePaneStrategy.js +78 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/SubHeaderStrategy.js +78 -0
- package/src/main/js/sap/ushell/state/StrategyFactory/UserActionsStrategy.js +60 -0
- package/src/main/js/sap/ushell/state/StrategyFactory.js +168 -0
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/UserSettings.less +1 -5
- package/src/main/js/sap/ushell/themes/base/WorkPageCell.less +45 -49
- package/src/main/js/sap/ushell/themes/sap_belize_base/UserSettings.less +1 -5
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/UserSettings.less +1 -5
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ActionMode.less +107 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_AddBookmarkButton.less +37 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_AnchorItem.less +81 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_AnchorNavigationBar.less +86 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_AppearanceView.less +213 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ApplicationContainer.less +37 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Catalog.less +387 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ContactSupport.less +12 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ContentFinder.less +26 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_CustomGroupHeaderListItem.less +10 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Dashboard.less +66 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_DynamicTile.less +114 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Factsheet.less +225 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_FloatingContainer.less +125 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_FlpSettings.less +83 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_GroupList.less +68 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_GroupListItem.less +54 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_IconFonts.less +21 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ImageTile.less +23 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_LoadingDialog.less +47 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_MenuBar.less +23 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Notifications.less +135 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Page.less +49 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_PictureTile.less +119 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_PictureViewer.less +25 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_PlusTile.less +38 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_QuickAccess.less +18 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_RightFloatingContainerItem.less +82 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_SearchCEP.less +121 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_SearchFLP.less +10 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Section.less +60 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellAppTitle.less +207 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellFloatingAction.less +61 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellFloatingActions.less +14 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +389 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellLayout.less +168 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_SidePane.less +8 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_StaticTile.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_SubHeader.less +3 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_SysInfoBar.less +164 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_TargetMappingConfiguration.less +8 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Tile.less +223 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_TileBase.less +152 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_TileContainer.less +495 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_TilePlaceholder.less +75 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_TileState.less +62 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ToolAreaItem.less +85 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_UserActionsMenu.less +23 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_UserConsentDialog.less +52 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_UserSettings.less +109 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ViewPortContainer.less +28 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_WorkPage.less +58 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_WorkPageButton.less +60 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_WorkPageCell.less +144 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_WorkPageColumn.less +39 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_WorkPageColumnResizer.less +128 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_WorkPageRow.less +987 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_shared.less +40 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +70 -1
- package/src/main/js/sap/ushell/ui/ShellHeader.fragment.xml +17 -11
- package/src/main/js/sap/ushell/ui/ShellHeader.js +10 -3
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +0 -4
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -5
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +19 -5
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.controller.js +9 -3
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +5 -5
- 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 +17 -12
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +50 -35
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +2 -2
- 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 +1 -1
- package/src/main/js/sap/ushell/utils/WindowUtils.js +3 -3
- package/src/main/js/sap/ushell/utils/workpage/DestinationResolver.js +89 -0
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +51 -47
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +32 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
- package/src/main/js/sap/ushell/utils.js +26 -2
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.ui5theme.js +0 -67
- package/src/main/js/sap/ushell/components/HeaderManager.js +0 -547
- package/src/main/js/sap/ushell/components/StateHelper.js +0 -70
- package/src/main/js/sap/ushell/components/_HeaderManager/AddHeadEndItemsStrategy.js +0 -105
- package/src/main/js/sap/ushell/components/_HeaderManager/AddHeadItemsStrategy.js +0 -75
- package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +0 -70
- package/src/main/js/sap/ushell/components/_HeaderManager/ExtendApplicationPropertyStrategy.js +0 -18
- package/src/main/js/sap/ushell/components/_HeaderManager/PropertyStrategiesFactory.js +0 -58
- package/src/main/js/sap/ushell/components/_HeaderManager/RemoveItemsStrategy.js +0 -46
- package/src/main/js/sap/ushell/components/_HeaderManager/SetHeadPropertyStrategy.js +0 -19
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +0 -1309
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +0 -363
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* A control to be placed in the tool area
|
|
19
19
|
* @extends sap.ui.core.Control
|
|
20
20
|
*
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.127.0
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
24
24
|
* @since 1.30.5
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @alias sap.ushell.ui.shell.ToolAreaItem
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
var ToolAreaItem = Control.extend("sap.ushell.ui.shell.ToolAreaItem", /** @lends sap.ushell.ui.shell.
|
|
29
|
+
var ToolAreaItem = Control.extend("sap.ushell.ui.shell.ToolAreaItem", /** @lends sap.ushell.ui.shell.ToolAreaItem.prototype */ {
|
|
30
30
|
metadata: {
|
|
31
31
|
library: "sap.ushell",
|
|
32
32
|
properties: {
|
|
@@ -187,9 +187,9 @@ sap.ui.define([
|
|
|
187
187
|
var sLocationSearch = ushellUtils.getLocationSearch();
|
|
188
188
|
var sNewLocationSearch = WindowUtils._getAdjustedQueryString(aUrlParams, aObsoleteUrlParams);
|
|
189
189
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
sNewLocationSearch = sNewLocationSearch !== "" ? "?" + sNewLocationSearch : "";
|
|
191
|
+
sNewHref = sNewHref.replace(sLocationSearch, sNewLocationSearch);
|
|
192
|
+
|
|
193
193
|
if (ushellUtils.getLocationHref() === sNewHref) {
|
|
194
194
|
ushellUtils.windowLocationReload();
|
|
195
195
|
} else {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["./WorkPageService", "sap/base/Log"], function (WorkPageService, Log) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Utilities for resolving destination for given Providers.
|
|
8
|
+
* <p>
|
|
9
|
+
*
|
|
10
|
+
* @since 1.127.0
|
|
11
|
+
* @private
|
|
12
|
+
*/
|
|
13
|
+
class DestinationResolver {
|
|
14
|
+
|
|
15
|
+
#workPageService;
|
|
16
|
+
#providers = new Map();
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Instantiate DestinationResolver, fetch all the providers for the site and cache it
|
|
20
|
+
*
|
|
21
|
+
* @private
|
|
22
|
+
* @since 1.127.0
|
|
23
|
+
*/
|
|
24
|
+
constructor () {
|
|
25
|
+
this.fetchData();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* fetch all the providers for the site and cache it
|
|
30
|
+
* @returns {Promise<string>} Promise with the Destination mapping
|
|
31
|
+
* @private
|
|
32
|
+
* @since 1.127.0
|
|
33
|
+
*/
|
|
34
|
+
async fetchData () {
|
|
35
|
+
if (!this._dataPromise) {
|
|
36
|
+
try {
|
|
37
|
+
this._dataPromise = new Promise(async (resolve, reject) => {
|
|
38
|
+
this.#workPageService = await new WorkPageService();
|
|
39
|
+
try {
|
|
40
|
+
const oDestinationResponse = await this.#workPageService.loadSiteAndDataDestinationMappings();
|
|
41
|
+
const aDestinationMappings = oDestinationResponse?.data?.site?.providers?.nodes;
|
|
42
|
+
if (aDestinationMappings && Object.keys(aDestinationMappings[0]).length) {
|
|
43
|
+
aDestinationMappings.forEach((provider) => {
|
|
44
|
+
const aLogicalDestinationMaps = new Map();
|
|
45
|
+
provider.logicalDataDestinationMappings.forEach((oDataDestinationMapping) => {
|
|
46
|
+
aLogicalDestinationMaps.set(oDataDestinationMapping.logicalDestinationName, oDataDestinationMapping.resolvedUrl);
|
|
47
|
+
});
|
|
48
|
+
this.#providers.set(provider.id, aLogicalDestinationMaps);
|
|
49
|
+
});
|
|
50
|
+
return resolve(aDestinationMappings);
|
|
51
|
+
}
|
|
52
|
+
return reject("DestinationResolver: No Destinations found");
|
|
53
|
+
} catch (oError) {
|
|
54
|
+
return reject("DestinationResolver: No Destinations found");
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
} catch (oError) {
|
|
58
|
+
throw new Error("Cards DestinationResolver failed -", oError);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return this._dataPromise;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Get the Resolved Destination for a given Destination name and card
|
|
66
|
+
* @param {string} sDestinationName The name of the destination to resolve
|
|
67
|
+
* @param {sap.ui.integration.widgets.Card} oCard The card instance.
|
|
68
|
+
* @returns {Promise<string>} Promise with the Resolved destination URL
|
|
69
|
+
* @private
|
|
70
|
+
* @since 1.127.0
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
async resolveCardDestination (sDestinationName, oCard) {
|
|
74
|
+
if (!sDestinationName || !oCard) {
|
|
75
|
+
throw new Error("Cards DestinationResolver failed - No Destination or Card name Found");
|
|
76
|
+
}
|
|
77
|
+
try {
|
|
78
|
+
await this.fetchData();
|
|
79
|
+
const sResolvedDestination = this.#providers.get(oCard.getReferenceId())?.get(sDestinationName);
|
|
80
|
+
return sResolvedDestination || `${location.origin}/dynamic_dest/${sDestinationName}`;
|
|
81
|
+
} catch (oError) {
|
|
82
|
+
Log.error(oError);
|
|
83
|
+
return Promise.resolve(`${location.origin}/dynamic_dest/${sDestinationName}`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return DestinationResolver;
|
|
88
|
+
}, /*export=*/ true);
|
|
89
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file WorkPageHost for WorkPageBuilder and DWSPageBuilder
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.127.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
sap.ui.define([
|
|
@@ -10,13 +10,15 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/model/json/JSONModel",
|
|
11
11
|
"sap/ushell/Container",
|
|
12
12
|
"sap/ushell/EventHub",
|
|
13
|
-
"sap/ui/model/resource/ResourceModel"
|
|
13
|
+
"sap/ui/model/resource/ResourceModel",
|
|
14
|
+
"./DestinationResolver"
|
|
14
15
|
], function (
|
|
15
16
|
Host,
|
|
16
17
|
JSONModel,
|
|
17
18
|
Container,
|
|
18
19
|
EventHub,
|
|
19
|
-
ResourceModel
|
|
20
|
+
ResourceModel,
|
|
21
|
+
DestinationResolver
|
|
20
22
|
) {
|
|
21
23
|
"use strict";
|
|
22
24
|
|
|
@@ -38,17 +40,19 @@ sap.ui.define([
|
|
|
38
40
|
// private variables to store context information , filled lazy after by getContext, getContextValue was called, via _applyHostContext.
|
|
39
41
|
oHost._oHostContext = null;
|
|
40
42
|
oHost._oHostContextModel = null;
|
|
43
|
+
oHost._destinationResolver = new DestinationResolver();
|
|
41
44
|
|
|
42
45
|
/**
|
|
43
|
-
* Resolves the destination for a given name
|
|
44
|
-
* @param {string} The name of the destination to resolve.
|
|
46
|
+
* Resolves the destination for a card for the given Destination name
|
|
47
|
+
* @param {string} sDestinationName The name of the destination to resolve.
|
|
48
|
+
* @param {sap.ui.integration.widgets.Card} oCard The card instance.
|
|
45
49
|
* @returns {Promise<string>} Promise with the target destination
|
|
46
50
|
*/
|
|
47
|
-
oHost.setResolveDestination(function (sDestinationName) {
|
|
48
|
-
if (!sDestinationName) {
|
|
51
|
+
oHost.setResolveDestination(function (sDestinationName, oCard) {
|
|
52
|
+
if (!sDestinationName || !oCard) {
|
|
49
53
|
return Promise.reject();
|
|
50
54
|
}
|
|
51
|
-
return
|
|
55
|
+
return oHost._destinationResolver.resolveCardDestination(sDestinationName, oCard);
|
|
52
56
|
});
|
|
53
57
|
|
|
54
58
|
/**
|
|
@@ -97,51 +101,51 @@ sap.ui.define([
|
|
|
97
101
|
oHost._executeNavigation = function (oEvent) {
|
|
98
102
|
|
|
99
103
|
var oParameters = oEvent.getParameter("parameters"),
|
|
100
|
-
|
|
104
|
+
oCard = oEvent.getParameter("card");
|
|
101
105
|
|
|
102
106
|
if (oEvent.getParameter("type") !== "Navigation" ||
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
this._bNavigationDisabled) {
|
|
108
|
+
return Promise.resolve();
|
|
105
109
|
}
|
|
106
110
|
if (oParameters && oParameters.hasOwnProperty("url")) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
EventHub.emit("UITracer.trace", {
|
|
112
|
+
reason: "LaunchApp",
|
|
113
|
+
source: "Card",
|
|
114
|
+
data: {
|
|
115
|
+
cardId: oCard.getManifestEntry("/sap.app/id"),
|
|
116
|
+
providerId: oCard.getReferenceId(),
|
|
117
|
+
targetUrl: oParameters.url
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
return Promise.resolve();
|
|
117
121
|
}
|
|
118
122
|
// Prevent event bubbling here, to avoid opening the same target twice
|
|
119
123
|
oEvent.preventDefault(true);
|
|
120
124
|
|
|
121
125
|
|
|
122
126
|
return this.oContainer.getServiceAsync("Navigation")
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
});
|
|
143
|
-
return oNavigationService.navigate(oNavigationParameters);
|
|
127
|
+
.then(function (oNavigationService) {
|
|
128
|
+
var oNavigationParameters = {};
|
|
129
|
+
if (oParameters.hasOwnProperty("ibnTarget")) {
|
|
130
|
+
oNavigationParameters.target = oParameters.ibnTarget;
|
|
131
|
+
}
|
|
132
|
+
if (oParameters.hasOwnProperty("ibnParams")) {
|
|
133
|
+
oNavigationParameters.params = oParameters.ibnParams;
|
|
134
|
+
}
|
|
135
|
+
if (oParameters.hasOwnProperty("ibnAppSpecificRoute")) {
|
|
136
|
+
oNavigationParameters.appSpecificRoute = oParameters.ibnAppSpecificRoute;
|
|
137
|
+
}
|
|
138
|
+
EventHub.emit("UITracer.trace", {
|
|
139
|
+
reason: "LaunchApp",
|
|
140
|
+
source: "Card",
|
|
141
|
+
data: {
|
|
142
|
+
cardId: oCard.getManifestEntry("/sap.app/id"),
|
|
143
|
+
providerId: oCard.getReferenceId(),
|
|
144
|
+
targetUrl: "#" + oNavigationParameters.target.semanticObject + "-" + oNavigationParameters.target.action
|
|
145
|
+
}
|
|
144
146
|
});
|
|
147
|
+
return oNavigationService.navigate(oNavigationParameters);
|
|
148
|
+
});
|
|
145
149
|
|
|
146
150
|
};
|
|
147
151
|
oHost.attachAction(oHost._executeNavigation.bind(oHost));
|
|
@@ -282,10 +286,10 @@ sap.ui.define([
|
|
|
282
286
|
.catch(function () {
|
|
283
287
|
return oHost._applyHostContext(UserInfo);
|
|
284
288
|
});
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
+
})
|
|
290
|
+
.catch(function () {
|
|
291
|
+
return {};
|
|
292
|
+
});
|
|
289
293
|
}
|
|
290
294
|
return Promise.resolve(oHost._oHostContext);
|
|
291
295
|
};
|
|
@@ -294,7 +298,7 @@ sap.ui.define([
|
|
|
294
298
|
oHost._getBundle = function () {
|
|
295
299
|
return new ResourceModel({
|
|
296
300
|
bundleName: "sap.ushell.utils.workpage.resources.resources",
|
|
297
|
-
|
|
301
|
+
async: true
|
|
298
302
|
}).getResourceBundle();
|
|
299
303
|
};
|
|
300
304
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview This module communicates with the content API graphql service to retrieve workpage and visualization data.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.127.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/i18n/Localization",
|
|
@@ -83,6 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
* @property {object} descriptor The descriptor of the visualization
|
|
84
84
|
* @property {object} descriptorResources The descriptor resources of the visualization
|
|
85
85
|
* @property {SiteData} [_siteData] The additional app properties retrieved from the CDM Runtime Site
|
|
86
|
+
* @property {string} providerId The content provider id of the visualization
|
|
86
87
|
*/
|
|
87
88
|
|
|
88
89
|
/**
|
|
@@ -164,6 +165,9 @@ sap.ui.define([
|
|
|
164
165
|
baseUrl,
|
|
165
166
|
descriptorPath
|
|
166
167
|
},
|
|
168
|
+
provider{
|
|
169
|
+
id
|
|
170
|
+
},
|
|
167
171
|
indicatorDataSource{
|
|
168
172
|
url,
|
|
169
173
|
refreshInterval
|
|
@@ -174,6 +178,28 @@ sap.ui.define([
|
|
|
174
178
|
}`.replace(/\s\s+/g, "").replace(/\n/gm, ""); // trim spaces and new line
|
|
175
179
|
};
|
|
176
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Load the Site and Data Destination Mappings for the given site id.
|
|
183
|
+
* @returns {string} A GraphQL Query as a string
|
|
184
|
+
*/
|
|
185
|
+
WorkPage.prototype.loadSiteAndDataDestinationMappings = function () {
|
|
186
|
+
const sQuery = `{
|
|
187
|
+
site(siteId:"${this._sSiteId}") {
|
|
188
|
+
providers {
|
|
189
|
+
nodes {
|
|
190
|
+
id,
|
|
191
|
+
logicalDataDestinationMappings {
|
|
192
|
+
logicalDestinationName,
|
|
193
|
+
resolvedUrl
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}`.replace(/\s\s+/g, "").replace(/\n/gm, ""); // trim spaces and new line
|
|
199
|
+
|
|
200
|
+
return this._doRequest(sQuery);
|
|
201
|
+
};
|
|
202
|
+
|
|
177
203
|
/**
|
|
178
204
|
* Helper function to parse the data from the service
|
|
179
205
|
*
|
|
@@ -223,6 +249,11 @@ sap.ui.define([
|
|
|
223
249
|
indicatorDataSource {
|
|
224
250
|
url,
|
|
225
251
|
refreshInterval
|
|
252
|
+
},
|
|
253
|
+
targetAppIntent {
|
|
254
|
+
semanticObject,
|
|
255
|
+
action,
|
|
256
|
+
businessAppId
|
|
226
257
|
}
|
|
227
258
|
}
|
|
228
259
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
9
|
+
"sap/base/util/isPlainObject",
|
|
9
10
|
"sap/base/util/ObjectPath",
|
|
10
11
|
"sap/base/util/uid",
|
|
11
12
|
"sap/ui/Device",
|
|
@@ -21,6 +22,7 @@ sap.ui.define([
|
|
|
21
22
|
//"sap/ushell/resources" --> cannot be declared here currently: utils is used very early - before core boot, but resources uses UI5 core.
|
|
22
23
|
], function (
|
|
23
24
|
Log,
|
|
25
|
+
isPlainObject,
|
|
24
26
|
ObjectPath,
|
|
25
27
|
uid,
|
|
26
28
|
Device,
|
|
@@ -50,6 +52,28 @@ sap.ui.define([
|
|
|
50
52
|
utils.updateProperties = ushellObjectOperations.updateProperties;
|
|
51
53
|
utils.getNestedObjectProperty = ushellObjectOperations.getNestedObjectProperty;
|
|
52
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Freezes the object and all its properties recursively.
|
|
57
|
+
* @param {object} oObject The object to freeze.
|
|
58
|
+
* @returns {object} The frozen object.
|
|
59
|
+
* @throws {Error} If the object has cyclic references.
|
|
60
|
+
*
|
|
61
|
+
* @since 1.127.0
|
|
62
|
+
* @private
|
|
63
|
+
*/
|
|
64
|
+
utils.deepFreeze = function (oObject) {
|
|
65
|
+
Object.keys(oObject)
|
|
66
|
+
.filter((sProperty) => {
|
|
67
|
+
const vNestedValue = oObject[sProperty];
|
|
68
|
+
return isPlainObject(vNestedValue) || Array.isArray(vNestedValue);
|
|
69
|
+
})
|
|
70
|
+
.forEach((sProperty) => {
|
|
71
|
+
oObject[sProperty] = this.deepFreeze(oObject[sProperty]);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
return Object.freeze(oObject);
|
|
75
|
+
};
|
|
76
|
+
|
|
53
77
|
/**
|
|
54
78
|
* Removes duplicated items from the actions array.
|
|
55
79
|
*
|
|
@@ -109,7 +133,7 @@ sap.ui.define([
|
|
|
109
133
|
utils.getLocalSystemInSidFormat = function () {
|
|
110
134
|
const oContainer = sap.ui.require("sap/ushell/Container");
|
|
111
135
|
var oSystem = oContainer.getLogonSystem();
|
|
112
|
-
var sSystemName = oSystem.
|
|
136
|
+
var sSystemName = oSystem.getSystemName();
|
|
113
137
|
var sSystemClient = oSystem.getClient();
|
|
114
138
|
|
|
115
139
|
return "sid(" + sSystemName + "." + sSystemClient + ")";
|
|
@@ -308,7 +332,7 @@ sap.ui.define([
|
|
|
308
332
|
|
|
309
333
|
/**
|
|
310
334
|
* No redirect happens for a demo platform logout, but a reload is made to ensure the progress indicator is gone.
|
|
311
|
-
* Used e.g. in ContainerAdapter as part of the local platform.
|
|
335
|
+
* Used e.g. in ContainerAdapter as part of the local platform and in the cdm ContainerAdapter.
|
|
312
336
|
*
|
|
313
337
|
* @private
|
|
314
338
|
* @since 1.34.0
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
-
sap.ui.define([
|
|
3
|
-
"sap/base/i18n/Localization",
|
|
4
|
-
"sap/ushell/bootstrap/common/common.boot.path",
|
|
5
|
-
"sap/base/Log",
|
|
6
|
-
"sap/ui/core/Core",
|
|
7
|
-
"sap/ui/dom/includeStylesheet"
|
|
8
|
-
], function (Localization, bootPath, Log, Core, includeStylesheet) {
|
|
9
|
-
"use strict";
|
|
10
|
-
|
|
11
|
-
function applyBootTheme (oBootTheme) {
|
|
12
|
-
if (!oBootTheme || !oBootTheme.theme) {
|
|
13
|
-
Log.error("No boot theme could be applied", null,
|
|
14
|
-
"common.load.ui5theme"
|
|
15
|
-
);
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var oSAPUIConfig = window["sap-ui-config"] || {},
|
|
20
|
-
sAdjustedThemeRoot = adjustThemeRoot(oBootTheme.root),
|
|
21
|
-
sThemeName = oBootTheme.theme,
|
|
22
|
-
bHaveDifferentBootTheme = oSAPUIConfig.theme !== sThemeName;
|
|
23
|
-
|
|
24
|
-
includePreloadStylesheet(sThemeName, sAdjustedThemeRoot || (bootPath + "/"));
|
|
25
|
-
|
|
26
|
-
if (sAdjustedThemeRoot || bHaveDifferentBootTheme) {
|
|
27
|
-
var aApplyThemeArgs = [sThemeName, sAdjustedThemeRoot]
|
|
28
|
-
.filter(function (s) { return s; });
|
|
29
|
-
|
|
30
|
-
Core.applyTheme.apply(Core, aApplyThemeArgs);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
Log.debug("Boot theme applied: theme = '" + oBootTheme.theme +
|
|
34
|
-
"' theme root = '" + oBootTheme.root + "'", null,
|
|
35
|
-
"common.load.ui5theme"
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function adjustThemeRoot (sThemeRoot) {
|
|
40
|
-
if (sThemeRoot) {
|
|
41
|
-
return sThemeRoot + "/UI5/";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return undefined;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function includePreloadStylesheet (sTheme, sThemeBaseUrl) {
|
|
48
|
-
var sLanguage = Localization.getLanguage(),
|
|
49
|
-
sThemePrefix = sThemeBaseUrl + "sap/fiori/themes/" + sTheme,
|
|
50
|
-
bIsRtl = isRtlLanguage(sLanguage),
|
|
51
|
-
sFileName = bIsRtl ? "library-RTL.css" : "library.css";
|
|
52
|
-
|
|
53
|
-
includeStylesheet(sThemePrefix + "/" + sFileName, "sap-ui-theme-sap.fiori");
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function isRtlLanguage (sLanguage) {
|
|
57
|
-
// a list of RTL locales ('iw' is an old code for 'he')
|
|
58
|
-
var A_RTL_LOCALES = ["ar", "fa", "he", "iw"];
|
|
59
|
-
|
|
60
|
-
// remove the region part of the locale if it exists
|
|
61
|
-
sLanguage = sLanguage.toLowerCase().substring(0, 2);
|
|
62
|
-
|
|
63
|
-
return A_RTL_LOCALES.indexOf(sLanguage) >= 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return applyBootTheme;
|
|
67
|
-
});
|