@sapui5/sap.ushell 1.136.2 → 1.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/AppInfoParameters.js +4 -5
- package/src/main/js/sap/ushell/ApplicationType/guiResolution.js +677 -695
- package/src/main/js/sap/ushell/ApplicationType/systemAlias.js +612 -623
- package/src/main/js/sap/ushell/ApplicationType/ui5Resolution.js +14 -16
- package/src/main/js/sap/ushell/ApplicationType/urlResolution.js +19 -21
- package/src/main/js/sap/ushell/ApplicationType/urlTemplateResolution.js +486 -468
- package/src/main/js/sap/ushell/ApplicationType/utils.js +46 -46
- package/src/main/js/sap/ushell/ApplicationType/wcfResolution.js +12 -12
- package/src/main/js/sap/ushell/ApplicationType/wdaResolution.js +47 -55
- package/src/main/js/sap/ushell/ApplicationType.js +34 -34
- package/src/main/js/sap/ushell/Config/utils.js +45 -45
- package/src/main/js/sap/ushell/Config.js +4 -4
- package/src/main/js/sap/ushell/Container.js +359 -357
- package/src/main/js/sap/ushell/EventHub.js +216 -212
- package/src/main/js/sap/ushell/Fiori20Adapter.js +59 -98
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +23 -26
- package/src/main/js/sap/ushell/Layout.js +264 -291
- package/src/main/js/sap/ushell/NWBCInterface.js +8 -8
- package/src/main/js/sap/ushell/SessionHandler.js +8 -8
- package/src/main/js/sap/ushell/System.js +6 -6
- package/src/main/js/sap/ushell/TechnicalParameters.js +95 -96
- package/src/main/js/sap/ushell/UI5ComponentType.js +1 -1
- package/src/main/js/sap/ushell/UIActions.js +189 -188
- package/src/main/js/sap/ushell/URLTemplateProcessor/DefinitionParameterSetBuilder.js +21 -24
- package/src/main/js/sap/ushell/URLTemplateProcessor/DependencyGraph.js +29 -29
- package/src/main/js/sap/ushell/URLTemplateProcessor/Functions.js +96 -96
- package/src/main/js/sap/ushell/URLTemplateProcessor/Resolvers.js +58 -55
- package/src/main/js/sap/ushell/URLTemplateProcessor/TemplateParameterParser.js +201 -200
- package/src/main/js/sap/ushell/URLTemplateProcessor/utils.js +8 -8
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +65 -65
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +30 -33
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +30 -43
- package/src/main/js/sap/ushell/User.js +114 -116
- package/src/main/js/sap/ushell/UserActivityLog.js +63 -63
- package/src/main/js/sap/ushell/adapters/AppVariantPersonalizationAdapter.js +46 -47
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +34 -34
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +56 -57
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +3 -4
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +144 -146
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +569 -602
- package/src/main/js/sap/ushell/adapters/cdm/MenuAdapter.js +25 -25
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +120 -119
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegion.controller.js +57 -53
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegion.view.xml +5 -2
- package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegionEntry.js +6 -6
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +2 -3
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +21 -21
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +28 -37
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +89 -90
- package/src/main/js/sap/ushell/adapters/cdm/_Personalization/internals.js +179 -190
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +12 -12
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +16 -17
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +144 -151
- package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +527 -526
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +6 -6
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +3 -4
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +22 -28
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +9 -9
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +27 -27
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +15 -18
- package/src/main/js/sap/ushell/adapters/cdm/v3/utilsCdm.js +67 -67
- package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +17 -20
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +25 -25
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +42 -43
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +45 -45
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +29 -29
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +41 -37
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +25 -28
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +70 -72
- package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +450 -474
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/MenuAdapter.js +20 -22
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +44 -43
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +12 -12
- package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +16 -16
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +19 -17
- package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +3 -3
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +5 -6
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +10 -10
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +5 -5
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +2 -3
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +26 -26
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +28 -29
- package/src/main/js/sap/ushell/api/BootstrapObserver.js +2 -3
- package/src/main/js/sap/ushell/api/Copilot.js +2 -4
- package/src/main/js/sap/ushell/api/DWS.js +2 -3
- package/src/main/js/sap/ushell/api/Inbox.js +2 -3
- package/src/main/js/sap/ushell/api/NewExperience/CustomOverflowListItem.js +2 -3
- package/src/main/js/sap/ushell/api/NewExperience.js +8 -8
- package/src/main/js/sap/ushell/api/RTA.js +27 -59
- package/src/main/js/sap/ushell/api/S4MyHome.js +3 -3
- package/src/main/js/sap/ushell/api/SAPBusinessClient.js +6 -36
- package/src/main/js/sap/ushell/api/common/ComponentInstantiation.js +5 -8
- package/src/main/js/sap/ushell/api/workpage/Designtime.js +2 -3
- package/src/main/js/sap/ushell/api/workpage/Runtime.js +2 -4
- package/src/main/js/sap/ushell/appIntegration/AppLifeCycle/KeepAliveMode.js +2 -2
- package/src/main/js/sap/ushell/appIntegration/AppLifeCycle.js +141 -113
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +2 -4
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerCache.js +9 -9
- package/src/main/js/sap/ushell/appIntegration/ApplicationContainerRenderer.js +0 -1
- package/src/main/js/sap/ushell/appIntegration/ApplicationHandle.js +2 -2
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainer.js +1 -3
- package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainerRenderer.js +2 -4
- package/src/main/js/sap/ushell/appIntegration/KeepAliveApps.js +6 -6
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/AppruntimeHandler.js +7 -7
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ExtensionItems.js +2 -2
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/LifecycleHandler.js +58 -59
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/MessageBrokerHandler.js +2 -3
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/NWBCHandler.js +2 -2
- package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ServiceHandler.js +91 -91
- package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainerRenderer.js +0 -1
- package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +8 -9
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV1Handler.js +3 -3
- package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +1 -2
- package/src/main/js/sap/ushell/appRuntime/neo/AppInfoService.js +85 -74
- package/src/main/js/sap/ushell/appRuntime/neo/AppRuntimeNeo.js +2 -2
- package/src/main/js/sap/ushell/appRuntime/neo/ProxyAppUtils.js +8 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/AppCommunicationMgr.js +57 -57
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +660 -662
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeContext.js +14 -14
- package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntimeService.js +11 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/SessionHandlerAgent.js +21 -25
- package/src/main/js/sap/ushell/appRuntime/ui5/performance/FesrEnhancer.js +11 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/AppLifeCycleUtils.js +31 -31
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/BaseRTAPluginStatus.js +9 -10
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/CheckConditions.js +56 -56
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Renderer.js +34 -34
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/baseRta/Trigger.js +222 -249
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaAgent/Component.js +213 -207
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/rtaShell/Component.js +121 -129
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/Component.js +19 -19
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/AccessKeysAgent.js +9 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/Renderer.js +84 -29
- package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +34 -34
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +12 -12
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +7 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +127 -102
- package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +11 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +35 -29
- package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +30 -26
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +8 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +26 -26
- package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +41 -38
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +9 -23
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FlpLaunchPage.js +3 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +3 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +7 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +16 -17
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +21 -17
- package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +22 -17
- package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +31 -28
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +4 -4
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +10 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +10 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +9 -9
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +10 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/ContainerAdapter.js +40 -43
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/EmptyAdapter.js +6 -6
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +2 -3
- package/src/main/js/sap/ushell/appRuntime/ui5/ui/UIProxy.js +4 -4
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/EventProcessor.js +9 -9
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/FLPLoader.js +8 -9
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/FLPScheduler.js +40 -42
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/LoadingConfiguration.json +1 -1
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +1 -6
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +13 -13
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +19 -19
- package/src/main/js/sap/ushell/bootstrap/SchedulingAgent.js +23 -32
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-dev.js +3 -4
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def-loader.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm-def.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.boot.task.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +5 -4
- package/src/main/js/sap/ushell/bootstrap/cdm.js +11 -12
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.path.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.script.js +2 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.boot.task.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.extractLibs.js +1 -2
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5.js +13 -13
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +9 -9
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5language.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5theme.js +13 -15
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ushell.js +4 -9
- package/src/main/js/sap/ushell/bootstrap/common/common.constants.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +10 -19
- package/src/main/js/sap/ushell/bootstrap/common/common.debug.mode.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.load.bootstrapExtension.js +3 -4
- package/src/main/js/sap/ushell/bootstrap/common/common.load.core-min.js +5 -7
- package/src/main/js/sap/ushell/bootstrap/common/common.load.launchpad.js +6 -8
- package/src/main/js/sap/ushell/bootstrap/common/common.load.model.js +6 -6
- package/src/main/js/sap/ushell/bootstrap/common/common.load.script.js +3 -3
- package/src/main/js/sap/ushell/bootstrap/common/common.override.registermodulepath.js +37 -38
- package/src/main/js/sap/ushell/bootstrap/common/common.read.metatags.js +6 -6
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ui5theme.from.config.js +11 -11
- package/src/main/js/sap/ushell/bootstrap/common/common.read.ushell.config.from.url.js +22 -25
- package/src/main/js/sap/ushell/bootstrap/common/common.util.js +10 -12
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandbox.js +11 -10
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxBootTask.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/sandbox2/sandboxConfig.json +8 -24
- package/src/main/js/sap/ushell/bootstrap/sandbox2.js +13 -13
- package/src/main/js/sap/ushell/bootstrap/ui5loader-config.js +7 -7
- package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +17 -26
- package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +1 -9
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/cards/Card.controller.js +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Component.js +57 -30
- package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +330 -312
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Component.js +171 -154
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Config.js +236 -233
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Extension.js +35 -33
- package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/manifest.json +4 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/manifest.json +4 -6
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/AdvancedFormatters.js +64 -60
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/Edition.js +139 -141
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/EditionAdvanced.js +8 -9
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/EditionStandard.js +4 -4
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/appendStyleVars.js +37 -34
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +694 -646
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Highlighter.js +220 -223
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Paginator.css +2 -2
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Paginator.js +258 -225
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/All.js +58 -49
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Application.js +200 -203
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Event.js +129 -131
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/People.js +91 -92
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Workpage.js +18 -18
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n.properties +5 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ar.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_bg.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ca.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_cnr.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_cs.properties +4 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_cy.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_da.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_de.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_el.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_GB.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_en_US_saprigi.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_es.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_es_MX.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_et.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_fi.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_fr.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_fr_CA.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_hi.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_hr.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_hu.properties +4 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_id.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_it.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_iw.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ja.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_kk.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ko.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_lt.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_lv.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_mk.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ms.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_nl.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_no.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_pl.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_pt.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_pt_PT.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ro.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_ru.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_sh.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_sk.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_sl.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_sr.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_sv.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_th.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_tr.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_uk.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_vi.properties +4 -1
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_zh_CN.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/i18n/i18n_zh_TW.properties +3 -0
- package/src/main/js/sap/ushell/components/cepsearchresult/app/util/resources.js +30 -0
- package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +3 -3
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +34 -15
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +22 -12
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +4 -5
- package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +26 -5
- package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +5 -2
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +5 -7
- package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +22 -8
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +6 -5
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchBox.fragment.xml +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTreeTable.fragment.xml +10 -4
- package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +31 -10
- package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +214 -214
- package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +6 -9
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +6 -6
- package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +4 -4
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +4 -4
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +2 -2
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/StateManager.js +4 -3
- package/src/main/js/sap/ushell/components/pages/controller/ImportDialog.controller.js +182 -202
- package/src/main/js/sap/ushell/components/pages/controller/MyHome.controller.js +3 -3
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +10 -7
- package/src/main/js/sap/ushell/components/pages/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +3 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +2 -2
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +13 -31
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +4 -2
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsList.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsListPopoverContent.view.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +17 -15
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +3 -3
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +84 -67
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/ContentWrapper.fragment.xml +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +10 -23
- package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +59 -69
- package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +1 -2
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageSetting.view.xml +28 -35
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.view.xml +5 -9
- package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +1 -2
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.view.xml +2 -2
- package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSetting.fragment.xml +2 -4
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +9 -23
- package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.view.xml +6 -12
- package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.view.xml +2 -4
- package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +23 -115
- package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +4 -3
- package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +2 -2
- package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +4 -1
- package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +0 -31
- package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +5 -2
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +14 -19
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/tiles/action/ActionTile.controller.js +16 -16
- package/src/main/js/sap/ushell/components/tiles/action/Configuration.controller.js +20 -20
- package/src/main/js/sap/ushell/components/tiles/applauncher/Configuration.controller.js +18 -18
- package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +15 -15
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Configuration.controller.js +18 -18
- package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +20 -20
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/manifest.json +1 -6
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/manifest.json +1 -6
- package/src/main/js/sap/ushell/components/tiles/generic.js +8 -8
- package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.controller.js +6 -8
- package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.controller.js +2 -2
- package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +5 -5
- package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.controller.js +2 -6
- package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.controller.js +2 -4
- package/src/main/js/sap/ushell/components/tiles/utils.js +46 -22
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +2 -3
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ms.properties +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +8 -10
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +2 -2
- package/src/main/js/sap/ushell/functionBindPrototype.js +1 -1
- package/src/main/js/sap/ushell/library.js +5 -5
- package/src/main/js/sap/ushell/modules/NavigationMenu.js +3 -4
- package/src/main/js/sap/ushell/navigationMode.js +40 -43
- package/src/main/js/sap/ushell/override.js +53 -53
- package/src/main/js/sap/ushell/performance/FesrEnhancer.js +7 -9
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +48 -52
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +9 -11
- package/src/main/js/sap/ushell/plugins/BaseRTAPlugin.js +106 -107
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +17 -17
- package/src/main/js/sap/ushell/plugins/appwarmup/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/manifest.json +0 -4
- package/src/main/js/sap/ushell/plugins/ghostapp/Component.js +1 -1
- package/src/main/js/sap/ushell/plugins/ghostapp/FakeModel.js +5 -5
- package/src/main/js/sap/ushell/plugins/ghostapp/manifest.json +1 -2
- package/src/main/js/sap/ushell/plugins/rta/Component.js +51 -51
- package/src/main/js/sap/ushell/plugins/rta/manifest.json +0 -4
- package/src/main/js/sap/ushell/plugins/rta-personalize/Component.js +3 -3
- package/src/main/js/sap/ushell/plugins/rta-personalize/manifest.json +0 -4
- package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +81 -79
- package/src/main/js/sap/ushell/renderer/History.js +6 -6
- package/src/main/js/sap/ushell/renderer/LogonFrameProvider.js +27 -27
- package/src/main/js/sap/ushell/renderer/NavContainerRenderer.js +3 -3
- package/src/main/js/sap/ushell/renderer/Renderer.js +74 -62
- package/src/main/js/sap/ushell/renderer/RendererAppContainer.js +5 -5
- package/src/main/js/sap/ushell/renderer/Shell.controller.js +47 -48
- package/src/main/js/sap/ushell/renderer/Shell.view.js +63 -91
- package/src/main/js/sap/ushell/renderer/ShellLayout.js +0 -12
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyApps.controller.js +100 -100
- package/src/main/js/sap/ushell/renderer/allMyApps/AllMyAppsManager.js +103 -93
- package/src/main/js/sap/ushell/renderer/rendererTargetWrapper/Component.js +2 -2
- package/src/main/js/sap/ushell/renderer/rendererTargetWrapper/RendererTarget.controller.js +3 -3
- package/src/main/js/sap/ushell/renderer/resources/resources.properties +4 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +6 -7
- package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +2 -3
- package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +1 -2
- package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +0 -1
- package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +0 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/Component.js +5 -5
- package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/CEPSearchApp.controller.js +3 -5
- package/src/main/js/sap/ushell/renderer/search/searchComponent/controller/SearchApp.controller.js +5 -8
- package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/renderer/search/searchComponent/view/CEPSearchApp.view.js +2 -2
- package/src/main/js/sap/ushell/renderer/search/searchComponent/view/SearchApp.view.js +2 -2
- package/src/main/js/sap/ushell/renderer/search/util.js +5 -6
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.controller.js +42 -41
- package/src/main/js/sap/ushell/renderer/shellHeader/ShellHeader.fragment.xml +2 -1
- package/src/main/js/sap/ushell/renderer/utils.js +4 -4
- package/src/main/js/sap/ushell/renderers/fiori2/History.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/LogonFrameProvider.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/RendererExtensions.js +6 -7
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.controller.js +2 -2
- package/src/main/js/sap/ushell/renderers/fiori2/Shell.view.js +55 -87
- package/src/main/js/sap/ushell/renderers/fiori2/allMyApps/AllMyAppsManager.js +1 -1
- package/src/main/js/sap/ushell/resources.js +18 -22
- package/src/main/js/sap/ushell/services/AppConfiguration.js +1 -1
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +4 -2
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/BookmarkV2.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +142 -158
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +11 -13
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +3 -4
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/ParameterMapping.js +38 -38
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +72 -72
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +229 -247
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +29 -41
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +10 -10
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +26 -31
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +204 -206
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel/PersonalizationProcessor.js +115 -118
- package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +20 -20
- package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +3 -5
- package/src/main/js/sap/ushell/services/CommonDataModel.js +2 -2
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/Extension/Item.js +2 -2
- package/src/main/js/sap/ushell/services/Extension.js +1 -1
- package/src/main/js/sap/ushell/services/FlpLaunchPage.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +4 -4
- package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +2 -2
- package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +1 -1
- package/src/main/js/sap/ushell/services/FrameBoundExtension.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +13 -8
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/Navigation.js +1 -1
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +8 -12
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +17 -14
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +2 -2
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/ShellNavigation.js +2 -2
- package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/UITracer.js +18 -22
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_AppState/AppStatePersistencyMethod.js +2 -2
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +9 -9
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +21 -14
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +66 -67
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +15 -15
- package/src/main/js/sap/ushell/services/_Personalization/ContextContainer.js +65 -79
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainer.js +58 -57
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariant.js +17 -14
- package/src/main/js/sap/ushell/services/_Personalization/PersonalizationContainerVariantSet.js +30 -28
- package/src/main/js/sap/ushell/services/_Personalization/Personalizer.js +38 -24
- package/src/main/js/sap/ushell/services/_Personalization/TransientPersonalizer.js +4 -10
- package/src/main/js/sap/ushell/services/_Personalization/Variant.js +23 -23
- package/src/main/js/sap/ushell/services/_Personalization/VariantSet.js +39 -38
- package/src/main/js/sap/ushell/services/_Personalization/VariantSetAdapter.js +2 -2
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapter.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/WindowAdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/constants.js +5 -5
- package/src/main/js/sap/ushell/services/_Personalization/constants.private.js +1 -1
- package/src/main/js/sap/ushell/services/_Personalization/utils.js +13 -13
- package/src/main/js/sap/ushell/services/appstate/AppState.js +26 -26
- package/src/main/js/sap/ushell/services/appstate/AppStatePersistencyMethod.js +1 -1
- package/src/main/js/sap/ushell/services/appstate/AppStatePersistencySettings.js +4 -4
- package/src/main/js/sap/ushell/services/appstate/LimitedBuffer.js +9 -7
- package/src/main/js/sap/ushell/services/appstate/Sequentializer.js +5 -6
- package/src/main/js/sap/ushell/services/appstate/SequentializingAdapter.js +6 -3
- package/src/main/js/sap/ushell/services/appstate/WindowAdapter.js +20 -16
- package/src/main/js/sap/ushell/state/StateManager.js +3 -2
- package/src/main/js/sap/ushell/state/StateRules.js +9 -4
- package/src/main/js/sap/ushell/state/{BackNavigation.js → modules/BackNavigation.js} +1 -1
- package/src/main/js/sap/ushell/state/{ContentDensity.js → modules/ContentDensity.js} +12 -1
- package/src/main/js/sap/ushell/state/{Favicon.js → modules/Favicon.js} +1 -1
- package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +181 -0
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +100 -92
- package/src/main/js/sap/ushell/support/plugins/flpConfig/i18n/FlpConfigurationPlugin.properties +0 -3
- package/src/main/js/sap/ushell/support/plugins/flpConfig/i18n/FlpConfigurationPlugin_de.properties +0 -3
- package/src/main/js/sap/ushell/support/plugins/flpConfig/i18n/FlpConfigurationPlugin_en.properties +0 -3
- package/src/main/js/sap/ushell/themes/base/AddBookmarkButton.less +5 -0
- package/src/main/js/sap/ushell/themes/base/Factsheet.less +0 -2
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.json +3 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.ttf +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff +0 -0
- package/src/main/js/sap/ushell/themes/base/fonts/BusinessSuiteInAppSymbols.woff2 +0 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/AddBookmarkButton.less +5 -0
- package/src/main/js/sap/ushell/themes/sap_belize_base/Factsheet.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/AnchorItem.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/AnchorItem.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_bluecrystal/AnchorNavigationBar.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/AddBookmarkButton.less +5 -0
- package/src/main/js/sap/ushell/themes/sap_bluecrystal_base/Factsheet.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/AnchorItem.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/AnchorItem.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_hcb/AnchorItem.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_hcb/base_AddBookmarkButton.less +5 -0
- package/src/main/js/sap/ushell/themes/sap_hcb/base_Factsheet.less +0 -2
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/AnchorItem.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/FloatingContainer.less +8 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/library.source.less +1 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/AnchorItem.less +0 -1
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/FloatingContainer.less +8 -0
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/library.source.less +1 -0
- package/src/main/js/sap/ushell/ui/ContentNodeSelector.js +72 -73
- package/src/main/js/sap/ushell/ui/ContentNodeSelectorRenderer.js +3 -3
- package/src/main/js/sap/ushell/ui/ContentNodeTreeItem.js +2 -2
- package/src/main/js/sap/ushell/ui/CustomGroupHeaderListItem.js +6 -6
- package/src/main/js/sap/ushell/ui/CustomGroupHeaderListItemRenderer.js +5 -5
- package/src/main/js/sap/ushell/ui/QuickAccess.js +15 -13
- package/src/main/js/sap/ushell/ui/ShellHeader.js +68 -152
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBox.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternal.js +4 -4
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxInternalRenderer.js +7 -9
- package/src/main/js/sap/ushell/ui/appfinder/AppBoxRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/appfinder/PinButton.js +2 -2
- package/src/main/js/sap/ushell/ui/appfinder/PinButtonRenderer.js +2 -4
- package/src/main/js/sap/ushell/ui/bookmark/SaveOnPage.controller.js +25 -13
- package/src/main/js/sap/ushell/ui/bookmark/SaveOnPage.view.xml +44 -48
- package/src/main/js/sap/ushell/ui/cards/FrequentActivitiesExtension.js +22 -22
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +23 -23
- package/src/main/js/sap/ushell/ui/footerbar/AboutButton.js +5 -5
- package/src/main/js/sap/ushell/ui/footerbar/AboutDialog.controller.js +0 -3
- package/src/main/js/sap/ushell/ui/footerbar/AddBookmarkButton.js +86 -103
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportButton.js +4 -4
- package/src/main/js/sap/ushell/ui/footerbar/ContactSupportDialog.controller.js +3 -3
- package/src/main/js/sap/ushell/ui/footerbar/JamDiscussButton.js +6 -7
- package/src/main/js/sap/ushell/ui/footerbar/JamShareButton.js +12 -12
- package/src/main/js/sap/ushell/ui/footerbar/LogoutButton.js +12 -12
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.controller.js +21 -21
- package/src/main/js/sap/ushell/ui/footerbar/SaveAsTile.view.js +57 -55
- package/src/main/js/sap/ushell/ui/footerbar/SendAsEmailButton.js +13 -13
- package/src/main/js/sap/ushell/ui/launchpad/AccessibilityCustomData.js +4 -4
- package/src/main/js/sap/ushell/ui/launchpad/ActionItem.js +4 -4
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItem.js +3 -3
- package/src/main/js/sap/ushell/ui/launchpad/AnchorItemRenderer.js +5 -5
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBar.js +56 -57
- package/src/main/js/sap/ushell/ui/launchpad/AnchorNavigationBarRenderer.js +8 -8
- package/src/main/js/sap/ushell/ui/launchpad/CatalogEntryContainer.js +36 -38
- package/src/main/js/sap/ushell/ui/launchpad/CatalogsContainer.js +40 -45
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainer.js +18 -18
- package/src/main/js/sap/ushell/ui/launchpad/DashboardGroupsContainerRenderer.js +5 -7
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +33 -33
- package/src/main/js/sap/ushell/ui/launchpad/FailedTileDialog.js +13 -13
- package/src/main/js/sap/ushell/ui/launchpad/GroupHeaderActions.js +13 -13
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItem.js +5 -7
- package/src/main/js/sap/ushell/ui/launchpad/GroupListItemRenderer.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapper.js +18 -18
- package/src/main/js/sap/ushell/ui/launchpad/LinkTileWrapperRenderer.js +9 -9
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialog.js +7 -7
- package/src/main/js/sap/ushell/ui/launchpad/LoadingDialogRenderer.js +4 -4
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +56 -59
- package/src/main/js/sap/ushell/ui/launchpad/PageRenderer.js +3 -3
- package/src/main/js/sap/ushell/ui/launchpad/PlusTile.js +5 -5
- package/src/main/js/sap/ushell/ui/launchpad/PlusTileRenderer.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +142 -142
- package/src/main/js/sap/ushell/ui/launchpad/SectionRenderer.js +8 -8
- package/src/main/js/sap/ushell/ui/launchpad/Tile.js +48 -49
- package/src/main/js/sap/ushell/ui/launchpad/TileContainer.js +60 -57
- package/src/main/js/sap/ushell/ui/launchpad/TileContainerRenderer.js +31 -31
- package/src/main/js/sap/ushell/ui/launchpad/TileContainerUtils.js +71 -71
- package/src/main/js/sap/ushell/ui/launchpad/TileRenderer.js +8 -8
- package/src/main/js/sap/ushell/ui/launchpad/TileState.js +3 -3
- package/src/main/js/sap/ushell/ui/launchpad/TileStateInternal.js +7 -7
- package/src/main/js/sap/ushell/ui/launchpad/TileStateInternalRenderer.js +8 -8
- package/src/main/js/sap/ushell/ui/launchpad/TileStateRenderer.js +1 -2
- package/src/main/js/sap/ushell/ui/launchpad/ViewPortState.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +41 -42
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceAbap.js +25 -25
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceBase.js +3 -3
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceCdm.js +25 -25
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLaunchPage.js +6 -6
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceLink.js +11 -11
- package/src/main/js/sap/ushell/ui/launchpad/VizInstanceRenderer.js +7 -7
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +18 -18
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactAreaRenderer.js +2 -2
- package/src/main/js/sap/ushell/ui/shell/ContentRenderer.js +8 -8
- package/src/main/js/sap/ushell/ui/shell/NavigationMiniTile.js +7 -7
- package/src/main/js/sap/ushell/ui/shell/OverflowListItem.js +5 -5
- package/src/main/js/sap/ushell/ui/shell/RightFloatingContainer.js +55 -55
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +47 -45
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingAction.js +5 -6
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingActionRenderer.js +3 -4
- package/src/main/js/sap/ushell/ui/shell/ShellFloatingActions.js +18 -18
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +28 -28
- package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +33 -35
- package/src/main/js/sap/ushell/ui/shell/SidePane.js +9 -10
- package/src/main/js/sap/ushell/ui/shell/SubHeader.js +3 -3
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +12 -13
- package/src/main/js/sap/ushell/ui/shell/SysInfoBarRenderer.js +7 -7
- package/src/main/js/sap/ushell/ui/shell/ToolArea.js +10 -10
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +9 -9
- package/src/main/js/sap/ushell/ui/tile/DynamicTile.js +5 -5
- package/src/main/js/sap/ushell/ui/tile/DynamicTileRenderer.js +29 -31
- package/src/main/js/sap/ushell/ui/tile/ImageTile.js +3 -4
- package/src/main/js/sap/ushell/ui/tile/ImageTileRenderer.js +2 -4
- package/src/main/js/sap/ushell/ui/tile/StaticTile.js +3 -3
- package/src/main/js/sap/ushell/ui/tile/StaticTileRenderer.js +2 -4
- package/src/main/js/sap/ushell/ui/tile/TileBase.js +4 -6
- package/src/main/js/sap/ushell/ui/tile/TileBaseRenderer.js +20 -21
- package/src/main/js/sap/ushell/ui/utils.js +20 -21
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +0 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +2 -2
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +4 -4
- package/src/main/js/sap/ushell/utils/AppType.js +4 -4
- package/src/main/js/sap/ushell/utils/Deferred.js +2 -3
- package/src/main/js/sap/ushell/utils/DynamicTileRequest.js +6 -9
- package/src/main/js/sap/ushell/utils/HttpClient.js +33 -35
- package/src/main/js/sap/ushell/utils/RestrictedJSONModel.js +3 -3
- package/src/main/js/sap/ushell/utils/UriParameters.js +35 -35
- package/src/main/js/sap/ushell/utils/UrlParsing.js +5 -10
- package/src/main/js/sap/ushell/utils/UrlShortening.js +45 -58
- package/src/main/js/sap/ushell/utils/WindowUtils.js +17 -17
- package/src/main/js/sap/ushell/utils/chipsUtils.js +53 -54
- package/src/main/js/sap/ushell/utils/objectOperations.js +14 -15
- package/src/main/js/sap/ushell/utils/tilecard/TileCard.js +168 -171
- package/src/main/js/sap/ushell/utils/tilecard/TileCardExtension.js +238 -240
- package/src/main/js/sap/ushell/utils/type.js +1 -2
- package/src/main/js/sap/ushell/utils/utilsCdm.js +37 -46
- package/src/main/js/sap/ushell/utils/workpage/DestinationResolver.js +3 -4
- package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +29 -34
- package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +18 -20
- package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +5 -6
- package/src/main/js/sap/ushell/utils.js +195 -196
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +8 -4
- package/ui5.yaml +0 -1
- package/src/main/js/sap/ushell/CanvasShapesManager.js +0 -392
- package/src/main/js/sap/ushell/components/shell/SearchCEP/ProvidersExecuter.js +0 -49
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/Avatar.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/Button.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/Label.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/Menu.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents/MenuItem.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/NotificationList.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/NotificationListGroupItem.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/NotificationListItem.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/ShellBar.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/ShellBarItem.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/ShellBarSpacer.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/UserMenu.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/UserMenuAccount.js +0 -4
- package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/UserMenuItem.js +0 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Copyright (c) 2009-2025 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
|
-
sap.ui.define(
|
|
4
|
-
[
|
|
3
|
+
sap.ui.define([
|
|
5
4
|
"sap/ui/core/Control",
|
|
6
5
|
"sap/ui/model/json/JSONModel",
|
|
7
6
|
"sap/m/Title",
|
|
@@ -16,15 +15,15 @@ sap.ui.define(
|
|
|
16
15
|
"sap/m/SegmentedButton",
|
|
17
16
|
"sap/m/SegmentedButtonItem",
|
|
18
17
|
"sap/m/IllustratedMessage",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"sap/ushell/components/cepsearchresult/app/util/controls/Paginator",
|
|
19
|
+
"sap/ushell/components/cepsearchresult/app/util/appendStyleVars",
|
|
20
|
+
"sap/ushell/components/cepsearchresult/app/util/resources",
|
|
21
21
|
"sap/ui/dom/includeStylesheet",
|
|
22
|
-
"
|
|
22
|
+
"sap/ushell/components/cepsearchresult/app/util/controls/Highlighter",
|
|
23
23
|
"sap/ui/core/ResizeHandler",
|
|
24
24
|
"sap/m/library"
|
|
25
25
|
// "sap/base/util/fetch",
|
|
26
|
-
|
|
27
|
-
function (
|
|
26
|
+
], (
|
|
28
27
|
Control,
|
|
29
28
|
JSONModel,
|
|
30
29
|
Title,
|
|
@@ -41,859 +40,908 @@ sap.ui.define(
|
|
|
41
40
|
IllustratedMessage,
|
|
42
41
|
Paginator,
|
|
43
42
|
appendStyleVars,
|
|
43
|
+
utilResources,
|
|
44
44
|
includeStylesheet,
|
|
45
45
|
Highlighter,
|
|
46
46
|
ResizeHandler,
|
|
47
47
|
mLibrary
|
|
48
48
|
// fetch
|
|
49
|
-
|
|
49
|
+
) => {
|
|
50
50
|
"use strict";
|
|
51
|
+
|
|
51
52
|
appendStyleVars([
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
53
|
+
"sapUiShadowLevel0",
|
|
54
|
+
"sapUiElementBorderCornerRadius",
|
|
55
|
+
"sapUiContentLabelColor",
|
|
56
|
+
"sapUiMarginSmall",
|
|
57
|
+
"sapUiMarginMedium",
|
|
58
|
+
"sapUiMarginTiny",
|
|
59
|
+
"sapUiListBorderColor",
|
|
60
|
+
"sapUiListBackground",
|
|
61
|
+
"sapUiLink",
|
|
62
|
+
"sapMFontMediumSize",
|
|
63
|
+
"sapUiIndication8HoverBackground",
|
|
64
|
+
"sapUiButtonCriticalBackground",
|
|
65
|
+
"sapUiAccentBackgroundColor10",
|
|
66
|
+
"sapUiButtonNegativeActiveBackground",
|
|
67
|
+
"sapUiButtonSuccessActiveBackground",
|
|
68
|
+
"sapUiButtonNeutralBackground",
|
|
69
|
+
"sapUiTileBackground",
|
|
70
|
+
"sapUiExtraLightBG",
|
|
71
|
+
"sapUiButtonLiteActionSelectHoverBackground"
|
|
71
72
|
]);
|
|
72
73
|
|
|
73
74
|
// Include the css for the control once
|
|
74
75
|
includeStylesheet(sap.ui.require.toUrl("sap/ushell/components/cepsearchresult/app/util/controls/Category.css"));
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
const IllustrationType = mLibrary.IllustratedMessageType;
|
|
77
78
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
const defaultItemWidths = {
|
|
80
|
+
tile: 190,
|
|
81
|
+
card: 400
|
|
81
82
|
};
|
|
82
83
|
|
|
83
84
|
// Fix object identifier handle press
|
|
84
85
|
ObjectIdentifier.prototype._handlePress = function (oEvent) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
const oClickedItem = oEvent.target;
|
|
87
|
+
if (this.getTitleActive() && this.getDomRef().querySelector(".sapMObjectIdentifierTitle").contains(oClickedItem)) { // checking if the title is clicked
|
|
88
|
+
this.fireTitlePress({
|
|
89
|
+
domRef: oClickedItem
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// mark the event that it is handled by the control
|
|
93
|
+
oEvent.setMarked();
|
|
94
|
+
}
|
|
95
|
+
};
|
|
90
96
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var Category = Control.extend(
|
|
97
|
-
"sap.ushell.components.cepsearchresult.app.util.controls.Category", /** @lends sap.ushell.components.cepsearchresult.app.categories.util.Category.prototype */ {
|
|
98
|
-
constructor: function (mCategoryConfig, oEdition, mSettings) {
|
|
99
|
-
this._oCategoryConfig = mCategoryConfig;
|
|
100
|
-
this._oEdition = oEdition;
|
|
101
|
-
Control.apply(this, [mSettings]);
|
|
102
|
-
},
|
|
103
|
-
metadata: {
|
|
104
|
-
properties: {
|
|
105
|
-
pageSize: {
|
|
106
|
-
type: "int",
|
|
107
|
-
defaultValue: 10
|
|
108
|
-
},
|
|
109
|
-
showHeader: {
|
|
110
|
-
type: "boolean",
|
|
111
|
-
defaultValue: true
|
|
112
|
-
},
|
|
113
|
-
showFooter: {
|
|
114
|
-
type: "boolean",
|
|
115
|
-
defaultValue: true
|
|
116
|
-
},
|
|
117
|
-
allowViewSwitch: {
|
|
118
|
-
type: "boolean",
|
|
119
|
-
defaultValue: true
|
|
97
|
+
const Category = Control.extend(
|
|
98
|
+
"sap.ushell.components.cepsearchresult.app.util.controls.Category", /** @lends sap.ushell.components.cepsearchresult.app.categories.util.Category.prototype */ {
|
|
99
|
+
constructor: function (mCategoryConfig, oEdition, mSettings) {
|
|
100
|
+
this._oCategoryConfig = mCategoryConfig;
|
|
101
|
+
Control.apply(this, [mSettings]);
|
|
120
102
|
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
103
|
+
metadata: {
|
|
104
|
+
properties: {
|
|
105
|
+
pageSize: {
|
|
106
|
+
type: "int",
|
|
107
|
+
defaultValue: 10
|
|
108
|
+
},
|
|
109
|
+
showHeader: {
|
|
110
|
+
type: "boolean",
|
|
111
|
+
defaultValue: true
|
|
112
|
+
},
|
|
113
|
+
showFooter: {
|
|
114
|
+
type: "boolean",
|
|
115
|
+
defaultValue: true
|
|
116
|
+
},
|
|
117
|
+
allowViewSwitch: {
|
|
118
|
+
type: "boolean",
|
|
119
|
+
defaultValue: true
|
|
120
|
+
},
|
|
121
|
+
currentView: {
|
|
122
|
+
type: "string",
|
|
123
|
+
defaultValue: "categoryDefault"
|
|
124
|
+
},
|
|
125
|
+
highlightResult: {
|
|
126
|
+
type: "boolean",
|
|
127
|
+
defaultValue: true
|
|
128
|
+
},
|
|
129
|
+
useIllustrations: {
|
|
130
|
+
type: "boolean",
|
|
131
|
+
defaultValue: false
|
|
132
|
+
},
|
|
133
|
+
initialPlaceholder: {
|
|
134
|
+
type: "boolean",
|
|
135
|
+
defaultValue: false
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
aggregations: {
|
|
139
|
+
_header: {
|
|
140
|
+
type: "sap.ui.core.Control",
|
|
141
|
+
multiple: false
|
|
142
|
+
},
|
|
143
|
+
_list: {
|
|
144
|
+
type: "sap.ui.core.Control",
|
|
145
|
+
multiple: false
|
|
146
|
+
},
|
|
147
|
+
_footer: {
|
|
148
|
+
type: "sap.ui.core.Control",
|
|
149
|
+
multiple: false
|
|
150
|
+
},
|
|
151
|
+
_nodata: {
|
|
152
|
+
type: "sap.ui.core.Control",
|
|
153
|
+
multiple: false
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
events: {
|
|
157
|
+
itemNavigate: {},
|
|
158
|
+
viewAll: {},
|
|
159
|
+
beforeSearch: {},
|
|
160
|
+
afterSearch: {},
|
|
161
|
+
afterRendering: {}
|
|
162
|
+
}
|
|
124
163
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
type: "sap.ui.core.Control",
|
|
141
|
-
multiple: false
|
|
142
|
-
},
|
|
143
|
-
_list: {
|
|
144
|
-
type: "sap.ui.core.Control",
|
|
145
|
-
multiple: false
|
|
146
|
-
},
|
|
147
|
-
_footer: {
|
|
148
|
-
type: "sap.ui.core.Control",
|
|
149
|
-
multiple: false
|
|
150
|
-
},
|
|
151
|
-
_nodata: {
|
|
152
|
-
type: "sap.ui.core.Control",
|
|
153
|
-
multiple: false
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
events: {
|
|
157
|
-
itemNavigate: {},
|
|
158
|
-
viewAll: {},
|
|
159
|
-
beforeSearch: {},
|
|
160
|
-
afterSearch: {},
|
|
161
|
-
afterRendering: {}
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
renderer: function (rm, oControl) {
|
|
165
|
-
|
|
166
|
-
rm.openStart("div", oControl);
|
|
167
|
-
rm.class("sapUiCEPSearchCat");
|
|
168
|
-
rm.openEnd();
|
|
169
|
-
|
|
170
|
-
var oHeader = oControl.getAggregation("_header"),
|
|
171
|
-
oList = oControl.getAggregation("_list"),
|
|
172
|
-
oFooter = oControl.getAggregation("_footer"),
|
|
173
|
-
oNoDataIllustration = oControl.getAggregation("_nodata");
|
|
174
|
-
|
|
175
|
-
if (oHeader) {
|
|
176
|
-
rm.renderControl(oHeader);
|
|
177
|
-
}
|
|
178
|
-
if (oControl.getUseIllustrations() &&
|
|
164
|
+
renderer: function (rm, oControl) {
|
|
165
|
+
|
|
166
|
+
rm.openStart("div", oControl);
|
|
167
|
+
rm.class("sapUiCEPSearchCat");
|
|
168
|
+
rm.openEnd();
|
|
169
|
+
|
|
170
|
+
const oHeader = oControl.getAggregation("_header");
|
|
171
|
+
const oList = oControl.getAggregation("_list");
|
|
172
|
+
const oFooter = oControl.getAggregation("_footer");
|
|
173
|
+
const oNoDataIllustration = oControl.getAggregation("_nodata");
|
|
174
|
+
|
|
175
|
+
if (oHeader) {
|
|
176
|
+
rm.renderControl(oHeader);
|
|
177
|
+
}
|
|
178
|
+
if (oControl.getUseIllustrations() &&
|
|
179
179
|
oNoDataIllustration &&
|
|
180
180
|
oNoDataIllustration.getVisible()) {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
181
|
+
rm.renderControl(oNoDataIllustration);
|
|
182
|
+
} else if (oList) {
|
|
183
|
+
rm.renderControl(oList);
|
|
184
|
+
}
|
|
185
|
+
if (oFooter) {
|
|
186
|
+
rm.renderControl(oFooter);
|
|
187
|
+
}
|
|
188
|
+
rm.close("div");
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
191
|
|
|
192
192
|
Category._iDataRefreshMs = 1000000000;
|
|
193
193
|
Category._iCountRefreshMs = 1000000000;
|
|
194
194
|
|
|
195
195
|
Category.CustomListItem = CustomListItem.extend("sap.ushell.components.cepsearchresult.app.util.controls.Category.CustomListItem", {
|
|
196
|
-
|
|
196
|
+
renderer: CustomListItem.getMetadata().getRenderer()
|
|
197
197
|
});
|
|
198
198
|
|
|
199
199
|
Category.CustomListItem.prototype.onAfterRendering = function () {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
if (CustomListItem.prototype.onAfterRendering) {
|
|
201
|
+
CustomListItem.prototype.onAfterRendering.apply(this, arguments);
|
|
202
|
+
const oItemDomRef = this.getDomRef();
|
|
203
|
+
const oPaginator = this.getParent().getParent().getPaginator();
|
|
204
|
+
if (!oItemDomRef || !oPaginator) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
oItemDomRef.setAttribute("aria-setsize",
|
|
208
|
+
oPaginator.getCount()
|
|
209
|
+
);
|
|
210
|
+
oItemDomRef.setAttribute("aria-posinset",
|
|
211
|
+
((oPaginator.getCurrentPage() - 1) *
|
|
212
|
+
oPaginator.getPageSize()) +
|
|
213
|
+
parseInt(oItemDomRef.getAttribute("aria-posinset"), 10)
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
this._activeHandling(this.$());
|
|
204
218
|
};
|
|
205
219
|
|
|
206
220
|
Category.CustomListItem.prototype._activeHandling = function ($This) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
221
|
+
$This.removeClass("sapMLIBActive");
|
|
222
|
+
$This.removeClass("sapMLIBActionable");
|
|
223
|
+
$This.removeClass("sapMLIBHoverable");
|
|
224
|
+
$This.toggleClass("sapUiCEPSearchCatLIActive", this._active);
|
|
211
225
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
226
|
+
if (this.isActionable(true)) {
|
|
227
|
+
$This.toggleClass("sapUiCEPSearchCatLIHoverable", !this._active);
|
|
228
|
+
}
|
|
215
229
|
};
|
|
216
230
|
|
|
217
231
|
Category.SearchResultList = List.extend("sap.ushell.components.cepsearchresult.app.util.controls.Category.SearchResultList", {
|
|
218
|
-
|
|
232
|
+
renderer: List.getMetadata().getRenderer()
|
|
219
233
|
});
|
|
220
234
|
|
|
221
235
|
Category.SearchResultList.prototype._getCurrentColCount = function () {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
236
|
+
if (this.getDomRef()) {
|
|
237
|
+
const aItems = this.getDomRef().querySelectorAll(".sapMListItems > LI");
|
|
238
|
+
let iCols = 1;
|
|
239
|
+
const iTop = aItems[0].offsetTop;
|
|
240
|
+
for (let i = 1; i < aItems.length && aItems[i].offsetTop <= iTop; i++) {
|
|
241
|
+
iCols++;
|
|
242
|
+
}
|
|
243
|
+
return iCols;
|
|
228
244
|
}
|
|
229
|
-
return iCols;
|
|
230
|
-
}
|
|
231
245
|
};
|
|
232
246
|
|
|
233
247
|
Category.SearchResultList.prototype._startItemNavigation = function () {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
248
|
+
List.prototype._startItemNavigation.apply(this, [false]);
|
|
249
|
+
const iColCount = this._getCurrentColCount();
|
|
250
|
+
const aTiles = Array.from(this.getDomRef().querySelectorAll(".sapMGT"));
|
|
251
|
+
if (this._oItemNavigation && iColCount > 1 && aTiles.length > 0) {
|
|
252
|
+
this._oItemNavigation.setTableMode(false, true).setColumns(iColCount);
|
|
253
|
+
} else if (this._oItemNavigation) {
|
|
254
|
+
this._oItemNavigation.setTableMode(false, true).setColumns(iColCount);
|
|
255
|
+
}
|
|
242
256
|
};
|
|
243
257
|
|
|
244
258
|
Category.prototype.init = function () {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
259
|
+
this.setModel(utilResources.model, "i18n");
|
|
260
|
+
this.setModel(new JSONModel({}), "data");
|
|
261
|
+
this._iCurrentCount = 0;
|
|
262
|
+
this._oDirty = {
|
|
263
|
+
iDataFetchRequired: 0,
|
|
264
|
+
iCountFetchRequired: 0
|
|
265
|
+
};
|
|
266
|
+
this._oNoDataIllustration = null;
|
|
267
|
+
this._oErrorIllustration = null;
|
|
268
|
+
this._iCurrentHeight = 0;
|
|
269
|
+
this._iAfterRendering = 0;
|
|
270
|
+
this._iAfterRenderingEventDelay = 60;
|
|
271
|
+
this._oPaginator = null;
|
|
272
|
+
this.addContent();
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
Category.prototype.getPaginator = function () {
|
|
276
|
+
return this._oPaginator;
|
|
260
277
|
};
|
|
261
278
|
|
|
262
279
|
Category.prototype.addContent = function () {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
280
|
+
this.setAggregation("_header", this.createHeader());
|
|
281
|
+
this.setAggregation("_list", this.createList());
|
|
282
|
+
this.setAggregation("_footer", this.createFooter());
|
|
266
283
|
};
|
|
267
284
|
|
|
268
285
|
Category.prototype.getKey = function () {
|
|
269
|
-
|
|
286
|
+
return this._oCategoryConfig.name;
|
|
270
287
|
};
|
|
271
288
|
|
|
272
289
|
Category.prototype.translate = function (sSubKey, aArgs) {
|
|
273
|
-
|
|
274
|
-
|
|
290
|
+
const sCatKey = this._oCategoryConfig.translation;
|
|
291
|
+
return utilResources.bundle.getText(`${sCatKey}.${sSubKey}`, aArgs || []);
|
|
275
292
|
};
|
|
276
293
|
|
|
277
294
|
Category.prototype.updateDataModel = function (oData) {
|
|
278
|
-
|
|
295
|
+
this.setModel(new JSONModel(oData), "data");
|
|
279
296
|
};
|
|
280
297
|
|
|
281
298
|
Category.prototype.initialData = function (iCount) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
299
|
+
const oModel = this.getModel("data");
|
|
300
|
+
if (!oModel && this.getInitialPlaceholder() && this.getPlaceholderData()) {
|
|
301
|
+
const aData = [];
|
|
302
|
+
for (let i = 0; i < iCount; i++) {
|
|
303
|
+
aData.push(this.getPlaceholderData());
|
|
304
|
+
}
|
|
305
|
+
this.updateDataModel({
|
|
306
|
+
data: aData
|
|
307
|
+
});
|
|
308
|
+
}
|
|
292
309
|
};
|
|
293
310
|
|
|
294
311
|
Category.prototype.resetDataRequired = function (sSearchTerm, iSkip, iTop) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
312
|
+
if (this._bResetData) {
|
|
313
|
+
this._sSearchTerm = sSearchTerm;
|
|
314
|
+
this._iSkip = iSkip;
|
|
315
|
+
this._iTop = iTop;
|
|
316
|
+
return true;
|
|
317
|
+
}
|
|
318
|
+
const bVisible = this.getVisible();
|
|
319
|
+
if (
|
|
320
|
+
this._sSearchTerm === sSearchTerm &&
|
|
304
321
|
(this._iSkip === iSkip &&
|
|
305
322
|
this._iTop === iTop &&
|
|
306
323
|
(bVisible && this._oDirty.iDataFetchRequired > Date.now())) ||
|
|
307
324
|
(!bVisible && this._oDirty.iCountFetchRequired > Date.now())
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
325
|
+
) {
|
|
326
|
+
return false;
|
|
327
|
+
}
|
|
328
|
+
this._sSearchTerm = sSearchTerm;
|
|
329
|
+
this._iSkip = iSkip;
|
|
330
|
+
this._iTop = iTop;
|
|
331
|
+
return true;
|
|
315
332
|
};
|
|
316
333
|
|
|
317
334
|
Category.prototype.resetData = function () {
|
|
318
|
-
|
|
319
|
-
|
|
335
|
+
this._bResetData = true;
|
|
336
|
+
this.updateDataModel({});
|
|
320
337
|
};
|
|
321
338
|
|
|
322
339
|
Category.prototype.search = function (sSearchTerm, iSkip, iTop, bForced) {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
bSearchTermChanged = this._sSearchTerm !== sSearchTerm
|
|
330
|
-
pFetch
|
|
331
|
-
oCurrentData = this.getModel("data").getData() || {};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
340
|
+
iTop = isNaN(iTop) || iTop < 0 ? this._iTop || this.getPageSize() : iTop;
|
|
341
|
+
iSkip = isNaN(iSkip) || iSkip < 0 ? this._iSkip || 0 : iSkip;
|
|
342
|
+
if (typeof sSearchTerm !== "string") {
|
|
343
|
+
sSearchTerm = this.getSearchTerm();
|
|
344
|
+
}
|
|
345
|
+
const bVisible = this.getVisible();
|
|
346
|
+
const bSearchTermChanged = this._sSearchTerm !== sSearchTerm;
|
|
347
|
+
let pFetch;
|
|
348
|
+
const oCurrentData = this.getModel("data").getData() || {};
|
|
349
|
+
|
|
350
|
+
if (!bForced && !this.resetDataRequired(sSearchTerm, iSkip, iTop)) {
|
|
351
|
+
this.fireFetchEvent("before", "skipped", oCurrentData);
|
|
352
|
+
this.fireFetchEvent("after", "skipped", oCurrentData);
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
this._iCurrentCount = 0;
|
|
357
|
+
this._bResetData = false;
|
|
358
|
+
this._bIsLoading = true;
|
|
359
|
+
|
|
360
|
+
this.fireFetchEvent("before", bVisible ? "data" : "count", performance.now(), oCurrentData);
|
|
361
|
+
|
|
362
|
+
if (bVisible) {
|
|
363
|
+
this.setNoDataText(this.translate("LoadingData"), "Loading");
|
|
364
|
+
this.initialData(iTop);
|
|
365
|
+
this.showLoadingPlaceholder(true);
|
|
366
|
+
this._oDirty.iDataFetchRequired = (Date.now() + Category._iDataRefreshMs);
|
|
367
|
+
pFetch = this.fetchData(sSearchTerm, iSkip, iTop);
|
|
368
|
+
pFetch = pFetch.then(this.applyDataChange.bind(this, bSearchTermChanged));
|
|
369
|
+
} else {
|
|
370
|
+
pFetch = this.fetchCount(sSearchTerm, iSkip, iTop);
|
|
371
|
+
pFetch = pFetch.then(this.applyCount.bind(this));
|
|
372
|
+
}
|
|
373
|
+
this._oDirty.iCountFetchRequired = (Date.now() + Category._iCountRefreshMs);
|
|
374
|
+
|
|
375
|
+
if (pFetch) {
|
|
376
|
+
pFetch.then((oData) => {
|
|
377
|
+
this._iCurrentCount = oData.count || 0;
|
|
378
|
+
setTimeout(() => {
|
|
379
|
+
this.setNoDataText(this.translate("NoData"), "NoData");
|
|
380
|
+
}, 100);
|
|
381
|
+
this.fireFetchEvent("after", bVisible ? "data" : "count", oData);
|
|
382
|
+
});
|
|
383
|
+
}
|
|
367
384
|
};
|
|
368
385
|
|
|
369
386
|
Category.prototype.getMaxRowItemsAsync = function () {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
387
|
+
if (!this.getDomRef()) {
|
|
388
|
+
return new Promise((resolve) => {
|
|
389
|
+
setTimeout(() => {
|
|
390
|
+
resolve(this._getMaxRowItems());
|
|
391
|
+
}, 200);
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
return Promise.resolve(this._getMaxRowItems());
|
|
378
395
|
};
|
|
379
396
|
|
|
380
397
|
Category.prototype._getMaxRowItems = function () {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
398
|
+
if (this.getDomRef()) {
|
|
399
|
+
const iPixelWidth = this.getDomRef().clientWidth;
|
|
400
|
+
return Math.floor(iPixelWidth / (defaultItemWidths[this.getCurrentView()] || iPixelWidth));
|
|
401
|
+
}
|
|
402
|
+
return 1;
|
|
386
403
|
};
|
|
387
404
|
|
|
388
405
|
|
|
389
406
|
Category.prototype.applyDataChange = function (bSearchTermChanged, oResultData) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
407
|
+
const oData = {
|
|
408
|
+
count: oResultData.count,
|
|
409
|
+
top: this.getPageSize(),
|
|
410
|
+
skip: this._iSkip,
|
|
411
|
+
page: Math.floor(this._iSkip / this.getPageSize()) + 1,
|
|
412
|
+
data: oResultData.data
|
|
413
|
+
};
|
|
414
|
+
this.showLoadingPlaceholder(false, () => {
|
|
415
|
+
this.updateDataModel(oData);
|
|
416
|
+
this.fixHeight(bSearchTermChanged);
|
|
417
|
+
});
|
|
418
|
+
return oData;
|
|
402
419
|
};
|
|
403
420
|
|
|
404
421
|
Category.prototype.applyCount = function (oResultData) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
422
|
+
const oData = {
|
|
423
|
+
count: oResultData.count,
|
|
424
|
+
top: this._iTop,
|
|
425
|
+
skip: this._iSkip,
|
|
426
|
+
page: Math.floor(this._iSkip / this._iTop) + 1,
|
|
427
|
+
data: []
|
|
428
|
+
};
|
|
429
|
+
this.updateDataModel(oData);
|
|
430
|
+
return oData;
|
|
414
431
|
};
|
|
415
432
|
|
|
416
433
|
Category.prototype.fireFetchEvent = function (sBeforeAfter, sFetchType, oResultData) {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
434
|
+
const oEventData = {
|
|
435
|
+
count: oResultData ? oResultData.count || 0 : 0,
|
|
436
|
+
category: this.getKey(),
|
|
437
|
+
top: this._iTop,
|
|
438
|
+
skip: this._iSkip,
|
|
439
|
+
page: (this._iSkip / this._iTop) + 1,
|
|
440
|
+
searchTerm: this._sSearchTerm,
|
|
441
|
+
visible: this.getVisible(),
|
|
442
|
+
time: performance.now(),
|
|
443
|
+
fetchType: sFetchType
|
|
444
|
+
};
|
|
445
|
+
if (sBeforeAfter === "before") {
|
|
446
|
+
this.fireBeforeSearch(oEventData);
|
|
447
|
+
} else if (sBeforeAfter === "after") {
|
|
448
|
+
this.fireAfterSearch(oEventData);
|
|
449
|
+
|
|
450
|
+
}
|
|
433
451
|
};
|
|
434
452
|
|
|
435
453
|
Category.prototype.fetchData = function (sSearchTerm, iSkip, iTop) {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
454
|
+
return Promise.resolve({
|
|
455
|
+
data: [],
|
|
456
|
+
count: 0
|
|
457
|
+
});
|
|
440
458
|
};
|
|
441
459
|
|
|
442
460
|
Category.prototype.fetchCount = function (sSearchTerm, iSkip, iTop) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
461
|
+
return Promise.resolve({
|
|
462
|
+
data: [],
|
|
463
|
+
count: 0
|
|
464
|
+
});
|
|
447
465
|
};
|
|
448
466
|
|
|
449
467
|
Category.prototype.showLoadingPlaceholder = function (bShow, fAfterPlaceholderHidden) {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
this._iShowLoader = setTimeout(
|
|
455
|
-
function () {
|
|
456
|
-
this._oList.addStyleClass("loading");
|
|
457
|
-
}.bind(this), 200
|
|
458
|
-
);
|
|
459
|
-
} else if (this._iShowLoader) {
|
|
460
|
-
clearTimeout(this._iShowLoader);
|
|
461
|
-
this._iShowLoader = setTimeout(
|
|
462
|
-
function () {
|
|
463
|
-
this._oList.removeStyleClass("loading");
|
|
464
|
-
if (fAfterPlaceholderHidden) {
|
|
465
|
-
fAfterPlaceholderHidden();
|
|
468
|
+
if (bShow) {
|
|
469
|
+
if (this._iShowLoader) {
|
|
470
|
+
clearTimeout(this._iShowLoader);
|
|
466
471
|
}
|
|
467
|
-
this.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
+
this._iShowLoader = setTimeout(
|
|
473
|
+
() => {
|
|
474
|
+
this._oList.addStyleClass("loading");
|
|
475
|
+
}, 200
|
|
476
|
+
);
|
|
477
|
+
} else if (this._iShowLoader) {
|
|
478
|
+
clearTimeout(this._iShowLoader);
|
|
479
|
+
this._iShowLoader = setTimeout(
|
|
480
|
+
() => {
|
|
481
|
+
this._oList.removeStyleClass("loading");
|
|
482
|
+
if (fAfterPlaceholderHidden) {
|
|
483
|
+
fAfterPlaceholderHidden();
|
|
484
|
+
}
|
|
485
|
+
this.invalidate();
|
|
486
|
+
this._bIsLoading = false;
|
|
487
|
+
}, this._oList.hasStyleClass("loading") ? 100 : 0
|
|
488
|
+
);
|
|
489
|
+
}
|
|
472
490
|
};
|
|
473
491
|
|
|
474
492
|
Category.prototype.isLoading = function () {
|
|
475
|
-
|
|
493
|
+
return this._bIsLoading;
|
|
476
494
|
};
|
|
477
495
|
|
|
478
496
|
Category.prototype.getPlaceholderData = function () {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
497
|
+
return {
|
|
498
|
+
text: " ",
|
|
499
|
+
description: " "
|
|
500
|
+
};
|
|
483
501
|
};
|
|
484
502
|
|
|
485
503
|
Category.prototype.refreshData = function () {
|
|
486
|
-
|
|
487
|
-
|
|
504
|
+
this._oDirty.iDataFetchRequired = 0;
|
|
505
|
+
this.search(this.getSearchTerm(), 0, this.getPageSize());
|
|
488
506
|
};
|
|
489
507
|
|
|
490
508
|
Category.prototype.bindListViewItems = function (sView) {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
509
|
+
const oTemplate = this.getItemTemplate(sView);
|
|
510
|
+
this._oList.addStyleClass(sView);
|
|
511
|
+
this._oList.bindItems({
|
|
512
|
+
path: "data>/data",
|
|
513
|
+
template: oTemplate,
|
|
514
|
+
templateShareable: false
|
|
515
|
+
});
|
|
498
516
|
};
|
|
499
517
|
|
|
500
518
|
Category.prototype.setNoDataText = function (sText, sType) {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
519
|
+
this.updateIllustration(sText, "Hide");
|
|
520
|
+
if (this._oList && !this.bPaging) {
|
|
521
|
+
this._oList.setNoDataText(" ");
|
|
522
|
+
this.updateIllustration(sText, sType);
|
|
523
|
+
this._oList.setNoDataText(sText);
|
|
524
|
+
}
|
|
507
525
|
};
|
|
508
526
|
|
|
509
527
|
Category.prototype.getItemTemplate = function (sView) {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
528
|
+
let oTemplate = null;
|
|
529
|
+
switch (sView) {
|
|
530
|
+
case "card": oTemplate = this.createCardItemTemplate(); break;
|
|
531
|
+
case "tile": oTemplate = this.createTileItemTemplate(); break;
|
|
532
|
+
default: oTemplate = this.createListItemTemplate();
|
|
533
|
+
}
|
|
534
|
+
return oTemplate.addStyleClass(`sapUiCEPSearchCatLI ${sView} ${this.getKey()}`);
|
|
517
535
|
};
|
|
518
536
|
|
|
519
537
|
Category.prototype.setFooter = function (sType) {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
538
|
+
if (sType === "viewAll") {
|
|
539
|
+
this.setAggregation("_footer", this.createFooter(sType));
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
Category.prototype.focusCategory = function () {
|
|
544
|
+
this._forceFocus = "parent";
|
|
523
545
|
};
|
|
524
546
|
|
|
525
547
|
Category.prototype.createHeader = function () {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
548
|
+
this._oHeader = new OverflowToolbar({
|
|
549
|
+
content: [
|
|
550
|
+
new ToolbarSpacer({ width: ".5rem" }),
|
|
551
|
+
this.createTitle(),
|
|
552
|
+
this.createCounter(),
|
|
553
|
+
new ToolbarSpacer(),
|
|
554
|
+
this.createViewButtons(),
|
|
555
|
+
new ToolbarSpacer({ width: "1rem" })
|
|
556
|
+
]
|
|
557
|
+
}).addStyleClass("sapUiCEPSearchCatHeaderTB");
|
|
558
|
+
return this._oHeader;
|
|
537
559
|
};
|
|
538
560
|
|
|
539
561
|
Category.prototype.getPaginatorSettings = function () {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
562
|
+
return {
|
|
563
|
+
visible: true,
|
|
564
|
+
count: "{= ${data>/count}}",
|
|
565
|
+
pageSize: "{= ${data>/top}}",
|
|
566
|
+
currentPage: "{= ${data>/page}}",
|
|
567
|
+
selectPage: function (oEvent) {
|
|
568
|
+
this.fixHeight();
|
|
569
|
+
this.bPaging = true;
|
|
570
|
+
this._forceFocus = "page";
|
|
571
|
+
this._forceFocusPage = oEvent.mParameters.page;
|
|
572
|
+
this.search(
|
|
573
|
+
this.getSearchTerm(),
|
|
574
|
+
oEvent.getParameter("startIndex"),
|
|
575
|
+
oEvent.getParameter("pageSize")
|
|
576
|
+
);
|
|
577
|
+
this.bPaging = false;
|
|
578
|
+
}.bind(this)
|
|
579
|
+
};
|
|
557
580
|
};
|
|
558
581
|
|
|
559
582
|
Category.prototype.getSearchTerm = function () {
|
|
560
|
-
|
|
583
|
+
return this._sSearchTerm || "";
|
|
561
584
|
};
|
|
562
585
|
|
|
563
586
|
Category.prototype.getResultCount = function () {
|
|
564
|
-
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
Category.prototype.getResourceModel = function () {
|
|
568
|
-
return this._oEdition.getResourceModel();
|
|
587
|
+
return this.getModel("data").getProperty("/count");
|
|
569
588
|
};
|
|
570
589
|
|
|
571
590
|
Category.prototype.getViewSettings = function () {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
591
|
+
return {
|
|
592
|
+
views: [
|
|
593
|
+
{
|
|
594
|
+
key: "list",
|
|
595
|
+
icon: "sap-icon://text-align-justified"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
key: "card",
|
|
599
|
+
icon: "sap-icon://business-card"
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
default: "list"
|
|
603
|
+
};
|
|
585
604
|
};
|
|
586
605
|
|
|
587
606
|
Category.prototype.getDefaultIcon = function () {
|
|
588
|
-
|
|
607
|
+
return this._oCategoryConfig.icon.src;
|
|
589
608
|
};
|
|
590
609
|
|
|
591
610
|
Category.prototype.getCurrentView = function () {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
611
|
+
const sCurrentView = this.getProperty("currentView");
|
|
612
|
+
if (sCurrentView === "categoryDefault") {
|
|
613
|
+
this.setProperty("currentView", this.getViewSettings().default);
|
|
614
|
+
return this.getViewSettings().default;
|
|
615
|
+
}
|
|
616
|
+
return sCurrentView;
|
|
598
617
|
};
|
|
599
618
|
|
|
600
619
|
Category.prototype.setShowHeader = function (bShow) {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
620
|
+
this._oHeader.setVisible(bShow);
|
|
621
|
+
this._oList.removeStyleClass("noheader");
|
|
622
|
+
if (!bShow) {
|
|
623
|
+
this._oList.addStyleClass("noheader");
|
|
624
|
+
}
|
|
625
|
+
return this.setProperty("showHeader", bShow);
|
|
607
626
|
};
|
|
608
627
|
|
|
609
628
|
Category.prototype.setShowFooter = function (bShow) {
|
|
610
|
-
|
|
611
|
-
|
|
629
|
+
this.getAggregation("_footer").setVisible(bShow);
|
|
630
|
+
return this.setProperty("showFooter", bShow);
|
|
612
631
|
};
|
|
613
632
|
|
|
614
633
|
Category.prototype.setAllowViewSwitch = function (bShow) {
|
|
615
|
-
|
|
616
|
-
|
|
634
|
+
this._oViewSwitch.setVisible(bShow && this._oViewSwitch.getItems().length > 1);
|
|
635
|
+
return this.setProperty("allowViewSwitch", bShow);
|
|
617
636
|
};
|
|
618
637
|
|
|
619
638
|
Category.prototype.setCurrentView = function (sView) {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
639
|
+
const sPreviousView = this.getCurrentView();
|
|
640
|
+
if (sPreviousView !== sView) {
|
|
641
|
+
this._oList.unbindItems();
|
|
642
|
+
this.setProperty("currentView", sView);
|
|
643
|
+
sView = this.getCurrentView();
|
|
644
|
+
this._oViewSwitch.setSelectedKey(sView);
|
|
645
|
+
this._oList.removeStyleClass(sPreviousView);
|
|
646
|
+
this.bindListViewItems(sView);
|
|
647
|
+
this._oList.addStyleClass(sView);
|
|
648
|
+
this._iCurrentHeight = 0;
|
|
649
|
+
this.search(this._sSearchTerm, this._iSkip, this.iTop, true);
|
|
650
|
+
}
|
|
651
|
+
return this;
|
|
633
652
|
};
|
|
634
653
|
|
|
635
654
|
Category.prototype.setPageSize = function (iValue) {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
655
|
+
this.setProperty("pageSize", iValue);
|
|
656
|
+
if (this.getDomRef()) {
|
|
657
|
+
this.refreshData();
|
|
658
|
+
}
|
|
659
|
+
return this;
|
|
641
660
|
};
|
|
642
661
|
|
|
643
662
|
Category.prototype.createCounter = function () {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
663
|
+
return new Title({
|
|
664
|
+
text: "{= isNaN(${data>/count}) ? '...' : '('+ ${data>/count} + ')'}",
|
|
665
|
+
level: "H4"
|
|
666
|
+
});
|
|
648
667
|
};
|
|
649
668
|
|
|
650
669
|
Category.prototype.createTitle = function () {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
670
|
+
this._oTitle = new Title({
|
|
671
|
+
text: this._oCategoryConfig.title,
|
|
672
|
+
level: "H4"
|
|
673
|
+
});
|
|
674
|
+
return this._oTitle;
|
|
656
675
|
};
|
|
657
676
|
|
|
658
677
|
Category.prototype.createList = function () {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
678
|
+
this._oList = new Category.SearchResultList({
|
|
679
|
+
inset: false,
|
|
680
|
+
noDataText: " ",
|
|
681
|
+
growing: true,
|
|
682
|
+
growingThreshold: "{= ${data>/count}}"
|
|
683
|
+
});
|
|
684
|
+
this._oList.addStyleClass("sapUiCEPSearchCatList");
|
|
685
|
+
this.bindListViewItems(this.getCurrentView());
|
|
686
|
+
return this._oList;
|
|
667
687
|
};
|
|
668
688
|
|
|
669
689
|
Category.prototype.createViewButtons = function () {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
690
|
+
const oViewSettings = this.getViewSettings();
|
|
691
|
+
const aItems = oViewSettings.views.map((oView) => {
|
|
692
|
+
const sKey = oView.key.charAt(0).toUpperCase() + oView.key.slice(1);
|
|
693
|
+
oView.tooltip = `{i18n>CATEGORY.Views.${sKey}ButtonTooltip}`;
|
|
694
|
+
return new SegmentedButtonItem(oView);
|
|
695
|
+
});
|
|
696
|
+
this._oViewSwitch = new SegmentedButton({
|
|
697
|
+
selectedKey: this.getCurrentView(),
|
|
698
|
+
visible: aItems.length > 1,
|
|
699
|
+
items: aItems,
|
|
700
|
+
selectionChange: function (oEvent) {
|
|
701
|
+
const oItem = oEvent.getParameter("item");
|
|
702
|
+
this.setCurrentView(oItem.getKey());
|
|
703
|
+
}.bind(this)
|
|
704
|
+
});
|
|
705
|
+
return this._oViewSwitch;
|
|
686
706
|
};
|
|
687
707
|
|
|
688
708
|
Category.prototype.createDefaultItemTemplate = function () {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
709
|
+
const oAvatar = new Avatar(this.getItemAvatarSettings())
|
|
710
|
+
.addStyleClass("sapUiSmallMarginBegin");
|
|
711
|
+
const oListItem = new Category.CustomListItem({
|
|
712
|
+
press: this.itemNavigate.bind(this),
|
|
713
|
+
type: "Active",
|
|
714
|
+
content: [
|
|
715
|
+
new FlexBox({
|
|
716
|
+
direction: "Column",
|
|
717
|
+
items: [
|
|
718
|
+
new FlexBox({
|
|
719
|
+
direction: "Row",
|
|
720
|
+
items: [
|
|
721
|
+
oAvatar,
|
|
722
|
+
this.getItemObjectIdentifier()
|
|
723
|
+
]
|
|
724
|
+
})
|
|
725
|
+
]
|
|
726
|
+
})
|
|
705
727
|
]
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
});
|
|
709
|
-
return oListItem;
|
|
728
|
+
});
|
|
729
|
+
return oListItem;
|
|
710
730
|
};
|
|
711
731
|
|
|
712
732
|
Category.prototype.getItemObjectIdentifier = function () {
|
|
713
|
-
|
|
714
|
-
|
|
733
|
+
return new ObjectIdentifier(this.getItemObjectIdentifierSettings())
|
|
734
|
+
.addStyleClass("sapUiSmallMarginBeginEnd");
|
|
715
735
|
};
|
|
716
736
|
|
|
717
737
|
Category.prototype.getItemObjectIdentifierSettings = function () {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
738
|
+
return {
|
|
739
|
+
text: "{data>description}",
|
|
740
|
+
title: "{data>title}",
|
|
741
|
+
titleActive: "{= !!${data>_navigation} || !!${data>url}}",
|
|
742
|
+
titlePress: this.itemNavigate.bind(this)
|
|
743
|
+
};
|
|
724
744
|
};
|
|
725
745
|
|
|
726
746
|
Category.prototype.getItemAvatarSettings = function (sIconBinding) {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
747
|
+
return {
|
|
748
|
+
fallbackIcon: this._oCategoryConfig.icon.src,
|
|
749
|
+
src: sIconBinding || "{data>icon}",
|
|
750
|
+
displaySize: this._oCategoryConfig.icon.size,
|
|
751
|
+
displayShape: this._oCategoryConfig.icon.shape,
|
|
752
|
+
imageFitType: this._oCategoryConfig.icon.imageFitType || "Contain",
|
|
753
|
+
backgroundColor: this._oCategoryConfig.icon.backgroundColor
|
|
754
|
+
};
|
|
735
755
|
};
|
|
736
756
|
|
|
737
757
|
Category.prototype.createListItemTemplate = function () {
|
|
738
|
-
|
|
758
|
+
return this.createDefaultItemTemplate().addStyleClass("list");
|
|
739
759
|
};
|
|
740
760
|
|
|
741
761
|
Category.prototype.createCardItemTemplate = function () {
|
|
742
|
-
|
|
762
|
+
return this.createListItemTemplate().addStyleClass("card");
|
|
743
763
|
};
|
|
744
764
|
|
|
745
765
|
Category.prototype.createTileItemTemplate = function () {
|
|
746
|
-
|
|
766
|
+
return this.createListItemTemplate().addStyleClass("tile");
|
|
747
767
|
};
|
|
748
768
|
|
|
749
769
|
Category.prototype.createFooter = function (sType) {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
770
|
+
if (sType === "viewAll") {
|
|
771
|
+
this._oFooter = new OverflowToolbar({
|
|
772
|
+
style: "Clear",
|
|
773
|
+
content: [
|
|
774
|
+
new ToolbarSpacer(),
|
|
775
|
+
new Button({
|
|
776
|
+
text: "{i18n>CATEGORIES.All.ViewAll}",
|
|
777
|
+
press: function () {
|
|
778
|
+
this.fireViewAll({
|
|
779
|
+
key: this.getKey(),
|
|
780
|
+
currentView: this.getCurrentView()
|
|
781
|
+
});
|
|
782
|
+
}.bind(this)
|
|
783
|
+
}),
|
|
784
|
+
new ToolbarSpacer({ width: "1rem" })
|
|
785
|
+
]
|
|
786
|
+
}).addStyleClass("sapCEPCategoryFooterTB");
|
|
787
|
+
} else {
|
|
788
|
+
this._oPaginator = new Paginator(this.getPaginatorSettings());
|
|
789
|
+
this._oFooter = new OverflowToolbar({
|
|
790
|
+
style: "Clear",
|
|
791
|
+
content: [
|
|
792
|
+
new ToolbarSpacer(),
|
|
793
|
+
this._oPaginator
|
|
794
|
+
]
|
|
795
|
+
}).addStyleClass("sapCEPCategoryFooterTB");
|
|
796
|
+
}
|
|
797
|
+
return this._oFooter;
|
|
777
798
|
};
|
|
778
799
|
|
|
779
800
|
Category.prototype.itemNavigate = function (oEvent) {
|
|
780
801
|
};
|
|
781
802
|
|
|
782
803
|
Category.prototype.updateIllustration = function (sText, sType) {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
804
|
+
if (!this.getUseIllustrations()) {
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
if (!this._oNoDataIllustration) {
|
|
808
|
+
this._oNoDataIllustration = new IllustratedMessage({
|
|
809
|
+
illustrationType: IllustrationType.NoSearchResults,
|
|
810
|
+
enableDefaultTitleAndDescription: false,
|
|
811
|
+
illustrationSize: "Spot",
|
|
812
|
+
additionalContent: [new Button({
|
|
813
|
+
text: utilResources.bundle.getText("CATEGORY.Views.RefreshButton"),
|
|
814
|
+
visible: false,
|
|
815
|
+
press: function () {
|
|
816
|
+
this.fixHeight();
|
|
817
|
+
setTimeout(() => {
|
|
818
|
+
this.refreshData();
|
|
819
|
+
}, 600);
|
|
820
|
+
this.updateIllustration(this.translate("LoadingData"), "Loading");
|
|
821
|
+
}.bind(this)
|
|
822
|
+
})]
|
|
823
|
+
});
|
|
824
|
+
this._oNoDataIllustration.addStyleClass("sapUiCEPSearchCatNoDataIllustration");
|
|
825
|
+
}
|
|
826
|
+
if (this._iCurrentCount === 0) {
|
|
827
|
+
if (sType === "NoData") {
|
|
828
|
+
if (this._iCurrentCount === 0) {
|
|
829
|
+
this._oNoDataIllustration.setTitle(sText);
|
|
830
|
+
this._oNoDataIllustration.setIllustrationType(IllustrationType.NoSearchResults);
|
|
831
|
+
this.setAggregation("_nodata", this._oNoDataIllustration);
|
|
832
|
+
this._oNoDataIllustration.getAdditionalContent()[0].setVisible(true);
|
|
833
|
+
}
|
|
834
|
+
} else if (sType === "Loading") {
|
|
835
|
+
if (this._iCurrentCount === 0) {
|
|
836
|
+
this._oNoDataIllustration.setTitle(sText);
|
|
837
|
+
this._oNoDataIllustration.setIllustrationType(IllustrationType.NoSearchResults);
|
|
838
|
+
this.setAggregation("_nodata", this._oNoDataIllustration);
|
|
839
|
+
this._oNoDataIllustration.getAdditionalContent()[0].setVisible(false);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
} else {
|
|
843
|
+
this.setAggregation("_nodata", null);
|
|
844
|
+
}
|
|
824
845
|
};
|
|
825
846
|
|
|
826
847
|
Category.prototype.fixHeight = function (bReset) {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
848
|
+
if (!this.getDomRef()) {
|
|
849
|
+
return;
|
|
850
|
+
}
|
|
851
|
+
if (bReset) {
|
|
852
|
+
this.getDomRef().style.setProperty("--tmpPageSize", "unset");
|
|
853
|
+
this._iCurrentHeight = 0;
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
if (this._oList && this._oList.getVisible() && this._oList.getDomRef()) {
|
|
857
|
+
this._iCurrentHeight = Math.max(this._oList.getDomRef().offsetHeight, this._iCurrentHeight);
|
|
858
|
+
}
|
|
859
|
+
if (this._iCurrentHeight) {
|
|
860
|
+
this.getDomRef().style.setProperty("--tmpPageSize", `${this._iCurrentHeight}px`);
|
|
861
|
+
}
|
|
841
862
|
};
|
|
842
863
|
|
|
843
864
|
Category.prototype.onResize = function (oEvent) {
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
865
|
+
if (this._oList && this._oList._oItemNavigation) {
|
|
866
|
+
this._oList._oItemNavigation.setColumns(this._oList._getCurrentColCount());
|
|
867
|
+
}
|
|
868
|
+
this.fixHeight(true);
|
|
869
|
+
if (Math.abs(oEvent.oldSize.width - oEvent.size.width) > 50) {
|
|
870
|
+
if (this._iResizeTimer) {
|
|
871
|
+
clearTimeout(this._iResizeTimer);
|
|
872
|
+
}
|
|
873
|
+
this._iResizeTimer = setTimeout(() => {
|
|
874
|
+
this.search(this._sSearchTerm, this._iSkip, this._iTop);
|
|
875
|
+
}, 300);
|
|
876
|
+
}
|
|
877
|
+
if (oEvent.oldSize && oEvent.size && oEvent.oldSize.width !== oEvent.size.width) {
|
|
878
|
+
this._iCurrentHeight = 0;
|
|
879
|
+
}
|
|
859
880
|
};
|
|
860
881
|
|
|
861
882
|
Category.prototype.onBeforeRendering = function () {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
883
|
+
if (this._oHighlighter) {
|
|
884
|
+
this._oHighlighter.destroy();
|
|
885
|
+
}
|
|
886
|
+
this._oHighlighter = null;
|
|
887
|
+
if (this._iResizeListenerId) {
|
|
888
|
+
ResizeHandler.deregister(this._iResizeListenerId);
|
|
889
|
+
this._iResizeListenerId = null;
|
|
890
|
+
}
|
|
870
891
|
};
|
|
871
892
|
|
|
872
893
|
Category.prototype.onAfterRendering = function () {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
894
|
+
if (!this._iResizeListenerId) {
|
|
895
|
+
this._fnResizeListener = this.onResize.bind(this);
|
|
896
|
+
this._iResizeListenerId = ResizeHandler.register(this, this._fnResizeListener);
|
|
897
|
+
}
|
|
898
|
+
if (!this._oHighlighter && this.getHighlightResult()) {
|
|
899
|
+
this._oHighlighter = new Highlighter(this.getDomRef(), {
|
|
900
|
+
isCaseSensitive: false,
|
|
901
|
+
shouldBeObserved: true,
|
|
902
|
+
querySelector: ".sapUiCEPSearchCatLI"
|
|
903
|
+
});
|
|
904
|
+
this._oHighlighter.highlight(this.getSearchTerm());
|
|
905
|
+
}
|
|
906
|
+
this.fixHeight();
|
|
907
|
+
if (this._iAfterRendering) {
|
|
908
|
+
clearTimeout(this._iAfterRendering);
|
|
909
|
+
}
|
|
910
|
+
this._iAfterRendering = setTimeout(
|
|
911
|
+
() => {
|
|
912
|
+
this.fireAfterRendering.bind(this)();
|
|
913
|
+
this._iAfterRendering = null;
|
|
914
|
+
const oParent = this.getDomRef()?.parentElement;
|
|
915
|
+
const oHeader = this.get_header();
|
|
916
|
+
const oPaginator = this.getPaginator();
|
|
917
|
+
if (oParent && oHeader) {
|
|
918
|
+
const sTitle = oHeader.getContent()[1].getText();
|
|
919
|
+
const sCounter = oHeader.getContent()[2].getText();
|
|
920
|
+
const sLabel = [
|
|
921
|
+
sTitle,
|
|
922
|
+
sCounter,
|
|
923
|
+
oPaginator ?
|
|
924
|
+
utilResources.bundle.getText("CATEGORY.Views.PageTooltip", [oPaginator.getCurrentPage(), oPaginator.getCount()]) :
|
|
925
|
+
""
|
|
926
|
+
].join(" ");
|
|
927
|
+
oParent.setAttribute("aria-label", sLabel);
|
|
928
|
+
if (this._forceFocus === "parent") {
|
|
929
|
+
oParent.focus();
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
if (this._forceFocus === "parent") {
|
|
933
|
+
if (oParent) {
|
|
934
|
+
oParent.focus();
|
|
935
|
+
}
|
|
936
|
+
} else if (this._forceFocus === "page") {
|
|
937
|
+
oPaginator?.focusPage(this._forceFocusPage);
|
|
938
|
+
this._forceFocusPage = null;
|
|
939
|
+
this._forceFocus = "";
|
|
940
|
+
}
|
|
941
|
+
}, this._iAfterRenderingEventDelay
|
|
942
|
+
);
|
|
895
943
|
};
|
|
896
944
|
|
|
897
945
|
return Category;
|
|
898
946
|
|
|
899
|
-
|
|
947
|
+
});
|