@ui5/webcomponents 0.0.0-453158269 → 0.0.0-49cef2d02

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 (1295) hide show
  1. package/.dev-server-port +1 -0
  2. package/CHANGELOG.md +236 -0
  3. package/README.md +9 -7
  4. package/dist/Avatar.d.ts +251 -0
  5. package/dist/Avatar.js +204 -348
  6. package/dist/Avatar.js.map +1 -0
  7. package/dist/AvatarGroup.js +30 -12
  8. package/dist/Badge.d.ts +82 -0
  9. package/dist/Badge.js +65 -116
  10. package/dist/Badge.js.map +1 -0
  11. package/dist/Breadcrumbs.d.ts +200 -0
  12. package/dist/Breadcrumbs.js +439 -574
  13. package/dist/Breadcrumbs.js.map +1 -0
  14. package/dist/BreadcrumbsItem.d.ts +73 -0
  15. package/dist/BreadcrumbsItem.js +34 -88
  16. package/dist/BreadcrumbsItem.js.map +1 -0
  17. package/dist/BusyIndicator.js +7 -10
  18. package/dist/Button.d.ts +257 -0
  19. package/dist/Button.js +236 -452
  20. package/dist/Button.js.map +1 -0
  21. package/dist/Calendar.d.ts +251 -0
  22. package/dist/Calendar.js +268 -364
  23. package/dist/Calendar.js.map +1 -0
  24. package/dist/CalendarDate.d.ts +28 -0
  25. package/dist/CalendarDate.js +20 -30
  26. package/dist/CalendarDate.js.map +1 -0
  27. package/dist/CalendarHeader.d.ts +87 -0
  28. package/dist/CalendarHeader.js +144 -194
  29. package/dist/CalendarHeader.js.map +1 -0
  30. package/dist/CalendarPart.d.ts +53 -0
  31. package/dist/CalendarPart.js +71 -92
  32. package/dist/CalendarPart.js.map +1 -0
  33. package/dist/Card.d.ts +91 -0
  34. package/dist/Card.js +68 -123
  35. package/dist/Card.js.map +1 -0
  36. package/dist/CardHeader.d.ts +123 -0
  37. package/dist/CardHeader.js +153 -241
  38. package/dist/CardHeader.js.map +1 -0
  39. package/dist/Carousel.js +52 -11
  40. package/dist/CheckBox.d.ts +256 -0
  41. package/dist/CheckBox.js +219 -408
  42. package/dist/CheckBox.js.map +1 -0
  43. package/dist/ColorPalette.d.ts +140 -0
  44. package/dist/ColorPalette.js +362 -455
  45. package/dist/ColorPalette.js.map +1 -0
  46. package/dist/ColorPaletteItem.d.ts +68 -0
  47. package/dist/ColorPaletteItem.js +66 -114
  48. package/dist/ColorPaletteItem.js.map +1 -0
  49. package/dist/ColorPalettePopover.d.ts +128 -0
  50. package/dist/ColorPalettePopover.js +141 -203
  51. package/dist/ColorPalettePopover.js.map +1 -0
  52. package/dist/ColorPicker.d.ts +147 -0
  53. package/dist/ColorPicker.js +371 -565
  54. package/dist/ColorPicker.js.map +1 -0
  55. package/dist/ComboBox.js +72 -18
  56. package/dist/ComboBoxGroupItem.js +7 -7
  57. package/dist/ComboBoxItem.js +4 -4
  58. package/dist/CustomListItem.d.ts +44 -0
  59. package/dist/CustomListItem.js +52 -79
  60. package/dist/CustomListItem.js.map +1 -0
  61. package/dist/DateComponentBase.d.ts +83 -0
  62. package/dist/DateComponentBase.js +101 -143
  63. package/dist/DateComponentBase.js.map +1 -0
  64. package/dist/DatePicker.d.ts +448 -0
  65. package/dist/DatePicker.js +542 -724
  66. package/dist/DatePicker.js.map +1 -0
  67. package/dist/DateRangePicker.d.ts +165 -0
  68. package/dist/DateRangePicker.js +265 -309
  69. package/dist/DateRangePicker.js.map +1 -0
  70. package/dist/DateTimePicker.d.ts +212 -0
  71. package/dist/DateTimePicker.js +255 -344
  72. package/dist/DateTimePicker.js.map +1 -0
  73. package/dist/DayPicker.d.ts +243 -0
  74. package/dist/DayPicker.js +605 -730
  75. package/dist/DayPicker.js.map +1 -0
  76. package/dist/Dialog.d.ts +236 -0
  77. package/dist/Dialog.js +386 -545
  78. package/dist/Dialog.js.map +1 -0
  79. package/dist/DurationPicker.js +5 -5
  80. package/dist/FileUploader.d.ts +237 -0
  81. package/dist/FileUploader.js +304 -487
  82. package/dist/FileUploader.js.map +1 -0
  83. package/dist/Filters.d.ts +5 -0
  84. package/dist/Filters.js +10 -21
  85. package/dist/Filters.js.map +1 -0
  86. package/dist/GroupHeaderListItem.d.ts +45 -0
  87. package/dist/GroupHeaderListItem.js +42 -76
  88. package/dist/GroupHeaderListItem.js.map +1 -0
  89. package/dist/Icon.d.ts +252 -0
  90. package/dist/Icon.js +183 -333
  91. package/dist/Icon.js.map +1 -0
  92. package/dist/Input.d.ts +598 -0
  93. package/dist/Input.js +1095 -1604
  94. package/dist/Input.js.map +1 -0
  95. package/dist/Interfaces.d.ts +161 -0
  96. package/dist/Interfaces.js +45 -85
  97. package/dist/Interfaces.js.map +1 -0
  98. package/dist/Label.d.ts +98 -0
  99. package/dist/Label.js +63 -124
  100. package/dist/Label.js.map +1 -0
  101. package/dist/Link.d.ts +222 -0
  102. package/dist/Link.js +177 -326
  103. package/dist/Link.js.map +1 -0
  104. package/dist/List.d.ts +383 -0
  105. package/dist/List.js +707 -1016
  106. package/dist/List.js.map +1 -0
  107. package/dist/ListItem.d.ts +196 -0
  108. package/dist/ListItem.js +298 -375
  109. package/dist/ListItem.js.map +1 -0
  110. package/dist/ListItemBase.d.ts +61 -0
  111. package/dist/ListItemBase.js +114 -167
  112. package/dist/ListItemBase.js.map +1 -0
  113. package/dist/Menu.d.ts +183 -0
  114. package/dist/Menu.js +426 -452
  115. package/dist/Menu.js.map +1 -0
  116. package/dist/MenuItem.d.ts +124 -0
  117. package/dist/MenuItem.js +67 -136
  118. package/dist/MenuItem.js.map +1 -0
  119. package/dist/MessageStrip.d.ts +135 -0
  120. package/dist/MessageStrip.js +119 -207
  121. package/dist/MessageStrip.js.map +1 -0
  122. package/dist/MonthPicker.d.ts +109 -0
  123. package/dist/MonthPicker.js +262 -278
  124. package/dist/MonthPicker.js.map +1 -0
  125. package/dist/MultiComboBox.js +169 -44
  126. package/dist/MultiComboBoxGroupItem.js +7 -7
  127. package/dist/MultiComboBoxItem.js +4 -4
  128. package/dist/MultiInput.js +28 -12
  129. package/dist/Option.js +8 -8
  130. package/dist/Panel.d.ts +238 -0
  131. package/dist/Panel.js +230 -385
  132. package/dist/Panel.js.map +1 -0
  133. package/dist/Popover.d.ts +329 -0
  134. package/dist/Popover.js +519 -762
  135. package/dist/Popover.js.map +1 -0
  136. package/dist/Popup.d.ts +290 -0
  137. package/dist/Popup.js +403 -567
  138. package/dist/Popup.js.map +1 -0
  139. package/dist/ProgressIndicator.d.ts +121 -0
  140. package/dist/ProgressIndicator.js +121 -207
  141. package/dist/ProgressIndicator.js.map +1 -0
  142. package/dist/RadioButton.js +40 -20
  143. package/dist/RadioButtonGroup.js +1 -1
  144. package/dist/RangeSlider.d.ts +363 -0
  145. package/dist/RangeSlider.js +682 -753
  146. package/dist/RangeSlider.js.map +1 -0
  147. package/dist/RatingIndicator.js +13 -8
  148. package/dist/ResponsivePopover.js +12 -4
  149. package/dist/SegmentedButton.js +26 -22
  150. package/dist/SegmentedButtonItem.js +6 -6
  151. package/dist/Select.js +43 -16
  152. package/dist/Slider.d.ts +163 -0
  153. package/dist/Slider.js +241 -259
  154. package/dist/Slider.js.map +1 -0
  155. package/dist/SliderBase.d.ts +357 -0
  156. package/dist/SliderBase.js +589 -795
  157. package/dist/SliderBase.js.map +1 -0
  158. package/dist/SplitButton.d.ts +220 -0
  159. package/dist/SplitButton.js +211 -382
  160. package/dist/SplitButton.js.map +1 -0
  161. package/dist/StandardListItem.d.ts +156 -0
  162. package/dist/StandardListItem.js +80 -159
  163. package/dist/StandardListItem.js.map +1 -0
  164. package/dist/StepInput.d.ts +301 -0
  165. package/dist/StepInput.js +378 -615
  166. package/dist/StepInput.js.map +1 -0
  167. package/dist/SuggestionGroupItem.d.ts +35 -0
  168. package/dist/SuggestionGroupItem.js +35 -51
  169. package/dist/SuggestionGroupItem.js.map +1 -0
  170. package/dist/SuggestionItem.d.ts +104 -0
  171. package/dist/SuggestionItem.js +49 -131
  172. package/dist/SuggestionItem.js.map +1 -0
  173. package/dist/SuggestionListItem.d.ts +47 -0
  174. package/dist/SuggestionListItem.js +38 -52
  175. package/dist/SuggestionListItem.js.map +1 -0
  176. package/dist/Switch.d.ts +167 -0
  177. package/dist/Switch.js +136 -236
  178. package/dist/Switch.js.map +1 -0
  179. package/dist/Tab.js +62 -19
  180. package/dist/TabContainer.js +219 -164
  181. package/dist/TabSeparator.js +11 -4
  182. package/dist/Table.d.ts +426 -0
  183. package/dist/Table.js +792 -1118
  184. package/dist/Table.js.map +1 -0
  185. package/dist/TableCell.d.ts +51 -0
  186. package/dist/TableCell.js +43 -60
  187. package/dist/TableCell.js.map +1 -0
  188. package/dist/TableColumn.d.ts +101 -0
  189. package/dist/TableColumn.js +53 -99
  190. package/dist/TableColumn.js.map +1 -0
  191. package/dist/TableGroupRow.d.ts +79 -0
  192. package/dist/TableGroupRow.js +97 -134
  193. package/dist/TableGroupRow.js.map +1 -0
  194. package/dist/TableRow.d.ts +160 -0
  195. package/dist/TableRow.js +315 -401
  196. package/dist/TableRow.js.map +1 -0
  197. package/dist/TextArea.js +56 -57
  198. package/dist/TimePicker.d.ts +115 -0
  199. package/dist/TimePicker.js +60 -96
  200. package/dist/TimePicker.js.map +1 -0
  201. package/dist/TimePickerBase.d.ts +180 -0
  202. package/dist/TimePickerBase.js +341 -443
  203. package/dist/TimePickerBase.js.map +1 -0
  204. package/dist/TimeSelection.d.ts +162 -0
  205. package/dist/TimeSelection.js +359 -474
  206. package/dist/TimeSelection.js.map +1 -0
  207. package/dist/Title.d.ts +69 -0
  208. package/dist/Title.js +62 -105
  209. package/dist/Title.js.map +1 -0
  210. package/dist/Toast.js +6 -6
  211. package/dist/ToggleButton.js +5 -8
  212. package/dist/Token.js +24 -7
  213. package/dist/Tokenizer.js +115 -25
  214. package/dist/Tree.js +122 -58
  215. package/dist/TreeItem.js +35 -120
  216. package/dist/TreeItemBase.js +431 -0
  217. package/dist/TreeItemCustom.js +102 -0
  218. package/dist/TreeList.js +48 -0
  219. package/dist/WheelSlider.d.ts +122 -0
  220. package/dist/WheelSlider.js +302 -410
  221. package/dist/WheelSlider.js.map +1 -0
  222. package/dist/YearPicker.d.ts +105 -0
  223. package/dist/YearPicker.js +299 -304
  224. package/dist/YearPicker.js.map +1 -0
  225. package/dist/api.json +1 -7488
  226. package/dist/assets/HT-1000.59a0ea5a.jpg +0 -0
  227. package/dist/assets/HT-1010.7b05e4f5.jpg +0 -0
  228. package/dist/assets/HT-1022.6fa171f0.jpg +0 -0
  229. package/dist/assets/John_Miller.fc9d0d73.png +0 -0
  230. package/dist/assets/Lamp_avatar_01.ab251b40.jpg +0 -0
  231. package/dist/assets/SAP-icons-TNT.fa06c05f.js +1 -0
  232. package/dist/assets/SAP-icons-business-suite.7cff1fd8.js +1 -0
  233. package/dist/assets/SAP-icons.7f154911.js +1 -0
  234. package/dist/assets/SAP-icons.e76c8241.js +1 -0
  235. package/dist/assets/ar.76457d6b.js +1 -0
  236. package/dist/assets/ar_EG.facab575.js +1 -0
  237. package/dist/assets/ar_SA.037c760a.js +1 -0
  238. package/dist/assets/bg.eb54e36a.js +1 -0
  239. package/dist/assets/ca.1047c043.js +1 -0
  240. package/dist/assets/cs.47109072.js +1 -0
  241. package/dist/assets/da.1562c279.js +1 -0
  242. package/dist/assets/de.3397b9d2.js +1 -0
  243. package/dist/assets/de_AT.fb777626.js +1 -0
  244. package/dist/assets/de_CH.c4011bf2.js +1 -0
  245. package/dist/assets/el.52a181c7.js +1 -0
  246. package/dist/assets/el_CY.065e8a48.js +1 -0
  247. package/dist/assets/en.8b571af2.js +1 -0
  248. package/dist/assets/en_AU.29f5e0e2.js +1 -0
  249. package/dist/assets/en_GB.b0afb274.js +1 -0
  250. package/dist/assets/en_HK.188c8a39.js +1 -0
  251. package/dist/assets/en_IE.b52bdf4f.js +1 -0
  252. package/dist/assets/en_IN.5925f501.js +1 -0
  253. package/dist/assets/en_NZ.adc1b6af.js +1 -0
  254. package/dist/assets/en_PG.2e475ab9.js +1 -0
  255. package/dist/assets/en_SG.400dc7e5.js +1 -0
  256. package/dist/assets/en_ZA.06de0b73.js +1 -0
  257. package/dist/assets/es.d137c08c.js +1 -0
  258. package/dist/assets/es_AR.a719c078.js +1 -0
  259. package/dist/assets/es_BO.ba051d49.js +1 -0
  260. package/dist/assets/es_CL.876855d2.js +1 -0
  261. package/dist/assets/es_CO.51c37c4d.js +1 -0
  262. package/dist/assets/es_MX.c11d012e.js +1 -0
  263. package/dist/assets/es_PE.1a5de4db.js +1 -0
  264. package/dist/assets/es_UY.29036823.js +1 -0
  265. package/dist/assets/es_VE.22e2164a.js +1 -0
  266. package/dist/assets/et.d802827f.js +1 -0
  267. package/dist/assets/fa.59b6aa5f.js +1 -0
  268. package/dist/assets/fi.2cc79303.js +1 -0
  269. package/dist/assets/fr.055c2d0d.js +1 -0
  270. package/dist/assets/fr_BE.79a4448b.js +1 -0
  271. package/dist/assets/fr_CA.0c4a98e4.js +1 -0
  272. package/dist/assets/fr_CH.ba0db8bd.js +1 -0
  273. package/dist/assets/fr_LU.21a6bcea.js +1 -0
  274. package/dist/assets/he.e187c6df.js +1 -0
  275. package/dist/assets/hi.cb35adb1.js +1 -0
  276. package/dist/assets/hr.24bc905c.js +1 -0
  277. package/dist/assets/hu.aadbd74c.js +1 -0
  278. package/dist/assets/id.b9bd26e5.js +1 -0
  279. package/dist/assets/it.36ffae4a.js +1 -0
  280. package/dist/assets/it_CH.7ef1e2bf.js +1 -0
  281. package/dist/assets/ja.a08af783.js +1 -0
  282. package/dist/assets/kitchen-scripts.489c25fb.css +1 -0
  283. package/dist/assets/kitchen-scripts.ec775613.js +1 -0
  284. package/dist/assets/kk.5d3dddbe.js +1 -0
  285. package/dist/assets/ko.264fdf35.js +1 -0
  286. package/dist/assets/loading.b2cd685f.gif +0 -0
  287. package/dist/assets/lt.b967d42b.js +1 -0
  288. package/dist/assets/lv.9c0f8206.js +1 -0
  289. package/dist/assets/messagebundle_ar.3285e748.js +1 -0
  290. package/dist/assets/messagebundle_ar.7f1e385c.js +1 -0
  291. package/dist/assets/messagebundle_bg.67505cb7.js +1 -0
  292. package/dist/assets/messagebundle_bg.eba3e906.js +1 -0
  293. package/dist/assets/messagebundle_ca.47eb5246.js +1 -0
  294. package/dist/assets/messagebundle_ca.64fb370c.js +1 -0
  295. package/dist/assets/messagebundle_cs.2c9254dc.js +1 -0
  296. package/dist/assets/messagebundle_cs.ce8b8a69.js +1 -0
  297. package/dist/assets/messagebundle_cy.3dad0e1d.js +1 -0
  298. package/dist/assets/messagebundle_cy.b66ab3d7.js +1 -0
  299. package/dist/assets/messagebundle_da.7306ba78.js +1 -0
  300. package/dist/assets/messagebundle_da.ff79429b.js +1 -0
  301. package/dist/assets/messagebundle_de.11a43c3f.js +1 -0
  302. package/dist/assets/messagebundle_de.e9f4d979.js +1 -0
  303. package/dist/assets/messagebundle_el.50666070.js +1 -0
  304. package/dist/assets/messagebundle_el.5313ff1a.js +1 -0
  305. package/dist/assets/messagebundle_en.4d827ce9.js +1 -0
  306. package/dist/assets/messagebundle_en.edda053c.js +1 -0
  307. package/dist/assets/messagebundle_en_GB.9eb5f8cf.js +1 -0
  308. package/dist/assets/messagebundle_en_GB.b09b6a64.js +1 -0
  309. package/dist/assets/messagebundle_en_US_sappsd.7d173b62.js +1 -0
  310. package/dist/assets/messagebundle_en_US_sappsd.c97ca89f.js +1 -0
  311. package/dist/assets/messagebundle_en_US_saprigi.443cefd7.js +1 -0
  312. package/dist/assets/messagebundle_en_US_saprigi.d0b577b7.js +1 -0
  313. package/dist/assets/messagebundle_en_US_saptrc.7da9b71b.js +1 -0
  314. package/dist/assets/messagebundle_en_US_saptrc.ec370551.js +1 -0
  315. package/dist/assets/messagebundle_es.3b0d6da4.js +1 -0
  316. package/dist/assets/messagebundle_es.881ff0f9.js +1 -0
  317. package/dist/assets/messagebundle_es_MX.3fc62f39.js +1 -0
  318. package/dist/assets/messagebundle_es_MX.da0228db.js +1 -0
  319. package/dist/assets/messagebundle_et.2cfc3295.js +1 -0
  320. package/dist/assets/messagebundle_et.45f3eda8.js +1 -0
  321. package/dist/assets/messagebundle_fi.17dccdfe.js +1 -0
  322. package/dist/assets/messagebundle_fi.f62f59fc.js +1 -0
  323. package/dist/assets/messagebundle_fr.01378189.js +1 -0
  324. package/dist/assets/messagebundle_fr.7d7c418f.js +1 -0
  325. package/dist/assets/messagebundle_fr_CA.2594af28.js +1 -0
  326. package/dist/assets/messagebundle_fr_CA.a4592fb9.js +1 -0
  327. package/dist/assets/messagebundle_hi.0dd7cf25.js +1 -0
  328. package/dist/assets/messagebundle_hi.2f3db639.js +1 -0
  329. package/dist/assets/messagebundle_hr.22e41fe6.js +1 -0
  330. package/dist/assets/messagebundle_hr.f8282341.js +1 -0
  331. package/dist/assets/messagebundle_hu.2589bdb3.js +1 -0
  332. package/dist/assets/messagebundle_hu.31a245d6.js +1 -0
  333. package/dist/assets/messagebundle_in.52c1e21c.js +1 -0
  334. package/dist/assets/messagebundle_in.920ee55c.js +1 -0
  335. package/dist/assets/messagebundle_it.146c4b3c.js +1 -0
  336. package/dist/assets/messagebundle_it.7c4db606.js +1 -0
  337. package/dist/assets/messagebundle_iw.2766f5a1.js +1 -0
  338. package/dist/assets/messagebundle_iw.668edbae.js +1 -0
  339. package/dist/assets/messagebundle_ja.4ca0da85.js +1 -0
  340. package/dist/assets/messagebundle_ja.b0b6d3d0.js +1 -0
  341. package/dist/assets/messagebundle_kk.f1d95e67.js +1 -0
  342. package/dist/assets/messagebundle_kk.f9132ede.js +1 -0
  343. package/dist/assets/messagebundle_ko.a9126af1.js +1 -0
  344. package/dist/assets/messagebundle_ko.d23a9de8.js +1 -0
  345. package/dist/assets/messagebundle_lt.1c86044c.js +1 -0
  346. package/dist/assets/messagebundle_lt.e2f6f5b0.js +1 -0
  347. package/dist/assets/messagebundle_lv.023b46ad.js +1 -0
  348. package/dist/assets/messagebundle_lv.6b0ad93c.js +1 -0
  349. package/dist/assets/messagebundle_ms.12fa7211.js +1 -0
  350. package/dist/assets/messagebundle_ms.8d8ac7f1.js +1 -0
  351. package/dist/assets/messagebundle_nl.1bb5da42.js +1 -0
  352. package/dist/assets/messagebundle_nl.3d8877e1.js +1 -0
  353. package/dist/assets/messagebundle_no.416b83e7.js +1 -0
  354. package/dist/assets/messagebundle_no.c7ee6784.js +1 -0
  355. package/dist/assets/messagebundle_pl.0d1b3dd1.js +1 -0
  356. package/dist/assets/messagebundle_pl.942cdbbd.js +1 -0
  357. package/dist/assets/messagebundle_pt.027e899b.js +1 -0
  358. package/dist/assets/messagebundle_pt.33ff9d42.js +1 -0
  359. package/dist/assets/messagebundle_pt_PT.9bca19db.js +1 -0
  360. package/dist/assets/messagebundle_pt_PT.a91f6468.js +1 -0
  361. package/dist/assets/messagebundle_ro.80e6cfad.js +1 -0
  362. package/dist/assets/messagebundle_ro.bd2e01e0.js +1 -0
  363. package/dist/assets/messagebundle_ru.388e4272.js +1 -0
  364. package/dist/assets/messagebundle_ru.e5bfb3ae.js +1 -0
  365. package/dist/assets/messagebundle_sh.122ca47b.js +1 -0
  366. package/dist/assets/messagebundle_sh.6d1a0a62.js +1 -0
  367. package/dist/assets/messagebundle_sk.1c800907.js +1 -0
  368. package/dist/assets/messagebundle_sk.66d70983.js +1 -0
  369. package/dist/assets/messagebundle_sl.3f1a077f.js +1 -0
  370. package/dist/assets/messagebundle_sl.af7daebc.js +1 -0
  371. package/dist/assets/messagebundle_sv.71f16a40.js +1 -0
  372. package/dist/assets/messagebundle_sv.d8d543df.js +1 -0
  373. package/dist/assets/messagebundle_th.700d6a4a.js +1 -0
  374. package/dist/assets/messagebundle_th.f54d55d7.js +1 -0
  375. package/dist/assets/messagebundle_tr.6f267da9.js +1 -0
  376. package/dist/assets/messagebundle_tr.971a97d0.js +1 -0
  377. package/dist/assets/messagebundle_uk.52e9f0c8.js +1 -0
  378. package/dist/assets/messagebundle_uk.e0830675.js +1 -0
  379. package/dist/assets/messagebundle_vi.57d3d183.js +1 -0
  380. package/dist/assets/messagebundle_vi.e9fe4caa.js +1 -0
  381. package/dist/assets/messagebundle_zh_CN.8ff0766b.js +1 -0
  382. package/dist/assets/messagebundle_zh_CN.9669c0a2.js +1 -0
  383. package/dist/assets/messagebundle_zh_TW.25b49650.js +1 -0
  384. package/dist/assets/messagebundle_zh_TW.4841569f.js +1 -0
  385. package/dist/assets/ms.5a523fbe.js +1 -0
  386. package/dist/assets/nb.6e98bbca.js +1 -0
  387. package/dist/assets/nl.84e9e6df.js +1 -0
  388. package/dist/assets/nl_BE.0f374ea5.js +1 -0
  389. package/dist/assets/parameters-bundle.css.06e5f6af.js +1 -0
  390. package/dist/assets/parameters-bundle.css.09fdcedf.js +1 -0
  391. package/dist/assets/parameters-bundle.css.0c16556f.js +1 -0
  392. package/dist/assets/parameters-bundle.css.1024d408.js +1 -0
  393. package/dist/assets/parameters-bundle.css.12ef5553.js +1 -0
  394. package/dist/assets/parameters-bundle.css.1d5159c7.js +1 -0
  395. package/dist/assets/parameters-bundle.css.2ff57cb9.js +1 -0
  396. package/dist/assets/parameters-bundle.css.3d586108.js +1 -0
  397. package/dist/assets/parameters-bundle.css.3fe96be2.js +1 -0
  398. package/dist/assets/parameters-bundle.css.44ff7825.js +1 -0
  399. package/dist/assets/parameters-bundle.css.50f83b44.js +1 -0
  400. package/dist/assets/parameters-bundle.css.58325286.js +1 -0
  401. package/dist/assets/parameters-bundle.css.5c29069a.js +1 -0
  402. package/dist/assets/parameters-bundle.css.759ff23e.js +1 -0
  403. package/dist/assets/parameters-bundle.css.76ee50df.js +1 -0
  404. package/dist/assets/parameters-bundle.css.7ad77620.js +1 -0
  405. package/dist/assets/parameters-bundle.css.828caf0e.js +1 -0
  406. package/dist/assets/parameters-bundle.css.89d7ea85.js +1 -0
  407. package/dist/assets/parameters-bundle.css.a1f2b381.js +1 -0
  408. package/dist/assets/parameters-bundle.css.a9042929.js +1 -0
  409. package/dist/assets/parameters-bundle.css.ab7cc9c4.js +1 -0
  410. package/dist/assets/parameters-bundle.css.c3acfe91.js +1 -0
  411. package/dist/assets/parameters-bundle.css.e7002fc1.js +1 -0
  412. package/dist/assets/parameters-bundle.css.fe4c8069.js +1 -0
  413. package/dist/assets/pl.c8acba9e.js +1 -0
  414. package/dist/assets/pt.676d5650.js +1 -0
  415. package/dist/assets/pt_PT.0bbc2da6.js +1 -0
  416. package/dist/assets/ro.10993af2.js +1 -0
  417. package/dist/assets/ru.4aba168e.js +1 -0
  418. package/dist/assets/ru_UA.334d6613.js +1 -0
  419. package/dist/assets/sk.3183c85e.js +1 -0
  420. package/dist/assets/sl.edad6042.js +1 -0
  421. package/dist/assets/sr.3e293379.js +1 -0
  422. package/dist/assets/sr_Latn.0f4a03c3.js +1 -0
  423. package/dist/assets/sv.e76e14e4.js +1 -0
  424. package/dist/assets/th.f5491ec1.js +1 -0
  425. package/dist/assets/tr.3b838818.js +1 -0
  426. package/dist/assets/uk.ebbd81a0.js +1 -0
  427. package/dist/assets/vi.87616fa0.js +1 -0
  428. package/dist/assets/woman_avatar_5.7316a316.png +0 -0
  429. package/dist/assets/zh_CN.de478ef9.js +1 -0
  430. package/dist/assets/zh_HK.834c3161.js +1 -0
  431. package/dist/assets/zh_SG.13241ee3.js +1 -0
  432. package/dist/assets/zh_TW.8f4a16b5.js +1 -0
  433. package/dist/css/themes/Avatar.css +1 -1
  434. package/dist/css/themes/AvatarGroup.css +1 -1
  435. package/dist/css/themes/Badge.css +1 -1
  436. package/dist/css/themes/Breadcrumbs.css +1 -1
  437. package/dist/css/themes/BreadcrumbsPopover.css +1 -1
  438. package/dist/css/themes/BrowserScrollbar.css +1 -1
  439. package/dist/css/themes/BusyIndicator.css +1 -1
  440. package/dist/css/themes/Button.css +1 -1
  441. package/dist/css/themes/CalendarHeader.css +1 -1
  442. package/dist/css/themes/CardHeader.css +1 -1
  443. package/dist/css/themes/Carousel.css +1 -1
  444. package/dist/css/themes/CheckBox.css +1 -1
  445. package/dist/css/themes/ColorPicker.css +1 -1
  446. package/dist/css/themes/ComboBox.css +1 -1
  447. package/dist/css/themes/DatePicker.css +1 -1
  448. package/dist/css/themes/DayPicker.css +1 -1
  449. package/dist/css/themes/Dialog.css +1 -1
  450. package/dist/css/themes/GroupHeaderListItem.css +1 -1
  451. package/dist/css/themes/Icon.css +1 -1
  452. package/dist/css/themes/Input.css +1 -1
  453. package/dist/css/themes/Link.css +1 -1
  454. package/dist/css/themes/ListItem.css +1 -1
  455. package/dist/css/themes/ListItemBase.css +1 -1
  456. package/dist/css/themes/Menu.css +1 -1
  457. package/dist/css/themes/MonthPicker.css +1 -1
  458. package/dist/css/themes/MultiComboBox.css +1 -1
  459. package/dist/css/themes/MultiInput.css +1 -1
  460. package/dist/css/themes/Panel.css +1 -1
  461. package/dist/css/themes/PopupsCommon.css +1 -1
  462. package/dist/css/themes/RadioButton.css +1 -1
  463. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  464. package/dist/css/themes/Select.css +1 -1
  465. package/dist/css/themes/SliderBase.css +1 -1
  466. package/dist/css/themes/StepInput.css +1 -1
  467. package/dist/css/themes/Switch.css +1 -1
  468. package/dist/css/themes/TabContainer.css +1 -1
  469. package/dist/css/themes/TabInOverflow.css +1 -1
  470. package/dist/css/themes/TabInStrip.css +1 -1
  471. package/dist/css/themes/Table.css +1 -1
  472. package/dist/css/themes/TableCell.css +1 -1
  473. package/dist/css/themes/TableColumn.css +1 -1
  474. package/dist/css/themes/TableRow.css +1 -1
  475. package/dist/css/themes/TextArea.css +1 -1
  476. package/dist/css/themes/TimePicker.css +1 -1
  477. package/dist/css/themes/Title.css +1 -1
  478. package/dist/css/themes/Toast.css +1 -1
  479. package/dist/css/themes/ToggleButton.css +1 -1
  480. package/dist/css/themes/Tokenizer.css +1 -1
  481. package/dist/css/themes/TreeItem.css +1 -0
  482. package/dist/css/themes/ValueStateMessage.css +1 -1
  483. package/dist/css/themes/YearPicker.css +1 -1
  484. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  485. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  486. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  487. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  488. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  489. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  490. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  491. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  492. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  493. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  494. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  495. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  496. package/dist/features/ColorPaletteMoreColors.d.ts +13 -0
  497. package/dist/features/ColorPaletteMoreColors.js +23 -33
  498. package/dist/features/ColorPaletteMoreColors.js.map +1 -0
  499. package/dist/features/InputElementsFormSupport.d.ts +31 -0
  500. package/dist/features/InputElementsFormSupport.js +95 -83
  501. package/dist/features/InputElementsFormSupport.js.map +1 -0
  502. package/dist/features/InputSuggestions.d.ts +126 -0
  503. package/dist/features/InputSuggestions.js +458 -573
  504. package/dist/features/InputSuggestions.js.map +1 -0
  505. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  506. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  507. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  508. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  509. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  510. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  511. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  512. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  513. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  514. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  515. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  516. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  517. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  518. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  519. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  520. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  521. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  522. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  523. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  524. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  525. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  526. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  527. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  528. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  529. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  530. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  531. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  532. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  533. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  534. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  535. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  536. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  537. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  538. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  539. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  540. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  541. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  542. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  543. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  544. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  545. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  546. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  547. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  548. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  549. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  550. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  551. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  552. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  553. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  554. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  555. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  556. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  557. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  558. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  559. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  560. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  561. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  562. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  563. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  564. package/dist/generated/i18n/i18n-defaults.js +2 -2
  565. package/dist/generated/templates/AvatarTemplate.lit.js +1 -1
  566. package/dist/generated/templates/BreadcrumbsTemplate.lit.js +2 -2
  567. package/dist/generated/templates/ButtonTemplate.lit.js +1 -1
  568. package/dist/generated/templates/CalendarHeaderTemplate.lit.js +2 -2
  569. package/dist/generated/templates/CalendarTemplate.lit.js +1 -1
  570. package/dist/generated/templates/CardHeaderTemplate.lit.js +3 -3
  571. package/dist/generated/templates/CardTemplate.lit.js +1 -1
  572. package/dist/generated/templates/CarouselTemplate.lit.js +4 -4
  573. package/dist/generated/templates/CheckBoxTemplate.lit.js +1 -1
  574. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +19 -17
  575. package/dist/generated/templates/ComboBoxTemplate.lit.js +1 -1
  576. package/dist/generated/templates/CustomListItemTemplate.lit.js +14 -8
  577. package/dist/generated/templates/DatePickerPopoverTemplate.lit.js +1 -1
  578. package/dist/generated/templates/DatePickerTemplate.lit.js +1 -1
  579. package/dist/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -1
  580. package/dist/generated/templates/DialogTemplate.lit.js +7 -6
  581. package/dist/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -1
  582. package/dist/generated/templates/IconTemplate.lit.js +4 -2
  583. package/dist/generated/templates/InputPopoverTemplate.lit.js +1 -1
  584. package/dist/generated/templates/InputTemplate.lit.js +2 -2
  585. package/dist/generated/templates/LabelTemplate.lit.js +1 -1
  586. package/dist/generated/templates/LinkTemplate.lit.js +1 -1
  587. package/dist/generated/templates/ListItemTemplate.lit.js +14 -8
  588. package/dist/generated/templates/ListTemplate.lit.js +3 -3
  589. package/dist/generated/templates/MenuTemplate.lit.js +2 -2
  590. package/dist/generated/templates/MonthPickerTemplate.lit.js +3 -2
  591. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +5 -5
  592. package/dist/generated/templates/MultiComboBoxTemplate.lit.js +2 -2
  593. package/dist/generated/templates/MultiInputTemplate.lit.js +2 -2
  594. package/dist/generated/templates/PanelTemplate.lit.js +7 -6
  595. package/dist/generated/templates/PopoverTemplate.lit.js +2 -2
  596. package/dist/generated/templates/PopupTemplate.lit.js +1 -1
  597. package/dist/generated/templates/RadioButtonTemplate.lit.js +1 -1
  598. package/dist/generated/templates/RangeSliderTemplate.lit.js +1 -1
  599. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js +2 -2
  600. package/dist/generated/templates/SegmentedButtonTemplate.lit.js +1 -1
  601. package/dist/generated/templates/SliderBaseTemplate.lit.js +1 -1
  602. package/dist/generated/templates/SliderTemplate.lit.js +1 -1
  603. package/dist/generated/templates/StandardListItemTemplate.lit.js +24 -16
  604. package/dist/generated/templates/SuggestionListItemTemplate.lit.js +27 -19
  605. package/dist/generated/templates/SwitchTemplate.lit.js +1 -1
  606. package/dist/generated/templates/TabContainerTemplate.lit.js +1 -1
  607. package/dist/generated/templates/TabInOverflowTemplate.lit.js +3 -2
  608. package/dist/generated/templates/TabInStripTemplate.lit.js +9 -8
  609. package/dist/generated/templates/TableGroupRowTemplate.lit.js +1 -1
  610. package/dist/generated/templates/TableRowTemplate.lit.js +6 -3
  611. package/dist/generated/templates/TableTemplate.lit.js +9 -8
  612. package/dist/generated/templates/TextAreaPopoverTemplate.lit.js +1 -1
  613. package/dist/generated/templates/TextAreaTemplate.lit.js +2 -2
  614. package/dist/generated/templates/TimeSelectionTemplate.lit.js +3 -3
  615. package/dist/generated/templates/ToggleButtonTemplate.lit.js +1 -1
  616. package/dist/generated/templates/TokenTemplate.lit.js +1 -1
  617. package/dist/generated/templates/TreeItemBaseTemplate.lit.js +26 -0
  618. package/dist/generated/templates/TreeItemCustomTemplate.lit.js +26 -0
  619. package/dist/generated/templates/TreeItemTemplate.lit.js +28 -0
  620. package/dist/generated/templates/TreeTemplate.lit.js +1 -2
  621. package/dist/generated/templates/YearPickerTemplate.lit.js +3 -2
  622. package/dist/generated/themes/Avatar.css.js +1 -1
  623. package/dist/generated/themes/AvatarGroup.css.js +1 -1
  624. package/dist/generated/themes/Badge.css.js +1 -1
  625. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  626. package/dist/generated/themes/BreadcrumbsPopover.css.js +1 -1
  627. package/dist/generated/themes/BrowserScrollbar.css.js +1 -1
  628. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  629. package/dist/generated/themes/Button.css.js +1 -1
  630. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  631. package/dist/generated/themes/CardHeader.css.js +1 -1
  632. package/dist/generated/themes/Carousel.css.js +1 -1
  633. package/dist/generated/themes/CheckBox.css.js +1 -1
  634. package/dist/generated/themes/ColorPicker.css.js +1 -1
  635. package/dist/generated/themes/ComboBox.css.js +1 -1
  636. package/dist/generated/themes/DatePicker.css.js +1 -1
  637. package/dist/generated/themes/DayPicker.css.js +1 -1
  638. package/dist/generated/themes/Dialog.css.js +1 -1
  639. package/dist/generated/themes/GroupHeaderListItem.css.js +1 -1
  640. package/dist/generated/themes/Icon.css.js +1 -1
  641. package/dist/generated/themes/Input.css.js +1 -1
  642. package/dist/generated/themes/Link.css.js +1 -1
  643. package/dist/generated/themes/ListItem.css.js +1 -1
  644. package/dist/generated/themes/ListItemBase.css.js +1 -1
  645. package/dist/generated/themes/Menu.css.js +1 -1
  646. package/dist/generated/themes/MonthPicker.css.js +1 -1
  647. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  648. package/dist/generated/themes/MultiInput.css.js +1 -1
  649. package/dist/generated/themes/Panel.css.js +1 -1
  650. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  651. package/dist/generated/themes/RadioButton.css.js +1 -1
  652. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  653. package/dist/generated/themes/Select.css.js +1 -1
  654. package/dist/generated/themes/SliderBase.css.js +1 -1
  655. package/dist/generated/themes/StepInput.css.js +1 -1
  656. package/dist/generated/themes/Switch.css.js +1 -1
  657. package/dist/generated/themes/TabContainer.css.js +1 -1
  658. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  659. package/dist/generated/themes/TabInStrip.css.js +1 -1
  660. package/dist/generated/themes/Table.css.js +1 -1
  661. package/dist/generated/themes/TableCell.css.js +1 -1
  662. package/dist/generated/themes/TableColumn.css.js +1 -1
  663. package/dist/generated/themes/TableRow.css.js +1 -1
  664. package/dist/generated/themes/TextArea.css.js +1 -1
  665. package/dist/generated/themes/TimePicker.css.js +1 -1
  666. package/dist/generated/themes/Title.css.js +1 -1
  667. package/dist/generated/themes/Toast.css.js +1 -1
  668. package/dist/generated/themes/ToggleButton.css.js +1 -1
  669. package/dist/generated/themes/Tokenizer.css.js +1 -1
  670. package/dist/generated/themes/TreeItem.css.js +8 -0
  671. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  672. package/dist/generated/themes/YearPicker.css.js +1 -1
  673. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  674. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  675. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  676. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  677. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  678. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  679. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  680. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  681. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  682. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  683. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  684. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  685. package/dist/i18n/messagebundle.properties +36 -6
  686. package/dist/i18n/messagebundle_ar.properties +30 -10
  687. package/dist/i18n/messagebundle_bg.properties +32 -12
  688. package/dist/i18n/messagebundle_ca.properties +29 -9
  689. package/dist/i18n/messagebundle_cs.properties +30 -10
  690. package/dist/i18n/messagebundle_cy.properties +29 -9
  691. package/dist/i18n/messagebundle_da.properties +29 -9
  692. package/dist/i18n/messagebundle_de.properties +30 -10
  693. package/dist/i18n/messagebundle_el.properties +30 -10
  694. package/dist/i18n/messagebundle_en.properties +23 -3
  695. package/dist/i18n/messagebundle_en_GB.properties +23 -3
  696. package/dist/i18n/messagebundle_en_US_sappsd.properties +38 -4
  697. package/dist/i18n/messagebundle_en_US_saprigi.properties +24 -4
  698. package/dist/i18n/messagebundle_en_US_saptrc.properties +39 -5
  699. package/dist/i18n/messagebundle_es.properties +29 -9
  700. package/dist/i18n/messagebundle_es_MX.properties +29 -9
  701. package/dist/i18n/messagebundle_et.properties +30 -10
  702. package/dist/i18n/messagebundle_fi.properties +30 -10
  703. package/dist/i18n/messagebundle_fr.properties +29 -9
  704. package/dist/i18n/messagebundle_fr_CA.properties +30 -10
  705. package/dist/i18n/messagebundle_hi.properties +30 -10
  706. package/dist/i18n/messagebundle_hr.properties +30 -10
  707. package/dist/i18n/messagebundle_hu.properties +30 -10
  708. package/dist/i18n/messagebundle_id.properties +30 -10
  709. package/dist/i18n/messagebundle_it.properties +32 -12
  710. package/dist/i18n/messagebundle_iw.properties +30 -10
  711. package/dist/i18n/messagebundle_ja.properties +30 -10
  712. package/dist/i18n/messagebundle_kk.properties +30 -10
  713. package/dist/i18n/messagebundle_ko.properties +30 -10
  714. package/dist/i18n/messagebundle_lt.properties +30 -10
  715. package/dist/i18n/messagebundle_lv.properties +30 -10
  716. package/dist/i18n/messagebundle_ms.properties +30 -10
  717. package/dist/i18n/messagebundle_nl.properties +32 -12
  718. package/dist/i18n/messagebundle_no.properties +31 -11
  719. package/dist/i18n/messagebundle_pl.properties +30 -10
  720. package/dist/i18n/messagebundle_pt.properties +29 -9
  721. package/dist/i18n/messagebundle_pt_PT.properties +29 -9
  722. package/dist/i18n/messagebundle_ro.properties +30 -10
  723. package/dist/i18n/messagebundle_ru.properties +30 -10
  724. package/dist/i18n/messagebundle_sh.properties +30 -10
  725. package/dist/i18n/messagebundle_sk.properties +30 -10
  726. package/dist/i18n/messagebundle_sl.properties +30 -10
  727. package/dist/i18n/messagebundle_sv.properties +29 -9
  728. package/dist/i18n/messagebundle_th.properties +33 -13
  729. package/dist/i18n/messagebundle_tr.properties +30 -10
  730. package/dist/i18n/messagebundle_uk.properties +31 -11
  731. package/dist/i18n/messagebundle_vi.properties +29 -9
  732. package/dist/i18n/messagebundle_zh_CN.properties +31 -11
  733. package/dist/i18n/messagebundle_zh_TW.properties +29 -9
  734. package/dist/popup-utils/OpenedPopupsRegistry.d.ts +9 -0
  735. package/dist/popup-utils/OpenedPopupsRegistry.js +43 -37
  736. package/dist/popup-utils/OpenedPopupsRegistry.js.map +1 -0
  737. package/dist/popup-utils/PopoverRegistry.d.ts +9 -0
  738. package/dist/popup-utils/PopoverRegistry.js +103 -123
  739. package/dist/popup-utils/PopoverRegistry.js.map +1 -0
  740. package/dist/timepicker-utils/TimeSlider.d.ts +15 -0
  741. package/dist/timepicker-utils/TimeSlider.js +80 -92
  742. package/dist/timepicker-utils/TimeSlider.js.map +1 -0
  743. package/dist/types/AvatarColorScheme.d.ts +78 -0
  744. package/dist/types/AvatarColorScheme.js +75 -99
  745. package/dist/types/AvatarColorScheme.js.map +1 -0
  746. package/dist/types/AvatarGroupType.d.ts +26 -0
  747. package/dist/types/AvatarGroupType.js +22 -37
  748. package/dist/types/AvatarGroupType.js.map +1 -0
  749. package/dist/types/AvatarShape.d.ts +24 -0
  750. package/dist/types/AvatarShape.js +20 -35
  751. package/dist/types/AvatarShape.js.map +1 -0
  752. package/dist/types/AvatarSize.d.ts +47 -0
  753. package/dist/types/AvatarSize.js +43 -61
  754. package/dist/types/AvatarSize.js.map +1 -0
  755. package/dist/types/BreadcrumbsDesign.d.ts +26 -0
  756. package/dist/types/BreadcrumbsDesign.js +23 -37
  757. package/dist/types/BreadcrumbsDesign.js.map +1 -0
  758. package/dist/types/BreadcrumbsSeparatorStyle.d.ts +48 -0
  759. package/dist/types/BreadcrumbsSeparatorStyle.js +45 -64
  760. package/dist/types/BreadcrumbsSeparatorStyle.js.map +1 -0
  761. package/dist/types/BusyIndicatorSize.d.ts +30 -0
  762. package/dist/types/BusyIndicatorSize.js +27 -42
  763. package/dist/types/BusyIndicatorSize.js.map +1 -0
  764. package/dist/types/ButtonDesign.d.ts +48 -0
  765. package/dist/types/ButtonDesign.js +45 -63
  766. package/dist/types/ButtonDesign.js.map +1 -0
  767. package/dist/types/CalendarSelectionMode.d.ts +30 -0
  768. package/dist/types/CalendarSelectionMode.js +27 -42
  769. package/dist/types/CalendarSelectionMode.js.map +1 -0
  770. package/dist/types/CarouselArrowsPlacement.d.ts +24 -0
  771. package/dist/types/CarouselArrowsPlacement.js +21 -35
  772. package/dist/types/CarouselArrowsPlacement.js.map +1 -0
  773. package/dist/types/CarouselPageIndicatorStyle.d.ts +25 -0
  774. package/dist/types/CarouselPageIndicatorStyle.js +27 -0
  775. package/dist/types/CarouselPageIndicatorStyle.js.map +1 -0
  776. package/dist/types/HasPopup.d.ts +42 -0
  777. package/dist/types/HasPopup.js +38 -56
  778. package/dist/types/HasPopup.js.map +1 -0
  779. package/dist/types/IconDesign.d.ts +60 -0
  780. package/dist/types/IconDesign.js +62 -0
  781. package/dist/types/IconDesign.js.map +1 -0
  782. package/dist/types/InputType.d.ts +48 -0
  783. package/dist/types/InputType.js +45 -63
  784. package/dist/types/InputType.js.map +1 -0
  785. package/dist/types/LinkDesign.d.ts +30 -0
  786. package/dist/types/LinkDesign.js +27 -42
  787. package/dist/types/LinkDesign.js.map +1 -0
  788. package/dist/types/ListGrowingMode.d.ts +31 -0
  789. package/dist/types/ListGrowingMode.js +28 -43
  790. package/dist/types/ListGrowingMode.js.map +1 -0
  791. package/dist/types/ListItemType.d.ts +36 -0
  792. package/dist/types/ListItemType.js +33 -42
  793. package/dist/types/ListItemType.js.map +1 -0
  794. package/dist/types/ListMode.d.ts +56 -0
  795. package/dist/types/ListMode.js +53 -72
  796. package/dist/types/ListMode.js.map +1 -0
  797. package/dist/types/ListSeparators.d.ts +31 -0
  798. package/dist/types/ListSeparators.js +28 -41
  799. package/dist/types/ListSeparators.js.map +1 -0
  800. package/dist/types/MessageStripDesign.d.ts +36 -0
  801. package/dist/types/MessageStripDesign.js +33 -49
  802. package/dist/types/MessageStripDesign.js.map +1 -0
  803. package/dist/types/PanelAccessibleRole.d.ts +33 -0
  804. package/dist/types/PanelAccessibleRole.js +30 -43
  805. package/dist/types/PanelAccessibleRole.js.map +1 -0
  806. package/dist/types/PopoverHorizontalAlign.d.ts +36 -0
  807. package/dist/types/PopoverHorizontalAlign.js +33 -49
  808. package/dist/types/PopoverHorizontalAlign.js.map +1 -0
  809. package/dist/types/PopoverPlacementType.d.ts +36 -0
  810. package/dist/types/PopoverPlacementType.js +33 -49
  811. package/dist/types/PopoverPlacementType.js.map +1 -0
  812. package/dist/types/PopoverVerticalAlign.d.ts +36 -0
  813. package/dist/types/PopoverVerticalAlign.js +33 -49
  814. package/dist/types/PopoverVerticalAlign.js.map +1 -0
  815. package/dist/types/Priority.d.ts +36 -0
  816. package/dist/types/Priority.js +32 -49
  817. package/dist/types/Priority.js.map +1 -0
  818. package/dist/types/SemanticColor.d.ts +42 -0
  819. package/dist/types/SemanticColor.js +39 -56
  820. package/dist/types/SemanticColor.js.map +1 -0
  821. package/dist/types/SwitchDesign.d.ts +24 -0
  822. package/dist/types/SwitchDesign.js +21 -35
  823. package/dist/types/SwitchDesign.js.map +1 -0
  824. package/dist/types/TabContainerBackgroundDesign.d.ts +30 -0
  825. package/dist/types/TabContainerBackgroundDesign.js +32 -0
  826. package/dist/types/TabContainerBackgroundDesign.js.map +1 -0
  827. package/dist/types/TabContainerTabsPlacement.d.ts +24 -0
  828. package/dist/types/TabContainerTabsPlacement.js +21 -35
  829. package/dist/types/TabContainerTabsPlacement.js.map +1 -0
  830. package/dist/types/TabLayout.d.ts +24 -0
  831. package/dist/types/TabLayout.js +21 -35
  832. package/dist/types/TabLayout.js.map +1 -0
  833. package/dist/types/TableColumnPopinDisplay.d.ts +24 -0
  834. package/dist/types/TableColumnPopinDisplay.js +26 -0
  835. package/dist/types/TableColumnPopinDisplay.js.map +1 -0
  836. package/dist/types/TableGrowingMode.d.ts +31 -0
  837. package/dist/types/TableGrowingMode.js +28 -43
  838. package/dist/types/TableGrowingMode.js.map +1 -0
  839. package/dist/types/TableMode.d.ts +30 -0
  840. package/dist/types/TableMode.js +27 -42
  841. package/dist/types/TableMode.js.map +1 -0
  842. package/dist/types/TableRowType.d.ts +24 -0
  843. package/dist/types/TableRowType.js +21 -35
  844. package/dist/types/TableRowType.js.map +1 -0
  845. package/dist/types/TabsOverflowMode.d.ts +24 -0
  846. package/dist/types/TabsOverflowMode.js +21 -35
  847. package/dist/types/TabsOverflowMode.js.map +1 -0
  848. package/dist/types/TitleLevel.d.ts +48 -0
  849. package/dist/types/TitleLevel.js +45 -63
  850. package/dist/types/TitleLevel.js.map +1 -0
  851. package/dist/types/ToastPlacement.d.ts +67 -0
  852. package/dist/types/ToastPlacement.js +64 -86
  853. package/dist/types/ToastPlacement.js.map +1 -0
  854. package/dist/types/WrappingType.d.ts +24 -0
  855. package/dist/types/WrappingType.js +20 -35
  856. package/dist/types/WrappingType.js.map +1 -0
  857. package/global.d.ts +12 -0
  858. package/package-scripts.js +1 -0
  859. package/package.json +10 -8
  860. package/src/Avatar.hbs +2 -0
  861. package/src/Avatar.ts +435 -0
  862. package/src/AvatarGroup.js +30 -12
  863. package/src/Badge.ts +143 -0
  864. package/src/Breadcrumbs.hbs +41 -38
  865. package/src/{Breadcrumbs.js → Breadcrumbs.ts} +234 -176
  866. package/src/BreadcrumbsItem.ts +92 -0
  867. package/src/BusyIndicator.js +7 -10
  868. package/src/Button.hbs +1 -0
  869. package/src/Button.ts +503 -0
  870. package/src/Calendar.hbs +3 -0
  871. package/src/{Calendar.js → Calendar.ts} +177 -179
  872. package/src/CalendarDate.ts +36 -0
  873. package/src/CalendarHeader.hbs +5 -1
  874. package/src/CalendarHeader.ts +218 -0
  875. package/src/{CalendarPart.js → CalendarPart.ts} +15 -26
  876. package/src/Card.hbs +1 -1
  877. package/src/{Card.js → Card.ts} +67 -75
  878. package/src/CardHeader.hbs +45 -29
  879. package/src/CardHeader.ts +275 -0
  880. package/src/Carousel.hbs +72 -72
  881. package/src/Carousel.js +52 -11
  882. package/src/CheckBox.hbs +3 -3
  883. package/src/CheckBox.ts +466 -0
  884. package/src/{ColorPalette.js → ColorPalette.ts} +184 -165
  885. package/src/ColorPaletteItem.ts +124 -0
  886. package/src/{ColorPalettePopover.js → ColorPalettePopover.ts} +105 -97
  887. package/src/ColorPicker.ts +536 -0
  888. package/src/ComboBox.hbs +1 -1
  889. package/src/ComboBox.js +72 -18
  890. package/src/ComboBoxGroupItem.js +7 -7
  891. package/src/ComboBoxItem.js +4 -4
  892. package/src/ComboBoxPopover.hbs +48 -44
  893. package/src/CustomListItem.ts +89 -0
  894. package/src/DateComponentBase.ts +174 -0
  895. package/src/DatePicker.hbs +2 -0
  896. package/src/{DatePicker.js → DatePicker.ts} +369 -329
  897. package/src/DatePickerPopover.hbs +0 -1
  898. package/src/{DateRangePicker.js → DateRangePicker.ts} +72 -66
  899. package/src/{DateTimePicker.js → DateTimePicker.ts} +95 -91
  900. package/src/{DayPicker.js → DayPicker.ts} +274 -218
  901. package/src/Dialog.hbs +6 -2
  902. package/src/{Dialog.js → Dialog.ts} +271 -191
  903. package/src/DurationPicker.js +5 -5
  904. package/src/FileUploader.ts +525 -0
  905. package/src/Filters.ts +28 -0
  906. package/src/GroupHeaderListItem.hbs +2 -2
  907. package/src/GroupHeaderListItem.ts +86 -0
  908. package/src/Icon.hbs +9 -3
  909. package/src/{Icon.js → Icon.ts} +211 -212
  910. package/src/Input.hbs +5 -3
  911. package/src/Input.ts +1726 -0
  912. package/src/InputPopover.hbs +1 -1
  913. package/src/{Interfaces.js → Interfaces.ts} +40 -40
  914. package/src/Label.hbs +0 -1
  915. package/src/Label.ts +143 -0
  916. package/src/Link.hbs +1 -1
  917. package/src/Link.ts +406 -0
  918. package/src/List.hbs +12 -3
  919. package/src/List.ts +1143 -0
  920. package/src/ListItem.hbs +23 -4
  921. package/src/ListItem.ts +492 -0
  922. package/src/ListItemBase.ts +168 -0
  923. package/src/Menu.hbs +7 -2
  924. package/src/Menu.ts +612 -0
  925. package/src/MenuItem.ts +168 -0
  926. package/src/MessageStrip.ts +245 -0
  927. package/src/MonthPicker.hbs +9 -1
  928. package/src/MonthPicker.ts +351 -0
  929. package/src/MultiComboBox.hbs +2 -1
  930. package/src/MultiComboBox.js +169 -44
  931. package/src/MultiComboBoxGroupItem.js +7 -7
  932. package/src/MultiComboBoxItem.js +4 -4
  933. package/src/MultiComboBoxPopover.hbs +4 -2
  934. package/src/MultiInput.js +28 -12
  935. package/src/Option.js +8 -8
  936. package/src/Panel.hbs +56 -46
  937. package/src/{Panel.js → Panel.ts} +197 -217
  938. package/src/Popover.hbs +1 -1
  939. package/src/{Popover.js → Popover.ts} +293 -266
  940. package/src/Popup.hbs +1 -1
  941. package/src/{Popup.js → Popup.ts} +236 -211
  942. package/src/{ProgressIndicator.js → ProgressIndicator.ts} +91 -95
  943. package/src/RadioButton.hbs +3 -3
  944. package/src/RadioButton.js +40 -20
  945. package/src/RadioButtonGroup.js +1 -1
  946. package/src/RangeSlider.hbs +13 -7
  947. package/src/{RangeSlider.js → RangeSlider.ts} +249 -170
  948. package/src/RatingIndicator.js +13 -8
  949. package/src/ResponsivePopover.js +12 -4
  950. package/src/SegmentedButton.hbs +1 -0
  951. package/src/SegmentedButton.js +26 -22
  952. package/src/SegmentedButtonItem.js +6 -6
  953. package/src/Select.js +43 -16
  954. package/src/Slider.hbs +3 -3
  955. package/src/{Slider.js → Slider.ts} +95 -61
  956. package/src/SliderBase.hbs +1 -0
  957. package/src/{SliderBase.js → SliderBase.ts} +240 -272
  958. package/src/{SplitButton.js → SplitButton.ts} +217 -235
  959. package/src/StandardListItem.hbs +10 -4
  960. package/src/StandardListItem.ts +217 -0
  961. package/src/StepInput.hbs +1 -1
  962. package/src/{StepInput.js → StepInput.ts} +275 -314
  963. package/src/SuggestionGroupItem.ts +51 -0
  964. package/src/SuggestionItem.ts +134 -0
  965. package/src/{SuggestionListItem.js → SuggestionListItem.ts} +30 -32
  966. package/src/Switch.hbs +3 -2
  967. package/src/Switch.ts +299 -0
  968. package/src/Tab.js +62 -19
  969. package/src/TabContainer.hbs +5 -1
  970. package/src/TabContainer.js +219 -164
  971. package/src/TabInOverflow.hbs +6 -5
  972. package/src/TabInStrip.hbs +10 -3
  973. package/src/TabSeparator.js +11 -4
  974. package/src/Table.hbs +18 -10
  975. package/src/Table.ts +1303 -0
  976. package/src/{TableCell.js → TableCell.ts} +32 -42
  977. package/src/TableColumn.ts +135 -0
  978. package/src/TableGroupRow.hbs +0 -1
  979. package/src/TableGroupRow.ts +159 -0
  980. package/src/TableRow.hbs +33 -10
  981. package/src/TableRow.ts +505 -0
  982. package/src/TextArea.hbs +30 -29
  983. package/src/TextArea.js +56 -57
  984. package/src/TextAreaPopover.hbs +1 -1
  985. package/src/{TimePicker.js → TimePicker.ts} +43 -51
  986. package/src/{TimePickerBase.js → TimePickerBase.ts} +158 -141
  987. package/src/TimeSelection.hbs +3 -3
  988. package/src/{TimeSelection.js → TimeSelection.ts} +200 -177
  989. package/src/Title.ts +117 -0
  990. package/src/Toast.js +6 -6
  991. package/src/ToggleButton.js +5 -8
  992. package/src/Token.hbs +1 -0
  993. package/src/Token.js +24 -7
  994. package/src/Tokenizer.js +115 -25
  995. package/src/Tree.hbs +10 -32
  996. package/src/Tree.js +122 -58
  997. package/src/TreeItem.hbs +13 -0
  998. package/src/TreeItem.js +35 -120
  999. package/src/{TreeListItem.hbs → TreeItemBase.hbs} +17 -10
  1000. package/src/TreeItemBase.js +431 -0
  1001. package/src/TreeItemCustom.hbs +7 -0
  1002. package/src/TreeItemCustom.js +102 -0
  1003. package/src/TreeList.js +48 -0
  1004. package/src/{WheelSlider.js → WheelSlider.ts} +120 -126
  1005. package/src/YearPicker.hbs +8 -0
  1006. package/src/YearPicker.ts +394 -0
  1007. package/src/features/{ColorPaletteMoreColors.js → ColorPaletteMoreColors.ts} +8 -3
  1008. package/src/features/InputElementsFormSupport.ts +141 -0
  1009. package/src/features/{InputSuggestions.js → InputSuggestions.ts} +170 -95
  1010. package/src/i18n/messagebundle.properties +36 -6
  1011. package/src/i18n/messagebundle_ar.properties +30 -10
  1012. package/src/i18n/messagebundle_bg.properties +32 -12
  1013. package/src/i18n/messagebundle_ca.properties +29 -9
  1014. package/src/i18n/messagebundle_cs.properties +30 -10
  1015. package/src/i18n/messagebundle_cy.properties +29 -9
  1016. package/src/i18n/messagebundle_da.properties +29 -9
  1017. package/src/i18n/messagebundle_de.properties +30 -10
  1018. package/src/i18n/messagebundle_el.properties +30 -10
  1019. package/src/i18n/messagebundle_en.properties +23 -3
  1020. package/src/i18n/messagebundle_en_GB.properties +23 -3
  1021. package/src/i18n/messagebundle_en_US_sappsd.properties +38 -4
  1022. package/src/i18n/messagebundle_en_US_saprigi.properties +24 -4
  1023. package/src/i18n/messagebundle_en_US_saptrc.properties +39 -5
  1024. package/src/i18n/messagebundle_es.properties +29 -9
  1025. package/src/i18n/messagebundle_es_MX.properties +29 -9
  1026. package/src/i18n/messagebundle_et.properties +30 -10
  1027. package/src/i18n/messagebundle_fi.properties +30 -10
  1028. package/src/i18n/messagebundle_fr.properties +29 -9
  1029. package/src/i18n/messagebundle_fr_CA.properties +30 -10
  1030. package/src/i18n/messagebundle_hi.properties +30 -10
  1031. package/src/i18n/messagebundle_hr.properties +30 -10
  1032. package/src/i18n/messagebundle_hu.properties +30 -10
  1033. package/src/i18n/messagebundle_id.properties +30 -10
  1034. package/src/i18n/messagebundle_it.properties +32 -12
  1035. package/src/i18n/messagebundle_iw.properties +30 -10
  1036. package/src/i18n/messagebundle_ja.properties +30 -10
  1037. package/src/i18n/messagebundle_kk.properties +30 -10
  1038. package/src/i18n/messagebundle_ko.properties +30 -10
  1039. package/src/i18n/messagebundle_lt.properties +30 -10
  1040. package/src/i18n/messagebundle_lv.properties +30 -10
  1041. package/src/i18n/messagebundle_ms.properties +30 -10
  1042. package/src/i18n/messagebundle_nl.properties +32 -12
  1043. package/src/i18n/messagebundle_no.properties +31 -11
  1044. package/src/i18n/messagebundle_pl.properties +30 -10
  1045. package/src/i18n/messagebundle_pt.properties +29 -9
  1046. package/src/i18n/messagebundle_pt_PT.properties +29 -9
  1047. package/src/i18n/messagebundle_ro.properties +30 -10
  1048. package/src/i18n/messagebundle_ru.properties +30 -10
  1049. package/src/i18n/messagebundle_sh.properties +30 -10
  1050. package/src/i18n/messagebundle_sk.properties +30 -10
  1051. package/src/i18n/messagebundle_sl.properties +30 -10
  1052. package/src/i18n/messagebundle_sv.properties +29 -9
  1053. package/src/i18n/messagebundle_th.properties +33 -13
  1054. package/src/i18n/messagebundle_tr.properties +30 -10
  1055. package/src/i18n/messagebundle_uk.properties +31 -11
  1056. package/src/i18n/messagebundle_vi.properties +29 -9
  1057. package/src/i18n/messagebundle_zh_CN.properties +31 -11
  1058. package/src/i18n/messagebundle_zh_TW.properties +29 -9
  1059. package/src/popup-utils/{OpenedPopupsRegistry.js → OpenedPopupsRegistry.ts} +31 -5
  1060. package/src/popup-utils/{PopoverRegistry.js → PopoverRegistry.ts} +50 -29
  1061. package/src/themes/Avatar.css +56 -2
  1062. package/src/themes/AvatarGroup.css +1 -0
  1063. package/src/themes/Badge.css +12 -5
  1064. package/src/themes/Breadcrumbs.css +3 -0
  1065. package/src/themes/BreadcrumbsPopover.css +1 -0
  1066. package/src/themes/BrowserScrollbar.css +6 -6
  1067. package/src/themes/BusyIndicator.css +1 -14
  1068. package/src/themes/Button.css +19 -14
  1069. package/src/themes/CalendarHeader.css +3 -4
  1070. package/src/themes/CardHeader.css +30 -2
  1071. package/src/themes/Carousel.css +6 -4
  1072. package/src/themes/CheckBox.css +0 -10
  1073. package/src/themes/ColorPicker.css +5 -5
  1074. package/src/themes/DatePicker.css +19 -1
  1075. package/src/themes/DayPicker.css +4 -5
  1076. package/src/themes/Dialog.css +45 -2
  1077. package/src/themes/GroupHeaderListItem.css +1 -0
  1078. package/src/themes/Icon.css +40 -1
  1079. package/src/themes/Input.css +60 -45
  1080. package/src/themes/Link.css +6 -8
  1081. package/src/themes/ListItem.css +30 -7
  1082. package/src/themes/ListItemBase.css +0 -2
  1083. package/src/themes/Menu.css +26 -2
  1084. package/src/themes/MonthPicker.css +9 -3
  1085. package/src/themes/MultiComboBox.css +0 -18
  1086. package/src/themes/MultiInput.css +0 -9
  1087. package/src/themes/Panel.css +12 -8
  1088. package/src/themes/PopupsCommon.css +0 -6
  1089. package/src/themes/RadioButton.css +6 -6
  1090. package/src/themes/ResponsivePopoverCommon.css +0 -11
  1091. package/src/themes/Select.css +1 -1
  1092. package/src/themes/SliderBase.css +3 -5
  1093. package/src/themes/StepInput.css +9 -0
  1094. package/src/themes/Switch.css +3 -4
  1095. package/src/themes/TabContainer.css +19 -3
  1096. package/src/themes/TabInOverflow.css +1 -0
  1097. package/src/themes/TabInStrip.css +12 -11
  1098. package/src/themes/Table.css +11 -1
  1099. package/src/themes/TableCell.css +4 -0
  1100. package/src/themes/TableColumn.css +1 -1
  1101. package/src/themes/TableRow.css +34 -4
  1102. package/src/themes/TextArea.css +243 -168
  1103. package/src/themes/TimePicker.css +12 -0
  1104. package/src/themes/Title.css +1 -1
  1105. package/src/themes/Toast.css +0 -6
  1106. package/src/themes/ToggleButton.css +1 -6
  1107. package/src/themes/Tokenizer.css +2 -6
  1108. package/src/themes/{TreeListItem.css → TreeItem.css} +49 -2
  1109. package/src/themes/ValueStateMessage.css +10 -1
  1110. package/src/themes/YearPicker.css +13 -3
  1111. package/src/themes/base/Avatar-parameters.css +1 -0
  1112. package/src/themes/base/DayPicker-parameters.css +3 -0
  1113. package/src/themes/base/Dialog-parameters.css +8 -0
  1114. package/src/themes/base/Input-parameters.css +13 -2
  1115. package/src/themes/base/Menu-parameters.css +2 -0
  1116. package/src/themes/base/Panel-parameters.css +1 -0
  1117. package/src/themes/base/Select-parameters.css +1 -1
  1118. package/src/themes/base/SliderBase-parameters.css +2 -0
  1119. package/src/themes/base/TabContainer-parameters.css +4 -0
  1120. package/src/themes/base/Table-parameters.css +1 -0
  1121. package/src/themes/base/TextArea-parameters.css +53 -17
  1122. package/src/themes/base/Tokenizer-parameters.css +1 -0
  1123. package/src/themes/base/ValueStateMessage-parameters.css +2 -1
  1124. package/src/themes/base/sizes-parameters.css +7 -4
  1125. package/src/themes/sap_belize/DayPicker-parameters.css +1 -1
  1126. package/src/themes/sap_belize/TabContainer-parameters.css +4 -0
  1127. package/src/themes/sap_belize/TextArea-parameters.css +23 -0
  1128. package/src/themes/sap_belize/parameters-bundle.css +2 -2
  1129. package/src/themes/sap_belize/sizes-parameters.css +2 -0
  1130. package/src/themes/sap_belize_hcb/Button-parameters.css +1 -0
  1131. package/src/themes/sap_belize_hcb/DayPicker-parameters.css +7 -0
  1132. package/src/themes/sap_belize_hcb/Input-parameters.css +3 -0
  1133. package/src/themes/sap_belize_hcb/TextArea-parameters.css +30 -4
  1134. package/src/themes/sap_belize_hcw/Button-parameters.css +1 -0
  1135. package/src/themes/sap_belize_hcw/DayPicker-parameters.css +7 -0
  1136. package/src/themes/sap_belize_hcw/Input-parameters.css +3 -0
  1137. package/src/themes/sap_belize_hcw/TextArea-parameters.css +30 -4
  1138. package/src/themes/sap_fiori_3_hcb/Button-parameters.css +1 -0
  1139. package/src/themes/sap_fiori_3_hcb/Dialog-parameters.css +8 -0
  1140. package/src/themes/sap_fiori_3_hcb/Input-parameters.css +2 -1
  1141. package/src/themes/sap_fiori_3_hcb/TextArea-parameters.css +29 -9
  1142. package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  1143. package/src/themes/sap_fiori_3_hcw/Button-parameters.css +1 -0
  1144. package/src/themes/sap_fiori_3_hcw/Dialog-parameters.css +8 -0
  1145. package/src/themes/sap_fiori_3_hcw/Input-parameters.css +2 -1
  1146. package/src/themes/sap_fiori_3_hcw/TextArea-parameters.css +29 -9
  1147. package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  1148. package/src/themes/sap_horizon/CheckBox-parameters.css +2 -0
  1149. package/src/themes/sap_horizon/Input-parameters.css +3 -0
  1150. package/src/themes/sap_horizon/Panel-parameters.css +1 -0
  1151. package/src/themes/sap_horizon/Table-parameters.css +0 -1
  1152. package/src/themes/sap_horizon/TextArea-parameters.css +45 -12
  1153. package/src/themes/sap_horizon/Tokenizer-parameters.css +5 -0
  1154. package/src/themes/sap_horizon/ValueStateMessage-parameters.css +1 -0
  1155. package/src/themes/sap_horizon/parameters-bundle.css +2 -2
  1156. package/src/themes/sap_horizon/sizes-parameters.css +4 -0
  1157. package/src/themes/sap_horizon_dark/CheckBox-parameters.css +1 -0
  1158. package/src/themes/sap_horizon_dark/Input-parameters.css +3 -0
  1159. package/src/themes/sap_horizon_dark/ListItemBase-parameters.css +0 -1
  1160. package/src/themes/sap_horizon_dark/Panel-parameters.css +1 -0
  1161. package/src/themes/sap_horizon_dark/Table-parameters.css +0 -1
  1162. package/src/themes/sap_horizon_dark/TextArea-parameters.css +45 -12
  1163. package/src/themes/sap_horizon_dark/Tokenizer-parameters.css +5 -0
  1164. package/src/themes/sap_horizon_dark/ValueStateMessage-parameters.css +1 -0
  1165. package/src/themes/sap_horizon_dark/parameters-bundle.css +2 -2
  1166. package/src/themes/sap_horizon_dark/sizes-parameters.css +6 -0
  1167. package/src/themes/sap_horizon_exp/Select-parameters.css +1 -1
  1168. package/src/themes/sap_horizon_hcb/CheckBox-parameters.css +1 -0
  1169. package/src/themes/sap_horizon_hcb/Dialog-parameters.css +4 -0
  1170. package/src/themes/sap_horizon_hcb/Input-parameters.css +2 -1
  1171. package/src/themes/sap_horizon_hcb/TextArea-parameters.css +33 -10
  1172. package/src/themes/sap_horizon_hcw/CheckBox-parameters.css +1 -0
  1173. package/src/themes/sap_horizon_hcw/Dialog-parameters.css +4 -0
  1174. package/src/themes/sap_horizon_hcw/Input-parameters.css +2 -1
  1175. package/src/themes/sap_horizon_hcw/TextArea-parameters.css +34 -11
  1176. package/src/timepicker-utils/{TimeSlider.js → TimeSlider.ts} +26 -9
  1177. package/src/types/AvatarColorScheme.ts +89 -0
  1178. package/src/types/AvatarGroupType.ts +28 -0
  1179. package/src/types/AvatarShape.ts +26 -0
  1180. package/src/types/AvatarSize.ts +52 -0
  1181. package/src/types/BreadcrumbsDesign.ts +28 -0
  1182. package/src/types/BreadcrumbsSeparatorStyle.ts +55 -0
  1183. package/src/types/BusyIndicatorSize.ts +33 -0
  1184. package/src/types/ButtonDesign.ts +54 -0
  1185. package/src/types/CalendarSelectionMode.ts +33 -0
  1186. package/src/types/CarouselArrowsPlacement.ts +26 -0
  1187. package/src/types/CarouselPageIndicatorStyle.ts +27 -0
  1188. package/src/types/HasPopup.ts +47 -0
  1189. package/src/types/IconDesign.ts +68 -0
  1190. package/src/types/{InputType.js → InputType.ts} +13 -27
  1191. package/src/types/LinkDesign.ts +33 -0
  1192. package/src/types/ListGrowingMode.ts +34 -0
  1193. package/src/types/ListItemType.ts +40 -0
  1194. package/src/types/{ListMode.js → ListMode.ts} +14 -28
  1195. package/src/types/ListSeparators.ts +32 -0
  1196. package/src/types/MessageStripDesign.ts +40 -0
  1197. package/src/types/PanelAccessibleRole.ts +37 -0
  1198. package/src/types/PopoverHorizontalAlign.ts +40 -0
  1199. package/src/types/PopoverPlacementType.ts +40 -0
  1200. package/src/types/PopoverVerticalAlign.ts +40 -0
  1201. package/src/types/Priority.ts +40 -0
  1202. package/src/types/SemanticColor.ts +47 -0
  1203. package/src/types/SwitchDesign.ts +26 -0
  1204. package/src/types/TabContainerBackgroundDesign.ts +33 -0
  1205. package/src/types/TabContainerTabsPlacement.ts +26 -0
  1206. package/src/types/TabLayout.ts +26 -0
  1207. package/src/types/TableColumnPopinDisplay.ts +26 -0
  1208. package/src/types/TableGrowingMode.ts +34 -0
  1209. package/src/types/TableMode.ts +33 -0
  1210. package/src/types/TableRowType.ts +26 -0
  1211. package/src/types/TabsOverflowMode.ts +26 -0
  1212. package/src/types/{TitleLevel.js → TitleLevel.ts} +13 -27
  1213. package/src/types/ToastPlacement.ts +77 -0
  1214. package/src/types/WrappingType.ts +26 -0
  1215. package/tsconfig.json +14 -0
  1216. package/dist/TreeListItem.js +0 -343
  1217. package/dist/css/themes/Button.ie11.css +0 -1
  1218. package/dist/css/themes/ToggleButton.ie11.css +0 -1
  1219. package/dist/css/themes/TreeListItem.css +0 -1
  1220. package/dist/generated/templates/TreeListItemTemplate.lit.js +0 -21
  1221. package/dist/generated/themes/Button.ie11.css.js +0 -8
  1222. package/dist/generated/themes/ToggleButton.ie11.css.js +0 -8
  1223. package/dist/generated/themes/TreeListItem.css.js +0 -8
  1224. package/dist/types/GrowingMode.js +0 -48
  1225. package/src/Avatar.js +0 -392
  1226. package/src/Badge.js +0 -150
  1227. package/src/BreadcrumbsItem.js +0 -103
  1228. package/src/Button.js +0 -509
  1229. package/src/CalendarDate.js +0 -45
  1230. package/src/CalendarHeader.js +0 -209
  1231. package/src/CardHeader.js +0 -283
  1232. package/src/CheckBox.js +0 -469
  1233. package/src/ColorPaletteItem.js +0 -137
  1234. package/src/ColorPicker.js +0 -609
  1235. package/src/CustomListItem.js +0 -99
  1236. package/src/DateComponentBase.js +0 -168
  1237. package/src/FileUploader.js +0 -531
  1238. package/src/Filters.js +0 -28
  1239. package/src/GroupHeaderListItem.js +0 -94
  1240. package/src/Input.js +0 -1679
  1241. package/src/Label.js +0 -158
  1242. package/src/Link.js +0 -378
  1243. package/src/List.js +0 -1106
  1244. package/src/ListItem.js +0 -396
  1245. package/src/ListItemBase.js +0 -181
  1246. package/src/Menu.js +0 -500
  1247. package/src/MenuItem.js +0 -162
  1248. package/src/MessageStrip.js +0 -256
  1249. package/src/MonthPicker.js +0 -299
  1250. package/src/StandardListItem.js +0 -191
  1251. package/src/SuggestionGroupItem.js +0 -64
  1252. package/src/SuggestionItem.js +0 -146
  1253. package/src/Switch.js +0 -291
  1254. package/src/Table.js +0 -1211
  1255. package/src/TableColumn.js +0 -129
  1256. package/src/TableGroupRow.js +0 -167
  1257. package/src/TableRow.js +0 -436
  1258. package/src/Title.js +0 -132
  1259. package/src/TreeListItem.js +0 -343
  1260. package/src/YearPicker.js +0 -324
  1261. package/src/features/InputElementsFormSupport.js +0 -91
  1262. package/src/themes/Button.ie11.css +0 -48
  1263. package/src/themes/ToggleButton.ie11.css +0 -48
  1264. package/src/types/AvatarColorScheme.js +0 -104
  1265. package/src/types/AvatarGroupType.js +0 -43
  1266. package/src/types/AvatarShape.js +0 -41
  1267. package/src/types/AvatarSize.js +0 -67
  1268. package/src/types/BreadcrumbsDesign.js +0 -42
  1269. package/src/types/BreadcrumbsSeparatorStyle.js +0 -69
  1270. package/src/types/BusyIndicatorSize.js +0 -47
  1271. package/src/types/ButtonDesign.js +0 -68
  1272. package/src/types/CalendarSelectionMode.js +0 -47
  1273. package/src/types/CarouselArrowsPlacement.js +0 -40
  1274. package/src/types/GrowingMode.js +0 -48
  1275. package/src/types/HasPopup.js +0 -62
  1276. package/src/types/LinkDesign.js +0 -47
  1277. package/src/types/ListGrowingMode.js +0 -48
  1278. package/src/types/ListItemType.js +0 -47
  1279. package/src/types/ListSeparators.js +0 -46
  1280. package/src/types/MessageStripDesign.js +0 -54
  1281. package/src/types/PanelAccessibleRole.js +0 -48
  1282. package/src/types/PopoverHorizontalAlign.js +0 -54
  1283. package/src/types/PopoverPlacementType.js +0 -54
  1284. package/src/types/PopoverVerticalAlign.js +0 -54
  1285. package/src/types/Priority.js +0 -55
  1286. package/src/types/SemanticColor.js +0 -61
  1287. package/src/types/SwitchDesign.js +0 -40
  1288. package/src/types/TabContainerTabsPlacement.js +0 -40
  1289. package/src/types/TabLayout.js +0 -40
  1290. package/src/types/TableGrowingMode.js +0 -48
  1291. package/src/types/TableMode.js +0 -47
  1292. package/src/types/TableRowType.js +0 -40
  1293. package/src/types/TabsOverflowMode.js +0 -40
  1294. package/src/types/ToastPlacement.js +0 -91
  1295. package/src/types/WrappingType.js +0 -41
package/src/Input.js DELETED
@@ -1,1679 +0,0 @@
1
- import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
- import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
- import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
4
- import {
5
- isIE,
6
- isPhone,
7
- isSafari,
8
- isAndroid,
9
- } from "@ui5/webcomponents-base/dist/Device.js";
10
- import ValueState from "@ui5/webcomponents-base/dist/types/ValueState.js";
11
- import { getFeature } from "@ui5/webcomponents-base/dist/FeaturesRegistry.js";
12
- import {
13
- isUp,
14
- isDown,
15
- isSpace,
16
- isEnter,
17
- isBackSpace,
18
- isDelete,
19
- isEscape,
20
- isTabNext,
21
- isPageUp,
22
- isPageDown,
23
- isHome,
24
- isEnd,
25
- } from "@ui5/webcomponents-base/dist/Keys.js";
26
- import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
27
- import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
28
- import { getEffectiveAriaLabelText } from "@ui5/webcomponents-base/dist/util/AriaLabelHelper.js";
29
- import { getCaretPosition, setCaretPosition } from "@ui5/webcomponents-base/dist/util/Caret.js";
30
- import getActiveElement from "@ui5/webcomponents-base/dist/util/getActiveElement.js";
31
- import "@ui5/webcomponents-icons/dist/decline.js";
32
- import "@ui5/webcomponents-icons/dist/not-editable.js";
33
- import "@ui5/webcomponents-icons/dist/error.js";
34
- import "@ui5/webcomponents-icons/dist/alert.js";
35
- import "@ui5/webcomponents-icons/dist/sys-enter-2.js";
36
- import "@ui5/webcomponents-icons/dist/information.js";
37
- import InputType from "./types/InputType.js";
38
- import Popover from "./Popover.js";
39
- import Icon from "./Icon.js";
40
- // Templates
41
- import InputTemplate from "./generated/templates/InputTemplate.lit.js";
42
- import InputPopoverTemplate from "./generated/templates/InputPopoverTemplate.lit.js";
43
- import * as Filters from "./Filters.js";
44
-
45
- import {
46
- VALUE_STATE_SUCCESS,
47
- VALUE_STATE_INFORMATION,
48
- VALUE_STATE_ERROR,
49
- VALUE_STATE_WARNING,
50
- INPUT_SUGGESTIONS,
51
- INPUT_SUGGESTIONS_TITLE,
52
- INPUT_SUGGESTIONS_ONE_HIT,
53
- INPUT_SUGGESTIONS_MORE_HITS,
54
- INPUT_SUGGESTIONS_NO_HIT,
55
- } from "./generated/i18n/i18n-defaults.js";
56
-
57
- // Styles
58
- import styles from "./generated/themes/Input.css.js";
59
- import ResponsivePopoverCommonCss from "./generated/themes/ResponsivePopoverCommon.css.js";
60
- import ValueStateMessageCss from "./generated/themes/ValueStateMessage.css.js";
61
- import SuggestionsCss from "./generated/themes/Suggestions.css.js";
62
-
63
- const rgxFloat = new RegExp(/(\+|-)?\d+(\.|,)\d+/);
64
-
65
- /**
66
- * @public
67
- */
68
- const metadata = {
69
- tag: "ui5-input",
70
- languageAware: true,
71
- managedSlots: true,
72
- slots: /** @lends sap.ui.webcomponents.main.Input.prototype */ {
73
-
74
- /**
75
- * Defines the icon to be displayed in the component.
76
- *
77
- * @type {sap.ui.webcomponents.main.IIcon[]}
78
- * @slot
79
- * @public
80
- */
81
- icon: {
82
- type: HTMLElement,
83
- },
84
-
85
- /**
86
- * Defines the suggestion items.
87
- * <br><br>
88
- * Example:
89
- * <br><br>
90
- * &lt;ui5-input show-suggestions><br>
91
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;ui5-suggestion-item text="Item #1">&lt;/ui5-suggestion-item><br>
92
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;ui5-suggestion-item text="Item #2">&lt;/ui5-suggestion-item><br>
93
- * &lt;/ui5-input>
94
- * <br>
95
- * <ui5-input show-suggestions>
96
- * <ui5-suggestion-group-item text="Group #1"></ui5-suggestion-group-item>
97
- * <ui5-suggestion-item text="Item #1"></ui5-suggestion-item>
98
- * <ui5-suggestion-item text="Item #2"></ui5-suggestion-item>
99
- * <ui5-suggestion-group-item text="Group #2"></ui5-suggestion-group-item>
100
- * <ui5-suggestion-item text="Item #3"></ui5-suggestion-item>
101
- * <ui5-suggestion-item text="Item #4"></ui5-suggestion-item>
102
- * </ui5-input>
103
- * <br><br>
104
- * <b>Note:</b> The suggestions would be displayed only if the <code>showSuggestions</code>
105
- * property is set to <code>true</code>.
106
- * <br><br>
107
- * <b>Note:</b> The <code>&lt;ui5-suggestion-item&gt;</code> and <code>&lt;ui5-suggestion-group-item&gt;</code> are recommended to be used as suggestion items.
108
- * <br><br>
109
- * <b>Note:</b> Importing the Input Suggestions Support feature:
110
- * <br>
111
- * <code>import "@ui5/webcomponents/dist/features/InputSuggestions.js";</code>
112
- * <br>
113
- * automatically imports the <code>&lt;ui5-suggestion-item></code> and <code>&lt;ui5-suggestion-group-item></code> for your convenience.
114
- *
115
- * @type {sap.ui.webcomponents.main.IInputSuggestionItem[]}
116
- * @slot suggestionItems
117
- * @public
118
- */
119
- "default": {
120
- propertyName: "suggestionItems",
121
- type: HTMLElement,
122
- },
123
-
124
- /**
125
- * The slot is used for native <code>input</code> HTML element to enable form submit,
126
- * when <code>name</code> property is set.
127
- * @type {HTMLElement[]}
128
- * @private
129
- */
130
- formSupport: {
131
- type: HTMLElement,
132
- },
133
-
134
- /**
135
- * Defines the value state message that will be displayed as pop up under the component.
136
- * <br><br>
137
- *
138
- * <b>Note:</b> If not specified, a default text (in the respective language) will be displayed.
139
- * <br><br>
140
- * <b>Note:</b> The <code>valueStateMessage</code> would be displayed,
141
- * when the component is in <code>Information</code>, <code>Warning</code> or <code>Error</code> value state.
142
- * <br><br>
143
- * <b>Note:</b> If the component has <code>suggestionItems</code>,
144
- * the <code>valueStateMessage</code> would be displayed as part of the same popover, if used on desktop, or dialog - on phone.
145
- * @type {HTMLElement[]}
146
- * @since 1.0.0-rc.6
147
- * @slot
148
- * @public
149
- */
150
- valueStateMessage: {
151
- type: HTMLElement,
152
- },
153
- },
154
- properties: /** @lends sap.ui.webcomponents.main.Input.prototype */ {
155
-
156
- /**
157
- * Defines whether the component is in disabled state.
158
- * <br><br>
159
- * <b>Note:</b> A disabled component is completely noninteractive.
160
- *
161
- * @type {boolean}
162
- * @defaultvalue false
163
- * @public
164
- */
165
- disabled: {
166
- type: Boolean,
167
- },
168
-
169
- /**
170
- * Defines if characters within the suggestions are to be highlighted
171
- * in case the input value matches parts of the suggestions text.
172
- * <br><br>
173
- * <b>Note:</b> takes effect when <code>showSuggestions</code> is set to <code>true</code>
174
- *
175
- * @type {boolean}
176
- * @defaultvalue false
177
- * @private
178
- * @sicne 1.0.0-rc.8
179
- */
180
- highlight: {
181
- type: Boolean,
182
- },
183
-
184
- /**
185
- * Defines a short hint intended to aid the user with data entry when the
186
- * component has no value.
187
- * @type {string}
188
- * @defaultvalue ""
189
- * @public
190
- */
191
- placeholder: {
192
- type: String,
193
- },
194
-
195
- /**
196
- * Defines whether the component is read-only.
197
- * <br><br>
198
- * <b>Note:</b> A read-only component is not editable,
199
- * but still provides visual feedback upon user interaction.
200
- *
201
- * @type {boolean}
202
- * @defaultvalue false
203
- * @public
204
- */
205
- readonly: {
206
- type: Boolean,
207
- },
208
-
209
- /**
210
- * Defines whether the component is required.
211
- *
212
- * @type {boolean}
213
- * @defaultvalue false
214
- * @public
215
- * @since 1.0.0-rc.3
216
- */
217
- required: {
218
- type: Boolean,
219
- },
220
-
221
- /**
222
- * Defines whether the value will be autcompleted to match an item
223
- *
224
- * @type {boolean}
225
- * @defaultvalue false
226
- * @public
227
- * @since 1.4.0
228
- */
229
- noTypeahead: {
230
- type: Boolean,
231
- },
232
-
233
- /**
234
- * Defines the HTML type of the component.
235
- * Available options are: <code>Text</code>, <code>Email</code>,
236
- * <code>Number</code>, <code>Password</code>, <code>Tel</code>, and <code>URL</code>.
237
- * <br><br>
238
- * <b>Notes:</b>
239
- * <ul>
240
- * <li>The particular effect of this property differs depending on the browser
241
- * and the current language settings, especially for type <code>Number</code>.</li>
242
- * <li>The property is mostly intended to be used with touch devices
243
- * that use different soft keyboard layouts depending on the given input type.</li>
244
- * </ul>
245
- *
246
- * @type {InputType}
247
- * @defaultvalue "Text"
248
- * @public
249
- */
250
- type: {
251
- type: InputType,
252
- defaultValue: InputType.Text,
253
- },
254
-
255
- /**
256
- * Defines the value of the component.
257
- * <br><br>
258
- * <b>Note:</b> The property is updated upon typing.
259
- *
260
- * @type {string}
261
- * @defaultvalue ""
262
- * @public
263
- */
264
- value: {
265
- type: String,
266
- },
267
-
268
- /**
269
- * Defines the value state of the component.
270
- * <br><br>
271
- * Available options are:
272
- * <ul>
273
- * <li><code>None</code></li>
274
- * <li><code>Error</code></li>
275
- * <li><code>Warning</code></li>
276
- * <li><code>Success</code></li>
277
- * <li><code>Information</code></li>
278
- * </ul>
279
- *
280
- * @type {ValueState}
281
- * @defaultvalue "None"
282
- * @public
283
- */
284
- valueState: {
285
- type: ValueState,
286
- defaultValue: ValueState.None,
287
- },
288
-
289
- /**
290
- * Determines the name with which the component will be submitted in an HTML form.
291
- *
292
- * <br><br>
293
- * <b>Important:</b> For the <code>name</code> property to have effect, you must add the following import to your project:
294
- * <code>import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";</code>
295
- *
296
- * <br><br>
297
- * <b>Note:</b> When set, a native <code>input</code> HTML element
298
- * will be created inside the component so that it can be submitted as
299
- * part of an HTML form. Do not use this property unless you need to submit a form.
300
- *
301
- * @type {string}
302
- * @defaultvalue ""
303
- * @public
304
- */
305
- name: {
306
- type: String,
307
- },
308
-
309
- /**
310
- * Defines whether the component should show suggestions, if such are present.
311
- * <br><br>
312
- * <b>Note:</b> You need to import the <code>InputSuggestions</code> module
313
- * from <code>"@ui5/webcomponents/dist/features/InputSuggestions.js"</code> to enable this functionality.
314
- * @type {boolean}
315
- * @defaultvalue false
316
- * @public
317
- */
318
- showSuggestions: {
319
- type: Boolean,
320
- },
321
-
322
- /**
323
- * Sets the maximum number of characters available in the input field.
324
- * <br><br>
325
- * <b>Note:</b> This property is not compatible with the ui5-input type InputType.Number. If the ui5-input type is set to Number, the maxlength value is ignored.
326
- * @type {Integer}
327
- * @since 1.0.0-rc.5
328
- * @public
329
- */
330
- maxlength: {
331
- type: Integer,
332
- },
333
-
334
- /**
335
- * Defines the accessible aria name of the component.
336
- *
337
- * @type {string}
338
- * @public
339
- * @since 1.0.0-rc.15
340
- */
341
- accessibleName: {
342
- type: String,
343
- },
344
-
345
- /**
346
- * Receives id(or many ids) of the elements that label the input.
347
- *
348
- * @type {string}
349
- * @defaultvalue ""
350
- * @public
351
- * @since 1.0.0-rc.15
352
- */
353
- accessibleNameRef: {
354
- type: String,
355
- defaultValue: "",
356
- },
357
-
358
- /**
359
- * Defines whether the clear icon of the input will be shown.
360
- *
361
- * @type {boolean}
362
- * @defaultvalue false
363
- * @public
364
- * @since 1.2.0
365
- */
366
- showClearIcon: {
367
- type: Boolean,
368
- },
369
-
370
- /**
371
- * Defines whether the clear icon is visible.
372
- *
373
- * @type {boolean}
374
- * @defaultvalue false
375
- * @private
376
- * @since 1.2.0
377
- */
378
- effectiveShowClearIcon: {
379
- type: Boolean,
380
- },
381
-
382
- /**
383
- * @private
384
- */
385
- focused: {
386
- type: Boolean,
387
- },
388
-
389
- openOnMobile: {
390
- type: Boolean,
391
- },
392
-
393
- open: {
394
- type: Boolean,
395
- },
396
-
397
- /**
398
- * Determines whether to manually show the suggestions popover
399
- * @private
400
- */
401
- _forceOpen: {
402
- type: Boolean,
403
- },
404
-
405
- /**
406
- * Indicates whether the visual focus is on the value state header
407
- * @private
408
- */
409
- _isValueStateFocused: {
410
- type: Boolean,
411
- },
412
-
413
- _input: {
414
- type: Object,
415
- },
416
-
417
- _inputAccInfo: {
418
- type: Object,
419
- },
420
-
421
- _nativeInputAttributes: {
422
- type: Object,
423
- },
424
-
425
- _inputWidth: {
426
- type: Integer,
427
- },
428
-
429
- _listWidth: {
430
- type: Integer,
431
- },
432
-
433
- _isPopoverOpen: {
434
- type: Boolean,
435
- noAttribute: true,
436
- },
437
-
438
- _inputIconFocused: {
439
- type: Boolean,
440
- noAttribute: true,
441
- },
442
- },
443
- events: /** @lends sap.ui.webcomponents.main.Input.prototype */ {
444
- /**
445
- * Fired when the input operation has finished by pressing Enter or on focusout.
446
- *
447
- * @event
448
- * @public
449
- */
450
- change: {},
451
-
452
- /**
453
- * Fired when the value of the component changes at each keystroke,
454
- * and when a suggestion item has been selected.
455
- *
456
- * @event
457
- * @public
458
- */
459
- input: {},
460
-
461
- /**
462
- * Fired when a suggestion item, that is displayed in the suggestion popup, is selected.
463
- *
464
- * @event sap.ui.webcomponents.main.Input#suggestion-item-select
465
- * @param {HTMLElement} item The selected item.
466
- * @public
467
- */
468
- "suggestion-item-select": {
469
- detail: {
470
- item: { type: HTMLElement },
471
- },
472
- },
473
-
474
- /**
475
- * Fired when the user navigates to a suggestion item via the ARROW keys,
476
- * as a preview, before the final selection.
477
- *
478
- * @event sap.ui.webcomponents.main.Input#suggestion-item-preview
479
- * @param {HTMLElement} item The previewed suggestion item.
480
- * @param {HTMLElement} targetRef The DOM ref of the suggestion item.
481
- * @public
482
- * @since 1.0.0-rc.8
483
- */
484
- "suggestion-item-preview": {
485
- detail: {
486
- item: { type: HTMLElement },
487
- targetRef: { type: HTMLElement },
488
- },
489
- },
490
-
491
- /**
492
- * Fired when the user scrolls the suggestion popover.
493
- *
494
- * @event sap.ui.webcomponents.main.Input#suggestion-scroll
495
- * @param {Integer} scrollTop The current scroll position.
496
- * @param {HTMLElement} scrollContainer The scroll container.
497
- * @protected
498
- * @since 1.0.0-rc.8
499
- */
500
- "suggestion-scroll": {
501
- detail: {
502
- scrollTop: { type: Integer },
503
- scrollContainer: { type: HTMLElement },
504
- },
505
- },
506
- },
507
- };
508
-
509
- /**
510
- * @class
511
- * <h3 class="comment-api-title">Overview</h3>
512
- *
513
- * The <code>ui5-input</code> component allows the user to enter and edit text or numeric values in one line.
514
- * <br>
515
- * Additionally, you can provide <code>suggestionItems</code>,
516
- * that are displayed in a popover right under the input.
517
- * <br><br>
518
- * The text field can be editable or read-only (<code>readonly</code> property),
519
- * and it can be enabled or disabled (<code>disabled</code> property).
520
- * To visualize semantic states, such as "error" or "warning", the <code>valueState</code> property is provided.
521
- * When the user makes changes to the text, the change event is fired,
522
- * which enables you to react on any text change.
523
- * <br><br>
524
- * <b>Note:</b> If you are using the <code>ui5-input</code> as a single npm module,
525
- * don't forget to import the <code>InputSuggestions</code> module from
526
- * "@ui5/webcomponents/dist/features/InputSuggestions.js"
527
- * to enable the suggestions functionality.
528
- *
529
- * <h3>Keyboard Handling</h3>
530
- * The <code>ui5-input</code> provides the following keyboard shortcuts:
531
- * <br>
532
- *
533
- * <ul>
534
- * <li>[ESC] - 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.</li>
535
- * <li>[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.</li>
536
- * <li>[DOWN] - Focuses the next matching item in the suggestion list.</li>
537
- * <li>[UP] - Focuses the previous matching item in the suggestion list.</li>
538
- * <li>[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.</li>
539
- * <li>[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.</li>
540
- * <li>[PAGEUP] - If focus is in the list, moves highlight up by page size (10 items by default). If focus is in the input, does nothing.</li>
541
- * <li>[PAGEDOWN] - If focus is in the list, moves highlight down by page size (10 items by default). If focus is in the input, does nothing.</li>
542
- * </ul>
543
- *
544
- * <h3>ES6 Module Import</h3>
545
- *
546
- * <code>import "@ui5/webcomponents/dist/Input.js";</code>
547
- * <br>
548
- * <code>import "@ui5/webcomponents/dist/features/InputSuggestions.js";</code> (optional - for input suggestions support)
549
- *
550
- * @constructor
551
- * @author SAP SE
552
- * @alias sap.ui.webcomponents.main.Input
553
- * @extends sap.ui.webcomponents.base.UI5Element
554
- * @tagname ui5-input
555
- * @appenddocs SuggestionItem SuggestionGroupItem
556
- * @implements sap.ui.webcomponents.main.IInput
557
- * @public
558
- */
559
- class Input extends UI5Element {
560
- static get metadata() {
561
- return metadata;
562
- }
563
-
564
- static get render() {
565
- return litRender;
566
- }
567
-
568
- static get template() {
569
- return InputTemplate;
570
- }
571
-
572
- static get staticAreaTemplate() {
573
- return InputPopoverTemplate;
574
- }
575
-
576
- static get styles() {
577
- return styles;
578
- }
579
-
580
- static get staticAreaStyles() {
581
- return [ResponsivePopoverCommonCss, ValueStateMessageCss, SuggestionsCss];
582
- }
583
-
584
- constructor() {
585
- super();
586
- // Indicates if there is selected suggestionItem.
587
- this.hasSuggestionItemSelected = false;
588
-
589
- // Represents the value before user moves selection from suggestion item to another
590
- // and its value is updated after each move.
591
- // Note: Used to register and fire "input" event upon [SPACE] or [ENTER].
592
- // Note: The property "value" is updated upon selection move and can`t be used.
593
- this.valueBeforeItemSelection = "";
594
-
595
- // Represents the value before user moves selection between the suggestion items
596
- // and its value remains the same when the user navigates up or down the list.
597
- // Note: Used to cancel selection upon [ESC].
598
- this.valueBeforeItemPreview = "";
599
-
600
- // Indicates if the user selection has been canceled with [ESC].
601
- this.suggestionSelectionCanceled = false;
602
-
603
- // Indicates if the change event has already been fired
604
- this._changeFiredValue = null;
605
-
606
- // tracks the value between focus in and focus out to detect that change event should be fired.
607
- this.previousValue = undefined;
608
-
609
- // Indicates, if the component is rendering for first time.
610
- this.firstRendering = true;
611
-
612
- // The value that should be highlited.
613
- this.highlightValue = "";
614
-
615
- // The last value confirmed by the user with "ENTER"
616
- this.lastConfirmedValue = "";
617
-
618
- // The value that the user is typed in the input
619
- this.valueBeforeAutoComplete = "";
620
-
621
- // Indicates, if the user pressed the BACKSPACE key.
622
- this._backspaceKeyDown = false;
623
-
624
- // Indicates, if the user is typing. Gets reset once popup is closed
625
- this.isTyping = false;
626
-
627
- // all sementic events
628
- this.EVENT_CHANGE = "change";
629
- this.EVENT_INPUT = "input";
630
- this.EVENT_SUGGESTION_ITEM_SELECT = "suggestion-item-select";
631
-
632
- // all user interactions
633
- this.ACTION_ENTER = "enter";
634
- this.ACTION_USER_INPUT = "input";
635
-
636
- // Suggestions array initialization
637
- this.suggestionsTexts = [];
638
-
639
- this._handleResizeBound = this._handleResize.bind(this);
640
- }
641
-
642
- onEnterDOM() {
643
- ResizeHandler.register(this, this._handleResizeBound);
644
- }
645
-
646
- onExitDOM() {
647
- ResizeHandler.deregister(this, this._handleResizeBound);
648
- }
649
-
650
- onBeforeRendering() {
651
- if (this.showSuggestions) {
652
- this.enableSuggestions();
653
- this.suggestionsTexts = this.Suggestions.defaultSlotProperties(this.highlightValue);
654
- }
655
-
656
- this.effectiveShowClearIcon = (this.showClearIcon && !!this.value && !this.readonly && !this.disabled);
657
-
658
- this.FormSupport = getFeature("FormSupport");
659
- const hasItems = this.suggestionItems.length;
660
- const hasValue = !!this.value;
661
- const isFocused = this.shadowRoot.querySelector("input") === getActiveElement();
662
-
663
- if (this._isPhone) {
664
- this.open = this.openOnMobile;
665
- } else if (this._forceOpen) {
666
- this.open = true;
667
- } else {
668
- this.open = hasValue && hasItems && isFocused && this.isTyping;
669
- }
670
-
671
- if (this.FormSupport) {
672
- this.FormSupport.syncNativeHiddenInput(this);
673
- } else if (this.name) {
674
- console.warn(`In order for the "name" property to have effect, you should also: import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";`); // eslint-disable-line
675
- }
676
-
677
- const value = this.value;
678
- const innerInput = this.getInputDOMRefSync();
679
-
680
- if (!innerInput || !value) {
681
- return;
682
- }
683
-
684
- const autoCompletedChars = innerInput.selectionEnd - innerInput.selectionStart;
685
-
686
- // Typehead causes issues on Android devices, so we disable it for now
687
- // If there is already a selection the autocomplete has already been performed
688
- if (this._shouldAutocomplete && !isAndroid() && !autoCompletedChars && !this._isKeyNavigation) {
689
- const item = this._getFirstMatchingItem(value);
690
-
691
- // Keep the original typed in text intact
692
- this.valueBeforeAutoComplete += value.slice(this.valueBeforeAutoComplete.length, value.length);
693
- this._handleTypeAhead(item, value);
694
- }
695
- }
696
-
697
- async onAfterRendering() {
698
- if (this.Suggestions && this.showSuggestions) {
699
- this.Suggestions.toggle(this.open, {
700
- preventFocusRestore: true,
701
- });
702
-
703
- this._listWidth = await this.Suggestions._getListWidth();
704
- }
705
-
706
- if (this.shouldDisplayOnlyValueStateMessage) {
707
- this.openPopover();
708
- } else {
709
- this.closePopover();
710
- }
711
- }
712
-
713
- _onkeydown(event) {
714
- this._isKeyNavigation = true;
715
- this._shouldAutocomplete = !this.noTypeahead && !(isBackSpace(event) || isDelete(event) || isEscape(event));
716
-
717
- if (isUp(event)) {
718
- return this._handleUp(event);
719
- }
720
-
721
- if (isDown(event)) {
722
- return this._handleDown(event);
723
- }
724
-
725
- if (isSpace(event)) {
726
- return this._handleSpace(event);
727
- }
728
-
729
- if (isTabNext(event)) {
730
- return this._handleTab(event);
731
- }
732
-
733
- if (isEnter(event)) {
734
- return this._handleEnter(event);
735
- }
736
-
737
- if (isPageUp(event)) {
738
- return this._handlePageUp(event);
739
- }
740
-
741
- if (isPageDown(event)) {
742
- return this._handlePageDown(event);
743
- }
744
-
745
- if (isHome(event)) {
746
- return this._handleHome(event);
747
- }
748
-
749
- if (isEnd(event)) {
750
- return this._handleEnd(event);
751
- }
752
-
753
- if (isEscape(event)) {
754
- return this._handleEscape(event);
755
- }
756
-
757
- if (isBackSpace(event)) {
758
- this._backspaceKeyDown = true;
759
- this._selectedText = window.getSelection().toString();
760
- }
761
-
762
- if (this.showSuggestions) {
763
- this._clearPopoverFocusAndSelection();
764
- }
765
-
766
- this._keyDown = true;
767
- this._isKeyNavigation = false;
768
- }
769
-
770
- _onkeyup(event) {
771
- // The native Delete event does not update the value property "on time". So, the (native) change event is always fired with the old value
772
- if (isDelete(event)) {
773
- this.value = event.target.value;
774
- }
775
-
776
- this._keyDown = false;
777
- this._backspaceKeyDown = false;
778
- }
779
-
780
- /* Event handling */
781
- _handleUp(event) {
782
- if (this.Suggestions && this.Suggestions.isOpened()) {
783
- this.Suggestions.onUp(event);
784
- }
785
- }
786
-
787
- _handleDown(event) {
788
- if (this.Suggestions && this.Suggestions.isOpened()) {
789
- this.Suggestions.onDown(event);
790
- }
791
- }
792
-
793
- _handleSpace(event) {
794
- if (this.Suggestions) {
795
- this.Suggestions.onSpace(event);
796
- }
797
- }
798
-
799
- _handleTab(event) {
800
- if (this.Suggestions && (this.previousValue !== this.value)) {
801
- this.Suggestions.onTab(event);
802
- }
803
- }
804
-
805
- _handleEnter(event) {
806
- const itemPressed = !!(this.Suggestions && this.Suggestions.onEnter(event));
807
-
808
- // Check for autocompleted item
809
- const matchingItem = this.suggestionItems.find(item => {
810
- return (item.text && item.text === this.value) || (item.textContent === this.value);
811
- });
812
-
813
- if (matchingItem) {
814
- const itemText = matchingItem.text ? matchingItem.text : matchingItem.textContent;
815
-
816
- this.getInputDOMRefSync().setSelectionRange(itemText.length, itemText.length);
817
- if (!itemPressed) {
818
- this.selectSuggestion(matchingItem, true);
819
- this.open = false;
820
- }
821
- }
822
-
823
- if (!itemPressed) {
824
- this.fireEventByAction(this.ACTION_ENTER);
825
- this.lastConfirmedValue = this.value;
826
-
827
- if (this.FormSupport) {
828
- this.FormSupport.triggerFormSubmit(this);
829
- }
830
-
831
- return;
832
- }
833
-
834
- this.focused = true;
835
- }
836
-
837
- _handlePageUp(event) {
838
- if (this._isSuggestionsFocused) {
839
- this.Suggestions.onPageUp(event);
840
- } else {
841
- event.preventDefault();
842
- }
843
- }
844
-
845
- _handlePageDown(event) {
846
- if (this._isSuggestionsFocused) {
847
- this.Suggestions.onPageDown(event);
848
- } else {
849
- event.preventDefault();
850
- }
851
- }
852
-
853
- _handleHome(event) {
854
- if (this._isSuggestionsFocused) {
855
- this.Suggestions.onHome(event);
856
- }
857
- }
858
-
859
- _handleEnd(event) {
860
- if (this._isSuggestionsFocused) {
861
- this.Suggestions.onEnd(event);
862
- }
863
- }
864
-
865
- _handleEscape() {
866
- const hasSuggestions = this.showSuggestions && !!this.Suggestions;
867
- const isOpen = hasSuggestions && this.open;
868
- const innerInput = this.getInputDOMRefSync();
869
- const isAutoCompleted = innerInput.selectionEnd - innerInput.selectionStart > 0;
870
-
871
- if (!isOpen) {
872
- this.value = this.lastConfirmedValue ? this.lastConfirmedValue : this.previousValue;
873
- return;
874
- }
875
-
876
- if (hasSuggestions && isOpen && this.Suggestions._isItemOnTarget()) {
877
- // Restore the value.
878
- this.value = this.valueBeforeAutoComplete || this.valueBeforeItemPreview;
879
-
880
- // Mark that the selection has been canceled, so the popover can close
881
- // and not reopen, due to receiving focus.
882
- this.suggestionSelectionCanceled = true;
883
- this.focused = true;
884
-
885
- return;
886
- }
887
-
888
- if (isAutoCompleted) {
889
- this.value = this.valueBeforeAutoComplete;
890
- }
891
-
892
- if (this._isValueStateFocused) {
893
- this._isValueStateFocused = false;
894
- this.focused = true;
895
- }
896
- }
897
-
898
- async _onfocusin(event) {
899
- await this.getInputDOMRef();
900
-
901
- this.valueBeforeAutoComplete = "";
902
- this.focused = true; // invalidating property
903
- this.previousValue = this.value;
904
- this.valueBeforeItemPreview = this.value;
905
- this._shouldAutocomplete = false;
906
-
907
- this._inputIconFocused = event.target && event.target === this.querySelector("[ui5-icon]");
908
- }
909
-
910
- _onfocusout(event) {
911
- const focusedOutToSuggestions = this.Suggestions && event.relatedTarget && event.relatedTarget.shadowRoot && event.relatedTarget.shadowRoot.contains(this.Suggestions.responsivePopover);
912
- const focusedOutToValueStateMessage = event.relatedTarget && event.relatedTarget.shadowRoot && event.relatedTarget.shadowRoot.querySelector(".ui5-valuestatemessage-root");
913
-
914
- this._preventNextChange = this.effectiveShowClearIcon && this.shadowRoot.contains(event.relatedTarget);
915
-
916
- // if focusout is triggered by pressing on suggestion item or value state message popover, skip invalidation, because re-rendering
917
- // will happen before "itemPress" event, which will make item "active" state not visualized
918
- if (focusedOutToSuggestions || focusedOutToValueStateMessage) {
919
- event.stopImmediatePropagation();
920
- return;
921
- }
922
-
923
- const toBeFocused = event.relatedTarget;
924
-
925
- if (toBeFocused && toBeFocused.classList.contains(this._id)) {
926
- return;
927
- }
928
-
929
- this.open = false;
930
- this._clearPopoverFocusAndSelection();
931
-
932
- this.previousValue = "";
933
- this.lastConfirmedValue = "";
934
- this.focused = false; // invalidating property
935
- this.isTyping = false;
936
- this._forceOpen = false;
937
- }
938
-
939
- _clearPopoverFocusAndSelection() {
940
- if (!this.showSuggestions || !this.Suggestions) {
941
- return;
942
- }
943
-
944
- this._isValueStateFocused = false;
945
- this.hasSuggestionItemSelected = false;
946
-
947
- this.Suggestions._deselectItems();
948
- this.Suggestions._clearItemFocus();
949
- }
950
-
951
- _click(event) {
952
- if (isPhone() && !this.readonly && this.Suggestions) {
953
- this.blur();
954
- this.openOnMobile = true;
955
- }
956
- }
957
-
958
- _handleNativeInputChange() {
959
- // The native change sometimes fires too early and getting input's value in the listener would return
960
- // the previous value instead of the most recent one. This would make things consistent.
961
- clearTimeout(this._nativeChangeDebounce);
962
- this._nativeChangeDebounce = setTimeout(() => this._handleChange(), 100);
963
- }
964
-
965
- _handleChange() {
966
- if (this._preventNextChange) {
967
- this._preventNextChange = false;
968
- return;
969
- }
970
-
971
- if (this._changeFiredValue !== this.value) {
972
- this._changeFiredValue = this.value;
973
- this.fireEvent(this.EVENT_CHANGE);
974
- }
975
- }
976
-
977
- _clear() {
978
- this.value = "";
979
- this.fireEvent(this.EVENT_INPUT);
980
- this._handleChange();
981
-
982
- if (!this._isPhone) {
983
- this.focus();
984
- }
985
- }
986
-
987
- _scroll(event) {
988
- const detail = event.detail;
989
- this.fireEvent("suggestion-scroll", {
990
- scrollTop: detail.scrollTop,
991
- scrollContainer: detail.targetRef,
992
- });
993
- }
994
-
995
- _handleInput(event) {
996
- const inputDomRef = this.getInputDOMRefSync();
997
- const emptyValueFiredOnNumberInput = this.value && this.isTypeNumber && !inputDomRef.value;
998
-
999
- this.suggestionSelectionCanceled = false;
1000
-
1001
- if (emptyValueFiredOnNumberInput && !this._backspaceKeyDown) {
1002
- // For input with type="Number", if the delimiter is entered second time,
1003
- // the inner input is firing event with empty value
1004
- return;
1005
- }
1006
-
1007
- if (emptyValueFiredOnNumberInput && this._backspaceKeyDown) {
1008
- // Issue: when the user removes the character(s) after the delimeter of numeric Input,
1009
- // the native input is firing event with an empty value and we have to manually handle this case,
1010
- // otherwise the entire input will be cleared as we sync the "value".
1011
-
1012
- // There are tree scenarios:
1013
- // Example: type "123.4" and press BACKSPACE - the native input is firing event with empty value.
1014
- // Example: type "123.456", select/mark "456" and press BACKSPACE - the native input is firing event with empty value.
1015
- // Example: type "123.456", select/mark "123.456" and press BACKSPACE - the native input is firing event with empty value,
1016
- // but this time that's really the case.
1017
-
1018
- // Perform manual handling in case of floating number
1019
- // and if the user did not select the entire input value
1020
- if (this._selectedText.indexOf(",") > -1) {
1021
- this._selectedText = this._selectedText.replace(",", ".");
1022
- }
1023
-
1024
- if (rgxFloat.test(this.value) && this._selectedText !== this.value) {
1025
- const newValue = this.removeFractionalPart(this.value);
1026
-
1027
- // update state
1028
- this.value = newValue;
1029
- this.highlightValue = newValue;
1030
- this.valueBeforeItemPreview = newValue;
1031
-
1032
- // fire events
1033
- this.fireEvent(this.EVENT_INPUT);
1034
- this.fireEvent("value-changed");
1035
- return;
1036
- }
1037
- }
1038
-
1039
- if (event.target === inputDomRef) {
1040
- this.focused = true;
1041
-
1042
- // stop the native event, as the semantic "input" would be fired.
1043
- event.stopImmediatePropagation();
1044
- }
1045
-
1046
- /* skip calling change event when an input with a placeholder is focused on IE
1047
- - value of the host and the internal input should be differnt in case of actual input
1048
- - input is called when a key is pressed => keyup should not be called yet
1049
- */
1050
- const skipFiring = (inputDomRef.value === this.value) && isIE() && !this._keyDown && !!this.placeholder;
1051
-
1052
- !skipFiring && this.fireEventByAction(this.ACTION_USER_INPUT);
1053
-
1054
- this.hasSuggestionItemSelected = false;
1055
- this._isValueStateFocused = false;
1056
-
1057
- if (this.Suggestions) {
1058
- this.Suggestions.updateSelectedItemPosition(null);
1059
- }
1060
-
1061
- this.isTyping = true;
1062
- }
1063
-
1064
- _startsWithMatchingItems(str) {
1065
- const textProp = this.suggestionItems[0].text ? "text" : "textContent";
1066
- return Filters.StartsWith(str, this.suggestionItems, textProp);
1067
- }
1068
-
1069
- _getFirstMatchingItem(current) {
1070
- if (!this.suggestionItems.length) {
1071
- return;
1072
- }
1073
-
1074
- const matchingItems = this._startsWithMatchingItems(current).filter(item => !item.groupItem);
1075
-
1076
- if (matchingItems.length) {
1077
- return matchingItems[0];
1078
- }
1079
- }
1080
-
1081
- _handleTypeAhead(item, filterValue) {
1082
- if (!item) {
1083
- return;
1084
- }
1085
-
1086
- const value = item.text ? item.text : item.textContent || "";
1087
- const innerInput = this.getInputDOMRefSync();
1088
-
1089
- filterValue = filterValue || "";
1090
- this.value = value;
1091
-
1092
- innerInput.value = value;
1093
- innerInput.setSelectionRange(filterValue.length, value.length);
1094
- }
1095
-
1096
- _handleResize() {
1097
- this._inputWidth = this.offsetWidth;
1098
- }
1099
-
1100
- _closeRespPopover(preventFocusRestore) {
1101
- this.Suggestions.close(preventFocusRestore);
1102
- }
1103
-
1104
- async _afterOpenPopover() {
1105
- // Set initial focus to the native input
1106
- if (isPhone()) {
1107
- (await this.getInputDOMRef()).focus();
1108
- }
1109
- }
1110
-
1111
- _afterClosePopover() {
1112
- this.announceSelectedItem();
1113
-
1114
- // close device's keyboard and prevent further typing
1115
- if (isPhone()) {
1116
- this.blur();
1117
- this.focused = false;
1118
- }
1119
-
1120
- this.isTyping = false;
1121
- this.openOnMobile = false;
1122
- this.open = false;
1123
- this._forceOpen = false;
1124
- }
1125
-
1126
- /**
1127
- * Checks if the value state popover is open.
1128
- * @returns {boolean} true if the value state popover is open, false otherwise
1129
- */
1130
- isValueStateOpened() {
1131
- return !!this._isPopoverOpen;
1132
- }
1133
-
1134
- async openPopover() {
1135
- const popover = await this._getPopover();
1136
-
1137
- if (popover) {
1138
- this._isPopoverOpen = true;
1139
- popover.showAt(this);
1140
- }
1141
- }
1142
-
1143
- async closePopover() {
1144
- const popover = await this._getPopover();
1145
-
1146
- popover && popover.close();
1147
- }
1148
-
1149
- async _getPopover() {
1150
- const staticAreaItem = await this.getStaticAreaItemDomRef();
1151
- return staticAreaItem && staticAreaItem.querySelector("[ui5-popover]");
1152
- }
1153
-
1154
- /**
1155
- * Manually opens the suggestions popover, assuming suggestions are enabled. Items must be preloaded for it to open.
1156
- * @since 1.3.0
1157
- * @public
1158
- */
1159
- openPicker() {
1160
- if (!this.suggestionItems.length || this.disabled || this.readonly) {
1161
- return;
1162
- }
1163
-
1164
- this._forceOpen = true;
1165
- }
1166
-
1167
- enableSuggestions() {
1168
- if (this.Suggestions) {
1169
- return;
1170
- }
1171
-
1172
- const Suggestions = getFeature("InputSuggestions");
1173
-
1174
- if (Suggestions) {
1175
- this.Suggestions = new Suggestions(this, "suggestionItems", true);
1176
- } else {
1177
- throw new Error(`You have to import "@ui5/webcomponents/dist/features/InputSuggestions.js" module to use ui5-input suggestions`);
1178
- }
1179
- }
1180
-
1181
- selectSuggestion(item, keyboardUsed) {
1182
- if (item.group) {
1183
- return;
1184
- }
1185
-
1186
- const itemText = item.text || item.textContent; // keep textContent for compatibility
1187
- const fireInput = keyboardUsed
1188
- ? this.valueBeforeItemSelection !== itemText : this.value !== itemText;
1189
-
1190
- this.hasSuggestionItemSelected = true;
1191
-
1192
- if (fireInput) {
1193
- this.value = itemText;
1194
- this.valueBeforeItemSelection = itemText;
1195
- this.lastConfirmedValue = itemText;
1196
- this.fireEvent(this.EVENT_INPUT);
1197
- this._handleChange();
1198
- }
1199
-
1200
- this.valueBeforeItemPreview = "";
1201
- this.suggestionSelectionCanceled = false;
1202
-
1203
- this.fireEvent(this.EVENT_SUGGESTION_ITEM_SELECT, { item });
1204
-
1205
- this.isTyping = false;
1206
- this.openOnMobile = false;
1207
- this._forceOpen = false;
1208
- }
1209
-
1210
- previewSuggestion(item) {
1211
- this.valueBeforeItemSelection = this.value;
1212
- this.updateValueOnPreview(item);
1213
- this.announceSelectedItem();
1214
- this._previewItem = item;
1215
- }
1216
-
1217
- /**
1218
- * Updates the input value on item preview.
1219
- * @param {Object} item The item that is on preview
1220
- */
1221
- updateValueOnPreview(item) {
1222
- const noPreview = item.type === "Inactive" || item.group;
1223
- const innerInput = this.getInputDOMRefSync();
1224
- const itemValue = noPreview ? this.valueBeforeItemPreview : (item.effectiveTitle || item.textContent);
1225
-
1226
- this.value = itemValue;
1227
- innerInput.value = itemValue;
1228
- innerInput.setSelectionRange(this.valueBeforeAutoComplete.length, this.value.length);
1229
- }
1230
-
1231
- /**
1232
- * The suggestion item on preview.
1233
- * @type { sap.ui.webcomponents.main.IInputSuggestionItem }
1234
- * @readonly
1235
- * @public
1236
- */
1237
- get previewItem() {
1238
- if (!this._previewItem) {
1239
- return null;
1240
- }
1241
-
1242
- return this.getSuggestionByListItem(this._previewItem);
1243
- }
1244
-
1245
- async fireEventByAction(action) {
1246
- await this.getInputDOMRef();
1247
-
1248
- if (this.disabled || this.readonly) {
1249
- return;
1250
- }
1251
-
1252
- const inputValue = await this.getInputValue();
1253
- const isUserInput = action === this.ACTION_USER_INPUT;
1254
-
1255
- const input = await this.getInputDOMRef();
1256
- const cursorPosition = input.selectionStart;
1257
-
1258
- this.value = inputValue;
1259
- this.highlightValue = inputValue;
1260
- this.valueBeforeItemPreview = inputValue;
1261
-
1262
- if (isSafari()) {
1263
- // When setting the value by hand, Safari moves the cursor when typing in the middle of the text (See #1761)
1264
- setTimeout(() => {
1265
- input.selectionStart = cursorPosition;
1266
- input.selectionEnd = cursorPosition;
1267
- }, 0);
1268
- }
1269
-
1270
- if (isUserInput) { // input
1271
- this.fireEvent(this.EVENT_INPUT);
1272
- // Angular two way data binding
1273
- this.fireEvent("value-changed");
1274
- return;
1275
- }
1276
-
1277
- // In IE, pressing the ENTER does not fire change
1278
- const valueChanged = (this.previousValue !== undefined) && (this.previousValue !== this.value);
1279
- if (isIE() && action === this.ACTION_ENTER && valueChanged) {
1280
- this._handleChange();
1281
- }
1282
- }
1283
-
1284
- async getInputValue() {
1285
- const domRef = this.getDomRef();
1286
-
1287
- if (domRef) {
1288
- return (await this.getInputDOMRef()).value;
1289
- }
1290
- return "";
1291
- }
1292
-
1293
- async getInputDOMRef() {
1294
- if (isPhone() && this.Suggestions) {
1295
- await this.Suggestions._getSuggestionPopover();
1296
- return this.Suggestions && this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
1297
- }
1298
-
1299
- return this.nativeInput;
1300
- }
1301
-
1302
- getInputDOMRefSync() {
1303
- if (isPhone() && this.Suggestions) {
1304
- return this.Suggestions && this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
1305
- }
1306
-
1307
- return this.nativeInput;
1308
- }
1309
-
1310
- /**
1311
- * Returns a reference to the native input element
1312
- * @protected
1313
- */
1314
- get nativeInput() {
1315
- return this.getDomRef() && this.getDomRef().querySelector(`input`);
1316
- }
1317
-
1318
- get nativeInputWidth() {
1319
- return this.nativeInput && this.nativeInput.offsetWidth;
1320
- }
1321
-
1322
- getLabelableElementId() {
1323
- return this.getInputId();
1324
- }
1325
-
1326
- getSuggestionByListItem(item) {
1327
- const key = parseInt(item.getAttribute("data-ui5-key"));
1328
- return this.suggestionItems[key];
1329
- }
1330
-
1331
- /**
1332
- * Returns if the suggestions popover is scrollable.
1333
- * The method returns <code>Promise</code> that resolves to true,
1334
- * if the popup is scrollable and false otherwise.
1335
- * @returns {Promise}
1336
- */
1337
- isSuggestionsScrollable() {
1338
- if (!this.Suggestions) {
1339
- return Promise.resolve(false);
1340
- }
1341
-
1342
- return this.Suggestions._isScrollable();
1343
- }
1344
-
1345
- getInputId() {
1346
- return `${this._id}-inner`;
1347
- }
1348
-
1349
- /* Suggestions interface */
1350
- onItemFocused() {}
1351
-
1352
- onItemMouseOver(event) {
1353
- const item = event.target;
1354
- const suggestion = this.getSuggestionByListItem(item);
1355
- suggestion && suggestion.fireEvent("mouseover", {
1356
- item: suggestion,
1357
- targetRef: item,
1358
- });
1359
- }
1360
-
1361
- onItemMouseOut(event) {
1362
- const item = event.target;
1363
- const suggestion = this.getSuggestionByListItem(item);
1364
- suggestion && suggestion.fireEvent("mouseout", {
1365
- item: suggestion,
1366
- targetRef: item,
1367
- });
1368
- }
1369
-
1370
- onItemMouseDown(event) {
1371
- event.preventDefault();
1372
- }
1373
-
1374
- onItemSelected(item, keyboardUsed) {
1375
- this.selectSuggestion(item, keyboardUsed);
1376
- }
1377
-
1378
- onItemPreviewed(item) {
1379
- this.previewSuggestion(item);
1380
- this.fireEvent("suggestion-item-preview", {
1381
- item: this.getSuggestionByListItem(item),
1382
- targetRef: item,
1383
- });
1384
- }
1385
-
1386
- onOpen() {}
1387
-
1388
- onClose() {}
1389
-
1390
- valueStateTextMappings() {
1391
- return {
1392
- "Success": Input.i18nBundle.getText(VALUE_STATE_SUCCESS),
1393
- "Information": Input.i18nBundle.getText(VALUE_STATE_INFORMATION),
1394
- "Error": Input.i18nBundle.getText(VALUE_STATE_ERROR),
1395
- "Warning": Input.i18nBundle.getText(VALUE_STATE_WARNING),
1396
- };
1397
- }
1398
-
1399
- announceSelectedItem() {
1400
- const invisibleText = this.shadowRoot.querySelector(`#${this._id}-selectionText`);
1401
-
1402
- if (this.Suggestions && this.Suggestions._isItemOnTarget()) {
1403
- invisibleText.textContent = this.itemSelectionAnnounce;
1404
- } else {
1405
- invisibleText.textContent = "";
1406
- }
1407
- }
1408
-
1409
- get _readonly() {
1410
- return this.readonly && !this.disabled;
1411
- }
1412
-
1413
- get _headerTitleText() {
1414
- return Input.i18nBundle.getText(INPUT_SUGGESTIONS_TITLE);
1415
- }
1416
-
1417
- get inputType() {
1418
- return this.type.toLowerCase();
1419
- }
1420
-
1421
- get isTypeNumber() {
1422
- return this.type === InputType.Number;
1423
- }
1424
-
1425
- get suggestionsTextId() {
1426
- return this.showSuggestions ? `${this._id}-suggestionsText` : "";
1427
- }
1428
-
1429
- get valueStateTextId() {
1430
- return this.hasValueState ? `${this._id}-valueStateDesc` : "";
1431
- }
1432
-
1433
- get accInfo() {
1434
- const ariaHasPopupDefault = this.showSuggestions ? "true" : undefined;
1435
- const ariaAutoCompleteDefault = this.showSuggestions ? "list" : undefined;
1436
- const ariaDescribedBy = this._inputAccInfo.ariaDescribedBy ? `${this.suggestionsTextId} ${this.valueStateTextId} ${this._inputAccInfo.ariaDescribedBy}`.trim() : `${this.suggestionsTextId} ${this.valueStateTextId}`.trim();
1437
-
1438
- return {
1439
- "input": {
1440
- "ariaRoledescription": this._inputAccInfo && (this._inputAccInfo.ariaRoledescription || undefined),
1441
- "ariaDescribedBy": ariaDescribedBy || undefined,
1442
- "ariaInvalid": this.valueState === ValueState.Error ? "true" : undefined,
1443
- "ariaHasPopup": this._inputAccInfo.ariaHasPopup ? this._inputAccInfo.ariaHasPopup : ariaHasPopupDefault,
1444
- "ariaAutoComplete": this._inputAccInfo.ariaAutoComplete ? this._inputAccInfo.ariaAutoComplete : ariaAutoCompleteDefault,
1445
- "role": this._inputAccInfo && this._inputAccInfo.role,
1446
- "ariaControls": this._inputAccInfo && this._inputAccInfo.ariaControls,
1447
- "ariaExpanded": this._inputAccInfo && this._inputAccInfo.ariaExpanded,
1448
- "ariaDescription": this._inputAccInfo && this._inputAccInfo.ariaDescription,
1449
- "ariaLabel": (this._inputAccInfo && this._inputAccInfo.ariaLabel) || getEffectiveAriaLabelText(this),
1450
- },
1451
- };
1452
- }
1453
-
1454
- get nativeInputAttributes() {
1455
- return {
1456
- "min": this.isTypeNumber ? this._nativeInputAttributes.min : undefined,
1457
- "max": this.isTypeNumber ? this._nativeInputAttributes.max : undefined,
1458
- "step": this.isTypeNumber ? (this._nativeInputAttributes.step || "any") : undefined,
1459
- };
1460
- }
1461
-
1462
- get ariaValueStateHiddenText() {
1463
- if (!this.hasValueStateMessage) {
1464
- return;
1465
- }
1466
-
1467
- if (this.shouldDisplayDefaultValueStateMessage) {
1468
- return this.valueStateText;
1469
- }
1470
-
1471
- return this.valueStateMessageText.map(el => el.textContent).join(" ");
1472
- }
1473
-
1474
- get itemSelectionAnnounce() {
1475
- return this.Suggestions ? this.Suggestions.itemSelectionAnnounce : undefined;
1476
- }
1477
-
1478
- get classes() {
1479
- return {
1480
- popover: {
1481
- "ui5-suggestions-popover": !this.isPhone && this.showSuggestions,
1482
- "ui5-suggestions-popover-with-value-state-header": !this.isPhone && this.showSuggestions && this.hasValueStateMessage,
1483
- },
1484
- popoverValueState: {
1485
- "ui5-valuestatemessage-root": true,
1486
- "ui5-valuestatemessage-header": true,
1487
- "ui5-valuestatemessage--success": this.valueState === ValueState.Success,
1488
- "ui5-valuestatemessage--error": this.valueState === ValueState.Error,
1489
- "ui5-valuestatemessage--warning": this.valueState === ValueState.Warning,
1490
- "ui5-valuestatemessage--information": this.valueState === ValueState.Information,
1491
- },
1492
- };
1493
- }
1494
-
1495
- get styles() {
1496
- const remSizeIxPx = parseInt(getComputedStyle(document.documentElement).fontSize);
1497
-
1498
- const stylesObject = {
1499
- popoverHeader: {
1500
- "max-width": `${this._inputWidth}px`,
1501
- },
1502
- suggestionPopoverHeader: {
1503
- "display": this._listWidth === 0 ? "none" : "inline-block",
1504
- "width": `${this._listWidth}px`,
1505
- },
1506
- suggestionsPopover: {
1507
- "min-width": `${this._inputWidth}px`,
1508
- "max-width": (this._inputWidth / remSizeIxPx) > 40 ? `${this._inputWidth}px` : "40rem",
1509
- },
1510
- innerInput: {},
1511
- };
1512
-
1513
- if (this.nativeInputWidth < 48) {
1514
- stylesObject.innerInput.padding = "0";
1515
- }
1516
-
1517
- return stylesObject;
1518
- }
1519
-
1520
- get suggestionSeparators() {
1521
- return "None";
1522
- }
1523
-
1524
- get valueStateMessageText() {
1525
- return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
1526
- }
1527
-
1528
- get shouldDisplayOnlyValueStateMessage() {
1529
- return this.hasValueStateMessage && !this.readonly && !this.open && this.focused;
1530
- }
1531
-
1532
- get shouldDisplayDefaultValueStateMessage() {
1533
- return !this.valueStateMessage.length && this.hasValueStateMessage;
1534
- }
1535
-
1536
- get hasValueState() {
1537
- return this.valueState !== ValueState.None;
1538
- }
1539
-
1540
- get hasValueStateMessage() {
1541
- return this.hasValueState && this.valueState !== ValueState.Success
1542
- && (!this._inputIconFocused // Handles the cases when valueStateMessage is forwarded (from datepicker e.g.)
1543
- || (this._isPhone && this.Suggestions)); // Handles Input with suggestions on mobile
1544
- }
1545
-
1546
- get valueStateText() {
1547
- return this.valueStateTextMappings()[this.valueState];
1548
- }
1549
-
1550
- get suggestionsText() {
1551
- return Input.i18nBundle.getText(INPUT_SUGGESTIONS);
1552
- }
1553
-
1554
- get availableSuggestionsCount() {
1555
- if (this.showSuggestions && (this.value || this.Suggestions.isOpened())) {
1556
- switch (this.suggestionsTexts.length) {
1557
- case 0:
1558
- return Input.i18nBundle.getText(INPUT_SUGGESTIONS_NO_HIT);
1559
-
1560
- case 1:
1561
- return Input.i18nBundle.getText(INPUT_SUGGESTIONS_ONE_HIT);
1562
-
1563
- default:
1564
- return Input.i18nBundle.getText(INPUT_SUGGESTIONS_MORE_HITS, this.suggestionsTexts.length);
1565
- }
1566
- }
1567
-
1568
- return undefined;
1569
- }
1570
-
1571
- get step() {
1572
- return this.isTypeNumber ? "any" : undefined;
1573
- }
1574
-
1575
- get _isPhone() {
1576
- return isPhone();
1577
- }
1578
-
1579
- get _isSuggestionsFocused() {
1580
- return !this.focused && this.Suggestions && this.Suggestions.isOpened();
1581
- }
1582
-
1583
- /**
1584
- * Returns the placeholder value.
1585
- * @protected
1586
- */
1587
- get _placeholder() {
1588
- return this.placeholder;
1589
- }
1590
-
1591
- /**
1592
- * This method is relevant for sap_horizon theme only
1593
- */
1594
- get _valueStateInputIcon() {
1595
- const iconPerValueState = {
1596
- Error: `<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"/>`,
1597
- Warning: `<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"/>`,
1598
- Success: `<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"/>`,
1599
- 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"/>`,
1600
- };
1601
-
1602
- const result = `
1603
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 20 20" fill="none">
1604
- ${iconPerValueState[this.valueState]};
1605
- </svg>
1606
- `;
1607
-
1608
- return this.valueState !== ValueState.None ? result : "";
1609
- }
1610
-
1611
- get _valueStatePopoverHorizontalAlign() {
1612
- return this.effectiveDir !== "rtl" ? "Left" : "Right";
1613
- }
1614
-
1615
- /**
1616
- * This method is relevant for sap_horizon theme only
1617
- */
1618
- get _valueStateMessageInputIcon() {
1619
- const iconPerValueState = {
1620
- Error: "error",
1621
- Warning: "alert",
1622
- Success: "sys-enter-2",
1623
- Information: "information",
1624
- };
1625
-
1626
- return this.valueState !== ValueState.None ? iconPerValueState[this.valueState] : "";
1627
- }
1628
-
1629
- /**
1630
- * Returns the caret position inside the native input
1631
- * @protected
1632
- */
1633
- getCaretPosition() {
1634
- return getCaretPosition(this.nativeInput);
1635
- }
1636
-
1637
- /**
1638
- * Sets the caret to a certain position inside the native input
1639
- * @protected
1640
- * @param pos
1641
- */
1642
- setCaretPosition(pos) {
1643
- setCaretPosition(this.nativeInput, pos);
1644
- }
1645
-
1646
- /**
1647
- * Removes the fractional part of floating-point number.
1648
- * @param {string} value the numeric value of Input of type "Number"
1649
- */
1650
- removeFractionalPart(value) {
1651
- if (value.includes(".")) {
1652
- return value.slice(0, value.indexOf("."));
1653
- }
1654
- if (value.includes(",")) {
1655
- return value.slice(0, value.indexOf(","));
1656
- }
1657
-
1658
- return value;
1659
- }
1660
-
1661
- static get dependencies() {
1662
- const Suggestions = getFeature("InputSuggestions");
1663
-
1664
- return [Popover, Icon].concat(Suggestions ? Suggestions.dependencies : []);
1665
- }
1666
-
1667
- static async onDefine() {
1668
- const Suggestions = getFeature("InputSuggestions");
1669
-
1670
- [Input.i18nBundle] = await Promise.all([
1671
- getI18nBundle("@ui5/webcomponents"),
1672
- Suggestions ? Suggestions.init() : Promise.resolve(),
1673
- ]);
1674
- }
1675
- }
1676
-
1677
- Input.define();
1678
-
1679
- export default Input;