@sapui5/sap.ushell 1.111.0 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +104 -4
- package/src/main/js/sap/ushell/ApplicationType.js +11 -4
- package/src/main/js/sap/ushell/Container.js +0 -32
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/TechnicalParameters.js +51 -21
- 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/_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 +1 -1
- 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 +24 -158
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/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 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +22 -140
- 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 +2 -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 +1 -1
- 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/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 +1 -1
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +12 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +10 -0
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +28 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +7 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +1 -0
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +26 -23
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +69 -33
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +3 -0
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +17 -4
- package/src/main/js/sap/ushell/components/applicationIntegration/Storage.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +29 -18
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +21 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +9 -4
- 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/cepsearchresult/app/Main.controller.js +1 -7
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/controls/Paginator.css +14 -3
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/controls/Paginator.js +57 -11
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +16 -3
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +470 -23
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +308 -6
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +83 -12
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +33 -6
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +7 -7
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +96 -0
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +44 -14
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +82 -25
- package/src/main/js/sap/ushell/components/contentFinder/view/ContentFinderDialog.view.xml +18 -10
- package/src/main/js/sap/ushell/components/contentFinder/view/WidgetGallery.view.xml +52 -1
- package/src/main/js/sap/ushell/components/contentFinderAppSearch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderAppSearch/controller/ContentFinderAppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderAppSearch/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +116 -40
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- 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/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +17 -6
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/NavigationSvcSearchProvider.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/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/ContentWrapper.fragment.xml +7 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +9 -10
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +49 -57
- 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/cdm/applauncherdynamic/DynamicTile.controller.js +4 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +26 -27
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +23 -4
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/ContentFinderDialog.controller.js +12 -9
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +67 -16
- 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 +3 -0
- 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/resources/resources.properties +5 -3
- package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +4 -262
- 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 -170
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +1 -3
- 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/AccessKeysHandler.js +3 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +2 -2
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyApps.controller.js +2 -1
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyApps.view.xml +10 -1
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources.properties +15 -5
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources_de.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 +0 -37
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +50 -3
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +93 -30
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +5 -243
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +1 -1
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +31 -12
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +4 -2
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +21 -3
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -3
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +178 -125
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +15 -18
- package/src/main/js/sap/ushell/services/SmartNavigation.js +32 -6
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- 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 +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +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 +5 -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 +2 -2
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +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 +131 -135
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +341 -308
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- 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 +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/Catalog.less +4 -0
- package/src/main/js/sap/ushell/themes/base/ContentFinder.less +5 -1
- package/src/main/js/sap/ushell/themes/base/SearchFLP.less +0 -5
- package/src/main/js/sap/ushell/themes/base/ShellAppTitle.less +6 -9
- package/src/main/js/sap/ushell/themes/base/WorkPageCell.less +2 -2
- package/src/main/js/sap/ushell/themes/base/WorkPageColumn.less +8 -0
- package/src/main/js/sap/ushell/themes/base/WorkPageRow.less +2 -2
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.json +16 -1
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.eot +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/horizon/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/base/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_belize/ShellHeader.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_belize/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/ShellHeader.less +0 -27
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/ShellHeader.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +2 -11
- package/src/main/js/sap/ushell/themes/sap_fiori_3/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellHeader.less +2 -11
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/ShellHeader.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/ShellHeader.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_hcb/ShellHeader.less +0 -24
- package/src/main/js/sap/ushell/themes/sap_hcb/library.source.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellAppTitle.less +2 -12
- package/src/main/js/sap/ushell/themes/sap_horizon/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellAppTitle.less +2 -12
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellAppTitle.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/library.source.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellAppTitle.less +0 -25
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/library.source.less +0 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +0 -15
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +199 -0
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +202 -0
- package/src/main/js/sap/ushell/ui/contentFinder/AppBox.js +17 -2
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialogRenderer.js +2 -45
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/TileRenderer.js +4 -21
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +6 -8
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellLayout.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +21 -62
- package/src/main/js/sap/ushell/ui/shell/SplitContainer.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/utils/DynamicTileRequest.js +25 -5
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +53 -51
- package/src/main/js/sap/ushell/services/ContentExtension.js +0 -114
- package/src/main/js/sap/ushell/themes/base/UserPreferencesButton.less +0 -35
- package/src/main/js/sap/ushell/themes/base/flower-standalone.less +0 -774
- package/src/main/js/sap/ushell/themes/sap_belize/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/flower-standalone.less +0 -23
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/flower-standalone.less +0 -33
- package/src/main/js/sap/ushell/themes/sap_hcb/UserPreferencesButton.less +0 -7
- package/src/main/js/sap/ushell/themes/sap_hcb/flower-standalone.less +0 -34
- package/src/main/js/sap/ushell/themes/sap_horizon/UserPreferencesButton.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/UserPreferencesButton.less +0 -8
- package/src/main/js/sap/ushell/ui/footerbar/SettingsButton.js +0 -90
- package/src/main/js/sap/ushell/ui/footerbar/UserPreferencesButton.js +0 -505
- package/src/main/js/sap/ushell/ui5service/CardNavigation.js +0 -131
- package/src/main/js/sap/ushell/ui5service/CardUserFrequents.js +0 -138
- package/src/main/js/sap/ushell/ui5service/CardUserRecents.js +0 -101
- package/src/main/js/sap/ushell/ui5service/_CardUserRecents/CardUserRecentsBase.js +0 -108
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview handle all the resources for the different applications.
|
|
4
|
-
* @version 1.
|
|
4
|
+
* @version 1.112.0
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ushell/components/applicationIntegration/elements/model",
|
|
@@ -24,7 +24,8 @@ sap.ui.define([
|
|
|
24
24
|
"sap/ushell/EventHub",
|
|
25
25
|
"sap/ushell/utils/UrlParsing",
|
|
26
26
|
"sap/ui/core/Core",
|
|
27
|
-
"sap/ui/thirdparty/hasher"
|
|
27
|
+
"sap/ui/thirdparty/hasher",
|
|
28
|
+
"sap/ushell/services/_MessageBroker/MessageBrokerEngine"
|
|
28
29
|
], function (
|
|
29
30
|
ElementsModel,
|
|
30
31
|
Storage,
|
|
@@ -46,7 +47,8 @@ sap.ui.define([
|
|
|
46
47
|
EventHub,
|
|
47
48
|
oUrlParsing,
|
|
48
49
|
Core,
|
|
49
|
-
hasher
|
|
50
|
+
hasher,
|
|
51
|
+
MessageBrokerEngine
|
|
50
52
|
) {
|
|
51
53
|
"use strict";
|
|
52
54
|
|
|
@@ -88,6 +90,10 @@ sap.ui.define([
|
|
|
88
90
|
RESTRICTED: "restricted"
|
|
89
91
|
};
|
|
90
92
|
|
|
93
|
+
//connect FLP to the message broker
|
|
94
|
+
if (window.QUnit === undefined) {
|
|
95
|
+
MessageBrokerEngine.connect("FLP");
|
|
96
|
+
}
|
|
91
97
|
this.shellElements = function () {
|
|
92
98
|
return RelatedShellElements;
|
|
93
99
|
};
|
|
@@ -1367,7 +1373,8 @@ sap.ui.define([
|
|
|
1367
1373
|
if (oTargetAppContainer && BlueBoxHandler.isStatefulContainerSupported(oTargetAppContainer)) {
|
|
1368
1374
|
iLastValidTimeDelta = new Date().getTime() - oTargetAppContainer.getIsIframeValidTime().time;
|
|
1369
1375
|
if ((BlueBoxHandler.isIframeBusySupported(oTargetAppContainer) && oTargetAppContainer.getIsIframeBusy() === true) ||
|
|
1370
|
-
(BlueBoxHandler.isIframeIsValidSupported(oTargetAppContainer) && iLastValidTimeDelta >= 3500)
|
|
1376
|
+
(BlueBoxHandler.isIframeIsValidSupported(oTargetAppContainer) && iLastValidTimeDelta >= 3500) ||
|
|
1377
|
+
oTargetAppContainer.getIsInvalidIframe() === true) {
|
|
1371
1378
|
Log.warning(
|
|
1372
1379
|
"Destroying statefull container iframe due to unresponsiveness (" + oTargetAppContainer.getId() + ")",
|
|
1373
1380
|
"reason: " + (oTargetAppContainer.getIsIframeBusy() === true ? "iframe is still creating a different app" :
|
|
@@ -1540,6 +1547,12 @@ sap.ui.define([
|
|
|
1540
1547
|
// going to be reused, we prompt the container to load the new application context.
|
|
1541
1548
|
var oPromiseAsyncAppCreate = new jQuery.Deferred().resolve().promise();
|
|
1542
1549
|
if (bReuseStatefulContainer) {
|
|
1550
|
+
//for scube - make sure the container is active before we open the app
|
|
1551
|
+
//to allow post messages form the iframe to flp that are sent
|
|
1552
|
+
//as part of the target resolution process
|
|
1553
|
+
if (oTarget.appCapabilities && oTarget.appCapabilities.appFrameworkId === "UI5") {
|
|
1554
|
+
oInnerControl.setProperty("active", true, true);
|
|
1555
|
+
}
|
|
1543
1556
|
oPromiseAsyncAppCreate = that.handleOpenStateful(bIsInitial, bIsInCache, "application" + sAppId, oInnerControl, oTarget, sFixedShellHash, oKeepAliveMode);
|
|
1544
1557
|
} else if (that.isWebGuiV1StatefulContainer(oTarget.url)) {
|
|
1545
1558
|
oPromiseAsyncAppCreate = that.reuseApplicationContainer(oInnerControl, "TR", oTarget.url);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview handle all the resources for the different applications.
|
|
4
|
-
* @version 1.
|
|
4
|
+
* @version 1.112.0
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ushell/components/container/ApplicationContainer",
|
|
@@ -27,6 +27,9 @@ sap.ui.define([
|
|
|
27
27
|
this.handleMessageEvent = function (oContainer, oMessage, oMessageStatus, bIsGlobalMessageListener) {
|
|
28
28
|
var oMessageData = oMessage.data;
|
|
29
29
|
|
|
30
|
+
if (bIsGlobalMessageListener === undefined) {
|
|
31
|
+
bIsGlobalMessageListener = false;
|
|
32
|
+
}
|
|
30
33
|
if (typeof oMessageData === "string") {
|
|
31
34
|
// it's possible that the data attribute is passed as string (IE9)
|
|
32
35
|
try {
|
|
@@ -111,13 +114,22 @@ sap.ui.define([
|
|
|
111
114
|
null,
|
|
112
115
|
"sap.ushell.components.container.ApplicationContainer");
|
|
113
116
|
|
|
117
|
+
if (bIsGlobalMessageListener === undefined) {
|
|
118
|
+
bIsGlobalMessageListener = false;
|
|
119
|
+
}
|
|
120
|
+
|
|
114
121
|
//validate that service is valid
|
|
115
122
|
if (oMessageData.type !== "request" || !sService) {
|
|
116
123
|
return;
|
|
117
124
|
}
|
|
118
125
|
|
|
126
|
+
//message broker messages should be processed only by FLP's default listener
|
|
119
127
|
if (sService === "sap.ushell.services.MessageBroker") {
|
|
120
|
-
|
|
128
|
+
if (bIsGlobalMessageListener === true) {
|
|
129
|
+
sService = sService.concat("._execute");
|
|
130
|
+
} else {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
121
133
|
}
|
|
122
134
|
|
|
123
135
|
for (var oEntryCommHandlerKey in oShellCommunicationHandlersObj) {
|
|
@@ -155,7 +167,7 @@ sap.ui.define([
|
|
|
155
167
|
}
|
|
156
168
|
|
|
157
169
|
// custom trusted callback
|
|
158
|
-
if (
|
|
170
|
+
if (bIsGlobalMessageListener === false && !ApplicationContainer.prototype._isTrustedPostMessageSource(oContainer, oMessage)) {
|
|
159
171
|
// log w/ warning level, message would normally processed by us
|
|
160
172
|
Log.warning("Received message from untrusted origin '" + oMessage.origin + "': "
|
|
161
173
|
+ JSON.stringify(oMessage.data),
|
|
@@ -544,29 +556,28 @@ sap.ui.define([
|
|
|
544
556
|
};
|
|
545
557
|
|
|
546
558
|
|
|
547
|
-
//Add default event handler that will be used
|
|
559
|
+
//Add default event handler that will be used also by plugins running in an iframe,
|
|
548
560
|
//that needs to comunicate with the Message Broker. The handler will currently be limited
|
|
549
561
|
//to process only message broker events.
|
|
550
562
|
function handleMessageEventForDetaultListener (oMessage) {
|
|
551
|
-
|
|
552
|
-
//if the post message arrived from one of the iframes that FLP opened (applications),
|
|
553
|
-
//we do not need to process the message becasue there is already an handler that will
|
|
554
|
-
//handle those message
|
|
555
|
-
var iIndex = jQuery("#viewPortContainer").find("iframe").toArray().findIndex(function (oIframe) {
|
|
556
|
-
return oIframe.contentWindow === oMessage.source;
|
|
557
|
-
});
|
|
558
|
-
if (iIndex > -1) {
|
|
559
|
-
return;
|
|
560
|
-
}
|
|
563
|
+
var that = this;
|
|
561
564
|
|
|
565
|
+
try {
|
|
562
566
|
var oMessageData = oMessage.data;
|
|
563
|
-
|
|
564
|
-
|
|
567
|
+
//limit to handle only message broker events. other events are ignored.
|
|
568
|
+
if (typeof oMessageData === "string" && oMessageData.indexOf("sap.ushell.services.MessageBroker") > 0) {
|
|
565
569
|
try {
|
|
566
570
|
oMessageData = JSON.parse(oMessage.data);
|
|
567
|
-
//limit to handle only message broker events. other apis are ignored.
|
|
568
571
|
if (typeof oMessageData === "object" && oMessageData.type === "request" && oMessageData.service === "sap.ushell.services.MessageBroker") {
|
|
569
|
-
|
|
572
|
+
sap.ushell.Container.getServiceAsync("MessageBroker").then(function (MessageBrokerService) {
|
|
573
|
+
var sVal = MessageBrokerService.getAcceptedOrigins().find(function (sOrigin) {
|
|
574
|
+
return sOrigin === oMessage.origin;
|
|
575
|
+
});
|
|
576
|
+
if (sVal === undefined) {
|
|
577
|
+
return;
|
|
578
|
+
}
|
|
579
|
+
that.handleMessageEvent(undefined, oMessage, {}, true);
|
|
580
|
+
});
|
|
570
581
|
}
|
|
571
582
|
} catch (e) {
|
|
572
583
|
return;
|
package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview handle all the resources for the different applications.
|
|
4
|
-
* @version 1.
|
|
4
|
+
* @version 1.112.0
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ushell/components/applicationIntegration/application/BlueBoxesCache",
|
package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview defines the post message API for all applications running in iframe within the shell
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.112.0
|
|
6
6
|
* @private
|
|
7
7
|
*/
|
|
8
8
|
sap.ui.define([
|
|
@@ -231,7 +231,11 @@ sap.ui.define([
|
|
|
231
231
|
oHash.appSpecificRoute = oServiceParams.oMessageData.body.appSpecificRoute;
|
|
232
232
|
sNewHash = "#" + UrlParsing.constructShellHash(oHash);
|
|
233
233
|
hasher.disableBlueBoxHashChangeTrigger = true;
|
|
234
|
-
|
|
234
|
+
if (oServiceParams.oMessageData.body.writeHistory === true || oServiceParams.oMessageData.body.writeHistory === "true") {
|
|
235
|
+
hasher.setHash(sNewHash);
|
|
236
|
+
} else {
|
|
237
|
+
hasher.replaceHash(sNewHash);
|
|
238
|
+
}
|
|
235
239
|
hasher.disableBlueBoxHashChangeTrigger = false;
|
|
236
240
|
return new jQuery.Deferred().resolve().promise();
|
|
237
241
|
}
|
|
@@ -777,6 +781,15 @@ sap.ui.define([
|
|
|
777
781
|
|
|
778
782
|
return new jQuery.Deferred().resolve(sSystemAlias).promise();
|
|
779
783
|
}
|
|
784
|
+
},
|
|
785
|
+
setAppInfo: {
|
|
786
|
+
executeServiceCallFn: function (oServiceParams) {
|
|
787
|
+
sap.ushell.Container.getServiceAsync("AppLifeCycle").then(function (AppLifeCycleService) {
|
|
788
|
+
AppLifeCycleService.setAppInfo(oServiceParams.oMessageData.body);
|
|
789
|
+
|
|
790
|
+
});
|
|
791
|
+
return new jQuery.Deferred().resolve().promise();
|
|
792
|
+
}
|
|
780
793
|
}
|
|
781
794
|
}
|
|
782
795
|
},
|
|
@@ -870,6 +883,12 @@ sap.ui.define([
|
|
|
870
883
|
oServiceParams.oContainer.setProperty("isIframeBusy", oServiceParams.oMessageData.body.bValue, true);
|
|
871
884
|
return new jQuery.Deferred().resolve().promise();
|
|
872
885
|
}
|
|
886
|
+
},
|
|
887
|
+
isInvalidIframe: {
|
|
888
|
+
executeServiceCallFn: function (oServiceParams) {
|
|
889
|
+
oServiceParams.oContainer.setProperty("isInvalidIframe", oServiceParams.oMessageData.body.bValue, true);
|
|
890
|
+
return new jQuery.Deferred().resolve().promise();
|
|
891
|
+
}
|
|
873
892
|
}
|
|
874
893
|
}
|
|
875
894
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview handle all the resources for the different applications.
|
|
4
|
-
* @version 1.
|
|
4
|
+
* @version 1.112.0
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/base/util/extend",
|
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
var oTitles = Config.last("/core/shell/model/currentSpaceAndPage");
|
|
71
71
|
if (oTitles !== undefined) {
|
|
72
72
|
oHierarchy.splice(0, 0, { // insert at 0 index because the hierarchy is shown as stack
|
|
73
|
-
icon: "sap-icon://
|
|
73
|
+
icon: "sap-icon://space-navigation",
|
|
74
74
|
title: oTitles.pageTitle,
|
|
75
75
|
subtitle: oTitles.pageTitle !== oTitles.spaceTitle ? oTitles.spaceTitle : undefined, // Do not show the same string twice if space name is the same as page name
|
|
76
76
|
intent: "#" + oTitles.hash
|
|
@@ -157,7 +157,7 @@ sap.ui.define([
|
|
|
157
157
|
*/
|
|
158
158
|
this._getDefaultFavIcon = function (oParameters) {
|
|
159
159
|
var favIcon = oParameters.get("sapUiShellFavicon");
|
|
160
|
-
if (favIcon) {
|
|
160
|
+
if (favIcon) { // custom theme favicon
|
|
161
161
|
var match = /url[\s]*\('?"?([^'")]*)'?"?\)/.exec(favIcon);
|
|
162
162
|
if (match) {
|
|
163
163
|
favIcon = match[1];
|
|
@@ -166,7 +166,12 @@ sap.ui.define([
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
var sConfigFavicon = Config.last("/core/shell/favIcon");
|
|
170
|
+
if (sConfigFavicon && (favIcon === null)) { // configuration favicon
|
|
171
|
+
return sConfigFavicon;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (!favIcon) { // default favicon
|
|
170
175
|
var sModulePath = sap.ui.require.toUrl("sap/ushell");
|
|
171
176
|
return sModulePath + "/themes/base/img/launchpad_favicon.ico";
|
|
172
177
|
}
|
|
@@ -23,19 +23,13 @@ sap.ui.define([
|
|
|
23
23
|
var oCard = this.getView().byId("searchResultWidget");
|
|
24
24
|
if (!this.oHost) {
|
|
25
25
|
this.oHost = new Host({
|
|
26
|
-
actions: [
|
|
27
|
-
{
|
|
28
|
-
type: 'Navigation',
|
|
29
|
-
action: this.handleCardAction.bind(this)
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
26
|
id: "searchAppHost",
|
|
33
27
|
resolveDestination: function (sName) {
|
|
34
28
|
return null; // TODO
|
|
35
29
|
}
|
|
36
30
|
});
|
|
37
31
|
oCard.setHost(this.oHost);
|
|
38
|
-
|
|
32
|
+
this.oHost.attachAction(this.handleCardAction.bind(this));
|
|
39
33
|
}
|
|
40
34
|
},
|
|
41
35
|
initSearchResultManager: function () {
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
.sapUiCEPCatPag .sapMBtnDisabled.sapUiCEPCatPagNumber {
|
|
2
2
|
opacity: 1 !important;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
.sapUiCEPCatPag .sapMBtn:hover .sapMBtnDefault {
|
|
5
|
+
border-color: transparent !important;
|
|
6
|
+
box-shadow: unset !important;
|
|
7
|
+
}
|
|
8
|
+
.sapUiCEPCatPag .sapMBtn .sapMBtnDefault {
|
|
9
|
+
background-color: transparent !important;
|
|
10
|
+
border-color: transparent;
|
|
11
|
+
font-family:inherit !important;
|
|
12
|
+
}
|
|
13
|
+
.sapUiCEPCatPag .sapMBtnDisabled .sapMBtnDefault {
|
|
7
14
|
color: var(--sapUiBaseText) !important;
|
|
15
|
+
font-weight: bold;
|
|
8
16
|
border-color: transparent;
|
|
9
17
|
}
|
|
18
|
+
.sapUiCEPCatPag .sapMBtnDefault, .sapUiCEPCatPag .sapMBtn:not(.sapMBtnDisabled) .sapUiIcon {
|
|
19
|
+
color: var(--sapUiLinkActiveColor) !important;
|
|
20
|
+
}
|
|
@@ -6,7 +6,7 @@ sap.ui.define([
|
|
|
6
6
|
"sap/ui/core/Control",
|
|
7
7
|
"sap/m/ToggleButton",
|
|
8
8
|
"sap/ui/core/delegate/ItemNavigation",
|
|
9
|
-
"
|
|
9
|
+
"../../../util/appendStyleVars",
|
|
10
10
|
"sap/ui/dom/includeStylesheet"
|
|
11
11
|
], function (
|
|
12
12
|
Control,
|
|
@@ -20,7 +20,8 @@ sap.ui.define([
|
|
|
20
20
|
// Append the style vars for css
|
|
21
21
|
appendStyleVars([
|
|
22
22
|
"sapUiBaseText",
|
|
23
|
-
"sapUiButtonBackground"
|
|
23
|
+
"sapUiButtonBackground",
|
|
24
|
+
"sapUiLinkActiveColor"
|
|
24
25
|
]);
|
|
25
26
|
|
|
26
27
|
// Include the css for the control once
|
|
@@ -41,7 +42,7 @@ sap.ui.define([
|
|
|
41
42
|
},
|
|
42
43
|
count: {
|
|
43
44
|
type: "int",
|
|
44
|
-
defaultValue:
|
|
45
|
+
defaultValue: 0
|
|
45
46
|
},
|
|
46
47
|
currentPage: {
|
|
47
48
|
type: "int",
|
|
@@ -49,7 +50,7 @@ sap.ui.define([
|
|
|
49
50
|
},
|
|
50
51
|
segmentSize: {
|
|
51
52
|
type: "int",
|
|
52
|
-
defaultValue:
|
|
53
|
+
defaultValue: 7
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
},
|
|
@@ -97,10 +98,14 @@ sap.ui.define([
|
|
|
97
98
|
// get some vars to avoid getter calls for all calculations
|
|
98
99
|
var iPageSize = this.getPageSize();
|
|
99
100
|
var iPages = Math.ceil(this.getCount() / iPageSize);
|
|
100
|
-
var iCurrentPage = this.getCurrentPage();
|
|
101
|
+
var iCurrentPage = Math.min(this.getCurrentPage(), iPages);
|
|
101
102
|
var iSegmentSize = this.getSegmentSize();
|
|
102
|
-
var
|
|
103
|
-
var
|
|
103
|
+
var iCurrentSegmentStart = Math.max(iCurrentPage - Math.floor(iSegmentSize / 2), 1);
|
|
104
|
+
var iCurrentSegmentEnd = Math.min(iCurrentSegmentStart + iSegmentSize - 1, iPages);
|
|
105
|
+
if (iCurrentSegmentEnd === iPages) {
|
|
106
|
+
iCurrentSegmentStart = Math.max(iPages - iSegmentSize + 1, 1);
|
|
107
|
+
}
|
|
108
|
+
|
|
104
109
|
|
|
105
110
|
// left arrow
|
|
106
111
|
var oLeftArrow = new Button({
|
|
@@ -113,14 +118,34 @@ sap.ui.define([
|
|
|
113
118
|
});
|
|
114
119
|
this.addAggregation("_buttons", oLeftArrow);
|
|
115
120
|
|
|
121
|
+
// first page
|
|
122
|
+
if (iCurrentSegmentStart > 1) {
|
|
123
|
+
var oFirstPage = new Button({
|
|
124
|
+
text: "1",
|
|
125
|
+
enabled: iCurrentPage > 1,
|
|
126
|
+
visible: iCurrentPage > 1,
|
|
127
|
+
press: function () {
|
|
128
|
+
this._setCurrentPageWithEvent(1);
|
|
129
|
+
}.bind(this)
|
|
130
|
+
});
|
|
131
|
+
this.addAggregation("_buttons", oFirstPage);
|
|
132
|
+
var oPrevSegmentPage = new Button({
|
|
133
|
+
text: iCurrentSegmentStart === 3 ? 2 : "...",
|
|
134
|
+
enabled: iCurrentPage >= iCurrentSegmentStart,
|
|
135
|
+
visible: iPages > iSegmentSize && iCurrentSegmentStart > 2,
|
|
136
|
+
press: function () {
|
|
137
|
+
this._setCurrentPageWithEvent(iCurrentSegmentStart - 1);
|
|
138
|
+
}.bind(this)
|
|
139
|
+
});
|
|
140
|
+
this.addAggregation("_buttons", oPrevSegmentPage);
|
|
141
|
+
}
|
|
116
142
|
// numbered paging buttons, starts with 1
|
|
117
|
-
for (var i =
|
|
143
|
+
for (var i = iCurrentSegmentStart; i <= iCurrentSegmentEnd; i++) {
|
|
118
144
|
var oButton = new Button({
|
|
119
145
|
text: "" + i,
|
|
120
146
|
pressed: i === iCurrentPage,
|
|
121
147
|
enabled: i !== iCurrentPage,
|
|
122
|
-
visible:
|
|
123
|
-
(iCurrentSegment === iSegments && i > iPages - iSegmentSize)),
|
|
148
|
+
visible: true,
|
|
124
149
|
press: (function (oPaginator, iPage) {
|
|
125
150
|
return function () {
|
|
126
151
|
oPaginator._setCurrentPageWithEvent(iPage);
|
|
@@ -130,6 +155,26 @@ sap.ui.define([
|
|
|
130
155
|
oButton.addStyleClass("sapUiCEPCatPagNumber");
|
|
131
156
|
this.addAggregation("_buttons", oButton);
|
|
132
157
|
}
|
|
158
|
+
if (iCurrentSegmentEnd < iPages) {
|
|
159
|
+
var oNextSegmentPage = new Button({
|
|
160
|
+
text: iCurrentSegmentEnd === iPages - 2 ? iPages - 1 : "...",
|
|
161
|
+
enabled: true,
|
|
162
|
+
visible: iPages > 1 && iCurrentPage <= iPages - (iSegmentSize / 2),
|
|
163
|
+
press: function () {
|
|
164
|
+
this._setCurrentPageWithEvent(iCurrentSegmentEnd + 1);
|
|
165
|
+
}.bind(this)
|
|
166
|
+
});
|
|
167
|
+
this.addAggregation("_buttons", oNextSegmentPage);
|
|
168
|
+
var oLastPage = new Button({
|
|
169
|
+
text: "" + iPages,
|
|
170
|
+
enabled: iCurrentPage !== iPages,
|
|
171
|
+
visible: iPages > 1,
|
|
172
|
+
press: function () {
|
|
173
|
+
this._setCurrentPageWithEvent(iPages);
|
|
174
|
+
}.bind(this)
|
|
175
|
+
});
|
|
176
|
+
this.addAggregation("_buttons", oLastPage);
|
|
177
|
+
}
|
|
133
178
|
|
|
134
179
|
// right arrow
|
|
135
180
|
var oRightArrow = new Button({
|
|
@@ -162,7 +207,8 @@ sap.ui.define([
|
|
|
162
207
|
.setCycling(false)
|
|
163
208
|
.setTableMode(true, true)
|
|
164
209
|
.setColumns(this.getAggregation("_buttons").length)
|
|
165
|
-
.setRootDomRef(this.getDomRef())
|
|
210
|
+
.setRootDomRef(this.getDomRef())
|
|
211
|
+
.setPageSize(this.getPageSize());
|
|
166
212
|
|
|
167
213
|
var aNavigationItems = Array.from(this.getDomRef().querySelectorAll(".sapMBtn"));
|
|
168
214
|
this._oItemNavigation.setItemDomRefs(aNavigationItems);
|
|
@@ -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.112.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
@@ -76,7 +76,8 @@ sap.ui.define([
|
|
|
76
76
|
bKeepMessagesForPlugins = false,
|
|
77
77
|
arrMessagesForPlugins = [],
|
|
78
78
|
arrMessagesIdx = 0,
|
|
79
|
-
iIframeIdx = 0
|
|
79
|
+
iIframeIdx = 0,
|
|
80
|
+
oMessageBrokerServicePromise;
|
|
80
81
|
|
|
81
82
|
//These params should be excluded from the URL for WDA & WebGUI apps
|
|
82
83
|
var URL_PARAMS_FILTER = ["sap-ach", "sap-fiori-id", "sap-hide-intent-link", "sap-priority", "sap-tag",
|
|
@@ -1123,6 +1124,14 @@ sap.ui.define([
|
|
|
1123
1124
|
}
|
|
1124
1125
|
}
|
|
1125
1126
|
|
|
1127
|
+
//add the url origin to the allowed origins list of the message broker
|
|
1128
|
+
if (oMessageBrokerServicePromise) {
|
|
1129
|
+
oMessageBrokerServicePromise.then(function (oMessageBrokerService) {
|
|
1130
|
+
oMessageBrokerService.addAcceptedOrigin(new URI(sUrl).origin());
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
//preperations to open the iframe with POST (vs the default GET)
|
|
1126
1135
|
if (sApplicationType === "TR") {
|
|
1127
1136
|
oContainer.setProperty("iframePostAllParams", true, true);
|
|
1128
1137
|
}
|
|
@@ -1570,7 +1579,8 @@ sap.ui.define([
|
|
|
1570
1579
|
frameworkId: { defaultValue: "", type: "string" },
|
|
1571
1580
|
iframeReusedForApp: { defaultValue: false, type: "boolean" },
|
|
1572
1581
|
isIframeValidTime: { defaultValue: {time: 0}, type: "object" },
|
|
1573
|
-
isIframeBusy: { defaultValue: false, type: "boolean" }
|
|
1582
|
+
isIframeBusy: { defaultValue: false, type: "boolean" },
|
|
1583
|
+
isInvalidIframe: { defaultValue: false, type: "boolean" }
|
|
1574
1584
|
},
|
|
1575
1585
|
events: {
|
|
1576
1586
|
applicationConfiguration: {}
|
|
@@ -1666,6 +1676,9 @@ sap.ui.define([
|
|
|
1666
1676
|
|
|
1667
1677
|
that._messageEventListener = ApplicationContainer.prototype._handleMessageEvent.bind(null, that);
|
|
1668
1678
|
addEventListener("message", that._messageEventListener);
|
|
1679
|
+
if (!oMessageBrokerServicePromise && sap.ushell.Container && sap.ushell.Container.getServiceAsync) {
|
|
1680
|
+
oMessageBrokerServicePromise = sap.ushell.Container.getServiceAsync("MessageBroker");
|
|
1681
|
+
}
|
|
1669
1682
|
},
|
|
1670
1683
|
|
|
1671
1684
|
onAfterRendering: function (/*oEvent*/) {
|