@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
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
border-radius: 50%;
|
|
179
179
|
margin-top: 2rem;
|
|
180
180
|
left: 2.2rem;
|
|
181
|
-
font-family: SAP-
|
|
181
|
+
font-family: SAP-icons;
|
|
182
182
|
font-size: 8px;
|
|
183
183
|
color: var(--sapUiTileBackground);
|
|
184
184
|
font-weight: bold;
|
|
@@ -370,4 +370,4 @@
|
|
|
370
370
|
100% {
|
|
371
371
|
opacity: 1;
|
|
372
372
|
}
|
|
373
|
-
}
|
|
373
|
+
}
|
|
@@ -358,7 +358,7 @@ sap.ui.define(
|
|
|
358
358
|
if (pFetch) {
|
|
359
359
|
pFetch.then(function (oData) {
|
|
360
360
|
this._iCurrentCount = oData.count || 0;
|
|
361
|
-
setTimeout(function() {
|
|
361
|
+
setTimeout(function () {
|
|
362
362
|
this.setNoDataText(this.translate("NoData"), "NoData");
|
|
363
363
|
}.bind(this), 100);
|
|
364
364
|
this.fireFetchEvent("after", bVisible ? "data" : "count", oData);
|
|
@@ -368,8 +368,8 @@ sap.ui.define(
|
|
|
368
368
|
|
|
369
369
|
Category.prototype.getMaxRowItemsAsync = function () {
|
|
370
370
|
if (!this.getDomRef()) {
|
|
371
|
-
return new Promise(function(resolve) {
|
|
372
|
-
setTimeout(function() {
|
|
371
|
+
return new Promise(function (resolve) {
|
|
372
|
+
setTimeout(function () {
|
|
373
373
|
resolve(this._getMaxRowItems());
|
|
374
374
|
}.bind(this), 200);
|
|
375
375
|
}.bind(this));
|
|
@@ -849,7 +849,7 @@ sap.ui.define(
|
|
|
849
849
|
if (this._iResizeTimer) {
|
|
850
850
|
clearTimeout(this._iResizeTimer);
|
|
851
851
|
}
|
|
852
|
-
this._iResizeTimer = setTimeout(function() {
|
|
852
|
+
this._iResizeTimer = setTimeout(function () {
|
|
853
853
|
this.search(this._sSearchTerm, this._iSkip, this._iTop);
|
|
854
854
|
}.bind(this), 300);
|
|
855
855
|
}
|
|
@@ -7,6 +7,8 @@ sap.ui.define(
|
|
|
7
7
|
"sap/m/Text",
|
|
8
8
|
"sap/m/Link",
|
|
9
9
|
"sap/m/FlexBox",
|
|
10
|
+
"sap/m/library",
|
|
11
|
+
"sap/ui/base/Event",
|
|
10
12
|
"sap/ushell/Container"
|
|
11
13
|
],
|
|
12
14
|
function (
|
|
@@ -15,9 +17,14 @@ sap.ui.define(
|
|
|
15
17
|
Text,
|
|
16
18
|
Link,
|
|
17
19
|
FlexBox,
|
|
20
|
+
mobileLibrary,
|
|
21
|
+
Event,
|
|
18
22
|
Container
|
|
19
23
|
) {
|
|
20
24
|
"use strict";
|
|
25
|
+
|
|
26
|
+
const LinkAccessibleRole = mobileLibrary.LinkAccessibleRole;
|
|
27
|
+
|
|
21
28
|
var Application = Category.extend(
|
|
22
29
|
"sap.ushell.components.cepsearchresult.app.util.controls.categories.Application", /** @lends sap.ushell.components.cepsearchresult.app.util.controls.categories.Application.prototype */ {
|
|
23
30
|
renderer: Category.getMetadata().getRenderer()
|
|
@@ -116,7 +123,7 @@ sap.ui.define(
|
|
|
116
123
|
// Ugly hack to force the avatar to rerender as the data binding does not work properly
|
|
117
124
|
oItem.addDelegate({
|
|
118
125
|
onAfterRendering: function () {
|
|
119
|
-
setTimeout(function() {
|
|
126
|
+
setTimeout(function () {
|
|
120
127
|
oAvatar.setSrc(oAvatar.getSrc());
|
|
121
128
|
oAvatar.invalidate();
|
|
122
129
|
}, 5);
|
|
@@ -137,6 +144,12 @@ sap.ui.define(
|
|
|
137
144
|
}.bind(this), iTime);
|
|
138
145
|
};
|
|
139
146
|
|
|
147
|
+
Application.prototype.onsapenter = function (oEvent) {
|
|
148
|
+
// this custom event is needed for keyboard navigation
|
|
149
|
+
const oCustomEvent = new Event("customEventOnEnter", oEvent.srcControl, {});
|
|
150
|
+
this.itemNavigate(oCustomEvent);
|
|
151
|
+
};
|
|
152
|
+
|
|
140
153
|
Application.prototype.itemNavigate = function (oEvent) {
|
|
141
154
|
if (this.bIgnoreNextItemNavigation) {
|
|
142
155
|
this.bIgnoreNextItemNavigation = false;
|
|
@@ -155,16 +168,32 @@ sap.ui.define(
|
|
|
155
168
|
return;
|
|
156
169
|
}
|
|
157
170
|
|
|
158
|
-
|
|
171
|
+
// replaced old anchor click, because it caused redirect to page with config lean
|
|
172
|
+
const sTarget = oItem._oViz.mProperties.targetURL;
|
|
173
|
+
Container.getServiceAsync("Navigation").then(
|
|
174
|
+
(oService) => {
|
|
175
|
+
oService.navigate({
|
|
176
|
+
target: { shellHash: sTarget }
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
);
|
|
159
180
|
};
|
|
160
181
|
|
|
161
182
|
Application.prototype.getItemObjectIdentifier = function () {
|
|
183
|
+
const oLink = new Link({
|
|
184
|
+
text: "{data>title}",
|
|
185
|
+
press: this.itemNavigate.bind(this),
|
|
186
|
+
accessibleRole: LinkAccessibleRole.Button
|
|
187
|
+
}).addStyleClass("appTitleText");
|
|
188
|
+
// removes the href from List item
|
|
189
|
+
oLink.setHref();
|
|
190
|
+
|
|
162
191
|
return new FlexBox({
|
|
163
192
|
direction: "Column",
|
|
164
193
|
items: [
|
|
165
194
|
new FlexBox({
|
|
166
195
|
items: [
|
|
167
|
-
|
|
196
|
+
oLink,
|
|
168
197
|
new Text({ text: "–", visible: "{= !!${data>title} && !!${data>description}}"}).addStyleClass("appTitleSeparator"),
|
|
169
198
|
new Text({ text: "{data>description}" }).addStyleClass("appDescriptionText")
|
|
170
199
|
]
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileOverview This module communicates with the content API graphql service to retrieve catalogs and visualization data for catalogs.
|
|
5
|
+
* @version 1.128.0
|
|
6
|
+
*/
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/base/i18n/Localization",
|
|
9
|
+
"sap/ushell/utils/HttpClient",
|
|
10
|
+
"sap/ushell/Config"
|
|
11
|
+
], function (
|
|
12
|
+
Localization,
|
|
13
|
+
HttpClient,
|
|
14
|
+
Config
|
|
15
|
+
) {
|
|
16
|
+
"use strict";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @alias sap.ushell.components.contentFinder.CatalogService
|
|
20
|
+
* @class
|
|
21
|
+
* @classdesc Service for loading Catalogs.
|
|
22
|
+
*
|
|
23
|
+
* @since 1.121.0
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const Catalog = function () {
|
|
27
|
+
this.httpClient = new HttpClient();
|
|
28
|
+
this._sBaseUrl = Config.last("/core/workPages/contentApiUrl");
|
|
29
|
+
|
|
30
|
+
const oUrlParams = new URLSearchParams(window.location.search);
|
|
31
|
+
this._sSiteId = oUrlParams.get("siteId") || Config.last("/core/site/siteId");
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @returns {Promise<Array<object>>} List of Catalogs
|
|
37
|
+
*/
|
|
38
|
+
Catalog.prototype.getCatalogs = function () {
|
|
39
|
+
/**
|
|
40
|
+
* The backend implements a maximum page size. Since all catalogs shall be requested, we
|
|
41
|
+
* query the first page incl. the total count. With the result length and the total count
|
|
42
|
+
* we can calculate the other pages and request them all in parallel but only after the first
|
|
43
|
+
* page was returned.
|
|
44
|
+
*/
|
|
45
|
+
const pFirstRequest = this._getCatalogs();
|
|
46
|
+
const aRequests = [pFirstRequest];
|
|
47
|
+
let fnResolve, fnReject;
|
|
48
|
+
|
|
49
|
+
const pReturn = new Promise((resolve, reject) => {
|
|
50
|
+
fnResolve = resolve;
|
|
51
|
+
fnReject = reject;
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
pFirstRequest.then((oData) => {
|
|
55
|
+
let iSkip = oData.catalogs.length;
|
|
56
|
+
const iPageSize = iSkip;
|
|
57
|
+
const iLength = oData.totalCount;
|
|
58
|
+
|
|
59
|
+
while (iSkip < iLength) {
|
|
60
|
+
aRequests.push(this._getCatalogs(iSkip, iPageSize));
|
|
61
|
+
iSkip += iPageSize;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Promise.all(aRequests).then((aResponses) => {
|
|
65
|
+
const aCatalogs = aResponses.reduce((aAccumulator, oItem) => {
|
|
66
|
+
return aAccumulator.concat(oItem.catalogs);
|
|
67
|
+
}, []);
|
|
68
|
+
fnResolve({catalogs: aCatalogs, totalCount: aResponses[0].totalCount});
|
|
69
|
+
|
|
70
|
+
});
|
|
71
|
+
}).catch((sError) => {
|
|
72
|
+
fnReject(sError);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
return pReturn;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
Catalog.prototype._getCatalogs = function (iSkip, iTop, mParameters) {
|
|
79
|
+
let sQuery = `
|
|
80
|
+
getCatalogs ($queryInput: QueryCatalogsInput!){
|
|
81
|
+
catalogs(queryInput: $queryInput) {
|
|
82
|
+
totalCount,
|
|
83
|
+
nodes {
|
|
84
|
+
id,
|
|
85
|
+
descriptor { value }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}`;
|
|
89
|
+
// Replace line breaks and spaces
|
|
90
|
+
sQuery = sQuery
|
|
91
|
+
.replace(/\n/g, "")
|
|
92
|
+
.replace(/ /g, "");
|
|
93
|
+
|
|
94
|
+
sQuery = `query ${sQuery}`;
|
|
95
|
+
|
|
96
|
+
const oParameters = {...mParameters};
|
|
97
|
+
oParameters.skip = iSkip || 0;
|
|
98
|
+
if (iTop) {
|
|
99
|
+
oParameters.top = iTop;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const oVariables = {
|
|
103
|
+
queryInput: oParameters
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
return this._doRequest(sQuery, JSON.stringify(oVariables)).then((oCatalogData) => {
|
|
107
|
+
const aCatalogs = [];
|
|
108
|
+
if (oCatalogData.data.catalogs) {
|
|
109
|
+
oCatalogData.data.catalogs.nodes.forEach((item) => {
|
|
110
|
+
if (item.descriptor.value) {
|
|
111
|
+
aCatalogs.push({id: item.id, title: item.descriptor.value.title});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
catalogs: aCatalogs,
|
|
118
|
+
totalCount: oCatalogData.data.catalogs.totalCount || 0
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
Catalog.prototype.loadVisualizations = function (sCatalogId, mParameters) {
|
|
124
|
+
let sQuery = `
|
|
125
|
+
getCatalog {
|
|
126
|
+
catalog(catalogId: "${sCatalogId}") {
|
|
127
|
+
id,
|
|
128
|
+
descriptor { value },
|
|
129
|
+
visualizations(queryInput: {}) {
|
|
130
|
+
totalCount,
|
|
131
|
+
nodes{
|
|
132
|
+
id,
|
|
133
|
+
type,
|
|
134
|
+
descriptor {
|
|
135
|
+
value,
|
|
136
|
+
schemaVersion
|
|
137
|
+
},
|
|
138
|
+
descriptorResources {
|
|
139
|
+
baseUrl,
|
|
140
|
+
descriptorPath
|
|
141
|
+
},
|
|
142
|
+
indicatorDataSource {
|
|
143
|
+
url,
|
|
144
|
+
refreshInterval
|
|
145
|
+
},
|
|
146
|
+
targetAppIntent {
|
|
147
|
+
semanticObject,
|
|
148
|
+
action,
|
|
149
|
+
businessAppId
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}`;
|
|
155
|
+
|
|
156
|
+
// Replace line breaks and spaces
|
|
157
|
+
sQuery = sQuery
|
|
158
|
+
.replace(/\n/g, "")
|
|
159
|
+
.replace(/ /g, "");
|
|
160
|
+
|
|
161
|
+
sQuery = `query ${sQuery}`;
|
|
162
|
+
|
|
163
|
+
const oVariables = {
|
|
164
|
+
filterQuery: mParameters
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
return this._doRequest(sQuery, JSON.stringify(oVariables)).then((oVizData) => {
|
|
168
|
+
return {
|
|
169
|
+
visualizations: oVizData.data.catalog.visualizations || [],
|
|
170
|
+
totalCount: oVizData.data.catalog.visualizations.totalCount || 0
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
Catalog.prototype._doRequest = function (sQuery, sVariables) {
|
|
176
|
+
let sUrl = `${this._sBaseUrl}?query=${sQuery}`;
|
|
177
|
+
if (sVariables) { sUrl += `&variables=${sVariables}`; }
|
|
178
|
+
return this.httpClient.get(sUrl, {
|
|
179
|
+
headers: {
|
|
180
|
+
"Content-Type": "application/json",
|
|
181
|
+
Accept: "application/json",
|
|
182
|
+
"Accept-Language": Localization.getLanguageTag().toString()
|
|
183
|
+
}
|
|
184
|
+
}).then(function (oResponse) {
|
|
185
|
+
if (oResponse.status < 200 || oResponse.status >= 300) {
|
|
186
|
+
return Promise.reject(`HTTP request failed with status: ${oResponse.status} - ${oResponse.statusText}`);
|
|
187
|
+
}
|
|
188
|
+
return JSON.parse(oResponse.responseText || "{}");
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
return Catalog;
|
|
193
|
+
}, /*export=*/ true);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview ContentFinder Component
|
|
4
4
|
*
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.128.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
sap.ui.define([
|
|
@@ -12,8 +12,9 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/core/UIComponent",
|
|
13
13
|
"sap/ushell/components/contentFinder/model/GraphQLModel",
|
|
14
14
|
"sap/ui/model/json/JSONModel",
|
|
15
|
-
"sap/ushell/adapters/cdm/v3/utilsCdm"
|
|
16
|
-
|
|
15
|
+
"sap/ushell/adapters/cdm/v3/utilsCdm",
|
|
16
|
+
"sap/ushell/Config"
|
|
17
|
+
], function (Log, deepExtend, ObjectPath, UIComponent, GraphQLModel, JSONModel, utilsCdm, Config) {
|
|
17
18
|
"use strict";
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -24,14 +25,6 @@ sap.ui.define([
|
|
|
24
25
|
* @property {string[]} visualizationIds The list of visualization IDs to be added.
|
|
25
26
|
*/
|
|
26
27
|
|
|
27
|
-
/**
|
|
28
|
-
* Event to query visualizations with a set of types, searchTerm and pagination.
|
|
29
|
-
*
|
|
30
|
-
* @event sap.ushell.components.contentFinder.Component#visualizationFilterApplied
|
|
31
|
-
* @type {object}
|
|
32
|
-
* @property {{pagination: {skip: int, top: int}}} filter data Filter data object containing pagination and filter information.
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
28
|
/**
|
|
36
29
|
* Event if a widget (type) without target was selected in the widget gallery.
|
|
37
30
|
*
|
|
@@ -61,7 +54,9 @@ sap.ui.define([
|
|
|
61
54
|
visualizations: {
|
|
62
55
|
tiles: []
|
|
63
56
|
}
|
|
64
|
-
}
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
personalizationEnabled: Config.last("/core/shell/enablePersonalization")
|
|
65
60
|
};
|
|
66
61
|
|
|
67
62
|
/**
|
|
@@ -74,11 +69,15 @@ sap.ui.define([
|
|
|
74
69
|
|
|
75
70
|
// The current/active navigation target within the ContentFinderDialog
|
|
76
71
|
activeNavigationTarget: oNavigationTargets.widgetGallery,
|
|
72
|
+
selectedCategoryId: undefined,
|
|
73
|
+
selectedCategoryTitle: undefined,
|
|
77
74
|
|
|
78
75
|
// A content finder in restricted mode shows no widget Gallery and starts directly with the appSearch.
|
|
79
76
|
// Additionally, no "Back" button is rendered, as the end user cannot navigate to the WidgetGallery.
|
|
80
77
|
restrictedMode: false,
|
|
81
78
|
|
|
79
|
+
personalizationEnabled: Config.last("/core/shell/enablePersonalization"),
|
|
80
|
+
|
|
82
81
|
widgetGallery: {
|
|
83
82
|
widgetGroups: []
|
|
84
83
|
},
|
|
@@ -118,7 +117,49 @@ sap.ui.define([
|
|
|
118
117
|
metadata: {
|
|
119
118
|
manifest: "json",
|
|
120
119
|
library: "sap.ushell",
|
|
121
|
-
interfaces: ["sap.ui.core.IAsyncContentCreation"]
|
|
120
|
+
interfaces: ["sap.ui.core.IAsyncContentCreation"],
|
|
121
|
+
events: {
|
|
122
|
+
/**
|
|
123
|
+
* Fires when additional visualizations must be requested:
|
|
124
|
+
* - Search term or filters changed
|
|
125
|
+
* - End of the page is reached (growing)
|
|
126
|
+
* - The selection in the category tree changed
|
|
127
|
+
*
|
|
128
|
+
* In the event handler new data should be provided by the embedding component. The
|
|
129
|
+
* Content Finder is set to busy until <code>setVisualizationData</code> is called.
|
|
130
|
+
*
|
|
131
|
+
* @type {object}
|
|
132
|
+
* @since 1.115.0
|
|
133
|
+
* @private
|
|
134
|
+
*/
|
|
135
|
+
visualizationFilterApplied: {
|
|
136
|
+
allowPreventDefault: true,
|
|
137
|
+
parameters: {
|
|
138
|
+
/**
|
|
139
|
+
* A string array of visualization types that shall be requested. E.g.:
|
|
140
|
+
* - sap.ushell.StaticAppLauncher
|
|
141
|
+
* - sap.ushell.DynamicAppLauncher
|
|
142
|
+
*/
|
|
143
|
+
types: {type: "string[]"},
|
|
144
|
+
/**
|
|
145
|
+
* The search term that was entered by the user for the visualization search
|
|
146
|
+
*/
|
|
147
|
+
searchTerm: {type: "string"},
|
|
148
|
+
/**
|
|
149
|
+
* Current pagination information of the visualizations GridList
|
|
150
|
+
*/
|
|
151
|
+
pagination: {type: {
|
|
152
|
+
skip: "integer",
|
|
153
|
+
top: "integer"
|
|
154
|
+
}},
|
|
155
|
+
filter: {type: "any"},
|
|
156
|
+
/**
|
|
157
|
+
* The currently selected category ID if any
|
|
158
|
+
*/
|
|
159
|
+
categoryId: {type: "string"}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
122
163
|
},
|
|
123
164
|
|
|
124
165
|
/**
|
|
@@ -196,8 +237,19 @@ sap.ui.define([
|
|
|
196
237
|
},
|
|
197
238
|
|
|
198
239
|
/**
|
|
199
|
-
* Sets the
|
|
200
|
-
*
|
|
240
|
+
* Sets the category tree data for the Content Finder model.
|
|
241
|
+
* The category tree does not support pagination. All tree data must be set at once.
|
|
242
|
+
*
|
|
243
|
+
* @typedef {object} category The category tree object.
|
|
244
|
+
* @property {string} id ID of the category. This will be passed as event parameter when a category item is pressed
|
|
245
|
+
* @property {string} title Title that is displayed in the category tree
|
|
246
|
+
* @property {string} description Description that is displayed in the category tree
|
|
247
|
+
* @property {string} contentProviderId ID of the content provider
|
|
248
|
+
* @property {string} contentProviderLabel Label of the content provider
|
|
249
|
+
* @property {boolean} inactive Sets the <code>sap.m.TreeItemBase[type]</code> to Inactive. No events will be passed for this item.
|
|
250
|
+
* @property {category[]} nodes Next hierarchy level of categories
|
|
251
|
+
*
|
|
252
|
+
* @param {category[]} aCategoryTree A tree of category objects
|
|
201
253
|
* @experimental
|
|
202
254
|
* @private
|
|
203
255
|
*/
|
|
@@ -211,10 +263,11 @@ sap.ui.define([
|
|
|
211
263
|
* @since 1.115.0
|
|
212
264
|
* @param {int} iSkip Number of entries already displayed.
|
|
213
265
|
* @param {string} [sSearchTerm] The search term.
|
|
266
|
+
* @param {string} [sCategoryId] The category ID resulting from the category tree selection
|
|
214
267
|
*
|
|
215
268
|
* @private
|
|
216
269
|
*/
|
|
217
|
-
queryVisualizations: function (iSkip, sSearchTerm) {
|
|
270
|
+
queryVisualizations: function (iSkip, sSearchTerm, sCategoryId) {
|
|
218
271
|
var oModel = this.getModel();
|
|
219
272
|
var sActiveNavigationTarget = oModel.getProperty("/activeNavigationTarget");
|
|
220
273
|
var aTypes = oNavigationTargetTypeMapping[sActiveNavigationTarget] || [];
|
|
@@ -229,7 +282,8 @@ sap.ui.define([
|
|
|
229
282
|
top: oModel.getProperty("/appSearch/growingThreshold")
|
|
230
283
|
},
|
|
231
284
|
types: aTypes,
|
|
232
|
-
search: sSearchTerm || null
|
|
285
|
+
search: sSearchTerm || null,
|
|
286
|
+
categoryId: sCategoryId || null
|
|
233
287
|
});
|
|
234
288
|
}
|
|
235
289
|
},
|
|
@@ -405,7 +459,6 @@ sap.ui.define([
|
|
|
405
459
|
return this;
|
|
406
460
|
},
|
|
407
461
|
|
|
408
|
-
|
|
409
462
|
/**
|
|
410
463
|
* Resets the AppSearch, but keeps originally passed visualizations in the model.
|
|
411
464
|
*
|
|
@@ -2,20 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file AppSearch controller for AppSearch view
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.128.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"./ContentFinderDialog.controller",
|
|
9
9
|
"../model/formatter",
|
|
10
10
|
"sap/base/Log",
|
|
11
11
|
"sap/ushell/utils/WindowUtils",
|
|
12
|
-
"sap/ui/thirdparty/hasher"
|
|
12
|
+
"sap/ui/thirdparty/hasher",
|
|
13
|
+
"sap/m/ListType",
|
|
14
|
+
"sap/ui/model/Filter",
|
|
15
|
+
"sap/ui/model/FilterOperator"
|
|
13
16
|
], function (
|
|
14
17
|
ContentFinderController,
|
|
15
18
|
formatter,
|
|
16
19
|
Log,
|
|
17
20
|
WindowUtils,
|
|
18
|
-
hasher
|
|
21
|
+
hasher,
|
|
22
|
+
ListType,
|
|
23
|
+
Filter,
|
|
24
|
+
FilterOperator
|
|
19
25
|
) {
|
|
20
26
|
"use strict";
|
|
21
27
|
|
|
@@ -48,9 +54,10 @@ sap.ui.define([
|
|
|
48
54
|
* @private
|
|
49
55
|
*/
|
|
50
56
|
onInit: function () {
|
|
51
|
-
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
57
|
+
const oComponent = this.getOwnerComponent();
|
|
58
|
+
this.oModel = oComponent.getModel();
|
|
59
|
+
this.oSelectionModel = oComponent.getModel("Selection");
|
|
60
|
+
this.oResourceBundle = oComponent.getModel("i18n").getResourceBundle();
|
|
54
61
|
},
|
|
55
62
|
|
|
56
63
|
/**
|
|
@@ -96,14 +103,22 @@ sap.ui.define([
|
|
|
96
103
|
* @param {sap.base.Event} oEvent The 'search' event.
|
|
97
104
|
*/
|
|
98
105
|
onSearch: function (oEvent) {
|
|
99
|
-
|
|
106
|
+
const sQuery = oEvent.getParameter("query") || "";
|
|
100
107
|
this.sCurrentSearchTerm = sQuery;
|
|
101
108
|
this.emptyVisualizations();
|
|
102
109
|
this.toggleSelectionView(false);
|
|
103
|
-
|
|
110
|
+
|
|
111
|
+
const sCategoryId = this.oModel.getProperty("/selectedCategoryId");
|
|
112
|
+
this.getOwnerComponent().queryVisualizations(0, sQuery, sCategoryId);
|
|
104
113
|
this.oModel.setProperty("/appSearch/searchTerm", oEvent.getParameter("query"));
|
|
105
114
|
},
|
|
106
115
|
|
|
116
|
+
onCatalogSearch: async function (oEvent) {
|
|
117
|
+
const sQuery = oEvent.getParameter("newValue") || "";
|
|
118
|
+
const oFilter = new Filter("title", FilterOperator.Contains, sQuery);
|
|
119
|
+
this.byId("CategoryTreeFragment--CategoryTree").getBinding().filter(oFilter);
|
|
120
|
+
},
|
|
121
|
+
|
|
107
122
|
/**
|
|
108
123
|
* Formatter for the selected state of an AppBox. Returns true if the given vizId is found in the array of visualizations.
|
|
109
124
|
*
|
|
@@ -161,8 +176,9 @@ sap.ui.define([
|
|
|
161
176
|
*/
|
|
162
177
|
onAppBoxSelectedAndClose: function (oEvent) {
|
|
163
178
|
const oVizData = oEvent.getParameter("listItem").getBindingContext().getObject();
|
|
164
|
-
this.getOwnerComponent()
|
|
165
|
-
|
|
179
|
+
const oComponent = this.getOwnerComponent();
|
|
180
|
+
oComponent.addVisualizations([oVizData]);
|
|
181
|
+
oComponent.getRootControl().byId("contentFinderDialog").close();
|
|
166
182
|
},
|
|
167
183
|
|
|
168
184
|
/**
|
|
@@ -174,9 +190,10 @@ sap.ui.define([
|
|
|
174
190
|
*/
|
|
175
191
|
onUpdateStarted: function (oEvent) {
|
|
176
192
|
if (oEvent.getParameter("reason") === "Growing") {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
this.
|
|
193
|
+
const sSearchTerm = this.oModel.getProperty("/appSearch/searchTerm");
|
|
194
|
+
const iSkip = oEvent.getParameter("actual");
|
|
195
|
+
const sCategoryId = this.oModel.getProperty("/selectedCategoryId");
|
|
196
|
+
this.getOwnerComponent().queryVisualizations(iSkip, sSearchTerm, sCategoryId);
|
|
180
197
|
}
|
|
181
198
|
},
|
|
182
199
|
|
|
@@ -224,11 +241,38 @@ sap.ui.define([
|
|
|
224
241
|
return false;
|
|
225
242
|
},
|
|
226
243
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
244
|
+
onCategoryTreeItemPressed: function (oEvent) {
|
|
245
|
+
const oItem = oEvent.getParameter("listItem");
|
|
246
|
+
if (oItem.getType() !== ListType.Inactive) {
|
|
247
|
+
this.resetAppSearch();
|
|
248
|
+
const sCategoryId = oItem.getBindingContext().getProperty("id");
|
|
249
|
+
const sCategoryTitle = oItem.getBindingContext().getProperty("title");
|
|
250
|
+
this.oModel.setProperty("/selectedCategoryId", sCategoryId);
|
|
251
|
+
this.oModel.setProperty("/selectedCategoryTitle", sCategoryTitle);
|
|
252
|
+
const sSearchTerm = "";
|
|
253
|
+
this.getOwnerComponent().queryVisualizations(0, sSearchTerm, sCategoryId);
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
|
|
257
|
+
onCategoryTreeUpdateFinished: function (oEvent) {
|
|
258
|
+
const oTree = oEvent.getSource();
|
|
259
|
+
/** The <code>checkUpdate</code> implementation of the <code>ClientTreeBinding</code>
|
|
260
|
+
* does not check for actual changes but always fires an update whenever a model property changes.
|
|
261
|
+
* Hence we check if there is already a selected item and only set an initial selection if there is none.
|
|
262
|
+
*/
|
|
263
|
+
if (!oTree.getSelectedItem()) {
|
|
264
|
+
const aItems = oTree.getItems();
|
|
265
|
+
const oFirstItem = aItems[0];
|
|
266
|
+
if (oFirstItem) {
|
|
267
|
+
oTree.setSelectedItem(oFirstItem);
|
|
268
|
+
// set the initial selectedCategory. This is expected by visualizationFilterApplied event
|
|
269
|
+
// handlers and used to show the title for the visualizations GridList
|
|
270
|
+
const oData = oFirstItem.getBindingContext().getObject() || {};
|
|
271
|
+
const oComponent = this.getOwnerComponent();
|
|
272
|
+
oComponent.getModel().setProperty("/selectedCategoryId", oData.id);
|
|
273
|
+
oComponent.getModel().setProperty("/selectedCategoryTitle", oData.title);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
232
276
|
},
|
|
233
277
|
|
|
234
278
|
onLaunchApplication: function (oEvent) {
|