@sapui5/sap.ushell 1.141.2 → 1.142.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.
Files changed (776) hide show
  1. package/package.json +1 -1
  2. package/src/main/js/sap/ushell/.library +1 -7
  3. package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +7 -11
  4. package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
  5. package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
  6. package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
  7. package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
  8. package/src/main/js/sap/ushell/URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
  9. package/src/main/js/sap/ushell/URLTemplateProcessor/DependencyGraph.js +1 -1
  10. package/src/main/js/sap/ushell/URLTemplateProcessor/Functions.js +1 -1
  11. package/src/main/js/sap/ushell/URLTemplateProcessor/Resolvers.js +1 -1
  12. package/src/main/js/sap/ushell/URLTemplateProcessor/TemplateParameterParser.js +1 -1
  13. package/src/main/js/sap/ushell/URLTemplateProcessor/utils.js +1 -1
  14. package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
  15. package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
  16. package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
  17. package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
  18. package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +1 -1
  19. package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
  20. package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
  21. package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -3
  22. package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
  23. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
  24. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
  25. package/src/main/js/sap/ushell/adapters/cdm/Settings/UserLanguageAndRegion/UserLanguageAndRegion.view.xml +5 -12
  26. package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
  27. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
  28. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
  29. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
  30. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
  31. package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
  32. package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
  33. package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -2
  34. package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
  35. package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
  36. package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
  37. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
  38. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
  39. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
  40. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
  41. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
  42. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
  43. package/src/main/js/sap/ushell/adapters/cep/MenuAdapter.js +41 -24
  44. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
  45. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +3 -2
  46. package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
  47. package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +1 -1
  48. package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
  49. package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +1 -1
  50. package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +1 -1
  51. package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
  52. package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +1 -1
  53. package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
  54. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
  55. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +1 -1
  56. package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
  57. package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +1 -1
  58. package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -1
  59. package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +1 -1
  60. package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
  61. package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
  62. package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
  63. package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
  64. package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
  65. package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
  66. package/src/main/js/sap/ushell/appIntegration/AppLifeCycle.js +4 -7
  67. package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +43 -20
  68. package/src/main/js/sap/ushell/appIntegration/ApplicationContainerRenderer.js +0 -11
  69. package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainer.js +89 -32
  70. package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainerRenderer.js +53 -52
  71. package/src/main/js/sap/ushell/appIntegration/PostMessageHandler/NWBCHandler.js +1 -1
  72. package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +52 -15
  73. package/src/main/js/sap/ushell/appIntegration/PostMessagePluginInterface.js +4 -0
  74. package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainer.js +15 -28
  75. package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +15 -26
  76. package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +2 -2
  77. package/src/main/js/sap/ushell/appRuntime/ui5/AppRuntime.js +2 -1
  78. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
  79. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
  80. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +20 -3
  81. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycleAgent.js +17 -6
  82. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +1 -1
  83. package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
  84. package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +1 -1
  85. package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
  86. package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +1 -1
  87. package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +2 -2
  88. package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
  89. package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +1 -1
  90. package/src/main/js/sap/ushell/appRuntime/ui5/services/FlpLaunchPage.js +1 -1
  91. package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
  92. package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
  93. package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
  94. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
  95. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
  96. package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +2 -2
  97. package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
  98. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
  99. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
  100. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +1 -1
  101. package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
  102. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
  103. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +14 -17
  104. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +1 -1
  105. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +1 -1
  106. package/src/main/js/sap/ushell/bootstrap/cdm/cdm.constants.js +0 -1
  107. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
  108. package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +18 -5
  109. package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
  110. package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
  111. package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +1 -1
  112. package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
  113. package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
  114. package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
  115. package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +1 -1
  116. package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +1 -1
  117. package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
  118. package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +1 -1
  119. package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +1 -1
  120. package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
  121. package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
  122. package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
  123. package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +2 -2
  124. package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
  125. package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
  126. package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
  127. package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
  128. package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
  129. package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
  130. package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +2 -2
  131. package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
  132. package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
  133. package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
  134. package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
  135. package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
  136. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +1 -1
  137. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +1 -1
  138. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
  139. package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +25 -50
  140. package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsList.controller.js +1 -1
  141. package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsListPopoverContent.view.xml +2 -2
  142. package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsListPopoverHeader.fragment.xml +1 -1
  143. package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsModule.js +169 -0
  144. package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +2 -2
  145. package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
  146. package/src/main/js/sap/ushell/components/shell/Search/Component.js +6 -2
  147. package/src/main/js/sap/ushell/components/shell/Search/SearchModule.js +58 -0
  148. package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
  149. package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
  150. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
  151. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
  152. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
  153. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +1 -1
  154. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/Component.js +30 -21
  155. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/FrequentActivityProvider.js +1 -1
  156. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/RecentSearchProvider.js +1 -1
  157. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchProvider.js +1 -1
  158. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchServiceProvider.js +1 -1
  159. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/manifest.json +1 -1
  160. package/src/main/js/sap/ushell/components/shell/Settings/Component.js +2 -2
  161. package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.view.xml +0 -1
  162. package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +11 -18
  163. package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
  164. package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +23 -18
  165. package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +1 -1
  166. package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -1
  167. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
  168. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +5 -5
  169. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.fragment.xml +2 -2
  170. package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
  171. package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
  172. package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
  173. package/src/main/js/sap/ushell/library.js +1 -8
  174. package/src/main/js/sap/ushell/modules/BaseAPI.js +107 -0
  175. package/src/main/js/sap/ushell/modules/BaseProvider.js +43 -0
  176. package/src/main/js/sap/ushell/modules/Notifications/NotificationsAPI.js +253 -0
  177. package/src/main/js/sap/ushell/modules/Notifications/NotificationsProvider.js +50 -0
  178. package/src/main/js/sap/ushell/modules/Notifications.js +53 -0
  179. package/src/main/js/sap/ushell/modules/Search/SearchAPI.js +271 -0
  180. package/src/main/js/sap/ushell/modules/Search/SearchProvider.js +50 -0
  181. package/src/main/js/sap/ushell/modules/Search.js +55 -0
  182. package/src/main/js/sap/ushell/modules/loader/AbstractLoader.js +95 -0
  183. package/src/main/js/sap/ushell/modules/loader/NotificationsLoader.js +148 -0
  184. package/src/main/js/sap/ushell/modules/loader/SearchLoader.js +153 -0
  185. package/src/main/js/sap/ushell/navigationMode.js +1 -1
  186. package/src/main/js/sap/ushell/performance/FesrEnhancer.js +136 -40
  187. package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
  188. package/src/main/js/sap/ushell/performance/StatisticalRecord.js +26 -1
  189. package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
  190. package/src/main/js/sap/ushell/plugins/ghostapp/FakeModel.js +19 -14
  191. package/src/main/js/sap/ushell/renderer/Renderer.js +4 -4
  192. package/src/main/js/sap/ushell/renderer/Shell.controller.js +108 -3
  193. package/src/main/js/sap/ushell/renderer/Shell.view.js +1 -1
  194. package/src/main/js/sap/ushell/renderer/resources/resources.properties +6 -8
  195. package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +0 -1
  196. package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +0 -1
  197. package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +0 -1
  198. package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +0 -1
  199. package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +0 -1
  200. package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +0 -1
  201. package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +0 -1
  202. package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +0 -1
  203. package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +0 -1
  204. package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +0 -1
  205. package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +0 -1
  206. package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +0 -1
  207. package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +1 -2
  208. package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +0 -1
  209. package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +0 -1
  210. package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +0 -1
  211. package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +0 -1
  212. package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +0 -1
  213. package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +0 -1
  214. package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +0 -1
  215. package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +0 -1
  216. package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +0 -1
  217. package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +0 -1
  218. package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +0 -1
  219. package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +0 -1
  220. package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +0 -1
  221. package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +0 -1
  222. package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +0 -1
  223. package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +0 -1
  224. package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +0 -1
  225. package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +0 -1
  226. package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +0 -1
  227. package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +0 -1
  228. package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +0 -1
  229. package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +0 -1
  230. package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +0 -1
  231. package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +0 -1
  232. package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +0 -1
  233. package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +0 -1
  234. package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +0 -1
  235. package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +0 -1
  236. package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +0 -1
  237. package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +0 -1
  238. package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +0 -1
  239. package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +0 -1
  240. package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +0 -1
  241. package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +0 -1
  242. package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +0 -1
  243. package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +0 -1
  244. package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
  245. package/src/main/js/sap/ushell/services/AppLifeCycle.js +44 -36
  246. package/src/main/js/sap/ushell/services/AppState.js +1 -1
  247. package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
  248. package/src/main/js/sap/ushell/services/BookmarkV2.js +1 -1
  249. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +1 -1
  250. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +1 -1
  251. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +1 -1
  252. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +1 -1
  253. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
  254. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
  255. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
  256. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
  257. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
  258. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
  259. package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +2 -1
  260. package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
  261. package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
  262. package/src/main/js/sap/ushell/services/CommonDataModel.js +1 -1
  263. package/src/main/js/sap/ushell/services/Configuration.js +1 -1
  264. package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
  265. package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
  266. package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
  267. package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
  268. package/src/main/js/sap/ushell/services/Extension/Item.js +1 -1
  269. package/src/main/js/sap/ushell/services/Extension.js +15 -3
  270. package/src/main/js/sap/ushell/services/FlpLaunchPage.js +1 -1
  271. package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +1 -1
  272. package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +1 -1
  273. package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +1 -1
  274. package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
  275. package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
  276. package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +1 -1
  277. package/src/main/js/sap/ushell/services/FrameBoundExtension.js +21 -8
  278. package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
  279. package/src/main/js/sap/ushell/services/Menu.js +1 -181
  280. package/src/main/js/sap/ushell/services/Message.js +1 -1
  281. package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +1 -1
  282. package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
  283. package/src/main/js/sap/ushell/services/MessageInternal.js +1 -1
  284. package/src/main/js/sap/ushell/services/Navigation/compatibility.js +1 -1
  285. package/src/main/js/sap/ushell/services/Navigation/utils.js +1 -1
  286. package/src/main/js/sap/ushell/services/Navigation.js +1 -1
  287. package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
  288. package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
  289. package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
  290. package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
  291. package/src/main/js/sap/ushell/services/Pages.js +1 -1
  292. package/src/main/js/sap/ushell/services/Personalization.js +1 -1
  293. package/src/main/js/sap/ushell/services/PersonalizationV2.js +1 -1
  294. package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +1 -1
  295. package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +1 -1
  296. package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +1 -1
  297. package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +1 -1
  298. package/src/main/js/sap/ushell/services/PluginManager.js +1 -2
  299. package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
  300. package/src/main/js/sap/ushell/services/Search.js +1 -1
  301. package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
  302. package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
  303. package/src/main/js/sap/ushell/services/ShellNavigation.js +1 -1
  304. package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
  305. package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
  306. package/src/main/js/sap/ushell/services/UITracer.js +1 -1
  307. package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
  308. package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
  309. package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +5 -35
  310. package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
  311. package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
  312. package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
  313. package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
  314. package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
  315. package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
  316. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
  317. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
  318. package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
  319. package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
  320. package/src/main/js/sap/ushell/state/StateManager.js +5 -1
  321. package/src/main/js/sap/ushell/state/StateRules.js +10 -1
  322. package/src/main/js/sap/ushell/state/modules/BackNavigation.js +1 -1
  323. package/src/main/js/sap/ushell/state/modules/ContentDensity.js +1 -1
  324. package/src/main/js/sap/ushell/state/modules/Favicon.js +1 -1
  325. package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +1 -1
  326. package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
  327. package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
  328. package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
  329. package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
  330. package/src/main/js/sap/ushell/ui/launchpad/VizInstanceCdm.js +0 -2
  331. package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
  332. package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +0 -8
  333. package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
  334. package/src/main/js/sap/ushell/ui/utils.js +1 -1
  335. package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +1 -1
  336. package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
  337. package/src/main/js/sap/ushell/utils/SmartBusiness.js +102 -0
  338. package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
  339. package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
  340. package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +1 -1
  341. package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
  342. package/src/main/js/sap/ushell/utils.js +10 -34
  343. package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
  344. package/ui5.yaml +19 -32
  345. package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +0 -228
  346. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +0 -277
  347. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +0 -2128
  348. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +0 -462
  349. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +0 -182
  350. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +0 -135
  351. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +0 -400
  352. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +0 -345
  353. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +0 -103
  354. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +0 -147
  355. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRenderer.js +0 -60
  356. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +0 -277
  357. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +0 -96
  358. package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +0 -59
  359. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources.properties +0 -177
  360. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ar.properties +0 -93
  361. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_bg.properties +0 -93
  362. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ca.properties +0 -93
  363. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cnr.properties +0 -93
  364. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cs.properties +0 -93
  365. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_cy.properties +0 -93
  366. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_da.properties +0 -93
  367. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_de.properties +0 -93
  368. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_el.properties +0 -93
  369. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_GB.properties +0 -93
  370. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_sappsd.properties +0 -79
  371. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saprigi.properties +0 -93
  372. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_en_US_saptrc.properties +0 -90
  373. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_es.properties +0 -93
  374. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_es_MX.properties +0 -93
  375. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_et.properties +0 -93
  376. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_fi.properties +0 -93
  377. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_fr.properties +0 -93
  378. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_fr_CA.properties +0 -93
  379. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_hi.properties +0 -93
  380. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_hr.properties +0 -93
  381. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_hu.properties +0 -93
  382. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_id.properties +0 -93
  383. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_it.properties +0 -93
  384. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_iw.properties +0 -93
  385. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ja.properties +0 -93
  386. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_kk.properties +0 -93
  387. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ko.properties +0 -93
  388. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_lt.properties +0 -93
  389. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_lv.properties +0 -93
  390. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_mk.properties +0 -93
  391. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ms.properties +0 -93
  392. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_nl.properties +0 -93
  393. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_no.properties +0 -93
  394. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_pl.properties +0 -93
  395. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_pt.properties +0 -93
  396. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_pt_PT.properties +0 -93
  397. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ro.properties +0 -93
  398. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_ru.properties +0 -93
  399. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sh.properties +0 -93
  400. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sk.properties +0 -93
  401. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sl.properties +0 -93
  402. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sr.properties +0 -93
  403. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_sv.properties +0 -93
  404. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_th.properties +0 -93
  405. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_tr.properties +0 -93
  406. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_uk.properties +0 -93
  407. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_vi.properties +0 -93
  408. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_zh_CN.properties +0 -93
  409. package/src/main/js/sap/ushell/components/workPageBuilder/resources/resources_zh_TW.properties +0 -93
  410. package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageBuilder.view.xml +0 -248
  411. package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageCellDeleteDialog.fragment.xml +0 -25
  412. package/src/main/js/sap/ushell/components/workPageBuilder/view/WorkPageRowDeleteDialog.fragment.xml +0 -25
  413. package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +0 -67
  414. package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +0 -176
  415. package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +0 -50
  416. package/src/main/js/sap/ushell/components/workPageRuntime/view/WorkPageRuntime.view.xml +0 -37
  417. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Avatar.js +0 -118
  418. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Button.js +0 -222
  419. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Label.js +0 -74
  420. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItem.js +0 -87
  421. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemBase.js +0 -46
  422. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemGroup.js +0 -152
  423. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Menu.js +0 -184
  424. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +0 -193
  425. package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +0 -554
  426. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/IllustratedMessage.js +0 -97
  427. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationList.js +0 -134
  428. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListGroupItem.js +0 -82
  429. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItem.js +0 -125
  430. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItemBase.js +0 -54
  431. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js +0 -162
  432. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItem.js +0 -74
  433. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItemGroup.js +0 -35
  434. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchMessageArea.js +0 -52
  435. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchScope.js +0 -54
  436. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBar.js +0 -379
  437. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarBranding.js +0 -77
  438. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarItem.js +0 -87
  439. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSearch.js +0 -156
  440. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSpacer.js +0 -48
  441. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenu.js +0 -196
  442. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuAccount.js +0 -82
  443. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuItem.js +0 -41
  444. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +0 -1716
  445. package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +0 -3015
  446. package/src/main/js/sap/ushell/thirdparty/AccessibilityTextsHelper.js +0 -13
  447. package/src/main/js/sap/ushell/thirdparty/Avatar.js +0 -453
  448. package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +0 -233
  449. package/src/main/js/sap/ushell/thirdparty/Button.js +0 -7
  450. package/src/main/js/sap/ushell/thirdparty/Button2.js +0 -645
  451. package/src/main/js/sap/ushell/thirdparty/FocusableElements.js +0 -10
  452. package/src/main/js/sap/ushell/thirdparty/Icon.js +0 -313
  453. package/src/main/js/sap/ushell/thirdparty/Icons.js +0 -234
  454. package/src/main/js/sap/ushell/thirdparty/IllustratedMessage.js +0 -1297
  455. package/src/main/js/sap/ushell/thirdparty/Label.js +0 -115
  456. package/src/main/js/sap/ushell/thirdparty/Link.js +0 -316
  457. package/src/main/js/sap/ushell/thirdparty/List.js +0 -1254
  458. package/src/main/js/sap/ushell/thirdparty/ListBoxItemGroupTemplate.js +0 -14
  459. package/src/main/js/sap/ushell/thirdparty/ListItemAdditionalText.css.js +0 -10
  460. package/src/main/js/sap/ushell/thirdparty/ListItemBase.js +0 -251
  461. package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +0 -1689
  462. package/src/main/js/sap/ushell/thirdparty/ListItemGroup.js +0 -637
  463. package/src/main/js/sap/ushell/thirdparty/Menu.js +0 -389
  464. package/src/main/js/sap/ushell/thirdparty/MenuItem.js +0 -10
  465. package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +0 -762
  466. package/src/main/js/sap/ushell/thirdparty/NotificationList.js +0 -291
  467. package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +0 -310
  468. package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +0 -534
  469. package/src/main/js/sap/ushell/thirdparty/NotificationListItemBase.js +0 -98
  470. package/src/main/js/sap/ushell/thirdparty/ResponsivePopover.js +0 -2306
  471. package/src/main/js/sap/ushell/thirdparty/SearchItem.js +0 -128
  472. package/src/main/js/sap/ushell/thirdparty/SearchItemGroup.js +0 -44
  473. package/src/main/js/sap/ushell/thirdparty/SearchMessageArea.js +0 -49
  474. package/src/main/js/sap/ushell/thirdparty/SearchScope.js +0 -39
  475. package/src/main/js/sap/ushell/thirdparty/ShellBar.js +0 -1809
  476. package/src/main/js/sap/ushell/thirdparty/ShellBarBranding.js +0 -119
  477. package/src/main/js/sap/ushell/thirdparty/ShellBarItem.js +0 -89
  478. package/src/main/js/sap/ushell/thirdparty/ShellBarSearch.js +0 -7
  479. package/src/main/js/sap/ushell/thirdparty/ShellBarSearch2.js +0 -3380
  480. package/src/main/js/sap/ushell/thirdparty/ShellBarSpacer.js +0 -40
  481. package/src/main/js/sap/ushell/thirdparty/Tag.js +0 -302
  482. package/src/main/js/sap/ushell/thirdparty/Text.js +0 -127
  483. package/src/main/js/sap/ushell/thirdparty/Title.js +0 -167
  484. package/src/main/js/sap/ushell/thirdparty/UserMenu.js +0 -950
  485. package/src/main/js/sap/ushell/thirdparty/UserMenuAccount.js +0 -114
  486. package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +0 -61
  487. package/src/main/js/sap/ushell/thirdparty/ValueState.js +0 -7
  488. package/src/main/js/sap/ushell/thirdparty/WrappingType.js +0 -24
  489. package/src/main/js/sap/ushell/thirdparty/_dynamics/InputSuggestions.js +0 -397
  490. package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +0 -193
  491. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT.js +0 -585
  492. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT2.js +0 -585
  493. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite.js +0 -1194
  494. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite2.js +0 -1194
  495. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons.js +0 -2509
  496. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons2.js +0 -2509
  497. package/src/main/js/sap/ushell/thirdparty/_dynamics/ar.js +0 -7139
  498. package/src/main/js/sap/ushell/thirdparty/_dynamics/ar_EG.js +0 -7139
  499. package/src/main/js/sap/ushell/thirdparty/_dynamics/ar_SA.js +0 -7138
  500. package/src/main/js/sap/ushell/thirdparty/_dynamics/bg.js +0 -6031
  501. package/src/main/js/sap/ushell/thirdparty/_dynamics/ca.js +0 -6133
  502. package/src/main/js/sap/ushell/thirdparty/_dynamics/cnr.js +0 -6219
  503. package/src/main/js/sap/ushell/thirdparty/_dynamics/cs.js +0 -6759
  504. package/src/main/js/sap/ushell/thirdparty/_dynamics/da.js +0 -5977
  505. package/src/main/js/sap/ushell/thirdparty/_dynamics/de.js +0 -6098
  506. package/src/main/js/sap/ushell/thirdparty/_dynamics/de_AT.js +0 -6099
  507. package/src/main/js/sap/ushell/thirdparty/_dynamics/de_CH.js +0 -6097
  508. package/src/main/js/sap/ushell/thirdparty/_dynamics/el.js +0 -5882
  509. package/src/main/js/sap/ushell/thirdparty/_dynamics/el_CY.js +0 -5882
  510. package/src/main/js/sap/ushell/thirdparty/_dynamics/en.js +0 -6094
  511. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_AU.js +0 -6134
  512. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_GB.js +0 -6125
  513. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_HK.js +0 -6136
  514. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_IE.js +0 -6125
  515. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_IN.js +0 -6132
  516. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_NZ.js +0 -6125
  517. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_PG.js +0 -6126
  518. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_SG.js +0 -6132
  519. package/src/main/js/sap/ushell/thirdparty/_dynamics/en_ZA.js +0 -6126
  520. package/src/main/js/sap/ushell/thirdparty/_dynamics/es.js +0 -6153
  521. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_AR.js +0 -6156
  522. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_BO.js +0 -6155
  523. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_CL.js +0 -6048
  524. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_CO.js +0 -6048
  525. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_MX.js +0 -6157
  526. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_PE.js +0 -5939
  527. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_UY.js +0 -5941
  528. package/src/main/js/sap/ushell/thirdparty/_dynamics/es_VE.js +0 -5940
  529. package/src/main/js/sap/ushell/thirdparty/_dynamics/et.js +0 -6077
  530. package/src/main/js/sap/ushell/thirdparty/_dynamics/fa.js +0 -6002
  531. package/src/main/js/sap/ushell/thirdparty/_dynamics/fi.js +0 -6245
  532. package/src/main/js/sap/ushell/thirdparty/_dynamics/fr.js +0 -6047
  533. package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_BE.js +0 -6047
  534. package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_CA.js +0 -6041
  535. package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_CH.js +0 -6065
  536. package/src/main/js/sap/ushell/thirdparty/_dynamics/fr_LU.js +0 -6047
  537. package/src/main/js/sap/ushell/thirdparty/_dynamics/he.js +0 -6593
  538. package/src/main/js/sap/ushell/thirdparty/_dynamics/hi.js +0 -5911
  539. package/src/main/js/sap/ushell/thirdparty/_dynamics/hr.js +0 -6246
  540. package/src/main/js/sap/ushell/thirdparty/_dynamics/hu.js +0 -5995
  541. package/src/main/js/sap/ushell/thirdparty/_dynamics/id.js +0 -5783
  542. package/src/main/js/sap/ushell/thirdparty/_dynamics/it.js +0 -6036
  543. package/src/main/js/sap/ushell/thirdparty/_dynamics/it_CH.js +0 -6036
  544. package/src/main/js/sap/ushell/thirdparty/_dynamics/ja.js +0 -5942
  545. package/src/main/js/sap/ushell/thirdparty/_dynamics/kk.js +0 -5989
  546. package/src/main/js/sap/ushell/thirdparty/_dynamics/ko.js +0 -5823
  547. package/src/main/js/sap/ushell/thirdparty/_dynamics/lt.js +0 -6628
  548. package/src/main/js/sap/ushell/thirdparty/_dynamics/lv.js +0 -6164
  549. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar.js +0 -182
  550. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +0 -845
  551. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +0 -596
  552. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg.js +0 -182
  553. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +0 -845
  554. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +0 -596
  555. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca.js +0 -182
  556. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +0 -845
  557. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +0 -596
  558. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr.js +0 -182
  559. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +0 -845
  560. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +0 -596
  561. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs.js +0 -182
  562. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +0 -845
  563. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +0 -596
  564. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy.js +0 -182
  565. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +0 -845
  566. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +0 -596
  567. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da.js +0 -182
  568. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +0 -845
  569. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +0 -596
  570. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de.js +0 -182
  571. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +0 -845
  572. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +0 -596
  573. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el.js +0 -182
  574. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +0 -845
  575. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +0 -596
  576. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en.js +0 -11
  577. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +0 -182
  578. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +0 -845
  579. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en4.js +0 -602
  580. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB.js +0 -182
  581. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +0 -845
  582. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +0 -596
  583. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +0 -11
  584. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +0 -182
  585. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +0 -845
  586. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd4.js +0 -596
  587. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +0 -11
  588. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +0 -182
  589. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +0 -845
  590. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi4.js +0 -602
  591. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +0 -11
  592. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +0 -182
  593. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +0 -845
  594. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc4.js +0 -596
  595. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es.js +0 -182
  596. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +0 -845
  597. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +0 -596
  598. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX.js +0 -182
  599. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +0 -845
  600. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +0 -596
  601. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et.js +0 -182
  602. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +0 -845
  603. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +0 -596
  604. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi.js +0 -182
  605. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +0 -845
  606. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +0 -596
  607. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr.js +0 -182
  608. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +0 -845
  609. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +0 -596
  610. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA.js +0 -182
  611. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +0 -845
  612. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +0 -596
  613. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi.js +0 -182
  614. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +0 -845
  615. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +0 -596
  616. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr.js +0 -182
  617. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +0 -845
  618. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +0 -596
  619. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu.js +0 -182
  620. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +0 -845
  621. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +0 -596
  622. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id.js +0 -182
  623. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +0 -845
  624. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +0 -596
  625. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it.js +0 -182
  626. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +0 -845
  627. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +0 -596
  628. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw.js +0 -182
  629. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +0 -845
  630. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +0 -596
  631. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja.js +0 -182
  632. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +0 -845
  633. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +0 -596
  634. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk.js +0 -182
  635. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +0 -845
  636. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +0 -596
  637. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko.js +0 -182
  638. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +0 -845
  639. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +0 -596
  640. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt.js +0 -182
  641. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +0 -845
  642. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +0 -596
  643. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv.js +0 -182
  644. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +0 -845
  645. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +0 -596
  646. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk.js +0 -182
  647. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +0 -845
  648. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +0 -596
  649. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms.js +0 -182
  650. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +0 -845
  651. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +0 -596
  652. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl.js +0 -182
  653. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +0 -845
  654. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +0 -596
  655. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no.js +0 -182
  656. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +0 -845
  657. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +0 -596
  658. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl.js +0 -182
  659. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +0 -845
  660. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +0 -596
  661. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt.js +0 -182
  662. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +0 -845
  663. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +0 -596
  664. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT.js +0 -182
  665. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +0 -845
  666. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +0 -596
  667. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro.js +0 -182
  668. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +0 -845
  669. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +0 -596
  670. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru.js +0 -182
  671. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +0 -845
  672. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +0 -596
  673. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh.js +0 -182
  674. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +0 -845
  675. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +0 -596
  676. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk.js +0 -182
  677. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +0 -845
  678. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +0 -596
  679. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl.js +0 -182
  680. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +0 -845
  681. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +0 -596
  682. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr.js +0 -182
  683. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +0 -845
  684. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +0 -596
  685. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv.js +0 -182
  686. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +0 -845
  687. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +0 -596
  688. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th.js +0 -182
  689. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +0 -845
  690. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +0 -596
  691. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr.js +0 -182
  692. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +0 -845
  693. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +0 -596
  694. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk.js +0 -182
  695. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +0 -845
  696. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +0 -596
  697. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi.js +0 -182
  698. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +0 -845
  699. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +0 -596
  700. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN.js +0 -182
  701. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +0 -845
  702. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +0 -596
  703. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW.js +0 -182
  704. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +0 -845
  705. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +0 -596
  706. package/src/main/js/sap/ushell/thirdparty/_dynamics/mk.js +0 -6095
  707. package/src/main/js/sap/ushell/thirdparty/_dynamics/ms.js +0 -5617
  708. package/src/main/js/sap/ushell/thirdparty/_dynamics/nb.js +0 -6085
  709. package/src/main/js/sap/ushell/thirdparty/_dynamics/nl.js +0 -6252
  710. package/src/main/js/sap/ushell/thirdparty/_dynamics/nl_BE.js +0 -6252
  711. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +0 -7
  712. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +0 -7
  713. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +0 -7
  714. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +0 -7
  715. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +0 -7
  716. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +0 -7
  717. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +0 -7
  718. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +0 -7
  719. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +0 -7
  720. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +0 -7
  721. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +0 -7
  722. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +0 -7
  723. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +0 -7
  724. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +0 -7
  725. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +0 -7
  726. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css25.js +0 -7
  727. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css26.js +0 -7
  728. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css27.js +0 -7
  729. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +0 -7
  730. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +0 -7
  731. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +0 -7
  732. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +0 -7
  733. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +0 -7
  734. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +0 -7
  735. package/src/main/js/sap/ushell/thirdparty/_dynamics/pl.js +0 -6639
  736. package/src/main/js/sap/ushell/thirdparty/_dynamics/pt.js +0 -6165
  737. package/src/main/js/sap/ushell/thirdparty/_dynamics/pt_PT.js +0 -6230
  738. package/src/main/js/sap/ushell/thirdparty/_dynamics/ro.js +0 -6250
  739. package/src/main/js/sap/ushell/thirdparty/_dynamics/ru.js +0 -6553
  740. package/src/main/js/sap/ushell/thirdparty/_dynamics/ru_UA.js +0 -6553
  741. package/src/main/js/sap/ushell/thirdparty/_dynamics/sk.js +0 -6482
  742. package/src/main/js/sap/ushell/thirdparty/_dynamics/sl.js +0 -6494
  743. package/src/main/js/sap/ushell/thirdparty/_dynamics/sr.js +0 -6291
  744. package/src/main/js/sap/ushell/thirdparty/_dynamics/sr_Latn.js +0 -6278
  745. package/src/main/js/sap/ushell/thirdparty/_dynamics/sv.js +0 -6126
  746. package/src/main/js/sap/ushell/thirdparty/_dynamics/th.js +0 -5928
  747. package/src/main/js/sap/ushell/thirdparty/_dynamics/tr.js +0 -6146
  748. package/src/main/js/sap/ushell/thirdparty/_dynamics/uk.js +0 -6504
  749. package/src/main/js/sap/ushell/thirdparty/_dynamics/vi.js +0 -5720
  750. package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_CN.js +0 -5770
  751. package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_HK.js +0 -5779
  752. package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_SG.js +0 -5779
  753. package/src/main/js/sap/ushell/thirdparty/_dynamics/zh_TW.js +0 -5846
  754. package/src/main/js/sap/ushell/thirdparty/encodeXML.js +0 -87
  755. package/src/main/js/sap/ushell/thirdparty/event-strict.js +0 -7
  756. package/src/main/js/sap/ushell/thirdparty/generateHighlightedMarkup.js +0 -9
  757. package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +0 -115
  758. package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +0 -157
  759. package/src/main/js/sap/ushell/thirdparty/information.js +0 -100
  760. package/src/main/js/sap/ushell/thirdparty/information2.js +0 -13
  761. package/src/main/js/sap/ushell/thirdparty/overflow.js +0 -25
  762. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +0 -11
  763. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css2.js +0 -44
  764. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css3.js +0 -8
  765. package/src/main/js/sap/ushell/thirdparty/query.js +0 -7
  766. package/src/main/js/sap/ushell/thirdparty/slim-arrow-down.js +0 -44
  767. package/src/main/js/sap/ushell/thirdparty/sys-enter-2.js +0 -7
  768. package/src/main/js/sap/ushell/thirdparty/toLowercaseEnumValue.js +0 -7
  769. package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons/AllIcons.js +0 -26
  770. package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-business-suite/AllIcons.js +0 -26
  771. package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-tnt/AllIcons.js +0 -26
  772. package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +0 -4300
  773. package/src/main/js/sap/ushell/thirdparty/webcomponents-base2.js +0 -7
  774. package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +0 -146
  775. package/src/main/js/sap/ushell/thirdparty/webcomponents.js +0 -381
  776. package/src/main/js/sap/ushell/thirdparty/willShowContent.js +0 -7
@@ -1,2306 +0,0 @@
1
- sap.ui.define(['exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdparty/Icons', 'sap/ushell/thirdparty/parameters-bundle.css', 'sap/ushell/thirdparty/i18n-defaults2', 'sap/ushell/thirdparty/parameters-bundle.css2', 'sap/ushell/thirdparty/information', 'sap/ushell/thirdparty/Title', 'sap/ushell/thirdparty/ValueState', 'sap/ushell/thirdparty/toLowercaseEnumValue', 'sap/ushell/thirdparty/event-strict', 'sap/ushell/thirdparty/FocusableElements', 'sap/ushell/thirdparty/AccessibilityTextsHelper', 'sap/ushell/thirdparty/Icon', 'sap/ushell/thirdparty/Button2'], (function (exports, webcomponentsBase, Icons, parametersBundle_css$1, i18nDefaults, parametersBundle_css, information, Title, ValueState, toLowercaseEnumValue, eventStrict, FocusableElements, AccessibilityTextsHelper, Icon, Button) { 'use strict';
2
-
3
- const e$1={toAttribute(t){return t instanceof HTMLElement?null:t},fromAttribute(t){return t}};
4
-
5
- function PopubBlockLayerTemplate() {
6
- return (parametersBundle_css.jsx("div", { class: "ui5-block-layer", onKeyDown: this._preventBlockLayerFocus, onMouseDown: this._preventBlockLayerFocus }));
7
- }
8
-
9
- function PopupTemplate(hooks) {
10
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [PopubBlockLayerTemplate.call(this), parametersBundle_css.jsxs("section", { "root-element": true, style: this.styles.root, class: this.classes.root, role: this._role, "aria-describedby": this.ariaDescribedByIds, "aria-modal": this._ariaModal, "aria-label": this._ariaLabel, "aria-labelledby": this._ariaLabelledBy, onKeyDown: this._onkeydown, onFocusOut: this._onfocusout, onMouseUp: this._onmouseup, onMouseDown: this._onmousedown, children: [parametersBundle_css.jsx("span", { class: "first-fe", "data-ui5-focus-trap": true, role: "none", tabIndex: 0, onFocusIn: this.forwardToLast }), (hooks?.beforeContent || beforeContent$2).call(this), parametersBundle_css.jsx("div", { style: this.styles.content, class: this.classes.content, onScroll: this._scroll, part: "content", children: parametersBundle_css.jsx("slot", {}) }), this.ariaDescriptionText &&
11
- parametersBundle_css.jsx("span", { id: "accessibleDescription", class: "ui5-hidden-text", children: this.ariaDescriptionText }), (hooks?.afterContent || afterContent$2).call(this), parametersBundle_css.jsx("span", { class: "last-fe", "data-ui5-focus-trap": true, role: "none", tabIndex: 0, onFocusIn: this.forwardToFirst })] })] }));
12
- }
13
- function beforeContent$2() { }
14
- function afterContent$2() { }
15
-
16
- function PopoverTemplate() {
17
- return PopupTemplate.call(this, {
18
- beforeContent: beforeContent$1,
19
- afterContent: afterContent$1,
20
- });
21
- }
22
- function beforeContent$1() {
23
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("span", { class: "ui5-popover-arrow", style: this.styles.arrow }), this._displayHeader &&
24
- parametersBundle_css.jsx("header", { class: "ui5-popup-header-root", id: "ui5-popup-header", part: "header", children: this.header.length ?
25
- parametersBundle_css.jsx("slot", { name: "header" })
26
- :
27
- parametersBundle_css.jsx(Title.Title, { level: "H1", class: "ui5-popup-header-text", children: this.headerText }) })] }));
28
- }
29
- function afterContent$1() {
30
- return (parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: this._displayFooter && !!this.footer.length &&
31
- parametersBundle_css.jsx("footer", { class: "ui5-popup-footer-root", part: "footer", children: parametersBundle_css.jsx("slot", { name: "footer" }) }) }));
32
- }
33
-
34
- const m$1=(t,a,e)=>Math.min(Math.max(t,a),Math.max(a,e));
35
-
36
- const r=()=>{const e=webcomponentsBase.t();return e&&typeof e.focus=="function"?e:null},a=e=>{const n=r();return n?l(e,n):false},l=(e,n)=>{let t=e;if(t.shadowRoot&&(t=Array.from(t.shadowRoot.children).find(c=>c.localName!=="style"),!t))return false;if(t===n)return true;const o=t.localName==="slot"?t.assignedNodes():t.children;return o?Array.from(o).some(s=>l(s,n)):false},m=(e,n,t)=>e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom,f=(e,n)=>{let t,o;if(e instanceof MouseEvent)t=e.clientX,o=e.clientY;else {const s=e.touches[0];t=s.clientX,o=s.clientY;}return m(t,o,n)};function d(e){return "isUI5Element"in e&&"_show"in e}const i=e=>{const n=e.parentElement||e.getRootNode&&e.getRootNode().host;return n&&(d(n)||n===document.documentElement)?n:i(n)};
37
-
38
- /**
39
- * Popup accessible roles.
40
- * @public
41
- */
42
- var PopupAccessibleRole;
43
- (function (PopupAccessibleRole) {
44
- /**
45
- * Represents no ARIA role.
46
- * @public
47
- */
48
- PopupAccessibleRole["None"] = "None";
49
- /**
50
- * Represents the ARIA role "dialog".
51
- * @public
52
- */
53
- PopupAccessibleRole["Dialog"] = "Dialog";
54
- /**
55
- * Represents the ARIA role "alertdialog".
56
- * @public
57
- */
58
- PopupAccessibleRole["AlertDialog"] = "AlertDialog";
59
- })(PopupAccessibleRole || (PopupAccessibleRole = {}));
60
- var PopupAccessibleRole$1 = PopupAccessibleRole;
61
-
62
- const OpenedPopupsRegistry = Icons.m("OpenedPopupsRegistry", { openedRegistry: [] });
63
- const openUI5Support = Icons.n$1("OpenUI5Support");
64
- function registerPopupWithOpenUI5Support(popupInfo) {
65
- openUI5Support?.addOpenedPopup(popupInfo);
66
- }
67
- function unregisterPopupWithOpenUI5Support(popup) {
68
- openUI5Support?.removeOpenedPopup(popup);
69
- }
70
- const addOpenedPopup = (instance, parentPopovers = []) => {
71
- if (!OpenedPopupsRegistry.openedRegistry.some(popup => popup.instance === instance)) {
72
- OpenedPopupsRegistry.openedRegistry.push({
73
- instance,
74
- parentPopovers,
75
- });
76
- registerPopupWithOpenUI5Support({
77
- type: "WebComponent",
78
- instance,
79
- });
80
- }
81
- _updateTopModalPopup();
82
- if (OpenedPopupsRegistry.openedRegistry.length === 1) {
83
- attachGlobalListener();
84
- }
85
- };
86
- const removeOpenedPopup = (instance) => {
87
- OpenedPopupsRegistry.openedRegistry = OpenedPopupsRegistry.openedRegistry.filter(el => {
88
- return el.instance !== instance;
89
- });
90
- unregisterPopupWithOpenUI5Support(instance);
91
- _updateTopModalPopup();
92
- if (!OpenedPopupsRegistry.openedRegistry.length) {
93
- detachGlobalListener();
94
- }
95
- };
96
- const getOpenedPopups = () => {
97
- return [...OpenedPopupsRegistry.openedRegistry];
98
- };
99
- const _keydownListener = (event) => {
100
- if (!OpenedPopupsRegistry.openedRegistry.length) {
101
- return;
102
- }
103
- if (webcomponentsBase.m$2(event)) {
104
- const topmostPopup = OpenedPopupsRegistry.openedRegistry[OpenedPopupsRegistry.openedRegistry.length - 1].instance;
105
- if (openUI5Support && topmostPopup !== openUI5Support.getTopmostPopup()) {
106
- return;
107
- }
108
- event.stopPropagation();
109
- topmostPopup.closePopup(true);
110
- }
111
- };
112
- const attachGlobalListener = () => {
113
- document.addEventListener("keydown", _keydownListener);
114
- };
115
- const detachGlobalListener = () => {
116
- document.removeEventListener("keydown", _keydownListener);
117
- };
118
- const _updateTopModalPopup = () => {
119
- let popup;
120
- let hasModal = false;
121
- for (let i = OpenedPopupsRegistry.openedRegistry.length - 1; i >= 0; i--) {
122
- popup = OpenedPopupsRegistry.openedRegistry[i].instance;
123
- if (!hasModal && popup.isModal) {
124
- popup.isTopModalPopup = true;
125
- hasModal = true;
126
- }
127
- else {
128
- popup.isTopModalPopup = false;
129
- }
130
- }
131
- };
132
-
133
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
134
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
135
- var popupStlyes = `:host{min-width:1px;overflow:visible;border:none;inset:unset;margin:0;padding:0}:host(:focus-visible){outline:none}
136
- `;
137
-
138
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
139
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
140
- var popupBlockLayerStyles = `.ui5-block-layer{position:fixed;z-index:-1;display:none;inset:-500px;outline:none;pointer-events:all}
141
- `;
142
-
143
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
144
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
145
- var globalStyles = `.ui5-popup-scroll-blocker{overflow:hidden}
146
- `;
147
-
148
- var __decorate$3 = (this && this.__decorate) || function (decorators, target, key, desc) {
149
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
150
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
151
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
152
- return c > 3 && r && Object.defineProperty(target, key, r), r;
153
- };
154
- var Popup_1;
155
- const createBlockingStyle = () => {
156
- if (!Icons.S("data-ui5-popup-scroll-blocker")) {
157
- Icons.c$1(globalStyles, "data-ui5-popup-scroll-blocker");
158
- }
159
- };
160
- createBlockingStyle();
161
- const pageScrollingBlockers = new Set();
162
- /**
163
- * @class
164
- * ### Overview
165
- * Base class for all popup Web Components.
166
- *
167
- * If you need to create your own popup-like custom UI5 Web Components.
168
- *
169
- * 1. The Popup class handles modality:
170
- * - The "isModal" getter can be overridden by derivatives to provide their own conditions when they are modal or not
171
- * - Derivatives may call the "blockPageScrolling" and "unblockPageScrolling" static methods to temporarily remove scrollbars on the html element
172
- * - Derivatives may call the "openPopup" and "closePopup" methods which handle focus, manage the popup registry and for modal popups, manage the blocking layer
173
- *
174
- * 2. Provides blocking layer (relevant for modal popups only):
175
- * - Controlled by the "open" and "close" methods
176
- *
177
- * 3. The Popup class "traps" focus:
178
- * - Derivatives may call the "applyInitialFocus" method (usually when opening, to transfer focus inside the popup)
179
- *
180
- * 4. The template of this component exposes two inline partials you can override in derivatives:
181
- * - beforeContent (upper part of the box, useful for header/title/close button)
182
- * - afterContent (lower part, useful for footer/action buttons)
183
- * @constructor
184
- * @extends UI5Element
185
- * @public
186
- */
187
- let Popup = Popup_1 = class Popup extends webcomponentsBase.b {
188
- constructor() {
189
- super();
190
- /**
191
- * Defines if the focus should be returned to the previously focused element,
192
- * when the popup closes.
193
- * @default false
194
- * @public
195
- * @since 1.0.0-rc.8
196
- */
197
- this.preventFocusRestore = false;
198
- /**
199
- * Allows setting a custom role.
200
- * @default "Dialog"
201
- * @public
202
- * @since 1.10.0
203
- */
204
- this.accessibleRole = "Dialog";
205
- /**
206
- * Indicates whether initial focus should be prevented.
207
- * @public
208
- * @default false
209
- * @since 2.0.0
210
- */
211
- this.preventInitialFocus = false;
212
- /**
213
- * Indicates if the element is the top modal popup
214
- *
215
- * This property is calculated automatically
216
- * @private
217
- * @default false
218
- */
219
- this.isTopModalPopup = false;
220
- /**
221
- * @private
222
- */
223
- this.onPhone = false;
224
- /**
225
- * @private
226
- */
227
- this.onDesktop = false;
228
- this._opened = false;
229
- this._open = false;
230
- this._resizeHandlerRegistered = false;
231
- this._resizeHandler = this._resize.bind(this);
232
- this._getRealDomRef = () => {
233
- return this.shadowRoot.querySelector("[root-element]");
234
- };
235
- }
236
- onBeforeRendering() {
237
- this.onPhone = Icons.d();
238
- this.onDesktop = Icons.f();
239
- }
240
- onAfterRendering() {
241
- Icons.f$1().then(() => {
242
- this._updateMediaRange();
243
- });
244
- if (this.open) {
245
- this._registerResizeHandler();
246
- }
247
- else {
248
- this._deregisterResizeHandler();
249
- }
250
- }
251
- onEnterDOM() {
252
- this.setAttribute("popover", "manual");
253
- if (Icons.f()) {
254
- this.setAttribute("desktop", "");
255
- }
256
- this.tabIndex = -1;
257
- this.handleOpenOnEnterDOM();
258
- this.setAttribute("data-sap-ui-fastnavgroup-container", "true");
259
- AccessibilityTextsHelper.y(this, this._updateAssociatedLabelsTexts.bind(this));
260
- }
261
- handleOpenOnEnterDOM() {
262
- if (this.open) {
263
- this.showPopover();
264
- this.openPopup();
265
- }
266
- }
267
- onExitDOM() {
268
- if (this._opened) {
269
- Popup_1.unblockPageScrolling(this);
270
- this._removeOpenedPopup();
271
- }
272
- webcomponentsBase.f.deregister(this, this._resizeHandler);
273
- AccessibilityTextsHelper.T(this);
274
- }
275
- /**
276
- * Indicates if the element is open
277
- * @public
278
- * @default false
279
- * @since 1.2.0
280
- */
281
- set open(value) {
282
- if (this._open === value) {
283
- return;
284
- }
285
- this._open = value;
286
- if (value) {
287
- this.openPopup();
288
- }
289
- else {
290
- this.closePopup();
291
- }
292
- }
293
- get open() {
294
- return this._open;
295
- }
296
- async openPopup() {
297
- if (this._opened) {
298
- return;
299
- }
300
- const prevented = !this.fireDecoratorEvent("before-open");
301
- if (prevented) {
302
- this.open = false;
303
- return;
304
- }
305
- if (this.isModal) {
306
- Popup_1.blockPageScrolling(this);
307
- }
308
- this._focusedElementBeforeOpen = r();
309
- this._show();
310
- this._opened = true;
311
- if (this.getDomRef()) {
312
- this._updateMediaRange();
313
- }
314
- this._addOpenedPopup();
315
- this.open = true;
316
- // initial focus, if focused element is statically created
317
- await this.applyInitialFocus();
318
- await Icons.f$1();
319
- if (this.isConnected) {
320
- this.fireDecoratorEvent("open");
321
- }
322
- }
323
- _resize() {
324
- this._updateMediaRange();
325
- }
326
- /**
327
- * Prevents the user from interacting with the content under the block layer
328
- */
329
- _preventBlockLayerFocus(e) {
330
- e.preventDefault();
331
- }
332
- /**
333
- * Temporarily removes scrollbars from the html element
334
- * @protected
335
- */
336
- static blockPageScrolling(popup) {
337
- pageScrollingBlockers.add(popup);
338
- if (pageScrollingBlockers.size !== 1) {
339
- return;
340
- }
341
- document.documentElement.classList.add("ui5-popup-scroll-blocker");
342
- }
343
- /**
344
- * Restores scrollbars on the html element, if needed
345
- * @protected
346
- */
347
- static unblockPageScrolling(popup) {
348
- pageScrollingBlockers.delete(popup);
349
- if (pageScrollingBlockers.size !== 0) {
350
- return;
351
- }
352
- document.documentElement.classList.remove("ui5-popup-scroll-blocker");
353
- }
354
- _scroll(e) {
355
- this.fireDecoratorEvent("scroll", {
356
- scrollTop: e.target.scrollTop,
357
- targetRef: e.target,
358
- });
359
- }
360
- _onkeydown(e) {
361
- const isTabOutAttempt = e.target === this._root && webcomponentsBase.V(e);
362
- // if the popup is closed, focus is already moved, so Enter keydown may result in click on the newly focused element
363
- const isEnterOnClosedPopupChild = webcomponentsBase.b$1(e) && !this.open;
364
- if (isTabOutAttempt || isEnterOnClosedPopupChild) {
365
- e.preventDefault();
366
- }
367
- }
368
- _onfocusout(e) {
369
- // relatedTarget is the element, which will get focus. If no such element exists, focus the root.
370
- // This happens after the mouse is released in order to not interrupt text selection.
371
- if (!e.relatedTarget) {
372
- this._shouldFocusRoot = true;
373
- }
374
- }
375
- _onmousedown(e) {
376
- if (this.shadowRoot.contains(e.target)) {
377
- this._shouldFocusRoot = true;
378
- }
379
- else {
380
- this._shouldFocusRoot = false;
381
- }
382
- }
383
- _onmouseup() {
384
- if (this._shouldFocusRoot) {
385
- if (Icons.g()) {
386
- this._root.focus();
387
- }
388
- this._shouldFocusRoot = false;
389
- }
390
- }
391
- /**
392
- * Focus trapping
393
- * @private
394
- */
395
- async forwardToFirst() {
396
- const firstFocusable = await FocusableElements.b(this);
397
- if (firstFocusable) {
398
- firstFocusable.focus();
399
- }
400
- else {
401
- this._root.focus();
402
- }
403
- }
404
- /**
405
- * Focus trapping
406
- * @private
407
- */
408
- async forwardToLast() {
409
- const lastFocusable = await FocusableElements.H(this);
410
- if (lastFocusable) {
411
- lastFocusable.focus();
412
- }
413
- else {
414
- this._root.focus();
415
- }
416
- }
417
- /**
418
- * Use this method to focus the element denoted by "initialFocus", if provided,
419
- * or the first focusable element otherwise.
420
- * @protected
421
- */
422
- async applyInitialFocus() {
423
- if (!this.preventInitialFocus) {
424
- await this.applyFocus();
425
- }
426
- }
427
- /**
428
- * Focuses the element denoted by `initialFocus`, if provided,
429
- * or the first focusable element otherwise.
430
- * @public
431
- * @returns Promise that resolves when the focus is applied
432
- */
433
- async applyFocus() {
434
- // do nothing if the standard HTML autofocus is used
435
- if (this.querySelector("[autofocus]")) {
436
- return;
437
- }
438
- await this._waitForDomRef();
439
- if (this.getRootNode() === this) {
440
- return;
441
- }
442
- let element;
443
- if (this.initialFocus) {
444
- element = this.getRootNode().getElementById(this.initialFocus)
445
- || document.getElementById(this.initialFocus);
446
- }
447
- element = element || await FocusableElements.b(this) || this._root; // in case of no focusable content focus the root
448
- if (element) {
449
- if (element === this._root) {
450
- element.tabIndex = -1;
451
- }
452
- element.focus();
453
- }
454
- }
455
- isFocusWithin() {
456
- return a(this._root);
457
- }
458
- _updateMediaRange() {
459
- this.mediaRange = webcomponentsBase.i$2.getCurrentRange(webcomponentsBase.i$2.RANGESETS.RANGE_4STEPS, this.getDomRef().offsetWidth);
460
- }
461
- _updateAssociatedLabelsTexts() {
462
- this._associatedDescriptionRefTexts = AccessibilityTextsHelper.p(this);
463
- }
464
- /**
465
- * Adds the popup to the "opened popups registry"
466
- * @protected
467
- */
468
- _addOpenedPopup() {
469
- addOpenedPopup(this);
470
- }
471
- /**
472
- * Closes the popup.
473
- */
474
- closePopup(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false) {
475
- if (!this._opened) {
476
- return;
477
- }
478
- const prevented = !this.fireDecoratorEvent("before-close", { escPressed });
479
- if (prevented) {
480
- this.open = true;
481
- return;
482
- }
483
- this._opened = false;
484
- if (this.isModal) {
485
- Popup_1.unblockPageScrolling(this);
486
- }
487
- this.hide();
488
- this.open = false;
489
- if (!preventRegistryUpdate) {
490
- this._removeOpenedPopup();
491
- }
492
- if (!this.preventFocusRestore && !preventFocusRestore) {
493
- this.resetFocus();
494
- }
495
- this.fireDecoratorEvent("close");
496
- }
497
- /**
498
- * Removes the popup from the "opened popups registry"
499
- * @protected
500
- */
501
- _removeOpenedPopup() {
502
- removeOpenedPopup(this);
503
- }
504
- /**
505
- * Returns the focus to the previously focused element
506
- * @protected
507
- */
508
- resetFocus() {
509
- this._focusedElementBeforeOpen?.focus();
510
- this._focusedElementBeforeOpen = null;
511
- }
512
- /**
513
- * Sets "block" display to the popup. The property can be overriden by derivatives of Popup.
514
- * @protected
515
- */
516
- _show() {
517
- if (this.isConnected) {
518
- this.setAttribute("popover", "manual");
519
- this.showPopover();
520
- }
521
- }
522
- _registerResizeHandler() {
523
- if (!this._resizeHandlerRegistered) {
524
- webcomponentsBase.f.register(this, this._resizeHandler);
525
- this._resizeHandlerRegistered = true;
526
- }
527
- }
528
- _deregisterResizeHandler() {
529
- if (this._resizeHandlerRegistered) {
530
- webcomponentsBase.f.deregister(this, this._resizeHandler);
531
- this._resizeHandlerRegistered = false;
532
- }
533
- }
534
- /**
535
- * Sets "none" display to the popup
536
- * @protected
537
- */
538
- hide() {
539
- this.isConnected && this.hidePopover();
540
- }
541
- /**
542
- * Ensures ariaLabel is never null or empty string
543
- * @protected
544
- */
545
- get _ariaLabel() {
546
- return AccessibilityTextsHelper.A(this);
547
- }
548
- get _accInfoAriaDescription() {
549
- return this.ariaDescriptionText || "";
550
- }
551
- get ariaDescriptionText() {
552
- return this._associatedDescriptionRefTexts || AccessibilityTextsHelper.L(this);
553
- }
554
- get ariaDescriptionTextId() {
555
- return this.ariaDescriptionText ? "accessibleDescription" : "";
556
- }
557
- get ariaDescribedByIds() {
558
- return [
559
- this.ariaDescriptionTextId,
560
- ].filter(Boolean).join(" ");
561
- }
562
- get _root() {
563
- return this.shadowRoot.querySelector(".ui5-popup-root");
564
- }
565
- get _role() {
566
- return (this.accessibleRole === PopupAccessibleRole$1.None) ? undefined : toLowercaseEnumValue.n(this.accessibleRole);
567
- }
568
- get _ariaModal() {
569
- return this.accessibleRole === PopupAccessibleRole$1.None ? undefined : "true";
570
- }
571
- get contentDOM() {
572
- return this.shadowRoot.querySelector(".ui5-popup-content");
573
- }
574
- get styles() {
575
- return {
576
- root: {},
577
- content: {},
578
- };
579
- }
580
- get classes() {
581
- return {
582
- root: {
583
- "ui5-popup-root": true,
584
- },
585
- content: {
586
- "ui5-popup-content": true,
587
- },
588
- };
589
- }
590
- };
591
- __decorate$3([
592
- webcomponentsBase.s()
593
- ], Popup.prototype, "initialFocus", void 0);
594
- __decorate$3([
595
- webcomponentsBase.s({ type: Boolean })
596
- ], Popup.prototype, "preventFocusRestore", void 0);
597
- __decorate$3([
598
- webcomponentsBase.s()
599
- ], Popup.prototype, "accessibleName", void 0);
600
- __decorate$3([
601
- webcomponentsBase.s()
602
- ], Popup.prototype, "accessibleNameRef", void 0);
603
- __decorate$3([
604
- webcomponentsBase.s()
605
- ], Popup.prototype, "accessibleRole", void 0);
606
- __decorate$3([
607
- webcomponentsBase.s()
608
- ], Popup.prototype, "accessibleDescription", void 0);
609
- __decorate$3([
610
- webcomponentsBase.s()
611
- ], Popup.prototype, "accessibleDescriptionRef", void 0);
612
- __decorate$3([
613
- webcomponentsBase.s({ noAttribute: true })
614
- ], Popup.prototype, "_associatedDescriptionRefTexts", void 0);
615
- __decorate$3([
616
- webcomponentsBase.s()
617
- ], Popup.prototype, "mediaRange", void 0);
618
- __decorate$3([
619
- webcomponentsBase.s({ type: Boolean })
620
- ], Popup.prototype, "preventInitialFocus", void 0);
621
- __decorate$3([
622
- webcomponentsBase.s({ type: Boolean, noAttribute: true })
623
- ], Popup.prototype, "isTopModalPopup", void 0);
624
- __decorate$3([
625
- webcomponentsBase.d({ type: HTMLElement, "default": true })
626
- ], Popup.prototype, "content", void 0);
627
- __decorate$3([
628
- webcomponentsBase.s({ type: Boolean })
629
- ], Popup.prototype, "onPhone", void 0);
630
- __decorate$3([
631
- webcomponentsBase.s({ type: Boolean })
632
- ], Popup.prototype, "onDesktop", void 0);
633
- __decorate$3([
634
- webcomponentsBase.s({ type: Boolean })
635
- ], Popup.prototype, "open", null);
636
- Popup = Popup_1 = __decorate$3([
637
- webcomponentsBase.m({
638
- renderer: parametersBundle_css.y,
639
- styles: [popupStlyes, popupBlockLayerStyles],
640
- template: PopupTemplate,
641
- })
642
- /**
643
- * Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening.
644
- * @public
645
- */
646
- ,
647
- eventStrict.l("before-open", {
648
- cancelable: true,
649
- })
650
- /**
651
- * Fired after the component is opened.
652
- * @public
653
- */
654
- ,
655
- eventStrict.l("open")
656
- /**
657
- * Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing.
658
- * @public
659
- * @param {boolean} escPressed Indicates that `ESC` key has triggered the event.
660
- */
661
- ,
662
- eventStrict.l("before-close", {
663
- cancelable: true,
664
- })
665
- /**
666
- * Fired after the component is closed.
667
- * @public
668
- */
669
- ,
670
- eventStrict.l("close")
671
- /**
672
- * Fired whenever the popup content area is scrolled
673
- * @private
674
- */
675
- ,
676
- eventStrict.l("scroll", {
677
- bubbles: true,
678
- })
679
- ], Popup);
680
- var Popup$1 = Popup;
681
-
682
- const name$1 = "resize-corner";
683
- const pathData$1 = "M384 160v32q0 12-10 22L182 406q-10 10-22 10h-32zM224 416l160-160v32q0 12-10 22l-96 96q-10 10-22 10h-32zm160-64v32q0 12-10 22t-22 10h-32z";
684
- const ltr$1 = false;
685
- const collection$1 = "SAP-icons-v4";
686
- const packageName$1 = "sap/ushell/gen/ui5/webcomponents-icons";
687
-
688
- Icons.y(name$1, { pathData: pathData$1, ltr: ltr$1, collection: collection$1, packageName: packageName$1 });
689
-
690
- const name = "resize-corner";
691
- const pathData = "M282 416q-11 0-18.5-7.5T256 390t7-18l109-109q7-7 18-7t18.5 7.5T416 282t-7 18L300 409q-7 7-18 7zm-160 0q-11 0-18.5-7.5T96 390t7-18l269-269q7-7 18-7t18.5 7.5T416 122t-7 18L140 409q-7 7-18 7z";
692
- const ltr = false;
693
- const collection = "SAP-icons-v5";
694
- const packageName = "sap/ushell/gen/ui5/webcomponents-icons";
695
-
696
- Icons.y(name, { pathData, ltr, collection, packageName });
697
-
698
- var resizeCorner = "resize-corner";
699
-
700
- function DialogTemplate() {
701
- return PopupTemplate.call(this, {
702
- beforeContent,
703
- afterContent,
704
- });
705
- }
706
- function beforeContent() {
707
- return (parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: !!this._displayHeader &&
708
- parametersBundle_css.jsx("header", { children: parametersBundle_css.jsxs("div", { class: "ui5-popup-header-root", id: "ui5-popup-header", role: "group", "aria-describedby": this.effectiveAriaDescribedBy, "aria-roledescription": this.ariaRoleDescriptionHeaderText, tabIndex: this._headerTabIndex, onKeyDown: this._onDragOrResizeKeyDown, onMouseDown: this._onDragMouseDown, part: "header", children: [this.hasValueState &&
709
- parametersBundle_css.jsx(Icon.Icon, { class: "ui5-dialog-value-state-icon", name: this._dialogStateIcon }), this.header.length ?
710
- parametersBundle_css.jsx("slot", { name: "header" })
711
- :
712
- parametersBundle_css.jsx(Title.Title, { level: "H1", id: "ui5-popup-header-text", class: "ui5-popup-header-text", children: this.headerText }), this.resizable ?
713
- this.draggable ?
714
- parametersBundle_css.jsx("span", { id: `${this._id}-descr`, "aria-hidden": "true", class: "ui5-hidden-text", children: this.ariaDescribedByHeaderTextDraggableAndResizable })
715
- :
716
- parametersBundle_css.jsx("span", { id: `${this._id}-descr`, "aria-hidden": "true", class: "ui5-hidden-text", children: this.ariaDescribedByHeaderTextResizable })
717
- :
718
- this.draggable &&
719
- parametersBundle_css.jsx("span", { id: `${this._id}-descr`, "aria-hidden": "true", class: "ui5-hidden-text", children: this.ariaDescribedByHeaderTextDraggable })] }) }) }));
720
- }
721
- function afterContent() {
722
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [!!this.footer.length &&
723
- parametersBundle_css.jsx("footer", { class: "ui5-popup-footer-root", part: "footer", children: parametersBundle_css.jsx("slot", { name: "footer" }) }), this._showResizeHandle &&
724
- parametersBundle_css.jsx("div", { class: "ui5-popup-resize-handle", onMouseDown: this._onResizeMouseDown, children: parametersBundle_css.jsx(Icon.Icon, { name: resizeCorner }) })] }));
725
- }
726
-
727
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
728
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
729
- var PopupsCommonCss = `.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host{position:fixed;background:var(--sapGroup_ContentBackground);border-radius:var(--_ui5-v2-14-0-rc-7_popup_border_radius);min-height:2rem;box-sizing:border-box}:host([open]){display:flex}.ui5-popup-root{background:inherit;border-radius:inherit;width:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;flex:1 1 auto;outline:none}.ui5-popup-root .ui5-popup-header-root{box-shadow:var(--_ui5-v2-14-0-rc-7_popup_header_shadow);border-bottom:var(--_ui5-v2-14-0-rc-7_popup_header_border)}.ui5-popup-content{color:var(--sapTextColor);flex:auto}.ui5-popup-content:focus{outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:calc(-1 * var(--sapContent_FocusWidth));border-radius:var(--_ui5-v2-14-0-rc-7_popup_border_radius)}.ui5-popup-footer-root{background:var(--sapPageFooter_Background);border-top:1px solid var(--sapPageFooter_BorderColor);color:var(--sapPageFooter_TextColor)}.ui5-popup-header-root,.ui5-popup-footer-root,:host([header-text]) .ui5-popup-header-text{margin:0;display:flex;justify-content:center;align-items:center}.ui5-popup-header-root .ui5-popup-header-text{font-weight:var(--sapFontHeaderFamily);font-size:var(--sapFontHeader5Size);color:var(--sapPageHeader_TextColor)}.ui5-popup-content{overflow:auto;box-sizing:border-box}:host([header-text]) .ui5-popup-header-text{min-height:var(--_ui5-v2-14-0-rc-7_popup_default_header_height);max-height:var(--_ui5-v2-14-0-rc-7_popup_default_header_height);line-height:var(--_ui5-v2-14-0-rc-7_popup_default_header_height);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-flex;justify-content:var(--_ui5-v2-14-0-rc-7_popup_header_prop_header_text_alignment)}:host([header-text]) .ui5-popup-header-root{justify-content:var(--_ui5-v2-14-0-rc-7_popup_header_prop_header_text_alignment)}:host(:not([header-text])) .ui5-popup-header-text{display:none}:host([media-range="S"]) .ui5-popup-content{padding:1rem var(--_ui5-v2-14-0-rc-7_popup_content_padding_s)}:host([media-range="M"]) .ui5-popup-content,:host([media-range="L"]) .ui5-popup-content{padding:1rem var(--_ui5-v2-14-0-rc-7_popup_content_padding_m_l)}:host([media-range="XL"]) .ui5-popup-content{padding:1rem var(--_ui5-v2-14-0-rc-7_popup_content_padding_xl)}.ui5-popup-header-root{background:var(--_ui5-v2-14-0-rc-7_popup_header_background)}:host([media-range="S"]) .ui5-popup-header-root,:host([media-range="S"]) .ui5-popup-footer-root{padding-left:var(--_ui5-v2-14-0-rc-7_popup_header_footer_padding_s);padding-right:var(--_ui5-v2-14-0-rc-7_popup_header_footer_padding_s)}:host([media-range="M"]) .ui5-popup-header-root,:host([media-range="L"]) .ui5-popup-header-root,:host([media-range="M"]) .ui5-popup-footer-root,:host([media-range="L"]) .ui5-popup-footer-root{padding-left:var(--_ui5-v2-14-0-rc-7_popup_header_footer_padding_m_l);padding-right:var(--_ui5-v2-14-0-rc-7_popup_header_footer_padding_m_l)}:host([media-range="XL"]) .ui5-popup-header-root,:host([media-range="XL"]) .ui5-popup-footer-root{padding-left:var(--_ui5-v2-14-0-rc-7_popup_header_footer_padding_xl);padding-right:var(--_ui5-v2-14-0-rc-7_popup_header_footer_padding_xl)}
730
- `;
731
-
732
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
733
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
734
- var dialogCSS = `.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host{min-width:20rem;min-height:6rem;max-height:94%;max-width:90%;flex-direction:column;box-shadow:var(--sapContent_Shadow3);border-radius:var(--sapElement_BorderCornerRadius)}:host([stretch]){width:90%;height:94%}:host([stretch][on-phone]){width:100%;height:100%;max-height:100%;max-width:100%;border-radius:0;min-width:0}:host([draggable]) .ui5-popup-header-root,:host([draggable]) ::slotted([slot="header"]){cursor:move}:host([draggable]) .ui5-popup-header-root *{cursor:auto}:host([draggable]) .ui5-popup-root{user-select:text}::slotted([slot="header"]){max-width:100%}.ui5-popup-root{display:flex;flex-direction:column;max-width:100vw}.ui5-popup-header-root{position:relative}.ui5-popup-header-root:before{content:"";position:absolute;inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;height:var(--_ui5-v2-14-0-rc-7_dialog_header_state_line_height);background:var(--sapObjectHeader_BorderColor)}:host([state="Negative"]) .ui5-popup-header-root:before{background:var(--sapErrorBorderColor)}:host([state="Information"]) .ui5-popup-header-root:before{background:var(--sapInformationBorderColor)}:host([state="Positive"]) .ui5-popup-header-root:before{background:var(--sapSuccessBorderColor)}:host([state="Critical"]) .ui5-popup-header-root:before{background:var(--sapWarningBorderColor)}.ui5-dialog-value-state-icon{margin-inline-end:.5rem;flex-shrink:0}:host([state="Negative"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-14-0-rc-7_dialog_header_error_state_icon_color)}:host([state="Information"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-14-0-rc-7_dialog_header_information_state_icon_color)}:host([state="Positive"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-14-0-rc-7_dialog_header_success_state_icon_color)}:host([state="Critical"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-14-0-rc-7_dialog_header_warning_state_icon_color)}.ui5-popup-header-root{outline:none}:host([desktop]) .ui5-popup-header-root:focus:after,.ui5-popup-header-root:focus-visible:after{content:"";position:absolute;left:var(--_ui5-v2-14-0-rc-7_dialog_header_focus_left_offset);bottom:var(--_ui5-v2-14-0-rc-7_dialog_header_focus_bottom_offset);right:var(--_ui5-v2-14-0-rc-7_dialog_header_focus_right_offset);top:var(--_ui5-v2-14-0-rc-7_dialog_header_focus_top_offset);border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);border-radius:var(--_ui5-v2-14-0-rc-7_dialog_header_border_radius) var(--_ui5-v2-14-0-rc-7_dialog_header_border_radius) 0 0;pointer-events:none}:host([stretch]) .ui5-popup-content{width:100%;height:100%}.ui5-popup-content{min-height:var(--_ui5-v2-14-0-rc-7_dialog_content_min_height);flex:1 1 auto}.ui5-popup-resize-handle{position:absolute;bottom:-.5rem;inset-inline-end:-.5rem;cursor:var(--_ui5-v2-14-0-rc-7_dialog_resize_cursor);width:1.5rem;height:1.5rem;border-radius:50%}.ui5-popup-resize-handle [ui5-icon]{color:var(--sapButton_Lite_TextColor)}::slotted([slot="footer"]){height:var(--_ui5-v2-14-0-rc-7_dialog_footer_height)}::slotted([slot="footer"][ui5-bar][design="Footer"]){border-top:none}::slotted([slot="header"][ui5-bar]){box-shadow:none}::slotted([slot="footer"][ui5-toolbar]){border:0}:host::backdrop{background-color:var(--_ui5-v2-14-0-rc-7_popup_block_layer_background);opacity:var(--_ui5-v2-14-0-rc-7_popup_block_layer_opacity)}.ui5-block-layer{display:block}
735
- `;
736
-
737
- var __decorate$2 = (this && this.__decorate) || function (decorators, target, key, desc) {
738
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
739
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
740
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
741
- return c > 3 && r && Object.defineProperty(target, key, r), r;
742
- };
743
- var Dialog_1;
744
- /**
745
- * Defines the step size at which this component would change by when being dragged or resized with the keyboard.
746
- */
747
- const STEP_SIZE = 16;
748
- /**
749
- * Defines the icons corresponding to the dialog's state.
750
- */
751
- const ICON_PER_STATE = {
752
- [ValueState.o.Negative]: "error",
753
- [ValueState.o.Critical]: "alert",
754
- [ValueState.o.Positive]: "sys-enter-2",
755
- [ValueState.o.Information]: "information",
756
- };
757
- /**
758
- * @class
759
- * ### Overview
760
- * The `ui5-dialog` component is used to temporarily display some information in a
761
- * size-limited window in front of the regular app screen.
762
- * It is used to prompt the user for an action or a confirmation.
763
- * The `ui5-dialog` interrupts the current app processing as it is the only focused UI element and
764
- * the main screen is dimmed/blocked.
765
- * The dialog combines concepts known from other technologies where the windows have
766
- * names such as dialog box, dialog window, pop-up, pop-up window, alert box, or message box.
767
- *
768
- * The `ui5-dialog` is modal, which means that a user action is required before it is possible to return to the parent window.
769
- * To open multiple dialogs, each dialog element should be separate in the markup. This will ensure the correct modal behavior. Avoid nesting dialogs within each other.
770
- * The content of the `ui5-dialog` is fully customizable.
771
- *
772
- * ### Structure
773
- * A `ui5-dialog` consists of a header, content, and a footer for action buttons.
774
- * The `ui5-dialog` is usually displayed at the center of the screen.
775
- * Its position can be changed by the user. To enable this, you need to set the property `draggable` accordingly.
776
-
777
- *
778
- * ### Responsive Behavior
779
- * The `stretch` property can be used to stretch the `ui5-dialog` to full screen. For better usability, it's recommended to stretch the dialog to full screen on phone devices.
780
- *
781
- * **Note:** When a `ui5-bar` is used in the header or in the footer, you should remove the default dialog's paddings.
782
- *
783
- * For more information see the sample "Bar in Header/Footer".
784
-
785
- * ### Keyboard Handling
786
- *
787
- * #### Basic Navigation
788
- * When the `ui5-dialog` has the `draggable` property set to `true` and the header is focused, the user can move the dialog
789
- * with the following keyboard shortcuts:
790
- *
791
- * - [Up] or [Down] arrow keys - Move the dialog up/down.
792
- * - [Left] or [Right] arrow keys - Move the dialog left/right.
793
- *
794
- * #### Resizing
795
- * When the `ui5-dialog` has the `resizable` property set to `true` and the header is focused, the user can change the size of the dialog
796
- * with the following keyboard shortcuts:
797
- *
798
- * - [Shift] + [Up] or [Down] - Decrease/Increase the height of the dialog.
799
- * - [Shift] + [Left] or [Right] - Decrease/Increase the width of the dialog.
800
- *
801
- * ### ES6 Module Import
802
- *
803
- * `import "sap/ushell/gen/ui5/webcomponents/dist/Dialog";`
804
- *
805
- * @constructor
806
- * @extends Popup
807
- * @public
808
- * @csspart header - Used to style the header of the component
809
- * @csspart content - Used to style the content of the component
810
- * @csspart footer - Used to style the footer of the component
811
- */
812
- let Dialog = Dialog_1 = class Dialog extends Popup$1 {
813
- constructor() {
814
- super();
815
- /**
816
- * Determines if the dialog will be stretched to full screen on mobile. On desktop,
817
- * the dialog will be stretched to approximately 90% of the viewport.
818
- *
819
- * **Note:** For better usability of the component it is recommended to set this property to "true" when the dialog is opened on phone.
820
- * @default false
821
- * @public
822
- */
823
- this.stretch = false;
824
- /**
825
- * Determines whether the component is draggable.
826
- * If this property is set to true, the Dialog will be draggable by its header.
827
- *
828
- * **Note:** The component can be draggable only in desktop mode.
829
- *
830
- * **Note:** This property overrides the default HTML "draggable" attribute native behavior.
831
- * When "draggable" is set to true, the native browser "draggable"
832
- * behavior is prevented and only the Dialog custom logic ("draggable by its header") works.
833
- * @default false
834
- * @since 1.0.0-rc.9
835
- * @public
836
- */
837
- this.draggable = false;
838
- /**
839
- * Configures the component to be resizable.
840
- * If this property is set to true, the Dialog will have a resize handle in its bottom right corner in LTR languages.
841
- * In RTL languages, the resize handle will be placed in the bottom left corner.
842
- *
843
- * **Note:** The component can be resizable only in desktop mode.
844
- *
845
- * **Note:** Upon resizing, externally defined height and width styling will be ignored.
846
- * @default false
847
- * @since 1.0.0-rc.10
848
- * @public
849
- */
850
- this.resizable = false;
851
- /**
852
- * Defines the state of the `Dialog`.
853
- *
854
- * **Note:** If `"Negative"` and `"Critical"` states is set, it will change the
855
- * accessibility role to "alertdialog", if the accessibleRole property is set to `"Dialog"`.
856
- * @default "None"
857
- * @public
858
- * @since 1.0.0-rc.15
859
- */
860
- this.state = "None";
861
- this._draggedOrResized = false;
862
- this._revertSize = () => {
863
- Object.assign(this.style, {
864
- top: "",
865
- left: "",
866
- width: "",
867
- height: "",
868
- });
869
- };
870
- this._screenResizeHandler = this._screenResize.bind(this);
871
- this._dragMouseMoveHandler = this._onDragMouseMove.bind(this);
872
- this._dragMouseUpHandler = this._onDragMouseUp.bind(this);
873
- this._resizeMouseMoveHandler = this._onResizeMouseMove.bind(this);
874
- this._resizeMouseUpHandler = this._onResizeMouseUp.bind(this);
875
- this._dragStartHandler = this._handleDragStart.bind(this);
876
- }
877
- static _isHeader(element) {
878
- return element.classList.contains("ui5-popup-header-root") || element.getAttribute("slot") === "header";
879
- }
880
- get isModal() {
881
- return true;
882
- }
883
- get _ariaLabelledBy() {
884
- let ariaLabelledById;
885
- if (this.headerText && !this._ariaLabel) {
886
- ariaLabelledById = "ui5-popup-header-text";
887
- }
888
- return ariaLabelledById;
889
- }
890
- get ariaRoleDescriptionHeaderText() {
891
- return (this.resizable || this.draggable) ? Dialog_1.i18nBundle.getText(i18nDefaults.DIALOG_HEADER_ARIA_ROLE_DESCRIPTION) : undefined;
892
- }
893
- get effectiveAriaDescribedBy() {
894
- return (this.resizable || this.draggable) ? `${this._id}-descr` : undefined;
895
- }
896
- get ariaDescribedByHeaderTextResizable() {
897
- return Dialog_1.i18nBundle.getText(i18nDefaults.DIALOG_HEADER_ARIA_DESCRIBEDBY_RESIZABLE);
898
- }
899
- get ariaDescribedByHeaderTextDraggable() {
900
- return Dialog_1.i18nBundle.getText(i18nDefaults.DIALOG_HEADER_ARIA_DESCRIBEDBY_DRAGGABLE);
901
- }
902
- get ariaDescribedByHeaderTextDraggableAndResizable() {
903
- return Dialog_1.i18nBundle.getText(i18nDefaults.DIALOG_HEADER_ARIA_DESCRIBEDBY_DRAGGABLE_RESIZABLE);
904
- }
905
- /**
906
- * Determines if the header should be shown.
907
- */
908
- get _displayHeader() {
909
- return this.header.length || this.headerText || this.draggable || this.resizable;
910
- }
911
- get _movable() {
912
- return !this.stretch && this.onDesktop && (this.draggable || this.resizable);
913
- }
914
- get _headerTabIndex() {
915
- return this._movable ? 0 : undefined;
916
- }
917
- get _showResizeHandle() {
918
- return this.resizable && this.onDesktop;
919
- }
920
- get _minHeight() {
921
- let minHeight = Number.parseInt(window.getComputedStyle(this.contentDOM).minHeight);
922
- const header = this._root.querySelector(".ui5-popup-header-root");
923
- if (header) {
924
- minHeight += header.offsetHeight;
925
- }
926
- const footer = this._root.querySelector(".ui5-popup-footer-root");
927
- if (footer) {
928
- minHeight += footer.offsetHeight;
929
- }
930
- return minHeight;
931
- }
932
- get hasValueState() {
933
- return this.state !== ValueState.o.None;
934
- }
935
- get _dialogStateIcon() {
936
- return ICON_PER_STATE[this.state];
937
- }
938
- get _role() {
939
- if (this.accessibleRole === PopupAccessibleRole$1.None) {
940
- return undefined;
941
- }
942
- if (this.state === ValueState.o.Negative || this.state === ValueState.o.Critical) {
943
- return toLowercaseEnumValue.n(PopupAccessibleRole$1.AlertDialog);
944
- }
945
- return toLowercaseEnumValue.n(this.accessibleRole);
946
- }
947
- _show() {
948
- super._show();
949
- this._center();
950
- }
951
- onBeforeRendering() {
952
- super.onBeforeRendering();
953
- this._isRTL = this.effectiveDir === "rtl";
954
- }
955
- onEnterDOM() {
956
- super.onEnterDOM();
957
- this._attachScreenResizeHandler();
958
- this.addEventListener("dragstart", this._dragStartHandler);
959
- }
960
- onExitDOM() {
961
- super.onExitDOM();
962
- this._detachScreenResizeHandler();
963
- this.removeEventListener("dragstart", this._dragStartHandler);
964
- }
965
- /**
966
- * @override
967
- */
968
- _resize() {
969
- super._resize();
970
- if (!this._draggedOrResized) {
971
- this._center();
972
- }
973
- }
974
- _screenResize() {
975
- this._center();
976
- }
977
- _attachScreenResizeHandler() {
978
- if (!this._screenResizeHandlerAttached) {
979
- window.addEventListener("resize", this._screenResizeHandler);
980
- this._screenResizeHandlerAttached = true;
981
- }
982
- }
983
- _detachScreenResizeHandler() {
984
- if (this._screenResizeHandlerAttached) {
985
- window.removeEventListener("resize", this._screenResizeHandler);
986
- this._screenResizeHandlerAttached = false; // prevent dialog from repositioning during resizing
987
- }
988
- }
989
- _center() {
990
- const height = window.innerHeight - this.offsetHeight, width = window.innerWidth - this.offsetWidth;
991
- Object.assign(this.style, {
992
- top: `${Math.round(height / 2)}px`,
993
- left: `${Math.round(width / 2)}px`,
994
- });
995
- }
996
- /**
997
- * Event handlers
998
- */
999
- _onDragMouseDown(e) {
1000
- // allow dragging only on the header
1001
- if (!this._movable || !this.draggable || !Dialog_1._isHeader(e.target)) {
1002
- return;
1003
- }
1004
- const { top, left, } = this.getBoundingClientRect();
1005
- const { width, height, } = window.getComputedStyle(this);
1006
- Object.assign(this.style, {
1007
- top: `${top}px`,
1008
- left: `${left}px`,
1009
- width: `${Math.round(Number.parseFloat(width) * 100) / 100}px`,
1010
- height: `${Math.round(Number.parseFloat(height) * 100) / 100}px`,
1011
- });
1012
- this._x = e.clientX;
1013
- this._y = e.clientY;
1014
- this._draggedOrResized = true;
1015
- this._attachMouseDragHandlers();
1016
- }
1017
- _onDragMouseMove(e) {
1018
- e.preventDefault();
1019
- const { clientX, clientY } = e;
1020
- const calcX = this._x - clientX;
1021
- const calcY = this._y - clientY;
1022
- const { left, top, } = this.getBoundingClientRect();
1023
- Object.assign(this.style, {
1024
- left: `${Math.floor(left - calcX)}px`,
1025
- top: `${Math.floor(top - calcY)}px`,
1026
- });
1027
- this._x = clientX;
1028
- this._y = clientY;
1029
- }
1030
- _onDragMouseUp() {
1031
- delete this._x;
1032
- delete this._y;
1033
- this._detachMouseDragHandlers();
1034
- }
1035
- _onDragOrResizeKeyDown(e) {
1036
- if (!this._movable || !Dialog_1._isHeader(e.target)) {
1037
- return;
1038
- }
1039
- if (this.draggable && [webcomponentsBase.P, webcomponentsBase._, webcomponentsBase.D, webcomponentsBase.R].some(key => key(e))) {
1040
- this._dragWithEvent(e);
1041
- return;
1042
- }
1043
- if (this.resizable && [webcomponentsBase.O, webcomponentsBase.N, webcomponentsBase.h, webcomponentsBase.I].some(key => key(e))) {
1044
- this._resizeWithEvent(e);
1045
- }
1046
- }
1047
- _dragWithEvent(e) {
1048
- const { top, left, width, height, } = this.getBoundingClientRect();
1049
- let newPos = 0;
1050
- let posDirection = "top";
1051
- switch (true) {
1052
- case webcomponentsBase.P(e):
1053
- newPos = top - STEP_SIZE;
1054
- posDirection = "top";
1055
- break;
1056
- case webcomponentsBase._(e):
1057
- newPos = top + STEP_SIZE;
1058
- posDirection = "top";
1059
- break;
1060
- case webcomponentsBase.D(e):
1061
- newPos = left - STEP_SIZE;
1062
- posDirection = "left";
1063
- break;
1064
- case webcomponentsBase.R(e):
1065
- newPos = left + STEP_SIZE;
1066
- posDirection = "left";
1067
- break;
1068
- }
1069
- newPos = m$1(newPos, 0, posDirection === "left" ? window.innerWidth - width : window.innerHeight - height);
1070
- this.style[posDirection] = `${newPos}px`;
1071
- }
1072
- _resizeWithEvent(e) {
1073
- this._draggedOrResized = true;
1074
- this.addEventListener("ui5-before-close", this._revertSize, { once: true });
1075
- const { top, left } = this.getBoundingClientRect(), style = window.getComputedStyle(this), minWidth = Number.parseFloat(style.minWidth), maxWidth = window.innerWidth - left, maxHeight = window.innerHeight - top;
1076
- let width = Number.parseFloat(style.width), height = Number.parseFloat(style.height);
1077
- switch (true) {
1078
- case webcomponentsBase.O(e):
1079
- height -= STEP_SIZE;
1080
- break;
1081
- case webcomponentsBase.N(e):
1082
- height += STEP_SIZE;
1083
- break;
1084
- case webcomponentsBase.h(e):
1085
- width -= STEP_SIZE;
1086
- break;
1087
- case webcomponentsBase.I(e):
1088
- width += STEP_SIZE;
1089
- break;
1090
- }
1091
- width = m$1(width, minWidth, maxWidth);
1092
- height = m$1(height, this._minHeight, maxHeight);
1093
- Object.assign(this.style, {
1094
- width: `${width}px`,
1095
- height: `${height}px`,
1096
- });
1097
- }
1098
- _attachMouseDragHandlers() {
1099
- window.addEventListener("mousemove", this._dragMouseMoveHandler);
1100
- window.addEventListener("mouseup", this._dragMouseUpHandler);
1101
- }
1102
- _detachMouseDragHandlers() {
1103
- window.removeEventListener("mousemove", this._dragMouseMoveHandler);
1104
- window.removeEventListener("mouseup", this._dragMouseUpHandler);
1105
- }
1106
- _onResizeMouseDown(e) {
1107
- if (!this._movable || !this.resizable) {
1108
- return;
1109
- }
1110
- e.preventDefault();
1111
- const { top, left, } = this.getBoundingClientRect();
1112
- const { width, height, minWidth, } = window.getComputedStyle(this);
1113
- this._initialX = e.clientX;
1114
- this._initialY = e.clientY;
1115
- this._initialWidth = Number.parseFloat(width);
1116
- this._initialHeight = Number.parseFloat(height);
1117
- this._initialTop = top;
1118
- this._initialLeft = left;
1119
- this._minWidth = Number.parseFloat(minWidth);
1120
- this._cachedMinHeight = this._minHeight;
1121
- Object.assign(this.style, {
1122
- top: `${top}px`,
1123
- left: `${left}px`,
1124
- });
1125
- this._draggedOrResized = true;
1126
- this._attachMouseResizeHandlers();
1127
- }
1128
- _onResizeMouseMove(e) {
1129
- const { clientX, clientY } = e;
1130
- let newWidth, newLeft;
1131
- if (this._isRTL) {
1132
- newWidth = m$1(this._initialWidth - (clientX - this._initialX), this._minWidth, this._initialLeft + this._initialWidth);
1133
- newLeft = m$1(this._initialLeft + (clientX - this._initialX), 0, this._initialX + this._initialWidth - this._minWidth);
1134
- }
1135
- else {
1136
- newWidth = m$1(this._initialWidth + (clientX - this._initialX), this._minWidth, window.innerWidth - this._initialLeft);
1137
- }
1138
- const newHeight = m$1(this._initialHeight + (clientY - this._initialY), this._cachedMinHeight, window.innerHeight - this._initialTop);
1139
- Object.assign(this.style, {
1140
- height: `${newHeight}px`,
1141
- width: `${newWidth}px`,
1142
- left: newLeft ? `${newLeft}px` : undefined,
1143
- });
1144
- }
1145
- _onResizeMouseUp() {
1146
- delete this._initialX;
1147
- delete this._initialY;
1148
- delete this._initialWidth;
1149
- delete this._initialHeight;
1150
- delete this._initialTop;
1151
- delete this._initialLeft;
1152
- delete this._minWidth;
1153
- delete this._cachedMinHeight;
1154
- this._detachMouseResizeHandlers();
1155
- }
1156
- _handleDragStart(e) {
1157
- if (this.draggable) {
1158
- e.preventDefault();
1159
- }
1160
- }
1161
- _attachMouseResizeHandlers() {
1162
- window.addEventListener("mousemove", this._resizeMouseMoveHandler);
1163
- window.addEventListener("mouseup", this._resizeMouseUpHandler);
1164
- this.addEventListener("ui5-before-close", this._revertSize, { once: true });
1165
- }
1166
- _detachMouseResizeHandlers() {
1167
- window.removeEventListener("mousemove", this._resizeMouseMoveHandler);
1168
- window.removeEventListener("mouseup", this._resizeMouseUpHandler);
1169
- }
1170
- };
1171
- __decorate$2([
1172
- webcomponentsBase.s()
1173
- ], Dialog.prototype, "headerText", void 0);
1174
- __decorate$2([
1175
- webcomponentsBase.s({ type: Boolean })
1176
- ], Dialog.prototype, "stretch", void 0);
1177
- __decorate$2([
1178
- webcomponentsBase.s({ type: Boolean })
1179
- ], Dialog.prototype, "draggable", void 0);
1180
- __decorate$2([
1181
- webcomponentsBase.s({ type: Boolean })
1182
- ], Dialog.prototype, "resizable", void 0);
1183
- __decorate$2([
1184
- webcomponentsBase.s()
1185
- ], Dialog.prototype, "state", void 0);
1186
- __decorate$2([
1187
- webcomponentsBase.d()
1188
- ], Dialog.prototype, "header", void 0);
1189
- __decorate$2([
1190
- webcomponentsBase.d()
1191
- ], Dialog.prototype, "footer", void 0);
1192
- __decorate$2([
1193
- parametersBundle_css$1.i("sap/ushell/gen/ui5/webcomponents")
1194
- ], Dialog, "i18nBundle", void 0);
1195
- Dialog = Dialog_1 = __decorate$2([
1196
- webcomponentsBase.m({
1197
- tag: "ui5-dialog",
1198
- template: DialogTemplate,
1199
- styles: [
1200
- Popup$1.styles,
1201
- PopupsCommonCss,
1202
- dialogCSS,
1203
- ],
1204
- })
1205
- ], Dialog);
1206
- Dialog.define();
1207
- var Dialog$1 = Dialog;
1208
-
1209
- function ResponsivePopoverTemplate() {
1210
- if (!this._isPhone) {
1211
- return PopoverTemplate.call(this);
1212
- }
1213
- return (parametersBundle_css.jsxs(Dialog$1, { "root-element": true, accessibleName: this.accessibleName, accessibleNameRef: this.accessibleNameRef, accessibleDescription: this.accessibleDescription, accessibleDescriptionRef: this.accessibleDescriptionRef, accessibleRole: this.accessibleRole, stretch: true, preventInitialFocus: this.preventInitialFocus, preventFocusRestore: this.preventFocusRestore, initialFocus: this.initialFocus, onBeforeOpen: this._beforeDialogOpen, onOpen: this._afterDialogOpen, onBeforeClose: this._beforeDialogClose, onClose: this._afterDialogClose, exportparts: "content, header, footer", open: this.open, children: [!this._hideHeader && parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: this.header.length ?
1214
- parametersBundle_css.jsx("slot", { slot: "header", name: "header" })
1215
- :
1216
- parametersBundle_css.jsxs("div", { class: this.classes.header, slot: "header", children: [this.headerText &&
1217
- parametersBundle_css.jsx(Title.Title, { level: "H1", wrappingType: "None", class: "ui5-popup-header-text ui5-responsive-popover-header-text", children: this.headerText }), !this._hideCloseButton &&
1218
- parametersBundle_css.jsx(Button.Button, { icon: information.decline, design: "Transparent", accessibleName: this._closeDialogAriaLabel, onClick: this._dialogCloseButtonClick })] }) }), parametersBundle_css.jsx("slot", {}), parametersBundle_css.jsx("slot", { slot: "footer", name: "footer" })] }));
1219
- }
1220
-
1221
- /**
1222
- * Popover placements.
1223
- * @public
1224
- */
1225
- var PopoverPlacement;
1226
- (function (PopoverPlacement) {
1227
- /**
1228
- * Popover will be placed at the start of the reference element.
1229
- * @public
1230
- */
1231
- PopoverPlacement["Start"] = "Start";
1232
- /**
1233
- * Popover will be placed at the end of the reference element.
1234
- * @public
1235
- */
1236
- PopoverPlacement["End"] = "End";
1237
- /**
1238
- * Popover will be placed at the top of the reference element.
1239
- * @public
1240
- */
1241
- PopoverPlacement["Top"] = "Top";
1242
- /**
1243
- * Popover will be placed at the bottom of the reference element.
1244
- * @public
1245
- */
1246
- PopoverPlacement["Bottom"] = "Bottom";
1247
- })(PopoverPlacement || (PopoverPlacement = {}));
1248
- var PopoverPlacement$1 = PopoverPlacement;
1249
-
1250
- /**
1251
- * Popover vertical align types.
1252
- * @public
1253
- */
1254
- var PopoverVerticalAlign;
1255
- (function (PopoverVerticalAlign) {
1256
- /**
1257
- * @public
1258
- */
1259
- PopoverVerticalAlign["Center"] = "Center";
1260
- /**
1261
- * Popover will be placed at the top of the reference control.
1262
- * @public
1263
- */
1264
- PopoverVerticalAlign["Top"] = "Top";
1265
- /**
1266
- * Popover will be placed at the bottom of the reference control.
1267
- * @public
1268
- */
1269
- PopoverVerticalAlign["Bottom"] = "Bottom";
1270
- /**
1271
- * Popover will be streched
1272
- * @public
1273
- */
1274
- PopoverVerticalAlign["Stretch"] = "Stretch";
1275
- })(PopoverVerticalAlign || (PopoverVerticalAlign = {}));
1276
- var PopoverVerticalAlign$1 = PopoverVerticalAlign;
1277
-
1278
- /**
1279
- * Popover horizontal align types.
1280
- * @public
1281
- */
1282
- var PopoverHorizontalAlign;
1283
- (function (PopoverHorizontalAlign) {
1284
- /**
1285
- * Popover is centered.
1286
- * @public
1287
- */
1288
- PopoverHorizontalAlign["Center"] = "Center";
1289
- /**
1290
- * Popover is aligned with the start of the target.
1291
- * @public
1292
- */
1293
- PopoverHorizontalAlign["Start"] = "Start";
1294
- /**
1295
- * Popover is aligned with the end of the target.
1296
- * @public
1297
- */
1298
- PopoverHorizontalAlign["End"] = "End";
1299
- /**
1300
- * Popover is stretched.
1301
- * @public
1302
- */
1303
- PopoverHorizontalAlign["Stretch"] = "Stretch";
1304
- })(PopoverHorizontalAlign || (PopoverHorizontalAlign = {}));
1305
- var PopoverHorizontalAlign$1 = PopoverHorizontalAlign;
1306
-
1307
- const e=t=>t.parentElement?t.parentElement:t.parentNode.host;
1308
-
1309
- let updateInterval;
1310
- const intervalTimeout = 300;
1311
- const openedRegistry = [];
1312
- const repositionPopovers = () => {
1313
- openedRegistry.forEach(popover => {
1314
- popover.instance.reposition();
1315
- });
1316
- };
1317
- const closePopoversIfLostFocus = () => {
1318
- let activeElement = webcomponentsBase.t();
1319
- if (activeElement.tagName === "IFRAME") {
1320
- getRegistry().reverse().forEach(popup => {
1321
- const popover = popup.instance;
1322
- const opener = popover.getOpenerHTMLElement(popover.opener);
1323
- while (activeElement) {
1324
- if (activeElement === opener) {
1325
- return;
1326
- }
1327
- activeElement = e(activeElement);
1328
- }
1329
- popover.closePopup(false, false, true);
1330
- });
1331
- }
1332
- };
1333
- const runUpdateInterval = () => {
1334
- updateInterval = setInterval(() => {
1335
- repositionPopovers();
1336
- closePopoversIfLostFocus();
1337
- }, intervalTimeout);
1338
- };
1339
- const stopUpdateInterval = () => {
1340
- clearInterval(updateInterval);
1341
- };
1342
- const attachGlobalScrollHandler = () => {
1343
- document.addEventListener("scroll", repositionPopovers, { capture: true });
1344
- };
1345
- const detachGlobalScrollHandler = () => {
1346
- document.removeEventListener("scroll", repositionPopovers, { capture: true });
1347
- };
1348
- const attachScrollHandler = (popover) => {
1349
- popover && popover.shadowRoot.addEventListener("scroll", repositionPopovers, { capture: true });
1350
- };
1351
- const detachScrollHandler = (popover) => {
1352
- popover && popover.shadowRoot.removeEventListener("scroll", repositionPopovers, { capture: true });
1353
- };
1354
- const attachGlobalClickHandler = () => {
1355
- document.addEventListener("mousedown", clickHandler, { capture: true });
1356
- };
1357
- const detachGlobalClickHandler = () => {
1358
- document.removeEventListener("mousedown", clickHandler, { capture: true });
1359
- };
1360
- const clickHandler = (event) => {
1361
- const openedPopups = getOpenedPopups();
1362
- if (openedPopups.length === 0) {
1363
- return;
1364
- }
1365
- const isTopPopupPopover = instanceOfPopover(openedPopups[openedPopups.length - 1].instance);
1366
- if (!isTopPopupPopover) {
1367
- return;
1368
- }
1369
- // loop all open popovers
1370
- for (let i = (openedPopups.length - 1); i !== -1; i--) {
1371
- const popup = openedPopups[i].instance;
1372
- // if popup is modal, opener is clicked, popup is dialog skip closing
1373
- if (popup.isModal || popup.isOpenerClicked(event)) {
1374
- return;
1375
- }
1376
- if (f(event, popup.getBoundingClientRect())) {
1377
- break;
1378
- }
1379
- popup.closePopup();
1380
- }
1381
- };
1382
- const addOpenedPopover = (instance) => {
1383
- const parentPopovers = getParentPopoversIfNested(instance);
1384
- addOpenedPopup(instance, parentPopovers);
1385
- openedRegistry.push({
1386
- instance,
1387
- parentPopovers,
1388
- });
1389
- attachScrollHandler(instance);
1390
- if (openedRegistry.length === 1) {
1391
- attachGlobalScrollHandler();
1392
- attachGlobalClickHandler();
1393
- runUpdateInterval();
1394
- }
1395
- };
1396
- const removeOpenedPopover = (instance) => {
1397
- const popoversToClose = [instance];
1398
- for (let i = 0; i < openedRegistry.length; i++) {
1399
- const indexOfCurrentInstance = openedRegistry[i].parentPopovers.indexOf(instance);
1400
- if (openedRegistry[i].parentPopovers.length > 0 && indexOfCurrentInstance > -1) {
1401
- popoversToClose.push(openedRegistry[i].instance);
1402
- }
1403
- }
1404
- for (let i = popoversToClose.length - 1; i >= 0; i--) {
1405
- for (let j = 0; j < openedRegistry.length; j++) {
1406
- let indexOfItemToRemove = -1;
1407
- if (popoversToClose[i] === openedRegistry[j].instance) {
1408
- indexOfItemToRemove = j;
1409
- }
1410
- if (indexOfItemToRemove >= 0) {
1411
- removeOpenedPopup(openedRegistry[indexOfItemToRemove].instance);
1412
- detachScrollHandler(openedRegistry[indexOfItemToRemove].instance);
1413
- const itemToClose = openedRegistry.splice(indexOfItemToRemove, 1);
1414
- itemToClose[0].instance.closePopup(false, true);
1415
- }
1416
- }
1417
- }
1418
- if (!openedRegistry.length) {
1419
- detachGlobalScrollHandler();
1420
- detachGlobalClickHandler();
1421
- stopUpdateInterval();
1422
- }
1423
- };
1424
- const getRegistry = () => {
1425
- return openedRegistry;
1426
- };
1427
- const getParentPopoversIfNested = (instance) => {
1428
- let currentElement = instance.parentNode;
1429
- const parentPopovers = [];
1430
- while (currentElement && currentElement.parentNode) {
1431
- for (let i = 0; i < openedRegistry.length; i++) {
1432
- if (currentElement === openedRegistry[i].instance) {
1433
- parentPopovers.push(currentElement);
1434
- }
1435
- }
1436
- currentElement = currentElement.parentNode;
1437
- }
1438
- return parentPopovers;
1439
- };
1440
-
1441
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
1442
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
1443
- var PopoverCss = `:host{box-shadow:var(--_ui5-v2-14-0-rc-7_popover_box_shadow);background-color:var(--_ui5-v2-14-0-rc-7_popover_background);max-width:calc(100vw - (100vw - 100%) - 2 * var(--_ui5-v2-14-0-rc-7_popup_viewport_margin))}:host([hide-arrow]){box-shadow:var(--_ui5-v2-14-0-rc-7_popover_no_arrow_box_shadow)}:host([actual-placement="Bottom"]) .ui5-popover-arrow{left:calc(50% - .5625rem);top:-.5rem;height:.5rem}:host([actual-placement="Bottom"]) .ui5-popover-arrow:after{margin:var(--_ui5-v2-14-0-rc-7_popover_upward_arrow_margin)}:host([actual-placement="Start"]) .ui5-popover-arrow{top:calc(50% - .5625rem);right:-.5625rem;width:.5625rem}:host([actual-placement="Start"]) .ui5-popover-arrow:after{margin:var(--_ui5-v2-14-0-rc-7_popover_right_arrow_margin)}:host([actual-placement="Top"]) .ui5-popover-arrow{left:calc(50% - .5625rem);height:.5625rem;top:100%}:host([actual-placement="Top"]) .ui5-popover-arrow:after{margin:var(--_ui5-v2-14-0-rc-7_popover_downward_arrow_margin)}:host(:not([actual-placement])) .ui5-popover-arrow,:host([actual-placement="End"]) .ui5-popover-arrow{left:-.5625rem;top:calc(50% - .5625rem);width:.5625rem;height:1rem}:host(:not([actual-placement])) .ui5-popover-arrow:after,:host([actual-placement="End"]) .ui5-popover-arrow:after{margin:var(--_ui5-v2-14-0-rc-7_popover_left_arrow_margin)}:host([hide-arrow]) .ui5-popover-arrow{display:none}.ui5-popover-root{min-width:6.25rem}.ui5-popover-arrow{pointer-events:none;display:block;width:1rem;height:1rem;position:absolute;overflow:hidden}.ui5-popover-arrow:after{content:"";display:block;width:.7rem;height:.7rem;background-color:var(--_ui5-v2-14-0-rc-7_popover_background);box-shadow:var(--_ui5-v2-14-0-rc-7_popover_box_shadow);transform:rotate(-45deg)}:host([modal])::backdrop{background-color:var(--_ui5-v2-14-0-rc-7_popup_block_layer_background);opacity:var(--_ui5-v2-14-0-rc-7_popup_block_layer_opacity)}:host([modal]) .ui5-block-layer{display:block}
1444
- `;
1445
-
1446
- var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
1447
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1448
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1449
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1450
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1451
- };
1452
- var Popover_1;
1453
- const ARROW_SIZE = 8;
1454
- /**
1455
- * @class
1456
- *
1457
- * ### Overview
1458
- *
1459
- * The `ui5-popover` component displays additional information for an object
1460
- * in a compact way and without leaving the page.
1461
- * The Popover can contain various UI elements, such as fields, tables, images, and charts.
1462
- * It can also include actions in the footer.
1463
- *
1464
- * ### Structure
1465
- *
1466
- * The popover has three main areas:
1467
- *
1468
- * - Header (optional)
1469
- * - Content
1470
- * - Footer (optional)
1471
- *
1472
- * **Note:** The `ui5-popover` is closed when the user clicks
1473
- * or taps outside the popover
1474
- * or selects an action within the popover. You can prevent this with the
1475
- * `modal` property.
1476
- *
1477
- * ### ES6 Module Import
1478
- *
1479
- * `import "sap/ushell/gen/ui5/webcomponents/dist/Popover.js";`
1480
- *
1481
- * @constructor
1482
- * @extends Popup
1483
- * @since 1.0.0-rc.6
1484
- * @public
1485
- * @csspart header - Used to style the header of the component
1486
- * @csspart content - Used to style the content of the component
1487
- * @csspart footer - Used to style the footer of the component
1488
- */
1489
- let Popover = Popover_1 = class Popover extends Popup$1 {
1490
- static get VIEWPORT_MARGIN() {
1491
- return 10; // px
1492
- }
1493
- constructor() {
1494
- super();
1495
- /**
1496
- * Determines on which side the component is placed at.
1497
- * @default "End"
1498
- * @public
1499
- */
1500
- this.placement = "End";
1501
- /**
1502
- * Determines the horizontal alignment of the component.
1503
- * @default "Center"
1504
- * @public
1505
- */
1506
- this.horizontalAlign = "Center";
1507
- /**
1508
- * Determines the vertical alignment of the component.
1509
- * @default "Center"
1510
- * @public
1511
- */
1512
- this.verticalAlign = "Center";
1513
- /**
1514
- * Defines whether the component should close when
1515
- * clicking/tapping outside of the popover.
1516
- * If enabled, it blocks any interaction with the background.
1517
- * @default false
1518
- * @public
1519
- */
1520
- this.modal = false;
1521
- /**
1522
- * Determines whether the component arrow is hidden.
1523
- * @default false
1524
- * @public
1525
- * @since 1.0.0-rc.15
1526
- */
1527
- this.hideArrow = false;
1528
- /**
1529
- * Determines if there is no enough space, the component can be placed
1530
- * over the target.
1531
- * @default false
1532
- * @public
1533
- */
1534
- this.allowTargetOverlap = false;
1535
- /**
1536
- * Sets the X translation of the arrow
1537
- * @private
1538
- */
1539
- this.arrowTranslateX = 0;
1540
- /**
1541
- * Sets the Y translation of the arrow
1542
- * @private
1543
- */
1544
- this.arrowTranslateY = 0;
1545
- /**
1546
- * Returns the calculated placement depending on the free space
1547
- * @private
1548
- */
1549
- this.actualPlacement = "End";
1550
- }
1551
- /**
1552
- * Defines the ID or DOM Reference of the element at which the popover is shown.
1553
- * When using this attribute in a declarative way, you must only use the `id` (as a string) of the element at which you want to show the popover.
1554
- * You can only set the `opener` attribute to a DOM Reference when using JavaScript.
1555
- * @public
1556
- * @default undefined
1557
- * @since 1.2.0
1558
- */
1559
- set opener(value) {
1560
- if (this._opener === value) {
1561
- return;
1562
- }
1563
- this._opener = value;
1564
- if (value && this.open) {
1565
- this.openPopup();
1566
- }
1567
- }
1568
- get opener() {
1569
- return this._opener;
1570
- }
1571
- async openPopup() {
1572
- if (this._opened) {
1573
- return;
1574
- }
1575
- const opener = this.getOpenerHTMLElement(this.opener);
1576
- if (!opener) {
1577
- return;
1578
- }
1579
- if (!opener || this.isOpenerOutsideViewport(opener.getBoundingClientRect())) {
1580
- await Icons.f$1();
1581
- this.open = false;
1582
- this.fireDecoratorEvent("close");
1583
- return;
1584
- }
1585
- this._openerRect = opener.getBoundingClientRect();
1586
- await super.openPopup();
1587
- }
1588
- isOpenerClicked(e) {
1589
- const target = e.target;
1590
- const opener = this.getOpenerHTMLElement(this.opener);
1591
- if (!opener) {
1592
- return false;
1593
- }
1594
- if (target === opener) {
1595
- return true;
1596
- }
1597
- if (this._isUI5AbstractElement(target) && target.getFocusDomRef() === opener) {
1598
- return true;
1599
- }
1600
- return e.composedPath().indexOf(opener) > -1;
1601
- }
1602
- /**
1603
- * Override for the _addOpenedPopup hook, which would otherwise just call addOpenedPopup(this)
1604
- * @private
1605
- */
1606
- _addOpenedPopup() {
1607
- addOpenedPopover(this);
1608
- }
1609
- /**
1610
- * Override for the _removeOpenedPopup hook, which would otherwise just call removeOpenedPopup(this)
1611
- * @private
1612
- */
1613
- _removeOpenedPopup() {
1614
- removeOpenedPopover(this);
1615
- }
1616
- getOpenerHTMLElement(opener) {
1617
- if (opener === undefined || opener === null) {
1618
- return opener;
1619
- }
1620
- if (opener instanceof HTMLElement) {
1621
- return this._isUI5AbstractElement(opener) ? opener.getFocusDomRef() : opener;
1622
- }
1623
- let rootNode = this.getRootNode();
1624
- if (rootNode === this) {
1625
- rootNode = document;
1626
- }
1627
- let openerHTMLElement = rootNode.getElementById(opener);
1628
- if (rootNode instanceof ShadowRoot && !openerHTMLElement) {
1629
- openerHTMLElement = document.getElementById(opener);
1630
- }
1631
- if (openerHTMLElement) {
1632
- return this._isUI5AbstractElement(openerHTMLElement) ? openerHTMLElement.getFocusDomRef() : openerHTMLElement;
1633
- }
1634
- return openerHTMLElement;
1635
- }
1636
- shouldCloseDueToOverflow(placement, openerRect) {
1637
- const threshold = 32;
1638
- const limits = {
1639
- "Start": openerRect.right,
1640
- "End": openerRect.left,
1641
- "Top": openerRect.top,
1642
- "Bottom": openerRect.bottom,
1643
- };
1644
- const opener = this.getOpenerHTMLElement(this.opener);
1645
- const closedPopupParent = i(opener);
1646
- let overflowsBottom = false;
1647
- let overflowsTop = false;
1648
- if (closedPopupParent instanceof Popover_1) {
1649
- const contentRect = closedPopupParent.getBoundingClientRect();
1650
- overflowsBottom = openerRect.top > (contentRect.top + contentRect.height);
1651
- overflowsTop = (openerRect.top + openerRect.height) < contentRect.top;
1652
- }
1653
- return (limits[placement] < 0 || (limits[placement] + threshold > closedPopupParent.innerHeight)) || overflowsBottom || overflowsTop;
1654
- }
1655
- shouldCloseDueToNoOpener(openerRect) {
1656
- return openerRect.top === 0
1657
- && openerRect.bottom === 0
1658
- && openerRect.left === 0
1659
- && openerRect.right === 0;
1660
- }
1661
- isOpenerOutsideViewport(openerRect) {
1662
- return openerRect.bottom < 0
1663
- || openerRect.top > window.innerHeight
1664
- || openerRect.right < 0
1665
- || openerRect.left > window.innerWidth;
1666
- }
1667
- /**
1668
- * @override
1669
- */
1670
- _resize() {
1671
- super._resize();
1672
- if (this.open) {
1673
- this.reposition();
1674
- }
1675
- }
1676
- reposition() {
1677
- this._show();
1678
- }
1679
- async _show() {
1680
- super._show();
1681
- const opener = this.getOpenerHTMLElement(this.opener);
1682
- if (!opener) {
1683
- Object.assign(this.style, {
1684
- top: `0px`,
1685
- left: `0px`,
1686
- });
1687
- return;
1688
- }
1689
- if (opener && webcomponentsBase.v(opener) && !opener.getDomRef()) {
1690
- return;
1691
- }
1692
- if (!this._opened) {
1693
- this._showOutsideViewport();
1694
- }
1695
- const popoverSize = this.getPopoverSize();
1696
- let placement;
1697
- if (popoverSize.width === 0 || popoverSize.height === 0) {
1698
- // size can not be determined properly at this point, popover will be shown with the next reposition
1699
- return;
1700
- }
1701
- if (this.open) {
1702
- // update opener rect if it was changed during the popover being opened
1703
- this._openerRect = opener.getBoundingClientRect();
1704
- }
1705
- if (this._oldPlacement && this.shouldCloseDueToNoOpener(this._openerRect) && this.isFocusWithin()) {
1706
- // reuse the old placement as the opener is not available,
1707
- // but keep the popover open as the focus is within
1708
- placement = this._oldPlacement;
1709
- }
1710
- else {
1711
- placement = this.calcPlacement(this._openerRect, popoverSize);
1712
- }
1713
- if (this._preventRepositionAndClose || this.isOpenerOutsideViewport(this._openerRect)) {
1714
- await this._waitForDomRef();
1715
- return this.closePopup();
1716
- }
1717
- this._oldPlacement = placement;
1718
- this.actualPlacement = placement.placement;
1719
- let left = m$1(this._left, Popover_1.VIEWPORT_MARGIN, document.documentElement.clientWidth - popoverSize.width - Popover_1.VIEWPORT_MARGIN);
1720
- if (this.actualPlacement === PopoverPlacement$1.End) {
1721
- left = Math.max(left, this._left);
1722
- }
1723
- let top = m$1(this._top, Popover_1.VIEWPORT_MARGIN, document.documentElement.clientHeight - popoverSize.height - Popover_1.VIEWPORT_MARGIN);
1724
- if (this.actualPlacement === PopoverPlacement$1.Bottom) {
1725
- top = Math.max(top, this._top);
1726
- }
1727
- this.arrowTranslateX = placement.arrow.x;
1728
- this.arrowTranslateY = placement.arrow.y;
1729
- top = this._adjustForIOSKeyboard(top);
1730
- Object.assign(this.style, {
1731
- top: `${top}px`,
1732
- left: `${left}px`,
1733
- });
1734
- if (this.horizontalAlign === PopoverHorizontalAlign$1.Stretch && this._width) {
1735
- this.style.width = this._width;
1736
- }
1737
- if (this.verticalAlign === PopoverVerticalAlign$1.Stretch && this._height) {
1738
- this.style.height = this._height;
1739
- }
1740
- }
1741
- /**
1742
- * Adjust the desired top position to compensate for shift of the screen
1743
- * caused by opened keyboard on iOS which affects all elements with position:fixed.
1744
- * @private
1745
- * @param top The target top in px.
1746
- * @returns The adjusted top in px.
1747
- */
1748
- _adjustForIOSKeyboard(top) {
1749
- if (!Icons.w()) {
1750
- return top;
1751
- }
1752
- const actualTop = Math.ceil(this.getBoundingClientRect().top);
1753
- return top + (Number.parseInt(this.style.top || "0") - actualTop);
1754
- }
1755
- getPopoverSize(calcScrollHeight = false) {
1756
- const rect = this.getBoundingClientRect();
1757
- const width = rect.width;
1758
- let height;
1759
- const domRef = this.getDomRef();
1760
- if (calcScrollHeight && domRef) {
1761
- const header = domRef.querySelector(".ui5-popup-header-root");
1762
- const content = domRef.querySelector(".ui5-popup-content");
1763
- const footer = domRef.querySelector(".ui5-popup-footer-root");
1764
- height = content?.scrollHeight || 0;
1765
- height += header?.scrollHeight || 0;
1766
- height += footer?.scrollHeight || 0;
1767
- }
1768
- else {
1769
- height = rect.height;
1770
- }
1771
- return { width, height };
1772
- }
1773
- _showOutsideViewport() {
1774
- Object.assign(this.style, {
1775
- top: "-10000px",
1776
- left: "-10000px",
1777
- });
1778
- }
1779
- _isUI5AbstractElement(el) {
1780
- return webcomponentsBase.v(el) && el.isUI5AbstractElement;
1781
- }
1782
- get arrowDOM() {
1783
- return this.shadowRoot.querySelector(".ui5-popover-arrow");
1784
- }
1785
- /**
1786
- * @protected
1787
- */
1788
- focusOpener() {
1789
- this.getOpenerHTMLElement(this.opener)?.focus();
1790
- }
1791
- /**
1792
- * @private
1793
- */
1794
- calcPlacement(targetRect, popoverSize) {
1795
- let left = Popover_1.VIEWPORT_MARGIN;
1796
- let top = 0;
1797
- const allowTargetOverlap = this.allowTargetOverlap;
1798
- const clientWidth = document.documentElement.clientWidth;
1799
- const clientHeight = document.documentElement.clientHeight;
1800
- let maxHeight = clientHeight;
1801
- let maxWidth = clientWidth;
1802
- const placement = this.getActualPlacement(targetRect);
1803
- this._preventRepositionAndClose = this.shouldCloseDueToNoOpener(targetRect) || this.shouldCloseDueToOverflow(placement, targetRect);
1804
- const isVertical = placement === PopoverPlacement$1.Top
1805
- || placement === PopoverPlacement$1.Bottom;
1806
- if (this.horizontalAlign === PopoverHorizontalAlign$1.Stretch && isVertical) {
1807
- popoverSize.width = targetRect.width;
1808
- this._width = `${targetRect.width}px`;
1809
- }
1810
- else if (this.verticalAlign === PopoverVerticalAlign$1.Stretch && !isVertical) {
1811
- popoverSize.height = targetRect.height;
1812
- this._height = `${targetRect.height}px`;
1813
- }
1814
- const arrowOffset = this.hideArrow ? 0 : ARROW_SIZE;
1815
- // calc popover positions
1816
- switch (placement) {
1817
- case PopoverPlacement$1.Top:
1818
- left = this.getVerticalLeft(targetRect, popoverSize);
1819
- top = Math.max(targetRect.top - popoverSize.height - arrowOffset, 0);
1820
- if (!allowTargetOverlap) {
1821
- maxHeight = targetRect.top - arrowOffset;
1822
- }
1823
- break;
1824
- case PopoverPlacement$1.Bottom:
1825
- left = this.getVerticalLeft(targetRect, popoverSize);
1826
- top = targetRect.bottom + arrowOffset;
1827
- if (allowTargetOverlap) {
1828
- top = Math.max(Math.min(top, clientHeight - popoverSize.height), 0);
1829
- }
1830
- else {
1831
- maxHeight = clientHeight - targetRect.bottom - arrowOffset;
1832
- }
1833
- break;
1834
- case PopoverPlacement$1.Start:
1835
- left = Math.max(targetRect.left - popoverSize.width - arrowOffset, 0);
1836
- top = this.getHorizontalTop(targetRect, popoverSize);
1837
- if (!allowTargetOverlap) {
1838
- maxWidth = targetRect.left - arrowOffset;
1839
- }
1840
- break;
1841
- case PopoverPlacement$1.End:
1842
- left = targetRect.left + targetRect.width + arrowOffset;
1843
- top = this.getHorizontalTop(targetRect, popoverSize);
1844
- if (allowTargetOverlap) {
1845
- left = Math.max(Math.min(left, clientWidth - popoverSize.width), 0);
1846
- }
1847
- else {
1848
- maxWidth = clientWidth - targetRect.right - arrowOffset;
1849
- }
1850
- break;
1851
- }
1852
- // correct popover positions
1853
- if (isVertical) {
1854
- if (popoverSize.width > clientWidth || left < Popover_1.VIEWPORT_MARGIN) {
1855
- left = Popover_1.VIEWPORT_MARGIN;
1856
- }
1857
- else if (left + popoverSize.width > clientWidth - Popover_1.VIEWPORT_MARGIN) {
1858
- left = clientWidth - Popover_1.VIEWPORT_MARGIN - popoverSize.width;
1859
- }
1860
- }
1861
- else {
1862
- if (popoverSize.height > clientHeight || top < Popover_1.VIEWPORT_MARGIN) { // eslint-disable-line
1863
- top = Popover_1.VIEWPORT_MARGIN;
1864
- }
1865
- else if (top + popoverSize.height > clientHeight - Popover_1.VIEWPORT_MARGIN) {
1866
- top = clientHeight - Popover_1.VIEWPORT_MARGIN - popoverSize.height;
1867
- }
1868
- }
1869
- this._maxHeight = Math.round(maxHeight - Popover_1.VIEWPORT_MARGIN);
1870
- this._maxWidth = Math.round(maxWidth - Popover_1.VIEWPORT_MARGIN);
1871
- if (this._left === undefined || Math.abs(this._left - left) > 1.5) {
1872
- this._left = Math.round(left);
1873
- }
1874
- if (this._top === undefined || Math.abs(this._top - top) > 1.5) {
1875
- this._top = Math.round(top);
1876
- }
1877
- const borderRadius = Number.parseInt(window.getComputedStyle(this).getPropertyValue("border-radius"));
1878
- const arrowPos = this.getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius);
1879
- this._left += this.getRTLCorrectionLeft();
1880
- return {
1881
- arrow: arrowPos,
1882
- top: this._top,
1883
- left: this._left,
1884
- placement,
1885
- };
1886
- }
1887
- getRTLCorrectionLeft() {
1888
- return parseFloat(window.getComputedStyle(this).left) - this.getBoundingClientRect().left;
1889
- }
1890
- /**
1891
- * Calculates the position for the arrow.
1892
- * @private
1893
- * @param targetRect BoundingClientRect of the target element
1894
- * @param popoverSize Width and height of the popover
1895
- * @param left Left offset of the popover
1896
- * @param top Top offset of the popover
1897
- * @param isVertical If the popover is positioned vertically to the target element
1898
- * @param borderRadius Value of the border-radius property
1899
- * @returns Arrow's coordinates
1900
- */
1901
- getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius) {
1902
- const horizontalAlign = this._actualHorizontalAlign;
1903
- let arrowXCentered = horizontalAlign === PopoverHorizontalAlign$1.Center || horizontalAlign === PopoverHorizontalAlign$1.Stretch;
1904
- if (horizontalAlign === PopoverHorizontalAlign$1.End && left <= targetRect.left) {
1905
- arrowXCentered = true;
1906
- }
1907
- if (horizontalAlign === PopoverHorizontalAlign$1.Start && left + popoverSize.width >= targetRect.left + targetRect.width) {
1908
- arrowXCentered = true;
1909
- }
1910
- let arrowTranslateX = 0;
1911
- if (isVertical && arrowXCentered) {
1912
- arrowTranslateX = targetRect.left + targetRect.width / 2 - left - popoverSize.width / 2;
1913
- }
1914
- let arrowTranslateY = 0;
1915
- if (!isVertical) {
1916
- arrowTranslateY = targetRect.top + targetRect.height / 2 - top - popoverSize.height / 2;
1917
- }
1918
- // Restricts the arrow's translate value along each dimension,
1919
- // so that the arrow does not clip over the popover's rounded borders.
1920
- const safeRangeForArrowY = popoverSize.height / 2 - borderRadius - ARROW_SIZE / 2 - 2;
1921
- arrowTranslateY = m$1(arrowTranslateY, -safeRangeForArrowY, safeRangeForArrowY);
1922
- const safeRangeForArrowX = popoverSize.width / 2 - borderRadius - ARROW_SIZE / 2 - 2;
1923
- arrowTranslateX = m$1(arrowTranslateX, -safeRangeForArrowX, safeRangeForArrowX);
1924
- return {
1925
- x: Math.round(arrowTranslateX),
1926
- y: Math.round(arrowTranslateY),
1927
- };
1928
- }
1929
- /**
1930
- * Fallbacks to new placement, prioritizing `Left` and `Right` placements.
1931
- * @private
1932
- */
1933
- fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) {
1934
- if (targetRect.left > popoverSize.width) {
1935
- return PopoverPlacement$1.Start;
1936
- }
1937
- if (clientWidth - targetRect.right > targetRect.left) {
1938
- return PopoverPlacement$1.End;
1939
- }
1940
- if (clientHeight - targetRect.bottom > popoverSize.height) {
1941
- return PopoverPlacement$1.Bottom;
1942
- }
1943
- if (clientHeight - targetRect.bottom < targetRect.top) {
1944
- return PopoverPlacement$1.Top;
1945
- }
1946
- }
1947
- getActualPlacement(targetRect) {
1948
- const placement = this.placement;
1949
- let actualPlacement = placement;
1950
- const isVertical = placement === PopoverPlacement$1.Top
1951
- || placement === PopoverPlacement$1.Bottom;
1952
- const popoverSize = this.getPopoverSize(!this.allowTargetOverlap);
1953
- const clientWidth = document.documentElement.clientWidth;
1954
- let clientHeight = document.documentElement.clientHeight;
1955
- let popoverHeight = popoverSize.height;
1956
- if (isVertical) {
1957
- popoverHeight += this.hideArrow ? 0 : ARROW_SIZE;
1958
- clientHeight -= Popover_1.VIEWPORT_MARGIN;
1959
- }
1960
- switch (placement) {
1961
- case PopoverPlacement$1.Top:
1962
- if (targetRect.top < popoverHeight
1963
- && targetRect.top < clientHeight - targetRect.bottom) {
1964
- actualPlacement = PopoverPlacement$1.Bottom;
1965
- }
1966
- break;
1967
- case PopoverPlacement$1.Bottom:
1968
- if (clientHeight - targetRect.bottom < popoverHeight
1969
- && clientHeight - targetRect.bottom < targetRect.top) {
1970
- actualPlacement = PopoverPlacement$1.Top;
1971
- }
1972
- break;
1973
- case PopoverPlacement$1.Start:
1974
- if (targetRect.left < popoverSize.width) {
1975
- actualPlacement = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placement;
1976
- }
1977
- break;
1978
- case PopoverPlacement$1.End:
1979
- if (clientWidth - targetRect.right < popoverSize.width) {
1980
- actualPlacement = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placement;
1981
- }
1982
- break;
1983
- }
1984
- return actualPlacement;
1985
- }
1986
- getVerticalLeft(targetRect, popoverSize) {
1987
- const horizontalAlign = this._actualHorizontalAlign;
1988
- let left = Popover_1.VIEWPORT_MARGIN;
1989
- switch (horizontalAlign) {
1990
- case PopoverHorizontalAlign$1.Center:
1991
- case PopoverHorizontalAlign$1.Stretch:
1992
- left = targetRect.left - (popoverSize.width - targetRect.width) / 2;
1993
- break;
1994
- case PopoverHorizontalAlign$1.Start:
1995
- left = targetRect.left;
1996
- break;
1997
- case PopoverHorizontalAlign$1.End:
1998
- left = targetRect.right - popoverSize.width;
1999
- break;
2000
- }
2001
- return left;
2002
- }
2003
- getHorizontalTop(targetRect, popoverSize) {
2004
- let top = 0;
2005
- switch (this.verticalAlign) {
2006
- case PopoverVerticalAlign$1.Center:
2007
- case PopoverVerticalAlign$1.Stretch:
2008
- top = targetRect.top - (popoverSize.height - targetRect.height) / 2;
2009
- break;
2010
- case PopoverVerticalAlign$1.Top:
2011
- top = targetRect.top;
2012
- break;
2013
- case PopoverVerticalAlign$1.Bottom:
2014
- top = targetRect.bottom - popoverSize.height;
2015
- break;
2016
- }
2017
- return top;
2018
- }
2019
- get isModal() {
2020
- return this.modal;
2021
- }
2022
- get _ariaLabelledBy() {
2023
- if (!this._ariaLabel && this._displayHeader) {
2024
- return "ui5-popup-header";
2025
- }
2026
- return undefined;
2027
- }
2028
- get styles() {
2029
- return {
2030
- ...super.styles,
2031
- root: {
2032
- "max-height": this._maxHeight ? `${this._maxHeight}px` : "",
2033
- "max-width": this._maxWidth ? `${this._maxWidth}px` : "",
2034
- },
2035
- arrow: {
2036
- transform: `translate(${this.arrowTranslateX}px, ${this.arrowTranslateY}px)`,
2037
- },
2038
- };
2039
- }
2040
- get classes() {
2041
- const allClasses = super.classes;
2042
- allClasses.root["ui5-popover-root"] = true;
2043
- return allClasses;
2044
- }
2045
- /**
2046
- * Hook for descendants to hide header.
2047
- */
2048
- get _displayHeader() {
2049
- return !!(this.header.length || this.headerText);
2050
- }
2051
- /**
2052
- * Hook for descendants to hide footer.
2053
- */
2054
- get _displayFooter() {
2055
- return true;
2056
- }
2057
- get _actualHorizontalAlign() {
2058
- if (this.effectiveDir === "rtl") {
2059
- if (this.horizontalAlign === PopoverHorizontalAlign$1.Start) {
2060
- return PopoverHorizontalAlign$1.End;
2061
- }
2062
- if (this.horizontalAlign === PopoverHorizontalAlign$1.End) {
2063
- return PopoverHorizontalAlign$1.Start;
2064
- }
2065
- }
2066
- return this.horizontalAlign;
2067
- }
2068
- };
2069
- __decorate$1([
2070
- webcomponentsBase.s()
2071
- ], Popover.prototype, "headerText", void 0);
2072
- __decorate$1([
2073
- webcomponentsBase.s()
2074
- ], Popover.prototype, "placement", void 0);
2075
- __decorate$1([
2076
- webcomponentsBase.s()
2077
- ], Popover.prototype, "horizontalAlign", void 0);
2078
- __decorate$1([
2079
- webcomponentsBase.s()
2080
- ], Popover.prototype, "verticalAlign", void 0);
2081
- __decorate$1([
2082
- webcomponentsBase.s({ type: Boolean })
2083
- ], Popover.prototype, "modal", void 0);
2084
- __decorate$1([
2085
- webcomponentsBase.s({ type: Boolean })
2086
- ], Popover.prototype, "hideArrow", void 0);
2087
- __decorate$1([
2088
- webcomponentsBase.s({ type: Boolean })
2089
- ], Popover.prototype, "allowTargetOverlap", void 0);
2090
- __decorate$1([
2091
- webcomponentsBase.s({ type: Number, noAttribute: true })
2092
- ], Popover.prototype, "arrowTranslateX", void 0);
2093
- __decorate$1([
2094
- webcomponentsBase.s({ type: Number, noAttribute: true })
2095
- ], Popover.prototype, "arrowTranslateY", void 0);
2096
- __decorate$1([
2097
- webcomponentsBase.s()
2098
- ], Popover.prototype, "actualPlacement", void 0);
2099
- __decorate$1([
2100
- webcomponentsBase.s({ type: Number, noAttribute: true })
2101
- ], Popover.prototype, "_maxHeight", void 0);
2102
- __decorate$1([
2103
- webcomponentsBase.s({ type: Number, noAttribute: true })
2104
- ], Popover.prototype, "_maxWidth", void 0);
2105
- __decorate$1([
2106
- webcomponentsBase.d({ type: HTMLElement })
2107
- ], Popover.prototype, "header", void 0);
2108
- __decorate$1([
2109
- webcomponentsBase.d({ type: HTMLElement })
2110
- ], Popover.prototype, "footer", void 0);
2111
- __decorate$1([
2112
- webcomponentsBase.s({ converter: e$1 })
2113
- ], Popover.prototype, "opener", null);
2114
- Popover = Popover_1 = __decorate$1([
2115
- webcomponentsBase.m({
2116
- tag: "ui5-popover",
2117
- styles: [
2118
- Popup$1.styles,
2119
- PopupsCommonCss,
2120
- PopoverCss,
2121
- ],
2122
- template: PopoverTemplate,
2123
- })
2124
- ], Popover);
2125
- const instanceOfPopover = (object) => {
2126
- return "opener" in object;
2127
- };
2128
- Popover.define();
2129
- var Popover$1 = Popover;
2130
-
2131
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
2132
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
2133
- var ResponsivePopoverCss = `:host{--_ui5-v2-14-0-rc-7_input_width: 100%;min-width:6.25rem;min-height:2rem}:host([on-phone]){display:contents}.ui5-responsive-popover-header{height:var(--_ui5-v2-14-0-rc-7-responsive_popover_header_height);display:flex;justify-content:var(--_ui5-v2-14-0-rc-7_popup_header_prop_header_text_alignment);align-items:center;width:100%}.ui5-responsive-popover-header-text{width:calc(100% - var(--_ui5-v2-14-0-rc-7_button_base_min_width))}.ui5-responsive-popover-header-no-title{justify-content:flex-end}
2134
- `;
2135
-
2136
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2137
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2138
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2139
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2140
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2141
- };
2142
- var ResponsivePopover_1;
2143
- /**
2144
- * @class
2145
- *
2146
- * ### Overview
2147
- * The `ui5-responsive-popover` acts as a Popover on desktop and tablet, while on phone it acts as a Dialog.
2148
- * The component improves tremendously the user experience on mobile.
2149
- *
2150
- * ### Usage
2151
- * Use it when you want to make sure that all the content is visible on any device.
2152
- *
2153
- * ### ES6 Module Import
2154
- *
2155
- * `import "sap/ushell/gen/ui5/webcomponents/dist/ResponsivePopover.js";`
2156
- * @constructor
2157
- * @extends Popover
2158
- * @since 1.0.0-rc.6
2159
- * @public
2160
- * @csspart header - Used to style the header of the component
2161
- * @csspart content - Used to style the content of the component
2162
- * @csspart footer - Used to style the footer of the component
2163
- */
2164
- let ResponsivePopover = ResponsivePopover_1 = class ResponsivePopover extends Popover$1 {
2165
- constructor() {
2166
- super();
2167
- /**
2168
- * Defines if only the content would be displayed (without header and footer) in the popover on Desktop.
2169
- * By default both the header and footer would be displayed.
2170
- * @private
2171
- */
2172
- this.contentOnlyOnDesktop = false;
2173
- /**
2174
- * Used internaly for controls which must not have header.
2175
- * @private
2176
- */
2177
- this._hideHeader = false;
2178
- /**
2179
- * Defines whether a close button will be rendered in the header of the component
2180
- * **Note:** If you are using the `header` slot, this property will have no effect
2181
- * @private
2182
- * @default false
2183
- * @since 1.0.0-rc.16
2184
- */
2185
- this._hideCloseButton = false;
2186
- }
2187
- async openPopup() {
2188
- if (!Icons.d()) {
2189
- await super.openPopup();
2190
- }
2191
- else if (this._dialog) {
2192
- this._dialog.open = true;
2193
- }
2194
- }
2195
- async _show() {
2196
- if (!Icons.d()) {
2197
- return super._show();
2198
- }
2199
- }
2200
- handleOpenOnEnterDOM() {
2201
- if (this.open && !Icons.d()) {
2202
- this.showPopover();
2203
- this.openPopup();
2204
- }
2205
- }
2206
- _dialogCloseButtonClick() {
2207
- this.closePopup();
2208
- }
2209
- /**
2210
- * Closes the popover/dialog.
2211
- * @override
2212
- */
2213
- closePopup(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false) {
2214
- if (!Icons.d()) {
2215
- super.closePopup(escPressed, preventRegistryUpdate, preventFocusRestore);
2216
- }
2217
- else {
2218
- this._dialog?.closePopup(escPressed, preventRegistryUpdate, preventFocusRestore);
2219
- }
2220
- }
2221
- toggle(opener) {
2222
- if (this.open) {
2223
- this.closePopup();
2224
- return;
2225
- }
2226
- this.opener = opener;
2227
- this.open = true;
2228
- }
2229
- get classes() {
2230
- const allClasses = super.classes;
2231
- allClasses.header = {
2232
- "ui5-responsive-popover-header": true,
2233
- "ui5-responsive-popover-header-no-title": !this.headerText,
2234
- };
2235
- return allClasses;
2236
- }
2237
- get _dialog() {
2238
- return this.shadowRoot.querySelector("[ui5-dialog]");
2239
- }
2240
- get contentDOM() {
2241
- return Icons.d() ? this._dialog.contentDOM : super.contentDOM;
2242
- }
2243
- get _isPhone() {
2244
- return Icons.d();
2245
- }
2246
- get _displayHeader() {
2247
- return (Icons.d() || !this.contentOnlyOnDesktop) && super._displayHeader;
2248
- }
2249
- get _displayFooter() {
2250
- return Icons.d() || !this.contentOnlyOnDesktop;
2251
- }
2252
- get _closeDialogAriaLabel() {
2253
- return ResponsivePopover_1.i18nBundle.getText(i18nDefaults.RESPONSIVE_POPOVER_CLOSE_DIALOG_BUTTON);
2254
- }
2255
- _beforeDialogOpen() {
2256
- this._opened = true;
2257
- this.open = true;
2258
- this.fireDecoratorEvent("before-open");
2259
- }
2260
- _afterDialogOpen() {
2261
- this.fireDecoratorEvent("open");
2262
- }
2263
- _beforeDialogClose(e) {
2264
- this.fireDecoratorEvent("before-close", e.detail);
2265
- }
2266
- _afterDialogClose() {
2267
- this._opened = false;
2268
- this.open = false;
2269
- this.fireDecoratorEvent("close");
2270
- }
2271
- get isModal() {
2272
- if (!Icons.d()) {
2273
- return super.isModal;
2274
- }
2275
- return this._dialog.isModal;
2276
- }
2277
- };
2278
- __decorate([
2279
- webcomponentsBase.s({ type: Boolean })
2280
- ], ResponsivePopover.prototype, "contentOnlyOnDesktop", void 0);
2281
- __decorate([
2282
- webcomponentsBase.s({ type: Boolean })
2283
- ], ResponsivePopover.prototype, "_hideHeader", void 0);
2284
- __decorate([
2285
- webcomponentsBase.s({ type: Boolean })
2286
- ], ResponsivePopover.prototype, "_hideCloseButton", void 0);
2287
- __decorate([
2288
- parametersBundle_css$1.i("sap/ushell/gen/ui5/webcomponents")
2289
- ], ResponsivePopover, "i18nBundle", void 0);
2290
- ResponsivePopover = ResponsivePopover_1 = __decorate([
2291
- webcomponentsBase.m({
2292
- tag: "ui5-responsive-popover",
2293
- styles: [Popover$1.styles, ResponsivePopoverCss],
2294
- template: ResponsivePopoverTemplate,
2295
- })
2296
- ], ResponsivePopover);
2297
- ResponsivePopover.define();
2298
- var ResponsivePopover$1 = ResponsivePopover;
2299
-
2300
- exports.Popover = Popover$1;
2301
- exports.PopoverHorizontalAlign = PopoverHorizontalAlign$1;
2302
- exports.PopoverPlacement = PopoverPlacement$1;
2303
- exports.ResponsivePopover = ResponsivePopover$1;
2304
- exports.e = e$1;
2305
-
2306
- }));