@sapui5/sap.ushell 1.120.7 → 1.121.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 +2 -2
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +46 -49
- package/src/main/js/sap/ushell/CanvasShapesManager.js +8 -7
- package/src/main/js/sap/ushell/Container.js +333 -108
- package/src/main/js/sap/ushell/EventHub.js +6 -9
- package/src/main/js/sap/ushell/Fiori20Adapter.js +6 -7
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +5 -7
- package/src/main/js/sap/ushell/Layout.js +20 -16
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/SessionHandler.js +20 -12
- package/src/main/js/sap/ushell/System.js +4 -2
- package/src/main/js/sap/ushell/TechnicalParameters.js +34 -57
- package/src/main/js/sap/ushell/UIActions.js +28 -39
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +8 -7
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +10 -10
- package/src/main/js/sap/ushell/User.js +6 -4
- package/src/main/js/sap/ushell/UserActivityLog.js +13 -11
- package/src/main/js/sap/ushell/_ApplicationType/guiResolution.js +15 -19
- package/src/main/js/sap/ushell/_ApplicationType/systemAlias.js +5 -3
- package/src/main/js/sap/ushell/_ApplicationType/ui5Resolution.js +11 -10
- package/src/main/js/sap/ushell/_ApplicationType/urlTemplateResolution.js +17 -15
- package/src/main/js/sap/ushell/_ApplicationType/utils.js +7 -7
- package/src/main/js/sap/ushell/_ApplicationType/wdaResolution.js +8 -6
- package/src/main/js/sap/ushell/_Config/utils.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +2 -2
- package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
- package/src/main/js/sap/ushell/adapters/AppVariantPersonalizationAdapter.js +5 -3
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +6 -11
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +6 -16
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +18 -14
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +16 -21
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +7 -18
- 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/_Personalization/internals.js +9 -9
- 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 +36 -13
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +2629 -0
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +4 -2525
- 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 +13 -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 +91 -25
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +6 -6
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +31 -6
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +7 -6
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +10 -20
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +14 -19
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +18 -20
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +25 -18
- package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +1558 -0
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +4 -1551
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +2 -4
- 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 +11 -8
- 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 +11 -23
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/api/RTA.js +27 -0
- package/src/main/js/sap/ushell/api/workpage/Designtime.js +69 -0
- package/src/main/js/sap/ushell/api/workpage/Runtime.js +97 -0
- package/src/main/js/sap/ushell/appRuntime/neo/AppInfoService.js +12 -3
- package/src/main/js/sap/ushell/appRuntime/neo/AppRuntimeNeo.js +4 -0
- package/src/main/js/sap/ushell/appRuntime/neo/ProxyAppUtils.js +4 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +82 -78
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeContext.js +4 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeService.js +8 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/SessionHandlerAgent.js +35 -37
- package/src/main/js/sap/ushell/appRuntime/ui5/performance/FesrEnhancer.js +4 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils.js +2 -8
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Trigger.js +9 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +6 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en.properties +0 -7
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_en_US_saprigi.properties +5 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +4 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en.properties +0 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_en_US_saprigi.properties +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/AccessKeysAgent.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +14 -14
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +8 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +39 -39
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +15 -16
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +12 -54
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +154 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +221 -206
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +15 -14
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +35 -55
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +10 -14
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +212 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +6 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +67 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +9 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/ContainerAdapter.js +9 -10
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/EmptyAdapter.js +3 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/FLPScheduler.js +12 -6
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/StepConfiguration.json +1 -3
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +6 -7
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-dev.js +2 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-loader.js +15 -5
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.boot.task.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +14 -0
- package/src/main/js/sap/ushell/bootstrap/cdm.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.path.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.script.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.task.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.extractLibs.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +6 -6
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5language.js +4 -4
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ushell.js +37 -41
- package/src/main/js/sap/ushell/bootstrap/common/common.constants.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +31 -20
- package/src/main/js/sap/ushell/bootstrap/common/common.debug.mode.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.load.bootstrapExtension.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.load.model.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.load.ui5theme.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.read.metatags.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +5 -4
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +48 -14
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +8 -9
- package/src/main/js/sap/ushell/bootstrap/ui5loader-config.js +2 -2
- package/src/main/js/sap/ushell/components/CatalogsManager.js +49 -47
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +57 -45
- package/src/main/js/sap/ushell/components/DestroyHelper.js +2 -2
- package/src/main/js/sap/ushell/components/HeaderManager.js +3 -3
- package/src/main/js/sap/ushell/components/HomepageManager.js +27 -29
- package/src/main/js/sap/ushell/components/MessagingHelper.js +2 -2
- package/src/main/js/sap/ushell/components/SharedComponentUtils.js +13 -10
- package/src/main/js/sap/ushell/components/StateHelper.js +1 -1
- package/src/main/js/sap/ushell/components/_HeaderManager/AddHeadEndItemsStrategy.js +15 -15
- package/src/main/js/sap/ushell/components/_HeaderManager/AddHeadItemsStrategy.js +3 -3
- package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +4 -4
- package/src/main/js/sap/ushell/components/_HeaderManager/RemoveItemsStrategy.js +2 -2
- package/src/main/js/sap/ushell/components/_HeaderManager/ShellHeader.controller.js +13 -13
- package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +3 -3
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +4 -4
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +9 -8
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +6 -6
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +29 -16
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +17 -17
- package/src/main/js/sap/ushell/components/appfinder/Component.js +4 -4
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +7 -7
- package/src/main/js/sap/ushell/components/appfinder/EasyAccessView.js +3 -9
- package/src/main/js/sap/ushell/components/appfinder/GroupListPopover.controller.js +3 -3
- package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +6 -7
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +2 -4
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFoldersView.js +3 -3
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +9 -5
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +38 -55
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +20 -22
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +22 -33
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +563 -372
- package/src/main/js/sap/ushell/components/applicationIntegration/application/WebGUIStatefulHandler.js +8 -7
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +8 -6
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +9 -7
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +6 -5
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +2 -2
- package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +6 -5
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Component.js +1 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Component.js +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en.properties +0 -34
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_en_US_saprigi.properties +37 -37
- package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en.properties +0 -11
- package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_en_US_saprigi.properties +9 -9
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.css +4 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Highlighter.js +1 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Paginator.js +1 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +27 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ca.properties +3 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en.properties +0 -111
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_US_saprigi.properties +109 -109
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +105 -96
- package/src/main/js/sap/ushell/components/container/IframePOSTUtils.js +13 -13
- package/src/main/js/sap/ushell/components/container/resources/resources_en.properties +0 -9
- package/src/main/js/sap/ushell/components/container/resources/resources_en_US_saprigi.properties +6 -6
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +54 -105
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +108 -142
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +16 -11
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +9 -7
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +6 -6
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +4 -2
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en.properties +0 -29
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +24 -24
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +37 -17
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +5 -3
- package/src/main/js/sap/ushell/components/contentFinder/view/ContentFinderDialog.view.xml +9 -4
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTileRenderer.js +2 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerRenderer.js +2 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +23 -19
- package/src/main/js/sap/ushell/components/homepage/Component.js +3 -3
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +3 -2
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +3 -4
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +17 -9
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +10 -3
- package/src/main/js/sap/ushell/components/homepage/FLPAnalytics.js +6 -4
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +5 -5
- package/src/main/js/sap/ushell/components/pages/Component.js +2 -2
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +7 -7
- package/src/main/js/sap/ushell/components/pages/StateManager.js +3 -3
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +9 -12
- package/src/main/js/sap/ushell/components/pages/controller/MyHome.controller.js +2 -2
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +70 -15
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +2 -2
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/view/PageRuntime.view.xml +7 -5
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +50 -8
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -8
- package/src/main/js/sap/ushell/components/runtimeSwitcher/view/RuntimeSwitcher.view.xml +13 -8
- package/src/main/js/sap/ushell/components/shell/MenuBar/Component.js +6 -4
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +6 -7
- 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 +13 -11
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +16 -12
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +5 -5
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +14 -14
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +7 -7
- package/src/main/js/sap/ushell/components/shell/Search/Component.js +5 -4
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +8 -6
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +25 -18
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +89 -67
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +5 -4
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +5 -4
- 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 +8 -6
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +7 -7
- package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +6 -6
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +4 -2
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageSetting.view.xml +3 -1
- package/src/main/js/sap/ushell/components/shell/Settings/search/SearchEntry.js +95 -96
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSetting.fragment.xml +7 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.view.xml +7 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +3 -3
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +27 -31
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.view.xml +9 -2
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +6 -6
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +22 -20
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +8 -11
- package/src/main/js/sap/ushell/components/tiles/action/Configuration.controller.js +5 -4
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +5 -3
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +16 -31
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.xml +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +16 -33
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.xml +1 -1
- package/src/main/js/sap/ushell/components/tiles/generic.js +2 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/cache.js +12 -10
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +49 -42
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.view.js +16 -18
- package/src/main/js/sap/ushell/components/tiles/utils.js +19 -15
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +31 -29
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +18 -219
- 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 +62 -137
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +4 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.js +185 -68
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +3 -6
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +3 -6
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +3 -6
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +2 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +4 -7
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRenderer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +7 -5
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +5 -5
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources.properties +4 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en.properties +0 -76
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saprigi.properties +66 -66
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +8 -0
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +2 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +4 -7
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/view/WorkPageRuntime.view.xml +15 -8
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/iconfonts.js +1 -1
- package/src/main/js/sap/ushell/library.js +28 -26
- package/src/main/js/sap/ushell/navigationMode.js +4 -6
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +97 -18
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +7 -7
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +78 -23
- package/src/main/js/sap/ushell/plugins/BaseRTAPlugin.js +4 -3
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_en.properties +0 -10
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_en_US_saprigi.properties +8 -8
- package/src/main/js/sap/ushell/plugins/rta-personalize/Component.js +10 -6
- package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n_en.properties +0 -14
- package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n_en_US_saprigi.properties +12 -12
- package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +15 -13
- package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +7 -7
- package/src/main/js/sap/ushell/renderer/Renderer.js +163 -221
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +133 -163
- package/src/main/js/sap/ushell/renderer/Shell.view.js +13 -14
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +65 -14
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +40 -17
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +9 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +18 -951
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +991 -991
- package/src/main/js/sap/ushell/renderer/search/searchComponent/Component.js +8 -2
- package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/CEPSearchApp.controller.js +20 -13
- package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/SearchApp.controller.js +13 -9
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/view/CEPSearchApp.view.js +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/view/SearchApp.view.js +1 -1
- package/src/main/js/sap/ushell/renderer/search/util.js +5 -7
- package/src/main/js/sap/ushell/renderer/utils.js +6 -6
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +14 -11
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +50 -42
- package/src/main/js/sap/ushell/resources.js +3 -3
- package/src/main/js/sap/ushell/services/AllMyApps.js +2 -3
- package/src/main/js/sap/ushell/services/AppConfiguration.js +56 -15
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +14 -29
- package/src/main/js/sap/ushell/services/AppState.js +39 -28
- package/src/main/js/sap/ushell/services/Bookmark.js +18 -45
- package/src/main/js/sap/ushell/services/BookmarkV2.js +118 -120
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +20 -22
- package/src/main/js/sap/ushell/services/CommonDataModel.js +31 -94
- package/src/main/js/sap/ushell/services/Configuration.js +5 -5
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +2 -3
- package/src/main/js/sap/ushell/services/Container.js +6 -5
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +7 -5
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +80 -98
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +6 -6
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +17 -15
- package/src/main/js/sap/ushell/services/Extension/FloatingContainer.js +139 -67
- package/src/main/js/sap/ushell/services/Extension/Footer.js +2 -1
- package/src/main/js/sap/ushell/services/Extension/Header.js +9 -16
- package/src/main/js/sap/ushell/services/Extension/Item.js +12 -8
- package/src/main/js/sap/ushell/services/Extension/SidePane.js +5 -5
- package/src/main/js/sap/ushell/services/Extension/ToolArea.js +5 -5
- package/src/main/js/sap/ushell/services/Extension.js +12 -13
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1791 -0
- package/src/main/js/sap/ushell/services/LaunchPage.js +653 -1715
- package/src/main/js/sap/ushell/services/Menu.js +3 -3
- package/src/main/js/sap/ushell/services/Message.js +16 -9
- package/src/main/js/sap/ushell/services/MessageBroker.js +6 -6
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +25 -28
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +17 -16
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +2 -2
- package/src/main/js/sap/ushell/services/Notifications.js +55 -38
- package/src/main/js/sap/ushell/services/NotificationsV2.js +122 -49
- package/src/main/js/sap/ushell/services/PageBuilding.js +3 -4
- package/src/main/js/sap/ushell/services/PagePersistence.js +3 -3
- package/src/main/js/sap/ushell/services/PageReferencing.js +2 -2
- package/src/main/js/sap/ushell/services/Pages.js +295 -320
- package/src/main/js/sap/ushell/services/Personalization.js +40 -37
- package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +27 -24
- package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +7 -4
- package/src/main/js/sap/ushell/services/PersonalizationV2/TransientPersonalizer.js +2 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/Variant.js +7 -4
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSet.js +10 -11
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.js +10 -10
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +2 -2
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +5 -5
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +10 -9
- package/src/main/js/sap/ushell/services/PluginManager.js +77 -75
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +36 -38
- package/src/main/js/sap/ushell/services/Search.js +4 -4
- package/src/main/js/sap/ushell/services/SearchCEP.js +2 -3
- package/src/main/js/sap/ushell/services/SearchableContent.js +93 -80
- package/src/main/js/sap/ushell/services/ShellNavigation.js +160 -450
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +27 -26
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +532 -0
- package/src/main/js/sap/ushell/services/SmartNavigation.js +23 -23
- package/src/main/js/sap/ushell/services/SpaceContent.js +4 -4
- package/src/main/js/sap/ushell/services/SupportTicket.js +4 -5
- package/src/main/js/sap/ushell/services/UITracer.js +2 -2
- package/src/main/js/sap/ushell/services/URLParsing.js +15 -14
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +2 -2
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +47 -10
- package/src/main/js/sap/ushell/services/UsageAnalytics.js +25 -9
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +11 -11
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +34 -41
- package/src/main/js/sap/ushell/services/UserInfo.js +29 -53
- package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +480 -0
- package/src/main/js/sap/ushell/services/UserRecents/RecentAppsUsage.js +207 -0
- package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +119 -0
- package/src/main/js/sap/ushell/services/{_UserRecents → UserRecents}/UserRecentsBase.js +41 -9
- package/src/main/js/sap/ushell/services/UserRecents.js +185 -188
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +42 -41
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +27 -26
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +6 -6
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/ParameterMapping.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +7 -9
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +2 -2
- package/src/main/js/sap/ushell/services/_CommonDataModel/PersonalizationProcessor.js +5 -7
- package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +2 -2
- package/src/main/js/sap/ushell/services/_CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +105 -0
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +19 -37
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +28 -29
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +10 -10
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +7 -5
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +9 -6
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +9 -18
- package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +4 -11
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +11 -9
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +6 -5
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +1 -2
- package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +8 -22
- package/src/main/js/sap/ushell/services/appstate/Sequentializer.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/SequentializingAdapter.js +3 -5
- package/src/main/js/sap/ushell/services/appstate/WindowAdapter.js +13 -12
- package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +2 -2
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +26 -22
- package/src/main/js/sap/ushell/themes/base/Catalog.less +12 -1
- package/src/main/js/sap/ushell/themes/base/ContentFinder.less +1 -0
- package/src/main/js/sap/ushell/themes/base/SearchCEP.less +9 -0
- package/src/main/js/sap/ushell/themes/base/img/SAPLogo.svg +1 -1
- package/src/main/js/sap/ushell/themes/base/img/launchicons/114_iPhone-Retina_Web_Clip.png +0 -0
- package/src/main/js/sap/ushell/themes/base/img/launchicons/144_iPad_Retina_Web_Clip.png +0 -0
- package/src/main/js/sap/ushell/themes/base/img/launchicons/57_iPhone_Desktop_Launch.png +0 -0
- package/src/main/js/sap/ushell/themes/base/img/launchicons/72_iPad_Desktop_Launch.png +0 -0
- package/src/main/js/sap/ushell/themes/base/img/launchpad_favicon.ico +0 -0
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellHeader.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellHeader.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellHeader.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellHeader.less +0 -1
- package/src/main/js/sap/ushell/ui/AppContainer.js +17 -22
- package/src/main/js/sap/ushell/ui/AppContainerRenderer.js +4 -6
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +8 -9
- package/src/main/js/sap/ushell/ui/ContentNodeTreeItem.js +2 -3
- package/src/main/js/sap/ushell/ui/QuickAccess.js +90 -81
- package/src/main/js/sap/ushell/ui/ShellHeader.js +26 -25
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +2 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +20 -7
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +9 -0
- package/src/main/js/sap/ushell/ui/appfinder/PinButton.js +7 -6
- package/src/main/js/sap/ushell/ui/appfinder/PinButtonRenderer.js +2 -1
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +4 -4
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +5 -5
- package/src/main/js/sap/ushell/ui/footerbar/AboutButton.js +8 -13
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +10 -12
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportButton.js +22 -229
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.controller.js +116 -0
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.fragment.xml +85 -0
- package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +8 -12
- package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +9 -18
- package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +8 -12
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +4 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +4 -1
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +6 -13
- package/src/main/js/sap/ushell/ui/launchpad/AccessibilityCustomData.js +4 -5
- package/src/main/js/sap/ushell/ui/launchpad/ActionItem.js +5 -4
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +8 -11
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItemRenderer.js +6 -2
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +22 -19
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBarRenderer.js +6 -1
- package/src/main/js/sap/ushell/ui/launchpad/CatalogEntryContainer.js +10 -6
- package/src/main/js/sap/ushell/ui/launchpad/CatalogsContainer.js +9 -5
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainer.js +9 -5
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainerRenderer.js +6 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/GroupHeaderActions.js +7 -9
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItem.js +59 -67
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItemRenderer.js +15 -15
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +4 -4
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapperRenderer.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialog.js +7 -11
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialogRenderer.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +8 -12
- package/src/main/js/sap/ushell/ui/launchpad/PageRenderer.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/PlusTile.js +5 -11
- package/src/main/js/sap/ushell/ui/launchpad/PlusTileRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +14 -26
- package/src/main/js/sap/ushell/ui/launchpad/SectionRenderer.js +3 -2
- package/src/main/js/sap/ushell/ui/launchpad/Tile.js +10 -13
- package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +10 -11
- package/src/main/js/sap/ushell/ui/launchpad/TileContainerRenderer.js +3 -2
- package/src/main/js/sap/ushell/ui/launchpad/TileRenderer.js +2 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileState.js +8 -81
- package/src/main/js/sap/ushell/ui/launchpad/TileStateInternal.js +119 -0
- package/src/main/js/sap/ushell/ui/launchpad/TileStateInternalRenderer.js +72 -0
- package/src/main/js/sap/ushell/ui/launchpad/TileStateRenderer.js +4 -65
- package/src/main/js/sap/ushell/ui/launchpad/ViewPortState.js +6 -7
- package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstance.js +86 -78
- package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceAbap.js +6 -5
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceBase.js +40 -0
- package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceCdm.js +13 -11
- package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceLaunchPage.js +10 -7
- package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceLink.js +9 -61
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +8 -6
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactAreaRenderer.js +2 -1
- package/src/main/js/sap/ushell/ui/shell/ContentRenderer.js +3 -3
- package/src/main/js/sap/ushell/ui/shell/FloatingContainer.js +10 -8
- package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +3 -3
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +32 -34
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingAction.js +9 -6
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingActionRenderer.js +1 -3
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +4 -7
- package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +8 -8
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +3 -8
- package/src/main/js/sap/ushell/ui/shell/ToolArea.js +2 -2
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/DynamicTile.js +6 -8
- package/src/main/js/sap/ushell/ui/tile/DynamicTileRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/tile/ImageTile.js +4 -5
- package/src/main/js/sap/ushell/ui/tile/ImageTileRenderer.js +5 -6
- package/src/main/js/sap/ushell/ui/tile/StaticTile.js +4 -5
- package/src/main/js/sap/ushell/ui/tile/StaticTileRenderer.js +5 -6
- package/src/main/js/sap/ushell/ui/tile/TileBase.js +5 -8
- package/src/main/js/sap/ushell/ui/tile/TileBaseRenderer.js +3 -3
- package/src/main/js/sap/ushell/ui/utils.js +2 -4
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +8 -9
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +11 -12
- package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +6 -8
- package/src/main/js/sap/ushell/utils/DynamicTileRequest.js +5 -3
- package/src/main/js/sap/ushell/utils/HttpClient.js +6 -7
- package/src/main/js/sap/ushell/utils/RestrictedJSONModel.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlParsing.js +5 -14
- package/src/main/js/sap/ushell/utils/UrlShortening.js +4 -4
- package/src/main/js/sap/ushell/utils/chipsUtils.js +10 -10
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +234 -0
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +141 -0
- package/src/main/js/sap/ushell/utils.js +17 -13
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +6 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_cnr.properties +0 -10
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/i18n/i18n_cnr.properties +0 -4
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_cnr.properties +0 -41
- package/src/main/js/sap/ushell/components/cepsearchresult/app/i18n/i18n_cnr.properties +0 -19
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_cnr.properties +0 -117
- package/src/main/js/sap/ushell/components/container/resources/resources_cnr.properties +0 -10
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_cnr.properties +0 -29
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchPaginated.view.xml +0 -137
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cnr.properties +0 -78
- package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +0 -115
- package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +0 -130
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_cnr.properties +0 -13
- package/src/main/js/sap/ushell/plugins/rta-personalize/i18n/i18n_cnr.properties +0 -24
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsKeyboardHandler.js +0 -108
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +0 -993
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsKeyboardHandler.js +0 -13
- package/src/main/js/sap/ushell/services/_UserRecents/RecentActivity.js +0 -481
- package/src/main/js/sap/ushell/services/_UserRecents/RecentAppsUsage.js +0 -207
- package/src/main/js/sap/ushell/services/_UserRecents/RecentsList.js +0 -92
- package/src/main/js/sap/ushell/themes/base/img/launchpadDefaultIcon.jpg +0 -0
- /package/src/main/js/sap/ushell/{services/_VisualizationInstantiation → ui/launchpad}/VizInstanceRenderer.js +0 -0
|
@@ -3,16 +3,8 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The UserStatus UI5 service
|
|
5
5
|
*
|
|
6
|
-
* @version 1.
|
|
6
|
+
* @version 1.121.0
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @namespace sap.ushell.ui5service.UserStatus
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
* @deprecated since 1.70. Support for this service has been discontinued.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
8
|
sap.ui.define([
|
|
17
9
|
"sap/ui/core/service/ServiceFactoryRegistry",
|
|
18
10
|
"sap/ui/core/service/ServiceFactory",
|
|
@@ -26,7 +18,14 @@ sap.ui.define([
|
|
|
26
18
|
serviceStateChanged: "serviceStateChanged"
|
|
27
19
|
};
|
|
28
20
|
|
|
29
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @alias sap.ushell.ui5service.UserStatus
|
|
23
|
+
* @class
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
* @deprecated since 1.70. Support for this service has been discontinued.
|
|
27
|
+
*/
|
|
28
|
+
var UserStatus = Service.extend("sap.ushell.ui5service.UserStatus", /** @lends sap.ushell.ui5service.UserStatus.prototype */ {
|
|
30
29
|
init: function () {
|
|
31
30
|
// Service injection
|
|
32
31
|
UserStatus.prototype.isEnabled = false;
|
|
@@ -58,7 +57,7 @@ sap.ui.define([
|
|
|
58
57
|
* If the user already agreed to share their online status, the setStatus method will be called with the default online status that was set by the user.
|
|
59
58
|
* If the user already declined to share their online status, the setStatus method will be called with a null value.
|
|
60
59
|
*
|
|
61
|
-
* @param {
|
|
60
|
+
* @param {boolean} bEnable boolean.
|
|
62
61
|
* @since 1.46
|
|
63
62
|
* @public
|
|
64
63
|
* @deprecated since 1.70
|
|
@@ -80,7 +79,7 @@ sap.ui.define([
|
|
|
80
79
|
* 2) the status is null or exists in the list of available statuses (sap.ushell.ui5service.UserStatus.prototype.AvailableStatus)
|
|
81
80
|
* 3) the user has agreed to share their online status
|
|
82
81
|
*
|
|
83
|
-
* @param {
|
|
82
|
+
* @param {object} oNewStatus sap.ushell.ui5service.UserStatus.prototype.AvailableStatus
|
|
84
83
|
* @since 1.46
|
|
85
84
|
* @public
|
|
86
85
|
* @deprecated since 1.70
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* Instead, this service should be consumed by app components as described
|
|
46
46
|
* in the overview section of this class.
|
|
47
47
|
*
|
|
48
|
-
* @
|
|
48
|
+
* @alias sap.ushell.ui5service.ShellUIService
|
|
49
49
|
* @class
|
|
50
50
|
*
|
|
51
51
|
* @classdesc The Unified Shell's ShellUIService service.
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* <pre>
|
|
73
73
|
* // Component.js (the app root component)
|
|
74
74
|
* ...
|
|
75
|
-
* this.
|
|
75
|
+
* this.getService("ShellUIService").then( // promise is returned
|
|
76
76
|
* function (oService) {
|
|
77
77
|
* oService.setTitle("Application Title");
|
|
78
78
|
* },
|
|
@@ -130,11 +130,9 @@ sap.ui.define([
|
|
|
130
130
|
* @extends sap.ui.core.service.Service
|
|
131
131
|
* @since 1.38.0
|
|
132
132
|
*/
|
|
133
|
-
var ShellUIService = Service.extend("sap.ushell.ui5service.ShellUIService", /** @lends sap.ushell.ui5service.ShellUIService
|
|
133
|
+
var ShellUIService = Service.extend("sap.ushell.ui5service.ShellUIService", /** @lends sap.ushell.ui5service.ShellUIService.prototype */ {
|
|
134
134
|
init: function () {
|
|
135
|
-
|
|
136
|
-
* Service injection
|
|
137
|
-
*/
|
|
135
|
+
// Service injection
|
|
138
136
|
var that = this;
|
|
139
137
|
var oPublicInterface = this.getInterface();
|
|
140
138
|
|
|
@@ -178,7 +176,7 @@ sap.ui.define([
|
|
|
178
176
|
_getActiveComponentId: function () {
|
|
179
177
|
return sActiveComponentId;
|
|
180
178
|
},
|
|
181
|
-
|
|
179
|
+
/**
|
|
182
180
|
* Determines whether the hierarchy should be set automatically
|
|
183
181
|
* using the UI5 router for the given App component.
|
|
184
182
|
*
|
|
@@ -196,7 +194,7 @@ sap.ui.define([
|
|
|
196
194
|
return typeof oAppComponent.getManifestEntry === "function"
|
|
197
195
|
&& oAppComponent.getManifestEntry("/sap.ui5/services/ShellUIService/settings/setHierarchy") === "auto";
|
|
198
196
|
},
|
|
199
|
-
|
|
197
|
+
/**
|
|
200
198
|
* Determines whether the title should be set automatically using the
|
|
201
199
|
* UI5 router for the given App component.
|
|
202
200
|
*
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define([
|
|
7
|
+
"sap/base/i18n/Localization",
|
|
7
8
|
"sap/ushell/utils/HttpClient",
|
|
8
9
|
"sap/ui/thirdparty/URI",
|
|
9
10
|
"sap/base/util/isEmptyObject",
|
|
@@ -14,6 +15,7 @@ sap.ui.define([
|
|
|
14
15
|
"sap/ushell/EventHub",
|
|
15
16
|
"sap/ushell/utils"
|
|
16
17
|
], function (
|
|
18
|
+
Localization,
|
|
17
19
|
HttpClient,
|
|
18
20
|
URI,
|
|
19
21
|
isEmptyObject,
|
|
@@ -184,7 +186,7 @@ sap.ui.define([
|
|
|
184
186
|
|
|
185
187
|
// Adding a query parameter triggers the encoding of the whole query string.
|
|
186
188
|
// Therefore, append the additional parameters as late as possible to avoid encoding the placeholders.
|
|
187
|
-
const sSAPLogonLanguage =
|
|
189
|
+
const sSAPLogonLanguage = Localization.getSAPLogonLanguage();
|
|
188
190
|
if (sSAPLogonLanguage && !oUri.hasQuery("sap-language")) {
|
|
189
191
|
oUri.addQuery("sap-language", sSAPLogonLanguage);
|
|
190
192
|
}
|
|
@@ -372,11 +374,11 @@ sap.ui.define([
|
|
|
372
374
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
|
373
375
|
Pragma: "no-cache",
|
|
374
376
|
Expires: "0",
|
|
375
|
-
"Accept-Language":
|
|
377
|
+
"Accept-Language": Localization.getLanguage() || "",
|
|
376
378
|
Accept: "application/json, text/plain"
|
|
377
379
|
};
|
|
378
380
|
|
|
379
|
-
const sSAPLogonLanguage =
|
|
381
|
+
const sSAPLogonLanguage = Localization.getSAPLogonLanguage();
|
|
380
382
|
if (sSAPLogonLanguage) {
|
|
381
383
|
oHeaders["sap-language"] = sSAPLogonLanguage;
|
|
382
384
|
}
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
sap.ui.define([
|
|
33
|
-
"sap/ui/core/
|
|
33
|
+
"sap/ui/core/Supportability",
|
|
34
34
|
"sap/ui/thirdparty/URI",
|
|
35
35
|
"sap/ushell/utils"
|
|
36
|
-
], function (
|
|
36
|
+
], function (Supportability, URI, utils) {
|
|
37
37
|
"use strict";
|
|
38
38
|
|
|
39
39
|
// JSDoc Type definitions
|
|
@@ -69,14 +69,13 @@ sap.ui.define([
|
|
|
69
69
|
*/
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* @alias sap.ushell.utils.XHttpClient
|
|
73
|
+
* @class
|
|
74
|
+
* @classdesc An HTTP client that can submit GET, PUT, POST, PATCH, DELETE and OPTIONS requests
|
|
73
75
|
* and that supports cross-site request forgery (CSRF) token fetching and injection.
|
|
74
76
|
*
|
|
75
77
|
* The necessary CSRF token handling is done automatically.
|
|
76
78
|
*
|
|
77
|
-
* @class
|
|
78
|
-
* @namespace sap.ushell.utils.XHttpClient
|
|
79
|
-
*
|
|
80
79
|
* @param {string} [basePath]
|
|
81
80
|
* Base path that is prepended to the resource path specified in each method call
|
|
82
81
|
*
|
|
@@ -251,7 +250,7 @@ sap.ui.define([
|
|
|
251
250
|
var oInvalidURLError = new Error("The provided resource path is not a valid URL.");
|
|
252
251
|
|
|
253
252
|
var oDefaultHeaders = {};
|
|
254
|
-
var bSapStatisticsEnabled =
|
|
253
|
+
var bSapStatisticsEnabled = Supportability.isStatisticsEnabled();
|
|
255
254
|
if (bSapStatisticsEnabled) {
|
|
256
255
|
oDefaultHeaders["sap-statistics"] = bSapStatisticsEnabled;
|
|
257
256
|
}
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @private
|
|
24
24
|
*/
|
|
25
|
-
return JSONModel.extend("sap.ushell.utils.RestrictedJSONModel", /** @lends sap.ushell.utils.RestrictedJSONModel */ {
|
|
25
|
+
return JSONModel.extend("sap.ushell.utils.RestrictedJSONModel", /** @lends sap.ushell.utils.RestrictedJSONModel.prototype */ {
|
|
26
26
|
constructor: function () {
|
|
27
27
|
JSONModel.prototype.constructor.apply(this, arguments);
|
|
28
28
|
|
|
@@ -23,16 +23,10 @@ sap.ui.define([
|
|
|
23
23
|
) {
|
|
24
24
|
"use strict";
|
|
25
25
|
|
|
26
|
-
// usage : sap.ushell.Container.getServiceAsync("URLParsing").then(function (URLParsing) {
|
|
27
|
-
// URLParsing.parseShellHash();
|
|
28
|
-
// });
|
|
29
|
-
// etc.
|
|
30
|
-
|
|
31
26
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* Constructs a new instance of the URL parsing service.
|
|
27
|
+
* @alias sap.ushell.utils.UrlParsing
|
|
28
|
+
* @namespace
|
|
29
|
+
* @description The Unified Shell's internal URL parsing utils (platform independent)
|
|
36
30
|
*
|
|
37
31
|
* Methods in this class allow to break down a shell compliant hash into it's respective parts
|
|
38
32
|
* (SemanticObject,Action,Context, Parameters, appSpecificHash) or (ShellPart,appSpecificHash) respectively
|
|
@@ -49,12 +43,10 @@ sap.ui.define([
|
|
|
49
43
|
* behaviour for non-compliant hashes is undefined and subject to change,
|
|
50
44
|
* notably we do not aim do "degrade" nicefully or support partial parsing of corrupted urls.
|
|
51
45
|
*
|
|
52
|
-
* @name sap.ushell.utils.UrlParsing
|
|
53
|
-
* @class
|
|
54
46
|
* @since 1.94.0
|
|
55
47
|
* @private
|
|
56
48
|
*/
|
|
57
|
-
|
|
49
|
+
const UrlParsing = {};
|
|
58
50
|
var reValidShellPart = /^(([A-Za-z0-9_/]+)-([A-Za-z0-9_/-]+)(~([A-Z0-9a-z=+/]+))?)?([?]([^&]|(&[^/]))*&?)?$/;
|
|
59
51
|
|
|
60
52
|
|
|
@@ -378,9 +370,8 @@ sap.ui.define([
|
|
|
378
370
|
/**
|
|
379
371
|
* Internal function
|
|
380
372
|
*
|
|
381
|
-
* @name privstripLeadingHash
|
|
382
373
|
* @param {string} sHash Shell hash
|
|
383
|
-
* @returns {string} the string
|
|
374
|
+
* @returns {string} the string without a leading #
|
|
384
375
|
* @since 1.94.0
|
|
385
376
|
* @private
|
|
386
377
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This module is for internal Shell usage only
|
|
7
7
|
*
|
|
8
|
-
* @version 1.
|
|
8
|
+
* @version 1.121.0
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define(["sap/base/Log", "sap/ushell/utils/UrlParsing"], function (Log, urlParsing) {
|
|
11
11
|
"use strict";
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
* The inverse operation expandHash replaces a sap-intent-param=KEY value.
|
|
104
104
|
*
|
|
105
105
|
* @param {string} sUrl A shell hash parameter string
|
|
106
|
-
* @param {
|
|
106
|
+
* @param {string[]} aRetainParameterList an array listing parameter names (in order) which should be preferably
|
|
107
107
|
* not compacted (=retained in the parameter list),
|
|
108
108
|
* note that this is only a hint, some system parameters may be retained before this list is respected!
|
|
109
109
|
* @param {object} oStoreContext an object <code>{ getNextKey : function(); store: function(sValue) }</code>
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
* example _findIndex(["A","B*C", "B-A"],"B-C") returns -1
|
|
259
259
|
* </pre>
|
|
260
260
|
*
|
|
261
|
-
* @param {
|
|
261
|
+
* @param {string[]} aArray an array of string containing the strings to match
|
|
262
262
|
* @param {string} sTest the string to test for
|
|
263
263
|
* @returns {int} the index of a matching entry, or -1 if not found
|
|
264
264
|
* @since 1.32.0
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
* split a parameters object, return a triple key, headParams, tailParams if split, otherwise key is undefined
|
|
324
324
|
*
|
|
325
325
|
* @param {object} oParams Parameter collection
|
|
326
|
-
* @param {
|
|
326
|
+
* @param {string[]} aRetainParameterList A list of parameters to retain in the parameter list
|
|
327
327
|
* (parameters listed here will be retained in order of priority if possible).
|
|
328
328
|
* @param {function} sKey A function used to generate the key
|
|
329
329
|
* @returns {object} a triple { key, headParams, tailParams } if split, otherwise key is undefined, tailParams is an empty object
|
|
@@ -369,16 +369,16 @@ sap.ui.define([
|
|
|
369
369
|
};
|
|
370
370
|
|
|
371
371
|
/**
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
372
|
+
* The function checks the chipId of the provided simplified chip to determine if it is a custom tile.
|
|
373
|
+
*
|
|
374
|
+
* @param {object} oSimplifiedChip
|
|
375
|
+
* A simplified version of the sap.ushell_abap.pbServices.ui2.ChipInstance.
|
|
376
|
+
* The object structure of the simplified chip model can be viewed in the "simplifiedChipModel.md" document in the FLP core-concepts GitHub repository.
|
|
377
|
+
*
|
|
378
|
+
* @since 1.90.0
|
|
379
|
+
* @returns {boolean} True if the tile is a custom tile.
|
|
380
|
+
* @private
|
|
381
|
+
*/
|
|
382
382
|
chipsUtils.isCustomTileFromSimplifiedChip = function (oSimplifiedChip) {
|
|
383
383
|
var sChipId = oSimplifiedChip.chipId;
|
|
384
384
|
return sChipId !== DYNAMIC_BASE_CHIP_ID && sChipId !== STATIC_BASE_CHIP_ID;
|
|
@@ -0,0 +1,234 @@
|
|
|
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 workpage and visualization data.
|
|
5
|
+
* @version 1.121.0
|
|
6
|
+
*/
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/base/i18n/Localization",
|
|
9
|
+
"sap/ushell/utils/HttpClient",
|
|
10
|
+
"sap/base/util/ObjectPath",
|
|
11
|
+
"sap/ushell/Config",
|
|
12
|
+
"sap/base/Log",
|
|
13
|
+
"sap/ushell/Container",
|
|
14
|
+
"sap/base/util/deepExtend",
|
|
15
|
+
"sap/ushell/adapters/cdm/v3/utilsCdm",
|
|
16
|
+
"sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils",
|
|
17
|
+
"sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations"
|
|
18
|
+
], function (
|
|
19
|
+
Localization,
|
|
20
|
+
HttpClient,
|
|
21
|
+
ObjectPath,
|
|
22
|
+
Config,
|
|
23
|
+
Log,
|
|
24
|
+
Container,
|
|
25
|
+
deepExtend,
|
|
26
|
+
utilsCdm,
|
|
27
|
+
readUtils,
|
|
28
|
+
readVisualizations
|
|
29
|
+
) {
|
|
30
|
+
"use strict";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @alias sap.ushell.utils.workpage.WorkPageService
|
|
34
|
+
* @class
|
|
35
|
+
* @classdesc Service for loading WorkPages.
|
|
36
|
+
*
|
|
37
|
+
* @since 1.121.0
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
var WorkPage = function () {
|
|
41
|
+
this.httpClient = new HttpClient();
|
|
42
|
+
this._sBaseUrl = Config.last("/core/workPages/contentApiUrl");
|
|
43
|
+
|
|
44
|
+
const oUrlParams = new URLSearchParams(window.location.search);
|
|
45
|
+
this._sSiteId = oUrlParams.get("siteId") || Config.last("/core/site/siteId");
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Validates the given page data. Returns a rejected promise if validation fails.
|
|
51
|
+
* @param {object} oPageData The page data.
|
|
52
|
+
* @returns {Promise} A promise, that is resolved if the page data is valid, else it is rejected.
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
WorkPage.prototype._validateData = function (oPageData) {
|
|
56
|
+
Log.debug("cep/editMode: load Page: validate", "Work Page service");
|
|
57
|
+
if (oPageData.errors && oPageData.errors.length > 0) {
|
|
58
|
+
return Promise.reject(oPageData.errors
|
|
59
|
+
.map(function (oError) { return oError.message; })
|
|
60
|
+
.join(",\n"));
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
if (!ObjectPath.get("data.workPage", oPageData)) {
|
|
64
|
+
Log.debug("cep/editMode: load Page: validate: reject: data is empty", "Work Page service");
|
|
65
|
+
return Promise.reject("Work Page data is empty");
|
|
66
|
+
}
|
|
67
|
+
return Promise.resolve(oPageData);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef {object} SiteData Additional visualization properties retrieved from the CDM Runtime Site
|
|
72
|
+
* @property {object} [target] The harmonized navigation target of the visualization
|
|
73
|
+
* @property {string} [targetURL] The target URL of the visualization
|
|
74
|
+
* @property {object} [dataSource] The data source for the indicator data source of the visualization
|
|
75
|
+
* @property {string} [contentProviderId] The content provider id of the visualization
|
|
76
|
+
* @property {string} [contentProviderLabel] The label for the content provider of the visualization
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @typedef {object} ExtendedVisualization An extension of a visualization retrieved from the content API
|
|
81
|
+
* @property {string} id The id of the visualization
|
|
82
|
+
* @property {string} type The type of the visualization
|
|
83
|
+
* @property {object} descriptor The descriptor of the visualization
|
|
84
|
+
* @property {object} descriptorResources The descriptor resources of the visualization
|
|
85
|
+
* @property {SiteData} [_siteData] The additional app properties retrieved from the CDM Runtime Site
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Load the WorkPage data for the given page id.
|
|
90
|
+
* Additionally, load the visualizations used on that WorkPage.
|
|
91
|
+
*
|
|
92
|
+
* @param {string} sPageId The WorkPage id.
|
|
93
|
+
* @returns {Promise<{ workPage: {usedVisualizations: { nodes: ExtendedVisualization[] }, editable: boolean}}>}
|
|
94
|
+
* A promise resolving with the loaded work page and visualizations, enhanced with app data retrieved from the CDM Runtime Site.
|
|
95
|
+
*/
|
|
96
|
+
WorkPage.prototype.loadWorkPageAndVisualizations = function (sPageId) {
|
|
97
|
+
var sQuery = "{" +
|
|
98
|
+
"workPage(" +
|
|
99
|
+
"siteId:\"" + this._sSiteId + "\"," +
|
|
100
|
+
"workPageId:\"" + sPageId + "\"" +
|
|
101
|
+
") {" +
|
|
102
|
+
"id," +
|
|
103
|
+
"contents," +
|
|
104
|
+
"editable," +
|
|
105
|
+
"usedVisualizations{" +
|
|
106
|
+
"nodes{" +
|
|
107
|
+
"id," +
|
|
108
|
+
"type," +
|
|
109
|
+
"descriptor{" +
|
|
110
|
+
"value" +
|
|
111
|
+
"}," +
|
|
112
|
+
"descriptorResources{" +
|
|
113
|
+
"baseUrl," +
|
|
114
|
+
"descriptorPath" +
|
|
115
|
+
"}" +
|
|
116
|
+
"}" +
|
|
117
|
+
"}" +
|
|
118
|
+
"}" +
|
|
119
|
+
"}";
|
|
120
|
+
return this._doRequest(sQuery)
|
|
121
|
+
.then(this._validateData)
|
|
122
|
+
.then((oPageData) => {
|
|
123
|
+
var oWorkPageData = ObjectPath.get("data.workPage.contents", oPageData);
|
|
124
|
+
var aVizData = ObjectPath.get("data.workPage.usedVisualizations.nodes", oPageData) || [];
|
|
125
|
+
var bEditable = ObjectPath.get("data.workPage.editable", oPageData) === true;
|
|
126
|
+
return this._transformVizData(aVizData).then((aTransformedVizData) => {
|
|
127
|
+
return {
|
|
128
|
+
workPage: {
|
|
129
|
+
contents: oWorkPageData,
|
|
130
|
+
usedVisualizations: { nodes: aTransformedVizData },
|
|
131
|
+
editable: bEditable
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Do the XHR request with the given query.
|
|
140
|
+
*
|
|
141
|
+
* @param {string} sQuery The query.
|
|
142
|
+
* @returns {Promise} Promise that resolves with the parsed JSON response if the request was successful, otherwise it is rejected.
|
|
143
|
+
* @private
|
|
144
|
+
*/
|
|
145
|
+
WorkPage.prototype._doRequest = function (sQuery) {
|
|
146
|
+
return this.httpClient.get(this._sBaseUrl + "?query=" + sQuery, {
|
|
147
|
+
headers: {
|
|
148
|
+
"Content-Type": "application/json",
|
|
149
|
+
Accept: "application/json",
|
|
150
|
+
"Accept-Language": Localization.getLanguageTag().toString()
|
|
151
|
+
}
|
|
152
|
+
}).then(function (oResponse) {
|
|
153
|
+
if (oResponse.status < 200 || oResponse.status >= 300) {
|
|
154
|
+
return Promise.reject("HTTP request failed with status: " + oResponse.status + " - " + oResponse.statusText);
|
|
155
|
+
}
|
|
156
|
+
return JSON.parse(oResponse.responseText || "{}");
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Transforms the visualization data in the result.
|
|
162
|
+
* <p>
|
|
163
|
+
* For all static and dynamic app launchers, the navigation target URL is
|
|
164
|
+
* set in the visualization by lookup of the target app in the CDM runtime site.
|
|
165
|
+
* For all dynamic app launchers, the path of the indicator data source in the
|
|
166
|
+
* visualization is replaced by the corresponding path of the corresponding target
|
|
167
|
+
* app which is looked up in the CDM runtime site.
|
|
168
|
+
*
|
|
169
|
+
* @param {object[]} aVizData the visualization data as retrieved from the content API in the usedVisualizations property.
|
|
170
|
+
* @returns {Promise<object[]>} Promise that resolves with the modified visualizations data.
|
|
171
|
+
* @private
|
|
172
|
+
*/
|
|
173
|
+
WorkPage.prototype._transformVizData = async function (aVizData) {
|
|
174
|
+
|
|
175
|
+
// performance optimization: load CDM site only if page contains standard app launcher visualizations
|
|
176
|
+
const oStandardAppLauncherVizData = aVizData.find(function (oVizData) {
|
|
177
|
+
return (oVizData.type === "sap.ushell.StaticAppLauncher")
|
|
178
|
+
|| (oVizData.type === "sap.ushell.DynamicAppLauncher");
|
|
179
|
+
});
|
|
180
|
+
if (!oStandardAppLauncherVizData) {
|
|
181
|
+
return Promise.resolve(aVizData);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const oCdmService = await Container.getServiceAsync("CommonDataModel");
|
|
185
|
+
const oApplications = await oCdmService.getApplications();
|
|
186
|
+
const aTransformedVizData = await Promise.all(aVizData.map((oVizData) => {
|
|
187
|
+
if (oVizData.type === "sap.ushell.StaticAppLauncher" || oVizData.type === "sap.ushell.DynamicAppLauncher") {
|
|
188
|
+
return this._setApplicationProperties(oVizData, oApplications);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return oVizData;
|
|
192
|
+
}));
|
|
193
|
+
return Promise.resolve(aTransformedVizData);
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Sets the properties which are determined from the target app in the provided visualization data.
|
|
198
|
+
* <p>
|
|
199
|
+
* Target app properties are the navigation target and targetURL, the dataSources and indicatorDataSource,
|
|
200
|
+
* and the contentProviderId.
|
|
201
|
+
*
|
|
202
|
+
* @param {object} oVizData the visualization data as retrieved from the content API in the usedVisualizations property.
|
|
203
|
+
* @param {object} oApplications the applications as returned from the CommonDataModel service.
|
|
204
|
+
* @returns {Promise<object>} a promise resolving with the visualization data extended with a <code>_siteData</code> object containing the
|
|
205
|
+
* additional properties retrieved from the CDM runtime site.
|
|
206
|
+
* @private
|
|
207
|
+
*/
|
|
208
|
+
WorkPage.prototype._setApplicationProperties = async function (oVizData, oApplications) {
|
|
209
|
+
const sAppId = ObjectPath.get(["descriptor", "value", "sap.flp", "target", "appId"], oVizData);
|
|
210
|
+
const oApplication = oApplications[sAppId];
|
|
211
|
+
const sIndicatorDataSourceName = ObjectPath.get(["descriptor", "value", "sap.flp", "indicatorDataSource", "dataSource"], oVizData);
|
|
212
|
+
const oDataSourceFromApp = ObjectPath.get(["sap.app", "dataSources", sIndicatorDataSourceName], oApplication);
|
|
213
|
+
const sContentProviderId = ObjectPath.get(["sap.app", "contentProviderId"], oApplication);
|
|
214
|
+
const sContentProviderLabel = await readUtils.getContentProviderLabel(sContentProviderId);
|
|
215
|
+
const oInstantiationVizData = {
|
|
216
|
+
vizConfig: ObjectPath.get(["descriptor", "value"], oVizData)
|
|
217
|
+
};
|
|
218
|
+
oInstantiationVizData.target = readUtils.harmonizeTarget(readVisualizations.getTarget(oInstantiationVizData) || {});
|
|
219
|
+
|
|
220
|
+
const oExtendedVizData = deepExtend({}, oVizData, {
|
|
221
|
+
_siteData: {
|
|
222
|
+
contentProviderId: sContentProviderId,
|
|
223
|
+
contentProviderLabel: sContentProviderLabel,
|
|
224
|
+
target: oInstantiationVizData.target,
|
|
225
|
+
targetURL: utilsCdm.toHashFromVizData(oInstantiationVizData, oApplications),
|
|
226
|
+
dataSource: oDataSourceFromApp
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
return oExtendedVizData;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
return WorkPage;
|
|
234
|
+
}, /*export=*/ true);
|