@sapui5/sap.ushell 1.127.1 → 1.128.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 +3 -3
- package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/guiResolution.js +4 -4
- package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/ui5Resolution.js +1 -1
- package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/urlResolution.js +2 -2
- package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/urlTemplateResolution.js +11 -7
- package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/utils.js +1 -1
- package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/wcfResolution.js +2 -2
- package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/wdaResolution.js +2 -2
- package/src/main/js/sap/ushell/ApplicationType.js +8 -8
- package/src/main/js/sap/ushell/Config.js +1 -1
- package/src/main/js/sap/ushell/Container.js +14 -6
- 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 → URLTemplateProcessor}/DefinitionParameterSetBuilder.js +4 -4
- package/src/main/js/sap/ushell/{_URLTemplateProcessor → URLTemplateProcessor}/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/{_URLTemplateProcessor → URLTemplateProcessor}/Functions.js +2 -2
- package/src/main/js/sap/ushell/{_URLTemplateProcessor → URLTemplateProcessor}/Resolvers.js +3 -3
- package/src/main/js/sap/ushell/{_URLTemplateProcessor → URLTemplateProcessor}/TemplateParameterParser.js +2 -2
- package/src/main/js/sap/ushell/{_URLTemplateProcessor → URLTemplateProcessor}/utils.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +6 -6
- 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/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 +60 -61
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +2 -2
- 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 +4 -8
- 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 +2 -2
- 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/Inbox.js +222 -0
- package/src/main/js/sap/ushell/api/workpage/Runtime.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +32 -27
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +15 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer.js +7 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +19 -12
- 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 +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 → SchedulingAgent}/EventProcessor.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/{_SchedulingAgent → SchedulingAgent}/FLPScheduler.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/{_SchedulingAgent → SchedulingAgent}/logger.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/{_SchedulingAgent → SchedulingAgent}/state.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent.js +5 -5
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandbox.js +433 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxBoot.json +4 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxBootTask.js +16 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +35 -430
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +62 -10
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.css +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +4 -4
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +32 -3
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +193 -0
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +71 -18
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +62 -18
- 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 +9 -1
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +3 -1
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +9 -9
- package/src/main/js/sap/ushell/components/contentFinder/view/{AppSearchCategoryTree.view.xml → AppSearchCategoryTree.fragment.xml} +12 -12
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +66 -4
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +8 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifestAppSearch.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/resources/resources.properties +9 -0
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTile.js +4 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +4 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerItem.js +4 -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 -3
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +2 -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/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/AppearanceEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +26 -38
- 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/applauncher/Component.js +5 -6
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.view.js +7 -7
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.view.js +4 -7
- package/src/main/js/sap/ushell/components/tiles/utils.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 +3 -4
- 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/iconfonts.js +776 -363
- 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/BaseRTAPlugin.js +28 -39
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/rta/Component.js +45 -60
- package/src/main/js/sap/ushell/renderer/History.js +1 -11
- package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +0 -8
- package/src/main/js/sap/ushell/renderer/Renderer.js +9 -6
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +19 -2
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +4 -2
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +0 -8
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +4 -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/AppType.js +5 -0
- 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 → ClientSideTargetResolution}/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/InboundProvider.js +3 -3
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/Search.js +4 -4
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/XAppStateProcessing.js +2 -2
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +12 -12
- package/src/main/js/sap/ushell/services/{_CommonDataModel → CommonDataModel}/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/{_CommonDataModel → CommonDataModel}/vizTypeDefaults/VizTypeDefaults.js +2 -2
- package/src/main/js/sap/ushell/services/CommonDataModel.js +4 -4
- 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/Container.js +4 -0
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +2 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +4 -4
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -3
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +1 -0
- package/src/main/js/sap/ushell/services/Extension/Item.js +22 -3
- package/src/main/js/sap/ushell/services/Extension.js +9 -4
- 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 +23 -4
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +5 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +5 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +11 -5
- 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 → MessageBroker}/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +2 -2
- package/src/main/js/sap/ushell/services/MessageInternal.js +2 -6
- 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 +4 -143
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/NotificationsV2.js +3 -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 → PluginManager}/Extensions.js +5 -5
- package/src/main/js/sap/ushell/services/{_PluginManager → PluginManager}/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/{_PluginManager → PluginManager}/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +2 -2
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +2 -3
- 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/ShellNavigationHashChanger.js +7 -101
- package/src/main/js/sap/ushell/services/SmartNavigation.js +3 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +2 -6
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLParsing.js +4 -3
- 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 → Ui5ComponentLoader}/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +2 -2
- package/src/main/js/sap/ushell/services/UsageAnalytics.js +1 -0
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +55 -99
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +82 -119
- 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/_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/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +1 -0
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +1 -0
- package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +5 -0
- package/src/main/js/sap/ushell/state/ControlManager.js +38 -3
- package/src/main/js/sap/ushell/state/StateManager.js +43 -1
- package/src/main/js/sap/ushell/state/StateRules.js +0 -20
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/IconFonts.less +23 -15
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.json +333 -331
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/sap-fiori-inapp-icons.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/sap-fiori-inapp-icons.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/sap_belize/library.source.less +0 -13
- package/src/main/js/sap/ushell/themes/sap_belize_base/IconFonts.less +23 -15
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/library.source.less +0 -13
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/library.source.less +0 -13
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/library.source.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/IconFonts.less +23 -15
- package/src/main/js/sap/ushell/themes/sap_fiori_3/library.source.less +0 -12
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/library.source.less +0 -12
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/library.source.less +1 -13
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/library.source.less +1 -13
- package/src/main/js/sap/ushell/themes/sap_hcb/base_IconFonts.less +23 -15
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +0 -12
- package/src/main/js/sap/ushell/themes/sap_horizon/library.source.less +0 -12
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/library.source.less +0 -12
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/library.source.less +1 -13
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/library.source.less +1 -13
- package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +4 -1
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileState.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/ViewPortState.js +4 -0
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingActions.js +7 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/StaticTile.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 +2 -1
- package/src/main/js/sap/ushell/utils/UrlParsing.js +127 -5
- 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/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +47 -8
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +2 -2
- package/src/main/js/sap/ushell/utils.js +4 -2
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +13 -6
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTileTmp.view.js +0 -58
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTileTmp.view.js +0 -104
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/SAP-icons.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/SAP-icons.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/SAP-icons.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/SmileIconFont.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/sap-fiori-inapp-icons.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/sap-fiori-inapp-icons.ttf +0 -0
- /package/src/main/js/sap/ushell/{_ApplicationType → ApplicationType}/systemAlias.js +0 -0
- /package/src/main/js/sap/ushell/{_Config → Config}/utils.js +0 -0
- /package/src/main/js/sap/ushell/bootstrap/{_SchedulingAgent → SchedulingAgent}/FLPLoader.js +0 -0
- /package/src/main/js/sap/ushell/bootstrap/{_SchedulingAgent → SchedulingAgent}/LoadingConfiguration.json +0 -0
- /package/src/main/js/sap/ushell/bootstrap/{_SchedulingAgent → SchedulingAgent}/StepConfiguration.json +0 -0
- /package/src/main/js/sap/ushell/services/{_ClientSideTargetResolution → ClientSideTargetResolution}/ParameterMapping.js +0 -0
- /package/src/main/js/sap/ushell/services/{_CommonDataModel → CommonDataModel}/PersonalizationProcessor.js +0 -0
- /package/src/main/js/sap/ushell/services/{_CommonDataModel → CommonDataModel}/vizTypeDefaults/cardManifest.json +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's UI5 component loader service.
|
|
5
5
|
* This is a shell-internal service and no public or application facing API!
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.128.0
|
|
8
8
|
*/
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/base/Log",
|
|
@@ -12,7 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ushell/Config",
|
|
13
13
|
"sap/ushell/utils",
|
|
14
14
|
"sap/ushell/services/Ui5ComponentHandle",
|
|
15
|
-
"sap/ushell/services/
|
|
15
|
+
"sap/ushell/services/Ui5ComponentLoader/utils",
|
|
16
16
|
"sap/ushell/EventHub",
|
|
17
17
|
"sap/ui/thirdparty/jquery",
|
|
18
18
|
"sap/ui/thirdparty/URI"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
+
* @fileoverview The UsageAnalytics service.
|
|
4
5
|
* @deprecated since 1.120.0. The corresponding cloud service "SAP Web Analytics" has been retired,
|
|
5
6
|
* therefore this client-side service API cannot be used any longer.
|
|
6
7
|
*/
|
|
@@ -14,20 +14,18 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This is *not* an application facing service, but for Shell Internal usage.
|
|
16
16
|
*
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.128.0
|
|
18
18
|
*/
|
|
19
19
|
sap.ui.define([
|
|
20
20
|
"sap/base/Log",
|
|
21
21
|
"sap/base/util/deepExtend",
|
|
22
22
|
"sap/base/util/ObjectPath",
|
|
23
|
-
"sap/ui/thirdparty/jquery",
|
|
24
23
|
"sap/ushell/Container",
|
|
25
24
|
"sap/ushell/utils"
|
|
26
25
|
], function (
|
|
27
26
|
Log,
|
|
28
27
|
deepExtend,
|
|
29
28
|
ObjectPath,
|
|
30
|
-
jQuery,
|
|
31
29
|
Container,
|
|
32
30
|
ushellUtils
|
|
33
31
|
) {
|
|
@@ -84,21 +82,17 @@ sap.ui.define([
|
|
|
84
82
|
|
|
85
83
|
/**
|
|
86
84
|
* Returns a systemContext and defaults to the default systemContext
|
|
87
|
-
* @param {object} [oSystemContext] The systemContext or undefined
|
|
88
85
|
* @returns {Promise<object>} A promise resolving to a systemContext
|
|
89
86
|
*
|
|
90
87
|
* @since 1.81.0
|
|
91
88
|
* @private
|
|
92
89
|
*/
|
|
93
|
-
UserDefaultParameterPersistence.prototype.
|
|
94
|
-
|
|
95
|
-
Log.warning("UserDefaultParameterPersistence: The systemContext was not provided, using defaultSystemContext as fallback");
|
|
90
|
+
UserDefaultParameterPersistence.prototype._getSystemContextFallback = async function () {
|
|
91
|
+
Log.warning("UserDefaultParameterPersistence: The systemContext was not provided, using defaultSystemContext as fallback");
|
|
96
92
|
|
|
97
|
-
|
|
93
|
+
const ClientSideTargetResolution = await Container.getServiceAsync("ClientSideTargetResolution");
|
|
98
94
|
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
return Promise.resolve(oSystemContext);
|
|
95
|
+
return ClientSideTargetResolution.getSystemContext();
|
|
102
96
|
};
|
|
103
97
|
|
|
104
98
|
/**
|
|
@@ -107,41 +101,31 @@ sap.ui.define([
|
|
|
107
101
|
*
|
|
108
102
|
* @param {string} sParameterName parameter name to be loaded
|
|
109
103
|
* @param {object} [oSystemContext] the used system context
|
|
110
|
-
* @returns {
|
|
104
|
+
* @returns {Promise<object>} Resolves a rich parameter object containing a value,
|
|
111
105
|
* e.g. <code>{ value : "value" }</code>. Its fail handler receives a message string as first argument.
|
|
112
106
|
*
|
|
113
107
|
* @since 1.32.0
|
|
114
108
|
* @private
|
|
115
109
|
*/
|
|
116
|
-
UserDefaultParameterPersistence.prototype.loadParameterValue = function (sParameterName, oSystemContext) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
.then(async (oSystemContext) => {
|
|
121
|
-
const sValue = ObjectPath.get([oSystemContext.id, sParameterName], this._oData);
|
|
110
|
+
UserDefaultParameterPersistence.prototype.loadParameterValue = async function (sParameterName, oSystemContext) {
|
|
111
|
+
if (!oSystemContext) {
|
|
112
|
+
oSystemContext = await this._getSystemContextFallback();
|
|
113
|
+
}
|
|
122
114
|
|
|
123
|
-
|
|
124
|
-
return sValue;
|
|
125
|
-
}
|
|
115
|
+
const sValue = ObjectPath.get([oSystemContext.id, sParameterName], this._oData);
|
|
126
116
|
|
|
127
|
-
|
|
128
|
-
|
|
117
|
+
if (sValue !== undefined) {
|
|
118
|
+
return sValue;
|
|
119
|
+
}
|
|
129
120
|
|
|
130
|
-
|
|
121
|
+
const oValue = await ushellUtils.promisify(this._oAdapter.loadParameterValue(sParameterName, oSystemContext));
|
|
122
|
+
const oCleansedValue = this._cleanseValue(oValue);
|
|
131
123
|
|
|
132
|
-
|
|
124
|
+
ObjectPath.set([oSystemContext.id, sParameterName], oCleansedValue, this._oData);
|
|
133
125
|
|
|
134
|
-
|
|
135
|
-
});
|
|
136
|
-
})
|
|
137
|
-
.then((oValue) => {
|
|
138
|
-
oDeferred.resolve(oValue);
|
|
139
|
-
})
|
|
140
|
-
.catch((sError) => {
|
|
141
|
-
oDeferred.reject(sError);
|
|
142
|
-
});
|
|
126
|
+
Log.debug(`[UserDefaults] Fetched "${ sParameterName }" for SystemContext=${ oSystemContext.id } from Persistence`, JSON.stringify(oCleansedValue, null, 2));
|
|
143
127
|
|
|
144
|
-
return
|
|
128
|
+
return oCleansedValue;
|
|
145
129
|
};
|
|
146
130
|
|
|
147
131
|
/**
|
|
@@ -151,42 +135,32 @@ sap.ui.define([
|
|
|
151
135
|
* @param {string} sParameterName Parameter name
|
|
152
136
|
* @param {object} oValueObject Parameter value object, contains at least <code>{ value :... }</code>
|
|
153
137
|
* @param {object} [oSystemContext] The used system context
|
|
154
|
-
* @returns {
|
|
138
|
+
* @returns {Promise} Resolves once the parameter was saved or rejects with an error message.
|
|
155
139
|
*
|
|
156
140
|
* @since 1.32.0
|
|
157
141
|
* @public
|
|
158
142
|
*/
|
|
159
|
-
UserDefaultParameterPersistence.prototype.saveParameterValue = function (sParameterName, oValueObject, oSystemContext) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
this._getSystemContextPromise(oSystemContext)
|
|
164
|
-
.then((oSystemContext) => {
|
|
165
|
-
if (!oValueObject) {
|
|
166
|
-
return ushellUtils.promisify(this.deleteParameter(sParameterName, oSystemContext));
|
|
167
|
-
}
|
|
143
|
+
UserDefaultParameterPersistence.prototype.saveParameterValue = async function (sParameterName, oValueObject, oSystemContext) {
|
|
144
|
+
if (!oSystemContext) {
|
|
145
|
+
oSystemContext = await this._getSystemContextFallback();
|
|
146
|
+
}
|
|
168
147
|
|
|
169
|
-
|
|
148
|
+
if (!oValueObject) {
|
|
149
|
+
return ushellUtils.promisify(this.deleteParameter(sParameterName, oSystemContext));
|
|
150
|
+
}
|
|
170
151
|
|
|
171
|
-
|
|
172
|
-
Log.debug(`[UserDefaults] Skipped Save "${ sParameterName }" for SystemContext=${ oSystemContext.id}`, "noStore=true");
|
|
152
|
+
const oCleansedValueObject = this._cleanseValue(oValueObject);
|
|
173
153
|
|
|
174
|
-
|
|
175
|
-
|
|
154
|
+
if (oValueObject && oValueObject.noStore === true) {
|
|
155
|
+
Log.debug(`[UserDefaults] Skipped Save "${ sParameterName }" for SystemContext=${ oSystemContext.id}`, "noStore=true");
|
|
176
156
|
|
|
177
|
-
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
178
159
|
|
|
179
|
-
|
|
180
|
-
return ushellUtils.promisify(this._oAdapter.saveParameterValue(sParameterName, oCleansedValueObject, oSystemContext));
|
|
181
|
-
})
|
|
182
|
-
.then((oValue) => {
|
|
183
|
-
oDeferred.resolve(oValue);
|
|
184
|
-
})
|
|
185
|
-
.catch((sError) => {
|
|
186
|
-
oDeferred.reject(sError);
|
|
187
|
-
});
|
|
160
|
+
Log.debug(`[UserDefaults] Saving "${ sParameterName }" for SystemContext=${ oSystemContext.id } to Persistence`, JSON.stringify(oCleansedValueObject, null, 2));
|
|
188
161
|
|
|
189
|
-
|
|
162
|
+
ObjectPath.set([oSystemContext.id, sParameterName], oCleansedValueObject, this._oData);
|
|
163
|
+
return ushellUtils.promisify(this._oAdapter.saveParameterValue(sParameterName, oCleansedValueObject, oSystemContext));
|
|
190
164
|
};
|
|
191
165
|
|
|
192
166
|
/**
|
|
@@ -195,58 +169,40 @@ sap.ui.define([
|
|
|
195
169
|
*
|
|
196
170
|
* @param {string} sParameterName Parameter name to be deleted
|
|
197
171
|
* @param {object} [oSystemContext] The system context to be used
|
|
198
|
-
* @returns {
|
|
172
|
+
* @returns {Promise} Resolves once the parameter was deleted or rejects with an error message.
|
|
199
173
|
*
|
|
200
174
|
* @since 1.32.0
|
|
201
175
|
* @public
|
|
202
176
|
*/
|
|
203
|
-
UserDefaultParameterPersistence.prototype.deleteParameter = function (sParameterName, oSystemContext) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
})
|
|
215
|
-
.then((oValue) => {
|
|
216
|
-
oDeferred.resolve(oValue);
|
|
217
|
-
})
|
|
218
|
-
.catch((sError) => {
|
|
219
|
-
oDeferred.reject(sError);
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
return oDeferred.promise();
|
|
177
|
+
UserDefaultParameterPersistence.prototype.deleteParameter = async function (sParameterName, oSystemContext) {
|
|
178
|
+
if (!oSystemContext) {
|
|
179
|
+
oSystemContext = await this._getSystemContextFallback();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (this._oData[oSystemContext.id]) {
|
|
183
|
+
Log.debug(`[UserDefaults] Deleting "${ sParameterName }" for SystemContext=${ oSystemContext.id } from Persistence`);
|
|
184
|
+
|
|
185
|
+
delete this._oData[oSystemContext.id][sParameterName];
|
|
186
|
+
}
|
|
187
|
+
return ushellUtils.promisify(this._oAdapter.deleteParameter(sParameterName, oSystemContext));
|
|
223
188
|
};
|
|
224
189
|
|
|
225
190
|
/**
|
|
226
191
|
* Method to obtain an array of string containing all Stored parameter names
|
|
227
192
|
*
|
|
228
193
|
* @param {object} oSystemContext the system context to be used
|
|
229
|
-
* @returns {
|
|
194
|
+
* @returns {Promise<string[]>} Resolves an array of sorted strings.
|
|
230
195
|
*
|
|
231
196
|
* @since 1.32.0
|
|
232
197
|
* @private
|
|
233
198
|
*/
|
|
234
|
-
UserDefaultParameterPersistence.prototype.getStoredParameterNames = function (oSystemContext) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
.then((aRes) => {
|
|
242
|
-
aRes.sort();
|
|
243
|
-
oDeferred.resolve(aRes);
|
|
244
|
-
})
|
|
245
|
-
.catch((sError) => {
|
|
246
|
-
oDeferred.reject(sError);
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
return oDeferred.promise();
|
|
199
|
+
UserDefaultParameterPersistence.prototype.getStoredParameterNames = async function (oSystemContext) {
|
|
200
|
+
if (!oSystemContext) {
|
|
201
|
+
oSystemContext = await this._getSystemContextFallback();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const aResult = await ushellUtils.promisify(this._oAdapter.getStoredParameterNames(oSystemContext));
|
|
205
|
+
return aResult.sort();
|
|
250
206
|
};
|
|
251
207
|
|
|
252
208
|
UserDefaultParameterPersistence.hasNoAdapter = false;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* This service should be accessed by the application
|
|
8
8
|
* via the CrossApplicationNavigation service.
|
|
9
9
|
*
|
|
10
|
-
* @version 1.
|
|
10
|
+
* @version 1.128.0
|
|
11
11
|
*/
|
|
12
12
|
sap.ui.define([
|
|
13
13
|
"sap/base/Log",
|
|
@@ -16,7 +16,6 @@ sap.ui.define([
|
|
|
16
16
|
"sap/base/util/deepExtend",
|
|
17
17
|
"sap/base/util/isEmptyObject",
|
|
18
18
|
"sap/ui/base/EventProvider",
|
|
19
|
-
"sap/ui/thirdparty/jquery",
|
|
20
19
|
"sap/ushell/utils",
|
|
21
20
|
"sap/ushell/Container"
|
|
22
21
|
], function (
|
|
@@ -26,7 +25,6 @@ sap.ui.define([
|
|
|
26
25
|
deepExtend,
|
|
27
26
|
isEmptyObject,
|
|
28
27
|
EventProvider,
|
|
29
|
-
jQuery,
|
|
30
28
|
ushellUtils,
|
|
31
29
|
Container
|
|
32
30
|
) {
|
|
@@ -181,16 +179,9 @@ sap.ui.define([
|
|
|
181
179
|
this._iterateOverPluginsToGetDefaultValue = async function (sParameterName, oStartValue, oSystemContext) {
|
|
182
180
|
// Main promise chain construction: a plugin will only be called once the previous one's promise has resolved
|
|
183
181
|
// so that we have access to the value returned by that promise.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
try {
|
|
187
|
-
await ushellUtils.promisify(PluginManager.loadPlugins("UserDefaults"));
|
|
188
|
-
} catch {
|
|
189
|
-
Log.error(`Cannot get value for ${ sParameterName }. One or more plugins could not be loaded.`);
|
|
190
|
-
return Promise.reject("Initialization of plugins failed");
|
|
191
|
-
}
|
|
182
|
+
await this._loadPlugins();
|
|
192
183
|
|
|
193
|
-
return this._aPlugins.reduce(async (oPromise, oPlugin) =>{
|
|
184
|
+
return this._aPlugins.reduce(async (oPromise, oPlugin) => {
|
|
194
185
|
const oPreviousValue = await oPromise;
|
|
195
186
|
return this._getUserDefaultValueFromPlugin(oPlugin, sParameterName, oSystemContext, oPreviousValue);
|
|
196
187
|
}, Promise.resolve(oStartValue));
|
|
@@ -261,8 +252,7 @@ sap.ui.define([
|
|
|
261
252
|
|
|
262
253
|
try {
|
|
263
254
|
const UserDefaultParameterPersistence = await Container.getServiceAsync("UserDefaultParameterPersistence");
|
|
264
|
-
|
|
265
|
-
await ushellUtils.promisify(oDeferred);
|
|
255
|
+
await UserDefaultParameterPersistence.saveParameterValue(sParameterName, oValueObject, oSystemContext);
|
|
266
256
|
} catch { /* always resolve */ }
|
|
267
257
|
|
|
268
258
|
const oStoreValue = {
|
|
@@ -293,9 +283,7 @@ sap.ui.define([
|
|
|
293
283
|
*/
|
|
294
284
|
this._getPersistedValue = async function (sParameterName, oSystemContext) {
|
|
295
285
|
const UserDefaultParameterPersistence = await Container.getServiceAsync("UserDefaultParameterPersistence");
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
return ushellUtils.promisify(oDeferred);
|
|
286
|
+
return UserDefaultParameterPersistence.loadParameterValue(sParameterName, oSystemContext);
|
|
299
287
|
};
|
|
300
288
|
|
|
301
289
|
/**
|
|
@@ -375,13 +363,14 @@ sap.ui.define([
|
|
|
375
363
|
return this._oUserDefaultParametersNames[systemContext.id];
|
|
376
364
|
};
|
|
377
365
|
|
|
378
|
-
this.
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
366
|
+
this._isSupportedParameterName = async function (sParamName, oSystemContext) {
|
|
367
|
+
const oResult = await this._getUserDefaultParameterNames(oSystemContext);
|
|
368
|
+
|
|
369
|
+
if (!oResult.aAllParameterNames || oResult.aAllParameterNames.indexOf(sParamName) === -1) {
|
|
370
|
+
Log.error(`The given parameter "${ sParamName }" is not part of the list of parameters for the given system context.`);
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
return true;
|
|
385
374
|
};
|
|
386
375
|
|
|
387
376
|
/**
|
|
@@ -403,7 +392,7 @@ sap.ui.define([
|
|
|
403
392
|
if (!isEmptyObject(oParameterNames) && oParameterNames.aAllParameterNames) {
|
|
404
393
|
const aHasRelevantParameters = await Promise.all(oParameterNames.aAllParameterNames.map(async (sParameterName) => {
|
|
405
394
|
try {
|
|
406
|
-
const oValue = await
|
|
395
|
+
const oValue = await this.getValue(sParameterName, systemContext);
|
|
407
396
|
|
|
408
397
|
if (oValue && !oValue.hasOwnProperty("noEdit")) {
|
|
409
398
|
return true;
|
|
@@ -427,13 +416,13 @@ sap.ui.define([
|
|
|
427
416
|
*
|
|
428
417
|
* @param {string} sParameterName The parameter name
|
|
429
418
|
* @param {object} oSystemContext The system context object
|
|
430
|
-
* @returns {
|
|
419
|
+
* @returns {Promise<object>} Resolves a rich parameter
|
|
431
420
|
* object containing a value, e.g. <code>{ value : "value" }</code>.
|
|
432
421
|
* The promise will typically always be resolved.
|
|
433
422
|
* Note: It will always return an object, the value property may be
|
|
434
423
|
* <code>undefined</code> if no value could be retrieved.
|
|
435
424
|
*/
|
|
436
|
-
this.getValue = function (sParameterName, oSystemContext) {
|
|
425
|
+
this.getValue = async function (sParameterName, oSystemContext) {
|
|
437
426
|
// Strategy is as follows
|
|
438
427
|
// a) get value from persistence,
|
|
439
428
|
// b) if required ask all plugins in order whether they want to alter value
|
|
@@ -441,58 +430,47 @@ sap.ui.define([
|
|
|
441
430
|
// c2) if value was altered, including set to undefined,
|
|
442
431
|
// [not on critical path] update value in remote persistence
|
|
443
432
|
// (potentially deleting value if set to undefined!)
|
|
444
|
-
const oDeferred = new jQuery.Deferred();
|
|
445
|
-
|
|
446
|
-
this._isRelevantParameter(sParameterName, oSystemContext)
|
|
447
|
-
// no relevant parameter -> no value
|
|
448
|
-
// This is handled at the end of the chain, as all "then" will
|
|
449
|
-
// be ignored in case of a rejection in _isRelevantParameter
|
|
450
|
-
.then(() => {
|
|
451
|
-
return this._getPersistedValue(sParameterName, oSystemContext)
|
|
452
|
-
.then((oPersistedValue) => {
|
|
453
|
-
this._oWasParameterPersisted[sParameterName] = true;
|
|
454
|
-
|
|
455
|
-
return oPersistedValue || {};
|
|
456
|
-
})
|
|
457
|
-
// If the server call fails, this ensures that the plugins get called.
|
|
458
|
-
.catch(() => {
|
|
459
|
-
return { value: undefined };
|
|
460
|
-
});
|
|
461
|
-
})
|
|
462
|
-
.then((oPersistedValue) => {
|
|
463
|
-
const oValueClone = deepClone(oPersistedValue);
|
|
464
433
|
|
|
465
|
-
|
|
466
|
-
(!oPersistedValue._shellData && this._valueIsEmpty(oPersistedValue)) // _shellData is added by the shell when the parameter is stored
|
|
467
|
-
|| oPersistedValue.noStore // i.e., don't use the stored value
|
|
468
|
-
|| oPersistedValue.alwaysAskPlugin;
|
|
434
|
+
const bSupportedParameterName = await this._isSupportedParameterName(sParameterName, oSystemContext);
|
|
469
435
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}
|
|
436
|
+
if (!bSupportedParameterName) {
|
|
437
|
+
return { value: undefined };
|
|
438
|
+
}
|
|
474
439
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
this._oWasParameterPersisted[sParameterName] = true;
|
|
480
|
-
|
|
481
|
-
this._storeValue(sParameterName, oNewValue, false, oSystemContext)
|
|
482
|
-
.then(() => {
|
|
483
|
-
oDeferred.resolve(oNewValue);
|
|
484
|
-
});
|
|
485
|
-
} else {
|
|
486
|
-
oDeferred.resolve(oNewValue);
|
|
487
|
-
}
|
|
488
|
-
})
|
|
489
|
-
.catch(oDeferred.reject);
|
|
440
|
+
const oPersistedValue = await this._getPersistedValue(sParameterName, oSystemContext)
|
|
441
|
+
.then((oValue) => {
|
|
442
|
+
this._oWasParameterPersisted[sParameterName] = true;
|
|
443
|
+
return oValue || { };
|
|
490
444
|
})
|
|
491
445
|
.catch(() => {
|
|
492
|
-
|
|
446
|
+
// If the server call fails, this ensures that the plugins get called.
|
|
447
|
+
return { value: undefined };
|
|
493
448
|
});
|
|
494
449
|
|
|
495
|
-
|
|
450
|
+
const oValueClone = deepClone(oPersistedValue);
|
|
451
|
+
|
|
452
|
+
const bAskValueToPlugins =
|
|
453
|
+
(!oValueClone._shellData && this._valueIsEmpty(oValueClone)) // _shellData is added by the shell when the parameter is stored
|
|
454
|
+
|| oValueClone.noStore // i.e., don't use the stored value
|
|
455
|
+
|| oValueClone.alwaysAskPlugin;
|
|
456
|
+
|
|
457
|
+
if (!bAskValueToPlugins) {
|
|
458
|
+
return oValueClone;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
const oNewValue = await this._iterateOverPluginsToGetDefaultValue(sParameterName, oPersistedValue, oSystemContext);
|
|
462
|
+
|
|
463
|
+
if (!this._oWasParameterPersisted[sParameterName] || !this._haveSameMembersValue(oValueClone, oNewValue, aStoreMembers)) {
|
|
464
|
+
// avoid multiple calls result in storing a parameter, as we fire and forget via _storeValue below.
|
|
465
|
+
this._oWasParameterPersisted[sParameterName] = true;
|
|
466
|
+
|
|
467
|
+
await this._storeValue(sParameterName, oNewValue, false, oSystemContext)
|
|
468
|
+
.catch((err) => {
|
|
469
|
+
Log.error(err.message);
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return oNewValue;
|
|
496
474
|
};
|
|
497
475
|
|
|
498
476
|
/**
|
|
@@ -507,7 +485,7 @@ sap.ui.define([
|
|
|
507
485
|
*/
|
|
508
486
|
this._addParameterValuesToParameters = async function (oParameters, aParameterNames, oSystemContext) {
|
|
509
487
|
await Promise.all(aParameterNames.map(async (sParameterName) => {
|
|
510
|
-
const oValueObject = await
|
|
488
|
+
const oValueObject = await this.getValue(sParameterName, oSystemContext);
|
|
511
489
|
|
|
512
490
|
oParameters[sParameterName].valueObject = oValueObject;
|
|
513
491
|
}));
|
|
@@ -614,7 +592,7 @@ sap.ui.define([
|
|
|
614
592
|
*
|
|
615
593
|
* @param {object} oSystemContext The system context object
|
|
616
594
|
*
|
|
617
|
-
* @returns {
|
|
595
|
+
* @returns {Promise<object>} Resolves an object with parameter names as members
|
|
618
596
|
*
|
|
619
597
|
* The order of parameters is suitable order for parameter display.
|
|
620
598
|
*
|
|
@@ -691,40 +669,18 @@ sap.ui.define([
|
|
|
691
669
|
* Note: It will always return an object, the value property may be
|
|
692
670
|
* undefined if no value could be retrieved.
|
|
693
671
|
*/
|
|
694
|
-
this.editorGetParameters = function (oSystemContext) {
|
|
695
|
-
const
|
|
696
|
-
|
|
697
|
-
Promise.all([
|
|
698
|
-
Container.getServiceAsync("PluginManager"),
|
|
699
|
-
this._getUserDefaultParameterNames(oSystemContext)
|
|
700
|
-
])
|
|
701
|
-
.then((aResults) => {
|
|
702
|
-
const PluginManagerService = aResults[0];
|
|
703
|
-
const oParametersAndExtendedParameters = aResults[1];
|
|
704
|
-
|
|
705
|
-
if (oParametersAndExtendedParameters.oMetadataObject.length === 0) {
|
|
706
|
-
// if array is empty, nothing to display in editor
|
|
707
|
-
return {};
|
|
708
|
-
}
|
|
672
|
+
this.editorGetParameters = async function (oSystemContext) {
|
|
673
|
+
const oParametersAndExtendedParameters = await this._getUserDefaultParameterNames(oSystemContext);
|
|
674
|
+
const { aAllParameterNames, aExtendedParameterNames, oMetadataObject } = oParametersAndExtendedParameters;
|
|
709
675
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
})
|
|
715
|
-
.then(() => {
|
|
716
|
-
const { aAllParameterNames, aExtendedParameterNames, oMetadataObject } = oParametersAndExtendedParameters;
|
|
717
|
-
return this._getEditorDataAndValue(aAllParameterNames, aExtendedParameterNames, oMetadataObject, oSystemContext);
|
|
718
|
-
});
|
|
719
|
-
})
|
|
720
|
-
.then((oResult) => {
|
|
721
|
-
oDeferred.resolve(oResult);
|
|
722
|
-
})
|
|
723
|
-
.catch((sErrorMessage) => {
|
|
724
|
-
oDeferred.reject(sErrorMessage);
|
|
725
|
-
});
|
|
676
|
+
if (oMetadataObject.length === 0) {
|
|
677
|
+
// if array is empty, nothing to display in editor
|
|
678
|
+
return {};
|
|
679
|
+
}
|
|
726
680
|
|
|
727
|
-
|
|
681
|
+
await this._loadPlugins();
|
|
682
|
+
|
|
683
|
+
return this._getEditorDataAndValue(aAllParameterNames, aExtendedParameterNames, oMetadataObject, oSystemContext);
|
|
728
684
|
};
|
|
729
685
|
|
|
730
686
|
/**
|
|
@@ -757,24 +713,14 @@ sap.ui.define([
|
|
|
757
713
|
* @param {string} sParameterName Name of the parameter for the value which has to be saved
|
|
758
714
|
* @param {object} oValueObject Value which has to be saved
|
|
759
715
|
* @param {object} oSystemContext The system context object
|
|
760
|
-
* @returns {
|
|
716
|
+
* @returns {Promise} Resolves once the value is stored.
|
|
761
717
|
*
|
|
762
718
|
* @see sap.ushell.Container#getServiceAsync
|
|
763
719
|
* @since 1.32.0
|
|
764
720
|
* @private
|
|
765
721
|
*/
|
|
766
|
-
this.editorSetValue = function (sParameterName, oValueObject, oSystemContext) {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
this._storeValue(sParameterName, oValueObject, true, oSystemContext)
|
|
770
|
-
.then(() => {
|
|
771
|
-
oDeferred.resolve();
|
|
772
|
-
})
|
|
773
|
-
.catch(() => {
|
|
774
|
-
oDeferred.resolve();
|
|
775
|
-
});
|
|
776
|
-
|
|
777
|
-
return oDeferred.promise();
|
|
722
|
+
this.editorSetValue = async function (sParameterName, oValueObject, oSystemContext) {
|
|
723
|
+
await this._storeValue(sParameterName, oValueObject, true, oSystemContext);
|
|
778
724
|
};
|
|
779
725
|
|
|
780
726
|
/**
|
|
@@ -802,6 +748,23 @@ sap.ui.define([
|
|
|
802
748
|
this.detachValueStored = function (fnFunction) {
|
|
803
749
|
oStoreValueEventProvider.detachEvent(sEventNameValueStored, fnFunction);
|
|
804
750
|
};
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Load the plugins for the UserDefaultParameters service.
|
|
754
|
+
*
|
|
755
|
+
* @since 1.128.0
|
|
756
|
+
* @private
|
|
757
|
+
*/
|
|
758
|
+
this._loadPlugins = async function () {
|
|
759
|
+
const PluginManager = await Container.getServiceAsync("PluginManager");
|
|
760
|
+
|
|
761
|
+
try {
|
|
762
|
+
await ushellUtils.promisify(PluginManager.loadPlugins("UserDefaults"));
|
|
763
|
+
} catch {
|
|
764
|
+
Log.error("One or more plugins could not be loaded");
|
|
765
|
+
throw new Error("Initialization of plugins failed");
|
|
766
|
+
}
|
|
767
|
+
};
|
|
805
768
|
}
|
|
806
769
|
|
|
807
770
|
UserDefaultParameters.hasNoAdapter = true;
|