@sapui5/sap.ushell 1.138.1 → 1.139.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/UrlPostProcessing.js +14 -10
- package/src/main/js/sap/ushell/ApplicationType/wcfResolution.js +32 -26
- package/src/main/js/sap/ushell/Container.js +0 -1
- 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 +12 -12
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/User.js +32 -12
- 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 +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/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 +3 -5
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +14 -1
- package/src/main/js/sap/ushell/appIntegration/ApplicationHandle.js +8 -3
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainer.js +8 -8
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/AppruntimeHandler.js +17 -12
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ExtensionItems.js +6 -23
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/LifecycleHandler.js +112 -92
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/NWBCHandler.js +15 -7
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ServiceHandler.js +257 -214
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +347 -117
- package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainer.js +1 -0
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +15 -19
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV1Handler.js +15 -14
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +38 -40
- 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 -8
- 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 +25 -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/StepConfiguration.json +0 -2
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +4 -0
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
- package/src/main/js/sap/ushell/components/CatalogsManager.js +157 -157
- package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +180 -187
- package/src/main/js/sap/ushell/components/DestroyHelper.js +4 -4
- package/src/main/js/sap/ushell/components/GroupsHelper.js +21 -21
- package/src/main/js/sap/ushell/components/HomepageManager.js +465 -424
- package/src/main/js/sap/ushell/components/MessagingHelper.js +24 -24
- package/src/main/js/sap/ushell/components/SharedComponentUtils.js +16 -16
- package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +43 -43
- package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +43 -39
- package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +166 -175
- package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +57 -57
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +96 -99
- package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +27 -21
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +180 -178
- package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +56 -56
- package/src/main/js/sap/ushell/components/appfinder/Component.js +12 -16
- package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +129 -133
- package/src/main/js/sap/ushell/components/appfinder/EasyAccessView.js +10 -10
- package/src/main/js/sap/ushell/components/appfinder/GroupListPopover.controller.js +22 -22
- package/src/main/js/sap/ushell/components/appfinder/GroupListPopoverView.js +14 -14
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +75 -78
- package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +24 -27
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +44 -46
- package/src/main/js/sap/ushell/components/appfinder/HierarchyFoldersView.js +22 -22
- package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +28 -28
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/cards/Card.controller.js +16 -20
- package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +35 -37
- package/src/main/js/sap/ushell/components/cards/ManifestPropertyHelper.js +32 -34
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +7 -12
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.view.xml +2 -9
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Extension.js +0 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/css/style.css +58 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/AdvancedFormatters.js +0 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/Edition.js +0 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/EditionAdvanced.js +0 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/appendStyleVars.js +0 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +13 -13
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Highlighter.js +2 -5
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Paginator.js +0 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Event.js +4 -3
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +8 -9
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -3
- 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 +2 -2
- 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/contentFinder/model/GraphQLListBinding.js +3 -5
- package/src/main/js/sap/ushell/components/contentFinder/model/GraphQLModel.js +2 -2
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +13 -6
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +3 -3
- package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +2 -14
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTreeTable.fragment.xml +14 -7
- package/src/main/js/sap/ushell/components/contentFinder/view/VisualizationsNoDataIllustratedMessage.fragment.xml +1 -1
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +2 -2
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +2 -4
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +13 -8
- package/src/main/js/sap/ushell/components/factsheet/annotation/Mapping.js +166 -118
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTile.js +20 -16
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureTileRenderer.js +3 -3
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +84 -77
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerItem.js +4 -4
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerRenderer.js +2 -2
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +1356 -1139
- package/src/main/js/sap/ushell/components/factsheet/tools/ODataUrlTemplating.js +9 -5
- package/src/main/js/sap/ushell/components/factsheet/views/ThingViewer.controller.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/views/ThingViewer.view.js +9 -6
- package/src/main/js/sap/ushell/components/homeApp/error/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.controller.js +4 -4
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +51 -48
- package/src/main/js/sap/ushell/components/homepage/Component.js +11 -11
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +185 -192
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +60 -50
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +199 -202
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +152 -160
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +72 -74
- package/src/main/js/sap/ushell/components/pages/Component.js +7 -32
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +46 -46
- package/src/main/js/sap/ushell/components/pages/StateManager.js +9 -10
- package/src/main/js/sap/ushell/components/pages/controller/MyHome.controller.js +4 -4
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +243 -215
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +23 -24
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/Component.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +60 -70
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/Component.js +0 -5
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/controls/FloatingContainer.js +3 -3
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/Component.js +18 -50
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +73 -83
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +49 -50
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +5 -5
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +35 -33
- package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +8 -9
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsList.controller.js +5 -11
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +63 -42
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +20 -22
- package/src/main/js/sap/ushell/components/shell/Search/Component.js +20 -12
- package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +18 -21
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +21 -14
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +204 -250
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +25 -24
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +9 -9
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +4 -4
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +63 -65
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/Component.js +420 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/FrequentActivityProvider.js +84 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/RecentSearchProvider.js +63 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchProvider.js +141 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchServiceProvider.js +177 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/manifest.json +43 -0
- package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources.properties +17 -0
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +50 -35
- package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +10 -10
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +150 -150
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +66 -63
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/AppearanceEntry.js +12 -15
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +34 -37
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsEntry.js +6 -7
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +46 -48
- package/src/main/js/sap/ushell/components/shell/Settings/search/Search.controller.js +4 -4
- package/src/main/js/sap/ushell/components/shell/Settings/search/SearchEntry.js +13 -13
- package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesEntry.js +11 -13
- package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesSetting.controller.js +41 -42
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountEntry.js +11 -15
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +35 -37
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesEntry.js +6 -7
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +7 -8
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/Component.js +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsEntry.js +16 -16
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +17 -17
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/ExtendedValueDialog.controller.js +21 -24
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +136 -137
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +73 -78
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/UserLanguageRegionEntry.js +8 -8
- package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +30 -23
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +34 -22
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +21 -9
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +7 -11
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +3 -3
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AllSpaces.js +3 -4
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AppFinder.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Favorites.js +8 -3
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericFixedNavigationListProvider.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericNavigationListProvider.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/MyHome.js +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/NavigationHelper.js +4 -4
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/RecentActivity.js +4 -4
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Spaces.js +5 -6
- package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/SpacesNavigationListProvider.js +2 -3
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +3 -4
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +47 -48
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +27 -30
- package/src/main/js/sap/ushell/components/tiles/action/ActionTile.controller.js +55 -55
- package/src/main/js/sap/ushell/components/tiles/action/Configuration.controller.js +39 -41
- package/src/main/js/sap/ushell/components/tiles/applauncher/Component.js +3 -3
- package/src/main/js/sap/ushell/components/tiles/applauncher/Configuration.controller.js +26 -27
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +66 -66
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.view.js +5 -5
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Component.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Configuration.controller.js +27 -27
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +107 -107
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.view.js +7 -7
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/Component.js +7 -7
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +31 -31
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/Component.js +15 -15
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +85 -86
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.js +4 -4
- package/src/main/js/sap/ushell/components/tiles/generic.js +133 -131
- package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.controller.js +71 -71
- package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.view.js +17 -17
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.controller.js +49 -49
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.view.js +9 -9
- package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.controller.js +80 -80
- package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.view.js +3 -3
- package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.controller.js +74 -75
- package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.view.js +3 -3
- package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.controller.js +55 -55
- package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.view.js +12 -12
- package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.controller.js +83 -84
- package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.view.js +15 -15
- package/src/main/js/sap/ushell/components/tiles/indicatorHarveyBall/HarveyBallTile.controller.js +71 -71
- package/src/main/js/sap/ushell/components/tiles/indicatorHarveyBall/HarveyBallTile.view.js +7 -7
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/cache.js +4 -4
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/indicatorTileHelper.js +4 -4
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +230 -232
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +271 -272
- package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.controller.js +55 -55
- package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.view.js +4 -4
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.controller.js +53 -53
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.view.js +5 -5
- package/src/main/js/sap/ushell/components/tiles/indicatordeviation/DeviationTile.controller.js +20 -20
- package/src/main/js/sap/ushell/components/tiles/indicatordeviation/DeviationTile.view.js +11 -11
- package/src/main/js/sap/ushell/components/tiles/indicatornumeric/NumericTile.controller.js +14 -15
- package/src/main/js/sap/ushell/components/tiles/indicatornumeric/NumericTile.view.js +10 -10
- package/src/main/js/sap/ushell/components/tiles/sbtilecontent.js +6 -6
- package/src/main/js/sap/ushell/components/tiles/utils.js +699 -664
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +217 -217
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +4 -8
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +40 -42
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +257 -262
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +19 -20
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +6 -6
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +37 -38
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +97 -100
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +81 -82
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +9 -9
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +38 -39
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRenderer.js +5 -5
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +8 -9
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +9 -9
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +4 -4
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +15 -15
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Avatar.js +7 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemGroup.js +90 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +10 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +19 -11
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js +144 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItem.js +68 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItemGroup.js +34 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchMessageArea.js +51 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchScope.js +55 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBar.js +5 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarBranding.js +76 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSearch.js +133 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +83 -1
- package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +80 -2
- package/src/main/js/sap/ushell/library.js +1 -1
- package/src/main/js/sap/ushell/navigation/NavigationState.js +126 -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/AccessKeysHandler.js +8 -4
- package/src/main/js/sap/ushell/renderer/Renderer.js +19 -7
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +11 -5
- package/src/main/js/sap/ushell/renderer/Shell.view.js +4 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +3 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +3 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +3 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +2 -0
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +2 -0
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AllMyApps.js +5 -5
- package/src/main/js/sap/ushell/services/AppConfiguration.js +3 -5
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +2 -2
- package/src/main/js/sap/ushell/services/AppState.js +86 -102
- package/src/main/js/sap/ushell/services/AppType.js +2 -2
- package/src/main/js/sap/ushell/services/Bookmark.js +156 -164
- package/src/main/js/sap/ushell/services/BookmarkV2.js +10 -13
- 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 +27 -31
- 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 +295 -353
- package/src/main/js/sap/ushell/services/Configuration.js +14 -12
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +34 -35
- package/src/main/js/sap/ushell/services/Container.js +2 -2
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +29 -62
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +227 -266
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +17 -16
- package/src/main/js/sap/ushell/services/EndUserFeedback.js +5 -4
- package/src/main/js/sap/ushell/services/Extension/Item.js +7 -12
- package/src/main/js/sap/ushell/services/Extension.js +54 -19
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +209 -213
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +3 -3
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +3 -3
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +6 -6
- 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 +4 -4
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +3 -3
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -2
- package/src/main/js/sap/ushell/services/Menu.js +264 -289
- package/src/main/js/sap/ushell/services/Message.js +3 -3
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +6 -29
- package/src/main/js/sap/ushell/services/MessageBroker.js +14 -10
- package/src/main/js/sap/ushell/services/MessageInternal.js +37 -38
- package/src/main/js/sap/ushell/services/NavTargetResolution.js +2 -5
- package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +153 -157
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +4 -6
- package/src/main/js/sap/ushell/services/Navigation/utils.js +62 -64
- package/src/main/js/sap/ushell/services/Navigation.js +10 -14
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +2 -2
- package/src/main/js/sap/ushell/services/Notifications.js +29 -15
- package/src/main/js/sap/ushell/services/NotificationsV2.js +86 -98
- package/src/main/js/sap/ushell/services/PageBuilding.js +9 -6
- package/src/main/js/sap/ushell/services/PagePersistence.js +3 -3
- package/src/main/js/sap/ushell/services/PageReferencing.js +4 -2
- package/src/main/js/sap/ushell/services/Pages.js +635 -683
- package/src/main/js/sap/ushell/services/Personalization.js +103 -134
- package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +29 -32
- package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +21 -6
- package/src/main/js/sap/ushell/services/PersonalizationV2/TransientPersonalizer.js +1 -2
- package/src/main/js/sap/ushell/services/PersonalizationV2/Variant.js +5 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSet.js +5 -8
- package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.js +2 -2
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +10 -11
- package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +27 -27
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.js +1 -2
- package/src/main/js/sap/ushell/services/PersonalizationV2/constants.private.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2/utils.js +5 -5
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +92 -105
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +9 -9
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +2 -2
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +4 -4
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +5 -8
- package/src/main/js/sap/ushell/services/PluginManager.js +12 -8
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +21 -28
- package/src/main/js/sap/ushell/services/Search.js +25 -21
- package/src/main/js/sap/ushell/services/SearchCEP.js +38 -32
- package/src/main/js/sap/ushell/services/SearchableContent.js +203 -223
- package/src/main/js/sap/ushell/services/ShellNavigation.js +5 -3
- package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +160 -164
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +23 -19
- package/src/main/js/sap/ushell/services/SmartNavigation.js +86 -82
- package/src/main/js/sap/ushell/services/SpaceContent.js +73 -106
- package/src/main/js/sap/ushell/services/SupportTicket.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +48 -62
- package/src/main/js/sap/ushell/services/URLShortening.js +2 -2
- package/src/main/js/sap/ushell/services/URLTemplate.js +7 -8
- package/src/main/js/sap/ushell/services/Ui5ComponentHandle.js +5 -5
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UsageAnalytics.js +2 -3
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +10 -10
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +12 -13
- package/src/main/js/sap/ushell/services/UserInfo.js +27 -15
- package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +6 -7
- package/src/main/js/sap/ushell/services/UserRecents/RecentAppsUsage.js +5 -5
- package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +2 -2
- package/src/main/js/sap/ushell/services/UserRecents/UserRecentsBase.js +2 -2
- package/src/main/js/sap/ushell/services/UserRecents.js +3 -3
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +63 -66
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +11 -11
- 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/services/personalization/VariantSetAdapter.js +10 -10
- package/src/main/js/sap/ushell/state/BaseState.js +2 -3
- package/src/main/js/sap/ushell/state/BindingHelper.js +2 -4
- package/src/main/js/sap/ushell/state/ControlManager.js +2 -3
- package/src/main/js/sap/ushell/state/CurrentState.js +2 -2
- package/src/main/js/sap/ushell/state/KeepAlive.js +2 -2
- package/src/main/js/sap/ushell/state/ShellModel.js +2 -3
- package/src/main/js/sap/ushell/state/StateManager/LaunchpadState.js +2 -2
- package/src/main/js/sap/ushell/state/StateManager/Operation.js +2 -2
- package/src/main/js/sap/ushell/state/StateManager/ShellMode.js +2 -2
- package/src/main/js/sap/ushell/state/StateManager.js +3 -3
- package/src/main/js/sap/ushell/state/StateRules.js +2 -3
- package/src/main/js/sap/ushell/state/StrategyFactory/DefaultStrategy.js +2 -3
- package/src/main/js/sap/ushell/state/StrategyFactory/FloatingActionsStrategy.js +2 -3
- package/src/main/js/sap/ushell/state/StrategyFactory/FloatingContainerStrategy.js +2 -3
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadEndItemsStrategy.js +3 -4
- package/src/main/js/sap/ushell/state/StrategyFactory/HeadItemsStrategy.js +3 -4
- package/src/main/js/sap/ushell/state/StrategyFactory/SidePaneStrategy.js +2 -3
- package/src/main/js/sap/ushell/state/StrategyFactory/SubHeaderStrategy.js +2 -3
- package/src/main/js/sap/ushell/state/StrategyFactory/UserActionsStrategy.js +3 -4
- package/src/main/js/sap/ushell/state/StrategyFactory.js +2 -3
- package/src/main/js/sap/ushell/state/modules/BackNavigation.js +2 -5
- package/src/main/js/sap/ushell/state/modules/ContentDensity.js +3 -3
- package/src/main/js/sap/ushell/state/modules/Favicon.js +3 -3
- package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +3 -3
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +123 -123
- package/src/main/js/sap/ushell/themes/base/ShellBar.less +2 -1
- package/src/main/js/sap/ushell/themes/base/ShellHeader.less +1 -1
- package/src/main/js/sap/ushell/themes/base/ToolAreaItem.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +6 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/ShellBar.less +9 -0
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +1 -1
- package/src/main/js/sap/ushell/thirdparty/AccessibilityTextsHelper.js +13 -0
- package/src/main/js/sap/ushell/thirdparty/Avatar.js +83 -16
- package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +16 -241
- package/src/main/js/sap/ushell/thirdparty/Button.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/Button2.js +34 -14
- package/src/main/js/sap/ushell/thirdparty/Icon.js +11 -11
- package/src/main/js/sap/ushell/thirdparty/Icons.js +81 -79
- package/src/main/js/sap/ushell/thirdparty/Label.js +4 -4
- package/src/main/js/sap/ushell/thirdparty/Link.js +11 -10
- package/src/main/js/sap/ushell/thirdparty/List.js +34 -487
- package/src/main/js/sap/ushell/thirdparty/ListBoxItemGroupTemplate.js +14 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemBase.js +239 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +1669 -91
- package/src/main/js/sap/ushell/thirdparty/ListItemGroup.js +472 -0
- package/src/main/js/sap/ushell/thirdparty/Menu.js +70 -81
- package/src/main/js/sap/ushell/thirdparty/MenuItem.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +348 -40
- package/src/main/js/sap/ushell/thirdparty/NotificationList.js +5 -5
- package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +15 -15
- package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +511 -517
- package/src/main/js/sap/ushell/thirdparty/NotificationListItemBase.js +3 -3
- package/src/main/js/sap/ushell/thirdparty/ResponsivePopover.js +2264 -0
- package/src/main/js/sap/ushell/thirdparty/SearchItem.js +111 -0
- package/src/main/js/sap/ushell/thirdparty/SearchItemGroup.js +47 -0
- package/src/main/js/sap/ushell/thirdparty/SearchMessageArea.js +49 -0
- package/src/main/js/sap/ushell/thirdparty/SearchScope.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/ShellBar.js +177 -170
- package/src/main/js/sap/ushell/thirdparty/ShellBarBranding.js +119 -0
- package/src/main/js/sap/ushell/thirdparty/ShellBarSearch.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/ShellBarSearch2.js +3248 -0
- package/src/main/js/sap/ushell/thirdparty/Tag.js +15 -14
- package/src/main/js/sap/ushell/thirdparty/Text.js +9 -9
- package/src/main/js/sap/ushell/thirdparty/Title.js +167 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +55 -54
- package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +5 -5
- package/src/main/js/sap/ushell/thirdparty/ValueState.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/InputSuggestions.js +444 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +7 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +40 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +41 -2
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +27 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +45 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +45 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +23 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +42 -3
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +27 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +42 -3
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +28 -10
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +43 -4
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +29 -11
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +27 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +27 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +40 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +40 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +27 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +41 -2
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +40 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +39 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +26 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +41 -2
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +25 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css25.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css26.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css3.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/encodeXML.js +87 -0
- package/src/main/js/sap/ushell/thirdparty/generateHighlightedMarkup.js +9 -0
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +143 -149
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +16 -0
- package/src/main/js/sap/ushell/thirdparty/information.js +10 -13
- package/src/main/js/sap/ushell/thirdparty/information2.js +13 -0
- package/src/main/js/sap/ushell/thirdparty/overflow.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css2.js +44 -0
- package/src/main/js/sap/ushell/thirdparty/query.js +1 -4
- package/src/main/js/sap/ushell/thirdparty/slim-arrow-down.js +44 -0
- package/src/main/js/sap/ushell/thirdparty/sys-enter-2.js +7 -0
- package/src/main/js/sap/ushell/thirdparty/toLowercaseEnumValue.js +0 -8
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +35 -31
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +8 -8
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +16 -16
- package/src/main/js/sap/ushell/thirdparty/willShowContent.js +7 -0
- package/src/main/js/sap/ushell/ui/ShellHeader.js +0 -1
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- 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 +6 -1
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +5 -2
- 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/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 +32 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/ui5.yaml +2 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemTemplate.js +0 -3920
- package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css2.js +0 -7
- /package/src/main/js/sap/ushell/components/shell/SearchCEP/{SearchFieldFragment.fragment.xml → SearchField.fragment.xml} +0 -0
package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
1
|
+
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file WorkPageBuilder controller for WorkPageBuilder view
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.139.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/Log",
|
|
@@ -11,7 +11,6 @@ sap.ui.define([
|
|
|
11
11
|
"sap/base/util/deepExtend",
|
|
12
12
|
"sap/f/GridContainerItemLayoutData",
|
|
13
13
|
"sap/m/library",
|
|
14
|
-
"sap/ui/core/Component",
|
|
15
14
|
"sap/ui/core/Element",
|
|
16
15
|
"sap/ui/core/Fragment",
|
|
17
16
|
"sap/ui/core/InvisibleMessage",
|
|
@@ -30,14 +29,13 @@ sap.ui.define([
|
|
|
30
29
|
"sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility",
|
|
31
30
|
"sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout",
|
|
32
31
|
"sap/ui/integration/library"
|
|
33
|
-
],
|
|
32
|
+
], (
|
|
34
33
|
Log,
|
|
35
34
|
Localization,
|
|
36
35
|
ObjectPath,
|
|
37
36
|
deepExtend,
|
|
38
37
|
GridContainerItemLayoutData,
|
|
39
38
|
mLibrary,
|
|
40
|
-
Component,
|
|
41
39
|
Element,
|
|
42
40
|
Fragment,
|
|
43
41
|
InvisibleMessage,
|
|
@@ -56,24 +54,24 @@ sap.ui.define([
|
|
|
56
54
|
WorkPageBuilderAccessibility,
|
|
57
55
|
WorkPageBuilderLayoutHelper,
|
|
58
56
|
integrationLibrary
|
|
59
|
-
) {
|
|
57
|
+
) => {
|
|
60
58
|
"use strict";
|
|
61
59
|
|
|
62
60
|
// shortcut for sap.ui.core.ValueState
|
|
63
|
-
|
|
61
|
+
const ValueState = coreLibrary.ValueState;
|
|
64
62
|
|
|
65
63
|
// PR: Provider, CO: (Content) Administrator, PG: Page Administrator, US: End User
|
|
66
64
|
// US is commented for now, because we do not have personalization yet.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
const CONFIGURATION_LEVELS = ["PR", "CO", "PG" /* , "US" */];
|
|
66
|
+
const MIN_GRID_COLUMN_WIDTH = 6;
|
|
67
|
+
const MAX_GRID_COLUMN_WIDTH = 24;
|
|
68
|
+
const STEP_SIZE = 2;
|
|
69
|
+
const MAX_COLUMNS_PER_ROW = 4;
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
const LoadState = mLibrary.LoadState;
|
|
72
|
+
const InvisibleMessageMode = coreLibrary.InvisibleMessageMode;
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
const CardPreviewMode = integrationLibrary.CardPreviewMode;
|
|
77
75
|
|
|
78
76
|
/**
|
|
79
77
|
* Controller of the WorkPageBuilder view.
|
|
@@ -89,7 +87,7 @@ sap.ui.define([
|
|
|
89
87
|
return Controller.extend("sap.ushell.components.workPageBuilder.controller.WorkPageBuilder", /** @lends sap.ushell.components.workPageBuilder.controller.WorkPageBuilder.prototype */ {
|
|
90
88
|
|
|
91
89
|
onInit: async function () {
|
|
92
|
-
|
|
90
|
+
const oWorkPage = this.byId("workPage");
|
|
93
91
|
this._fnDeleteRowHandler = this.deleteRow.bind(this);
|
|
94
92
|
this._fnDeleteCellHandler = this.deleteCell.bind(this);
|
|
95
93
|
this._fnSaveCardConfiguration = this._onSaveCardEditor.bind(this);
|
|
@@ -177,7 +175,7 @@ sap.ui.define([
|
|
|
177
175
|
* @param {sap.ui.base.Event} oEvent The "borderReached" event of the GridContainer
|
|
178
176
|
*/
|
|
179
177
|
onGridContainerBorderReached: function (oEvent) {
|
|
180
|
-
|
|
178
|
+
const oWorkPage = this.byId("workPage");
|
|
181
179
|
this.oWorkPageBuilderAccessibility._handleBorderReached(oEvent, oWorkPage);
|
|
182
180
|
},
|
|
183
181
|
|
|
@@ -189,33 +187,33 @@ sap.ui.define([
|
|
|
189
187
|
* @param {sap.ui.base.Event} oEvent The "addColumn" event.
|
|
190
188
|
*/
|
|
191
189
|
onAddColumn: function (oEvent) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
190
|
+
const oModel = this.getView().getModel();
|
|
191
|
+
const oColumnControl = oEvent.getSource();
|
|
192
|
+
const oRow = oColumnControl.getParent();
|
|
193
|
+
const iColumnIndex = oRow.indexOfAggregation("columns", oColumnControl);
|
|
194
|
+
const sRowBindingContextPath = oRow.getBindingContext().getPath();
|
|
195
|
+
const sColumnPath = `${sRowBindingContextPath}/columns/`;
|
|
196
|
+
const sColumnColumnWidthPath = `${oColumnControl.getBindingContext().getPath()}/descriptor/value/columnWidth`;
|
|
197
|
+
const aColumnsData = oModel.getProperty(sColumnPath);
|
|
198
|
+
const iColumnCount = aColumnsData.length;
|
|
199
|
+
const bAddToLeft = oEvent.getParameter("left");
|
|
202
200
|
if (iColumnCount >= MAX_COLUMNS_PER_ROW) {
|
|
203
201
|
return;
|
|
204
202
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
const iColumnWidth = oColumnControl.getProperty("columnWidth");
|
|
204
|
+
const iColSize = Math.floor(iColumnWidth / 2) >= MIN_GRID_COLUMN_WIDTH ? Math.floor(iColumnWidth / 2) : MIN_GRID_COLUMN_WIDTH;
|
|
205
|
+
const iModulo = iColSize % 2;
|
|
208
206
|
oModel.setProperty(sColumnColumnWidthPath, iColSize + iModulo);
|
|
209
207
|
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
const iIndex = oRow.indexOfAggregation("columns", oColumnControl) + (bAddToLeft === true ? 0 : 1);
|
|
209
|
+
const oNewColumn = this._createEmptyColumn(iColSize - iModulo);
|
|
212
210
|
|
|
213
211
|
// Insert the new column by creating a new array to avoid mutation of the original array.
|
|
214
|
-
|
|
212
|
+
const aNewColumnsData = [aColumnsData.slice(0, iIndex), oNewColumn, aColumnsData.slice(iIndex)].flat();
|
|
215
213
|
|
|
216
|
-
|
|
214
|
+
const iTotalColumns = aNewColumnsData.reduce((iAccumulator, oSingleColumn) => {
|
|
217
215
|
return iAccumulator + this._getColumnWidth(oSingleColumn);
|
|
218
|
-
}
|
|
216
|
+
}, 0);
|
|
219
217
|
|
|
220
218
|
if (iTotalColumns > MAX_GRID_COLUMN_WIDTH) {
|
|
221
219
|
this._calculateColWidths(aNewColumnsData, iColumnIndex, iTotalColumns);
|
|
@@ -232,7 +230,7 @@ sap.ui.define([
|
|
|
232
230
|
* @private
|
|
233
231
|
*/
|
|
234
232
|
focusFirstItem: function (oEvent) {
|
|
235
|
-
|
|
233
|
+
const oWorkPage = oEvent.getSource();
|
|
236
234
|
this.oWorkPageBuilderAccessibility.focusFirstItem(oWorkPage);
|
|
237
235
|
},
|
|
238
236
|
|
|
@@ -308,13 +306,13 @@ sap.ui.define([
|
|
|
308
306
|
* @since 1.109.0
|
|
309
307
|
*/
|
|
310
308
|
setPageData: function (oPageData) {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
let oMappedVisualizations = {};
|
|
310
|
+
const aUsedVisualizations = ObjectPath.get("workPage.usedVisualizations.nodes", oPageData);
|
|
311
|
+
const oWorkPageContents = ObjectPath.get("workPage.contents", oPageData);
|
|
314
312
|
|
|
315
313
|
if (aUsedVisualizations && aUsedVisualizations.length > 0) {
|
|
316
314
|
// create a map for the usedVisualizations using the id as a key.
|
|
317
|
-
oMappedVisualizations = aUsedVisualizations.reduce(
|
|
315
|
+
oMappedVisualizations = aUsedVisualizations.reduce((oAcc, oViz) => {
|
|
318
316
|
oAcc[oViz.id] = oViz;
|
|
319
317
|
return oAcc;
|
|
320
318
|
}, {});
|
|
@@ -335,7 +333,7 @@ sap.ui.define([
|
|
|
335
333
|
* @since 1.109.0
|
|
336
334
|
*/
|
|
337
335
|
getPageData: function () {
|
|
338
|
-
|
|
336
|
+
const oMappedVisualizations = this.oModel.getProperty("/data/usedVisualizations") || {};
|
|
339
337
|
return {
|
|
340
338
|
workPage: {
|
|
341
339
|
contents: this.oModel.getProperty("/data/workPage"),
|
|
@@ -356,7 +354,7 @@ sap.ui.define([
|
|
|
356
354
|
* @since 1.115.0
|
|
357
355
|
*/
|
|
358
356
|
setVisualizationData: function (oVizNodes) {
|
|
359
|
-
return this.oContentFinderPromise.then(
|
|
357
|
+
return this.oContentFinderPromise.then((oContentFinder) => {
|
|
360
358
|
oContentFinder.setVisualizationData(oVizNodes);
|
|
361
359
|
});
|
|
362
360
|
},
|
|
@@ -385,7 +383,7 @@ sap.ui.define([
|
|
|
385
383
|
* @private
|
|
386
384
|
*/
|
|
387
385
|
setCategoryTree: function (aCategoryTree) {
|
|
388
|
-
return this.oContentFinderPromise.then(
|
|
386
|
+
return this.oContentFinderPromise.then((oContentFinder) => {
|
|
389
387
|
oContentFinder.setCategoryTree(aCategoryTree);
|
|
390
388
|
});
|
|
391
389
|
},
|
|
@@ -397,12 +395,12 @@ sap.ui.define([
|
|
|
397
395
|
* @param {sap.ui.base.Event} oEvent The gridColumnsChange event.
|
|
398
396
|
*/
|
|
399
397
|
onGridColumnsChange: function (oEvent) {
|
|
400
|
-
|
|
401
|
-
|
|
398
|
+
const iColumnCount = oEvent.getParameter("columns");
|
|
399
|
+
const oCell = oEvent.getSource();
|
|
402
400
|
|
|
403
|
-
oCell.getWidgets().filter(
|
|
401
|
+
oCell.getWidgets().filter((oItem) => {
|
|
404
402
|
return oItem.isA("sap.ui.integration.widgets.Card");
|
|
405
|
-
}).forEach(
|
|
403
|
+
}).forEach((oCard) => {
|
|
406
404
|
oCard.setLayoutData(new GridContainerItemLayoutData({
|
|
407
405
|
columns: iColumnCount,
|
|
408
406
|
minRows: 1
|
|
@@ -417,25 +415,25 @@ sap.ui.define([
|
|
|
417
415
|
* @param {sap.ui.base.Event} oEvent The "removeColumn" event.
|
|
418
416
|
*/
|
|
419
417
|
onDeleteColumn: function (oEvent) {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
418
|
+
const oModel = this.getView().getModel();
|
|
419
|
+
const oColumn = oEvent.getSource();
|
|
420
|
+
const iColumnWidth = oColumn.getColumnWidth();
|
|
421
|
+
const oRow = oColumn.getParent();
|
|
422
|
+
const iColumnIndex = oRow.indexOfAggregation("columns", oColumn);
|
|
423
|
+
const sRowBindingContextPath = oRow.getBindingContext().getPath();
|
|
424
|
+
const sColumnPath = `${sRowBindingContextPath}/columns/`;
|
|
425
|
+
const aColumns = oModel.getProperty(sColumnPath);
|
|
428
426
|
|
|
429
427
|
// filter out the column at the iColumnIndex instead of splicing to avoid mutation of the original array.
|
|
430
|
-
|
|
428
|
+
const aNewColumns = aColumns.filter((oCol, iIndex) => {
|
|
431
429
|
return iIndex !== iColumnIndex;
|
|
432
430
|
});
|
|
433
431
|
|
|
434
432
|
// split the columnWidth among remaining cols
|
|
435
|
-
|
|
436
|
-
|
|
433
|
+
let iLoopCount = (iColumnWidth / 2);
|
|
434
|
+
let iIndex = iColumnIndex - 1 < 0 ? iColumnIndex : iColumnIndex - 1;
|
|
437
435
|
while (iLoopCount > 0) {
|
|
438
|
-
|
|
436
|
+
const oCurrentColumn = aNewColumns[iIndex];
|
|
439
437
|
this._setColumnWidth(oCurrentColumn, (this._getColumnWidth(oCurrentColumn)) + STEP_SIZE);
|
|
440
438
|
iIndex = ++iIndex >= aNewColumns.length ? 0 : iIndex++;
|
|
441
439
|
iLoopCount--;
|
|
@@ -453,7 +451,7 @@ sap.ui.define([
|
|
|
453
451
|
*
|
|
454
452
|
*/
|
|
455
453
|
onAddFirstRow: function () {
|
|
456
|
-
|
|
454
|
+
const sRowsPath = "/data/workPage/rows/";
|
|
457
455
|
this.getView().getModel().setProperty(sRowsPath, [this._createEmptyRow()]);
|
|
458
456
|
this.getOwnerComponent().fireEvent("workPageEdited");
|
|
459
457
|
},
|
|
@@ -465,17 +463,17 @@ sap.ui.define([
|
|
|
465
463
|
* @param {sap.ui.base.Event} oEvent The "addRow" event.
|
|
466
464
|
*/
|
|
467
465
|
onAddRow: function (oEvent) {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
466
|
+
const oModel = this.getView().getModel();
|
|
467
|
+
const oRow = oEvent.getSource();
|
|
468
|
+
const oPage = this.byId("workPage");
|
|
469
|
+
const sRowsPath = "/data/workPage/rows/";
|
|
470
|
+
const aRows = oModel.getProperty(sRowsPath);
|
|
471
|
+
const oNewRow = this._createEmptyRow();
|
|
474
472
|
|
|
475
|
-
|
|
473
|
+
const iIndex = oPage.indexOfAggregation("rows", oRow) + (oEvent.getParameter("bottom") === true ? 1 : 0);
|
|
476
474
|
|
|
477
475
|
// Insert the new row into the array by creating a new array to avoid mutation.
|
|
478
|
-
|
|
476
|
+
const aNewRows = [aRows.slice(0, iIndex), oNewRow, aRows.slice(iIndex)].flat();
|
|
479
477
|
|
|
480
478
|
oModel.setProperty(sRowsPath, aNewRows);
|
|
481
479
|
this.getOwnerComponent().fireEvent("workPageEdited");
|
|
@@ -488,24 +486,24 @@ sap.ui.define([
|
|
|
488
486
|
* @param {sap.ui.base.Event} oEvent The "columnResized" event.
|
|
489
487
|
*/
|
|
490
488
|
onResize: function (oEvent) {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
489
|
+
const iDiff = oEvent.getParameter("posXDiff");
|
|
490
|
+
const oColumn = oEvent.getSource();
|
|
491
|
+
const oRow = oColumn.getParent();
|
|
492
|
+
const iSingleColumnWidthPx = oRow.getSingleColumnWidth();
|
|
495
493
|
|
|
496
494
|
if (iSingleColumnWidthPx <= 0) { return; }
|
|
497
495
|
|
|
498
|
-
|
|
499
|
-
|
|
496
|
+
const bRtl = Localization.getRTL();
|
|
497
|
+
const fDeltaFromOrigin = iDiff / iSingleColumnWidthPx;
|
|
500
498
|
|
|
501
499
|
if (fDeltaFromOrigin > -1 && fDeltaFromOrigin < 1) { return; }
|
|
502
500
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
501
|
+
const iColumnsDelta = fDeltaFromOrigin < 0 ? Math.floor(iDiff / iSingleColumnWidthPx) : Math.ceil(iDiff / iSingleColumnWidthPx);
|
|
502
|
+
const sDragDirection = iColumnsDelta >= 0 ? "right" : "left";
|
|
503
|
+
let iFlexStep = sDragDirection === "right" ? STEP_SIZE : -STEP_SIZE;
|
|
504
|
+
const iRightColumnIndex = oRow.indexOfAggregation("columns", oColumn);
|
|
505
|
+
const iLeftColumnIndex = iRightColumnIndex - 1;
|
|
506
|
+
const aColumnFlexValues = oRow.getColumnFlexValues();
|
|
509
507
|
|
|
510
508
|
iFlexStep = bRtl ? iFlexStep : -iFlexStep;
|
|
511
509
|
|
|
@@ -537,8 +535,8 @@ sap.ui.define([
|
|
|
537
535
|
* @since 1.118.0
|
|
538
536
|
*/
|
|
539
537
|
_resizeAllowed: function (iColumnCount, iLeftFlex, iRightFlex, iFlexStep) {
|
|
540
|
-
|
|
541
|
-
|
|
538
|
+
const oViewSettingsModel = this.getView().getModel("viewSettings");
|
|
539
|
+
const iColumnMinFlex = oViewSettingsModel.getProperty("/currentBreakpoint/columnMinFlex");
|
|
542
540
|
|
|
543
541
|
// resize to left would result in too small column on the left
|
|
544
542
|
if (iLeftFlex - iFlexStep < iColumnMinFlex) { return false; }
|
|
@@ -546,7 +544,7 @@ sap.ui.define([
|
|
|
546
544
|
// resize to right would result in too small column on the right
|
|
547
545
|
if (iRightFlex + iFlexStep < iColumnMinFlex) { return false; }
|
|
548
546
|
|
|
549
|
-
|
|
547
|
+
const iMaxColumnsPerRow = oViewSettingsModel.getProperty("/currentBreakpoint/maxColumnsPerRow");
|
|
550
548
|
|
|
551
549
|
// no resize allowed if there is a line break for WorkPageRows
|
|
552
550
|
if (iColumnCount > iMaxColumnsPerRow) { return false; }
|
|
@@ -571,10 +569,10 @@ sap.ui.define([
|
|
|
571
569
|
* @returns {Promise} A promise resolving when the dialog was opened or the card was deleted.
|
|
572
570
|
*/
|
|
573
571
|
onDeleteCell: function (oEvent) {
|
|
574
|
-
|
|
572
|
+
const oCell = oEvent.getSource().getParent().getParent();
|
|
575
573
|
|
|
576
574
|
// No dialog is shown if the ell contains only a card.
|
|
577
|
-
|
|
575
|
+
const aWidgets = oCell.getWidgets();
|
|
578
576
|
if (aWidgets?.[0] && aWidgets.length === 1 && aWidgets[0].isA("sap.ui.integration.widgets.Card")) {
|
|
579
577
|
return this.deleteCell(oEvent, {
|
|
580
578
|
cell: oCell,
|
|
@@ -584,25 +582,25 @@ sap.ui.define([
|
|
|
584
582
|
|
|
585
583
|
// Show dialog for all other widgets.
|
|
586
584
|
if (!this.oDeleteCell) {
|
|
587
|
-
|
|
585
|
+
const oRootView = this.getOwnerComponent().getRootControl();
|
|
588
586
|
this.oDeleteCell = Fragment.load({
|
|
589
587
|
id: oRootView.createId("cellDeleteDialog"),
|
|
590
588
|
name: "sap.ushell.components.workPageBuilder.view.WorkPageCellDeleteDialog",
|
|
591
589
|
controller: this
|
|
592
|
-
}).then(
|
|
590
|
+
}).then((oDialog) => {
|
|
593
591
|
oDialog.setModel(this.getView().getModel("i18n"), "i18n");
|
|
594
592
|
return oDialog;
|
|
595
|
-
}
|
|
593
|
+
});
|
|
596
594
|
}
|
|
597
595
|
|
|
598
|
-
return this.oDeleteCell.then(
|
|
596
|
+
return this.oDeleteCell.then((oDialog) => {
|
|
599
597
|
oDialog.getBeginButton().detachEvent("press", this._fnDeleteCellHandler);
|
|
600
598
|
oDialog.getBeginButton().attachEvent("press", {
|
|
601
599
|
cell: oCell,
|
|
602
600
|
dialog: true
|
|
603
601
|
}, this._fnDeleteCellHandler);
|
|
604
602
|
oDialog.open();
|
|
605
|
-
}
|
|
603
|
+
});
|
|
606
604
|
},
|
|
607
605
|
|
|
608
606
|
/**
|
|
@@ -615,22 +613,22 @@ sap.ui.define([
|
|
|
615
613
|
* @returns {Promise} A promise resolving when the cell has been deleted.
|
|
616
614
|
*/
|
|
617
615
|
deleteCell: function (oEvent, cellData) {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
616
|
+
const oCell = cellData.cell;
|
|
617
|
+
const oModel = this.getView().getModel();
|
|
618
|
+
const oColumn = oCell.getParent();
|
|
619
|
+
const iCellIndex = oColumn.indexOfAggregation("cells", oCell);
|
|
620
|
+
const sCellsPath = `${oColumn.getBindingContext().getPath()}/cells`;
|
|
621
|
+
const aCells = oModel.getProperty(sCellsPath);
|
|
624
622
|
|
|
625
623
|
// Filter out the cell at iCellIndex instead of splicing to avoid mutation of the original array.
|
|
626
|
-
|
|
624
|
+
const aNewCells = aCells.filter((oOriginalCell, iIndex) => {
|
|
627
625
|
return iIndex !== iCellIndex;
|
|
628
626
|
});
|
|
629
627
|
|
|
630
628
|
oModel.setProperty(sCellsPath, aNewCells);
|
|
631
629
|
this.getOwnerComponent().fireEvent("workPageEdited");
|
|
632
630
|
if (cellData.dialog) {
|
|
633
|
-
return this.oDeleteCell.then(
|
|
631
|
+
return this.oDeleteCell.then((oDialog) => {
|
|
634
632
|
oDialog.close();
|
|
635
633
|
});
|
|
636
634
|
}
|
|
@@ -644,16 +642,16 @@ sap.ui.define([
|
|
|
644
642
|
* @param {sap.ushell.ui.launchpad.VizInstanceCdm|sap.ushell.ui.launchpad.VizInstanceLink} oVizInstance the viz instance.
|
|
645
643
|
*/
|
|
646
644
|
_deleteVisualization: function (oVizInstance) {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
645
|
+
const oCell = oVizInstance.getParent().getParent();
|
|
646
|
+
const oVizInstanceContext = oVizInstance.getBindingContext();
|
|
647
|
+
const sVizInstancePath = oVizInstanceContext.getPath();
|
|
648
|
+
const oModel = this.getView().getModel();
|
|
649
|
+
const sWidgetsPath = sVizInstancePath.substring(0, sVizInstancePath.lastIndexOf("/"));
|
|
650
|
+
const iWidgetIndex = oCell.indexOfAggregation("widgets", oVizInstance);
|
|
651
|
+
const aWidgets = oModel.getProperty(sWidgetsPath);
|
|
654
652
|
|
|
655
653
|
// Filter out the widget at iWidgetIndex instead of splicing to avoid mutation of the original array.
|
|
656
|
-
|
|
654
|
+
const aNewWidgets = aWidgets.filter((oWidget, iIndex) => {
|
|
657
655
|
return iIndex !== iWidgetIndex;
|
|
658
656
|
});
|
|
659
657
|
|
|
@@ -711,7 +709,7 @@ sap.ui.define([
|
|
|
711
709
|
const oSource = oEvent.getSource(); // WorkPageColumn
|
|
712
710
|
const oResourceBundle = this.getView().getModel("i18n").getResourceBundle();
|
|
713
711
|
|
|
714
|
-
return this.oContentFinderPromise.then(
|
|
712
|
+
return this.oContentFinderPromise.then((oContentFinderComponent) => {
|
|
715
713
|
oContentFinderComponent.attachVisualizationsAdded(oSource, this._onAddVisualization, this);
|
|
716
714
|
oContentFinderComponent.attachVisualizationFilterApplied(oSource, this._onVisualizationFilterApplied, this);
|
|
717
715
|
oContentFinderComponent.show({
|
|
@@ -732,7 +730,7 @@ sap.ui.define([
|
|
|
732
730
|
]
|
|
733
731
|
}
|
|
734
732
|
});
|
|
735
|
-
}
|
|
733
|
+
});
|
|
736
734
|
},
|
|
737
735
|
|
|
738
736
|
/**
|
|
@@ -747,7 +745,7 @@ sap.ui.define([
|
|
|
747
745
|
const oSource = oEvent.getSource().getParent().getParent(); // WorkPageCell
|
|
748
746
|
const oResourceBundle = this.getView().getModel("i18n").getResourceBundle();
|
|
749
747
|
|
|
750
|
-
return this.oContentFinderPromise.then(
|
|
748
|
+
return this.oContentFinderPromise.then((oContentFinderComponent) => {
|
|
751
749
|
oContentFinderComponent.setContextData({ restrictedVisualizations: this._getRestrictedVisualizationIds(oSource) });
|
|
752
750
|
oContentFinderComponent.attachVisualizationsAdded(oSource, this._onAddVisualization, this);
|
|
753
751
|
oContentFinderComponent.attachVisualizationFilterApplied(oSource, this._onVisualizationFilterApplied, this);
|
|
@@ -764,7 +762,7 @@ sap.ui.define([
|
|
|
764
762
|
]
|
|
765
763
|
}
|
|
766
764
|
});
|
|
767
|
-
}
|
|
765
|
+
});
|
|
768
766
|
},
|
|
769
767
|
|
|
770
768
|
/**
|
|
@@ -777,7 +775,7 @@ sap.ui.define([
|
|
|
777
775
|
* @private
|
|
778
776
|
*/
|
|
779
777
|
_getRestrictedVisualizationIds: function (oCell) {
|
|
780
|
-
return oCell.getWidgets().map(
|
|
778
|
+
return oCell.getWidgets().map((oWidget) => {
|
|
781
779
|
if (oWidget.isA("sap.ushell.ui.launchpad.VizInstanceCdm")) {
|
|
782
780
|
return oWidget.getProperty("vizRefId");
|
|
783
781
|
}
|
|
@@ -794,17 +792,17 @@ sap.ui.define([
|
|
|
794
792
|
*/
|
|
795
793
|
_onAddVisualization: function (oEvent, oSource) {
|
|
796
794
|
const oModel = this.getView().getModel();
|
|
797
|
-
|
|
795
|
+
const aSelectedVisualizations = oEvent.getParameter("visualizations");
|
|
798
796
|
|
|
799
797
|
if (aSelectedVisualizations.length > 0) {
|
|
800
|
-
aSelectedVisualizations.forEach(
|
|
801
|
-
|
|
798
|
+
aSelectedVisualizations.forEach((oVisualization) => {
|
|
799
|
+
const sVizSelectedItemPath = `/data/usedVisualizations/${oVisualization.id}`;
|
|
802
800
|
if (!oModel.getProperty(sVizSelectedItemPath)) {
|
|
803
801
|
oModel.setProperty(sVizSelectedItemPath, oVisualization.vizData);
|
|
804
802
|
}
|
|
805
803
|
});
|
|
806
804
|
|
|
807
|
-
|
|
805
|
+
const aWidgetData = this._instantiateWidgetData(aSelectedVisualizations);
|
|
808
806
|
|
|
809
807
|
if (oSource.isA("sap.ushell.components.workPageBuilder.controls.WorkPageCell")) {
|
|
810
808
|
this._setCellData(oSource, aWidgetData);
|
|
@@ -813,7 +811,6 @@ sap.ui.define([
|
|
|
813
811
|
this._setColumnData(oSource, aWidgetData);
|
|
814
812
|
}
|
|
815
813
|
}
|
|
816
|
-
|
|
817
814
|
},
|
|
818
815
|
|
|
819
816
|
/**
|
|
@@ -825,10 +822,10 @@ sap.ui.define([
|
|
|
825
822
|
* @private
|
|
826
823
|
*/
|
|
827
824
|
_instantiateWidgetData: function (aSelectedVisualizations) {
|
|
828
|
-
|
|
829
|
-
|
|
825
|
+
let aIds = [];
|
|
826
|
+
let sId;
|
|
830
827
|
|
|
831
|
-
return aSelectedVisualizations.map(
|
|
828
|
+
return aSelectedVisualizations.map((oTile) => {
|
|
832
829
|
sId = this._generateUniqueId(aIds);
|
|
833
830
|
aIds = aIds.concat([sId]);
|
|
834
831
|
return {
|
|
@@ -837,7 +834,7 @@ sap.ui.define([
|
|
|
837
834
|
id: oTile.vizData.id
|
|
838
835
|
}
|
|
839
836
|
};
|
|
840
|
-
}
|
|
837
|
+
});
|
|
841
838
|
},
|
|
842
839
|
|
|
843
840
|
/**
|
|
@@ -850,8 +847,8 @@ sap.ui.define([
|
|
|
850
847
|
*/
|
|
851
848
|
_setCellData: function (oCell, aWidgetData) {
|
|
852
849
|
const oModel = this.getView().getModel();
|
|
853
|
-
|
|
854
|
-
|
|
850
|
+
const sCellPath = oCell.getBindingContext().getPath();
|
|
851
|
+
const oCellData = Object.assign({}, oModel.getProperty(sCellPath));
|
|
855
852
|
|
|
856
853
|
oCellData.widgets = oCellData.widgets.concat(aWidgetData);
|
|
857
854
|
|
|
@@ -904,27 +901,27 @@ sap.ui.define([
|
|
|
904
901
|
* @param {sap.ui.base.Event} oEvent The "deleteRow" event.
|
|
905
902
|
*/
|
|
906
903
|
onDeleteRow: function (oEvent) {
|
|
907
|
-
|
|
908
|
-
|
|
904
|
+
const oRootView = this.getOwnerComponent().getRootControl();
|
|
905
|
+
const oWorkPageRowContext = oEvent.getSource().getBindingContext();
|
|
909
906
|
|
|
910
907
|
if (!this.oLoadDeleteDialog) {
|
|
911
908
|
this.oLoadDeleteDialog = Fragment.load({
|
|
912
909
|
id: oRootView.createId("rowDeleteDialog"),
|
|
913
910
|
name: "sap.ushell.components.workPageBuilder.view.WorkPageRowDeleteDialog",
|
|
914
911
|
controller: this
|
|
915
|
-
}).then(
|
|
912
|
+
}).then((oDialog) => {
|
|
916
913
|
oDialog.setModel(this.getView().getModel("i18n"), "i18n");
|
|
917
914
|
return oDialog;
|
|
918
|
-
}
|
|
915
|
+
});
|
|
919
916
|
}
|
|
920
917
|
|
|
921
|
-
return this.oLoadDeleteDialog.then(
|
|
918
|
+
return this.oLoadDeleteDialog.then((oDialog) => {
|
|
922
919
|
oDialog.getBeginButton().detachEvent("press", this._fnDeleteRowHandler);
|
|
923
920
|
oDialog.getBeginButton().attachEvent("press", {
|
|
924
921
|
rowContext: oWorkPageRowContext
|
|
925
922
|
}, this._fnDeleteRowHandler);
|
|
926
923
|
oDialog.open();
|
|
927
|
-
}
|
|
924
|
+
});
|
|
928
925
|
},
|
|
929
926
|
|
|
930
927
|
/**
|
|
@@ -936,19 +933,19 @@ sap.ui.define([
|
|
|
936
933
|
* @param {object} oRowData Object containing the WorkPageRow context to delete.
|
|
937
934
|
*/
|
|
938
935
|
deleteRow: function (oEvent, oRowData) {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
936
|
+
const oModel = this.getView().getModel();
|
|
937
|
+
const oWorkPageRowContext = oRowData.rowContext;
|
|
938
|
+
const aRows = oModel.getProperty("/data/workPage/rows");
|
|
939
|
+
const oRowContextData = oWorkPageRowContext.getObject();
|
|
943
940
|
|
|
944
941
|
// Filter out the row with the given id to avoid mutation of the original array.
|
|
945
|
-
|
|
942
|
+
const aFilteredRows = aRows.filter((oRow) => {
|
|
946
943
|
return oRow.id !== oRowContextData.id;
|
|
947
944
|
});
|
|
948
945
|
|
|
949
946
|
oModel.setProperty("/data/workPage/rows", aFilteredRows);
|
|
950
947
|
this.getOwnerComponent().fireEvent("workPageEdited");
|
|
951
|
-
return this.oLoadDeleteDialog.then(
|
|
948
|
+
return this.oLoadDeleteDialog.then((oDialog) => {
|
|
952
949
|
oDialog.close();
|
|
953
950
|
});
|
|
954
951
|
},
|
|
@@ -958,7 +955,7 @@ sap.ui.define([
|
|
|
958
955
|
* @returns {Promise} A promise resolving when the dialog has been closed
|
|
959
956
|
*/
|
|
960
957
|
onRowDeleteCancel: function () {
|
|
961
|
-
return this.oLoadDeleteDialog.then(
|
|
958
|
+
return this.oLoadDeleteDialog.then((oDialog) => {
|
|
962
959
|
oDialog.close();
|
|
963
960
|
});
|
|
964
961
|
},
|
|
@@ -969,7 +966,7 @@ sap.ui.define([
|
|
|
969
966
|
* @returns {Promise} A promise resolving when the dialog has been closed
|
|
970
967
|
*/
|
|
971
968
|
onCellDeleteCancel: function () {
|
|
972
|
-
return this.oDeleteCell.then(
|
|
969
|
+
return this.oDeleteCell.then((oDialog) => {
|
|
973
970
|
oDialog.close();
|
|
974
971
|
});
|
|
975
972
|
},
|
|
@@ -1001,24 +998,24 @@ sap.ui.define([
|
|
|
1001
998
|
* @returns {sap.ushell.ui.launchpad.VizInstance|sap.m.GenericTile|sap.ui.integration.widgets.Card} The resulting control.
|
|
1002
999
|
*/
|
|
1003
1000
|
widgetFactory: function (sWidgetId, oWidgetContext) {
|
|
1004
|
-
|
|
1001
|
+
const sVizId = oWidgetContext.getProperty("visualization/id");
|
|
1005
1002
|
|
|
1006
1003
|
if (!sVizId) {
|
|
1007
1004
|
Log.error("No vizId found in widget context.");
|
|
1008
1005
|
return this._createErrorTile();
|
|
1009
1006
|
}
|
|
1010
1007
|
|
|
1011
|
-
|
|
1008
|
+
const oVizData = this.getView().getModel().getProperty(`/data/usedVisualizations/${sVizId}`);
|
|
1012
1009
|
|
|
1013
1010
|
if (!oVizData || !oVizData.type) {
|
|
1014
|
-
Log.error(
|
|
1011
|
+
Log.error(`No viz or vizType found for vizId ${sVizId}`);
|
|
1015
1012
|
return this._createErrorTile();
|
|
1016
1013
|
}
|
|
1017
1014
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1015
|
+
const aWidgetConfigurations = oWidgetContext.getProperty("configurations") || [];
|
|
1016
|
+
const aVizConfigurations = oVizData.configurations || [];
|
|
1017
|
+
const aMergedAndSortedConfigurations = this._getMergedAndSortedConfigurations(aWidgetConfigurations, aVizConfigurations);
|
|
1018
|
+
const sWidgetContextPath = oWidgetContext.getPath();
|
|
1022
1019
|
|
|
1023
1020
|
switch (oVizData.type) {
|
|
1024
1021
|
case "sap.card":
|
|
@@ -1033,7 +1030,7 @@ sap.ui.define([
|
|
|
1033
1030
|
case "ssuite.smartbusiness.tiles.comparison":
|
|
1034
1031
|
return this._createVizInstance(oVizData);
|
|
1035
1032
|
default:
|
|
1036
|
-
Log.error(
|
|
1033
|
+
Log.error(`Unknown type for widget ${oVizData.type}`);
|
|
1037
1034
|
return this._createErrorTile();
|
|
1038
1035
|
}
|
|
1039
1036
|
},
|
|
@@ -1063,15 +1060,15 @@ sap.ui.define([
|
|
|
1063
1060
|
|
|
1064
1061
|
// First, widget configurations and viz configurations are merged for each level in CONFIGURATION_LEVELS
|
|
1065
1062
|
// Second, the merged configurations are sorted
|
|
1066
|
-
|
|
1067
|
-
|
|
1063
|
+
const oConfigurations = CONFIGURATION_LEVELS.reduce((oMergedConfigurations, sLevel) => {
|
|
1064
|
+
const oWidgetConfigByLevel = aWidgetConfigurations.find((oWidgetConfig) => {
|
|
1068
1065
|
return oWidgetConfig.level === sLevel;
|
|
1069
1066
|
});
|
|
1070
|
-
|
|
1067
|
+
const oVizConfigByLevel = aVizConfigurations.find((oVizConfig) => {
|
|
1071
1068
|
return oVizConfig.level === sLevel;
|
|
1072
1069
|
});
|
|
1073
1070
|
|
|
1074
|
-
|
|
1071
|
+
const oMergedConfigurationsByLevel = deepExtend({}, oVizConfigByLevel, oWidgetConfigByLevel);
|
|
1075
1072
|
|
|
1076
1073
|
if (Object.keys(oMergedConfigurationsByLevel).length > 0) {
|
|
1077
1074
|
oMergedConfigurations[sLevel] = oMergedConfigurationsByLevel;
|
|
@@ -1083,7 +1080,6 @@ sap.ui.define([
|
|
|
1083
1080
|
return this._sortConfigurations(Object.values(oConfigurations));
|
|
1084
1081
|
},
|
|
1085
1082
|
|
|
1086
|
-
|
|
1087
1083
|
/**
|
|
1088
1084
|
* Sort the widget's configuration by level: PR: Provider, CO: (Content) Administrator, PG: Page Administrator, US: End User
|
|
1089
1085
|
*
|
|
@@ -1094,12 +1090,12 @@ sap.ui.define([
|
|
|
1094
1090
|
*/
|
|
1095
1091
|
|
|
1096
1092
|
_sortConfigurations: function (aConfigurations) {
|
|
1097
|
-
|
|
1093
|
+
const oSortedConfigurations = aConfigurations && aConfigurations.sort((oWidgetConfigA, oWidgetConfigB) => {
|
|
1098
1094
|
return CONFIGURATION_LEVELS.indexOf(oWidgetConfigA.level) - CONFIGURATION_LEVELS.indexOf(oWidgetConfigB.level);
|
|
1099
1095
|
});
|
|
1100
1096
|
|
|
1101
1097
|
// PR —> CO —> PG —> US
|
|
1102
|
-
return oSortedConfigurations.map(
|
|
1098
|
+
return oSortedConfigurations.map((oWidgetConfiguration) => {
|
|
1103
1099
|
return oWidgetConfiguration.settings.value;
|
|
1104
1100
|
});
|
|
1105
1101
|
},
|
|
@@ -1122,7 +1118,7 @@ sap.ui.define([
|
|
|
1122
1118
|
delete oExtendedVizData._siteData.targetURL;
|
|
1123
1119
|
}
|
|
1124
1120
|
|
|
1125
|
-
|
|
1121
|
+
const oVizInstance = this.oWorkPageVizInstantiation.createVizInstance(oExtendedVizData);
|
|
1126
1122
|
|
|
1127
1123
|
if (!oVizInstance) {
|
|
1128
1124
|
Log.error("No VizInstance was created.");
|
|
@@ -1172,8 +1168,8 @@ sap.ui.define([
|
|
|
1172
1168
|
* @param {sap.ui.base.Event} oEvent The press event.
|
|
1173
1169
|
*/
|
|
1174
1170
|
onVisualizationPress: function (oEvent) {
|
|
1175
|
-
|
|
1176
|
-
|
|
1171
|
+
const sScope = oEvent.getParameter("scope");
|
|
1172
|
+
const sAction = oEvent.getParameter("action");
|
|
1177
1173
|
|
|
1178
1174
|
if (sScope === "Actions" && sAction === "Remove") {
|
|
1179
1175
|
this._deleteVisualization(oEvent.getSource());
|
|
@@ -1192,11 +1188,11 @@ sap.ui.define([
|
|
|
1192
1188
|
* @private
|
|
1193
1189
|
*/
|
|
1194
1190
|
_createCard: function (oViz = {}, aWidgetConfigurations = [], aManifestChangesToApply = [], sWidgetContextPath = "") {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1191
|
+
const oOptions = {};
|
|
1192
|
+
const bHasDescriptor = oViz.descriptor && oViz.descriptor.value && oViz.descriptor.value["sap.card"];
|
|
1193
|
+
const bHasDescriptorResources = oViz.descriptorResources && (oViz.descriptorResources.baseUrl || oViz.descriptorResources.descriptorPath);
|
|
1194
|
+
const bPgLevelConfigurationsExist = aWidgetConfigurations.some((oConfig) => { return oConfig.level === "PG"; });
|
|
1195
|
+
let bIsConfigurable;
|
|
1200
1196
|
|
|
1201
1197
|
if (!bHasDescriptor && !bHasDescriptorResources) {
|
|
1202
1198
|
Log.error("No descriptor or descriptorResources for Card");
|
|
@@ -1228,10 +1224,10 @@ sap.ui.define([
|
|
|
1228
1224
|
oOptions.baseUrl += "/";
|
|
1229
1225
|
}
|
|
1230
1226
|
|
|
1231
|
-
|
|
1227
|
+
const oCard = new Card(oOptions);
|
|
1232
1228
|
|
|
1233
1229
|
if (bIsConfigurable) {
|
|
1234
|
-
|
|
1230
|
+
const oConfigureActionDefinition = this._createCardConfigurationActionDefinition(
|
|
1235
1231
|
oCard,
|
|
1236
1232
|
sWidgetContextPath,
|
|
1237
1233
|
this._openCardConfigurationEditor.bind(this)
|
|
@@ -1240,7 +1236,7 @@ sap.ui.define([
|
|
|
1240
1236
|
}
|
|
1241
1237
|
|
|
1242
1238
|
if (bPgLevelConfigurationsExist) {
|
|
1243
|
-
|
|
1239
|
+
const oResetActionDefinition = this._createCardResetActionDefinition(
|
|
1244
1240
|
aWidgetConfigurations,
|
|
1245
1241
|
sWidgetContextPath,
|
|
1246
1242
|
this._openResetCardConfigurationDialog.bind(this)
|
|
@@ -1335,9 +1331,9 @@ sap.ui.define([
|
|
|
1335
1331
|
this.oCardEditorDialogPromise = this._createCardEditorDialog(oContextData.card);
|
|
1336
1332
|
}
|
|
1337
1333
|
|
|
1338
|
-
|
|
1334
|
+
const oCardEditorPromise = this._createCardEditor(oContextData.card);
|
|
1339
1335
|
|
|
1340
|
-
return Promise.all([oCardEditorPromise, this.oCardEditorDialogPromise]).then(
|
|
1336
|
+
return Promise.all([oCardEditorPromise, this.oCardEditorDialogPromise]).then((aInstances) => {
|
|
1341
1337
|
this.oCardEditorDialog = aInstances[1];
|
|
1342
1338
|
this.oCardEditorDialog.removeAllContent();
|
|
1343
1339
|
this.oCardEditorDialog.getBeginButton()
|
|
@@ -1346,10 +1342,9 @@ sap.ui.define([
|
|
|
1346
1342
|
this._setCardDialogTitle(this.oCardEditorDialog, oContextData.card);
|
|
1347
1343
|
this.oCardEditorDialog.addContent(aInstances[0]);
|
|
1348
1344
|
this.oCardEditorDialog.open();
|
|
1349
|
-
}
|
|
1345
|
+
});
|
|
1350
1346
|
},
|
|
1351
1347
|
|
|
1352
|
-
|
|
1353
1348
|
/**
|
|
1354
1349
|
* Opens the card reset dialog and attaches the reset button handler.
|
|
1355
1350
|
*
|
|
@@ -1369,14 +1364,14 @@ sap.ui.define([
|
|
|
1369
1364
|
this.oCardResetDialogPromise = this._createResetCardConfigurationDialog();
|
|
1370
1365
|
}
|
|
1371
1366
|
|
|
1372
|
-
return this.oCardResetDialogPromise.then(
|
|
1367
|
+
return this.oCardResetDialogPromise.then((oCardResetDialog) => {
|
|
1373
1368
|
this.oCardResetDialog = oCardResetDialog;
|
|
1374
1369
|
this.getView().addDependent(this.oCardResetDialog);
|
|
1375
1370
|
this.oCardResetDialog.getBeginButton()
|
|
1376
1371
|
.detachPress(this._fnResetCardConfiguration)
|
|
1377
1372
|
.attachPress(oContextData, this._fnResetCardConfiguration);
|
|
1378
1373
|
this.oCardResetDialog.open();
|
|
1379
|
-
}
|
|
1374
|
+
});
|
|
1380
1375
|
},
|
|
1381
1376
|
|
|
1382
1377
|
/**
|
|
@@ -1387,10 +1382,10 @@ sap.ui.define([
|
|
|
1387
1382
|
* @private
|
|
1388
1383
|
*/
|
|
1389
1384
|
_onResetCardConfigurations: function (oEvent, oContextData) {
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1385
|
+
const oDialog = oEvent.getSource().getParent();
|
|
1386
|
+
const aWidgetConfigurations = oContextData.widgetConfigurations;
|
|
1387
|
+
const sWidgetConfigurationsPath = `${oContextData.widgetContextPath}/configurations`;
|
|
1388
|
+
const aRemainingConfigurations = aWidgetConfigurations.filter((oConfig) => {
|
|
1394
1389
|
return oConfig.level !== "PG";
|
|
1395
1390
|
});
|
|
1396
1391
|
|
|
@@ -1409,15 +1404,15 @@ sap.ui.define([
|
|
|
1409
1404
|
* @private
|
|
1410
1405
|
*/
|
|
1411
1406
|
_createResetCardConfigurationDialog: function () {
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1407
|
+
const oI18nBundle = this.getView().getModel("i18n").getResourceBundle();
|
|
1408
|
+
const sDialogTitle = oI18nBundle.getText("WorkPage.CardEditor.DeleteConfigurationDialog.Title");
|
|
1409
|
+
const sDialogContent = oI18nBundle.getText("WorkPage.CardEditor.DeleteConfigurationDialog.Content");
|
|
1410
|
+
const sBeginButtonText = oI18nBundle.getText("WorkPage.CardEditor.DeleteConfigurationDialog.Accept");
|
|
1411
|
+
const sEndButtonText = oI18nBundle.getText("WorkPage.CardEditor.DeleteConfigurationDialog.Deny");
|
|
1417
1412
|
|
|
1418
1413
|
return new Promise((resolve, reject) => {
|
|
1419
1414
|
sap.ui.require(["sap/m/Dialog", "sap/m/Button", "sap/m/Text"], (Dialog, Button, Text) => {
|
|
1420
|
-
|
|
1415
|
+
const oDialog = new Dialog({
|
|
1421
1416
|
id: this.createId("cardConfigurationResetDialog"),
|
|
1422
1417
|
type: mLibrary.DialogType.Message,
|
|
1423
1418
|
state: ValueState.Warning,
|
|
@@ -1448,8 +1443,8 @@ sap.ui.define([
|
|
|
1448
1443
|
* @private
|
|
1449
1444
|
*/
|
|
1450
1445
|
_setCardDialogTitle: function (oDialog, oCard) {
|
|
1451
|
-
|
|
1452
|
-
|
|
1446
|
+
const oI18nBundle = this.getView().getModel("i18n").getResourceBundle();
|
|
1447
|
+
const sCardEditorTitle = this._getCardTitle(oCard)
|
|
1453
1448
|
? oI18nBundle.getText("WorkPage.CardEditor.Title", [this._getCardTitle(oCard)])
|
|
1454
1449
|
: oI18nBundle.getText("WorkPage.CardEditor.Title.NoCardTitle");
|
|
1455
1450
|
oDialog.setTitle(sCardEditorTitle);
|
|
@@ -1476,7 +1471,7 @@ sap.ui.define([
|
|
|
1476
1471
|
})
|
|
1477
1472
|
);
|
|
1478
1473
|
},
|
|
1479
|
-
|
|
1474
|
+
fReject
|
|
1480
1475
|
);
|
|
1481
1476
|
},
|
|
1482
1477
|
fReject
|
|
@@ -1492,13 +1487,13 @@ sap.ui.define([
|
|
|
1492
1487
|
* @private
|
|
1493
1488
|
*/
|
|
1494
1489
|
_createCardEditorDialog: function (oCard) {
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1490
|
+
const oI18nBundle = this.getView().getModel("i18n").getResourceBundle();
|
|
1491
|
+
const sCardEditorSaveText = oI18nBundle.getText("WorkPage.CardEditor.Save");
|
|
1492
|
+
const sCardEditorCancelText = oI18nBundle.getText("WorkPage.CardEditor.Cancel");
|
|
1498
1493
|
|
|
1499
1494
|
return new Promise((resolve, reject) => {
|
|
1500
1495
|
sap.ui.require(["sap/m/Dialog", "sap/m/Button"], (Dialog, Button) => {
|
|
1501
|
-
|
|
1496
|
+
const oDialog = new Dialog({
|
|
1502
1497
|
id: this.createId("cardEditorDialog"),
|
|
1503
1498
|
contentWidth: "40rem",
|
|
1504
1499
|
beginButton: new Button({
|
|
@@ -1538,14 +1533,14 @@ sap.ui.define([
|
|
|
1538
1533
|
* @private
|
|
1539
1534
|
*/
|
|
1540
1535
|
_onSaveCardEditor: function (oEvent, sWidgetContextPath) {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1536
|
+
const oDialog = oEvent.getSource().getParent();
|
|
1537
|
+
const oCardEditor = oDialog.getContent()[0];
|
|
1538
|
+
const oCard = oCardEditor.getCard();
|
|
1539
|
+
const sWidgetConfigurationsPath = `${sWidgetContextPath}/configurations`;
|
|
1540
|
+
const oCurrentSettings = oCardEditor.getCurrentSettings();
|
|
1541
|
+
let aWidgetConfigurations = this.oModel.getProperty(sWidgetConfigurationsPath) || [];
|
|
1542
|
+
|
|
1543
|
+
let oWidgetConfiguration = aWidgetConfigurations.find((oConfiguration) => {
|
|
1549
1544
|
return oConfiguration.level === "PG";
|
|
1550
1545
|
});
|
|
1551
1546
|
|
|
@@ -1559,7 +1554,7 @@ sap.ui.define([
|
|
|
1559
1554
|
};
|
|
1560
1555
|
aWidgetConfigurations.push(oWidgetConfiguration);
|
|
1561
1556
|
} else {
|
|
1562
|
-
aWidgetConfigurations = aWidgetConfigurations.map(
|
|
1557
|
+
aWidgetConfigurations = aWidgetConfigurations.map((oConfiguration) => {
|
|
1563
1558
|
if (oConfiguration.level === "PG") {
|
|
1564
1559
|
oConfiguration.settings.value = deepExtend({}, oConfiguration.settings.value, oCurrentSettings);
|
|
1565
1560
|
}
|
|
@@ -1605,14 +1600,14 @@ sap.ui.define([
|
|
|
1605
1600
|
* @private
|
|
1606
1601
|
*/
|
|
1607
1602
|
onCellDrop: function (oEvent) {
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1603
|
+
const oSourceCell = oEvent.getParameter("draggedControl");
|
|
1604
|
+
const oTargetCell = oEvent.getParameter("droppedControl");
|
|
1605
|
+
const sDropPosition = oEvent.getParameter("dropPosition");
|
|
1606
|
+
const oSourceColumn = oSourceCell.getParent();
|
|
1607
|
+
const oTargetColumn = oTargetCell.getParent();
|
|
1613
1608
|
|
|
1614
|
-
|
|
1615
|
-
|
|
1609
|
+
const iSourceIndex = oSourceColumn.indexOfAggregation("cells", oSourceCell);
|
|
1610
|
+
let iTargetIndex = oTargetColumn.indexOfAggregation("cells", oTargetCell);
|
|
1616
1611
|
|
|
1617
1612
|
// Increase the drop position if the dragged element is moved below the target element.
|
|
1618
1613
|
if (sDropPosition === "After") {
|
|
@@ -1631,12 +1626,12 @@ sap.ui.define([
|
|
|
1631
1626
|
* @private
|
|
1632
1627
|
*/
|
|
1633
1628
|
onCellDropOnEmptyColumn: function (oEvent) {
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1629
|
+
const oSourceCell = oEvent.getParameter("draggedControl");
|
|
1630
|
+
const oTargetColumn = oEvent.getParameter("droppedControl");
|
|
1631
|
+
const oSourceColumn = oSourceCell.getParent();
|
|
1637
1632
|
|
|
1638
|
-
|
|
1639
|
-
|
|
1633
|
+
const iSourceIndex = oSourceColumn.indexOfAggregation("cells", oSourceCell);
|
|
1634
|
+
const iTargetIndex = 0;
|
|
1640
1635
|
|
|
1641
1636
|
this._moveCell(oSourceColumn, oTargetColumn, iSourceIndex, iTargetIndex);
|
|
1642
1637
|
},
|
|
@@ -1710,7 +1705,7 @@ sap.ui.define([
|
|
|
1710
1705
|
*/
|
|
1711
1706
|
_moveVisualizationToCellOrColumn: function (oVisualization, oSourceCell, oTargetControl, iPositionInTargetColumn) {
|
|
1712
1707
|
const oModel = this.getView().getModel();
|
|
1713
|
-
const sCellWidgetsPath = oSourceCell.getBindingContext().getPath()
|
|
1708
|
+
const sCellWidgetsPath = `${oSourceCell.getBindingContext().getPath()}/widgets`;
|
|
1714
1709
|
const aCellWidgets = oModel.getProperty(sCellWidgetsPath);
|
|
1715
1710
|
const iIndexInSourceCell = oSourceCell.indexOfAggregation("widgets", oVisualization);
|
|
1716
1711
|
const sSourceVisPath = oVisualization.getBindingContext().getPath();
|
|
@@ -1743,15 +1738,15 @@ sap.ui.define([
|
|
|
1743
1738
|
* @since 1.116.0
|
|
1744
1739
|
*/
|
|
1745
1740
|
_moveCell: function (oSourceColumn, oTargetColumn, iSourceIndex, iTargetIndex) {
|
|
1746
|
-
|
|
1741
|
+
const oModel = this.getView().getModel();
|
|
1747
1742
|
|
|
1748
|
-
|
|
1743
|
+
const bSameContainer = oTargetColumn.getId() === oSourceColumn.getId();
|
|
1749
1744
|
|
|
1750
|
-
|
|
1751
|
-
|
|
1745
|
+
const sSourceColumnCellsPath = `${oSourceColumn.getBindingContext().getPath()}/cells`;
|
|
1746
|
+
const sTargetColumnCellsPath = `${oTargetColumn.getBindingContext().getPath()}/cells`;
|
|
1752
1747
|
|
|
1753
|
-
|
|
1754
|
-
|
|
1748
|
+
const aSourceColumnCells = oModel.getProperty(sSourceColumnCellsPath);
|
|
1749
|
+
let aTargetColumnCells = oModel.getProperty(sTargetColumnCellsPath);
|
|
1755
1750
|
|
|
1756
1751
|
if (bSameContainer) {
|
|
1757
1752
|
// Decrease drop position if the dragged element is taken from before the drop position in the same container.
|
|
@@ -1765,7 +1760,7 @@ sap.ui.define([
|
|
|
1765
1760
|
}
|
|
1766
1761
|
|
|
1767
1762
|
// Filter the dragged item from the source array instead of splicing to avoid mutation.
|
|
1768
|
-
|
|
1763
|
+
const aNewDragColumnCells = aSourceColumnCells.filter((oWidget, iIndex) => {
|
|
1769
1764
|
return iIndex !== iSourceIndex;
|
|
1770
1765
|
});
|
|
1771
1766
|
|
|
@@ -1775,7 +1770,7 @@ sap.ui.define([
|
|
|
1775
1770
|
}
|
|
1776
1771
|
|
|
1777
1772
|
// Insert the dragged object into a new target array to avoid mutation.
|
|
1778
|
-
|
|
1773
|
+
const aNewDropColumnCells = [aTargetColumnCells.slice(0, iTargetIndex), aSourceColumnCells[iSourceIndex], aTargetColumnCells.slice(iTargetIndex)].flat();
|
|
1779
1774
|
|
|
1780
1775
|
oModel.setProperty(sSourceColumnCellsPath, aNewDragColumnCells);
|
|
1781
1776
|
oModel.setProperty(sTargetColumnCellsPath, aNewDropColumnCells);
|
|
@@ -1790,11 +1785,11 @@ sap.ui.define([
|
|
|
1790
1785
|
* @param {sap.ui.base.Event} oEvent The drop event.
|
|
1791
1786
|
*/
|
|
1792
1787
|
onWidgetOnCellDrop: function (oEvent) {
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1788
|
+
const oDragged = oEvent.getParameter("draggedControl");
|
|
1789
|
+
const oSourceCell = oDragged.getParent().getParent();
|
|
1790
|
+
const oTargetCell = oEvent.getParameter("droppedControl");
|
|
1791
|
+
const iDragPosition = oSourceCell.indexOfAggregation("widgets", oDragged);
|
|
1792
|
+
const iDropPosition = oTargetCell.getBindingContext().getProperty("widgets").length;
|
|
1798
1793
|
|
|
1799
1794
|
this._moveVisualization(oSourceCell, oTargetCell, iDragPosition, iDropPosition);
|
|
1800
1795
|
},
|
|
@@ -1820,16 +1815,16 @@ sap.ui.define([
|
|
|
1820
1815
|
* @param {sap.ui.base.Event} oEvent The drop event.
|
|
1821
1816
|
*/
|
|
1822
1817
|
onGridDrop: function (oEvent) {
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1818
|
+
const oTargetCell = oEvent.getSource();
|
|
1819
|
+
const oDragged = oEvent.getParameter("draggedControl");
|
|
1820
|
+
const oDropped = oEvent.getParameter("droppedControl");
|
|
1821
|
+
const sInsertPosition = oEvent.getParameter("dropPosition");
|
|
1822
|
+
const oSourceCell = oDragged.getParent().getParent();
|
|
1828
1823
|
|
|
1829
|
-
|
|
1830
|
-
|
|
1824
|
+
const iDragPosition = oSourceCell.indexOfAggregation("widgets", oDragged);
|
|
1825
|
+
let iDropPosition = oTargetCell.indexOfAggregation("widgets", oDropped);
|
|
1831
1826
|
|
|
1832
|
-
|
|
1827
|
+
const bSameContainer = oTargetCell.getId() === oSourceCell.getId();
|
|
1833
1828
|
|
|
1834
1829
|
// Increase the drop position if the dragged element is moved to the right.
|
|
1835
1830
|
if (sInsertPosition === "After") {
|
|
@@ -1863,19 +1858,19 @@ sap.ui.define([
|
|
|
1863
1858
|
* @private
|
|
1864
1859
|
*/
|
|
1865
1860
|
_moveVisualization: function (oSourceCell, oTargetCell, iDragPosition, iDropPosition) {
|
|
1866
|
-
|
|
1861
|
+
const oModel = this.getView().getModel();
|
|
1867
1862
|
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1863
|
+
const sDragContainerWidgetsPath = `${oSourceCell.getBindingContext().getPath()}/widgets`;
|
|
1864
|
+
const sDropContainerWidgetsPath = `${oTargetCell.getBindingContext().getPath()}/widgets`;
|
|
1865
|
+
const bSameCell = sDragContainerWidgetsPath === sDropContainerWidgetsPath;
|
|
1871
1866
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1867
|
+
const aDragContainerWidgets = oModel.getProperty(sDragContainerWidgetsPath);
|
|
1868
|
+
let aDropContainerWidgets = oModel.getProperty(sDropContainerWidgetsPath);
|
|
1874
1869
|
|
|
1875
|
-
|
|
1870
|
+
const oDraggedObject = aDragContainerWidgets[iDragPosition];
|
|
1876
1871
|
|
|
1877
1872
|
// Filter the dragged item from the source array instead of splicing to avoid mutation.
|
|
1878
|
-
|
|
1873
|
+
const aNewDragContainerWidgets = aDragContainerWidgets.filter((oWidget, iIndex) => {
|
|
1879
1874
|
return iIndex !== iDragPosition;
|
|
1880
1875
|
});
|
|
1881
1876
|
|
|
@@ -1885,7 +1880,7 @@ sap.ui.define([
|
|
|
1885
1880
|
}
|
|
1886
1881
|
|
|
1887
1882
|
// Insert the dragged object into a new target array to avoid mutation.
|
|
1888
|
-
|
|
1883
|
+
const aNewDropContainerWidgets = [aDropContainerWidgets.slice(0, iDropPosition), oDraggedObject, aDropContainerWidgets.slice(iDropPosition)].flat();
|
|
1889
1884
|
|
|
1890
1885
|
oModel.setProperty(sDragContainerWidgetsPath, aNewDragContainerWidgets);
|
|
1891
1886
|
oModel.setProperty(sDropContainerWidgetsPath, aNewDropContainerWidgets);
|
|
@@ -1901,11 +1896,11 @@ sap.ui.define([
|
|
|
1901
1896
|
* @returns {boolean} The result indicating if tileMode is active.
|
|
1902
1897
|
*/
|
|
1903
1898
|
tileMode: function (aWidgets) {
|
|
1904
|
-
|
|
1905
|
-
|
|
1899
|
+
const oModel = this.getView().getModel();
|
|
1900
|
+
let oUsedViz;
|
|
1906
1901
|
|
|
1907
|
-
return !!aWidgets && (aWidgets.length > 1 || !aWidgets.some(
|
|
1908
|
-
oUsedViz = oModel.getProperty(
|
|
1902
|
+
return !!aWidgets && (aWidgets.length > 1 || !aWidgets.some((oWidget) => {
|
|
1903
|
+
oUsedViz = oModel.getProperty(`/data/usedVisualizations/${ObjectPath.get("visualization.id", oWidget)}`);
|
|
1909
1904
|
return ObjectPath.get("type", oUsedViz) === "sap.card";
|
|
1910
1905
|
}));
|
|
1911
1906
|
},
|
|
@@ -1932,11 +1927,11 @@ sap.ui.define([
|
|
|
1932
1927
|
* @private
|
|
1933
1928
|
*/
|
|
1934
1929
|
_updateModelWithColumnWidths: function (oRow, iLeftColumnIndex, iRightColumnIndex, iNewLeftColumnWidth, iNewRightColumnWidth) {
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1930
|
+
const oModel = this.getView().getModel();
|
|
1931
|
+
const oRowBindingContext = oRow.getBindingContext();
|
|
1932
|
+
const sRowBindingContextPath = oRowBindingContext.getPath();
|
|
1933
|
+
const sLeftColumnPath = `${sRowBindingContextPath}/columns/${iLeftColumnIndex}/descriptor/value/columnWidth`;
|
|
1934
|
+
const sRightColumnPath = `${sRowBindingContextPath}/columns/${iRightColumnIndex}/descriptor/value/columnWidth`;
|
|
1940
1935
|
oModel.setProperty(sLeftColumnPath, iNewLeftColumnWidth);
|
|
1941
1936
|
oModel.setProperty(sRightColumnPath, iNewRightColumnWidth);
|
|
1942
1937
|
},
|
|
@@ -1972,7 +1967,7 @@ sap.ui.define([
|
|
|
1972
1967
|
* @private
|
|
1973
1968
|
*/
|
|
1974
1969
|
_calculateColWidths: function (aColumns, iColumnIndex, iTotalColumns) {
|
|
1975
|
-
|
|
1970
|
+
const oColumn = aColumns[iColumnIndex];
|
|
1976
1971
|
|
|
1977
1972
|
if (this._getColumnWidth(oColumn) - STEP_SIZE >= MIN_GRID_COLUMN_WIDTH) {
|
|
1978
1973
|
this._setColumnWidth(oColumn, this._getColumnWidth(oColumn) - STEP_SIZE);
|
|
@@ -1980,7 +1975,7 @@ sap.ui.define([
|
|
|
1980
1975
|
}
|
|
1981
1976
|
|
|
1982
1977
|
if (iTotalColumns > MAX_GRID_COLUMN_WIDTH) {
|
|
1983
|
-
|
|
1978
|
+
const nextIndex = iColumnIndex - 1 >= 0 ? iColumnIndex - 1 : aColumns.length - 1;
|
|
1984
1979
|
this._calculateColWidths(aColumns, nextIndex, iTotalColumns);
|
|
1985
1980
|
}
|
|
1986
1981
|
|
|
@@ -2040,12 +2035,12 @@ sap.ui.define([
|
|
|
2040
2035
|
this.oHost._setContainer(this.getOwnerComponent().getUshellContainer());
|
|
2041
2036
|
// create a property binding for navigationDisabled to forward to host if a model is present.
|
|
2042
2037
|
if (this.oModel) {
|
|
2043
|
-
|
|
2038
|
+
const oNavDisabledBinding = this.oModel.bindProperty("/navigationDisabled");
|
|
2044
2039
|
this.oHost._setNavigationDisabled(oNavDisabledBinding.getValue());
|
|
2045
2040
|
// listen to changes on navigationDisabled and propagate to host
|
|
2046
|
-
oNavDisabledBinding.attachChange(
|
|
2041
|
+
oNavDisabledBinding.attachChange((oEvent) => {
|
|
2047
2042
|
this.oHost._setNavigationDisabled(oEvent.getSource().getValue());
|
|
2048
|
-
}
|
|
2043
|
+
});
|
|
2049
2044
|
}
|
|
2050
2045
|
}
|
|
2051
2046
|
},
|
|
@@ -2085,26 +2080,26 @@ sap.ui.define([
|
|
|
2085
2080
|
*/
|
|
2086
2081
|
_generateUniqueId: function (aExistingIds) {
|
|
2087
2082
|
// make a copy to not change the passed array.
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2083
|
+
let aIds = (aExistingIds || []).concat([]);
|
|
2084
|
+
const oWorkPage = this.oModel.getProperty("/data/workPage");
|
|
2085
|
+
const fnCollectIds = this._collectIds.bind(this);
|
|
2091
2086
|
|
|
2092
2087
|
aIds = aIds.concat(fnCollectIds(oWorkPage));
|
|
2093
2088
|
|
|
2094
|
-
(oWorkPage.rows || []).forEach(
|
|
2089
|
+
(oWorkPage.rows || []).forEach((oRow) => {
|
|
2095
2090
|
aIds = aIds.concat(fnCollectIds(oRow));
|
|
2096
|
-
(oRow.columns || []).forEach(
|
|
2091
|
+
(oRow.columns || []).forEach((oColumn) => {
|
|
2097
2092
|
aIds = aIds.concat(fnCollectIds(oColumn));
|
|
2098
|
-
(oColumn.cells || []).forEach(
|
|
2093
|
+
(oColumn.cells || []).forEach((oCell) => {
|
|
2099
2094
|
aIds = aIds.concat(fnCollectIds(oCell));
|
|
2100
|
-
(oCell.widgets || []).forEach(
|
|
2095
|
+
(oCell.widgets || []).forEach((oWidget) => {
|
|
2101
2096
|
aIds = aIds.concat(fnCollectIds(oWidget));
|
|
2102
2097
|
});
|
|
2103
2098
|
});
|
|
2104
2099
|
});
|
|
2105
2100
|
});
|
|
2106
2101
|
|
|
2107
|
-
aIds = aIds.filter(
|
|
2102
|
+
aIds = aIds.filter((sId) => {
|
|
2108
2103
|
return !!sId;
|
|
2109
2104
|
});
|
|
2110
2105
|
|
|
@@ -2120,10 +2115,10 @@ sap.ui.define([
|
|
|
2120
2115
|
* @since 1.116.0
|
|
2121
2116
|
*/
|
|
2122
2117
|
_collectIds: function (oEntity) {
|
|
2123
|
-
|
|
2124
|
-
|
|
2118
|
+
const aIds = [oEntity.id];
|
|
2119
|
+
const aSettings = oEntity.configurations || [];
|
|
2125
2120
|
|
|
2126
|
-
|
|
2121
|
+
const aConfigIds = aSettings.map((oConfig) => {
|
|
2127
2122
|
return oConfig.id;
|
|
2128
2123
|
});
|
|
2129
2124
|
|