@sapui5/sap.ushell 1.125.0 → 1.126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/Container.js +137 -62
- 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 +35 -31
- 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/cdm/v3/utilsCdm.js +34 -0
- 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 +4 -4
- 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/api/RTA.js +14 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +5 -5
- 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/AppState.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +2 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +3 -3
- package/src/main/js/sap/ushell/components/CatalogsManager.js +4 -1
- package/src/main/js/sap/ushell/components/HomepageManager.js +1 -0
- package/src/main/js/sap/ushell/components/_HeaderManager/ShellHeader.controller.js +1 -0
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxesCache.js +37 -7
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +1 -1
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/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/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/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/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +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 +2 -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 +11 -3
- 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 +1 -2
- 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/UserSettings.controller.js +10 -0
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +1 -0
- 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/cdm/applauncherdynamic/Component.js +3 -0
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/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 +1 -1
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderer/History.js +1 -2
- package/src/main/js/sap/ushell/renderer/Renderer.js +2 -2
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +37 -37
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +4 -4
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +13 -11
- 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 +625 -750
- package/src/main/js/sap/ushell/services/CommonDataModel.js +21 -14
- 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 +14 -3
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.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/MessageInternal.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +3 -3
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -1
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +223 -229
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +87 -78
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +225 -271
- 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 +10 -10
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +9 -6
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +16 -25
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/ParameterMapping.js +3 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +15 -21
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +52 -45
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +3 -5
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +5 -2
- 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 +63 -80
- 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 +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_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/sap_horizon/Tile.less +2 -6
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +3 -6
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +3 -8
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -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 +17 -0
- package/src/main/js/sap/ushell/utils/tilecard/TileCard.js +305 -305
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +22 -5
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +7 -6
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +1 -1
|
@@ -1,342 +1,342 @@
|
|
|
1
1
|
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
sap.ui.define([
|
|
4
|
-
|
|
4
|
+
"sap/base/Log"
|
|
5
5
|
], function (
|
|
6
6
|
Log
|
|
7
|
-
|
|
7
|
+
) {
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
"use strict";
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @alias sap.ushell.utils.tilecard.TileCard
|
|
13
|
+
* @class
|
|
14
|
+
* @classdesc Util to create a TileCardConfiguration.
|
|
15
|
+
* @since 1.123.0
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @typedef {object} TileCardConfiguration ConfigurationData for the pagebuilder to instaniate a card.
|
|
21
|
+
* @property {string} displayVariant The expected displayVariant for the tile card.
|
|
22
|
+
* @property {string[]} availableDisplayVariants The available display variants for the tile card.
|
|
23
|
+
* @property {boolean} error indicates if an error occured.
|
|
24
|
+
*/
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
const sStaticAppLauncher = "sap.ushell.StaticAppLauncher";
|
|
27
|
+
const sDynamicAppLauncher = "sap.ushell.DynamicAppLauncher";
|
|
28
|
+
const sTileExtension = "module:sap/ushell/utils/tilecard/TileCardExtension";
|
|
29
|
+
const oLogger = Log.getLogger("sap.ushell.utils.tilecard.TileCard");
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
const errorTile = {
|
|
33
|
+
_version: "1.41.0",
|
|
34
|
+
"sap.app": {
|
|
35
|
+
id: "sap.ushell.utils.tilecard.Error",
|
|
36
|
+
type: "card",
|
|
37
|
+
applicationVersion: {
|
|
38
|
+
version: "1.123.0"
|
|
39
|
+
},
|
|
40
|
+
i18n: {
|
|
41
|
+
bundleName: "sap.ushell.utils.tilecard.resources/resources"
|
|
42
|
+
}
|
|
39
43
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
icon: {
|
|
49
|
-
src: "sap-icon://sys-cancel"
|
|
44
|
+
"sap.card": {
|
|
45
|
+
type: "List",
|
|
46
|
+
header: {
|
|
47
|
+
title: "{{TileCard.Widget.NotAvailable}}",
|
|
48
|
+
icon: {
|
|
49
|
+
src: "sap-icon://sys-cancel"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
};
|
|
53
|
+
};
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Creates the TileCard Configuration based on the extended vizData.
|
|
57
|
+
* The configuration contains additional data, besides the descriptor.value used to initialize a
|
|
58
|
+
* card correctly.
|
|
59
|
+
* @param {TileConfigurationData} oData the extended vizData.
|
|
60
|
+
* @returns {TileCardConfiguration} The configuration object for a card.
|
|
61
|
+
* @private
|
|
62
|
+
* @since 1.123.0
|
|
63
|
+
*/
|
|
64
|
+
function createTileCardConfiguration (oData) {
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
let oResult;
|
|
67
|
+
try {
|
|
68
|
+
oResult = {
|
|
69
|
+
descriptor: {
|
|
70
|
+
value: createManifest(oData)
|
|
71
|
+
},
|
|
72
|
+
displayVariant: getDisplayVariant(oData.displayFormatHint || "standard"),
|
|
73
|
+
availableDisplayVariants: getAvailableDisplayVariants(oData),
|
|
74
|
+
error: false
|
|
75
|
+
};
|
|
76
|
+
// error case, not a custom tile and no descriptor
|
|
77
|
+
if (!oResult.descriptor.value) {
|
|
78
|
+
throw new Error("No custom tile and no descriptor value");
|
|
79
|
+
}
|
|
80
|
+
oLogger.debug("TileCard was initialized.", JSON.stringify(oData));
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
82
|
+
} catch (ex) {
|
|
83
|
+
oLogger.debug("TileCard cannot be initialized.", JSON.stringify(oData));
|
|
84
|
+
oLogger.info("TileCard initialization failed", ex.message);
|
|
85
|
+
oResult = {
|
|
86
|
+
descriptor: {
|
|
87
|
+
value: errorTile
|
|
88
|
+
},
|
|
89
|
+
displayVariant: getDisplayVariant(oData.displayFormatHint || "standard"),
|
|
90
|
+
availableDisplayVariants: getAvailableDisplayVariants([
|
|
91
|
+
"TileStandard",
|
|
92
|
+
"TileFlat",
|
|
93
|
+
"TileFlatWide",
|
|
94
|
+
"TileStandardWide"
|
|
95
|
+
]),
|
|
96
|
+
error: true
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return oResult;
|
|
98
100
|
}
|
|
99
|
-
return oResult;
|
|
100
|
-
}
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Creates and returns the Card manifest json for a static and dynamic tile
|
|
104
|
+
* @param {ExtendedVizData} oData the extended viz data from WorkPageVizInstantiation
|
|
105
|
+
* @returns {object | null} The manifest to be applied or null.
|
|
106
|
+
* @private
|
|
107
|
+
* @since 1.123.0
|
|
108
|
+
*/
|
|
109
|
+
function createManifest (oData) {
|
|
110
|
+
if (oData.vizType === sDynamicAppLauncher || oData.vizType === sStaticAppLauncher) {
|
|
111
|
+
// always create a Numeric header for the card
|
|
112
|
+
return getManifest(oData.vizType === sDynamicAppLauncher, oData);
|
|
113
|
+
}
|
|
114
|
+
return null;
|
|
113
115
|
}
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Returns the available display variants for the given oData.
|
|
119
|
+
* If no supportedDisplayFormats are available, the TileStandard display variant is returned.
|
|
120
|
+
*
|
|
121
|
+
* @param {object} oData the vizConfig from the extended viz data.
|
|
122
|
+
* @returns {string[]} The available display variants or ["TileStandard"]
|
|
123
|
+
* @private
|
|
124
|
+
* @since 1.123.0
|
|
125
|
+
*/
|
|
126
|
+
function getAvailableDisplayVariants (oData) {
|
|
127
|
+
if (!Array.isArray(oData.supportedDisplayFormats) || oData.supportedDisplayFormats.length === 0) {
|
|
128
|
+
return ["TileStandard"];
|
|
129
|
+
}
|
|
130
|
+
const aFormats = oData.supportedDisplayFormats || [
|
|
131
|
+
"flat",
|
|
132
|
+
"standard",
|
|
133
|
+
"standardWide",
|
|
134
|
+
"flatWide",
|
|
135
|
+
"compact"
|
|
136
|
+
];
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
return aFormats.map(function (sFormat) {
|
|
139
|
+
return getDisplayVariant(sFormat);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Returns the generated TileCard manifest for the static and dynamic tile described by the given oData.
|
|
145
|
+
* @param {boolean} bDynamic true for a dynamic tile.
|
|
146
|
+
* @param {ExtendedVizData} oData the extended viz data from WorkPageVizInstantiation.
|
|
147
|
+
* @returns {object} The generated manifest.
|
|
148
|
+
* @private
|
|
149
|
+
* @since 1.123.0
|
|
150
|
+
*/
|
|
151
|
+
function getManifest (bDynamic, oData) {
|
|
152
|
+
return {
|
|
153
|
+
_version: "1.41.0",
|
|
154
|
+
"sap.app": {
|
|
155
|
+
id: oData.id,
|
|
156
|
+
type: "card",
|
|
157
|
+
tags: { keywords: oData.keywords },
|
|
158
|
+
i18n: {
|
|
159
|
+
bundleName: "sap.ushell.utils.tilecard.resources/resources"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"sap.ui": oData.vizConfig["sap.ui"] || {},
|
|
163
|
+
"sap.flp": oData.vizConfig["sap.flp"] || {},
|
|
164
|
+
"sap.fiori": oData.vizConfig["sap.fiori"] || {},
|
|
165
|
+
"sap.card": {
|
|
166
|
+
extension: bDynamic ? sTileExtension : "",
|
|
167
|
+
header: getHeader(bDynamic, oData),
|
|
168
|
+
type: "List",
|
|
169
|
+
configuration: {
|
|
170
|
+
parameters: {
|
|
171
|
+
dataPath: {
|
|
172
|
+
value: getDataPath(oData)
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
173
176
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Returns the card header settings for the static and dynamic tile described by the given oData.
|
|
182
|
+
* @param {boolean} bDynamic true for a dynamic tile.
|
|
183
|
+
* @param {ExtendedVizData} oData the extended viz data from WorkPageVizInstantiation.
|
|
184
|
+
* @returns {object} The header settings.
|
|
185
|
+
* @private
|
|
186
|
+
* @since 1.123.0
|
|
187
|
+
*/
|
|
188
|
+
function getHeader (bDynamic, oData) {
|
|
189
|
+
// use a numeric header to allow details/info to be shown
|
|
190
|
+
const oHeaderConfig = {
|
|
191
|
+
type: "Numeric",
|
|
192
|
+
title: oData.title || "",
|
|
193
|
+
titleMaxLines: oData.subtitle ? 2 : 3, // if there is a subtitle, we have 2 lines for title, otherwise 3
|
|
194
|
+
subTitle: oData.subtitle || "", // card title is otherwise not top aligned. will be fixed to top soon.
|
|
195
|
+
subTitleMaxLines: 1,
|
|
196
|
+
wrappingType: "Hyphenated",
|
|
197
|
+
icon: {
|
|
198
|
+
src: oData.icon || "",
|
|
199
|
+
shape: "Square",
|
|
200
|
+
visible: !!oData.icon
|
|
201
|
+
},
|
|
202
|
+
actions: getNavigationAction(oData),
|
|
203
|
+
details: {
|
|
204
|
+
text: oData.info || "",
|
|
205
|
+
state: "None"
|
|
206
|
+
},
|
|
207
|
+
banner: oData.displayProviderLabel ? [
|
|
208
|
+
{
|
|
209
|
+
text: oData.contentProviderLabel
|
|
210
|
+
}
|
|
211
|
+
] : []
|
|
212
|
+
};
|
|
213
213
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
214
|
+
// dynamic tile specific settings and bindings
|
|
215
|
+
if (bDynamic) {
|
|
216
|
+
const dataSource = oData.indicatorDataSource;
|
|
217
|
+
// initialize a data request later handled in TileCardExtension
|
|
218
|
+
oHeaderConfig.data = {
|
|
219
|
+
updateInterval: dataSource && dataSource.refreshInterval ? dataSource.refreshInterval : 0,
|
|
220
|
+
path: "/",
|
|
221
|
+
request: {
|
|
222
|
+
method: "GET",
|
|
223
|
+
url: "{parameters>/dataPath/value}",
|
|
224
|
+
withCredentials: true,
|
|
225
|
+
retryAfter: 1
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
// all data bindings will be resolved after the TileCard Extension has loaded the data.
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
231
|
+
// set or bind icon src and its visibility
|
|
232
|
+
oHeaderConfig.icon.src = "{= ${/_data/icon} || '" + (oData.icon || "") + "'}";
|
|
233
|
+
oHeaderConfig.icon.visible = "{= !!${/_data/icon}}";
|
|
234
|
+
// set or bind number units
|
|
235
|
+
oHeaderConfig.unitOfMeasurement = "{= ${/numberUnit} || '" + (oData.numberUnit || "") + "'}";
|
|
236
|
+
// bind indicator to data
|
|
237
|
+
oHeaderConfig.mainIndicator = {
|
|
238
|
+
number: "{/_data/number}",
|
|
239
|
+
unit: "{/_data/unit}",
|
|
240
|
+
trend: "{/_data/trend}",
|
|
241
|
+
state: "{/_data/state}"
|
|
242
|
+
};
|
|
243
|
+
// bind details
|
|
244
|
+
oHeaderConfig.details = {
|
|
245
|
+
text: "{= ${/_data/details/text} || '" + (oData.info || " ") + "'}", // bug, will be fixed, for blank text [Object object] is shown.
|
|
246
|
+
state: "{= ${/_data/details/state} || 'None'}"
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
return oHeaderConfig;
|
|
248
250
|
}
|
|
249
|
-
return oHeaderConfig;
|
|
250
|
-
}
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
if (oTarget.semanticObject && oTarget.action) {
|
|
266
|
-
return [
|
|
267
|
-
{
|
|
268
|
-
type: "Navigation",
|
|
269
|
-
parameters: {
|
|
270
|
-
ibnTarget: {
|
|
271
|
-
semanticObject: oTarget.semanticObject,
|
|
272
|
-
action: oTarget.action
|
|
273
|
-
},
|
|
274
|
-
ibnParams: oTarget.mParameters
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
];
|
|
278
|
-
} else if (oTarget.type && oTarget.type === "URL") {
|
|
279
|
-
return [
|
|
280
|
-
{
|
|
281
|
-
type: "Navigation",
|
|
282
|
-
parameters: {
|
|
283
|
-
url: oTarget.url
|
|
284
|
-
}
|
|
252
|
+
/**
|
|
253
|
+
* Returns the navigation action for the header settings for the static and dynamic tile described by the given oData.
|
|
254
|
+
* @param {ExtendedVizData} oData the extended viz data from WorkPageVizInstantiation.
|
|
255
|
+
* @returns {object} The navigation action settings.
|
|
256
|
+
* @private
|
|
257
|
+
* @since 1.123.0
|
|
258
|
+
*/
|
|
259
|
+
function getNavigationAction (oData) {
|
|
260
|
+
// @TODO: Can we only use the targetURL, what about the parameters like hint?
|
|
261
|
+
const oTarget = oData.target;
|
|
262
|
+
if (!oTarget) {
|
|
263
|
+
return [];
|
|
285
264
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
265
|
+
if (oTarget.semanticObject && oTarget.action) {
|
|
266
|
+
return [
|
|
267
|
+
{
|
|
268
|
+
type: "Navigation",
|
|
269
|
+
parameters: {
|
|
270
|
+
ibnTarget: {
|
|
271
|
+
semanticObject: oTarget.semanticObject,
|
|
272
|
+
action: oTarget.action
|
|
273
|
+
},
|
|
274
|
+
ibnParams: oTarget.mParameters
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
];
|
|
278
|
+
} else if (oTarget.type && oTarget.type === "URL") {
|
|
279
|
+
return [
|
|
280
|
+
{
|
|
281
|
+
type: "Navigation",
|
|
282
|
+
parameters: {
|
|
283
|
+
url: oTarget.url
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
];
|
|
287
|
+
} else if (oData.targetURL) {
|
|
288
|
+
return [
|
|
289
|
+
{
|
|
290
|
+
type: "Navigation",
|
|
291
|
+
parameters: {
|
|
292
|
+
url: oData.targetURL
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
];
|
|
294
296
|
}
|
|
295
|
-
|
|
297
|
+
return [];
|
|
296
298
|
}
|
|
297
|
-
return [];
|
|
298
|
-
}
|
|
299
299
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
300
|
+
/**
|
|
301
|
+
* Returns the data path for dynamic data based on the indicatorDataSource and (if available) the corresponding dataSource.
|
|
302
|
+
* @param {ExtendedVizData} oData the extended viz data from WorkPageVizInstantiation.
|
|
303
|
+
* @returns {string} The dataPath.
|
|
304
|
+
* @private
|
|
305
|
+
* @since 1.123.0
|
|
306
|
+
*/
|
|
307
|
+
function getDataPath (oData) {
|
|
308
|
+
const oIndicatorDataSource = oData.indicatorDataSource;
|
|
309
|
+
if (!oIndicatorDataSource) {
|
|
310
|
+
return "";
|
|
311
|
+
}
|
|
312
|
+
let sPath = oIndicatorDataSource.url;
|
|
313
|
+
if (oIndicatorDataSource.dataSource && oData.dataSource && oData.dataSource.uri) {
|
|
314
|
+
if (!oData.dataSource.uri.endsWith("/")) {
|
|
315
|
+
oData.dataSource.uri = oData.dataSource.uri + "/"; // ensure slash at end.
|
|
316
|
+
}
|
|
317
|
+
sPath = oData.dataSource.uri + oIndicatorDataSource.path;
|
|
318
|
+
sPath = sPath.replaceAll("//", "/"); //avoid double slashes from concats.
|
|
319
|
+
}
|
|
320
|
+
return sPath || "/";
|
|
319
321
|
}
|
|
320
|
-
return sPath || "/";
|
|
321
|
-
}
|
|
322
322
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
323
|
+
/**
|
|
324
|
+
* Returns the display variant for the card settings derived from the displayFormatHint.
|
|
325
|
+
* @param {string} sHint the displayFormatHint (standard, flat, flatWide, standardWide)
|
|
326
|
+
* @returns {object} The display variant for the card.
|
|
327
|
+
* @private
|
|
328
|
+
* @since 1.123.0
|
|
329
|
+
*/
|
|
330
|
+
function getDisplayVariant (sHint) {
|
|
331
|
+
switch (sHint) {
|
|
332
|
+
case "flat": return "TileFlat";
|
|
333
|
+
case "standardWide": return "TileStandardWide";
|
|
334
|
+
case "flatWide": return "TileFlatWide";
|
|
335
|
+
case "compact": return "LinkHeader";
|
|
336
|
+
default: return "TileStandard";
|
|
337
|
+
}
|
|
337
338
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
};
|
|
339
|
+
return {
|
|
340
|
+
createTileCardConfiguration: createTileCardConfiguration
|
|
341
|
+
};
|
|
342
342
|
});
|