@sapui5/sap.ushell 1.138.1 → 1.139.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +14 -10
- package/src/main/js/sap/ushell/ApplicationType/urlTemplateResolution.js +0 -9
- 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 +6 -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 +114 -91
- 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 +74 -17
- 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 +17 -21
- 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 +4 -4
- 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 +69 -24
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +42 -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 +24 -10
- 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 +14 -4
- 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 +111 -107
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Button.js +215 -137
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Label.js +68 -70
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItem.js +81 -80
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemBase.js +40 -39
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemGroup.js +152 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Menu.js +178 -120
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +186 -146
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +517 -360
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationList.js +128 -79
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListGroupItem.js +76 -75
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItem.js +119 -99
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItemBase.js +48 -46
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js +162 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItem.js +74 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItemGroup.js +35 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchMessageArea.js +52 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchScope.js +54 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBar.js +373 -209
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarBranding.js +77 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarItem.js +81 -64
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSearch.js +156 -0
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSpacer.js +42 -41
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenu.js +190 -137
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuAccount.js +76 -75
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuItem.js +35 -34
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +1706 -1307
- package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +3011 -2372
- 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 +25 -17
- package/src/main/js/sap/ushell/renderer/NavContainer.js +6 -0
- package/src/main/js/sap/ushell/renderer/Renderer.js +19 -7
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +10 -21
- 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 +27 -4
- 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 +10 -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 +2 -1
- 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/Avatar.js +86 -19
- package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +23 -245
- package/src/main/js/sap/ushell/thirdparty/Button.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/Button2.js +100 -28
- package/src/main/js/sap/ushell/thirdparty/FocusableElements.js +10 -0
- package/src/main/js/sap/ushell/thirdparty/Icon.js +37 -20
- package/src/main/js/sap/ushell/thirdparty/Icons.js +151 -111
- package/src/main/js/sap/ushell/thirdparty/Label.js +6 -6
- package/src/main/js/sap/ushell/thirdparty/Link.js +14 -13
- package/src/main/js/sap/ushell/thirdparty/List.js +76 -549
- package/src/main/js/sap/ushell/thirdparty/ListBoxItemGroupTemplate.js +14 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemAdditionalText.css.js +10 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemBase.js +251 -0
- package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +1685 -91
- package/src/main/js/sap/ushell/thirdparty/ListItemGroup.js +637 -0
- package/src/main/js/sap/ushell/thirdparty/Menu.js +78 -90
- package/src/main/js/sap/ushell/thirdparty/MenuItem.js +1 -1
- package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +391 -49
- package/src/main/js/sap/ushell/thirdparty/NotificationList.js +10 -10
- package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +21 -21
- package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +520 -517
- package/src/main/js/sap/ushell/thirdparty/NotificationListItemBase.js +6 -6
- package/src/main/js/sap/ushell/thirdparty/ResponsivePopover.js +2306 -0
- package/src/main/js/sap/ushell/thirdparty/SearchItem.js +128 -0
- package/src/main/js/sap/ushell/thirdparty/SearchItemGroup.js +44 -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 +226 -185
- 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 +3380 -0
- package/src/main/js/sap/ushell/thirdparty/Tag.js +16 -15
- package/src/main/js/sap/ushell/thirdparty/Text.js +10 -10
- package/src/main/js/sap/ushell/thirdparty/Title.js +167 -0
- package/src/main/js/sap/ushell/thirdparty/UserMenu.js +60 -59
- 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/WrappingType.js +24 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/InputSuggestions.js +397 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +8 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT.js +202 -178
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT2.js +145 -121
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons.js +2 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons2.js +2 -1
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +183 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +184 -19
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +185 -20
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +33 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +174 -672
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +837 -564
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en4.js +602 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +174 -672
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +837 -564
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd4.js +596 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +174 -672
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +837 -567
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi4.js +602 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +3 -174
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +174 -672
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +837 -564
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc4.js +596 -0
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +185 -20
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +33 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +185 -20
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +34 -10
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +183 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +184 -19
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +33 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +186 -21
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +35 -11
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +33 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +183 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +184 -19
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +33 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +183 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +183 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +33 -9
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +183 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +185 -20
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +183 -18
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +31 -7
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +182 -17
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +32 -8
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +184 -19
- package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +31 -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 +157 -149
- package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +18 -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 +16 -36
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +40 -4
- package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css2.js +8 -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/ui5/webcomponents-icons/AllIcons.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-business-suite/AllIcons.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-tnt/AllIcons.js +2 -2
- package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +96 -79
- package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +14 -14
- package/src/main/js/sap/ushell/thirdparty/webcomponents.js +29 -29
- 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/ShellAppTitle.js +1 -0
- 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
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
"sap/ushell/utils/UrlParsing",
|
|
18
18
|
"sap/ushell/services/CrossApplicationNavigation"
|
|
19
19
|
// "sap/ushell/components/tiles/utils" // do not migrate
|
|
20
|
-
],
|
|
20
|
+
], (
|
|
21
21
|
FilterOperator,
|
|
22
22
|
odata4analytics,
|
|
23
23
|
NumberFormat,
|
|
@@ -28,20 +28,20 @@ sap.ui.define([
|
|
|
28
28
|
UrlParsing,
|
|
29
29
|
oCrossAppNavigator
|
|
30
30
|
// utils // do not migrate
|
|
31
|
-
) {
|
|
31
|
+
) => {
|
|
32
32
|
"use strict";
|
|
33
33
|
|
|
34
34
|
// shortcut for sap.ui.model.analytics.odata4analytics.ParameterizationRequest
|
|
35
|
-
|
|
35
|
+
const ParameterizationRequest = odata4analytics.ParameterizationRequest;
|
|
36
36
|
|
|
37
37
|
// shortcut for sap.ui.model.analytics.odata4analytics.QueryResultRequest
|
|
38
|
-
|
|
38
|
+
const QueryResultRequest = odata4analytics.QueryResultRequest;
|
|
39
39
|
|
|
40
40
|
// shortcut for sap.ui.model.analytics.odata4analytics.Model.ReferenceByModel
|
|
41
|
-
|
|
41
|
+
const ReferenceByModel = odata4analytics.Model.ReferenceByModel;
|
|
42
42
|
|
|
43
43
|
// shortcut for sap.ui.model.analytics.odata4analytics.Model
|
|
44
|
-
|
|
44
|
+
const Model = odata4analytics.Model;
|
|
45
45
|
|
|
46
46
|
/* global oMeasure */
|
|
47
47
|
|
|
@@ -53,16 +53,16 @@ sap.ui.define([
|
|
|
53
53
|
sap.ushell.components.tiles.indicatorTileUtils = sap.ushell.components.tiles.indicatorTileUtils || {};
|
|
54
54
|
sap.ushell.components.tiles.indicatorTileUtils.util = sap.ushell.components.tiles.indicatorTileUtils.util || {};
|
|
55
55
|
sap.ushell.components.tiles.indicatorTileUtils.util = (function (global, $) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
const cache = {};
|
|
57
|
+
const timeUnitMap = {
|
|
58
|
+
ANN: "years",
|
|
59
|
+
WEE: "weeks",
|
|
60
|
+
DAY: "days",
|
|
61
|
+
HUR: "hours",
|
|
62
|
+
MIN: "minutes"
|
|
63
|
+
};
|
|
64
|
+
const scheduledJobMap = {};
|
|
65
|
+
const dataCallDualTileMap = {};
|
|
66
66
|
|
|
67
67
|
return {
|
|
68
68
|
getScheduledJob: function (key) {
|
|
@@ -94,11 +94,11 @@ sap.ui.define([
|
|
|
94
94
|
Log.info("Hana Adapter --> Add System to Service Url");
|
|
95
95
|
if (sap.ushell && sap.ushell.Container) {
|
|
96
96
|
if (system) {
|
|
97
|
-
sap.ushell.Container.getServiceAsync("URLParsing").then(
|
|
97
|
+
sap.ushell.Container.getServiceAsync("URLParsing").then((oURLParsing) => {
|
|
98
98
|
sap.ui.model.odata.ODataUtils.setOrigin(url, { alias: system });
|
|
99
99
|
});
|
|
100
100
|
} else {
|
|
101
|
-
sap.ushell.Container.getServiceAsync("URLParsing").then(
|
|
101
|
+
sap.ushell.Container.getServiceAsync("URLParsing").then((oURLParsing) => {
|
|
102
102
|
sap.ui.model.odata.ODataUtils.setOrigin(url);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -108,28 +108,28 @@ sap.ui.define([
|
|
|
108
108
|
getODataModelByServiceUri: function (sServiceUri) {
|
|
109
109
|
sServiceUri = this.addSystemToServiceUrl(sServiceUri);
|
|
110
110
|
if (!cache[sServiceUri]) {
|
|
111
|
-
|
|
111
|
+
const oModel = new ODataModel(sServiceUri, { loadMetadataAsync: true, json: true });
|
|
112
112
|
cache[sServiceUri] = oModel;
|
|
113
113
|
}
|
|
114
114
|
return cache[sServiceUri];
|
|
115
115
|
},
|
|
116
116
|
|
|
117
117
|
getEdmType: function (sUri, propertyName) {
|
|
118
|
-
|
|
118
|
+
let oDataModel = null;
|
|
119
119
|
if (sUri instanceof ODataModel) {
|
|
120
120
|
oDataModel = sUri;
|
|
121
121
|
} else {
|
|
122
122
|
oDataModel = this.getODataModelByServiceUri(sUri);
|
|
123
123
|
}
|
|
124
124
|
if (oDataModel && oDataModel.getServiceMetadata()) {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
const serviceMetaData = oDataModel.getServiceMetadata();
|
|
126
|
+
const entitySets = serviceMetaData.dataServices.schema[0].entityType;
|
|
127
127
|
if (entitySets) {
|
|
128
|
-
for (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
for (
|
|
132
|
-
|
|
128
|
+
for (let i = 0; i < entitySets.length; i++) {
|
|
129
|
+
const entity = entitySets[i];
|
|
130
|
+
const properties = entity.property;
|
|
131
|
+
for (let j = 0; j < properties.length; j++) {
|
|
132
|
+
const property = properties[j];
|
|
133
133
|
if (property.name == propertyName) {
|
|
134
134
|
return property.type;
|
|
135
135
|
}
|
|
@@ -140,7 +140,7 @@ sap.ui.define([
|
|
|
140
140
|
},
|
|
141
141
|
|
|
142
142
|
getMillisecond: function (time, unit) {
|
|
143
|
-
|
|
143
|
+
let returnTime;
|
|
144
144
|
switch (unit) {
|
|
145
145
|
case "seconds":
|
|
146
146
|
returnTime = time * 1000;
|
|
@@ -168,31 +168,31 @@ sap.ui.define([
|
|
|
168
168
|
},
|
|
169
169
|
|
|
170
170
|
getUTCDate: function () {
|
|
171
|
-
|
|
171
|
+
const now = new Date();
|
|
172
172
|
return now;
|
|
173
173
|
},
|
|
174
174
|
|
|
175
175
|
isCacheValid: function (chipId, chipLastUpdatedOn, cacheMaxAge, cacheMaxAgeUnit, tilePressed) {
|
|
176
|
-
|
|
176
|
+
const cachedValue = sap.ushell.components.tiles.indicatorTileUtils.cache.getKpivalueById(chipId);
|
|
177
177
|
if (!cachedValue) {
|
|
178
178
|
return false;
|
|
179
179
|
} else if (!(cacheMaxAge && Number(cacheMaxAge))) {
|
|
180
180
|
return true;
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
const cacheAge = this.getMillisecond(cacheMaxAge, timeUnitMap[cacheMaxAgeUnit]);
|
|
183
|
+
let cachedTime;
|
|
184
184
|
if (cachedValue.CachedTime instanceof Date) {
|
|
185
185
|
cachedTime = cachedValue.CachedTime && cachedValue.CachedTime.getTime();
|
|
186
186
|
} else {
|
|
187
187
|
cachedTime = cachedValue.CachedTime && parseInt(cachedValue.CachedTime.substr(6), 10); // 10 redix - http://eslint.org/docs/rules/radix
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
const curDate = this.getUTCDate();
|
|
190
190
|
return (cachedTime >= chipLastUpdatedOn && cacheAge >= (curDate - cachedTime) && !tilePressed);
|
|
191
191
|
},
|
|
192
192
|
|
|
193
193
|
getMantissaLength: function (num) {
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
const sNum = num.toString();
|
|
195
|
+
let initPos = 0;
|
|
196
196
|
if (num < 0) {
|
|
197
197
|
initPos = 1;
|
|
198
198
|
}
|
|
@@ -210,17 +210,17 @@ sap.ui.define([
|
|
|
210
210
|
if (isACurrencyMeasure) {
|
|
211
211
|
return NumberFormat.getCurrencyInstance({ style: "short", showMeasure: false }).format(num, currencyCode);
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
let sD = 2;
|
|
214
|
+
const oFormatOptions = {
|
|
215
215
|
style: "short"
|
|
216
216
|
};
|
|
217
|
-
|
|
217
|
+
let fNum;
|
|
218
218
|
if (!(oDecimal == -1 || oDecimal == null)) {
|
|
219
219
|
oFormatOptions.shortDecimals = Number(oDecimal);
|
|
220
220
|
oFormatOptions.minFractionDigits = Number(oDecimal);
|
|
221
221
|
oFormatOptions.maxFractionDigits = Number(oDecimal);
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
let valFormatter = NumberFormat.getInstance(oFormatOptions);
|
|
224
224
|
if (oScale == -2) {
|
|
225
225
|
if (num > 9999) {
|
|
226
226
|
fNum = "????";
|
|
@@ -235,7 +235,7 @@ sap.ui.define([
|
|
|
235
235
|
fNum = valFormatter.format(fNum);
|
|
236
236
|
}
|
|
237
237
|
} else if (oDecimal == -1 || oDecimal == null) {
|
|
238
|
-
|
|
238
|
+
const mantissaLength = this.getMantissaLength(num);
|
|
239
239
|
if (!(mantissaLength % 3)) {
|
|
240
240
|
sD = 1;
|
|
241
241
|
}
|
|
@@ -263,7 +263,7 @@ sap.ui.define([
|
|
|
263
263
|
},
|
|
264
264
|
|
|
265
265
|
getTileTitleSubtitle: function (oChipApi) {
|
|
266
|
-
|
|
266
|
+
const titleObj = {};
|
|
267
267
|
if (oChipApi.bag && oChipApi.bag.getBagIds() && oChipApi.bag.getBagIds().length) {
|
|
268
268
|
titleObj.title = oChipApi.bag.getBag("sb_tileProperties").getText("title") ||
|
|
269
269
|
oChipApi.bag.getBag("sb_tileProperties").getProperty("title") ||
|
|
@@ -280,29 +280,29 @@ sap.ui.define([
|
|
|
280
280
|
|
|
281
281
|
// always invoke this function in context of individual tile
|
|
282
282
|
scheduleFetchDataJob: function (isVisible) {
|
|
283
|
-
|
|
283
|
+
let config;
|
|
284
284
|
if (this.getView().getViewName().indexOf("DualTile") !== -1) {
|
|
285
285
|
config = this.oKpiTileView.oConfig;
|
|
286
286
|
} else {
|
|
287
287
|
config = this.oConfig;
|
|
288
288
|
}
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
const key = `${config.TILE_PROPERTIES.id}data`;
|
|
290
|
+
let runningJob = sap.ushell.components.tiles.indicatorTileUtils.util.getScheduledJob(key);
|
|
291
291
|
if (runningJob) {
|
|
292
292
|
clearTimeout(runningJob);
|
|
293
293
|
runningJob = undefined;
|
|
294
294
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
295
|
+
const timeUnitMap = sap.ushell.components.tiles.indicatorTileUtils.util.getTimeUnitMap();
|
|
296
|
+
const cachingTime = sap.ushell.components.tiles.indicatorTileUtils.util.getCachingTime(config);
|
|
297
|
+
const cachingTimeUnit = sap.ushell.components.tiles.indicatorTileUtils.util.getCachingTimeUnit(config);
|
|
298
|
+
const cacheMaxAge = sap.ushell.components.tiles.indicatorTileUtils.util.getMillisecond(cachingTime, timeUnitMap[cachingTimeUnit]);
|
|
299
|
+
let tempCacheTime;
|
|
300
300
|
if (this.cacheTime instanceof Date) {
|
|
301
301
|
tempCacheTime = this.cacheTime;
|
|
302
302
|
} else {
|
|
303
303
|
tempCacheTime = new Date(parseInt(this.cacheTime.substr(6), 10));
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
let timeOut = cacheMaxAge - (sap.ushell.components.tiles.indicatorTileUtils.util.getUTCDate() - tempCacheTime);
|
|
306
306
|
if (timeOut <= 0) {
|
|
307
307
|
timeOut = 0;
|
|
308
308
|
} else if (timeOut > 2147483646) {
|
|
@@ -322,9 +322,9 @@ sap.ui.define([
|
|
|
322
322
|
|
|
323
323
|
// always invoke this function in context of individual tile
|
|
324
324
|
scheduleTimeStampJob: function () {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
const key = `${this.oConfig.TILE_PROPERTIES.id}time`;
|
|
326
|
+
let runningJob = sap.ushell.components.tiles.indicatorTileUtils.util.getScheduledJob(key);
|
|
327
|
+
let tempCacheTime;
|
|
328
328
|
if (runningJob) {
|
|
329
329
|
clearTimeout(runningJob);
|
|
330
330
|
runningJob = undefined;
|
|
@@ -334,14 +334,14 @@ sap.ui.define([
|
|
|
334
334
|
} else {
|
|
335
335
|
tempCacheTime = new Date(parseInt(this.cacheTime.substr(6), 10), 13);
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
const timeOut = sap.ushell.components.tiles.indicatorTileUtils.util.getTimeDifference(sap.ushell.components.tiles.indicatorTileUtils.util.getUTCDate() - tempCacheTime);
|
|
338
338
|
runningJob = setTimeout(this.setTimeStamp.bind(this, this.cacheTime), timeOut.timer);
|
|
339
339
|
sap.ushell.components.tiles.indicatorTileUtils.util.setScheduledJob(key, runningJob);
|
|
340
340
|
this.updateTimeStampjobScheduled = true;
|
|
341
341
|
},
|
|
342
342
|
|
|
343
343
|
getBoolValue: function (bVal) {
|
|
344
|
-
|
|
344
|
+
let bReturnVal = false;
|
|
345
345
|
if (typeof bVal === "boolean" && bVal) {
|
|
346
346
|
bReturnVal = true;
|
|
347
347
|
}
|
|
@@ -377,11 +377,11 @@ sap.ui.define([
|
|
|
377
377
|
},
|
|
378
378
|
|
|
379
379
|
getTimeDifference: function (time) {
|
|
380
|
-
|
|
380
|
+
const retObject = {};
|
|
381
381
|
if (time) {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
382
|
+
const minutes = this.getMinutes(time);
|
|
383
|
+
const hours = this.getHours(time);
|
|
384
|
+
const days = this.getDays(time);
|
|
385
385
|
if (minutes < 5) {
|
|
386
386
|
retObject.time = 0;
|
|
387
387
|
retObject.unit = "minutes";
|
|
@@ -434,9 +434,9 @@ sap.ui.define([
|
|
|
434
434
|
},
|
|
435
435
|
|
|
436
436
|
getFrontendCacheQuery: function (chipId, userId, oPageChips, oTileApi) {
|
|
437
|
-
|
|
437
|
+
let cacheODataModel;
|
|
438
438
|
try {
|
|
439
|
-
|
|
439
|
+
let uri = oTileApi.url.addSystemToServiceUrl("/sap/opu/odata/SSB/SMART_BUSINESS_RUNTIME_SRV");
|
|
440
440
|
uri = sap.ushell.components.tiles.indicatorTileUtils.util.cacheBustingMechanism(uri);
|
|
441
441
|
cacheODataModel = this.getODataModelByServiceUri(uri);
|
|
442
442
|
uri = "/CacheParameters(P_CacheType=1)/Results";
|
|
@@ -451,7 +451,7 @@ sap.ui.define([
|
|
|
451
451
|
},
|
|
452
452
|
|
|
453
453
|
isDualTile: function (oConfig) {
|
|
454
|
-
|
|
454
|
+
const tileType = oConfig && oConfig.TILE_PROPERTIES && oConfig.TILE_PROPERTIES.tileType;
|
|
455
455
|
if (tileType.indexOf("DT-") == -1) {
|
|
456
456
|
return false;
|
|
457
457
|
}
|
|
@@ -459,19 +459,19 @@ sap.ui.define([
|
|
|
459
459
|
},
|
|
460
460
|
|
|
461
461
|
writeFrontendCacheByChipAndUserId: function (oTileApi, chipId, data, bUpdate, callback) {
|
|
462
|
-
|
|
462
|
+
const success = function (data) {
|
|
463
463
|
Log.info("cache write successFully");
|
|
464
464
|
callback(data);
|
|
465
465
|
};
|
|
466
|
-
|
|
466
|
+
const error = function () {
|
|
467
467
|
Log.error("cache update failed");
|
|
468
468
|
callback(null);
|
|
469
469
|
};
|
|
470
470
|
try {
|
|
471
|
-
|
|
471
|
+
let uri = oTileApi.url.addSystemToServiceUrl("/sap/opu/odata/SSB/SMART_BUSINESS_RUNTIME_SRV/");
|
|
472
472
|
uri = sap.ushell.components.tiles.indicatorTileUtils.util.cacheBustingMechanism(uri);
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
const cacheODataModel = this.getODataModelByServiceUri(uri);
|
|
474
|
+
const entity = "/CacheData";
|
|
475
475
|
cacheODataModel.create(entity, data, {
|
|
476
476
|
async: true,
|
|
477
477
|
success: success,
|
|
@@ -483,29 +483,28 @@ sap.ui.define([
|
|
|
483
483
|
},
|
|
484
484
|
|
|
485
485
|
getKpiChipsOnPage: function (chipId, callback) {
|
|
486
|
-
|
|
487
|
-
sap.ushell.Container.getServiceAsync("FlpLaunchPage").then(
|
|
488
|
-
launchPage.getGroups().done(
|
|
486
|
+
const chipIdCollection = [];
|
|
487
|
+
sap.ushell.Container.getServiceAsync("FlpLaunchPage").then((launchPage) => {
|
|
488
|
+
launchPage.getGroups().done((oGroups) => {
|
|
489
489
|
if (oGroups && oGroups instanceof Array && oGroups.length) {
|
|
490
490
|
Log.info("Group Chip fetch");
|
|
491
491
|
}
|
|
492
492
|
callback(chipId, chipIdCollection);
|
|
493
493
|
});
|
|
494
494
|
});
|
|
495
|
-
|
|
496
495
|
},
|
|
497
496
|
|
|
498
497
|
getFrontendCache: function (oConfig, oTileApi) {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
498
|
+
const that = this;
|
|
499
|
+
let oldDeferred = sap.ushell.components.tiles.indicatorTileUtils.cache.getFrontEndCacheDeferredObject(oTileApi.url.getApplicationSystem());
|
|
500
|
+
let deferred;
|
|
502
501
|
if (oldDeferred) {
|
|
503
502
|
deferred = oldDeferred;
|
|
504
503
|
} else {
|
|
505
504
|
deferred = jQuery.Deferred();
|
|
506
505
|
}
|
|
507
|
-
|
|
508
|
-
|
|
506
|
+
const chipId = oConfig && oConfig.TILE_PROPERTIES && oConfig.TILE_PROPERTIES.id;
|
|
507
|
+
const cachedKpiValue = sap.ushell.components.tiles.indicatorTileUtils.cache.getKpivalueById(chipId);
|
|
509
508
|
if (cachedKpiValue) {
|
|
510
509
|
oldDeferred.resolve(true);
|
|
511
510
|
} else if (oldDeferred) {
|
|
@@ -513,18 +512,18 @@ sap.ui.define([
|
|
|
513
512
|
} else {
|
|
514
513
|
sap.ushell.components.tiles.indicatorTileUtils.cache.setFrontEndCacheDefferedObject(oTileApi.url.getApplicationSystem(), deferred);
|
|
515
514
|
oldDeferred = deferred;
|
|
516
|
-
this.getKpiChipsOnPage(chipId,
|
|
515
|
+
this.getKpiChipsOnPage(chipId, (chipId, oPageChipCollection) => {
|
|
517
516
|
if (oPageChipCollection) {
|
|
518
|
-
|
|
517
|
+
const frontendCacheQuery = that.getFrontendCacheQuery(oPageChipCollection,
|
|
519
518
|
sap.ushell.Container.getUser().getId(), oPageChipCollection, oTileApi);
|
|
520
519
|
if (frontendCacheQuery) {
|
|
521
520
|
// attachMetadataLoaded raja
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
frontendModel.read(cacheQueriUri, null, null, true,
|
|
521
|
+
const frontendModel = frontendCacheQuery.oModel;
|
|
522
|
+
const cacheQueriUri = frontendCacheQuery.uri;
|
|
523
|
+
let isCached = false;
|
|
524
|
+
frontendModel.read(cacheQueriUri, null, null, true, (data) => {
|
|
526
525
|
if (data && data.results && data.results instanceof Array && data.results.length) {
|
|
527
|
-
jQuery.each(data.results,
|
|
526
|
+
jQuery.each(data.results, (index, cachedData) => {
|
|
528
527
|
sap.ushell.components.tiles.indicatorTileUtils.cache.setKpivalueById(cachedData.ChipId, cachedData);
|
|
529
528
|
});
|
|
530
529
|
}
|
|
@@ -532,9 +531,9 @@ sap.ui.define([
|
|
|
532
531
|
isCached = true;
|
|
533
532
|
}
|
|
534
533
|
oldDeferred.resolve(isCached);
|
|
535
|
-
},
|
|
534
|
+
}, (eObject) => {
|
|
536
535
|
if (eObject && eObject.response) {
|
|
537
|
-
Log.error(eObject.message
|
|
536
|
+
Log.error(`${eObject.message} : ${eObject.request.requestUri}`);
|
|
538
537
|
}
|
|
539
538
|
oldDeferred.reject();
|
|
540
539
|
});
|
|
@@ -550,7 +549,7 @@ sap.ui.define([
|
|
|
550
549
|
},
|
|
551
550
|
|
|
552
551
|
getModelerRuntimeServiceModel: function () {
|
|
553
|
-
|
|
552
|
+
let uri = "/sap/hba/r/sb/core/odata/runtime/SMART_BUSINESS.xsodata";
|
|
554
553
|
uri = sap.ushell.components.tiles.indicatorTileUtils.util.cacheBustingMechanism(uri);
|
|
555
554
|
return this.getODataModelByServiceUri(uri);
|
|
556
555
|
},
|
|
@@ -564,13 +563,13 @@ sap.ui.define([
|
|
|
564
563
|
},
|
|
565
564
|
|
|
566
565
|
prepareFilterStructure: function (filter, addFilters) {
|
|
567
|
-
|
|
566
|
+
const variantData = [];
|
|
568
567
|
if (addFilters) {
|
|
569
568
|
filter = filter.concat(addFilters);
|
|
570
569
|
}
|
|
571
570
|
|
|
572
|
-
for (
|
|
573
|
-
|
|
571
|
+
for (let itr = 0; itr < filter.length; itr++) {
|
|
572
|
+
const pushObj = {};
|
|
574
573
|
pushObj.comparator = filter[itr].OPERATOR;
|
|
575
574
|
pushObj.filterPropertyName = filter[itr].NAME;
|
|
576
575
|
|
|
@@ -590,7 +589,7 @@ sap.ui.define([
|
|
|
590
589
|
getODataModelByServiceUriFromChipAPI: function (sServiceUri, oTileApi) {
|
|
591
590
|
sServiceUri = oTileApi.url.addSystemToServiceUrl(sServiceUri);
|
|
592
591
|
if (!cache[sServiceUri]) {
|
|
593
|
-
|
|
592
|
+
const oModel = new ODataModel(sServiceUri, true);
|
|
594
593
|
cache[sServiceUri] = oModel;
|
|
595
594
|
}
|
|
596
595
|
return cache[sServiceUri];
|
|
@@ -598,15 +597,15 @@ sap.ui.define([
|
|
|
598
597
|
|
|
599
598
|
cacheBustingMechanism: function (sUrl) {
|
|
600
599
|
if (window["sap-ushell-config"].cacheBusting.cacheBusterToken) {
|
|
601
|
-
|
|
602
|
-
sUrl = sUrl
|
|
600
|
+
const cacheBusting = window["sap-ushell-config"].cacheBusting && window["sap-ushell-config"].cacheBusting.cacheBusterToken;
|
|
601
|
+
sUrl = `${sUrl}?_=${cacheBusting}`;
|
|
603
602
|
}
|
|
604
603
|
return sUrl;
|
|
605
604
|
},
|
|
606
605
|
|
|
607
606
|
getRunTimeUri: function (sPlatform) {
|
|
608
|
-
|
|
609
|
-
|
|
607
|
+
let urlWithHANA = "/sap/hba/r/sb/core/odata/runtime/SMART_BUSINESS.xsodata";
|
|
608
|
+
let urlWithoutHANA = "/sap/opu/odata/SSB/SMART_BUSINESS_RUNTIME_SRV";
|
|
610
609
|
if (sPlatform.toUpperCase() == "HANA") {
|
|
611
610
|
if (window["sap-ushell-config"].cacheBusting) {
|
|
612
611
|
urlWithHANA = sap.ushell.components.tiles.indicatorTileUtils.util.cacheBustingMechanism(urlWithHANA);
|
|
@@ -620,11 +619,11 @@ sap.ui.define([
|
|
|
620
619
|
},
|
|
621
620
|
|
|
622
621
|
getFilterFromRunTimeService: function (oConfig, oTileApi, fnS, fnE) {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
622
|
+
const sPlatform = oConfig.TILE_PROPERTIES.sb_metadata;
|
|
623
|
+
const KPI_RUNTIME_ODATA_MODEL = this.getODataModelByServiceUriFromChipAPI(this.getRunTimeUri(sPlatform), oTileApi);
|
|
624
|
+
const filterValue = "ID eq '#EVALUATIONID'".replace("#EVALUATIONID", oConfig.EVALUATION.ID);
|
|
625
|
+
const kpiEvaluationFilterODataReadRef = KPI_RUNTIME_ODATA_MODEL.read("/EVALUATION_FILTERS", null, { $filter: filterValue }, true, function (data) {
|
|
626
|
+
let filters = [];
|
|
628
627
|
if (data.results.length) {
|
|
629
628
|
filters = data.results;
|
|
630
629
|
}
|
|
@@ -634,35 +633,35 @@ sap.ui.define([
|
|
|
634
633
|
},
|
|
635
634
|
|
|
636
635
|
_getOData4AnalyticsObject: function (sUri) {
|
|
637
|
-
|
|
636
|
+
let oModel = null;
|
|
638
637
|
if (sUri instanceof ODataModel) {
|
|
639
638
|
oModel = sUri;
|
|
640
639
|
} else if (typeof sUri === "string") {
|
|
641
640
|
oModel = this.getODataModelByServiceUri(sUri);
|
|
642
641
|
} else {
|
|
643
|
-
throw new Error(
|
|
642
|
+
throw new Error(`Invalid Input to Create ODataModel Object : ${sUri}`);
|
|
644
643
|
}
|
|
645
|
-
|
|
644
|
+
const O4A = new Model(ReferenceByModel(oModel));
|
|
646
645
|
return O4A;
|
|
647
646
|
},
|
|
648
647
|
|
|
649
648
|
findTextPropertyForDimension: function (sUri, entitySet, dimension) {
|
|
650
649
|
try {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
650
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
651
|
+
const queryResult = o4a.findQueryResultByName(entitySet);
|
|
652
|
+
const oDimension = queryResult.findDimensionByName(dimension);
|
|
654
653
|
if (oDimension.getTextProperty()) {
|
|
655
654
|
return oDimension.getTextProperty().name;
|
|
656
655
|
}
|
|
657
656
|
return dimension;
|
|
658
657
|
} catch (e) {
|
|
659
|
-
Log.error(
|
|
658
|
+
Log.error(`Error Fetching Text Property for ${dimension} : ${e.toString()}`);
|
|
660
659
|
}
|
|
661
660
|
},
|
|
662
661
|
|
|
663
662
|
getEvalValueMeasureName: function (oConfig, type, retType) {
|
|
664
|
-
|
|
665
|
-
for (
|
|
663
|
+
const evalValue = oConfig.EVALUATION_VALUES;
|
|
664
|
+
for (let i = 0; i < evalValue.length; i++) {
|
|
666
665
|
if (evalValue[i].TYPE == type) {
|
|
667
666
|
if (retType === "FIXED") {
|
|
668
667
|
return evalValue[i].FIXED;
|
|
@@ -676,7 +675,7 @@ sap.ui.define([
|
|
|
676
675
|
* get coded colorName
|
|
677
676
|
*/
|
|
678
677
|
getSemanticColorName: function (applyColor) {
|
|
679
|
-
|
|
678
|
+
let status = "";
|
|
680
679
|
if (applyColor == "Error") {
|
|
681
680
|
status = "sb.error";
|
|
682
681
|
}
|
|
@@ -697,45 +696,45 @@ sap.ui.define([
|
|
|
697
696
|
* @param
|
|
698
697
|
*/
|
|
699
698
|
setTooltipInTile: function (oControl, tileType, valueObj) {
|
|
700
|
-
|
|
701
|
-
|
|
699
|
+
let toolTip = "";
|
|
700
|
+
const oResourceBundle = sap.ushell.components.tiles.utils.getResourceBundle();
|
|
702
701
|
if (tileType == "NT" || tileType == "DT") {
|
|
703
702
|
if (valueObj.status) {
|
|
704
|
-
toolTip += oResourceBundle.getText("sb.status")
|
|
703
|
+
toolTip += `${oResourceBundle.getText("sb.status")}: ${oResourceBundle.getText(valueObj.status)}\n`;
|
|
705
704
|
}
|
|
706
705
|
if (valueObj.actual) {
|
|
707
|
-
toolTip += oResourceBundle.getText("sb.actual")
|
|
706
|
+
toolTip += `${oResourceBundle.getText("sb.actual")}: ${valueObj.actual}\n`;
|
|
708
707
|
}
|
|
709
708
|
if (valueObj.target) {
|
|
710
|
-
toolTip += oResourceBundle.getText("sb.target")
|
|
709
|
+
toolTip += `${oResourceBundle.getText("sb.target")}: ${valueObj.target}\n`;
|
|
711
710
|
}
|
|
712
711
|
if (valueObj.cH) {
|
|
713
|
-
toolTip += oResourceBundle.getText("sb.ch")
|
|
712
|
+
toolTip += `${oResourceBundle.getText("sb.ch")}: ${valueObj.cH}\n`;
|
|
714
713
|
}
|
|
715
714
|
if (valueObj.wH) {
|
|
716
|
-
toolTip += oResourceBundle.getText("sb.wh")
|
|
715
|
+
toolTip += `${oResourceBundle.getText("sb.wh")}: ${valueObj.wH}\n`;
|
|
717
716
|
}
|
|
718
717
|
if (valueObj.wL) {
|
|
719
|
-
toolTip += oResourceBundle.getText("sb.wl")
|
|
718
|
+
toolTip += `${oResourceBundle.getText("sb.wl")}: ${valueObj.wL}\n`;
|
|
720
719
|
}
|
|
721
720
|
if (valueObj.cL) {
|
|
722
|
-
toolTip += oResourceBundle.getText("sb.cl")
|
|
721
|
+
toolTip += `${oResourceBundle.getText("sb.cl")}: ${valueObj.cL}\n`;
|
|
723
722
|
}
|
|
724
723
|
} if (tileType == "CONT" || tileType == "COMP") {
|
|
725
724
|
if (valueObj.measure && tileType == "CONT") {
|
|
726
725
|
if (valueObj && valueObj.contributionTile.contributionTile && valueObj.contributionTile.contributionTile[1] === "asc") {
|
|
727
|
-
toolTip += oResourceBundle.getText("sb.bottomn")
|
|
726
|
+
toolTip += `${oResourceBundle.getText("sb.bottomn")}: ${valueObj.contributionTile[0]}\n`;
|
|
728
727
|
} else if (valueObj && valueObj.contributionTile.contributionTile && valueObj.contributionTile.contributionTile.length) {
|
|
729
|
-
toolTip += oResourceBundle.getText("sb.topn")
|
|
728
|
+
toolTip += `${oResourceBundle.getText("sb.topn")}: ${valueObj.contributionTile[0]}\n`;
|
|
730
729
|
}
|
|
731
730
|
} if (valueObj.m1 && ((valueObj.v1 == undefined || valueObj.v1 == null) ? false : valueObj.v1.toString()) && valueObj.c1) {
|
|
732
|
-
toolTip += valueObj.m1
|
|
731
|
+
toolTip += `${valueObj.m1}: ${valueObj.v1} ${oResourceBundle.getText(valueObj.c1)}\n`;
|
|
733
732
|
}
|
|
734
733
|
if (valueObj.m2 && ((valueObj.v2 == undefined || valueObj.v2 == null) ? false : valueObj.v2.toString()) && valueObj.c2) {
|
|
735
|
-
toolTip += valueObj.m2
|
|
734
|
+
toolTip += `${valueObj.m2}: ${valueObj.v2} ${oResourceBundle.getText(valueObj.c2)}\n`;
|
|
736
735
|
}
|
|
737
736
|
if (valueObj.m3 && ((valueObj.v3 == undefined || valueObj.v3 == null) ? false : valueObj.v3.toString()) && valueObj.c3) {
|
|
738
|
-
toolTip += valueObj.m3
|
|
737
|
+
toolTip += `${valueObj.m3}: ${valueObj.v3} ${oResourceBundle.getText(valueObj.c3)}\n`;
|
|
739
738
|
}
|
|
740
739
|
}
|
|
741
740
|
if (oControl && oControl.setTooltip) {
|
|
@@ -751,9 +750,9 @@ sap.ui.define([
|
|
|
751
750
|
*/
|
|
752
751
|
_getFormattedTileProperties: function (tileProperties) {
|
|
753
752
|
tileProperties = tileProperties || {};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
for (
|
|
753
|
+
const properties = ["sb_metadata", "sb_navigation", "sb_catalog"];
|
|
754
|
+
let isPlatformPresent = false;
|
|
755
|
+
for (let i = 0; !isPlatformPresent && i < properties.length; i++) {
|
|
757
756
|
isPlatformPresent = isPlatformPresent || new UriParameters(window.location.href).get(properties[i]) || tileProperties[properties[i]];
|
|
758
757
|
}
|
|
759
758
|
tileProperties.sb_metadata = (new UriParameters(window.location.href).get("sb_metadata") || tileProperties.sb_metadata || "HANA").toLowerCase();
|
|
@@ -771,10 +770,10 @@ sap.ui.define([
|
|
|
771
770
|
* @returns {object} Returns call results
|
|
772
771
|
*/
|
|
773
772
|
getEvaluationDetailsFromRunTimeService: function (oEntitySet, sPlatform, oId, callback) {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
KPI_RUNTIME_ODATA_MODEL.read(oEntitySet, null, {
|
|
777
|
-
|
|
773
|
+
const KPI_RUNTIME_ODATA_MODEL = this.getODataModelByServiceUri(this.getRunTimeUri(sPlatform));
|
|
774
|
+
const filterValue = "ID eq '#EVALUATIONID'".replace("#EVALUATIONID", oId);
|
|
775
|
+
KPI_RUNTIME_ODATA_MODEL.read(oEntitySet, null, { $filter: filterValue }, true, function (data) {
|
|
776
|
+
let filters = [];
|
|
778
777
|
if (data.results.length) {
|
|
779
778
|
filters = data.results;
|
|
780
779
|
}
|
|
@@ -784,17 +783,17 @@ sap.ui.define([
|
|
|
784
783
|
|
|
785
784
|
getParsedChip: function (sConfig, bIsPreview, callback) {
|
|
786
785
|
try {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
786
|
+
const parsedChipConfig = {};
|
|
787
|
+
const chipJson = JSON.parse(sConfig);
|
|
788
|
+
const evaluationId = JSON.parse(chipJson.TILE_PROPERTIES).evaluationId || "";
|
|
790
789
|
if (chipJson.TILE_PROPERTIES) {
|
|
791
|
-
|
|
790
|
+
const tileProperties = JSON.parse(chipJson.TILE_PROPERTIES);
|
|
792
791
|
if (tileProperties
|
|
793
792
|
&& (tileProperties.instanceId || tileProperties.catalogId)) {
|
|
794
793
|
return false;
|
|
795
794
|
}
|
|
796
795
|
}
|
|
797
|
-
|
|
796
|
+
const that = this;
|
|
798
797
|
if (chipJson.blankTile) {
|
|
799
798
|
parsedChipConfig.BLANKTILE = chipJson.blankTile;
|
|
800
799
|
}
|
|
@@ -816,7 +815,7 @@ sap.ui.define([
|
|
|
816
815
|
|
|
817
816
|
parsedChipConfig.TILE_PROPERTIES = this._getFormattedTileProperties(JSON.parse(chipJson.TILE_PROPERTIES));
|
|
818
817
|
|
|
819
|
-
|
|
818
|
+
const sPlatform = parsedChipConfig.TILE_PROPERTIES.sb_metadata;
|
|
820
819
|
|
|
821
820
|
if (chipJson.EVALUATION_FILTERS) {
|
|
822
821
|
parsedChipConfig.EVALUATION_FILTERS = JSON.parse(chipJson.EVALUATION_FILTERS);
|
|
@@ -830,7 +829,7 @@ sap.ui.define([
|
|
|
830
829
|
return parsedChipConfig;
|
|
831
830
|
}
|
|
832
831
|
} else if (!bIsPreview) {
|
|
833
|
-
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId,
|
|
832
|
+
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId, (filters) => {
|
|
834
833
|
parsedChipConfig.EVALUATION = filters;
|
|
835
834
|
if (callback) {
|
|
836
835
|
callback(parsedChipConfig);
|
|
@@ -844,7 +843,7 @@ sap.ui.define([
|
|
|
844
843
|
return parsedChipConfig;
|
|
845
844
|
}
|
|
846
845
|
} else if (!bIsPreview) {
|
|
847
|
-
that.getEvaluationDetailsFromRunTimeService("/EVALUATION_VALUES", sPlatform, evaluationId,
|
|
846
|
+
that.getEvaluationDetailsFromRunTimeService("/EVALUATION_VALUES", sPlatform, evaluationId, (filters) => {
|
|
848
847
|
parsedChipConfig.EVALUATION_VALUES = filters;
|
|
849
848
|
if (chipJson.EVALUATION) {
|
|
850
849
|
parsedChipConfig.EVALUATION = JSON.parse(chipJson.EVALUATION);
|
|
@@ -854,7 +853,7 @@ sap.ui.define([
|
|
|
854
853
|
return parsedChipConfig;
|
|
855
854
|
}
|
|
856
855
|
} else {
|
|
857
|
-
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId,
|
|
856
|
+
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId, (filters) => {
|
|
858
857
|
parsedChipConfig.EVALUATION = filters;
|
|
859
858
|
if (callback) {
|
|
860
859
|
callback(parsedChipConfig);
|
|
@@ -876,7 +875,7 @@ sap.ui.define([
|
|
|
876
875
|
return parsedChipConfig;
|
|
877
876
|
}
|
|
878
877
|
} else {
|
|
879
|
-
that.getEvaluationDetailsFromRunTimeService("/EVALUATION_FILTERS", sPlatform, evaluationId,
|
|
878
|
+
that.getEvaluationDetailsFromRunTimeService("/EVALUATION_FILTERS", sPlatform, evaluationId, (filters) => {
|
|
880
879
|
parsedChipConfig.EVALUATION_FILTERS = filters;
|
|
881
880
|
if (chipJson.EVALUATION_VALUES) {
|
|
882
881
|
parsedChipConfig.EVALUATION_VALUES = JSON.parse(chipJson.EVALUATION_VALUES);
|
|
@@ -888,7 +887,7 @@ sap.ui.define([
|
|
|
888
887
|
return parsedChipConfig;
|
|
889
888
|
}
|
|
890
889
|
} else {
|
|
891
|
-
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId,
|
|
890
|
+
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId, (filters) => {
|
|
892
891
|
parsedChipConfig.EVALUATION = filters;
|
|
893
892
|
if (callback) {
|
|
894
893
|
callback(parsedChipConfig);
|
|
@@ -898,7 +897,7 @@ sap.ui.define([
|
|
|
898
897
|
});
|
|
899
898
|
}
|
|
900
899
|
} else {
|
|
901
|
-
that.getEvaluationDetailsFromRunTimeService("/EVALUATION_VALUES", sPlatform, evaluationId,
|
|
900
|
+
that.getEvaluationDetailsFromRunTimeService("/EVALUATION_VALUES", sPlatform, evaluationId, (filters) => {
|
|
902
901
|
parsedChipConfig.EVALUATION_VALUES = filters;
|
|
903
902
|
if (chipJson.EVALUATION) {
|
|
904
903
|
parsedChipConfig.EVALUATION = JSON.parse(chipJson.EVALUATION);
|
|
@@ -908,7 +907,7 @@ sap.ui.define([
|
|
|
908
907
|
return parsedChipConfig;
|
|
909
908
|
}
|
|
910
909
|
} else {
|
|
911
|
-
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId,
|
|
910
|
+
that.getEvaluationDetailsFromRunTimeService("/EVALUATIONS", sPlatform, evaluationId, (filters) => {
|
|
912
911
|
parsedChipConfig.EVALUATION = filters;
|
|
913
912
|
if (callback) {
|
|
914
913
|
callback(parsedChipConfig);
|
|
@@ -933,8 +932,8 @@ sap.ui.define([
|
|
|
933
932
|
* @returns {string} Returns navigation hash
|
|
934
933
|
*/
|
|
935
934
|
getNavigationTarget: function (jConfig, system) {
|
|
936
|
-
|
|
937
|
-
|
|
935
|
+
let each;
|
|
936
|
+
const param = {};
|
|
938
937
|
param.evaluationId = jConfig.EVALUATION.ID;
|
|
939
938
|
param.chipId = jConfig.TILE_PROPERTIES.id;
|
|
940
939
|
if (system) {
|
|
@@ -961,8 +960,8 @@ sap.ui.define([
|
|
|
961
960
|
for (each in jConfig.ADDITIONAL_APP_PARAMETERS) {
|
|
962
961
|
if (jConfig.ADDITIONAL_APP_PARAMETERS.hasOwnProperty(each)) {
|
|
963
962
|
if (jConfig.ADDITIONAL_APP_PARAMETERS[each].constructor == Array) {
|
|
964
|
-
|
|
965
|
-
for (
|
|
963
|
+
const addApp = jConfig.ADDITIONAL_APP_PARAMETERS[each];
|
|
964
|
+
for (let i = 0; i < addApp.length; i++) {
|
|
966
965
|
param[each] = addApp[i];
|
|
967
966
|
}
|
|
968
967
|
} else {
|
|
@@ -970,7 +969,7 @@ sap.ui.define([
|
|
|
970
969
|
}
|
|
971
970
|
}
|
|
972
971
|
}
|
|
973
|
-
}
|
|
972
|
+
} let toOurApp = oCrossAppNavigator && oCrossAppNavigator.hrefForExternal({
|
|
974
973
|
target: {
|
|
975
974
|
semanticObject: jConfig.TILE_PROPERTIES.semanticObject,
|
|
976
975
|
action: jConfig.TILE_PROPERTIES.semanticAction
|
|
@@ -978,11 +977,11 @@ sap.ui.define([
|
|
|
978
977
|
params: param
|
|
979
978
|
}) || "";
|
|
980
979
|
if (jConfig.ADDITIONAL_FILTERS) {
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
for (
|
|
980
|
+
const addFilter = jConfig.ADDITIONAL_FILTERS;
|
|
981
|
+
let addFilterString = "&";
|
|
982
|
+
for (let j = 0; j < addFilter.length; j++) {
|
|
984
983
|
if (addFilter[j].OPERATOR === "EQ") {
|
|
985
|
-
addFilterString = addFilterString
|
|
984
|
+
addFilterString = `${addFilterString}/${addFilter[j].NAME}=${addFilter[j].VALUE_1}`;
|
|
986
985
|
}
|
|
987
986
|
} toOurApp += addFilterString;
|
|
988
987
|
}
|
|
@@ -996,16 +995,16 @@ sap.ui.define([
|
|
|
996
995
|
* @returns {string} returns title for tile
|
|
997
996
|
*/
|
|
998
997
|
getChipTitle: function (jConfig) {
|
|
999
|
-
|
|
998
|
+
let title = "";
|
|
1000
999
|
if (jConfig) {
|
|
1001
|
-
|
|
1000
|
+
const chipIndicator = jConfig.EVALUATION || {};
|
|
1002
1001
|
title = chipIndicator.INDICATOR_TITLE || "";
|
|
1003
1002
|
}
|
|
1004
1003
|
return title;
|
|
1005
1004
|
},
|
|
1006
1005
|
|
|
1007
1006
|
getstringifyTileConfig: function (jConfig) {
|
|
1008
|
-
|
|
1007
|
+
const sConfig = {};
|
|
1009
1008
|
sConfig.EVALUATION = JSON.stringify(jConfig.EVALUATION);
|
|
1010
1009
|
sConfig.EVALUATION_FILTERS = JSON.stringify(jConfig.EVALUATION_FILTERS);
|
|
1011
1010
|
sConfig.EVALUATION_VALUES = JSON.stringify(jConfig.EVALUATION_VALUES);
|
|
@@ -1020,53 +1019,53 @@ sap.ui.define([
|
|
|
1020
1019
|
* @returns {string} returns subtitle for tile
|
|
1021
1020
|
*/
|
|
1022
1021
|
getChipSubTitle: function (jConfig) {
|
|
1023
|
-
|
|
1022
|
+
let sTitle = "";
|
|
1024
1023
|
if (jConfig) {
|
|
1025
|
-
|
|
1024
|
+
const chipEvaluation = jConfig.EVALUATION || {};
|
|
1026
1025
|
sTitle = chipEvaluation.TITLE || "";
|
|
1027
1026
|
}
|
|
1028
1027
|
return sTitle;
|
|
1029
1028
|
},
|
|
1030
1029
|
|
|
1031
1030
|
getAllMeasures: function (sUri, entitySet) {
|
|
1032
|
-
|
|
1031
|
+
let measures = [];
|
|
1033
1032
|
try {
|
|
1034
|
-
|
|
1035
|
-
|
|
1033
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
1034
|
+
const queryResult = o4a.findQueryResultByName(entitySet);
|
|
1036
1035
|
measures = queryResult.getAllMeasureNames();
|
|
1037
1036
|
} catch (e) {
|
|
1038
|
-
Log.error(
|
|
1037
|
+
Log.error(`Error Fetching All Measures : ${e.toString()}`);
|
|
1039
1038
|
}
|
|
1040
1039
|
return measures;
|
|
1041
1040
|
},
|
|
1042
1041
|
|
|
1043
1042
|
getFormattingMetadata: function (sUri, entitySet, propertyName) {
|
|
1044
|
-
|
|
1043
|
+
const formattingMetadata = {};
|
|
1045
1044
|
formattingMetadata._hasCurrency = false;
|
|
1046
1045
|
formattingMetadata._hasSapText = false;
|
|
1047
1046
|
|
|
1048
|
-
|
|
1047
|
+
let modelReferenceBy = null;
|
|
1049
1048
|
if (sUri instanceof ODataModel) {
|
|
1050
1049
|
modelReferenceBy = ReferenceByModel(sUri);
|
|
1051
1050
|
} else {
|
|
1052
|
-
|
|
1051
|
+
const tempModel = this.getODataModelByServiceUri(sUri);
|
|
1053
1052
|
modelReferenceBy = ReferenceByModel(tempModel);
|
|
1054
1053
|
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1054
|
+
const O4A = new Model(modelReferenceBy);
|
|
1055
|
+
const queryResult = O4A.findQueryResultByName(entitySet);
|
|
1057
1056
|
|
|
1058
|
-
|
|
1057
|
+
const measures = queryResult.getAllMeasures();
|
|
1059
1058
|
|
|
1060
1059
|
if (measures[propertyName]) {
|
|
1061
|
-
|
|
1060
|
+
const sapTextPropertyName = (measures[propertyName]._oTextProperty && measures[propertyName]._oTextProperty.name) ?
|
|
1062
1061
|
measures[propertyName]._oTextProperty.name : "";
|
|
1063
1062
|
|
|
1064
1063
|
if (sapTextPropertyName != "") {
|
|
1065
1064
|
formattingMetadata._hasSapText = true;
|
|
1066
1065
|
formattingMetadata._sapTextColumn = sapTextPropertyName;
|
|
1067
1066
|
} else if (measures[propertyName].hasOwnProperty("_oUnitProperty")) {
|
|
1068
|
-
|
|
1069
|
-
for (
|
|
1067
|
+
const extensions = measures[propertyName]._oUnitProperty.extensions;
|
|
1068
|
+
for (let i = 0; i < measures[propertyName]._oUnitProperty.extensions.length; i++) {
|
|
1070
1069
|
if (extensions[i].name === "semantics" && extensions[i].value === "currency-code") {
|
|
1071
1070
|
formattingMetadata._hasCurrency = true;
|
|
1072
1071
|
formattingMetadata._currencyColumn = measures[propertyName]._oUnitProperty.name;
|
|
@@ -1078,8 +1077,8 @@ sap.ui.define([
|
|
|
1078
1077
|
|
|
1079
1078
|
getAllDimensions: function (sUri, entitySet) {
|
|
1080
1079
|
function intersectionOfArray (array1, array2) {
|
|
1081
|
-
|
|
1082
|
-
|
|
1080
|
+
let ai = 0; let bi = 0;
|
|
1081
|
+
const result = [];
|
|
1083
1082
|
while (ai < array1.length && bi < array2.length) {
|
|
1084
1083
|
if (array1[ai] < array2[bi]) {
|
|
1085
1084
|
ai++;
|
|
@@ -1092,19 +1091,19 @@ sap.ui.define([
|
|
|
1092
1091
|
}
|
|
1093
1092
|
} return result;
|
|
1094
1093
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1094
|
+
let dimensions = [];
|
|
1095
|
+
let aFilterablePropertyNames = [];
|
|
1097
1096
|
try {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1097
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
1098
|
+
const queryResult = o4a.findQueryResultByName(entitySet);
|
|
1099
|
+
const entityType = queryResult.getEntityType();
|
|
1101
1100
|
aFilterablePropertyNames = entityType.getFilterablePropertyNames();
|
|
1102
1101
|
dimensions = queryResult.getAllDimensionNames();
|
|
1103
1102
|
if (aFilterablePropertyNames && aFilterablePropertyNames.length) {
|
|
1104
1103
|
dimensions = intersectionOfArray(aFilterablePropertyNames.sort(), dimensions.sort());
|
|
1105
1104
|
}
|
|
1106
1105
|
} catch (e) {
|
|
1107
|
-
Log.error(
|
|
1106
|
+
Log.error(`Error Fetching All Dimesions : ${e.toString()}`);
|
|
1108
1107
|
}
|
|
1109
1108
|
return dimensions;
|
|
1110
1109
|
},
|
|
@@ -1125,20 +1124,20 @@ sap.ui.define([
|
|
|
1125
1124
|
function _replaceSingleQuoteWithDoubleSingleQuote (str) {
|
|
1126
1125
|
return str.replace(/'/g, "''");
|
|
1127
1126
|
}
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1127
|
+
let tmpDimension = null;
|
|
1128
|
+
let changeToYYYYMMDDHHMMSS = function () { };
|
|
1129
|
+
let _processODataDateTime = function () { };
|
|
1131
1130
|
try {
|
|
1132
|
-
|
|
1131
|
+
let modelReferenceBy = null;
|
|
1133
1132
|
if (sUri instanceof ODataModel) {
|
|
1134
1133
|
modelReferenceBy = ReferenceByModel(sUri);
|
|
1135
1134
|
} else {
|
|
1136
|
-
|
|
1135
|
+
const tempModel = this.getODataModelByServiceUri(sUri);
|
|
1137
1136
|
modelReferenceBy = ReferenceByModel(tempModel);
|
|
1138
1137
|
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1138
|
+
const O4A = new Model(modelReferenceBy);
|
|
1139
|
+
const oQueryResult = O4A.findQueryResultByName(entitySet);
|
|
1140
|
+
const oQueryResultRequest = new QueryResultRequest(oQueryResult);
|
|
1142
1141
|
if (measure) {
|
|
1143
1142
|
oQueryResultRequest.setMeasures(measure.split(","));
|
|
1144
1143
|
oQueryResultRequest.includeMeasureRawFormattedValueUnit(null, true, true, true);
|
|
@@ -1151,7 +1150,7 @@ sap.ui.define([
|
|
|
1151
1150
|
|
|
1152
1151
|
for (var i = 0; i < tmpDimension.length; i++) {
|
|
1153
1152
|
oQueryResultRequest.addToAggregationLevel([tmpDimension[i]]);
|
|
1154
|
-
|
|
1153
|
+
const tmp = oQueryResult.getAllDimensions();
|
|
1155
1154
|
if (tmp[tmpDimension[i]].getTextProperty() != null) {
|
|
1156
1155
|
oQueryResultRequest.includeDimensionKeyTextAttributes([tmpDimension[i]], true, true, null);
|
|
1157
1156
|
}
|
|
@@ -1159,9 +1158,9 @@ sap.ui.define([
|
|
|
1159
1158
|
}
|
|
1160
1159
|
|
|
1161
1160
|
if (variants && variants.length) {
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1161
|
+
const filterVariants = [];
|
|
1162
|
+
const inputParamsVariants = [];
|
|
1163
|
+
let l;
|
|
1165
1164
|
for (i = 0, l = variants.length; i < l; i++) {
|
|
1166
1165
|
var each = variants[i];
|
|
1167
1166
|
if (each.type === "PA") {
|
|
@@ -1170,8 +1169,8 @@ sap.ui.define([
|
|
|
1170
1169
|
filterVariants.push(each);
|
|
1171
1170
|
}
|
|
1172
1171
|
} changeToYYYYMMDDHHMMSS = function (odate) {
|
|
1173
|
-
|
|
1174
|
-
|
|
1172
|
+
let dateStr = odate.toJSON();
|
|
1173
|
+
const lastChar = dateStr.charAt(dateStr.length - 1).toUpperCase();
|
|
1175
1174
|
if (lastChar.charCodeAt(0) >= 65 && lastChar.charCodeAt(0) <= 90) {
|
|
1176
1175
|
dateStr = dateStr.slice(0, -1);
|
|
1177
1176
|
}
|
|
@@ -1183,19 +1182,19 @@ sap.ui.define([
|
|
|
1183
1182
|
if (junkValue == +junkValue) {
|
|
1184
1183
|
junkValue = window.parseInt(junkValue);
|
|
1185
1184
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1185
|
+
const date = new Date(junkValue);
|
|
1186
|
+
const time = date.getTime();
|
|
1188
1187
|
if (isNaN(time)) {
|
|
1189
1188
|
return junkValue;
|
|
1190
1189
|
}
|
|
1191
1190
|
return changeToYYYYMMDDHHMMSS(date);
|
|
1192
1191
|
} catch (e) {
|
|
1193
|
-
//empty
|
|
1192
|
+
// empty
|
|
1194
1193
|
}
|
|
1195
1194
|
} return junkValue;
|
|
1196
1195
|
};
|
|
1197
1196
|
if (filterVariants.length) {
|
|
1198
|
-
|
|
1197
|
+
const oFilterExpression = oQueryResultRequest.getFilterExpression();
|
|
1199
1198
|
for (i = 0, l = filterVariants.length; i < l; i++) {
|
|
1200
1199
|
each = filterVariants[i];
|
|
1201
1200
|
if (this.getEdmType(sUri, each.filterPropertyName) == "Edm.DateTime") {
|
|
@@ -1205,8 +1204,8 @@ sap.ui.define([
|
|
|
1205
1204
|
if (each.comparator == FilterOperator.BT) {
|
|
1206
1205
|
oFilterExpression.addCondition(each.filterPropertyName, each.comparator, _replaceSingleQuoteWithDoubleSingleQuote(each.value), each.valueTo);
|
|
1207
1206
|
} else {
|
|
1208
|
-
|
|
1209
|
-
for (
|
|
1207
|
+
const multipleFilterValueArray = each.value.split(",");
|
|
1208
|
+
for (let j = 0, k = multipleFilterValueArray.length; j < k; j++) {
|
|
1210
1209
|
oFilterExpression.addCondition(each.filterPropertyName, each.comparator,
|
|
1211
1210
|
_replaceSingleQuoteWithDoubleSingleQuote(multipleFilterValueArray[j].replace(/\^\|/g, ",")), null);
|
|
1212
1211
|
}
|
|
@@ -1214,9 +1213,9 @@ sap.ui.define([
|
|
|
1214
1213
|
}
|
|
1215
1214
|
} if (inputParamsVariants.length) {
|
|
1216
1215
|
if (oQueryResult.getParameterization()) {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1216
|
+
const oParamRequest = new ParameterizationRequest(oQueryResult.getParameterization());
|
|
1217
|
+
const paramererizationObj = oQueryResult.getParameterization();
|
|
1218
|
+
let eachInputParam; let findParameter; let fromVal; let toVal; let toValParam;
|
|
1220
1219
|
for (var y = 0, z = inputParamsVariants.length; y < z; y++) {
|
|
1221
1220
|
eachInputParam = inputParamsVariants[y];
|
|
1222
1221
|
findParameter = paramererizationObj.findParameterByName(eachInputParam.filterPropertyName);
|
|
@@ -1241,24 +1240,24 @@ sap.ui.define([
|
|
|
1241
1240
|
}
|
|
1242
1241
|
}
|
|
1243
1242
|
}
|
|
1244
|
-
|
|
1243
|
+
let finalUri = oQueryResultRequest.getURIToQueryResultEntries();
|
|
1245
1244
|
|
|
1246
1245
|
if (orderByElements && orderByElements.length) {
|
|
1247
|
-
finalUri = finalUri
|
|
1246
|
+
finalUri = `${finalUri}&$orderby=`;
|
|
1248
1247
|
for (y = 0, z = orderByElements.length; y < z; y++) {
|
|
1249
|
-
|
|
1248
|
+
const order = orderByElements[y].sortOrder || "asc";
|
|
1250
1249
|
if (order) {
|
|
1251
|
-
finalUri += orderByElements[y].element
|
|
1250
|
+
finalUri += `${orderByElements[y].element} ${order},`;
|
|
1252
1251
|
}
|
|
1253
1252
|
} finalUri = finalUri.slice(0, finalUri.length - 1);
|
|
1254
1253
|
}
|
|
1255
1254
|
|
|
1256
1255
|
if (top) {
|
|
1257
|
-
finalUri = finalUri
|
|
1256
|
+
finalUri = `${finalUri}&$top=${top}`;
|
|
1258
1257
|
}
|
|
1259
1258
|
|
|
1260
|
-
|
|
1261
|
-
|
|
1259
|
+
const oMeasureNames = oQueryResult.getAllMeasures();
|
|
1260
|
+
const unit = [];
|
|
1262
1261
|
for (i = 0; i < measure.split(",").length; i++) {
|
|
1263
1262
|
unit.push(oMeasureNames[measure.split(",")[i]].getUnitProperty());
|
|
1264
1263
|
}
|
|
@@ -1268,10 +1267,10 @@ sap.ui.define([
|
|
|
1268
1267
|
unit: unit
|
|
1269
1268
|
};
|
|
1270
1269
|
} catch (e) {
|
|
1271
|
-
Log.error(
|
|
1270
|
+
Log.error(`Error Preparing Query Service Uri using OData4Analytics Library : ${e.toString()}`);
|
|
1272
1271
|
if (arguments.length) {
|
|
1273
1272
|
Log.error("Arguments Passed to this function");
|
|
1274
|
-
Log.error(arguments[0]
|
|
1273
|
+
Log.error(`${arguments[0]},${arguments[1]},${arguments[2]},${arguments[3]}`);
|
|
1275
1274
|
} else {
|
|
1276
1275
|
Log.error("NO Arguments passed to this function");
|
|
1277
1276
|
}
|
|
@@ -1280,24 +1279,24 @@ sap.ui.define([
|
|
|
1280
1279
|
},
|
|
1281
1280
|
|
|
1282
1281
|
getAllEntitySet: function (sUri) {
|
|
1283
|
-
|
|
1282
|
+
let entitySets = [];
|
|
1284
1283
|
try {
|
|
1285
|
-
|
|
1284
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
1286
1285
|
entitySets = o4a.getAllQueryResultNames();
|
|
1287
1286
|
} catch (e) {
|
|
1288
|
-
Log.error(
|
|
1287
|
+
Log.error(`Error fetching Enity Set : ${e.toString()}`);
|
|
1289
1288
|
}
|
|
1290
1289
|
return entitySets;
|
|
1291
1290
|
},
|
|
1292
1291
|
|
|
1293
1292
|
getAllMeasuresWithLabelText: function (sUri, entitySet) {
|
|
1294
|
-
|
|
1293
|
+
const measures = [];
|
|
1295
1294
|
try {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
for (
|
|
1300
|
-
|
|
1295
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
1296
|
+
const queryResult = o4a.findQueryResultByName(entitySet);
|
|
1297
|
+
const measureNames = queryResult.getAllMeasureNames();
|
|
1298
|
+
for (let i = 0; i < measureNames.length; i++) {
|
|
1299
|
+
const each = measureNames[i];
|
|
1301
1300
|
global.oMeasure = queryResult.findMeasureByName(each);
|
|
1302
1301
|
measures.push({
|
|
1303
1302
|
key: each,
|
|
@@ -1305,21 +1304,21 @@ sap.ui.define([
|
|
|
1305
1304
|
});
|
|
1306
1305
|
}
|
|
1307
1306
|
} catch (e) {
|
|
1308
|
-
Log.error(
|
|
1307
|
+
Log.error(`Error Fetching All Measures : ${e.toString()}`);
|
|
1309
1308
|
}
|
|
1310
1309
|
return measures;
|
|
1311
1310
|
},
|
|
1312
1311
|
|
|
1313
1312
|
getAllDimensionsWithLabelText: function (sUri, entitySet) {
|
|
1314
|
-
|
|
1313
|
+
const dimensions = [];
|
|
1315
1314
|
try {
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
for (
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1315
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
1316
|
+
const queryResult = o4a.findQueryResultByName(entitySet);
|
|
1317
|
+
const dimensionNames = queryResult.getAllDimensionNames();
|
|
1318
|
+
for (let i = 0; i < dimensionNames.length; i++) {
|
|
1319
|
+
const each = dimensionNames[i];
|
|
1320
|
+
const oDimension = queryResult.findDimensionByName(each);
|
|
1321
|
+
let textProperty = null;
|
|
1323
1322
|
if (oDimension.getTextProperty() != null) {
|
|
1324
1323
|
textProperty = oDimension.getTextProperty().name;
|
|
1325
1324
|
}
|
|
@@ -1330,37 +1329,37 @@ sap.ui.define([
|
|
|
1330
1329
|
});
|
|
1331
1330
|
}
|
|
1332
1331
|
} catch (e) {
|
|
1333
|
-
Log.error(
|
|
1332
|
+
Log.error(`Error Fetching All Dimesions : ${e.toString()}`);
|
|
1334
1333
|
}
|
|
1335
1334
|
return dimensions;
|
|
1336
1335
|
},
|
|
1337
1336
|
|
|
1338
1337
|
getAllInputParams: function (sUri, entitySet) {
|
|
1339
|
-
|
|
1338
|
+
let inputParams = [];
|
|
1340
1339
|
try {
|
|
1341
|
-
|
|
1342
|
-
|
|
1340
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
1341
|
+
const queryResult = o4a.findQueryResultByName(entitySet);
|
|
1343
1342
|
if (queryResult.getParameterization()) {
|
|
1344
|
-
|
|
1343
|
+
const oParams = queryResult.getParameterization();
|
|
1345
1344
|
inputParams = oParams.getAllParameterNames();
|
|
1346
1345
|
}
|
|
1347
1346
|
} catch (e) {
|
|
1348
|
-
Log.error(
|
|
1347
|
+
Log.error(`Error Fetching Input Params : ${e.toString()}`);
|
|
1349
1348
|
}
|
|
1350
1349
|
return inputParams;
|
|
1351
1350
|
},
|
|
1352
1351
|
|
|
1353
1352
|
getAllInputParamsWithFlag: function (sUri, entitySet) {
|
|
1354
|
-
|
|
1353
|
+
const inputParams = [];
|
|
1355
1354
|
try {
|
|
1356
|
-
|
|
1357
|
-
|
|
1355
|
+
const o4a = this._getOData4AnalyticsObject(sUri);
|
|
1356
|
+
const queryResult = o4a.findQueryResultByName(entitySet);
|
|
1358
1357
|
if (queryResult.getParameterization()) {
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
for (
|
|
1362
|
-
|
|
1363
|
-
|
|
1358
|
+
const oParams = queryResult.getParameterization();
|
|
1359
|
+
const inputParamsArray = oParams.getAllParameterNames();
|
|
1360
|
+
for (let i = 0; i < inputParamsArray.length; i++) {
|
|
1361
|
+
const each = inputParamsArray[i];
|
|
1362
|
+
const paramObject = oParams.findParameterByName(each);
|
|
1364
1363
|
inputParams.push({
|
|
1365
1364
|
name: each,
|
|
1366
1365
|
optional: paramObject.isOptional()
|
|
@@ -1368,7 +1367,7 @@ sap.ui.define([
|
|
|
1368
1367
|
}
|
|
1369
1368
|
}
|
|
1370
1369
|
} catch (e) {
|
|
1371
|
-
Log.error(
|
|
1370
|
+
Log.error(`Error Fetching Input Params : ${e.toString()}`);
|
|
1372
1371
|
}
|
|
1373
1372
|
return inputParams;
|
|
1374
1373
|
},
|
|
@@ -1376,11 +1375,11 @@ sap.ui.define([
|
|
|
1376
1375
|
formatOdataObjectToString: function (value) {
|
|
1377
1376
|
if (value && value.constructor == Object) {
|
|
1378
1377
|
if (value.__edmType == "Edm.Time") {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
return hours
|
|
1378
|
+
const milliseconds = value.ms;
|
|
1379
|
+
const seconds = Math.floor((milliseconds / 1000) % 60);
|
|
1380
|
+
const minutes = Math.floor((milliseconds / 60000) % 60);
|
|
1381
|
+
const hours = Math.floor((milliseconds / 3600000) % 24);
|
|
1382
|
+
return `${hours}H${minutes}M${seconds}S`;
|
|
1384
1383
|
}
|
|
1385
1384
|
} return value;
|
|
1386
1385
|
},
|
|
@@ -1388,19 +1387,19 @@ sap.ui.define([
|
|
|
1388
1387
|
generateCombinations: function (array) {
|
|
1389
1388
|
function getPerfectBinary (maxLength, str) {
|
|
1390
1389
|
while (str.length < maxLength) {
|
|
1391
|
-
str =
|
|
1390
|
+
str = `0${str}`;
|
|
1392
1391
|
}
|
|
1393
1392
|
return str;
|
|
1394
1393
|
}
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1394
|
+
let max = Math.pow(2, array.length);
|
|
1395
|
+
const resultArray = [];
|
|
1396
|
+
let index = 0;
|
|
1398
1397
|
|
|
1399
1398
|
while (max > 1) {
|
|
1400
|
-
|
|
1399
|
+
let str = (max - 1).toString(2);
|
|
1401
1400
|
str = getPerfectBinary(array.length, str);
|
|
1402
1401
|
resultArray[index] = [];
|
|
1403
|
-
for (
|
|
1402
|
+
for (let i = 0; i < str.length; i++) {
|
|
1404
1403
|
if (Number(str[i])) {
|
|
1405
1404
|
resultArray[index].push(array[i]);
|
|
1406
1405
|
}
|
|
@@ -1412,7 +1411,7 @@ sap.ui.define([
|
|
|
1412
1411
|
|
|
1413
1412
|
logError: function (err, oControl) {
|
|
1414
1413
|
if (err == "no data" && oControl) {
|
|
1415
|
-
|
|
1414
|
+
const oResourceBundle = sap.ushell.components.tiles.utils.getResourceBundle();
|
|
1416
1415
|
oControl.setFailedText(oResourceBundle.getText("sb.noData"));
|
|
1417
1416
|
}
|
|
1418
1417
|
Log.error(err.toString());
|
|
@@ -1420,15 +1419,15 @@ sap.ui.define([
|
|
|
1420
1419
|
|
|
1421
1420
|
numberOfLeadingZeros: function (num) {
|
|
1422
1421
|
num = String(num);
|
|
1423
|
-
|
|
1424
|
-
|
|
1422
|
+
let count = 0;
|
|
1423
|
+
const decimal_index = num.indexOf(".");
|
|
1425
1424
|
if (decimal_index == -1) {
|
|
1426
1425
|
return 0;
|
|
1427
1426
|
}
|
|
1428
1427
|
if (Number(num.split(".")[0]) != 0) {
|
|
1429
1428
|
return 0;
|
|
1430
1429
|
}
|
|
1431
|
-
|
|
1430
|
+
let i = decimal_index + 1;
|
|
1432
1431
|
while (num[i++] == "0") {
|
|
1433
1432
|
++count;
|
|
1434
1433
|
}
|
|
@@ -1437,15 +1436,15 @@ sap.ui.define([
|
|
|
1437
1436
|
|
|
1438
1437
|
formatValue: function (val, scaleFactor, MAX_LEN) {
|
|
1439
1438
|
MAX_LEN = MAX_LEN || 3;
|
|
1440
|
-
|
|
1439
|
+
const unit = { 3: "K", 6: "M", 9: "B", 12: "T", 0: "" };
|
|
1441
1440
|
unit["-3"] = "m";
|
|
1442
1441
|
unit["-6"] = "u";
|
|
1443
1442
|
unit["-9"] = "n";
|
|
1444
1443
|
unit["-12"] = "t";
|
|
1445
1444
|
unit["-2"] = "%";
|
|
1446
|
-
|
|
1445
|
+
let temp; let pre; let suff;
|
|
1447
1446
|
temp = Number(val).toPrecision(MAX_LEN);
|
|
1448
|
-
|
|
1447
|
+
const zeroes = this.numberOfLeadingZeros(temp);
|
|
1449
1448
|
if (zeroes > 0 && scaleFactor < 0) {
|
|
1450
1449
|
pre = temp * Math.pow(10, zeroes + MAX_LEN);
|
|
1451
1450
|
suff = -(zeroes + MAX_LEN);
|
|
@@ -1491,7 +1490,7 @@ sap.ui.define([
|
|
|
1491
1490
|
pre = pre / (Math.pow(10, suff % 3));
|
|
1492
1491
|
suff = suff - (suff % 3);
|
|
1493
1492
|
} else {
|
|
1494
|
-
|
|
1493
|
+
const diff = suff - scaleFactor;
|
|
1495
1494
|
pre = pre / (Math.pow(10, diff));
|
|
1496
1495
|
suff = suff - diff;
|
|
1497
1496
|
}
|
|
@@ -1501,7 +1500,7 @@ sap.ui.define([
|
|
|
1501
1500
|
// ending of neg scale factor
|
|
1502
1501
|
pre += "";
|
|
1503
1502
|
if (scaleFactor == "-2") {
|
|
1504
|
-
|
|
1503
|
+
const valstr = (x.unitPrefix == "") ? Number(`${x.value}`).toFixed(4 - (`${x.value}`).indexOf(".")) : Number(`${x.value}`).toFixed(3 - (`${x.value}`).indexOf("."));
|
|
1505
1504
|
return { value: Number(valstr), unitPrefix: (x.unitPrefix) + unit[-2] };
|
|
1506
1505
|
}
|
|
1507
1506
|
pre = Number(pre).toFixed(4 - pre.indexOf("."));
|
|
@@ -1509,7 +1508,7 @@ sap.ui.define([
|
|
|
1509
1508
|
},
|
|
1510
1509
|
|
|
1511
1510
|
isSmartbusinessChipAndCachable: function (baseChip) {
|
|
1512
|
-
|
|
1511
|
+
const oConfig = this.getParsedChip(baseChip && baseChip.getConfigurationParameter("tileConfiguration"));
|
|
1513
1512
|
return (oConfig &&
|
|
1514
1513
|
oConfig.TILE_PROPERTIES &&
|
|
1515
1514
|
oConfig.TILE_PROPERTIES.tileType &&
|
|
@@ -1517,21 +1516,21 @@ sap.ui.define([
|
|
|
1517
1516
|
},
|
|
1518
1517
|
|
|
1519
1518
|
getHanaClient: function () {
|
|
1520
|
-
|
|
1521
|
-
|
|
1519
|
+
let sessionClient;
|
|
1520
|
+
const success = function (d, s, x) {
|
|
1522
1521
|
sessionClient = d.sessionClient;
|
|
1523
1522
|
sap.ushell.components.tiles.indicatorTileUtils.cache.setCacheHanaClient(sessionClient);
|
|
1524
1523
|
sap.ushell.components.tiles.indicatorTileUtils.util.HANA_CLIENT_DEFERRED.resolve(sessionClient);
|
|
1525
1524
|
};
|
|
1526
|
-
|
|
1525
|
+
const error = function (jqXHR, textStatus, errorThrown) {
|
|
1527
1526
|
Log.error(jqXHR.responseText);
|
|
1528
1527
|
Log.error("session client call failed");
|
|
1529
1528
|
sap.ushell.components.tiles.indicatorTileUtils.cache.setCacheHanaClient(null);
|
|
1530
1529
|
sap.ushell.components.tiles.indicatorTileUtils.util.HANA_CLIENT_DEFERRED.reject();
|
|
1531
1530
|
};
|
|
1532
1531
|
|
|
1533
|
-
|
|
1534
|
-
|
|
1532
|
+
const deferred = sap.ushell.components.tiles.indicatorTileUtils.util.HANA_CLIENT_DEFERRED || jQuery.Deferred();
|
|
1533
|
+
const cacheHanaClient = sap.ushell.components.tiles.indicatorTileUtils.cache.getCacheHanaClient();
|
|
1535
1534
|
if (cacheHanaClient != undefined) {
|
|
1536
1535
|
sessionClient = cacheHanaClient;
|
|
1537
1536
|
sap.ushell.components.tiles.indicatorTileUtils.util.HANA_CLIENT_DEFERRED.resolve(sessionClient);
|
|
@@ -1564,9 +1563,9 @@ sap.ui.define([
|
|
|
1564
1563
|
})(window, jQuery);
|
|
1565
1564
|
|
|
1566
1565
|
sap.ushell.components.tiles.indicatorTileUtils.cache = (function () {
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1566
|
+
const BIGMAP = {};
|
|
1567
|
+
const KPIVALUE = {};
|
|
1568
|
+
const sessionContext = "HANA_CLIENT";
|
|
1570
1569
|
return {
|
|
1571
1570
|
getCacheHanaClient: function () {
|
|
1572
1571
|
return BIGMAP[sessionContext];
|