@sapui5/sap.ushell 1.122.1 → 1.123.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/Container.js +9 -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/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 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/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/api/workpage/Designtime.js +18 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +13 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +18 -8
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +5 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +27 -2
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +0 -5
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxSite.json +3 -112
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +8 -1
- package/src/main/js/sap/ushell/components/_HeaderManager/AddHeadEndItemsStrategy.js +3 -0
- package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +1 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +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 +13 -2
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +12 -5
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +0 -4
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +2 -0
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +159 -137
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTree.view.xml +24 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +31 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +146 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +59 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifestAppSearch.json +50 -0
- package/src/main/js/sap/ushell/components/contentFinderStandalone/view/ContentFinderStandalone.view.xml +15 -0
- 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 +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +0 -4
- 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/userLanguageRegion/LanguageRegionSelector.controller.js +1 -1
- 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/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 +2 -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/Renderer.js +44 -32
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +2 -24
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +2 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +26 -12
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +154 -39
- 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 +104 -134
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Header.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +9 -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/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +46 -9
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/NotificationsV2.js +141 -9
- 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 +58 -16
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.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 +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 +38 -13
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLParsing.js +42 -20
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +17 -4
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/_CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +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 +34 -5
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/ui/AppContainer.js +44 -0
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternal.js +3 -3
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternalRenderer.js +103 -0
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +7 -98
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/CatalogsContainer.js +5 -3
- 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/ViewPortState.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +30 -48
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/tilecard/TileCard.js +342 -0
- package/src/main/js/sap/ushell/utils/tilecard/TileCardExtension.js +384 -0
- package/src/main/js/sap/ushell/utils/tilecard/resources/resources.properties +11 -0
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +57 -4
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +44 -17
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +2 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This file exposes an API to perform (invoke) Navigation for applications.
|
|
6
6
|
* It exposes interfaces to perform a hash change and trigger a navigation.
|
|
7
7
|
*
|
|
8
|
-
* @version 1.
|
|
8
|
+
* @version 1.123.0
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define([
|
|
11
11
|
"sap/base/Log",
|
|
@@ -116,6 +116,43 @@ sap.ui.define([
|
|
|
116
116
|
oServiceConfiguration = oServiceConf.config;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* The target intent.
|
|
122
|
+
*
|
|
123
|
+
* Navigation is encoded in the fragment identifier of the URL within FLPthe URL has
|
|
124
|
+
* to be a valid intent, i.e. in the format <code>"#SO-Action?P1=a&P2=x&/route?RPV=1"</code>.
|
|
125
|
+
* The generic syntax consists of the semantic object, the action and an optional part:
|
|
126
|
+
* <pre>Intent = "#" semanticObject "-" action ["?" intentParameters "&/" innerAppRoute + "?" + innerAppRouteParameters]</pre>
|
|
127
|
+
* The intent compries of the fthe following parts:
|
|
128
|
+
* <ul>
|
|
129
|
+
* <li>semanticObject:
|
|
130
|
+
* Semantic object as defined in an app launcher tile.
|
|
131
|
+
* The following characters are allowed: uppercase letters [A-Z], lowercase letters [a-z], numbers [0-9]. The first character must be an uppercase or lowercase letter.
|
|
132
|
+
* The length of the semantic object is limited to 30 characters.
|
|
133
|
+
*
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>action:
|
|
136
|
+
* Action as defined in an app launcher tile. For the action name, choose a verb or a short phrase starting with lower case and without blanks. Examples are display, create, or release.
|
|
137
|
+
* The following characters are allowed: uppercase letters [A-Z], lowercase letters [a-z], numbers [0-9] and underscores [_].
|
|
138
|
+
* The first character must be an uppercase or lowercase letter or an underscore.
|
|
139
|
+
* The length of the action is limited to 50 characters.
|
|
140
|
+
* </li>
|
|
141
|
+
* <li>intentParameters: Intent parameters are optional parameters. The parameters are separated by the ampersand character (&).
|
|
142
|
+
* The parameter name and value are separated by the equal sign (=). The parameter value must be URL-encoded.
|
|
143
|
+
* When navigating via Intent Based Navigation (IBN) the intent parameters are used to determine the target application.
|
|
144
|
+
* </li>
|
|
145
|
+
* <li>innerAppRoute: The inner app route is an optional parameter that is used to navigate within the target application.
|
|
146
|
+
* The inner app route is separated from the intent parameters by the "&/".
|
|
147
|
+
* </li>
|
|
148
|
+
* <li>innerAppRouteParameters: The inner app route parameters are optional parameters that are passed to the target application. The parameters are separated by the ampersand character (&).
|
|
149
|
+
* The parameter name and value are separated by the equal sign (=). The parameter value must be URL-encoded.
|
|
150
|
+
* </li>
|
|
151
|
+
* @typedef {string} sap.ushell.services.Navigation.TargetIntent
|
|
152
|
+
* @since 1.121.0
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
|
|
119
156
|
/**
|
|
120
157
|
* @typedef {object} sap.ushell.services.Navigation.LinkFilter
|
|
121
158
|
* @property {string} [semanticObject] Matches the semantic object of a link.
|
|
@@ -785,12 +822,12 @@ sap.ui.define([
|
|
|
785
822
|
oQuery.params = oLinkFilter;
|
|
786
823
|
}
|
|
787
824
|
|
|
788
|
-
const aLinks = await this.getLinks([oQuery]);
|
|
825
|
+
const [aLinks] = await this.getLinks([oQuery]);
|
|
789
826
|
if (aLinks.length === 0) {
|
|
790
827
|
delete oQuery.tags;
|
|
791
828
|
oQuery.action = "displayFactSheet";
|
|
792
829
|
|
|
793
|
-
const aFactSheetLinks = await this.getLinks([oQuery]);
|
|
830
|
+
const [aFactSheetLinks] = await this.getLinks([oQuery]);
|
|
794
831
|
|
|
795
832
|
// Priority given to intents with the action "displayFactSheet"
|
|
796
833
|
return aFactSheetLinks.length === 0 ? null : aFactSheetLinks.sort((oLink, oOtherLink) => {
|
|
@@ -1051,10 +1088,10 @@ sap.ui.define([
|
|
|
1051
1088
|
* Resolves a given navigation intent (if valid) and returns the respective component data only for further processing.
|
|
1052
1089
|
*
|
|
1053
1090
|
* @param {string} sIntent Semantic object and action as a string with a "#" as prefix
|
|
1054
|
-
* @param {
|
|
1091
|
+
* @param {sap.ushell.services.Ui5ComponentLoader.ComponentData} [oComponentData] The componentData relevant for this component.
|
|
1055
1092
|
* <b>Note:</b> Please don't pass <code>startupParameters</code>, <code>config</code>
|
|
1056
1093
|
* and <code>["sap-xapp-state"]</code>
|
|
1057
|
-
* @returns {Promise<
|
|
1094
|
+
* @returns {Promise<sap.ushell.services.Ui5ComponentLoader.ComponentData>} A promise resolving the instantiation data for the component.
|
|
1058
1095
|
*
|
|
1059
1096
|
* @since 1.120.0
|
|
1060
1097
|
* @private
|
|
@@ -1150,7 +1187,7 @@ sap.ui.define([
|
|
|
1150
1187
|
* @param {string} sPersistencyMethod See sap/ushell/services/appstate/AppStatePersistencyMethod for possible values.
|
|
1151
1188
|
* Support depends on the used platform.
|
|
1152
1189
|
* @param {object} oPersistencySettings Persistency settings.
|
|
1153
|
-
* @returns {Promise<
|
|
1190
|
+
* @returns {Promise<sap.ushell.services.AppState.AppState>} A Promise resolving the app state container.
|
|
1154
1191
|
*
|
|
1155
1192
|
* @since 1.120.0
|
|
1156
1193
|
* @private
|
|
@@ -1170,7 +1207,7 @@ sap.ui.define([
|
|
|
1170
1207
|
* Get the app state object that was used for the current navigation
|
|
1171
1208
|
*
|
|
1172
1209
|
* @param {sap.ui.core.Component} oAppComponent - UI5 component, key will be extracted from component data.
|
|
1173
|
-
* @returns {Promise<
|
|
1210
|
+
* @returns {Promise<sap.ushell.services.AppState.AppState>} Resolves the app state object.
|
|
1174
1211
|
* Note that this is an unmodifiable container and its data must be copied into a writable container!
|
|
1175
1212
|
* @since 1.120.0
|
|
1176
1213
|
* @private
|
|
@@ -1202,8 +1239,8 @@ sap.ui.define([
|
|
|
1202
1239
|
* A lookup for a cross user app state will be performed.
|
|
1203
1240
|
*
|
|
1204
1241
|
* @param {sap.ui.core.Component} oAppComponent UI5 component, key will be extracted from component data
|
|
1205
|
-
* @param {object} sAppStateKey the application state key.
|
|
1206
|
-
* @returns {Promise<
|
|
1242
|
+
* @param {object|string} sAppStateKey the application state key.
|
|
1243
|
+
* @returns {Promise<sap.ushell.services.AppState.AppState>} Resolves the app state object.
|
|
1207
1244
|
* <b>Note:</b> that this is an unmodifiable container and its data must be copied into a writable container!
|
|
1208
1245
|
*
|
|
1209
1246
|
* @since 1.120.0
|
|
@@ -64,6 +64,126 @@ sap.ui.define([
|
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
66
|
function Notifications (oContainerInterface, sParameters, oServiceConfiguration) {
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Type for notification target parameters.
|
|
70
|
+
* @typedef {object} sap.ushell.services.NotificationsV2.NotificationTargetParameter
|
|
71
|
+
* @property {string} NotificationId The ID of the notification.
|
|
72
|
+
* @property {string} Key The key of the notification target parameter.
|
|
73
|
+
* @property {string} Value The value of the notification target parameter.
|
|
74
|
+
* @since 1.120.0
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Enumeration for the priority of a notification
|
|
80
|
+
* @enum {string}
|
|
81
|
+
* @since 1.120.0
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
Notifications.Priority = {
|
|
85
|
+
/**
|
|
86
|
+
* Low priority.
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
LOW: "LOW",
|
|
90
|
+
/**
|
|
91
|
+
* Medium priority.
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
MEDIUM: "MEDIUM",
|
|
95
|
+
/**
|
|
96
|
+
* High priority.
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
HIGH: "HIGH"
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** Enumaration for The nature of the notification
|
|
103
|
+
* @enum {string}
|
|
104
|
+
* @since 1.120.0
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
Notifications.Nature = {
|
|
108
|
+
/**
|
|
109
|
+
* The Positive nature.
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
POSITIVE: "POSITIVE",
|
|
113
|
+
/**
|
|
114
|
+
* The Negative nature.
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
NEGATIVE: "NEGATIVE",
|
|
118
|
+
/**
|
|
119
|
+
* The Neutral nature.
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
NEUTRAL: "NEUTRAL"
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Type for Actor
|
|
127
|
+
* @typedef {object} sap.ushell.services.NotificationsV2.Actor
|
|
128
|
+
* @property {string} Id The ID of the actor
|
|
129
|
+
* @property {string} DisplayText The display text of the actor
|
|
130
|
+
* @property {string} ImageSource The image source of the actor
|
|
131
|
+
* @since 1.120.0
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Type for Action
|
|
137
|
+
* @typedef {object} sap.ushell.services.NotificationsV2.Action
|
|
138
|
+
* @property {string} ActionId The ID of the action
|
|
139
|
+
* @property {string} ActionText The text of the action
|
|
140
|
+
* @property {string} GroupActionText The group action text
|
|
141
|
+
* @property {sap.ushell.services.NotificationsV2.Nature} Nature The nature of the action
|
|
142
|
+
* @since 1.120.0
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Type for the notification item
|
|
148
|
+
*
|
|
149
|
+
* @typedef {object} sap.ushell.services.NotificationsV2.NotificationItem
|
|
150
|
+
* @property {string} Id The ID of the notification.
|
|
151
|
+
* @property {string} OriginId The ID of the origin, can be a combination of system and client or the value <code>LOCAL</code>.
|
|
152
|
+
* @property {string} CreatedAt The date and time the notification was created.
|
|
153
|
+
* @property {boolean} IsActionable Indicates whether the notification is actionable.
|
|
154
|
+
* @property {boolean} IsRead Indicates whether the notification has been read.
|
|
155
|
+
* @property {boolean} IsGroupable Indicates whether the notification can be grouped.
|
|
156
|
+
* @property {boolean} IsGroupHeader Indicates whether the notification is a group header.
|
|
157
|
+
* @property {string} NavigationTargetAction The action to be executed when the notification is clicked.
|
|
158
|
+
* @property {string} NavigationTargetObject The object to be navigated to when the notification is clicked.
|
|
159
|
+
* @property {string} NavigationIntent The intent for navigation when the notification is clicked.
|
|
160
|
+
* @property {string} NotificationTypeId The ID for the notification type specified in <code>NotificationTypeKey</code>.
|
|
161
|
+
* @property {string} NotificationTypeKey The key of the notification type.
|
|
162
|
+
* @property {string} ParentId The ID of the parent notification.
|
|
163
|
+
* @property {sap.ushell.services.NotificationsV2.Priority} Priority The priority of the notification.
|
|
164
|
+
* @property {string} SensitiveText The sensitive text of the notification.
|
|
165
|
+
* @property {string} Text The text of the notification.
|
|
166
|
+
* @property {string} GroupHeaderText The header text of the notification group.
|
|
167
|
+
* @property {number} NotificationCount The number of notifications.
|
|
168
|
+
* @property {string} SubTitle The subtitle of the notification.
|
|
169
|
+
* @property {string} NotificationTypeDesc The description of the notification type.
|
|
170
|
+
* @property {sap.ushell.services.NotificationsV2.Actor} Actor The actor of the notification.
|
|
171
|
+
* @property {sap.ushell.services.NotificationsV2.NotificationTargetParameter[]} NavigationTargetParams The navigation target parameters of the notification.
|
|
172
|
+
* @property {sap.ushell.services.NotificationsV2.Action[]} Actions The actions of the notification.
|
|
173
|
+
* @since 1.120.0
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Type for executeBulkAction
|
|
179
|
+
* @typedef {object} sap.ushell.services.NotificationsV2.BulkAction
|
|
180
|
+
* @property {boolean} DeleteOnReturn Indicates whether the notification should be deleted after the action is executed
|
|
181
|
+
* @property {boolean} Success Indicates whether the action was executed successfully
|
|
182
|
+
* @property {string} NotificationId The ID of the notification
|
|
183
|
+
* @since 1.120.0
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
|
|
67
187
|
const oModel = new JSONModel();
|
|
68
188
|
const oServiceConfig = oServiceConfiguration && oServiceConfiguration.config;
|
|
69
189
|
const aRequestURIs = {
|
|
@@ -271,7 +391,7 @@ sap.ui.define([
|
|
|
271
391
|
* Returns the number of unseen notifications<br>
|
|
272
392
|
* e.g. Notifications that the user hasn't seen yet.
|
|
273
393
|
*
|
|
274
|
-
* @returns {Promise} Promise resolves with the number of unread notifications of the user
|
|
394
|
+
* @returns {Promise<int>} Promise resolves with the number of unread notifications of the user
|
|
275
395
|
*
|
|
276
396
|
* @public
|
|
277
397
|
*/
|
|
@@ -305,8 +425,8 @@ sap.ui.define([
|
|
|
305
425
|
/**
|
|
306
426
|
* Returns the notifications of the user sorted by type include the group headers and the notifications
|
|
307
427
|
*
|
|
308
|
-
* @returns {Promise} Promise for all notification items
|
|
309
|
-
*
|
|
428
|
+
* @returns {Promise<sap.ushell.services.NotificationsV2.NotificationItem[]>} Promise for all notification items
|
|
429
|
+
* The notifications items have value true for attribute group header if they are group headers.
|
|
310
430
|
* @public
|
|
311
431
|
*/
|
|
312
432
|
this.getNotificationsByTypeWithGroupHeaders = function () {
|
|
@@ -324,10 +444,12 @@ sap.ui.define([
|
|
|
324
444
|
});
|
|
325
445
|
};
|
|
326
446
|
|
|
447
|
+
|
|
327
448
|
/**
|
|
328
449
|
* Returns the group headers of the user notifications
|
|
329
450
|
*
|
|
330
|
-
* @returns {Promise} Promise for all group headers
|
|
451
|
+
* @returns {Promise<sap.ushell.services.NotificationsV2.NotificationItem[]>} Promise for all group headers
|
|
452
|
+
* The notifications items have value true for attribute group header
|
|
331
453
|
*
|
|
332
454
|
* @public
|
|
333
455
|
*/
|
|
@@ -455,8 +577,7 @@ sap.ui.define([
|
|
|
455
577
|
*
|
|
456
578
|
* @param {string} sNotificationGroupId The ID of the notification header/group whose action is being executed
|
|
457
579
|
* @param {string} sActionId The ID of the action that is being executed
|
|
458
|
-
* @returns {Promise} Promise object that on success resolves to undefined or it is rejected with failed notifications
|
|
459
|
-
*
|
|
580
|
+
* @returns {Promise<sap.ushell.services.NotificationsV2.BulkAction[]>} Promise object that on success resolves to undefined or it is rejected with failed notifications
|
|
460
581
|
* @public
|
|
461
582
|
*/
|
|
462
583
|
this.executeBulkAction = function (sNotificationGroupId, sActionId) {
|
|
@@ -612,7 +733,7 @@ sap.ui.define([
|
|
|
612
733
|
* After launching the action, the function gets updated notification data in order to push the updated data to the consumers.
|
|
613
734
|
*
|
|
614
735
|
* @param {string} sNotificationId The ID of the notification whose action is being executed
|
|
615
|
-
* @returns {Promise
|
|
736
|
+
* @returns {Promise} Promise object that on success resolves to undefined or it is rejected with a message object
|
|
616
737
|
*
|
|
617
738
|
* @public
|
|
618
739
|
*/
|
|
@@ -648,7 +769,7 @@ sap.ui.define([
|
|
|
648
769
|
* Launches dismiss notification call.<br>
|
|
649
770
|
*
|
|
650
771
|
* @param {string} sNotificationId The ID of the notification whose action is being executed
|
|
651
|
-
* @returns {Promise
|
|
772
|
+
* @returns {Promise} Promise object that on success resolves to undefined or it is rejected with a message object
|
|
652
773
|
*
|
|
653
774
|
* @public
|
|
654
775
|
*/
|
|
@@ -987,6 +1108,7 @@ sap.ui.define([
|
|
|
987
1108
|
*
|
|
988
1109
|
* @private
|
|
989
1110
|
*/
|
|
1111
|
+
// eslint-disable-next-line complexity
|
|
990
1112
|
this._getRequestURI = function (oRequiredURI, oArgs) {
|
|
991
1113
|
const sEncodedConsumedIntents = encodeURI(this._getConsumedIntents(oRequiredURI));
|
|
992
1114
|
let sReturnedURI;
|
|
@@ -1560,6 +1682,7 @@ sap.ui.define([
|
|
|
1560
1682
|
* Helper function for Packaged App mode
|
|
1561
1683
|
*
|
|
1562
1684
|
* @private
|
|
1685
|
+
* @returns {boolean} Returns true if the app is running in packaged mode
|
|
1563
1686
|
*/
|
|
1564
1687
|
this._isPackagedMode = function () {
|
|
1565
1688
|
return (window.fiori_client_appConfig && window.fiori_client_appConfig.prepackaged === true);
|
|
@@ -1674,7 +1797,9 @@ sap.ui.define([
|
|
|
1674
1797
|
|
|
1675
1798
|
/**
|
|
1676
1799
|
* Creates and returns the intents filter string of an OData request
|
|
1800
|
+
* @param {string} oRequestURI URI of the OData request
|
|
1677
1801
|
* For example: &NavigationIntent%20eq%20%27Action-toappstatesample%27%20or%20NavigationIntent%20eq%20%27Action-toappnavsample%27
|
|
1802
|
+
* @returns {string} returns the intents filter string
|
|
1678
1803
|
*
|
|
1679
1804
|
* @private
|
|
1680
1805
|
*/
|
|
@@ -1737,6 +1862,11 @@ sap.ui.define([
|
|
|
1737
1862
|
*
|
|
1738
1863
|
* This function doesn't return anything, instead it calls the provided resolve or reject callbacks
|
|
1739
1864
|
*
|
|
1865
|
+
* @param {function} resolve The resolve callback of the first function call
|
|
1866
|
+
* @param {function} reject The reject callback of the first function call
|
|
1867
|
+
* @param {function} fnFailedFunction The function that failed (e.g., markRead)
|
|
1868
|
+
* @param {Array} aArgsArray The arguments array of the function that failed
|
|
1869
|
+
*
|
|
1740
1870
|
* @private
|
|
1741
1871
|
*/
|
|
1742
1872
|
this._invalidCsrfTokenRecovery = function (resolve, reject, fnFailedFunction, aArgsArray) {
|
|
@@ -1814,6 +1944,8 @@ sap.ui.define([
|
|
|
1814
1944
|
/**
|
|
1815
1945
|
* Write/save user settings flags to the personalization.
|
|
1816
1946
|
* The saved data consists of the user's show high-priority notifications alerts flag value.
|
|
1947
|
+
* @param {object} oFlags The flags to be saved
|
|
1948
|
+
* @returns {Promise} Promise object that is resolved when the data is saved
|
|
1817
1949
|
*
|
|
1818
1950
|
* @private
|
|
1819
1951
|
*/
|
|
@@ -1970,7 +2102,7 @@ sap.ui.define([
|
|
|
1970
2102
|
|
|
1971
2103
|
/**
|
|
1972
2104
|
* @param {object} response HTTP response from the ODATA request
|
|
1973
|
-
* @returns {object
|
|
2105
|
+
* @returns {object|false} The parsed response or false in case the response was not parsable
|
|
1974
2106
|
* @private
|
|
1975
2107
|
*/
|
|
1976
2108
|
this._parseJSON = function (response) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview This module exposes a model containing the pages hierarchy to its clients.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.123.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
@@ -60,6 +60,56 @@ sap.ui.define([
|
|
|
60
60
|
this._aPagesToBeSaved = [];
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Type for a page in the "pages and spaces" concept.
|
|
65
|
+
* @typedef {object} sap.ushell.services.Pages.PageData
|
|
66
|
+
* @property {string} id The ID of the page.
|
|
67
|
+
* @property {string} title The title of the page.
|
|
68
|
+
* @property {string} description The description of the page.
|
|
69
|
+
* @property {sap.ushell.services.Pages.Section[]} sections The ID of the page.
|
|
70
|
+
*
|
|
71
|
+
* @since 1.120.0
|
|
72
|
+
* @private
|
|
73
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Type for the section of a page.
|
|
78
|
+
* @typedef {object} sap.ushell.services.Pages.Section
|
|
79
|
+
* @property {string} id The ID of the section.
|
|
80
|
+
* @property {string} title The title of the section.
|
|
81
|
+
* @property {boolean} default Whether this is the default section.
|
|
82
|
+
* @property {boolean} locked Whether the section is locked.
|
|
83
|
+
* @property {boolean} preset Whether the section is preset.
|
|
84
|
+
* @property {boolean} visible Whether the section is visible.
|
|
85
|
+
* @property {sap.ushell.services.Pages.Visualization[]} visualizations The visualizations in the section.
|
|
86
|
+
*
|
|
87
|
+
* @since 1.120.0
|
|
88
|
+
* @private
|
|
89
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Type for a visualization. Note: not all possible properties are maintained here.
|
|
94
|
+
* @typedef {object} sap.ushell.services.Pages.Visualization
|
|
95
|
+
* @property {string} [title] The title
|
|
96
|
+
* @property {object} [target] The target in object format
|
|
97
|
+
* @property {string} [subtitle] The subtitle
|
|
98
|
+
* @property {string} [icon] The icon
|
|
99
|
+
* @property {string} [info] The information text
|
|
100
|
+
* @property {boolean} [isBookmark] Whether the visualization is bookmarked.
|
|
101
|
+
* @property {string} [numberUnit] The numberUnit
|
|
102
|
+
* @property {string} [indicatorDataSource] The indicator data source
|
|
103
|
+
* @property {string} [displayFormatHint] The format in which the visualization is displayed
|
|
104
|
+
* @property {string} [serviceUrl] The service URL from the indicator data source, if it exists.
|
|
105
|
+
* @property {string} [serviceRefreshInterval] The service refresh interval from the indicator data source, if it exists.
|
|
106
|
+
* @property {string} [vizType] The visualization type.
|
|
107
|
+
* @property {object} [vizConfig] The visualization configuration.
|
|
108
|
+
* @since 1.120.0
|
|
109
|
+
* @private
|
|
110
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
111
|
+
*/
|
|
112
|
+
|
|
63
113
|
/**
|
|
64
114
|
* Generates a new id which is unique within a page for sections as well as for visualizations.
|
|
65
115
|
*
|
|
@@ -296,7 +346,7 @@ sap.ui.define([
|
|
|
296
346
|
* @param {int} iTargetSectionIndex The index of the section to which the visualization should be moved.
|
|
297
347
|
* @param {int} iTargetVisualizationIndex The new index of the moved visualization. If -1 is passed, the visualization is moved to the last position.
|
|
298
348
|
*
|
|
299
|
-
* @returns {Promise<
|
|
349
|
+
* @returns {Promise<{visualizationIndex: int}>} Promise which resolves with an object containing the visualizationIndex after the personalization was saved.
|
|
300
350
|
* @since 1.75.0
|
|
301
351
|
*
|
|
302
352
|
* @private
|
|
@@ -488,7 +538,7 @@ sap.ui.define([
|
|
|
488
538
|
* @param {object} oVizTypes The map of vizTypes
|
|
489
539
|
* @param {object} oSystemContext The system context
|
|
490
540
|
*
|
|
491
|
-
* @returns {Promise<
|
|
541
|
+
* @returns {Promise<sap.ushell.services.Pages.Visualization>} Resolves with the visualization data for the given visualization id.
|
|
492
542
|
*
|
|
493
543
|
* @since 1.75.0
|
|
494
544
|
*
|
|
@@ -616,7 +666,7 @@ sap.ui.define([
|
|
|
616
666
|
*
|
|
617
667
|
* @param {string} sPageId The id of the page the visualization should be added to.
|
|
618
668
|
* @param {string|null} [sSectionId] The id of the section the visualization should be added to. If null is given, the default section is used.
|
|
619
|
-
* @param {
|
|
669
|
+
* @param {sap.ushell.services.Pages.Visualization} oVizData An object containing the vizData from the model.
|
|
620
670
|
* @returns {Promise<undefined>} A promise resolving when the copy action was completed.
|
|
621
671
|
*
|
|
622
672
|
* @private
|
|
@@ -1166,7 +1216,7 @@ sap.ui.define([
|
|
|
1166
1216
|
* @param {object} vizTypes All the vizTypes of the CDM site
|
|
1167
1217
|
* @param {string} [sContentProviderId] The contentProviderId or undefined outside the cFLP
|
|
1168
1218
|
*
|
|
1169
|
-
* @returns {Promise<
|
|
1219
|
+
* @returns {Promise<sap.ushell.services.Pages.PageData>} A promise that resolves to an object which represents the page inside the Pages Service JSON Model
|
|
1170
1220
|
*
|
|
1171
1221
|
* @since 1.75.0
|
|
1172
1222
|
* @private
|
|
@@ -1256,7 +1306,7 @@ sap.ui.define([
|
|
|
1256
1306
|
|
|
1257
1307
|
/**
|
|
1258
1308
|
* Checks whether a visualization can be resolved in the current context
|
|
1259
|
-
* @param {
|
|
1309
|
+
* @param {sap.ushell.services.Pages.Visualization} oVizData The vizData object which should be checked
|
|
1260
1310
|
* @param {object} oCSTRService The resolved ClientSideTargetResolution service
|
|
1261
1311
|
* @returns {Promise<boolean>} A Promise resolving a boolean indicating whether this visualization should be filtered out or not
|
|
1262
1312
|
*
|
|
@@ -1722,15 +1772,7 @@ sap.ui.define([
|
|
|
1722
1772
|
* @param {int} iPageIndex The index of the page containing the updated visualization.
|
|
1723
1773
|
* @param {int} iSourceSectionIndex The index of the section from where the visualization is updated.
|
|
1724
1774
|
* @param {int} iSourceVisualizationIndex The index of the updated visualization.
|
|
1725
|
-
* @param {
|
|
1726
|
-
* @param {string} [oVisualizationData.title] The title
|
|
1727
|
-
* @param {object} [oVisualizationData.target] The target in object format
|
|
1728
|
-
* @param {string} [oVisualizationData.subtitle] The subtitle
|
|
1729
|
-
* @param {string} [oVisualizationData.icon] The icon
|
|
1730
|
-
* @param {string} [oVisualizationData.info] The information text
|
|
1731
|
-
* @param {string} [oVisualizationData.numberUnit] The numberUnit
|
|
1732
|
-
* @param {string} [oVisualizationData.indicatorDataSource] The indicator data source
|
|
1733
|
-
* @param {string} [oVisualizationData.displayFormatHint] The format in which the visualization is displayed
|
|
1775
|
+
* @param {sap.ushell.services.Pages.Visualization} oVisualizationData The updated visualization properties
|
|
1734
1776
|
*
|
|
1735
1777
|
* @returns {Promise<VisualizationIdentifier>} The promise resolves when the visualization has been updated successfully.
|
|
1736
1778
|
*
|
|
@@ -1822,7 +1864,7 @@ sap.ui.define([
|
|
|
1822
1864
|
* @param {string} sPageId The page ID
|
|
1823
1865
|
* @param {string} sSectionId The section ID
|
|
1824
1866
|
* @param {string} sVizRefId The the vizReference ID
|
|
1825
|
-
* @param {
|
|
1867
|
+
* @param {sap.ushell.services.Pages.Visualization} oUpdatedVisualization The updated visualization properties
|
|
1826
1868
|
*
|
|
1827
1869
|
* @returns {Promise<undefined>} The promise resolves when the personalization was saved successfully
|
|
1828
1870
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's personalization service, which provides generic read and write access to the currently logged on user's
|
|
5
5
|
* personalization settings for the app currently executed in the shell.
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.123.0
|
|
8
8
|
* @deprecated since 1.120 Please use {@link sap.ushell.services.PersonalizationV2} instead
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define([
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
* Synchronous read and write operations before the load is done have undefined
|
|
94
94
|
* effects.
|
|
95
95
|
*
|
|
96
|
-
* @returns {Promise
|
|
96
|
+
* @returns {Promise} Resolves with undefined on success or rejects on failure
|
|
97
97
|
*
|
|
98
98
|
* @since 1.120.0
|
|
99
99
|
* @public
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* screen than the variants of type 1.
|
|
26
26
|
* In this example you would have 2 variant sets, one for each variant type.
|
|
27
27
|
*
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {sap.ushell.services.PersonalizationV2.ContextContainer} oContextContainer Context
|
|
29
29
|
*
|
|
30
30
|
* @since 1.120.0
|
|
31
31
|
* @public
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's personalization service, which provides generic read and write access to the currently logged on user's
|
|
5
5
|
* personalization settings for the app currently executed in the shell.
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.123.0
|
|
8
8
|
*/
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/base/Log",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* it is pertinent that the API user employs this service's version of <code>toExternal()</code> for cross application
|
|
13
13
|
* navigation (instead) of using the one provided by CrossApplicationNavigation service.</p>
|
|
14
14
|
*
|
|
15
|
-
* @version 1.
|
|
15
|
+
* @version 1.123.0
|
|
16
16
|
*/
|
|
17
17
|
sap.ui.define([
|
|
18
18
|
"sap/ui/thirdparty/jquery",
|