@element-plus/nightly 0.0.20260328 → 0.0.20260330

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 (650) hide show
  1. package/dist/index.full.js +362 -14
  2. package/dist/index.full.min.js +6 -6
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +8 -8
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +363 -15
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/affix/src/affix.vue.d.ts +2 -2
  276. package/es/components/alert/src/alert.d.ts +1 -1
  277. package/es/components/alert/src/alert.vue.d.ts +1 -1
  278. package/es/components/anchor/src/anchor-link.vue.d.ts +1 -3
  279. package/es/components/anchor/src/anchor-link.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  280. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  281. package/es/components/anchor/src/anchor.vue.d.ts +1 -1
  282. package/es/components/autocomplete/src/autocomplete.d.ts +2 -2
  283. package/es/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  284. package/es/components/avatar/src/avatar.d.ts +1 -1
  285. package/es/components/avatar/src/avatar.vue.d.ts +1 -1
  286. package/es/components/badge/src/badge.d.ts +1 -1
  287. package/es/components/button/src/button-group.vue.d.ts +1 -1
  288. package/es/components/button/src/button.d.ts +1 -1
  289. package/es/components/button/src/button.vue.d.ts +3 -3
  290. package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
  291. package/es/components/carousel/src/carousel.vue.d.ts +3 -3
  292. package/es/components/cascader/src/cascader.d.ts +3 -3
  293. package/es/components/cascader/src/cascader.vue.d.ts +10 -10
  294. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +6 -1
  295. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  296. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  297. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  298. package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
  299. package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  300. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  301. package/es/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
  302. package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
  303. package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  304. package/es/components/checkbox/src/checkbox.d.ts +8 -8
  305. package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
  306. package/es/components/collapse/src/collapse.vue.d.ts +1 -1
  307. package/es/components/color-picker/src/color-picker.vue.d.ts +5 -5
  308. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  309. package/es/components/color-picker-panel/src/composables/use-predefine.mjs.map +1 -1
  310. package/es/components/date-picker/src/date-picker.d.ts +11 -11
  311. package/es/components/date-picker/src/props.d.ts +2 -2
  312. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +6 -6
  313. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  314. package/es/components/descriptions/src/description-item.d.ts +13 -13
  315. package/es/components/descriptions/src/description.mjs.map +1 -1
  316. package/es/components/dialog/src/dialog.vue.d.ts +6 -6
  317. package/es/components/dialog/src/use-dialog.d.ts +2 -2
  318. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  319. package/es/components/drawer/src/drawer.vue.d.ts +7 -7
  320. package/es/components/dropdown/src/dropdown-item.vue.d.ts +3 -9
  321. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  322. package/es/components/dropdown/src/dropdown.d.ts +3 -3
  323. package/es/components/dropdown/src/dropdown.vue.d.ts +65 -71
  324. package/es/components/form/src/form-item.vue_vue_type_script_setup_true_lang.mjs +11 -1
  325. package/es/components/form/src/form-item.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  326. package/es/components/form/src/form-item2.mjs.map +1 -1
  327. package/es/components/form/src/form.vue_vue_type_script_setup_true_lang.mjs +11 -3
  328. package/es/components/form/src/form.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  329. package/es/components/form/src/form2.mjs.map +1 -1
  330. package/es/components/form/src/types.d.ts +2 -1
  331. package/es/components/icon/src/icon.vue.d.ts +1 -3
  332. package/es/components/icon/src/icon.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  333. package/es/components/icon/src/icon2.mjs.map +1 -1
  334. package/es/components/image/src/image.d.ts +1 -1
  335. package/es/components/image/src/image.vue.d.ts +7 -7
  336. package/es/components/image-viewer/src/image-viewer.vue.d.ts +4 -4
  337. package/es/components/input/src/input.d.ts +1 -1
  338. package/es/components/input/src/input.vue.d.ts +4 -3
  339. package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +1 -0
  340. package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  341. package/es/components/input/src/input2.mjs.map +1 -1
  342. package/es/components/input-number/src/input-number.d.ts +1 -1
  343. package/es/components/input-number/src/input-number.vue.d.ts +6 -6
  344. package/es/components/input-tag/src/input-tag.d.ts +1 -1
  345. package/es/components/input-tag/src/input-tag.vue.d.ts +7 -7
  346. package/es/components/link/src/link.d.ts +1 -1
  347. package/es/components/link/src/link.vue.d.ts +1 -1
  348. package/es/components/mention/src/helper.d.ts +1 -1
  349. package/es/components/mention/src/helper.mjs.map +1 -1
  350. package/es/components/mention/src/mention.d.ts +8 -7
  351. package/es/components/mention/src/mention.mjs.map +1 -1
  352. package/es/components/mention/src/mention.vue.d.ts +48 -55
  353. package/es/components/mention/src/mention.vue_vue_type_script_setup_true_lang.mjs +212 -5
  354. package/es/components/mention/src/mention.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  355. package/es/components/mention/src/mention2.mjs.map +1 -1
  356. package/es/components/menu/src/menu.d.ts +2 -2
  357. package/es/components/message/src/message.d.ts +1 -1
  358. package/es/components/message/src/message.vue.d.ts +6 -6
  359. package/es/components/notification/src/notification.d.ts +1 -1
  360. package/es/components/notification/src/notification.vue.d.ts +4 -4
  361. package/es/components/pagination/src/pagination.d.ts +2 -2
  362. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  363. package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  364. package/es/components/popover/src/popover.d.ts +1 -1
  365. package/es/components/popover/src/popover.vue.d.ts +8 -8
  366. package/es/components/popper/src/composables/use-content.d.ts +8 -8
  367. package/es/components/popper/src/content.vue.d.ts +4 -4
  368. package/es/components/popper/src/popper.d.ts +2 -2
  369. package/es/components/popper/src/trigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  370. package/es/components/popper/src/trigger2.mjs.map +1 -1
  371. package/es/components/progress/src/progress.vue.d.ts +5 -5
  372. package/es/components/radio/src/radio-button.d.ts +3 -3
  373. package/es/components/radio/src/radio-button.vue.d.ts +3 -3
  374. package/es/components/radio/src/radio-group.vue.d.ts +4 -4
  375. package/es/components/radio/src/radio.d.ts +6 -6
  376. package/es/components/radio/src/radio.vue.d.ts +4 -4
  377. package/es/components/rate/src/rate.vue.d.ts +2 -2
  378. package/es/components/result/src/result.d.ts +1 -1
  379. package/es/components/row/src/row.vue.d.ts +1 -1
  380. package/es/components/segmented/index.d.ts +2 -2
  381. package/es/components/segmented/src/segmented.d.ts +1 -1
  382. package/es/components/segmented/src/segmented.vue.d.ts +1 -1
  383. package/es/components/select/src/option.d.ts +2 -2
  384. package/es/components/select/src/option.vue.d.ts +5 -5
  385. package/es/components/select/src/select.d.ts +4 -4
  386. package/es/components/select/src/select.vue.d.ts +75 -81
  387. package/es/components/select-v2/src/defaults.d.ts +2 -2
  388. package/es/components/select-v2/src/select.vue.d.ts +62 -68
  389. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  390. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  391. package/es/components/slider/src/slider.vue.d.ts +5 -5
  392. package/es/components/space/src/space.d.ts +1 -1
  393. package/es/components/statistic/src/statistic.vue.d.ts +1 -1
  394. package/es/components/steps/src/item.d.ts +1 -1
  395. package/es/components/steps/src/steps.d.ts +2 -2
  396. package/es/components/switch/src/switch.vue.d.ts +2 -2
  397. package/es/components/table/src/table-column/index.d.ts +22 -22
  398. package/es/components/table/src/table-header/index.d.ts +15 -15
  399. package/es/components/table/src/table.vue.d.ts +37 -37
  400. package/es/components/table-v2/src/table-grid.d.ts +1 -1
  401. package/es/components/table-v2/src/table-v2.d.ts +1 -1
  402. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  403. package/es/components/tabs/src/tabs.d.ts +1 -1
  404. package/es/components/tag/src/tag.d.ts +1 -1
  405. package/es/components/text/src/text.d.ts +1 -1
  406. package/es/components/text/src/text.vue.d.ts +1 -1
  407. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  408. package/es/components/time-picker/src/common/picker.vue.d.ts +10 -10
  409. package/es/components/time-picker/src/common/picker.vue_vue_type_script_setup_true_lang.mjs +4 -3
  410. package/es/components/time-picker/src/common/picker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  411. package/es/components/time-picker/src/common/props.d.ts +1 -1
  412. package/es/components/time-picker/src/time-picker.d.ts +8 -8
  413. package/es/components/time-select/src/time-select.vue.d.ts +4 -4
  414. package/es/components/timeline/src/timeline-item.d.ts +1 -1
  415. package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
  416. package/es/components/tooltip/src/content.vue.d.ts +8 -8
  417. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  418. package/es/components/tooltip/src/tooltip.vue.d.ts +12 -12
  419. package/es/components/tour/src/content.d.ts +1 -1
  420. package/es/components/tour/src/step.d.ts +1 -1
  421. package/es/components/tour/src/step.vue.d.ts +2 -2
  422. package/es/components/tour/src/tour.d.ts +1 -1
  423. package/es/components/tour/src/tour.vue.d.ts +8 -8
  424. package/es/components/transfer/src/composables/use-check.d.ts +4 -4
  425. package/es/components/transfer/src/composables/use-check.mjs.map +1 -1
  426. package/es/components/transfer/src/composables/use-computed-data.d.ts +3 -3
  427. package/es/components/transfer/src/composables/use-computed-data.mjs +1 -1
  428. package/es/components/transfer/src/composables/use-computed-data.mjs.map +1 -1
  429. package/es/components/transfer/src/composables/use-move.d.ts +2 -2
  430. package/es/components/transfer/src/composables/use-move.mjs.map +1 -1
  431. package/es/components/transfer/src/composables/use-props-alias.d.ts +4 -2
  432. package/es/components/transfer/src/composables/use-props-alias.mjs.map +1 -1
  433. package/es/components/transfer/src/transfer-panel.d.ts +11 -10
  434. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  435. package/es/components/transfer/src/transfer-panel.vue.d.ts +23 -25
  436. package/es/components/transfer/src/transfer-panel.vue_vue_type_script_setup_true_lang.mjs +48 -2
  437. package/es/components/transfer/src/transfer-panel.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  438. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  439. package/es/components/transfer/src/transfer.d.ts +9 -8
  440. package/es/components/transfer/src/transfer.mjs.map +1 -1
  441. package/es/components/transfer/src/transfer.vue.d.ts +32 -42
  442. package/es/components/transfer/src/transfer.vue_vue_type_script_setup_true_lang.mjs +73 -2
  443. package/es/components/transfer/src/transfer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  444. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  445. package/es/components/tree/src/tree.vue.d.ts +22 -28
  446. package/es/components/tree-select/src/tree-select.vue.d.ts +34 -34
  447. package/es/components/tree-v2/src/tree.vue.d.ts +2 -2
  448. package/es/components/upload/src/upload-content.mjs.map +1 -1
  449. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  450. package/es/components/upload/src/upload.vue.d.ts +2 -2
  451. package/es/components/virtual-list/src/builders/build-grid.d.ts +2 -2
  452. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -2
  453. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
  454. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -2
  455. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
  456. package/es/components/watermark/src/watermark.vue.d.ts +2 -2
  457. package/es/hooks/use-popper/index.d.ts +8 -8
  458. package/es/utils/vue/size.d.ts +1 -1
  459. package/es/utils/vue/vnode.d.ts +4 -4
  460. package/es/version.mjs +1 -1
  461. package/es/version.mjs.map +1 -1
  462. package/lib/components/affix/src/affix.vue.d.ts +2 -2
  463. package/lib/components/alert/src/alert.d.ts +1 -1
  464. package/lib/components/alert/src/alert.vue.d.ts +1 -1
  465. package/lib/components/anchor/src/anchor-link.vue.d.ts +1 -3
  466. package/lib/components/anchor/src/anchor-link.vue_vue_type_script_setup_true_lang.js.map +1 -1
  467. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  468. package/lib/components/anchor/src/anchor.vue.d.ts +1 -1
  469. package/lib/components/autocomplete/src/autocomplete.d.ts +2 -2
  470. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  471. package/lib/components/avatar/src/avatar.d.ts +1 -1
  472. package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
  473. package/lib/components/badge/src/badge.d.ts +1 -1
  474. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  475. package/lib/components/button/src/button.d.ts +1 -1
  476. package/lib/components/button/src/button.vue.d.ts +3 -3
  477. package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
  478. package/lib/components/carousel/src/carousel.vue.d.ts +3 -3
  479. package/lib/components/cascader/src/cascader.d.ts +3 -3
  480. package/lib/components/cascader/src/cascader.vue.d.ts +10 -10
  481. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +6 -1
  482. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  483. package/lib/components/cascader/src/cascader2.js.map +1 -1
  484. package/lib/components/cascader-panel/src/index.js.map +1 -1
  485. package/lib/components/cascader-panel/src/index.vue.d.ts +1 -1
  486. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
  487. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  488. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
  489. package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
  490. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  491. package/lib/components/checkbox/src/checkbox.d.ts +8 -8
  492. package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
  493. package/lib/components/collapse/src/collapse.vue.d.ts +1 -1
  494. package/lib/components/color-picker/src/color-picker.vue.d.ts +5 -5
  495. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  496. package/lib/components/color-picker-panel/src/composables/use-predefine.js.map +1 -1
  497. package/lib/components/date-picker/src/date-picker.d.ts +11 -11
  498. package/lib/components/date-picker/src/props.d.ts +2 -2
  499. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +6 -6
  500. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  501. package/lib/components/descriptions/src/description-item.d.ts +13 -13
  502. package/lib/components/descriptions/src/description.js.map +1 -1
  503. package/lib/components/dialog/src/dialog.vue.d.ts +6 -6
  504. package/lib/components/dialog/src/use-dialog.d.ts +2 -2
  505. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  506. package/lib/components/drawer/src/drawer.vue.d.ts +7 -7
  507. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +3 -9
  508. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  509. package/lib/components/dropdown/src/dropdown.d.ts +3 -3
  510. package/lib/components/dropdown/src/dropdown.vue.d.ts +65 -71
  511. package/lib/components/form/src/form-item.vue_vue_type_script_setup_true_lang.js +11 -1
  512. package/lib/components/form/src/form-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
  513. package/lib/components/form/src/form-item2.js.map +1 -1
  514. package/lib/components/form/src/form.vue_vue_type_script_setup_true_lang.js +11 -3
  515. package/lib/components/form/src/form.vue_vue_type_script_setup_true_lang.js.map +1 -1
  516. package/lib/components/form/src/form2.js.map +1 -1
  517. package/lib/components/form/src/types.d.ts +2 -1
  518. package/lib/components/icon/src/icon.vue.d.ts +1 -3
  519. package/lib/components/icon/src/icon.vue_vue_type_script_setup_true_lang.js.map +1 -1
  520. package/lib/components/icon/src/icon2.js.map +1 -1
  521. package/lib/components/image/src/image.d.ts +1 -1
  522. package/lib/components/image/src/image.vue.d.ts +7 -7
  523. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +4 -4
  524. package/lib/components/input/src/input.d.ts +1 -1
  525. package/lib/components/input/src/input.vue.d.ts +4 -3
  526. package/lib/components/input/src/input.vue_vue_type_script_setup_true_lang.js +1 -0
  527. package/lib/components/input/src/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
  528. package/lib/components/input/src/input2.js.map +1 -1
  529. package/lib/components/input-number/src/input-number.d.ts +1 -1
  530. package/lib/components/input-number/src/input-number.vue.d.ts +6 -6
  531. package/lib/components/input-tag/src/input-tag.d.ts +1 -1
  532. package/lib/components/input-tag/src/input-tag.vue.d.ts +7 -7
  533. package/lib/components/link/src/link.d.ts +1 -1
  534. package/lib/components/link/src/link.vue.d.ts +1 -1
  535. package/lib/components/mention/src/helper.d.ts +1 -1
  536. package/lib/components/mention/src/helper.js.map +1 -1
  537. package/lib/components/mention/src/mention.d.ts +8 -7
  538. package/lib/components/mention/src/mention.js.map +1 -1
  539. package/lib/components/mention/src/mention.vue.d.ts +48 -55
  540. package/lib/components/mention/src/mention.vue_vue_type_script_setup_true_lang.js +208 -1
  541. package/lib/components/mention/src/mention.vue_vue_type_script_setup_true_lang.js.map +1 -1
  542. package/lib/components/mention/src/mention2.js.map +1 -1
  543. package/lib/components/menu/src/menu.d.ts +2 -2
  544. package/lib/components/message/src/message.d.ts +1 -1
  545. package/lib/components/message/src/message.vue.d.ts +6 -6
  546. package/lib/components/notification/src/notification.d.ts +1 -1
  547. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  548. package/lib/components/pagination/src/pagination.d.ts +2 -2
  549. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  550. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  551. package/lib/components/popover/src/popover.d.ts +1 -1
  552. package/lib/components/popover/src/popover.vue.d.ts +8 -8
  553. package/lib/components/popper/src/composables/use-content.d.ts +8 -8
  554. package/lib/components/popper/src/content.vue.d.ts +4 -4
  555. package/lib/components/popper/src/popper.d.ts +2 -2
  556. package/lib/components/popper/src/trigger.vue_vue_type_script_setup_true_lang.js.map +1 -1
  557. package/lib/components/popper/src/trigger2.js.map +1 -1
  558. package/lib/components/progress/src/progress.vue.d.ts +5 -5
  559. package/lib/components/radio/src/radio-button.d.ts +3 -3
  560. package/lib/components/radio/src/radio-button.vue.d.ts +3 -3
  561. package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
  562. package/lib/components/radio/src/radio.d.ts +6 -6
  563. package/lib/components/radio/src/radio.vue.d.ts +4 -4
  564. package/lib/components/rate/src/rate.vue.d.ts +2 -2
  565. package/lib/components/result/src/result.d.ts +1 -1
  566. package/lib/components/row/src/row.vue.d.ts +1 -1
  567. package/lib/components/segmented/index.d.ts +2 -2
  568. package/lib/components/segmented/src/segmented.d.ts +1 -1
  569. package/lib/components/segmented/src/segmented.vue.d.ts +1 -1
  570. package/lib/components/select/src/option.d.ts +2 -2
  571. package/lib/components/select/src/option.vue.d.ts +5 -5
  572. package/lib/components/select/src/select.d.ts +4 -4
  573. package/lib/components/select/src/select.vue.d.ts +75 -81
  574. package/lib/components/select-v2/src/defaults.d.ts +2 -2
  575. package/lib/components/select-v2/src/select.vue.d.ts +62 -68
  576. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  577. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  578. package/lib/components/slider/src/slider.vue.d.ts +5 -5
  579. package/lib/components/space/src/space.d.ts +1 -1
  580. package/lib/components/statistic/src/statistic.vue.d.ts +1 -1
  581. package/lib/components/steps/src/item.d.ts +1 -1
  582. package/lib/components/steps/src/steps.d.ts +2 -2
  583. package/lib/components/switch/src/switch.vue.d.ts +2 -2
  584. package/lib/components/table/src/table-column/index.d.ts +22 -22
  585. package/lib/components/table/src/table-header/index.d.ts +15 -15
  586. package/lib/components/table/src/table.vue.d.ts +37 -37
  587. package/lib/components/table-v2/src/table-grid.d.ts +1 -1
  588. package/lib/components/table-v2/src/table-v2.d.ts +1 -1
  589. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  590. package/lib/components/tabs/src/tabs.d.ts +1 -1
  591. package/lib/components/tag/src/tag.d.ts +1 -1
  592. package/lib/components/text/src/text.d.ts +1 -1
  593. package/lib/components/text/src/text.vue.d.ts +1 -1
  594. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  595. package/lib/components/time-picker/src/common/picker.vue.d.ts +10 -10
  596. package/lib/components/time-picker/src/common/picker.vue_vue_type_script_setup_true_lang.js +4 -3
  597. package/lib/components/time-picker/src/common/picker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  598. package/lib/components/time-picker/src/common/props.d.ts +1 -1
  599. package/lib/components/time-picker/src/time-picker.d.ts +8 -8
  600. package/lib/components/time-select/src/time-select.vue.d.ts +4 -4
  601. package/lib/components/timeline/src/timeline-item.d.ts +1 -1
  602. package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
  603. package/lib/components/tooltip/src/content.vue.d.ts +8 -8
  604. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  605. package/lib/components/tooltip/src/tooltip.vue.d.ts +12 -12
  606. package/lib/components/tour/src/content.d.ts +1 -1
  607. package/lib/components/tour/src/step.d.ts +1 -1
  608. package/lib/components/tour/src/step.vue.d.ts +2 -2
  609. package/lib/components/tour/src/tour.d.ts +1 -1
  610. package/lib/components/tour/src/tour.vue.d.ts +8 -8
  611. package/lib/components/transfer/src/composables/use-check.d.ts +4 -4
  612. package/lib/components/transfer/src/composables/use-check.js.map +1 -1
  613. package/lib/components/transfer/src/composables/use-computed-data.d.ts +3 -3
  614. package/lib/components/transfer/src/composables/use-computed-data.js +1 -1
  615. package/lib/components/transfer/src/composables/use-computed-data.js.map +1 -1
  616. package/lib/components/transfer/src/composables/use-move.d.ts +2 -2
  617. package/lib/components/transfer/src/composables/use-move.js.map +1 -1
  618. package/lib/components/transfer/src/composables/use-props-alias.d.ts +4 -2
  619. package/lib/components/transfer/src/composables/use-props-alias.js.map +1 -1
  620. package/lib/components/transfer/src/transfer-panel.d.ts +11 -10
  621. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  622. package/lib/components/transfer/src/transfer-panel.vue.d.ts +23 -25
  623. package/lib/components/transfer/src/transfer-panel.vue_vue_type_script_setup_true_lang.js +47 -1
  624. package/lib/components/transfer/src/transfer-panel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  625. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  626. package/lib/components/transfer/src/transfer.d.ts +9 -8
  627. package/lib/components/transfer/src/transfer.js.map +1 -1
  628. package/lib/components/transfer/src/transfer.vue.d.ts +32 -42
  629. package/lib/components/transfer/src/transfer.vue_vue_type_script_setup_true_lang.js +72 -1
  630. package/lib/components/transfer/src/transfer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  631. package/lib/components/transfer/src/transfer2.js.map +1 -1
  632. package/lib/components/tree/src/tree.vue.d.ts +22 -28
  633. package/lib/components/tree-select/src/tree-select.vue.d.ts +34 -34
  634. package/lib/components/tree-v2/src/tree.vue.d.ts +2 -2
  635. package/lib/components/upload/src/upload-content.js.map +1 -1
  636. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  637. package/lib/components/upload/src/upload.vue.d.ts +2 -2
  638. package/lib/components/virtual-list/src/builders/build-grid.d.ts +2 -2
  639. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -2
  640. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
  641. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -2
  642. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
  643. package/lib/components/watermark/src/watermark.vue.d.ts +2 -2
  644. package/lib/hooks/use-popper/index.d.ts +8 -8
  645. package/lib/utils/vue/size.d.ts +1 -1
  646. package/lib/utils/vue/vnode.d.ts +4 -4
  647. package/lib/version.js +1 -1
  648. package/lib/version.js.map +1 -1
  649. package/package.json +2 -2
  650. package/web-types.json +1 -1
@@ -18,8 +18,8 @@ declare const __VLS_base: vue.DefineComponent<InputNumberProps, {
18
18
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
19
19
  blur: (e: FocusEvent) => void;
20
20
  focus: (e: FocusEvent) => void;
21
- "update:modelValue": (val: number | undefined) => void;
22
21
  change: (cur: number | undefined, prev: number | undefined) => void;
22
+ "update:modelValue": (val: number | undefined) => void;
23
23
  input: (val: number | null | undefined) => void;
24
24
  }, string, vue.PublicProps, Readonly<InputNumberProps> & Readonly<{
25
25
  onBlur?: ((e: FocusEvent) => any) | undefined;
@@ -29,18 +29,18 @@ declare const __VLS_base: vue.DefineComponent<InputNumberProps, {
29
29
  "onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
30
30
  }>, {
31
31
  disabled: boolean;
32
- id: string;
33
32
  validateEvent: boolean;
33
+ id: string;
34
+ readonly: boolean;
35
+ inputmode: "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal";
36
+ align: "left" | "right" | "center";
34
37
  min: number;
35
38
  max: number;
36
- readonly: boolean;
37
- inputmode: "none" | "text" | "email" | "search" | "tel" | "url" | "numeric" | "decimal";
38
39
  step: number;
40
+ valueOnClear: "min" | "max" | number | null;
39
41
  stepStrictly: boolean;
40
42
  controls: boolean;
41
43
  controlsPosition: "" | "right";
42
- valueOnClear: "min" | "max" | number | null;
43
- align: "left" | "right" | "center";
44
44
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
45
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
46
  declare const _default: typeof __VLS_export;
@@ -130,7 +130,7 @@ declare const inputTagProps: {
130
130
  readonly max: NumberConstructor;
131
131
  readonly tagType: {
132
132
  readonly default: "info";
133
- readonly type: vue.PropType<EpPropMergeType<StringConstructor, "info" | "primary" | "success" | "warning" | "danger", unknown>>;
133
+ readonly type: vue.PropType<EpPropMergeType<StringConstructor, "primary" | "success" | "info" | "warning" | "danger", unknown>>;
134
134
  readonly required: false;
135
135
  readonly validator: ((val: unknown) => boolean) | undefined;
136
136
  readonly __epPropKey: true;
@@ -28,8 +28,8 @@ declare const __VLS_base: vue.DefineComponent<InputTagProps, {
28
28
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
29
29
  blur: (evt: FocusEvent) => void;
30
30
  focus: (evt: FocusEvent) => void;
31
- "update:modelValue": (value?: string[] | undefined) => void;
32
31
  change: (value?: string[] | undefined) => void;
32
+ "update:modelValue": (value?: string[] | undefined) => void;
33
33
  clear: () => void;
34
34
  input: (value: string) => void;
35
35
  "add-tag": (value: string | string[]) => void;
@@ -47,18 +47,18 @@ declare const __VLS_base: vue.DefineComponent<InputTagProps, {
47
47
  "onDrag-tag"?: ((oldIndex: number, newIndex: number, value: string) => any) | undefined;
48
48
  }>, {
49
49
  disabled: boolean;
50
- id: string;
51
- tabindex: string | number;
52
50
  validateEvent: boolean;
51
+ id: string;
53
52
  autocomplete: string;
54
53
  clearIcon: IconPropType;
55
- tagType: "info" | "primary" | "success" | "warning" | "danger";
56
- tagEffect: "dark" | "light" | "plain";
54
+ tabindex: string | number;
57
55
  effect: PopperEffect;
58
56
  trigger: "Enter" | "Space";
59
- delimiter: string | RegExp;
60
- saveOnBlur: boolean;
61
57
  maxCollapseTags: number;
58
+ tagType: "primary" | "success" | "info" | "warning" | "danger";
59
+ tagEffect: "dark" | "light" | "plain";
60
+ saveOnBlur: boolean;
61
+ delimiter: string | RegExp;
62
62
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
63
63
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
64
64
  declare const _default: typeof __VLS_export;
@@ -36,7 +36,7 @@ interface LinkProps {
36
36
  * @deprecated Removed after 3.0.0, Use `LinkProps` instead.
37
37
  */
38
38
  declare const linkProps: {
39
- readonly type: EpPropFinalized<StringConstructor, "default" | "info" | "primary" | "success" | "warning" | "danger", unknown, undefined, boolean>;
39
+ readonly type: EpPropFinalized<StringConstructor, "default" | "primary" | "success" | "info" | "warning" | "danger", unknown, undefined, boolean>;
40
40
  readonly underline: EpPropFinalized<readonly [BooleanConstructor, StringConstructor], boolean | "always" | "never" | "hover", unknown, undefined, boolean>;
41
41
  readonly disabled: BooleanConstructor;
42
42
  readonly href: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -15,8 +15,8 @@ declare const __VLS_base: vue.DefineComponent<LinkProps, {}, {}, {}, {}, vue.Com
15
15
  }>, {
16
16
  type: "primary" | "success" | "warning" | "info" | "danger" | "default";
17
17
  underline: boolean | "always" | "never" | "hover";
18
- href: string;
19
18
  target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
19
+ href: string;
20
20
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import { MentionOption } from "./types.js";
2
2
 
3
3
  //#region ../../packages/components/mention/src/helper.d.ts
4
- declare const filterOption: (pattern: string, option: MentionOption) => boolean;
4
+ declare const filterOption: <T extends MentionOption = MentionOption>(pattern: string, option: T & MentionOption) => boolean;
5
5
  //#endregion
6
6
  export { filterOption };
@@ -1 +1 @@
1
- {"version":3,"file":"helper.mjs","names":[],"sources":["../../../../../../packages/components/mention/src/helper.ts"],"sourcesContent":["import { ensureArray, isFirefox } from '@element-plus/utils'\n\nimport type { MentionCtx, MentionOption } from './types'\n\nexport const filterOption = (\n pattern: string,\n option: MentionOption\n): boolean => {\n const lowerCase = pattern.toLowerCase()\n const label = option.label || option.value || ''\n return label.toLowerCase().includes(lowerCase)\n}\n\nexport const getMentionCtx = (\n inputEl: HTMLInputElement | HTMLTextAreaElement,\n prefix: string | string[],\n split: string\n) => {\n const { selectionEnd } = inputEl\n if (selectionEnd === null) return\n const inputValue = inputEl.value\n const prefixArray = ensureArray(prefix)\n let splitIndex = -1\n let mentionCtx: MentionCtx | undefined\n for (let i = selectionEnd - 1; i >= 0; --i) {\n const char = inputValue[i]\n if (\n splitIndex === -1 &&\n (char === split || char === '\\n' || char === '\\r')\n ) {\n splitIndex = i\n continue\n }\n if (prefixArray.includes(char)) {\n const end = splitIndex === -1 ? selectionEnd : splitIndex\n const pattern = inputValue.slice(i + 1, end)\n mentionCtx = {\n pattern,\n start: i + 1,\n end,\n prefix: char,\n prefixIndex: i,\n splitIndex,\n selectionEnd,\n }\n break\n }\n }\n return mentionCtx\n}\n\n/**\n * fork from textarea-caret-position\n * https://github.com/component/textarea-caret-position\n * The MIT License (MIT)\n * Copyright (c) 2015 Jonathan Ong me@jongleberry.com\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport const getCursorPosition = (\n element: HTMLInputElement | HTMLTextAreaElement,\n options = {\n debug: false,\n useSelectionEnd: false,\n }\n) => {\n const selectionStart =\n element.selectionStart !== null ? element.selectionStart : 0\n const selectionEnd = element.selectionEnd !== null ? element.selectionEnd : 0\n const position = options.useSelectionEnd ? selectionEnd : selectionStart\n // We'll copy the properties below into the mirror div.\n // Note that some browsers, such as Firefox, do not concatenate properties\n // into their shorthand (e.g. padding-top, padding-bottom etc. -> padding),\n // so we have to list every single property explicitly.\n const properties: string[] = [\n 'direction', // RTL support\n 'boxSizing',\n 'width', // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does\n 'height',\n 'overflowX',\n 'overflowY', // copy the scrollbar for IE\n 'borderTopWidth',\n 'borderRightWidth',\n 'borderBottomWidth',\n 'borderLeftWidth',\n 'borderStyle',\n 'paddingTop',\n 'paddingRight',\n 'paddingBottom',\n 'paddingLeft',\n // https://developer.mozilla.org/en-US/docs/Web/CSS/font\n 'fontStyle',\n 'fontVariant',\n 'fontWeight',\n 'fontStretch',\n 'fontSize',\n 'fontSizeAdjust',\n 'lineHeight',\n 'fontFamily',\n 'textAlign',\n 'textTransform',\n 'textIndent',\n 'textDecoration', // might not make a difference, but better be safe\n 'letterSpacing',\n 'wordSpacing',\n 'tabSize',\n 'MozTabSize',\n ]\n\n if (options.debug) {\n const el = document.querySelector(\n '#input-textarea-caret-position-mirror-div'\n )\n if (el?.parentNode) el.parentNode.removeChild(el)\n }\n\n // The mirror div will replicate the textareas style\n const div = document.createElement('div')\n div.id = 'input-textarea-caret-position-mirror-div'\n document.body.appendChild(div)\n\n const style = div.style\n const computed = window.getComputedStyle(element)\n\n const isInput = element.nodeName === 'INPUT'\n\n // Default textarea styles\n style.whiteSpace = isInput ? 'nowrap' : 'pre-wrap'\n if (!isInput) style.wordWrap = 'break-word' // only for textarea-s\n\n // Position off-screen\n style.position = 'absolute' // required to return coordinates properly\n if (!options.debug) style.visibility = 'hidden' // not 'display: none' because we want rendering\n\n // Transfer the element's properties to the div\n properties.forEach((prop) => {\n if (isInput && prop === 'lineHeight') {\n // Special case for <input>s because text is rendered centered and line height may be != height\n if (computed.boxSizing === 'border-box') {\n const height = Number.parseInt(computed.height as string)\n const outerHeight =\n Number.parseInt(computed.paddingTop as string) +\n Number.parseInt(computed.paddingBottom as string) +\n Number.parseInt(computed.borderTopWidth as string) +\n Number.parseInt(computed.borderBottomWidth as string)\n const targetHeight =\n outerHeight + Number.parseInt(computed.lineHeight as string)\n if (height > targetHeight) {\n style.lineHeight = `${height - outerHeight}px`\n } else if (height === targetHeight) {\n style.lineHeight = computed.lineHeight\n } else {\n style.lineHeight = '0'\n }\n } else {\n style.lineHeight = computed.height\n }\n } else {\n style[prop as any] = computed[prop as any]\n }\n })\n\n if (isFirefox()) {\n // Firefox lies about the overflow property for textareas: https://bugzilla.mozilla.org/show_bug.cgi?id=984275\n if (element.scrollHeight > Number.parseInt(computed.height as string)) {\n style.overflowY = 'scroll'\n }\n } else {\n style.overflow = 'hidden' // for Chrome to not render a scrollbar; IE keeps overflowY = 'scroll'\n }\n\n div.textContent = element.value.slice(0, Math.max(0, position))\n // The second special handling for input type=\"text\" vs textarea:\n // spaces need to be replaced with non-breaking spaces - http://stackoverflow.com/a/13402035/1269037\n if (isInput && div.textContent) {\n div.textContent = div.textContent.replace(/\\s/g, '\\u00A0')\n }\n\n const span = document.createElement('span')\n // Wrapping must be replicated *exactly*, including when a long word gets\n // onto the next line, with whitespace at the end of the line before (#7).\n // The *only* reliable way to do that is to copy the *entire* rest of the\n // textareas content into the <span> created at the caret position.\n // For inputs, just '.' would be enough, but no need to bother.\n span.textContent = element.value.slice(Math.max(0, position)) || '.' // || because a completely empty faux span doesn't render at all\n span.style.position = 'relative'\n span.style.left = `${-element.scrollLeft}px`\n span.style.top = `${-element.scrollTop}px`\n div.appendChild(span)\n\n const relativePosition = {\n top: span.offsetTop + Number.parseInt(computed.borderTopWidth as string),\n left: span.offsetLeft + Number.parseInt(computed.borderLeftWidth as string),\n // We don't use line-height since it may be too large for position. Eg. 34px\n // for input\n height: Number.parseInt(computed.fontSize as string) * 1.5,\n }\n\n if (options.debug) {\n span.style.backgroundColor = '#aaa'\n } else {\n document.body.removeChild(div)\n }\n\n if (relativePosition.left >= element.clientWidth) {\n relativePosition.left = element.clientWidth\n }\n return relativePosition\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"helper.mjs","names":[],"sources":["../../../../../../packages/components/mention/src/helper.ts"],"sourcesContent":["import { ensureArray, isFirefox } from '@element-plus/utils'\n\nimport type { MentionCtx, MentionOption } from './types'\n\nexport const filterOption = <T extends MentionOption = MentionOption>(\n pattern: string,\n option: T & MentionOption\n): boolean => {\n const lowerCase = pattern.toLowerCase()\n const label = option.label || option.value || ''\n return label.toLowerCase().includes(lowerCase)\n}\n\nexport const getMentionCtx = (\n inputEl: HTMLInputElement | HTMLTextAreaElement,\n prefix: string | string[],\n split: string\n) => {\n const { selectionEnd } = inputEl\n if (selectionEnd === null) return\n const inputValue = inputEl.value\n const prefixArray = ensureArray(prefix)\n let splitIndex = -1\n let mentionCtx: MentionCtx | undefined\n for (let i = selectionEnd - 1; i >= 0; --i) {\n const char = inputValue[i]\n if (\n splitIndex === -1 &&\n (char === split || char === '\\n' || char === '\\r')\n ) {\n splitIndex = i\n continue\n }\n if (prefixArray.includes(char)) {\n const end = splitIndex === -1 ? selectionEnd : splitIndex\n const pattern = inputValue.slice(i + 1, end)\n mentionCtx = {\n pattern,\n start: i + 1,\n end,\n prefix: char,\n prefixIndex: i,\n splitIndex,\n selectionEnd,\n }\n break\n }\n }\n return mentionCtx\n}\n\n/**\n * fork from textarea-caret-position\n * https://github.com/component/textarea-caret-position\n * The MIT License (MIT)\n * Copyright (c) 2015 Jonathan Ong me@jongleberry.com\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport const getCursorPosition = (\n element: HTMLInputElement | HTMLTextAreaElement,\n options = {\n debug: false,\n useSelectionEnd: false,\n }\n) => {\n const selectionStart =\n element.selectionStart !== null ? element.selectionStart : 0\n const selectionEnd = element.selectionEnd !== null ? element.selectionEnd : 0\n const position = options.useSelectionEnd ? selectionEnd : selectionStart\n // We'll copy the properties below into the mirror div.\n // Note that some browsers, such as Firefox, do not concatenate properties\n // into their shorthand (e.g. padding-top, padding-bottom etc. -> padding),\n // so we have to list every single property explicitly.\n const properties: string[] = [\n 'direction', // RTL support\n 'boxSizing',\n 'width', // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does\n 'height',\n 'overflowX',\n 'overflowY', // copy the scrollbar for IE\n 'borderTopWidth',\n 'borderRightWidth',\n 'borderBottomWidth',\n 'borderLeftWidth',\n 'borderStyle',\n 'paddingTop',\n 'paddingRight',\n 'paddingBottom',\n 'paddingLeft',\n // https://developer.mozilla.org/en-US/docs/Web/CSS/font\n 'fontStyle',\n 'fontVariant',\n 'fontWeight',\n 'fontStretch',\n 'fontSize',\n 'fontSizeAdjust',\n 'lineHeight',\n 'fontFamily',\n 'textAlign',\n 'textTransform',\n 'textIndent',\n 'textDecoration', // might not make a difference, but better be safe\n 'letterSpacing',\n 'wordSpacing',\n 'tabSize',\n 'MozTabSize',\n ]\n\n if (options.debug) {\n const el = document.querySelector(\n '#input-textarea-caret-position-mirror-div'\n )\n if (el?.parentNode) el.parentNode.removeChild(el)\n }\n\n // The mirror div will replicate the textareas style\n const div = document.createElement('div')\n div.id = 'input-textarea-caret-position-mirror-div'\n document.body.appendChild(div)\n\n const style = div.style\n const computed = window.getComputedStyle(element)\n\n const isInput = element.nodeName === 'INPUT'\n\n // Default textarea styles\n style.whiteSpace = isInput ? 'nowrap' : 'pre-wrap'\n if (!isInput) style.wordWrap = 'break-word' // only for textarea-s\n\n // Position off-screen\n style.position = 'absolute' // required to return coordinates properly\n if (!options.debug) style.visibility = 'hidden' // not 'display: none' because we want rendering\n\n // Transfer the element's properties to the div\n properties.forEach((prop) => {\n if (isInput && prop === 'lineHeight') {\n // Special case for <input>s because text is rendered centered and line height may be != height\n if (computed.boxSizing === 'border-box') {\n const height = Number.parseInt(computed.height as string)\n const outerHeight =\n Number.parseInt(computed.paddingTop as string) +\n Number.parseInt(computed.paddingBottom as string) +\n Number.parseInt(computed.borderTopWidth as string) +\n Number.parseInt(computed.borderBottomWidth as string)\n const targetHeight =\n outerHeight + Number.parseInt(computed.lineHeight as string)\n if (height > targetHeight) {\n style.lineHeight = `${height - outerHeight}px`\n } else if (height === targetHeight) {\n style.lineHeight = computed.lineHeight\n } else {\n style.lineHeight = '0'\n }\n } else {\n style.lineHeight = computed.height\n }\n } else {\n style[prop as any] = computed[prop as any]\n }\n })\n\n if (isFirefox()) {\n // Firefox lies about the overflow property for textareas: https://bugzilla.mozilla.org/show_bug.cgi?id=984275\n if (element.scrollHeight > Number.parseInt(computed.height as string)) {\n style.overflowY = 'scroll'\n }\n } else {\n style.overflow = 'hidden' // for Chrome to not render a scrollbar; IE keeps overflowY = 'scroll'\n }\n\n div.textContent = element.value.slice(0, Math.max(0, position))\n // The second special handling for input type=\"text\" vs textarea:\n // spaces need to be replaced with non-breaking spaces - http://stackoverflow.com/a/13402035/1269037\n if (isInput && div.textContent) {\n div.textContent = div.textContent.replace(/\\s/g, '\\u00A0')\n }\n\n const span = document.createElement('span')\n // Wrapping must be replicated *exactly*, including when a long word gets\n // onto the next line, with whitespace at the end of the line before (#7).\n // The *only* reliable way to do that is to copy the *entire* rest of the\n // textareas content into the <span> created at the caret position.\n // For inputs, just '.' would be enough, but no need to bother.\n span.textContent = element.value.slice(Math.max(0, position)) || '.' // || because a completely empty faux span doesn't render at all\n span.style.position = 'relative'\n span.style.left = `${-element.scrollLeft}px`\n span.style.top = `${-element.scrollTop}px`\n div.appendChild(span)\n\n const relativePosition = {\n top: span.offsetTop + Number.parseInt(computed.borderTopWidth as string),\n left: span.offsetLeft + Number.parseInt(computed.borderLeftWidth as string),\n // We don't use line-height since it may be too large for position. Eg. 34px\n // for input\n height: Number.parseInt(computed.fontSize as string) * 1.5,\n }\n\n if (options.debug) {\n span.style.backgroundColor = '#aaa'\n } else {\n document.body.removeChild(div)\n }\n\n if (relativePosition.left >= element.clientWidth) {\n relativePosition.left = element.clientWidth\n }\n return relativePosition\n}\n"],"mappings":"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"}
@@ -10,14 +10,15 @@ import { filterOption } from "./helper.js";
10
10
  import { _default } from "./mention.vue.js";
11
11
  import { Options } from "../../popper/index.js";
12
12
  import * as vue from "vue";
13
- import { ExtractPublicPropTypes } from "vue";
13
+ import { ComponentInstance, ExtractPublicPropTypes } from "vue";
14
+ import { ComponentExposed } from "vue-component-type-helpers";
14
15
 
15
16
  //#region ../../packages/components/mention/src/mention.d.ts
16
- interface MentionProps extends InputProps {
17
+ interface MentionProps<T extends MentionOption = MentionOption> extends InputProps {
17
18
  /**
18
19
  * @description mention options list
19
20
  */
20
- options?: MentionOption[];
21
+ options?: T[];
21
22
  /**
22
23
  * @description prefix character to trigger mentions. The string length must be exactly 1.
23
24
  */
@@ -29,7 +30,7 @@ interface MentionProps extends InputProps {
29
30
  /**
30
31
  * @description customize filter option logic.
31
32
  */
32
- filterOption?: false | typeof filterOption;
33
+ filterOption?: false | typeof filterOption<T>;
33
34
  /**
34
35
  * @description set popup placement
35
36
  */
@@ -82,7 +83,7 @@ declare const mentionProps: {
82
83
  options: EpPropFinalized<(new (...args: any[]) => MentionOption[]) | (() => MentionOption[]) | (((new (...args: any[]) => MentionOption[]) | (() => MentionOption[])) | null)[], unknown, unknown, () => never[], boolean>;
83
84
  prefix: EpPropFinalized<(new (...args: any[]) => string | string[]) | (() => string | string[]) | (((new (...args: any[]) => string | string[]) | (() => string | string[])) | null)[], unknown, unknown, string, boolean>;
84
85
  split: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
85
- filterOption: EpPropFinalized<(new (...args: any[]) => false | ((pattern: string, option: MentionOption) => boolean)) | (() => false | ((pattern: string, option: MentionOption) => boolean)) | (((new (...args: any[]) => false | ((pattern: string, option: MentionOption) => boolean)) | (() => false | ((pattern: string, option: MentionOption) => boolean))) | null)[], unknown, unknown, () => (pattern: string, option: MentionOption) => boolean, boolean>;
86
+ filterOption: EpPropFinalized<(new (...args: any[]) => false | (<T extends MentionOption = MentionOption>(pattern: string, option: T & MentionOption) => boolean)) | (() => false | (<T extends MentionOption = MentionOption>(pattern: string, option: T & MentionOption) => boolean)) | (((new (...args: any[]) => false | (<T extends MentionOption = MentionOption>(pattern: string, option: T & MentionOption) => boolean)) | (() => false | (<T extends MentionOption = MentionOption>(pattern: string, option: T & MentionOption) => boolean))) | null)[], unknown, unknown, () => <T extends MentionOption = MentionOption>(pattern: string, option: T & MentionOption) => boolean, boolean>;
86
87
  placement: EpPropFinalized<(new (...args: any[]) => "bottom" | "top") | (() => "bottom" | "top") | (((new (...args: any[]) => "bottom" | "top") | (() => "bottom" | "top")) | null)[], unknown, unknown, string, boolean>;
87
88
  showArrow: BooleanConstructor;
88
89
  offset: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
@@ -205,7 +206,7 @@ declare const mentionProps: {
205
206
  };
206
207
  popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => Partial<Options>, boolean>;
207
208
  props: EpPropFinalized<(new (...args: any[]) => MentionOptionProps) | (() => MentionOptionProps) | (((new (...args: any[]) => MentionOptionProps) | (() => MentionOptionProps)) | null)[], unknown, unknown, () => Required<MentionOptionProps>, boolean>;
208
- inputmode: EpPropFinalized<(new (...args: any[]) => "none" | "text" | "email" | "search" | "tel" | "url" | "numeric" | "decimal") | (() => "none" | "text" | "email" | "search" | "tel" | "url" | "numeric" | "decimal" | undefined) | (((new (...args: any[]) => "none" | "text" | "email" | "search" | "tel" | "url" | "numeric" | "decimal") | (() => "none" | "text" | "email" | "search" | "tel" | "url" | "numeric" | "decimal" | undefined)) | null)[], unknown, unknown, undefined, boolean>;
209
+ inputmode: EpPropFinalized<(new (...args: any[]) => "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined) | (((new (...args: any[]) => "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined)) | null)[], unknown, unknown, undefined, boolean>;
209
210
  name: StringConstructor;
210
211
  ariaLabel: StringConstructor;
211
212
  id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
@@ -313,7 +314,7 @@ type MentionEmits = typeof mentionEmits;
313
314
  * @deprecated Removed after 3.0.0, Use `MentionProps` instead.
314
315
  */
315
316
  type MentionPropsPublic = ExtractPublicPropTypes<typeof mentionProps>;
316
- type MentionInstance = InstanceType<typeof _default> & unknown;
317
+ type MentionInstance = ComponentInstance<typeof _default> & ComponentExposed<typeof _default>;
317
318
  type MentionOptionProps = {
318
319
  value?: string;
319
320
  label?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"mention.mjs","names":[],"sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isObject,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\nimport type { InputProps } from '@element-plus/components/input'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface MentionProps extends InputProps {\n /**\n * @description mention options list\n */\n options?: MentionOption[]\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix?: string | string[]\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split?: string\n /**\n * @description customize filter option logic.\n */\n filterOption?: false | typeof filterOption\n /**\n * @description set popup placement\n */\n placement?: 'bottom' | 'top'\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow?: boolean\n /**\n * @description offset of the dropdown panel\n */\n offset?: number\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole?: boolean\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole?: (pattern: string, prefix: string) => boolean\n /**\n * @description input value\n */\n modelValue?: string\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading?: boolean\n /**\n * @description custom class name for dropdown panel\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for dropdown panel\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n /**\n * @description configuration options\n */\n props?: MentionOptionProps\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for dropdown panel\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description configuration options\n */\n props: {\n type: definePropType<MentionOptionProps>(Object),\n default: () => mentionDefaultProps,\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n 'whole-remove': (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n input: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isObject(option) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport type MentionPropsPublic = ExtractPublicPropTypes<typeof mentionProps>\nexport type MentionInstance = InstanceType<typeof Mention> & unknown\n\nexport type { MentionOption } from './types'\n\nexport type MentionOptionProps = {\n value?: string\n label?: string\n disabled?: string\n [key: string]: string | undefined\n}\n\nexport const mentionDefaultProps: Required<MentionOptionProps> = {\n value: 'value',\n label: 'label',\n disabled: 'disabled',\n}\n"],"mappings":";;;;;;;;;;;AAqFA,MAAa,eAAe,WAAW;CACrC,GAAG;CAIH,SAAS;EACP,MAAM,eAAgC,MAAM;EAC5C,eAAe,EAAE;EAClB;CAID,QAAQ;EACN,MAAM,eAAkC,CAAC,QAAQ,MAAM,CAAC;EACxD,SAAS;EACT,YAAY,QAA2B;AACrC,OAAI,SAAS,IAAI,CAAE,QAAO,IAAI,WAAW;AACzC,UAAO,IAAI,OAAO,MAAM,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;;EAEzD;CAID,OAAO;EACL,MAAM;EACN,SAAS;EACT,YAAY,QAAgB,IAAI,WAAW;EAC5C;CAID,cAAc;EACZ,MAAM,eAA4C,CAAC,SAAS,SAAS,CAAC;EACtE,eAAe;EACf,YAAY,QAAQ;AAClB,OAAI,QAAQ,MAAO,QAAO;AAC1B,UAAO,WAAW,IAAI;;EAEzB;CAID,WAAW;EACT,MAAM,eAAiC,OAAO;EAC9C,SAAS;EACV;CAID,WAAW;CAIX,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CAID,OAAO;CAIP,cAAc,EACZ,MAAM,eACJ,SACD,EACF;CAID,YAAY;CAIZ,SAAS;CAIT,aAAa,uBAAuB;CAIpC,aAAa,uBAAuB;CAIpC,eAAe;EACb,MAAM,eAAiC,OAAO;EAC9C,gBAAgB,EAAE;EACnB;CAID,OAAO;EACL,MAAM,eAAmC,OAAO;EAChD,eAAe;EAChB;CACF,CAAC;AAEF,MAAa,eAAe;EACzB,sBAAsB,UAAkB,SAAS,MAAM;CACxD,iBAAiB,SAAiB,WAChC,SAAS,QAAQ,IAAI,SAAS,OAAO;CACvC,QAAQ,UAAkB,SAAS,MAAM;CACzC,SAAS,SAAiB,WACxB,SAAS,QAAQ,IAAI,SAAS,OAAO;CACvC,SAAS,QAAuB,WAC9B,SAAS,OAAO,IAAI,SAAS,OAAO;CACtC,QAAQ,QAAoB,eAAe;CAC3C,OAAO,QAAoB,eAAe;CAC3C;AAmBD,MAAa,sBAAoD;CAC/D,OAAO;CACP,OAAO;CACP,UAAU;CACX"}
1
+ {"version":3,"file":"mention.mjs","names":[],"sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isObject,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\n\nimport type { ComponentInstance, ExtractPublicPropTypes } from 'vue'\nimport type { ComponentExposed } from 'vue-component-type-helpers'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\nimport type { InputProps } from '@element-plus/components/input'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface MentionProps<\n T extends MentionOption = MentionOption,\n> extends InputProps {\n /**\n * @description mention options list\n */\n options?: T[]\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix?: string | string[]\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split?: string\n /**\n * @description customize filter option logic.\n */\n filterOption?: false | typeof filterOption<T>\n /**\n * @description set popup placement\n */\n placement?: 'bottom' | 'top'\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow?: boolean\n /**\n * @description offset of the dropdown panel\n */\n offset?: number\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole?: boolean\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole?: (pattern: string, prefix: string) => boolean\n /**\n * @description input value\n */\n modelValue?: string\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading?: boolean\n /**\n * @description custom class name for dropdown panel\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for dropdown panel\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n /**\n * @description configuration options\n */\n props?: MentionOptionProps\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for dropdown panel\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description configuration options\n */\n props: {\n type: definePropType<MentionOptionProps>(Object),\n default: () => mentionDefaultProps,\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n 'whole-remove': (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n input: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isObject(option) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport type MentionPropsPublic = ExtractPublicPropTypes<typeof mentionProps>\nexport type MentionInstance = ComponentInstance<typeof Mention> &\n ComponentExposed<typeof Mention>\n\nexport type { MentionOption } from './types'\n\nexport type MentionOptionProps = {\n value?: string\n label?: string\n disabled?: string\n [key: string]: string | undefined\n}\n\nexport const mentionDefaultProps: Required<MentionOptionProps> = {\n value: 'value',\n label: 'label',\n disabled: 'disabled',\n}\n"],"mappings":";;;;;;;;;;;AAwFA,MAAa,eAAe,WAAW;CACrC,GAAG;CAIH,SAAS;EACP,MAAM,eAAgC,MAAM;EAC5C,eAAe,EAAE;EAClB;CAID,QAAQ;EACN,MAAM,eAAkC,CAAC,QAAQ,MAAM,CAAC;EACxD,SAAS;EACT,YAAY,QAA2B;AACrC,OAAI,SAAS,IAAI,CAAE,QAAO,IAAI,WAAW;AACzC,UAAO,IAAI,OAAO,MAAM,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;;EAEzD;CAID,OAAO;EACL,MAAM;EACN,SAAS;EACT,YAAY,QAAgB,IAAI,WAAW;EAC5C;CAID,cAAc;EACZ,MAAM,eAA4C,CAAC,SAAS,SAAS,CAAC;EACtE,eAAe;EACf,YAAY,QAAQ;AAClB,OAAI,QAAQ,MAAO,QAAO;AAC1B,UAAO,WAAW,IAAI;;EAEzB;CAID,WAAW;EACT,MAAM,eAAiC,OAAO;EAC9C,SAAS;EACV;CAID,WAAW;CAIX,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CAID,OAAO;CAIP,cAAc,EACZ,MAAM,eACJ,SACD,EACF;CAID,YAAY;CAIZ,SAAS;CAIT,aAAa,uBAAuB;CAIpC,aAAa,uBAAuB;CAIpC,eAAe;EACb,MAAM,eAAiC,OAAO;EAC9C,gBAAgB,EAAE;EACnB;CAID,OAAO;EACL,MAAM,eAAmC,OAAO;EAChD,eAAe;EAChB;CACF,CAAC;AAEF,MAAa,eAAe;EACzB,sBAAsB,UAAkB,SAAS,MAAM;CACxD,iBAAiB,SAAiB,WAChC,SAAS,QAAQ,IAAI,SAAS,OAAO;CACvC,QAAQ,UAAkB,SAAS,MAAM;CACzC,SAAS,SAAiB,WACxB,SAAS,QAAQ,IAAI,SAAS,OAAO;CACvC,SAAS,QAAuB,WAC9B,SAAS,OAAO,IAAI,SAAS,OAAO;CACtC,QAAQ,QAAoB,eAAe;CAC3C,OAAO,QAAoB,eAAe;CAC3C;AAoBD,MAAa,sBAAoD;CAC/D,OAAO;CACP,OAAO;CACP,UAAU;CACX"}
@@ -1,67 +1,60 @@
1
- import { IconPropType } from "../../../utils/vue/icon.js";
2
- import "../../../utils/index.js";
3
- import { InputModelModifiers, InputType } from "../../input/src/input.js";
4
1
  import { InputInstance } from "../../input/src/instance.js";
5
2
  import "../../input/index.js";
6
3
  import { TooltipInstance } from "../../tooltip/src/tooltip.js";
7
4
  import "../../tooltip/index.js";
8
5
  import { MentionOption } from "./types.js";
9
- import { filterOption } from "./helper.js";
10
- import { MentionOptionProps, MentionProps } from "./mention.js";
6
+ import { MentionProps } from "./mention.js";
11
7
  import * as vue from "vue";
12
- import { CSSProperties } from "vue";
13
- import * as _popperjs_core0 from "@popperjs/core";
14
8
 
15
9
  //#region ../../packages/components/mention/src/mention.vue.d.ts
16
- declare var __VLS_15: string, __VLS_16: any, __VLS_41: string, __VLS_42: any;
17
- type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any } & { [K in NonNullable<typeof __VLS_41>]?: (props: typeof __VLS_42) => any };
18
- declare const __VLS_base: vue.DefineComponent<MentionProps, {
19
- input: vue.Ref<InputInstance | undefined, InputInstance | undefined>;
20
- tooltip: vue.Ref<TooltipInstance | undefined, TooltipInstance | undefined>;
21
- dropdownVisible: vue.ComputedRef<boolean>;
22
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
23
- blur: (evt: FocusEvent) => void;
24
- focus: (evt: FocusEvent) => void;
25
- input: (value: string) => void;
26
- select: (option: MentionOption, prefix: string) => void;
27
- "update:modelValue": (value: string) => void;
28
- search: (pattern: string, prefix: string) => void;
29
- "whole-remove": (pattern: string, prefix: string) => void;
30
- }, string, vue.PublicProps, Readonly<MentionProps> & Readonly<{
31
- onBlur?: ((evt: FocusEvent) => any) | undefined;
32
- onFocus?: ((evt: FocusEvent) => any) | undefined;
33
- onInput?: ((value: string) => any) | undefined;
34
- onSelect?: ((option: MentionOption, prefix: string) => any) | undefined;
35
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
36
- onSearch?: ((pattern: string, prefix: string) => any) | undefined;
37
- "onWhole-remove"?: ((pattern: string, prefix: string) => any) | undefined;
38
- }>, {
39
- props: MentionOptionProps;
40
- type: InputType;
41
- modelValue: string;
42
- disabled: boolean;
43
- tabindex: string | number;
44
- validateEvent: boolean;
45
- options: MentionOption[];
46
- modelModifiers: InputModelModifiers;
47
- autocomplete: string;
48
- clearIcon: IconPropType;
49
- wordLimitPosition: "inside" | "outside";
50
- inputStyle: string | false | CSSProperties | vue.StyleValue[] | null;
51
- rows: number;
52
- split: string;
53
- offset: number;
54
- placement: "bottom" | "top";
55
- popperOptions: Partial<_popperjs_core0.Options>;
56
- prefix: string | string[];
57
- filterOption: false | typeof filterOption;
58
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
59
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
60
- declare const _default: typeof __VLS_export;
61
- type __VLS_WithSlots<T, S> = T & {
62
- new (): {
63
- $slots: S;
10
+ declare const __VLS_export: <T extends MentionOption = MentionOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
11
+ props: vue.PublicProps & __VLS_PrettifyLocal<MentionProps<T> & {
12
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
13
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
14
+ onInput?: ((value: string) => any) | undefined;
15
+ onSelect?: ((option: MentionOption, prefix: string) => any) | undefined;
16
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
+ onSearch?: ((pattern: string, prefix: string) => any) | undefined;
18
+ "onWhole-remove"?: ((pattern: string, prefix: string) => any) | undefined;
19
+ }> & (typeof globalThis extends {
20
+ __VLS_PROPS_FALLBACK: infer P;
21
+ } ? P : {});
22
+ expose: (exposed: vue.ShallowUnwrapRef<{
23
+ input: vue.Ref<InputInstance | undefined, InputInstance | undefined>;
24
+ tooltip: vue.Ref<TooltipInstance | undefined, TooltipInstance | undefined>;
25
+ dropdownVisible: vue.ComputedRef<boolean>;
26
+ }>) => void;
27
+ attrs: any;
28
+ slots: Readonly<{
29
+ [name: string]: vue.Slot<any> | undefined;
30
+ }> & {
31
+ prepend?: (props: {}) => any;
32
+ } & {
33
+ prefix?: (props: {}) => any;
34
+ } & {
35
+ suffix?: (props: {}) => any;
36
+ } & {
37
+ 'password-icon'?: (props: {
38
+ visible: boolean;
39
+ }) => any;
40
+ } & {
41
+ append?: (props: {}) => any;
42
+ } & {
43
+ header?: () => any;
44
+ footer?: () => any;
45
+ loading?: () => any;
46
+ label?: (props: {
47
+ item: T & MentionOption;
48
+ index: number;
49
+ }) => any;
64
50
  };
51
+ emit: ((event: "blur", evt: FocusEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "select", option: MentionOption, prefix: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "search", pattern: string, prefix: string) => void) & ((event: "whole-remove", pattern: string, prefix: string) => void);
52
+ }>) => vue.VNode<vue.RendererNode, vue.RendererElement, {
53
+ [key: string]: any;
54
+ }> & {
55
+ __ctx?: Awaited<typeof __VLS_setup>;
65
56
  };
57
+ declare const _default: typeof __VLS_export;
58
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
66
59
  //#endregion
67
60
  export { _default };
@@ -7,20 +7,227 @@ import { useId } from "../../../hooks/use-id/index.mjs";
7
7
  import { useFocusController } from "../../../hooks/use-focus-controller/index.mjs";
8
8
  import { useFormDisabled } from "../../form/src/hooks/use-form-common-props.mjs";
9
9
  import { ElTooltip } from "../../tooltip/index.mjs";
10
- import { inputProps } from "../../input/src/input.mjs";
10
+ import { inputProps, inputPropsDefaults } from "../../input/src/input.mjs";
11
11
  import { ElInput } from "../../input/index.mjs";
12
- import { getCursorPosition, getMentionCtx } from "./helper.mjs";
13
- import { mentionDefaultProps, mentionEmits, mentionProps } from "./mention.mjs";
12
+ import { filterOption, getCursorPosition, getMentionCtx } from "./helper.mjs";
13
+ import { mentionDefaultProps, mentionEmits } from "./mention.mjs";
14
14
  import mention_dropdown_default from "./mention-dropdown2.mjs";
15
15
  import { pick } from "lodash-unified";
16
- import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, unref, withCtx, withModifiers } from "vue";
16
+ import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, unref, withCtx, withModifiers } from "vue";
17
17
 
18
18
  //#region ../../packages/components/mention/src/mention.vue?vue&type=script&setup=true&lang.ts
19
19
  var mention_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
20
20
  name: "ElMention",
21
21
  inheritAttrs: false,
22
22
  __name: "mention",
23
- props: mentionProps,
23
+ props: /* @__PURE__ */ mergeDefaults({
24
+ options: {
25
+ type: Array,
26
+ required: false
27
+ },
28
+ prefix: {
29
+ type: [String, Array],
30
+ required: false
31
+ },
32
+ split: {
33
+ type: String,
34
+ required: false
35
+ },
36
+ filterOption: {
37
+ type: Boolean,
38
+ required: false,
39
+ skipCheck: true
40
+ },
41
+ placement: {
42
+ type: String,
43
+ required: false
44
+ },
45
+ showArrow: {
46
+ type: Boolean,
47
+ required: false
48
+ },
49
+ offset: {
50
+ type: Number,
51
+ required: false
52
+ },
53
+ whole: {
54
+ type: Boolean,
55
+ required: false
56
+ },
57
+ checkIsWhole: {
58
+ type: Function,
59
+ required: false
60
+ },
61
+ modelValue: {
62
+ type: String,
63
+ required: false
64
+ },
65
+ loading: {
66
+ type: Boolean,
67
+ required: false
68
+ },
69
+ popperClass: {
70
+ type: null,
71
+ required: false
72
+ },
73
+ popperStyle: {
74
+ type: null,
75
+ required: false
76
+ },
77
+ popperOptions: {
78
+ type: Object,
79
+ required: false
80
+ },
81
+ props: {
82
+ type: Object,
83
+ required: false
84
+ },
85
+ id: {
86
+ type: String,
87
+ required: false
88
+ },
89
+ size: {
90
+ type: null,
91
+ required: false
92
+ },
93
+ disabled: {
94
+ type: Boolean,
95
+ required: false
96
+ },
97
+ modelModifiers: {
98
+ type: Object,
99
+ required: false
100
+ },
101
+ maxlength: {
102
+ type: [String, Number],
103
+ required: false
104
+ },
105
+ minlength: {
106
+ type: [String, Number],
107
+ required: false
108
+ },
109
+ type: {
110
+ type: String,
111
+ required: false
112
+ },
113
+ resize: {
114
+ type: String,
115
+ required: false
116
+ },
117
+ autosize: {
118
+ type: [Object, Boolean],
119
+ required: false
120
+ },
121
+ autocomplete: {
122
+ type: String,
123
+ required: false
124
+ },
125
+ formatter: {
126
+ type: Function,
127
+ required: false
128
+ },
129
+ parser: {
130
+ type: Function,
131
+ required: false
132
+ },
133
+ placeholder: {
134
+ type: String,
135
+ required: false
136
+ },
137
+ form: {
138
+ type: String,
139
+ required: false
140
+ },
141
+ readonly: {
142
+ type: Boolean,
143
+ required: false
144
+ },
145
+ clearable: {
146
+ type: Boolean,
147
+ required: false
148
+ },
149
+ clearIcon: {
150
+ type: null,
151
+ required: false
152
+ },
153
+ showPassword: {
154
+ type: Boolean,
155
+ required: false
156
+ },
157
+ showWordLimit: {
158
+ type: Boolean,
159
+ required: false
160
+ },
161
+ wordLimitPosition: {
162
+ type: String,
163
+ required: false
164
+ },
165
+ suffixIcon: {
166
+ type: null,
167
+ required: false
168
+ },
169
+ prefixIcon: {
170
+ type: null,
171
+ required: false
172
+ },
173
+ containerRole: {
174
+ type: String,
175
+ required: false
176
+ },
177
+ tabindex: {
178
+ type: [String, Number],
179
+ required: false
180
+ },
181
+ validateEvent: {
182
+ type: Boolean,
183
+ required: false
184
+ },
185
+ inputStyle: {
186
+ type: [
187
+ Boolean,
188
+ null,
189
+ String,
190
+ Object,
191
+ Array
192
+ ],
193
+ required: false,
194
+ skipCheck: true
195
+ },
196
+ autofocus: {
197
+ type: Boolean,
198
+ required: false
199
+ },
200
+ rows: {
201
+ type: Number,
202
+ required: false
203
+ },
204
+ ariaLabel: {
205
+ type: String,
206
+ required: false
207
+ },
208
+ inputmode: {
209
+ type: null,
210
+ required: false
211
+ },
212
+ name: {
213
+ type: String,
214
+ required: false
215
+ },
216
+ countGraphemes: {
217
+ type: Function,
218
+ required: false
219
+ }
220
+ }, {
221
+ ...inputPropsDefaults,
222
+ options: () => [],
223
+ prefix: "@",
224
+ split: " ",
225
+ filterOption: () => filterOption,
226
+ placement: "bottom",
227
+ offset: 0,
228
+ popperOptions: () => ({}),
229
+ props: () => mentionDefaultProps
230
+ }),
24
231
  emits: mentionEmits,
25
232
  setup(__props, { expose: __expose, emit: __emit }) {
26
233
  const props = __props;