@sapui5/sap.ushell 1.141.3 → 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 (646) 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 -119
  418. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Button.js +0 -219
  419. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Label.js +0 -75
  420. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItem.js +0 -76
  421. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemBase.js +0 -39
  422. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemGroup.js +0 -153
  423. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Menu.js +0 -185
  424. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +0 -198
  425. package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +0 -576
  426. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/IllustratedMessage.js +0 -98
  427. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationList.js +0 -135
  428. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListGroupItem.js +0 -91
  429. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItem.js +0 -134
  430. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/NotificationListItemBase.js +0 -55
  431. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js +0 -163
  432. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItem.js +0 -83
  433. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItemGroup.js +0 -36
  434. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchMessageArea.js +0 -53
  435. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchScope.js +0 -55
  436. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBar.js +0 -380
  437. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarBranding.js +0 -78
  438. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarItem.js +0 -88
  439. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSearch.js +0 -157
  440. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSpacer.js +0 -49
  441. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenu.js +0 -197
  442. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuAccount.js +0 -83
  443. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/UserMenuItem.js +0 -42
  444. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +0 -1652
  445. package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +0 -2823
  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 -656
  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 -1253
  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 -2312
  471. package/src/main/js/sap/ushell/thirdparty/SearchItem.js +0 -157
  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 -3453
  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/InputComposition.js +0 -35
  490. package/src/main/js/sap/ushell/thirdparty/_dynamics/InputSuggestions.js +0 -397
  491. package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +0 -193
  492. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT.js +0 -585
  493. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-TNT2.js +0 -585
  494. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite.js +0 -1194
  495. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons-business-suite2.js +0 -1194
  496. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons.js +0 -2509
  497. package/src/main/js/sap/ushell/thirdparty/_dynamics/SAP-icons2.js +0 -2509
  498. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar.js +0 -866
  499. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +0 -611
  500. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg.js +0 -866
  501. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +0 -611
  502. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca.js +0 -866
  503. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +0 -611
  504. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr.js +0 -866
  505. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +0 -611
  506. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs.js +0 -866
  507. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +0 -611
  508. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy.js +0 -866
  509. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +0 -611
  510. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da.js +0 -866
  511. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +0 -611
  512. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de.js +0 -866
  513. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +0 -611
  514. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el.js +0 -866
  515. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +0 -611
  516. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en.js +0 -866
  517. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +0 -611
  518. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB.js +0 -866
  519. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +0 -611
  520. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +0 -866
  521. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +0 -611
  522. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +0 -866
  523. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +0 -611
  524. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +0 -866
  525. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +0 -611
  526. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es.js +0 -866
  527. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +0 -611
  528. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX.js +0 -866
  529. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +0 -611
  530. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et.js +0 -866
  531. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +0 -611
  532. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi.js +0 -866
  533. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +0 -611
  534. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr.js +0 -866
  535. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +0 -611
  536. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA.js +0 -866
  537. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +0 -611
  538. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi.js +0 -866
  539. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +0 -611
  540. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr.js +0 -866
  541. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +0 -611
  542. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu.js +0 -866
  543. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +0 -611
  544. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id.js +0 -866
  545. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +0 -611
  546. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it.js +0 -866
  547. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +0 -611
  548. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw.js +0 -866
  549. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +0 -611
  550. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja.js +0 -866
  551. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +0 -611
  552. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk.js +0 -866
  553. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +0 -611
  554. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko.js +0 -866
  555. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +0 -611
  556. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt.js +0 -866
  557. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +0 -611
  558. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv.js +0 -866
  559. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +0 -611
  560. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk.js +0 -866
  561. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +0 -611
  562. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms.js +0 -866
  563. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +0 -611
  564. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl.js +0 -866
  565. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +0 -611
  566. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no.js +0 -866
  567. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +0 -611
  568. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl.js +0 -866
  569. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +0 -611
  570. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt.js +0 -866
  571. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +0 -611
  572. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT.js +0 -866
  573. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +0 -611
  574. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro.js +0 -866
  575. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +0 -611
  576. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru.js +0 -866
  577. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +0 -611
  578. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh.js +0 -866
  579. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +0 -611
  580. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk.js +0 -866
  581. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +0 -611
  582. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl.js +0 -866
  583. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +0 -611
  584. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr.js +0 -866
  585. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +0 -611
  586. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv.js +0 -866
  587. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +0 -611
  588. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th.js +0 -866
  589. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +0 -611
  590. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr.js +0 -866
  591. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +0 -611
  592. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk.js +0 -866
  593. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +0 -611
  594. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi.js +0 -866
  595. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +0 -611
  596. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN.js +0 -866
  597. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +0 -611
  598. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW.js +0 -866
  599. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +0 -611
  600. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +0 -7
  601. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +0 -7
  602. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +0 -7
  603. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +0 -7
  604. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +0 -7
  605. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +0 -7
  606. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +0 -7
  607. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +0 -7
  608. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +0 -7
  609. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +0 -7
  610. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +0 -7
  611. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +0 -7
  612. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +0 -7
  613. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +0 -7
  614. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +0 -7
  615. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css25.js +0 -7
  616. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css26.js +0 -7
  617. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css27.js +0 -7
  618. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +0 -7
  619. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +0 -7
  620. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +0 -7
  621. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +0 -7
  622. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +0 -7
  623. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +0 -7
  624. package/src/main/js/sap/ushell/thirdparty/encodeXML.js +0 -87
  625. package/src/main/js/sap/ushell/thirdparty/event-strict.js +0 -7
  626. package/src/main/js/sap/ushell/thirdparty/generateHighlightedMarkup.js +0 -9
  627. package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +0 -115
  628. package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +0 -159
  629. package/src/main/js/sap/ushell/thirdparty/information.js +0 -100
  630. package/src/main/js/sap/ushell/thirdparty/information2.js +0 -13
  631. package/src/main/js/sap/ushell/thirdparty/overflow.js +0 -25
  632. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +0 -11
  633. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css2.js +0 -44
  634. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css3.js +0 -8
  635. package/src/main/js/sap/ushell/thirdparty/query.js +0 -7
  636. package/src/main/js/sap/ushell/thirdparty/slim-arrow-down.js +0 -44
  637. package/src/main/js/sap/ushell/thirdparty/sys-enter-2.js +0 -7
  638. package/src/main/js/sap/ushell/thirdparty/toLowercaseEnumValue.js +0 -7
  639. package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons/AllIcons.js +0 -26
  640. package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-business-suite/AllIcons.js +0 -26
  641. package/src/main/js/sap/ushell/thirdparty/ui5/webcomponents-icons-tnt/AllIcons.js +0 -26
  642. package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +0 -4301
  643. package/src/main/js/sap/ushell/thirdparty/webcomponents-base2.js +0 -7
  644. package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +0 -146
  645. package/src/main/js/sap/ushell/thirdparty/webcomponents.js +0 -170
  646. package/src/main/js/sap/ushell/thirdparty/willShowContent.js +0 -7
@@ -1,3453 +0,0 @@
1
- sap.ui.define(['require', 'exports', 'sap/ushell/thirdparty/webcomponents-base', 'sap/ushell/thirdparty/webcomponents', 'sap/ushell/thirdparty/webcomponents-fiori', 'sap/ushell/thirdparty/event-strict', 'sap/ushell/thirdparty/Icons', 'sap/ushell/thirdparty/parameters-bundle.css2', 'sap/ushell/thirdparty/Button2', 'sap/ushell/thirdparty/Icon', 'sap/ushell/thirdparty/ListItemBase', 'sap/ushell/thirdparty/parameters-bundle.css', 'sap/ushell/thirdparty/ListItemAdditionalText.css', 'sap/ushell/thirdparty/AccessibilityTextsHelper', 'sap/ushell/thirdparty/ValueState', 'sap/ushell/thirdparty/information', 'sap/ushell/thirdparty/List', 'sap/ushell/thirdparty/i18n-defaults2', 'sap/ushell/thirdparty/Label', 'sap/ushell/thirdparty/ResponsivePopover', 'sap/ushell/thirdparty/slim-arrow-down', 'sap/ushell/thirdparty/Title', 'sap/ushell/thirdparty/BusyIndicator', 'sap/ushell/thirdparty/encodeXML', 'sap/ushell/thirdparty/information2', 'sap/ushell/thirdparty/sys-enter-2', 'sap/ushell/thirdparty/parameters-bundle.css3', 'sap/ushell/thirdparty/i18n-defaults'], (function (require, exports, webcomponentsBase, webcomponents, webcomponentsFiori, eventStrict, Icons, parametersBundle_css, Button, Icon, ListItemBase, parametersBundle_css$1, ListItemAdditionalText_css, AccessibilityTextsHelper, ValueState, information, List, i18nDefaults, Label, ResponsivePopover, slimArrowDown, Title, BusyIndicator, encodeXML, information$1, sysEnter2, parametersBundle_css$2, i18nDefaults$1) { 'use strict';
2
-
3
- function ListItemBaseTemplate(hooks, injectedProps) {
4
- const listItemContent = hooks?.listItemContent || defaultListItemContent;
5
- return (parametersBundle_css.jsx("li", { part: "native-li", "data-sap-focus-ref": true, tabindex: this._effectiveTabIndex, class: this.classes.main, draggable: this.movable, role: injectedProps?.role, title: injectedProps?.title, onFocusIn: this._onfocusin, onKeyUp: this._onkeyup, onKeyDown: this._onkeydown, onClick: this._onclick, children: listItemContent.call(this) }));
6
- }
7
- function defaultListItemContent() {
8
- return parametersBundle_css.jsx("div", { part: "content", id: `${this._id}-content`, class: "ui5-li-content", children: parametersBundle_css.jsx("div", { class: "ui5-li-text-wrapper", children: parametersBundle_css.jsx("span", { part: "title", class: "ui5-li-title", children: parametersBundle_css.jsx("slot", {}) }) }) });
9
- }
10
-
11
- function OptionTemplate() {
12
- return ListItemBaseTemplate.call(this, { listItemContent: listItemContent$1 }, { role: "option", title: this.tooltip });
13
- }
14
- function listItemContent$1() {
15
- return (parametersBundle_css.jsxs("div", { part: "content", id: `${this._id}-content`, class: "ui5-li-content", children: [this.displayIconBegin &&
16
- parametersBundle_css.jsx(Icon.Icon, { part: "icon", name: this.icon, class: "ui5-li-icon", mode: "Decorative" }), parametersBundle_css.jsxs("div", { class: "ui5-li-text-wrapper", children: [parametersBundle_css.jsx("span", { part: "title", class: "ui5-li-title", children: parametersBundle_css.jsx("slot", {}) }), this.additionalText &&
17
- parametersBundle_css.jsx("span", { part: "additional-text", class: "ui5-li-additional-text", children: this.additionalText })] })] }));
18
- }
19
-
20
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
21
- 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);
22
- var optionBaseCss = `:host{height:var(--_ui5-v2-15-0_list_item_dropdown_base_height);--_ui5-v2-15-0_list_item_title_size: var(--sapFontSize)}
23
- `;
24
-
25
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
26
- 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);
27
- var listItemIconCss = `.ui5-li-icon{color:var(--sapList_TextColor);min-width:var(--_ui5-v2-15-0_list_item_icon_size);min-height:var(--_ui5-v2-15-0_list_item_icon_size);padding-inline-end:var(--_ui5-v2-15-0_list_item_icon_padding-inline-end)}
28
- `;
29
-
30
- var __decorate$6 = (this && this.__decorate) || function (decorators, target, key, desc) {
31
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
33
- 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;
34
- return c > 3 && r && Object.defineProperty(target, key, r), r;
35
- };
36
- /**
37
- * @class
38
- *
39
- * ### Overview
40
- *
41
- * The `ui5-option` component defines the content of an option in the `ui5-select`.
42
- *
43
- * ### ES6 Module Import
44
- *
45
- * `import "sap/ushell/gen/ui5/webcomponents/dist/Option.js";`
46
- * @constructor
47
- * @extends ListItemBase
48
- * @implements {IOption}
49
- * @public
50
- */
51
- let Option = class Option extends ListItemBase.ListItemBase {
52
- get displayIconBegin() {
53
- return !!this.icon;
54
- }
55
- get effectiveDisplayText() {
56
- return this.textContent || "";
57
- }
58
- };
59
- __decorate$6([
60
- webcomponentsBase.d({ type: Node, "default": true, invalidateOnChildChange: true })
61
- ], Option.prototype, "text", void 0);
62
- __decorate$6([
63
- webcomponentsBase.s()
64
- ], Option.prototype, "value", void 0);
65
- __decorate$6([
66
- webcomponentsBase.s()
67
- ], Option.prototype, "icon", void 0);
68
- __decorate$6([
69
- webcomponentsBase.s()
70
- ], Option.prototype, "additionalText", void 0);
71
- __decorate$6([
72
- webcomponentsBase.s()
73
- ], Option.prototype, "tooltip", void 0);
74
- __decorate$6([
75
- webcomponentsBase.s({ type: Boolean })
76
- ], Option.prototype, "selected", void 0);
77
- Option = __decorate$6([
78
- webcomponentsBase.m({
79
- tag: "ui5-option",
80
- template: OptionTemplate,
81
- styles: [
82
- ListItemBase.ListItemBase.styles,
83
- ListItemAdditionalText_css.listItemAdditionalTextCss,
84
- listItemIconCss,
85
- optionBaseCss,
86
- ],
87
- })
88
- ], Option);
89
- Option.define();
90
- var Option$1 = Option;
91
-
92
- let t,n$1;const l=e=>{e.style.position="absolute",e.style.clip="rect(1px,1px,1px,1px)",e.style.userSelect="none",e.style.left="-1000px",e.style.top="-1000px",e.style.pointerEvents="none";};Icons.P(()=>{t&&n$1||(t=document.createElement("span"),n$1=document.createElement("span"),t.classList.add("ui5-invisiblemessage-polite"),n$1.classList.add("ui5-invisiblemessage-assertive"),t.setAttribute("aria-live","polite"),n$1.setAttribute("aria-live","assertive"),t.setAttribute("role","alert"),n$1.setAttribute("role","alert"),l(t),l(n$1),Icons.o("ui5-announcement-area").appendChild(t),Icons.o("ui5-announcement-area").appendChild(n$1));});const p=(e,s)=>{const i=t;i.textContent="",i.textContent=e,setTimeout(()=>{i.textContent===e&&(i.textContent="");},3e3);};
93
-
94
- function SelectPopoverTemplate() {
95
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [this.options.length > 0 &&
96
- parametersBundle_css.jsxs(ResponsivePopover.ResponsivePopover, { id: this.responsivePopoverId, class: {
97
- "ui5-select-popover": true,
98
- ...this.classes.popover
99
- }, part: "popover", style: this.styles.responsivePopover, placement: "Bottom", horizontalAlign: "Start", hideArrow: true, preventInitialFocus: true, onOpen: this._afterOpen, onBeforeOpen: this._beforeOpen, onClose: this._afterClose, onKeyDown: this._onkeydown, accessibleName: this._isPhone ? this._headerTitleText : undefined, children: [this._isPhone &&
100
- parametersBundle_css.jsxs("div", { slot: "header", class: "ui5-responsive-popover-header", children: [parametersBundle_css.jsxs("div", { class: "row", children: [parametersBundle_css.jsx(Title.Title, { children: this._headerTitleText }), parametersBundle_css.jsx(Button.Button, { class: "ui5-responsive-popover-close-btn", icon: information.decline, design: "Transparent", onClick: this._toggleRespPopover })] }), this.hasValueStateText &&
101
- parametersBundle_css.jsx("div", { class: {
102
- "row": true,
103
- "ui5-select-value-state-dialog-header": true,
104
- ...this.classes.popoverValueState
105
- }, children: this._isPickerOpen && valueStateMessage$1.call(this) })] }), !this._isPhone && this.hasValueStateText &&
106
- parametersBundle_css.jsxs("div", { class: this.classes.popoverValueState, style: this.styles.responsivePopoverHeader, children: [parametersBundle_css.jsx(Icon.Icon, { class: "ui5-input-value-state-message-icon", name: this._valueStateMessageInputIcon }), this._isPickerOpen && valueStateMessage$1.call(this)] }), parametersBundle_css.jsx(List.List, { separators: "None", onMouseDown: this._itemMousedown, onItemClick: this._handleItemPress, accessibleRole: "ListBox", children: parametersBundle_css.jsx("slot", {}) })] }), this.shouldOpenValueStateMessagePopover &&
107
- parametersBundle_css.jsx(ResponsivePopover.Popover, { part: "popover", class: "ui5-valuestatemessage-popover", preventInitialFocus: true, preventFocusRestore: true, hideArrow: true, placement: "Bottom", horizontalAlign: "Start", children: parametersBundle_css.jsxs("div", { class: this.classes.popoverValueState, style: this.styles.popoverHeader, children: [parametersBundle_css.jsx(Icon.Icon, { class: "ui5-input-value-state-message-icon", name: this._valueStateMessageInputIcon }), valueStateMessage$1.call(this)] }) })] }));
108
- }
109
- function valueStateMessage$1() {
110
- return (parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: this.shouldDisplayDefaultValueStateMessage
111
- ? this.valueStateText
112
- : parametersBundle_css.jsx("slot", { onClick: this._applyFocus, name: "valueStateMessage" }) }));
113
- }
114
-
115
- function SelectTemplate() {
116
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsxs("div", { class: {
117
- "ui5-select-root": true,
118
- "ui5-input-focusable-element": true,
119
- }, id: `${this._id}-select`, onClick: this._onclick, title: this.tooltip, children: [!this.icon && this.selectedOptionIcon &&
120
- parametersBundle_css.jsx(Icon.Icon, { mode: "Decorative", class: "ui5-select-option-icon", name: this.selectedOptionIcon }), parametersBundle_css.jsx("div", { class: "ui5-select-label-root", "data-sap-focus-ref": true, tabindex: this._effectiveTabIndex, role: "combobox", "aria-haspopup": "listbox", "aria-label": this.ariaLabelText, ...this.ariaDescribedByIds && {
121
- "aria-describedby": this.ariaDescribedByIds
122
- }, "aria-disabled": this.isDisabled, "aria-required": this.required, "aria-readonly": this.readonly, "aria-expanded": this._isPickerOpen, "aria-roledescription": this._ariaRoleDescription, onKeyDown: this._onkeydown, onKeyPress: this._handleKeyboardNavigation, onKeyUp: this._onkeyup, onFocusIn: this._onfocusin, onFocusOut: this._onfocusout, "aria-controls": this.responsivePopoverId, children: this.hasCustomLabel
123
- ? parametersBundle_css.jsx("slot", { name: "label" })
124
- : this.text }), this.icon &&
125
- parametersBundle_css.jsx("div", { class: {
126
- "ui5-select-icon-root": true,
127
- "inputIcon": true,
128
- "inputIcon--pressed": this._iconPressed,
129
- }, children: parametersBundle_css.jsx(Icon.Icon, { name: this.icon, class: {
130
- "ui5-select-icon": true,
131
- } }) }), !this.icon && !this.readonly &&
132
- parametersBundle_css.jsx("div", { part: "icon-wrapper", class: {
133
- "ui5-select-icon-root": true,
134
- "inputIcon": true,
135
- "inputIcon--pressed": this._iconPressed,
136
- }, children: parametersBundle_css.jsx(Icon.Icon, { part: "icon", name: slimArrowDown.slimArrowDown, class: {
137
- "ui5-select-icon": true,
138
- } }) }), this.hasValueState &&
139
- parametersBundle_css.jsx("span", { id: `${this._id}-valueStateDesc`, class: "ui5-hidden-text", children: this.valueStateText }), this.ariaDescriptionText &&
140
- parametersBundle_css.jsx("span", { id: "accessibleDescription", class: "ui5-hidden-text", children: this.ariaDescriptionText })] }), SelectPopoverTemplate.call(this)] }));
141
- }
142
-
143
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/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 selectCss = `:host{vertical-align:middle}.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}.inputIcon{color:var(--_ui5-v2-15-0_input_icon_color);cursor:pointer;outline:none;padding:var(--_ui5-v2-15-0_input_icon_padding);border-inline-start:var(--_ui5-v2-15-0_input_icon_border);min-width:1rem;min-height:1rem;border-radius:var(--_ui5-v2-15-0_input_icon_border_radius)}.inputIcon.inputIcon--pressed{background:var(--_ui5-v2-15-0_input_icon_pressed_bg);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow);border-inline-start:var(--_ui5-v2-15-0_select_hover_icon_left_border);color:var(--_ui5-v2-15-0_input_icon_pressed_color)}.inputIcon:active{background-color:var(--sapButton_Active_Background);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow);border-inline-start:var(--_ui5-v2-15-0_select_hover_icon_left_border);color:var(--_ui5-v2-15-0_input_icon_pressed_color)}.inputIcon:not(.inputIcon--pressed):not(:active):hover{background:var(--_ui5-v2-15-0_input_icon_hover_bg);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow)}.inputIcon:hover{border-inline-start:var(--_ui5-v2-15-0_select_hover_icon_left_border);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow)}:host(:not([hidden])){display:inline-block}:host{width:var(--_ui5-v2-15-0_input_width);min-width:calc(var(--_ui5-v2-15-0_input_min_width) + (var(--_ui5-v2-15-0-input-icons-count)*var(--_ui5-v2-15-0_input_icon_width)));margin:var(--_ui5-v2-15-0_input_margin_top_bottom) 0;height:var(--_ui5-v2-15-0_input_height);color:var(--sapField_TextColor);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);font-style:normal;border:var(--_ui5-v2-15-0-input-border);border-radius:var(--_ui5-v2-15-0_input_border_radius);box-sizing:border-box;text-align:start;transition:var(--_ui5-v2-15-0_input_transition);background:var(--sapField_BackgroundStyle);background-color:var(--_ui5-v2-15-0_input_background_color)}:host(:not([readonly])),:host([readonly][disabled]){box-shadow:var(--sapField_Shadow)}:host([focused]:not([opened])){border-color:var(--_ui5-v2-15-0_input_focused_border_color);background-color:var(--sapField_Focus_Background)}.ui5-input-focusable-element{position:relative}:host([focused]:not([opened])) .ui5-input-focusable-element:after{content:var(--ui5-v2-15-0_input_focus_pseudo_element_content);position:absolute;pointer-events:none;z-index:2;border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--_ui5-v2-15-0_input_focus_outline_color);border-radius:var(--_ui5-v2-15-0_input_focus_border_radius);top:var(--_ui5-v2-15-0_input_focus_offset);bottom:var(--_ui5-v2-15-0_input_focus_offset);left:var(--_ui5-v2-15-0_input_focus_offset);right:var(--_ui5-v2-15-0_input_focus_offset)}:host([focused][readonly]:not([opened])) .ui5-input-focusable-element:after{top:var(--_ui5-v2-15-0_input_readonly_focus_offset);bottom:var(--_ui5-v2-15-0_input_readonly_focus_offset);left:var(--_ui5-v2-15-0_input_readonly_focus_offset);right:var(--_ui5-v2-15-0_input_readonly_focus_offset);border-radius:var(--_ui5-v2-15-0_input_readonly_focus_border_radius)}.ui5-input-root:before{content:"";position:absolute;width:calc(100% - 2px);left:1px;bottom:-2px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;height:var(--_ui5-v2-15-0_input_bottom_border_height);transition:var(--_ui5-v2-15-0_input_transition);background-color:var(--_ui5-v2-15-0_input_bottom_border_color)}.ui5-input-root{width:100%;height:100%;position:relative;background:transparent;display:inline-block;outline:none;box-sizing:border-box;color:inherit;transition:border-color .2s ease-in-out;border-radius:var(--_ui5-v2-15-0_input_border_radius);overflow:hidden}:host([disabled]){opacity:var(--_ui5-v2-15-0_input_disabled_opacity);cursor:default;pointer-events:none;background-color:var(--_ui5-v2-15-0-input_disabled_background);border-color:var(--_ui5-v2-15-0_input_disabled_border_color)}:host([disabled]) .ui5-input-root:before,:host([readonly]) .ui5-input-root:before{content:none}[inner-input]{background:transparent;color:inherit;border:none;font-style:inherit;-webkit-appearance:none;-moz-appearance:textfield;padding:var(--_ui5-v2-15-0_input_inner_padding);box-sizing:border-box;width:100%;text-overflow:ellipsis;flex:1;outline:none;font-size:inherit;font-family:inherit;line-height:inherit;letter-spacing:inherit;word-spacing:inherit;text-align:inherit}[inner-input][inner-input-with-icon]{padding:var(--_ui5-v2-15-0_input_inner_padding_with_icon)}[inner-input][type=search]::-webkit-search-decoration,[inner-input][type=search]::-webkit-search-cancel-button,[inner-input][type=search]::-webkit-search-results-button,[inner-input][type=search]::-webkit-search-results-decoration{display:none}[inner-input]::-ms-reveal,[inner-input]::-ms-clear{display:none}.ui5-input-value-state-icon{height:100%;display:var(--_ui5-v2-15-0-input-value-state-icon-display);align-items:center}.ui5-input-value-state-icon>svg{margin-right:8px}[inner-input]::selection{background:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}:host([disabled]) [inner-input]::-webkit-input-placeholder{visibility:hidden}:host([readonly]) [inner-input]::-webkit-input-placeholder{visibility:hidden}:host([disabled]) [inner-input]::-moz-placeholder{visibility:hidden}:host([readonly]) [inner-input]::-moz-placeholder{visibility:hidden}[inner-input]::-webkit-input-placeholder{font-weight:400;font-style:var(--_ui5-v2-15-0_input_placeholder_style);color:var(--_ui5-v2-15-0_input_placeholder_color);padding-right:.125rem}[inner-input]::-moz-placeholder{font-weight:400;font-style:var(--_ui5-v2-15-0_input_placeholder_style);color:var(--_ui5-v2-15-0_input_placeholder_color);padding-right:.125rem}:host([value-state="Negative"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-v2-15-0-input_error_placeholder_color);font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Negative"]) [inner-input]::-moz-placeholder{color:var(--_ui5-v2-15-0-input_error_placeholder_color);font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-webkit-input-placeholder{font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-moz-placeholder{font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Positive"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}:host([value-state="Positive"]) [inner-input]::-moz-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-moz-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}.ui5-input-content{height:100%;box-sizing:border-box;display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;outline:none;background:transparent;color:inherit;border-radius:var(--_ui5-v2-15-0_input_border_radius)}:host([readonly]:not([disabled])){border:var(--_ui5-v2-15-0_input_readonly_border);background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--_ui5-v2-15-0_input_readonly_background)}:host([value-state="None"]:not([readonly]):hover),:host(:not([value-state]):not([readonly]):hover){border:var(--_ui5-v2-15-0_input_hover_border);border-color:var(--_ui5-v2-15-0_input_focused_border_color);box-shadow:var(--sapField_Hover_Shadow);background:var(--sapField_Hover_BackgroundStyle);background-color:var(--sapField_Hover_Background)}:host(:not([value-state]):not([readonly])[focused]:not([opened]):hover),:host([value-state="None"]:not([readonly])[focused]:not([opened]):hover){box-shadow:none}:host([focused]):not([opened]) .ui5-input-root:before{content:none}:host(:not([readonly]):not([disabled])[value-state]:not([value-state="None"])){border-width:var(--_ui5-v2-15-0_input_state_border_width)}:host([value-state="Negative"]) [inner-input],:host([value-state="Critical"]) [inner-input]{font-style:var(--_ui5-v2-15-0_input_error_warning_font_style);text-indent:var(--_ui5-v2-15-0_input_error_warning_text_indent)}:host([value-state="Negative"]) [inner-input]{font-weight:var(--_ui5-v2-15-0_input_error_font_weight)}:host([value-state="Critical"]) [inner-input]{font-weight:var(--_ui5-v2-15-0_input_warning_font_weight)}:host([value-state="Negative"]:not([readonly]):not([disabled])){background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border-color:var(--_ui5-v2-15-0_input_value_state_error_border_color);box-shadow:var(--sapField_InvalidShadow)}:host([value-state="Negative"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_error_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_error_border_color)}:host([value-state="Negative"][focused]:not([opened]):not([readonly])) .ui5-input-focusable-element:after{border-color:var(--_ui5-v2-15-0_input_focused_value_state_error_focus_outline_color)}:host([value-state="Negative"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0-input-value-state-error-border-botom-color)}:host([value-state="Negative"]:not([readonly]):not([focused]):hover),:host([value-state="Negative"]:not([readonly])[focused][opened]:hover){background-color:var(--_ui5-v2-15-0_input_value_state_error_hover_background);box-shadow:var(--sapField_Hover_InvalidShadow)}:host([value-state="Negative"]:not([readonly]):not([disabled])),:host([value-state="Critical"]:not([readonly]):not([disabled])),:host([value-state="Information"]:not([readonly]):not([disabled])){border-style:var(--_ui5-v2-15-0_input_error_warning_border_style)}:host([value-state="Critical"]:not([readonly]):not([disabled])){background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border-color:var(--_ui5-v2-15-0_input_value_state_warning_border_color);box-shadow:var(--sapField_WarningShadow)}:host([value-state="Critical"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_border_color)}:host([value-state="Critical"][focused]:not([opened]):not([readonly])) .ui5-input-focusable-element:after{border-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_focus_outline_color)}:host([value-state="Critical"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0_input_value_state_warning_border_botom_color)}:host([value-state="Critical"]:not([readonly]):not([focused]):hover),:host([value-state="Critical"]:not([readonly])[focused][opened]:hover){background-color:var(--sapField_Hover_Background);box-shadow:var(--sapField_Hover_WarningShadow)}:host([value-state="Positive"]:not([readonly]):not([disabled])){background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border-color:var(--_ui5-v2-15-0_input_value_state_success_border_color);border-width:var(--_ui5-v2-15-0_input_value_state_success_border_width);box-shadow:var(--sapField_SuccessShadow)}:host([value-state="Positive"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_success_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_success_border_color)}:host([value-state="Positive"][focused]:not([opened]):not([readonly])) .ui5-input-focusable-element:after{border-color:var(--_ui5-v2-15-0_input_focused_value_state_success_focus_outline_color)}:host([value-state="Positive"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0_input_value_state_success_border_botom_color)}:host([value-state="Positive"]:not([readonly]):not([focused]):hover),:host([value-state="Positive"]:not([readonly])[focused][opened]:hover){background-color:var(--sapField_Hover_Background);box-shadow:var(--sapField_Hover_SuccessShadow)}:host([value-state="Information"]:not([readonly]):not([disabled])){background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border-color:var(--_ui5-v2-15-0_input_value_state_information_border_color);border-width:var(--_ui5-v2-15-0_input_information_border_width);box-shadow:var(--sapField_InformationShadow)}:host([value-state="Information"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_information_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_information_border_color)}:host([value-state="Information"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0_input_value_success_information_border_botom_color)}:host([value-state="Information"]:not([readonly]):not([focused]):hover),:host([value-state="Information"]:not([readonly])[focused][opened]:hover){background-color:var(--sapField_Hover_Background);box-shadow:var(--sapField_Hover_InformationShadow)}.ui5-input-icon-root{min-width:var(--_ui5-v2-15-0_input_icon_min_width);height:100%;display:flex;justify-content:center;align-items:center}::slotted([ui5-icon][slot="icon"]){align-self:start;padding:var(--_ui5-v2-15-0_input_custom_icon_padding);box-sizing:content-box!important}:host([value-state="Negative"]) .inputIcon,:host([value-state="Critical"]) .inputIcon{padding:var(--_ui5-v2-15-0_input_error_warning_icon_padding)}:host([value-state="Negative"][focused]) .inputIcon,:host([value-state="Critical"][focused]) .inputIcon{padding:var(--_ui5-v2-15-0_input_error_warning_focused_icon_padding)}:host([value-state="Information"]) .inputIcon{padding:var(--_ui5-v2-15-0_input_information_icon_padding)}:host([value-state="Information"][focused]) .inputIcon{padding:var(--_ui5-v2-15-0_input_information_focused_icon_padding)}:host([value-state="Negative"]) ::slotted(.inputIcon[ui5-icon]),:host([value-state="Negative"]) ::slotted([ui5-icon][slot="icon"]),:host([value-state="Critical"]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_error_warning_custom_icon_padding)}:host([value-state="Negative"][focused]) ::slotted(.inputIcon[ui5-icon]),:host([value-state="Negative"][focused]) ::slotted([ui5-icon][slot="icon"]),:host([value-state="Critical"][focused]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_error_warning_custom_focused_icon_padding)}:host([value-state="Information"]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_information_custom_icon_padding)}:host([value-state="Information"][focused]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_information_custom_focused_icon_padding)}:host([value-state="Negative"]) .inputIcon:active,:host([value-state="Negative"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_error_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_error_pressed_color)}:host([value-state="Negative"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_error_icon_box_shadow)}:host([value-state="Critical"]) .inputIcon:active,:host([value-state="Critical"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_warning_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_warning_pressed_color)}:host([value-state="Critical"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_warning_icon_box_shadow)}:host([value-state="Information"]) .inputIcon:active,:host([value-state="Information"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_information_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_information_pressed_color)}:host([value-state="Information"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_information_icon_box_shadow)}:host([value-state="Positive"]) .inputIcon:active,:host([value-state="Positive"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_success_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_success_pressed_color)}:host([value-state="Positive"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_success_icon_box_shadow)}.ui5-input-clear-icon-wrapper{height:var(--_ui5-v2-15-0_input_icon_wrapper_height);padding:0;width:var(--_ui5-v2-15-0_input_icon_width);min-width:var(--_ui5-v2-15-0_input_icon_width);display:flex;justify-content:center;align-items:center;box-sizing:border-box}:host([value-state]:not([value-state="None"]):not([value-state="Positive"])) .ui5-input-clear-icon-wrapper{height:var(--_ui5-v2-15-0_input_icon_wrapper_state_height);vertical-align:top}:host([value-state="Positive"]) .ui5-input-clear-icon-wrapper{height:var(--_ui5-v2-15-0_input_icon_wrapper_success_state_height)}[ui5-icon].ui5-input-clear-icon{padding:0;color:inherit}[inner-input]::-webkit-outer-spin-button,[inner-input]::-webkit-inner-spin-button{-webkit-appearance:inherit;margin:inherit}:host([icon]){min-width:var(--_ui5-v2-15-0_button_base_min_width);width:var(--_ui5-v2-15-0_button_base_min_width)}:host([icon]) .ui5-select-root{min-width:var(--_ui5-v2-15-0_button_base_min_width)}:host([icon]) .ui5-select-label-root{min-width:0;padding-inline-start:0}.ui5-select-root{min-width:calc(var(--_ui5-v2-15-0_input_min_width) + (var(--_ui5-v2-15-0-input-icons-count)*var(--_ui5-v2-15-0_input_icon_width)));width:100%;height:100%;display:flex;outline:none;cursor:pointer;overflow:hidden;border-radius:var(--_ui5-v2-15-0_input_border_radius)}.ui5-select-label-root{flex-shrink:1;flex-grow:1;align-self:center;min-width:1rem;padding-inline-start:.5rem;cursor:pointer;outline:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--_ui5-v2-15-0_select_label_color);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400}.ui5-select-option-icon{padding-inline-start:.5rem;color:var(--sapField_TextColor);align-self:center}:host(:not([disabled])){cursor:pointer}.ui5-select-icon-root{display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:var(--_ui5-v2-15-0_select_icon_width);min-width:var(--_ui5-v2-15-0_select_icon_width);height:var(--_ui5-v2-15-0_select_icon_wrapper_height);padding:0}.ui5-select-icon{color:inherit}:host([value-state]:not([value-state="None"],[value-state="Positive"])) .ui5-select-icon-root{height:var(--_ui5-v2-15-0_select_icon_wrapper_state_height)}
146
- `;
147
-
148
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
149
- 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);
150
- var ResponsivePopoverCommonCss = `.input-root-phone{flex:1;position:relative;height:var(--_ui5-v2-15-0_input_height);color:var(--sapField_TextColor);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);background:var(--sapField_BackgroundStyle);background-color:var(--_ui5-v2-15-0_input_background_color);border:var(--_ui5-v2-15-0-input-border);border-radius:var(--_ui5-v2-15-0_input_border_radius);box-sizing:border-box}.input-root-phone [inner-input]{padding:0 .5rem;width:100%;height:100%}.input-root-phone [inner-input]:focus{background-color:var(--sapField_Focus_Background)}.input-root-phone:focus-within:before{content:"";position:absolute;pointer-events:none;z-index:2;border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);border-radius:var(--_ui5-v2-15-0_input_focus_border_radius);top:var(--_ui5-v2-15-0_input_focus_offset);bottom:var(--_ui5-v2-15-0_input_focus_offset);left:var(--_ui5-v2-15-0_input_focus_offset);right:var(--_ui5-v2-15-0_input_focus_offset)}.input-root-phone [value-state=Negative] .inputIcon[data-ui5-compact-size],.input-root-phone [value-state=Positive] .inputIcon[data-ui5-compact-size],.input-root-phone [value-state=Critical] .inputIcon[data-ui5-compact-size]{padding:.1875rem .5rem}[inner-input]{background:transparent;color:inherit;border:none;font-style:normal;-webkit-appearance:none;-moz-appearance:textfield;line-height:normal;padding:var(--_ui5-v2-15-0_input_inner_padding);box-sizing:border-box;min-width:3rem;text-overflow:ellipsis;flex:1;outline:none;font-size:inherit;font-family:inherit;border-radius:var(--_ui5-v2-15-0_input_border_radius)}[inner-input]::selection,[inner-input]::-moz-selection{background:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}[inner-input]::-webkit-input-placeholder{font-style:var(--_ui5-v2-15-0_input_placeholder_style);color:var(--sapField_PlaceholderTextColor)}[inner-input]::-moz-placeholder{font-style:var(--_ui5-v2-15-0_input_placeholder_style);color:var(--sapField_PlaceholderTextColor)}.input-root-phone[value-state]:not([value-state=None]){border-width:var(--_ui5-v2-15-0_input_state_border_width)}.input-root-phone[value-state=Negative] [inner-input],.input-root-phone[value-state=Critical] [inner-input]{font-style:var(--_ui5-v2-15-0_input_error_warning_font_style)}.input-root-phone[value-state=Negative] [inner-input]{font-weight:var(--_ui5-v2-15-0_input_error_font_weight)}.input-root-phone[value-state=Negative]:not([readonly]){background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border-color:var(--_ui5-v2-15-0_input_value_state_error_border_color)}.input-root-phone[value-state=Negative]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5-v2-15-0_input_focused_value_state_error_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_error_border_color)}.input-root-phone[value-state=Negative]:not([readonly]):focus-within:before{border-color:var(--_ui5-v2-15-0_input_focused_value_state_error_focus_outline_color)}.input-root-phone[value-state=Negative]:not([readonly]):not([disabled]),.input-root-phone[value-state=Critical]:not([readonly]):not([disabled]),.input-root-phone[value-state=Information]:not([readonly]):not([disabled]){border-style:var(--_ui5-v2-15-0_input_error_warning_border_style)}.input-root-phone[value-state=Critical]:not([readonly]){background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border-color:var(--_ui5-v2-15-0_input_value_state_warning_border_color)}.input-root-phone[value-state=Critical]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_border_color)}.input-root-phone[value-state=Critical]:not([readonly]):focus-within:before{border-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_focus_outline_color)}.input-root-phone[value-state=Positive]:not([readonly]){background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border-color:var(--_ui5-v2-15-0_input_value_state_success_border_color);border-width:var(--_ui5-v2-15-0_input_value_state_success_border_width)}.input-root-phone[value-state=Positive]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5-v2-15-0_input_focused_value_state_success_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_success_border_color)}.input-root-phone[value-state=Positive]:not([readonly]):focus-within:before{border-color:var(--_ui5-v2-15-0_input_focused_value_state_success_focus_outline_color)}.input-root-phone[value-state=Information]:not([readonly]){background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border-color:var(--_ui5-v2-15-0_input_value_state_information_border_color);border-width:var(--_ui5-v2-15-0_input_information_border_width)}.input-root-phone[value-state=Information]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5-v2-15-0_input_focused_value_state_information_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_information_border_color)}.ui5-multi-combobox-toggle-button{margin-left:.5rem}.ui5-responsive-popover-header{width:100%;min-height:2.5rem;display:flex;flex-direction:column}.ui5-responsive-popover-header-text{width:calc(100% - var(--_ui5-v2-15-0_button_base_min_width))}.ui5-responsive-popover-header .row{box-sizing:border-box;padding:.25rem 1rem;min-height:2.5rem;display:flex;justify-content:center;align-items:center;font-size:var(--sapFontHeader5Size)}.ui5-responsive-popover-footer{display:flex;justify-content:flex-end;padding:.25rem 0;width:100%}.ui5-responsive-popover-footer .ui5-responsive-popover-close-btn{margin-left:.5rem}.ui5-responsive-popover-header .ui5-responsive-popover-close-btn{position:absolute;right:1rem}
151
- `;
152
-
153
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
154
- 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);
155
- var ValueStateMessageCss = `.ui5-valuestatemessage-popover{border-radius:var(--_ui5-v2-15-0_value_state_message_popover_border_radius);box-shadow:var(--_ui5-v2-15-0_value_state_message_popover_box_shadow)}.ui5-input-value-state-message-icon{width:var(--_ui5-v2-15-0_value_state_message_icon_width);height:var(--_ui5-v2-15-0_value_state_message_icon_height);display:var(--_ui5-v2-15-0_input_value_state_icon_display);position:absolute;padding-right:.375rem}.ui5-valuestatemessage-root .ui5-input-value-state-message-icon{left:var(--_ui5-v2-15-0_input_value_state_icon_offset)}.ui5-input-value-state-message-icon[name=error]{color:var(--sapNegativeElementColor)}.ui5-input-value-state-message-icon[name=alert]{color:var(--sapCriticalElementColor)}.ui5-input-value-state-message-icon[name=success]{color:var(--sapPositiveElementColor)}.ui5-input-value-state-message-icon[name=information]{color:var(--sapInformativeElementColor)}.ui5-valuestatemessage-root{box-sizing:border-box;display:inline-block;color:var(--sapTextColor);font-size:var(--sapFontSmallSize);font-family:var(--sapFontFamily);height:auto;padding:var(--_ui5-v2-15-0_value_state_message_padding);overflow:hidden;text-overflow:ellipsis;min-width:6.25rem;border:var(--_ui5-v2-15-0_value_state_message_border);line-height:var(--_ui5-v2-15-0_value_state_message_line_height)}[ui5-responsive-popover] .ui5-valuestatemessage-header,[ui5-popover] .ui5-valuestatemessage-header{min-height:var(--_ui5-v2-15-0_value_state_message_popover_header_min_height);min-width:var(--_ui5-v2-15-0_value_state_message_popover_header_min_width);max-width:var(--_ui5-v2-15-0_value_state_message_popover_header_max_width);width:var(--_ui5-v2-15-0_value_state_message_popover_header_width)}[ui5-responsive-popover] .ui5-valuestatemessage-header{padding:var(--_ui5-v2-15-0_value_state_header_padding);border:var(--_ui5-v2-15-0_value_state_header_border);border-bottom:var(--_ui5-v2-15-0_value_state_header_border_bottom);flex-grow:1;position:relative}.ui5-valuestatemessage--success{background:var(--sapSuccessBackground)}.ui5-valuestatemessage--warning{background:var(--sapWarningBackground)}.ui5-valuestatemessage--error{background:var(--sapErrorBackground)}.ui5-valuestatemessage--information{background:var(--sapInformationBackground)}.ui5-responsive-popover-header:focus{outline-offset:var(--_ui5-v2-15-0_value_state_header_offset);outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor)}.ui5-valuestatemessage-popover::part(header),.ui5-valuestatemessage-popover::part(content){padding:0}.ui5-valuestatemessage-popover::part(header),.ui5-valuestatemessage-popover::part(footer){min-height:0}.ui5-valuestatemessage-popover::part(header),.ui5-popover-with-value-state-header::part(header),.ui5-popover-with-value-state-header-phone::part(header){margin-bottom:0}.ui5-popover-with-value-state-header-phone .ui5-valuestatemessage-root{padding:var(--_ui5-v2-15-0_value_state_message_padding_phone);width:100%}.ui5-popover-with-value-state-header-phone .ui5-input-value-state-message-icon{left:var(--_ui5-v2-15-0_value_state_message_icon_offset_phone)}.ui5-popover-with-value-state-header-phone .ui5-valuestatemessage-header{position:relative;flex:none;top:0;left:0;max-width:100%}.ui5-popover-with-value-state-header-phone::part(content){padding:0;overflow:hidden;display:flex;flex-direction:column}.ui5-popover-with-value-state-header-phone [ui5-list]{overflow:auto}[ui5-responsive-popover] .ui5-valuestatemessage--error{box-shadow:var(--_ui5-v2-15-0_value_state_header_box_shadow_error)}[ui5-responsive-popover] .ui5-valuestatemessage--information{box-shadow:var(--_ui5-v2-15-0_value_state_header_box_shadow_information)}[ui5-responsive-popover] .ui5-valuestatemessage--success{box-shadow:var(--_ui5-v2-15-0_value_state_header_box_shadow_success)}[ui5-responsive-popover] .ui5-valuestatemessage--warning{box-shadow:var(--_ui5-v2-15-0_value_state_header_box_shadow_warning)}[ui5-responsive-popover].ui5-popover-with-value-state-header .ui5-valuestatemessage-root:has(+[ui5-list]:empty){box-shadow:none}
156
- `;
157
-
158
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
159
- 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);
160
- var SelectPopoverCss = `.ui5-select-popover::part(content),.ui5-select-popover::part(header){padding:0}.ui5-select-popover .ui5-responsive-popover-header .row{justify-content:flex-start}
161
- `;
162
-
163
- var __decorate$5 = (this && this.__decorate) || function (decorators, target, key, desc) {
164
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
165
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
166
- 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;
167
- return c > 3 && r && Object.defineProperty(target, key, r), r;
168
- };
169
- var Select_1;
170
- /**
171
- * @class
172
- *
173
- * ### Overview
174
- *
175
- * The `ui5-select` component is used to create a drop-down list.
176
- *
177
- * ### Usage
178
- *
179
- * There are two main usages of the `ui5-select>`.
180
- *
181
- * - With Option (`ui5-option`) web component:
182
- *
183
- * The available options of the Select are defined by using the Option component.
184
- * The Option comes with predefined design and layout, including `icon`, `text` and `additional-text`.
185
- *
186
- * - With OptionCustom (`ui5-option-custom`) web component.
187
- *
188
- * Options with custom content are defined by using the OptionCustom component.
189
- * The OptionCustom component comes with no predefined layout and it expects consumers to define it.
190
- *
191
- * ### Selection
192
- *
193
- * The options can be selected via user interaction (click or with the use of the Space and Enter keys)
194
- * and programmatically - the Select component supports two distinct selection APIs, though mixing them is not supported:
195
- * - The "value" property of the Select component
196
- * - The "selected" property on individual options
197
- *
198
- * **Note:** If the "value" property is set but does not match any option,
199
- * no option will be selected and the Select component will be displayed as empty.
200
- *
201
- * **Note:** when both "value" and "selected" are both used (although discouraged),
202
- * the "value" property will take precedence.
203
- *
204
- * ### Keyboard Handling
205
- *
206
- * The `ui5-select` provides advanced keyboard handling.
207
- *
208
- * - [F4] / [Alt] + [Up] / [Alt] + [Down] / [Space] or [Enter] - Opens/closes the drop-down.
209
- * - [Up] or [Down] - If the drop-down is closed - changes selection to the next or the previous option. If the drop-down is opened - moves focus to the next or the previous option.
210
- * - [Space], [Enter] - If the drop-down is opened - selects the focused option.
211
- * - [Escape] - Closes the drop-down without changing the selection.
212
- * - [Home] - Navigates to first option
213
- * - [End] - Navigates to the last option
214
- *
215
- * ### ES6 Module Import
216
- *
217
- * `import "sap/ushell/gen/ui5/webcomponents/dist/Select";`
218
- *
219
- * `import "sap/ushell/gen/ui5/webcomponents/dist/Option";`
220
- * `import "sap/ushell/gen/ui5/webcomponents/dist/OptionCustom";`
221
- * @constructor
222
- * @extends UI5Element
223
- * @public
224
- * @csspart popover - Used to style the popover element
225
- * @since 0.8.0
226
- */
227
- let Select = Select_1 = class Select extends webcomponentsBase.b {
228
- constructor() {
229
- super(...arguments);
230
- /**
231
- * Defines whether the component is in disabled state.
232
- *
233
- * **Note:** A disabled component is noninteractive.
234
- * @default false
235
- * @public
236
- */
237
- this.disabled = false;
238
- /**
239
- * Defines the value state of the component.
240
- * @default "None"
241
- * @public
242
- */
243
- this.valueState = "None";
244
- /**
245
- * Defines whether the component is required.
246
- * @since 1.0.0-rc.9
247
- * @default false
248
- * @public
249
- */
250
- this.required = false;
251
- /**
252
- * Defines whether the component is read-only.
253
- *
254
- * **Note:** A read-only component is not editable,
255
- * but still provides visual feedback upon user interaction.
256
- * @default false
257
- * @since 1.21.0
258
- * @public
259
- */
260
- this.readonly = false;
261
- /**
262
- * @private
263
- */
264
- this._iconPressed = false;
265
- /**
266
- * @private
267
- */
268
- this.opened = false;
269
- /**
270
- * @private
271
- */
272
- this._listWidth = 0;
273
- /**
274
- * @private
275
- */
276
- this.focused = false;
277
- this._selectedIndexBeforeOpen = -1;
278
- this._escapePressed = false;
279
- this._lastSelectedOption = null;
280
- this._typedChars = "";
281
- }
282
- ;
283
- get formValidityMessage() {
284
- return Select_1.i18nBundle.getText(i18nDefaults.FORM_SELECTABLE_REQUIRED);
285
- }
286
- get formValidity() {
287
- return { valueMissing: this.required && (this.selectedOption?.getAttribute("value") === "") };
288
- }
289
- async formElementAnchor() {
290
- return this.getFocusDomRefAsync();
291
- }
292
- get formFormattedValue() {
293
- if (this._valueStorage !== undefined) {
294
- return this._valueStorage;
295
- }
296
- const selectedOption = this.selectedOption;
297
- if (selectedOption) {
298
- if ("value" in selectedOption && selectedOption.value !== undefined) {
299
- return selectedOption.value;
300
- }
301
- return selectedOption.hasAttribute("value") ? selectedOption.getAttribute("value") : selectedOption.textContent;
302
- }
303
- return "";
304
- }
305
- onEnterDOM() {
306
- AccessibilityTextsHelper.y(this, this._updateAssociatedLabelsTexts.bind(this));
307
- }
308
- onExitDOM() {
309
- AccessibilityTextsHelper.T(this);
310
- }
311
- onBeforeRendering() {
312
- this._applySelection();
313
- this.style.setProperty(Icons.d$1("--_ui5-input-icons-count"), `${this.iconsCount}`);
314
- }
315
- onAfterRendering() {
316
- this.toggleValueStatePopover(this.shouldOpenValueStateMessagePopover);
317
- if (this._isPickerOpen) {
318
- if (!this._listWidth) {
319
- this._listWidth = this.responsivePopover.offsetWidth;
320
- }
321
- }
322
- }
323
- /**
324
- * Selects an option, based on the Select's "value" property,
325
- * or the options' "selected" property.
326
- */
327
- _applySelection() {
328
- // Flow 1: "value" has not been used
329
- if (this._valueStorage === undefined) {
330
- this._applyAutoSelection();
331
- return;
332
- }
333
- // Flow 2: "value" has been used - select the option by value or apply auto selection
334
- this._applySelectionByValue(this._valueStorage);
335
- }
336
- /**
337
- * Selects an option by given value.
338
- */
339
- _applySelectionByValue(value) {
340
- if (value !== (this.selectedOption?.value || this.selectedOption?.textContent)) {
341
- const options = Array.from(this.children);
342
- options.forEach(option => {
343
- option.selected = !!((option.getAttribute("value") || option.textContent) === value);
344
- });
345
- }
346
- }
347
- /**
348
- * Selects the first option if no option is selected,
349
- * or selects the last option if multiple options are selected.
350
- */
351
- _applyAutoSelection() {
352
- let selectedIndex = this.options.findLastIndex(option => option.selected);
353
- selectedIndex = selectedIndex === -1 ? 0 : selectedIndex;
354
- for (let i = 0; i < this.options.length; i++) {
355
- this.options[i].selected = selectedIndex === i;
356
- if (selectedIndex === i) {
357
- break;
358
- }
359
- }
360
- }
361
- /**
362
- * Sets value by given option.
363
- */
364
- _setValueByOption(option) {
365
- this.value = option.value || option.textContent || "";
366
- }
367
- _applyFocus() {
368
- this.focus();
369
- }
370
- _onfocusin() {
371
- this.focused = true;
372
- }
373
- _onfocusout() {
374
- this.focused = false;
375
- }
376
- get _isPickerOpen() {
377
- return !!this.responsivePopover && this.responsivePopover.open;
378
- }
379
- _respPopover() {
380
- return this.shadowRoot.querySelector("[ui5-responsive-popover]");
381
- }
382
- /**
383
- * Defines the value of the component:
384
- *
385
- * - when get - returns the value of the component or the value/text content of the selected option.
386
- * - when set - selects the option with matching `value` property or text content.
387
- *
388
- * **Note:** Use either the Select's value or the Options' selected property.
389
- * Mixed usage could result in unexpected behavior.
390
- *
391
- * **Note:** If the given value does not match any existing option,
392
- * no option will be selected and the Select component will be displayed as empty.
393
- * @public
394
- * @default ""
395
- * @since 1.20.0
396
- * @formProperty
397
- * @formEvents change liveChange
398
- */
399
- set value(newValue) {
400
- this._valueStorage = newValue;
401
- }
402
- get value() {
403
- if (this._valueStorage !== undefined) {
404
- return this._valueStorage;
405
- }
406
- return this.selectedOption?.value === undefined ? (this.selectedOption?.textContent || "") : this.selectedOption?.value;
407
- }
408
- get _selectedIndex() {
409
- return this.options.findIndex(option => option.selected);
410
- }
411
- /**
412
- * Currently selected `ui5-option` element.
413
- * @public
414
- * @default undefined
415
- */
416
- get selectedOption() {
417
- return this.options.find(option => option.selected);
418
- }
419
- get text() {
420
- return this.selectedOption?.effectiveDisplayText;
421
- }
422
- _toggleRespPopover() {
423
- if (this.disabled || this.readonly) {
424
- return;
425
- }
426
- this._iconPressed = true;
427
- this.responsivePopover = this._respPopover();
428
- if (this._isPickerOpen) {
429
- this.responsivePopover.open = false;
430
- }
431
- else {
432
- this.responsivePopover.opener = this;
433
- this.responsivePopover.open = true;
434
- }
435
- }
436
- _onkeydown(e) {
437
- const isTab = (webcomponentsBase.x(e) || webcomponentsBase.V(e));
438
- if (isTab && this._isPickerOpen) {
439
- this.responsivePopover.open = false;
440
- }
441
- else if (webcomponentsBase.ko(e)) {
442
- e.preventDefault();
443
- this._toggleRespPopover();
444
- }
445
- else if (webcomponentsBase.A(e)) {
446
- e.preventDefault();
447
- }
448
- else if (webcomponentsBase.m$2(e) && this._isPickerOpen) {
449
- this._escapePressed = true;
450
- }
451
- else if (webcomponentsBase.M(e)) {
452
- this._handleHomeKey(e);
453
- }
454
- else if (webcomponentsBase.n(e)) {
455
- this._handleEndKey(e);
456
- }
457
- else if (webcomponentsBase.b$1(e)) {
458
- this._handleSelectionChange();
459
- }
460
- else if (webcomponentsBase.P(e) || webcomponentsBase._(e)) {
461
- this._handleArrowNavigation(e);
462
- }
463
- }
464
- _handleKeyboardNavigation(e) {
465
- if (webcomponentsBase.b$1(e) || this.readonly) {
466
- return;
467
- }
468
- const typedCharacter = e.key.toLowerCase();
469
- this._typedChars += typedCharacter;
470
- // We check if we have more than one characters and they are all duplicate, we set the
471
- // text to be the last input character (typedCharacter). If not, we set the text to be
472
- // the whole input string.
473
- const text = (/^(.)\1+$/i).test(this._typedChars) ? typedCharacter : this._typedChars;
474
- clearTimeout(this._typingTimeoutID);
475
- this._typingTimeoutID = setTimeout(() => {
476
- this._typedChars = "";
477
- this._typingTimeoutID = -1;
478
- }, 1000);
479
- this._selectTypedItem(text);
480
- }
481
- _selectTypedItem(text) {
482
- const currentIndex = this._selectedIndex;
483
- const itemToSelect = this._searchNextItemByText(text);
484
- if (itemToSelect) {
485
- const nextIndex = this.options.indexOf(itemToSelect);
486
- this._changeSelectedItem(this._selectedIndex, nextIndex);
487
- if (currentIndex !== this._selectedIndex) {
488
- this.itemSelectionAnnounce();
489
- this._scrollSelectedItem();
490
- }
491
- }
492
- }
493
- _searchNextItemByText(text) {
494
- let orderedOptions = this.options.slice(0);
495
- const optionsAfterSelected = orderedOptions.splice(this._selectedIndex + 1, orderedOptions.length - this._selectedIndex);
496
- const optionsBeforeSelected = orderedOptions.splice(0, orderedOptions.length - 1);
497
- orderedOptions = optionsAfterSelected.concat(optionsBeforeSelected);
498
- return orderedOptions.find(option => option.effectiveDisplayText.toLowerCase().startsWith(text));
499
- }
500
- _handleHomeKey(e) {
501
- e.preventDefault();
502
- if (this.readonly) {
503
- return;
504
- }
505
- this._changeSelectedItem(this._selectedIndex, 0);
506
- }
507
- _handleEndKey(e) {
508
- e.preventDefault();
509
- if (this.readonly) {
510
- return;
511
- }
512
- const lastIndex = this.options.length - 1;
513
- this._changeSelectedItem(this._selectedIndex, lastIndex);
514
- }
515
- _onkeyup(e) {
516
- if (webcomponentsBase.A(e)) {
517
- if (this._isPickerOpen) {
518
- this._handleSelectionChange();
519
- }
520
- else {
521
- this._toggleRespPopover();
522
- }
523
- }
524
- }
525
- _getItemIndex(item) {
526
- return this.options.indexOf(item);
527
- }
528
- _select(index) {
529
- const selectedIndex = this._selectedIndex;
530
- if (index < 0 || index >= this.options.length || this.options.length === 0) {
531
- return;
532
- }
533
- if (this.options[selectedIndex]) {
534
- this.options[selectedIndex].selected = false;
535
- }
536
- const selectedOption = this.options[index];
537
- if (selectedIndex !== index) {
538
- this.fireDecoratorEvent("live-change", { selectedOption });
539
- }
540
- selectedOption.selected = true;
541
- if (this._valueStorage !== undefined) {
542
- this._setValueByOption(selectedOption);
543
- }
544
- }
545
- /**
546
- * The user clicked on an item from the list
547
- * @private
548
- */
549
- _handleItemPress(e) {
550
- const listItem = e.detail.item;
551
- const selectedItemIndex = this._getItemIndex(listItem);
552
- this._handleSelectionChange(selectedItemIndex);
553
- }
554
- _itemMousedown(e) {
555
- // prevent actual focus of items
556
- e.preventDefault();
557
- }
558
- _onclick() {
559
- this.getFocusDomRef().focus();
560
- this._toggleRespPopover();
561
- }
562
- /**
563
- * The user selected an item with Enter or Space
564
- * @private
565
- */
566
- _handleSelectionChange(index = this._selectedIndex) {
567
- this._typedChars = "";
568
- this._select(index);
569
- this._toggleRespPopover();
570
- }
571
- _scrollSelectedItem() {
572
- if (this._isPickerOpen) {
573
- const itemRef = this._currentlySelectedOption?.getDomRef();
574
- if (itemRef) {
575
- itemRef.scrollIntoView({
576
- behavior: "auto",
577
- block: "nearest",
578
- inline: "nearest",
579
- });
580
- }
581
- }
582
- }
583
- _handleArrowNavigation(e) {
584
- e.preventDefault();
585
- if (this.readonly) {
586
- return;
587
- }
588
- let nextIndex = -1;
589
- const currentIndex = this._selectedIndex;
590
- const isDownKey = webcomponentsBase._(e);
591
- if (isDownKey) {
592
- nextIndex = this._getNextOptionIndex();
593
- }
594
- else {
595
- nextIndex = this._getPreviousOptionIndex();
596
- }
597
- this._changeSelectedItem(this._selectedIndex, nextIndex);
598
- if (currentIndex !== this._selectedIndex) {
599
- // Announce new item even if picker is opened.
600
- // The aria-activedescendents attribute can't be used,
601
- // because listitem elements are in different shadow dom
602
- this.itemSelectionAnnounce();
603
- this._scrollSelectedItem();
604
- }
605
- }
606
- _changeSelectedItem(oldIndex, newIndex) {
607
- const options = this.options;
608
- // Normalize: first navigation with Up when nothing selected -> last item
609
- if (oldIndex === -1 && newIndex < 0 && options.length) {
610
- newIndex = options.length - 1;
611
- }
612
- // Abort on invalid target
613
- if (newIndex < 0 || newIndex >= options.length) {
614
- return;
615
- }
616
- const previousOption = options[oldIndex];
617
- const nextOption = options[newIndex];
618
- if (previousOption === nextOption) {
619
- return;
620
- }
621
- if (previousOption) {
622
- previousOption.selected = false;
623
- previousOption.focused = false;
624
- }
625
- nextOption.selected = true;
626
- nextOption.focused = true;
627
- if (this._valueStorage !== undefined) {
628
- this._setValueByOption(nextOption);
629
- }
630
- this.fireDecoratorEvent("live-change", { selectedOption: nextOption });
631
- if (!this._isPickerOpen) {
632
- // arrow pressed on closed picker - do selection change
633
- this._fireChangeEvent(nextOption);
634
- }
635
- }
636
- _getNextOptionIndex() {
637
- return this._selectedIndex === (this.options.length - 1) ? this._selectedIndex : (this._selectedIndex + 1);
638
- }
639
- _getPreviousOptionIndex() {
640
- return this._selectedIndex === 0 ? this._selectedIndex : (this._selectedIndex - 1);
641
- }
642
- _beforeOpen() {
643
- this._selectedIndexBeforeOpen = this._selectedIndex;
644
- this._lastSelectedOption = this.options[this._selectedIndex];
645
- }
646
- _afterOpen() {
647
- this.opened = true;
648
- this.fireDecoratorEvent("open");
649
- this.itemSelectionAnnounce();
650
- this._scrollSelectedItem();
651
- this._applyFocusToSelectedItem();
652
- }
653
- _applyFocusToSelectedItem() {
654
- this.options.forEach(option => {
655
- option.focused = option.selected;
656
- if (option.focused && Icons.d()) {
657
- // on phone, the popover opens full screen (dialog)
658
- // move focus to option to read out dialog header
659
- option.focus();
660
- }
661
- });
662
- }
663
- _afterClose() {
664
- this.opened = false;
665
- this._iconPressed = false;
666
- this._listWidth = 0;
667
- if (this._escapePressed) {
668
- this._select(this._selectedIndexBeforeOpen);
669
- this._escapePressed = false;
670
- }
671
- else if (this._lastSelectedOption !== this.options[this._selectedIndex]) {
672
- this._fireChangeEvent(this.options[this._selectedIndex]);
673
- this._lastSelectedOption = this.options[this._selectedIndex];
674
- }
675
- this.fireDecoratorEvent("close");
676
- }
677
- get hasCustomLabel() {
678
- return !!this.label.length;
679
- }
680
- _fireChangeEvent(selectedOption) {
681
- const changePrevented = !this.fireDecoratorEvent("change", { selectedOption });
682
- // Angular two way data binding
683
- this.fireDecoratorEvent("selected-item-changed");
684
- // Fire input event for Vue.js two-way binding
685
- this.fireDecoratorEvent("input");
686
- if (changePrevented) {
687
- this._select(this._selectedIndexBeforeOpen);
688
- }
689
- }
690
- get valueStateTextMappings() {
691
- return {
692
- [ValueState.o.Positive]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_SUCCESS),
693
- [ValueState.o.Information]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_INFORMATION),
694
- [ValueState.o.Negative]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_ERROR),
695
- [ValueState.o.Critical]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_WARNING),
696
- };
697
- }
698
- get valueStateTypeMappings() {
699
- return {
700
- [ValueState.o.Positive]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_SUCCESS),
701
- [ValueState.o.Information]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_INFORMATION),
702
- [ValueState.o.Negative]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_ERROR),
703
- [ValueState.o.Critical]: Select_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_WARNING),
704
- };
705
- }
706
- get valueStateText() {
707
- let valueStateText;
708
- if (this.shouldDisplayDefaultValueStateMessage) {
709
- valueStateText = this.valueStateDefaultText;
710
- }
711
- else {
712
- valueStateText = this.valueStateMessage.map(el => el.textContent).join(" ");
713
- }
714
- return `${this.valueStateTypeText} ${valueStateText}`;
715
- }
716
- get valueStateDefaultText() {
717
- return this.valueState !== ValueState.o.None ? this.valueStateTextMappings[this.valueState] : "";
718
- }
719
- get valueStateTypeText() {
720
- return this.valueState !== ValueState.o.None ? this.valueStateTypeMappings[this.valueState] : "";
721
- }
722
- get hasValueState() {
723
- return this.valueState !== ValueState.o.None;
724
- }
725
- get valueStateTextId() {
726
- return this.hasValueState ? `${this._id}-valueStateDesc` : undefined;
727
- }
728
- get responsivePopoverId() {
729
- return `${this._id}-popover`;
730
- }
731
- get isDisabled() {
732
- return this.disabled || undefined;
733
- }
734
- get _headerTitleText() {
735
- return Select_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS_TITLE);
736
- }
737
- get _currentlySelectedOption() {
738
- return this.options[this._selectedIndex];
739
- }
740
- get _effectiveTabIndex() {
741
- return this.disabled
742
- || (this.responsivePopover // Handles focus on Tab/Shift + Tab when the popover is opened
743
- && this.responsivePopover.open) ? -1 : 0;
744
- }
745
- /**
746
- * This method is relevant for sap_horizon theme only
747
- */
748
- get _valueStateMessageInputIcon() {
749
- const iconPerValueState = {
750
- Negative: "error",
751
- Critical: "alert",
752
- Positive: "sys-enter-2",
753
- Information: "information",
754
- };
755
- return this.valueState !== ValueState.o.None ? iconPerValueState[this.valueState] : "";
756
- }
757
- get iconsCount() {
758
- return this.selectedOptionIcon ? 2 : 1;
759
- }
760
- get classes() {
761
- return {
762
- popoverValueState: {
763
- "ui5-valuestatemessage-root": true,
764
- "ui5-valuestatemessage-header": !this._isPhone,
765
- "ui5-valuestatemessage--success": this.valueState === ValueState.o.Positive,
766
- "ui5-valuestatemessage--error": this.valueState === ValueState.o.Negative,
767
- "ui5-valuestatemessage--warning": this.valueState === ValueState.o.Critical,
768
- "ui5-valuestatemessage--information": this.valueState === ValueState.o.Information,
769
- },
770
- popover: {
771
- "ui5-select-popover-valuestate": this.hasValueState,
772
- },
773
- };
774
- }
775
- get styles() {
776
- return {
777
- popoverHeader: {
778
- "display": "block",
779
- },
780
- responsivePopoverHeader: {
781
- "display": this.options.length && this._listWidth === 0 ? "none" : "inline-block",
782
- "width": `${this.options.length ? this._listWidth : this.offsetWidth}px`,
783
- "max-width": "100%",
784
- },
785
- responsivePopover: {
786
- "min-width": `${this.offsetWidth}px`,
787
- },
788
- };
789
- }
790
- get ariaLabelText() {
791
- return AccessibilityTextsHelper.A(this) || AccessibilityTextsHelper.M(this);
792
- }
793
- get shouldDisplayDefaultValueStateMessage() {
794
- return !this.valueStateMessage.length && this.hasValueStateText;
795
- }
796
- get hasValueStateText() {
797
- return this.hasValueState && this.valueState !== ValueState.o.Positive;
798
- }
799
- get shouldOpenValueStateMessagePopover() {
800
- return this.focused && this.hasValueStateText && !this._iconPressed
801
- && !this._isPickerOpen && !this._isPhone;
802
- }
803
- get _ariaRoleDescription() {
804
- return Select_1.i18nBundle.getText(i18nDefaults.SELECT_ROLE_DESCRIPTION);
805
- }
806
- get _isPhone() {
807
- return Icons.d();
808
- }
809
- itemSelectionAnnounce() {
810
- let text;
811
- const optionsCount = this.options.length;
812
- const itemPositionText = Select_1.i18nBundle.getText(i18nDefaults.LIST_ITEM_POSITION, this._selectedIndex + 1, optionsCount);
813
- if (this.focused && this._currentlySelectedOption) {
814
- text = `${this._currentlySelectedOption.textContent} ${this._isPickerOpen ? itemPositionText : ""}`;
815
- p(text);
816
- }
817
- }
818
- openValueStatePopover() {
819
- this.valueStatePopover = this._getPopover();
820
- if (this.valueStatePopover) {
821
- this.valueStatePopover.opener = this;
822
- this.valueStatePopover.open = true;
823
- }
824
- }
825
- closeValueStatePopover() {
826
- this.valueStatePopover && (this.valueStatePopover.open = false);
827
- }
828
- toggleValueStatePopover(open) {
829
- if (open) {
830
- this.openValueStatePopover();
831
- }
832
- else {
833
- this.closeValueStatePopover();
834
- }
835
- }
836
- get selectedOptionIcon() {
837
- return this.selectedOption && this.selectedOption.icon;
838
- }
839
- get ariaDescriptionText() {
840
- return this._associatedDescriptionRefTexts || AccessibilityTextsHelper.L(this);
841
- }
842
- get ariaDescriptionTextId() {
843
- return this.ariaDescriptionText ? "accessibleDescription" : "";
844
- }
845
- get ariaDescribedByIds() {
846
- const ids = [this.valueStateTextId, this.ariaDescriptionTextId].filter(Boolean);
847
- return ids.length ? ids.join(" ") : undefined;
848
- }
849
- _updateAssociatedLabelsTexts() {
850
- this._associatedDescriptionRefTexts = AccessibilityTextsHelper.p(this);
851
- }
852
- _getPopover() {
853
- return this.shadowRoot.querySelector("[ui5-popover]");
854
- }
855
- };
856
- __decorate$5([
857
- webcomponentsBase.s({ type: Boolean })
858
- ], Select.prototype, "disabled", void 0);
859
- __decorate$5([
860
- webcomponentsBase.s()
861
- ], Select.prototype, "icon", void 0);
862
- __decorate$5([
863
- webcomponentsBase.s()
864
- ], Select.prototype, "name", void 0);
865
- __decorate$5([
866
- webcomponentsBase.s()
867
- ], Select.prototype, "valueState", void 0);
868
- __decorate$5([
869
- webcomponentsBase.s({ type: Boolean })
870
- ], Select.prototype, "required", void 0);
871
- __decorate$5([
872
- webcomponentsBase.s({ type: Boolean })
873
- ], Select.prototype, "readonly", void 0);
874
- __decorate$5([
875
- webcomponentsBase.s()
876
- ], Select.prototype, "accessibleName", void 0);
877
- __decorate$5([
878
- webcomponentsBase.s()
879
- ], Select.prototype, "accessibleNameRef", void 0);
880
- __decorate$5([
881
- webcomponentsBase.s()
882
- ], Select.prototype, "accessibleDescription", void 0);
883
- __decorate$5([
884
- webcomponentsBase.s()
885
- ], Select.prototype, "accessibleDescriptionRef", void 0);
886
- __decorate$5([
887
- webcomponentsBase.s()
888
- ], Select.prototype, "tooltip", void 0);
889
- __decorate$5([
890
- webcomponentsBase.s({ type: String, noAttribute: true })
891
- ], Select.prototype, "_associatedDescriptionRefTexts", void 0);
892
- __decorate$5([
893
- webcomponentsBase.s({ type: Boolean, noAttribute: true })
894
- ], Select.prototype, "_iconPressed", void 0);
895
- __decorate$5([
896
- webcomponentsBase.s({ type: Boolean })
897
- ], Select.prototype, "opened", void 0);
898
- __decorate$5([
899
- webcomponentsBase.s({ type: Number, noAttribute: true })
900
- ], Select.prototype, "_listWidth", void 0);
901
- __decorate$5([
902
- webcomponentsBase.s({ type: Boolean })
903
- ], Select.prototype, "focused", void 0);
904
- __decorate$5([
905
- webcomponentsBase.d({ "default": true, type: HTMLElement, invalidateOnChildChange: true })
906
- ], Select.prototype, "options", void 0);
907
- __decorate$5([
908
- webcomponentsBase.d()
909
- ], Select.prototype, "valueStateMessage", void 0);
910
- __decorate$5([
911
- webcomponentsBase.d()
912
- ], Select.prototype, "label", void 0);
913
- __decorate$5([
914
- webcomponentsBase.s()
915
- ], Select.prototype, "value", null);
916
- __decorate$5([
917
- parametersBundle_css$1.i("sap/ushell/gen/ui5/webcomponents")
918
- ], Select, "i18nBundle", void 0);
919
- Select = Select_1 = __decorate$5([
920
- webcomponentsBase.m({
921
- tag: "ui5-select",
922
- languageAware: true,
923
- formAssociated: true,
924
- renderer: parametersBundle_css.y,
925
- template: SelectTemplate,
926
- styles: [
927
- selectCss,
928
- ResponsivePopoverCommonCss,
929
- ValueStateMessageCss,
930
- SelectPopoverCss,
931
- ],
932
- dependencies: [
933
- Label,
934
- ResponsivePopover.ResponsivePopover,
935
- ResponsivePopover.Popover,
936
- List.List,
937
- Icon.Icon,
938
- Button.Button,
939
- ],
940
- })
941
- /**
942
- * Fired when the selected option changes.
943
- * @param {IOption} selectedOption the selected option.
944
- * @public
945
- */
946
- ,
947
- eventStrict.l("change", {
948
- bubbles: true,
949
- cancelable: true,
950
- })
951
- /**
952
- * Fired when the user navigates through the options, but the selection is not finalized,
953
- * or when pressing the ESC key to revert the current selection.
954
- * @param {IOption} selectedOption the selected option.
955
- * @public
956
- * @since 1.17.0
957
- */
958
- ,
959
- eventStrict.l("live-change", {
960
- bubbles: true,
961
- })
962
- /**
963
- * Fired after the component's dropdown menu opens.
964
- * @public
965
- */
966
- ,
967
- eventStrict.l("open")
968
- /**
969
- * Fired after the component's dropdown menu closes.
970
- * @public
971
- */
972
- ,
973
- eventStrict.l("close")
974
- /**
975
- * Fired to make Angular two way data binding work properly.
976
- * @private
977
- */
978
- ,
979
- eventStrict.l("selected-item-changed", {
980
- bubbles: true,
981
- })
982
- /**
983
- * Fired to make Vue.js two way data binding work properly.
984
- * @private
985
- */
986
- ,
987
- eventStrict.l("input", {
988
- bubbles: true,
989
- })
990
- ], Select);
991
- Select.define();
992
- var Select$1 = Select;
993
-
994
- function SearchFieldTemplate(options) {
995
- return (!options?.forceExpanded && this.collapsed ? (parametersBundle_css.jsx(Button.Button, { class: "ui5-shell-search-field-button", icon: slimArrowDown.search, design: Button.ButtonDesign.Transparent, "data-sap-focus-ref": true, onClick: this._handleSearchIconPress, tooltip: this._effectiveIconTooltip, accessibleName: this._effectiveIconTooltip, accessibilityAttributes: this._searchButtonAccessibilityAttributes })) : (parametersBundle_css.jsx("div", { class: "ui5-search-field-root", role: "search", onFocusOut: this._onFocusOutSearch, children: parametersBundle_css.jsxs("div", { class: "ui5-search-field-content", children: [this.scopes?.length ? (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx(Select$1, { onChange: this._handleScopeChange, class: "sapUiSizeCompact ui5-search-field-select", accessibleName: this._translations.scope, tooltip: this._translations.scope, children: this.scopes.map(scopeOption => (parametersBundle_css.jsx(Option$1, { selected: scopeOption.selected, "data-ui5-stable": scopeOption.stableDomRef, ref: this.captureRef.bind(scopeOption), children: scopeOption.text }))) }), parametersBundle_css.jsx("div", { class: "ui5-search-field-separator" })] })) : this.filterButton?.length ? (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("div", { class: "ui5-filter-wrapper", style: "display: contents", children: parametersBundle_css.jsx("slot", { name: "filterButton" }) }), parametersBundle_css.jsx("div", { class: "ui5-search-field-separator" })] })) : null, parametersBundle_css.jsx("input", { class: "ui5-search-field-inner-input", role: "searchbox", "aria-description": this.accessibleDescription, "aria-label": this.accessibleName || this._translations.searchFieldAriaLabel, value: this.value, placeholder: this.placeholder, "data-sap-focus-ref": true, onInput: this._handleInput, onFocusIn: this._onfocusin, onFocusOut: this._onfocusout, onKeyDown: this._onkeydown, onClick: this._handleInnerClick }), this._effectiveShowClearIcon &&
996
- parametersBundle_css.jsx(Icon.Icon, { class: "ui5-shell-search-field-icon", name: information.decline, showTooltip: true, accessibleName: this._translations.clearIcon, onClick: this._handleClear }), parametersBundle_css.jsx(Icon.Icon, { class: {
997
- "ui5-shell-search-field-icon": true,
998
- "ui5-shell-search-field-search-icon": this._isSearchIcon,
999
- }, name: slimArrowDown.search, showTooltip: true, accessibleName: this._effectiveIconTooltip, onClick: this._handleSearchIconPress })] }) })));
1000
- }
1001
-
1002
- const f=(t,a,e,o)=>{webcomponentsBase.x(t)&&(e!==a.length-1?(t.stopImmediatePropagation(),t.preventDefault(),a[e+1].focus()):(o.closeValueState(),o.focusInput())),webcomponentsBase.V(t)&&(t.preventDefault(),t.stopImmediatePropagation(),e>0?a[e-1].focus():o.focusInput()),webcomponentsBase.P(t)&&(t.preventDefault(),t.stopImmediatePropagation(),o.isPopoverOpen()&&o.focusInput()),webcomponentsBase._(t)&&(t.preventDefault(),t.stopImmediatePropagation(),o.navigateToItem()),webcomponentsBase.m$2(t)&&(t.preventDefault(),t.stopImmediatePropagation());};
1003
-
1004
- const n=t=>{let e=0;return (t.selectionStart||t.selectionStart===0)&&(e=t.selectionDirection==="backward"?t.selectionStart:t.selectionEnd),e},o=(t,e)=>{t.selectionStart?(t.focus(),t.setSelectionRange(e,e)):t.focus();};
1005
-
1006
- /**
1007
- * Different input types.
1008
- * @public
1009
- */
1010
- var InputType;
1011
- (function (InputType) {
1012
- /**
1013
- * Defines a one-line text input field:
1014
- * @public
1015
- */
1016
- InputType["Text"] = "Text";
1017
- /**
1018
- * Used for input fields that must contain an e-mail address.
1019
- * @public
1020
- */
1021
- InputType["Email"] = "Email";
1022
- /**
1023
- * Defines a numeric input field.
1024
- * @public
1025
- */
1026
- InputType["Number"] = "Number";
1027
- /**
1028
- * Defines a password field.
1029
- * @public
1030
- */
1031
- InputType["Password"] = "Password";
1032
- /**
1033
- * Used for input fields that should contain a telephone number.
1034
- * @public
1035
- */
1036
- InputType["Tel"] = "Tel";
1037
- /**
1038
- * Used for input fields that should contain a URL address.
1039
- * @public
1040
- */
1041
- InputType["URL"] = "URL";
1042
- /**
1043
- * Used for input fields that should contain a search term.
1044
- * @since 2.0.0
1045
- * @public
1046
- */
1047
- InputType["Search"] = "Search";
1048
- })(InputType || (InputType = {}));
1049
- var InputType$1 = InputType;
1050
-
1051
- function InputPopoverTemplate(hooks) {
1052
- const suggestionsList = hooks?.suggestionsList;
1053
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [this._effectiveShowSuggestions && this.Suggestions?.template.call(this, { suggestionsList, valueStateMessage, valueStateMessageInputIcon }), this.hasValueStateMessage &&
1054
- parametersBundle_css.jsx(ResponsivePopover.Popover, { preventInitialFocus: true, preventFocusRestore: true, hideArrow: true, class: "ui5-valuestatemessage-popover", placement: "Bottom", tabindex: -1, horizontalAlign: this._valueStatePopoverHorizontalAlign, opener: this, open: this.valueStateOpen, onClose: this._handleValueStatePopoverAfterClose, children: parametersBundle_css.jsxs("div", { slot: "header", class: this.classes.popoverValueState, children: [parametersBundle_css.jsx(Icon.Icon, { class: "ui5-input-value-state-message-icon", name: valueStateMessageInputIcon.call(this) }), this.valueStateOpen && valueStateMessage.call(this)] }) })] }));
1055
- }
1056
- function valueStateMessage() {
1057
- return (parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: this.shouldDisplayDefaultValueStateMessage ? this.valueStateText : parametersBundle_css.jsx("slot", { name: "valueStateMessage" }) }));
1058
- }
1059
- function valueStateMessageInputIcon() {
1060
- const iconPerValueState = {
1061
- Negative: information$1.error,
1062
- Critical: information$1.alert,
1063
- Positive: sysEnter2.selectedAccount,
1064
- Information: information$1.information,
1065
- };
1066
- return this.valueState !== ValueState.o.None ? iconPerValueState[this.valueState] : "";
1067
- }
1068
-
1069
- function InputTemplate(hooks) {
1070
- const suggestionsList = hooks?.suggestionsList;
1071
- const preContent = hooks?.preContent || defaultPreContent;
1072
- const postContent = hooks?.postContent || defaultPostContent;
1073
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("div", { class: "ui5-input-root ui5-input-focusable-element", part: "root", onFocusIn: this._onfocusin, onFocusOut: this._onfocusout, children: parametersBundle_css.jsxs("div", { class: "ui5-input-content", children: [preContent.call(this), parametersBundle_css.jsx("input", { id: "inner", part: "input", class: "ui5-input-inner", style: this.styles.innerInput, type: this.inputNativeType, "inner-input": true, "inner-input-with-icon": !!this.icon.length, disabled: this.disabled, readonly: this._readonly, value: this._innerValue, placeholder: this._placeholder, maxlength: this.maxlength, role: this.accInfo.role, enterkeyhint: this.hint, "aria-controls": this.accInfo.ariaControls, "aria-invalid": this.accInfo.ariaInvalid, "aria-haspopup": this.accInfo.ariaHasPopup, "aria-describedby": this.accInfo.ariaDescribedBy, "aria-roledescription": this.accInfo.ariaRoledescription, "aria-autocomplete": this.accInfo.ariaAutoComplete, "aria-expanded": this.accInfo.ariaExpanded, "aria-label": this.accInfo.ariaLabel, "aria-required": this.required, autocomplete: "off", "data-sap-focus-ref": true, step: this.nativeInputAttributes.step, min: this.nativeInputAttributes.min, max: this.nativeInputAttributes.max, onInput: this._handleNativeInput, onChange: this._handleChange, onSelect: this._handleSelect, onKeyDown: this._onkeydown, onKeyUp: this._onkeyup, onClick: this._click, onFocusIn: this.innerFocusIn }), this._effectiveShowClearIcon &&
1074
- parametersBundle_css.jsx("div", { tabindex: -1, class: "ui5-input-clear-icon-wrapper inputIcon", part: "clear-icon-wrapper", onClick: this._clear, onMouseDown: this._iconMouseDown, children: parametersBundle_css.jsx(Icon.Icon, { part: "clear-icon", class: "ui5-input-clear-icon", name: information.decline, tabindex: -1, accessibleName: this.clearIconAccessibleName }) }), this.icon.length > 0 &&
1075
- parametersBundle_css.jsx("div", { class: "ui5-input-icon-root", tabindex: -1, children: parametersBundle_css.jsx("slot", { name: "icon" }) }), parametersBundle_css.jsx("div", { class: "ui5-input-value-state-icon", children: this._valueStateInputIcon }), postContent.call(this), this._effectiveShowSuggestions &&
1076
- parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("span", { id: "suggestionsText", class: "ui5-hidden-text", children: this.suggestionsText }), parametersBundle_css.jsx("span", { id: "selectionText", class: "ui5-hidden-text", "aria-live": "polite", role: "status" }), parametersBundle_css.jsx("span", { id: "suggestionsCount", class: "ui5-hidden-text", "aria-live": "polite", children: this.availableSuggestionsCount })] }), this.accInfo.ariaDescription &&
1077
- parametersBundle_css.jsx("span", { id: "descr", class: "ui5-hidden-text", children: this.accInfo.ariaDescription }), this.accInfo.accessibleDescription &&
1078
- parametersBundle_css.jsx("span", { id: "accessibleDescription", class: "ui5-hidden-text", children: this.accInfo.accessibleDescription }), this.linksInAriaValueStateHiddenText.length > 0 &&
1079
- parametersBundle_css.jsx("span", { id: "hiddenText-value-state-link-shortcut", class: "ui5-hidden-text", children: this.valueStateLinksShortcutsTextAcc }), this.hasValueState &&
1080
- parametersBundle_css.jsx("span", { id: "valueStateDesc", class: "ui5-hidden-text", children: this.ariaValueStateHiddenText })] }) }), InputPopoverTemplate.call(this, { suggestionsList })] }));
1081
- }
1082
- function defaultPreContent() { }
1083
- function defaultPostContent() { }
1084
-
1085
- const StartsWith = (value, items, propName) => items.filter(item => (item[propName] || "").toLowerCase().startsWith(value.toLowerCase()));
1086
-
1087
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
1088
- 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);
1089
- var inputStyles = `:host{vertical-align:middle}.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}.inputIcon{color:var(--_ui5-v2-15-0_input_icon_color);cursor:pointer;outline:none;padding:var(--_ui5-v2-15-0_input_icon_padding);border-inline-start:var(--_ui5-v2-15-0_input_icon_border);min-width:1rem;min-height:1rem;border-radius:var(--_ui5-v2-15-0_input_icon_border_radius)}.inputIcon.inputIcon--pressed{background:var(--_ui5-v2-15-0_input_icon_pressed_bg);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow);border-inline-start:var(--_ui5-v2-15-0_select_hover_icon_left_border);color:var(--_ui5-v2-15-0_input_icon_pressed_color)}.inputIcon:active{background-color:var(--sapButton_Active_Background);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow);border-inline-start:var(--_ui5-v2-15-0_select_hover_icon_left_border);color:var(--_ui5-v2-15-0_input_icon_pressed_color)}.inputIcon:not(.inputIcon--pressed):not(:active):hover{background:var(--_ui5-v2-15-0_input_icon_hover_bg);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow)}.inputIcon:hover{border-inline-start:var(--_ui5-v2-15-0_select_hover_icon_left_border);box-shadow:var(--_ui5-v2-15-0_input_icon_box_shadow)}:host(:not([hidden])){display:inline-block}:host{width:var(--_ui5-v2-15-0_input_width);min-width:calc(var(--_ui5-v2-15-0_input_min_width) + (var(--_ui5-v2-15-0-input-icons-count)*var(--_ui5-v2-15-0_input_icon_width)));margin:var(--_ui5-v2-15-0_input_margin_top_bottom) 0;height:var(--_ui5-v2-15-0_input_height);color:var(--sapField_TextColor);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);font-style:normal;border:var(--_ui5-v2-15-0-input-border);border-radius:var(--_ui5-v2-15-0_input_border_radius);box-sizing:border-box;text-align:start;transition:var(--_ui5-v2-15-0_input_transition);background:var(--sapField_BackgroundStyle);background-color:var(--_ui5-v2-15-0_input_background_color)}:host(:not([readonly])),:host([readonly][disabled]){box-shadow:var(--sapField_Shadow)}:host([focused]:not([opened])){border-color:var(--_ui5-v2-15-0_input_focused_border_color);background-color:var(--sapField_Focus_Background)}.ui5-input-focusable-element{position:relative}:host([focused]:not([opened])) .ui5-input-focusable-element:after{content:var(--ui5-v2-15-0_input_focus_pseudo_element_content);position:absolute;pointer-events:none;z-index:2;border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--_ui5-v2-15-0_input_focus_outline_color);border-radius:var(--_ui5-v2-15-0_input_focus_border_radius);top:var(--_ui5-v2-15-0_input_focus_offset);bottom:var(--_ui5-v2-15-0_input_focus_offset);left:var(--_ui5-v2-15-0_input_focus_offset);right:var(--_ui5-v2-15-0_input_focus_offset)}:host([focused][readonly]:not([opened])) .ui5-input-focusable-element:after{top:var(--_ui5-v2-15-0_input_readonly_focus_offset);bottom:var(--_ui5-v2-15-0_input_readonly_focus_offset);left:var(--_ui5-v2-15-0_input_readonly_focus_offset);right:var(--_ui5-v2-15-0_input_readonly_focus_offset);border-radius:var(--_ui5-v2-15-0_input_readonly_focus_border_radius)}.ui5-input-root:before{content:"";position:absolute;width:calc(100% - 2px);left:1px;bottom:-2px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;height:var(--_ui5-v2-15-0_input_bottom_border_height);transition:var(--_ui5-v2-15-0_input_transition);background-color:var(--_ui5-v2-15-0_input_bottom_border_color)}.ui5-input-root{width:100%;height:100%;position:relative;background:transparent;display:inline-block;outline:none;box-sizing:border-box;color:inherit;transition:border-color .2s ease-in-out;border-radius:var(--_ui5-v2-15-0_input_border_radius);overflow:hidden}:host([disabled]){opacity:var(--_ui5-v2-15-0_input_disabled_opacity);cursor:default;pointer-events:none;background-color:var(--_ui5-v2-15-0-input_disabled_background);border-color:var(--_ui5-v2-15-0_input_disabled_border_color)}:host([disabled]) .ui5-input-root:before,:host([readonly]) .ui5-input-root:before{content:none}[inner-input]{background:transparent;color:inherit;border:none;font-style:inherit;-webkit-appearance:none;-moz-appearance:textfield;padding:var(--_ui5-v2-15-0_input_inner_padding);box-sizing:border-box;width:100%;text-overflow:ellipsis;flex:1;outline:none;font-size:inherit;font-family:inherit;line-height:inherit;letter-spacing:inherit;word-spacing:inherit;text-align:inherit}[inner-input][inner-input-with-icon]{padding:var(--_ui5-v2-15-0_input_inner_padding_with_icon)}[inner-input][type=search]::-webkit-search-decoration,[inner-input][type=search]::-webkit-search-cancel-button,[inner-input][type=search]::-webkit-search-results-button,[inner-input][type=search]::-webkit-search-results-decoration{display:none}[inner-input]::-ms-reveal,[inner-input]::-ms-clear{display:none}.ui5-input-value-state-icon{height:100%;display:var(--_ui5-v2-15-0-input-value-state-icon-display);align-items:center}.ui5-input-value-state-icon>svg{margin-right:8px}[inner-input]::selection{background:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}:host([disabled]) [inner-input]::-webkit-input-placeholder{visibility:hidden}:host([readonly]) [inner-input]::-webkit-input-placeholder{visibility:hidden}:host([disabled]) [inner-input]::-moz-placeholder{visibility:hidden}:host([readonly]) [inner-input]::-moz-placeholder{visibility:hidden}[inner-input]::-webkit-input-placeholder{font-weight:400;font-style:var(--_ui5-v2-15-0_input_placeholder_style);color:var(--_ui5-v2-15-0_input_placeholder_color);padding-right:.125rem}[inner-input]::-moz-placeholder{font-weight:400;font-style:var(--_ui5-v2-15-0_input_placeholder_style);color:var(--_ui5-v2-15-0_input_placeholder_color);padding-right:.125rem}:host([value-state="Negative"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-v2-15-0-input_error_placeholder_color);font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Negative"]) [inner-input]::-moz-placeholder{color:var(--_ui5-v2-15-0-input_error_placeholder_color);font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-webkit-input-placeholder{font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-moz-placeholder{font-weight:var(--_ui5-v2-15-0_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Positive"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}:host([value-state="Positive"]) [inner-input]::-moz-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-moz-placeholder{color:var(--_ui5-v2-15-0_input_placeholder_color)}.ui5-input-content{height:100%;box-sizing:border-box;display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;outline:none;background:transparent;color:inherit;border-radius:var(--_ui5-v2-15-0_input_border_radius)}:host([readonly]:not([disabled])){border:var(--_ui5-v2-15-0_input_readonly_border);background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--_ui5-v2-15-0_input_readonly_background)}:host([value-state="None"]:not([readonly]):hover),:host(:not([value-state]):not([readonly]):hover){border:var(--_ui5-v2-15-0_input_hover_border);border-color:var(--_ui5-v2-15-0_input_focused_border_color);box-shadow:var(--sapField_Hover_Shadow);background:var(--sapField_Hover_BackgroundStyle);background-color:var(--sapField_Hover_Background)}:host(:not([value-state]):not([readonly])[focused]:not([opened]):hover),:host([value-state="None"]:not([readonly])[focused]:not([opened]):hover){box-shadow:none}:host([focused]):not([opened]) .ui5-input-root:before{content:none}:host(:not([readonly]):not([disabled])[value-state]:not([value-state="None"])){border-width:var(--_ui5-v2-15-0_input_state_border_width)}:host([value-state="Negative"]) [inner-input],:host([value-state="Critical"]) [inner-input]{font-style:var(--_ui5-v2-15-0_input_error_warning_font_style);text-indent:var(--_ui5-v2-15-0_input_error_warning_text_indent)}:host([value-state="Negative"]) [inner-input]{font-weight:var(--_ui5-v2-15-0_input_error_font_weight)}:host([value-state="Critical"]) [inner-input]{font-weight:var(--_ui5-v2-15-0_input_warning_font_weight)}:host([value-state="Negative"]:not([readonly]):not([disabled])){background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border-color:var(--_ui5-v2-15-0_input_value_state_error_border_color);box-shadow:var(--sapField_InvalidShadow)}:host([value-state="Negative"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_error_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_error_border_color)}:host([value-state="Negative"][focused]:not([opened]):not([readonly])) .ui5-input-focusable-element:after{border-color:var(--_ui5-v2-15-0_input_focused_value_state_error_focus_outline_color)}:host([value-state="Negative"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0-input-value-state-error-border-botom-color)}:host([value-state="Negative"]:not([readonly]):not([focused]):hover),:host([value-state="Negative"]:not([readonly])[focused][opened]:hover){background-color:var(--_ui5-v2-15-0_input_value_state_error_hover_background);box-shadow:var(--sapField_Hover_InvalidShadow)}:host([value-state="Negative"]:not([readonly]):not([disabled])),:host([value-state="Critical"]:not([readonly]):not([disabled])),:host([value-state="Information"]:not([readonly]):not([disabled])){border-style:var(--_ui5-v2-15-0_input_error_warning_border_style)}:host([value-state="Critical"]:not([readonly]):not([disabled])){background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border-color:var(--_ui5-v2-15-0_input_value_state_warning_border_color);box-shadow:var(--sapField_WarningShadow)}:host([value-state="Critical"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_border_color)}:host([value-state="Critical"][focused]:not([opened]):not([readonly])) .ui5-input-focusable-element:after{border-color:var(--_ui5-v2-15-0_input_focused_value_state_warning_focus_outline_color)}:host([value-state="Critical"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0_input_value_state_warning_border_botom_color)}:host([value-state="Critical"]:not([readonly]):not([focused]):hover),:host([value-state="Critical"]:not([readonly])[focused][opened]:hover){background-color:var(--sapField_Hover_Background);box-shadow:var(--sapField_Hover_WarningShadow)}:host([value-state="Positive"]:not([readonly]):not([disabled])){background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border-color:var(--_ui5-v2-15-0_input_value_state_success_border_color);border-width:var(--_ui5-v2-15-0_input_value_state_success_border_width);box-shadow:var(--sapField_SuccessShadow)}:host([value-state="Positive"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_success_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_success_border_color)}:host([value-state="Positive"][focused]:not([opened]):not([readonly])) .ui5-input-focusable-element:after{border-color:var(--_ui5-v2-15-0_input_focused_value_state_success_focus_outline_color)}:host([value-state="Positive"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0_input_value_state_success_border_botom_color)}:host([value-state="Positive"]:not([readonly]):not([focused]):hover),:host([value-state="Positive"]:not([readonly])[focused][opened]:hover){background-color:var(--sapField_Hover_Background);box-shadow:var(--sapField_Hover_SuccessShadow)}:host([value-state="Information"]:not([readonly]):not([disabled])){background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border-color:var(--_ui5-v2-15-0_input_value_state_information_border_color);border-width:var(--_ui5-v2-15-0_input_information_border_width);box-shadow:var(--sapField_InformationShadow)}:host([value-state="Information"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5-v2-15-0_input_focused_value_state_information_background);border-color:var(--_ui5-v2-15-0_input_focused_value_state_information_border_color)}:host([value-state="Information"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-v2-15-0_input_value_success_information_border_botom_color)}:host([value-state="Information"]:not([readonly]):not([focused]):hover),:host([value-state="Information"]:not([readonly])[focused][opened]:hover){background-color:var(--sapField_Hover_Background);box-shadow:var(--sapField_Hover_InformationShadow)}.ui5-input-icon-root{min-width:var(--_ui5-v2-15-0_input_icon_min_width);height:100%;display:flex;justify-content:center;align-items:center}::slotted([ui5-icon][slot="icon"]){align-self:start;padding:var(--_ui5-v2-15-0_input_custom_icon_padding);box-sizing:content-box!important}:host([value-state="Negative"]) .inputIcon,:host([value-state="Critical"]) .inputIcon{padding:var(--_ui5-v2-15-0_input_error_warning_icon_padding)}:host([value-state="Negative"][focused]) .inputIcon,:host([value-state="Critical"][focused]) .inputIcon{padding:var(--_ui5-v2-15-0_input_error_warning_focused_icon_padding)}:host([value-state="Information"]) .inputIcon{padding:var(--_ui5-v2-15-0_input_information_icon_padding)}:host([value-state="Information"][focused]) .inputIcon{padding:var(--_ui5-v2-15-0_input_information_focused_icon_padding)}:host([value-state="Negative"]) ::slotted(.inputIcon[ui5-icon]),:host([value-state="Negative"]) ::slotted([ui5-icon][slot="icon"]),:host([value-state="Critical"]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_error_warning_custom_icon_padding)}:host([value-state="Negative"][focused]) ::slotted(.inputIcon[ui5-icon]),:host([value-state="Negative"][focused]) ::slotted([ui5-icon][slot="icon"]),:host([value-state="Critical"][focused]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_error_warning_custom_focused_icon_padding)}:host([value-state="Information"]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_information_custom_icon_padding)}:host([value-state="Information"][focused]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5-v2-15-0_input_information_custom_focused_icon_padding)}:host([value-state="Negative"]) .inputIcon:active,:host([value-state="Negative"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_error_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_error_pressed_color)}:host([value-state="Negative"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_error_icon_box_shadow)}:host([value-state="Critical"]) .inputIcon:active,:host([value-state="Critical"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_warning_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_warning_pressed_color)}:host([value-state="Critical"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_warning_icon_box_shadow)}:host([value-state="Information"]) .inputIcon:active,:host([value-state="Information"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_information_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_information_pressed_color)}:host([value-state="Information"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_information_icon_box_shadow)}:host([value-state="Positive"]) .inputIcon:active,:host([value-state="Positive"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5-v2-15-0_input_success_icon_box_shadow);color:var(--_ui5-v2-15-0_input_icon_success_pressed_color)}:host([value-state="Positive"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5-v2-15-0_input_success_icon_box_shadow)}.ui5-input-clear-icon-wrapper{height:var(--_ui5-v2-15-0_input_icon_wrapper_height);padding:0;width:var(--_ui5-v2-15-0_input_icon_width);min-width:var(--_ui5-v2-15-0_input_icon_width);display:flex;justify-content:center;align-items:center;box-sizing:border-box}:host([value-state]:not([value-state="None"]):not([value-state="Positive"])) .ui5-input-clear-icon-wrapper{height:var(--_ui5-v2-15-0_input_icon_wrapper_state_height);vertical-align:top}:host([value-state="Positive"]) .ui5-input-clear-icon-wrapper{height:var(--_ui5-v2-15-0_input_icon_wrapper_success_state_height)}[ui5-icon].ui5-input-clear-icon{padding:0;color:inherit}[inner-input]::-webkit-outer-spin-button,[inner-input]::-webkit-inner-spin-button{-webkit-appearance:inherit;margin:inherit}
1090
- `;
1091
-
1092
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
1093
- 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);
1094
- var SuggestionsCss = `.ui5-suggestions-popover{box-shadow:var(--sapContent_Shadow1)}.ui5-suggestions-popover::part(header),.ui5-suggestions-popover::part(content){padding:0}.ui5-suggestions-popover::part(footer){padding:0 1rem}.input-root-phone.native-input-wrapper{display:contents}.input-root-phone.native-input-wrapper:before{display:none}.native-input-wrapper .ui5-input-inner-phone{margin:0}
1095
- `;
1096
-
1097
- var __decorate$4 = (this && this.__decorate) || function (decorators, target, key, desc) {
1098
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1099
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1100
- 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;
1101
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1102
- };
1103
- var Input_1;
1104
- // all sementic events
1105
- var INPUT_EVENTS;
1106
- (function (INPUT_EVENTS) {
1107
- INPUT_EVENTS["CHANGE"] = "change";
1108
- INPUT_EVENTS["INPUT"] = "input";
1109
- INPUT_EVENTS["SELECTION_CHANGE"] = "selection-change";
1110
- })(INPUT_EVENTS || (INPUT_EVENTS = {}));
1111
- // all user interactions
1112
- var INPUT_ACTIONS;
1113
- (function (INPUT_ACTIONS) {
1114
- INPUT_ACTIONS["ACTION_ENTER"] = "enter";
1115
- INPUT_ACTIONS["ACTION_USER_INPUT"] = "input";
1116
- })(INPUT_ACTIONS || (INPUT_ACTIONS = {}));
1117
- /**
1118
- * @class
1119
- * ### Overview
1120
- *
1121
- * The `ui5-input` component allows the user to enter and edit text or numeric values in one line.
1122
- *
1123
- * Additionally, you can provide `suggestionItems`,
1124
- * that are displayed in a popover right under the input.
1125
- *
1126
- * The text field can be editable or read-only (`readonly` property),
1127
- * and it can be enabled or disabled (`disabled` property).
1128
- * To visualize semantic states, such as "Negative" or "Critical", the `valueState` property is provided.
1129
- * When the user makes changes to the text, the change event is fired,
1130
- * which enables you to react on any text change.
1131
- *
1132
- * ### Keyboard Handling
1133
- * The `ui5-input` provides the following keyboard shortcuts:
1134
- *
1135
- * - [Escape] - Closes the suggestion list, if open. If closed or not enabled, cancels changes and reverts to the value which the Input field had when it got the focus.
1136
- * - [Enter] or [Return] - If suggestion list is open takes over the current matching item and closes it. If value state or group header is focused, does nothing.
1137
- * - [Down] - Focuses the next matching item in the suggestion list. Selection-change event is fired.
1138
- * - [Up] - Focuses the previous matching item in the suggestion list. Selection-change event is fired.
1139
- * - [Home] - If focus is in the text input, moves caret before the first character. If focus is in the list, highlights the first item and updates the input accordingly.
1140
- * - [End] - If focus is in the text input, moves caret after the last character. If focus is in the list, highlights the last item and updates the input accordingly.
1141
- * - [Page Up] - If focus is in the list, moves highlight up by page size (10 items by default). If focus is in the input, does nothing.
1142
- * - [Page Down] - If focus is in the list, moves highlight down by page size (10 items by default). If focus is in the input, does nothing.
1143
- * - [Ctrl]+[Alt]+[F8] or [Command]+[Option]+[F8] - Focuses the first link in the value state message, if available. Pressing [Tab] moves the focus to the next link in the value state message, or closes the value state message if there are no more links.
1144
- *
1145
- * ### ES6 Module Import
1146
- *
1147
- * `import "sap/ushell/gen/ui5/webcomponents/dist/Input.js";`
1148
- *
1149
- * @constructor
1150
- * @extends UI5Element
1151
- * @public
1152
- * @csspart root - Used to style the root DOM element of the Input component
1153
- * @csspart input - Used to style the native input element
1154
- * @csspart clear-icon - Used to style the clear icon, which can be pressed to clear user input text
1155
- */
1156
- let Input = Input_1 = class Input extends webcomponentsBase.b {
1157
- get formValidityMessage() {
1158
- return Input_1.i18nBundle.getText(i18nDefaults.FORM_TEXTFIELD_REQUIRED);
1159
- }
1160
- get _effectiveShowSuggestions() {
1161
- return !!(this.showSuggestions && this.Suggestions);
1162
- }
1163
- get formValidity() {
1164
- return { valueMissing: this.required && !this.value };
1165
- }
1166
- async formElementAnchor() {
1167
- return this.getFocusDomRefAsync();
1168
- }
1169
- get formFormattedValue() {
1170
- return this.value;
1171
- }
1172
- constructor() {
1173
- super();
1174
- /**
1175
- * Defines whether the component is in disabled state.
1176
- *
1177
- * **Note:** A disabled component is completely noninteractive.
1178
- * @default false
1179
- * @public
1180
- */
1181
- this.disabled = false;
1182
- /**
1183
- * Defines if characters within the suggestions are to be highlighted
1184
- * in case the input value matches parts of the suggestions text.
1185
- *
1186
- * **Note:** takes effect when `showSuggestions` is set to `true`
1187
- * @default false
1188
- * @private
1189
- * @since 1.0.0-rc.8
1190
- */
1191
- this.highlight = false;
1192
- /**
1193
- * Defines whether the component is read-only.
1194
- *
1195
- * **Note:** A read-only component is not editable,
1196
- * but still provides visual feedback upon user interaction.
1197
- * @default false
1198
- * @public
1199
- */
1200
- this.readonly = false;
1201
- /**
1202
- * Defines whether the component is required.
1203
- * @default false
1204
- * @public
1205
- * @since 1.0.0-rc.3
1206
- */
1207
- this.required = false;
1208
- /**
1209
- * Defines whether the value will be autcompleted to match an item
1210
- * @default false
1211
- * @public
1212
- * @since 1.4.0
1213
- */
1214
- this.noTypeahead = false;
1215
- /**
1216
- * Defines the HTML type of the component.
1217
- *
1218
- * **Notes:**
1219
- *
1220
- * - The particular effect of this property differs depending on the browser
1221
- * and the current language settings, especially for type `Number`.
1222
- * - The property is mostly intended to be used with touch devices
1223
- * that use different soft keyboard layouts depending on the given input type.
1224
- * @default "Text"
1225
- * @public
1226
- */
1227
- this.type = "Text";
1228
- /**
1229
- * Defines the value of the component.
1230
- *
1231
- * **Note:** The property is updated upon typing.
1232
- * @default ""
1233
- * @formEvents change input
1234
- * @formProperty
1235
- * @public
1236
- */
1237
- this.value = "";
1238
- /**
1239
- * Defines the inner stored value of the component.
1240
- *
1241
- * **Note:** The property is updated upon typing. In some special cases the old value is kept (e.g. deleting the value after the dot in a float)
1242
- * @default ""
1243
- * @private
1244
- */
1245
- this._innerValue = "";
1246
- /**
1247
- * Defines the value state of the component.
1248
- * @default "None"
1249
- * @public
1250
- */
1251
- this.valueState = "None";
1252
- /**
1253
- * Defines whether the component should show suggestions, if such are present.
1254
- *
1255
- * @default false
1256
- * @public
1257
- */
1258
- this.showSuggestions = false;
1259
- /**
1260
- * Defines whether the clear icon of the input will be shown.
1261
- * @default false
1262
- * @public
1263
- * @since 1.2.0
1264
- */
1265
- this.showClearIcon = false;
1266
- /**
1267
- * Defines whether the suggestions picker is open.
1268
- * The picker will not open if the `showSuggestions` property is set to `false`, the input is disabled or the input is readonly.
1269
- * The picker will close automatically and `close` event will be fired if the input is not in the viewport.
1270
- * @default false
1271
- * @public
1272
- * @since 2.0.0
1273
- */
1274
- this.open = false;
1275
- /**
1276
- * Defines whether the clear icon is visible.
1277
- * @default false
1278
- * @private
1279
- * @since 1.2.0
1280
- */
1281
- this._effectiveShowClearIcon = false;
1282
- /**
1283
- * @private
1284
- */
1285
- this.focused = false;
1286
- this.valueStateOpen = false;
1287
- this._inputAccInfo = {};
1288
- this._nativeInputAttributes = {};
1289
- this._inputIconFocused = false;
1290
- /**
1291
- * @private
1292
- */
1293
- this._linksListenersArray = [];
1294
- /**
1295
- * Indicates whether IME composition is currently active
1296
- * @default false
1297
- * @private
1298
- */
1299
- this._isComposing = false;
1300
- /**
1301
- * Indicates whether link navigation is being handled.
1302
- * @default false
1303
- * @private
1304
- * @since 2.11.0
1305
- */
1306
- this._handleLinkNavigation = false;
1307
- // Indicates if there is selected suggestionItem.
1308
- this.hasSuggestionItemSelected = false;
1309
- // Represents the value before user moves selection from suggestion item to another
1310
- // and its value is updated after each move.
1311
- // Note: Used to register and fire "input" event upon [Space] or [Enter].
1312
- // Note: The property "value" is updated upon selection move and can`t be used.
1313
- this.valueBeforeItemSelection = "";
1314
- // Represents the value before user moves selection between the suggestion items
1315
- // and its value remains the same when the user navigates up or down the list.
1316
- // Note: Used to cancel selection upon [Escape].
1317
- this.valueBeforeSelectionStart = "";
1318
- // tracks the value between focus in and focus out to detect that change event should be fired.
1319
- this.previousValue = "";
1320
- // Indicates, if the component is rendering for first time.
1321
- this.firstRendering = true;
1322
- // The typed in value.
1323
- this.typedInValue = "";
1324
- // The last value confirmed by the user with "ENTER"
1325
- this.lastConfirmedValue = "";
1326
- // Indicates, if the user is typing. Gets reset once popup is closed
1327
- this.isTyping = false;
1328
- // Indicates whether the value of the input is comming from a suggestion item
1329
- this._isLatestValueFromSuggestions = false;
1330
- this._isChangeTriggeredBySuggestion = false;
1331
- this._indexOfSelectedItem = -1;
1332
- this._handleResizeBound = this._handleResize.bind(this);
1333
- this._keepInnerValue = false;
1334
- this._focusedAfterClear = false;
1335
- this._valueStateLinks = [];
1336
- }
1337
- onEnterDOM() {
1338
- webcomponentsBase.f.register(this, this._handleResizeBound);
1339
- AccessibilityTextsHelper.y(this, this._updateAssociatedLabelsTexts.bind(this));
1340
- this._enableComposition();
1341
- }
1342
- onExitDOM() {
1343
- webcomponentsBase.f.deregister(this, this._handleResizeBound);
1344
- AccessibilityTextsHelper.T(this);
1345
- this._removeLinksEventListeners();
1346
- this._composition?.removeEventListeners();
1347
- }
1348
- _highlightSuggestionItem(item) {
1349
- item.markupText = this.typedInValue ? this.Suggestions?.hightlightInput((item.text || ""), this.typedInValue) : encodeXML.fnEncodeXML(item.text || "");
1350
- }
1351
- _isGroupItem(item) {
1352
- return item.hasAttribute("ui5-suggestion-item-group");
1353
- }
1354
- onBeforeRendering() {
1355
- if (!this._keepInnerValue) {
1356
- this._innerValue = this.value === null ? "" : this.value;
1357
- }
1358
- if (this.showSuggestions) {
1359
- this.enableSuggestions();
1360
- this._flattenItems.forEach(item => {
1361
- if (item.hasAttribute("ui5-suggestion-item")) {
1362
- this._highlightSuggestionItem(item);
1363
- }
1364
- else if (this._isGroupItem(item)) {
1365
- item.items?.forEach(nestedItem => {
1366
- this._highlightSuggestionItem(nestedItem);
1367
- });
1368
- }
1369
- });
1370
- }
1371
- this._effectiveShowClearIcon = (this.showClearIcon && !!this.value && !this.readonly && !this.disabled);
1372
- this.style.setProperty(Icons.d$1("--_ui5-input-icons-count"), `${this.iconsCount}`);
1373
- const hasItems = !!this._flattenItems.length;
1374
- const hasValue = !!this.value;
1375
- const isFocused = this.shadowRoot.querySelector("input") === webcomponentsBase.t();
1376
- if (this.shouldDisplayOnlyValueStateMessage) {
1377
- this.openValueStatePopover();
1378
- }
1379
- else {
1380
- this.closeValueStatePopover();
1381
- }
1382
- const preventOpenPicker = this.disabled || this.readonly;
1383
- if (preventOpenPicker) {
1384
- this.open = false;
1385
- }
1386
- else if (!this._isPhone) {
1387
- this.open = hasItems && (this.open || (hasValue && isFocused && this.isTyping));
1388
- }
1389
- const value = this.value;
1390
- const innerInput = this.getInputDOMRefSync();
1391
- if (!innerInput || !value) {
1392
- return;
1393
- }
1394
- const autoCompletedChars = innerInput.selectionEnd - innerInput.selectionStart;
1395
- // Typehead causes issues on Android devices, so we disable it for now
1396
- // If there is already a selection the autocomplete has already been performed
1397
- if (this._shouldAutocomplete && !Icons.P$1() && !autoCompletedChars && !this._isKeyNavigation) {
1398
- const item = this._getFirstMatchingItem(value);
1399
- if (item) {
1400
- if (!this._isComposing) {
1401
- this._handleTypeAhead(item);
1402
- }
1403
- this._selectMatchingItem(item);
1404
- }
1405
- }
1406
- }
1407
- onAfterRendering() {
1408
- const innerInput = this.getInputDOMRefSync();
1409
- if (this.showSuggestions && this.Suggestions?._getPicker()) {
1410
- this._listWidth = this.Suggestions._getListWidth();
1411
- // disabled ItemNavigation from the list since we are not using it
1412
- this.Suggestions._getList()._itemNavigation._getItems = () => [];
1413
- }
1414
- if (this._performTextSelection) {
1415
- // this is required to syncronize lit-html input's value and user's input
1416
- // lit-html does not sync its stored value for the value property when the user is typing
1417
- if (innerInput.value !== this._innerValue) {
1418
- innerInput.value = this._innerValue;
1419
- }
1420
- if (this.typedInValue.length && this.value.length) {
1421
- innerInput.setSelectionRange(this.typedInValue.length, this.value.length);
1422
- }
1423
- this.fireDecoratorEvent("type-ahead");
1424
- }
1425
- this._performTextSelection = false;
1426
- if (!webcomponentsBase.n$2(this._valueStateLinks, this.linksInAriaValueStateHiddenText)) {
1427
- this._removeLinksEventListeners();
1428
- this._addLinksEventListeners();
1429
- this._valueStateLinks = this.linksInAriaValueStateHiddenText;
1430
- }
1431
- }
1432
- _onkeydown(e) {
1433
- this._isKeyNavigation = true;
1434
- this._shouldAutocomplete = !this.noTypeahead && !(webcomponentsBase.Q(e) || webcomponentsBase.X(e) || webcomponentsBase.m$2(e));
1435
- if (webcomponentsBase.P(e)) {
1436
- return this._handleUp(e);
1437
- }
1438
- if (webcomponentsBase._(e)) {
1439
- return this._handleDown(e);
1440
- }
1441
- if (webcomponentsBase.A(e)) {
1442
- return this._handleSpace(e);
1443
- }
1444
- if (webcomponentsBase.x(e)) {
1445
- return this._handleTab();
1446
- }
1447
- if (webcomponentsBase.b$1(e)) {
1448
- const isValueUnchanged = this.previousValue === this.getInputDOMRefSync().value;
1449
- const shouldSubmit = this._internals.form && this._internals.form.querySelectorAll("[ui5-input]").length === 1;
1450
- this._enterKeyDown = true;
1451
- if (isValueUnchanged && shouldSubmit) {
1452
- webcomponentsBase.i$1(this);
1453
- }
1454
- return this._handleEnter(e);
1455
- }
1456
- if (webcomponentsBase.j(e)) {
1457
- return this._handlePageUp(e);
1458
- }
1459
- if (webcomponentsBase.q(e)) {
1460
- return this._handlePageDown(e);
1461
- }
1462
- if (webcomponentsBase.M(e)) {
1463
- return this._handleHome(e);
1464
- }
1465
- if (webcomponentsBase.n(e)) {
1466
- return this._handleEnd(e);
1467
- }
1468
- if (webcomponentsBase.m$2(e)) {
1469
- return this._handleEscape();
1470
- }
1471
- if (webcomponentsBase.Co(e)) {
1472
- return this._handleCtrlAltF8();
1473
- }
1474
- if (this.showSuggestions) {
1475
- this._clearPopoverFocusAndSelection();
1476
- }
1477
- this._isKeyNavigation = false;
1478
- }
1479
- _onkeyup(e) {
1480
- // The native Delete event does not update the value property "on time".
1481
- // So, the (native) change event is always fired with the old value
1482
- if (webcomponentsBase.X(e)) {
1483
- this.value = e.target.value;
1484
- }
1485
- this._enterKeyDown = false;
1486
- }
1487
- get currentItemIndex() {
1488
- const allItems = this.Suggestions?._getItems();
1489
- const currentItem = allItems.find(item => { return item.selected || item.focused; });
1490
- const indexOfCurrentItem = currentItem ? allItems.indexOf(currentItem) : -1;
1491
- return indexOfCurrentItem;
1492
- }
1493
- _handleUp(e) {
1494
- if (this.Suggestions?.isOpened()) {
1495
- this.Suggestions.onUp(e, this.currentItemIndex);
1496
- }
1497
- }
1498
- _handleDown(e) {
1499
- if (this.Suggestions?.isOpened()) {
1500
- this.Suggestions.onDown(e, this.currentItemIndex);
1501
- }
1502
- }
1503
- _handleSpace(e) {
1504
- if (this.Suggestions) {
1505
- this.Suggestions.onSpace(e);
1506
- }
1507
- }
1508
- _handleTab() {
1509
- if (this.Suggestions && (this.previousValue !== this.value)) {
1510
- this.Suggestions.onTab();
1511
- }
1512
- }
1513
- _handleCtrlAltF8() {
1514
- this._handleLinkNavigation = true;
1515
- const links = this.linksInAriaValueStateHiddenText;
1516
- if (links.length) {
1517
- links[0].focus();
1518
- }
1519
- }
1520
- _addLinksEventListeners() {
1521
- const links = this.linksInAriaValueStateHiddenText;
1522
- links.forEach((link, index) => {
1523
- this._linksListenersArray.push((e) => {
1524
- f(e, links, index, {
1525
- closeValueState: () => {
1526
- if (this.Suggestions?.isOpened()) {
1527
- this.Suggestions?.close();
1528
- }
1529
- if (this.valueStateOpen) {
1530
- this.closeValueStatePopover();
1531
- }
1532
- },
1533
- focusInput: () => {
1534
- this._handleLinkNavigation = false;
1535
- this.getInputDOMRef().focus();
1536
- },
1537
- navigateToItem: () => {
1538
- if (this._handleLinkNavigation) {
1539
- this._handleLinkNavigation = false;
1540
- if (this.Suggestions?.isOpened()) {
1541
- this.innerFocusIn();
1542
- (this.getInputDOMRef()).focus();
1543
- this.Suggestions.onDown(e, this.currentItemIndex);
1544
- }
1545
- }
1546
- else {
1547
- this._handleDown(e);
1548
- }
1549
- },
1550
- isPopoverOpen: () => { return (this.Suggestions && this.Suggestions?.isOpened()) || false; },
1551
- });
1552
- });
1553
- link.addEventListener("keydown", this._linksListenersArray[index]);
1554
- });
1555
- }
1556
- _removeLinksEventListeners() {
1557
- const links = this.linksInAriaValueStateHiddenText;
1558
- links.forEach((link, index) => {
1559
- link.removeEventListener("keydown", this._linksListenersArray[index]);
1560
- });
1561
- this._linksListenersArray = [];
1562
- this._handleLinkNavigation = false;
1563
- }
1564
- _handleEnter(e) {
1565
- // if a group item is focused, this is false
1566
- const suggestionItemPressed = !!(this.Suggestions?.onEnter(e));
1567
- const innerInput = this.getInputDOMRefSync();
1568
- const matchingItem = this._selectableItems.find(item => {
1569
- return item.text === this.value;
1570
- });
1571
- if (matchingItem) {
1572
- const itemText = matchingItem.text || "";
1573
- innerInput.setSelectionRange(itemText.length, itemText.length);
1574
- if (!suggestionItemPressed) {
1575
- this.fireSelectionChange(matchingItem, true);
1576
- this.acceptSuggestion(matchingItem, true);
1577
- this.open = false;
1578
- }
1579
- }
1580
- if (this._isPhone && !this._flattenItems.length && !this.isTypeNumber) {
1581
- innerInput.setSelectionRange(this.value.length, this.value.length);
1582
- }
1583
- if (!suggestionItemPressed) {
1584
- this.lastConfirmedValue = this.value;
1585
- return;
1586
- }
1587
- this.focused = true;
1588
- }
1589
- _handlePageUp(e) {
1590
- if (this._isSuggestionsFocused) {
1591
- this.Suggestions?.onPageUp(e);
1592
- }
1593
- else {
1594
- e.preventDefault();
1595
- }
1596
- }
1597
- _handlePageDown(e) {
1598
- if (this._isSuggestionsFocused) {
1599
- this.Suggestions?.onPageDown(e);
1600
- }
1601
- else {
1602
- e.preventDefault();
1603
- }
1604
- }
1605
- _handleHome(e) {
1606
- if (this._isSuggestionsFocused) {
1607
- this.Suggestions?.onHome(e);
1608
- }
1609
- }
1610
- _handleEnd(e) {
1611
- if (this._isSuggestionsFocused) {
1612
- this.Suggestions?.onEnd(e);
1613
- }
1614
- }
1615
- _handleEscape() {
1616
- const hasSuggestions = this.showSuggestions && !!this.Suggestions;
1617
- const isOpen = hasSuggestions && this.open;
1618
- const innerInput = this.getInputDOMRefSync();
1619
- const isAutoCompleted = innerInput.selectionEnd - innerInput.selectionStart > 0;
1620
- this.isTyping = false;
1621
- if (this.value !== this.previousValue && this.value !== this.lastConfirmedValue && !this.open) {
1622
- this.value = this.lastConfirmedValue ? this.lastConfirmedValue : this.previousValue;
1623
- this.fireDecoratorEvent(INPUT_EVENTS.INPUT, { inputType: "" });
1624
- return;
1625
- }
1626
- if (!isOpen) {
1627
- this.value = this.lastConfirmedValue ? this.lastConfirmedValue : this.previousValue;
1628
- return;
1629
- }
1630
- if (isOpen && this.Suggestions?._isItemOnTarget()) {
1631
- // Restore the value.
1632
- this.value = this.typedInValue || this.valueBeforeSelectionStart;
1633
- this.focused = true;
1634
- return;
1635
- }
1636
- if (isAutoCompleted) {
1637
- this.value = this.typedInValue;
1638
- }
1639
- this.focused = true;
1640
- }
1641
- _onfocusin(e) {
1642
- this.focused = true; // invalidating property
1643
- if (!this._focusedAfterClear) {
1644
- this.previousValue = this.value;
1645
- }
1646
- this.valueBeforeSelectionStart = this.value;
1647
- this._inputIconFocused = !!e.target && e.target === this.querySelector("[ui5-icon]");
1648
- this._focusedAfterClear = false;
1649
- }
1650
- /**
1651
- * Called on "focusin" of the native input HTML Element.
1652
- * **Note:** implemented in MultiInput, but used in the Input template.
1653
- */
1654
- innerFocusIn() { }
1655
- _onfocusout(e) {
1656
- const toBeFocused = e.relatedTarget;
1657
- if (this.Suggestions?._getPicker().contains(toBeFocused) || this.contains(toBeFocused) || this.getSlottedNodes("valueStateMessage").some(el => el.contains(toBeFocused))) {
1658
- return;
1659
- }
1660
- this._keepInnerValue = false;
1661
- this.focused = false; // invalidating property
1662
- this._isChangeTriggeredBySuggestion = false;
1663
- if (this.showClearIcon && !this._effectiveShowClearIcon) {
1664
- this._clearIconClicked = false;
1665
- this._handleChange();
1666
- }
1667
- this.open = false;
1668
- this._clearPopoverFocusAndSelection();
1669
- if (!this._clearIconClicked) {
1670
- this.previousValue = "";
1671
- }
1672
- this.lastConfirmedValue = "";
1673
- this.isTyping = false;
1674
- if ((this.value !== this.previousValue) && this.showClearIcon) {
1675
- this._clearIconClicked = false;
1676
- }
1677
- }
1678
- _clearPopoverFocusAndSelection() {
1679
- if (!this.showSuggestions || !this.Suggestions) {
1680
- return;
1681
- }
1682
- this.hasSuggestionItemSelected = false;
1683
- this.Suggestions?._deselectItems();
1684
- this.Suggestions?._clearItemFocus();
1685
- }
1686
- _click() {
1687
- if (Icons.d() && !this.readonly && this.Suggestions) {
1688
- this.blur();
1689
- this.open = true;
1690
- }
1691
- }
1692
- _handleChange() {
1693
- const shouldSubmit = this._internals.form && this._internals.form.querySelectorAll("[ui5-input]").length === 1;
1694
- if (this._clearIconClicked) {
1695
- this._clearIconClicked = false;
1696
- return;
1697
- }
1698
- const fireChange = () => {
1699
- if (!this._isChangeTriggeredBySuggestion) {
1700
- this.fireDecoratorEvent(INPUT_EVENTS.CHANGE);
1701
- }
1702
- this.previousValue = this.value;
1703
- this.typedInValue = this.value;
1704
- this._isChangeTriggeredBySuggestion = false;
1705
- };
1706
- if (this.previousValue !== this.getInputDOMRefSync().value) {
1707
- // if picker is open there might be a selected item, wait next tick to get the value applied
1708
- if (this.Suggestions?._getPicker().open && this._flattenItems.some(item => item.hasAttribute("ui5-suggestion-item") && item.selected)) {
1709
- this._changeToBeFired = true;
1710
- }
1711
- else {
1712
- fireChange();
1713
- if (this._enterKeyDown && shouldSubmit) {
1714
- webcomponentsBase.i$1(this);
1715
- }
1716
- }
1717
- }
1718
- }
1719
- _clear() {
1720
- const valueBeforeClear = this.value;
1721
- this.value = "";
1722
- const prevented = !this.fireDecoratorEvent(INPUT_EVENTS.INPUT, { inputType: "" });
1723
- if (prevented) {
1724
- this.value = valueBeforeClear;
1725
- return;
1726
- }
1727
- this.typedInValue = "";
1728
- if (!this._isPhone) {
1729
- this.fireResetSelectionChange();
1730
- this.focus();
1731
- this._focusedAfterClear = true;
1732
- }
1733
- }
1734
- _iconMouseDown() {
1735
- this._clearIconClicked = true;
1736
- }
1737
- _scroll(e) {
1738
- this.fireDecoratorEvent("suggestion-scroll", {
1739
- scrollTop: e.detail.scrollTop,
1740
- scrollContainer: e.detail.targetRef,
1741
- });
1742
- }
1743
- _handleSelect() {
1744
- this.fireDecoratorEvent("select");
1745
- }
1746
- _handleInput(e) {
1747
- const eventType = (e.detail && e.detail.inputType) || "";
1748
- this._input(e, eventType);
1749
- }
1750
- _handleNativeInput(e) {
1751
- const eventType = e.inputType || "";
1752
- this._input(e, eventType);
1753
- }
1754
- _input(e, eventType) {
1755
- const inputDomRef = this.getInputDOMRefSync();
1756
- const emptyValueFiredOnNumberInput = this.value && this.isTypeNumber && !inputDomRef.value;
1757
- this._keepInnerValue = false;
1758
- const allowedEventTypes = [
1759
- "deleteWordBackward",
1760
- "deleteWordForward",
1761
- "deleteSoftLineBackward",
1762
- "deleteSoftLineForward",
1763
- "deleteEntireSoftLine",
1764
- "deleteHardLineBackward",
1765
- "deleteHardLineForward",
1766
- "deleteByDrag",
1767
- "deleteByCut",
1768
- "deleteContent",
1769
- "deleteContentBackward",
1770
- "deleteContentForward",
1771
- "historyUndo",
1772
- ];
1773
- this._shouldAutocomplete = !allowedEventTypes.includes(eventType) && !this.noTypeahead;
1774
- if (e instanceof InputEvent) {
1775
- // ---- Special cases of numeric Input ----
1776
- // ---------------- Start -----------------
1777
- // When the last character after the delimiter is removed.
1778
- // In such cases, we want to skip the re-rendering of the
1779
- // component as this leads to cursor repositioning and causes user experience issues.
1780
- // There are few scenarios:
1781
- // Example: type "123.4" and press BACKSPACE - the native input is firing event with the whole part as value (123).
1782
- // Pressing BACKSPACE again will remove the delimiter and the native input will fire event with the whole part as value again (123).
1783
- // Example: type "123.456", select/mark "456" and press BACKSPACE - the native input is firing event with the whole part as value (123).
1784
- // Example: type "123.456", select/mark "123.456" and press BACKSPACE - the native input is firing event with empty value.
1785
- const delimiterCase = this.isTypeNumber
1786
- && (e.inputType === "deleteContentForward" || e.inputType === "deleteContentBackward")
1787
- && !e.target.value.includes(".")
1788
- && this.value.includes(".");
1789
- // Handle special numeric notation with "e", example "12.5e12"
1790
- const eNotationCase = emptyValueFiredOnNumberInput && e.data === "e";
1791
- // Handle special numeric notation with "-", example "-3"
1792
- // When pressing BACKSPACE, the native input fires event with empty value
1793
- const minusRemovalCase = emptyValueFiredOnNumberInput
1794
- && this.value.startsWith("-")
1795
- && this.value.length === 2
1796
- && (e.inputType === "deleteContentForward" || e.inputType === "deleteContentBackward");
1797
- if (delimiterCase || eNotationCase || minusRemovalCase) {
1798
- this.value = e.target.value;
1799
- this._keepInnerValue = true;
1800
- }
1801
- // ----------------- End ------------------
1802
- }
1803
- if (e.target === inputDomRef) {
1804
- this.focused = true;
1805
- // stop the native event, as the semantic "input" would be fired.
1806
- e.stopImmediatePropagation();
1807
- }
1808
- this.fireEventByAction(INPUT_ACTIONS.ACTION_ENTER, e);
1809
- this.hasSuggestionItemSelected = false;
1810
- if (this.Suggestions) {
1811
- this.Suggestions.updateSelectedItemPosition(-1);
1812
- }
1813
- this.isTyping = true;
1814
- }
1815
- _startsWithMatchingItems(str) {
1816
- return StartsWith(str, this._selectableItems, "text");
1817
- }
1818
- _getFirstMatchingItem(current) {
1819
- if (!this._flattenItems.length) {
1820
- return;
1821
- }
1822
- const matchingItems = this._startsWithMatchingItems(current).filter(item => !this._isGroupItem(item));
1823
- if (matchingItems.length) {
1824
- return matchingItems[0];
1825
- }
1826
- }
1827
- _handleSelectionChange(e) {
1828
- this.Suggestions?.onItemPress(e);
1829
- }
1830
- _selectMatchingItem(item) {
1831
- item.selected = true;
1832
- }
1833
- _handleTypeAhead(item) {
1834
- const value = item.text ? item.text : "";
1835
- this._innerValue = value;
1836
- this.value = value;
1837
- this._performTextSelection = true;
1838
- this._shouldAutocomplete = false;
1839
- }
1840
- _handleResize() {
1841
- this._inputWidth = this.offsetWidth;
1842
- }
1843
- _updateAssociatedLabelsTexts() {
1844
- this._associatedLabelsTexts = AccessibilityTextsHelper.M(this);
1845
- this._accessibleLabelsRefTexts = AccessibilityTextsHelper.E(this);
1846
- this._associatedDescriptionRefTexts = AccessibilityTextsHelper.p(this);
1847
- }
1848
- _closePicker() {
1849
- this.open = false;
1850
- }
1851
- _afterOpenPicker() {
1852
- // Set initial focus to the native input
1853
- if (Icons.d()) {
1854
- (this.getInputDOMRef()).focus();
1855
- this._composition?.addEventListeners();
1856
- }
1857
- this._handlePickerAfterOpen();
1858
- }
1859
- _afterClosePicker() {
1860
- this.announceSelectedItem();
1861
- // close device's keyboard and prevent further typing
1862
- if (Icons.d()) {
1863
- this.blur();
1864
- this.focused = false;
1865
- }
1866
- if (this._changeToBeFired && !this._isChangeTriggeredBySuggestion) {
1867
- this.previousValue = this.value;
1868
- this.fireDecoratorEvent(INPUT_EVENTS.CHANGE);
1869
- }
1870
- else {
1871
- this._isChangeTriggeredBySuggestion = false;
1872
- }
1873
- this._changeToBeFired = false;
1874
- this.open = false;
1875
- this.isTyping = false;
1876
- if (this.hasSuggestionItemSelected) {
1877
- this.focus();
1878
- }
1879
- this._handlePickerAfterClose();
1880
- }
1881
- _handlePickerAfterOpen() {
1882
- this.fireDecoratorEvent("open");
1883
- }
1884
- _handlePickerAfterClose() {
1885
- this.Suggestions?._onClose();
1886
- this.fireDecoratorEvent("close");
1887
- }
1888
- openValueStatePopover() {
1889
- this.valueStateOpen = true;
1890
- }
1891
- closeValueStatePopover() {
1892
- this.valueStateOpen = false;
1893
- }
1894
- _handleValueStatePopoverAfterClose() {
1895
- this.valueStateOpen = false;
1896
- this._handleLinkNavigation = false;
1897
- }
1898
- _getValueStatePopover() {
1899
- return this.shadowRoot.querySelector("[ui5-popover]");
1900
- }
1901
- enableSuggestions() {
1902
- if (this.Suggestions) {
1903
- return;
1904
- }
1905
- const setup = (Suggestions) => {
1906
- Suggestions.i18nBundle = Input_1.i18nBundle;
1907
- this.Suggestions = new Suggestions(this, "suggestionItems", true, false);
1908
- };
1909
- // If the feature is preloaded (the user manually imported InputSuggestions.js), it is already available on the constructor
1910
- if (Input_1.SuggestionsClass) {
1911
- setup(Input_1.SuggestionsClass);
1912
- // If feature is not preloaded, load it dynamically
1913
- }
1914
- else {
1915
- new Promise(function (resolve, reject) { require(['sap/ushell/thirdparty/_dynamics/InputSuggestions'], resolve, reject); }).then(SuggestionsModule => {
1916
- setup(SuggestionsModule.default);
1917
- });
1918
- }
1919
- }
1920
- /**
1921
- * Enables IME composition handling.
1922
- * Dynamically loads the InputComposition feature and sets up event listeners.
1923
- * @private
1924
- */
1925
- _enableComposition() {
1926
- if (this._composition) {
1927
- return;
1928
- }
1929
- const setup = (FeatureClass) => {
1930
- this._composition = new FeatureClass({
1931
- getInputEl: () => this.getInputDOMRefSync(),
1932
- updateCompositionState: (isComposing) => {
1933
- this._isComposing = isComposing;
1934
- },
1935
- });
1936
- this._composition.addEventListeners();
1937
- };
1938
- if (Input_1.composition) {
1939
- setup(Input_1.composition);
1940
- }
1941
- else {
1942
- new Promise(function (resolve, reject) { require(['sap/ushell/thirdparty/_dynamics/InputComposition'], resolve, reject); }).then(CompositionModule => {
1943
- Input_1.composition = CompositionModule.default;
1944
- setup(CompositionModule.default);
1945
- });
1946
- }
1947
- }
1948
- acceptSuggestion(item, keyboardUsed) {
1949
- if (this._isGroupItem(item)) {
1950
- return;
1951
- }
1952
- const itemText = item.text || "";
1953
- const fireChange = keyboardUsed
1954
- ? this.valueBeforeItemSelection !== itemText : this.previousValue !== itemText;
1955
- this.hasSuggestionItemSelected = true;
1956
- this.value = itemText;
1957
- if (fireChange && (this.previousValue !== itemText)) {
1958
- this.valueBeforeItemSelection = itemText;
1959
- this.lastConfirmedValue = itemText;
1960
- this._performTextSelection = true;
1961
- this.fireDecoratorEvent(INPUT_EVENTS.CHANGE);
1962
- this._isChangeTriggeredBySuggestion = true;
1963
- // value might change in the change event handler
1964
- this.typedInValue = this.value;
1965
- this.previousValue = this.value;
1966
- }
1967
- this.valueBeforeSelectionStart = "";
1968
- this.isTyping = false;
1969
- this.open = false;
1970
- }
1971
- /**
1972
- * Updates the input value on item select.
1973
- * @param item The item that is on select
1974
- */
1975
- updateValueOnSelect(item) {
1976
- const itemValue = this._isGroupItem(item) ? this.valueBeforeSelectionStart : item.text;
1977
- this.value = itemValue || "";
1978
- this._performTextSelection = true;
1979
- }
1980
- fireEventByAction(action, e) {
1981
- const valueBeforeInput = this.value;
1982
- const inputRef = this.getInputDOMRefSync();
1983
- if (this.disabled || this.readonly) {
1984
- return;
1985
- }
1986
- const inputValue = this.getInputValue();
1987
- const isUserInput = action === INPUT_ACTIONS.ACTION_ENTER;
1988
- this.value = inputValue;
1989
- this.typedInValue = inputValue;
1990
- this.valueBeforeSelectionStart = inputValue;
1991
- const valueAfterInput = this.value;
1992
- if (isUserInput) { // input
1993
- const inputType = e.inputType || "";
1994
- const prevented = !this.fireDecoratorEvent(INPUT_EVENTS.INPUT, { inputType });
1995
- if (prevented) {
1996
- // if the value is not changed after preventing the input event, revert the value
1997
- if (valueAfterInput === this.value) {
1998
- this.value = valueBeforeInput;
1999
- }
2000
- inputRef && (inputRef.value = this.value);
2001
- }
2002
- this.fireResetSelectionChange();
2003
- }
2004
- }
2005
- getInputValue() {
2006
- const domRef = this.getDomRef();
2007
- if (domRef) {
2008
- return (this.getInputDOMRef()).value;
2009
- }
2010
- return "";
2011
- }
2012
- getInputDOMRef() {
2013
- if (Icons.d() && this.Suggestions) {
2014
- return this.Suggestions._getPicker().querySelector(".ui5-input-inner-phone");
2015
- }
2016
- return this.nativeInput;
2017
- }
2018
- getInputDOMRefSync() {
2019
- if (Icons.d() && this.Suggestions?._getPicker()) {
2020
- return this.Suggestions._getPicker().querySelector(".ui5-input-inner-phone").shadowRoot.querySelector("input");
2021
- }
2022
- return this.nativeInput;
2023
- }
2024
- /**
2025
- * Returns a reference to the native input element
2026
- * @protected
2027
- */
2028
- get nativeInput() {
2029
- const domRef = this.getDomRef();
2030
- return domRef ? domRef.querySelector(`input`) : null;
2031
- }
2032
- get nativeInputWidth() {
2033
- return this.nativeInput ? this.nativeInput.offsetWidth : 0;
2034
- }
2035
- /**
2036
- * Returns if the suggestions popover is scrollable.
2037
- * The method returns `Promise` that resolves to true,
2038
- * if the popup is scrollable and false otherwise.
2039
- */
2040
- isSuggestionsScrollable() {
2041
- if (!this.Suggestions) {
2042
- return Promise.resolve(false);
2043
- }
2044
- return this.Suggestions?._isScrollable();
2045
- }
2046
- onItemMouseDown(e) {
2047
- e.preventDefault();
2048
- }
2049
- onItemSelected(suggestionItem, keyboardUsed) {
2050
- const shouldFireSelectionChange = !keyboardUsed && !suggestionItem?.focused && this.valueBeforeItemSelection !== suggestionItem.text;
2051
- if (shouldFireSelectionChange) {
2052
- this.fireSelectionChange(suggestionItem, true);
2053
- }
2054
- this.acceptSuggestion(suggestionItem, keyboardUsed);
2055
- }
2056
- _handleSuggestionItemPress(e) {
2057
- this.Suggestions?.onItemPress(e);
2058
- }
2059
- onItemSelect(item) {
2060
- this.valueBeforeItemSelection = this.value;
2061
- this.updateValueOnSelect(item);
2062
- this.announceSelectedItem();
2063
- this.fireSelectionChange(item, true);
2064
- }
2065
- get _flattenItems() {
2066
- return this.getSlottedNodes("suggestionItems").flatMap(item => {
2067
- return this._isGroupItem(item) ? [item, ...item.items] : [item];
2068
- });
2069
- }
2070
- get _selectableItems() {
2071
- return this._flattenItems.filter(item => !this._isGroupItem(item));
2072
- }
2073
- get valueStateTypeMappings() {
2074
- return {
2075
- "Positive": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_SUCCESS),
2076
- "Information": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_INFORMATION),
2077
- "Negative": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_ERROR),
2078
- "Critical": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_TYPE_WARNING),
2079
- };
2080
- }
2081
- valueStateTextMappings() {
2082
- return {
2083
- "Positive": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_SUCCESS),
2084
- "Information": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_INFORMATION),
2085
- "Negative": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_ERROR),
2086
- "Critical": Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_WARNING),
2087
- };
2088
- }
2089
- announceSelectedItem() {
2090
- const invisibleText = this.shadowRoot.querySelector(`#selectionText`);
2091
- if (invisibleText) {
2092
- invisibleText.textContent = this.itemSelectionAnnounce;
2093
- }
2094
- }
2095
- fireSelectionChange(item, isValueFromSuggestions) {
2096
- if (this.Suggestions) {
2097
- this.fireDecoratorEvent(INPUT_EVENTS.SELECTION_CHANGE, { item });
2098
- this._isLatestValueFromSuggestions = isValueFromSuggestions;
2099
- }
2100
- }
2101
- fireResetSelectionChange() {
2102
- if (this._isLatestValueFromSuggestions) {
2103
- this.fireSelectionChange(null, false);
2104
- this.valueBeforeItemSelection = this.value;
2105
- }
2106
- }
2107
- get _readonly() {
2108
- return this.readonly && !this.disabled;
2109
- }
2110
- get _headerTitleText() {
2111
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS_TITLE);
2112
- }
2113
- get _suggestionsOkButtonText() {
2114
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS_OK_BUTTON);
2115
- }
2116
- get _suggestionsCancelButtonText() {
2117
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS_CANCEL_BUTTON);
2118
- }
2119
- get clearIconAccessibleName() {
2120
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_CLEAR_ICON_ACC_NAME);
2121
- }
2122
- get _popupLabel() {
2123
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_AVALIABLE_VALUES);
2124
- }
2125
- get inputType() {
2126
- return this.type;
2127
- }
2128
- get inputNativeType() {
2129
- return this.type.toLowerCase();
2130
- }
2131
- get isTypeNumber() {
2132
- return this.type === InputType$1.Number;
2133
- }
2134
- get suggestionsTextId() {
2135
- return this.showSuggestions ? `suggestionsText` : "";
2136
- }
2137
- get valueStateTextId() {
2138
- return this.hasValueState ? `valueStateDesc` : "";
2139
- }
2140
- get _accInfoAriaDescription() {
2141
- return (this._inputAccInfo && this._inputAccInfo.ariaDescription) || "";
2142
- }
2143
- get _accInfoAriaDescriptionId() {
2144
- const hasAriaDescription = this._accInfoAriaDescription !== "";
2145
- return hasAriaDescription ? "descr" : "";
2146
- }
2147
- get ariaDescriptionText() {
2148
- return this._associatedDescriptionRefTexts || AccessibilityTextsHelper.L(this);
2149
- }
2150
- get ariaDescriptionTextId() {
2151
- return this.ariaDescriptionText ? "accessibleDescription" : "";
2152
- }
2153
- get ariaDescribedByIds() {
2154
- return [
2155
- this.suggestionsTextId,
2156
- this.valueStateTextId,
2157
- this._valueStateLinksShortcutsTextAccId,
2158
- this._inputAccInfo.ariaDescribedBy,
2159
- this._accInfoAriaDescriptionId,
2160
- this.ariaDescriptionTextId,
2161
- ].filter(Boolean).join(" ");
2162
- }
2163
- get accInfo() {
2164
- const ariaHasPopupDefault = this.showSuggestions ? "dialog" : undefined;
2165
- const ariaAutoCompleteDefault = this.showSuggestions ? "list" : undefined;
2166
- return {
2167
- "ariaRoledescription": this._inputAccInfo && (this._inputAccInfo.ariaRoledescription || undefined),
2168
- "ariaDescribedBy": this.ariaDescribedByIds || undefined,
2169
- "ariaInvalid": this.valueState === ValueState.o.Negative ? true : undefined,
2170
- "ariaHasPopup": this._inputAccInfo.ariaHasPopup ? this._inputAccInfo.ariaHasPopup : ariaHasPopupDefault,
2171
- "ariaAutoComplete": this._inputAccInfo.ariaAutoComplete ? this._inputAccInfo.ariaAutoComplete : ariaAutoCompleteDefault,
2172
- "role": this._inputAccInfo && this._inputAccInfo.role,
2173
- "ariaControls": this._inputAccInfo && this._inputAccInfo.ariaControls,
2174
- "ariaExpanded": this._inputAccInfo && this._inputAccInfo.ariaExpanded,
2175
- "ariaDescription": this._accInfoAriaDescription,
2176
- "accessibleDescription": this.ariaDescriptionText,
2177
- "ariaLabel": (this._inputAccInfo && this._inputAccInfo.ariaLabel) || this._accessibleLabelsRefTexts || this.accessibleName || this._associatedLabelsTexts || undefined,
2178
- };
2179
- }
2180
- get nativeInputAttributes() {
2181
- return {
2182
- "min": this.isTypeNumber ? this._nativeInputAttributes.min : undefined,
2183
- "max": this.isTypeNumber ? this._nativeInputAttributes.max : undefined,
2184
- "step": this.isTypeNumber ? (this._nativeInputAttributes.step || "any") : undefined,
2185
- };
2186
- }
2187
- get ariaValueStateHiddenText() {
2188
- if (!this.hasValueState) {
2189
- return;
2190
- }
2191
- const valueState = this.valueState !== ValueState.o.None ? this.valueStateTypeMappings[this.valueState] : "";
2192
- if (this.shouldDisplayDefaultValueStateMessage) {
2193
- return this.valueStateText ? `${valueState} ${this.valueStateText}` : valueState;
2194
- }
2195
- return this.valueStateMessage.length ? `${valueState} ${this.valueStateMessage.map(el => el.textContent).join(" ")}` : valueState;
2196
- }
2197
- get itemSelectionAnnounce() {
2198
- return this.Suggestions ? this.Suggestions.itemSelectionAnnounce : "";
2199
- }
2200
- get linksInAriaValueStateHiddenText() {
2201
- const links = [];
2202
- if (this.valueStateMessage) {
2203
- this.valueStateMessage.forEach(element => {
2204
- if (element.children.length) {
2205
- element.querySelectorAll("ui5-link").forEach(link => {
2206
- links.push(link);
2207
- });
2208
- }
2209
- });
2210
- }
2211
- return links;
2212
- }
2213
- get valueStateLinksShortcutsTextAcc() {
2214
- const links = this.linksInAriaValueStateHiddenText;
2215
- if (!links.length) {
2216
- return "";
2217
- }
2218
- if (Icons.A$1()) {
2219
- return links.length === 1
2220
- ? Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_LINK_MAC)
2221
- : Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_LINKS_MAC);
2222
- }
2223
- return links.length === 1
2224
- ? Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_LINK)
2225
- : Input_1.i18nBundle.getText(i18nDefaults.VALUE_STATE_LINKS);
2226
- }
2227
- get _valueStateLinksShortcutsTextAccId() {
2228
- return this.linksInAriaValueStateHiddenText.length > 0 ? `hiddenText-value-state-link-shortcut` : "";
2229
- }
2230
- get iconsCount() {
2231
- const slottedIconsCount = this.icon ? this.icon.length : 0;
2232
- const clearIconCount = Number(this._effectiveShowClearIcon) ?? 0;
2233
- return slottedIconsCount + clearIconCount;
2234
- }
2235
- get classes() {
2236
- return {
2237
- popover: {
2238
- "ui5-suggestions-popover": this.showSuggestions,
2239
- "ui5-popover-with-value-state-header-phone": this._isPhone && this.showSuggestions && this.hasValueStateMessage,
2240
- "ui5-popover-with-value-state-header": !this._isPhone && this.showSuggestions && this.hasValueStateMessage,
2241
- },
2242
- popoverValueState: {
2243
- "ui5-valuestatemessage-root": true,
2244
- "ui5-valuestatemessage-header": true,
2245
- "ui5-valuestatemessage--success": this.valueState === ValueState.o.Positive,
2246
- "ui5-valuestatemessage--error": this.valueState === ValueState.o.Negative,
2247
- "ui5-valuestatemessage--warning": this.valueState === ValueState.o.Critical,
2248
- "ui5-valuestatemessage--information": this.valueState === ValueState.o.Information,
2249
- },
2250
- };
2251
- }
2252
- get styles() {
2253
- const remSizeInPx = parseInt(getComputedStyle(document.documentElement).fontSize);
2254
- const stylesObject = {
2255
- suggestionPopoverHeader: {
2256
- "display": this._listWidth === 0 ? "none" : "inline-block",
2257
- "width": this._listWidth ? `${this._listWidth}px` : "",
2258
- "max-width": "inherit",
2259
- },
2260
- suggestionsPopover: {
2261
- "min-width": this._inputWidth ? `${this._inputWidth}px` : "",
2262
- "max-width": this._inputWidth && (this._inputWidth / remSizeInPx) > 40 ? `${this._inputWidth}px` : "40rem",
2263
- },
2264
- innerInput: {
2265
- "padding": "",
2266
- },
2267
- };
2268
- return stylesObject;
2269
- }
2270
- get suggestionSeparators() {
2271
- return "None";
2272
- }
2273
- get shouldDisplayOnlyValueStateMessage() {
2274
- return this.hasValueStateMessage && !this.readonly && !this.open && this.focused;
2275
- }
2276
- get shouldDisplayDefaultValueStateMessage() {
2277
- return !this.valueStateMessage.length && this.hasValueStateMessage;
2278
- }
2279
- get hasValueState() {
2280
- return this.valueState !== ValueState.o.None;
2281
- }
2282
- get hasValueStateMessage() {
2283
- return this.hasValueState && this.valueState !== ValueState.o.Positive
2284
- && (!this._inputIconFocused // Handles the cases when valueStateMessage is forwarded (from datepicker e.g.)
2285
- || !!(this._isPhone && this.Suggestions)); // Handles Input with suggestions on mobile
2286
- }
2287
- get valueStateText() {
2288
- return this.valueState !== ValueState.o.None ? this.valueStateTextMappings()[this.valueState] : undefined;
2289
- }
2290
- get suggestionsText() {
2291
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS);
2292
- }
2293
- get availableSuggestionsCount() {
2294
- if (this.showSuggestions && (this.value || this.Suggestions?.isOpened())) {
2295
- const nonGroupItems = this._selectableItems;
2296
- switch (nonGroupItems.length) {
2297
- case 0:
2298
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS_NO_HIT);
2299
- case 1:
2300
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS_ONE_HIT);
2301
- default:
2302
- return Input_1.i18nBundle.getText(i18nDefaults.INPUT_SUGGESTIONS_MORE_HITS, nonGroupItems.length);
2303
- }
2304
- }
2305
- return undefined;
2306
- }
2307
- get step() {
2308
- return this.isTypeNumber ? "any" : undefined;
2309
- }
2310
- get _isPhone() {
2311
- return Icons.d();
2312
- }
2313
- get _isSuggestionsFocused() {
2314
- return !this.focused && this.Suggestions?.isOpened();
2315
- }
2316
- /**
2317
- * Returns the placeholder value.
2318
- * @protected
2319
- */
2320
- get _placeholder() {
2321
- return this.placeholder;
2322
- }
2323
- /**
2324
- * This method is relevant for sap_horizon theme only
2325
- */
2326
- get _valueStateInputIcon() {
2327
- const iconPerValueState = {
2328
- Negative: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20ZM7.70711 13.7071C7.31658 14.0976 6.68342 14.0976 6.29289 13.7071C5.90237 13.3166 5.90237 12.6834 6.29289 12.2929L8.58579 10L6.29289 7.70711C5.90237 7.31658 5.90237 6.68342 6.29289 6.29289C6.68342 5.90237 7.31658 5.90237 7.70711 6.29289L10 8.58579L12.2929 6.29289C12.6834 5.90237 13.3166 5.90237 13.7071 6.29289C14.0976 6.68342 14.0976 7.31658 13.7071 7.70711L11.4142 10L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L10 11.4142L7.70711 13.7071Z" fill="#EE3939"/>`,
2329
- Critical: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M11.8619 0.49298C11.6823 0.187541 11.3544 0 11 0C10.6456 0 10.3177 0.187541 10.1381 0.49298L0.138066 17.493C-0.0438112 17.8022 -0.0461447 18.1851 0.13195 18.4965C0.310046 18.8079 0.641283 19 1 19H21C21.3587 19 21.69 18.8079 21.868 18.4965C22.0461 18.1851 22.0438 17.8022 21.8619 17.493L11.8619 0.49298ZM11 6C11.5523 6 12 6.44772 12 7V10C12 10.5523 11.5523 11 11 11C10.4477 11 10 10.5523 10 10V7C10 6.44772 10.4477 6 11 6ZM11 16C11.8284 16 12.5 15.3284 12.5 14.5C12.5 13.6716 11.8284 13 11 13C10.1716 13 9.5 13.6716 9.5 14.5C9.5 15.3284 10.1716 16 11 16Z" fill="#F58B00"/>`,
2330
- Positive: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10ZM14.7071 6.29289C14.3166 5.90237 13.6834 5.90237 13.2929 6.29289L8 11.5858L6.70711 10.2929C6.31658 9.90237 5.68342 9.90237 5.29289 10.2929C4.90237 10.6834 4.90237 11.3166 5.29289 11.7071L7.29289 13.7071C7.68342 14.0976 8.31658 14.0976 8.70711 13.7071L14.7071 7.70711C15.0976 7.31658 15.0976 6.68342 14.7071 6.29289Z" fill="#36A41D"/>`,
2331
- Information: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M3 0C1.34315 0 0 1.34315 0 3V15C0 16.6569 1.34315 18 3 18H15C16.6569 18 18 16.6569 18 15V3C18 1.34315 16.6569 0 15 0H3ZM9 6.5C9.82843 6.5 10.5 5.82843 10.5 5C10.5 4.17157 9.82843 3.5 9 3.5C8.17157 3.5 7.5 4.17157 7.5 5C7.5 5.82843 8.17157 6.5 9 6.5ZM9 8.5C9.55228 8.5 10 8.94772 10 9.5V13.5C10 14.0523 9.55228 14.5 9 14.5C8.44771 14.5 8 14.0523 8 13.5V9.5C8 8.94772 8.44771 8.5 9 8.5Z" fill="#1B90FF"/>`,
2332
- };
2333
- if (this.valueState !== ValueState.o.None) {
2334
- return `
2335
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 20 20" fill="none">
2336
- ${iconPerValueState[this.valueState]};
2337
- </svg>
2338
- `;
2339
- }
2340
- return "";
2341
- }
2342
- get _valueStatePopoverHorizontalAlign() {
2343
- return this.effectiveDir !== "rtl" ? "Start" : "End";
2344
- }
2345
- /**
2346
- * This method is relevant for sap_horizon theme only
2347
- */
2348
- get _valueStateMessageInputIcon() {
2349
- const iconPerValueState = {
2350
- Negative: "error",
2351
- Critical: "alert",
2352
- Positive: "sys-enter-2",
2353
- Information: "information",
2354
- };
2355
- return this.valueState !== ValueState.o.None ? iconPerValueState[this.valueState] : "";
2356
- }
2357
- /**
2358
- * Returns the caret position inside the native input
2359
- * @protected
2360
- */
2361
- getCaretPosition() {
2362
- return n(this.nativeInput);
2363
- }
2364
- /**
2365
- * Sets the caret to a certain position inside the native input
2366
- * @protected
2367
- */
2368
- setCaretPosition(pos) {
2369
- o(this.nativeInput, pos);
2370
- }
2371
- /**
2372
- * Removes the fractional part of floating-point number.
2373
- * @param value the numeric value of Input of type "Number"
2374
- */
2375
- removeFractionalPart(value) {
2376
- if (value.includes(".")) {
2377
- return value.slice(0, value.indexOf("."));
2378
- }
2379
- if (value.includes(",")) {
2380
- return value.slice(0, value.indexOf(","));
2381
- }
2382
- return value;
2383
- }
2384
- };
2385
- __decorate$4([
2386
- webcomponentsBase.s({ type: Boolean })
2387
- ], Input.prototype, "disabled", void 0);
2388
- __decorate$4([
2389
- webcomponentsBase.s({ type: Boolean })
2390
- ], Input.prototype, "highlight", void 0);
2391
- __decorate$4([
2392
- webcomponentsBase.s()
2393
- ], Input.prototype, "placeholder", void 0);
2394
- __decorate$4([
2395
- webcomponentsBase.s({ type: Boolean })
2396
- ], Input.prototype, "readonly", void 0);
2397
- __decorate$4([
2398
- webcomponentsBase.s({ type: Boolean })
2399
- ], Input.prototype, "required", void 0);
2400
- __decorate$4([
2401
- webcomponentsBase.s({ type: Boolean })
2402
- ], Input.prototype, "noTypeahead", void 0);
2403
- __decorate$4([
2404
- webcomponentsBase.s()
2405
- ], Input.prototype, "type", void 0);
2406
- __decorate$4([
2407
- webcomponentsBase.s()
2408
- ], Input.prototype, "value", void 0);
2409
- __decorate$4([
2410
- webcomponentsBase.s({ noAttribute: true })
2411
- ], Input.prototype, "_innerValue", void 0);
2412
- __decorate$4([
2413
- webcomponentsBase.s()
2414
- ], Input.prototype, "valueState", void 0);
2415
- __decorate$4([
2416
- webcomponentsBase.s()
2417
- ], Input.prototype, "name", void 0);
2418
- __decorate$4([
2419
- webcomponentsBase.s({ type: Boolean })
2420
- ], Input.prototype, "showSuggestions", void 0);
2421
- __decorate$4([
2422
- webcomponentsBase.s({ type: Number })
2423
- ], Input.prototype, "maxlength", void 0);
2424
- __decorate$4([
2425
- webcomponentsBase.s()
2426
- ], Input.prototype, "accessibleName", void 0);
2427
- __decorate$4([
2428
- webcomponentsBase.s()
2429
- ], Input.prototype, "accessibleNameRef", void 0);
2430
- __decorate$4([
2431
- webcomponentsBase.s()
2432
- ], Input.prototype, "accessibleDescription", void 0);
2433
- __decorate$4([
2434
- webcomponentsBase.s()
2435
- ], Input.prototype, "accessibleDescriptionRef", void 0);
2436
- __decorate$4([
2437
- webcomponentsBase.s({ type: Boolean })
2438
- ], Input.prototype, "showClearIcon", void 0);
2439
- __decorate$4([
2440
- webcomponentsBase.s({ type: Boolean })
2441
- ], Input.prototype, "open", void 0);
2442
- __decorate$4([
2443
- webcomponentsBase.s({ type: Boolean })
2444
- ], Input.prototype, "_effectiveShowClearIcon", void 0);
2445
- __decorate$4([
2446
- webcomponentsBase.s({ type: Boolean })
2447
- ], Input.prototype, "focused", void 0);
2448
- __decorate$4([
2449
- webcomponentsBase.s()
2450
- ], Input.prototype, "hint", void 0);
2451
- __decorate$4([
2452
- webcomponentsBase.s({ type: Boolean })
2453
- ], Input.prototype, "valueStateOpen", void 0);
2454
- __decorate$4([
2455
- webcomponentsBase.s({ type: Object })
2456
- ], Input.prototype, "_inputAccInfo", void 0);
2457
- __decorate$4([
2458
- webcomponentsBase.s({ type: Object })
2459
- ], Input.prototype, "_nativeInputAttributes", void 0);
2460
- __decorate$4([
2461
- webcomponentsBase.s({ type: Number })
2462
- ], Input.prototype, "_inputWidth", void 0);
2463
- __decorate$4([
2464
- webcomponentsBase.s({ type: Number })
2465
- ], Input.prototype, "_listWidth", void 0);
2466
- __decorate$4([
2467
- webcomponentsBase.s({ type: Boolean, noAttribute: true })
2468
- ], Input.prototype, "_inputIconFocused", void 0);
2469
- __decorate$4([
2470
- webcomponentsBase.s({ noAttribute: true })
2471
- ], Input.prototype, "_associatedLabelsTexts", void 0);
2472
- __decorate$4([
2473
- webcomponentsBase.s({ noAttribute: true })
2474
- ], Input.prototype, "_accessibleLabelsRefTexts", void 0);
2475
- __decorate$4([
2476
- webcomponentsBase.s({ noAttribute: true })
2477
- ], Input.prototype, "_associatedDescriptionRefTexts", void 0);
2478
- __decorate$4([
2479
- webcomponentsBase.s({ type: Object })
2480
- ], Input.prototype, "Suggestions", void 0);
2481
- __decorate$4([
2482
- webcomponentsBase.s({ type: Array })
2483
- ], Input.prototype, "_linksListenersArray", void 0);
2484
- __decorate$4([
2485
- webcomponentsBase.s({ type: Boolean, noAttribute: true })
2486
- ], Input.prototype, "_isComposing", void 0);
2487
- __decorate$4([
2488
- webcomponentsBase.d({ type: HTMLElement, "default": true })
2489
- ], Input.prototype, "suggestionItems", void 0);
2490
- __decorate$4([
2491
- webcomponentsBase.d()
2492
- ], Input.prototype, "icon", void 0);
2493
- __decorate$4([
2494
- webcomponentsBase.d({
2495
- type: HTMLElement,
2496
- invalidateOnChildChange: true,
2497
- })
2498
- ], Input.prototype, "valueStateMessage", void 0);
2499
- __decorate$4([
2500
- parametersBundle_css$1.i("sap/ushell/gen/ui5/webcomponents")
2501
- ], Input, "i18nBundle", void 0);
2502
- Input = Input_1 = __decorate$4([
2503
- webcomponentsBase.m({
2504
- tag: "ui5-input",
2505
- languageAware: true,
2506
- formAssociated: true,
2507
- renderer: parametersBundle_css.y,
2508
- template: InputTemplate,
2509
- styles: [
2510
- inputStyles,
2511
- ResponsivePopoverCommonCss,
2512
- ValueStateMessageCss,
2513
- SuggestionsCss,
2514
- ],
2515
- })
2516
- /**
2517
- * Fired when the input operation has finished by pressing Enter or on focusout.
2518
- * @public
2519
- */
2520
- ,
2521
- eventStrict.l("change", {
2522
- bubbles: true,
2523
- })
2524
- /**
2525
- * Fired when the value of the component changes at each keystroke,
2526
- * and when a suggestion item has been selected.
2527
- * @public
2528
- */
2529
- ,
2530
- eventStrict.l("input", {
2531
- bubbles: true,
2532
- cancelable: true,
2533
- })
2534
- /**
2535
- * Fired when some text has been selected.
2536
- *
2537
- * @since 2.0.0
2538
- * @public
2539
- */
2540
- ,
2541
- eventStrict.l("select", {
2542
- bubbles: true,
2543
- })
2544
- /**
2545
- * Fired when the user navigates to a suggestion item via the ARROW keys,
2546
- * as a preview, before the final selection.
2547
- * @param {HTMLElement} item The previewed suggestion item.
2548
- * @public
2549
- * @since 2.0.0
2550
- */
2551
- ,
2552
- eventStrict.l("selection-change", {
2553
- bubbles: true,
2554
- })
2555
- /**
2556
- * Fires when a suggestion item is autocompleted in the input.
2557
- *
2558
- * @private
2559
- */
2560
- ,
2561
- eventStrict.l("type-ahead", {
2562
- bubbles: true,
2563
- })
2564
- /**
2565
- * Fired when the user scrolls the suggestion popover.
2566
- * @param {Integer} scrollTop The current scroll position.
2567
- * @param {HTMLElement} scrollContainer The scroll container.
2568
- * @protected
2569
- * @since 1.0.0-rc.8
2570
- */
2571
- ,
2572
- eventStrict.l("suggestion-scroll", {
2573
- bubbles: true,
2574
- })
2575
- /**
2576
- * Fired when the suggestions picker is open.
2577
- * @public
2578
- * @since 2.0.0
2579
- */
2580
- ,
2581
- eventStrict.l("open", {
2582
- bubbles: true,
2583
- })
2584
- /**
2585
- * Fired when the suggestions picker is closed.
2586
- * @public
2587
- * @since 2.0.0
2588
- */
2589
- ,
2590
- eventStrict.l("close")
2591
- ], Input);
2592
- Input.define();
2593
- var Input$1 = Input;
2594
-
2595
- function SuggestionItemTemplate() {
2596
- return [ListItemBaseTemplate.call(this, { listItemContent }, { role: "option" })];
2597
- }
2598
- function listItemContent() {
2599
- return parametersBundle_css.jsx("div", { part: "content", id: "content", class: "ui5-li-content", children: parametersBundle_css.jsxs("div", { class: "ui5-li-text-wrapper", children: [parametersBundle_css.jsx("span", { part: "title", className: "ui5-li-title", dangerouslySetInnerHTML: { __html: this.markupText } }), this.additionalText &&
2600
- parametersBundle_css.jsx("span", { part: "additional-text", class: "ui5-li-additional-text", children: this.additionalText })] }) });
2601
- }
2602
-
2603
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
2604
- 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);
2605
- var styles = `:host([ui5-suggestion-item]){height:auto;min-height:var(--_ui5-v2-15-0_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-root{min-height:var(--_ui5-v2-15-0_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-content{padding-bottom:.5rem;padding-top:.5rem;box-sizing:border-box}
2606
- `;
2607
-
2608
- var __decorate$3 = (this && this.__decorate) || function (decorators, target, key, desc) {
2609
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2610
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2611
- 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;
2612
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2613
- };
2614
- /**
2615
- * @class
2616
- * The `ui5-suggestion-item` represents the suggestion item of the `ui5-input`.
2617
- * @constructor
2618
- * @extends ListItemBase
2619
- * @abstract
2620
- * @implements { IInputSuggestionItemSelectable }
2621
- * @public
2622
- */
2623
- let SuggestionItem = class SuggestionItem extends ListItemBase.ListItemBase {
2624
- constructor() {
2625
- super(...arguments);
2626
- /**
2627
- * Defines the markup text that will be displayed as suggestion.
2628
- * Used for highlighting the matching parts of the text.
2629
- *
2630
- * @since 2.0.0
2631
- * @private
2632
- */
2633
- this.markupText = "";
2634
- }
2635
- onEnterDOM() {
2636
- if (Icons.f()) {
2637
- this.setAttribute("desktop", "");
2638
- }
2639
- }
2640
- get _effectiveTabIndex() {
2641
- return -1;
2642
- }
2643
- };
2644
- __decorate$3([
2645
- webcomponentsBase.s()
2646
- ], SuggestionItem.prototype, "text", void 0);
2647
- __decorate$3([
2648
- webcomponentsBase.s()
2649
- ], SuggestionItem.prototype, "additionalText", void 0);
2650
- __decorate$3([
2651
- webcomponentsBase.s()
2652
- ], SuggestionItem.prototype, "markupText", void 0);
2653
- SuggestionItem = __decorate$3([
2654
- webcomponentsBase.m({
2655
- tag: "ui5-suggestion-item",
2656
- template: SuggestionItemTemplate,
2657
- styles: [ListItemBase.ListItemBase.styles, styles],
2658
- })
2659
- ], SuggestionItem);
2660
- SuggestionItem.define();
2661
- var SuggestionItem$1 = SuggestionItem;
2662
-
2663
- /**
2664
- * Different input key hints.
2665
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint
2666
- *
2667
- * @private
2668
- */
2669
- var InputKeyHint;
2670
- (function (InputKeyHint) {
2671
- InputKeyHint["Search"] = "search";
2672
- InputKeyHint["Go"] = "go";
2673
- InputKeyHint["Next"] = "next";
2674
- InputKeyHint["Enter"] = "enter";
2675
- InputKeyHint["Done"] = "done";
2676
- InputKeyHint["Previous"] = "previous";
2677
- InputKeyHint["Send"] = "send";
2678
- })(InputKeyHint || (InputKeyHint = {}));
2679
- var InputKeyHint$1 = InputKeyHint;
2680
-
2681
- function SearchPopoverTemplate(headerTemplate) {
2682
- return (parametersBundle_css.jsxs(ResponsivePopover.ResponsivePopover, { hideArrow: true, preventFocusRestore: true, preventInitialFocus: !Icons.d(), accessibleNameRef: "suggestions-speech-output message-area-text message-area-description", placement: ResponsivePopover.PopoverPlacement.Bottom, horizontalAlign: ResponsivePopover.PopoverHorizontalAlign.Start, open: this.open, opener: this, onOpen: this._handleOpen, onClose: this._handleClose, onBeforeClose: this._handleBeforeClose, onBeforeOpen: this._handleBeforeOpen, class: {
2683
- "ui5-search-popover": true,
2684
- "ui5-search-popover-phone": Icons.d(),
2685
- }, children: [Icons.d() ? (headerTemplate ? headerTemplate.call(this) : (parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: parametersBundle_css.jsxs("header", { slot: "header", class: "ui5-search-popup-searching-header", children: [parametersBundle_css.jsx(Input$1, { class: "ui5-search-popover-search-field", onInput: this._handleMobileInput, showClearIcon: this.showClearIcon, noTypeahead: this.noTypeahead, hint: InputKeyHint$1.Search, onKeyDown: this._onMobileInputKeydown, children: this._flattenItems.map(item => {
2686
- return (parametersBundle_css.jsx(SuggestionItem$1, { text: item.text }));
2687
- }) }), parametersBundle_css.jsx(Button.Button, { design: Button.ButtonDesign.Transparent, onClick: this._handleCancel, children: this.cancelButtonText })] }) }))) : null, parametersBundle_css.jsxs("main", { class: "ui5-search-popover-content", children: [parametersBundle_css.jsx("slot", { name: "messageArea" }), parametersBundle_css.jsx("div", { class: "search-popover-busy-wrapper", children: parametersBundle_css.jsx(BusyIndicator.BusyIndicator, { active: true }) }), this.items.length ?
2688
- parametersBundle_css.jsx(List.List, { class: "ui5-search-list", separators: List.ListSeparator.None, onKeyDown: this._onItemKeydown, accessibleRole: List.ListAccessibleRole.ListBox, onItemClick: this._onItemClick, children: parametersBundle_css.jsx("slot", {}) })
2689
- : (parametersBundle_css.jsx("slot", { name: "illustration" })), parametersBundle_css.jsx("span", { class: "ui5-hidden-text", id: "suggestions-speech-output", children: this.suggestionsText }), this.messageArea[0]?.text ? (parametersBundle_css.jsx("span", { class: "ui5-hidden-text", id: "message-area-text", children: this.messageArea[0].text })) : null, this.messageArea[0]?.description ? (parametersBundle_css.jsx("span", { class: "ui5-hidden-text", id: "message-area-description", children: this.messageArea[0].description })) : null] }), this.action.length ? (parametersBundle_css.jsx("slot", { onKeyDown: this._handleActionKeydown, name: "action", slot: "footer" })) : null] }));
2690
- }
2691
-
2692
- function SearchTemplate() {
2693
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [SearchFieldTemplate.call(this), SearchPopoverTemplate.call(this)] }));
2694
- }
2695
-
2696
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
2697
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s" + "-" + "f" + "i" + "o" + "r" + "i", "sap_horizon", async () => parametersBundle_css$2.defaultTheme);
2698
- var SearchCss = `.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}.ui5-search-popover{width:var(--search_width);margin-top:.25rem;box-sizing:border-box}.ui5-search-popup-searching-header{display:flex;gap:.5rem;width:100%;align-items:center}.ui5-search-popover::part(header){padding:.5rem 1rem;box-shadow:none;box-sizing:border-box}.ui5-search-popover::part(header):before{display:none}.ui5-search-popover::part(content){padding:0;box-shadow:none}:host([loading]) .ui5-search-popover main{min-height:2rem}.ui5-search-popover-search-field{flex:1;height:2.25rem;border-radius:var(--_ui5-v2-15-0_search_input_border_radius)}.ui5-search-popover-search-field::part(root):after{border-radius:var(--_ui5-v2-15-0_search_input_border_radius)}.ui5-search-popover-search-field::part(input){padding-inline-start:.875rem}.ui5-search-popover-search-field::part(clear-icon-wrapper){margin-inline-end:.5rem}.ui5-search-popover-loading-bi{width:100%;height:100%}::slotted([slot="action"]){width:100%;margin-top:.5rem;margin-bottom:.5rem}.search-popover-busy-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:42;width:100%;height:100%;display:none;justify-content:center;align-items:center;pointer-events:all}:host([loading]) .search-popover-busy-wrapper{display:flex;width:100%;height:100%}.search-popover-busy-wrapper [ui5-busy-indicator]{z-index:1}.search-popover-busy-wrapper:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--_ui5-v2-15-0-search-loading-overlay-background);opacity:var(--_ui5-v2-15-0-search-loading-overlay-transparency);border-radius:var(--_ui5-v2-15-0_popup_border_radius)}.ui5-search-popover-phone .ui5-search-popover-content{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.ui5-search-popover-phone .search-popover-busy-wrapper:after{border-radius:0}
2699
- `;
2700
-
2701
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
2702
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s" + "-" + "f" + "i" + "o" + "r" + "i", "sap_horizon", async () => parametersBundle_css$2.defaultTheme);
2703
- var SearchFieldCss = `:host,.ui5-shellbar-search-field-wrapper{height:2.25rem;display:flex;align-items:center}:host(:not([collapsed])),.ui5-shellbar-search-field-wrapper{min-width:18rem;max-width:36rem;margin:0;height:2.25rem;color:var(--sapShell_TextColor);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);font-style:normal;box-shadow:var(--sapField_Shadow);border-radius:var(--_ui5-v2-15-0_search_input_border_radius);box-sizing:border-box;text-align:start;background:var(--sapField_BackgroundStyle);background-color:var(--_ui5-v2-15-0-search-wrapper-background);position:relative}.ui5-shellbar-search-field-wrapper{flex:1;min-width:auto}:host(:not([collapsed]):hover),:host(:not([collapsed]):focus-within),.ui5-shellbar-search-field-wrapper:focus-within{box-shadow:var(--sapField_Hover_Shadow);background:var(--_ui5-v2-15-0-search-wrapper-hover-background);background-color:var(--_ui5-v2-15-0-search-wrapper-hover-background-color)}:host([focused-inner-input]) .ui5-search-field-root{outline:var(--_ui5-v2-15-0_search_wrapper_outline);border-radius:var(--_ui5-v2-15-0_search_input_border_radius);outline-offset:-.125rem}.ui5-search-field-root{width:100%;height:100%;position:relative;background:transparent;display:inline-block;outline:none;box-sizing:border-box;color:inherit;transition:border-color .2s ease-in-out;border-radius:var(--_ui5-v2-15-0_search_input_border_radius);overflow:hidden}.ui5-search-field-content{height:100%;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;overflow:hidden}[ui5-select]{--_ui5-v2-15-0_content_density: compact;outline:none;margin:var(--_ui5-v2-15-0_search_input_scope_margin);max-width:10rem;border-radius:var(--_ui5-v2-15-0_search_input_border_radius);border:var(--_ui5-v2-15-0-search-border);box-shadow:none;background:unset;background-color:var(--_ui5-v2-15-0-search-elements-background);height:var(--_ui5-v2-15-0-search-select-height);--_ui5-v2-15-0_select_label_color: var(--sapShell_TextColor)}[ui5-select]:hover{box-shadow:var(--sapField_Hover_Shadow)}[ui5-select]::part(icon){display:flex;justify-content:center;align-items:stretch;height:100%;padding:0 .5rem;align-self:center;border-radius:var(--_ui5-v2-15-0_search_input_border_radius);color:var(--sapShell_InteractiveTextColor)}[ui5-select]::part(popover){background-color:var(--sapShellColor)}.ui5-filter-wrapper{--_ui5-v2-15-0_button_focused_border_radius: var(--_ui5-v2-15-0_search_filter_button_border_radius)}::slotted([slot="filterButton"]){min-width:var(--_ui5-v2-15-0_search_icon_size);height:var(--_ui5-v2-15-0_search_icon_size);border:var(--_ui5-v2-15-0_search_filter_button_border);border-radius:var(--_ui5-v2-15-0_search_filter_button_border_radius);color:var(--sapShell_InteractiveTextColor);outline:none;background:var(--_ui5-v2-15-0-search-filter_button_background_color);box-sizing:border-box;margin-inline-end:.1875rem;margin-inline-start:.25rem}::slotted([slot="filterButton"]:focus-within){background-color:var(--ui5-v2-15-0_search_filter_button_background_active);border:var(--_ui5-v2-15-0_search_filter_button_border)}::slotted([slot="filterButton"]:hover){background-color:var(--sapShell_Hover_Background);border:var(--_ui5-v2-15-0_seach_filter_button_border_hover)}.ui5-search-field-inner-input{font-size:var(--sapFontSize);font-family:var(--sapFontFamily);font-style:normal;padding:.5rem 0;height:100%;width:100%;box-sizing:border-box;background-color:var(--_ui5-v2-15-0-search-elements-background);border:var(--_ui5-v2-15-0-search-border);outline:none;color:inherit;padding-inline-start:var(--_ui5-v2-15-0-search-input-start-padding);padding-inline-end:var(--_ui5-v2-15-0_search_input_end_padding)}:host([focused-inner-input]) .ui5-search-field-inner-input{outline:var(--_ui5-v2-15-0_search_input_outline);border-radius:var(--_ui5-v2-15-0_search_input_border_radius);outline-offset:-.3125rem}:host(:not([mode="Scoped"])) .ui5-search-field-inner-input{padding-inline-start:.875rem}[ui5-select]:hover,.ui5-search-field-inner-input:hover{background-color:var(--_ui5-v2-15-0-search-elements-hover-background)}[ui5-select]:focus-within,.ui5-search-field-inner-input:focus-within{background-color:var(--_ui5-v2-15-0-search-elements-active-background)}.ui5-search-field-inner-input::placeholder{font-weight:400;font-style:italic;color:var(--sapField_PlaceholderTextColor);padding-inline-start:.125rem}:host([mode="Scoped"]) .ui5-search-field-inner-input{margin-inline-start:var(--_ui5-v2-15-0_search_input_start_margin)}.ui5-search-field-separator{height:1.5rem;width:.0625rem;background:var(--_ui5-v2-15-0_search_separator_background);box-sizing:border-box}.ui5-shell-search-field-button{outline:none;min-width:var(--_ui5-v2-15-0_search_icon_size);height:var(--_ui5-v2-15-0_search_icon_size);border-radius:var(--_ui5-v2-15-0_search_icon_border_radius);box-sizing:border-box;cursor:pointer}.ui5-shell-search-field-button:not([design=Emphasized]){color:var(--sapShell_InteractiveTextColor);background-color:var(--_ui5-v2-15-0-search-elements-background);min-width:var(--_ui5-v2-15-0_search_icon_size_default);height:var(--_ui5-v2-15-0_search_icon_size_default);border-radius:var(--_ui5-v2-15-0_shellbar_button_border_radius)}.ui5-shell-search-field-button:not([design=Emphasized]):hover{background-color:var(--sapShell_Hover_Background);border-color:var(--sapButton_Lite_Hover_BorderColor);border-radius:var(--_ui5-v2-15-0_shellbar_button_border_radius)}.ui5-shell-search-field-button[desktop]:not([active])::part(button):after,.ui5-shell-search-field-button:not([active])::part(button):focus-visible:after,.ui5-shell-search-field-button[desktop][active][design=Emphasized]::part(button):focus-within:after,.ui5-shell-search-field-button[active][design=Emphasized]::part(button):focus-visible:after,.ui5-shell-search-field-button[desktop][active]::part(button):focus-within:before,.ui5-shell-search-field-button[active]::part(button):focus-visible:before,.ui5-shell-search-field-button[design=Emphasized][desktop]::part(button):focus-within:before,.ui5-shell-search-field-button[design=Emphasized]::part(button):focus-visible:before{border-radius:var(--_ui5-v2-15-0_shellbar_button_border_radius)}.ui5-shell-search-field-icon{display:flex;justify-content:center;align-items:stretch;cursor:pointer;outline:none;min-width:var(--_ui5-v2-15-0_search_icon_size);height:var(--_ui5-v2-15-0_search_icon_size);border-radius:var(--_ui5-v2-15-0_search_icon_border_radius);margin-inline-end:.25rem;margin-inline-start:.1875rem;box-sizing:border-box;color:var(--sapShell_InteractiveTextColor);background-color:var(--_ui5-v2-15-0-search-elements-background);border:var(--_ui5-v2-15-0-search-icon-border)}.ui5-shell-search-field-icon::part(root){padding:var(--_ui5-v2-15-0_search_icon_padding);width:1rem;height:1rem;outline-offset:-.125rem}.ui5-shell-search-field-icon:hover::part(root){padding:var(--_ui5-v2-15-0_search_icon_hover_padding);outline-offset:-.1875rem}.ui5-shell-search-field-icon:focus::part(root){border-radius:var(--_ui5-v2-15-0_search_icon_border_radius)}.ui5-shell-search-field-icon:hover,.ui5-shell-search-field-input-button:hover{background:var(--sapShell_Hover_Background);border:1px solid var(--sapButton_Lite_Hover_BorderColor);color:var(--sapShell_InteractiveTextColor)}.ui5-shell-search-field-search-icon{background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor);color:var(--sapButton_Emphasized_TextColor)}.ui5-search-field-select{--_ui5-v2-15-0_input_focus_border_radius: var(--_ui5-v2-15-0_search_input_border_radius)}.ui5-search-field-select:hover,.ui5-search-field-select[focused]{background:var(--_ui5-v2-15-0-search-wrapper-hover-background-color)}.ui5-search-field-select::part(icon-wrapper){border-radius:var(--_ui5-v2-15-0_search_input_border_radius);height:100%}.ui5-search-field-select[focused]::part(icon-wrapper){box-shadow:var(--sapField_Hover_Shadow)}:host(:not([collapsed]):hover):has([ui5-select]:hover){background:var(--_ui5-v2-15-0-search-wrapper-background)}:host(:not([collapsed])):has([ui5-select][focused]){background:var(--_ui5-v2-15-0-search-wrapper-background)}.ui5-search-field-inner-input::selection{background:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}
2704
- `;
2705
-
2706
- var __decorate$2 = (this && this.__decorate) || function (decorators, target, key, desc) {
2707
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2708
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2709
- 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;
2710
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2711
- };
2712
- var SearchField_1;
2713
- /**
2714
- * @class
2715
- *
2716
- * ### Overview
2717
- *
2718
- * A `ui5-search-field` is an input field, used for user search.
2719
- *
2720
- * The `ui5-search-field` consists of several elements parts:
2721
- * - Scope - displays a select in the beggining of the component, used for filtering results by their scope.
2722
- * - Input field - for user input value
2723
- * - Clear button - gives the possibility for deleting the entered value
2724
- * - Search button - a primary button for performing search, when the user has entered a search term
2725
- *
2726
- * ### ES6 Module Import
2727
- *
2728
- * `import "sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchField.js";`
2729
- *
2730
- * @constructor
2731
- * @extends UI5Element
2732
- * @private
2733
- */
2734
- let SearchField = SearchField_1 = class SearchField extends webcomponentsBase.b {
2735
- constructor() {
2736
- super(...arguments);
2737
- /**
2738
- * Defines whether the clear icon of the search will be shown.
2739
- * @default false
2740
- * @public
2741
- */
2742
- this.showClearIcon = false;
2743
- /**
2744
- * Defines whether the component is collapsed.
2745
- *
2746
- * @default false
2747
- * @private
2748
- */
2749
- this.collapsed = false;
2750
- /**
2751
- * Defines the value of the component.
2752
- *
2753
- * **Note:** The property is updated upon typing.
2754
- * @default ""
2755
- * @public
2756
- */
2757
- this.value = "";
2758
- /**
2759
- * @private
2760
- */
2761
- this.focusedInnerInput = false;
2762
- /**
2763
- * @private
2764
- */
2765
- this._effectiveShowClearIcon = false;
2766
- }
2767
- onBeforeRendering() {
2768
- this._effectiveShowClearIcon = (this.showClearIcon && !!this.value);
2769
- }
2770
- _onkeydown(e) {
2771
- if (webcomponentsBase.b$1(e)) {
2772
- return this._handleEnter();
2773
- }
2774
- }
2775
- _onfocusin() {
2776
- this.focusedInnerInput = true;
2777
- }
2778
- _onfocusout() {
2779
- this.focusedInnerInput = false;
2780
- }
2781
- _onFocusOutSearch(e) { } // eslint-disable-line
2782
- _handleEnter() {
2783
- if (this.value.length) {
2784
- this._handleSearchEvent();
2785
- }
2786
- }
2787
- _handleInnerClick() { } // eslint-disable-line
2788
- _handleSearchIconPress() {
2789
- this._handleSearchEvent();
2790
- setTimeout(() => {
2791
- this.focus();
2792
- }, 0);
2793
- }
2794
- _handleSearchEvent() {
2795
- this.fireDecoratorEvent("search");
2796
- }
2797
- _handleInput(e) {
2798
- this.value = e.target.value;
2799
- this.fireDecoratorEvent("input");
2800
- }
2801
- _handleClear() {
2802
- this.value = "";
2803
- this.fireDecoratorEvent("input");
2804
- this.focus();
2805
- }
2806
- _handleScopeChange(e) {
2807
- const item = e.detail.selectedOption;
2808
- this.fireDecoratorEvent("scope-change", {
2809
- scope: item.scopeOption,
2810
- });
2811
- }
2812
- get _isSearchIcon() {
2813
- return this.value.length && this.focusedInnerInput;
2814
- }
2815
- get _searchButtonAccessibilityAttributes() {
2816
- return {
2817
- expanded: !this.collapsed,
2818
- };
2819
- }
2820
- get _translations() {
2821
- return {
2822
- scope: SearchField_1.i18nBundle.getText(i18nDefaults$1.SEARCH_FIELD_SCOPE_SELECT_LABEL),
2823
- searchIcon: SearchField_1.i18nBundle.getText(i18nDefaults$1.SEARCH_FIELD_SEARCH_ICON),
2824
- clearIcon: SearchField_1.i18nBundle.getText(i18nDefaults$1.SEARCH_FIELD_CLEAR_ICON),
2825
- searchFieldAriaLabel: SearchField_1.i18nBundle.getText(i18nDefaults$1.SEARCH_FIELD_LABEL),
2826
- };
2827
- }
2828
- get _effectiveIconTooltip() {
2829
- return this._translations.searchIcon;
2830
- }
2831
- captureRef(ref) {
2832
- if (ref) {
2833
- ref.scopeOption = this;
2834
- }
2835
- }
2836
- };
2837
- __decorate$2([
2838
- webcomponentsBase.s({ type: Boolean })
2839
- ], SearchField.prototype, "showClearIcon", void 0);
2840
- __decorate$2([
2841
- webcomponentsBase.s({ type: Boolean })
2842
- ], SearchField.prototype, "collapsed", void 0);
2843
- __decorate$2([
2844
- webcomponentsBase.s()
2845
- ], SearchField.prototype, "value", void 0);
2846
- __decorate$2([
2847
- webcomponentsBase.s()
2848
- ], SearchField.prototype, "placeholder", void 0);
2849
- __decorate$2([
2850
- webcomponentsBase.s()
2851
- ], SearchField.prototype, "accessibleName", void 0);
2852
- __decorate$2([
2853
- webcomponentsBase.s()
2854
- ], SearchField.prototype, "accessibleDescription", void 0);
2855
- __decorate$2([
2856
- webcomponentsBase.d({ type: HTMLElement, individualSlots: true, invalidateOnChildChange: true })
2857
- ], SearchField.prototype, "scopes", void 0);
2858
- __decorate$2([
2859
- webcomponentsBase.d()
2860
- ], SearchField.prototype, "filterButton", void 0);
2861
- __decorate$2([
2862
- webcomponentsBase.s({ type: Boolean })
2863
- ], SearchField.prototype, "focusedInnerInput", void 0);
2864
- __decorate$2([
2865
- webcomponentsBase.s({ type: Boolean })
2866
- ], SearchField.prototype, "_effectiveShowClearIcon", void 0);
2867
- __decorate$2([
2868
- parametersBundle_css$1.i("sap/ushell/gen/ui5/webcomponents-fiori")
2869
- ], SearchField, "i18nBundle", void 0);
2870
- SearchField = SearchField_1 = __decorate$2([
2871
- webcomponentsBase.m({
2872
- tag: "ui5-search-field",
2873
- languageAware: true,
2874
- renderer: parametersBundle_css.y,
2875
- template: SearchFieldTemplate,
2876
- styles: [
2877
- SearchFieldCss,
2878
- ],
2879
- })
2880
- /**
2881
- * Fired when typing in input or clear icon is pressed.
2882
- *
2883
- * @public
2884
- */
2885
- ,
2886
- eventStrict.l("input", {
2887
- bubbles: true,
2888
- })
2889
- /**
2890
- * Fired when the scope has changed.
2891
- * @public
2892
- * @param {HTMLElement} scope The newly selected scope
2893
- */
2894
- ,
2895
- eventStrict.l("scope-change", {
2896
- bubbles: true,
2897
- })
2898
- /**
2899
- * Fired when the user has triggered search with Enter key or Search Button press.
2900
- * @public
2901
- */
2902
- ,
2903
- eventStrict.l("search", {
2904
- bubbles: true,
2905
- cancelable: true,
2906
- })
2907
- ], SearchField);
2908
- SearchField.define();
2909
- var SearchField$1 = SearchField;
2910
-
2911
- var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
2912
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2913
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2914
- 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;
2915
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2916
- };
2917
- var Search_1;
2918
- /**
2919
- * @class
2920
- *
2921
- * ### Overview
2922
- *
2923
- * A `ui5-search` is an input with suggestions, used for user search.
2924
- *
2925
- * The `ui5-search` consists of several elements parts:
2926
- * - Scope - displays a select in the beggining of the component, used for filtering results by their scope.
2927
- * - Input field - for user input value
2928
- * - Clear button - gives the possibility for deleting the entered value
2929
- * - Search button - a primary button for performing search, when the user has entered a search term
2930
- * - Suggestions - a list with available search suggestions
2931
- *
2932
- * ### ES6 Module Import
2933
- *
2934
- * `import "sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js";`
2935
- *
2936
- * @constructor
2937
- * @extends SearchField
2938
- * @public
2939
- * @since 2.9.0
2940
- * @experimental
2941
- */
2942
- let Search = Search_1 = class Search extends SearchField$1 {
2943
- constructor() {
2944
- super();
2945
- /**
2946
- * Indicates whether a loading indicator should be shown in the popup.
2947
- * @default false
2948
- * @public
2949
- */
2950
- this.loading = false;
2951
- /**
2952
- * Defines whether the value will be autcompleted to match an item.
2953
- * @default false
2954
- * @public
2955
- */
2956
- this.noTypeahead = false;
2957
- /**
2958
- * Indicates whether the items picker is open.
2959
- * @public
2960
- */
2961
- this.open = false;
2962
- // The typed in value.
2963
- this._typedInValue = "";
2964
- this._valueBeforeOpen = this.getAttribute("value") || "";
2965
- this._isTyping = false;
2966
- }
2967
- onBeforeRendering() {
2968
- super.onBeforeRendering();
2969
- if (this.collapsed && !Icons.d()) {
2970
- this.open = false;
2971
- return;
2972
- }
2973
- const innerInput = this.nativeInput;
2974
- const autoCompletedChars = innerInput && (innerInput.selectionEnd - innerInput.selectionStart);
2975
- this.open = this.open || (this._popoupHasAnyContent() && this._isTyping && innerInput.value.length > 0);
2976
- // If there is already a selection the autocomplete has already been performed
2977
- if (this._shouldAutocomplete && !autoCompletedChars) {
2978
- const item = this._getFirstMatchingItem(this.value);
2979
- this._proposedItem = item;
2980
- if (item) {
2981
- this._handleTypeAhead(item);
2982
- this._selectMatchingItem(item);
2983
- }
2984
- else {
2985
- this._deselectItems();
2986
- }
2987
- }
2988
- if (Icons.d() && this.open) {
2989
- const item = this._getFirstMatchingItem(this.value);
2990
- this._proposedItem = item;
2991
- if (item && this._performItemSelectionOnMobile) {
2992
- this._selectMatchingItem(item);
2993
- }
2994
- }
2995
- this._flattenItems.forEach(item => {
2996
- item.highlightText = this._typedInValue;
2997
- });
2998
- }
2999
- onAfterRendering() {
3000
- const innerInput = this.nativeInput;
3001
- if (this._performTextSelection && innerInput && innerInput.value !== this._innerValue) {
3002
- innerInput.value = this._innerValue || "";
3003
- }
3004
- if (this._performTextSelection && this._typedInValue.length && this.value.length) {
3005
- innerInput?.setSelectionRange(this._typedInValue.length, this.value.length);
3006
- }
3007
- this._performTextSelection = false;
3008
- if (!this.collapsed) {
3009
- this.style.setProperty("--search_width", `${this.getBoundingClientRect().width}px`);
3010
- }
3011
- }
3012
- _handleMobileInput(e) {
3013
- this.value = e.target.value;
3014
- this._performItemSelectionOnMobile = this._shouldPerformSelectionOnMobile(e.detail.inputType);
3015
- this.fireDecoratorEvent("input");
3016
- }
3017
- _shouldPerformSelectionOnMobile(inputType) {
3018
- const allowedEventTypes = [
3019
- "deleteWordBackward",
3020
- "deleteWordForward",
3021
- "deleteSoftLineBackward",
3022
- "deleteSoftLineForward",
3023
- "deleteEntireSoftLine",
3024
- "deleteHardLineBackward",
3025
- "deleteHardLineForward",
3026
- "deleteByDrag",
3027
- "deleteByCut",
3028
- "deleteContent",
3029
- "deleteContentBackward",
3030
- "deleteContentForward",
3031
- "historyUndo",
3032
- ];
3033
- return !this.noTypeahead && !allowedEventTypes.includes(inputType || "");
3034
- }
3035
- _handleTypeAhead(item) {
3036
- const originalValue = item.text || "";
3037
- this._typedInValue = this.value;
3038
- this._innerValue = originalValue;
3039
- this._performTextSelection = true;
3040
- this.value = originalValue;
3041
- }
3042
- _startsWithMatchingItems(str) {
3043
- return StartsWith(str, this._flattenItems.filter(item => !this._isGroupItem(item) && !this._isShowMoreItem(item)), "text");
3044
- }
3045
- _isGroupItem(item) {
3046
- return item.hasAttribute("ui5-search-item-group");
3047
- }
3048
- _isShowMoreItem(item) {
3049
- return item.hasAttribute("ui5-search-item-show-more");
3050
- }
3051
- _deselectItems() {
3052
- this._flattenItems.forEach(item => {
3053
- item.selected = false;
3054
- });
3055
- }
3056
- _selectMatchingItem(item) {
3057
- this._deselectItems();
3058
- item.selected = true;
3059
- }
3060
- _handleDown(e) {
3061
- if (this.open) {
3062
- e.preventDefault();
3063
- this._handleArrowDown();
3064
- }
3065
- }
3066
- _handleArrowDown() {
3067
- const focusableItems = this._getItemsList().listItems;
3068
- const firstListItem = focusableItems.at(0);
3069
- if (this.open) {
3070
- this._deselectItems();
3071
- this.value = this._typedInValue || this.value;
3072
- this._innerValue = this.value;
3073
- firstListItem?.focus();
3074
- }
3075
- }
3076
- _handleInnerClick() {
3077
- if (Icons.d()) {
3078
- this.open = true;
3079
- }
3080
- }
3081
- _handleSearchIconPress() {
3082
- if (Icons.d()) {
3083
- this.open = true;
3084
- }
3085
- else {
3086
- super._handleSearchIconPress();
3087
- }
3088
- }
3089
- _handleEnter() {
3090
- const prevented = !this.fireDecoratorEvent("search", { item: this._proposedItem });
3091
- if (prevented) {
3092
- return;
3093
- }
3094
- const innerInput = this.nativeInput;
3095
- innerInput.setSelectionRange(this.value.length, this.value.length);
3096
- this.open = false;
3097
- this._isTyping = false;
3098
- }
3099
- _onMobileInputKeydown(e) {
3100
- if (webcomponentsBase.b$1(e)) {
3101
- this.value = this.mobileInput?.value || this.value;
3102
- this._handleEnter();
3103
- this.blur();
3104
- }
3105
- }
3106
- _handleSearchEvent() {
3107
- this.fireDecoratorEvent("search", { item: this._proposedItem });
3108
- }
3109
- _handleEscape() {
3110
- this.value = this._typedInValue || this.value;
3111
- this._innerValue = this.value;
3112
- this._isTyping = false;
3113
- }
3114
- _handleInput(e) {
3115
- super._handleInput(e);
3116
- this._typedInValue = this.value;
3117
- this._proposedItem = undefined;
3118
- if (Icons.d()) {
3119
- return;
3120
- }
3121
- this._isTyping = true;
3122
- this.open = this.value.length > 0;
3123
- }
3124
- _handleClear() {
3125
- super._handleClear();
3126
- this._typedInValue = "";
3127
- this._innerValue = "";
3128
- this._shouldAutocomplete = false;
3129
- this.open = false;
3130
- }
3131
- _popoupHasAnyContent() {
3132
- return this.items.length > 0 || this.illustration.length > 0 || this.messageArea.length > 0 || this.loading || this.action.length > 0;
3133
- }
3134
- _onFooterButtonKeyDown(e) {
3135
- if (webcomponentsBase.P(e)) {
3136
- this._flattenItems[this._flattenItems.length - 1].focus();
3137
- }
3138
- if (webcomponentsBase.V(e)) {
3139
- this._getItemsList().focus();
3140
- }
3141
- }
3142
- _onItemKeydown(e) {
3143
- const target = e.target;
3144
- // if focus is on the group header (in group's shadow dom) the target is the group itself,
3145
- // if so using getFocusDomRef ensures the actual focused element is used
3146
- const focusedItem = this._isGroupItem(target) ? target?.getFocusDomRef() : target;
3147
- const focusableItems = this._getItemsList().listItems;
3148
- const isFirstItem = focusableItems.at(0) === focusedItem;
3149
- const isLastItem = focusableItems.at(-1) === focusedItem;
3150
- const isArrowUp = webcomponentsBase.P(e);
3151
- const isArrowDown = webcomponentsBase._(e);
3152
- const isTab = webcomponentsBase.x(e);
3153
- e.preventDefault();
3154
- if (isFirstItem && isArrowUp) {
3155
- this.nativeInput?.focus();
3156
- this._shouldAutocomplete = true;
3157
- }
3158
- if ((isLastItem && isArrowDown) || isTab) {
3159
- this._getFooterButton()?.focus();
3160
- }
3161
- }
3162
- _onItemClick(e) {
3163
- const item = e.detail.item;
3164
- const prevented = !this.fireDecoratorEvent("search", { item });
3165
- if (prevented) {
3166
- if (Icons.d()) {
3167
- this.open = false;
3168
- }
3169
- return;
3170
- }
3171
- this.value = item.text;
3172
- this._innerValue = this.value;
3173
- this._typedInValue = this.value;
3174
- this._shouldAutocomplete = false;
3175
- this._performTextSelection = true;
3176
- this.open = false;
3177
- this._isTyping = false;
3178
- this.focus();
3179
- }
3180
- _onkeydown(e) {
3181
- super._onkeydown(e);
3182
- if (this.loading) {
3183
- return;
3184
- }
3185
- this._shouldAutocomplete = !this.noTypeahead
3186
- && !(webcomponentsBase.Q(e) || webcomponentsBase.X(e) || webcomponentsBase.m$2(e) || webcomponentsBase.P(e) || webcomponentsBase._(e) || webcomponentsBase.x(e) || webcomponentsBase.b$1(e) || webcomponentsBase.j(e) || webcomponentsBase.q(e) || webcomponentsBase.M(e) || webcomponentsBase.n(e) || webcomponentsBase.m$2(e));
3187
- if (webcomponentsBase._(e)) {
3188
- this._handleDown(e);
3189
- }
3190
- if (webcomponentsBase.m$2(e)) {
3191
- this._handleEscape();
3192
- }
3193
- // deselect item on backspace or delete
3194
- if (webcomponentsBase.Q(e) || webcomponentsBase.X(e)) {
3195
- this._deselectItems();
3196
- }
3197
- }
3198
- _onFocusOutSearch(e) {
3199
- const target = e.relatedTarget;
3200
- if (this._getPicker().contains(target) || this.contains(target)) {
3201
- return;
3202
- }
3203
- this.open = false;
3204
- this._isTyping = false;
3205
- }
3206
- _handleBeforeClose(e) {
3207
- if (e.detail.escPressed) {
3208
- this.focus();
3209
- }
3210
- }
3211
- _handleCancel() {
3212
- this._handleClose();
3213
- this.value = this._valueBeforeOpen;
3214
- this.fireDecoratorEvent("input");
3215
- }
3216
- _handleClose() {
3217
- this.open = false;
3218
- this._isTyping = false;
3219
- this.fireDecoratorEvent("close");
3220
- }
3221
- _handleBeforeOpen() {
3222
- this._valueBeforeOpen = this.value;
3223
- if (Icons.d() && this.mobileInput) {
3224
- this.mobileInput.value = this.value;
3225
- }
3226
- }
3227
- _handleOpen() {
3228
- this.fireDecoratorEvent("open");
3229
- }
3230
- _handleActionKeydown(e) {
3231
- if (webcomponentsBase.P(e)) {
3232
- this._flattenItems[this._flattenItems.length - 1].focus();
3233
- }
3234
- }
3235
- _onFooterButtonClick() {
3236
- this.fireDecoratorEvent("popup-action-press");
3237
- }
3238
- _getFirstMatchingItem(current) {
3239
- if (!this._flattenItems.length || !current) {
3240
- return;
3241
- }
3242
- const startsWithMatches = this._startsWithMatchingItems(current);
3243
- if (!startsWithMatches.length) {
3244
- return undefined;
3245
- }
3246
- return startsWithMatches[0];
3247
- }
3248
- _getPicker() {
3249
- return this.shadowRoot.querySelector("[ui5-responsive-popover]");
3250
- }
3251
- _getItemsList() {
3252
- return this._getPicker().querySelector(".ui5-search-list");
3253
- }
3254
- _getFooterButton() {
3255
- return this.action[0];
3256
- }
3257
- get _flattenItems() {
3258
- return this.getSlottedNodes("items").flatMap(item => {
3259
- return this._isGroupItem(item) ? [item, ...item.items] : [item];
3260
- });
3261
- }
3262
- get nativeInput() {
3263
- const domRef = this.getDomRef();
3264
- return domRef?.querySelector(`input`);
3265
- }
3266
- get mobileInput() {
3267
- const domRef = this.shadowRoot;
3268
- return domRef ? domRef.querySelector(`[ui5-input]`) : null;
3269
- }
3270
- get cancelButtonText() {
3271
- return Search_1.i18nBundle.getText(i18nDefaults$1.SEARCH_CANCEL_BUTTON);
3272
- }
3273
- get suggestionsText() {
3274
- return Search_1.i18nBundle.getText(i18nDefaults$1.SEARCH_SUGGESTIONS);
3275
- }
3276
- get scopeSelect() {
3277
- const domRef = this.shadowRoot;
3278
- return domRef ? domRef.querySelector(`[ui5-select]`) : null;
3279
- }
3280
- };
3281
- __decorate$1([
3282
- webcomponentsBase.s({ type: Boolean })
3283
- ], Search.prototype, "loading", void 0);
3284
- __decorate$1([
3285
- webcomponentsBase.s({ type: Boolean })
3286
- ], Search.prototype, "noTypeahead", void 0);
3287
- __decorate$1([
3288
- webcomponentsBase.d({
3289
- type: HTMLElement,
3290
- "default": true,
3291
- invalidateOnChildChange: true,
3292
- })
3293
- ], Search.prototype, "items", void 0);
3294
- __decorate$1([
3295
- webcomponentsBase.d()
3296
- ], Search.prototype, "action", void 0);
3297
- __decorate$1([
3298
- webcomponentsBase.d()
3299
- ], Search.prototype, "illustration", void 0);
3300
- __decorate$1([
3301
- webcomponentsBase.d()
3302
- ], Search.prototype, "messageArea", void 0);
3303
- __decorate$1([
3304
- webcomponentsBase.s({ type: Boolean })
3305
- ], Search.prototype, "open", void 0);
3306
- __decorate$1([
3307
- webcomponentsBase.s({ noAttribute: true })
3308
- ], Search.prototype, "_innerValue", void 0);
3309
- __decorate$1([
3310
- webcomponentsBase.s({ type: Boolean })
3311
- ], Search.prototype, "_performItemSelectionOnMobile", void 0);
3312
- __decorate$1([
3313
- parametersBundle_css$1.i("sap/ushell/gen/ui5/webcomponents-fiori")
3314
- ], Search, "i18nBundle", void 0);
3315
- Search = Search_1 = __decorate$1([
3316
- webcomponentsBase.m({
3317
- tag: "ui5-search",
3318
- languageAware: true,
3319
- renderer: parametersBundle_css.y,
3320
- template: SearchTemplate,
3321
- styles: [
3322
- SearchField$1.styles,
3323
- SearchCss,
3324
- ],
3325
- })
3326
- /**
3327
- * Fired when the popup is opened.
3328
- *
3329
- * @public
3330
- */
3331
- ,
3332
- eventStrict.l("open")
3333
- /**
3334
- * Fired when the popup is closed.
3335
- *
3336
- * @public
3337
- */
3338
- ,
3339
- eventStrict.l("close")
3340
- ], Search);
3341
- Search.define();
3342
- var Search$1 = Search;
3343
-
3344
- function ShellBarSearchPopoverTemplate() {
3345
- return (SearchPopoverTemplate.call(this, ShellBarSearchDialogHeader));
3346
- }
3347
- function ShellBarSearchDialogHeader() {
3348
- return (parametersBundle_css.jsx(parametersBundle_css.Fragment, { children: parametersBundle_css.jsxs("header", { slot: "header", class: "ui5-search-popup-searching-header", children: [parametersBundle_css.jsx("div", { class: "ui5-shellbar-search-field-wrapper", children: SearchFieldTemplate.call(this, { forceExpanded: true }) }), parametersBundle_css.jsx(Button.Button, { design: Button.ButtonDesign.Transparent, onClick: this._handleCancel, children: this.cancelButtonText })] }) }));
3349
- }
3350
-
3351
- function ShellBarSearchTemplate() {
3352
- return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [SearchFieldTemplate.call(this), ShellBarSearchPopoverTemplate.call(this)] }));
3353
- }
3354
-
3355
- Icons.p("@" + "ui5" + "/" + "sap/ushell/thirdparty/webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
3356
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s" + "-" + "f" + "i" + "o" + "r" + "i", "sap_horizon", async () => parametersBundle_css$2.defaultTheme);
3357
- var ShellBarSearchCss = `:host(:not([collapsed])){min-width:13rem}
3358
- `;
3359
-
3360
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3361
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3362
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3363
- 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;
3364
- return c > 3 && r && Object.defineProperty(target, key, r), r;
3365
- };
3366
- var ShellBarSearch_1;
3367
- /**
3368
- * @class
3369
- * Search field for the ShellBar component.
3370
- * @constructor
3371
- * @extends Search
3372
- * @public
3373
- * @since 2.10.0
3374
- * @experimental
3375
- */
3376
- let ShellBarSearch = ShellBarSearch_1 = class ShellBarSearch extends Search$1 {
3377
- constructor() {
3378
- super(...arguments);
3379
- /**
3380
- * Indicates whether the suggestions popover should be opened on focus.
3381
- * @default false
3382
- * @public
3383
- */
3384
- this.autoOpen = false;
3385
- }
3386
- _handleSearchIconPress() {
3387
- super._handleSearchIconPress();
3388
- if (this.collapsed) {
3389
- this.collapsed = false;
3390
- }
3391
- else if (!this.value) {
3392
- this.collapsed = true;
3393
- }
3394
- }
3395
- _onFocusOutSearch(e) {
3396
- if (Icons.d()) {
3397
- return;
3398
- }
3399
- super._onFocusOutSearch(e);
3400
- }
3401
- _handleInput(e) {
3402
- super._handleInput(e);
3403
- if (Icons.d()) {
3404
- this._performItemSelectionOnMobile = this._shouldPerformSelectionOnMobile(e.inputType);
3405
- }
3406
- }
3407
- get _effectiveIconTooltip() {
3408
- if (this.collapsed) {
3409
- return ShellBarSearch_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_SEARCH_COLLAPSED);
3410
- }
3411
- if (this.value) {
3412
- return ShellBarSearch_1.i18nBundle.getText(i18nDefaults$1.SEARCH_FIELD_SEARCH_ICON);
3413
- }
3414
- return ShellBarSearch_1.i18nBundle.getText(i18nDefaults$1.SHELLBAR_SEARCH_EXPANDED);
3415
- }
3416
- get nativeInput() {
3417
- const domRef = this.shadowRoot;
3418
- return Icons.d() ? domRef?.querySelector(`[ui5-responsive-popover] input`) : super.nativeInput;
3419
- }
3420
- _onfocusin() {
3421
- super._onfocusin();
3422
- if (this.autoOpen) {
3423
- this.open = true;
3424
- this.fireDecoratorEvent("open");
3425
- }
3426
- }
3427
- onBeforeRendering() {
3428
- super.onBeforeRendering();
3429
- if (Icons.d()) {
3430
- this.collapsed = true;
3431
- }
3432
- }
3433
- };
3434
- __decorate([
3435
- webcomponentsBase.s({ type: Boolean })
3436
- ], ShellBarSearch.prototype, "autoOpen", void 0);
3437
- ShellBarSearch = ShellBarSearch_1 = __decorate([
3438
- webcomponentsBase.m({
3439
- tag: "ui5-shellbar-search",
3440
- template: ShellBarSearchTemplate,
3441
- styles: [
3442
- Search$1.styles,
3443
- ShellBarSearchCss,
3444
- ],
3445
- })
3446
- ], ShellBarSearch);
3447
- ShellBarSearch.define();
3448
- var ShellBarSearch$1 = ShellBarSearch;
3449
-
3450
- exports.Input = Input$1;
3451
- exports.ShellBarSearch = ShellBarSearch$1;
3452
-
3453
- }));