@sapui5/sap.ushell 1.142.0 → 1.143.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/ApplicationType/utils.js +9 -9
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +18 -0
- 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 +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/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/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 +1 -1
- 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/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +2 -3
- 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/NavTargetResolutionInternalAdapter.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/FlpLaunchPageAdapter.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/NavTargetResolutionInternalAdapter.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/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appIntegration/AppLifeCycle.js +93 -110
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/LifecycleHandler.js +1 -3
- package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/NavigationHandler.js +4 -4
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +6 -2
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +3 -3
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +0 -12
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/LoadingConfiguration.json +4 -0
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +21 -0
- 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 +12 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Component.js +2 -2
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +5 -5
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +10 -10
- 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 +2 -2
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +4 -4
- 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/FloatingContainer/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/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/Component.js +3 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +35 -7
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.view.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +14 -9
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +4 -3
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +6 -6
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +1 -1
- package/src/main/js/sap/ushell/modules/Assistant/AssistantAPI.js +94 -0
- package/src/main/js/sap/ushell/modules/Assistant/AssistantProvider.js +50 -0
- package/src/main/js/sap/ushell/modules/Assistant/VisualConfiguration.js +41 -0
- package/src/main/js/sap/ushell/modules/Assistant.js +56 -0
- package/src/main/js/sap/ushell/modules/Notifications/NotificationsProvider.js +1 -1
- package/src/main/js/sap/ushell/modules/Search.js +1 -0
- package/src/main/js/sap/ushell/modules/loader/AssistantLoader.js +156 -0
- 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/renderer/Renderer.js +4 -5
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +96 -99
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +1 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +4 -4
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +5 -5
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +6 -6
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +13 -13
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +3 -3
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.controller.js +0 -14
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.fragment.xml +0 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +5 -63
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +2 -2
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/BookmarkV2.js +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 +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +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/ClientSideTargetResolution.js +5 -5
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +1 -1
- 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 +13 -13
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.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/MessageBrokerEngine.js +3 -3
- package/src/main/js/sap/ushell/services/MessageBroker.js +3 -3
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +3 -3
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +20 -20
- 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 +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +2 -5
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +6 -7
- package/src/main/js/sap/ushell/services/SearchableContent.js +3 -5
- package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +52 -73
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +1 -1
- package/src/main/js/sap/ushell/services/URLParsing.js +65 -47
- 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 +2 -10
- 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/RecentActivity.js +2 -2
- package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +5 -5
- 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/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/state/StateManager.js +9 -4
- package/src/main/js/sap/ushell/state/modules/BackNavigation.js +1 -1
- package/src/main/js/sap/ushell/state/modules/ContentDensity.js +1 -1
- package/src/main/js/sap/ushell/state/modules/Favicon.js +1 -1
- package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_belize_base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_belize_base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ApplicationContainer.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +0 -14
- package/src/main/js/sap/ushell/ui/ShellHeader.js +4 -29
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +0 -14
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +11 -11
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +12 -12
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +113 -22
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.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/ShellUIServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/SmartBusiness.js +39 -2
- package/src/main/js/sap/ushell/utils/UrlParsing.js +335 -208
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +1 -1
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
- package/src/main/js/sap/ushell/utils.js +26 -22
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +0 -2
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +0 -58
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +0 -35
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +0 -65
package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js
CHANGED
|
@@ -97,7 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
*/
|
|
98
98
|
_getConfiguration: function (oViewData) {
|
|
99
99
|
const oConfig = {};
|
|
100
|
-
let
|
|
100
|
+
let oParsedHash;
|
|
101
101
|
|
|
102
102
|
oConfig.configuration = oViewData.configuration;
|
|
103
103
|
oConfig.properties = oViewData.properties;
|
|
@@ -119,12 +119,12 @@ sap.ui.define([
|
|
|
119
119
|
if (sTargetURL && sSystem) {
|
|
120
120
|
// when the navigation url is hash we want to make sure system parameter is in the parameters part
|
|
121
121
|
if (UrlParsing.isIntentUrl(sTargetURL)) {
|
|
122
|
-
|
|
123
|
-
if (!
|
|
124
|
-
|
|
122
|
+
oParsedHash = UrlParsing.parseShellHash(sTargetURL);
|
|
123
|
+
if (!oParsedHash.params) {
|
|
124
|
+
oParsedHash.params = {};
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
sTargetURL = `#${UrlParsing.constructShellHash(
|
|
126
|
+
oParsedHash.params["sap-system"] = sSystem;
|
|
127
|
+
sTargetURL = `#${UrlParsing.constructShellHash(oParsedHash)}`;
|
|
128
128
|
} else {
|
|
129
129
|
sTargetURL += `${(sTargetURL.indexOf("?") < 0) ? "?" : "&"
|
|
130
130
|
}sap-system=${sSystem}`;
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
// visualizationOrganizer Component
|
|
41
41
|
return UIComponent.extend("sap.ushell.components.visualizationOrganizer.Component", {
|
|
42
42
|
metadata: {
|
|
43
|
-
version: "1.
|
|
43
|
+
version: "1.143.0",
|
|
44
44
|
library: "sap.ushell",
|
|
45
45
|
dependencies: { libs: ["sap.m"] },
|
|
46
46
|
properties: {
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
sap.ui.define([
|
|
4
|
+
"sap/ui/core/Element",
|
|
5
|
+
"sap/ushell/modules/BaseAPI"
|
|
6
|
+
], (
|
|
7
|
+
Element,
|
|
8
|
+
BaseAPI
|
|
9
|
+
) => {
|
|
10
|
+
"use strict";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @alias sap.ushell.modules.Assistant.AssistantAPI
|
|
14
|
+
* @namespace
|
|
15
|
+
* @description The API object for the Assistant module.
|
|
16
|
+
* This module cannot be required it gets injected in the constructor of the Assistant module.
|
|
17
|
+
* @see sap.ushell.modules.Assistant.AssistantProvider
|
|
18
|
+
*
|
|
19
|
+
* @hideconstructor
|
|
20
|
+
*
|
|
21
|
+
* @since 1.143.0
|
|
22
|
+
* @private
|
|
23
|
+
* @ui5-restricted Joule
|
|
24
|
+
*/
|
|
25
|
+
class AssistantAPI extends BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
* The instance of the ShellBar or ShellHeader depending on the ushell Config.
|
|
28
|
+
*
|
|
29
|
+
* @type {sap.f.gen.ui5.webcomponents_fiori.dist.ShellBar}
|
|
30
|
+
* @since 1.143.0
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
#oShellBar;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new instance of the AssistantAPI.
|
|
37
|
+
*
|
|
38
|
+
* @param {sap.f.gen.webcomponents.dist.Button} oAssistantButton The assistant button created by the ShellBar.
|
|
39
|
+
* @param {object} oConfig The configuration object for the assistant module.
|
|
40
|
+
* @since 1.143.0
|
|
41
|
+
* @private
|
|
42
|
+
* @ui5-restricted Joule
|
|
43
|
+
*/
|
|
44
|
+
constructor (oAssistantButton, oConfig) {
|
|
45
|
+
super(oConfig);
|
|
46
|
+
this.#oShellBar = Element.getElementById("shell-header")?.getComponentInstance?.()?.getRootControl()?.byId("shellBar");
|
|
47
|
+
if (this.#oShellBar) {
|
|
48
|
+
this.#oShellBar.destroyAssistant();
|
|
49
|
+
this.#oShellBar.addAssistant(oAssistantButton);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Checks if the ShellBar instance is available. This is used as long as the ShellHeader may still be used.
|
|
55
|
+
*
|
|
56
|
+
* @returns {boolean} True if the ShellBar instance is available, false otherwise.
|
|
57
|
+
* @since 1.143.0
|
|
58
|
+
* @private
|
|
59
|
+
*/
|
|
60
|
+
#isShellBar () {
|
|
61
|
+
return this.#oShellBar?.isA("sap.f.gen.ui5.webcomponents_fiori.dist.ShellBar");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Gets the assistant button. It is pre-created to be rendered as early as possible in the ShellBar. It will be set to disabled until the Assistant module is loaded.
|
|
66
|
+
*
|
|
67
|
+
* @returns {sap.f.gen.webcomponents.dist.Button} The assistant button or undefined if not available.
|
|
68
|
+
* @since 1.143.0
|
|
69
|
+
* @private
|
|
70
|
+
* @ui5-restricted Joule
|
|
71
|
+
*/
|
|
72
|
+
getAssistantButton () {
|
|
73
|
+
if (!this.#isShellBar()) {
|
|
74
|
+
// only available in ShellBar
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
return this.#oShellBar.getAssistant()[0];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Gets the DOM reference for the assistant button.
|
|
82
|
+
*
|
|
83
|
+
* @returns {Element} The DOM reference.
|
|
84
|
+
* @since 1.143.0
|
|
85
|
+
* @private
|
|
86
|
+
* @ui5-restricted Joule
|
|
87
|
+
*/
|
|
88
|
+
getAssistantDomRef () {
|
|
89
|
+
return this.getAssistantButton()?.getDomRef();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return AssistantAPI;
|
|
94
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file This is a wrapper for the AssistantProvider module implementation to document the required interface
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ushell/modules/BaseProvider"
|
|
8
|
+
], (
|
|
9
|
+
BaseProvider
|
|
10
|
+
) => {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @alias sap.ushell.modules.Assistant.AssistantProvider
|
|
15
|
+
* @class
|
|
16
|
+
* @description The required interface for an Assistant module.
|
|
17
|
+
*
|
|
18
|
+
* @abstract
|
|
19
|
+
*
|
|
20
|
+
* @since 1.143.0
|
|
21
|
+
* @private
|
|
22
|
+
*
|
|
23
|
+
* @ui5-restricted Joule
|
|
24
|
+
*/
|
|
25
|
+
class AssistantProvider extends BaseProvider {
|
|
26
|
+
/**
|
|
27
|
+
* Loads the search component and initializes the search functionality.
|
|
28
|
+
* @param {sap.ushell.modules.Assistant.AssistantProvider} oAssistantAPI The assistant API object.
|
|
29
|
+
*
|
|
30
|
+
* @since 1.143.0
|
|
31
|
+
* @private
|
|
32
|
+
* @ui5-restricted Joule
|
|
33
|
+
*/
|
|
34
|
+
constructor (oAssistantAPI) {
|
|
35
|
+
super(oAssistantAPI);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Cleans up the component instance.
|
|
40
|
+
*
|
|
41
|
+
* @since 1.143.0
|
|
42
|
+
* @private
|
|
43
|
+
* @ui5-restricted Joule
|
|
44
|
+
*/
|
|
45
|
+
async exit () {
|
|
46
|
+
// to be overridden by subclasses
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return AssistantProvider;
|
|
50
|
+
}, false);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file This is an empty wrapper for the Assistant.VisualConfiguration
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define(() => {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @alias sap.ushell.modules.Assistant.VisualConfiguration
|
|
11
|
+
* @class
|
|
12
|
+
* @description The VisualConfiguration object for the Assistant button.
|
|
13
|
+
*
|
|
14
|
+
* @abstract
|
|
15
|
+
*
|
|
16
|
+
* @since 1.143.0
|
|
17
|
+
* @private
|
|
18
|
+
*
|
|
19
|
+
* @ui5-restricted Joule
|
|
20
|
+
*/
|
|
21
|
+
class VisualConfiguration {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the assistant button.
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @since 1.143.0
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
id;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The icon of the assistant button.
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @since 1.143.0
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
icon;
|
|
39
|
+
}
|
|
40
|
+
return VisualConfiguration;
|
|
41
|
+
}, false);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file This module provides an API for configuring the assistant of the Launchpad shell bar.
|
|
5
|
+
* It allows adding an AssistantProvider via for example a Plugin.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ushell/Config",
|
|
10
|
+
"sap/ushell/utils"
|
|
11
|
+
], (
|
|
12
|
+
Config,
|
|
13
|
+
ushellUtils
|
|
14
|
+
) => {
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @alias sap.ushell.modules.Assistant
|
|
19
|
+
* @namespace
|
|
20
|
+
* @description The Assistant module API to set an AssistantProvider and Config.
|
|
21
|
+
*
|
|
22
|
+
* @since 1.143.0
|
|
23
|
+
* @private
|
|
24
|
+
*
|
|
25
|
+
* @ui5-restricted Joule
|
|
26
|
+
*/
|
|
27
|
+
class Assistant {
|
|
28
|
+
/**
|
|
29
|
+
* Sets the assistant provider for the assistant module.
|
|
30
|
+
* @param {string} sModulePath The module path of the assistant provider.
|
|
31
|
+
* @param {sap.ushell.modules.Assistant.VisualConfiguration} oVisualConfiguration The visual configuration object for the assistant button.
|
|
32
|
+
* @param {object} oConfiguration The configuration object for the assistant provider.
|
|
33
|
+
*
|
|
34
|
+
* @returns {Promise} A promise that resolves when the configuration is set.
|
|
35
|
+
*
|
|
36
|
+
* @since 1.143.0
|
|
37
|
+
* @private
|
|
38
|
+
* @ui5-restricted Joule
|
|
39
|
+
*/
|
|
40
|
+
async setAssistantProvider (sModulePath, oVisualConfiguration, oConfiguration) {
|
|
41
|
+
Config.emit("/core/assistant/enabled", true);
|
|
42
|
+
Config.emit("/core/assistant/modulePath", sModulePath);
|
|
43
|
+
Config.emit("/core/assistant/configuration", JSON.stringify(oConfiguration || {}));
|
|
44
|
+
Config.emit("/core/assistant/visualConfiguration", Object.assign({
|
|
45
|
+
id: "sapUshellAssistantButton",
|
|
46
|
+
icon: "sap-icon://da"
|
|
47
|
+
}, oVisualConfiguration || {}));
|
|
48
|
+
|
|
49
|
+
// ensure the AssistantLoader is loaded so it can react to the config change.
|
|
50
|
+
// This may happen asynchronously if the FLP was not configured to use an assistant at startup.
|
|
51
|
+
const [oAssistantLoader] = await ushellUtils.requireAsync(["sap/ushell/modules/loader/AssistantLoader"]);
|
|
52
|
+
await oAssistantLoader.initialized();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return new Assistant();
|
|
56
|
+
});
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
class NotificationsProvider extends BaseProvider {
|
|
26
26
|
/**
|
|
27
27
|
* Loads the search component and initializes the search functionality.
|
|
28
|
-
* @param {sap.ushell.modules.Notifications.NotificationsAPI} oNotificationsAPI The
|
|
28
|
+
* @param {sap.ushell.modules.Notifications.NotificationsAPI} oNotificationsAPI The notifications API object.
|
|
29
29
|
*
|
|
30
30
|
* @since 1.142.0
|
|
31
31
|
* @private
|
|
@@ -42,6 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
enabled: true,
|
|
43
43
|
modulePath: sModulePath,
|
|
44
44
|
useWebComponents: true,
|
|
45
|
+
initiallyCollapsed: Config.last("/core/search/initiallyCollapsed"),
|
|
45
46
|
configuration: JSON.stringify(oConfiguration || {}),
|
|
46
47
|
searchResultAppIntent: sSearchResultAppIntent
|
|
47
48
|
});
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
sap.ui.define([
|
|
4
|
+
"sap/ushell/Config",
|
|
5
|
+
"sap/ushell/modules/loader/AbstractLoader",
|
|
6
|
+
"sap/ushell/modules/Assistant/AssistantAPI",
|
|
7
|
+
"sap/ushell/utils"
|
|
8
|
+
], (
|
|
9
|
+
Config,
|
|
10
|
+
AbstractLoader,
|
|
11
|
+
AssistantAPI,
|
|
12
|
+
ushellUtils
|
|
13
|
+
) => {
|
|
14
|
+
"use strict";
|
|
15
|
+
const sConfigBasePath = "/core/assistant";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Assistant component for the Fiori Launchpad.
|
|
19
|
+
*
|
|
20
|
+
* @augments sap.ushell.modules.loader.AbstractLoader
|
|
21
|
+
* @since 1.143.0
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
class AssistantLoader extends AbstractLoader {
|
|
26
|
+
/**
|
|
27
|
+
* The instance of the loaded assistant module.
|
|
28
|
+
*
|
|
29
|
+
* @type {sap.ushell.modules.Assistant.AssistantProvider|null}
|
|
30
|
+
* @since 1.143.0
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
#oModuleInstance;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The API object passed to the assistant module.
|
|
37
|
+
*
|
|
38
|
+
* @type {sap.ushell.modules.Assistant.AssistantAPI}
|
|
39
|
+
* @since 1.143.0
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
#oModuleAPI;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A promise that resolves when the loader is initialized.
|
|
46
|
+
* @since 1.143.0
|
|
47
|
+
* @type {Promise}
|
|
48
|
+
*/
|
|
49
|
+
#pInitialized;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new instance of the AssistantLoader.
|
|
53
|
+
*
|
|
54
|
+
* @since 1.143.0
|
|
55
|
+
* @private
|
|
56
|
+
*/
|
|
57
|
+
constructor () {
|
|
58
|
+
super();
|
|
59
|
+
this.#init();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Initializes the loader by setting up a listener for configuration changes.
|
|
64
|
+
* Loads or unloads the assistant module based on the configuration.
|
|
65
|
+
*
|
|
66
|
+
* @returns {Promise} A promise that resolves when the initialization is complete.
|
|
67
|
+
* @since 1.143.0
|
|
68
|
+
* @private
|
|
69
|
+
*/
|
|
70
|
+
async #init () {
|
|
71
|
+
this.registerConfigListener(sConfigBasePath, async () => {
|
|
72
|
+
const bEnabled = Config.last(`${sConfigBasePath}/enabled`);
|
|
73
|
+
await this.#cleanup();
|
|
74
|
+
if (bEnabled) {
|
|
75
|
+
this.#oModuleInstance = await this.#load();
|
|
76
|
+
}
|
|
77
|
+
this.#pInitialized.resolve();
|
|
78
|
+
this.#oModuleAPI.getAssistantButton()?.setEnabled(true);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Returns a promise that resolves when the loader is initialized.
|
|
84
|
+
* @returns {Promise} A promise that resolves when the loader is initialized.
|
|
85
|
+
* @since 1.143.0
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
initialized () {
|
|
89
|
+
return this.#pInitialized.promise;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Loads the assistant module and creates an instance of it.
|
|
94
|
+
*
|
|
95
|
+
* @returns {Promise<sap.ushell.modules.Assistant.AssistantProvider>} A promise that resolves to the assistant module instance.
|
|
96
|
+
* @since 1.143.0
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
99
|
+
async #load () {
|
|
100
|
+
const oVisualConfig = Config.last(`${sConfigBasePath}/visualConfiguration`);
|
|
101
|
+
const [Button] = await ushellUtils.requireAsync(["sap/f/gen/ui5/webcomponents/dist/Button"]);
|
|
102
|
+
const oAssistantButton = new Button(oVisualConfig.id, {
|
|
103
|
+
icon: oVisualConfig.icon,
|
|
104
|
+
enabled: false // will be enabled after the module is loaded
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
this.#oModuleAPI = new AssistantAPI(oAssistantButton, this.parseJSONFromConfig(`${sConfigBasePath}/configuration`));
|
|
108
|
+
|
|
109
|
+
// load the module
|
|
110
|
+
return this.loadModule(Config.last(`${sConfigBasePath}/modulePath`), this.#oModuleAPI);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Resets the loader by cleaning up the current module instance and re-initializing it.
|
|
115
|
+
*
|
|
116
|
+
* @returns {Promise} A promise that resolves when the module instance is destroyed and references are cleared.
|
|
117
|
+
* @since 1.143.0
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
async reset () {
|
|
121
|
+
await this.exit();
|
|
122
|
+
await this.#init();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Cleans up the current module instance and clears the API reference.
|
|
127
|
+
* @returns {Promise} A promise that resolves when the cleanup is complete.
|
|
128
|
+
* @since 1.143.0
|
|
129
|
+
* @private
|
|
130
|
+
*/
|
|
131
|
+
async #cleanup () {
|
|
132
|
+
if (this.#oModuleInstance?.exit) {
|
|
133
|
+
await this.#oModuleInstance.exit();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
this.#oModuleAPI?.getAssistantButton()?.destroy();
|
|
137
|
+
this.#oModuleAPI = null;
|
|
138
|
+
this.#oModuleInstance = null;
|
|
139
|
+
this.#pInitialized = Promise.withResolvers();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Cleans up the loader by resetting the module instance and calling the superclass exit method.
|
|
144
|
+
*
|
|
145
|
+
* @returns {Promise} A promise that resolves when the loader is cleaned up.
|
|
146
|
+
* @since 1.143.0
|
|
147
|
+
* @private
|
|
148
|
+
* @override
|
|
149
|
+
*/
|
|
150
|
+
async exit () {
|
|
151
|
+
await super.exit();
|
|
152
|
+
await this.#cleanup();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return new AssistantLoader();
|
|
156
|
+
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @fileOverview Class for statistical record
|
|
4
4
|
* It should contain data like step, duration after a navigation in the shell, can have status open.
|
|
5
5
|
* The closing of a record is logged in debug mode
|
|
6
|
-
* @version 1.
|
|
6
|
+
* @version 1.143.0
|
|
7
7
|
*/
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/base/Log",
|
|
@@ -106,9 +106,9 @@ sap.ui.define([
|
|
|
106
106
|
*/
|
|
107
107
|
const Renderer = UIComponent.extend("sap.ushell.renderer.Renderer", /** @lends sap.ushell.renderer.Renderer.prototype */ {
|
|
108
108
|
metadata: {
|
|
109
|
-
version: "1.
|
|
109
|
+
version: "1.143.0",
|
|
110
110
|
dependencies: {
|
|
111
|
-
version: "1.
|
|
111
|
+
version: "1.143.0",
|
|
112
112
|
libs: ["sap.ui.core", "sap.m"],
|
|
113
113
|
components: []
|
|
114
114
|
},
|
|
@@ -408,8 +408,7 @@ sap.ui.define([
|
|
|
408
408
|
const sCustomHomeTitle = Config.last("/core/shell/homePageTitle");
|
|
409
409
|
const sHomeTitle = ushellResources.getTranslationFromJSON(sCustomHomeTitle) || ushellResources.i18n.getText("homeBtn_tooltip");
|
|
410
410
|
|
|
411
|
-
const
|
|
412
|
-
const bIsRootIntentFlpHome = !sRootIntent || ushellUtils.isFlpHomeIntent(sRootIntent);
|
|
411
|
+
const bIsRootIntentFlpHome = ushellUtils.isFlpHomeIntent(ushellUtils.getRootIntent());
|
|
413
412
|
|
|
414
413
|
// switch to home first so that #set calls below have effect
|
|
415
414
|
AppLifeCycleAI.switchViewState(bIsRootIntentFlpHome ? LaunchpadState.Home : LaunchpadState.App, false, "Shell-home");
|
|
@@ -2748,7 +2747,7 @@ sap.ui.define([
|
|
|
2748
2747
|
* It returns true if it can match the intent, false otherwise.
|
|
2749
2748
|
* On its first call, a copy of all of those path is created and stored.
|
|
2750
2749
|
*
|
|
2751
|
-
* @param {
|
|
2750
|
+
* @param {sap.ushell.services.URLParsing.DecomposedHash} oParsedHash A resolved hash as returned by URLParsing
|
|
2752
2751
|
* @returns {boolean} True if the intent is built in, false otherwise
|
|
2753
2752
|
* @private
|
|
2754
2753
|
* @since 1.85.0
|