@openui5/sap.f 1.144.0 → 1.146.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 (399) hide show
  1. package/REUSE.toml +40 -16
  2. package/THIRDPARTY.txt +28 -7
  3. package/package.json +10 -10
  4. package/src/sap/f/.library +8 -8
  5. package/src/sap/f/Avatar.js +1 -1
  6. package/src/sap/f/AvatarGroup.js +8 -2
  7. package/src/sap/f/AvatarGroupItem.js +1 -1
  8. package/src/sap/f/CalendarAppointmentInCard.js +1 -1
  9. package/src/sap/f/CalendarInCard.js +1 -1
  10. package/src/sap/f/Card.js +1 -1
  11. package/src/sap/f/CardBase.js +3 -3
  12. package/src/sap/f/DynamicPage.js +1 -1
  13. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
  14. package/src/sap/f/DynamicPageHeader.js +1 -1
  15. package/src/sap/f/DynamicPageTitle.js +1 -1
  16. package/src/sap/f/FlexibleColumnLayout.js +8 -2
  17. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
  18. package/src/sap/f/FlexibleColumnLayoutData.js +1 -1
  19. package/src/sap/f/FlexibleColumnLayoutDataForDesktop.js +1 -1
  20. package/src/sap/f/FlexibleColumnLayoutDataForTablet.js +1 -1
  21. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
  22. package/src/sap/f/GridContainer.js +1 -1
  23. package/src/sap/f/GridContainerItemLayoutData.js +1 -1
  24. package/src/sap/f/GridContainerSettings.js +2 -2
  25. package/src/sap/f/GridList.js +1 -1
  26. package/src/sap/f/GridListItem.js +1 -1
  27. package/src/sap/f/IllustratedMessage.js +1 -1
  28. package/src/sap/f/Illustration.js +1 -1
  29. package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
  30. package/src/sap/f/ProductSwitch.js +1 -1
  31. package/src/sap/f/ProductSwitchItem.js +1 -1
  32. package/src/sap/f/SearchManager.js +1 -1
  33. package/src/sap/f/ShellBar.js +1 -1
  34. package/src/sap/f/SidePanel.js +5 -1
  35. package/src/sap/f/SidePanelItem.js +7 -1
  36. package/src/sap/f/SidePanelRenderer.js +1 -1
  37. package/src/sap/f/cards/BaseHeader.js +39 -26
  38. package/src/sap/f/cards/Header.js +7 -7
  39. package/src/sap/f/cards/NumericHeader.js +22 -23
  40. package/src/sap/f/cards/NumericIndicators.js +1 -2
  41. package/src/sap/f/cards/NumericSideIndicator.js +2 -3
  42. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
  43. package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
  44. package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
  45. package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
  46. package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
  47. package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
  48. package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
  49. package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
  50. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
  51. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  52. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  53. package/src/sap/f/dnd/GridDragOver.js +1 -1
  54. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  55. package/src/sap/f/gen/ui5/webcomponents/dist/Avatar.js +2 -246
  56. package/src/sap/f/gen/ui5/webcomponents/dist/Button.js +2 -349
  57. package/src/sap/f/gen/ui5/webcomponents/dist/Label.js +2 -126
  58. package/src/sap/f/gen/ui5/webcomponents/dist/ListItem.js +2 -141
  59. package/src/sap/f/gen/ui5/webcomponents/dist/ListItemBase.js +2 -60
  60. package/src/sap/f/gen/ui5/webcomponents/dist/ListItemGroup.js +2 -208
  61. package/src/sap/f/gen/ui5/webcomponents/dist/Menu.js +2 -283
  62. package/src/sap/f/gen/ui5/webcomponents/dist/MenuItem.js +2 -357
  63. package/src/sap/f/gen/ui5/webcomponents.js +2 -3155
  64. package/src/sap/f/gen/ui5/webcomponents_base.js +2 -600
  65. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/IllustratedMessage.js +2 -214
  66. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationList.js +2 -203
  67. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListGroupItem.js +2 -167
  68. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItem.js +2 -248
  69. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItemBase.js +2 -86
  70. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/Search.js +2 -254
  71. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItem.js +2 -128
  72. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemGroup.js +2 -56
  73. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemShowMore.js +2 -87
  74. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchMessageArea.js +2 -75
  75. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchScope.js +2 -80
  76. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBar.js +2 -669
  77. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarBranding.js +2 -123
  78. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarItem.js +2 -140
  79. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSearch.js +2 -236
  80. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSpacer.js +2 -72
  81. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenu.js +2 -282
  82. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuAccount.js +2 -134
  83. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuItem.js +2 -79
  84. package/src/sap/f/gen/ui5/webcomponents_fiori.js +2 -1859
  85. package/src/sap/f/library.js +3 -4
  86. package/src/sap/f/routing/Target.js +2 -2
  87. package/src/sap/f/semantic/AddAction.js +1 -1
  88. package/src/sap/f/semantic/CloseAction.js +1 -1
  89. package/src/sap/f/semantic/CopyAction.js +1 -1
  90. package/src/sap/f/semantic/DeleteAction.js +1 -1
  91. package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
  92. package/src/sap/f/semantic/EditAction.js +1 -1
  93. package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
  94. package/src/sap/f/semantic/FavoriteAction.js +1 -1
  95. package/src/sap/f/semantic/FlagAction.js +1 -1
  96. package/src/sap/f/semantic/FooterMainAction.js +1 -1
  97. package/src/sap/f/semantic/FullScreenAction.js +1 -1
  98. package/src/sap/f/semantic/MainAction.js +1 -1
  99. package/src/sap/f/semantic/MessagesIndicator.js +1 -1
  100. package/src/sap/f/semantic/NegativeAction.js +1 -1
  101. package/src/sap/f/semantic/PositiveAction.js +1 -1
  102. package/src/sap/f/semantic/PrintAction.js +1 -1
  103. package/src/sap/f/semantic/SemanticButton.js +1 -1
  104. package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
  105. package/src/sap/f/semantic/SemanticControl.js +1 -1
  106. package/src/sap/f/semantic/SemanticPage.js +1 -1
  107. package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
  108. package/src/sap/f/semantic/SendEmailAction.js +1 -1
  109. package/src/sap/f/semantic/SendMessageAction.js +1 -1
  110. package/src/sap/f/semantic/ShareInJamAction.js +1 -1
  111. package/src/sap/f/semantic/TitleMainAction.js +1 -1
  112. package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
  113. package/src/sap/f/shellBar/CoPilot.js +1 -1
  114. package/src/sap/f/shellBar/ControlSpacer.js +1 -1
  115. package/src/sap/f/shellBar/Search.js +1 -1
  116. package/src/sap/f/themes/base/AvatarGroup.less +2 -2
  117. package/src/sap/f/themes/base/GridList.less +1 -1
  118. package/src/sap/f/thirdparty/AccessibilityTextsHelper.js +2 -13
  119. package/src/sap/f/thirdparty/Avatar.js +2 -453
  120. package/src/sap/f/thirdparty/BusyIndicator.js +2 -233
  121. package/src/sap/f/thirdparty/Button.js +2 -7
  122. package/src/sap/f/thirdparty/Button2.js +2 -656
  123. package/src/sap/f/thirdparty/FocusableElements.js +2 -10
  124. package/src/sap/f/thirdparty/Icon.js +2 -313
  125. package/src/sap/f/thirdparty/Icons.js +2 -234
  126. package/src/sap/f/thirdparty/IllustratedMessage.js +2 -1297
  127. package/src/sap/f/thirdparty/Illustrations.js +2 -0
  128. package/src/sap/f/thirdparty/Label.js +2 -115
  129. package/src/sap/f/thirdparty/Link.js +2 -316
  130. package/src/sap/f/thirdparty/List.js +2 -1253
  131. package/src/sap/f/thirdparty/ListBoxItemGroupTemplate.js +2 -14
  132. package/src/sap/f/thirdparty/ListItemAdditionalText.css.js +2 -10
  133. package/src/sap/f/thirdparty/ListItemBase.js +2 -251
  134. package/src/sap/f/thirdparty/ListItemGroup.js +2 -637
  135. package/src/sap/f/thirdparty/Menu.js +2 -389
  136. package/src/sap/f/thirdparty/MenuItem.js +2 -10
  137. package/src/sap/f/thirdparty/MenuItem2.js +2 -762
  138. package/src/sap/f/thirdparty/NotificationList.js +2 -291
  139. package/src/sap/f/thirdparty/NotificationListGroupItem.js +2 -310
  140. package/src/sap/f/thirdparty/NotificationListItem.js +2 -534
  141. package/src/sap/f/thirdparty/NotificationListItemBase.js +2 -98
  142. package/src/sap/f/thirdparty/ResponsivePopover.js +2 -2312
  143. package/src/sap/f/thirdparty/SearchItem.css.js +2 -10
  144. package/src/sap/f/thirdparty/SearchItem.js +2 -152
  145. package/src/sap/f/thirdparty/SearchItemGroup.js +2 -44
  146. package/src/sap/f/thirdparty/SearchItemShowMore.js +2 -86
  147. package/src/sap/f/thirdparty/SearchMessageArea.js +2 -49
  148. package/src/sap/f/thirdparty/SearchScope.js +2 -39
  149. package/src/sap/f/thirdparty/ShellBar.js +2 -1809
  150. package/src/sap/f/thirdparty/ShellBarBranding.js +2 -119
  151. package/src/sap/f/thirdparty/ShellBarItem.js +2 -89
  152. package/src/sap/f/thirdparty/ShellBarSearch.js +2 -7
  153. package/src/sap/f/thirdparty/ShellBarSearch2.js +2 -3453
  154. package/src/sap/f/thirdparty/ShellBarSpacer.js +2 -40
  155. package/src/sap/f/thirdparty/Tag.js +2 -302
  156. package/src/sap/f/thirdparty/Text.js +2 -127
  157. package/src/sap/f/thirdparty/Theme.js +2 -0
  158. package/src/sap/f/thirdparty/Title.js +2 -167
  159. package/src/sap/f/thirdparty/UserMenu.js +2 -950
  160. package/src/sap/f/thirdparty/UserMenuAccount.js +2 -114
  161. package/src/sap/f/thirdparty/UserMenuItem.js +2 -61
  162. package/src/sap/f/thirdparty/ValueState.js +2 -7
  163. package/src/sap/f/thirdparty/WrappingType.js +2 -24
  164. package/src/sap/f/thirdparty/_dynamics/InputComposition.js +2 -35
  165. package/src/sap/f/thirdparty/_dynamics/InputSuggestions.js +2 -397
  166. package/src/sap/f/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +2 -193
  167. package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT.js +2 -585
  168. package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT2.js +2 -585
  169. package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite.js +2 -1194
  170. package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite2.js +2 -1194
  171. package/src/sap/f/thirdparty/_dynamics/SAP-icons.js +2 -2509
  172. package/src/sap/f/thirdparty/_dynamics/SAP-icons2.js +2 -2509
  173. package/src/sap/f/thirdparty/_dynamics/ar.js +2 -0
  174. package/src/sap/f/thirdparty/_dynamics/ar_EG.js +2 -0
  175. package/src/sap/f/thirdparty/_dynamics/ar_SA.js +2 -0
  176. package/src/sap/f/thirdparty/_dynamics/bg.js +2 -0
  177. package/src/sap/f/thirdparty/_dynamics/ca.js +2 -0
  178. package/src/sap/f/thirdparty/_dynamics/cnr.js +2 -0
  179. package/src/sap/f/thirdparty/_dynamics/cs.js +2 -0
  180. package/src/sap/f/thirdparty/_dynamics/da.js +2 -0
  181. package/src/sap/f/thirdparty/_dynamics/de.js +2 -0
  182. package/src/sap/f/thirdparty/_dynamics/de_AT.js +2 -0
  183. package/src/sap/f/thirdparty/_dynamics/de_CH.js +2 -0
  184. package/src/sap/f/thirdparty/_dynamics/el.js +2 -0
  185. package/src/sap/f/thirdparty/_dynamics/el_CY.js +2 -0
  186. package/src/sap/f/thirdparty/_dynamics/en.js +2 -0
  187. package/src/sap/f/thirdparty/_dynamics/en_AU.js +2 -0
  188. package/src/sap/f/thirdparty/_dynamics/en_GB.js +2 -0
  189. package/src/sap/f/thirdparty/_dynamics/en_HK.js +2 -0
  190. package/src/sap/f/thirdparty/_dynamics/en_IE.js +2 -0
  191. package/src/sap/f/thirdparty/_dynamics/en_IN.js +2 -0
  192. package/src/sap/f/thirdparty/_dynamics/en_NZ.js +2 -0
  193. package/src/sap/f/thirdparty/_dynamics/en_PG.js +2 -0
  194. package/src/sap/f/thirdparty/_dynamics/en_SG.js +2 -0
  195. package/src/sap/f/thirdparty/_dynamics/en_ZA.js +2 -0
  196. package/src/sap/f/thirdparty/_dynamics/es.js +2 -0
  197. package/src/sap/f/thirdparty/_dynamics/es_AR.js +2 -0
  198. package/src/sap/f/thirdparty/_dynamics/es_BO.js +2 -0
  199. package/src/sap/f/thirdparty/_dynamics/es_CL.js +2 -0
  200. package/src/sap/f/thirdparty/_dynamics/es_CO.js +2 -0
  201. package/src/sap/f/thirdparty/_dynamics/es_MX.js +2 -0
  202. package/src/sap/f/thirdparty/_dynamics/es_PE.js +2 -0
  203. package/src/sap/f/thirdparty/_dynamics/es_UY.js +2 -0
  204. package/src/sap/f/thirdparty/_dynamics/es_VE.js +2 -0
  205. package/src/sap/f/thirdparty/_dynamics/et.js +2 -0
  206. package/src/sap/f/thirdparty/_dynamics/fa.js +2 -0
  207. package/src/sap/f/thirdparty/_dynamics/fi.js +2 -0
  208. package/src/sap/f/thirdparty/_dynamics/fr.js +2 -0
  209. package/src/sap/f/thirdparty/_dynamics/fr_BE.js +2 -0
  210. package/src/sap/f/thirdparty/_dynamics/fr_CA.js +2 -0
  211. package/src/sap/f/thirdparty/_dynamics/fr_CH.js +2 -0
  212. package/src/sap/f/thirdparty/_dynamics/fr_LU.js +2 -0
  213. package/src/sap/f/thirdparty/_dynamics/he.js +2 -0
  214. package/src/sap/f/thirdparty/_dynamics/hi.js +2 -0
  215. package/src/sap/f/thirdparty/_dynamics/hr.js +2 -0
  216. package/src/sap/f/thirdparty/_dynamics/hu.js +2 -0
  217. package/src/sap/f/thirdparty/_dynamics/id.js +2 -0
  218. package/src/sap/f/thirdparty/_dynamics/it.js +2 -0
  219. package/src/sap/f/thirdparty/_dynamics/it_CH.js +2 -0
  220. package/src/sap/f/thirdparty/_dynamics/ja.js +2 -0
  221. package/src/sap/f/thirdparty/_dynamics/kk.js +2 -0
  222. package/src/sap/f/thirdparty/_dynamics/ko.js +2 -0
  223. package/src/sap/f/thirdparty/_dynamics/lt.js +2 -0
  224. package/src/sap/f/thirdparty/_dynamics/lv.js +2 -0
  225. package/src/sap/f/thirdparty/_dynamics/messagebundle_ar.js +2 -866
  226. package/src/sap/f/thirdparty/_dynamics/messagebundle_ar2.js +2 -611
  227. package/src/sap/f/thirdparty/_dynamics/messagebundle_bg.js +2 -866
  228. package/src/sap/f/thirdparty/_dynamics/messagebundle_bg2.js +2 -611
  229. package/src/sap/f/thirdparty/_dynamics/messagebundle_ca.js +2 -866
  230. package/src/sap/f/thirdparty/_dynamics/messagebundle_ca2.js +2 -611
  231. package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr.js +2 -866
  232. package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr2.js +2 -611
  233. package/src/sap/f/thirdparty/_dynamics/messagebundle_cs.js +2 -866
  234. package/src/sap/f/thirdparty/_dynamics/messagebundle_cs2.js +2 -611
  235. package/src/sap/f/thirdparty/_dynamics/messagebundle_cy.js +2 -866
  236. package/src/sap/f/thirdparty/_dynamics/messagebundle_cy2.js +2 -611
  237. package/src/sap/f/thirdparty/_dynamics/messagebundle_da.js +2 -866
  238. package/src/sap/f/thirdparty/_dynamics/messagebundle_da2.js +2 -611
  239. package/src/sap/f/thirdparty/_dynamics/messagebundle_de.js +2 -866
  240. package/src/sap/f/thirdparty/_dynamics/messagebundle_de2.js +2 -611
  241. package/src/sap/f/thirdparty/_dynamics/messagebundle_el.js +2 -866
  242. package/src/sap/f/thirdparty/_dynamics/messagebundle_el2.js +2 -611
  243. package/src/sap/f/thirdparty/_dynamics/messagebundle_en.js +2 -866
  244. package/src/sap/f/thirdparty/_dynamics/messagebundle_en2.js +2 -611
  245. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB.js +2 -866
  246. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB2.js +2 -611
  247. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +2 -866
  248. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +2 -611
  249. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +2 -866
  250. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +2 -611
  251. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +2 -866
  252. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +2 -611
  253. package/src/sap/f/thirdparty/_dynamics/messagebundle_es.js +2 -866
  254. package/src/sap/f/thirdparty/_dynamics/messagebundle_es2.js +2 -611
  255. package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX.js +2 -866
  256. package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX2.js +2 -611
  257. package/src/sap/f/thirdparty/_dynamics/messagebundle_et.js +2 -866
  258. package/src/sap/f/thirdparty/_dynamics/messagebundle_et2.js +2 -611
  259. package/src/sap/f/thirdparty/_dynamics/messagebundle_fi.js +2 -866
  260. package/src/sap/f/thirdparty/_dynamics/messagebundle_fi2.js +2 -611
  261. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr.js +2 -866
  262. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr2.js +2 -611
  263. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA.js +2 -866
  264. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA2.js +2 -611
  265. package/src/sap/f/thirdparty/_dynamics/messagebundle_hi.js +2 -866
  266. package/src/sap/f/thirdparty/_dynamics/messagebundle_hi2.js +2 -611
  267. package/src/sap/f/thirdparty/_dynamics/messagebundle_hr.js +2 -866
  268. package/src/sap/f/thirdparty/_dynamics/messagebundle_hr2.js +2 -611
  269. package/src/sap/f/thirdparty/_dynamics/messagebundle_hu.js +2 -866
  270. package/src/sap/f/thirdparty/_dynamics/messagebundle_hu2.js +2 -611
  271. package/src/sap/f/thirdparty/_dynamics/messagebundle_id.js +2 -866
  272. package/src/sap/f/thirdparty/_dynamics/messagebundle_id2.js +2 -611
  273. package/src/sap/f/thirdparty/_dynamics/messagebundle_it.js +2 -866
  274. package/src/sap/f/thirdparty/_dynamics/messagebundle_it2.js +2 -611
  275. package/src/sap/f/thirdparty/_dynamics/messagebundle_iw.js +2 -866
  276. package/src/sap/f/thirdparty/_dynamics/messagebundle_iw2.js +2 -611
  277. package/src/sap/f/thirdparty/_dynamics/messagebundle_ja.js +2 -866
  278. package/src/sap/f/thirdparty/_dynamics/messagebundle_ja2.js +2 -611
  279. package/src/sap/f/thirdparty/_dynamics/messagebundle_kk.js +2 -866
  280. package/src/sap/f/thirdparty/_dynamics/messagebundle_kk2.js +2 -611
  281. package/src/sap/f/thirdparty/_dynamics/messagebundle_ko.js +2 -866
  282. package/src/sap/f/thirdparty/_dynamics/messagebundle_ko2.js +2 -611
  283. package/src/sap/f/thirdparty/_dynamics/messagebundle_lt.js +2 -866
  284. package/src/sap/f/thirdparty/_dynamics/messagebundle_lt2.js +2 -611
  285. package/src/sap/f/thirdparty/_dynamics/messagebundle_lv.js +2 -866
  286. package/src/sap/f/thirdparty/_dynamics/messagebundle_lv2.js +2 -611
  287. package/src/sap/f/thirdparty/_dynamics/messagebundle_mk.js +2 -866
  288. package/src/sap/f/thirdparty/_dynamics/messagebundle_mk2.js +2 -611
  289. package/src/sap/f/thirdparty/_dynamics/messagebundle_ms.js +2 -866
  290. package/src/sap/f/thirdparty/_dynamics/messagebundle_ms2.js +2 -611
  291. package/src/sap/f/thirdparty/_dynamics/messagebundle_nl.js +2 -866
  292. package/src/sap/f/thirdparty/_dynamics/messagebundle_nl2.js +2 -611
  293. package/src/sap/f/thirdparty/_dynamics/messagebundle_no.js +2 -866
  294. package/src/sap/f/thirdparty/_dynamics/messagebundle_no2.js +2 -611
  295. package/src/sap/f/thirdparty/_dynamics/messagebundle_pl.js +2 -866
  296. package/src/sap/f/thirdparty/_dynamics/messagebundle_pl2.js +2 -611
  297. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt.js +2 -866
  298. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt2.js +2 -611
  299. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT.js +2 -866
  300. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT2.js +2 -611
  301. package/src/sap/f/thirdparty/_dynamics/messagebundle_ro.js +2 -866
  302. package/src/sap/f/thirdparty/_dynamics/messagebundle_ro2.js +2 -611
  303. package/src/sap/f/thirdparty/_dynamics/messagebundle_ru.js +2 -866
  304. package/src/sap/f/thirdparty/_dynamics/messagebundle_ru2.js +2 -611
  305. package/src/sap/f/thirdparty/_dynamics/messagebundle_sh.js +2 -866
  306. package/src/sap/f/thirdparty/_dynamics/messagebundle_sh2.js +2 -611
  307. package/src/sap/f/thirdparty/_dynamics/messagebundle_sk.js +2 -866
  308. package/src/sap/f/thirdparty/_dynamics/messagebundle_sk2.js +2 -611
  309. package/src/sap/f/thirdparty/_dynamics/messagebundle_sl.js +2 -866
  310. package/src/sap/f/thirdparty/_dynamics/messagebundle_sl2.js +2 -611
  311. package/src/sap/f/thirdparty/_dynamics/messagebundle_sr.js +2 -866
  312. package/src/sap/f/thirdparty/_dynamics/messagebundle_sr2.js +2 -611
  313. package/src/sap/f/thirdparty/_dynamics/messagebundle_sv.js +2 -866
  314. package/src/sap/f/thirdparty/_dynamics/messagebundle_sv2.js +2 -611
  315. package/src/sap/f/thirdparty/_dynamics/messagebundle_th.js +2 -866
  316. package/src/sap/f/thirdparty/_dynamics/messagebundle_th2.js +2 -611
  317. package/src/sap/f/thirdparty/_dynamics/messagebundle_tr.js +2 -866
  318. package/src/sap/f/thirdparty/_dynamics/messagebundle_tr2.js +2 -611
  319. package/src/sap/f/thirdparty/_dynamics/messagebundle_uk.js +2 -866
  320. package/src/sap/f/thirdparty/_dynamics/messagebundle_uk2.js +2 -611
  321. package/src/sap/f/thirdparty/_dynamics/messagebundle_vi.js +2 -866
  322. package/src/sap/f/thirdparty/_dynamics/messagebundle_vi2.js +2 -611
  323. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN.js +2 -866
  324. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN2.js +2 -611
  325. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW.js +2 -866
  326. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW2.js +2 -611
  327. package/src/sap/f/thirdparty/_dynamics/mk.js +2 -0
  328. package/src/sap/f/thirdparty/_dynamics/ms.js +2 -0
  329. package/src/sap/f/thirdparty/_dynamics/nb.js +2 -0
  330. package/src/sap/f/thirdparty/_dynamics/nl.js +2 -0
  331. package/src/sap/f/thirdparty/_dynamics/nl_BE.js +2 -0
  332. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css10.js +2 -7
  333. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css11.js +2 -7
  334. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css12.js +2 -7
  335. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css13.js +2 -7
  336. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css14.js +2 -7
  337. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css15.js +2 -7
  338. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css16.js +2 -7
  339. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css17.js +2 -7
  340. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css18.js +2 -7
  341. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css19.js +2 -7
  342. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css20.js +2 -7
  343. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css21.js +2 -7
  344. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css22.js +2 -7
  345. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css23.js +2 -7
  346. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css24.js +2 -7
  347. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css25.js +2 -7
  348. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css26.js +2 -7
  349. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css27.js +2 -7
  350. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css4.js +2 -7
  351. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css5.js +2 -7
  352. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css6.js +2 -7
  353. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css7.js +2 -7
  354. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css8.js +2 -7
  355. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css9.js +2 -7
  356. package/src/sap/f/thirdparty/_dynamics/pl.js +2 -0
  357. package/src/sap/f/thirdparty/_dynamics/pt.js +2 -0
  358. package/src/sap/f/thirdparty/_dynamics/pt_PT.js +2 -0
  359. package/src/sap/f/thirdparty/_dynamics/ro.js +2 -0
  360. package/src/sap/f/thirdparty/_dynamics/ru.js +2 -0
  361. package/src/sap/f/thirdparty/_dynamics/ru_UA.js +2 -0
  362. package/src/sap/f/thirdparty/_dynamics/sk.js +2 -0
  363. package/src/sap/f/thirdparty/_dynamics/sl.js +2 -0
  364. package/src/sap/f/thirdparty/_dynamics/sr.js +2 -0
  365. package/src/sap/f/thirdparty/_dynamics/sr_Latn.js +2 -0
  366. package/src/sap/f/thirdparty/_dynamics/sv.js +2 -0
  367. package/src/sap/f/thirdparty/_dynamics/th.js +2 -0
  368. package/src/sap/f/thirdparty/_dynamics/tr.js +2 -0
  369. package/src/sap/f/thirdparty/_dynamics/uk.js +2 -0
  370. package/src/sap/f/thirdparty/_dynamics/vi.js +2 -0
  371. package/src/sap/f/thirdparty/_dynamics/zh_CN.js +2 -0
  372. package/src/sap/f/thirdparty/_dynamics/zh_HK.js +2 -0
  373. package/src/sap/f/thirdparty/_dynamics/zh_SG.js +2 -0
  374. package/src/sap/f/thirdparty/_dynamics/zh_TW.js +2 -0
  375. package/src/sap/f/thirdparty/encodeXML.js +6 -81
  376. package/src/sap/f/thirdparty/event-strict.js +2 -7
  377. package/src/sap/f/thirdparty/generateHighlightedMarkup.js +2 -9
  378. package/src/sap/f/thirdparty/i18n-defaults.js +2 -119
  379. package/src/sap/f/thirdparty/i18n-defaults2.js +2 -159
  380. package/src/sap/f/thirdparty/information.js +2 -100
  381. package/src/sap/f/thirdparty/information2.js +2 -13
  382. package/src/sap/f/thirdparty/overflow.js +2 -25
  383. package/src/sap/f/thirdparty/parameters-bundle.css.js +2 -11
  384. package/src/sap/f/thirdparty/parameters-bundle.css2.js +2 -44
  385. package/src/sap/f/thirdparty/parameters-bundle.css3.js +2 -8
  386. package/src/sap/f/thirdparty/query.js +2 -7
  387. package/src/sap/f/thirdparty/slim-arrow-down.js +2 -44
  388. package/src/sap/f/thirdparty/sys-enter-2.js +2 -7
  389. package/src/sap/f/thirdparty/toLowercaseEnumValue.js +2 -7
  390. package/src/sap/f/thirdparty/ui5/webcomponents_fiori/dist/illustrations/UnableToUpload.js +2 -0
  391. package/src/sap/f/thirdparty/ui5/webcomponents_icons/AllIcons.js +2 -26
  392. package/src/sap/f/thirdparty/ui5/webcomponents_icons_business_suite/AllIcons.js +2 -26
  393. package/src/sap/f/thirdparty/ui5/webcomponents_icons_tnt/AllIcons.js +2 -26
  394. package/src/sap/f/thirdparty/webcomponents-base.js +2 -7
  395. package/src/sap/f/thirdparty/webcomponents-fiori.js +2 -5
  396. package/src/sap/f/thirdparty/webcomponents.js +51 -4589
  397. package/src/sap/f/thirdparty/willShowContent.js +2 -7
  398. package/ui5-build.yaml +1 -0
  399. package/src/sap/f/thirdparty/ListItemCustom.js +0 -1689
@@ -1,3453 +1,2 @@
1
- sap.ui.define(['require', 'exports', 'sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/Icons', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/Button2', 'sap/f/thirdparty/Icon', 'sap/f/thirdparty/ListItemBase', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/ListItemAdditionalText.css', 'sap/f/thirdparty/AccessibilityTextsHelper', 'sap/f/thirdparty/ValueState', 'sap/f/thirdparty/information', 'sap/f/thirdparty/List', 'sap/f/thirdparty/i18n-defaults2', 'sap/f/thirdparty/Label', 'sap/f/thirdparty/ResponsivePopover', 'sap/f/thirdparty/slim-arrow-down', 'sap/f/thirdparty/Title', 'sap/f/thirdparty/BusyIndicator', 'sap/f/thirdparty/encodeXML', 'sap/f/thirdparty/information2', 'sap/f/thirdparty/sys-enter-2', 'sap/f/thirdparty/parameters-bundle.css3', 'sap/f/thirdparty/i18n-defaults'], (function (require, exports, webcomponentsBase, 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" + "/" + "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" + "/" + "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 "@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" + "/" + "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" + "/" + "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" + "/" + "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" + "/" + "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 "@ui5/webcomponents/dist/Select";`
218
- *
219
- * `import "@ui5/webcomponents/dist/Option";`
220
- * `import "@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("@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" + "/" + "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" + "/" + "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 "@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/f/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/f/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("@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" + "/" + "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" + "/" + "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" + "/" + "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 "@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("@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 "@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("@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" + "/" + "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
- }));
1
+ sap.ui.define(["require","exports","sap/f/thirdparty/webcomponents","sap/f/thirdparty/event-strict","sap/f/thirdparty/Theme","sap/f/thirdparty/parameters-bundle.css2","sap/f/thirdparty/Button2","sap/f/thirdparty/Icon","sap/f/thirdparty/ListItemBase","sap/f/thirdparty/parameters-bundle.css","sap/f/thirdparty/ListItemAdditionalText.css","sap/f/thirdparty/AccessibilityTextsHelper","sap/f/thirdparty/ValueState","sap/f/thirdparty/information","sap/f/thirdparty/List","sap/f/thirdparty/i18n-defaults2","sap/f/thirdparty/Label","sap/f/thirdparty/ResponsivePopover","sap/f/thirdparty/slim-arrow-down","sap/f/thirdparty/Title","sap/f/thirdparty/BusyIndicator","sap/f/thirdparty/encodeXML","sap/f/thirdparty/information2","sap/f/thirdparty/sys-enter-2","sap/f/thirdparty/parameters-bundle.css3","sap/f/thirdparty/i18n-defaults"],function(e,t,i,o,n,s,r,a,l,u,c,d,h,p,_,v,f,g,b,m,y,x,I,S,w,T){"use strict";function C(e,t){const i=e?.listItemContent||k;return s.jsx("li",{part:"native-li","data-sap-focus-ref":true,tabindex:this._effectiveTabIndex,class:this.classes.main,draggable:this.movable,role:t?.role,title:t?.title,onFocusIn:this._onfocusin,onKeyUp:this._onkeyup,onKeyDown:this._onkeydown,onClick:this._onclick,children:i.call(this)})}function k(){return s.jsx("div",{part:"content",id:`${this._id}-content`,class:"ui5-li-content",children:s.jsx("div",{class:"ui5-li-text-wrapper",children:s.jsx("span",{part:"title",class:"ui5-li-title",children:s.jsx("slot",{})})})})}function B(){return C.call(this,{listItemContent:A},{role:"option",title:this.tooltip})}function A(){return s.jsxs("div",{part:"content",id:`${this._id}-content`,class:"ui5-li-content",children:[this.displayIconBegin&&s.jsx(a.Icon,{part:"icon",name:this.icon,class:"ui5-li-icon",mode:"Decorative"}),s.jsxs("div",{class:"ui5-li-text-wrapper",children:[s.jsx("span",{part:"title",class:"ui5-li-title",children:s.jsx("slot",{})}),this.additionalText&&s.jsx("span",{part:"additional-text",class:"ui5-li-additional-text",children:this.additionalText})]})]})}n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var P=`:host{height:var(--_ui5_list_item_dropdown_base_height);--_ui5_list_item_title_size: var(--sapFontSize)}\n`;n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var E=`.ui5-li-icon{color:var(--sapList_TextColor);min-width:var(--_ui5_list_item_icon_size);min-height:var(--_ui5_list_item_icon_size);padding-inline-end:var(--_ui5_list_item_icon_padding-inline-end)}\n`;var D=this&&this.__decorate||function(e,t,i,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s;return n>3&&s&&Object.defineProperty(t,i,s),s};let N=class e extends l.ListItemBase{get displayIconBegin(){return!!this.icon}get effectiveDisplayText(){return this.textContent||""}};D([i.d({type:Node,default:true,invalidateOnChildChange:true})],N.prototype,"text",void 0);D([i.s()],N.prototype,"value",void 0);D([i.s()],N.prototype,"icon",void 0);D([i.s()],N.prototype,"additionalText",void 0);D([i.s()],N.prototype,"tooltip",void 0);D([i.s({type:Boolean})],N.prototype,"selected",void 0);N=D([i.m({tag:"ui5-option",template:B,styles:[l.ListItemBase.styles,c.listItemAdditionalTextCss,E,P]})],N);N.define();var O=N;let F,L;const V=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"};n.P(()=>{F&&L||(F=document.createElement("span"),L=document.createElement("span"),F.classList.add("ui5-invisiblemessage-polite"),L.classList.add("ui5-invisiblemessage-assertive"),F.setAttribute("aria-live","polite"),L.setAttribute("aria-live","assertive"),F.setAttribute("role","alert"),L.setAttribute("role","alert"),V(F),V(L),n.o("ui5-announcement-area").appendChild(F),n.o("ui5-announcement-area").appendChild(L))});const R=(e,t)=>{const i=F;i.textContent="",i.textContent=e,setTimeout(()=>{i.textContent===e&&(i.textContent="")},3e3)};var j;(function(e){e["Bullet"]="Bullet";e["Dash"]="Dash";e["VerticalLine"]="VerticalLine"})(j||(j={}));var M=j;function z(){return s.jsxs(s.Fragment,{children:[this.options.length>0&&s.jsxs(g.ResponsivePopover,{id:this.responsivePopoverId,class:{"ui5-select-popover":true,...this.classes.popover},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&&s.jsxs("div",{slot:"header",class:"ui5-responsive-popover-header",children:[s.jsxs("div",{class:"row",children:[s.jsx(m.Title,{children:this._headerTitleText}),s.jsx(r.Button,{class:"ui5-responsive-popover-close-btn",icon:p.decline,design:"Transparent",onClick:this._toggleRespPopover})]}),this.hasValueStateText&&s.jsx("div",{class:{row:true,"ui5-select-value-state-dialog-header":true,...this.classes.popoverValueState},children:this._isPickerOpen&&H.call(this)})]}),!this._isPhone&&this.hasValueStateText&&s.jsxs("div",{class:this.classes.popoverValueState,style:this.styles.responsivePopoverHeader,children:[s.jsx(a.Icon,{class:"ui5-input-value-state-message-icon",name:this._valueStateMessageInputIcon}),this._isPickerOpen&&H.call(this)]}),s.jsx(_.List,{separators:"None",onMouseDown:this._itemMousedown,onItemClick:this._handleItemPress,accessibleRole:"ListBox",children:s.jsx("slot",{})})]}),this.shouldOpenValueStateMessagePopover&&s.jsx(g.Popover,{part:"popover",class:"ui5-valuestatemessage-popover",preventInitialFocus:true,preventFocusRestore:true,hideArrow:true,placement:"Bottom",horizontalAlign:"Start",children:s.jsxs("div",{class:this.classes.popoverValueState,style:this.styles.popoverHeader,children:[s.jsx(a.Icon,{class:"ui5-input-value-state-message-icon",name:this._valueStateMessageInputIcon}),H.call(this)]})})]})}function H(){return s.jsx(s.Fragment,{children:this.shouldDisplayDefaultValueStateMessage?this.valueStateText:s.jsx("slot",{onClick:this._applyFocus,name:"valueStateMessage"})})}function U(){return s.jsxs(s.Fragment,{children:[s.jsxs("div",{class:{"ui5-select-root":true,"ui5-input-focusable-element":true},id:`${this._id}-select`,onClick:this._onclick,title:this._effectiveTooltip,children:[!this.icon&&this.selectedOptionIcon&&s.jsx(a.Icon,{mode:"Decorative",class:"ui5-select-option-icon",name:this.selectedOptionIcon}),s.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&&{"aria-describedby":this.ariaDescribedByIds},"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?s.jsx("slot",{name:"label"}):this.text}),this.icon&&s.jsx("div",{class:{"ui5-select-icon-root":true,inputIcon:true,"inputIcon--pressed":this._iconPressed},children:s.jsx(a.Icon,{name:this.icon,class:{"ui5-select-icon":true}})}),!this.icon&&!this.readonly&&s.jsx("div",{part:"icon-wrapper",class:{"ui5-select-icon-root":true,inputIcon:true,"inputIcon--pressed":this._iconPressed},children:s.jsx(a.Icon,{part:"icon",name:b.slimArrowDown,class:{"ui5-select-icon":true}})}),this.hasValueState&&s.jsx("span",{id:`${this._id}-valueStateDesc`,class:"ui5-hidden-text",children:this.valueStateText}),this.ariaDescriptionText&&s.jsx("span",{id:"accessibleDescription",class:"ui5-hidden-text",children:this.ariaDescriptionText})]}),z.call(this)]})}n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var W=`: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_input_icon_color);cursor:pointer;outline:none;padding:var(--_ui5_input_icon_padding);border-inline-start:var(--_ui5_input_icon_border);min-width:1rem;min-height:1rem;border-radius:var(--_ui5_input_icon_border_radius)}.inputIcon.inputIcon--pressed{background:var(--_ui5_input_icon_pressed_bg);box-shadow:var(--_ui5_input_icon_box_shadow);border-inline-start:var(--_ui5_select_hover_icon_left_border);color:var(--_ui5_input_icon_pressed_color)}.inputIcon:active{background-color:var(--sapButton_Active_Background);box-shadow:var(--_ui5_input_icon_box_shadow);border-inline-start:var(--_ui5_select_hover_icon_left_border);color:var(--_ui5_input_icon_pressed_color)}.inputIcon:not(.inputIcon--pressed):not(:active):hover{background:var(--_ui5_input_icon_hover_bg);box-shadow:var(--_ui5_input_icon_box_shadow)}.inputIcon:hover{border-inline-start:var(--_ui5_select_hover_icon_left_border);box-shadow:var(--_ui5_input_icon_box_shadow)}:host(:not([hidden])){display:inline-block}:host{width:var(--_ui5_input_width);min-width:calc(var(--_ui5_input_min_width) + (var(--_ui5-input-icons-count)*var(--_ui5_input_icon_width)));margin:var(--_ui5_input_margin_top_bottom) 0;height:var(--_ui5_input_height);color:var(--sapField_TextColor);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);font-style:normal;border:var(--_ui5-input-border);border-radius:var(--_ui5_input_border_radius);box-sizing:border-box;text-align:start;transition:var(--_ui5_input_transition);background:var(--sapField_BackgroundStyle);background-color:var(--_ui5_input_background_color)}:host(:not([readonly])),:host([readonly][disabled]){box-shadow:var(--sapField_Shadow)}:host([focused]:not([opened])){border-color:var(--_ui5_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_input_focus_pseudo_element_content);position:absolute;pointer-events:none;z-index:2;border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--_ui5_input_focus_outline_color);border-radius:var(--_ui5_input_focus_border_radius);top:var(--_ui5_input_focus_offset);bottom:var(--_ui5_input_focus_offset);left:var(--_ui5_input_focus_offset);right:var(--_ui5_input_focus_offset)}:host([focused][readonly]:not([opened])) .ui5-input-focusable-element:after{top:var(--_ui5_input_readonly_focus_offset);bottom:var(--_ui5_input_readonly_focus_offset);left:var(--_ui5_input_readonly_focus_offset);right:var(--_ui5_input_readonly_focus_offset);border-radius:var(--_ui5_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_input_bottom_border_height);transition:var(--_ui5_input_transition);background-color:var(--_ui5_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_input_border_radius);overflow:hidden}:host([disabled]){opacity:var(--_ui5_input_disabled_opacity);cursor:default;pointer-events:none;background-color:var(--_ui5-input_disabled_background);border-color:var(--_ui5_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_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_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-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_input_placeholder_style);color:var(--_ui5_input_placeholder_color);padding-right:.125rem}[inner-input]::-moz-placeholder{font-weight:400;font-style:var(--_ui5_input_placeholder_style);color:var(--_ui5_input_placeholder_color);padding-right:.125rem}:host([value-state="Negative"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-input_error_placeholder_color);font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Negative"]) [inner-input]::-moz-placeholder{color:var(--_ui5-input_error_placeholder_color);font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-webkit-input-placeholder{font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-moz-placeholder{font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Positive"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5_input_placeholder_color)}:host([value-state="Positive"]) [inner-input]::-moz-placeholder{color:var(--_ui5_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-moz-placeholder{color:var(--_ui5_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_input_border_radius)}:host([readonly]:not([disabled])){border:var(--_ui5_input_readonly_border);background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--_ui5_input_readonly_background)}:host([value-state="None"]:not([readonly]):hover),:host(:not([value-state]):not([readonly]):hover){border:var(--_ui5_input_hover_border);border-color:var(--_ui5_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_input_state_border_width)}:host([value-state="Negative"]) [inner-input],:host([value-state="Critical"]) [inner-input]{font-style:var(--_ui5_input_error_warning_font_style);text-indent:var(--_ui5_input_error_warning_text_indent)}:host([value-state="Negative"]) [inner-input]{font-weight:var(--_ui5_input_error_font_weight)}:host([value-state="Critical"]) [inner-input]{font-weight:var(--_ui5_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_input_value_state_error_border_color);box-shadow:var(--sapField_InvalidShadow)}:host([value-state="Negative"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_error_background);border-color:var(--_ui5_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_input_focused_value_state_error_focus_outline_color)}:host([value-state="Negative"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-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_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_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_input_value_state_warning_border_color);box-shadow:var(--sapField_WarningShadow)}:host([value-state="Critical"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_warning_background);border-color:var(--_ui5_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_input_focused_value_state_warning_focus_outline_color)}:host([value-state="Critical"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5_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_input_value_state_success_border_color);border-width:var(--_ui5_input_value_state_success_border_width);box-shadow:var(--sapField_SuccessShadow)}:host([value-state="Positive"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_success_background);border-color:var(--_ui5_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_input_focused_value_state_success_focus_outline_color)}:host([value-state="Positive"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5_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_input_value_state_information_border_color);border-width:var(--_ui5_input_information_border_width);box-shadow:var(--sapField_InformationShadow)}:host([value-state="Information"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_information_background);border-color:var(--_ui5_input_focused_value_state_information_border_color)}:host([value-state="Information"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5_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_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_input_custom_icon_padding);box-sizing:content-box!important}:host([value-state="Negative"]) .inputIcon,:host([value-state="Critical"]) .inputIcon{padding:var(--_ui5_input_error_warning_icon_padding)}:host([value-state="Negative"][focused]) .inputIcon,:host([value-state="Critical"][focused]) .inputIcon{padding:var(--_ui5_input_error_warning_focused_icon_padding)}:host([value-state="Information"]) .inputIcon{padding:var(--_ui5_input_information_icon_padding)}:host([value-state="Information"][focused]) .inputIcon{padding:var(--_ui5_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_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_input_error_warning_custom_focused_icon_padding)}:host([value-state="Information"]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5_input_information_custom_icon_padding)}:host([value-state="Information"][focused]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5_input_information_custom_focused_icon_padding)}:host([value-state="Negative"]) .inputIcon:active,:host([value-state="Negative"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_error_icon_box_shadow);color:var(--_ui5_input_icon_error_pressed_color)}:host([value-state="Negative"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_error_icon_box_shadow)}:host([value-state="Critical"]) .inputIcon:active,:host([value-state="Critical"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_warning_icon_box_shadow);color:var(--_ui5_input_icon_warning_pressed_color)}:host([value-state="Critical"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_warning_icon_box_shadow)}:host([value-state="Information"]) .inputIcon:active,:host([value-state="Information"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_information_icon_box_shadow);color:var(--_ui5_input_icon_information_pressed_color)}:host([value-state="Information"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_information_icon_box_shadow)}:host([value-state="Positive"]) .inputIcon:active,:host([value-state="Positive"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_success_icon_box_shadow);color:var(--_ui5_input_icon_success_pressed_color)}:host([value-state="Positive"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_success_icon_box_shadow)}.ui5-input-clear-icon-wrapper{height:var(--_ui5_input_icon_wrapper_height);padding:0;width:var(--_ui5_input_icon_width);min-width:var(--_ui5_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_input_icon_wrapper_state_height);vertical-align:top}:host([value-state="Positive"]) .ui5-input-clear-icon-wrapper{height:var(--_ui5_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}[ui5-responsive-popover] [ui5-input]{width:100%}:host([icon]){min-width:var(--_ui5_button_base_min_width);width:var(--_ui5_button_base_min_width)}:host([icon]) .ui5-select-root{min-width:var(--_ui5_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_input_min_width) + (var(--_ui5-input-icons-count)*var(--_ui5_input_icon_width)));width:100%;height:100%;display:flex;outline:none;cursor:pointer;overflow:hidden;border-radius:var(--_ui5_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_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_select_icon_width);min-width:var(--_ui5_select_icon_width);height:var(--_ui5_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_select_icon_wrapper_state_height)}\n`;n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var G=`.input-root-phone{flex:1;position:relative;height:var(--_ui5_input_height);color:var(--sapField_TextColor);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);background:var(--sapField_BackgroundStyle);background-color:var(--_ui5_input_background_color);border:var(--_ui5-input-border);border-radius:var(--_ui5_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_input_focus_border_radius);top:var(--_ui5_input_focus_offset);bottom:var(--_ui5_input_focus_offset);left:var(--_ui5_input_focus_offset);right:var(--_ui5_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_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_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_input_placeholder_style);color:var(--sapField_PlaceholderTextColor)}[inner-input]::-moz-placeholder{font-style:var(--_ui5_input_placeholder_style);color:var(--sapField_PlaceholderTextColor)}.input-root-phone[value-state]:not([value-state=None]){border-width:var(--_ui5_input_state_border_width)}.input-root-phone[value-state=Negative] [inner-input],.input-root-phone[value-state=Critical] [inner-input]{font-style:var(--_ui5_input_error_warning_font_style)}.input-root-phone[value-state=Negative] [inner-input]{font-weight:var(--_ui5_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_input_value_state_error_border_color)}.input-root-phone[value-state=Negative]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5_input_focused_value_state_error_background);border-color:var(--_ui5_input_focused_value_state_error_border_color)}.input-root-phone[value-state=Negative]:not([readonly]):focus-within:before{border-color:var(--_ui5_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_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_input_value_state_warning_border_color)}.input-root-phone[value-state=Critical]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5_input_focused_value_state_warning_background);border-color:var(--_ui5_input_focused_value_state_warning_border_color)}.input-root-phone[value-state=Critical]:not([readonly]):focus-within:before{border-color:var(--_ui5_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_input_value_state_success_border_color);border-width:var(--_ui5_input_value_state_success_border_width)}.input-root-phone[value-state=Positive]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5_input_focused_value_state_success_background);border-color:var(--_ui5_input_focused_value_state_success_border_color)}.input-root-phone[value-state=Positive]:not([readonly]):focus-within:before{border-color:var(--_ui5_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_input_value_state_information_border_color);border-width:var(--_ui5_input_information_border_width)}.input-root-phone[value-state=Information]:not([readonly]) [inner-input]:focus{background-color:var(--_ui5_input_focused_value_state_information_background);border-color:var(--_ui5_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_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}\n`;n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var $=`.ui5-valuestatemessage-popover{border-radius:var(--_ui5_value_state_message_popover_border_radius);box-shadow:var(--_ui5_value_state_message_popover_box_shadow)}.ui5-input-value-state-message-icon{width:var(--_ui5_value_state_message_icon_width);height:var(--_ui5_value_state_message_icon_height);display:var(--_ui5_input_value_state_icon_display);position:absolute;padding-right:.375rem}.ui5-valuestatemessage-root .ui5-input-value-state-message-icon{left:var(--_ui5_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_value_state_message_padding);overflow:hidden;text-overflow:ellipsis;min-width:6.25rem;border:var(--_ui5_value_state_message_border);line-height:var(--_ui5_value_state_message_line_height)}[ui5-responsive-popover] .ui5-valuestatemessage-header,[ui5-popover] .ui5-valuestatemessage-header{min-height:var(--_ui5_value_state_message_popover_header_min_height);min-width:var(--_ui5_value_state_message_popover_header_min_width);max-width:var(--_ui5_value_state_message_popover_header_max_width);width:var(--_ui5_value_state_message_popover_header_width)}[ui5-responsive-popover] .ui5-valuestatemessage-header{padding:var(--_ui5_value_state_header_padding);border:var(--_ui5_value_state_header_border);border-bottom:var(--_ui5_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_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_value_state_message_padding_phone);width:100%}.ui5-popover-with-value-state-header-phone .ui5-input-value-state-message-icon{left:var(--_ui5_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_value_state_header_box_shadow_error)}[ui5-responsive-popover] .ui5-valuestatemessage--information{box-shadow:var(--_ui5_value_state_header_box_shadow_information)}[ui5-responsive-popover] .ui5-valuestatemessage--success{box-shadow:var(--_ui5_value_state_header_box_shadow_success)}[ui5-responsive-popover] .ui5-valuestatemessage--warning{box-shadow:var(--_ui5_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}\n`;n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var q=`.ui5-select-popover::part(content),.ui5-select-popover::part(header){padding:0}.ui5-select-popover .ui5-responsive-popover-header .row{justify-content:flex-start}\n`;var K=this&&this.__decorate||function(e,t,i,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s;return n>3&&s&&Object.defineProperty(t,i,s),s};var Z;let Y=Z=class e extends i.S{constructor(){super(...arguments);this.disabled=false;this.valueState="None";this.required=false;this.readonly=false;this.textSeparator="Dash";this._iconPressed=false;this.opened=false;this._listWidth=0;this.focused=false;this._selectedIndexBeforeOpen=-1;this._escapePressed=false;this._lastSelectedOption=null;this._typedChars=""}get formValidityMessage(){return Z.i18nBundle.getText(v.FORM_SELECTABLE_REQUIRED)}get formValidity(){return{valueMissing:this.required&&this.selectedOption?.getAttribute("value")===""}}async formElementAnchor(){return this.getFocusDomRefAsync()}get formFormattedValue(){if(this._valueStorage!==undefined){return this._valueStorage}const e=this.selectedOption;if(e){if("value"in e&&e.value!==undefined){return e.value}return e.hasAttribute("value")?e.getAttribute("value"):e.textContent}return""}onEnterDOM(){d.y(this,this._updateAssociatedLabelsTexts.bind(this))}onExitDOM(){d.T(this)}onBeforeRendering(){this._applySelection();this.style.setProperty("--_ui5-input-icons-count",`${this.iconsCount}`)}onAfterRendering(){this.toggleValueStatePopover(this.shouldOpenValueStateMessagePopover);if(this._isPickerOpen){if(!this._listWidth){this._listWidth=this.responsivePopover.offsetWidth}}}_applySelection(){if(this._valueStorage===undefined){this._applyAutoSelection();return}this._applySelectionByValue(this._valueStorage)}_applySelectionByValue(e){if(e!==(this.selectedOption?.value||this.selectedOption?.textContent)){const t=Array.from(this.children);t.forEach(t=>{t.selected=!!((t.getAttribute("value")||t.textContent)===e)})}}_applyAutoSelection(){let e=this.options.findLastIndex(e=>e.selected);e=e===-1?0:e;for(let t=0;t<this.options.length;t++){this.options[t].selected=e===t;if(e===t){break}}}_setValueByOption(e){this.value=e.value||e.textContent||""}_applyFocus(){this.focus()}_onfocusin(){this.focused=true}_onfocusout(){this.focused=false}get _isPickerOpen(){return!!this.responsivePopover&&this.responsivePopover.open}_respPopover(){return this.shadowRoot.querySelector("[ui5-responsive-popover]")}set value(e){this._valueStorage=e}get value(){if(this._valueStorage!==undefined){return this._valueStorage}return this.selectedOption?.value===undefined?this.selectedOption?.textContent||"":this.selectedOption?.value}get _selectedIndex(){return this.options.findIndex(e=>e.selected)}get selectedOption(){return this.options.find(e=>e.selected)}_buildDisplayText(e,t){if(!t){return e}return`${e} ${this._separatorSymbol} ${t}`}get text(){const e=this.selectedOption;if(!e){return""}if(this.readonly&&e.additionalText){return this._buildDisplayText(e.effectiveDisplayText,e.additionalText)}return e.effectiveDisplayText}get _effectiveTooltip(){if(this.tooltip){return this.tooltip}if(this.readonly){const e=this.selectedOption;if(!e){return undefined}const t=e.textContent||"";return this._buildDisplayText(t,e.additionalText)}return undefined}get _separatorSymbol(){switch(this.textSeparator){case M.Bullet:return"·";case M.VerticalLine:return"|";case M.Dash:default:return"–"}}_toggleRespPopover(){if(this.disabled||this.readonly){return}this._iconPressed=true;this.responsivePopover=this._respPopover();if(this._isPickerOpen){this.responsivePopover.open=false}else{this.responsivePopover.opener=this;this.responsivePopover.open=true}}_onkeydown(e){const t=i.x(e)||i.V(e);if(t&&this._isPickerOpen){this.responsivePopover.open=false}else if(i.ko(e)){e.preventDefault();this._toggleRespPopover()}else if(i.A(e)){e.preventDefault()}else if(i.m$2(e)&&this._isPickerOpen){this._escapePressed=true}else if(i.M(e)){this._handleHomeKey(e)}else if(i.n(e)){this._handleEndKey(e)}else if(i.b(e)){this._handleSelectionChange()}else if(i.P(e)||i._(e)){this._handleArrowNavigation(e)}}_handleKeyboardNavigation(e){if(i.b(e)||this.readonly){return}const t=e.key.toLowerCase();this._typedChars+=t;const o=/^(.)\1+$/i.test(this._typedChars)?t:this._typedChars;clearTimeout(this._typingTimeoutID);this._typingTimeoutID=setTimeout(()=>{this._typedChars="";this._typingTimeoutID=-1},1e3);this._selectTypedItem(o)}_selectTypedItem(e){const t=this._selectedIndex;const i=this._searchNextItemByText(e);if(i){const e=this.options.indexOf(i);this._changeSelectedItem(this._selectedIndex,e);if(t!==this._selectedIndex){this.itemSelectionAnnounce();this._scrollSelectedItem()}}}_searchNextItemByText(e){let t=this.options.slice(0);const i=t.splice(this._selectedIndex+1,t.length-this._selectedIndex);const o=t.splice(0,t.length-1);t=i.concat(o);return t.find(t=>t.effectiveDisplayText.toLowerCase().startsWith(e))}_handleHomeKey(e){e.preventDefault();if(this.readonly){return}this._changeSelectedItem(this._selectedIndex,0)}_handleEndKey(e){e.preventDefault();if(this.readonly){return}const t=this.options.length-1;this._changeSelectedItem(this._selectedIndex,t)}_onkeyup(e){if(i.A(e)){if(this._isPickerOpen){this._handleSelectionChange()}else{this._toggleRespPopover()}}}_getItemIndex(e){return this.options.indexOf(e)}_select(e){const t=this._selectedIndex;if(e<0||e>=this.options.length||this.options.length===0){return}if(this.options[t]){this.options[t].selected=false}const i=this.options[e];if(t!==e){this.fireDecoratorEvent("live-change",{selectedOption:i})}i.selected=true;if(this._valueStorage!==undefined){this._setValueByOption(i)}}_handleItemPress(e){const t=e.detail.item;const i=this._getItemIndex(t);this._handleSelectionChange(i)}_itemMousedown(e){e.preventDefault()}_onclick(){this.getFocusDomRef().focus();this._toggleRespPopover()}_handleSelectionChange(e=this._selectedIndex){this._typedChars="";this._select(e);this._toggleRespPopover()}_scrollSelectedItem(){if(this._isPickerOpen){const e=this._currentlySelectedOption?.getDomRef();if(e){e.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}}}_handleArrowNavigation(e){e.preventDefault();if(this.readonly){return}let t=-1;const o=this._selectedIndex;const n=i._(e);if(n){t=this._getNextOptionIndex()}else{t=this._getPreviousOptionIndex()}this._changeSelectedItem(this._selectedIndex,t);if(o!==this._selectedIndex){this.itemSelectionAnnounce();this._scrollSelectedItem()}}_changeSelectedItem(e,t){const i=this.options;if(e===-1&&t<0&&i.length){t=i.length-1}if(t<0||t>=i.length){return}const o=i[e];const n=i[t];if(o===n){return}if(o){o.selected=false;o.focused=false}n.selected=true;n.focused=true;if(this._valueStorage!==undefined){this._setValueByOption(n)}this.fireDecoratorEvent("live-change",{selectedOption:n});if(!this._isPickerOpen){this._fireChangeEvent(n)}}_getNextOptionIndex(){return this._selectedIndex===this.options.length-1?this._selectedIndex:this._selectedIndex+1}_getPreviousOptionIndex(){return this._selectedIndex===0?this._selectedIndex:this._selectedIndex-1}_beforeOpen(){this._selectedIndexBeforeOpen=this._selectedIndex;this._lastSelectedOption=this.options[this._selectedIndex]}_afterOpen(){this.opened=true;this.fireDecoratorEvent("open");this.itemSelectionAnnounce();this._scrollSelectedItem();this._applyFocusToSelectedItem()}_applyFocusToSelectedItem(){this.options.forEach(e=>{e.focused=e.selected;if(e.focused&&n.d()){e.focus()}})}_afterClose(){this.opened=false;this._iconPressed=false;this._listWidth=0;if(this._escapePressed){this._select(this._selectedIndexBeforeOpen);this._escapePressed=false}else if(this._lastSelectedOption!==this.options[this._selectedIndex]){this._fireChangeEvent(this.options[this._selectedIndex]);this._lastSelectedOption=this.options[this._selectedIndex]}this.fireDecoratorEvent("close")}get hasCustomLabel(){return!!this.label.length}_fireChangeEvent(e){const t=!this.fireDecoratorEvent("change",{selectedOption:e});this.fireDecoratorEvent("selected-item-changed");this.fireDecoratorEvent("input");if(t){this._select(this._selectedIndexBeforeOpen)}}get valueStateTextMappings(){return{[h.o.Positive]:Z.i18nBundle.getText(v.VALUE_STATE_SUCCESS),[h.o.Information]:Z.i18nBundle.getText(v.VALUE_STATE_INFORMATION),[h.o.Negative]:Z.i18nBundle.getText(v.VALUE_STATE_ERROR),[h.o.Critical]:Z.i18nBundle.getText(v.VALUE_STATE_WARNING)}}get valueStateTypeMappings(){return{[h.o.Positive]:Z.i18nBundle.getText(v.VALUE_STATE_TYPE_SUCCESS),[h.o.Information]:Z.i18nBundle.getText(v.VALUE_STATE_TYPE_INFORMATION),[h.o.Negative]:Z.i18nBundle.getText(v.VALUE_STATE_TYPE_ERROR),[h.o.Critical]:Z.i18nBundle.getText(v.VALUE_STATE_TYPE_WARNING)}}get valueStateText(){let e;if(this.shouldDisplayDefaultValueStateMessage){e=this.valueStateDefaultText}else{e=this.valueStateMessage.map(e=>e.textContent).join(" ")}return`${this.valueStateTypeText} ${e}`}get valueStateDefaultText(){return this.valueState!==h.o.None?this.valueStateTextMappings[this.valueState]:""}get valueStateTypeText(){return this.valueState!==h.o.None?this.valueStateTypeMappings[this.valueState]:""}get hasValueState(){return this.valueState!==h.o.None}get valueStateTextId(){return this.hasValueState?`${this._id}-valueStateDesc`:undefined}get responsivePopoverId(){return`${this._id}-popover`}get isDisabled(){return this.disabled||undefined}get _headerTitleText(){return Z.i18nBundle.getText(v.INPUT_SUGGESTIONS_TITLE)}get _currentlySelectedOption(){return this.options[this._selectedIndex]}get _effectiveTabIndex(){return this.disabled||this.responsivePopover&&this.responsivePopover.open?-1:0}get _valueStateMessageInputIcon(){const e={Negative:"error",Critical:"alert",Positive:"sys-enter-2",Information:"information"};return this.valueState!==h.o.None?e[this.valueState]:""}get iconsCount(){return this.selectedOptionIcon?2:1}get classes(){return{popoverValueState:{"ui5-valuestatemessage-root":true,"ui5-valuestatemessage-header":!this._isPhone,"ui5-valuestatemessage--success":this.valueState===h.o.Positive,"ui5-valuestatemessage--error":this.valueState===h.o.Negative,"ui5-valuestatemessage--warning":this.valueState===h.o.Critical,"ui5-valuestatemessage--information":this.valueState===h.o.Information},popover:{"ui5-select-popover-valuestate":this.hasValueState}}}get styles(){return{popoverHeader:{display:"block"},responsivePopoverHeader:{display:this.options.length&&this._listWidth===0?"none":"inline-block",width:`${this.options.length?this._listWidth:this.offsetWidth}px`,"max-width":"100%"},responsivePopover:{"min-width":`${this.offsetWidth}px`}}}get ariaLabelText(){return d.A(this)||d.M(this)}get shouldDisplayDefaultValueStateMessage(){return!this.valueStateMessage.length&&this.hasValueStateText}get hasValueStateText(){return this.hasValueState&&this.valueState!==h.o.Positive}get shouldOpenValueStateMessagePopover(){return this.focused&&this.hasValueStateText&&!this._iconPressed&&!this._isPickerOpen&&!this._isPhone}get _ariaRoleDescription(){return Z.i18nBundle.getText(v.SELECT_ROLE_DESCRIPTION)}get _isPhone(){return n.d()}itemSelectionAnnounce(){let e;const t=this.options.length;const i=Z.i18nBundle.getText(v.LIST_ITEM_POSITION,this._selectedIndex+1,t);if(this.focused&&this._currentlySelectedOption){e=`${this._currentlySelectedOption.textContent} ${this._isPickerOpen?i:""}`;R(e)}}openValueStatePopover(){this.valueStatePopover=this._getPopover();if(this.valueStatePopover){this.valueStatePopover.opener=this;this.valueStatePopover.open=true}}closeValueStatePopover(){this.valueStatePopover&&(this.valueStatePopover.open=false)}toggleValueStatePopover(e){if(e){this.openValueStatePopover()}else{this.closeValueStatePopover()}}get selectedOptionIcon(){return this.selectedOption&&this.selectedOption.icon}get ariaDescriptionText(){return this._associatedDescriptionRefTexts||d.L(this)}get ariaDescriptionTextId(){return this.ariaDescriptionText?"accessibleDescription":""}get ariaDescribedByIds(){const e=[this.valueStateTextId,this.ariaDescriptionTextId].filter(Boolean);return e.length?e.join(" "):undefined}get accessibilityInfo(){return{role:"combobox",type:this._ariaRoleDescription,description:this.text,label:this.ariaLabelText,readonly:this.readonly,required:this.required,disabled:this.disabled}}_updateAssociatedLabelsTexts(){this._associatedDescriptionRefTexts=d.p(this)}_getPopover(){return this.shadowRoot.querySelector("[ui5-popover]")}};K([i.s({type:Boolean})],Y.prototype,"disabled",void 0);K([i.s()],Y.prototype,"icon",void 0);K([i.s()],Y.prototype,"name",void 0);K([i.s()],Y.prototype,"valueState",void 0);K([i.s({type:Boolean})],Y.prototype,"required",void 0);K([i.s({type:Boolean})],Y.prototype,"readonly",void 0);K([i.s()],Y.prototype,"accessibleName",void 0);K([i.s()],Y.prototype,"accessibleNameRef",void 0);K([i.s()],Y.prototype,"accessibleDescription",void 0);K([i.s()],Y.prototype,"accessibleDescriptionRef",void 0);K([i.s()],Y.prototype,"tooltip",void 0);K([i.s()],Y.prototype,"textSeparator",void 0);K([i.s({type:String,noAttribute:true})],Y.prototype,"_associatedDescriptionRefTexts",void 0);K([i.s({type:Boolean,noAttribute:true})],Y.prototype,"_iconPressed",void 0);K([i.s({type:Boolean})],Y.prototype,"opened",void 0);K([i.s({type:Number,noAttribute:true})],Y.prototype,"_listWidth",void 0);K([i.s({type:Boolean})],Y.prototype,"focused",void 0);K([i.d({default:true,type:HTMLElement,invalidateOnChildChange:true})],Y.prototype,"options",void 0);K([i.d()],Y.prototype,"valueStateMessage",void 0);K([i.d()],Y.prototype,"label",void 0);K([i.s()],Y.prototype,"value",null);K([u.i("@ui5/webcomponents")],Y,"i18nBundle",void 0);Y=Z=K([i.m({tag:"ui5-select",languageAware:true,formAssociated:true,renderer:s.y,template:U,styles:[W,G,$,q],dependencies:[f,g.ResponsivePopover,g.Popover,_.List,a.Icon,r.Button]}),o.l("change",{bubbles:true,cancelable:true}),o.l("live-change",{bubbles:true}),o.l("open"),o.l("close"),o.l("selected-item-changed",{bubbles:true}),o.l("input",{bubbles:true})],Y);Y.define();var X=Y;function Q(e){return!e?.forceExpanded&&this.collapsed?s.jsx(r.Button,{class:"ui5-shell-search-field-button",icon:b.search,design:r.ButtonDesign.Transparent,"data-sap-focus-ref":true,loading:this.fieldLoading,onClick:this._handleSearchIconPress,tooltip:this._effectiveIconTooltip,accessibleName:this._effectiveIconTooltip,accessibilityAttributes:this._searchButtonAccessibilityAttributes}):s.jsx(y.BusyIndicator,{class:"ui5-search-field-busy-indicator",active:this.fieldLoading,children:s.jsx("div",{class:"ui5-search-field-root",role:"search",onFocusOut:this._onFocusOutSearch,children:s.jsxs("div",{class:"ui5-search-field-content",children:[this.scopes?.length?s.jsxs(s.Fragment,{children:[s.jsx(X,{onChange:this._handleScopeChange,class:"ui5-search-field-select",accessibleName:this._translations.scope,tooltip:this._translations.scope,value:this.scopeValue,children:this.scopes.map(e=>s.jsx(O,{value:e.value,"data-ui5-stable":e.stableDomRef,ref:this.captureRef.bind(e),children:e.text}))}),s.jsx("div",{class:"ui5-search-field-separator"})]}):this.filterButton?.length?s.jsxs(s.Fragment,{children:[s.jsx("div",{class:"ui5-filter-wrapper",style:"display: contents",children:s.jsx("slot",{name:"filterButton"})}),s.jsx("div",{class:"ui5-search-field-separator"})]}):null,s.jsx("input",{class:"ui5-search-field-inner-input",role:"searchbox","aria-description":this.accessibleDescription,"aria-label":this.accessibleName||this._translations.searchFieldAriaLabel,"aria-autocomplete":"both","aria-controls":"ui5-search-list",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&&s.jsx(a.Icon,{class:"ui5-shell-search-field-icon",name:p.decline,showTooltip:true,accessibleName:this._translations.clearIcon,onClick:this._handleClear}),s.jsx(a.Icon,{class:{"ui5-shell-search-field-icon":true,"ui5-shell-search-field-search-icon":this._isSearchIcon},name:b.search,showTooltip:true,accessibleName:this._effectiveIconTooltip,onClick:this._handleSearchIconPress})]})})})}const J=(e,t,o,n)=>{i.x(e)&&(o!==t.length-1?(e.stopImmediatePropagation(),e.preventDefault(),t[o+1].focus()):(n.closeValueState(),n.focusInput())),i.V(e)&&(e.preventDefault(),e.stopImmediatePropagation(),o>0?t[o-1].focus():n.focusInput()),i.P(e)&&(e.preventDefault(),e.stopImmediatePropagation(),n.isPopoverOpen()&&n.focusInput()),i._(e)&&(e.preventDefault(),e.stopImmediatePropagation(),n.navigateToItem()),i.m$2(e)&&(e.preventDefault(),e.stopImmediatePropagation())};const ee=e=>{let t=0;return(e.selectionStart||e.selectionStart===0)&&(t=e.selectionDirection==="backward"?e.selectionStart:e.selectionEnd),t},te=(e,t)=>{e.selectionStart?(e.focus(),e.setSelectionRange(t,t)):e.focus()};var ie;(function(e){e["Text"]="Text";e["Email"]="Email";e["Number"]="Number";e["Password"]="Password";e["Tel"]="Tel";e["URL"]="URL";e["Search"]="Search"})(ie||(ie={}));var oe=ie;function ne(e){const t=e?.suggestionsList;const i=e?.mobileHeader;return s.jsxs(s.Fragment,{children:[this._effectiveShowSuggestions&&this.Suggestions?.template.call(this,{suggestionsList:t,mobileHeader:i,valueStateMessage:se,valueStateMessageInputIcon:re}),this.hasValueStateMessage&&s.jsx(g.Popover,{preventInitialFocus:true,preventFocusRestore:true,hideArrow:true,class:"ui5-valuestatemessage-popover",placement:"Bottom",tabindex:-1,horizontalAlign:g.PopoverHorizontalAlign.Start,opener:this,open:this.valueStateOpen,onClose:this._handleValueStatePopoverAfterClose,children:s.jsxs("div",{slot:"header",class:this.classes.popoverValueState,children:[s.jsx(a.Icon,{class:"ui5-input-value-state-message-icon",name:re.call(this)}),this.valueStateOpen&&se.call(this)]})})]})}function se(){return s.jsx(s.Fragment,{children:this.shouldDisplayDefaultValueStateMessage?this.valueStateText:s.jsx("slot",{name:"valueStateMessage"})})}function re(){const e={Negative:I.error,Critical:I.alert,Positive:S.selectedAccount,Information:I.information};return this.valueState!==h.o.None?e[this.valueState]:""}function ae(e){const t=e?.suggestionsList;const i=e?.mobileHeader;const o=e?.preContent||le;const n=e?.postContent||ue;return s.jsxs(s.Fragment,{children:[s.jsx("div",{class:"ui5-input-root ui5-input-focusable-element",part:"root",onFocusIn:this._onfocusin,onFocusOut:this._onfocusout,children:s.jsxs("div",{class:"ui5-input-content",children:[o.call(this),s.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.value,required:this.required,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&&s.jsx("div",{tabindex:-1,class:"ui5-input-clear-icon-wrapper inputIcon",part:"clear-icon-wrapper",onClick:this._clear,onMouseDown:this._iconMouseDown,children:s.jsx(a.Icon,{part:"clear-icon",class:"ui5-input-clear-icon",name:p.decline,tabindex:-1,accessibleName:this.clearIconAccessibleName})}),this.icon.length>0&&s.jsx("div",{class:"ui5-input-icon-root",tabindex:-1,children:s.jsx("slot",{name:"icon"})}),s.jsx("div",{class:"ui5-input-value-state-icon",children:this._valueStateInputIcon}),n.call(this),this._effectiveShowSuggestions&&s.jsxs(s.Fragment,{children:[s.jsx("span",{id:"suggestionsText",class:"ui5-hidden-text",children:this.suggestionsText}),s.jsx("span",{id:"selectionText",class:"ui5-hidden-text","aria-live":"polite",role:"status"}),s.jsx("span",{id:"suggestionsCount",class:"ui5-hidden-text","aria-live":"polite",children:this.availableSuggestionsCount})]}),this.accInfo.ariaDescription&&s.jsx("span",{id:"descr",class:"ui5-hidden-text",children:this.accInfo.ariaDescription}),this.accInfo.accessibleDescription&&s.jsx("span",{id:"accessibleDescription",class:"ui5-hidden-text",children:this.accInfo.accessibleDescription}),this.linksInAriaValueStateHiddenText.length>0&&s.jsx("span",{id:"hiddenText-value-state-link-shortcut",class:"ui5-hidden-text",children:this.valueStateLinksShortcutsTextAcc}),this.hasValueState&&s.jsx("span",{id:"valueStateDesc",class:"ui5-hidden-text",children:this.ariaValueStateHiddenText})]})}),ne.call(this,{suggestionsList:t,mobileHeader:i})]})}function le(){}function ue(){}const ce=/[[\]{}()*+?.\\^$|]/g;const de=e=>e.replace(ce,"\\$&");const he=(e,t,i)=>{const o=new RegExp(`(^|\\s)${de(e.toLowerCase())}.*`,"g");return t.filter(e=>{const t=e[i];o.lastIndex=0;return o.test(t.toLowerCase())})};const pe=(e,t,i)=>t.filter(t=>(t[i]||"").toLowerCase().startsWith(e.toLowerCase()));const _e=(e,t,i)=>t.filter(t=>(t[i]||"").toLowerCase().includes(e.toLowerCase()));const ve=(e,t)=>t;var fe=Object.freeze({__proto__:null,Contains:_e,None:ve,StartsWith:pe,StartsWithPerTerm:he});n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var ge=`: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_input_icon_color);cursor:pointer;outline:none;padding:var(--_ui5_input_icon_padding);border-inline-start:var(--_ui5_input_icon_border);min-width:1rem;min-height:1rem;border-radius:var(--_ui5_input_icon_border_radius)}.inputIcon.inputIcon--pressed{background:var(--_ui5_input_icon_pressed_bg);box-shadow:var(--_ui5_input_icon_box_shadow);border-inline-start:var(--_ui5_select_hover_icon_left_border);color:var(--_ui5_input_icon_pressed_color)}.inputIcon:active{background-color:var(--sapButton_Active_Background);box-shadow:var(--_ui5_input_icon_box_shadow);border-inline-start:var(--_ui5_select_hover_icon_left_border);color:var(--_ui5_input_icon_pressed_color)}.inputIcon:not(.inputIcon--pressed):not(:active):hover{background:var(--_ui5_input_icon_hover_bg);box-shadow:var(--_ui5_input_icon_box_shadow)}.inputIcon:hover{border-inline-start:var(--_ui5_select_hover_icon_left_border);box-shadow:var(--_ui5_input_icon_box_shadow)}:host(:not([hidden])){display:inline-block}:host{width:var(--_ui5_input_width);min-width:calc(var(--_ui5_input_min_width) + (var(--_ui5-input-icons-count)*var(--_ui5_input_icon_width)));margin:var(--_ui5_input_margin_top_bottom) 0;height:var(--_ui5_input_height);color:var(--sapField_TextColor);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);font-style:normal;border:var(--_ui5-input-border);border-radius:var(--_ui5_input_border_radius);box-sizing:border-box;text-align:start;transition:var(--_ui5_input_transition);background:var(--sapField_BackgroundStyle);background-color:var(--_ui5_input_background_color)}:host(:not([readonly])),:host([readonly][disabled]){box-shadow:var(--sapField_Shadow)}:host([focused]:not([opened])){border-color:var(--_ui5_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_input_focus_pseudo_element_content);position:absolute;pointer-events:none;z-index:2;border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--_ui5_input_focus_outline_color);border-radius:var(--_ui5_input_focus_border_radius);top:var(--_ui5_input_focus_offset);bottom:var(--_ui5_input_focus_offset);left:var(--_ui5_input_focus_offset);right:var(--_ui5_input_focus_offset)}:host([focused][readonly]:not([opened])) .ui5-input-focusable-element:after{top:var(--_ui5_input_readonly_focus_offset);bottom:var(--_ui5_input_readonly_focus_offset);left:var(--_ui5_input_readonly_focus_offset);right:var(--_ui5_input_readonly_focus_offset);border-radius:var(--_ui5_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_input_bottom_border_height);transition:var(--_ui5_input_transition);background-color:var(--_ui5_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_input_border_radius);overflow:hidden}:host([disabled]){opacity:var(--_ui5_input_disabled_opacity);cursor:default;pointer-events:none;background-color:var(--_ui5-input_disabled_background);border-color:var(--_ui5_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_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_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-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_input_placeholder_style);color:var(--_ui5_input_placeholder_color);padding-right:.125rem}[inner-input]::-moz-placeholder{font-weight:400;font-style:var(--_ui5_input_placeholder_style);color:var(--_ui5_input_placeholder_color);padding-right:.125rem}:host([value-state="Negative"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5-input_error_placeholder_color);font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Negative"]) [inner-input]::-moz-placeholder{color:var(--_ui5-input_error_placeholder_color);font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-webkit-input-placeholder{font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Critical"]) [inner-input]::-moz-placeholder{font-weight:var(--_ui5_input_value_state_error_warning_placeholder_font_weight)}:host([value-state="Positive"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5_input_placeholder_color)}:host([value-state="Positive"]) [inner-input]::-moz-placeholder{color:var(--_ui5_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-webkit-input-placeholder{color:var(--_ui5_input_placeholder_color)}:host([value-state="Information"]) [inner-input]::-moz-placeholder{color:var(--_ui5_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_input_border_radius)}:host([readonly]:not([disabled])){border:var(--_ui5_input_readonly_border);background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--_ui5_input_readonly_background)}:host([value-state="None"]:not([readonly]):hover),:host(:not([value-state]):not([readonly]):hover){border:var(--_ui5_input_hover_border);border-color:var(--_ui5_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_input_state_border_width)}:host([value-state="Negative"]) [inner-input],:host([value-state="Critical"]) [inner-input]{font-style:var(--_ui5_input_error_warning_font_style);text-indent:var(--_ui5_input_error_warning_text_indent)}:host([value-state="Negative"]) [inner-input]{font-weight:var(--_ui5_input_error_font_weight)}:host([value-state="Critical"]) [inner-input]{font-weight:var(--_ui5_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_input_value_state_error_border_color);box-shadow:var(--sapField_InvalidShadow)}:host([value-state="Negative"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_error_background);border-color:var(--_ui5_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_input_focused_value_state_error_focus_outline_color)}:host([value-state="Negative"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5-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_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_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_input_value_state_warning_border_color);box-shadow:var(--sapField_WarningShadow)}:host([value-state="Critical"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_warning_background);border-color:var(--_ui5_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_input_focused_value_state_warning_focus_outline_color)}:host([value-state="Critical"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5_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_input_value_state_success_border_color);border-width:var(--_ui5_input_value_state_success_border_width);box-shadow:var(--sapField_SuccessShadow)}:host([value-state="Positive"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_success_background);border-color:var(--_ui5_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_input_focused_value_state_success_focus_outline_color)}:host([value-state="Positive"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5_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_input_value_state_information_border_color);border-width:var(--_ui5_input_information_border_width);box-shadow:var(--sapField_InformationShadow)}:host([value-state="Information"][focused]:not([opened]):not([readonly])){background-color:var(--_ui5_input_focused_value_state_information_background);border-color:var(--_ui5_input_focused_value_state_information_border_color)}:host([value-state="Information"]:not([readonly])) .ui5-input-root:before{background-color:var(--_ui5_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_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_input_custom_icon_padding);box-sizing:content-box!important}:host([value-state="Negative"]) .inputIcon,:host([value-state="Critical"]) .inputIcon{padding:var(--_ui5_input_error_warning_icon_padding)}:host([value-state="Negative"][focused]) .inputIcon,:host([value-state="Critical"][focused]) .inputIcon{padding:var(--_ui5_input_error_warning_focused_icon_padding)}:host([value-state="Information"]) .inputIcon{padding:var(--_ui5_input_information_icon_padding)}:host([value-state="Information"][focused]) .inputIcon{padding:var(--_ui5_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_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_input_error_warning_custom_focused_icon_padding)}:host([value-state="Information"]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5_input_information_custom_icon_padding)}:host([value-state="Information"][focused]) ::slotted([ui5-icon][slot="icon"]){padding:var(--_ui5_input_information_custom_focused_icon_padding)}:host([value-state="Negative"]) .inputIcon:active,:host([value-state="Negative"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_error_icon_box_shadow);color:var(--_ui5_input_icon_error_pressed_color)}:host([value-state="Negative"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_error_icon_box_shadow)}:host([value-state="Critical"]) .inputIcon:active,:host([value-state="Critical"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_warning_icon_box_shadow);color:var(--_ui5_input_icon_warning_pressed_color)}:host([value-state="Critical"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_warning_icon_box_shadow)}:host([value-state="Information"]) .inputIcon:active,:host([value-state="Information"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_information_icon_box_shadow);color:var(--_ui5_input_icon_information_pressed_color)}:host([value-state="Information"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_information_icon_box_shadow)}:host([value-state="Positive"]) .inputIcon:active,:host([value-state="Positive"]) .inputIcon.inputIcon--pressed{box-shadow:var(--_ui5_input_success_icon_box_shadow);color:var(--_ui5_input_icon_success_pressed_color)}:host([value-state="Positive"]) .inputIcon:not(.inputIcon--pressed):not(:active):hover{box-shadow:var(--_ui5_input_success_icon_box_shadow)}.ui5-input-clear-icon-wrapper{height:var(--_ui5_input_icon_wrapper_height);padding:0;width:var(--_ui5_input_icon_width);min-width:var(--_ui5_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_input_icon_wrapper_state_height);vertical-align:top}:host([value-state="Positive"]) .ui5-input-clear-icon-wrapper{height:var(--_ui5_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}[ui5-responsive-popover] [ui5-input]{width:100%}\n`;n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var be=`.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}.native-input-wrapper .ui5-multi-input-mobile-dialog-button{margin-inline-start:.5rem}\n`;var me;(function(e){e["StartsWithPerTerm"]="StartsWithPerTerm";e["StartsWith"]="StartsWith";e["Contains"]="Contains";e["None"]="None"})(me||(me={}));var ye=me;var xe=this&&this.__decorate||function(e,t,i,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s;return n>3&&s&&Object.defineProperty(t,i,s),s};var Ie;var Se;(function(e){e["CHANGE"]="change";e["INPUT"]="input";e["SELECTION_CHANGE"]="selection-change"})(Se||(Se={}));var we;(function(e){e["ACTION_ENTER"]="enter";e["ACTION_USER_INPUT"]="input"})(we||(we={}));let Te=Ie=class t extends i.S{get formValidityMessage(){return this.nativeInput?.validationMessage}get _effectiveShowSuggestions(){return!!(this.showSuggestions&&this.Suggestions)}get formValidity(){return{valueMissing:this.nativeInput?.validity.valueMissing,typeMismatch:this.required&&this.nativeInput?.validity.typeMismatch,patternMismatch:this.nativeInput?.validity.patternMismatch}}async formElementAnchor(){return this.getFocusDomRefAsync()}get formFormattedValue(){return this.value}constructor(){super();this.disabled=false;this.highlight=false;this.readonly=false;this.required=false;this.noTypeahead=false;this.type="Text";this.value="";this.valueState="None";this.showSuggestions=false;this.showClearIcon=false;this.open=false;this.filter=ye.None;this._effectiveShowClearIcon=false;this.focused=false;this.valueStateOpen=false;this._inputAccInfo={};this._nativeInputAttributes={};this._inputIconFocused=false;this._linksListenersArray=[];this._isComposing=false;this._handleLinkNavigation=false;this.hasSuggestionItemSelected=false;this.valueBeforeItemSelection="";this.valueBeforeSelectionStart="";this.previousValue="";this.firstRendering=true;this.typedInValue="";this.lastConfirmedValue="";this.isTyping=false;this._isLatestValueFromSuggestions=false;this._isChangeTriggeredBySuggestion=false;this._indexOfSelectedItem=-1;this._handleResizeBound=this._handleResize.bind(this);this._focusedAfterClear=false;this._valueStateLinks=[]}onEnterDOM(){i.f.register(this,this._handleResizeBound);d.y(this,this._updateAssociatedLabelsTexts.bind(this));this._enableComposition()}onExitDOM(){i.f.deregister(this,this._handleResizeBound);d.T(this);this._removeLinksEventListeners();this._composition?.removeEventListeners()}_highlightSuggestionItem(e){e.markupText=this.typedInValue?this.Suggestions?.hightlightInput(e.text||"",this.typedInValue):x.fnEncodeXML(e.text||"")}_isGroupItem(e){return e.hasAttribute("ui5-suggestion-item-group")}onBeforeRendering(){if(this.showSuggestions){this.enableSuggestions();this._flattenItems.forEach(e=>{if(e.hasAttribute("ui5-suggestion-item")){this._highlightSuggestionItem(e)}else if(this._isGroupItem(e)){e.items?.forEach(e=>{this._highlightSuggestionItem(e)})}})}this._effectiveShowClearIcon=this.showClearIcon&&!!this.value&&!this.readonly&&!this.disabled;this.style.setProperty("--_ui5-input-icons-count",`${this.iconsCount}`);const e=!!this._flattenItems.length;const t=!!this.value;const o=this.shadowRoot.querySelector("input")===i.t();const s=this.disabled||this.readonly;const r=!s&&!this._isPhone&&e&&(this.open||t&&o&&this.isTyping);if(s){this.open=false}else if(!this._isPhone){this.open=e&&(this.open||t&&o&&this.isTyping)}if(this.shouldDisplayOnlyValueStateMessage&&!r){this.openValueStatePopover()}else{this.closeValueStatePopover()}const a=this.value;const l=this.getInputDOMRefSync();if(!l||!a){return}if(this.filter!==ye.None){this._filterItems(this.typedInValue)}const u=l.selectionEnd-l.selectionStart;if(this._shouldAutocomplete&&!n.P$1()&&!u&&!this._isKeyNavigation){const e=this._getFirstMatchingItem(a);if(e){if(!this._isComposing){this._handleTypeAhead(e)}this._selectMatchingItem(e)}}}onAfterRendering(){const e=this.getInputDOMRefSync();if(this.showSuggestions&&this.Suggestions?._getPicker()){this._listWidth=this.Suggestions._getListWidth();this.Suggestions._getList()._itemNavigation._getItems=()=>[]}if(this._performTextSelection){if(this.typedInValue.length&&this.value.length){if(this.filter===ye.Contains){this._adjustContainsSelectionRange()}else{e.setSelectionRange(this.typedInValue.length,this.value.length)}}this.fireDecoratorEvent("type-ahead")}this._performTextSelection=false;if(!i.n$2(this._valueStateLinks,this.linksInAriaValueStateHiddenText)){this._removeLinksEventListeners();this._addLinksEventListeners();this._valueStateLinks=this.linksInAriaValueStateHiddenText}}_adjustContainsSelectionRange(){const e=this.getInputDOMRefSync();const t=this.Suggestions?._getItems().filter(e=>!e.hidden);const i=t?.find(e=>e.selected||e.focused);const o=this._flattenItems.filter(e=>this._isGroupItem(e));if(i&&!o.includes(i)){const t=i?.text?.toLowerCase().startsWith(this.typedInValue.toLowerCase());if(t){e.setSelectionRange(this.typedInValue.length,this.value.length)}else{e.setSelectionRange(0,this.value.length)}}}_onkeydown(e){this._isKeyNavigation=true;this._shouldAutocomplete=!this.noTypeahead&&!(i.Q(e)||i.X(e)||i.m$2(e));if(i.P(e)){return this._handleUp(e)}if(i._(e)){return this._handleDown(e)}if(i.A(e)){return this._handleSpace(e)}if(i.x(e)){return this._handleTab()}if(i.b(e)){const t=this.previousValue===this.getInputDOMRefSync().value;this._enterKeyDown=true;if(t){this.fireDecoratorEvent("_request-submit");i.m$1(this);return}return this._handleEnter(e)}if(i.j(e)){return this._handlePageUp(e)}if(i.q(e)){return this._handlePageDown(e)}if(i.M(e)){return this._handleHome(e)}if(i.n(e)){return this._handleEnd(e)}if(i.m$2(e)){return this._handleEscape()}if(i.Co(e)){return this._handleCtrlAltF8()}if(this.showSuggestions){this._clearPopoverFocusAndSelection()}this._isKeyNavigation=false}_onkeyup(e){if(i.X(e)){this.value=e.target.value}this._enterKeyDown=false}get currentItemIndex(){const e=this.Suggestions?._getItems();const t=e.filter(e=>!e.hidden);const i=t.find(e=>e.selected||e.focused);const o=i?t.indexOf(i):-1;return o}_handleUp(e){if(this.Suggestions?.isOpened()){this.Suggestions.onUp(e,this.currentItemIndex)}}_handleDown(e){if(this.Suggestions?.isOpened()){this.Suggestions.onDown(e,this.currentItemIndex)}}_handleSpace(e){if(this.Suggestions){this.Suggestions.onSpace(e)}}_handleTab(){if(this.Suggestions&&this.previousValue!==this.value){this.Suggestions.onTab()}}_handleCtrlAltF8(){this._handleLinkNavigation=true;const e=this.linksInAriaValueStateHiddenText;if(e.length){e[0].focus()}}_addLinksEventListeners(){const e=this.linksInAriaValueStateHiddenText;e.forEach((t,i)=>{this._linksListenersArray.push(t=>{J(t,e,i,{closeValueState:()=>{if(this.Suggestions?.isOpened()){this.Suggestions?.close()}if(this.valueStateOpen){this.closeValueStatePopover()}},focusInput:()=>{this._handleLinkNavigation=false;this.getInputDOMRef().focus()},navigateToItem:()=>{if(this._handleLinkNavigation){this._handleLinkNavigation=false;if(this.Suggestions?.isOpened()){this.innerFocusIn();this.getInputDOMRef().focus();this.Suggestions.onDown(t,this.currentItemIndex)}}else{this._handleDown(t)}},isPopoverOpen:()=>this.Suggestions&&this.Suggestions?.isOpened()||false})});t.addEventListener("keydown",this._linksListenersArray[i])})}_removeLinksEventListeners(){const e=this.linksInAriaValueStateHiddenText;e.forEach((e,t)=>{e.removeEventListener("keydown",this._linksListenersArray[t])});this._linksListenersArray=[];this._handleLinkNavigation=false}_handleEnter(e){const t=!!this.Suggestions?.onEnter(e);const i=this.getInputDOMRefSync();const o=this._selectableItems.find(e=>e.text===this.value);if(o){const e=o.text||"";i.setSelectionRange(e.length,e.length);if(!t){this.fireSelectionChange(o,true);this.acceptSuggestion(o,true);this.open=false}}if(this._isPhone&&!this._flattenItems.length&&!this.isTypeNumber){i.setSelectionRange(this.value.length,this.value.length)}if(!t){this.lastConfirmedValue=this.value;return}this.focused=true}_handlePageUp(e){if(this._isSuggestionsFocused){this.Suggestions?.onPageUp(e)}else{e.preventDefault()}}_handlePageDown(e){if(this._isSuggestionsFocused){this.Suggestions?.onPageDown(e)}else{e.preventDefault()}}_handleHome(e){if(this._isSuggestionsFocused){this.Suggestions?.onHome(e)}}_handleEnd(e){if(this._isSuggestionsFocused){this.Suggestions?.onEnd(e)}}_handleEscape(){const e=this.showSuggestions&&!!this.Suggestions;const t=e&&this.open;const i=this.getInputDOMRefSync();const o=i.selectionEnd-i.selectionStart>0;this.isTyping=false;if(this.value!==this.previousValue&&this.value!==this.lastConfirmedValue&&!this.open){this.value=this.lastConfirmedValue?this.lastConfirmedValue:this.previousValue;this.fireDecoratorEvent(Se.INPUT,{inputType:""});return}if(!t){this.value=this.lastConfirmedValue?this.lastConfirmedValue:this.previousValue;return}if(t&&this.Suggestions?._isItemOnTarget()){this.value=this.typedInValue||this.valueBeforeSelectionStart;this.focused=true;return}if(o){this.value=this.typedInValue}this.focused=true}_onfocusin(e){this.focused=true;if(!this._focusedAfterClear){this.previousValue=this.value}this.valueBeforeSelectionStart=this.value;this._inputIconFocused=!!e.target&&e.target===this.querySelector("[ui5-icon]");this._focusedAfterClear=false}innerFocusIn(){}_onfocusout(e){const t=e.relatedTarget;if(this.Suggestions?._getPicker()?.contains(t)||this.contains(t)||this.getSlottedNodes("valueStateMessage").some(e=>e.contains(t))){return}this.focused=false;this._isChangeTriggeredBySuggestion=false;if(this.showClearIcon&&!this._effectiveShowClearIcon){this._clearIconClicked=false;this._handleChange()}this.open=false;this._clearPopoverFocusAndSelection();if(!this._clearIconClicked){this.previousValue=""}this.lastConfirmedValue="";this.isTyping=false;if(this.value!==this.previousValue&&this.showClearIcon){this._clearIconClicked=false}}_clearPopoverFocusAndSelection(){if(!this.showSuggestions||!this.Suggestions){return}this.hasSuggestionItemSelected=false;this.Suggestions?._deselectItems();this.Suggestions?._clearItemFocus()}_click(){if(n.d()&&!this.readonly&&this.Suggestions){this.blur();this.open=true}}_handleChange(){if(this._clearIconClicked){this._clearIconClicked=false;return}const e=()=>{if(!this._isChangeTriggeredBySuggestion){this.fireDecoratorEvent(Se.CHANGE)}this.previousValue=this.value;this.typedInValue=this.value;this._isChangeTriggeredBySuggestion=false};if(this.previousValue!==this.getInputDOMRefSync().value){if(this.Suggestions?._getPicker()?.open&&this._flattenItems.some(e=>e.hasAttribute("ui5-suggestion-item")&&e.selected)){this._changeToBeFired=true}else{e();if(this._enterKeyDown){this.fireDecoratorEvent("_request-submit");i.m$1(this)}}}}_clear(){const e=this.value;this.value="";const t=!this.fireDecoratorEvent(Se.INPUT,{inputType:""});if(t){this.value=e;return}this.typedInValue="";if(!this._isPhone){this.fireResetSelectionChange();this.focus();this._focusedAfterClear=true}}_iconMouseDown(){this._clearIconClicked=true}_scroll(e){this.fireDecoratorEvent("suggestion-scroll",{scrollTop:e.detail.scrollTop,scrollContainer:e.detail.targetRef})}_handleSelect(){this.fireDecoratorEvent("select")}_handleInput(e){const t=e.detail&&e.detail.inputType||"";this._input(e,t)}_handleNativeInput(e){const t=e.inputType||"";this._input(e,t)}_input(e,t){const i=this.getInputDOMRefSync();const o=["deleteWordBackward","deleteWordForward","deleteSoftLineBackward","deleteSoftLineForward","deleteEntireSoftLine","deleteHardLineBackward","deleteHardLineForward","deleteByDrag","deleteByCut","deleteContent","deleteContentBackward","deleteContentForward","historyUndo"];this._shouldAutocomplete=!o.includes(t)&&!this.noTypeahead;if(e.target===i){this.focused=true;e.stopImmediatePropagation()}this.fireEventByAction(we.ACTION_ENTER,e);this.hasSuggestionItemSelected=false;if(this.Suggestions){this.Suggestions.updateSelectedItemPosition(-1)}if(this.filter&&e.target.value===""){this.open=false}this.isTyping=true}_startsWithMatchingItems(e){return pe(e,this._selectableItems,"text")}_getFirstMatchingItem(e){if(!this._flattenItems.length){return}const t=this._startsWithMatchingItems(e).filter(e=>!this._isGroupItem(e));if(t.length){return t[0]}}_handleSelectionChange(e){this.Suggestions?.onItemPress(e)}_selectMatchingItem(e){e.selected=true}_filterItems(e){let t=[];const i=this._flattenItems.filter(e=>this._isGroupItem(e));this._resetItemVisibility();if(i.length){t=this._filterGroups(this.filter,i)}else{t=fe[this.filter](e,this._selectableItems,"text")}this._selectableItems.forEach(e=>{e.hidden=!t.includes(e)});if(t.length===0){this.open=false}}_filterGroups(e,t){const i=[];t.forEach(t=>{const o=fe[e](this.typedInValue,t.items??[],"text");i.push(...o);if(o.length===0){t.hidden=true}else{t.hidden=false}});return i}_resetItemVisibility(){this._flattenItems.forEach(e=>{if(this._isGroupItem(e)){e.items?.forEach(e=>{e.hidden=false});return}e.hidden=false})}_handleTypeAhead(e){const t=e.text?e.text:"";this.value=t;this._performTextSelection=true;this._shouldAutocomplete=false}_handleResize(){this._inputWidth=this.offsetWidth}_updateAssociatedLabelsTexts(){this._associatedLabelsTexts=d.M(this);this._accessibleLabelsRefTexts=d.E(this);this._associatedDescriptionRefTexts=d.p(this)}_closePicker(){this.open=false}_confirmMobileValue(){this._closePicker();this._handleChange()}_cancelMobileValue(){this.value=this.previousValue;this._closePicker()}_afterOpenPicker(){if(n.d()){this.previousValue=this.value;this.getInputDOMRef().focus();this._composition?.addEventListeners()}this._handlePickerAfterOpen()}_afterClosePicker(){if(n.d()){this.blur();this.focused=false}if(this._changeToBeFired&&!this._isChangeTriggeredBySuggestion){this.previousValue=this.value;this.fireDecoratorEvent(Se.CHANGE)}else{this._isChangeTriggeredBySuggestion=false}this._changeToBeFired=false;this.open=false;this.isTyping=false;if(this.hasSuggestionItemSelected){this.focus()}const e=this.shadowRoot.querySelector(`#selectionText`);if(e){e.textContent=""}this._handlePickerAfterClose()}_handlePickerAfterOpen(){this.fireDecoratorEvent("open")}_handlePickerAfterClose(){this.Suggestions?._onClose();this.fireDecoratorEvent("close")}openValueStatePopover(){this.valueStateOpen=true}closeValueStatePopover(){this.valueStateOpen=false}_handleValueStatePopoverAfterClose(){this.valueStateOpen=false;this._handleLinkNavigation=false}_getValueStatePopover(){return this.shadowRoot.querySelector("[ui5-popover]")}enableSuggestions(){if(this.Suggestions){return}const t=e=>{e.i18nBundle=Ie.i18nBundle;this.Suggestions=new e(this,"suggestionItems",true,false)};if(Ie.SuggestionsClass){t(Ie.SuggestionsClass)}else{new Promise(function(t,i){e(["sap/f/thirdparty/_dynamics/InputSuggestions"],t,i)}).then(e=>{t(e.default)})}}_enableComposition(){if(this._composition){return}const t=e=>{this._composition=new e({getInputEl:()=>this.getInputDOMRefSync(),updateCompositionState:e=>{this._isComposing=e}});this._composition.addEventListeners()};if(Ie.composition){t(Ie.composition)}else{new Promise(function(t,i){e(["sap/f/thirdparty/_dynamics/InputComposition"],t,i)}).then(e=>{Ie.composition=e.default;t(e.default)})}}acceptSuggestion(e,t){if(this._isGroupItem(e)){return}const i=e.text||"";const o=t?this.valueBeforeItemSelection!==i:this.previousValue!==i;this.hasSuggestionItemSelected=true;this.value=i;if(o&&this.previousValue!==i){this.valueBeforeItemSelection=i;this.lastConfirmedValue=i;this._performTextSelection=true;this.fireDecoratorEvent(Se.CHANGE);this._isChangeTriggeredBySuggestion=true;this.typedInValue=this.value;this.previousValue=this.value}this.valueBeforeSelectionStart="";this.isTyping=false;this.open=false}updateValueOnSelect(e){const t=this._isGroupItem(e)?this.valueBeforeSelectionStart:e.text;this.value=t||"";this._performTextSelection=true}fireEventByAction(e,t){const i=this.value;const o=this.getInputDOMRefSync();if(this.disabled||this.readonly){return}const n=this.getInputValue();const s=e===we.ACTION_ENTER;this.value=n;this.typedInValue=n;this.valueBeforeSelectionStart=n;const r=this.value;if(s){const e=t.inputType||"";const n=!this.fireDecoratorEvent(Se.INPUT,{inputType:e});if(n){if(r===this.value){this.value=i}o&&(o.value=this.value)}this.fireResetSelectionChange()}}getInputValue(){const e=this.getDomRef();if(e){return this.getInputDOMRef().value}return""}getInputDOMRef(){if(n.d()&&this.Suggestions){const e=this.Suggestions._getPicker();if(e){return e.querySelector(".ui5-input-inner-phone")}}return this.nativeInput}getInputDOMRefSync(){if(n.d()&&this.Suggestions){const e=this.Suggestions._getPicker();if(e){return e.querySelector(".ui5-input-inner-phone").shadowRoot.querySelector("input")}}return this.nativeInput}get nativeInput(){const e=this.getDomRef();return e?e.querySelector(`input`):null}get nativeInputWidth(){return this.nativeInput?this.nativeInput.offsetWidth:0}isSuggestionsScrollable(){if(!this.Suggestions){return Promise.resolve(false)}return this.Suggestions?._isScrollable()}onItemMouseDown(e){e.preventDefault()}onItemSelected(e,t){const i=!t&&!e?.focused&&this.valueBeforeItemSelection!==e.text;if(i){this.fireSelectionChange(e,true)}this.acceptSuggestion(e,t)}_handleSuggestionItemPress(e){this.Suggestions?.onItemPress(e)}onItemSelect(e){this.valueBeforeItemSelection=this.value;this.updateValueOnSelect(e);this.announceSelectedItem();this.fireSelectionChange(e,true)}get _flattenItems(){return this.getSlottedNodes("suggestionItems").flatMap(e=>this._isGroupItem(e)?[e,...e.items]:[e])}get _selectableItems(){return this._flattenItems.filter(e=>!this._isGroupItem(e))}get valueStateTypeMappings(){return{Positive:Ie.i18nBundle.getText(v.VALUE_STATE_TYPE_SUCCESS),Information:Ie.i18nBundle.getText(v.VALUE_STATE_TYPE_INFORMATION),Negative:Ie.i18nBundle.getText(v.VALUE_STATE_TYPE_ERROR),Critical:Ie.i18nBundle.getText(v.VALUE_STATE_TYPE_WARNING)}}valueStateTextMappings(){return{Positive:Ie.i18nBundle.getText(v.VALUE_STATE_SUCCESS),Information:Ie.i18nBundle.getText(v.VALUE_STATE_INFORMATION),Negative:Ie.i18nBundle.getText(v.VALUE_STATE_ERROR),Critical:Ie.i18nBundle.getText(v.VALUE_STATE_WARNING)}}announceSelectedItem(){const e=this.shadowRoot.querySelector(`#selectionText`);if(e){e.textContent=this.itemSelectionAnnounce}}fireSelectionChange(e,t){if(this.Suggestions){this.fireDecoratorEvent(Se.SELECTION_CHANGE,{item:e});this._isLatestValueFromSuggestions=t}}fireResetSelectionChange(){if(this._isLatestValueFromSuggestions){this.fireSelectionChange(null,false);this.valueBeforeItemSelection=this.value}}get _readonly(){return this.readonly&&!this.disabled}get _headerTitleText(){return Ie.i18nBundle.getText(v.INPUT_SUGGESTIONS_TITLE)}get _suggestionsOkButtonText(){return Ie.i18nBundle.getText(v.INPUT_SUGGESTIONS_OK_BUTTON)}get _suggestionsCancelButtonText(){return Ie.i18nBundle.getText(v.INPUT_SUGGESTIONS_CANCEL_BUTTON)}get clearIconAccessibleName(){return Ie.i18nBundle.getText(v.INPUT_CLEAR_ICON_ACC_NAME)}get _popupLabel(){return Ie.i18nBundle.getText(v.INPUT_AVALIABLE_VALUES)}get inputType(){return this.type}get inputNativeType(){return this.type.toLowerCase()}get isTypeNumber(){return this.type===oe.Number}get suggestionsTextId(){return this.showSuggestions?`suggestionsText`:""}get valueStateTextId(){return this.hasValueState?`valueStateDesc`:""}get _accInfoAriaDescription(){return this._inputAccInfo&&this._inputAccInfo.ariaDescription||""}get _accInfoAriaDescriptionId(){const e=this._accInfoAriaDescription!=="";return e?"descr":""}get ariaDescriptionText(){return this._associatedDescriptionRefTexts||d.L(this)}get ariaDescriptionTextId(){return this.ariaDescriptionText?"accessibleDescription":""}get ariaDescribedByIds(){return[this.suggestionsTextId,this.valueStateTextId,this._valueStateLinksShortcutsTextAccId,this._inputAccInfo.ariaDescribedBy,this._accInfoAriaDescriptionId,this.ariaDescriptionTextId].filter(Boolean).join(" ")}get accInfo(){const e=this.showSuggestions?"dialog":undefined;const t=this.showSuggestions?"list":undefined;return{ariaRoledescription:this._inputAccInfo&&(this._inputAccInfo.ariaRoledescription||undefined),ariaDescribedBy:this.ariaDescribedByIds||undefined,ariaInvalid:this.valueState===h.o.Negative?true:undefined,ariaHasPopup:this._inputAccInfo.ariaHasPopup?this._inputAccInfo.ariaHasPopup:e,ariaAutoComplete:this._inputAccInfo.ariaAutoComplete?this._inputAccInfo.ariaAutoComplete:t,role:this._inputAccInfo&&this._inputAccInfo.role,ariaControls:this._inputAccInfo&&this._inputAccInfo.ariaControls,ariaExpanded:this._inputAccInfo&&this._inputAccInfo.ariaExpanded,ariaDescription:this._accInfoAriaDescription,accessibleDescription:this.ariaDescriptionText,ariaLabel:this._inputAccInfo&&this._inputAccInfo.ariaLabel||this._accessibleLabelsRefTexts||this.accessibleName||this._associatedLabelsTexts||undefined}}get nativeInputAttributes(){return{min:this.isTypeNumber?this._nativeInputAttributes.min:undefined,max:this.isTypeNumber?this._nativeInputAttributes.max:undefined,step:this.isTypeNumber?this._nativeInputAttributes.step||"any":undefined}}get ariaValueStateHiddenText(){if(!this.hasValueState){return}const e=this.valueState!==h.o.None?this.valueStateTypeMappings[this.valueState]:"";if(this.shouldDisplayDefaultValueStateMessage){return this.valueStateText?`${e} ${this.valueStateText}`:e}return this.valueStateMessage.length?`${e} ${this.valueStateMessage.map(e=>e.textContent).join(" ")}`:e}get itemSelectionAnnounce(){return this.Suggestions?this.Suggestions.itemSelectionAnnounce:""}get linksInAriaValueStateHiddenText(){const e=[];if(this.valueStateMessage){this.valueStateMessage.forEach(t=>{if(t.children.length){t.querySelectorAll("ui5-link").forEach(t=>{e.push(t)})}})}return e}get valueStateLinksShortcutsTextAcc(){const e=this.linksInAriaValueStateHiddenText;if(!e.length){return""}if(n.A()){return e.length===1?Ie.i18nBundle.getText(v.VALUE_STATE_LINK_MAC):Ie.i18nBundle.getText(v.VALUE_STATE_LINKS_MAC)}return e.length===1?Ie.i18nBundle.getText(v.VALUE_STATE_LINK):Ie.i18nBundle.getText(v.VALUE_STATE_LINKS)}get _valueStateLinksShortcutsTextAccId(){return this.linksInAriaValueStateHiddenText.length>0?`hiddenText-value-state-link-shortcut`:""}get iconsCount(){const e=this.icon?this.icon.length:0;const t=Number(this._effectiveShowClearIcon)??0;return e+t}get classes(){return{popover:{"ui5-suggestions-popover":this.showSuggestions,"ui5-popover-with-value-state-header-phone":this._isPhone&&this.showSuggestions&&this.hasValueStateMessage,"ui5-popover-with-value-state-header":!this._isPhone&&this.showSuggestions&&this.hasValueStateMessage},popoverValueState:{"ui5-valuestatemessage-root":true,"ui5-valuestatemessage-header":true,"ui5-valuestatemessage--success":this.valueState===h.o.Positive,"ui5-valuestatemessage--error":this.valueState===h.o.Negative,"ui5-valuestatemessage--warning":this.valueState===h.o.Critical,"ui5-valuestatemessage--information":this.valueState===h.o.Information}}}get styles(){const e=parseInt(getComputedStyle(document.documentElement).fontSize);const t={suggestionPopoverHeader:{display:this._listWidth===0?"none":"inline-block",width:this._listWidth?`${this._listWidth}px`:"","max-width":"inherit"},suggestionsPopover:{"min-width":this._inputWidth?`${this._inputWidth}px`:"","max-width":this._inputWidth&&this._inputWidth/e>40?`${this._inputWidth}px`:"40rem"},innerInput:{padding:""}};return t}get suggestionSeparators(){return"None"}get shouldDisplayOnlyValueStateMessage(){return this.hasValueStateMessage&&!this.readonly&&!this.open&&this.focused}get shouldDisplayDefaultValueStateMessage(){return!this.valueStateMessage.length&&this.hasValueStateMessage}get hasValueState(){return this.valueState!==h.o.None}get hasValueStateMessage(){return this.hasValueState&&this.valueState!==h.o.Positive&&(!this._inputIconFocused||!!(this._isPhone&&this.Suggestions))}get valueStateText(){return this.valueState!==h.o.None?this.valueStateTextMappings()[this.valueState]:undefined}get suggestionsText(){return Ie.i18nBundle.getText(v.INPUT_SUGGESTIONS)}get availableSuggestionsCount(){if(this.showSuggestions&&(this.value||this.Suggestions?.isOpened())){const e=this._selectableItems;switch(e.length){case 0:return Ie.i18nBundle.getText(v.INPUT_SUGGESTIONS_NO_HIT);case 1:return Ie.i18nBundle.getText(v.INPUT_SUGGESTIONS_ONE_HIT);default:return Ie.i18nBundle.getText(v.INPUT_SUGGESTIONS_MORE_HITS,e.length)}}return undefined}get step(){return this.isTypeNumber?"any":undefined}get _isPhone(){return n.d()}get _isSuggestionsFocused(){return!this.focused&&this.Suggestions?.isOpened()}get _placeholder(){return this.placeholder}get _valueStateInputIcon(){const e={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"/>`,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"/>`,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"/>`,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"/>`};if(this.valueState!==h.o.None){return`\n\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 20 20" fill="none">\n\t\t\t\t${e[this.valueState]};\n\t\t\t</svg>\n\t\t\t`}return""}get _valueStateMessageInputIcon(){const e={Negative:"error",Critical:"alert",Positive:"sys-enter-2",Information:"information"};return this.valueState!==h.o.None?e[this.valueState]:""}getCaretPosition(){return ee(this.nativeInput)}setCaretPosition(e){te(this.nativeInput,e)}removeFractionalPart(e){if(e.includes(".")){return e.slice(0,e.indexOf("."))}if(e.includes(",")){return e.slice(0,e.indexOf(","))}return e}};xe([i.s({type:Boolean})],Te.prototype,"disabled",void 0);xe([i.s({type:Boolean})],Te.prototype,"highlight",void 0);xe([i.s()],Te.prototype,"placeholder",void 0);xe([i.s({type:Boolean})],Te.prototype,"readonly",void 0);xe([i.s({type:Boolean})],Te.prototype,"required",void 0);xe([i.s({type:Boolean})],Te.prototype,"noTypeahead",void 0);xe([i.s()],Te.prototype,"type",void 0);xe([i.s()],Te.prototype,"value",void 0);xe([i.s()],Te.prototype,"valueState",void 0);xe([i.s()],Te.prototype,"name",void 0);xe([i.s({type:Boolean})],Te.prototype,"showSuggestions",void 0);xe([i.s({type:Number})],Te.prototype,"maxlength",void 0);xe([i.s()],Te.prototype,"accessibleName",void 0);xe([i.s()],Te.prototype,"accessibleNameRef",void 0);xe([i.s()],Te.prototype,"accessibleDescription",void 0);xe([i.s()],Te.prototype,"accessibleDescriptionRef",void 0);xe([i.s({type:Boolean})],Te.prototype,"showClearIcon",void 0);xe([i.s({type:Boolean})],Te.prototype,"open",void 0);xe([i.s()],Te.prototype,"filter",void 0);xe([i.s({type:Boolean})],Te.prototype,"_effectiveShowClearIcon",void 0);xe([i.s({type:Boolean})],Te.prototype,"focused",void 0);xe([i.s()],Te.prototype,"hint",void 0);xe([i.s({type:Boolean})],Te.prototype,"valueStateOpen",void 0);xe([i.s({type:Object})],Te.prototype,"_inputAccInfo",void 0);xe([i.s({type:Object})],Te.prototype,"_nativeInputAttributes",void 0);xe([i.s({type:Number})],Te.prototype,"_inputWidth",void 0);xe([i.s({type:Number})],Te.prototype,"_listWidth",void 0);xe([i.s({type:Boolean,noAttribute:true})],Te.prototype,"_inputIconFocused",void 0);xe([i.s({noAttribute:true})],Te.prototype,"_associatedLabelsTexts",void 0);xe([i.s({noAttribute:true})],Te.prototype,"_accessibleLabelsRefTexts",void 0);xe([i.s({noAttribute:true})],Te.prototype,"_associatedDescriptionRefTexts",void 0);xe([i.s({type:Object})],Te.prototype,"Suggestions",void 0);xe([i.s({type:Array})],Te.prototype,"_linksListenersArray",void 0);xe([i.s({type:Boolean,noAttribute:true})],Te.prototype,"_isComposing",void 0);xe([i.d({type:HTMLElement,default:true})],Te.prototype,"suggestionItems",void 0);xe([i.d()],Te.prototype,"icon",void 0);xe([i.d({type:HTMLElement,invalidateOnChildChange:true})],Te.prototype,"valueStateMessage",void 0);xe([u.i("@ui5/webcomponents")],Te,"i18nBundle",void 0);Te=Ie=xe([i.m({tag:"ui5-input",languageAware:true,formAssociated:true,renderer:s.y,template:ae,styles:[ge,G,$,be]}),o.l("change",{bubbles:true}),o.l("_request-submit",{bubbles:true}),o.l("input",{bubbles:true,cancelable:true}),o.l("select",{bubbles:true}),o.l("selection-change",{bubbles:true}),o.l("type-ahead",{bubbles:true}),o.l("suggestion-scroll",{bubbles:true}),o.l("open",{bubbles:true}),o.l("close")],Te);Te.define();var Ce=Te;function ke(){return[C.call(this,{listItemContent:Be},{role:"option"})]}function Be(){return s.jsx("div",{part:"content",id:"content",class:"ui5-li-content",children:s.jsxs("div",{class:"ui5-li-text-wrapper",children:[s.jsx("span",{part:"title",className:"ui5-li-title",dangerouslySetInnerHTML:{__html:this.markupText}}),this.additionalText&&s.jsx("span",{part:"additional-text",class:"ui5-li-additional-text",children:this.additionalText})]})})}n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>u.defaultTheme,"host");var Ae=`:host([ui5-suggestion-item]){height:auto;min-height:var(--_ui5_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-root{min-height:var(--_ui5_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-content{padding-bottom:.5rem;padding-top:.5rem;box-sizing:border-box}\n`;var Pe=this&&this.__decorate||function(e,t,i,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s;return n>3&&s&&Object.defineProperty(t,i,s),s};let Ee=class e extends l.ListItemBase{constructor(){super(...arguments);this.markupText=""}onEnterDOM(){if(n.f$1()){this.setAttribute("desktop","")}}get _effectiveTabIndex(){return-1}};Pe([i.s()],Ee.prototype,"text",void 0);Pe([i.s()],Ee.prototype,"additionalText",void 0);Pe([i.s()],Ee.prototype,"markupText",void 0);Ee=Pe([i.m({tag:"ui5-suggestion-item",template:ke,styles:[l.ListItemBase.styles,Ae]})],Ee);Ee.define();var De=Ee;var Ne;(function(e){e["Search"]="search";e["Go"]="go";e["Next"]="next";e["Enter"]="enter";e["Done"]="done";e["Previous"]="previous";e["Send"]="send"})(Ne||(Ne={}));var Oe=Ne;function Fe(e){return s.jsxs(g.ResponsivePopover,{id:"ui5-search-list",hideArrow:true,preventFocusRestore:true,preventInitialFocus:!n.d(),accessibleNameRef:"suggestions-speech-output message-area-text message-area-description",placement:g.PopoverPlacement.Bottom,horizontalAlign:g.PopoverHorizontalAlign.Start,open:this.open,opener:this,onOpen:this._handleOpen,onClose:this._handleClose,onBeforeClose:this._handleBeforeClose,onBeforeOpen:this._handleBeforeOpen,class:{"ui5-search-popover":true,"ui5-search-popover-phone":n.d()},children:[n.d()?e?e.call(this):s.jsx(s.Fragment,{children:s.jsxs("header",{slot:"header",class:"ui5-search-popup-searching-header",children:[s.jsx(Ce,{class:"ui5-search-popover-search-field",onInput:this._handleMobileInput,showClearIcon:this.showClearIcon,noTypeahead:this.noTypeahead,hint:Oe.Search,onKeyDown:this._onMobileInputKeydown,children:this._flattenItems.map(e=>s.jsx(De,{text:e.text}))}),s.jsx(r.Button,{design:r.ButtonDesign.Transparent,onClick:this._handleCancel,children:this.cancelButtonText})]})}):null,s.jsxs("main",{class:"ui5-search-popover-content",children:[s.jsx("slot",{name:"messageArea"}),s.jsx("div",{class:"search-popover-busy-wrapper",children:s.jsx(y.BusyIndicator,{active:true})}),this.items.length?s.jsx(_.List,{class:"ui5-search-list",separators:_.ListSeparator.None,onKeyDown:this._onItemKeydown,accessibleRole:_.ListAccessibleRole.ListBox,onItemClick:this._onItemClick,children:s.jsx("slot",{})}):s.jsx("slot",{name:"illustration"}),s.jsx("span",{class:"ui5-hidden-text",id:"suggestions-speech-output",children:this.suggestionsText}),this.messageArea[0]?.text?s.jsx("span",{class:"ui5-hidden-text",id:"message-area-text",children:this.messageArea[0].text}):null,this.messageArea[0]?.description?s.jsx("span",{class:"ui5-hidden-text",id:"message-area-description",children:this.messageArea[0].description}):null]}),this.action.length?s.jsx("slot",{onKeyDown:this._handleActionKeydown,name:"action",slot:"footer"}):null]})}function Le(){return s.jsxs(s.Fragment,{children:[Q.call(this),Fe.call(this)]})}n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s"+"-"+"f"+"i"+"o"+"r"+"i","sap_horizon",async()=>w.defaultTheme,"host");var Ve=`.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_search_input_border_radius)}.ui5-search-popover-search-field::part(root):after{border-radius:var(--_ui5_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-search-loading-overlay-background);opacity:var(--_ui5-search-loading-overlay-transparency);border-radius:var(--_ui5_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}\n`;n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s"+"-"+"f"+"i"+"o"+"r"+"i","sap_horizon",async()=>w.defaultTheme,"host");var Re=`: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(--_ui5-search-field-text-color);font-size:var(--sapFontSize);font-family:var(--sapFontFamily);font-style:normal;box-shadow:var(--sapField_Shadow);border-radius:var(--_ui5_search_input_border_radius);box-sizing:border-box;text-align:start;background:var(--sapField_BackgroundStyle);background-color:var(--_ui5-search-wrapper-background);position:relative}.ui5-search-field-busy-indicator{width:100%;height:100%;border-radius:var(--_ui5_search_input_border_radius)}.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-search-wrapper-hover-background);background-color:var(--_ui5-search-wrapper-hover-background-color)}:host([focused-inner-input]) .ui5-search-field-root{outline:var(--_ui5_search_wrapper_outline);border-radius:var(--_ui5_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_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]{outline:none;margin:var(--_ui5_search_input_scope_margin);max-width:10rem;border-radius:var(--_ui5_search_input_border_radius);border:var(--_ui5-search-border);box-shadow:none;background:unset;background-color:var(--_ui5-search-elements-background);height:var(--_ui5-search-select-height);--_ui5_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_search_input_border_radius);color:var(--sapShell_InteractiveTextColor)}[ui5-select]::part(popover){background-color:var(--sapShellColor)}::slotted([slot="filterButton"]){--_ui5_button_focused_border_radius: var(--_ui5_search_filter_button_border_radius);min-width:var(--_ui5_search_icon_size);height:var(--_ui5_search_icon_size);border:var(--_ui5_search_filter_button_border);border-radius:var(--_ui5_search_filter_button_border_radius);color:var(--sapShell_InteractiveTextColor);outline:none;background:var(--_ui5-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_search_filter_button_background_active);border:var(--_ui5_search_filter_button_border)}::slotted([slot="filterButton"]:hover){background-color:var(--sapShell_Hover_Background);border:var(--_ui5_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-search-elements-background);border:var(--_ui5-search-border);outline:none;color:inherit;padding-inline-start:var(--_ui5-search-input-start-padding);padding-inline-end:var(--_ui5_search_input_end_padding)}:host([focused-inner-input]) .ui5-search-field-inner-input{outline:var(--_ui5_search_input_outline);border-radius:var(--_ui5_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-search-elements-hover-background)}[ui5-select]:focus-within,.ui5-search-field-inner-input:focus-within{background-color:var(--_ui5-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_search_input_start_margin)}.ui5-search-field-separator{height:1.5rem;width:.0625rem;background:var(--_ui5_search_separator_background);box-sizing:border-box}.ui5-shell-search-field-button{outline:none;min-width:var(--_ui5_search_icon_size);height:var(--_ui5_search_icon_size);border-radius:var(--_ui5_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-search-elements-background);min-width:var(--_ui5_search_icon_size_default);height:var(--_ui5_search_icon_size_default);border-radius:var(--_ui5_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_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_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_search_icon_size);height:var(--_ui5_search_icon_size);border-radius:var(--_ui5_search_icon_border_radius);margin-inline-end:.25rem;margin-inline-start:.1875rem;box-sizing:border-box;color:var(--sapShell_InteractiveTextColor);background-color:var(--_ui5-search-elements-background);border:var(--_ui5-search-icon-border)}.ui5-shell-search-field-icon::part(root){padding:var(--_ui5_search_icon_padding);width:1rem;height:1rem;outline-offset:-.125rem}.ui5-shell-search-field-icon:hover::part(root){padding:var(--_ui5_search_icon_hover_padding);outline-offset:-.1875rem}.ui5-shell-search-field-icon:focus::part(root){border-radius:var(--_ui5_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_input_focus_border_radius: var(--_ui5_search_input_border_radius)}.ui5-search-field-select:hover,.ui5-search-field-select[focused]{background:var(--_ui5-search-wrapper-hover-background-color)}.ui5-search-field-select::part(icon-wrapper){border-radius:var(--_ui5_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-search-wrapper-background)}:host(:not([collapsed])):has([ui5-select][focused]){background:var(--_ui5-search-wrapper-background)}.ui5-search-field-inner-input::selection{background:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}\n`;var je=this&&this.__decorate||function(e,t,i,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s;return n>3&&s&&Object.defineProperty(t,i,s),s};var Me;let ze=Me=class e extends i.S{constructor(){super(...arguments);this.fieldLoading=false;this.showClearIcon=false;this.collapsed=false;this.value="";this.focusedInnerInput=false;this._effectiveShowClearIcon=false}onBeforeRendering(){this._effectiveShowClearIcon=this.showClearIcon&&!!this.value}_onkeydown(e){if(i.b(e)){return this._handleEnter()}}_onfocusin(){this.focusedInnerInput=true}_onfocusout(){this.focusedInnerInput=false}_onFocusOutSearch(e){}_handleEnter(){if(this.value.length){this._handleSearchEvent()}}_handleInnerClick(){}_handleSearchIconPress(){this._handleSearchEvent();setTimeout(()=>{this.focus()},0)}_handleSearchEvent(){this.fireDecoratorEvent("search")}_handleInput(e){this.value=e.target.value;this.fireDecoratorEvent("input")}_handleClear(){this.value="";this.fireDecoratorEvent("input");this.focus()}_handleScopeChange(e){const t=e.detail.selectedOption;if(t.value){this.scopeValue=t.value}this.fireDecoratorEvent("scope-change",{scope:t.scopeOption})}get _isSearchIcon(){return this.value.length&&this.focusedInnerInput}get _searchButtonAccessibilityAttributes(){return{expanded:!this.collapsed}}get _translations(){return{scope:Me.i18nBundle.getText(T.SEARCH_FIELD_SCOPE_SELECT_LABEL),searchIcon:Me.i18nBundle.getText(T.SEARCH_FIELD_SEARCH_ICON),clearIcon:Me.i18nBundle.getText(T.SEARCH_FIELD_CLEAR_ICON),searchFieldAriaLabel:Me.i18nBundle.getText(T.SEARCH_FIELD_LABEL)}}get _effectiveIconTooltip(){return this._translations.searchIcon}captureRef(e){if(e){e.scopeOption=this}}};je([i.s({type:Boolean})],ze.prototype,"fieldLoading",void 0);je([i.s({type:Boolean})],ze.prototype,"showClearIcon",void 0);je([i.s({type:Boolean})],ze.prototype,"collapsed",void 0);je([i.s()],ze.prototype,"value",void 0);je([i.s()],ze.prototype,"placeholder",void 0);je([i.s()],ze.prototype,"accessibleName",void 0);je([i.s()],ze.prototype,"accessibleDescription",void 0);je([i.s()],ze.prototype,"scopeValue",void 0);je([i.d({type:HTMLElement,individualSlots:true,invalidateOnChildChange:true})],ze.prototype,"scopes",void 0);je([i.d()],ze.prototype,"filterButton",void 0);je([i.s({type:Boolean})],ze.prototype,"focusedInnerInput",void 0);je([i.s({type:Boolean})],ze.prototype,"_effectiveShowClearIcon",void 0);je([u.i("@ui5/webcomponents-fiori")],ze,"i18nBundle",void 0);ze=Me=je([i.m({tag:"ui5-search-field",languageAware:true,renderer:s.y,template:Q,styles:[Re]}),o.l("input",{bubbles:true}),o.l("scope-change",{bubbles:true}),o.l("search",{bubbles:true,cancelable:true})],ze);ze.define();var He=ze;var Ue=this&&this.__decorate||function(e,t,i,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s;return n>3&&s&&Object.defineProperty(t,i,s),s};var We;let Ge=We=class e extends He{constructor(){super();this.loading=false;this.noTypeahead=false;this.open=false;this._typedInValue="";this._valueBeforeOpen=this.getAttribute("value")||"";this._isTyping=false}onBeforeRendering(){super.onBeforeRendering();if(this.collapsed&&!n.d()){this.open=false;return}const e=this.nativeInput;const t=e&&e.selectionEnd-e.selectionStart;this.open=this.open||this._popoupHasAnyContent()&&this._isTyping&&e.value.length>0;if(this._shouldAutocomplete&&!t){const e=this._getFirstMatchingItem(this.value);this._proposedItem=e;if(e){this._handleTypeAhead(e);this._selectMatchingItem(e)}else{this._deselectItems()}}if(n.d()&&this.open){const e=this._getFirstMatchingItem(this.value);this._proposedItem=e;if(e&&this._performItemSelectionOnMobile){this._selectMatchingItem(e)}}this._flattenItems.forEach(e=>{e.highlightText=this._typedInValue})}onAfterRendering(){const e=this.nativeInput;if(this._performTextSelection&&e&&e.value!==this._innerValue){e.value=this._innerValue||""}if(this._performTextSelection&&this._typedInValue.length&&this.value.length){e?.setSelectionRange(this._typedInValue.length,this.value.length)}this._performTextSelection=false;if(!this.collapsed){this.style.setProperty("--search_width",`${this.getBoundingClientRect().width}px`)}}_handleMobileInput(e){this.value=e.target.value;this._performItemSelectionOnMobile=this._shouldPerformSelectionOnMobile(e.detail.inputType);this.fireDecoratorEvent("input")}_shouldPerformSelectionOnMobile(e){const t=["deleteWordBackward","deleteWordForward","deleteSoftLineBackward","deleteSoftLineForward","deleteEntireSoftLine","deleteHardLineBackward","deleteHardLineForward","deleteByDrag","deleteByCut","deleteContent","deleteContentBackward","deleteContentForward","historyUndo"];return!this.noTypeahead&&!t.includes(e||"")}_handleTypeAhead(e){const t=e.text||"";this._typedInValue=this.value;this._innerValue=t;this._performTextSelection=true;this.value=t}_startsWithMatchingItems(e){return pe(e,this._flattenItems.filter(e=>!this._isGroupItem(e)&&!this._isShowMoreItem(e)),"text")}_isGroupItem(e){return e.hasAttribute("ui5-search-item-group")}_isShowMoreItem(e){return e.hasAttribute("ui5-search-item-show-more")}_deselectItems(){this._flattenItems.forEach(e=>{e.selected=false})}_selectMatchingItem(e){this._deselectItems();e.selected=true}_handleDown(e){if(this.open){e.preventDefault();this._handleArrowDown()}}_handleArrowDown(){const e=this._getItemsList().listItems;const t=e.at(0);if(this.open){this._deselectItems();this.value=this._typedInValue||this.value;this._innerValue=this.value;t?.focus()}}_handleInnerClick(){if(n.d()){this.open=true}}_handleSearchIconPress(){if(n.d()){this.open=true}else{super._handleSearchIconPress()}}_handleEnter(){const e=!this.fireDecoratorEvent("search",{item:this._proposedItem});if(e){return}const t=this.nativeInput;t.setSelectionRange(this.value.length,this.value.length);this.open=false;this._isTyping=false}_onMobileInputKeydown(e){if(i.b(e)){this.value=this.mobileInput?.value||this.value;this._handleEnter();this.blur()}}_handleSearchEvent(){this.fireDecoratorEvent("search",{item:this._proposedItem})}_handleEscape(){this.value=this._typedInValue||this.value;this._innerValue=this.value;this._isTyping=false}_handleInput(e){super._handleInput(e);this._typedInValue=this.value;this._proposedItem=undefined;if(n.d()){return}this._isTyping=true;this.open=this.value.length>0&&this._popoupHasAnyContent()}_handleClear(){super._handleClear();this._typedInValue="";this._innerValue="";this._shouldAutocomplete=false;this.open=false}_popoupHasAnyContent(){return this.items.length>0||this.illustration.length>0||this.messageArea.length>0||this.loading||this.action.length>0}_onFooterButtonKeyDown(e){if(i.P(e)){this._flattenItems[this._flattenItems.length-1].focus()}if(i.V(e)){this._getItemsList().focus()}}_onItemKeydown(e){const t=e.target;const o=this._isGroupItem(t)?t?.getFocusDomRef():t;const n=this._getItemsList().listItems;const s=n.at(0)===o;const r=n.at(-1)===o;const a=i.P(e);const l=i._(e);const u=i.x(e);e.preventDefault();if(s&&a){this.nativeInput?.focus();this._shouldAutocomplete=true}if(r&&l||u){this._getFooterButton()?.focus()}}_onItemClick(e){const t=e.detail.item;const i=!this.fireDecoratorEvent("search",{item:t});if(i){if(n.d()){this.open=false}return}this.value=t.text;this._innerValue=this.value;this._typedInValue=this.value;this._shouldAutocomplete=false;this._performTextSelection=true;this.open=false;this._isTyping=false;this.focus()}_onkeydown(e){super._onkeydown(e);if(this.loading){return}this._shouldAutocomplete=!this.noTypeahead&&!(i.Q(e)||i.X(e)||i.m$2(e)||i.P(e)||i._(e)||i.x(e)||i.b(e)||i.j(e)||i.q(e)||i.M(e)||i.n(e)||i.m$2(e));if(i._(e)){this._handleDown(e)}if(i.m$2(e)){this._handleEscape()}if(i.Q(e)||i.X(e)){this._deselectItems()}}_onFocusOutSearch(e){const t=e.relatedTarget;if(this._getPicker().contains(t)||this.contains(t)){return}this.open=false;this._isTyping=false}_handleBeforeClose(e){if(e.detail.escPressed){this.focus()}}_handleCancel(){this._handleClose();this.value=this._valueBeforeOpen;this.fireDecoratorEvent("input")}_handleClose(){this.open=false;this._isTyping=false;this.fireDecoratorEvent("close")}_handleBeforeOpen(){this._valueBeforeOpen=this.value;if(n.d()&&this.mobileInput){this.mobileInput.value=this.value}}_handleOpen(){this.fireDecoratorEvent("open")}_handleActionKeydown(e){if(i.P(e)){this._flattenItems[this._flattenItems.length-1].focus()}}_onFooterButtonClick(){this.fireDecoratorEvent("popup-action-press")}_getFirstMatchingItem(e){if(!this._flattenItems.length||!e){return}const t=this._startsWithMatchingItems(e);if(!t.length){return undefined}return t[0]}_getPicker(){return this.shadowRoot.querySelector("[ui5-responsive-popover]")}_getItemsList(){return this._getPicker().querySelector(".ui5-search-list")}_getFooterButton(){return this.action[0]}get _flattenItems(){return this.getSlottedNodes("items").flatMap(e=>this._isGroupItem(e)?[e,...e.items]:[e])}get nativeInput(){const e=this.getDomRef();return e?.querySelector(`input`)}get mobileInput(){const e=this.shadowRoot;return e?e.querySelector(`[ui5-input]`):null}get cancelButtonText(){return We.i18nBundle.getText(T.SEARCH_CANCEL_BUTTON)}get suggestionsText(){return We.i18nBundle.getText(T.SEARCH_SUGGESTIONS)}get scopeSelect(){const e=this.shadowRoot;return e?e.querySelector(`[ui5-select]`):null}};Ue([i.s({type:Boolean})],Ge.prototype,"loading",void 0);Ue([i.s({type:Boolean})],Ge.prototype,"noTypeahead",void 0);Ue([i.d({type:HTMLElement,default:true,invalidateOnChildChange:true})],Ge.prototype,"items",void 0);Ue([i.d()],Ge.prototype,"action",void 0);Ue([i.d()],Ge.prototype,"illustration",void 0);Ue([i.d()],Ge.prototype,"messageArea",void 0);Ue([i.s({type:Boolean})],Ge.prototype,"open",void 0);Ue([i.s({noAttribute:true})],Ge.prototype,"_innerValue",void 0);Ue([i.s({type:Boolean})],Ge.prototype,"_performItemSelectionOnMobile",void 0);Ue([u.i("@ui5/webcomponents-fiori")],Ge,"i18nBundle",void 0);Ge=We=Ue([i.m({tag:"ui5-search",languageAware:true,renderer:s.y,template:Le,styles:[He.styles,Ve]}),o.l("open"),o.l("close")],Ge);Ge.define();var $e=Ge;function qe(){return Fe.call(this,Ke)}function Ke(){return s.jsx(s.Fragment,{children:s.jsxs("header",{slot:"header",class:"ui5-search-popup-searching-header",children:[s.jsx("div",{class:"ui5-shellbar-search-field-wrapper",children:Q.call(this,{forceExpanded:true})}),s.jsx(r.Button,{design:r.ButtonDesign.Transparent,onClick:this._handleCancel,children:this.cancelButtonText})]})})}function Ze(){return s.jsxs(s.Fragment,{children:[Q.call(this),qe.call(this)]})}n.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>s.defaultThemeBase);n.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s"+"-"+"f"+"i"+"o"+"r"+"i","sap_horizon",async()=>w.defaultTheme,"host");var Ye=`:host(:not([collapsed])){min-width:13rem}\n`;var Xe=this&&this.__decorate||function(e,t,i,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s;return n>3&&s&&Object.defineProperty(t,i,s),s};var Qe;let Je=Qe=class e extends $e{constructor(){super(...arguments);this.autoOpen=false}_handleSearchIconPress(){super._handleSearchIconPress();if(this.collapsed){this.collapsed=false}else if(!this.value){this.collapsed=true}}_onFocusOutSearch(e){if(n.d()){return}super._onFocusOutSearch(e)}_handleInput(e){super._handleInput(e);if(n.d()){this._performItemSelectionOnMobile=this._shouldPerformSelectionOnMobile(e.inputType)}}get _effectiveIconTooltip(){if(this.collapsed){return Qe.i18nBundle.getText(T.SHELLBAR_SEARCH_COLLAPSED)}if(this.value){return Qe.i18nBundle.getText(T.SEARCH_FIELD_SEARCH_ICON)}return Qe.i18nBundle.getText(T.SHELLBAR_SEARCH_EXPANDED)}get nativeInput(){const e=this.shadowRoot;return n.d()?e?.querySelector(`[ui5-responsive-popover] input`):super.nativeInput}_onfocusin(){super._onfocusin();if(this.autoOpen){this.open=true;this.fireDecoratorEvent("open")}}onBeforeRendering(){super.onBeforeRendering();if(n.d()){this.collapsed=true}}};Xe([i.s({type:Boolean})],Je.prototype,"autoOpen",void 0);Je=Qe=Xe([i.m({tag:"ui5-shellbar-search",template:Ze,styles:[$e.styles,Ye]})],Je);Je.define();var et=Je;t.Input=Ce;t.ShellBarSearch_default=et});
2
+ //# sourceMappingURL=ShellBarSearch2.js.map