@ui5/webcomponents 2.22.1-rc.0 → 2.22.1

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 (328) hide show
  1. package/CHANGELOG.md +5 -2
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/Carousel.js +3 -13
  4. package/dist/Carousel.js.map +1 -1
  5. package/dist/ComboBox.d.ts +0 -4
  6. package/dist/ComboBox.js +0 -6
  7. package/dist/ComboBox.js.map +1 -1
  8. package/dist/DateTimePicker.d.ts +6 -5
  9. package/dist/DateTimePicker.js +11 -9
  10. package/dist/DateTimePicker.js.map +1 -1
  11. package/dist/Form.d.ts +4 -4
  12. package/dist/Form.js +6 -6
  13. package/dist/Form.js.map +1 -1
  14. package/dist/GridWalker.js +2 -8
  15. package/dist/GridWalker.js.map +1 -1
  16. package/dist/Input.d.ts +0 -4
  17. package/dist/Input.js.map +1 -1
  18. package/dist/List.js +2 -54
  19. package/dist/List.js.map +1 -1
  20. package/dist/ListItem.d.ts +6 -21
  21. package/dist/ListItem.js +23 -72
  22. package/dist/ListItem.js.map +1 -1
  23. package/dist/ListItemBase.d.ts +1 -6
  24. package/dist/ListItemBase.js +1 -20
  25. package/dist/ListItemBase.js.map +1 -1
  26. package/dist/ListItemBaseTemplate.d.ts +2 -2
  27. package/dist/ListItemBaseTemplate.js.map +1 -1
  28. package/dist/ListItemGroup.d.ts +0 -2
  29. package/dist/ListItemGroup.js.map +1 -1
  30. package/dist/ListItemTemplate.js +1 -1
  31. package/dist/ListItemTemplate.js.map +1 -1
  32. package/dist/Menu.d.ts +0 -4
  33. package/dist/Menu.js.map +1 -1
  34. package/dist/MultiComboBox.d.ts +1 -5
  35. package/dist/MultiComboBox.js +24 -41
  36. package/dist/MultiComboBox.js.map +1 -1
  37. package/dist/MultiInput.d.ts +0 -6
  38. package/dist/MultiInput.js +8 -36
  39. package/dist/MultiInput.js.map +1 -1
  40. package/dist/Panel.d.ts +0 -22
  41. package/dist/Panel.js +0 -51
  42. package/dist/Panel.js.map +1 -1
  43. package/dist/PanelTemplate.js +2 -5
  44. package/dist/PanelTemplate.js.map +1 -1
  45. package/dist/Select.d.ts +0 -2
  46. package/dist/Select.js +0 -3
  47. package/dist/Select.js.map +1 -1
  48. package/dist/Tab.d.ts +1 -8
  49. package/dist/Tab.js +0 -13
  50. package/dist/Tab.js.map +1 -1
  51. package/dist/TabContainer.d.ts +3 -6
  52. package/dist/TabContainer.js +8 -11
  53. package/dist/TabContainer.js.map +1 -1
  54. package/dist/Table.d.ts +0 -1
  55. package/dist/Table.js +10 -25
  56. package/dist/Table.js.map +1 -1
  57. package/dist/TableCustomAnnouncement.d.ts +0 -1
  58. package/dist/TableCustomAnnouncement.js +2 -17
  59. package/dist/TableCustomAnnouncement.js.map +1 -1
  60. package/dist/TableRowBase.d.ts +0 -1
  61. package/dist/TableRowBase.js +0 -3
  62. package/dist/TableRowBase.js.map +1 -1
  63. package/dist/TableSelection.js +2 -2
  64. package/dist/TableSelection.js.map +1 -1
  65. package/dist/TableSelectionMulti.js +1 -1
  66. package/dist/TableSelectionMulti.js.map +1 -1
  67. package/dist/TableVirtualizer.d.ts +0 -1
  68. package/dist/TableVirtualizer.js +0 -1
  69. package/dist/TableVirtualizer.js.map +1 -1
  70. package/dist/Tokenizer.d.ts +0 -1
  71. package/dist/Tokenizer.js +0 -12
  72. package/dist/Tokenizer.js.map +1 -1
  73. package/dist/bundle.esm.js +0 -3
  74. package/dist/bundle.esm.js.map +1 -1
  75. package/dist/css/themes/Dialog.css +1 -1
  76. package/dist/css/themes/Form.css +1 -1
  77. package/dist/css/themes/FormItemSpan.css +1 -1
  78. package/dist/css/themes/FormLayout.css +1 -1
  79. package/dist/css/themes/ListItemBase.css +1 -1
  80. package/dist/css/themes/OptionBase.css +1 -1
  81. package/dist/css/themes/Panel.css +1 -1
  82. package/dist/css/themes/Select.css +1 -1
  83. package/dist/css/themes/SliderTooltip.css +1 -1
  84. package/dist/css/themes/TableRowBase.css +1 -1
  85. package/dist/css/themes/Toolbar.css +1 -1
  86. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  87. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  88. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  89. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  90. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  91. package/dist/css/themes/sap_horizon_auto/parameters-bundle.css +5 -7
  92. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  93. package/dist/css/themes/sap_horizon_hc_auto/parameters-bundle.css +2 -5
  94. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  95. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  96. package/dist/custom-elements-internal.json +4 -1149
  97. package/dist/custom-elements.json +9 -578
  98. package/dist/dynamic-date-range-options/DateTimeRangeTemplate.js +2 -7
  99. package/dist/dynamic-date-range-options/DateTimeRangeTemplate.js.map +1 -1
  100. package/dist/dynamic-date-range-options/FromDateTimeTemplate.js +1 -1
  101. package/dist/dynamic-date-range-options/FromDateTimeTemplate.js.map +1 -1
  102. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  103. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  104. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  105. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
  106. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  107. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  108. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  109. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  110. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  111. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  112. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  113. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  114. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  115. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  116. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  117. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  118. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  119. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  120. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  121. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  122. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  123. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  124. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  125. package/dist/generated/assets/i18n/messagebundle_id.json +1 -1
  126. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  127. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  128. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  129. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  130. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  131. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  132. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  133. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
  134. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  135. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  136. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  137. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  138. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  139. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  140. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  141. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  142. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  143. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  144. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  145. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
  146. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  147. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  148. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  149. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  150. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  151. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  152. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  153. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  154. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  155. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  156. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  157. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  158. package/dist/generated/assets/themes/sap_horizon_auto/parameters-bundle.css.json +1 -1
  159. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  160. package/dist/generated/assets/themes/sap_horizon_hc_auto/parameters-bundle.css.json +1 -1
  161. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  162. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  163. package/dist/generated/i18n/i18n-defaults.d.ts +1 -2
  164. package/dist/generated/i18n/i18n-defaults.js +5 -6
  165. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  166. package/dist/generated/themes/Dialog.css.d.ts +1 -1
  167. package/dist/generated/themes/Dialog.css.js +1 -1
  168. package/dist/generated/themes/Dialog.css.js.map +1 -1
  169. package/dist/generated/themes/Form.css.d.ts +1 -1
  170. package/dist/generated/themes/Form.css.js +1 -1
  171. package/dist/generated/themes/Form.css.js.map +1 -1
  172. package/dist/generated/themes/FormItemSpan.css.d.ts +1 -1
  173. package/dist/generated/themes/FormItemSpan.css.js +1 -1
  174. package/dist/generated/themes/FormItemSpan.css.js.map +1 -1
  175. package/dist/generated/themes/FormLayout.css.d.ts +1 -1
  176. package/dist/generated/themes/FormLayout.css.js +1 -1
  177. package/dist/generated/themes/FormLayout.css.js.map +1 -1
  178. package/dist/generated/themes/ListItemBase.css.d.ts +1 -1
  179. package/dist/generated/themes/ListItemBase.css.js +1 -1
  180. package/dist/generated/themes/ListItemBase.css.js.map +1 -1
  181. package/dist/generated/themes/OptionBase.css.d.ts +1 -1
  182. package/dist/generated/themes/OptionBase.css.js +1 -1
  183. package/dist/generated/themes/OptionBase.css.js.map +1 -1
  184. package/dist/generated/themes/Panel.css.d.ts +1 -1
  185. package/dist/generated/themes/Panel.css.js +1 -1
  186. package/dist/generated/themes/Panel.css.js.map +1 -1
  187. package/dist/generated/themes/Select.css.d.ts +1 -1
  188. package/dist/generated/themes/Select.css.js +1 -1
  189. package/dist/generated/themes/Select.css.js.map +1 -1
  190. package/dist/generated/themes/SliderTooltip.css.d.ts +1 -1
  191. package/dist/generated/themes/SliderTooltip.css.js +1 -1
  192. package/dist/generated/themes/SliderTooltip.css.js.map +1 -1
  193. package/dist/generated/themes/TableRowBase.css.d.ts +1 -1
  194. package/dist/generated/themes/TableRowBase.css.js +1 -1
  195. package/dist/generated/themes/TableRowBase.css.js.map +1 -1
  196. package/dist/generated/themes/Toolbar.css.d.ts +1 -1
  197. package/dist/generated/themes/Toolbar.css.js +1 -1
  198. package/dist/generated/themes/Toolbar.css.js.map +1 -1
  199. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.d.ts +1 -1
  200. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  201. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  202. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.d.ts +1 -1
  203. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  204. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  205. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.d.ts +1 -1
  206. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  207. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  208. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.d.ts +1 -1
  209. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  210. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  211. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
  212. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  213. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  214. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.d.ts +1 -1
  215. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js +5 -7
  216. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js.map +1 -1
  217. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
  218. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  219. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  220. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.d.ts +1 -1
  221. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.js +2 -5
  222. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.js.map +1 -1
  223. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +1 -1
  224. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  225. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  226. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +1 -1
  227. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  228. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  229. package/dist/vscode.html-custom-data.json +20 -140
  230. package/dist/web-types.json +36 -340
  231. package/package-scripts.cjs +0 -1
  232. package/package.json +9 -9
  233. package/src/ListItemBaseTemplate.tsx +3 -3
  234. package/src/ListItemTemplate.tsx +2 -0
  235. package/src/PanelTemplate.tsx +5 -12
  236. package/src/dynamic-date-range-options/DateTimeRangeTemplate.tsx +2 -8
  237. package/src/dynamic-date-range-options/FromDateTimeTemplate.tsx +1 -1
  238. package/src/i18n/messagebundle.properties +0 -2
  239. package/src/i18n/messagebundle_ar.properties +6 -26
  240. package/src/i18n/messagebundle_bg.properties +4 -24
  241. package/src/i18n/messagebundle_ca.properties +4 -24
  242. package/src/i18n/messagebundle_cnr.properties +4 -24
  243. package/src/i18n/messagebundle_cs.properties +5 -25
  244. package/src/i18n/messagebundle_cy.properties +4 -24
  245. package/src/i18n/messagebundle_da.properties +5 -25
  246. package/src/i18n/messagebundle_de.properties +4 -24
  247. package/src/i18n/messagebundle_el.properties +4 -24
  248. package/src/i18n/messagebundle_en.properties +4 -24
  249. package/src/i18n/messagebundle_en_GB.properties +4 -24
  250. package/src/i18n/messagebundle_en_US_sappsd.properties +4 -24
  251. package/src/i18n/messagebundle_en_US_saprigi.properties +4 -22
  252. package/src/i18n/messagebundle_en_US_saptrc.properties +4 -24
  253. package/src/i18n/messagebundle_es.properties +5 -25
  254. package/src/i18n/messagebundle_es_MX.properties +4 -24
  255. package/src/i18n/messagebundle_et.properties +4 -24
  256. package/src/i18n/messagebundle_fi.properties +4 -24
  257. package/src/i18n/messagebundle_fr.properties +5 -25
  258. package/src/i18n/messagebundle_fr_CA.properties +8 -28
  259. package/src/i18n/messagebundle_hi.properties +5 -25
  260. package/src/i18n/messagebundle_hr.properties +4 -24
  261. package/src/i18n/messagebundle_hu.properties +4 -24
  262. package/src/i18n/messagebundle_id.properties +5 -25
  263. package/src/i18n/messagebundle_it.properties +5 -25
  264. package/src/i18n/messagebundle_iw.properties +4 -24
  265. package/src/i18n/messagebundle_ja.properties +4 -24
  266. package/src/i18n/messagebundle_kk.properties +4 -24
  267. package/src/i18n/messagebundle_ko.properties +7 -27
  268. package/src/i18n/messagebundle_lt.properties +4 -24
  269. package/src/i18n/messagebundle_lv.properties +4 -24
  270. package/src/i18n/messagebundle_mk.properties +5 -25
  271. package/src/i18n/messagebundle_ms.properties +4 -24
  272. package/src/i18n/messagebundle_nl.properties +4 -24
  273. package/src/i18n/messagebundle_no.properties +5 -25
  274. package/src/i18n/messagebundle_pl.properties +4 -24
  275. package/src/i18n/messagebundle_pt.properties +4 -24
  276. package/src/i18n/messagebundle_pt_PT.properties +4 -24
  277. package/src/i18n/messagebundle_ro.properties +4 -24
  278. package/src/i18n/messagebundle_ru.properties +6 -26
  279. package/src/i18n/messagebundle_sh.properties +4 -24
  280. package/src/i18n/messagebundle_sk.properties +4 -24
  281. package/src/i18n/messagebundle_sl.properties +5 -25
  282. package/src/i18n/messagebundle_sr.properties +4 -24
  283. package/src/i18n/messagebundle_sv.properties +4 -24
  284. package/src/i18n/messagebundle_th.properties +4 -24
  285. package/src/i18n/messagebundle_tr.properties +4 -24
  286. package/src/i18n/messagebundle_uk.properties +16 -36
  287. package/src/i18n/messagebundle_vi.properties +5 -25
  288. package/src/i18n/messagebundle_zh_CN.properties +6 -26
  289. package/src/i18n/messagebundle_zh_TW.properties +4 -24
  290. package/src/themes/Dialog.css +2 -2
  291. package/src/themes/FormItemSpan.css +4 -4
  292. package/src/themes/FormLayout.css +4 -4
  293. package/src/themes/ListItemBase.css +3 -4
  294. package/src/themes/OptionBase.css +0 -6
  295. package/src/themes/Panel.css +2 -19
  296. package/src/themes/Select.css +0 -11
  297. package/src/themes/SliderTooltip.css +1 -1
  298. package/src/themes/TableRowBase.css +0 -5
  299. package/src/themes/Toolbar.css +2 -2
  300. package/src/themes/base/Panel-parameters.css +0 -1
  301. package/src/themes/base/Select-parameters.css +0 -2
  302. package/src/themes/base/SliderTooltip-parameters.css +3 -0
  303. package/src/themes/base/sizes-parameters.css +2 -2
  304. package/src/themes/sap_fiori_3/SliderTooltip-parameters.css +5 -0
  305. package/src/themes/sap_fiori_3_dark/SliderTooltip-parameters.css +5 -0
  306. package/src/themes/sap_fiori_3_hcb/Link-parameters.css +1 -1
  307. package/src/themes/sap_fiori_3_hcb/SliderTooltip-parameters.css +5 -0
  308. package/src/themes/sap_fiori_3_hcw/Link-parameters.css +1 -1
  309. package/src/themes/sap_fiori_3_hcw/SliderTooltip-parameters.css +5 -0
  310. package/src/themes/sap_horizon/Select-parameters.css +3 -6
  311. package/src/themes/sap_horizon_dark/Select-parameters.css +3 -6
  312. package/src/themes/sap_horizon_dark/SliderTooltip-parameters.css +1 -0
  313. package/src/themes/sap_horizon_hcb/Link-parameters.css +1 -1
  314. package/src/themes/sap_horizon_hcb/SliderTooltip-parameters.css +1 -0
  315. package/src/themes/sap_horizon_hcw/Link-parameters.css +1 -1
  316. package/src/themes/sap_horizon_hcw/SliderTooltip-parameters.css +1 -0
  317. package/dist/TableGroupRow.d.ts +0 -60
  318. package/dist/TableGroupRow.js +0 -114
  319. package/dist/TableGroupRow.js.map +0 -1
  320. package/dist/TableGroupRowTemplate.d.ts +0 -2
  321. package/dist/TableGroupRowTemplate.js +0 -7
  322. package/dist/TableGroupRowTemplate.js.map +0 -1
  323. package/dist/css/themes/TableGroupRow.css +0 -1
  324. package/dist/generated/themes/TableGroupRow.css.d.ts +0 -2
  325. package/dist/generated/themes/TableGroupRow.css.js +0 -8
  326. package/dist/generated/themes/TableGroupRow.css.js.map +0 -1
  327. package/src/TableGroupRowTemplate.tsx +0 -24
  328. package/src/themes/TableGroupRow.css +0 -20
package/dist/Menu.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.js","sourceRoot":"","sources":["../src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;;;OAOG;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;;;;OAOG;;IACF,KAAK,CAAC,aAAa,EAAE;QACrB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,MAAM,EAAE;QACd,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;OAGG;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,cAAc,EAAE;QACtB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,OAAO,CAAC;GAET,IAAI,CAiVT;AAED,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type { DefaultSlot } from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type { ListItemBaseClickEventDetail } from \"./ListItemBase.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot-strict.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport {\n\tisLeft,\n\tisRight,\n\tisEnter,\n\tisTabNext,\n\tisTabPrevious,\n\tisShow,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport {\n\tisPhone,\n\tisDesktop,\n} from \"@ui5/webcomponents-base/dist/Device.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport announce from \"@ui5/webcomponents-base/dist/util/InvisibleMessage.js\";\nimport InvisibleMessageMode from \"@ui5/webcomponents-base/dist/types/InvisibleMessageMode.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport \"@ui5/webcomponents-icons/dist/slim-arrow-right.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport type { Timeout } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport DOMReferenceConverter from \"@ui5/webcomponents-base/dist/converters/DOMReference.js\";\nimport type List from \"./List.js\";\nimport type ResponsivePopover from \"./ResponsivePopover.js\";\nimport type MenuItem from \"./MenuItem.js\";\n// The import below should be kept, as MenuItem is part of the Menu component.\nimport { isInstanceOfMenuItem } from \"./MenuItem.js\";\nimport { isInstanceOfMenuItemGroup } from \"./MenuItemGroup.js\";\nimport { isInstanceOfMenuSeparator } from \"./MenuSeparator.js\";\nimport { isInstanceOfSplitButton } from \"./SplitButton.js\";\nimport type PopoverHorizontalAlign from \"./types/PopoverHorizontalAlign.js\";\nimport type PopoverPlacement from \"./types/PopoverPlacement.js\";\nimport type {\n\tListItemClickEventDetail,\n} from \"./List.js\";\nimport menuTemplate from \"./MenuTemplate.js\";\nimport {\n\tMENU_CANCEL_BUTTON_TEXT,\n\tMENU_POPOVER_ACCESSIBLE_NAME,\n\tMENU_ITEM_LOADING,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport menuCss from \"./generated/themes/Menu.css.js\";\n\nconst MENU_OPEN_DELAY = 300;\n\n/**\n * Interface for components that may be slotted inside a `ui5-menu`.\n *\n * **Note:** Use with `ui5-menu-item` or `ui5-menu-separator`. Implementing the interface does not guarantee that any other classes can work with the `ui5-menu`.\n * @public\n */\ninterface IMenuItem extends UI5Element {\n\tisMenuItem?: boolean;\n\tisSeparator?: boolean;\n\tisGroup?: boolean;\n\teventDetails: { click?: ListItemBaseClickEventDetail };\n}\n\ntype MenuItemClickEventDetail = {\n\titem: MenuItem,\n\ttext: string,\n}\n\ntype MenuBeforeOpenEventDetail = { item?: MenuItem };\ntype MenuBeforeCloseEventDetail = { escPressed: boolean };\n\n/**\n * @class\n *\n * ### Overview\n *\n * `ui5-menu` component represents a hierarchical menu structure.\n *\n * ### Structure\n *\n * The `ui5-menu` can hold two types of entities:\n *\n * - `ui5-menu-item` components\n * - `ui5-menu-separator` - used to separate menu items with a line\n *\n * An arbitrary hierarchy structure can be represented by recursively nesting menu items.\n *\n * ### Keyboard Handling\n *\n * The `ui5-menu` provides advanced keyboard handling.\n * The user can use the following keyboard shortcuts in order to navigate trough the tree:\n *\n * - `Arrow Up` / `Arrow Down` - Navigates up and down the menu items that are currently visible.\n * - `Arrow Right`, `Space` or `Enter` - Opens a sub-menu if there are menu items nested\n * in the currently clicked menu item.\n * - `Arrow Left` or `Escape` - Closes the currently opened sub-menu.\n *\n * when there is `endContent` :\n * - `Arrow Left` or `ArrowRight` - Navigate between the menu item actions and the menu item itself\n * - `Arrow Up` / `Arrow Down` - Navigates up and down the currently visible menu items\n *\n * **Note:** If the text direction is set to Right-to-left (RTL), `Arrow Right` and `Arrow Left` functionality is swapped.\n *\n * Application developers are responsible for ensuring that interactive elements placed in the `endContent` slot\n * have the correct accessibility behaviour, including their enabled or disabled states.\n * The menu does not manage these aspects when the menu item state changes.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/Menu.js\";`\n * @constructor\n * @extends UI5Element\n * @since 1.3.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-menu\",\n\trenderer: jsxRenderer,\n\tstyles: menuCss,\n\ttemplate: menuTemplate,\n})\n\n/**\n * Fired when an item is being clicked.\n *\n * **Note:** Since 1.17.0 the event is preventable, allowing the menu to remain open after an item is pressed.\n * @param { HTMLElement } item The currently clicked menu item.\n * @param { string } text The text of the currently clicked menu item.\n * @public\n */\n@event(\"item-click\", {\n\tcancelable: true,\n})\n\n/**\n * Fired before the menu is opened. This event can be cancelled, which will prevent the menu from opening.\n *\n * **Note:** Since 1.14.0 the event is also fired before a sub-menu opens.\n * @public\n * @since 1.10.0\n * @param { HTMLElement } item The `ui5-menu-item` that triggers opening of the sub-menu or undefined when fired upon root menu opening.\n */\n@event(\"before-open\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired after the menu is opened.\n * @public\n * @since 1.10.0\n */\n@event(\"open\", {\n\tbubbles: true,\n})\n\n/**\n * Fired when the menu is being closed.\n * @private\n */\n@event(\"close-menu\", {\n\tbubbles: true,\n})\n\n/**\n * Fired before the menu is closed. This event can be cancelled, which will prevent the menu from closing.\n * @public\n * @param {boolean} escPressed Indicates that `ESC` key has triggered the event.\n * @since 1.10.0\n */\n@event(\"before-close\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired after the menu is closed.\n * @public\n * @since 1.10.0\n */\n@event(\"close\")\n\nclass Menu extends UI5Element {\n\teventDetails!: {\n\t\t\"item-click\": MenuItemClickEventDetail,\n\t\t\"before-open\": MenuBeforeOpenEventDetail,\n\t\t\"open\": void,\n\t\t\"before-close\": MenuBeforeCloseEventDetail,\n\t\t\"close\": void,\n\t\t\"close-menu\": void,\n\t}\n\t/**\n\t * Defines the header text of the menu (displayed on mobile).\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Indicates if the menu is open.\n\t * @public\n\t * @default false\n\t * @since 1.10.0\n\t */\n\t@property({ type: Boolean })\n\topen = false;\n\n\t/**\n\t * Determines on which side the component is placed at.\n\t * @default \"Bottom\"\n\t * @public\n\t * @since 2.16.0\n\t */\n\t@property()\n\tplacement: `${PopoverPlacement}` = \"Bottom\";\n\n\t/**\n\t * Determines the horizontal alignment of the menu relative to its opener control.\n\t * @default \"Start\"\n\t * @public\n\t */\n\t@property()\n\thorizontalAlign: `${PopoverHorizontalAlign}` = \"Start\";\n\n\t/**\n\t * Defines if a loading indicator would be displayed inside the corresponding ui5-menu popover.\n\t * @default false\n\t * @public\n\t * @since 1.13.0\n\t */\n\t@property({ type: Boolean })\n\tloading = false;\n\n\t/**\n\t * Defines the delay in milliseconds, after which the loading indicator will be displayed inside the corresponding ui5-menu popover.\n\t * @default 1000\n\t * @public\n\t * @since 1.13.0\n\t */\n\t@property({ type: Number })\n\tloadingDelay = 1000;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element at which the menu is shown.\n\t * When using this attribute in a declarative way, you must only use the `id` (as a string) of the element at which you want to show the popover.\n\t * You can only set the `opener` attribute to a DOM Reference when using JavaScript.\n\t * @public\n\t * @default undefined\n\t * @since 1.10.0\n\t */\n\t@property({ converter: DOMReferenceConverter })\n\topener?: HTMLElement | string | null;\n\n\t/**\n\t * Defines the items of this component.\n\t *\n\t * **Note:** Use `ui5-menu-item` and `ui5-menu-separator` for their intended design.\n\t * @public\n\t */\n\t@slot({ \"default\": true, type: HTMLElement, invalidateOnChildChange: true })\n\titems!: DefaultSlot<IMenuItem>;\n\n\t@i18n(\"@ui5/webcomponents\")\n\tstatic i18nBundle: I18nBundle;\n\t_timeout?: Timeout;\n\n\tget isRtl() {\n\t\treturn this.effectiveDir === \"rtl\";\n\t}\n\n\tget labelCancel() {\n\t\treturn Menu.i18nBundle.getText(MENU_CANCEL_BUTTON_TEXT);\n\t}\n\n\tget isPhone() {\n\t\treturn isPhone();\n\t}\n\n\tget _popover() {\n\t\treturn this.shadowRoot!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\tget _list() {\n\t\treturn this.shadowRoot!.querySelector<List>(\"[ui5-list]\");\n\t}\n\n\tget _opener() {\n\t\treturn typeof this.opener === \"string\" ? document.getElementById(this.opener) : this.opener;\n\t}\n\n\t/** Returns menu item groups */\n\tget _menuItemGroups() {\n\t\treturn this.items.filter(isInstanceOfMenuItemGroup);\n\t}\n\n\t/** Returns menu items */\n\tget _menuItems() {\n\t\treturn this.items.filter(isInstanceOfMenuItem);\n\t}\n\n\t/** Returns all menu items (including those in groups */\n\tget _allMenuItems() {\n\t\tconst items: MenuItem[] = [];\n\t\tconst slottedItems = this.getSlottedNodes<IMenuItem>(\"items\");\n\n\t\tslottedItems.forEach(item => {\n\t\t\tif (isInstanceOfMenuItemGroup(item)) {\n\t\t\t\titems.push(...item._menuItems);\n\t\t\t} else if (!isInstanceOfMenuSeparator(item)) {\n\t\t\t\titems.push(item as MenuItem);\n\t\t\t}\n\t\t});\n\n\t\treturn items;\n\t}\n\n\t/** Returns menu items included in the ItemNavigation */\n\tget _navigatableMenuItems() {\n\t\tconst items: MenuItem[] = [];\n\t\tconst slottedItems = this.getSlottedNodes<MenuItem>(\"items\");\n\n\t\tslottedItems.forEach(item => {\n\t\t\tif (isInstanceOfMenuItemGroup(item)) {\n\t\t\t\tconst groupItems = item.getSlottedNodes<MenuItem>(\"items\");\n\t\t\t\titems.push(...groupItems);\n\t\t\t} else if (!isInstanceOfMenuSeparator(item)) {\n\t\t\t\titems.push(item);\n\t\t\t}\n\t\t});\n\n\t\treturn items;\n\t}\n\n\tget accessibleNameText() {\n\t\treturn Menu.i18nBundle.getText(MENU_POPOVER_ACCESSIBLE_NAME);\n\t}\n\n\tonBeforeRendering() {\n\t\tconst siblingsWithIcon = this._allMenuItems.some(menuItem => !!menuItem.icon);\n\n\t\tthis._setupItemNavigation();\n\n\t\tthis._allMenuItems.forEach(item => {\n\t\t\titem._siblingsWithIcon = siblingsWithIcon;\n\t\t});\n\t}\n\n\tgetFocusDomRef(): HTMLElement | undefined {\n\t\treturn this._list?.getFocusDomRef();\n\t}\n\n\t_setupItemNavigation() {\n\t\tif (this._list) {\n\t\t\tthis._list._itemNavigation._getItems = () => this._navigatableMenuItems;\n\t\t}\n\t}\n\n\t_close() {\n\t\tthis.open = false;\n\t}\n\n\t_openItemSubMenu(item: MenuItem, openedByMouse = false) {\n\t\tclearTimeout(this._timeout);\n\n\t\tif (!item._popover || item._popover.open) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.fireDecoratorEvent(\"before-open\", {\n\t\t\titem,\n\t\t});\n\n\t\titem._popover.opener = item;\n\t\titem._popover.open = true;\n\t\titem.selected = true;\n\t\titem._openedByMouse = openedByMouse;\n\t}\n\n\t_itemMouseOver(e: MouseEvent) {\n\t\tif (!isDesktop()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst item = e.target as MenuItem;\n\t\tif (!isInstanceOfMenuItem(item)) {\n\t\t\treturn;\n\t\t}\n\n\t\titem.getFocusDomRef()?.focus();\n\n\t\t// Opens submenu with 300ms delay\n\t\tthis._startOpenTimeout(item);\n\t}\n\n\tasync focus(focusOptions?: FocusOptions): Promise<void> {\n\t\tawait renderFinished();\n\t\tconst firstMenuItem = this._allMenuItems[0];\n\n\t\tif (firstMenuItem) {\n\t\t\treturn firstMenuItem.focus(focusOptions);\n\t\t}\n\n\t\treturn super.focus(focusOptions);\n\t}\n\n\t_closeOtherSubMenus(item: MenuItem) {\n\t\tconst menuItems = this._allMenuItems;\n\t\tif (!menuItems.includes(item)) {\n\t\t\treturn;\n\t\t}\n\n\t\tmenuItems.forEach(menuItem => {\n\t\t\tif (menuItem !== item) {\n\t\t\t\tmenuItem._close();\n\t\t\t}\n\t\t});\n\t}\n\n\t_startOpenTimeout(item: MenuItem) {\n\t\tclearTimeout(this._timeout);\n\n\t\tthis._timeout = setTimeout(() => {\n\t\t\tthis._closeOtherSubMenus(item);\n\n\t\t\tthis._openItemSubMenu(item, true);\n\t\t}, MENU_OPEN_DELAY);\n\t}\n\n\t_itemClick(e: CustomEvent<ListItemClickEventDetail>) {\n\t\tconst item = e.detail.item as MenuItem;\n\n\t\tif (!item._popover) {\n\t\t\tconst prevented = !this.fireDecoratorEvent(\"item-click\", {\n\t\t\t\t\"item\": item,\n\t\t\t\t\"text\": item.text || \"\",\n\t\t\t});\n\n\t\t\tif (!prevented) {\n\t\t\t\titem._updateCheckedState();\n\t\t\t\tthis._popover && !item._shiftPressed && item.fireDecoratorEvent(\"close-menu\");\n\t\t\t}\n\t\t} else {\n\t\t\tthis._openItemSubMenu(item);\n\t\t}\n\t}\n\n\t_itemKeyDown(e: KeyboardEvent) {\n\t\tconst isTabNextPrevious = isTabNext(e) || isTabPrevious(e);\n\t\tconst isShowKey = isShow(e);\n\t\tconst isSplitButton = this._opener && isInstanceOfSplitButton(this._opener);\n\t\tconst item = e.target as MenuItem;\n\n\t\tif (!isInstanceOfMenuItem(item)) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst isEndContentNavigation = isRight(e) || isLeft(e);\n\t\tconst shouldOpenMenu = this.isRtl ? isLeft(e) : isRight(e);\n\n\t\tif (isEnter(e) || isTabNextPrevious || (isShowKey && isSplitButton)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEndContentNavigation) {\n\t\t\titem._navigateToEndContent(isLeft(e));\n\t\t}\n\n\t\tif (shouldOpenMenu) {\n\t\t\tthis._openItemSubMenu(item, false);\n\t\t} else if (isTabNextPrevious || (isShowKey && isSplitButton)) {\n\t\t\tthis._close();\n\t\t}\n\t}\n\n\t_navigateOutOfEndContent(e: CustomEvent) {\n\t\tconst item = e.target as MenuItem;\n\t\tconst shouldNavigateToNextItem = e.detail.shouldNavigateToNextItem;\n\t\tconst menuItems = this._allMenuItems;\n\t\tconst itemIndex = menuItems.indexOf(item);\n\n\t\tif (itemIndex > -1) {\n\t\t\tconst nextItem = shouldNavigateToNextItem ? menuItems[itemIndex + 1] : menuItems[itemIndex - 1];\n\t\t\tconst itemToFocus = nextItem || menuItems[itemIndex];\n\t\t\titemToFocus?.focus();\n\n\t\t\te.stopPropagation();\n\t\t}\n\t}\n\n\t_beforePopoverOpen(e: CustomEvent) {\n\t\tconst prevented = !this.fireDecoratorEvent(\"before-open\", {});\n\n\t\tif (prevented) {\n\t\t\tthis.open = false;\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_afterPopoverOpen() {\n\t\tthis._allMenuItems[0]?.focus();\n\t\tif (this.loading) {\n\t\t\tannounce(Menu.i18nBundle.getText(MENU_ITEM_LOADING), InvisibleMessageMode.Polite);\n\t\t}\n\t\tthis.fireDecoratorEvent(\"open\");\n\t}\n\n\t_beforePopoverClose(e: CustomEvent) {\n\t\tconst prevented = !this.fireDecoratorEvent(\"before-close\", { escPressed: e.detail.escPressed });\n\n\t\tif (prevented) {\n\t\t\tthis.open = true;\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_afterPopoverClose() {\n\t\tthis.open = false;\n\t\tthis.fireDecoratorEvent(\"close\");\n\t}\n}\n\nMenu.define();\n\nexport default Menu;\nexport type {\n\tMenuItemClickEventDetail,\n\tMenuBeforeCloseEventDetail,\n\tMenuBeforeOpenEventDetail,\n\tIMenuItem,\n};\n"]}
1
+ {"version":3,"file":"Menu.js","sourceRoot":"","sources":["../src/Menu.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AAEpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,wDAAwD,CAAC;AAC1E,OAAO,KAAK,MAAM,yDAAyD,CAAC;AAC5E,OAAO,EACN,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,aAAa,EACb,MAAM,GACN,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,OAAO,EACP,SAAS,GACT,MAAM,wCAAwC,CAAC;AAChD,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,QAAQ,MAAM,uDAAuD,CAAC;AAC7E,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAE9F,OAAO,mDAAmD,CAAC;AAC3D,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAE/E,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,qBAAqB,MAAM,yDAAyD,CAAC;AAI5F,8EAA8E;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,E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,QAAQ,CAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;oCACV;AASrC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC;mCAC7C;AAGxB;IADN,IAAI,CAAC,oBAAoB,CAAC;8BACG;AAlFzB,IAAI;IAnET,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,YAAY;KACtB,CAAC;IAEF;;;;;;;OAOG;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;;;;OAOG;;IACF,KAAK,CAAC,aAAa,EAAE;QACrB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,MAAM,EAAE;QACd,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;OAGG;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,cAAc,EAAE;QACtB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,OAAO,CAAC;GAET,IAAI,CAiVT;AAED,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type { DefaultSlot } from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot-strict.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport {\n\tisLeft,\n\tisRight,\n\tisEnter,\n\tisTabNext,\n\tisTabPrevious,\n\tisShow,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport {\n\tisPhone,\n\tisDesktop,\n} from \"@ui5/webcomponents-base/dist/Device.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport announce from \"@ui5/webcomponents-base/dist/util/InvisibleMessage.js\";\nimport InvisibleMessageMode from \"@ui5/webcomponents-base/dist/types/InvisibleMessageMode.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport \"@ui5/webcomponents-icons/dist/slim-arrow-right.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport type { Timeout } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport DOMReferenceConverter from \"@ui5/webcomponents-base/dist/converters/DOMReference.js\";\nimport type List from \"./List.js\";\nimport type ResponsivePopover from \"./ResponsivePopover.js\";\nimport type MenuItem from \"./MenuItem.js\";\n// The import below should be kept, as MenuItem is part of the Menu component.\nimport { isInstanceOfMenuItem } from \"./MenuItem.js\";\nimport { isInstanceOfMenuItemGroup } from \"./MenuItemGroup.js\";\nimport { isInstanceOfMenuSeparator } from \"./MenuSeparator.js\";\nimport { isInstanceOfSplitButton } from \"./SplitButton.js\";\nimport type PopoverHorizontalAlign from \"./types/PopoverHorizontalAlign.js\";\nimport type PopoverPlacement from \"./types/PopoverPlacement.js\";\nimport type {\n\tListItemClickEventDetail,\n} from \"./List.js\";\nimport menuTemplate from \"./MenuTemplate.js\";\nimport {\n\tMENU_CANCEL_BUTTON_TEXT,\n\tMENU_POPOVER_ACCESSIBLE_NAME,\n\tMENU_ITEM_LOADING,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport menuCss from \"./generated/themes/Menu.css.js\";\n\nconst MENU_OPEN_DELAY = 300;\n\n/**\n * Interface for components that may be slotted inside a `ui5-menu`.\n *\n * **Note:** Use with `ui5-menu-item` or `ui5-menu-separator`. Implementing the interface does not guarantee that any other classes can work with the `ui5-menu`.\n * @public\n */\ninterface IMenuItem extends UI5Element {\n\tisMenuItem?: boolean;\n\tisSeparator?: boolean;\n\tisGroup?: boolean;\n}\n\ntype MenuItemClickEventDetail = {\n\titem: MenuItem,\n\ttext: string,\n}\n\ntype MenuBeforeOpenEventDetail = { item?: MenuItem };\ntype MenuBeforeCloseEventDetail = { escPressed: boolean };\n\n/**\n * @class\n *\n * ### Overview\n *\n * `ui5-menu` component represents a hierarchical menu structure.\n *\n * ### Structure\n *\n * The `ui5-menu` can hold two types of entities:\n *\n * - `ui5-menu-item` components\n * - `ui5-menu-separator` - used to separate menu items with a line\n *\n * An arbitrary hierarchy structure can be represented by recursively nesting menu items.\n *\n * ### Keyboard Handling\n *\n * The `ui5-menu` provides advanced keyboard handling.\n * The user can use the following keyboard shortcuts in order to navigate trough the tree:\n *\n * - `Arrow Up` / `Arrow Down` - Navigates up and down the menu items that are currently visible.\n * - `Arrow Right`, `Space` or `Enter` - Opens a sub-menu if there are menu items nested\n * in the currently clicked menu item.\n * - `Arrow Left` or `Escape` - Closes the currently opened sub-menu.\n *\n * when there is `endContent` :\n * - `Arrow Left` or `ArrowRight` - Navigate between the menu item actions and the menu item itself\n * - `Arrow Up` / `Arrow Down` - Navigates up and down the currently visible menu items\n *\n * **Note:** If the text direction is set to Right-to-left (RTL), `Arrow Right` and `Arrow Left` functionality is swapped.\n *\n * Application developers are responsible for ensuring that interactive elements placed in the `endContent` slot\n * have the correct accessibility behaviour, including their enabled or disabled states.\n * The menu does not manage these aspects when the menu item state changes.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/Menu.js\";`\n * @constructor\n * @extends UI5Element\n * @since 1.3.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-menu\",\n\trenderer: jsxRenderer,\n\tstyles: menuCss,\n\ttemplate: menuTemplate,\n})\n\n/**\n * Fired when an item is being clicked.\n *\n * **Note:** Since 1.17.0 the event is preventable, allowing the menu to remain open after an item is pressed.\n * @param { HTMLElement } item The currently clicked menu item.\n * @param { string } text The text of the currently clicked menu item.\n * @public\n */\n@event(\"item-click\", {\n\tcancelable: true,\n})\n\n/**\n * Fired before the menu is opened. This event can be cancelled, which will prevent the menu from opening.\n *\n * **Note:** Since 1.14.0 the event is also fired before a sub-menu opens.\n * @public\n * @since 1.10.0\n * @param { HTMLElement } item The `ui5-menu-item` that triggers opening of the sub-menu or undefined when fired upon root menu opening.\n */\n@event(\"before-open\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired after the menu is opened.\n * @public\n * @since 1.10.0\n */\n@event(\"open\", {\n\tbubbles: true,\n})\n\n/**\n * Fired when the menu is being closed.\n * @private\n */\n@event(\"close-menu\", {\n\tbubbles: true,\n})\n\n/**\n * Fired before the menu is closed. This event can be cancelled, which will prevent the menu from closing.\n * @public\n * @param {boolean} escPressed Indicates that `ESC` key has triggered the event.\n * @since 1.10.0\n */\n@event(\"before-close\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired after the menu is closed.\n * @public\n * @since 1.10.0\n */\n@event(\"close\")\n\nclass Menu extends UI5Element {\n\teventDetails!: {\n\t\t\"item-click\": MenuItemClickEventDetail,\n\t\t\"before-open\": MenuBeforeOpenEventDetail,\n\t\t\"open\": void,\n\t\t\"before-close\": MenuBeforeCloseEventDetail,\n\t\t\"close\": void,\n\t\t\"close-menu\": void,\n\t}\n\t/**\n\t * Defines the header text of the menu (displayed on mobile).\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Indicates if the menu is open.\n\t * @public\n\t * @default false\n\t * @since 1.10.0\n\t */\n\t@property({ type: Boolean })\n\topen = false;\n\n\t/**\n\t * Determines on which side the component is placed at.\n\t * @default \"Bottom\"\n\t * @public\n\t * @since 2.16.0\n\t */\n\t@property()\n\tplacement: `${PopoverPlacement}` = \"Bottom\";\n\n\t/**\n\t * Determines the horizontal alignment of the menu relative to its opener control.\n\t * @default \"Start\"\n\t * @public\n\t */\n\t@property()\n\thorizontalAlign: `${PopoverHorizontalAlign}` = \"Start\";\n\n\t/**\n\t * Defines if a loading indicator would be displayed inside the corresponding ui5-menu popover.\n\t * @default false\n\t * @public\n\t * @since 1.13.0\n\t */\n\t@property({ type: Boolean })\n\tloading = false;\n\n\t/**\n\t * Defines the delay in milliseconds, after which the loading indicator will be displayed inside the corresponding ui5-menu popover.\n\t * @default 1000\n\t * @public\n\t * @since 1.13.0\n\t */\n\t@property({ type: Number })\n\tloadingDelay = 1000;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element at which the menu is shown.\n\t * When using this attribute in a declarative way, you must only use the `id` (as a string) of the element at which you want to show the popover.\n\t * You can only set the `opener` attribute to a DOM Reference when using JavaScript.\n\t * @public\n\t * @default undefined\n\t * @since 1.10.0\n\t */\n\t@property({ converter: DOMReferenceConverter })\n\topener?: HTMLElement | string | null;\n\n\t/**\n\t * Defines the items of this component.\n\t *\n\t * **Note:** Use `ui5-menu-item` and `ui5-menu-separator` for their intended design.\n\t * @public\n\t */\n\t@slot({ \"default\": true, type: HTMLElement, invalidateOnChildChange: true })\n\titems!: DefaultSlot<IMenuItem>;\n\n\t@i18n(\"@ui5/webcomponents\")\n\tstatic i18nBundle: I18nBundle;\n\t_timeout?: Timeout;\n\n\tget isRtl() {\n\t\treturn this.effectiveDir === \"rtl\";\n\t}\n\n\tget labelCancel() {\n\t\treturn Menu.i18nBundle.getText(MENU_CANCEL_BUTTON_TEXT);\n\t}\n\n\tget isPhone() {\n\t\treturn isPhone();\n\t}\n\n\tget _popover() {\n\t\treturn this.shadowRoot!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\tget _list() {\n\t\treturn this.shadowRoot!.querySelector<List>(\"[ui5-list]\");\n\t}\n\n\tget _opener() {\n\t\treturn typeof this.opener === \"string\" ? document.getElementById(this.opener) : this.opener;\n\t}\n\n\t/** Returns menu item groups */\n\tget _menuItemGroups() {\n\t\treturn this.items.filter(isInstanceOfMenuItemGroup);\n\t}\n\n\t/** Returns menu items */\n\tget _menuItems() {\n\t\treturn this.items.filter(isInstanceOfMenuItem);\n\t}\n\n\t/** Returns all menu items (including those in groups */\n\tget _allMenuItems() {\n\t\tconst items: MenuItem[] = [];\n\t\tconst slottedItems = this.getSlottedNodes<IMenuItem>(\"items\");\n\n\t\tslottedItems.forEach(item => {\n\t\t\tif (isInstanceOfMenuItemGroup(item)) {\n\t\t\t\titems.push(...item._menuItems);\n\t\t\t} else if (!isInstanceOfMenuSeparator(item)) {\n\t\t\t\titems.push(item as MenuItem);\n\t\t\t}\n\t\t});\n\n\t\treturn items;\n\t}\n\n\t/** Returns menu items included in the ItemNavigation */\n\tget _navigatableMenuItems() {\n\t\tconst items: MenuItem[] = [];\n\t\tconst slottedItems = this.getSlottedNodes<MenuItem>(\"items\");\n\n\t\tslottedItems.forEach(item => {\n\t\t\tif (isInstanceOfMenuItemGroup(item)) {\n\t\t\t\tconst groupItems = item.getSlottedNodes<MenuItem>(\"items\");\n\t\t\t\titems.push(...groupItems);\n\t\t\t} else if (!isInstanceOfMenuSeparator(item)) {\n\t\t\t\titems.push(item);\n\t\t\t}\n\t\t});\n\n\t\treturn items;\n\t}\n\n\tget accessibleNameText() {\n\t\treturn Menu.i18nBundle.getText(MENU_POPOVER_ACCESSIBLE_NAME);\n\t}\n\n\tonBeforeRendering() {\n\t\tconst siblingsWithIcon = this._allMenuItems.some(menuItem => !!menuItem.icon);\n\n\t\tthis._setupItemNavigation();\n\n\t\tthis._allMenuItems.forEach(item => {\n\t\t\titem._siblingsWithIcon = siblingsWithIcon;\n\t\t});\n\t}\n\n\tgetFocusDomRef(): HTMLElement | undefined {\n\t\treturn this._list?.getFocusDomRef();\n\t}\n\n\t_setupItemNavigation() {\n\t\tif (this._list) {\n\t\t\tthis._list._itemNavigation._getItems = () => this._navigatableMenuItems;\n\t\t}\n\t}\n\n\t_close() {\n\t\tthis.open = false;\n\t}\n\n\t_openItemSubMenu(item: MenuItem, openedByMouse = false) {\n\t\tclearTimeout(this._timeout);\n\n\t\tif (!item._popover || item._popover.open) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.fireDecoratorEvent(\"before-open\", {\n\t\t\titem,\n\t\t});\n\n\t\titem._popover.opener = item;\n\t\titem._popover.open = true;\n\t\titem.selected = true;\n\t\titem._openedByMouse = openedByMouse;\n\t}\n\n\t_itemMouseOver(e: MouseEvent) {\n\t\tif (!isDesktop()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst item = e.target as MenuItem;\n\t\tif (!isInstanceOfMenuItem(item)) {\n\t\t\treturn;\n\t\t}\n\n\t\titem.getFocusDomRef()?.focus();\n\n\t\t// Opens submenu with 300ms delay\n\t\tthis._startOpenTimeout(item);\n\t}\n\n\tasync focus(focusOptions?: FocusOptions): Promise<void> {\n\t\tawait renderFinished();\n\t\tconst firstMenuItem = this._allMenuItems[0];\n\n\t\tif (firstMenuItem) {\n\t\t\treturn firstMenuItem.focus(focusOptions);\n\t\t}\n\n\t\treturn super.focus(focusOptions);\n\t}\n\n\t_closeOtherSubMenus(item: MenuItem) {\n\t\tconst menuItems = this._allMenuItems;\n\t\tif (!menuItems.includes(item)) {\n\t\t\treturn;\n\t\t}\n\n\t\tmenuItems.forEach(menuItem => {\n\t\t\tif (menuItem !== item) {\n\t\t\t\tmenuItem._close();\n\t\t\t}\n\t\t});\n\t}\n\n\t_startOpenTimeout(item: MenuItem) {\n\t\tclearTimeout(this._timeout);\n\n\t\tthis._timeout = setTimeout(() => {\n\t\t\tthis._closeOtherSubMenus(item);\n\n\t\t\tthis._openItemSubMenu(item, true);\n\t\t}, MENU_OPEN_DELAY);\n\t}\n\n\t_itemClick(e: CustomEvent<ListItemClickEventDetail>) {\n\t\tconst item = e.detail.item as MenuItem;\n\n\t\tif (!item._popover) {\n\t\t\tconst prevented = !this.fireDecoratorEvent(\"item-click\", {\n\t\t\t\t\"item\": item,\n\t\t\t\t\"text\": item.text || \"\",\n\t\t\t});\n\n\t\t\tif (!prevented) {\n\t\t\t\titem._updateCheckedState();\n\t\t\t\tthis._popover && !item._shiftPressed && item.fireDecoratorEvent(\"close-menu\");\n\t\t\t}\n\t\t} else {\n\t\t\tthis._openItemSubMenu(item);\n\t\t}\n\t}\n\n\t_itemKeyDown(e: KeyboardEvent) {\n\t\tconst isTabNextPrevious = isTabNext(e) || isTabPrevious(e);\n\t\tconst isShowKey = isShow(e);\n\t\tconst isSplitButton = this._opener && isInstanceOfSplitButton(this._opener);\n\t\tconst item = e.target as MenuItem;\n\n\t\tif (!isInstanceOfMenuItem(item)) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst isEndContentNavigation = isRight(e) || isLeft(e);\n\t\tconst shouldOpenMenu = this.isRtl ? isLeft(e) : isRight(e);\n\n\t\tif (isEnter(e) || isTabNextPrevious || (isShowKey && isSplitButton)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEndContentNavigation) {\n\t\t\titem._navigateToEndContent(isLeft(e));\n\t\t}\n\n\t\tif (shouldOpenMenu) {\n\t\t\tthis._openItemSubMenu(item, false);\n\t\t} else if (isTabNextPrevious || (isShowKey && isSplitButton)) {\n\t\t\tthis._close();\n\t\t}\n\t}\n\n\t_navigateOutOfEndContent(e: CustomEvent) {\n\t\tconst item = e.target as MenuItem;\n\t\tconst shouldNavigateToNextItem = e.detail.shouldNavigateToNextItem;\n\t\tconst menuItems = this._allMenuItems;\n\t\tconst itemIndex = menuItems.indexOf(item);\n\n\t\tif (itemIndex > -1) {\n\t\t\tconst nextItem = shouldNavigateToNextItem ? menuItems[itemIndex + 1] : menuItems[itemIndex - 1];\n\t\t\tconst itemToFocus = nextItem || menuItems[itemIndex];\n\t\t\titemToFocus?.focus();\n\n\t\t\te.stopPropagation();\n\t\t}\n\t}\n\n\t_beforePopoverOpen(e: CustomEvent) {\n\t\tconst prevented = !this.fireDecoratorEvent(\"before-open\", {});\n\n\t\tif (prevented) {\n\t\t\tthis.open = false;\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_afterPopoverOpen() {\n\t\tthis._allMenuItems[0]?.focus();\n\t\tif (this.loading) {\n\t\t\tannounce(Menu.i18nBundle.getText(MENU_ITEM_LOADING), InvisibleMessageMode.Polite);\n\t\t}\n\t\tthis.fireDecoratorEvent(\"open\");\n\t}\n\n\t_beforePopoverClose(e: CustomEvent) {\n\t\tconst prevented = !this.fireDecoratorEvent(\"before-close\", { escPressed: e.detail.escPressed });\n\n\t\tif (prevented) {\n\t\t\tthis.open = true;\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_afterPopoverClose() {\n\t\tthis.open = false;\n\t\tthis.fireDecoratorEvent(\"close\");\n\t}\n}\n\nMenu.define();\n\nexport default Menu;\nexport type {\n\tMenuItemClickEventDetail,\n\tMenuBeforeCloseEventDetail,\n\tMenuBeforeOpenEventDetail,\n\tIMenuItem,\n};\n"]}
@@ -22,7 +22,6 @@ import type { ListSelectionChangeEventDetail } from "./List.js";
22
22
  import ToggleButton from "./ToggleButton.js";
23
23
  import type ComboBoxFilter from "./types/ComboBoxFilter.js";
24
24
  import type { InputEventDetail } from "./Input.js";
25
- import type { ListItemBaseClickEventDetail } from "./ListItemBase.js";
26
25
  import type InputComposition from "./features/InputComposition.js";
27
26
  /**
28
27
  * Interface for components that may be slotted inside a `ui5-multi-combobox` as items
@@ -37,9 +36,6 @@ interface IMultiComboBoxItem extends UI5Element {
37
36
  isGroupItem?: boolean;
38
37
  _isVisible?: boolean;
39
38
  items?: Array<IMultiComboBoxItem>;
40
- eventDetails: {
41
- click?: ListItemBaseClickEventDetail;
42
- };
43
39
  }
44
40
  type ValueStateAnnouncement = Record<Exclude<ValueState, ValueState.None>, string>;
45
41
  type ValueStateTypeAnnouncement = Record<Exclude<ValueState, ValueState.None>, string>;
@@ -360,7 +356,7 @@ declare class MultiComboBox extends UI5Element implements IFormInputElement {
360
356
  _tokenizerFocusIn(): void;
361
357
  _onkeydown(e: KeyboardEvent): void;
362
358
  _selectItems(matchingItems: IMultiComboBoxItem[]): void;
363
- _handlePaste(e: ClipboardEvent): void;
359
+ _handlePaste(e: ClipboardEvent): Promise<void>;
364
360
  _handleTokenCreationUponPaste(pastedText: string, e: KeyboardEvent | ClipboardEvent): void;
365
361
  _handleInsertPaste(e: KeyboardEvent): Promise<void>;
366
362
  _handleShow(e: KeyboardEvent): void;
@@ -281,7 +281,6 @@ let MultiComboBox = MultiComboBox_1 = class MultiComboBox extends UI5Element {
281
281
  onEnterDOM() {
282
282
  ResizeHandler.register(this, this._handleResizeBound);
283
283
  this._enableComposition();
284
- this._effectiveValueState = this.valueState;
285
284
  }
286
285
  onExitDOM() {
287
286
  ResizeHandler.deregister(this, this._handleResizeBound);
@@ -560,24 +559,23 @@ let MultiComboBox = MultiComboBox_1 = class MultiComboBox extends UI5Element {
560
559
  }
561
560
  });
562
561
  }
563
- _handlePaste(e) {
562
+ async _handlePaste(e) {
564
563
  if (this.readonly) {
565
564
  return;
566
565
  }
567
566
  e.preventDefault();
568
- // Get pasted text from clipboardData - more reliable than navigator.clipboard
569
- const pastedText = e.clipboardData?.getData("text/plain") || "";
570
- if (pastedText) {
571
- // Use deprecated but still functional document.execCommand for cursor handling
572
- document.execCommand("insertText", true, pastedText);
573
- // Dispatch input event to ensure the component updates
574
- const inputEvent = new Event("input", {
575
- bubbles: true,
576
- cancelable: true,
577
- });
578
- this._innerInput.dispatchEvent(inputEvent);
579
- this._handleTokenCreationUponPaste(pastedText, e);
567
+ const pastedText = await navigator.clipboard.readText();
568
+ document.execCommand("insertText", true, pastedText ?? "");
569
+ const inputEvent = new Event("input", {
570
+ bubbles: true,
571
+ cancelable: true,
572
+ });
573
+ // Dispatch it
574
+ this._innerInput.dispatchEvent(inputEvent);
575
+ if (!pastedText) {
576
+ return;
580
577
  }
578
+ this._handleTokenCreationUponPaste(pastedText, e);
581
579
  }
582
580
  _handleTokenCreationUponPaste(pastedText, e) {
583
581
  const separatedText = pastedText.split(/\r\n|\r|\n|\t/g).filter(t => !!t);
@@ -591,27 +589,19 @@ let MultiComboBox = MultiComboBox_1 = class MultiComboBox extends UI5Element {
591
589
  if (this.readonly || isFirefox()) {
592
590
  return;
593
591
  }
594
- // For Shift+Insert, try to use navigator.clipboard API
595
- // If it fails due to permissions, the browser's native paste will be blocked
596
- try {
597
- e.preventDefault();
598
- const pastedText = await navigator.clipboard.readText();
599
- if (pastedText) {
600
- // Use deprecated but still functional document.execCommand for cursor handling
601
- document.execCommand("insertText", true, pastedText);
602
- // Dispatch input event to ensure the component updates
603
- const inputEvent = new Event("input", {
604
- bubbles: true,
605
- cancelable: true,
606
- });
607
- this._innerInput.dispatchEvent(inputEvent);
608
- this._handleTokenCreationUponPaste(pastedText, e);
609
- }
610
- }
611
- catch (err) {
612
- // If clipboard API fails, silently ignore
613
- // Native paste won't work since we already prevented default
592
+ e.preventDefault();
593
+ const pastedText = await navigator.clipboard.readText();
594
+ document.execCommand("insertText", true, pastedText ?? "");
595
+ const inputEvent = new Event("input", {
596
+ bubbles: true,
597
+ cancelable: true,
598
+ });
599
+ // Dispatch it
600
+ this._innerInput.dispatchEvent(inputEvent);
601
+ if (!pastedText) {
602
+ return;
614
603
  }
604
+ this._handleTokenCreationUponPaste(pastedText, e);
615
605
  }
616
606
  _handleShow(e) {
617
607
  const items = this._getItems();
@@ -1409,13 +1399,6 @@ let MultiComboBox = MultiComboBox_1 = class MultiComboBox extends UI5Element {
1409
1399
  }
1410
1400
  if ((!this.shadowRoot.contains(e.relatedTarget) || focusIsGoingInPopover) && !this._deleting && !this._clearingValue) {
1411
1401
  this.focused = false;
1412
- if (!this.noValidation && this.value) {
1413
- this.value = "";
1414
- this._lastValue = "";
1415
- if (this.valueState === ValueState.Negative && this._effectiveValueState !== ValueState.Negative) {
1416
- this._updateValueState(this._effectiveValueState);
1417
- }
1418
- }
1419
1402
  if (this._lastValue !== this.value) {
1420
1403
  this._inputChange();
1421
1404
  }