@sapui5/sap.ushell 1.119.3 → 1.120.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +3 -3
- package/src/main/js/sap/ushell/Container.js +272 -41
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +3 -2
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/SessionHandler.js +11 -6
- package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/User.js +26 -35
- package/src/main/js/sap/ushell/_ApplicationType/urlTemplateResolution.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +15 -11
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +16 -11
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +18 -0
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +24 -18
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +4 -7
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +17 -22
- 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 +19 -0
- 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 -7
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +8 -8
- package/src/main/js/sap/ushell/api/RTA.js +47 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +12 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeContext.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-dev.js +6 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ushell.js +3 -0
- package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +34 -2
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +7 -2
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +1 -1
- package/src/main/js/sap/ushell/components/HomepageManager.js +5 -5
- package/src/main/js/sap/ushell/components/SharedComponentUtils.js +7 -10
- package/src/main/js/sap/ushell/components/_HeaderManager/ShellHeader.controller.js +3 -3
- package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +5 -0
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +5 -0
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +5 -0
- package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +5 -0
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +3 -3
- package/src/main/js/sap/ushell/components/appfinder/EasyAccessView.js +0 -8
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +4 -4
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +18 -16
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +1 -1
- package/src/main/js/sap/ushell/components/cards/Card.controller.js +2 -2
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +92 -71
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +4 -4
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homeApp/error/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +5 -5
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/StateManager.js +37 -24
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +7 -4
- 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 +6 -7
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +39 -13
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +3 -3
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +5 -5
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +25 -45
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +3 -3
- 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 +4 -4
- package/src/main/js/sap/ushell/components/shell/Settings/ProfilingLoader.js +4 -0
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +4 -0
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +4 -3
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +10 -13
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +13 -22
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +11 -14
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +2 -2
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +4 -6
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +14 -18
- 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 +16 -12
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +3 -3
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +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 +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/AccessKeysHandler.js +1 -1
- package/src/main/js/sap/ushell/renderer/History.js +84 -0
- package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +96 -0
- package/src/main/js/sap/ushell/renderer/Renderer.js +2851 -0
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +3155 -0
- package/src/main/js/sap/ushell/{renderers/fiori2/ShellAsync.view.js → renderer/Shell.view.js} +29 -18
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/ShellLayout.js +3 -3
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/allMyApps/AllMyApps.controller.js +4 -4
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/allMyApps/AllMyApps.view.xml +1 -1
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsKeyboardHandler.js +108 -0
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +453 -0
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources.properties +4 -0
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/Component.js +3 -3
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/controller/CEPSearchApp.controller.js +1 -1
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/controller/SearchApp.controller.js +1 -1
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/manifest.json +2 -2
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/view/CEPSearchApp.view.js +2 -2
- package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/searchComponent/view/SearchApp.view.js +2 -2
- package/src/main/js/sap/ushell/renderers/fiori2/History.js +7 -68
- package/src/main/js/sap/ushell/renderers/fiori2/LogonFrameProvider.js +9 -79
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +101 -1882
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +2 -3
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.controller.js +8 -3130
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +7 -7
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsKeyboardHandler.js +7 -92
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsManager.js +8 -438
- package/src/main/js/sap/ushell/resources.js +1 -1
- package/src/main/js/sap/ushell/services/AllMyApps.js +16 -7
- package/src/main/js/sap/ushell/services/AppConfiguration.js +12 -0
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +11 -14
- package/src/main/js/sap/ushell/services/AppState.js +12 -8
- package/src/main/js/sap/ushell/services/Bookmark.js +15 -13
- package/src/main/js/sap/ushell/services/BookmarkV2.js +919 -0
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +229 -241
- package/src/main/js/sap/ushell/services/CommonDataModel.js +14 -4
- package/src/main/js/sap/ushell/services/Configuration.js +12 -11
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +13 -10
- package/src/main/js/sap/ushell/services/Container.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +8 -6
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +16 -10
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/FloatingContainer.js +103 -0
- package/src/main/js/sap/ushell/services/Extension/Footer.js +61 -0
- package/src/main/js/sap/ushell/services/Extension/Header.js +193 -0
- package/src/main/js/sap/ushell/services/Extension/Item.js +195 -0
- package/src/main/js/sap/ushell/services/Extension/SidePane.js +155 -0
- package/src/main/js/sap/ushell/services/Extension/ToolArea.js +152 -0
- package/src/main/js/sap/ushell/services/Extension.js +381 -0
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +48 -59
- package/src/main/js/sap/ushell/services/Message.js +15 -14
- package/src/main/js/sap/ushell/services/MessageBroker.js +12 -12
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +48 -70
- package/src/main/js/sap/ushell/services/Navigation/utils.js +565 -0
- package/src/main/js/sap/ushell/services/Navigation.js +152 -139
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +11 -8
- package/src/main/js/sap/ushell/services/Notifications.js +118 -1523
- package/src/main/js/sap/ushell/services/NotificationsV2.js +1872 -0
- package/src/main/js/sap/ushell/services/PageBuilding.js +11 -8
- package/src/main/js/sap/ushell/services/PagePersistence.js +11 -8
- package/src/main/js/sap/ushell/services/PageReferencing.js +11 -8
- package/src/main/js/sap/ushell/services/Pages.js +11 -15
- package/src/main/js/sap/ushell/services/Personalization.js +5 -3
- package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +410 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +109 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/TransientPersonalizer.js +57 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/Variant.js +180 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSet.js +296 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.js +125 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +71 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +172 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.js +23 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.private.js +18 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2/utils.js +233 -0
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +641 -0
- package/src/main/js/sap/ushell/services/PluginManager.js +47 -55
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +61 -54
- package/src/main/js/sap/ushell/services/Search.js +15 -2
- package/src/main/js/sap/ushell/services/SearchCEP.js +40 -44
- package/src/main/js/sap/ushell/services/SearchableContent.js +9 -9
- package/src/main/js/sap/ushell/services/ShellNavigation.js +14 -13
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +9 -10
- package/src/main/js/sap/ushell/services/SupportTicket.js +14 -14
- package/src/main/js/sap/ushell/services/UITracer.js +31 -35
- package/src/main/js/sap/ushell/services/URLParsing.js +9 -11
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +14 -13
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +29 -26
- package/src/main/js/sap/ushell/services/UsageAnalytics.js +6 -0
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +11 -7
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +20 -26
- package/src/main/js/sap/ushell/services/UserInfo.js +44 -23
- package/src/main/js/sap/ushell/services/UserRecents.js +13 -5
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +12 -9
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +10 -8
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +3 -4
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +4 -4
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/_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 +2 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +6 -0
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +5 -1
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +13 -9
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +17 -13
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +5 -0
- package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +5 -1
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +4 -0
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +17 -9
- package/src/main/js/sap/ushell/services/_Personalization/VariantSetAdapter.js +4 -6
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapter.js +5 -44
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapterContainer.js +5 -101
- package/src/main/js/sap/ushell/services/_Personalization/constants.js +3 -0
- package/src/main/js/sap/ushell/services/_Personalization/constants.private.js +3 -0
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +3 -0
- 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 +29 -5
- package/src/main/js/sap/ushell/services/_UserRecents/UserRecentsBase.js +19 -27
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstance.js +4 -0
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceAbap.js +3 -0
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +1 -1
- package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +13 -15
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellAppTitle.less +4 -4
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellAppTitle.less +4 -4
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellAppTitle.less +2 -2
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellAppTitle.less +2 -2
- package/src/main/js/sap/ushell/ui/AppContainer.js +2 -2
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +2 -2
- package/src/main/js/sap/ushell/ui/ShellHeader.js +2 -2
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +8 -12
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +21 -8
- package/src/main/js/sap/ushell/ui/launchpad/TileState.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory.js +14 -26
- package/src/main/js/sap/ushell/utils/Deferred.js +88 -0
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/WindowUtils.js +8 -8
- package/src/main/js/sap/ushell/utils.js +31 -67
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +7 -2
- package/ui5.yaml +8 -2
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/HeadEndItemsOverflowPopover.fragment.xml +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ar.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_bg.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ca.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_cs.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_cy.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_da.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_de.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_el.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_GB.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_US_sappsd.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_US_saprigi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_en_US_saptrc.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_es.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_es_MX.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_et.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_fi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_fr.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_fr_CA.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_hi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_hr.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_hu.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_id.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_it.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_iw.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ja.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_kk.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ko.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_lt.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_lv.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ms.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_nl.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_no.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_pl.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_pt.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_pt_PT.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ro.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_ru.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sh.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sk.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sl.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_sv.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_th.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_tr.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_uk.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_vi.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_zh_CN.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/resources/resources_zh_TW.properties +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/search/util.js +0 -0
- /package/src/main/js/sap/ushell/{renderers/fiori2 → renderer}/utils.js +0 -0
package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file RuntimeSwitcher's controller for RuntimeSwitcher's view
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.120.1
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/mvc/Controller",
|
|
9
|
-
"sap/ushell/components/pages/controller/PagesAndSpaceId"
|
|
9
|
+
"sap/ushell/components/pages/controller/PagesAndSpaceId",
|
|
10
|
+
"sap/base/util/UriParameters"
|
|
10
11
|
], function (
|
|
11
12
|
Controller,
|
|
12
|
-
PagesAndSpaceId
|
|
13
|
+
PagesAndSpaceId,
|
|
14
|
+
UriParameters
|
|
13
15
|
) {
|
|
14
16
|
"use strict";
|
|
15
17
|
|
|
@@ -65,7 +67,8 @@
|
|
|
65
67
|
return oMenuService.isWorkPage(sPageId);
|
|
66
68
|
})
|
|
67
69
|
.then(function (bIsWorkPage) {
|
|
68
|
-
|
|
70
|
+
// allow to force using the workpages runtime via URL parameter
|
|
71
|
+
if (bIsWorkPage || UriParameters.fromQuery(window.location.search).get("sap-ushell-rt") === "workpage") {
|
|
69
72
|
this._toggleToWorkPagesRuntime();
|
|
70
73
|
} else {
|
|
71
74
|
this._toggleToPagesRuntime();
|
|
@@ -106,7 +106,7 @@ sap.ui.define([
|
|
|
106
106
|
var oDestinationIntent = this._getNestedMenuEntryByUid(aMenuEntries, sSelectedMenuEntryKey);
|
|
107
107
|
|
|
108
108
|
if (oDestinationIntent.type === "IBN") {
|
|
109
|
-
this.
|
|
109
|
+
this._performNavigation(oDestinationIntent.target);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
if (oDestinationIntent.type === "URL") {
|
|
@@ -155,11 +155,10 @@ sap.ui.define([
|
|
|
155
155
|
},
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
|
-
* Performs a
|
|
159
|
-
* CrossApplicationNavigation service.
|
|
158
|
+
* Performs a navigation to the provided intent using the Navigation service.
|
|
160
159
|
*
|
|
161
160
|
* @param {object} destinationTarget
|
|
162
|
-
* The destination target which is used for the
|
|
161
|
+
* The destination target which is used for the Navigation
|
|
163
162
|
*
|
|
164
163
|
* @returns {Promise<undefined>}
|
|
165
164
|
* A promise which is resolved after the CrossAppNavigation is performed
|
|
@@ -167,8 +166,8 @@ sap.ui.define([
|
|
|
167
166
|
* @private
|
|
168
167
|
* @since 1.74.0
|
|
169
168
|
*/
|
|
170
|
-
|
|
171
|
-
return sap.ushell.Container.getServiceAsync("
|
|
169
|
+
_performNavigation: function (destinationTarget) {
|
|
170
|
+
return sap.ushell.Container.getServiceAsync("Navigation").then(function (oNavigationService) {
|
|
172
171
|
var oParams = {};
|
|
173
172
|
destinationTarget.parameters.forEach(function (oParameter) {
|
|
174
173
|
if (oParameter.name && oParameter.value) {
|
|
@@ -176,7 +175,7 @@ sap.ui.define([
|
|
|
176
175
|
}
|
|
177
176
|
});
|
|
178
177
|
|
|
179
|
-
|
|
178
|
+
oNavigationService.navigate({
|
|
180
179
|
target: {
|
|
181
180
|
semanticObject: destinationTarget.semanticObject,
|
|
182
181
|
action: destinationTarget.action
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"sap.app": {
|
|
4
4
|
"id": "sap.ushell.components.shell.MenuBar",
|
|
5
5
|
"applicationVersion": {
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.120.1"
|
|
7
7
|
},
|
|
8
8
|
"i18n": {
|
|
9
|
-
"bundleUrl": "../../../
|
|
9
|
+
"bundleUrl": "../../../renderer/resources/resources.properties",
|
|
10
10
|
"supportedLocales": [
|
|
11
11
|
"",
|
|
12
12
|
"ar",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview Controller for the NavigationBarMenu Popover. It is responsible for Popover handling, model binding, persistence
|
|
5
5
|
* logic to pin, unpin and rearrange pinned spaces as well as executing navigation.
|
|
6
6
|
*
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.120.1
|
|
8
8
|
* @private
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define([
|
|
@@ -172,10 +172,37 @@ sap.ui.define([
|
|
|
172
172
|
*/
|
|
173
173
|
unpinAllSpaces: function () {
|
|
174
174
|
var oPinnedSpaces = this.byId("PinnedSpaces");
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
var aNavBarItems = oPinnedSpaces.getModel("spaces").getData();
|
|
176
|
+
aNavBarItems = aNavBarItems.map(function (oNavBarItem) {
|
|
177
|
+
oNavBarItem.pinnedSortOrder = parseInt(oNavBarItem.pinnedSortOrder, 10);
|
|
178
|
+
return oNavBarItem;
|
|
179
|
+
});
|
|
180
|
+
var aSpacesToUnpin = aNavBarItems.sort(function (oItemA, oItemB) {
|
|
181
|
+
if (oItemA.pinnedSortOrder < oItemB.pinnedSortOrder) {
|
|
182
|
+
return -1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (oItemA.pinnedSortOrder > oItemB.pinnedSortOrder) {
|
|
186
|
+
return 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return 0;
|
|
190
|
+
});
|
|
191
|
+
var oSpaceToUnpin;
|
|
192
|
+
var bRemovableSpace = false;
|
|
193
|
+
for (var i = 0; i < aSpacesToUnpin.length; ++i) {
|
|
194
|
+
oSpaceToUnpin = aSpacesToUnpin[i];
|
|
195
|
+
|
|
196
|
+
if (bRemovableSpace) {
|
|
197
|
+
oSpaceToUnpin.pinned = false;
|
|
198
|
+
oSpaceToUnpin.pinnedSortOrder = "-1";
|
|
199
|
+
} else {
|
|
200
|
+
oSpaceToUnpin.pinnedSortOrder = "" + oSpaceToUnpin.pinnedSortOrder;
|
|
201
|
+
if (oSpaceToUnpin.type === "separator") {
|
|
202
|
+
bRemovableSpace = true;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
179
206
|
this._savePinnedSpaces();
|
|
180
207
|
},
|
|
181
208
|
|
|
@@ -397,11 +424,10 @@ sap.ui.define([
|
|
|
397
424
|
},
|
|
398
425
|
|
|
399
426
|
/**
|
|
400
|
-
* Performs a
|
|
401
|
-
* CrossApplicationNavigation service.
|
|
427
|
+
* Performs a navigation to the provided intent using the Navigation service.
|
|
402
428
|
*
|
|
403
429
|
* @param {object} oDestinationTarget
|
|
404
|
-
* The destination target which is used for the
|
|
430
|
+
* The destination target which is used for the navigation
|
|
405
431
|
*
|
|
406
432
|
* @returns {Promise}
|
|
407
433
|
* A promise which is resolved after the CrossAppNavigation is performed
|
|
@@ -409,9 +435,9 @@ sap.ui.define([
|
|
|
409
435
|
* @private
|
|
410
436
|
* @since 1.114.0
|
|
411
437
|
*/
|
|
412
|
-
|
|
413
|
-
return sap.ushell.Container.getServiceAsync("
|
|
414
|
-
.then(function (
|
|
438
|
+
_performNavigation: function (oDestinationTarget) {
|
|
439
|
+
return sap.ushell.Container.getServiceAsync("Navigation")
|
|
440
|
+
.then(function (oNavigationService) {
|
|
415
441
|
var oParams = {};
|
|
416
442
|
oDestinationTarget.parameters.forEach(function (oParameter) {
|
|
417
443
|
if (oParameter.name && oParameter.value) {
|
|
@@ -419,7 +445,7 @@ sap.ui.define([
|
|
|
419
445
|
}
|
|
420
446
|
});
|
|
421
447
|
|
|
422
|
-
return
|
|
448
|
+
return oNavigationService.navigate({
|
|
423
449
|
target: {
|
|
424
450
|
semanticObject: oDestinationTarget.semanticObject,
|
|
425
451
|
action: oDestinationTarget.action
|
|
@@ -465,7 +491,7 @@ sap.ui.define([
|
|
|
465
491
|
if (oListItem.isLeaf()) {
|
|
466
492
|
// Intent based navigation
|
|
467
493
|
if (oListItemModelEntry.type === "IBN") {
|
|
468
|
-
this.
|
|
494
|
+
this._performNavigation(oListItemModelEntry.target)
|
|
469
495
|
.then(this.closeNavigationBarMenuPopover.bind(this));
|
|
470
496
|
}
|
|
471
497
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"sap.app": {
|
|
4
4
|
"id": "sap.ushell.components.shell.NavigationBarMenu",
|
|
5
5
|
"applicationVersion": {
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.120.1"
|
|
7
7
|
},
|
|
8
8
|
"i18n": {
|
|
9
|
-
"bundleUrl": "../../../
|
|
9
|
+
"bundleUrl": "../../../renderer/resources/resources.properties",
|
|
10
10
|
"fallbackLocale": "en"
|
|
11
11
|
},
|
|
12
12
|
"type": "component",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"i18n": {
|
|
41
41
|
"type": "sap.ui.model.resource.ResourceModel",
|
|
42
42
|
"settings": {
|
|
43
|
-
"bundleName": "sap.ushell.
|
|
43
|
+
"bundleName": "sap.ushell.renderer.resources.resources"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
|
|
45
45
|
return UIComponent.extend("sap.ushell.components.shell.Notifications.Component", {
|
|
46
46
|
metadata: {
|
|
47
|
-
version: "1.
|
|
47
|
+
version: "1.120.1",
|
|
48
48
|
library: "sap.ushell.components.shell.Notifications",
|
|
49
49
|
dependencies: {
|
|
50
50
|
libs: ["sap.m"]
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
this._aTimeouts = [];
|
|
56
56
|
this.oRenderer = sap.ushell.Container.getRenderer("fiori2");
|
|
57
57
|
this.oShellModel = this.oRenderer.shellCtrl.getModel();
|
|
58
|
-
sap.ushell.Container.getServiceAsync("
|
|
58
|
+
sap.ushell.Container.getServiceAsync("NotificationsV2").then(function (oNotificationsService) {
|
|
59
59
|
|
|
60
60
|
this.oNotificationsService = oNotificationsService;
|
|
61
61
|
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
this.oNotificationsService.init();
|
|
66
66
|
if (this.oRenderer.getShellConfig().enableNotificationsUI === true) {
|
|
67
67
|
this.oShellModel.setProperty("/enableNotificationsUI", true);
|
|
68
|
-
this.oNotificationsService.
|
|
68
|
+
this.oNotificationsService.registerNotificationsUpdateCallback(this._updateCount.bind(this), true);
|
|
69
69
|
}
|
|
70
70
|
this._createNotificationButton(this.oShellModel);
|
|
71
71
|
//ElementsModel, not shell model. Need only 3 state, for this reason call directly
|
|
@@ -143,9 +143,9 @@ sap.ui.define([
|
|
|
143
143
|
// Update the notifications count in the UI
|
|
144
144
|
// The new count is also displayed when the notifications popover is already opened
|
|
145
145
|
_updateCount: function () {
|
|
146
|
-
this.oNotificationsService.getUnseenNotificationsCount().
|
|
146
|
+
this.oNotificationsService.getUnseenNotificationsCount().then(function (iNumberOfNotifications) {
|
|
147
147
|
this.oShellModel.setProperty("/notificationsCount", parseInt(iNumberOfNotifications, 10));
|
|
148
|
-
}.bind(this)).
|
|
148
|
+
}.bind(this)).catch(function (data) {
|
|
149
149
|
Log.error("Notifications - call to notificationsService.getCount failed: ", data);
|
|
150
150
|
});
|
|
151
151
|
},
|
|
@@ -169,7 +169,7 @@ sap.ui.define([
|
|
|
169
169
|
// Fetch a buffer of notification items from notification service
|
|
170
170
|
oPromise = this.oNotificationsService.getNotificationsBufferBySortingType(sCurrentSorting, iNumberOfItemsInModel, iNumberOfItemsToFetch);
|
|
171
171
|
|
|
172
|
-
oPromise.
|
|
172
|
+
oPromise.then(function (oResult) {
|
|
173
173
|
var dNotificationsUserSettingsAvailability = this.oNotificationsService._getNotificationSettingsAvailability();
|
|
174
174
|
if (dNotificationsUserSettingsAvailability.state() === "pending") {
|
|
175
175
|
this.oNotificationsService._userSettingInitialization();
|
|
@@ -177,7 +177,7 @@ sap.ui.define([
|
|
|
177
177
|
this.addBufferToModel(sCurrentSorting, oResult);
|
|
178
178
|
}.bind(this));
|
|
179
179
|
|
|
180
|
-
oPromise.
|
|
180
|
+
oPromise.catch(function (/*oResult*/) {
|
|
181
181
|
if (iNumberOfItemsInModel === 0) {
|
|
182
182
|
this.removeBusyIndicatorToTabFilter(sCurrentSorting);
|
|
183
183
|
this.handleError();
|
|
@@ -210,11 +210,11 @@ sap.ui.define([
|
|
|
210
210
|
// Fetch a buffer of notification items from notification service
|
|
211
211
|
oPromise = this.oNotificationsService.getNotificationsBufferInGroup(selectedTypeId, iNumberOfItemsInModel, this.iMaxNotificationItemsForDevice);
|
|
212
212
|
|
|
213
|
-
oPromise.
|
|
213
|
+
oPromise.then(function (oResult) {
|
|
214
214
|
this.addTypeBufferToModel(selectedTypeId, oResult, false);
|
|
215
215
|
}.bind(this));
|
|
216
216
|
|
|
217
|
-
oPromise.
|
|
217
|
+
oPromise.catch(function (/*oResult*/) {
|
|
218
218
|
this.getNextBufferFailHandler(sSortingType);
|
|
219
219
|
}.bind(this));
|
|
220
220
|
},
|
|
@@ -321,9 +321,8 @@ sap.ui.define([
|
|
|
321
321
|
* - Registered as callback using a call to this.oNotificationsService.registerNotificationsUpdateCallback
|
|
322
322
|
* - Called by Notifications service when updated notifications data is obtained
|
|
323
323
|
* - Gets the updated notifications array and sets the model accordingly
|
|
324
|
-
* @param {object} oDependenciesDeferred Dependencies promise
|
|
325
324
|
*/
|
|
326
|
-
notificationsUpdateCallback: function (
|
|
325
|
+
notificationsUpdateCallback: function () {
|
|
327
326
|
var that = this,
|
|
328
327
|
sCurrentSorting = this.sCurrentSorting,
|
|
329
328
|
aCurrentItems,
|
|
@@ -332,10 +331,6 @@ sap.ui.define([
|
|
|
332
331
|
|
|
333
332
|
if (sCurrentSorting === this.oSortingType.NOTIFICATIONS_BY_TYPE_DESCENDING) {
|
|
334
333
|
this.notificationsUpdateCallbackForType();
|
|
335
|
-
|
|
336
|
-
// If there is any flow in any module that depends on this flow - release it
|
|
337
|
-
// see notification service private API registerDependencyNotificationsUpdateCallback
|
|
338
|
-
oDependenciesDeferred.resolve();
|
|
339
334
|
return;
|
|
340
335
|
}
|
|
341
336
|
|
|
@@ -350,18 +345,14 @@ sap.ui.define([
|
|
|
350
345
|
|
|
351
346
|
iNumberOfItemsToFetch = this.getNumberOfItemsToFetchOnUpdate(iNumberOfItemsInModel);
|
|
352
347
|
|
|
353
|
-
this.oNotificationsService.getNotificationsBufferBySortingType(sCurrentSorting, 0, iNumberOfItemsToFetch).
|
|
348
|
+
this.oNotificationsService.getNotificationsBufferBySortingType(sCurrentSorting, 0, iNumberOfItemsToFetch).then(function (aNotifications) {
|
|
354
349
|
if (!aNotifications) {
|
|
355
350
|
return;
|
|
356
351
|
}
|
|
357
352
|
|
|
358
|
-
// If there is any flow in any module that depends on this flow - release it
|
|
359
|
-
// see notification service private API registerDependencyNotificationsUpdateCallback
|
|
360
|
-
oDependenciesDeferred.resolve();
|
|
361
|
-
|
|
362
353
|
// Updating the model with the updated array of notification objects
|
|
363
354
|
that.replaceItemsInModel(sCurrentSorting, aNotifications, iNumberOfItemsToFetch);
|
|
364
|
-
}).
|
|
355
|
+
}).catch(function (data) {
|
|
365
356
|
Log.error("Notifications control - call to notificationsService.getNotificationsBufferBySortingType failed: ",
|
|
366
357
|
data,
|
|
367
358
|
"sap.ushell.components.shell.Notifications.Notifications");
|
|
@@ -423,10 +414,10 @@ sap.ui.define([
|
|
|
423
414
|
var oPromise = this.oNotificationsService.getNotificationsGroupHeaders(),
|
|
424
415
|
that = this,
|
|
425
416
|
aGroups = that.getView().getModel().getProperty("/" + that.oSortingType.NOTIFICATIONS_BY_TYPE_DESCENDING);
|
|
426
|
-
oPromise.
|
|
417
|
+
oPromise.catch(function (data) {
|
|
427
418
|
Log.error("Notifications control - call to notificationsService.updateGroupHeaders failed: ", data, "sap.ushell.components.shell.Notifications.Notifications");
|
|
428
419
|
});
|
|
429
|
-
oPromise.
|
|
420
|
+
oPromise.then(function (notificationsByType) {
|
|
430
421
|
var oJson = JSON.parse(notificationsByType),
|
|
431
422
|
arr = oJson.value;
|
|
432
423
|
|
|
@@ -449,24 +440,13 @@ sap.ui.define([
|
|
|
449
440
|
|
|
450
441
|
updateNotificationsByDate: function () {
|
|
451
442
|
var iTop = this.getNumberOfItemsToFetchOnScroll(this.sCurrentSorting);
|
|
452
|
-
var aCurrentNotifications = this.getView().getModel().getProperty("/" + this.sCurrentSorting);
|
|
453
443
|
|
|
454
444
|
this.oNotificationsService.getNotificationsBufferBySortingType(this.sCurrentSorting, 0, iTop)
|
|
455
|
-
.
|
|
456
|
-
|
|
457
|
-
for (var i = 0; i < aCurrentNotifications.length; i++) {
|
|
458
|
-
if (aCurrentNotifications[i].Id === item.Id) {
|
|
459
|
-
// Add item at the beginning of the current list of notifications if it did not yet exist.
|
|
460
|
-
aCurrentNotifications.unshift(item);
|
|
461
|
-
break;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
|
|
466
|
-
this.getView().getModel().setProperty("/" + this.sCurrentSorting, aCurrentNotifications);
|
|
445
|
+
.then(function (aNotifications) {
|
|
446
|
+
this.getView().getModel().setProperty("/" + this.sCurrentSorting + "/aNotifications", aNotifications);
|
|
467
447
|
this.removeBusyIndicatorToTabFilter(this.oSortingType.NOTIFICATIONS_BY_DATE_DESCENDING);
|
|
468
448
|
}.bind(this))
|
|
469
|
-
.
|
|
449
|
+
.catch(function (error) {
|
|
470
450
|
Log.error("Notifications control - call to notificationsService.getNotificationsBufferBySortingType failed: ", error, "sap.ushell.components.shell.Notifications.Notifications");
|
|
471
451
|
this.removeBusyIndicatorToTabFilter(this.oSortingType.NOTIFICATIONS_BY_DATE_DESCENDING);
|
|
472
452
|
}.bind(this));
|
|
@@ -475,11 +455,11 @@ sap.ui.define([
|
|
|
475
455
|
reloadGroupHeaders: function () {
|
|
476
456
|
var oPromise = this.oNotificationsService.getNotificationsGroupHeaders(),
|
|
477
457
|
that = this;
|
|
478
|
-
oPromise.
|
|
458
|
+
oPromise.catch(function (data) {
|
|
479
459
|
Log.error("Notifications control - call to notificationsService.getNotificationsGroupHeaders failed: ", data, "sap.ushell.components.shell.Notifications.Notifications");
|
|
480
460
|
that.removeBusyIndicatorToTabFilter(that.oSortingType.NOTIFICATIONS_BY_TYPE_DESCENDING);
|
|
481
461
|
});
|
|
482
|
-
oPromise.
|
|
462
|
+
oPromise.then(function (notificationsByType) {
|
|
483
463
|
var oJson = JSON.parse(notificationsByType),
|
|
484
464
|
arr = oJson.value,
|
|
485
465
|
result = [];
|
|
@@ -497,7 +477,7 @@ sap.ui.define([
|
|
|
497
477
|
markRead: function (sNotificationId) {
|
|
498
478
|
var oPromise = this.oNotificationsService.markRead(sNotificationId),
|
|
499
479
|
that = this;
|
|
500
|
-
oPromise.
|
|
480
|
+
oPromise.catch(function () {
|
|
501
481
|
_errorMessage(resources.i18n.getText("notificationsFailedMarkRead"));
|
|
502
482
|
that.setMarkReadOnModel(sNotificationId, false);
|
|
503
483
|
});
|
|
@@ -509,7 +489,7 @@ sap.ui.define([
|
|
|
509
489
|
onBeforeRendering: function () {
|
|
510
490
|
if (!this._bDependencyCallbackRegistered) { // register once: the service registration is primitive and does not remove duplicates
|
|
511
491
|
this._bDependencyCallbackRegistered = true;
|
|
512
|
-
this.oNotificationsService.
|
|
492
|
+
this.oNotificationsService.registerNotificationsUpdateCallback(this.notificationsUpdateCallback.bind(this), false);
|
|
513
493
|
}
|
|
514
494
|
},
|
|
515
495
|
|
|
@@ -531,7 +511,7 @@ sap.ui.define([
|
|
|
531
511
|
if (sNotificationTypeDesc === "") {
|
|
532
512
|
sNotificationTypeDesc = this.getView().getModel().getProperty(sPathToNotification + "/NotificationTypeKey");
|
|
533
513
|
}
|
|
534
|
-
oPromise.
|
|
514
|
+
oPromise.catch(function (oResult) {
|
|
535
515
|
this.getView().getModel().setProperty(sPathToNotification + "/Busy", false);
|
|
536
516
|
|
|
537
517
|
if (oResult && oResult.succededNotifications && oResult.succededNotifications.length) {
|
|
@@ -566,7 +546,7 @@ sap.ui.define([
|
|
|
566
546
|
}
|
|
567
547
|
}.bind(this));
|
|
568
548
|
|
|
569
|
-
oPromise.
|
|
549
|
+
oPromise.then(function () {
|
|
570
550
|
sMessage = resources.i18n.getText("notificationsSuccessExecuteBulkAction", [
|
|
571
551
|
sGroupActionText, sNotificationTypeDesc
|
|
572
552
|
]);
|
|
@@ -586,7 +566,7 @@ sap.ui.define([
|
|
|
586
566
|
oPromise = this.oNotificationsService.dismissNotification(notificationId);
|
|
587
567
|
// There is need to load again the other 2 tabs, therefore we need to "clean" other models.
|
|
588
568
|
this.cleanModel();
|
|
589
|
-
oPromise.
|
|
569
|
+
oPromise.catch(function () {
|
|
590
570
|
_errorMessage(resources.i18n.getText("notificationsFailedDismiss"));
|
|
591
571
|
that.addNotificationToModel(oRemovedNotification.obj, oRemovedNotification.index);
|
|
592
572
|
});
|
|
@@ -597,7 +577,7 @@ sap.ui.define([
|
|
|
597
577
|
oPromise = this.oNotificationsService.dismissBulkNotifications(oGroup.Id);
|
|
598
578
|
// There is need to load again the other 2 tabs, therefore we need to "clean" other models.
|
|
599
579
|
this.cleanModel();
|
|
600
|
-
oPromise.
|
|
580
|
+
oPromise.catch(function () {
|
|
601
581
|
_errorMessage(resources.i18n.getText("notificationsFailedExecuteBulkAction"));
|
|
602
582
|
this.reAddFailedGroup(oRemovedGroup);
|
|
603
583
|
}.bind(this));
|
|
@@ -957,7 +937,7 @@ sap.ui.define([
|
|
|
957
937
|
|
|
958
938
|
oModel.setProperty(sPathToNotification + "/Busy", true);
|
|
959
939
|
|
|
960
|
-
this.executeAction(sNotificationId, oNotificationModelPart.ActionId).
|
|
940
|
+
this.executeAction(sNotificationId, oNotificationModelPart.ActionId).then(function (responseAck) {
|
|
961
941
|
if (responseAck && responseAck.isSucessfull) {
|
|
962
942
|
sap.ui.require(["sap/m/MessageToast"], function (MessageToast) {
|
|
963
943
|
if (responseAck.message && responseAck.message.length) {
|
|
@@ -982,7 +962,7 @@ sap.ui.define([
|
|
|
982
962
|
_errorMessage(resources.i18n.getText("notificationsFailedExecuteAction"));
|
|
983
963
|
}
|
|
984
964
|
oModel.setProperty(sPathToNotification + "/Busy", false);
|
|
985
|
-
}.bind(this)).
|
|
965
|
+
}.bind(this)).catch(function () {
|
|
986
966
|
oModel.setProperty(sPathToNotification + "/Busy", false);
|
|
987
967
|
_errorMessage(resources.i18n.getText("notificationsFailedExecuteAction"));
|
|
988
968
|
});
|
|
@@ -1063,7 +1043,7 @@ sap.ui.define([
|
|
|
1063
1043
|
* @returns {int} Basic buffer size
|
|
1064
1044
|
*/
|
|
1065
1045
|
getNumberOfItemsToFetchOnScroll: function (sSortingType) {
|
|
1066
|
-
var iCurrentNumberOfItems = this.getItemsFromModel(sSortingType).length,
|
|
1046
|
+
var iCurrentNumberOfItems = (this.getItemsFromModel(sSortingType) || []).length,
|
|
1067
1047
|
iBasicBufferSize = this.getBasicBufferSize();
|
|
1068
1048
|
|
|
1069
1049
|
if (iCurrentNumberOfItems >= this.iMaxNotificationItemsForDevice) {
|
|
@@ -1192,11 +1172,11 @@ sap.ui.define([
|
|
|
1192
1172
|
if (selectedTypeId) {
|
|
1193
1173
|
oPromise = this.oNotificationsService.getNotificationsBufferInGroup(selectedTypeId, 0, this.getNumberOfItemsToFetchOnUpdate(iNumberOfItemsInModel));
|
|
1194
1174
|
|
|
1195
|
-
oPromise.
|
|
1175
|
+
oPromise.then(function (oResult) {
|
|
1196
1176
|
this.addTypeBufferToModel(selectedTypeId, oResult, true);
|
|
1197
1177
|
}.bind(this));
|
|
1198
1178
|
|
|
1199
|
-
oPromise.
|
|
1179
|
+
oPromise.catch(function (oResult) {
|
|
1200
1180
|
this.getNextBufferFailHandler(oResult);
|
|
1201
1181
|
}.bind(this));
|
|
1202
1182
|
}
|
|
@@ -107,8 +107,8 @@ sap.ui.define([
|
|
|
107
107
|
tooltip: resources.i18n.getText("open_appFinderBtn"),
|
|
108
108
|
icon: "sap-icon://sys-find",
|
|
109
109
|
press: function () {
|
|
110
|
-
sap.ushell.Container.getServiceAsync("
|
|
111
|
-
|
|
110
|
+
sap.ushell.Container.getServiceAsync("Navigation").then(function (oNavService) {
|
|
111
|
+
oNavService.navigate({
|
|
112
112
|
target: {
|
|
113
113
|
semanticObject: "Shell",
|
|
114
114
|
action: "appfinder"
|
|
@@ -5,7 +5,7 @@ sap.ui.define([
|
|
|
5
5
|
"sap/ui/core/IconPool",
|
|
6
6
|
"sap/ui/core/routing/HashChanger",
|
|
7
7
|
"sap/ui/thirdparty/jquery",
|
|
8
|
-
"sap/ushell/
|
|
8
|
+
"sap/ushell/renderer/search/util"
|
|
9
9
|
], function (resources, IconPool, HashChanger, jQuery, util) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"id": "sap.ushell.components.shell.Search",
|
|
5
5
|
|
|
6
6
|
"applicationVersion": {
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.120.1"
|
|
8
8
|
},
|
|
9
9
|
"i18n": {
|
|
10
|
-
"bundleUrl": "../../../
|
|
10
|
+
"bundleUrl": "../../../renderer/resources/resources.properties",
|
|
11
11
|
"fallbackLocale": "en"
|
|
12
12
|
},
|
|
13
13
|
"type": "component",
|
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
"sap/base/Log",
|
|
12
12
|
"sap/ushell/resources",
|
|
13
13
|
"sap/ui/core/IconPool",
|
|
14
|
-
"sap/ushell/
|
|
14
|
+
"sap/ushell/renderer/search/util",
|
|
15
15
|
"sap/ushell/ui/shell/ShellHeadItem",
|
|
16
16
|
"sap/ui/Device",
|
|
17
17
|
"sap/ui/core/Core",
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
|
|
25
25
|
return UIComponent.extend("sap.ushell.components.shell.SearchCEP.Component", {
|
|
26
26
|
metadata: {
|
|
27
|
-
version: "1.
|
|
27
|
+
version: "1.120.1",
|
|
28
28
|
library: ["sap.ushell", "sap.ushell.components.shell"],
|
|
29
29
|
dependencies: {
|
|
30
30
|
libs: ["sap.m"]
|
|
@@ -937,9 +937,9 @@ sap.ui.define([
|
|
|
937
937
|
sTerm + "\",\"rootCondition\":{\"type\":\"Complex\",\"operator\":\"And\",\"conditions\":[]}}";
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
-
var pNavServicePromise = sap.ushell.Container.getServiceAsync("
|
|
941
|
-
pNavServicePromise.then(function (
|
|
942
|
-
|
|
940
|
+
var pNavServicePromise = sap.ushell.Container.getServiceAsync("Navigation");
|
|
941
|
+
pNavServicePromise.then(function (oNavigationService) {
|
|
942
|
+
oNavigationService.navigate({
|
|
943
943
|
target: {
|
|
944
944
|
shellHash: sHash
|
|
945
945
|
}
|
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
return UIComponent.extend("sap.ushell.components.shell.Settings.Component", {
|
|
49
49
|
|
|
50
50
|
metadata: {
|
|
51
|
-
version: "1.
|
|
51
|
+
version: "1.120.1",
|
|
52
52
|
library: "sap.ushell",
|
|
53
53
|
dependencies: {
|
|
54
54
|
libs: {
|
|
@@ -141,16 +141,16 @@ sap.ui.define([
|
|
|
141
141
|
* @private
|
|
142
142
|
*/
|
|
143
143
|
_addNotificationSettings: function () {
|
|
144
|
-
sap.ushell.Container.getServiceAsync("
|
|
144
|
+
sap.ushell.Container.getServiceAsync("NotificationsV2").then(function (service) {
|
|
145
145
|
service._userSettingInitialization();
|
|
146
|
-
service._getNotificationSettingsAvailability().
|
|
146
|
+
service._getNotificationSettingsAvailability().then(function (status) {
|
|
147
147
|
if (status.settingsAvailable) {
|
|
148
148
|
var aEntities = Config.last("/core/userPreferences/entries");
|
|
149
149
|
aEntities.push(NotificationsEntry.getEntry());
|
|
150
150
|
Config.emit("/core/userPreferences/entries", aEntities);
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
|
-
});
|
|
153
|
+
}).catch(() => {}); // Notification settings are not available, do nothing.
|
|
154
154
|
},
|
|
155
155
|
|
|
156
156
|
/**
|