@sapui5/sap.ushell 1.124.3 → 1.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +29 -27
- package/src/main/js/sap/ushell/Container.js +143 -72
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +13 -10
- package/src/main/js/sap/ushell/Layout.js +7 -4
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/SessionHandler.js +35 -31
- package/src/main/js/sap/ushell/TechnicalParameters.js +5 -3
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +9 -3
- package/src/main/js/sap/ushell/UserActivityLog.js +5 -3
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +4 -4
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +2 -4
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +12 -10
- package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +8 -6
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +14 -13
- 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 +7 -5
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +15 -13
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/utilsCdm.js +34 -0
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +6 -4
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +7 -5
- 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 +10 -12
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +7 -5
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +5 -3
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +6 -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 +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 +5 -4
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +5 -4
- package/src/main/js/sap/ushell/api/RTA.js +14 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +10 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +1 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/i18n/i18n_sh.properties +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +5 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +37 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +21 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +21 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +38 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +19 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +20 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +28 -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 +25 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +8 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +20 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +18 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +16 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +14 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +24 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +18 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +23 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +21 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +28 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +19 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +15 -5
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +8 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +11 -6
- package/src/main/js/sap/ushell/components/CatalogsManager.js +28 -17
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +14 -12
- package/src/main/js/sap/ushell/components/HomepageManager.js +6 -4
- package/src/main/js/sap/ushell/components/MessagingHelper.js +5 -4
- package/src/main/js/sap/ushell/components/SharedComponentUtils.js +6 -4
- package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +6 -4
- package/src/main/js/sap/ushell/components/_HeaderManager/ShellHeader.controller.js +6 -3
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +4 -2
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +18 -23
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +6 -4
- package/src/main/js/sap/ushell/components/appfinder/Component.js +6 -4
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +10 -10
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +6 -4
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +5 -3
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +78 -3
- 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/BlueBoxesCache.js +37 -7
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +239 -94
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +3 -2
- package/src/main/js/sap/ushell/components/cards/Card.controller.js +5 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +9 -14
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/i18n/i18n_sh.properties +5 -5
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +7 -14
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_sh.properties +19 -19
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +2 -2
- package/src/main/js/sap/ushell/components/container/IframePOSTUtils.js +1 -1
- package/src/main/js/sap/ushell/components/container/resources/resources_sh.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +3 -3
- 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/resources/resources_sh.properties +3 -3
- package/src/main/js/sap/ushell/components/contentFinder/view/WidgetGallery.view.xml +3 -5
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifestAppSearch.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +2 -27
- 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 +6 -5
- package/src/main/js/sap/ushell/components/pages/Component.js +5 -4
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +9 -7
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +10 -8
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +18 -13
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +6 -5
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +31 -34
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +8 -6
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +8 -5
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +6 -4
- package/src/main/js/sap/ushell/components/shell/Search/Component.js +5 -4
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +5 -4
- 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 +10 -8
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +17 -5
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +9 -7
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/AppearanceEntry.js +6 -4
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +5 -3
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +3 -3
- package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesEntry.js +6 -4
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountEntry.js +6 -4
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +9 -7
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +6 -4
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsEntry.js +7 -5
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +11 -9
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +10 -7
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/UserLanguageRegionEntry.js +5 -3
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +6 -4
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +11 -9
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +5 -3
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +6 -4
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +5 -3
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/Component.js +3 -0
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +5 -3
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +10 -10
- 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 +6 -6
- 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 +2 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sh.properties +17 -17
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +6 -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/library.js +1 -1
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +8 -6
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/rta/i18n/i18n_sh.properties +2 -2
- package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +6 -4
- package/src/main/js/sap/ushell/renderer/History.js +1 -2
- package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +5 -3
- package/src/main/js/sap/ushell/renderer/Renderer.js +34 -35
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +37 -37
- package/src/main/js/sap/ushell/renderer/Shell.view.js +9 -4
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +8 -6
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +13 -11
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +23 -26
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +21 -24
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +4 -10
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +19 -22
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +30 -33
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +23 -26
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +28 -31
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +4 -928
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +30 -33
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +23 -26
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +18 -21
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +25 -28
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +28 -31
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +53 -56
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +29 -32
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +21 -24
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +20 -23
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +20 -23
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +20 -23
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +28 -31
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +23 -26
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +20 -23
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +25 -28
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +4 -10
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +22 -25
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +21 -24
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +33 -36
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +22 -25
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +17 -20
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +20 -23
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +21 -24
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +121 -124
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +21 -24
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +23 -26
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +4 -10
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +22 -25
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +24 -27
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +25 -28
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +22 -25
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +19 -22
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +25 -28
- package/src/main/js/sap/ushell/renderer/search/searchComponent/Component.js +4 -3
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +326 -274
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +14 -14
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/BookmarkV2.js +12 -10
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +635 -755
- package/src/main/js/sap/ushell/services/CommonDataModel.js +25 -16
- package/src/main/js/sap/ushell/services/Configuration.js +5 -4
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +2 -2
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +9 -7
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +18 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +8 -6
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +18 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +6 -4
- package/src/main/js/sap/ushell/services/Message.js +91 -412
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/MessageInternal.js +448 -0
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +2 -1
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +3 -3
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/Notifications.js +4 -2
- package/src/main/js/sap/ushell/services/NotificationsV2.js +7 -5
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +7 -5
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +234 -238
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +5 -4
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigation.js +3 -3
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +38 -56
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +8 -6
- package/src/main/js/sap/ushell/services/SpaceContent.js +16 -14
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLParsing.js +6 -4
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +89 -78
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +229 -273
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +11 -11
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +9 -6
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +16 -25
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/ParameterMapping.js +3 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +20 -24
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +52 -45
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +3 -5
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +5 -2
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +63 -80
- package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/_CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +6 -4
- 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 +3 -3
- package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +2 -2
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +32 -24
- package/src/main/js/sap/ushell/themes/sap_belize/library.source.less +10 -1
- package/src/main/js/sap/ushell/themes/sap_belize_base/.theming +4 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ActionMode.less +107 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/AddBookmarkButton.less +37 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/AnchorItem.less +81 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/AnchorNavigationBar.less +86 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/AppearanceView.less +213 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ApplicationContainer.less +37 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Catalog.less +387 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ContactSupport.less +12 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ContentFinder.less +26 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/CustomGroupHeaderListItem.less +10 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Dashboard.less +66 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/DynamicTile.less +114 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Factsheet.less +225 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/FloatingContainer.less +125 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/FlpSettings.less +83 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/GroupList.less +68 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/GroupListItem.less +54 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/IconFonts.less +21 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ImageTile.less +23 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/LoadingDialog.less +47 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/MenuBar.less +23 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Notifications.less +135 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Page.less +49 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/PictureTile.less +119 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/PictureViewer.less +25 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/PlusTile.less +38 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/QuickAccess.less +18 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/RightFloatingContainerItem.less +82 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/SearchCEP.less +121 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/SearchFLP.less +10 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Section.less +60 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellAppTitle.less +207 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellFloatingAction.less +61 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellFloatingActions.less +14 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellHeader.less +389 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellLayout.less +168 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/SidePane.less +8 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/StaticTile.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/SubHeader.less +3 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/SysInfoBar.less +164 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/TargetMappingConfiguration.less +8 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Tile.less +223 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/TileBase.less +152 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/TileContainer.less +495 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/TilePlaceholder.less +75 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/TileState.less +62 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ToolAreaItem.less +85 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/UserActionsMenu.less +23 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/UserConsentDialog.less +52 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/UserSettings.less +113 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/ViewPortContainer.less +28 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/WorkPage.less +58 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/WorkPageButton.less +60 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/WorkPageCell.less +144 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/WorkPageColumn.less +39 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/WorkPageColumnResizer.less +128 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/WorkPageRow.less +987 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/library.source.less +64 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/shared.less +40 -0
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/library.source.less +10 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/library.source.less +10 -1
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellHeader.less +9 -18
- package/src/main/js/sap/ushell/themes/sap_horizon/Tile.less +2 -6
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellHeader.less +9 -18
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellHeader.less +7 -14
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellHeader.less +7 -14
- package/src/main/js/sap/ushell/ui/AppContainer.js +5 -3
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +78 -21
- package/src/main/js/sap/ushell/ui/ContentNodeSelectorRenderer.js +32 -0
- package/src/main/js/sap/ushell/ui/ShellHeader.js +8 -5
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternal.js +1 -1
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +5 -4
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +6 -5
- package/src/main/js/sap/ushell/ui/footerbar/AboutDialog.controller.js +11 -7
- package/src/main/js/sap/ushell/ui/footerbar/AboutDialog.fragment.xml +3 -3
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +4 -4
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.controller.js +6 -4
- package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +8 -5
- package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +8 -6
- package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +10 -7
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +5 -3
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +8 -6
- package/src/main/js/sap/ushell/ui/launchpad/CatalogEntryContainer.js +7 -4
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +3 -6
- package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +14 -10
- package/src/main/js/sap/ushell/ui/launchpad/ViewPortState.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +10 -7
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceAbap.js +4 -3
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceCdm.js +5 -3
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLaunchPage.js +3 -0
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLink.js +5 -3
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +3 -8
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -2
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/DynamicTileRequest.js +9 -7
- package/src/main/js/sap/ushell/utils/UriParameters.js +43 -0
- package/src/main/js/sap/ushell/utils/UrlParsing.js +2 -4
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/WindowUtils.js +20 -5
- package/src/main/js/sap/ushell/utils/chipsUtils.js +4 -3
- package/src/main/js/sap/ushell/utils/tilecard/TileCard.js +305 -305
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +22 -5
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +7 -6
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_en.properties +5 -4
- package/src/main/js/sap/ushell/utils/workpage/resources/resources_sh.properties +21 -20
- package/src/main/js/sap/ushell/utils.js +69 -64
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +6 -8
- package/ui5.yaml +1 -1
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.control.xml +0 -26
|
@@ -34,7 +34,8 @@ sap.ui.define([
|
|
|
34
34
|
"sap/base/Log",
|
|
35
35
|
"sap/base/util/extend",
|
|
36
36
|
"sap/ui/performance/Measurement",
|
|
37
|
-
"sap/ushell/Config"
|
|
37
|
+
"sap/ushell/Config",
|
|
38
|
+
"sap/ushell/Container"
|
|
38
39
|
], function (
|
|
39
40
|
jQuery,
|
|
40
41
|
Core,
|
|
@@ -64,7 +65,8 @@ sap.ui.define([
|
|
|
64
65
|
Log,
|
|
65
66
|
extend,
|
|
66
67
|
Measurement,
|
|
67
|
-
Config
|
|
68
|
+
Config,
|
|
69
|
+
Container
|
|
68
70
|
) {
|
|
69
71
|
"use strict";
|
|
70
72
|
|
|
@@ -108,7 +110,7 @@ sap.ui.define([
|
|
|
108
110
|
return oHomepageManagerInstance;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
|
-
this.oServiceLoadingPromise =
|
|
113
|
+
this.oServiceLoadingPromise = Container.getServiceAsync("FlpLaunchPage")
|
|
112
114
|
.then(function (oLaunchPageService) {
|
|
113
115
|
this.oPageBuilderService = oLaunchPageService;
|
|
114
116
|
// add Remove action for all tiles
|
|
@@ -484,7 +486,7 @@ sap.ui.define([
|
|
|
484
486
|
delete oData.group;
|
|
485
487
|
|
|
486
488
|
function addBookmark () {
|
|
487
|
-
|
|
489
|
+
Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
|
|
488
490
|
oBookmarkService.addBookmark(oData, tileGroup)
|
|
489
491
|
.then(function () {
|
|
490
492
|
// the tile is added to our model in "_addBookmarkToModel" here we just show the success toast.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
sap.ui.define([
|
|
4
|
-
"sap/ushell/resources"
|
|
5
|
-
|
|
4
|
+
"sap/ushell/resources",
|
|
5
|
+
"sap/ushell/Container"
|
|
6
|
+
], function(resources, Container) {
|
|
6
7
|
"use strict";
|
|
7
8
|
|
|
8
9
|
return {
|
|
@@ -35,7 +36,7 @@ sap.ui.define([
|
|
|
35
36
|
* The message type (optional)
|
|
36
37
|
*/
|
|
37
38
|
function showLocalizedMessage (sMsgId, oParams, iType) {
|
|
38
|
-
|
|
39
|
+
Container.getServiceAsync("MessageInternal").then(function (oMessageService) {
|
|
39
40
|
oMessageService.show(iType || oMessageService.Type.INFO, getLocalizedText(sMsgId, oParams), oParams);
|
|
40
41
|
});
|
|
41
42
|
}
|
|
@@ -49,7 +50,7 @@ sap.ui.define([
|
|
|
49
50
|
*
|
|
50
51
|
*/
|
|
51
52
|
function showLocalizedError (sMsgId, oParams) {
|
|
52
|
-
|
|
53
|
+
Container.getServiceAsync("MessageInternal").then(function (oMessageService) {
|
|
53
54
|
oMessageService.show(oMessageService.Type.ERROR, getLocalizedText(sMsgId, oParams), oParams);
|
|
54
55
|
});
|
|
55
56
|
}
|
|
@@ -5,13 +5,15 @@ sap.ui.define([
|
|
|
5
5
|
"sap/ushell/Config",
|
|
6
6
|
"sap/ushell/EventHub",
|
|
7
7
|
"sap/base/Log",
|
|
8
|
-
"sap/ui/core/Component"
|
|
8
|
+
"sap/ui/core/Component",
|
|
9
|
+
"sap/ushell/Container"
|
|
9
10
|
], function (
|
|
10
11
|
Device,
|
|
11
12
|
Config,
|
|
12
13
|
EventHub,
|
|
13
14
|
Log,
|
|
14
|
-
Component
|
|
15
|
+
Component,
|
|
16
|
+
Container
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -91,7 +93,7 @@ sap.ui.define([
|
|
|
91
93
|
* @private
|
|
92
94
|
*/
|
|
93
95
|
_getPersonalization: function (sItem) {
|
|
94
|
-
return oSharedComponentUtils.getPersonalizer(sItem,
|
|
96
|
+
return oSharedComponentUtils.getPersonalizer(sItem, Container.getRendererInternal("fiori2"))
|
|
95
97
|
.then(function (oPersonalizer) {
|
|
96
98
|
return oPersonalizer.getPersData();
|
|
97
99
|
})
|
|
@@ -108,7 +110,7 @@ sap.ui.define([
|
|
|
108
110
|
* @private
|
|
109
111
|
*/
|
|
110
112
|
getPersonalizer: function (sItem, oComponent) {
|
|
111
|
-
return
|
|
113
|
+
return Container.getServiceAsync("PersonalizationV2")
|
|
112
114
|
.then(function (oPersonalizationService) {
|
|
113
115
|
var oOwnerComponent = Component.getOwnerComponentFor(oComponent);
|
|
114
116
|
var oScope = {
|
|
@@ -5,13 +5,15 @@ sap.ui.define([
|
|
|
5
5
|
"sap/m/library",
|
|
6
6
|
"sap/ui/core/Element",
|
|
7
7
|
"sap/ushell/EventHub",
|
|
8
|
-
"sap/ushell/resources"
|
|
9
|
-
|
|
8
|
+
"sap/ushell/resources",
|
|
9
|
+
"sap/ushell/Container"
|
|
10
|
+
], function (
|
|
10
11
|
Avatar,
|
|
11
12
|
mobileLibrary,
|
|
12
13
|
Element,
|
|
13
14
|
EventHub,
|
|
14
|
-
resources
|
|
15
|
+
resources,
|
|
16
|
+
Container
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -43,7 +45,7 @@ sap.ui.define([
|
|
|
43
45
|
|
|
44
46
|
function _createUserActionsMenuButton (oShellModel) {
|
|
45
47
|
var sId = "userActionsMenuHeaderButton",
|
|
46
|
-
oUser =
|
|
48
|
+
oUser = Container.getUser(),
|
|
47
49
|
sTooltip = resources.i18n.getText("UserActionsMenuToggleButtonAria", [oUser.getFullName() || oUser.getId()]);
|
|
48
50
|
|
|
49
51
|
var oUserActionsMenuAvatar = new Avatar({
|
|
@@ -11,7 +11,8 @@ sap.ui.define([
|
|
|
11
11
|
"sap/ushell/Config",
|
|
12
12
|
"sap/ushell/EventHub",
|
|
13
13
|
"sap/ushell/library",
|
|
14
|
-
"sap/ushell/ui/shell/OverflowListItem"
|
|
14
|
+
"sap/ushell/ui/shell/OverflowListItem",
|
|
15
|
+
"sap/ushell/Container"
|
|
15
16
|
], function (
|
|
16
17
|
mobileLibrary,
|
|
17
18
|
Element,
|
|
@@ -23,7 +24,8 @@ sap.ui.define([
|
|
|
23
24
|
Config,
|
|
24
25
|
EventHub,
|
|
25
26
|
ushellLibrary,
|
|
26
|
-
OverflowListItem
|
|
27
|
+
OverflowListItem,
|
|
28
|
+
Container
|
|
27
29
|
) {
|
|
28
30
|
"use strict";
|
|
29
31
|
|
|
@@ -131,13 +133,14 @@ sap.ui.define([
|
|
|
131
133
|
floatingNumber: (sFloatingNumberBindingPath ? { path: sFloatingNumberBindingPath } : undefined),
|
|
132
134
|
floatingNumberMaxValue: oShellHeadItem.getFloatingNumberMaxValue(),
|
|
133
135
|
floatingNumberType: oShellHeadItem.getFloatingNumberType(),
|
|
136
|
+
visible: oShellHeadItem.getVisible(),
|
|
134
137
|
press: function () {
|
|
135
138
|
if (oShellHeadItem) {
|
|
136
139
|
oShellHeadItem.firePress();
|
|
137
140
|
|
|
138
141
|
var sTarget = oShellHeadItem.getTarget();
|
|
139
142
|
if (sTarget) {
|
|
140
|
-
|
|
143
|
+
Container.getServiceAsync("Navigation").then(function (oNavService) {
|
|
141
144
|
oNavService.navigate({ target: { shellHash: sTarget } });
|
|
142
145
|
});
|
|
143
146
|
}
|
package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js
CHANGED
|
@@ -15,7 +15,8 @@ sap.ui.define([
|
|
|
15
15
|
"sap/base/Log",
|
|
16
16
|
"sap/ui/performance/Measurement",
|
|
17
17
|
"sap/m/library",
|
|
18
|
-
"sap/base/util/deepEqual"
|
|
18
|
+
"sap/base/util/deepEqual",
|
|
19
|
+
"sap/ushell/Container"
|
|
19
20
|
], function (
|
|
20
21
|
BaseObject,
|
|
21
22
|
Config,
|
|
@@ -26,7 +27,8 @@ sap.ui.define([
|
|
|
26
27
|
Log,
|
|
27
28
|
Measurement,
|
|
28
29
|
mobileLibrary,
|
|
29
|
-
deepEqual
|
|
30
|
+
deepEqual,
|
|
31
|
+
Container
|
|
30
32
|
) {
|
|
31
33
|
"use strict";
|
|
32
34
|
|
|
@@ -5,28 +5,30 @@ sap.ui.define([
|
|
|
5
5
|
"sap/ui/core/mvc/View",
|
|
6
6
|
"sap/ui/core/mvc/Controller",
|
|
7
7
|
"sap/ui/core/Component",
|
|
8
|
-
"sap/ushell/ui5service/ShellUIService",
|
|
9
8
|
"sap/ushell/EventHub",
|
|
10
9
|
"sap/ushell/components/appfinder/VisualizationOrganizerHelper",
|
|
11
10
|
"sap/ui/core/routing/HashChanger",
|
|
12
11
|
"sap/ui/thirdparty/jquery",
|
|
13
12
|
"sap/ui/model/json/JSONModel",
|
|
14
13
|
"sap/ui/Device",
|
|
15
|
-
"sap/ui/thirdparty/hasher"
|
|
14
|
+
"sap/ui/thirdparty/hasher",
|
|
15
|
+
"sap/ushell/components/applicationIntegration/AppLifeCycle",
|
|
16
|
+
"sap/ushell/Container"
|
|
16
17
|
], function (
|
|
17
18
|
extend,
|
|
18
19
|
EventBus,
|
|
19
20
|
View,
|
|
20
21
|
Controller,
|
|
21
22
|
Component,
|
|
22
|
-
ShellUIService,
|
|
23
23
|
EventHub,
|
|
24
24
|
VisualizationOrganizerHelper,
|
|
25
25
|
HashChanger,
|
|
26
26
|
jQuery,
|
|
27
27
|
JSONModel,
|
|
28
28
|
Device,
|
|
29
|
-
hasher
|
|
29
|
+
hasher,
|
|
30
|
+
AppLifeCycleAI,
|
|
31
|
+
Container
|
|
30
32
|
) {
|
|
31
33
|
"use strict";
|
|
32
34
|
|
|
@@ -54,8 +56,8 @@ sap.ui.define([
|
|
|
54
56
|
|
|
55
57
|
this.bShowEasyAccessMenu = bEnableOneEasyAccessMenu && bIsDeviceEasyAccessMenuCompatible;
|
|
56
58
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
Container.getRendererInternal("fiori2").createExtendedShellState("appFinderExtendedShellState", function () {
|
|
60
|
+
Container.getRendererInternal("fiori2").showHeaderItem("backBtn", true);
|
|
59
61
|
});
|
|
60
62
|
|
|
61
63
|
// model
|
|
@@ -283,9 +285,8 @@ sap.ui.define([
|
|
|
283
285
|
return;
|
|
284
286
|
}
|
|
285
287
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
288
|
+
Container.getRendererInternal("fiori2").applyExtendedShellState("appFinderExtendedShellState");
|
|
289
|
+
|
|
289
290
|
this._updateShellHeader(this.oView.oPage.getTitle());
|
|
290
291
|
}.bind(this), 0);
|
|
291
292
|
},
|
|
@@ -311,7 +312,7 @@ sap.ui.define([
|
|
|
311
312
|
if (this.bEnableEasyAccessOnTablet) {
|
|
312
313
|
// We need to filter out the Shell-startWDA and Shell-startGUI systems
|
|
313
314
|
// that do not support tablet
|
|
314
|
-
|
|
315
|
+
Container.getServiceAsync("NavTargetResolutionInternal").then(function (oService) {
|
|
315
316
|
// Shell-startWDA often requires the additional parameter sap-ui2-wd-app-id
|
|
316
317
|
// and Shell-startGUI requires the additional parameter sap-ui2-tcode
|
|
317
318
|
// We are providing these with a placeholder value to be able to use
|
|
@@ -617,7 +618,7 @@ sap.ui.define([
|
|
|
617
618
|
// If sPath is defined and is different than empty string - set the group context id.
|
|
618
619
|
// The recursive call is needed in order to wait until groups data is inserted to the model
|
|
619
620
|
if (sPath && sPath !== "") {
|
|
620
|
-
|
|
621
|
+
Container.getServiceAsync("FlpLaunchPage").then(function (oLaunchPageService) {
|
|
621
622
|
var timeoutGetGroupDataFromModel = function () {
|
|
622
623
|
var aModelGroups = oModel.getProperty("/groups");
|
|
623
624
|
if (aModelGroups.length) {
|
|
@@ -640,7 +641,7 @@ sap.ui.define([
|
|
|
640
641
|
*/
|
|
641
642
|
getSystems: function (sMenuType) {
|
|
642
643
|
var oDeferred = new jQuery.Deferred();
|
|
643
|
-
|
|
644
|
+
Container.getServiceAsync("ClientSideTargetResolution")
|
|
644
645
|
.then(function (oCSTRService) {
|
|
645
646
|
oCSTRService.getEasyAccessSystems(sMenuType).done(function (oSystems) {
|
|
646
647
|
var systemsModel = [];
|
|
@@ -663,19 +664,13 @@ sap.ui.define([
|
|
|
663
664
|
return oDeferred.promise();
|
|
664
665
|
},
|
|
665
666
|
|
|
666
|
-
_initializeShellUIService: function () {
|
|
667
|
-
this.oShellUIService = new ShellUIService({
|
|
668
|
-
scopeObject: this.getOwnerComponent(),
|
|
669
|
-
scopeType: "component"
|
|
670
|
-
});
|
|
671
|
-
},
|
|
672
|
-
|
|
673
667
|
_updateShellHeader: function (sTitle) {
|
|
674
|
-
|
|
675
|
-
|
|
668
|
+
//Todo: Replace with new ShellUIService once available
|
|
669
|
+
var oShellUIService = AppLifeCycleAI.getShellUIService();
|
|
670
|
+
if (oShellUIService) {
|
|
671
|
+
oShellUIService.setTitle(sTitle);
|
|
672
|
+
oShellUIService.setHierarchy();
|
|
676
673
|
}
|
|
677
|
-
this.oShellUIService.setTitle(sTitle);
|
|
678
|
-
this.oShellUIService.setHierarchy();
|
|
679
674
|
},
|
|
680
675
|
|
|
681
676
|
/**
|
|
@@ -20,7 +20,8 @@ sap.ui.define([
|
|
|
20
20
|
"sap/ushell/components/appfinder/VisualizationOrganizerHelper",
|
|
21
21
|
"sap/ushell/utils/WindowUtils",
|
|
22
22
|
"sap/ushell/EventHub",
|
|
23
|
-
"sap/base/Log"
|
|
23
|
+
"sap/base/Log",
|
|
24
|
+
"sap/ushell/Container"
|
|
24
25
|
], function (
|
|
25
26
|
extend,
|
|
26
27
|
Element,
|
|
@@ -41,7 +42,8 @@ sap.ui.define([
|
|
|
41
42
|
VisualizationOrganizerHelper,
|
|
42
43
|
WindowUtils,
|
|
43
44
|
EventHub,
|
|
44
|
-
Log
|
|
45
|
+
Log,
|
|
46
|
+
Container
|
|
45
47
|
) {
|
|
46
48
|
"use strict";
|
|
47
49
|
|
|
@@ -61,7 +63,7 @@ sap.ui.define([
|
|
|
61
63
|
/**
|
|
62
64
|
* @deprecated As of version 1.120
|
|
63
65
|
*/
|
|
64
|
-
|
|
66
|
+
Container.getServiceAsync("FlpLaunchPage").then(function (oLaunchPageService) {
|
|
65
67
|
this.oLaunchPageService = oLaunchPageService;
|
|
66
68
|
}.bind(this));
|
|
67
69
|
|
|
@@ -651,7 +653,7 @@ sap.ui.define([
|
|
|
651
653
|
url: sUrl,
|
|
652
654
|
appId: sUrl
|
|
653
655
|
};
|
|
654
|
-
|
|
656
|
+
Container.getRendererInternal("fiori2").logRecentActivity(oRecentEntry);
|
|
655
657
|
}
|
|
656
658
|
|
|
657
659
|
WindowUtils.openURL(sUrl, "_blank");
|
|
@@ -7,7 +7,8 @@ sap.ui.define([
|
|
|
7
7
|
"sap/ushell/Config",
|
|
8
8
|
"sap/ushell/bootstrap/common/common.load.model",
|
|
9
9
|
"sap/ushell/components/SharedComponentUtils",
|
|
10
|
-
"sap/base/util/UriParameters"
|
|
10
|
+
"sap/base/util/UriParameters",
|
|
11
|
+
"sap/ushell/Container"
|
|
11
12
|
], function (
|
|
12
13
|
UIComponent,
|
|
13
14
|
hasher,
|
|
@@ -16,7 +17,8 @@ sap.ui.define([
|
|
|
16
17
|
Config,
|
|
17
18
|
oModelWrapper,
|
|
18
19
|
oSharedComponentUtils,
|
|
19
|
-
UriParameters
|
|
20
|
+
UriParameters,
|
|
21
|
+
Container
|
|
20
22
|
) {
|
|
21
23
|
"use strict";
|
|
22
24
|
|
|
@@ -64,8 +66,8 @@ sap.ui.define([
|
|
|
64
66
|
sHash = hasher.getHash();
|
|
65
67
|
|
|
66
68
|
Promise.all([
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
Container.getServiceAsync("ShellNavigationInternal"),
|
|
70
|
+
Container.getServiceAsync("URLParsing")
|
|
69
71
|
]).then(function (aServices) {
|
|
70
72
|
var oShellNavigationInternal = aServices[0];
|
|
71
73
|
var oUrlParsing = aServices[1];
|
|
@@ -12,7 +12,8 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ushell/resources",
|
|
13
13
|
"sap/ui/model/json/JSONModel",
|
|
14
14
|
"sap/ushell/ui/launchpad/AccessibilityCustomData",
|
|
15
|
-
"sap/ushell/Config"
|
|
15
|
+
"sap/ushell/Config",
|
|
16
|
+
"sap/ushell/Container"
|
|
16
17
|
], function (
|
|
17
18
|
Localization,
|
|
18
19
|
Element,
|
|
@@ -25,7 +26,8 @@ sap.ui.define([
|
|
|
25
26
|
resources,
|
|
26
27
|
JSONModel,
|
|
27
28
|
AccessibilityCustomData,
|
|
28
|
-
Config
|
|
29
|
+
Config,
|
|
30
|
+
Container
|
|
29
31
|
) {
|
|
30
32
|
"use strict";
|
|
31
33
|
|
|
@@ -172,7 +174,7 @@ sap.ui.define([
|
|
|
172
174
|
// Solution for Internal incident #1770582955: After doing 'search' the results are coming from
|
|
173
175
|
// the backend and the 'bookmarkCount' property is not part of the properties there.
|
|
174
176
|
// Hence, we need to copy its previous content to the new results
|
|
175
|
-
|
|
177
|
+
Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
|
|
176
178
|
response.results.forEach(function (element) {
|
|
177
179
|
oBookmarkService.countBookmarks(element.url).then(function (count) {
|
|
178
180
|
element.bookmarkCount = count;
|
|
@@ -480,14 +482,12 @@ sap.ui.define([
|
|
|
480
482
|
var iSapClient;
|
|
481
483
|
var oDeferred = new jQuery.Deferred();
|
|
482
484
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
oRequest.requestUri += (oRequest.requestUri.indexOf("?") >= 0 ? "&" : "?") + "sap-language=" + sLanguage;
|
|
487
|
-
}
|
|
488
|
-
var oLogonSystem = sap.ushell.Container.getLogonSystem();
|
|
489
|
-
iSapClient = oLogonSystem && oLogonSystem.getClient();
|
|
485
|
+
sLanguage = Container.getUser().getLanguage();
|
|
486
|
+
if (sLanguage && oRequest.requestUri.indexOf("sap-language=") < 0) {
|
|
487
|
+
oRequest.requestUri += (oRequest.requestUri.indexOf("?") >= 0 ? "&" : "?") + "sap-language=" + sLanguage;
|
|
490
488
|
}
|
|
489
|
+
var oLogonSystem = Container.getLogonSystem();
|
|
490
|
+
iSapClient = oLogonSystem && oLogonSystem.getClient();
|
|
491
491
|
|
|
492
492
|
sap.ui.require(["sap/ui/thirdparty/datajs"], function () {
|
|
493
493
|
OData.read(
|
|
@@ -5,13 +5,15 @@ sap.ui.define([
|
|
|
5
5
|
"sap/ui/core/mvc/Controller",
|
|
6
6
|
"sap/ui/thirdparty/jquery",
|
|
7
7
|
"sap/m/MessageToast",
|
|
8
|
-
"sap/ushell/resources"
|
|
8
|
+
"sap/ushell/resources",
|
|
9
|
+
"sap/ushell/Container"
|
|
9
10
|
], function (
|
|
10
11
|
View,
|
|
11
12
|
Controller,
|
|
12
13
|
jQuery,
|
|
13
14
|
MessageToast,
|
|
14
|
-
resources
|
|
15
|
+
resources,
|
|
16
|
+
Container
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -58,7 +60,7 @@ sap.ui.define([
|
|
|
58
60
|
},
|
|
59
61
|
|
|
60
62
|
updateBookmarkCount: function (appsData) {
|
|
61
|
-
return
|
|
63
|
+
return Container.getServiceAsync("BookmarkV2")
|
|
62
64
|
.then(function (BookmarkService) {
|
|
63
65
|
var countPromiseList = appsData.map(function (appData) {
|
|
64
66
|
return BookmarkService.countBookmarks(appData.url).then(function (count) {
|
|
@@ -275,7 +277,7 @@ sap.ui.define([
|
|
|
275
277
|
var deferred = jQuery.Deferred(),
|
|
276
278
|
oResponseData = {};
|
|
277
279
|
|
|
278
|
-
|
|
280
|
+
Container.getServiceAsync("BookmarkV2").then(function (oBookmarkService) {
|
|
279
281
|
var addBookmarkPromise = oBookmarkService.addBookmark({
|
|
280
282
|
url: app.url,
|
|
281
283
|
title: app.text,
|
|
@@ -8,7 +8,8 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/model/Filter",
|
|
9
9
|
"sap/m/StandardListItem",
|
|
10
10
|
"sap/m/SelectDialog",
|
|
11
|
-
"sap/ui/core/Component"
|
|
11
|
+
"sap/ui/core/Component",
|
|
12
|
+
"sap/ushell/Container"
|
|
12
13
|
], function (
|
|
13
14
|
Controller,
|
|
14
15
|
Log,
|
|
@@ -17,7 +18,8 @@ sap.ui.define([
|
|
|
17
18
|
Filter,
|
|
18
19
|
StandardListItem,
|
|
19
20
|
SelectDialog,
|
|
20
|
-
Component
|
|
21
|
+
Component,
|
|
22
|
+
Container
|
|
21
23
|
) {
|
|
22
24
|
"use strict";
|
|
23
25
|
|
|
@@ -57,7 +59,7 @@ sap.ui.define([
|
|
|
57
59
|
|
|
58
60
|
getPersonalizer: function () {
|
|
59
61
|
if (!this.oPersonalizerPromise) {
|
|
60
|
-
this.oPersonalizerPromise =
|
|
62
|
+
this.oPersonalizerPromise = Container.getServiceAsync("PersonalizationV2")
|
|
61
63
|
.then(function (oPersonalizationService) {
|
|
62
64
|
var oComponent = Component.getOwnerComponentFor(this),
|
|
63
65
|
oScope = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview handle all the resources for the different applications.
|
|
4
|
-
* @version 1.
|
|
4
|
+
* @version 1.126.0
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/core/Element",
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
"sap/ushell/Config",
|
|
22
22
|
"sap/ushell/ApplicationType",
|
|
23
23
|
"sap/base/util/deepExtend",
|
|
24
|
-
"sap/
|
|
24
|
+
"sap/ushell/utils/UriParameters",
|
|
25
25
|
"sap/ui/thirdparty/jquery",
|
|
26
26
|
"sap/base/Log",
|
|
27
27
|
"sap/ushell/EventHub",
|
|
@@ -95,6 +95,7 @@ sap.ui.define([
|
|
|
95
95
|
},
|
|
96
96
|
oGlobalShellCommunicationHandlers = [],
|
|
97
97
|
oGlobalIframeCommunicationHandlers = {},
|
|
98
|
+
oComponentCreatedPromises = {},
|
|
98
99
|
isBackNavigationChanged = false,
|
|
99
100
|
oKeepAliveModes = {
|
|
100
101
|
FULL: "true",
|
|
@@ -122,6 +123,64 @@ sap.ui.define([
|
|
|
122
123
|
return (oCurrentApplication.appId === appId);
|
|
123
124
|
};
|
|
124
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Sets the componentCreated promise for a given appId if it does not exist yet.
|
|
128
|
+
* Returns the promise along with the resolve and reject functions.
|
|
129
|
+
* @private
|
|
130
|
+
* @since 1.125.0
|
|
131
|
+
* @param {string} sAppId The id of the created application.
|
|
132
|
+
* @returns {{
|
|
133
|
+
* promise: Promise,
|
|
134
|
+
* resolve: function,
|
|
135
|
+
* reject: function
|
|
136
|
+
* }} An object containing the promise and the resolve and reject functions.
|
|
137
|
+
*/
|
|
138
|
+
this.setComponentCreatedPromise = function (sAppId) {
|
|
139
|
+
if (!oComponentCreatedPromises[sAppId]) {
|
|
140
|
+
oComponentCreatedPromises[sAppId] = {};
|
|
141
|
+
oComponentCreatedPromises[sAppId].promise = new Promise((resolve, reject) => {
|
|
142
|
+
oComponentCreatedPromises[sAppId].resolve = resolve;
|
|
143
|
+
oComponentCreatedPromises[sAppId].reject = reject;
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return oComponentCreatedPromises[sAppId];
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Resolves the componentCreated promise for the given appId. If the promise does not yet exist, it is created.
|
|
152
|
+
* @param {string} sAppId The id of the created application.
|
|
153
|
+
* @private
|
|
154
|
+
* @since 1.125.0
|
|
155
|
+
*/
|
|
156
|
+
this.resolveComponentCreatedPromise = function (sAppId) {
|
|
157
|
+
if (!sAppId) { return; }
|
|
158
|
+
this.setComponentCreatedPromise(sAppId).resolve();
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Rejects the componentCreated promise for the given appId. If the promise does not yet exist, it is created.
|
|
163
|
+
* @param {string} sAppId The id of the created application.
|
|
164
|
+
* @private
|
|
165
|
+
* @since 1.125.0
|
|
166
|
+
*/
|
|
167
|
+
this.rejectComponentCreatedPromise = function (sAppId) {
|
|
168
|
+
if (!sAppId) { return; }
|
|
169
|
+
this.setComponentCreatedPromise(sAppId).reject("Component was not created for app " + sAppId);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Returns the componentCreated promise for the given appId. If the promise does not yet exist, it is created.
|
|
174
|
+
* @param {string} sAppId The id of the created application.
|
|
175
|
+
* @returns {Promise | undefined} The componentCreated promise for the given appId or undefined if no appId is given.
|
|
176
|
+
* @private
|
|
177
|
+
* @since 1.125.0
|
|
178
|
+
*/
|
|
179
|
+
this.getComponentCreatedPromise = function (sAppId) {
|
|
180
|
+
if (!sAppId) { return; }
|
|
181
|
+
return this.setComponentCreatedPromise(sAppId).promise;
|
|
182
|
+
};
|
|
183
|
+
|
|
125
184
|
this.isAppWithSimilarShellHashInCache = function (appId, sFixedShellHash) {
|
|
126
185
|
var oAppEntry = Storage.get(appId);
|
|
127
186
|
|
|
@@ -162,6 +221,8 @@ sap.ui.define([
|
|
|
162
221
|
oApp.active();
|
|
163
222
|
}
|
|
164
223
|
}
|
|
224
|
+
|
|
225
|
+
this.resolveComponentCreatedPromise(sAppId);
|
|
165
226
|
};
|
|
166
227
|
|
|
167
228
|
this.onGetMe = function (oEvent, sChannel, oData) {
|
|
@@ -319,9 +380,13 @@ sap.ui.define([
|
|
|
319
380
|
}
|
|
320
381
|
|
|
321
382
|
if (sFromId && oFrom) {
|
|
383
|
+
// STATEFUL
|
|
322
384
|
if (BlueBoxHandler.isStatefulContainer(oFrom)) {
|
|
323
385
|
oPromiseAppClose = this.handleExitStateful(sFromId, oFrom, isHomePage);
|
|
386
|
+
|
|
387
|
+
//STATELESS
|
|
324
388
|
} else if (Storage.get(sFromId)) {
|
|
389
|
+
// Back Navigation Case
|
|
325
390
|
if (RelatedServices.isBackNavigation() === true && !isHomePage) {
|
|
326
391
|
//check if the Iframe needs to be cached instead of destroy
|
|
327
392
|
if (!BlueBoxHandler.returnUnusedKeepAliveContainer(oFrom)) {
|
|
@@ -331,14 +396,24 @@ sap.ui.define([
|
|
|
331
396
|
} else {
|
|
332
397
|
oPromiseAppClose = this.handleExitStateful(sFromId, oFrom, isHomePage);
|
|
333
398
|
}
|
|
399
|
+
|
|
400
|
+
// Forward Navigation Cases
|
|
401
|
+
} else if (oFrom.getApplicationType() === "UI5") {
|
|
402
|
+
// Wait until navigation's source app has been started completey, so that a later back navigation finds a proper app that
|
|
403
|
+
// can be re-enabled (keep-alive scenario)
|
|
404
|
+
oPromiseAppClose = this.getComponentCreatedPromise(sFromId).then(() => { this.store(sFromId); });
|
|
334
405
|
} else {
|
|
335
406
|
this.store(sFromId);
|
|
336
407
|
}
|
|
337
408
|
EventBus.getInstance().publish("sap.ushell", "appClosed", oFrom);
|
|
409
|
+
|
|
410
|
+
// LEGACY STATEFUL (WebGUI)
|
|
338
411
|
} else if (oFrom.getStatefulType && oFrom.getStatefulType() === BlueBoxHandler.STATEFUL_TYPES.GUI_V1) {
|
|
339
412
|
if (isHomePage) {
|
|
340
413
|
oPromiseAppClose = PostMessageUtils.postMessageToIframeApp(oFrom, "sap.gui", "triggerCloseSessionImmediately");
|
|
341
414
|
}
|
|
415
|
+
|
|
416
|
+
// THE REST...
|
|
342
417
|
} else {
|
|
343
418
|
bIsAppOfTypeCachable = aCachedAppTypes.indexOf(oFrom.getApplicationType) >= 0;
|
|
344
419
|
|
|
@@ -488,7 +563,7 @@ sap.ui.define([
|
|
|
488
563
|
}
|
|
489
564
|
|
|
490
565
|
//In order to enable application to play with the keep alive, we read the keep attribute of the hash, if it is true application is cachable.
|
|
491
|
-
sKeepAlive =
|
|
566
|
+
sKeepAlive = new URLSearchParams(window.location.search).get("sap-keep-alive");
|
|
492
567
|
if (sKeepAlive === oKeepAliveModes.FULL || sKeepAlive === oKeepAliveModes.RESTRICTED) {
|
|
493
568
|
if (oKeepAliveMode) {
|
|
494
569
|
oKeepAliveMode.globalValue = sKeepAlive;
|