@sapui5/sap.ushell 1.111.1 → 1.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +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/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 +15 -3
- 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 +15 -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 +14 -2
- 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/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 +52 -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/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
|
@@ -38,9 +38,9 @@ sap.ui.define([
|
|
|
38
38
|
return UIComponent.extend("sap.ushell.components.visualizationOrganizer.Component", {
|
|
39
39
|
|
|
40
40
|
metadata: {
|
|
41
|
-
version: "1.
|
|
41
|
+
version: "1.112.1",
|
|
42
42
|
library: "sap.ushell",
|
|
43
|
-
dependencies: { libs: [
|
|
43
|
+
dependencies: { libs: ["sap.m"] },
|
|
44
44
|
properties: {
|
|
45
45
|
pressed: { type: "boolean", group: "Misc", defaultValue: false }
|
|
46
46
|
}
|
|
@@ -106,7 +106,7 @@ sap.ui.define([
|
|
|
106
106
|
if (this.mVizIdInPages.has(vizId)) {
|
|
107
107
|
this.mVizIdInPages.get(vizId).add(oPage.identification.id);
|
|
108
108
|
} else {
|
|
109
|
-
this.mVizIdInPages.set(vizId, new Set([
|
|
109
|
+
this.mVizIdInPages.set(vizId, new Set([oPage.identification.id]));
|
|
110
110
|
}
|
|
111
111
|
}.bind(this));
|
|
112
112
|
}.bind(this));
|
|
@@ -171,11 +171,11 @@ sap.ui.define([
|
|
|
171
171
|
|
|
172
172
|
//SectionContext with sectionID
|
|
173
173
|
if (sectionContext.sectionID && bIsVizIdPresent) {
|
|
174
|
-
return resources.i18n.getText("VisualizationOrganizer.Button.Tooltip.RemoveFromSection"
|
|
174
|
+
return resources.i18n.getText("VisualizationOrganizer.Button.Tooltip.RemoveFromSection");
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
if (sectionContext.sectionID && !bIsVizIdPresent) {
|
|
178
|
-
return resources.i18n.getText("VisualizationOrganizer.Button.Tooltip.AddToSection"
|
|
178
|
+
return resources.i18n.getText("VisualizationOrganizer.Button.Tooltip.AddToSection");
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
//SectionContext without sectionID
|
|
@@ -372,10 +372,11 @@ sap.ui.define([
|
|
|
372
372
|
oPopover.close();
|
|
373
373
|
} else {
|
|
374
374
|
MessageBox.show(
|
|
375
|
-
resources.i18n.getText("VisualizationOrganizer.MessageBox.Description"),
|
|
375
|
+
resources.i18n.getText("VisualizationOrganizer.MessageBox.Description"),
|
|
376
|
+
{
|
|
376
377
|
id: "sapUshellVisualizationOrganizerDiscardDialog",
|
|
377
378
|
title: resources.i18n.getText("VisualizationOrganizer.MessageBox.Title"),
|
|
378
|
-
actions: [
|
|
379
|
+
actions: [resources.i18n.getText("VisualizationOrganizer.MessageBox.ActionDiscard"), MessageBox.Action.CANCEL],
|
|
379
380
|
emphasizedAction: resources.i18n.getText("VisualizationOrganizer.MessageBox.ActionDiscard"),
|
|
380
381
|
onClose: function (oAction) {
|
|
381
382
|
if (oAction === resources.i18n.getText("VisualizationOrganizer.MessageBox.ActionDiscard")) {
|
|
@@ -435,7 +436,7 @@ sap.ui.define([
|
|
|
435
436
|
var oVizDeleteChain;
|
|
436
437
|
var iPageIndex = oPageService.getPageIndex(sPageId);
|
|
437
438
|
|
|
438
|
-
|
|
439
|
+
var aSortedVisualizationsPerSectionIndexes = aVisualizationLocations.sort(function (a, b) {
|
|
439
440
|
return b.sectionIndex - a.sectionIndex;
|
|
440
441
|
});
|
|
441
442
|
|
|
@@ -445,7 +446,7 @@ sap.ui.define([
|
|
|
445
446
|
});
|
|
446
447
|
});
|
|
447
448
|
|
|
448
|
-
|
|
449
|
+
aSortedVisualizationsPerSectionIndexes.forEach(function (oVisualizationLocation) {
|
|
449
450
|
var iSectionIndex = oVisualizationLocation.sectionIndex;
|
|
450
451
|
oVisualizationLocation.vizIndexes.forEach(function (iVizIndex) {
|
|
451
452
|
if (!oVizDeleteChain) {
|
|
@@ -459,9 +460,9 @@ sap.ui.define([
|
|
|
459
460
|
});
|
|
460
461
|
return oVizDeleteChain;
|
|
461
462
|
})
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
.then(function () {
|
|
464
|
+
this.stVizIdInSection.delete(sVizId);
|
|
465
|
+
}.bind(this));
|
|
465
466
|
} else {
|
|
466
467
|
oVizChangeChain = oPageService.addVisualization(sPageId, sSectionId, sVizId).then(function () {
|
|
467
468
|
this.stVizIdInSection.add(sVizId);
|
|
@@ -472,7 +473,7 @@ sap.ui.define([
|
|
|
472
473
|
oOpenBy.getBinding("type").refresh(true);
|
|
473
474
|
oOpenBy.getBinding("tooltip").refresh(true);
|
|
474
475
|
|
|
475
|
-
sap.ui.require([
|
|
476
|
+
sap.ui.require(["sap/m/MessageToast"], function (MessageToast) {
|
|
476
477
|
MessageToast.show(sMessageToUser, { offset: "0 -50" });
|
|
477
478
|
});
|
|
478
479
|
});
|
|
@@ -491,7 +492,7 @@ sap.ui.define([
|
|
|
491
492
|
* @private
|
|
492
493
|
*/
|
|
493
494
|
|
|
494
|
-
|
|
495
|
+
_getTextMsgSectionContext: function (oSectionContext, sVizId, sVisualizationTitle) {
|
|
495
496
|
var sSectionId = oSectionContext.sectionID;
|
|
496
497
|
var sSectionTitle = oSectionContext.sectionTitle;
|
|
497
498
|
var sPageTitle = oSectionContext.pageTitle;
|
|
@@ -505,7 +506,7 @@ sap.ui.define([
|
|
|
505
506
|
return resources.i18n.getText("VisualizationOrganizer.MessageToastSectionContextAdd", [sVisualizationTitle || sVizId, sSectionTitle, sPageTitle]);
|
|
506
507
|
}
|
|
507
508
|
|
|
508
|
-
|
|
509
|
+
//No sectionID
|
|
509
510
|
if (!sSectionId && this.stVizIdInSection.has(sVizId)) {
|
|
510
511
|
return resources.i18n.getText("VisualizationOrganizer.MessageToastPageRemove", [sVisualizationTitle || sVizId, sPageTitle]);
|
|
511
512
|
}
|
|
@@ -596,7 +597,7 @@ sap.ui.define([
|
|
|
596
597
|
if (this.mVizIdInPages.has(sVizId)) {
|
|
597
598
|
this.mVizIdInPages.get(sVizId).add(sPageId);
|
|
598
599
|
} else {
|
|
599
|
-
this.mVizIdInPages.set(sVizId, new Set([
|
|
600
|
+
this.mVizIdInPages.set(sVizId, new Set([sPageId]));
|
|
600
601
|
}
|
|
601
602
|
}.bind(this));
|
|
602
603
|
|
|
@@ -607,7 +608,7 @@ sap.ui.define([
|
|
|
607
608
|
oOpenBy.getBinding("tooltip").refresh(true);
|
|
608
609
|
}
|
|
609
610
|
if (bShowMessage) {
|
|
610
|
-
sap.ui.require([
|
|
611
|
+
sap.ui.require(["sap/m/MessageToast"], function (MessageToast) {
|
|
611
612
|
MessageToast.show(resources.i18n.getText("VisualizationOrganizer.MessageToast"));
|
|
612
613
|
});
|
|
613
614
|
}
|
|
@@ -1087,7 +1088,7 @@ sap.ui.define([
|
|
|
1087
1088
|
|
|
1088
1089
|
return oVizChangeChain.then(function () {
|
|
1089
1090
|
if (bShowMessage) {
|
|
1090
|
-
sap.ui.require([
|
|
1091
|
+
sap.ui.require(["sap/m/MessageToast"], function (MessageToast) {
|
|
1091
1092
|
MessageToast.show(resources.i18n.getText("VisualizationOrganizer.MessageToast"));
|
|
1092
1093
|
});
|
|
1093
1094
|
}
|
|
@@ -1117,7 +1118,7 @@ sap.ui.define([
|
|
|
1117
1118
|
if (oVizInfo.bookmarkCount > 0) {
|
|
1118
1119
|
sMessageToUser = resources.i18n.getText(
|
|
1119
1120
|
"VisualizationOrganizer.MessageToastSectionContextRemove",
|
|
1120
|
-
[
|
|
1121
|
+
[sVisualizationTitle, oSectionContext.sectionTitle, oSectionContext.pageTitle]
|
|
1121
1122
|
);
|
|
1122
1123
|
oVizChangeChain = oPageService.deleteBookmarks({ url: sUrl }, sPageId, sSectionId);
|
|
1123
1124
|
} else {
|
|
@@ -1129,12 +1130,12 @@ sap.ui.define([
|
|
|
1129
1130
|
};
|
|
1130
1131
|
sMessageToUser = resources.i18n.getText(
|
|
1131
1132
|
"VisualizationOrganizer.MessageToastSectionContextAdd",
|
|
1132
|
-
[
|
|
1133
|
+
[sVisualizationTitle, oSectionContext.sectionTitle, oSectionContext.pageTitle]
|
|
1133
1134
|
);
|
|
1134
1135
|
oVizChangeChain = oPageService.addBookmarkToPage(sPageId, oVisualization, sSectionId);
|
|
1135
1136
|
}
|
|
1136
1137
|
return oVizChangeChain.then(function () {
|
|
1137
|
-
sap.ui.require([
|
|
1138
|
+
sap.ui.require(["sap/m/MessageToast"], function (MessageToast) {
|
|
1138
1139
|
MessageToast.show(sMessageToUser, { offset: "0 -50" });
|
|
1139
1140
|
});
|
|
1140
1141
|
});
|
|
@@ -1179,11 +1180,9 @@ sap.ui.define([
|
|
|
1179
1180
|
* @see isVizIdPresent
|
|
1180
1181
|
*/
|
|
1181
1182
|
formatBookmarkPinButtonTooltip: function (bookmarkCount, sectionContext) {
|
|
1182
|
-
var sText
|
|
1183
|
-
sSectionTitle;
|
|
1183
|
+
var sText;
|
|
1184
1184
|
|
|
1185
1185
|
if (sectionContext) {
|
|
1186
|
-
sSectionTitle = sectionContext.sectionTitle;
|
|
1187
1186
|
if (bookmarkCount > 0) {
|
|
1188
1187
|
sText = "VisualizationOrganizer.Button.Tooltip.RemoveFromSection";
|
|
1189
1188
|
} else {
|
|
@@ -1195,7 +1194,7 @@ sap.ui.define([
|
|
|
1195
1194
|
sText = "EasyAccessMenu_PinButton_UnToggled_Tooltip";
|
|
1196
1195
|
}
|
|
1197
1196
|
|
|
1198
|
-
return resources.i18n.getText(sText
|
|
1197
|
+
return resources.i18n.getText(sText);
|
|
1199
1198
|
},
|
|
1200
1199
|
|
|
1201
1200
|
/**
|
|
@@ -1226,7 +1225,7 @@ sap.ui.define([
|
|
|
1226
1225
|
};
|
|
1227
1226
|
var sMessageToUser = resources.i18n.getText(
|
|
1228
1227
|
bIsVizIdPresented ? "VisualizationOrganizer.MessageToastPageRemove" : "VisualizationOrganizer.MessageToastPageAdd",
|
|
1229
|
-
[
|
|
1228
|
+
[sVisualizationTitle || sVisualizationId, oPage.title]
|
|
1230
1229
|
);
|
|
1231
1230
|
|
|
1232
1231
|
this.oVizInfo = oVizInfo;
|
|
@@ -1243,7 +1242,7 @@ sap.ui.define([
|
|
|
1243
1242
|
oOpenBy.getBinding("type").refresh(true);
|
|
1244
1243
|
oOpenBy.getBinding("tooltip").refresh(true);
|
|
1245
1244
|
|
|
1246
|
-
sap.ui.require([
|
|
1245
|
+
sap.ui.require(["sap/m/MessageToast"], function (MessageToast) {
|
|
1247
1246
|
MessageToast.show(sMessageToUser, { offset: "0 -50" });
|
|
1248
1247
|
});
|
|
1249
1248
|
});
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* @fileOverview WorkPageBuilder Component
|
|
4
4
|
* This UIComponent gets initialized by the FLP renderer upon visiting a work page if work pages are enabled (/core/workPages/enabled).
|
|
5
5
|
*
|
|
6
|
-
* @version 1.
|
|
6
|
+
* @version 1.112.1
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/ui/core/UIComponent",
|
|
11
11
|
"sap/base/util/ObjectPath",
|
|
12
|
-
"sap/
|
|
13
|
-
"sap/
|
|
14
|
-
], function (UIComponent, ObjectPath,
|
|
12
|
+
"sap/base/Log",
|
|
13
|
+
"sap/ushell/services/VisualizationInstantiation"
|
|
14
|
+
], function (UIComponent, ObjectPath, Log, VisualizationInstantiation) {
|
|
15
15
|
"use strict";
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -55,9 +55,28 @@ sap.ui.define([
|
|
|
55
55
|
init: function () {
|
|
56
56
|
this.oSiteApplications = {};
|
|
57
57
|
this.oSiteVizTypes = {};
|
|
58
|
+
/**
|
|
59
|
+
* The VisualizationInstantiation service has to be instantiated like this (not with sap.ushell.Container.getServiceAsync)
|
|
60
|
+
* This is because the admin UI is running in an iFrame and has no sap.ushell.Container.
|
|
61
|
+
* If parent.sap.ushell.Container is used, the instantiated control uses sources from the parent frame (ManageObject, etc.),
|
|
62
|
+
* which causes issues (e.g. isA does not work).
|
|
63
|
+
* Might be changed at a later point, when there is a sap.ushell.Container also running inside the iFrame.
|
|
64
|
+
*/
|
|
65
|
+
this._oVizInstantiationPromise = Promise.resolve(new VisualizationInstantiation());
|
|
58
66
|
UIComponent.prototype.init.apply(this, arguments);
|
|
59
67
|
},
|
|
60
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Resolves with the ushell VizInstantiation service.
|
|
71
|
+
*
|
|
72
|
+
* @return {Promise<sap.ushell.services.VisualizationInstantiation>} A promise resolving to the VizInstantiation service.
|
|
73
|
+
* @since 1.112.0
|
|
74
|
+
* @private
|
|
75
|
+
*/
|
|
76
|
+
getVizInstantiationPromise: function () {
|
|
77
|
+
return this._oVizInstantiationPromise;
|
|
78
|
+
},
|
|
79
|
+
|
|
61
80
|
/**
|
|
62
81
|
* API to call the getEditMode function on the WorkPageBuilder controller.
|
|
63
82
|
* @return {boolean} Returns the value of editMode
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file ContentFinder dialog controller for WorkPageBuilder view
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.112.1
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/mvc/Controller",
|
|
@@ -14,8 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
"sap/ushell/library",
|
|
15
15
|
"sap/m/library",
|
|
16
16
|
"sap/base/Log",
|
|
17
|
-
"sap/base/util/ObjectPath"
|
|
18
|
-
"sap/base/util/uid"
|
|
17
|
+
"sap/base/util/ObjectPath"
|
|
19
18
|
], function (
|
|
20
19
|
Controller,
|
|
21
20
|
Device,
|
|
@@ -26,8 +25,7 @@ sap.ui.define([
|
|
|
26
25
|
ushellLibrary,
|
|
27
26
|
mobileLibrary,
|
|
28
27
|
Log,
|
|
29
|
-
ObjectPath
|
|
30
|
-
uid
|
|
28
|
+
ObjectPath
|
|
31
29
|
) {
|
|
32
30
|
|
|
33
31
|
"use strict";
|
|
@@ -429,9 +427,14 @@ sap.ui.define([
|
|
|
429
427
|
}
|
|
430
428
|
}.bind(this));
|
|
431
429
|
|
|
430
|
+
var aIds = [];
|
|
431
|
+
var sId;
|
|
432
|
+
|
|
432
433
|
var aWidgetData = aContentFinderSelectedTiles.map(function (tile) {
|
|
434
|
+
sId = this.oWorkPageDataProvider.fnGenerateUid(aIds);
|
|
435
|
+
aIds = aIds.concat([sId]);
|
|
433
436
|
return {
|
|
434
|
-
Id:
|
|
437
|
+
Id: sId,
|
|
435
438
|
DescriptorSchemaVersion: "3.2.0",
|
|
436
439
|
Descriptor: {},
|
|
437
440
|
Visualization: {
|
|
@@ -439,7 +442,7 @@ sap.ui.define([
|
|
|
439
442
|
Type: tile.type
|
|
440
443
|
}
|
|
441
444
|
};
|
|
442
|
-
});
|
|
445
|
+
}.bind(this));
|
|
443
446
|
|
|
444
447
|
if (bRestrictedMode) {
|
|
445
448
|
this._setCellData(aWidgetData);
|
|
@@ -464,7 +467,7 @@ sap.ui.define([
|
|
|
464
467
|
}
|
|
465
468
|
|
|
466
469
|
var aWidgetData = [{
|
|
467
|
-
Id:
|
|
470
|
+
Id: this.oWorkPageDataProvider.fnGenerateUid(),
|
|
468
471
|
Descriptor: {},
|
|
469
472
|
Visualization: {
|
|
470
473
|
Id: oSelectedCard.Id,
|
|
@@ -495,7 +498,7 @@ sap.ui.define([
|
|
|
495
498
|
}
|
|
496
499
|
|
|
497
500
|
oColumnData.Cells = oColumnData.Cells.concat([{
|
|
498
|
-
Id:
|
|
501
|
+
Id: this.oWorkPageDataProvider.fnGenerateUid(),
|
|
499
502
|
DescriptorSchemaVersion: "3.2.0",
|
|
500
503
|
Descriptor: {},
|
|
501
504
|
Widgets: aWidgetData.concat([])
|
package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file WorkPageBuilder controller for WorkPageBuilder view
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.112.1
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
9
9
|
"sap/ui/core/Core",
|
|
10
10
|
"sap/ui/core/mvc/Controller",
|
|
11
|
-
"sap/
|
|
11
|
+
"sap/ushell/utils",
|
|
12
12
|
"sap/ui/integration/widgets/Card",
|
|
13
13
|
"sap/ui/core/Fragment",
|
|
14
14
|
"sap/ui/integration/Host",
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
Log,
|
|
31
31
|
Core,
|
|
32
32
|
Controller,
|
|
33
|
-
|
|
33
|
+
utils,
|
|
34
34
|
Card,
|
|
35
35
|
Fragment,
|
|
36
36
|
Host,
|
|
@@ -101,13 +101,15 @@ sap.ui.define([
|
|
|
101
101
|
EventHub.on("themeChanged").do(fnBoundSetGridContainerSizes);
|
|
102
102
|
this._setGridContainerSizes();
|
|
103
103
|
|
|
104
|
-
this.getView().setModel(this.oModel);
|
|
105
|
-
|
|
106
104
|
this.byId("sapCepWorkPage").bindElement({
|
|
107
105
|
path: "/data/WorkPage"
|
|
108
106
|
});
|
|
109
107
|
|
|
110
|
-
this.
|
|
108
|
+
return this.getOwnerComponent().getVizInstantiationPromise()
|
|
109
|
+
.then(function (oVisualizationInstantiation) {
|
|
110
|
+
this._oVizInstantiationService = oVisualizationInstantiation;
|
|
111
|
+
this.getView().setModel(this.oModel);
|
|
112
|
+
}.bind(this));
|
|
111
113
|
},
|
|
112
114
|
|
|
113
115
|
/**
|
|
@@ -468,7 +470,8 @@ sap.ui.define([
|
|
|
468
470
|
oWorkPageBuilderView: this.getView(),
|
|
469
471
|
sUsedVizRootPath: "/data/UsedVisualizations",
|
|
470
472
|
oColumn: this._oColumn,
|
|
471
|
-
fnOnWidgetAdded: this.onWidgetAdded.bind(this)
|
|
473
|
+
fnOnWidgetAdded: this.onWidgetAdded.bind(this),
|
|
474
|
+
fnGenerateUid: this._generateUniqueId.bind(this)
|
|
472
475
|
};
|
|
473
476
|
this.oContentFinderDialogController.connect(
|
|
474
477
|
this.sFragmentId,
|
|
@@ -500,7 +503,8 @@ sap.ui.define([
|
|
|
500
503
|
oWorkPageBuilderView: this.getView(),
|
|
501
504
|
sUsedVizRootPath: "/data/UsedVisualizations",
|
|
502
505
|
oCell: oCell,
|
|
503
|
-
fnOnWidgetAdded: this.onWidgetAdded.bind(this)
|
|
506
|
+
fnOnWidgetAdded: this.onWidgetAdded.bind(this),
|
|
507
|
+
fnGenerateUid: this._generateUniqueId.bind(this)
|
|
504
508
|
};
|
|
505
509
|
this.oContentFinderDialogController.connect(
|
|
506
510
|
this.sFragmentId,
|
|
@@ -669,9 +673,9 @@ sap.ui.define([
|
|
|
669
673
|
*/
|
|
670
674
|
_createVizInstance: function (oVizData) {
|
|
671
675
|
var oIndicatorDataSource = ObjectPath.get(["Descriptor", "sap.flp", "indicatorDataSource"], oVizData);
|
|
672
|
-
var oDataSources = ObjectPath.get(["Descriptor", "sap.app", "dataSources"], oVizData);
|
|
673
676
|
var sAppId = ObjectPath.get(["Descriptor", "sap.flp", "target", "appId"], oVizData);
|
|
674
677
|
var oApplication = this.getOwnerComponent().getSiteApplication(sAppId);
|
|
678
|
+
var oDataSources = ObjectPath.get(["sap.app", "dataSources"], oApplication);
|
|
675
679
|
var oVizType = this.getOwnerComponent().getSiteVizType(oVizData.Type);
|
|
676
680
|
var oApplicationAsMap = {};
|
|
677
681
|
oApplicationAsMap[sAppId] = oApplication;
|
|
@@ -710,6 +714,7 @@ sap.ui.define([
|
|
|
710
714
|
}
|
|
711
715
|
|
|
712
716
|
return oVizInstance
|
|
717
|
+
.setActive(true)
|
|
713
718
|
.attachPress(this.onVisualizationPress, this)
|
|
714
719
|
.bindEditable("/editMode")
|
|
715
720
|
.bindClickable({ path: "/navigationDisabled", formatter: function (bValue) { return !bValue; } })
|
|
@@ -781,7 +786,6 @@ sap.ui.define([
|
|
|
781
786
|
|
|
782
787
|
return new Card(oOptions)
|
|
783
788
|
.addStyleClass("sapCepWidget")
|
|
784
|
-
.attachAction(this.executeNavigation.bind(this))
|
|
785
789
|
.setHost(this.oHost)
|
|
786
790
|
.setLayoutData(new GridContainerItemLayoutData({
|
|
787
791
|
columns: 16,
|
|
@@ -800,7 +804,7 @@ sap.ui.define([
|
|
|
800
804
|
if (oEvent.getParameter("type") !== "Navigation" || this.oModel.getProperty("/navigationDisabled")) {
|
|
801
805
|
return Promise.resolve();
|
|
802
806
|
}
|
|
803
|
-
return
|
|
807
|
+
return this.getOwnerComponent().getUshellContainer().getServiceAsync("CrossApplicationNavigation")
|
|
804
808
|
.then(function (oCrossAppNavigation) {
|
|
805
809
|
return oCrossAppNavigation.toExternal({
|
|
806
810
|
target: {
|
|
@@ -1035,12 +1039,26 @@ sap.ui.define([
|
|
|
1035
1039
|
return this.getView().getModel().getProperty(sColumnPath);
|
|
1036
1040
|
},
|
|
1037
1041
|
|
|
1042
|
+
/**
|
|
1043
|
+
* Gets the column width from the column descriptor entry, falls back to max column width if the columnWidth is empty.
|
|
1044
|
+
*
|
|
1045
|
+
* @param {object} oColumn The column data object.
|
|
1046
|
+
* @return {int} The column width as an integer.
|
|
1047
|
+
* @private
|
|
1048
|
+
*/
|
|
1038
1049
|
_getColumnWidth: function (oColumn) {
|
|
1039
1050
|
return ObjectPath.get("Descriptor.columnWidth", oColumn) || MAX_GRID_COLUMN_WIDTH;
|
|
1040
1051
|
},
|
|
1041
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* Sets the column width to the column descriptor.
|
|
1055
|
+
*
|
|
1056
|
+
* @param {object} oColumn The column data object.
|
|
1057
|
+
* @param {int} iColumnWidth The column data object.
|
|
1058
|
+
* @private
|
|
1059
|
+
*/
|
|
1042
1060
|
_setColumnWidth: function (oColumn, iColumnWidth) {
|
|
1043
|
-
|
|
1061
|
+
ObjectPath.set("Descriptor.columnWidth", iColumnWidth, oColumn);
|
|
1044
1062
|
},
|
|
1045
1063
|
|
|
1046
1064
|
/**
|
|
@@ -1076,7 +1094,7 @@ sap.ui.define([
|
|
|
1076
1094
|
*/
|
|
1077
1095
|
_createEmptyColumn: function (iColumnWidth) {
|
|
1078
1096
|
return {
|
|
1079
|
-
Id:
|
|
1097
|
+
Id: this._generateUniqueId(),
|
|
1080
1098
|
DescriptorSchemaVersion: "3.2.0",
|
|
1081
1099
|
Descriptor: {
|
|
1082
1100
|
columnWidth: iColumnWidth
|
|
@@ -1094,10 +1112,10 @@ sap.ui.define([
|
|
|
1094
1112
|
*/
|
|
1095
1113
|
_createEmptyRow: function () {
|
|
1096
1114
|
return {
|
|
1097
|
-
Id:
|
|
1115
|
+
Id: this._generateUniqueId(),
|
|
1098
1116
|
DescriptorSchemaVersion: "3.2.0",
|
|
1099
1117
|
Descriptor: {
|
|
1100
|
-
title:
|
|
1118
|
+
title: "",
|
|
1101
1119
|
description: "this is not yet rendered",
|
|
1102
1120
|
fillRowHeight: false,
|
|
1103
1121
|
fullWidth: false
|
|
@@ -1122,7 +1140,7 @@ sap.ui.define([
|
|
|
1122
1140
|
}
|
|
1123
1141
|
return Promise.resolve("/dynamic_dest/" + sDestinationName);
|
|
1124
1142
|
}
|
|
1125
|
-
});
|
|
1143
|
+
}).attachAction(this.executeNavigation.bind(this));
|
|
1126
1144
|
}
|
|
1127
1145
|
},
|
|
1128
1146
|
|
|
@@ -1200,6 +1218,39 @@ sap.ui.define([
|
|
|
1200
1218
|
sValue = "0" + sValue;
|
|
1201
1219
|
}
|
|
1202
1220
|
return sValue;
|
|
1221
|
+
},
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Returns a unique id which does not yet exist on the WorkPage.
|
|
1225
|
+
* Optionally an array of existing IDs can be given as an argument.
|
|
1226
|
+
* This can be helpful if new entities are created in a loop but not yet entered into the model.
|
|
1227
|
+
*
|
|
1228
|
+
* @since 1.112.0
|
|
1229
|
+
* @param {string[]} [aExistingIds] An array of existing IDs as strings.
|
|
1230
|
+
* @return {string} A unique ID.
|
|
1231
|
+
* @private
|
|
1232
|
+
*/
|
|
1233
|
+
_generateUniqueId: function (aExistingIds) {
|
|
1234
|
+
// make a copy to not change the passed array.
|
|
1235
|
+
var aIds = (aExistingIds || []).concat([]);
|
|
1236
|
+
var oWorkPage = this.oModel.getProperty("/data/WorkPage");
|
|
1237
|
+
|
|
1238
|
+
aIds.push(oWorkPage.Id);
|
|
1239
|
+
|
|
1240
|
+
(oWorkPage.Rows || []).forEach(function (oRow) {
|
|
1241
|
+
aIds.push(oRow.Id);
|
|
1242
|
+
(oRow.Columns || []).forEach(function (oColumn) {
|
|
1243
|
+
aIds.push(oColumn.Id);
|
|
1244
|
+
(oColumn.Cells || []).forEach(function (oCell) {
|
|
1245
|
+
aIds.push(oCell.Id);
|
|
1246
|
+
(oCell.Widgets || []).forEach(function (oWidget) {
|
|
1247
|
+
aIds.push(oWidget.Id);
|
|
1248
|
+
});
|
|
1249
|
+
});
|
|
1250
|
+
});
|
|
1251
|
+
});
|
|
1252
|
+
|
|
1253
|
+
return utils.generateUniqueId(aIds);
|
|
1203
1254
|
}
|
|
1204
1255
|
});
|
|
1205
1256
|
});
|
|
@@ -19,10 +19,12 @@ WorkPage.Message.WidgetMoved=Widget moved
|
|
|
19
19
|
#WorkPage Row Overflow toolbar
|
|
20
20
|
#XFLD
|
|
21
21
|
WorkPage.Row.OverflowToolbar.RowTitleLabel=Section Title
|
|
22
|
+
#XTXT
|
|
23
|
+
WorkPage.Row.OverflowToolbar.RowTitleOptional=Enter an optional section title
|
|
22
24
|
#XBUT
|
|
23
25
|
WorkPage.Row.OverflowToolbar.DeleteRowButtonText=Remove Section
|
|
24
26
|
#XTOL
|
|
25
|
-
WorkPage.Row.OverflowToolbar.DeleteRowButtonTooltip=
|
|
27
|
+
WorkPage.Row.OverflowToolbar.DeleteRowButtonTooltip=Delete section
|
|
26
28
|
#XTIT
|
|
27
29
|
WorkPage.Row.DeleteDialog.Title=Confirm
|
|
28
30
|
#XMSG
|
|
@@ -32,7 +34,7 @@ WorkPage.Row.DeleteDialog.Button.Confirm=Delete
|
|
|
32
34
|
#XBUT
|
|
33
35
|
WorkPage.Row.DeleteDialog.Button.Cancel=Cancel
|
|
34
36
|
#XTOL
|
|
35
|
-
WorkPage.Row.AddRowButtonTooltip=Add
|
|
37
|
+
WorkPage.Row.AddRowButtonTooltip=Add section
|
|
36
38
|
|
|
37
39
|
#WorkPage Column
|
|
38
40
|
#XBUT
|
|
@@ -46,7 +48,7 @@ WorkPage.Column.AddColumnButtonTooltip=Add column
|
|
|
46
48
|
#XTOL
|
|
47
49
|
WorkPage.WidgetContainer.OpenWidgetSettingsButtonTooltip=Open widget settings
|
|
48
50
|
#XTOL
|
|
49
|
-
WorkPage.WidgetContainer.DeleteWidgetButtonTooltip=
|
|
51
|
+
WorkPage.WidgetContainer.DeleteWidgetButtonTooltip=Delete widget
|
|
50
52
|
|
|
51
53
|
#WorkPage Section
|
|
52
54
|
#XBUT
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<OverflowToolbarLayoutData group="1"/>
|
|
50
50
|
</layoutData>
|
|
51
51
|
</Label>
|
|
52
|
-
<Input id="sapCepRowInputTitle" value="{Descriptor/title}" editable="true"
|
|
52
|
+
<Input id="sapCepRowInputTitle" value="{Descriptor/title}" editable="true" placeholder="{i18n>WorkPage.Row.OverflowToolbar.RowTitleOptional}"
|
|
53
53
|
change=".onEditTitle" visible="{/editMode}">
|
|
54
54
|
<layoutData>
|
|
55
55
|
<OverflowToolbarLayoutData group="1" shrinkable="true" minWidth="12rem"/>
|