@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
|
@@ -12,7 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/thirdparty/jquery",
|
|
13
13
|
"sap/ushell/Config",
|
|
14
14
|
"sap/ushell/Container"
|
|
15
|
-
],
|
|
15
|
+
], (
|
|
16
16
|
Localization,
|
|
17
17
|
Extend,
|
|
18
18
|
Device,
|
|
@@ -21,12 +21,12 @@ sap.ui.define([
|
|
|
21
21
|
jQuery,
|
|
22
22
|
Config,
|
|
23
23
|
Container
|
|
24
|
-
) {
|
|
24
|
+
) => {
|
|
25
25
|
"use strict";
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
function CollisionModule (settings) {
|
|
28
28
|
this.init(settings);
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
|
|
31
31
|
CollisionModule.prototype = {
|
|
32
32
|
settings: null,
|
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
this.currentGroup = null;
|
|
63
63
|
this.groupsList = null;
|
|
64
64
|
this.allGroups = null;
|
|
65
|
-
//setting contains thisLayout property
|
|
65
|
+
// setting contains thisLayout property
|
|
66
66
|
this.settings = this.settings || settings;
|
|
67
67
|
Extend(this, this.settings);
|
|
68
68
|
this.tileWidth = this.thisLayout.styleInfo.tileWidth;
|
|
@@ -83,8 +83,8 @@ sap.ui.define([
|
|
|
83
83
|
},
|
|
84
84
|
|
|
85
85
|
moveDraggable: function (moveX, moveY, aTabBarItemsLocation) {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
const oCollision = this.getCollisionObject(moveX, moveY, aTabBarItemsLocation);
|
|
87
|
+
let bNeedsPlaceHolder;
|
|
88
88
|
if (oCollision) {
|
|
89
89
|
this._toggleAnchorItemHighlighting(false);
|
|
90
90
|
if (oCollision.collidedObjectType !== "TabBar") {
|
|
@@ -156,7 +156,7 @@ sap.ui.define([
|
|
|
156
156
|
},
|
|
157
157
|
|
|
158
158
|
saveLinkBoundingRects: function (elLink) {
|
|
159
|
-
|
|
159
|
+
const oLink = Element.getElementById(elLink.getAttribute("id"));
|
|
160
160
|
this.draggedLinkBoundingRects = oLink.getBoundingRects();
|
|
161
161
|
},
|
|
162
162
|
|
|
@@ -164,15 +164,15 @@ sap.ui.define([
|
|
|
164
164
|
// The reason behind the numbers of left adjustment and right adjustment is that the total distance between links is 22px, but the division to left and right is like
|
|
165
165
|
// that because the space taken by marker is not equal on the left and right side and this is in order to place the marker properly with the first link in a row.
|
|
166
166
|
// For RTL the numbers are different because of the different offsets.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
const oFirstLineModeContainerBoundingClientRect = oContainer.getDomRef().getElementsByClassName("sapUshellLineModeContainer")[0].getBoundingClientRect();
|
|
168
|
+
const nContainerLeftOffset = oFirstLineModeContainerBoundingClientRect.left;
|
|
169
|
+
const nContainerTopOffset = oFirstLineModeContainerBoundingClientRect.top;
|
|
170
|
+
const nRightAdjustment = this.rightToLeft ? 20 : -1;
|
|
171
|
+
const nLeftAdjustment = this.rightToLeft ? 42 : 21;
|
|
172
|
+
let right = aRects[aRects.length - 1].offset.x - nContainerLeftOffset + aRects[aRects.length - 1].width - nRightAdjustment;
|
|
173
|
+
let left = aRects[this.rightToLeft ? aRects.length - 1 : 0].offset.x - nContainerLeftOffset - nLeftAdjustment;
|
|
174
|
+
let topLeft = aRects[this.rightToLeft ? aRects.length - 1 : 0].offset.y - nContainerTopOffset;
|
|
175
|
+
let topRight = aRects[this.rightToLeft ? 0 : aRects.length - 1].offset.y - nContainerTopOffset;
|
|
176
176
|
|
|
177
177
|
if (document.body.classList.contains("sapUiSizeCompact")) {
|
|
178
178
|
topLeft -= 6;
|
|
@@ -197,30 +197,29 @@ sap.ui.define([
|
|
|
197
197
|
},
|
|
198
198
|
|
|
199
199
|
_changeLinkPlaceholder: function (oLink, oContainer) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
const oCurrentLinkBoundingRect = this.aLinksBoundingRects[oLink.link.getId()];
|
|
201
|
+
const left = oCurrentLinkBoundingRect.left;
|
|
202
|
+
const topLeft = oCurrentLinkBoundingRect.topLeft;
|
|
203
|
+
const topRight = oCurrentLinkBoundingRect.topRight;
|
|
204
|
+
const right = oCurrentLinkBoundingRect.right;
|
|
205
205
|
|
|
206
206
|
if (!oContainer.getDomRef().querySelector("#sapUshellLinkDropMarker")) {
|
|
207
207
|
this._removeLinkDropMarker();
|
|
208
|
-
|
|
208
|
+
const oInnerContainer = oContainer.getDomRef().getElementsByClassName("sapUshellLinksInnerContainer")[0];
|
|
209
209
|
jQuery(oInnerContainer).prepend(this.LinkDropMarker);
|
|
210
210
|
}
|
|
211
|
-
this.LinkDropMarker.style.left =
|
|
212
|
-
this.LinkDropMarker.style.top =
|
|
211
|
+
this.LinkDropMarker.style.left = `${oLink.leftSide ? left : right}px`;
|
|
212
|
+
this.LinkDropMarker.style.top = `${oLink.leftSide ? topLeft : topRight}px`;
|
|
213
213
|
this.isLinkMarkerShown = true;
|
|
214
214
|
},
|
|
215
215
|
|
|
216
216
|
showTilePlaceholder: function (currentGroup, bTileChangedGroup, bTilesToLinks) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
var column = this.curTouchMatrixCords.column;
|
|
217
|
+
const row = this.curTouchMatrixCords.row;
|
|
218
|
+
const column = this.curTouchMatrixCords.column;
|
|
220
219
|
this.domRef = this.item.getDomRef() ? this.item.getDomRef() : this.domRef;
|
|
221
220
|
this.domRef.style.display = "";
|
|
222
221
|
this.removeExcludedElementsFromMatrix(this.aExcludedControlClass);
|
|
223
|
-
tiles = this.tiles || this.thisLayout.getGroupTiles(this.endGroup).slice(0);
|
|
222
|
+
const tiles = this.tiles || this.thisLayout.getGroupTiles(this.endGroup).slice(0);
|
|
224
223
|
if (this.matrix[row] && typeof this.matrix[row][column] === "object") {
|
|
225
224
|
this.handleMatrixCollision(tiles, currentGroup, bTileChangedGroup, bTilesToLinks);
|
|
226
225
|
return;
|
|
@@ -231,7 +230,7 @@ sap.ui.define([
|
|
|
231
230
|
removeTilePlaceholder: function () {
|
|
232
231
|
this.domRef = this.item.getDomRef() || this.domRef;
|
|
233
232
|
|
|
234
|
-
|
|
233
|
+
let currentHostTiles = this.thisLayout.getGroupTiles(this.currentGroup);
|
|
235
234
|
currentHostTiles = currentHostTiles.slice(0);
|
|
236
235
|
if (this.startArea !== "links" && currentHostTiles.indexOf(this.item) > -1) {
|
|
237
236
|
currentHostTiles.splice(currentHostTiles.indexOf(this.item), 1);
|
|
@@ -241,15 +240,15 @@ sap.ui.define([
|
|
|
241
240
|
}
|
|
242
241
|
|
|
243
242
|
this.thisLayout.initGroupDragMode(this.endGroup);
|
|
244
|
-
|
|
243
|
+
const currentGroupMatrix = this.thisLayout.organizeGroup(currentHostTiles);
|
|
245
244
|
this.thisLayout.renderLayoutGroup(this.currentGroup, currentGroupMatrix);
|
|
246
245
|
},
|
|
247
246
|
|
|
248
247
|
handlePlaceholderChange: function () {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
248
|
+
const currentGroup = this.currentGroup;
|
|
249
|
+
const bTileChangedGroup = (this.endGroup !== this.currentGroup);
|
|
250
|
+
const bTilesToLinks = this.endAreaChanged && this.endArea === "links";
|
|
251
|
+
const bIsTabBarGroupSwitched = this.thisLayout.isTabBarActive() && this.groupSwitched;
|
|
253
252
|
|
|
254
253
|
this.tiles = this.thisLayout.getGroupTiles(this.endGroup).slice(0);
|
|
255
254
|
this.matrix = this.thisLayout.organizeGroup(this.tiles);
|
|
@@ -270,9 +269,9 @@ sap.ui.define([
|
|
|
270
269
|
},
|
|
271
270
|
|
|
272
271
|
handleMatrixCollision: function (tiles, currentGroup, bTileChangedGroup, bTilesToLinks) {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
272
|
+
let replacedTile = this.matrix[this.curTouchMatrixCords.row][this.curTouchMatrixCords.column];
|
|
273
|
+
const replacedTileIndex = tiles.indexOf(replacedTile);
|
|
274
|
+
const currentTileIndex = tiles.indexOf(this.item);
|
|
276
275
|
|
|
277
276
|
if (this.rightToLeft) {
|
|
278
277
|
this.collisionLeft = !this.collisionLeft;
|
|
@@ -288,7 +287,7 @@ sap.ui.define([
|
|
|
288
287
|
this._handleTileReplace(tiles, currentGroup);
|
|
289
288
|
return;
|
|
290
289
|
}
|
|
291
|
-
|
|
290
|
+
const newTilesOrder = this.changeTilesOrder(this.item, replacedTile, tiles, this.matrix);
|
|
292
291
|
if (newTilesOrder && !this.isLinkMarkerShown) {
|
|
293
292
|
this._handleTileReplace(newTilesOrder, currentGroup);
|
|
294
293
|
}
|
|
@@ -304,32 +303,32 @@ sap.ui.define([
|
|
|
304
303
|
}
|
|
305
304
|
this.currentGroup = this.endGroup;
|
|
306
305
|
|
|
307
|
-
|
|
306
|
+
const currentTiles = this.thisLayout.getGroupTiles(currentGroup);
|
|
308
307
|
this.thisLayout.initGroupDragMode(this.endGroup);
|
|
309
|
-
|
|
308
|
+
const currentMatrix = this.thisLayout.organizeGroup(currentTiles);
|
|
310
309
|
this.thisLayout.renderLayoutGroup(currentGroup, currentMatrix);
|
|
311
310
|
},
|
|
312
311
|
|
|
313
312
|
_handleMoveOutOfBorders: function (tiles, currentGroup) {
|
|
314
|
-
|
|
315
|
-
if (tiles[maxTile + 1]
|
|
313
|
+
const maxTile = this.findTileToPlaceAfter(this.matrix, tiles);
|
|
314
|
+
if (tiles[maxTile + 1] === this.item) {
|
|
316
315
|
return;
|
|
317
316
|
}
|
|
318
317
|
|
|
319
|
-
|
|
318
|
+
let replacedTile;
|
|
320
319
|
if (tiles[maxTile + 1]) {
|
|
321
320
|
replacedTile = tiles[maxTile + 1];
|
|
322
321
|
} else if (this.currentGroup.getShowPlaceholder()) {
|
|
323
322
|
replacedTile = tiles[0];
|
|
324
323
|
}
|
|
325
|
-
|
|
324
|
+
const newTilesOrder = this.changeTilesOrder(this.item, replacedTile, tiles, this.matrix);
|
|
326
325
|
if (newTilesOrder) {
|
|
327
326
|
this._handleTileReplace(newTilesOrder, currentGroup);
|
|
328
327
|
}
|
|
329
328
|
},
|
|
330
329
|
|
|
331
330
|
_handleChangedGroup: function (currentGroup) {
|
|
332
|
-
|
|
331
|
+
let currentHostTiles = this.thisLayout.getGroupTiles(this.currentGroup);
|
|
333
332
|
if (this.currentGroup === this.startGroup && (this.startArea === "tiles" || this.intersectedLinkPlaceHolder)) {
|
|
334
333
|
currentHostTiles = currentHostTiles.slice(0);
|
|
335
334
|
if (currentHostTiles.indexOf(this.item) > -1) {
|
|
@@ -340,7 +339,7 @@ sap.ui.define([
|
|
|
340
339
|
if (this.startGroup === this.endGroup && this.startArea === "tiles") {
|
|
341
340
|
this.tiles.splice(this.tiles.indexOf(this.item), 1);
|
|
342
341
|
}
|
|
343
|
-
|
|
342
|
+
const oItemDomRef = this.item.getDomRef() || this.domRef;
|
|
344
343
|
if (this.startArea === "links" && !this.intersectedLinkPlaceHolder) {
|
|
345
344
|
this.switchLinkWithClone(this.item);
|
|
346
345
|
}
|
|
@@ -353,7 +352,7 @@ sap.ui.define([
|
|
|
353
352
|
this.currentGroup = this.endGroup;
|
|
354
353
|
|
|
355
354
|
this.thisLayout.initGroupDragMode(this.endGroup);
|
|
356
|
-
|
|
355
|
+
const currentGroupMatrix = this.thisLayout.organizeGroup(currentHostTiles);
|
|
357
356
|
this.thisLayout.renderLayoutGroup(currentGroup, currentGroupMatrix);
|
|
358
357
|
},
|
|
359
358
|
|
|
@@ -366,21 +365,21 @@ sap.ui.define([
|
|
|
366
365
|
},
|
|
367
366
|
|
|
368
367
|
_getIntersectedLink: function (collidedGroup, moveX, moveY) {
|
|
369
|
-
|
|
368
|
+
const elLink = document.getElementsByClassName("sapUshellLinkTile")[0];
|
|
370
369
|
|
|
371
370
|
if (!elLink) {
|
|
372
371
|
return;
|
|
373
372
|
}
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
const collidedGroupRect = collidedGroup.getDomRef().querySelector(".sapUshellLineModeContainer").getBoundingClientRect();
|
|
374
|
+
const bCozyLayout = !document.body.classList.contains("sapUiSizeCompact");
|
|
376
375
|
// the reason for devision in 31 is related to link height - which is 34, then each link overlaps with its neighbours by 3px
|
|
377
376
|
// so the absolute height needed to calculate the intersected link is 31, with cozy layout the height is 48 (45 after reducing the overlap)
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
let nRow = Math.floor((moveY - collidedGroupRect.top) / (bCozyLayout ? 45 : 31));
|
|
378
|
+
const aCollidedLinkAreas = this.collidedLinkAreas[collidedGroup.getId()];
|
|
379
|
+
let column;
|
|
381
380
|
|
|
382
381
|
if (this.rightToLeft) {
|
|
383
|
-
column = Math.floor((collidedGroupRect.right - moveX) / 20); //see _addLinkToHashMap to understand the devision in 20
|
|
382
|
+
column = Math.floor((collidedGroupRect.right - moveX) / 20); // see _addLinkToHashMap to understand the devision in 20
|
|
384
383
|
} else {
|
|
385
384
|
column = Math.floor((moveX - collidedGroupRect.left) / 20);
|
|
386
385
|
}
|
|
@@ -389,7 +388,7 @@ sap.ui.define([
|
|
|
389
388
|
return aCollidedLinkAreas[nRow][column];
|
|
390
389
|
} else if (aCollidedLinkAreas.length) { // in edit mode we enable to drop to empty link area, this condition will prevent "index out of bounds exception" error
|
|
391
390
|
// in case links area is not empty, but (moveX,MoveY) mouse position is in link area and not on link, we define the last link in line as intersected link
|
|
392
|
-
|
|
391
|
+
const linksAreaRowLength = aCollidedLinkAreas.length;
|
|
393
392
|
if (nRow >= linksAreaRowLength) {
|
|
394
393
|
nRow = linksAreaRowLength - 1;
|
|
395
394
|
}
|
|
@@ -403,31 +402,31 @@ sap.ui.define([
|
|
|
403
402
|
|
|
404
403
|
_mapGroupLinks: function (collidedGroup) {
|
|
405
404
|
// check if mapping of this group was already done
|
|
406
|
-
|
|
405
|
+
const sGroupId = collidedGroup.getId();
|
|
407
406
|
if (!this.collidedLinkAreas[sGroupId] || this.bElapseGroupLinksMap) {
|
|
408
407
|
this.bElapseGroupLinksMap = false;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
408
|
+
const aLinks = collidedGroup.getLinks();
|
|
409
|
+
const collidedLinksHashMap = [];
|
|
410
|
+
let iLastLinkOffset;
|
|
411
|
+
let aRects;
|
|
412
|
+
let iRow = 0;
|
|
414
413
|
this.collidedLinkAreas.push(collidedGroup.getId());
|
|
415
|
-
aLinks.forEach(
|
|
414
|
+
aLinks.forEach((oItem) => {
|
|
416
415
|
aRects = this._getLinkBoundingRects(oItem, collidedGroup);
|
|
417
|
-
aRects.forEach(
|
|
416
|
+
aRects.forEach((oRect) => {
|
|
418
417
|
if (oRect.offset.y > iLastLinkOffset) {
|
|
419
418
|
iRow++;
|
|
420
419
|
}
|
|
421
420
|
iLastLinkOffset = oRect.offset.y;
|
|
422
421
|
this._addLinkToHashMap(collidedLinksHashMap, collidedGroup, oRect, iRow, oItem);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
422
|
+
});
|
|
423
|
+
});
|
|
425
424
|
this.collidedLinkAreas[sGroupId] = collidedLinksHashMap;
|
|
426
425
|
}
|
|
427
426
|
},
|
|
428
427
|
|
|
429
428
|
_getLinkBoundingRects: function (oLink, collidedGroup) {
|
|
430
|
-
|
|
429
|
+
let aRects = oLink.getBoundingRects();
|
|
431
430
|
if (this.item && this.item.getId() === oLink.getId()) {
|
|
432
431
|
aRects = this.draggedLinkBoundingRects;
|
|
433
432
|
}
|
|
@@ -441,9 +440,9 @@ sap.ui.define([
|
|
|
441
440
|
if (!collidedLinksHashMap[nRow]) {
|
|
442
441
|
collidedLinksHashMap[nRow] = [];
|
|
443
442
|
}
|
|
444
|
-
for (
|
|
443
|
+
for (let i = 0; i <= (oRect.width + 20) / 20; i++) {
|
|
445
444
|
// we duplicate the link in the matrix in order to be able to find it in O(1). We devide by 20 because thats the "space" between links
|
|
446
|
-
|
|
445
|
+
const link = {
|
|
447
446
|
link: oLink,
|
|
448
447
|
leftSide: !this.rightToLeft
|
|
449
448
|
};
|
|
@@ -455,7 +454,7 @@ sap.ui.define([
|
|
|
455
454
|
},
|
|
456
455
|
|
|
457
456
|
_isLinkAreaIntersection: function (collidedGroup, moveX, moveY) {
|
|
458
|
-
|
|
457
|
+
const innerContainerElement = collidedGroup.getInnerContainersDomRefs();
|
|
459
458
|
// In case link area is empty of links it should not appear in normal mode.
|
|
460
459
|
// Tile container will return empty links area domref only when it is in edit mode.
|
|
461
460
|
// Otherwise, we should not check collisions on it.
|
|
@@ -478,8 +477,8 @@ sap.ui.define([
|
|
|
478
477
|
},
|
|
479
478
|
|
|
480
479
|
_toggleTileCloneHoverOpacity: function (bValue) {
|
|
481
|
-
|
|
482
|
-
for (
|
|
480
|
+
const aClonedTileElements = document.getElementsByClassName("sapUshellTile-clone");
|
|
481
|
+
for (let i = 0; i < aClonedTileElements.length; ++i) {
|
|
483
482
|
aClonedTileElements[i].classList.toggle("sapUshellTileDragOpacity", bValue);
|
|
484
483
|
}
|
|
485
484
|
},
|
|
@@ -491,8 +490,8 @@ sap.ui.define([
|
|
|
491
490
|
|
|
492
491
|
this._mapGroupLinks(collidedGroup);
|
|
493
492
|
this.matrix = this.matrix || this.thisLayout.organizeGroup(this.thisLayout.getGroupTiles(collidedGroup));
|
|
494
|
-
|
|
495
|
-
|
|
493
|
+
const intersectedLink = this._getIntersectedLink(collidedGroup, moveX, moveY);
|
|
494
|
+
let bChangePlaceHolder = false;
|
|
496
495
|
if (intersectedLink) {
|
|
497
496
|
bChangePlaceHolder = this._isLinksEquals(this.intersectedLink, intersectedLink);
|
|
498
497
|
this.intersectedLink = intersectedLink;
|
|
@@ -505,10 +504,10 @@ sap.ui.define([
|
|
|
505
504
|
|
|
506
505
|
_markEmptyLinkArea: function (collidedGroup) {
|
|
507
506
|
if (!collidedGroup.getLinks().length) { // empty link area
|
|
508
|
-
|
|
507
|
+
const oCollidedGroupDomRef = collidedGroup.getDomRef();
|
|
509
508
|
if (oCollidedGroupDomRef) {
|
|
510
|
-
|
|
511
|
-
for (
|
|
509
|
+
const aLineModeContainerElements = oCollidedGroupDomRef.getElementsByClassName("sapUshellLineModeContainer");
|
|
510
|
+
for (let i = 0; i < aLineModeContainerElements.length; ++i) {
|
|
512
511
|
aLineModeContainerElements[i].classList.add("sapUshellEmptyLinkAreaHover");
|
|
513
512
|
}
|
|
514
513
|
}
|
|
@@ -516,19 +515,19 @@ sap.ui.define([
|
|
|
516
515
|
},
|
|
517
516
|
|
|
518
517
|
_removeEmptyLinkAreaMark: function () {
|
|
519
|
-
|
|
520
|
-
for (
|
|
518
|
+
const aLineModeContainerElements = document.getElementsByClassName("sapUshellLineModeContainer");
|
|
519
|
+
for (let i = 0; i < aLineModeContainerElements.length; ++i) {
|
|
521
520
|
aLineModeContainerElements[i].classList.remove("sapUshellEmptyLinkAreaHover");
|
|
522
521
|
}
|
|
523
522
|
},
|
|
524
523
|
|
|
525
524
|
reorderTilesInDom: function () {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
525
|
+
const jsSelectedTile = this.item.getDomRef() ? this.item.getDomRef() : this.domRef;
|
|
526
|
+
const iSelectedTileIndex = jQuery(jsSelectedTile).index();
|
|
527
|
+
const jqSelectedTileGroup = jQuery(jsSelectedTile).closest(".sapUshellTilesContainer-sortable");
|
|
528
|
+
const destTileIndex = this.calcDestIndexInGroup();
|
|
529
|
+
const jqTargetGroup = jQuery(this.endGroup.getDomRef()).find(".sapUshellTilesContainer-sortable");
|
|
530
|
+
let jqGroupTiles = jqTargetGroup.find(".sapUshellTile");
|
|
532
531
|
|
|
533
532
|
if (this.startArea === "tiles") {
|
|
534
533
|
// remove the dragged tile
|
|
@@ -548,11 +547,11 @@ sap.ui.define([
|
|
|
548
547
|
},
|
|
549
548
|
|
|
550
549
|
calcDestIndexInGroup: function () {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
550
|
+
let lastTileId;
|
|
551
|
+
let tilesCount = 0;
|
|
552
|
+
let i;
|
|
553
|
+
let j;
|
|
554
|
+
let bItemFound = false;
|
|
556
555
|
|
|
557
556
|
for (i = 0; i < this.matrix.length && !bItemFound; i++) {
|
|
558
557
|
for (j = 0; j < this.matrix[i].length; j++) {
|
|
@@ -590,9 +589,9 @@ sap.ui.define([
|
|
|
590
589
|
},
|
|
591
590
|
|
|
592
591
|
_getLinkDropMarkerElement: function () {
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
592
|
+
const elLinkDropMarker = document.createElement("DIV");
|
|
593
|
+
const elMarkerDot = document.createElement("DIV");
|
|
594
|
+
const elMarkerLine = document.createElement("DIV");
|
|
596
595
|
|
|
597
596
|
elLinkDropMarker.setAttribute("id", "sapUshellLinkDropMarker");
|
|
598
597
|
elMarkerDot.setAttribute("id", "sapUshellLinkDropMarkerDot");
|
|
@@ -614,8 +613,8 @@ sap.ui.define([
|
|
|
614
613
|
_getDestinationIndex: function (sType) {
|
|
615
614
|
if (sType === "links") {
|
|
616
615
|
if (this.intersectedLink) {
|
|
617
|
-
|
|
618
|
-
|
|
616
|
+
let intersectedLinkIndex = this.endGroup.getLinks().indexOf(this.intersectedLink.link);
|
|
617
|
+
const draggedItemIndex = this.endGroup.getLinks().indexOf(this.item);
|
|
619
618
|
if (this.intersectedLink.leftSide) {
|
|
620
619
|
intersectedLinkIndex = this.rightToLeft ? intersectedLinkIndex + 1 : intersectedLinkIndex - 1;
|
|
621
620
|
}
|
|
@@ -634,21 +633,18 @@ sap.ui.define([
|
|
|
634
633
|
},
|
|
635
634
|
|
|
636
635
|
layoutEndCallback: function () {
|
|
637
|
-
var response;
|
|
638
|
-
var oSourceGroup;
|
|
639
|
-
var oDestinationGroup;
|
|
640
|
-
|
|
641
636
|
this._removeLinkDropMarker();
|
|
642
637
|
if (this.endArea !== "links" && !this.tiles) {
|
|
643
638
|
return { tile: this.item };
|
|
644
639
|
}
|
|
645
|
-
oSourceGroup = this._getDragSourceGroup();
|
|
640
|
+
const oSourceGroup = this._getDragSourceGroup();
|
|
641
|
+
// eslint-disable-next-line no-use-before-define
|
|
646
642
|
if (!Layout.isTabBarActive() || !this.bIsTabBarCollision) {
|
|
647
643
|
this.targetGroup = "";
|
|
648
644
|
}
|
|
649
|
-
oDestinationGroup = this._getDestGroupObject(this.targetGroup);
|
|
645
|
+
const oDestinationGroup = this._getDestGroupObject(this.targetGroup);
|
|
650
646
|
|
|
651
|
-
response = {
|
|
647
|
+
const response = {
|
|
652
648
|
srcGroup: oSourceGroup,
|
|
653
649
|
dstGroup: oDestinationGroup,
|
|
654
650
|
dstGroupData: this._getDropTargetGroup(),
|
|
@@ -666,7 +662,7 @@ sap.ui.define([
|
|
|
666
662
|
},
|
|
667
663
|
|
|
668
664
|
_getDragSourceGroup: function () {
|
|
669
|
-
|
|
665
|
+
let oSourceGroup;
|
|
670
666
|
|
|
671
667
|
oSourceGroup = this.startGroup;
|
|
672
668
|
// TabBar use-case and the current group is not the one from which the tile was dragged
|
|
@@ -679,7 +675,7 @@ sap.ui.define([
|
|
|
679
675
|
return oSourceGroup;
|
|
680
676
|
},
|
|
681
677
|
|
|
682
|
-
|
|
678
|
+
/*
|
|
683
679
|
* Returns the destination group of the drag&drop action.
|
|
684
680
|
* There are two options:
|
|
685
681
|
* 1. In case of TabBar mode, when the drop action was done on a tab (i.e. another group) -
|
|
@@ -689,7 +685,7 @@ sap.ui.define([
|
|
|
689
685
|
* then the returned value is destination group UI control
|
|
690
686
|
*/
|
|
691
687
|
_getDropTargetGroup: function () {
|
|
692
|
-
|
|
688
|
+
let oDestinationGroup;
|
|
693
689
|
|
|
694
690
|
// TabBar use-case, and the drop action was done on a tab
|
|
695
691
|
if (this.thisLayout.isTabBarActive() && this.thisLayout.isOnTabBarElement()) {
|
|
@@ -700,14 +696,14 @@ sap.ui.define([
|
|
|
700
696
|
return oDestinationGroup;
|
|
701
697
|
},
|
|
702
698
|
|
|
703
|
-
|
|
699
|
+
/*
|
|
704
700
|
* Returns the index of the dropped tile in the destination group.
|
|
705
701
|
* In case of TabBar mode, when the drop action was done on a tab (i.e. another group) -
|
|
706
702
|
* then the tile should be places as the last tile in the destination group
|
|
707
703
|
*/
|
|
708
704
|
_getDestinationTileIndex: function () {
|
|
709
|
-
|
|
710
|
-
|
|
705
|
+
let sDestinationModelGroupId;
|
|
706
|
+
let oModelGroup;
|
|
711
707
|
|
|
712
708
|
if (this.thisLayout.isTabBarActive() && this.thisLayout.isOnTabBarElement()) {
|
|
713
709
|
sDestinationModelGroupId = this._getDropTargetGroup().groupId;
|
|
@@ -721,7 +717,7 @@ sap.ui.define([
|
|
|
721
717
|
if (a1.length !== a2.length) {
|
|
722
718
|
return false;
|
|
723
719
|
}
|
|
724
|
-
for (
|
|
720
|
+
for (let i = 0; i < a1.length; i++) {
|
|
725
721
|
if (a1[i] !== a2[i]) {
|
|
726
722
|
return false;
|
|
727
723
|
}
|
|
@@ -729,23 +725,17 @@ sap.ui.define([
|
|
|
729
725
|
return true;
|
|
730
726
|
},
|
|
731
727
|
|
|
732
|
-
reorderTilesView: function (tiles
|
|
728
|
+
reorderTilesView: function (tiles/* , group */) {
|
|
733
729
|
this.tiles = tiles;
|
|
734
730
|
this.matrix = this.thisLayout.organizeGroup(tiles);
|
|
735
731
|
},
|
|
736
732
|
|
|
737
|
-
/**
|
|
738
|
-
* @param item
|
|
739
|
-
* @param replacedTile
|
|
740
|
-
* @param tiles
|
|
741
|
-
* @returns {*}
|
|
742
|
-
*/
|
|
743
733
|
changeTilesOrder: function (item, replacedTile, tiles, matrix) {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
734
|
+
const newTiles = tiles.slice(0);
|
|
735
|
+
const deletedItemIndex = newTiles.indexOf(item);
|
|
736
|
+
let newMatrix;
|
|
737
|
+
let cords;
|
|
738
|
+
let newCords;
|
|
749
739
|
|
|
750
740
|
if (deletedItemIndex > -1) {
|
|
751
741
|
newTiles.splice(deletedItemIndex, 1);
|
|
@@ -755,14 +745,14 @@ sap.ui.define([
|
|
|
755
745
|
} else {
|
|
756
746
|
newTiles.push(item);
|
|
757
747
|
}
|
|
758
|
-
if (this.currentGroup
|
|
748
|
+
if (this.currentGroup === this.endGroup) {
|
|
759
749
|
if (this.compareArrays(tiles, newTiles)) {
|
|
760
750
|
return false;
|
|
761
751
|
}
|
|
762
752
|
newMatrix = this.thisLayout.organizeGroup(newTiles);
|
|
763
753
|
cords = this.thisLayout.getTilePositionInMatrix(item, matrix);
|
|
764
754
|
newCords = this.thisLayout.getTilePositionInMatrix(item, newMatrix);
|
|
765
|
-
if ((cords.row
|
|
755
|
+
if ((cords.row === newCords.row) && (cords.col === newCords.col)) {
|
|
766
756
|
return false;
|
|
767
757
|
}
|
|
768
758
|
}
|
|
@@ -776,13 +766,13 @@ sap.ui.define([
|
|
|
776
766
|
},
|
|
777
767
|
|
|
778
768
|
findTileToPlaceAfter: function (curMatrix, tiles) {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
769
|
+
let x = (this.thisLayout.rightToLeft) ? 0 : this.curTouchMatrixCords.column;
|
|
770
|
+
const iIncrease = (this.thisLayout.rightToLeft) ? 1 : -1;
|
|
771
|
+
let maxTile = 0;
|
|
772
|
+
let i;
|
|
773
|
+
let j;
|
|
774
|
+
let tileIndex;
|
|
775
|
+
const rowLength = curMatrix[0].length;
|
|
786
776
|
|
|
787
777
|
for (i = this.curTouchMatrixCords.row; i >= 0; i--) {
|
|
788
778
|
for (j = x; j >= 0 && j < rowLength; j += iIncrease) {
|
|
@@ -805,16 +795,16 @@ sap.ui.define([
|
|
|
805
795
|
* To avoid this, we look for the height of the parent node in case a group is empty (the parent node has a height).
|
|
806
796
|
* We also check that the element isn't an empty link container, as returning an overlap to it would lead to a bug.
|
|
807
797
|
*
|
|
808
|
-
* @param element The element that is being dragged
|
|
809
|
-
* @param moveX The X coordinate of the element's current position
|
|
810
|
-
* @param moveY The Y coordinate of the element's current position
|
|
811
|
-
* @returns {boolean}
|
|
798
|
+
* @param {HTMLElement} element The element that is being dragged
|
|
799
|
+
* @param {int} moveX The X coordinate of the element's current position
|
|
800
|
+
* @param {int} moveY The Y coordinate of the element's current position
|
|
801
|
+
* @returns {boolean} whether there is an intersection.
|
|
812
802
|
* @private
|
|
813
803
|
*/
|
|
814
804
|
_isElementCollideByGivenCordinates: function (element, moveX, moveY) {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
805
|
+
let tilesRect = element.getBoundingClientRect();
|
|
806
|
+
let isHorizontalIntersection = false;
|
|
807
|
+
let isVerticalIntersection = false;
|
|
818
808
|
|
|
819
809
|
if (tilesRect.height === 0 && !element.classList.contains("sapUshellNoLinksAreaPresent")) {
|
|
820
810
|
tilesRect = element.parentNode.getBoundingClientRect();
|
|
@@ -825,15 +815,15 @@ sap.ui.define([
|
|
|
825
815
|
return isHorizontalIntersection && isVerticalIntersection;
|
|
826
816
|
},
|
|
827
817
|
|
|
828
|
-
//Returns the collided tile element position in this.matrix
|
|
818
|
+
// Returns the collided tile element position in this.matrix
|
|
829
819
|
_getMatrixCordinatesOfTouchedTile: function (collidedGroup, moveX, moveY) {
|
|
830
|
-
|
|
831
|
-
|
|
820
|
+
let curTouchMatrixCords = Extend({}, this.curTouchMatrixCords);
|
|
821
|
+
const tilesRect = collidedGroup.getInnerContainersDomRefs()[0].getBoundingClientRect();
|
|
832
822
|
|
|
833
823
|
this.matrix = this.matrix || this.thisLayout.organizeGroup(this.thisLayout.getGroupTiles(collidedGroup));
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
824
|
+
const offset = this.rightToLeft ? (tilesRect.right + (-1) * moveX) : (tilesRect.left * (-1) + moveX);
|
|
825
|
+
const matrixTouchY = (tilesRect.top * (-1) + moveY) / (this.tileHeight + this.tileMargin);
|
|
826
|
+
const matrixTouchX = offset / (this.tileWidth + this.tileMargin);
|
|
837
827
|
|
|
838
828
|
curTouchMatrixCords = {
|
|
839
829
|
row: Math.floor(matrixTouchY),
|
|
@@ -844,15 +834,15 @@ sap.ui.define([
|
|
|
844
834
|
},
|
|
845
835
|
|
|
846
836
|
_getCollidedGroup: function (moveX, moveY) {
|
|
847
|
-
for (
|
|
848
|
-
|
|
849
|
-
|
|
837
|
+
for (let i = 0; i < this.groupsList.length; i++) {
|
|
838
|
+
const oGroup = this.groupsList[i];
|
|
839
|
+
const innerContainerElements = oGroup.getInnerContainersDomRefs();
|
|
850
840
|
|
|
851
841
|
if (!innerContainerElements) {
|
|
852
842
|
continue;
|
|
853
843
|
}
|
|
854
844
|
|
|
855
|
-
for (
|
|
845
|
+
for (let j = 0; j < innerContainerElements.length; j++) { // innerContainerElement[0]: intersect in tile area, innerContainerElement[1]: intersect in link area
|
|
856
846
|
if (innerContainerElements[j] && this._isElementCollideByGivenCordinates(innerContainerElements[j], moveX, moveY)) {
|
|
857
847
|
/*
|
|
858
848
|
* Collapse the empty groups with no overlap to the dragged tile.
|
|
@@ -861,20 +851,20 @@ sap.ui.define([
|
|
|
861
851
|
* the empty groups are quite thin and we would move the focus away from the group the user is hovering over.
|
|
862
852
|
* To avoid this, we only collapse groups if the user is hovering a non-empty group.
|
|
863
853
|
*/
|
|
864
|
-
|
|
865
|
-
for (
|
|
854
|
+
const bCurrentGroupHasNoTiles = !oGroup.groupHasTiles();
|
|
855
|
+
for (let idx = this.groupsList.length - 1; idx >= i; idx--) {
|
|
866
856
|
if (bCurrentGroupHasNoTiles) { // we always collapse groups underneath the current one, as this is fine.
|
|
867
857
|
break;
|
|
868
858
|
}
|
|
869
859
|
if (!this.groupsList[idx].groupHasTiles()) {
|
|
870
|
-
|
|
860
|
+
const oLastGroupExpanded = this.groupsList[idx].getDomRef();
|
|
871
861
|
|
|
872
862
|
if (!oLastGroupExpanded || !oLastGroupExpanded.classList.contains("sapUshellInDragMode")) {
|
|
873
863
|
continue;
|
|
874
864
|
}
|
|
875
865
|
|
|
876
|
-
|
|
877
|
-
for (
|
|
866
|
+
const aInnerElements = oLastGroupExpanded.getElementsByClassName("sapUshellInner");
|
|
867
|
+
for (let k = 0; k < aInnerElements.length; k++) {
|
|
878
868
|
aInnerElements[k].removeAttribute("style");
|
|
879
869
|
}
|
|
880
870
|
}
|
|
@@ -887,7 +877,7 @@ sap.ui.define([
|
|
|
887
877
|
|
|
888
878
|
// if return value is false it means that no change has been done
|
|
889
879
|
_handleTileAreaIntersection: function (collidedGroup, moveX, moveY) {
|
|
890
|
-
|
|
880
|
+
const curTouchMatrixCords = this._getMatrixCordinatesOfTouchedTile(collidedGroup, moveX, moveY);
|
|
891
881
|
|
|
892
882
|
// if place of the tile is the same place as it was, nothing need to be done
|
|
893
883
|
if ((collidedGroup === this.endGroup) &&
|
|
@@ -910,13 +900,11 @@ sap.ui.define([
|
|
|
910
900
|
},
|
|
911
901
|
|
|
912
902
|
_getGroupCollisionObject: function (moveX, moveY) {
|
|
913
|
-
|
|
914
|
-
var bLinkAreaIntersection;
|
|
915
|
-
collidedGroup = this._getCollidedGroup(moveX, moveY);
|
|
903
|
+
const collidedGroup = this._getCollidedGroup(moveX, moveY);
|
|
916
904
|
if (!collidedGroup || collidedGroup.getIsGroupLocked()) {
|
|
917
905
|
return undefined;
|
|
918
906
|
}
|
|
919
|
-
bLinkAreaIntersection = this._isLinkAreaIntersection(collidedGroup, moveX, moveY);
|
|
907
|
+
const bLinkAreaIntersection = this._isLinkAreaIntersection(collidedGroup, moveX, moveY);
|
|
920
908
|
this.endGroup = collidedGroup;
|
|
921
909
|
if (!this.tiles) {
|
|
922
910
|
this.tiles = this.thisLayout.getGroupTiles(this.endGroup).slice(0);
|
|
@@ -931,13 +919,9 @@ sap.ui.define([
|
|
|
931
919
|
},
|
|
932
920
|
|
|
933
921
|
/**
|
|
934
|
-
* @param {int} moveX
|
|
935
|
-
* @param {int} moveY
|
|
936
|
-
* @
|
|
937
|
-
* @returns {{
|
|
938
|
-
* collidedObjectType: String,
|
|
939
|
-
* collidedObject: Object
|
|
940
|
-
* }} A collision object
|
|
922
|
+
* @param {int} moveX The X coordinate of the element's current position
|
|
923
|
+
* @param {int} moveY The Y coordinate of the element's current position
|
|
924
|
+
* @returns {object} A collision object
|
|
941
925
|
*/
|
|
942
926
|
getCollisionObject: function (moveX, moveY) {
|
|
943
927
|
// If TabBar collision timer is on (counting 800ms of long drop)- then it should be cleared since the dragged object was just moved
|
|
@@ -952,10 +936,10 @@ sap.ui.define([
|
|
|
952
936
|
},
|
|
953
937
|
|
|
954
938
|
_isTabBarScrollArea: function (moveY) {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
939
|
+
const iAnchorBarHeight = jQuery("#anchorNavigationBar").height() || 0;
|
|
940
|
+
const oAnchorBarOffset = jQuery("#anchorNavigationBar").offset();
|
|
941
|
+
const iAnchorBarOffsetTop = oAnchorBarOffset ? oAnchorBarOffset.top : 0;
|
|
942
|
+
const iY = iAnchorBarHeight + iAnchorBarOffsetTop;
|
|
959
943
|
|
|
960
944
|
return iAnchorBarHeight > 0 && (moveY > iY) && (moveY < iY + 30);
|
|
961
945
|
},
|
|
@@ -965,14 +949,14 @@ sap.ui.define([
|
|
|
965
949
|
},
|
|
966
950
|
|
|
967
951
|
_isTabBarCollision: function (moveY) {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
952
|
+
const iAnchorBarHeight = jQuery("#anchorNavigationBar").height() || 0;
|
|
953
|
+
const oAnchorBarOffset = jQuery("#anchorNavigationBar").offset();
|
|
954
|
+
const iAnchorBarOffsetTop = oAnchorBarOffset ? oAnchorBarOffset.top : 0;
|
|
971
955
|
|
|
972
956
|
return (moveY < iAnchorBarHeight + iAnchorBarOffsetTop && moveY > iAnchorBarOffsetTop);
|
|
973
957
|
},
|
|
974
958
|
|
|
975
|
-
|
|
959
|
+
/*
|
|
976
960
|
* Handling TabBar use-case when the dragged tile (actually - the cursor) is on a TabBar item.
|
|
977
961
|
* Steps:
|
|
978
962
|
* 1. Get the relevant TabBar item on which the cursor is
|
|
@@ -982,16 +966,17 @@ sap.ui.define([
|
|
|
982
966
|
* 5. Measure 800ms in order to identify long-drop use-case
|
|
983
967
|
*/
|
|
984
968
|
_handleTabBarCollision: function (moveX, aTabBarItemsLocation) {
|
|
985
|
-
|
|
969
|
+
const oHighlightedTabItem = this._getTabBarHoverItem(moveX, aTabBarItemsLocation);
|
|
986
970
|
|
|
987
971
|
// In TabBar, the dragged tile (clone) appears with opacity
|
|
972
|
+
// eslint-disable-next-line no-use-before-define
|
|
988
973
|
if (Layout.isTabBarActive()) {
|
|
989
974
|
this._toggleTileCloneHoverOpacity(true);
|
|
990
975
|
}
|
|
991
976
|
this.lastHighlitedTabItem = oHighlightedTabItem;
|
|
992
977
|
this.thisLayout.setOnTabBarElement(true);
|
|
993
978
|
// In case that the tile is dragged onto the overflow arrow of the TabBar
|
|
994
|
-
|
|
979
|
+
const isOverflowCollision = this._handleOverflowCollision(moveX);
|
|
995
980
|
if (isOverflowCollision) {
|
|
996
981
|
return;
|
|
997
982
|
}
|
|
@@ -1005,12 +990,12 @@ sap.ui.define([
|
|
|
1005
990
|
// In TabBar mode there is no other group (UI5 control) then the current one
|
|
1006
991
|
this.targetGroup = oHighlightedTabItem;
|
|
1007
992
|
this.sDragTargetGroupModelId = oHighlightedTabItem.getAttribute("modelGroupId");
|
|
1008
|
-
|
|
993
|
+
const iTargetGroupIndex = this._getTabBarGroupIndexByModelId(this.sDragTargetGroupModelId);
|
|
1009
994
|
// The timer that counts 800ms is cleared, since the cursor was moved
|
|
1010
995
|
if (this.thisLayout.oTabBarItemClickTimer) {
|
|
1011
996
|
clearTimeout(this.thisLayout.oTabBarItemClickTimer);
|
|
1012
997
|
}
|
|
1013
|
-
|
|
998
|
+
const oDropTargetGroupModel = this._getModelGroupById(this._getDropTargetGroup().groupId);
|
|
1014
999
|
if (oDropTargetGroupModel.isGroupLocked) {
|
|
1015
1000
|
this._toggleTabBarOverflowArrows(false);
|
|
1016
1001
|
this.thisLayout.setOnTabBarElement(false);
|
|
@@ -1025,8 +1010,8 @@ sap.ui.define([
|
|
|
1025
1010
|
this.sDragStartGroupModelId = this.startGroup.getGroupId();
|
|
1026
1011
|
}
|
|
1027
1012
|
// Start counting 800ms in order to identify long-drag use-case
|
|
1028
|
-
this.thisLayout.oTabBarItemClickTimer = setTimeout(
|
|
1029
|
-
|
|
1013
|
+
this.thisLayout.oTabBarItemClickTimer = setTimeout(() => {
|
|
1014
|
+
const currentTabBarItem = this._getSelectedTabBarItem();
|
|
1030
1015
|
if (this.lastHighlitedTabItem === currentTabBarItem) {
|
|
1031
1016
|
return;
|
|
1032
1017
|
}
|
|
@@ -1035,22 +1020,22 @@ sap.ui.define([
|
|
|
1035
1020
|
this._prepareDomForDragAndDrop();
|
|
1036
1021
|
// Remove the dragged tile from the source group before switching to the target group
|
|
1037
1022
|
this.startGroup.removeAggregation("tiles", this.item, true);
|
|
1038
|
-
|
|
1039
|
-
this.item.getBindingContext().oModel.setProperty(this.draggedTileModelPath
|
|
1023
|
+
const bDraggedBackToSourceGroup = this.sDragStartGroupModelId === this.sDragTargetGroupModelId;
|
|
1024
|
+
this.item.getBindingContext().oModel.setProperty(`${this.draggedTileModelPath}/draggedInTabBarToSourceGroup`, bDraggedBackToSourceGroup);
|
|
1040
1025
|
this.groupSwitched = true;
|
|
1041
1026
|
// Triggering the flow of TabBar item press
|
|
1042
1027
|
EventBus.getInstance().publish("launchpad", "switchTabBarItem", { iGroupIndex: iTargetGroupIndex });
|
|
1043
|
-
|
|
1028
|
+
const aThisGroups = this.thisLayout.getGroups();
|
|
1044
1029
|
this.endGroup = aThisGroups[0];
|
|
1045
1030
|
this.bElapseGroupLinksMap = true;
|
|
1046
|
-
}
|
|
1031
|
+
}, 800);
|
|
1047
1032
|
|
|
1048
1033
|
if ((this.tiles === null) && (this.endGroup)) {
|
|
1049
1034
|
this.tiles = this.thisLayout.getGroupTiles(this.endGroup).slice(0);
|
|
1050
1035
|
}
|
|
1051
1036
|
// The TabBar item that is currently touched by the cursor should be highlighted
|
|
1052
|
-
|
|
1053
|
-
for (
|
|
1037
|
+
const aHoveredTabBarItems = document.getElementsByClassName("sapUshellTabBarHoverOn");
|
|
1038
|
+
for (let i = aHoveredTabBarItems.length - 1; i >= 0; --i) {
|
|
1054
1039
|
aHoveredTabBarItems[i].classList.remove("sapUshellTabBarHoverOn");
|
|
1055
1040
|
}
|
|
1056
1041
|
oHighlightedTabItem.classList.add("sapUshellTabBarHoverOn");
|
|
@@ -1059,17 +1044,17 @@ sap.ui.define([
|
|
|
1059
1044
|
},
|
|
1060
1045
|
|
|
1061
1046
|
_prepareDomForDragAndDrop: function () {
|
|
1062
|
-
|
|
1047
|
+
const oItemDomRef = this.item.getDomRef();
|
|
1063
1048
|
if (Device.system.tablet) {
|
|
1064
|
-
|
|
1065
|
-
|
|
1049
|
+
const oClonedDomRef = oItemDomRef.cloneNode(true);
|
|
1050
|
+
const oParentElement = oItemDomRef.parentNode;
|
|
1066
1051
|
this.origItemId = oItemDomRef.getAttribute("id");
|
|
1067
1052
|
this.origItemDataSapUi = oItemDomRef.getAttribute("data-sap-ui");
|
|
1068
1053
|
oItemDomRef.removeAttribute("id");
|
|
1069
1054
|
oItemDomRef.removeAttribute("data-sap-ui");
|
|
1070
1055
|
oItemDomRef.style.display = "none";
|
|
1071
1056
|
oClonedDomRef.style.display = "none";
|
|
1072
|
-
|
|
1057
|
+
const oDashBoardGroups = document.getElementById("dashboardGroups");
|
|
1073
1058
|
oDashBoardGroups.parentNode.appendChild(oItemDomRef);
|
|
1074
1059
|
oParentElement.appendChild(oClonedDomRef);
|
|
1075
1060
|
this.draggedTileDomRef = oItemDomRef;
|
|
@@ -1081,7 +1066,7 @@ sap.ui.define([
|
|
|
1081
1066
|
},
|
|
1082
1067
|
|
|
1083
1068
|
_appendTargetGroupDomRefWithDraggedTile: function () {
|
|
1084
|
-
|
|
1069
|
+
const oEndGroupInnerDomRef = this.endGroup.getInnerContainerDomRefs() ? this.endGroup.getInnerContainerDomRefs()[0] : null;
|
|
1085
1070
|
if (!this.item.getDomRef()) {
|
|
1086
1071
|
if (Device.system.tablet) {
|
|
1087
1072
|
this.draggedTileDomRef.setAttribute("id", this.origItemId);
|
|
@@ -1106,9 +1091,9 @@ sap.ui.define([
|
|
|
1106
1091
|
},
|
|
1107
1092
|
|
|
1108
1093
|
_getTabBarGroupIndexByModelId: function (sGroupModelId) {
|
|
1109
|
-
|
|
1094
|
+
let sTempGroupModelId;
|
|
1110
1095
|
|
|
1111
|
-
for (
|
|
1096
|
+
for (let index = 0; index < this.allGroups.length; ++index) {
|
|
1112
1097
|
sTempGroupModelId = this.allGroups[index].groupId;
|
|
1113
1098
|
if (sGroupModelId === sTempGroupModelId) {
|
|
1114
1099
|
return index;
|
|
@@ -1117,11 +1102,11 @@ sap.ui.define([
|
|
|
1117
1102
|
},
|
|
1118
1103
|
|
|
1119
1104
|
_getModelGroupById: function (sGroupModelId) {
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1105
|
+
const aModelGroups = this.thisLayout.getAllGroups();
|
|
1106
|
+
let oTempModelGroup;
|
|
1107
|
+
let sTempModelGroupId;
|
|
1123
1108
|
|
|
1124
|
-
for (
|
|
1109
|
+
for (let index = 0; index < aModelGroups.length; ++index) {
|
|
1125
1110
|
oTempModelGroup = aModelGroups[index];
|
|
1126
1111
|
sTempModelGroupId = oTempModelGroup.groupId;
|
|
1127
1112
|
if (sTempModelGroupId === sGroupModelId) {
|
|
@@ -1131,8 +1116,8 @@ sap.ui.define([
|
|
|
1131
1116
|
},
|
|
1132
1117
|
|
|
1133
1118
|
_handleOverflowCollision: function (moveX) {
|
|
1134
|
-
|
|
1135
|
-
|
|
1119
|
+
const oAnchor = Element.getElementById("anchorNavigationBar");
|
|
1120
|
+
const sOverflowSide = this._calculateOverflowButtonSideCollision(moveX);
|
|
1136
1121
|
|
|
1137
1122
|
// Right overflow
|
|
1138
1123
|
if (sOverflowSide === "right") {
|
|
@@ -1142,7 +1127,7 @@ sap.ui.define([
|
|
|
1142
1127
|
this.tabBarArrowCollisionRight = true;
|
|
1143
1128
|
}
|
|
1144
1129
|
return true;
|
|
1145
|
-
} else if (sOverflowSide === "left") { //Left Overflow
|
|
1130
|
+
} else if (sOverflowSide === "left") { // Left Overflow
|
|
1146
1131
|
// Only if we didn't stay on the left overflow button
|
|
1147
1132
|
if (!this.tabBarArrowCollisionLeft) {
|
|
1148
1133
|
oAnchor._scrollToGroupByGroupIndex(0, 5000);
|
|
@@ -1155,15 +1140,15 @@ sap.ui.define([
|
|
|
1155
1140
|
},
|
|
1156
1141
|
|
|
1157
1142
|
_calculateOverflowButtonSideCollision: function (moveX) {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1143
|
+
const anchorRightOverflowArrow = jQuery(".sapUshellAnchorRightOverFlowButton");
|
|
1144
|
+
const anchorRightOverflowArrowLeftOffset = anchorRightOverflowArrow.offset().left;
|
|
1145
|
+
const anchorItemOverFlow = jQuery(".sapUshellAnchorItemOverFlow");
|
|
1146
|
+
const anchorItemOverFlowOffset = anchorItemOverFlow.offset().left;
|
|
1147
|
+
const anchorLeftOverflowArrow = jQuery(".sapUshellAnchorLeftOverFlowButton");
|
|
1148
|
+
const anchorLeftOverflowArrowLeftOffset = anchorLeftOverflowArrow.offset().left;
|
|
1149
|
+
const anchorOverflowArrowLeftWidth = 32;
|
|
1150
|
+
const jqAnchor = jQuery("#anchorNavigationBar");
|
|
1151
|
+
const anchorBarOffsetLeft = jqAnchor.offset().left;
|
|
1167
1152
|
|
|
1168
1153
|
if (moveX > anchorRightOverflowArrowLeftOffset && moveX < anchorItemOverFlowOffset) {
|
|
1169
1154
|
return "right";
|
|
@@ -1174,8 +1159,8 @@ sap.ui.define([
|
|
|
1174
1159
|
},
|
|
1175
1160
|
|
|
1176
1161
|
_resetOverFlowButtonElements: function () {
|
|
1177
|
-
|
|
1178
|
-
|
|
1162
|
+
const bTablet = Device.system.tablet;
|
|
1163
|
+
const anchorBar = jQuery(bTablet ? ".sapUshellAnchorNavigationBarItemsScroll" : ".sapUshellAnchorNavigationBarItems");
|
|
1179
1164
|
|
|
1180
1165
|
anchorBar.stop();
|
|
1181
1166
|
this.tabBarArrowCollisionRight = false;
|
|
@@ -1183,28 +1168,28 @@ sap.ui.define([
|
|
|
1183
1168
|
},
|
|
1184
1169
|
|
|
1185
1170
|
_toggleTabBarOverflowArrows: function (bShow) {
|
|
1186
|
-
|
|
1187
|
-
|
|
1171
|
+
const anchorRightOverflowArrow = document.getElementsByClassName("sapUshellAnchorRightOverFlowButton");
|
|
1172
|
+
const anchorLeftOverflowArrow = document.getElementsByClassName("sapUshellAnchorLeftOverFlowButton");
|
|
1188
1173
|
|
|
1189
|
-
for (
|
|
1174
|
+
for (let i = 0; i < anchorRightOverflowArrow.length; ++i) {
|
|
1190
1175
|
anchorRightOverflowArrow[i].classList.toggle("sapUshellTabBarOverflowButton", bShow);
|
|
1191
1176
|
}
|
|
1192
|
-
for (
|
|
1177
|
+
for (let j = 0; j < anchorLeftOverflowArrow.length; ++j) {
|
|
1193
1178
|
anchorLeftOverflowArrow[j].classList.toggle("sapUshellTabBarOverflowButton", bShow);
|
|
1194
1179
|
}
|
|
1195
1180
|
},
|
|
1196
1181
|
|
|
1197
1182
|
_getTabBarHoverItem: function (moveX, aTabBarItemsLocation) {
|
|
1198
|
-
|
|
1183
|
+
const iLeftTabBarOffset = jQuery(".sapUshellAnchorItem:not(.sapUshellShellHidden)").eq(0).offset().left;
|
|
1199
1184
|
if (moveX - iLeftTabBarOffset <= 0) {
|
|
1200
1185
|
return;
|
|
1201
1186
|
}
|
|
1202
|
-
|
|
1187
|
+
let iNumOfBasicUnits = Math.round((moveX - iLeftTabBarOffset) / 10);
|
|
1203
1188
|
if (iNumOfBasicUnits >= aTabBarItemsLocation.length) {
|
|
1204
1189
|
iNumOfBasicUnits = aTabBarItemsLocation.length - 1;
|
|
1205
1190
|
}
|
|
1206
|
-
|
|
1207
|
-
|
|
1191
|
+
const oHighlightedTabItemIndexInBar = aTabBarItemsLocation[iNumOfBasicUnits];
|
|
1192
|
+
const aTabBarItems = document.getElementsByClassName("sapUshellAnchorItem");
|
|
1208
1193
|
|
|
1209
1194
|
return aTabBarItems[oHighlightedTabItemIndexInBar];
|
|
1210
1195
|
},
|
|
@@ -1217,9 +1202,9 @@ sap.ui.define([
|
|
|
1217
1202
|
if (!this.matrix) {
|
|
1218
1203
|
return;
|
|
1219
1204
|
}
|
|
1220
|
-
|
|
1221
|
-
return row.map(
|
|
1222
|
-
|
|
1205
|
+
const newMatrix = this.matrix.map((row) => {
|
|
1206
|
+
return row.map((item) => {
|
|
1207
|
+
const isRemoveRequired = aExcludedControlClass.some((controlClass) => {
|
|
1223
1208
|
return item instanceof controlClass;
|
|
1224
1209
|
});
|
|
1225
1210
|
return (isRemoveRequired) ? undefined : item;
|
|
@@ -1243,20 +1228,20 @@ sap.ui.define([
|
|
|
1243
1228
|
}
|
|
1244
1229
|
};
|
|
1245
1230
|
|
|
1246
|
-
|
|
1247
|
-
|
|
1231
|
+
function LayoutConstructor () { }
|
|
1232
|
+
let fnPromiseResolve;
|
|
1248
1233
|
LayoutConstructor.prototype = {
|
|
1249
1234
|
|
|
1250
|
-
_initDeferred: new Promise(
|
|
1235
|
+
_initDeferred: new Promise((fnResolve) => { fnPromiseResolve = fnResolve; }),
|
|
1251
1236
|
|
|
1252
1237
|
init: function (cfg) {
|
|
1253
1238
|
// in some devices this code runs before css filed were loaded and we don't get the correct styleInfo object
|
|
1254
|
-
|
|
1255
|
-
|
|
1239
|
+
const timeoutLayoutInfo = function () {
|
|
1240
|
+
const sContainerId = (this.container && this.container.getAttribute("id")) || "";
|
|
1256
1241
|
if (sContainerId.includes("destroyed")) {
|
|
1257
1242
|
return; // container was already destroyed
|
|
1258
1243
|
}
|
|
1259
|
-
|
|
1244
|
+
const styleInfo = this.getStyleInfo(this.container);
|
|
1260
1245
|
if (styleInfo.tileWidth > 0) {
|
|
1261
1246
|
this.isInited = true;
|
|
1262
1247
|
this.reRenderGroupsLayout();
|
|
@@ -1275,12 +1260,12 @@ sap.ui.define([
|
|
|
1275
1260
|
this.oTabBarItemClickTimer = new Date();
|
|
1276
1261
|
this.bTabBarModeActive = false;
|
|
1277
1262
|
this.bOnTabBarElement = false;
|
|
1278
|
-
|
|
1263
|
+
const oLaunchpageService = Container.getServiceAsync("FlpLaunchPage");
|
|
1279
1264
|
if (oLaunchpageService) {
|
|
1280
|
-
oLaunchpageService.then(
|
|
1265
|
+
oLaunchpageService.then((oLaunchPageService) => {
|
|
1281
1266
|
this.oLaunchPageService = oLaunchPageService;
|
|
1282
1267
|
timeoutLayoutInfo();
|
|
1283
|
-
}
|
|
1268
|
+
});
|
|
1284
1269
|
} else {
|
|
1285
1270
|
timeoutLayoutInfo();
|
|
1286
1271
|
}
|
|
@@ -1319,15 +1304,15 @@ sap.ui.define([
|
|
|
1319
1304
|
},
|
|
1320
1305
|
|
|
1321
1306
|
getStyleInfo: function (container) {
|
|
1322
|
-
|
|
1323
|
-
|
|
1307
|
+
const tile = document.createElement("div");
|
|
1308
|
+
const containerId = container.getAttribute("id");
|
|
1324
1309
|
container = containerId ? document.getElementById(containerId) : container;
|
|
1325
1310
|
if (!container) { // container is not rendered
|
|
1326
1311
|
return {};
|
|
1327
1312
|
}
|
|
1328
1313
|
tile.className = "sapUshellTile";
|
|
1329
1314
|
|
|
1330
|
-
|
|
1315
|
+
const sizeBehavior = Config.last("/core/home/sizeBehavior");
|
|
1331
1316
|
if (sizeBehavior === "Small") {
|
|
1332
1317
|
tile.classList.add("sapUshellSmall");
|
|
1333
1318
|
}
|
|
@@ -1335,9 +1320,9 @@ sap.ui.define([
|
|
|
1335
1320
|
tile.style.position = "absolute";
|
|
1336
1321
|
tile.style.visibility = "hidden";
|
|
1337
1322
|
container.appendChild(tile);
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1323
|
+
const tileStyle = window.getComputedStyle(tile);
|
|
1324
|
+
const containerStyle = window.getComputedStyle(container);
|
|
1325
|
+
const info = {
|
|
1341
1326
|
tileMarginHeight: parseFloat(tileStyle.marginBottom, 10) + parseFloat(tileStyle.marginTop, 10),
|
|
1342
1327
|
tileMarginWidth: parseFloat(tileStyle.marginLeft, 10) + parseFloat(tileStyle.marginRight, 10),
|
|
1343
1328
|
tileWidth: tile.offsetWidth,
|
|
@@ -1361,7 +1346,7 @@ sap.ui.define([
|
|
|
1361
1346
|
return this.cfg.isTabBarActive ? this.cfg.isTabBarActive() : false;
|
|
1362
1347
|
},
|
|
1363
1348
|
|
|
1364
|
-
getTilesInRow: function (/*bIslink*/) {
|
|
1349
|
+
getTilesInRow: function (/* bIslink */) {
|
|
1365
1350
|
return this.tilesInRow;
|
|
1366
1351
|
},
|
|
1367
1352
|
|
|
@@ -1369,7 +1354,7 @@ sap.ui.define([
|
|
|
1369
1354
|
this.tilesInRow = tilesInRow;
|
|
1370
1355
|
},
|
|
1371
1356
|
|
|
1372
|
-
|
|
1357
|
+
/*
|
|
1373
1358
|
* Returns an {x,y} object of coordinates for placing the tile
|
|
1374
1359
|
* Returns false if the space is taken by another tile already
|
|
1375
1360
|
*/
|
|
@@ -1383,11 +1368,11 @@ sap.ui.define([
|
|
|
1383
1368
|
if (typeof matrix[place.y][place.x] !== "undefined") {
|
|
1384
1369
|
return false;
|
|
1385
1370
|
}
|
|
1386
|
-
|
|
1371
|
+
const p = Extend({}, place);
|
|
1387
1372
|
if (bIsLinkTiles || (tile && tile.getLong && !tile.getLong())) {
|
|
1388
1373
|
return [p];
|
|
1389
1374
|
}
|
|
1390
|
-
|
|
1375
|
+
const cords = [p];
|
|
1391
1376
|
if (tile && tile.getLong && tile.getLong()) {
|
|
1392
1377
|
if ((place.x + 1) >= matrix[0].length || (typeof matrix[p.y][p.x + 1] !== "undefined")) {
|
|
1393
1378
|
return false;
|
|
@@ -1397,21 +1382,18 @@ sap.ui.define([
|
|
|
1397
1382
|
return cords;
|
|
1398
1383
|
},
|
|
1399
1384
|
|
|
1400
|
-
|
|
1401
|
-
* @param tile
|
|
1402
|
-
* @param matrix
|
|
1403
|
-
* @param cords
|
|
1385
|
+
/*
|
|
1404
1386
|
* Places the given tile in the given coordinates in matrix
|
|
1405
1387
|
*/
|
|
1406
1388
|
placeTile: function (tile, matrix, cords) {
|
|
1407
|
-
for (
|
|
1389
|
+
for (let i = 0; i < cords.length; i++) {
|
|
1408
1390
|
matrix[cords[i].y][cords[i].x] = tile;
|
|
1409
1391
|
}
|
|
1410
1392
|
},
|
|
1411
1393
|
|
|
1412
1394
|
getTilePositionInMatrix: function (tile, matrix) {
|
|
1413
|
-
for (
|
|
1414
|
-
for (
|
|
1395
|
+
for (let iRow = 0; iRow < matrix.length; iRow++) {
|
|
1396
|
+
for (let iCol = 0; iCol < matrix[iRow].length; iCol++) {
|
|
1415
1397
|
if (matrix[iRow][iCol] === tile) {
|
|
1416
1398
|
return { row: iRow, col: iCol };
|
|
1417
1399
|
}
|
|
@@ -1420,20 +1402,15 @@ sap.ui.define([
|
|
|
1420
1402
|
return false;
|
|
1421
1403
|
},
|
|
1422
1404
|
|
|
1423
|
-
|
|
1424
|
-
* @param matrix
|
|
1425
|
-
* @param tiles
|
|
1426
|
-
* @param startRow
|
|
1427
|
-
* @param endRow
|
|
1428
|
-
* @returns {int}
|
|
1405
|
+
/*
|
|
1429
1406
|
* Fills the given matrix row with tiles.
|
|
1430
1407
|
*/
|
|
1431
1408
|
fillRowsInLine: function (matrix, tiles, row, bIsLinkTiles) {
|
|
1432
1409
|
if (!tiles.length) {
|
|
1433
1410
|
return 0;
|
|
1434
1411
|
}
|
|
1435
|
-
|
|
1436
|
-
for (
|
|
1412
|
+
let cords;
|
|
1413
|
+
for (let j = 0; j < matrix[0].length && tiles.length; j++) {
|
|
1437
1414
|
cords = this.checkPlaceForTile(tiles[0], matrix, { x: j, y: row }, bIsLinkTiles);
|
|
1438
1415
|
if (cords) {
|
|
1439
1416
|
this.placeTile(tiles[0], matrix, cords);
|
|
@@ -1442,27 +1419,23 @@ sap.ui.define([
|
|
|
1442
1419
|
}
|
|
1443
1420
|
},
|
|
1444
1421
|
|
|
1445
|
-
|
|
1446
|
-
* @param tiles
|
|
1447
|
-
* @param containerInfo
|
|
1448
|
-
* @returns {int[]}
|
|
1449
|
-
*
|
|
1422
|
+
/*
|
|
1450
1423
|
* Organizes tiles from array to matrix by filing fixed length rows tile-by-tile
|
|
1451
|
-
*
|
|
1424
|
+
* Returns the new matrix
|
|
1452
1425
|
*/
|
|
1453
1426
|
organizeGroup: function (tiles, bIsLinkTiles) {
|
|
1454
|
-
//copy of tilesCopy array
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1427
|
+
// copy of tilesCopy array
|
|
1428
|
+
const tilesCopy = tiles.slice(0);
|
|
1429
|
+
let tilesMatrix = [];
|
|
1430
|
+
let currentRow = 0;
|
|
1458
1431
|
tilesMatrix.push(new Array(bIsLinkTiles ? Math.floor(this.tilesInRow / 2) : this.tilesInRow));
|
|
1459
1432
|
|
|
1460
1433
|
while (tilesCopy.length) {
|
|
1461
|
-
this.fillRowsInLine(tilesMatrix, tilesCopy, currentRow, bIsLinkTiles); //to do: get the declaration outside
|
|
1434
|
+
this.fillRowsInLine(tilesMatrix, tilesCopy, currentRow, bIsLinkTiles); // to do: get the declaration outside
|
|
1462
1435
|
currentRow++;
|
|
1463
1436
|
}
|
|
1464
1437
|
if (this.rightToLeft) {
|
|
1465
|
-
for (
|
|
1438
|
+
for (let i = 0; i < tilesMatrix.length; i++) {
|
|
1466
1439
|
tilesMatrix[i].reverse();
|
|
1467
1440
|
}
|
|
1468
1441
|
}
|
|
@@ -1472,10 +1445,10 @@ sap.ui.define([
|
|
|
1472
1445
|
|
|
1473
1446
|
/* If there is a row with no tiles - it is removed from the matrix */
|
|
1474
1447
|
cleanRows: function (tilesMatrix) {
|
|
1475
|
-
|
|
1448
|
+
let doneChecking = false;
|
|
1476
1449
|
|
|
1477
|
-
for (
|
|
1478
|
-
for (
|
|
1450
|
+
for (let row = tilesMatrix.length - 1; row > 0 && !doneChecking; row--) {
|
|
1451
|
+
for (let col = 0; col < tilesMatrix[row].length && !doneChecking; col++) {
|
|
1479
1452
|
if (typeof tilesMatrix[row][col] === "object") {
|
|
1480
1453
|
doneChecking = true;
|
|
1481
1454
|
}
|
|
@@ -1489,7 +1462,7 @@ sap.ui.define([
|
|
|
1489
1462
|
|
|
1490
1463
|
setGroupsLayout: function (group, matrix) {
|
|
1491
1464
|
if (group.getIsGroupLocked() && matrix.length > 0) {
|
|
1492
|
-
|
|
1465
|
+
const parentContainer = group.getDomRef().parentElement;
|
|
1493
1466
|
|
|
1494
1467
|
group.getDomRef().style.width = "";
|
|
1495
1468
|
parentContainer.style.width = "";
|
|
@@ -1498,14 +1471,14 @@ sap.ui.define([
|
|
|
1498
1471
|
},
|
|
1499
1472
|
|
|
1500
1473
|
calcTilesInRow: function (containerWidth, tileWidth, tileMargin) {
|
|
1501
|
-
|
|
1474
|
+
let tilesInRow = Math.floor(containerWidth / (tileWidth + tileMargin));
|
|
1502
1475
|
// Min number of tile in row that was predefined by UI
|
|
1503
1476
|
tilesInRow = (tilesInRow < this.minTilesinRow ? this.minTilesinRow : tilesInRow);
|
|
1504
1477
|
return tilesInRow;
|
|
1505
1478
|
},
|
|
1506
1479
|
|
|
1507
1480
|
getGroupTiles: function (oGroup) {
|
|
1508
|
-
|
|
1481
|
+
const aTiles = oGroup.getTiles();
|
|
1509
1482
|
// insert plus tile only in non empty groups
|
|
1510
1483
|
if (oGroup.getShowPlaceholder()) {
|
|
1511
1484
|
aTiles.push(oGroup.oPlusTile);
|
|
@@ -1518,20 +1491,20 @@ sap.ui.define([
|
|
|
1518
1491
|
if (!this.isInited) {
|
|
1519
1492
|
return;
|
|
1520
1493
|
}
|
|
1521
|
-
|
|
1494
|
+
const styleInfo = this.getStyleInfo(this.container);
|
|
1522
1495
|
if (!styleInfo.tileWidth) {
|
|
1523
1496
|
return;
|
|
1524
1497
|
}
|
|
1525
1498
|
this.styleInfo = styleInfo;
|
|
1526
1499
|
this.tilesInRow = this.calcTilesInRow(styleInfo.containerWidth, styleInfo.tileWidth, styleInfo.tileMarginWidth);
|
|
1527
1500
|
groups = groups || this.getGroups();
|
|
1528
|
-
for (
|
|
1501
|
+
for (let i = 0; i < groups.length; i++) {
|
|
1529
1502
|
if (groups[i].getDomRef && !groups[i].getDomRef()) {
|
|
1530
1503
|
// we don't render invisible groups
|
|
1531
1504
|
continue;
|
|
1532
1505
|
}
|
|
1533
|
-
|
|
1534
|
-
|
|
1506
|
+
const tiles = this.getGroupTiles(groups[i]);
|
|
1507
|
+
const groupLayoutMatrix = this.organizeGroup(tiles);
|
|
1535
1508
|
this.setGroupsLayout(groups[i], groupLayoutMatrix);
|
|
1536
1509
|
}
|
|
1537
1510
|
},
|
|
@@ -1541,20 +1514,20 @@ sap.ui.define([
|
|
|
1541
1514
|
},
|
|
1542
1515
|
|
|
1543
1516
|
endDragMode: function () {
|
|
1544
|
-
|
|
1545
|
-
for (
|
|
1546
|
-
|
|
1517
|
+
const groups = this.getGroups();
|
|
1518
|
+
for (let i = 0; i < groups.length; i++) {
|
|
1519
|
+
const oGroupElement = groups[i].getDomRef();
|
|
1547
1520
|
if (!oGroupElement || !oGroupElement.classList.contains("sapUshellInDragMode")) {
|
|
1548
1521
|
continue;
|
|
1549
1522
|
}
|
|
1550
1523
|
oGroupElement.classList.remove("sapUshellInDragMode");
|
|
1551
|
-
|
|
1552
|
-
for (
|
|
1524
|
+
const tiles = this.getGroupTiles(groups[i]);
|
|
1525
|
+
for (let j = 0; j < tiles.length; j++) {
|
|
1553
1526
|
tiles[j].getDomRef().removeAttribute("style");
|
|
1554
1527
|
}
|
|
1555
1528
|
|
|
1556
|
-
|
|
1557
|
-
for (
|
|
1529
|
+
const aInnerElements = oGroupElement.getElementsByClassName("sapUshellInner");
|
|
1530
|
+
for (let k = 0; k < aInnerElements.length; k++) {
|
|
1558
1531
|
aInnerElements[k].removeAttribute("style");
|
|
1559
1532
|
}
|
|
1560
1533
|
}
|
|
@@ -1564,15 +1537,15 @@ sap.ui.define([
|
|
|
1564
1537
|
if (group.$().hasClass("sapUshellInDragMode")) {
|
|
1565
1538
|
return;
|
|
1566
1539
|
}
|
|
1567
|
-
|
|
1568
|
-
|
|
1540
|
+
const tiles = this.getGroupTiles(group);
|
|
1541
|
+
const groupLayoutMatrix = this.organizeGroup(tiles);
|
|
1569
1542
|
group.$().addClass("sapUshellInDragMode");
|
|
1570
1543
|
this.renderLayoutGroup(group, groupLayoutMatrix);
|
|
1571
1544
|
},
|
|
1572
1545
|
|
|
1573
1546
|
calcTranslate: function (row, col) {
|
|
1574
|
-
|
|
1575
|
-
|
|
1547
|
+
let translateX = col * (this.styleInfo.tileWidth + this.styleInfo.tileMarginWidth);
|
|
1548
|
+
const translateY = row * (this.styleInfo.tileHeight + this.styleInfo.tileMarginHeight);
|
|
1576
1549
|
// for RTL need negative X
|
|
1577
1550
|
if (this.layoutEngine.rightToLeft) {
|
|
1578
1551
|
translateX = -translateX;
|
|
@@ -1581,12 +1554,12 @@ sap.ui.define([
|
|
|
1581
1554
|
},
|
|
1582
1555
|
|
|
1583
1556
|
renderLayoutGroup: function (group, groupLayoutMatrix) {
|
|
1584
|
-
|
|
1557
|
+
let currentTile;
|
|
1585
1558
|
|
|
1586
1559
|
this.styleInfo = this.getStyleInfo(this.container);
|
|
1587
1560
|
|
|
1588
|
-
for (
|
|
1589
|
-
for (
|
|
1561
|
+
for (let i = 0; i < groupLayoutMatrix.length; i++) {
|
|
1562
|
+
for (let j = 0; j < groupLayoutMatrix[i].length; j++) {
|
|
1590
1563
|
if (currentTile === groupLayoutMatrix[i][j]) {
|
|
1591
1564
|
continue;
|
|
1592
1565
|
} else {
|
|
@@ -1599,6 +1572,6 @@ sap.ui.define([
|
|
|
1599
1572
|
}
|
|
1600
1573
|
}
|
|
1601
1574
|
};
|
|
1602
|
-
|
|
1575
|
+
const Layout = new LayoutConstructor();
|
|
1603
1576
|
return Layout;
|
|
1604
1577
|
});
|