@element-plus/nightly 0.0.20241128 → 0.0.20241130

Sign up to get free protection for your applications and to get access to all the features.
Files changed (439) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +907 -317
  4. package/dist/index.full.min.js +17 -17
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +14 -14
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +904 -318
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hr.js +1 -1
  94. package/dist/locale/hr.min.js +1 -1
  95. package/dist/locale/hr.min.mjs +1 -1
  96. package/dist/locale/hr.mjs +1 -1
  97. package/dist/locale/hu.js +1 -1
  98. package/dist/locale/hu.min.js +1 -1
  99. package/dist/locale/hu.min.mjs +1 -1
  100. package/dist/locale/hu.mjs +1 -1
  101. package/dist/locale/hy-am.js +1 -1
  102. package/dist/locale/hy-am.min.js +1 -1
  103. package/dist/locale/hy-am.min.mjs +1 -1
  104. package/dist/locale/hy-am.mjs +1 -1
  105. package/dist/locale/id.js +1 -1
  106. package/dist/locale/id.min.js +1 -1
  107. package/dist/locale/id.min.mjs +1 -1
  108. package/dist/locale/id.mjs +1 -1
  109. package/dist/locale/it.js +1 -1
  110. package/dist/locale/it.min.js +1 -1
  111. package/dist/locale/it.min.mjs +1 -1
  112. package/dist/locale/it.mjs +1 -1
  113. package/dist/locale/ja.js +1 -1
  114. package/dist/locale/ja.min.js +1 -1
  115. package/dist/locale/ja.min.mjs +1 -1
  116. package/dist/locale/ja.mjs +1 -1
  117. package/dist/locale/kk.js +1 -1
  118. package/dist/locale/kk.min.js +1 -1
  119. package/dist/locale/kk.min.mjs +1 -1
  120. package/dist/locale/kk.mjs +1 -1
  121. package/dist/locale/km.js +1 -1
  122. package/dist/locale/km.min.js +1 -1
  123. package/dist/locale/km.min.mjs +1 -1
  124. package/dist/locale/km.mjs +1 -1
  125. package/dist/locale/ko.js +1 -1
  126. package/dist/locale/ko.min.js +1 -1
  127. package/dist/locale/ko.min.mjs +1 -1
  128. package/dist/locale/ko.mjs +1 -1
  129. package/dist/locale/ku.js +1 -1
  130. package/dist/locale/ku.min.js +1 -1
  131. package/dist/locale/ku.min.mjs +1 -1
  132. package/dist/locale/ku.mjs +1 -1
  133. package/dist/locale/ky.js +1 -1
  134. package/dist/locale/ky.min.js +1 -1
  135. package/dist/locale/ky.min.mjs +1 -1
  136. package/dist/locale/ky.mjs +1 -1
  137. package/dist/locale/lt.js +1 -1
  138. package/dist/locale/lt.min.js +1 -1
  139. package/dist/locale/lt.min.mjs +1 -1
  140. package/dist/locale/lt.mjs +1 -1
  141. package/dist/locale/lv.js +1 -1
  142. package/dist/locale/lv.min.js +1 -1
  143. package/dist/locale/lv.min.mjs +1 -1
  144. package/dist/locale/lv.mjs +1 -1
  145. package/dist/locale/mg.js +1 -1
  146. package/dist/locale/mg.min.js +1 -1
  147. package/dist/locale/mg.min.mjs +1 -1
  148. package/dist/locale/mg.mjs +1 -1
  149. package/dist/locale/mn.js +1 -1
  150. package/dist/locale/mn.min.js +1 -1
  151. package/dist/locale/mn.min.mjs +1 -1
  152. package/dist/locale/mn.mjs +1 -1
  153. package/dist/locale/ms.js +1 -1
  154. package/dist/locale/ms.min.js +1 -1
  155. package/dist/locale/ms.min.mjs +1 -1
  156. package/dist/locale/ms.mjs +1 -1
  157. package/dist/locale/my.js +1 -1
  158. package/dist/locale/my.min.js +1 -1
  159. package/dist/locale/my.min.mjs +1 -1
  160. package/dist/locale/my.mjs +1 -1
  161. package/dist/locale/nb-no.js +1 -1
  162. package/dist/locale/nb-no.min.js +1 -1
  163. package/dist/locale/nb-no.min.mjs +1 -1
  164. package/dist/locale/nb-no.mjs +1 -1
  165. package/dist/locale/nl.js +1 -1
  166. package/dist/locale/nl.min.js +1 -1
  167. package/dist/locale/nl.min.mjs +1 -1
  168. package/dist/locale/nl.mjs +1 -1
  169. package/dist/locale/pa.js +1 -1
  170. package/dist/locale/pa.min.js +1 -1
  171. package/dist/locale/pa.min.mjs +1 -1
  172. package/dist/locale/pa.mjs +1 -1
  173. package/dist/locale/pl.js +1 -1
  174. package/dist/locale/pl.min.js +1 -1
  175. package/dist/locale/pl.min.mjs +1 -1
  176. package/dist/locale/pl.mjs +1 -1
  177. package/dist/locale/pt-br.js +1 -1
  178. package/dist/locale/pt-br.min.js +1 -1
  179. package/dist/locale/pt-br.min.mjs +1 -1
  180. package/dist/locale/pt-br.mjs +1 -1
  181. package/dist/locale/pt.js +1 -1
  182. package/dist/locale/pt.min.js +1 -1
  183. package/dist/locale/pt.min.mjs +1 -1
  184. package/dist/locale/pt.mjs +1 -1
  185. package/dist/locale/ro.js +1 -1
  186. package/dist/locale/ro.min.js +1 -1
  187. package/dist/locale/ro.min.mjs +1 -1
  188. package/dist/locale/ro.mjs +1 -1
  189. package/dist/locale/ru.js +1 -1
  190. package/dist/locale/ru.min.js +1 -1
  191. package/dist/locale/ru.min.mjs +1 -1
  192. package/dist/locale/ru.mjs +1 -1
  193. package/dist/locale/sk.js +1 -1
  194. package/dist/locale/sk.min.js +1 -1
  195. package/dist/locale/sk.min.mjs +1 -1
  196. package/dist/locale/sk.mjs +1 -1
  197. package/dist/locale/sl.js +1 -1
  198. package/dist/locale/sl.min.js +1 -1
  199. package/dist/locale/sl.min.mjs +1 -1
  200. package/dist/locale/sl.mjs +1 -1
  201. package/dist/locale/sr.js +1 -1
  202. package/dist/locale/sr.min.js +1 -1
  203. package/dist/locale/sr.min.mjs +1 -1
  204. package/dist/locale/sr.mjs +1 -1
  205. package/dist/locale/sv.js +1 -1
  206. package/dist/locale/sv.min.js +1 -1
  207. package/dist/locale/sv.min.mjs +1 -1
  208. package/dist/locale/sv.mjs +1 -1
  209. package/dist/locale/sw.js +1 -1
  210. package/dist/locale/sw.min.js +1 -1
  211. package/dist/locale/sw.min.mjs +1 -1
  212. package/dist/locale/sw.mjs +1 -1
  213. package/dist/locale/ta.js +1 -1
  214. package/dist/locale/ta.min.js +1 -1
  215. package/dist/locale/ta.min.mjs +1 -1
  216. package/dist/locale/ta.mjs +1 -1
  217. package/dist/locale/th.js +1 -1
  218. package/dist/locale/th.min.js +1 -1
  219. package/dist/locale/th.min.mjs +1 -1
  220. package/dist/locale/th.mjs +1 -1
  221. package/dist/locale/tk.js +1 -1
  222. package/dist/locale/tk.min.js +1 -1
  223. package/dist/locale/tk.min.mjs +1 -1
  224. package/dist/locale/tk.mjs +1 -1
  225. package/dist/locale/tr.js +1 -1
  226. package/dist/locale/tr.min.js +1 -1
  227. package/dist/locale/tr.min.mjs +1 -1
  228. package/dist/locale/tr.mjs +1 -1
  229. package/dist/locale/ug-cn.js +1 -1
  230. package/dist/locale/ug-cn.min.js +1 -1
  231. package/dist/locale/ug-cn.min.mjs +1 -1
  232. package/dist/locale/ug-cn.mjs +1 -1
  233. package/dist/locale/uk.js +1 -1
  234. package/dist/locale/uk.min.js +1 -1
  235. package/dist/locale/uk.min.mjs +1 -1
  236. package/dist/locale/uk.mjs +1 -1
  237. package/dist/locale/uz-uz.js +1 -1
  238. package/dist/locale/uz-uz.min.js +1 -1
  239. package/dist/locale/uz-uz.min.mjs +1 -1
  240. package/dist/locale/uz-uz.mjs +1 -1
  241. package/dist/locale/vi.js +1 -1
  242. package/dist/locale/vi.min.js +1 -1
  243. package/dist/locale/vi.min.mjs +1 -1
  244. package/dist/locale/vi.mjs +1 -1
  245. package/dist/locale/zh-cn.js +1 -1
  246. package/dist/locale/zh-cn.min.js +1 -1
  247. package/dist/locale/zh-cn.min.mjs +1 -1
  248. package/dist/locale/zh-cn.mjs +1 -1
  249. package/dist/locale/zh-tw.js +1 -1
  250. package/dist/locale/zh-tw.min.js +1 -1
  251. package/dist/locale/zh-tw.min.mjs +1 -1
  252. package/dist/locale/zh-tw.mjs +1 -1
  253. package/es/component.mjs +2 -0
  254. package/es/component.mjs.map +1 -1
  255. package/es/components/alert/index.mjs +2 -2
  256. package/es/components/alert/src/alert.mjs +36 -95
  257. package/es/components/alert/src/alert.mjs.map +1 -1
  258. package/es/components/alert/src/alert2.mjs +95 -36
  259. package/es/components/alert/src/alert2.mjs.map +1 -1
  260. package/es/components/carousel/index.mjs +2 -2
  261. package/es/components/carousel/src/carousel-item.mjs +69 -7
  262. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  263. package/es/components/carousel/src/carousel-item2.mjs +7 -69
  264. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  265. package/es/components/dialog/src/dialog-content.mjs +87 -26
  266. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  267. package/es/components/dialog/src/dialog-content2.mjs +26 -87
  268. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  269. package/es/components/dialog/src/dialog.mjs +1 -1
  270. package/es/components/dialog/src/dialog2.mjs +1 -1
  271. package/es/components/index.d.ts +1 -0
  272. package/es/components/index.mjs +6 -4
  273. package/es/components/index.mjs.map +1 -1
  274. package/es/components/input-number/src/input-number2.mjs +2 -1
  275. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  276. package/es/components/input-tag/index.d.ts +6 -0
  277. package/es/components/input-tag/index.mjs +8 -0
  278. package/es/components/input-tag/index.mjs.map +1 -0
  279. package/es/components/input-tag/src/composables/index.d.ts +4 -0
  280. package/es/components/input-tag/src/composables/index.mjs +5 -0
  281. package/es/components/input-tag/src/composables/index.mjs.map +1 -0
  282. package/es/components/input-tag/src/composables/use-drag-tag.d.ts +15 -0
  283. package/es/components/input-tag/src/composables/use-drag-tag.mjs +92 -0
  284. package/es/components/input-tag/src/composables/use-drag-tag.mjs.map +1 -0
  285. package/es/components/input-tag/src/composables/use-hovering.d.ts +5 -0
  286. package/es/components/input-tag/src/composables/use-hovering.mjs +19 -0
  287. package/es/components/input-tag/src/composables/use-hovering.mjs.map +1 -0
  288. package/es/components/input-tag/src/composables/use-input-tag-dom.d.ts +58 -0
  289. package/es/components/input-tag/src/composables/use-input-tag-dom.mjs +57 -0
  290. package/es/components/input-tag/src/composables/use-input-tag-dom.mjs.map +1 -0
  291. package/es/components/input-tag/src/composables/use-input-tag.d.ts +33 -0
  292. package/es/components/input-tag/src/composables/use-input-tag.mjs +153 -0
  293. package/es/components/input-tag/src/composables/use-input-tag.mjs.map +1 -0
  294. package/es/components/input-tag/src/input-tag.d.ts +60 -0
  295. package/es/components/input-tag/src/input-tag.mjs +219 -0
  296. package/es/components/input-tag/src/input-tag.mjs.map +1 -0
  297. package/es/components/input-tag/src/input-tag.vue.d.ts +142 -0
  298. package/es/components/input-tag/src/input-tag2.mjs +69 -0
  299. package/es/components/input-tag/src/input-tag2.mjs.map +1 -0
  300. package/es/components/input-tag/src/instance.d.ts +2 -0
  301. package/es/components/input-tag/src/instance.mjs +2 -0
  302. package/es/components/input-tag/src/instance.mjs.map +1 -0
  303. package/es/components/input-tag/style/css.d.ts +3 -0
  304. package/es/components/input-tag/style/css.mjs +4 -0
  305. package/es/components/input-tag/style/css.mjs.map +1 -0
  306. package/es/components/input-tag/style/index.d.ts +3 -0
  307. package/es/components/input-tag/style/index.mjs +4 -0
  308. package/es/components/input-tag/style/index.mjs.map +1 -0
  309. package/es/components/menu/index.mjs +2 -2
  310. package/es/components/menu/src/menu-item.mjs +14 -96
  311. package/es/components/menu/src/menu-item.mjs.map +1 -1
  312. package/es/components/menu/src/menu-item2.mjs +96 -14
  313. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  314. package/es/components/notification/src/notification.d.ts +12 -6
  315. package/es/components/notification/src/notification.mjs.map +1 -1
  316. package/es/components/notification/src/notify.mjs +5 -8
  317. package/es/components/notification/src/notify.mjs.map +1 -1
  318. package/es/components/time-picker/src/common/picker-range-trigger.mjs +1 -1
  319. package/es/components/time-picker/src/common/picker-range-trigger.mjs.map +1 -1
  320. package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +3 -0
  321. package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
  322. package/es/components/tour/index.mjs +2 -2
  323. package/es/components/tour/src/step.mjs +168 -44
  324. package/es/components/tour/src/step.mjs.map +1 -1
  325. package/es/components/tour/src/step2.mjs +44 -168
  326. package/es/components/tour/src/step2.mjs.map +1 -1
  327. package/es/directives/click-outside/index.mjs +1 -1
  328. package/es/hooks/index.d.ts +1 -0
  329. package/es/hooks/index.mjs +1 -0
  330. package/es/hooks/index.mjs.map +1 -1
  331. package/es/hooks/use-calc-input-width/index.d.ts +7 -0
  332. package/es/hooks/use-calc-input-width/index.mjs +24 -0
  333. package/es/hooks/use-calc-input-width/index.mjs.map +1 -0
  334. package/es/hooks/use-focus-controller/index.mjs +1 -1
  335. package/es/hooks/use-lockscreen/index.mjs +1 -1
  336. package/es/index.mjs +7 -4
  337. package/es/index.mjs.map +1 -1
  338. package/es/version.d.ts +1 -1
  339. package/es/version.mjs +1 -1
  340. package/es/version.mjs.map +1 -1
  341. package/global.d.ts +1 -0
  342. package/lib/component.js +98 -96
  343. package/lib/component.js.map +1 -1
  344. package/lib/components/alert/index.js +2 -2
  345. package/lib/components/alert/src/alert.js +37 -94
  346. package/lib/components/alert/src/alert.js.map +1 -1
  347. package/lib/components/alert/src/alert2.js +94 -37
  348. package/lib/components/alert/src/alert2.js.map +1 -1
  349. package/lib/components/carousel/index.js +2 -2
  350. package/lib/components/carousel/src/carousel-item.js +69 -7
  351. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  352. package/lib/components/carousel/src/carousel-item2.js +7 -69
  353. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  354. package/lib/components/dialog/src/dialog-content.js +86 -26
  355. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  356. package/lib/components/dialog/src/dialog-content2.js +26 -86
  357. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  358. package/lib/components/dialog/src/dialog.js +1 -1
  359. package/lib/components/dialog/src/dialog2.js +1 -1
  360. package/lib/components/index.d.ts +1 -0
  361. package/lib/components/index.js +117 -112
  362. package/lib/components/index.js.map +1 -1
  363. package/lib/components/input-number/src/input-number2.js +2 -1
  364. package/lib/components/input-number/src/input-number2.js.map +1 -1
  365. package/lib/components/input-tag/index.d.ts +6 -0
  366. package/lib/components/input-tag/index.js +15 -0
  367. package/lib/components/input-tag/index.js.map +1 -0
  368. package/lib/components/input-tag/src/composables/index.d.ts +4 -0
  369. package/lib/components/input-tag/src/composables/index.js +16 -0
  370. package/lib/components/input-tag/src/composables/index.js.map +1 -0
  371. package/lib/components/input-tag/src/composables/use-drag-tag.d.ts +15 -0
  372. package/lib/components/input-tag/src/composables/use-drag-tag.js +96 -0
  373. package/lib/components/input-tag/src/composables/use-drag-tag.js.map +1 -0
  374. package/lib/components/input-tag/src/composables/use-hovering.d.ts +5 -0
  375. package/lib/components/input-tag/src/composables/use-hovering.js +23 -0
  376. package/lib/components/input-tag/src/composables/use-hovering.js.map +1 -0
  377. package/lib/components/input-tag/src/composables/use-input-tag-dom.d.ts +58 -0
  378. package/lib/components/input-tag/src/composables/use-input-tag-dom.js +61 -0
  379. package/lib/components/input-tag/src/composables/use-input-tag-dom.js.map +1 -0
  380. package/lib/components/input-tag/src/composables/use-input-tag.d.ts +33 -0
  381. package/lib/components/input-tag/src/composables/use-input-tag.js +157 -0
  382. package/lib/components/input-tag/src/composables/use-input-tag.js.map +1 -0
  383. package/lib/components/input-tag/src/input-tag.d.ts +60 -0
  384. package/lib/components/input-tag/src/input-tag.js +223 -0
  385. package/lib/components/input-tag/src/input-tag.js.map +1 -0
  386. package/lib/components/input-tag/src/input-tag.vue.d.ts +142 -0
  387. package/lib/components/input-tag/src/input-tag2.js +74 -0
  388. package/lib/components/input-tag/src/input-tag2.js.map +1 -0
  389. package/lib/components/input-tag/src/instance.d.ts +2 -0
  390. package/lib/components/input-tag/src/instance.js +3 -0
  391. package/lib/components/input-tag/src/instance.js.map +1 -0
  392. package/lib/components/input-tag/style/css.d.ts +3 -0
  393. package/lib/components/input-tag/style/css.js +7 -0
  394. package/lib/components/input-tag/style/css.js.map +1 -0
  395. package/lib/components/input-tag/style/index.d.ts +3 -0
  396. package/lib/components/input-tag/style/index.js +7 -0
  397. package/lib/components/input-tag/style/index.js.map +1 -0
  398. package/lib/components/menu/index.js +2 -2
  399. package/lib/components/menu/src/menu-item.js +15 -96
  400. package/lib/components/menu/src/menu-item.js.map +1 -1
  401. package/lib/components/menu/src/menu-item2.js +96 -15
  402. package/lib/components/menu/src/menu-item2.js.map +1 -1
  403. package/lib/components/notification/src/notification.d.ts +12 -6
  404. package/lib/components/notification/src/notification.js.map +1 -1
  405. package/lib/components/notification/src/notify.js +4 -7
  406. package/lib/components/notification/src/notify.js.map +1 -1
  407. package/lib/components/time-picker/src/common/picker-range-trigger.js +1 -1
  408. package/lib/components/time-picker/src/common/picker-range-trigger.js.map +1 -1
  409. package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +3 -0
  410. package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
  411. package/lib/components/tour/index.js +2 -2
  412. package/lib/components/tour/src/step.js +167 -44
  413. package/lib/components/tour/src/step.js.map +1 -1
  414. package/lib/components/tour/src/step2.js +44 -167
  415. package/lib/components/tour/src/step2.js.map +1 -1
  416. package/lib/directives/click-outside/index.js +1 -1
  417. package/lib/hooks/index.d.ts +1 -0
  418. package/lib/hooks/index.js +96 -94
  419. package/lib/hooks/index.js.map +1 -1
  420. package/lib/hooks/use-calc-input-width/index.d.ts +7 -0
  421. package/lib/hooks/use-calc-input-width/index.js +28 -0
  422. package/lib/hooks/use-calc-input-width/index.js.map +1 -0
  423. package/lib/hooks/use-focus-controller/index.js +1 -1
  424. package/lib/hooks/use-lockscreen/index.js +1 -1
  425. package/lib/index.js +223 -216
  426. package/lib/index.js.map +1 -1
  427. package/lib/version.d.ts +1 -1
  428. package/lib/version.js +1 -1
  429. package/lib/version.js.map +1 -1
  430. package/package.json +2 -2
  431. package/tags.json +1 -1
  432. package/theme-chalk/el-form.css +1 -1
  433. package/theme-chalk/el-input-tag.css +1 -0
  434. package/theme-chalk/index.css +1 -1
  435. package/theme-chalk/src/common/var.scss +47 -0
  436. package/theme-chalk/src/form.scss +2 -1
  437. package/theme-chalk/src/index.scss +1 -0
  438. package/theme-chalk/src/input-tag.scss +215 -0
  439. package/web-types.json +1 -1
@@ -0,0 +1,157 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var useFormCommonProps = require('../../../form/src/hooks/use-form-common-props.js');
7
+ var types = require('../../../../utils/types.js');
8
+ var event = require('../../../../constants/event.js');
9
+ var aria = require('../../../../constants/aria.js');
10
+ var index = require('../../../../hooks/use-focus-controller/index.js');
11
+ var error = require('../../../../utils/error.js');
12
+ var index$1 = require('../../../../hooks/use-composition/index.js');
13
+
14
+ function useInputTag({ props, emit, formItem }) {
15
+ const disabled = useFormCommonProps.useFormDisabled();
16
+ const size = useFormCommonProps.useFormSize();
17
+ const inputRef = vue.shallowRef();
18
+ const inputValue = vue.ref();
19
+ const tagSize = vue.computed(() => {
20
+ return ["small"].includes(size.value) ? "small" : "default";
21
+ });
22
+ const placeholder = vue.computed(() => {
23
+ var _a;
24
+ return ((_a = props.modelValue) == null ? void 0 : _a.length) ? void 0 : props.placeholder;
25
+ });
26
+ const closable = vue.computed(() => !(props.readonly || disabled.value));
27
+ const inputLimit = vue.computed(() => {
28
+ var _a, _b;
29
+ return types.isUndefined(props.max) ? false : ((_b = (_a = props.modelValue) == null ? void 0 : _a.length) != null ? _b : 0) >= props.max;
30
+ });
31
+ const handleInput = (event$1) => {
32
+ if (inputLimit.value) {
33
+ inputValue.value = void 0;
34
+ return;
35
+ }
36
+ if (isComposing.value)
37
+ return;
38
+ emit(event.INPUT_EVENT, event$1.target.value);
39
+ };
40
+ const handleKeydown = (event) => {
41
+ var _a;
42
+ switch (event.code) {
43
+ case props.trigger:
44
+ event.preventDefault();
45
+ event.stopPropagation();
46
+ handleAddTag();
47
+ break;
48
+ case aria.EVENT_CODE.numpadEnter:
49
+ if (props.trigger === aria.EVENT_CODE.enter) {
50
+ event.preventDefault();
51
+ event.stopPropagation();
52
+ handleAddTag();
53
+ }
54
+ break;
55
+ case aria.EVENT_CODE.backspace:
56
+ if (!inputValue.value && ((_a = props.modelValue) == null ? void 0 : _a.length)) {
57
+ event.preventDefault();
58
+ event.stopPropagation();
59
+ handleRemoveTag(props.modelValue.length - 1);
60
+ }
61
+ break;
62
+ }
63
+ };
64
+ const handleAddTag = () => {
65
+ var _a, _b;
66
+ const value = (_a = inputValue.value) == null ? void 0 : _a.trim();
67
+ if (!value || inputLimit.value)
68
+ return;
69
+ const list = [...(_b = props.modelValue) != null ? _b : [], value];
70
+ emit(event.UPDATE_MODEL_EVENT, list);
71
+ emit(event.CHANGE_EVENT, list);
72
+ emit("add-tag", value);
73
+ inputValue.value = void 0;
74
+ };
75
+ const handleRemoveTag = (index) => {
76
+ var _a;
77
+ const value = ((_a = props.modelValue) != null ? _a : []).slice();
78
+ const [item] = value.splice(index, 1);
79
+ emit(event.UPDATE_MODEL_EVENT, value);
80
+ emit(event.CHANGE_EVENT, value);
81
+ emit("remove-tag", item);
82
+ };
83
+ const handleClear = () => {
84
+ inputValue.value = void 0;
85
+ emit(event.UPDATE_MODEL_EVENT, void 0);
86
+ emit(event.CHANGE_EVENT, void 0);
87
+ emit("clear");
88
+ };
89
+ const handleDragged = (draggingIndex, dropIndex, type) => {
90
+ var _a;
91
+ const value = ((_a = props.modelValue) != null ? _a : []).slice();
92
+ const [draggedItem] = value.splice(draggingIndex, 1);
93
+ const step = dropIndex > draggingIndex && type === "before" ? -1 : dropIndex < draggingIndex && type === "after" ? 1 : 0;
94
+ value.splice(dropIndex + step, 0, draggedItem);
95
+ emit(event.UPDATE_MODEL_EVENT, value);
96
+ emit(event.CHANGE_EVENT, value);
97
+ };
98
+ const focus = () => {
99
+ var _a;
100
+ (_a = inputRef.value) == null ? void 0 : _a.focus();
101
+ };
102
+ const blur = () => {
103
+ var _a;
104
+ (_a = inputRef.value) == null ? void 0 : _a.blur();
105
+ };
106
+ const { wrapperRef, isFocused } = index.useFocusController(inputRef, {
107
+ beforeFocus() {
108
+ return disabled.value;
109
+ },
110
+ afterBlur() {
111
+ var _a;
112
+ handleAddTag();
113
+ if (props.validateEvent) {
114
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => error.debugWarn(err));
115
+ }
116
+ }
117
+ });
118
+ const {
119
+ isComposing,
120
+ handleCompositionStart,
121
+ handleCompositionUpdate,
122
+ handleCompositionEnd
123
+ } = index$1.useComposition({ afterComposition: handleInput });
124
+ vue.watch(() => props.modelValue, () => {
125
+ var _a;
126
+ if (props.validateEvent) {
127
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, event.CHANGE_EVENT).catch((err) => error.debugWarn(err));
128
+ }
129
+ });
130
+ return {
131
+ inputRef,
132
+ wrapperRef,
133
+ isFocused,
134
+ isComposing,
135
+ inputValue,
136
+ size,
137
+ tagSize,
138
+ placeholder,
139
+ closable,
140
+ disabled,
141
+ inputLimit,
142
+ handleDragged,
143
+ handleInput,
144
+ handleKeydown,
145
+ handleAddTag,
146
+ handleRemoveTag,
147
+ handleClear,
148
+ handleCompositionStart,
149
+ handleCompositionUpdate,
150
+ handleCompositionEnd,
151
+ focus,
152
+ blur
153
+ };
154
+ }
155
+
156
+ exports.useInputTag = useInputTag;
157
+ //# sourceMappingURL=use-input-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-input-tag.js","sources":["../../../../../../../packages/components/input-tag/src/composables/use-input-tag.ts"],"sourcesContent":["import { computed, ref, shallowRef, watch } from 'vue'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { type EmitFn, debugWarn, isUndefined } from '@element-plus/utils'\nimport { useComposition, useFocusController } from '@element-plus/hooks'\nimport {\n type FormItemContext,\n useFormDisabled,\n useFormSize,\n} from '@element-plus/components/form'\nimport type { InputTagEmits, InputTagProps } from '../input-tag'\n\ninterface UseInputTagOptions {\n props: InputTagProps\n emit: EmitFn<InputTagEmits>\n formItem?: FormItemContext\n}\n\nexport function useInputTag({ props, emit, formItem }: UseInputTagOptions) {\n const disabled = useFormDisabled()\n const size = useFormSize()\n\n const inputRef = shallowRef<HTMLInputElement>()\n const inputValue = ref<string>()\n\n const tagSize = computed(() => {\n return ['small'].includes(size.value) ? 'small' : 'default'\n })\n const placeholder = computed(() => {\n return props.modelValue?.length ? undefined : props.placeholder\n })\n const closable = computed(() => !(props.readonly || disabled.value))\n const inputLimit = computed(() => {\n return isUndefined(props.max)\n ? false\n : (props.modelValue?.length ?? 0) >= props.max\n })\n\n const handleInput = (event: Event) => {\n if (inputLimit.value) {\n inputValue.value = undefined\n return\n }\n\n if (isComposing.value) return\n emit(INPUT_EVENT, (event.target as HTMLInputElement).value)\n }\n\n const handleKeydown = (event: KeyboardEvent) => {\n switch (event.code) {\n case props.trigger:\n event.preventDefault()\n event.stopPropagation()\n handleAddTag()\n break\n case EVENT_CODE.numpadEnter:\n if (props.trigger === EVENT_CODE.enter) {\n event.preventDefault()\n event.stopPropagation()\n handleAddTag()\n }\n break\n case EVENT_CODE.backspace:\n if (!inputValue.value && props.modelValue?.length) {\n event.preventDefault()\n event.stopPropagation()\n handleRemoveTag(props.modelValue.length - 1)\n }\n break\n }\n }\n\n const handleAddTag = () => {\n const value = inputValue.value?.trim()\n if (!value || inputLimit.value) return\n const list = [...(props.modelValue ?? []), value]\n\n emit(UPDATE_MODEL_EVENT, list)\n emit(CHANGE_EVENT, list)\n emit('add-tag', value)\n inputValue.value = undefined\n }\n\n const handleRemoveTag = (index: number) => {\n const value = (props.modelValue ?? []).slice()\n const [item] = value.splice(index, 1)\n\n emit(UPDATE_MODEL_EVENT, value)\n emit(CHANGE_EVENT, value)\n emit('remove-tag', item)\n }\n\n const handleClear = () => {\n inputValue.value = undefined\n emit(UPDATE_MODEL_EVENT, undefined)\n emit(CHANGE_EVENT, undefined)\n emit('clear')\n }\n\n const handleDragged = (\n draggingIndex: number,\n dropIndex: number,\n type: 'before' | 'after'\n ) => {\n const value = (props.modelValue ?? []).slice()\n const [draggedItem] = value.splice(draggingIndex, 1)\n const step =\n dropIndex > draggingIndex && type === 'before'\n ? -1\n : dropIndex < draggingIndex && type === 'after'\n ? 1\n : 0\n\n value.splice(dropIndex + step, 0, draggedItem)\n emit(UPDATE_MODEL_EVENT, value)\n emit(CHANGE_EVENT, value)\n }\n\n const focus = () => {\n inputRef.value?.focus()\n }\n\n const blur = () => {\n inputRef.value?.blur()\n }\n\n const { wrapperRef, isFocused } = useFocusController(inputRef, {\n beforeFocus() {\n return disabled.value\n },\n afterBlur() {\n handleAddTag()\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n },\n })\n\n const {\n isComposing,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n } = useComposition({ afterComposition: handleInput })\n\n watch(\n () => props.modelValue,\n () => {\n if (props.validateEvent) {\n formItem?.validate?.(CHANGE_EVENT).catch((err) => debugWarn(err))\n }\n }\n )\n\n return {\n inputRef,\n wrapperRef,\n isFocused,\n isComposing,\n inputValue,\n size,\n tagSize,\n placeholder,\n closable,\n disabled,\n inputLimit,\n handleDragged,\n handleInput,\n handleKeydown,\n handleAddTag,\n handleRemoveTag,\n handleClear,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n focus,\n blur,\n }\n}\n"],"names":["useFormDisabled","useFormSize","shallowRef","ref","computed","isUndefined","event","INPUT_EVENT","EVENT_CODE","UPDATE_MODEL_EVENT","CHANGE_EVENT","useFocusController","debugWarn","useComposition","watch"],"mappings":";;;;;;;;;;;;;AAaO,SAAS,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;AACvD,EAAE,MAAM,QAAQ,GAAGA,kCAAe,EAAE,CAAC;AACrC,EAAE,MAAM,IAAI,GAAGC,8BAAW,EAAE,CAAC;AAC7B,EAAE,MAAM,QAAQ,GAAGC,cAAU,EAAE,CAAC;AAChC,EAAE,MAAM,UAAU,GAAGC,OAAG,EAAE,CAAC;AAC3B,EAAE,MAAM,OAAO,GAAGC,YAAQ,CAAC,MAAM;AACjC,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,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B,IAAI,uBAAuB;AAC3B,IAAI,oBAAoB;AACxB,IAAI,KAAK;AACT,IAAI,IAAI;AACR,GAAG,CAAC;AACJ;;;;"}
@@ -0,0 +1,60 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const inputTagProps: {
3
+ readonly modelValue: {
4
+ readonly type: import("vue").PropType<string[]>;
5
+ readonly required: false;
6
+ readonly validator: ((val: unknown) => boolean) | undefined;
7
+ __epPropKey: true;
8
+ };
9
+ readonly max: NumberConstructor;
10
+ readonly tagType: {
11
+ readonly default: "info";
12
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
13
+ readonly required: false;
14
+ readonly validator: ((val: unknown) => boolean) | undefined;
15
+ readonly __epPropKey: true;
16
+ };
17
+ readonly tagEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "dark" | "light" | "plain", unknown, "light", boolean>;
18
+ readonly trigger: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | ((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space"))[], unknown, unknown, string, boolean>;
19
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
20
+ readonly size: {
21
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
22
+ readonly required: false;
23
+ readonly validator: ((val: unknown) => boolean) | undefined;
24
+ __epPropKey: true;
25
+ };
26
+ readonly clearable: BooleanConstructor;
27
+ readonly disabled: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
28
+ readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
29
+ readonly readonly: BooleanConstructor;
30
+ readonly autofocus: BooleanConstructor;
31
+ readonly id: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
32
+ readonly tabindex: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
33
+ readonly maxlength: {
34
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
35
+ readonly required: false;
36
+ readonly validator: ((val: unknown) => boolean) | undefined;
37
+ __epPropKey: true;
38
+ };
39
+ readonly minlength: {
40
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
41
+ readonly required: false;
42
+ readonly validator: ((val: unknown) => boolean) | undefined;
43
+ __epPropKey: true;
44
+ };
45
+ readonly placeholder: StringConstructor;
46
+ readonly autocomplete: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
47
+ readonly ariaLabel: StringConstructor;
48
+ };
49
+ export type InputTagProps = ExtractPropTypes<typeof inputTagProps>;
50
+ export declare const inputTagEmits: {
51
+ "update:modelValue": (value?: string[]) => boolean;
52
+ change: (value?: string[]) => boolean;
53
+ input: (value: string) => boolean;
54
+ 'add-tag': (value: string) => boolean;
55
+ 'remove-tag': (value: string) => boolean;
56
+ focus: (evt: FocusEvent) => boolean;
57
+ blur: (evt: FocusEvent) => boolean;
58
+ clear: () => boolean;
59
+ };
60
+ export type InputTagEmits = typeof inputTagEmits;
@@ -0,0 +1,223 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var iconsVue = require('@element-plus/icons-vue');
7
+ var index$3 = require('../../icon/index.js');
8
+ var index$2 = require('../../tag/index.js');
9
+ var inputTag = require('./input-tag2.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
+ var useInputTag = require('./composables/use-input-tag.js');
12
+ var useHovering = require('./composables/use-hovering.js');
13
+ var index$1 = require('../../../hooks/use-calc-input-width/index.js');
14
+ var useDragTag = require('./composables/use-drag-tag.js');
15
+ var useInputTagDom = require('./composables/use-input-tag-dom.js');
16
+ var index = require('../../../hooks/use-attrs/index.js');
17
+ var useFormItem = require('../../form/src/hooks/use-form-item.js');
18
+ var icon = require('../../../utils/vue/icon.js');
19
+ var shared = require('@vue/shared');
20
+
21
+ const __default__ = vue.defineComponent({
22
+ name: "ElInputTag",
23
+ inheritAttrs: false
24
+ });
25
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
26
+ ...__default__,
27
+ props: inputTag.inputTagProps,
28
+ emits: inputTag.inputTagEmits,
29
+ setup(__props, { expose, emit }) {
30
+ const props = __props;
31
+ const attrs = index.useAttrs();
32
+ const slots = vue.useSlots();
33
+ const { form, formItem } = useFormItem.useFormItem();
34
+ const { inputId } = useFormItem.useFormItemInputId(props, { formItemContext: formItem });
35
+ const needStatusIcon = vue.computed(() => {
36
+ var _a;
37
+ return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
38
+ });
39
+ const validateState = vue.computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
40
+ const validateIcon = vue.computed(() => {
41
+ return validateState.value && icon.ValidateComponentsMap[validateState.value];
42
+ });
43
+ const {
44
+ inputRef,
45
+ wrapperRef,
46
+ isFocused,
47
+ inputValue,
48
+ size,
49
+ tagSize,
50
+ placeholder,
51
+ closable,
52
+ disabled,
53
+ handleDragged,
54
+ handleInput,
55
+ handleKeydown,
56
+ handleRemoveTag,
57
+ handleClear,
58
+ handleCompositionStart,
59
+ handleCompositionUpdate,
60
+ handleCompositionEnd,
61
+ focus,
62
+ blur
63
+ } = useInputTag.useInputTag({ props, emit, formItem });
64
+ const { hovering, handleMouseEnter, handleMouseLeave } = useHovering.useHovering();
65
+ const { calculatorRef, inputStyle } = index$1.useCalcInputWidth();
66
+ const {
67
+ dropIndicatorRef,
68
+ showDropIndicator,
69
+ handleDragStart,
70
+ handleDragOver,
71
+ handleDragEnd
72
+ } = useDragTag.useDragTag({ wrapperRef, handleDragged, afterDragged: focus });
73
+ const {
74
+ ns,
75
+ nsInput,
76
+ containerKls,
77
+ containerStyle,
78
+ innerKls,
79
+ showClear,
80
+ showSuffix
81
+ } = useInputTagDom.useInputTagDom({
82
+ props,
83
+ hovering,
84
+ isFocused,
85
+ inputValue,
86
+ disabled,
87
+ size,
88
+ validateState,
89
+ validateIcon,
90
+ needStatusIcon
91
+ });
92
+ expose({
93
+ focus,
94
+ blur
95
+ });
96
+ return (_ctx, _cache) => {
97
+ return vue.openBlock(), vue.createElementBlock("div", {
98
+ ref_key: "wrapperRef",
99
+ ref: wrapperRef,
100
+ class: vue.normalizeClass(vue.unref(containerKls)),
101
+ style: vue.normalizeStyle(vue.unref(containerStyle)),
102
+ onMouseenter: vue.unref(handleMouseEnter),
103
+ onMouseleave: vue.unref(handleMouseLeave)
104
+ }, [
105
+ vue.unref(slots).prefix ? (vue.openBlock(), vue.createElementBlock("div", {
106
+ key: 0,
107
+ class: vue.normalizeClass(vue.unref(ns).e("prefix"))
108
+ }, [
109
+ vue.renderSlot(_ctx.$slots, "prefix")
110
+ ], 2)) : vue.createCommentVNode("v-if", true),
111
+ vue.createElementVNode("div", {
112
+ class: vue.normalizeClass(vue.unref(innerKls))
113
+ }, [
114
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.modelValue, (item, index) => {
115
+ return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElTag), {
116
+ key: index,
117
+ size: vue.unref(tagSize),
118
+ closable: vue.unref(closable),
119
+ type: _ctx.tagType,
120
+ effect: _ctx.tagEffect,
121
+ draggable: vue.unref(closable) && _ctx.draggable,
122
+ "disable-transitions": "",
123
+ onClose: ($event) => vue.unref(handleRemoveTag)(index),
124
+ onDragstart: (event) => vue.unref(handleDragStart)(event, index),
125
+ onDragover: (event) => vue.unref(handleDragOver)(event, index),
126
+ onDragend: vue.unref(handleDragEnd),
127
+ onDrop: vue.withModifiers(() => {
128
+ }, ["stop"])
129
+ }, {
130
+ default: vue.withCtx(() => [
131
+ vue.renderSlot(_ctx.$slots, "tag", {
132
+ value: item,
133
+ index
134
+ }, () => [
135
+ vue.createTextVNode(vue.toDisplayString(item), 1)
136
+ ])
137
+ ]),
138
+ _: 2
139
+ }, 1032, ["size", "closable", "type", "effect", "draggable", "onClose", "onDragstart", "onDragover", "onDragend", "onDrop"]);
140
+ }), 128)),
141
+ vue.createElementVNode("div", {
142
+ class: vue.normalizeClass(vue.unref(ns).e("input-wrapper"))
143
+ }, [
144
+ vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
145
+ id: vue.unref(inputId),
146
+ ref_key: "inputRef",
147
+ ref: inputRef,
148
+ "onUpdate:modelValue": ($event) => vue.isRef(inputValue) ? inputValue.value = $event : null
149
+ }, vue.unref(attrs), {
150
+ type: "text",
151
+ minlength: _ctx.minlength,
152
+ maxlength: _ctx.maxlength,
153
+ disabled: vue.unref(disabled),
154
+ readonly: _ctx.readonly,
155
+ autocomplete: _ctx.autocomplete,
156
+ tabindex: _ctx.tabindex,
157
+ placeholder: vue.unref(placeholder),
158
+ autofocus: _ctx.autofocus,
159
+ ariaLabel: _ctx.ariaLabel,
160
+ class: vue.unref(ns).e("input"),
161
+ style: vue.unref(inputStyle),
162
+ onCompositionstart: vue.unref(handleCompositionStart),
163
+ onCompositionupdate: vue.unref(handleCompositionUpdate),
164
+ onCompositionend: vue.unref(handleCompositionEnd),
165
+ onInput: vue.unref(handleInput),
166
+ onKeydown: vue.unref(handleKeydown)
167
+ }), null, 16, ["id", "onUpdate:modelValue", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onKeydown"]), [
168
+ [vue.vModelText, vue.unref(inputValue)]
169
+ ]),
170
+ vue.createElementVNode("span", {
171
+ ref_key: "calculatorRef",
172
+ ref: calculatorRef,
173
+ "aria-hidden": "true",
174
+ class: vue.normalizeClass(vue.unref(ns).e("input-calculator")),
175
+ textContent: vue.toDisplayString(vue.unref(inputValue))
176
+ }, null, 10, ["textContent"])
177
+ ], 2),
178
+ vue.withDirectives(vue.createElementVNode("div", {
179
+ ref_key: "dropIndicatorRef",
180
+ ref: dropIndicatorRef,
181
+ class: vue.normalizeClass(vue.unref(ns).e("drop-indicator"))
182
+ }, null, 2), [
183
+ [vue.vShow, vue.unref(showDropIndicator)]
184
+ ])
185
+ ], 2),
186
+ vue.unref(showSuffix) ? (vue.openBlock(), vue.createElementBlock("div", {
187
+ key: 1,
188
+ class: vue.normalizeClass(vue.unref(ns).e("suffix"))
189
+ }, [
190
+ vue.renderSlot(_ctx.$slots, "suffix"),
191
+ vue.unref(showClear) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElIcon), {
192
+ key: 0,
193
+ class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).e("clear")]),
194
+ onMousedown: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"]),
195
+ onClick: vue.unref(handleClear)
196
+ }, {
197
+ default: vue.withCtx(() => [
198
+ vue.createVNode(vue.unref(iconsVue.CircleClose))
199
+ ]),
200
+ _: 1
201
+ }, 8, ["class", "onMousedown", "onClick"])) : vue.createCommentVNode("v-if", true),
202
+ vue.unref(validateState) && vue.unref(validateIcon) && vue.unref(needStatusIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElIcon), {
203
+ key: 1,
204
+ class: vue.normalizeClass([
205
+ vue.unref(nsInput).e("icon"),
206
+ vue.unref(nsInput).e("validateIcon"),
207
+ vue.unref(nsInput).is("loading", vue.unref(validateState) === "validating")
208
+ ])
209
+ }, {
210
+ default: vue.withCtx(() => [
211
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(validateIcon))))
212
+ ]),
213
+ _: 1
214
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
215
+ ], 2)) : vue.createCommentVNode("v-if", true)
216
+ ], 46, ["onMouseenter", "onMouseleave"]);
217
+ };
218
+ }
219
+ });
220
+ var InputTag = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "input-tag.vue"]]);
221
+
222
+ exports["default"] = InputTag;
223
+ //# sourceMappingURL=input-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-tag.js","sources":["../../../../../../packages/components/input-tag/src/input-tag.vue"],"sourcesContent":["<template>\n <div\n ref=\"wrapperRef\"\n :class=\"containerKls\"\n :style=\"containerStyle\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n >\n <div v-if=\"slots.prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\" />\n </div>\n <div :class=\"innerKls\">\n <el-tag\n v-for=\"(item, index) in modelValue\"\n :key=\"index\"\n :size=\"tagSize\"\n :closable=\"closable\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n :draggable=\"closable && draggable\"\n disable-transitions\n @close=\"handleRemoveTag(index)\"\n @dragstart=\"(event: DragEvent) => handleDragStart(event, index)\"\n @dragover=\"(event: DragEvent) => handleDragOver(event, index)\"\n @dragend=\"handleDragEnd\"\n @drop.stop\n >\n <slot name=\"tag\" :value=\"item\" :index=\"index\">\n {{ item }}\n </slot>\n </el-tag>\n <div :class=\"ns.e('input-wrapper')\">\n <input\n :id=\"inputId\"\n ref=\"inputRef\"\n v-model=\"inputValue\"\n v-bind=\"attrs\"\n type=\"text\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n :placeholder=\"placeholder\"\n :autofocus=\"autofocus\"\n :ariaLabel=\"ariaLabel\"\n :class=\"ns.e('input')\"\n :style=\"inputStyle\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @keydown=\"handleKeydown\"\n />\n <span\n ref=\"calculatorRef\"\n aria-hidden=\"true\"\n :class=\"ns.e('input-calculator')\"\n v-text=\"inputValue\"\n />\n </div>\n <div\n v-show=\"showDropIndicator\"\n ref=\"dropIndicatorRef\"\n :class=\"ns.e('drop-indicator')\"\n />\n </div>\n <div v-if=\"showSuffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\" />\n <el-icon\n v-if=\"showClear\"\n :class=\"[ns.e('icon'), ns.e('clear')]\"\n @mousedown.prevent=\"NOOP\"\n @click=\"handleClear\"\n >\n <circle-close />\n </el-icon>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[\n nsInput.e('icon'),\n nsInput.e('validateIcon'),\n nsInput.is('loading', validateState === 'validating'),\n ]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { useAttrs, useCalcInputWidth } from '@element-plus/hooks'\nimport { NOOP, ValidateComponentsMap } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport ElTag from '@element-plus/components/tag'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { inputTagEmits, inputTagProps } from './input-tag'\nimport {\n useDragTag,\n useHovering,\n useInputTag,\n useInputTagDom,\n} from './composables'\n\ndefineOptions({\n name: 'ElInputTag',\n inheritAttrs: false,\n})\n\nconst props = defineProps(inputTagProps)\nconst emit = defineEmits(inputTagEmits)\n\nconst attrs = useAttrs()\nconst slots = useSlots()\nconst { form, formItem } = useFormItem()\nconst { inputId } = useFormItemInputId(props, { formItemContext: formItem })\n\nconst needStatusIcon = computed(() => form?.statusIcon ?? false)\nconst validateState = computed(() => formItem?.validateState || '')\nconst validateIcon = computed(() => {\n return validateState.value && ValidateComponentsMap[validateState.value]\n})\n\nconst {\n inputRef,\n wrapperRef,\n isFocused,\n inputValue,\n size,\n tagSize,\n placeholder,\n closable,\n disabled,\n handleDragged,\n handleInput,\n handleKeydown,\n handleRemoveTag,\n handleClear,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n focus,\n blur,\n} = useInputTag({ props, emit, formItem })\nconst { hovering, handleMouseEnter, handleMouseLeave } = useHovering()\nconst { calculatorRef, inputStyle } = useCalcInputWidth()\nconst {\n dropIndicatorRef,\n showDropIndicator,\n handleDragStart,\n handleDragOver,\n handleDragEnd,\n} = useDragTag({ wrapperRef, handleDragged, afterDragged: focus })\nconst {\n ns,\n nsInput,\n containerKls,\n containerStyle,\n innerKls,\n showClear,\n showSuffix,\n} = useInputTagDom({\n props,\n hovering,\n isFocused,\n inputValue,\n disabled,\n size,\n validateState,\n validateIcon,\n needStatusIcon,\n})\n\ndefineExpose({\n focus,\n blur,\n})\n</script>\n"],"names":["useAttrs","useSlots","useFormItem","useFormItemInputId","computed","ValidateComponentsMap","useInputTag","useHovering","useCalcInputWidth","useDragTag","useInputTagDom"],"mappings":";;;;;;;;;;;;;;;;;;;;uCA4Gc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,QAAQA,cAAS,EAAA,CAAA;AACvB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AACvB,IAAA,MAAM,EAAE,IAAA,EAAM,QAAS,EAAA,GAAIC,uBAAY,EAAA,CAAA;AACvC,IAAM,MAAA,EAAE,SAAY,GAAAC,8BAAA,CAAmB,OAAO,EAAE,eAAA,EAAiB,UAAU,CAAA,CAAA;AAE3E,IAAA,MAAM,cAAiB,GAAAC,YAAA,CAAS,MAAM;AACtC,MAAA,IAAM,EAAgB,CAAA;AACtB,MAAM,OAAA,CAAA,EAAA,GAAA,IAAA,WAAwB,KAAM,CAAA,GAAA,IAAA,CAAA,UAAA,KAAA,I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cACiB;AAAA,MACjB,SAAA;AAAA,MACA,UAAA;AAAA,KACA,GAAAC,6BAAA,CAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,QAAA;AAAA,MACA,IAAA;AAAA,MACD,aAAA;AAED,MAAa,YAAA;AAAA,MACX,cAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACF,MAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,142 @@
1
+ declare function __VLS_template(): {
2
+ prefix?(_: {}): any;
3
+ tag?(_: {
4
+ value: string;
5
+ index: number;
6
+ }): any;
7
+ suffix?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<{
10
+ readonly modelValue: {
11
+ readonly type: import("vue").PropType<string[]>;
12
+ readonly required: false;
13
+ readonly validator: ((val: unknown) => boolean) | undefined;
14
+ __epPropKey: true;
15
+ };
16
+ readonly max: NumberConstructor;
17
+ readonly tagType: {
18
+ readonly default: "info";
19
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
20
+ readonly required: false;
21
+ readonly validator: ((val: unknown) => boolean) | undefined;
22
+ readonly __epPropKey: true;
23
+ };
24
+ readonly tagEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "dark" | "light" | "plain", unknown, "light", boolean>;
25
+ readonly trigger: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | ((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space"))[], unknown, unknown, string, boolean>;
26
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
27
+ readonly size: {
28
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
29
+ readonly required: false;
30
+ readonly validator: ((val: unknown) => boolean) | undefined;
31
+ __epPropKey: true;
32
+ };
33
+ readonly clearable: BooleanConstructor;
34
+ readonly disabled: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
35
+ readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
36
+ readonly readonly: BooleanConstructor;
37
+ readonly autofocus: BooleanConstructor;
38
+ readonly id: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
39
+ readonly tabindex: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
40
+ readonly maxlength: {
41
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
42
+ readonly required: false;
43
+ readonly validator: ((val: unknown) => boolean) | undefined;
44
+ __epPropKey: true;
45
+ };
46
+ readonly minlength: {
47
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
48
+ readonly required: false;
49
+ readonly validator: ((val: unknown) => boolean) | undefined;
50
+ __epPropKey: true;
51
+ };
52
+ readonly placeholder: StringConstructor;
53
+ readonly autocomplete: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
54
+ readonly ariaLabel: StringConstructor;
55
+ }, {
56
+ focus: () => void;
57
+ blur: () => void;
58
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ clear: () => void;
60
+ "update:modelValue": (value?: string[] | undefined) => void;
61
+ change: (value?: string[] | undefined) => void;
62
+ input: (value: string) => void;
63
+ blur: (evt: FocusEvent) => void;
64
+ focus: (evt: FocusEvent) => void;
65
+ "add-tag": (value: string) => void;
66
+ "remove-tag": (value: string) => void;
67
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
68
+ readonly modelValue: {
69
+ readonly type: import("vue").PropType<string[]>;
70
+ readonly required: false;
71
+ readonly validator: ((val: unknown) => boolean) | undefined;
72
+ __epPropKey: true;
73
+ };
74
+ readonly max: NumberConstructor;
75
+ readonly tagType: {
76
+ readonly default: "info";
77
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
78
+ readonly required: false;
79
+ readonly validator: ((val: unknown) => boolean) | undefined;
80
+ readonly __epPropKey: true;
81
+ };
82
+ readonly tagEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "dark" | "light" | "plain", unknown, "light", boolean>;
83
+ readonly trigger: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | ((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space"))[], unknown, unknown, string, boolean>;
84
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
85
+ readonly size: {
86
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
87
+ readonly required: false;
88
+ readonly validator: ((val: unknown) => boolean) | undefined;
89
+ __epPropKey: true;
90
+ };
91
+ readonly clearable: BooleanConstructor;
92
+ readonly disabled: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
93
+ readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
94
+ readonly readonly: BooleanConstructor;
95
+ readonly autofocus: BooleanConstructor;
96
+ readonly id: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
97
+ readonly tabindex: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
98
+ readonly maxlength: {
99
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
100
+ readonly required: false;
101
+ readonly validator: ((val: unknown) => boolean) | undefined;
102
+ __epPropKey: true;
103
+ };
104
+ readonly minlength: {
105
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
106
+ readonly required: false;
107
+ readonly validator: ((val: unknown) => boolean) | undefined;
108
+ __epPropKey: true;
109
+ };
110
+ readonly placeholder: StringConstructor;
111
+ readonly autocomplete: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
112
+ readonly ariaLabel: StringConstructor;
113
+ }>> & {
114
+ "onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
115
+ onChange?: ((value?: string[] | undefined) => any) | undefined;
116
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
117
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
118
+ onInput?: ((value: string) => any) | undefined;
119
+ onClear?: (() => any) | undefined;
120
+ "onAdd-tag"?: ((value: string) => any) | undefined;
121
+ "onRemove-tag"?: ((value: string) => any) | undefined;
122
+ }, {
123
+ readonly disabled: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
124
+ readonly id: string;
125
+ readonly tabindex: import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
126
+ readonly readonly: boolean;
127
+ readonly trigger: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | ((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space"))[], unknown, unknown>;
128
+ readonly autocomplete: string;
129
+ readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
130
+ readonly clearable: boolean;
131
+ readonly autofocus: boolean;
132
+ readonly tagType: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>;
133
+ readonly tagEffect: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>;
134
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
135
+ }>;
136
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
137
+ export default _default;
138
+ type __VLS_WithTemplateSlots<T, S> = T & {
139
+ new (): {
140
+ $slots: S;
141
+ };
142
+ };