@sapui5/sap.ushell 1.118.0 → 1.119.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 +6 -5
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/ApplicationType.js +1 -1
- package/src/main/js/sap/ushell/CanvasShapesManager.js +13 -7
- package/src/main/js/sap/ushell/Config.js +1 -1
- package/src/main/js/sap/ushell/Container.js +255 -185
- package/src/main/js/sap/ushell/EventHub.js +1 -1
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +2 -2
- package/src/main/js/sap/ushell/Layout.js +3 -3
- package/src/main/js/sap/ushell/NWBCInterface.js +3 -3
- package/src/main/js/sap/ushell/TechnicalParameters.js +3 -3
- package/src/main/js/sap/ushell/UIActions.js +44 -44
- 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 +4 -4
- package/src/main/js/sap/ushell/User.js +1 -1
- package/src/main/js/sap/ushell/UserActivityLog.js +8 -8
- package/src/main/js/sap/ushell/_ApplicationType/guiResolution.js +5 -5
- package/src/main/js/sap/ushell/_ApplicationType/systemAlias.js +1 -1
- package/src/main/js/sap/ushell/_ApplicationType/urlTemplateResolution.js +12 -7
- package/src/main/js/sap/ushell/_Config/utils.js +5 -5
- 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 +14 -8
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +4 -5
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -2
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +12 -13
- package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +4 -3
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.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 +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_Personalization/internals.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +5 -2
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +4 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +3 -4
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +10 -11
- 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 +2 -2
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +0 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +3 -4
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +3 -2
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +2 -3
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -3
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +2 -3
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -2
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -2
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +5 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +5 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +31 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +2 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +7 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/FLPLoader.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 +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.js +2 -2
- 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 +1 -0
- package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +7 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.load.script.js +4 -4
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +7 -7
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +214 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxSite.json +511 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +398 -0
- package/src/main/js/sap/ushell/components/CatalogsManager.js +26 -25
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +20 -15
- package/src/main/js/sap/ushell/components/DestroyHelper.js +2 -2
- package/src/main/js/sap/ushell/components/HomepageManager.js +6 -6
- package/src/main/js/sap/ushell/components/_HeaderManager/ControlManager.js +1 -1
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +5 -5
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +19 -15
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +12 -12
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +18 -18
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +6 -6
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +4 -4
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +8 -6
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +2 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/WebGUIStatefulHandler.js +5 -5
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +21 -26
- 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/Configuration.controller.js +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +6 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +44 -6
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +22 -9
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +23 -16
- 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/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTile.js +1 -2
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +5 -6
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerItem.js +1 -2
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +3 -3
- package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.controller.js +0 -1
- package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.view.xml +7 -6
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +2 -7
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +13 -13
- 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 +10 -10
- 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 +2 -2
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +12 -12
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +93 -95
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/view/PageRuntime.view.xml +31 -23
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- 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 +7 -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 -3
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +2 -2
- 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 +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 +1 -1
- 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 +74 -16
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchFieldFragment.fragment.xml +2 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -2
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -2
- 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 -2
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +8 -9
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +53 -13
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +5 -0
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +41 -38
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +7 -3
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTileTmp.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTileTmp.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.js +0 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +41 -48
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +3 -3
- package/src/main/js/sap/ushell/components/tiles/utils.js +1 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +5 -18
- package/src/main/js/sap/ushell/components/visualizationOrganizer/VisualizationOrganizerPopover.fragment.xml +3 -3
- 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 +65 -95
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +182 -90
- 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/WorkPageColumnRenderer.js +0 -2
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +53 -3
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +3 -0
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +1 -0
- 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 -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 -2
- package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +1 -2
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +4 -2
- package/src/main/js/sap/ushell/navigationMode.js +10 -5
- package/src/main/js/sap/ushell/override.js +1 -1
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +248 -187
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +206 -207
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +366 -230
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +39 -23
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +105 -25
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.controller.js +63 -52
- package/src/main/js/sap/ushell/renderers/fiori2/ShellLayout.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources.properties +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources_ko.properties +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +3 -3
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/services/AppState.js +2 -3
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +4 -5
- package/src/main/js/sap/ushell/services/Configuration.js +1 -2
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +2 -2
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +36 -33
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +2 -2
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +2 -2
- package/src/main/js/sap/ushell/services/LaunchPage.js +11 -8
- package/src/main/js/sap/ushell/services/Menu.js +31 -37
- package/src/main/js/sap/ushell/services/Message.js +1 -2
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -2
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +58 -9
- package/src/main/js/sap/ushell/services/Navigation.js +1356 -0
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +7 -5
- package/src/main/js/sap/ushell/services/Notifications.js +16 -16
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -2
- package/src/main/js/sap/ushell/services/PagePersistence.js +6 -6
- package/src/main/js/sap/ushell/services/PageReferencing.js +2 -2
- package/src/main/js/sap/ushell/services/Pages.js +24 -25
- package/src/main/js/sap/ushell/services/Personalization.js +5 -5
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -2
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +2 -2
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +2 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +85 -59
- package/src/main/js/sap/ushell/services/ShellNavigation.js +59 -17
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +115 -39
- package/src/main/js/sap/ushell/services/SmartNavigation.js +4 -4
- package/src/main/js/sap/ushell/services/SpaceContent.js +5 -6
- package/src/main/js/sap/ushell/services/SupportTicket.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +5 -3
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +2 -2
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +7 -7
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -2
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +91 -69
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +10 -6
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -3
- 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 +2 -5
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +2 -2
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +11 -11
- 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 +6 -6
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +2 -2
- package/src/main/js/sap/ushell/services/_CommonDataModel/PersonalizationProcessor.js +1 -2
- 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 +9 -14
- 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 +34 -21
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +5 -2
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +18 -12
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +2 -2
- package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +3 -3
- package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_UserRecents/RecentActivity.js +206 -214
- package/src/main/js/sap/ushell/services/_UserRecents/RecentAppsUsage.js +46 -54
- package/src/main/js/sap/ushell/services/_UserRecents/RecentsList.js +39 -40
- package/src/main/js/sap/ushell/services/_UserRecents/UserRecentsBase.js +29 -36
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstance.js +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceAbap.js +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceCdm.js +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLaunchPage.js +10 -8
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +2 -2
- package/src/main/js/sap/ushell/services/appstate/LimitedBuffer.js +1 -2
- package/src/main/js/sap/ushell/services/appstate/Sequentializer.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/SearchCEP.less +8 -0
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +12 -6
- package/src/main/js/sap/ushell/themes/base/WorkPage.less +34 -4
- package/src/main/js/sap/ushell/themes/base/WorkPageCell.less +3 -1
- package/src/main/js/sap/ushell/themes/base/WorkPageColumn.less +3 -76
- package/src/main/js/sap/ushell/themes/base/WorkPageColumnResizer.less +2 -1
- package/src/main/js/sap/ushell/themes/base/WorkPageRow.less +822 -6
- package/src/main/js/sap/ushell/themes/sap_horizon/SearchCEP.less +4 -0
- package/src/main/js/sap/ushell/themes/sap_horizon/ToolAreaItem.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/SearchCEP.less +4 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ToolAreaItem.less +1 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/SearchCEP.less +5 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/SearchCEP.less +5 -0
- package/src/main/js/sap/ushell/ui/AppContainer.js +0 -1
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +1 -1
- package/src/main/js/sap/ushell/ui/QuickAccess.js +2 -2
- package/src/main/js/sap/ushell/ui/ShellHeader.js +21 -5
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +1 -0
- package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +0 -1
- package/src/main/js/sap/ushell/ui/bookmark/SaveOnPage.view.xml +6 -6
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/footerbar/AboutButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +32 -17
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +0 -1
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +1 -12
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/ActionItem.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/FailedTileDialog.js +4 -4
- package/src/main/js/sap/ushell/ui/launchpad/GroupHeaderActions.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItem.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialog.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/PlusTile.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +3 -3
- package/src/main/js/sap/ushell/ui/launchpad/Tile.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +0 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +4 -5
- package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +7 -8
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -2
- package/src/main/js/sap/ushell/ui/tile/DynamicTile.js +0 -1
- package/src/main/js/sap/ushell/ui/tile/ImageTile.js +0 -1
- package/src/main/js/sap/ushell/ui/tile/StaticTile.js +0 -1
- package/src/main/js/sap/ushell/ui/tile/TileBase.js +0 -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 +1 -1
- package/src/main/js/sap/ushell/utils/HttpClient.js +0 -1
- package/src/main/js/sap/ushell/utils/RestrictedJSONModel.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlParsing.js +18 -14
- package/src/main/js/sap/ushell/utils/UrlShortening.js +2 -2
- package/src/main/js/sap/ushell/utils/objectOperations.js +1 -1
- package/src/main/js/sap/ushell/utils/type.js +1 -1
- package/src/main/js/sap/ushell/utils/utilsCdm.js +3 -3
- package/src/main/js/sap/ushell/utils.js +128 -21
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +2 -2
- package/ui5.yaml +1 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Menu.js +0 -22
|
@@ -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.119.0
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/base/util/extend",
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
ElementsModel,
|
|
23
23
|
Device,
|
|
24
24
|
Config,
|
|
25
|
-
|
|
25
|
+
ushellUtils,
|
|
26
26
|
resources,
|
|
27
27
|
EventHub,
|
|
28
28
|
RelatedShellElements,
|
|
@@ -148,15 +148,15 @@ sap.ui.define([
|
|
|
148
148
|
ElementsModel.updateStateProperty("application/title", sTitle, true);
|
|
149
149
|
RelatedShellElements.genericSetItem("application/title", sTitle);
|
|
150
150
|
window.document.title = sTitle;
|
|
151
|
-
|
|
151
|
+
ushellUtils.setPerformanceMark("FLP -- title change");
|
|
152
152
|
EventHub.emit("TitleChanged", sTitle);
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
/*
|
|
156
156
|
* Helper function to get the favIcon image URL based on a given theme parameter.
|
|
157
157
|
*/
|
|
158
|
-
this._getDefaultFavIcon = function (
|
|
159
|
-
|
|
158
|
+
this._getDefaultFavIcon = async function () {
|
|
159
|
+
let [favIcon] = await ushellUtils.getThemingParameters(["sapUiShellFavicon"]);
|
|
160
160
|
if (favIcon) { // custom theme favicon
|
|
161
161
|
var match = /url[\s]*\('?"?([^'")]*)'?"?\)/.exec(favIcon);
|
|
162
162
|
if (match) {
|
|
@@ -199,31 +199,26 @@ sap.ui.define([
|
|
|
199
199
|
//Performance Debug
|
|
200
200
|
Measurement.start("FLP:ShellController.setAppIcons", "setValues", "FLP");
|
|
201
201
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
}.bind(this));
|
|
202
|
+
if (Core.isThemeApplied()) {
|
|
203
|
+
this.setValues(oMetadataConfig);
|
|
204
|
+
} else {
|
|
205
|
+
Core.attachThemeChanged(function () {
|
|
206
|
+
this.setValues(oMetadataConfig);
|
|
207
|
+
}.bind(this));
|
|
208
|
+
}
|
|
211
209
|
|
|
212
210
|
Measurement.end("FLP:ShellController.setAppIcons");
|
|
213
211
|
};
|
|
214
212
|
|
|
215
|
-
this.setValues = function (oMetadataConfig
|
|
216
|
-
var sModulePath = sap.ui.require.toUrl("sap/ushell")
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
(sModulePath + "/themes/base/img/launchicons/144_iPad_Retina_Web_Clip.png"),
|
|
225
|
-
oFavIcon = (oMetadataConfig && oMetadataConfig.favIcon) || (this._getDefaultFavIcon(Parameters)),
|
|
226
|
-
sCurrentFavIconHref = this.getFavIconHref();
|
|
213
|
+
this.setValues = async function (oMetadataConfig) {
|
|
214
|
+
var sModulePath = sap.ui.require.toUrl("sap/ushell");
|
|
215
|
+
var oLaunchIconPhone = (oMetadataConfig && oMetadataConfig.homeScreenIconPhone) || (sModulePath + "/themes/base/img/launchicons/57_iPhone_Desktop_Launch.png");
|
|
216
|
+
var oLaunchIconPhone2 = (oMetadataConfig && oMetadataConfig["homeScreenIconPhone@2"]) || (sModulePath + "/themes/base/img/launchicons/114_iPhone-Retina_Web_Clip.png");
|
|
217
|
+
var oLaunchIconTablet = (oMetadataConfig && oMetadataConfig.homeScreenIconTablet) || (sModulePath + "/themes/base/img/launchicons/72_iPad_Desktop_Launch.png");
|
|
218
|
+
var oLaunchIconTablet2 = (oMetadataConfig && oMetadataConfig["homeScreenIconTablet@2"]) || (sModulePath + "/themes/base/img/launchicons/144_iPad_Retina_Web_Clip.png");
|
|
219
|
+
var sDefaultFavIcon = await this._getDefaultFavIcon();
|
|
220
|
+
var oFavIcon = (oMetadataConfig && oMetadataConfig.favIcon) || sDefaultFavIcon;
|
|
221
|
+
var sCurrentFavIconHref = this.getFavIconHref();
|
|
227
222
|
if (Device.os.ios) {
|
|
228
223
|
Mobile.setIcons({
|
|
229
224
|
phone: oLaunchIconPhone,
|
|
@@ -194,8 +194,8 @@ sap.ui.define([
|
|
|
194
194
|
/**
|
|
195
195
|
* Fill the card's CHIP bag with texts extracted from the card's manifest
|
|
196
196
|
*
|
|
197
|
-
* @param {
|
|
198
|
-
* @param {
|
|
197
|
+
* @param {object} extractedData The card data extraced from the manifest
|
|
198
|
+
* @param {object} tilePropertiesBag The card's properties bag
|
|
199
199
|
*
|
|
200
200
|
* @private
|
|
201
201
|
*/
|
|
@@ -13,8 +13,9 @@ sap.ui.define([
|
|
|
13
13
|
"sap/m/Menu",
|
|
14
14
|
"sap/m/MenuItem",
|
|
15
15
|
"sap/ushell/ui/footerbar/AddBookmarkButton",
|
|
16
|
-
"sap/f/GridContainerItemLayoutData"
|
|
17
|
-
|
|
16
|
+
"sap/f/GridContainerItemLayoutData",
|
|
17
|
+
"sap/ushell/EventHub"
|
|
18
|
+
], function (Controller, Core, JSONModel, Edition, mLib, Menu, MenuItem, AddBookmarkButton, GridContainerItemLayoutData, EventHub) {
|
|
18
19
|
|
|
19
20
|
"use strict";
|
|
20
21
|
var URLHelper = mLib.URLHelper;
|
|
@@ -57,6 +58,9 @@ sap.ui.define([
|
|
|
57
58
|
this.changeCategory(sQueryCategory);
|
|
58
59
|
}
|
|
59
60
|
this.getView().setVisible(true);
|
|
61
|
+
|
|
62
|
+
// Close FESR Record - consumed in ShellAnalytics
|
|
63
|
+
EventHub.emit("CloseFesrRecord", Date.now());
|
|
60
64
|
}.bind(this));
|
|
61
65
|
},
|
|
62
66
|
|
|
@@ -73,6 +73,11 @@ sap.ui.define(
|
|
|
73
73
|
|
|
74
74
|
var IllustrationType = mLibrary.IllustratedMessageType;
|
|
75
75
|
|
|
76
|
+
var defaultItemWidths = {
|
|
77
|
+
tile: 190,
|
|
78
|
+
card: 400
|
|
79
|
+
};
|
|
80
|
+
|
|
76
81
|
// Fix object identifier handle press
|
|
77
82
|
ObjectIdentifier.prototype._handlePress = function (oEvent) {
|
|
78
83
|
var oClickedItem = oEvent.target;
|
|
@@ -312,7 +317,7 @@ sap.ui.define(
|
|
|
312
317
|
this.updateDataModel({});
|
|
313
318
|
};
|
|
314
319
|
|
|
315
|
-
Category.prototype.search = function (sSearchTerm, iSkip, iTop) {
|
|
320
|
+
Category.prototype.search = function (sSearchTerm, iSkip, iTop, bForced) {
|
|
316
321
|
iTop = isNaN(iTop) || iTop < 0 ? this._iTop || this.getPageSize() : iTop;
|
|
317
322
|
iSkip = isNaN(iSkip) || iSkip < 0 ? this._iSkip || 0 : iSkip;
|
|
318
323
|
if (typeof sSearchTerm !== "string") {
|
|
@@ -323,7 +328,7 @@ sap.ui.define(
|
|
|
323
328
|
pFetch,
|
|
324
329
|
oCurrentData = this.getModel("data").getData() || {};
|
|
325
330
|
|
|
326
|
-
if (!this.resetDataRequired(sSearchTerm, iSkip, iTop)) {
|
|
331
|
+
if (!bForced && !this.resetDataRequired(sSearchTerm, iSkip, iTop)) {
|
|
327
332
|
this.fireFetchEvent("before", "skipped", oCurrentData);
|
|
328
333
|
this.fireFetchEvent("after", "skipped", oCurrentData);
|
|
329
334
|
return;
|
|
@@ -351,18 +356,40 @@ sap.ui.define(
|
|
|
351
356
|
if (pFetch) {
|
|
352
357
|
pFetch.then(function (oData) {
|
|
353
358
|
this._iCurrentCount = oData.count || 0;
|
|
354
|
-
|
|
359
|
+
setTimeout(function() {
|
|
360
|
+
this.setNoDataText(this.translate("NoData"), "NoData");
|
|
361
|
+
}.bind(this), 100);
|
|
355
362
|
this.fireFetchEvent("after", bVisible ? "data" : "count", oData);
|
|
356
363
|
}.bind(this));
|
|
357
364
|
}
|
|
358
365
|
};
|
|
359
366
|
|
|
367
|
+
Category.prototype.getMaxRowItemsAsync = function () {
|
|
368
|
+
if (!this.getDomRef()) {
|
|
369
|
+
return new Promise(function(resolve) {
|
|
370
|
+
setTimeout(function() {
|
|
371
|
+
resolve(this._getMaxRowItems());
|
|
372
|
+
}.bind(this), 200);
|
|
373
|
+
}.bind(this));
|
|
374
|
+
}
|
|
375
|
+
return Promise.resolve(this._getMaxRowItems());
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
Category.prototype._getMaxRowItems = function () {
|
|
379
|
+
if (this.getDomRef()) {
|
|
380
|
+
var iPixelWidth = this.getDomRef().clientWidth;
|
|
381
|
+
return Math.floor(iPixelWidth / (defaultItemWidths[this.getCurrentView()] || iPixelWidth));
|
|
382
|
+
}
|
|
383
|
+
return 1;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
360
387
|
Category.prototype.applyDataChange = function (bSearchTermChanged, oResultData) {
|
|
361
388
|
var oData = {
|
|
362
389
|
count: oResultData.count,
|
|
363
|
-
top: this.
|
|
390
|
+
top: this.getPageSize(),
|
|
364
391
|
skip: this._iSkip,
|
|
365
|
-
page: Math.floor(this._iSkip / this.
|
|
392
|
+
page: Math.floor(this._iSkip / this.getPageSize()) + 1,
|
|
366
393
|
data: oResultData.data
|
|
367
394
|
};
|
|
368
395
|
this.showLoadingPlaceholder(false, function () {
|
|
@@ -513,6 +540,7 @@ sap.ui.define(
|
|
|
513
540
|
pageSize: "{= ${data>/top}}",
|
|
514
541
|
currentPage: "{= ${data>/page}}",
|
|
515
542
|
selectPage: function (oEvent) {
|
|
543
|
+
|
|
516
544
|
this.fixHeight();
|
|
517
545
|
this.bPaging = true;
|
|
518
546
|
this.search(
|
|
@@ -596,6 +624,7 @@ sap.ui.define(
|
|
|
596
624
|
this.bindListViewItems(sView);
|
|
597
625
|
this._oList.addStyleClass(sView);
|
|
598
626
|
this._iCurrentHeight = 0;
|
|
627
|
+
this.search(this._sSearchTerm, this._iSkip, this.iTop, true);
|
|
599
628
|
}
|
|
600
629
|
return this;
|
|
601
630
|
};
|
|
@@ -692,6 +721,7 @@ sap.ui.define(
|
|
|
692
721
|
src: sIconBinding || "{data>icon}",
|
|
693
722
|
displaySize: this._oCategoryConfig.icon.size,
|
|
694
723
|
displayShape: this._oCategoryConfig.icon.shape,
|
|
724
|
+
imageFitType: this._oCategoryConfig.icon.imageFitType || "Contain",
|
|
695
725
|
backgroundColor: this._oCategoryConfig.icon.backgroundColor
|
|
696
726
|
};
|
|
697
727
|
};
|
|
@@ -805,9 +835,17 @@ sap.ui.define(
|
|
|
805
835
|
if (this._oList && this._oList._oItemNavigation) {
|
|
806
836
|
this._oList._oItemNavigation.setColumns(this._oList._getCurrentColCount());
|
|
807
837
|
}
|
|
838
|
+
this.fixHeight(true);
|
|
839
|
+
if (Math.abs(oEvent.oldSize.width - oEvent.size.width) > 50) {
|
|
840
|
+
if (this._iResizeTimer) {
|
|
841
|
+
clearTimeout(this._iResizeTimer);
|
|
842
|
+
}
|
|
843
|
+
this._iResizeTimer = setTimeout(function() {
|
|
844
|
+
this.search(this._sSearchTerm, this._iSkip, this._iTop);
|
|
845
|
+
}.bind(this), 300);
|
|
846
|
+
}
|
|
808
847
|
if (oEvent.oldSize && oEvent.size && oEvent.oldSize.width !== oEvent.size.width) {
|
|
809
848
|
this._iCurrentHeight = 0;
|
|
810
|
-
this.fixHeight();
|
|
811
849
|
}
|
|
812
850
|
};
|
|
813
851
|
|
|
@@ -4,13 +4,11 @@ sap.ui.define(
|
|
|
4
4
|
[
|
|
5
5
|
"../Category",
|
|
6
6
|
"sap/ushell/services/VisualizationInstantiation",
|
|
7
|
-
"sap/ushell/services/SearchCEP",
|
|
8
7
|
"sap/ui/thirdparty/jquery"
|
|
9
8
|
],
|
|
10
9
|
function (
|
|
11
10
|
Category,
|
|
12
11
|
VisualizationInstantiation,
|
|
13
|
-
JSSearchFactory,
|
|
14
12
|
jQuery
|
|
15
13
|
) {
|
|
16
14
|
"use strict";
|
|
@@ -21,7 +19,7 @@ sap.ui.define(
|
|
|
21
19
|
);
|
|
22
20
|
|
|
23
21
|
var oInstanceFactory = new VisualizationInstantiation();
|
|
24
|
-
var iTileActivationTime =
|
|
22
|
+
var iTileActivationTime = 500;
|
|
25
23
|
|
|
26
24
|
Application.prototype.getViewSettings = function () {
|
|
27
25
|
return {
|
|
@@ -72,9 +70,9 @@ sap.ui.define(
|
|
|
72
70
|
oViz.addStyleClass(oVizData.displayFormatHint);
|
|
73
71
|
oItem._oViz = oViz;
|
|
74
72
|
if (this.getCurrentView() === "tile") {
|
|
75
|
-
this.activateTile(oViz);
|
|
76
73
|
oItem.destroyContent();
|
|
77
74
|
oItem.addContent(oViz);
|
|
75
|
+
this.activateTile(oViz, true, iTileActivationTime);
|
|
78
76
|
} else {
|
|
79
77
|
// render a hidden tile to trigger event in itemNavigate
|
|
80
78
|
oItem.addContent(oViz.addStyleClass("hiddentile"));
|
|
@@ -82,14 +80,15 @@ sap.ui.define(
|
|
|
82
80
|
}
|
|
83
81
|
};
|
|
84
82
|
|
|
85
|
-
Application.prototype.activateTile = function (oViz) {
|
|
83
|
+
Application.prototype.activateTile = function (oViz, bActivate, iTime) {
|
|
86
84
|
setTimeout(function () {
|
|
87
85
|
if (sap.ushell.Container) {
|
|
88
86
|
sap.ushell.Container.getServiceAsync("ReferenceResolver").then(function () {
|
|
89
|
-
oViz.setActive(
|
|
90
|
-
|
|
87
|
+
oViz.setActive(bActivate, false);
|
|
88
|
+
this.activateTile(oViz, false, 1000);
|
|
89
|
+
}.bind(this));
|
|
91
90
|
}
|
|
92
|
-
},
|
|
91
|
+
}.bind(this), iTime);
|
|
93
92
|
};
|
|
94
93
|
|
|
95
94
|
Application.prototype.itemNavigate = function (oEvent) {
|
|
@@ -106,6 +105,8 @@ sap.ui.define(
|
|
|
106
105
|
|
|
107
106
|
Application.prototype._getSearchParameters = function (sSearchTerm, iSkip, iTop) {
|
|
108
107
|
return {
|
|
108
|
+
includeAppsWithoutVisualizations: false,
|
|
109
|
+
enableVisualizationPreview: false,
|
|
109
110
|
searchTerm: sSearchTerm,
|
|
110
111
|
skip: iSkip,
|
|
111
112
|
top: iTop,
|
|
@@ -132,7 +133,19 @@ sap.ui.define(
|
|
|
132
133
|
};
|
|
133
134
|
|
|
134
135
|
Application.prototype.fetchData = function (sSearchTerm, iSkip, iTop) {
|
|
135
|
-
return this.
|
|
136
|
+
return this.getMaxRowItemsAsync().then(function (iMaxRowItems) {
|
|
137
|
+
var iMaxTop = Math.ceil(iTop / iMaxRowItems) * iMaxRowItems;
|
|
138
|
+
return this.getData(this._getSearchParameters(sSearchTerm, iSkip, iMaxTop)).then(function(oData) {
|
|
139
|
+
var aData = oData.data;
|
|
140
|
+
aData.forEach(function (o, i) {
|
|
141
|
+
if (aData.length > iTop && o.visualization.displayFormatHint === "standardWide") {
|
|
142
|
+
aData.pop();
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
oData.pageGap = aData.length - iTop;
|
|
146
|
+
return oData;
|
|
147
|
+
});
|
|
148
|
+
}.bind(this));
|
|
136
149
|
};
|
|
137
150
|
|
|
138
151
|
Application.prototype.fetchCount = function (sSearchTerm, iSkip, iTop) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The UI integration's SAPUI5 control which supports application embedding.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.119.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
@@ -58,7 +58,7 @@ sap.ui.define([
|
|
|
58
58
|
resources,
|
|
59
59
|
System,
|
|
60
60
|
User,
|
|
61
|
-
|
|
61
|
+
ushellUtils,
|
|
62
62
|
oUrlParsing,
|
|
63
63
|
Core,
|
|
64
64
|
hasher,
|
|
@@ -118,7 +118,7 @@ sap.ui.define([
|
|
|
118
118
|
*/
|
|
119
119
|
EventHub.once("initMessagePopover").do(initializeMessagePopover);
|
|
120
120
|
|
|
121
|
-
mLogouts = new
|
|
121
|
+
mLogouts = new ushellUtils.Map();
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* Returns the logout handler function for the given container object.
|
|
@@ -753,7 +753,7 @@ sap.ui.define([
|
|
|
753
753
|
var oIframe = oContainer._getIFrame(),
|
|
754
754
|
sApplicationType = oContainer.getApplicationType();
|
|
755
755
|
|
|
756
|
-
if (
|
|
756
|
+
if (ushellUtils.isApplicationTypeEmbeddedInIframe(oContainer.getApplicationType(sApplicationType)) && oIframe) {
|
|
757
757
|
var oUri = new URI(oContainer._getIFrameUrl(oIframe));
|
|
758
758
|
var targetDomain = oUri.protocol() + "://" + oUri.host();
|
|
759
759
|
|
|
@@ -800,7 +800,7 @@ sap.ui.define([
|
|
|
800
800
|
if (bForFramelessWindow === undefined) {
|
|
801
801
|
bForFramelessWindow = false;
|
|
802
802
|
}
|
|
803
|
-
if (
|
|
803
|
+
if (ushellUtils.isApplicationTypeEmbeddedInIframe(sApplicationType) || (oContainer && ushellUtils.isApplicationTypeEmbeddedInIframe(oContainer.getFrameworkId()))) {
|
|
804
804
|
var sTargetNavigationMode = oContainer && oContainer.getTargetNavigationMode();
|
|
805
805
|
|
|
806
806
|
// amend already resolved url with additional parameters
|
|
@@ -808,7 +808,7 @@ sap.ui.define([
|
|
|
808
808
|
|
|
809
809
|
// add this container to list of NWBC-containing containers
|
|
810
810
|
if (oContainer && bForFramelessWindow === false) {
|
|
811
|
-
|
|
811
|
+
ushellUtils.localStorageSetItem(oContainer.globalDirtyStorageKey,
|
|
812
812
|
sap.ushell.Container.DirtyState.INITIAL);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
@@ -836,7 +836,7 @@ sap.ui.define([
|
|
|
836
836
|
}
|
|
837
837
|
var sTheme,
|
|
838
838
|
getAccessibility = function () {
|
|
839
|
-
var vUrl =
|
|
839
|
+
var vUrl = ushellUtils.getParameterValueBoolean("sap-accessibility");
|
|
840
840
|
if (vUrl !== undefined) {
|
|
841
841
|
return vUrl;
|
|
842
842
|
}
|
|
@@ -857,7 +857,7 @@ sap.ui.define([
|
|
|
857
857
|
oResolvedUrlParameters = UriParameters.fromURL(sUrl) || { mParams: {} };
|
|
858
858
|
|
|
859
859
|
// To take care of the precedence of the intent over UI5 configuration
|
|
860
|
-
bAddStatistics = Configuration.
|
|
860
|
+
bAddStatistics = Configuration.getStatisticsEnabled()
|
|
861
861
|
&& oResolvedUrlParameters.mParams["sap-statistics"] === undefined;
|
|
862
862
|
return bAddStatistics;
|
|
863
863
|
},
|
|
@@ -949,7 +949,8 @@ sap.ui.define([
|
|
|
949
949
|
sUrl += sUrl.indexOf("?") >= 0 ? "&" : "?";
|
|
950
950
|
sUrl += "sap-ushell-timeout=" + sessionTimeout;
|
|
951
951
|
|
|
952
|
-
|
|
952
|
+
// Deprecated API, We need to migrate to async flow
|
|
953
|
+
return ushellUtils.appendSapShellParamSync(sUrl, sUrlApplicationType);
|
|
953
954
|
}
|
|
954
955
|
return sUrl;
|
|
955
956
|
}
|
|
@@ -1015,7 +1016,7 @@ sap.ui.define([
|
|
|
1015
1016
|
*/
|
|
1016
1017
|
function render (oRenderManager, oContainer, sApplicationType, sUrl, sAdditionalInformation) {
|
|
1017
1018
|
var fnLogout,
|
|
1018
|
-
bPostMechanismEnabled
|
|
1019
|
+
bPostMechanismEnabled,
|
|
1019
1020
|
bForceOpenWithPost = false;
|
|
1020
1021
|
|
|
1021
1022
|
// remove container from list of NWBC-containing containers
|
|
@@ -1075,14 +1076,14 @@ sap.ui.define([
|
|
|
1075
1076
|
if (sap.ushell.Container) {
|
|
1076
1077
|
fnLogout = ApplicationContainer.prototype._getLogoutHandler(oContainer);
|
|
1077
1078
|
if (!fnLogout) {
|
|
1078
|
-
if (
|
|
1079
|
+
if (ushellUtils.isApplicationTypeEmbeddedInIframe(sApplicationType)) {
|
|
1079
1080
|
// create only for NWBC if not already existing
|
|
1080
1081
|
fnLogout = ApplicationContainer.prototype._logout.bind(null, oContainer);
|
|
1081
1082
|
mLogouts.put(oContainer.getId(), fnLogout);
|
|
1082
1083
|
sap.ushell.Container.attachLogoutEvent(fnLogout);
|
|
1083
1084
|
sap.ushell.Container.addRemoteSystem(ApplicationContainer.prototype._createSystemForUrl(sUrl));
|
|
1084
1085
|
}
|
|
1085
|
-
} else if (!
|
|
1086
|
+
} else if (!ushellUtils.isApplicationTypeEmbeddedInIframe(sApplicationType)) {
|
|
1086
1087
|
// detach if not used *anymore*
|
|
1087
1088
|
sap.ushell.Container.detachLogoutEvent(fnLogout);
|
|
1088
1089
|
mLogouts.remove(oContainer.getId());
|
|
@@ -1124,6 +1125,11 @@ sap.ui.define([
|
|
|
1124
1125
|
oContainer.setProperty("iframePostAllParams", true, true);
|
|
1125
1126
|
}
|
|
1126
1127
|
|
|
1128
|
+
bPostMechanismEnabled = Config.last("/core/shell/enableOpenIframeWithPost");
|
|
1129
|
+
if (bPostMechanismEnabled === undefined) {
|
|
1130
|
+
bPostMechanismEnabled = true;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1127
1133
|
if (urlParams.get("sap-post") === "false") {
|
|
1128
1134
|
bPostMechanismEnabled = false;
|
|
1129
1135
|
} else if (window.QUnit !== undefined) {
|
|
@@ -1156,7 +1162,7 @@ sap.ui.define([
|
|
|
1156
1162
|
.style("width", oContainer.getWidth());
|
|
1157
1163
|
|
|
1158
1164
|
if (Config.last("/core/shell/enableFeaturePolicyInIframes") === true) {
|
|
1159
|
-
oRenderManager.attr("allow",
|
|
1165
|
+
oRenderManager.attr("allow", ushellUtils.getIframeFeaturePolicies());
|
|
1160
1166
|
}
|
|
1161
1167
|
oRenderManager
|
|
1162
1168
|
.openEnd()
|
|
@@ -1366,7 +1372,7 @@ sap.ui.define([
|
|
|
1366
1372
|
|
|
1367
1373
|
// remove all event listeners
|
|
1368
1374
|
if (that._unloadEventListener) {
|
|
1369
|
-
removeEventListener("
|
|
1375
|
+
removeEventListener("pagehide", that._unloadEventListener);
|
|
1370
1376
|
}
|
|
1371
1377
|
|
|
1372
1378
|
if (that._disableRouterEventHandler) {
|
|
@@ -1405,13 +1411,14 @@ sap.ui.define([
|
|
|
1405
1411
|
// be sure to remove entry from list of NWBC-containing containers
|
|
1406
1412
|
// when the window is closed
|
|
1407
1413
|
that._unloadEventListener = that.exit.bind(that);
|
|
1408
|
-
|
|
1414
|
+
// As of chrome 117 the unload event is deprecated and therefore was changed
|
|
1415
|
+
addEventListener("pagehide", that._unloadEventListener); //TODO doesn't work in IE9 when F5 is pressed?!
|
|
1409
1416
|
|
|
1410
1417
|
that._storageEventListener = function (oStorageEvent) {
|
|
1411
1418
|
var sApplicationType = that.getApplicationType();
|
|
1412
1419
|
if (oStorageEvent.key === that.globalDirtyStorageKey
|
|
1413
1420
|
&& oStorageEvent.newValue === sap.ushell.Container.DirtyState.PENDING
|
|
1414
|
-
&&
|
|
1421
|
+
&& ushellUtils.isApplicationTypeEmbeddedInIframe(sApplicationType)) {
|
|
1415
1422
|
|
|
1416
1423
|
var oIframe = that._getIFrame();
|
|
1417
1424
|
if (oIframe) {
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
|
|
18
18
|
// use inline declaration instead of component.json to save 1 round trip
|
|
19
19
|
metadata: {
|
|
20
|
-
version: "1.
|
|
20
|
+
version: "1.119.0",
|
|
21
21
|
library: "sap.ushell",
|
|
22
22
|
dependencies: {
|
|
23
23
|
libs: ["sap.m", "sap.ui.vbm", "sap.suite.ui.commons", "sap.ui.layout", "sap.viz"],
|
|
@@ -28,7 +28,6 @@ sap.ui.define([
|
|
|
28
28
|
* @param {object} [mSettings] initial settings for the new control
|
|
29
29
|
* @class Tile control embedding an image and allowing custom sizing
|
|
30
30
|
* @extends sap.m.CustomTile
|
|
31
|
-
* @constructor
|
|
32
31
|
* @public
|
|
33
32
|
* @deprecated since 1.22. Please use {@link sap.m.Carousel} instead.
|
|
34
33
|
*
|
|
@@ -80,7 +79,7 @@ sap.ui.define([
|
|
|
80
79
|
* @param {string | sap.ushell.components.factsheet.controls.PictureViewerItem} vTileContent
|
|
81
80
|
* Id of an element which becomes the new target of this <code>tileContent</code> association.
|
|
82
81
|
* Alternatively, an element instance may be given.
|
|
83
|
-
* @
|
|
82
|
+
* @returns {sap.ushell.components.factsheet.controls.PictureTile} <code>this</code> to allow method chaining
|
|
84
83
|
* @public
|
|
85
84
|
* @name sap.ushell.components.factsheet.controls.PictureTile#setTileContent
|
|
86
85
|
* @function
|
|
@@ -23,7 +23,6 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] initial settings for the new control
|
|
24
24
|
* @class Picture viewer control relying on the TileContainer control
|
|
25
25
|
* @extends sap.m.TileContainer
|
|
26
|
-
* @constructor
|
|
27
26
|
* @public
|
|
28
27
|
* @deprecated since 1.22. Please use {@link sap.m.Carousel} instead.
|
|
29
28
|
* PictureViewer was replacing the Carousel as it wasn't supporting some versions of MS Internet Explorer.
|
|
@@ -132,7 +131,7 @@ sap.ui.define([
|
|
|
132
131
|
*
|
|
133
132
|
* @override
|
|
134
133
|
* @param {sap.ushell.components.factsheet.controls.PictureViewerItem} oItem the item to add; if empty, nothing is inserted
|
|
135
|
-
* @
|
|
134
|
+
* @returns {sap.ushell.components.factsheet.controls.PictureViewer} <code>this</code> to allow method chaining
|
|
136
135
|
* @public
|
|
137
136
|
* @name sap.ushell.components.factsheet.controls.PictureViewer#addItem
|
|
138
137
|
* @function
|
|
@@ -153,7 +152,7 @@ sap.ui.define([
|
|
|
153
152
|
* @param {int} iIndex the <code>0</code>-based index the item should be inserted at;
|
|
154
153
|
* for a negative value of <code>iIndex</code>, the item is inserted at position 0;
|
|
155
154
|
* for a value greater than the current size of the aggregation, the item is inserted at the last position
|
|
156
|
-
* @
|
|
155
|
+
* @returns {sap.ushell.components.factsheet.controls.PictureViewer} <code>this</code> to allow method chaining
|
|
157
156
|
* @public
|
|
158
157
|
* @name sap.ushell.components.factsheet.controls.PictureViewer#insertItem
|
|
159
158
|
* @function
|
|
@@ -188,7 +187,7 @@ sap.ui.define([
|
|
|
188
187
|
* @override
|
|
189
188
|
* @param {int} iIndex the <code>0</code>-based index of the picture collection to delete;
|
|
190
189
|
* if <code>iIndex</code> is out of range or empty, the current image will be deleted.
|
|
191
|
-
* @
|
|
190
|
+
* @returns {sap.ushell.components.factsheet.controls.PictureViewer} <code>this</code> to allow method chaining
|
|
192
191
|
* @public
|
|
193
192
|
* @name sap.ushell.components.factsheet.controls.PictureViewer#deletePicture
|
|
194
193
|
* @function
|
|
@@ -222,7 +221,7 @@ sap.ui.define([
|
|
|
222
221
|
* @param {int} iIndex the <code>0</code>-based index of the aggregation to select;
|
|
223
222
|
* for a negative value of <code>iIndex</code>, the picture at position 0 is selected;
|
|
224
223
|
* for a value greater than the current size of the aggregation, the selected picture at the last position is selected
|
|
225
|
-
* @
|
|
224
|
+
* @returns {sap.ushell.components.factsheet.controls.PictureViewer} <code>this</code> to allow method chaining
|
|
226
225
|
* @public
|
|
227
226
|
* @name sap.ushell.components.factsheet.controls.PictureViewer#selectPicture
|
|
228
227
|
* @function
|
|
@@ -254,7 +253,7 @@ sap.ui.define([
|
|
|
254
253
|
* Gets the current picture index.
|
|
255
254
|
*
|
|
256
255
|
* @override
|
|
257
|
-
* @
|
|
256
|
+
* @returns {sap.ushell.components.factsheet.controls.PictureViewer} the current picture index
|
|
258
257
|
* @public
|
|
259
258
|
* @name sap.ushell.components.factsheet.controls.PictureViewer#getCurrentPictureIndex
|
|
260
259
|
* @function
|
|
@@ -14,7 +14,6 @@ sap.ui.define([
|
|
|
14
14
|
* @param {object} [mSettings] initial settings for the new control
|
|
15
15
|
* @class Picture viewer control relying on the TileContainer control
|
|
16
16
|
* @extends sap.ui.core.Control
|
|
17
|
-
* @constructor
|
|
18
17
|
* @public
|
|
19
18
|
* @deprecated since 1.22. Please use {@link sap.m.Carousel} instead.
|
|
20
19
|
* PictureViewerItem is used in PictureViewer control and is not meant to be consumed outside of PictureViewer usage.
|
|
@@ -44,7 +43,7 @@ sap.ui.define([
|
|
|
44
43
|
* Default value is empty/<code>undefined</code>
|
|
45
44
|
*
|
|
46
45
|
* @param {string} sSrc new value for property <code>src</code>
|
|
47
|
-
* @
|
|
46
|
+
* @returns {sap.ushell.components.factsheet.controls.PictureViewerItem} <code>this</code> to allow method chaining
|
|
48
47
|
* @public
|
|
49
48
|
* @name sap.ushell.components.factsheet.controls.PictureViewerItem#setSrc
|
|
50
49
|
* @function
|