@element-plus/nightly 0.0.20251217 → 0.0.20251219

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 (555) hide show
  1. package/README.md +6 -2
  2. package/attributes.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.full.js +8 -13
  5. package/dist/index.full.min.js +11 -11
  6. package/dist/index.full.min.js.map +1 -1
  7. package/dist/index.full.min.mjs +11 -11
  8. package/dist/index.full.min.mjs.map +1 -1
  9. package/dist/index.full.mjs +8 -13
  10. package/dist/locale/af.js +1 -1
  11. package/dist/locale/af.min.js +1 -1
  12. package/dist/locale/af.min.mjs +1 -1
  13. package/dist/locale/af.mjs +1 -1
  14. package/dist/locale/ar-eg.js +1 -1
  15. package/dist/locale/ar-eg.min.js +1 -1
  16. package/dist/locale/ar-eg.min.mjs +1 -1
  17. package/dist/locale/ar-eg.mjs +1 -1
  18. package/dist/locale/ar.js +1 -1
  19. package/dist/locale/ar.min.js +1 -1
  20. package/dist/locale/ar.min.mjs +1 -1
  21. package/dist/locale/ar.mjs +1 -1
  22. package/dist/locale/az.js +1 -1
  23. package/dist/locale/az.min.js +1 -1
  24. package/dist/locale/az.min.mjs +1 -1
  25. package/dist/locale/az.mjs +1 -1
  26. package/dist/locale/bg.js +1 -1
  27. package/dist/locale/bg.min.js +1 -1
  28. package/dist/locale/bg.min.mjs +1 -1
  29. package/dist/locale/bg.mjs +1 -1
  30. package/dist/locale/bn.js +1 -1
  31. package/dist/locale/bn.min.js +1 -1
  32. package/dist/locale/bn.min.mjs +1 -1
  33. package/dist/locale/bn.mjs +1 -1
  34. package/dist/locale/ca.js +1 -1
  35. package/dist/locale/ca.min.js +1 -1
  36. package/dist/locale/ca.min.mjs +1 -1
  37. package/dist/locale/ca.mjs +1 -1
  38. package/dist/locale/ckb.js +1 -1
  39. package/dist/locale/ckb.min.js +1 -1
  40. package/dist/locale/ckb.min.mjs +1 -1
  41. package/dist/locale/ckb.mjs +1 -1
  42. package/dist/locale/cs.js +1 -1
  43. package/dist/locale/cs.min.js +1 -1
  44. package/dist/locale/cs.min.mjs +1 -1
  45. package/dist/locale/cs.mjs +1 -1
  46. package/dist/locale/da.js +1 -1
  47. package/dist/locale/da.min.js +1 -1
  48. package/dist/locale/da.min.mjs +1 -1
  49. package/dist/locale/da.mjs +1 -1
  50. package/dist/locale/de.js +1 -1
  51. package/dist/locale/de.min.js +1 -1
  52. package/dist/locale/de.min.mjs +1 -1
  53. package/dist/locale/de.mjs +1 -1
  54. package/dist/locale/el.js +1 -1
  55. package/dist/locale/el.min.js +1 -1
  56. package/dist/locale/el.min.mjs +1 -1
  57. package/dist/locale/el.mjs +1 -1
  58. package/dist/locale/en.js +1 -1
  59. package/dist/locale/en.min.js +1 -1
  60. package/dist/locale/en.min.mjs +1 -1
  61. package/dist/locale/en.mjs +1 -1
  62. package/dist/locale/eo.js +1 -1
  63. package/dist/locale/eo.min.js +1 -1
  64. package/dist/locale/eo.min.mjs +1 -1
  65. package/dist/locale/eo.mjs +1 -1
  66. package/dist/locale/es.js +1 -1
  67. package/dist/locale/es.min.js +1 -1
  68. package/dist/locale/es.min.mjs +1 -1
  69. package/dist/locale/es.mjs +1 -1
  70. package/dist/locale/et.js +1 -1
  71. package/dist/locale/et.min.js +1 -1
  72. package/dist/locale/et.min.mjs +1 -1
  73. package/dist/locale/et.mjs +1 -1
  74. package/dist/locale/eu.js +1 -1
  75. package/dist/locale/eu.min.js +1 -1
  76. package/dist/locale/eu.min.mjs +1 -1
  77. package/dist/locale/eu.mjs +1 -1
  78. package/dist/locale/fa.js +1 -1
  79. package/dist/locale/fa.min.js +1 -1
  80. package/dist/locale/fa.min.mjs +1 -1
  81. package/dist/locale/fa.mjs +1 -1
  82. package/dist/locale/fi.js +1 -1
  83. package/dist/locale/fi.min.js +1 -1
  84. package/dist/locale/fi.min.mjs +1 -1
  85. package/dist/locale/fi.mjs +1 -1
  86. package/dist/locale/fr.js +1 -1
  87. package/dist/locale/fr.min.js +1 -1
  88. package/dist/locale/fr.min.mjs +1 -1
  89. package/dist/locale/fr.mjs +1 -1
  90. package/dist/locale/he.js +1 -1
  91. package/dist/locale/he.min.js +1 -1
  92. package/dist/locale/he.min.mjs +1 -1
  93. package/dist/locale/he.mjs +1 -1
  94. package/dist/locale/hi.js +1 -1
  95. package/dist/locale/hi.min.js +1 -1
  96. package/dist/locale/hi.min.mjs +1 -1
  97. package/dist/locale/hi.mjs +1 -1
  98. package/dist/locale/hr.js +1 -1
  99. package/dist/locale/hr.min.js +1 -1
  100. package/dist/locale/hr.min.mjs +1 -1
  101. package/dist/locale/hr.mjs +1 -1
  102. package/dist/locale/hu.js +1 -1
  103. package/dist/locale/hu.min.js +1 -1
  104. package/dist/locale/hu.min.mjs +1 -1
  105. package/dist/locale/hu.mjs +1 -1
  106. package/dist/locale/hy-am.js +1 -1
  107. package/dist/locale/hy-am.min.js +1 -1
  108. package/dist/locale/hy-am.min.mjs +1 -1
  109. package/dist/locale/hy-am.mjs +1 -1
  110. package/dist/locale/id.js +1 -1
  111. package/dist/locale/id.min.js +1 -1
  112. package/dist/locale/id.min.mjs +1 -1
  113. package/dist/locale/id.mjs +1 -1
  114. package/dist/locale/it.js +1 -1
  115. package/dist/locale/it.min.js +1 -1
  116. package/dist/locale/it.min.mjs +1 -1
  117. package/dist/locale/it.mjs +1 -1
  118. package/dist/locale/ja.js +1 -1
  119. package/dist/locale/ja.min.js +1 -1
  120. package/dist/locale/ja.min.mjs +1 -1
  121. package/dist/locale/ja.mjs +1 -1
  122. package/dist/locale/kk.js +1 -1
  123. package/dist/locale/kk.min.js +1 -1
  124. package/dist/locale/kk.min.mjs +1 -1
  125. package/dist/locale/kk.mjs +1 -1
  126. package/dist/locale/km.js +1 -1
  127. package/dist/locale/km.min.js +1 -1
  128. package/dist/locale/km.min.mjs +1 -1
  129. package/dist/locale/km.mjs +1 -1
  130. package/dist/locale/ko.js +1 -1
  131. package/dist/locale/ko.min.js +1 -1
  132. package/dist/locale/ko.min.mjs +1 -1
  133. package/dist/locale/ko.mjs +1 -1
  134. package/dist/locale/ku.js +1 -1
  135. package/dist/locale/ku.min.js +1 -1
  136. package/dist/locale/ku.min.mjs +1 -1
  137. package/dist/locale/ku.mjs +1 -1
  138. package/dist/locale/ky.js +1 -1
  139. package/dist/locale/ky.min.js +1 -1
  140. package/dist/locale/ky.min.mjs +1 -1
  141. package/dist/locale/ky.mjs +1 -1
  142. package/dist/locale/lo.js +1 -1
  143. package/dist/locale/lo.min.js +1 -1
  144. package/dist/locale/lo.min.mjs +1 -1
  145. package/dist/locale/lo.mjs +1 -1
  146. package/dist/locale/lt.js +1 -1
  147. package/dist/locale/lt.min.js +1 -1
  148. package/dist/locale/lt.min.mjs +1 -1
  149. package/dist/locale/lt.mjs +1 -1
  150. package/dist/locale/lv.js +1 -1
  151. package/dist/locale/lv.min.js +1 -1
  152. package/dist/locale/lv.min.mjs +1 -1
  153. package/dist/locale/lv.mjs +1 -1
  154. package/dist/locale/mg.js +1 -1
  155. package/dist/locale/mg.min.js +1 -1
  156. package/dist/locale/mg.min.mjs +1 -1
  157. package/dist/locale/mg.mjs +1 -1
  158. package/dist/locale/mn.js +1 -1
  159. package/dist/locale/mn.min.js +1 -1
  160. package/dist/locale/mn.min.mjs +1 -1
  161. package/dist/locale/mn.mjs +1 -1
  162. package/dist/locale/ms.js +1 -1
  163. package/dist/locale/ms.min.js +1 -1
  164. package/dist/locale/ms.min.mjs +1 -1
  165. package/dist/locale/ms.mjs +1 -1
  166. package/dist/locale/my.js +1 -1
  167. package/dist/locale/my.min.js +1 -1
  168. package/dist/locale/my.min.mjs +1 -1
  169. package/dist/locale/my.mjs +1 -1
  170. package/dist/locale/nb-no.js +1 -1
  171. package/dist/locale/nb-no.min.js +1 -1
  172. package/dist/locale/nb-no.min.mjs +1 -1
  173. package/dist/locale/nb-no.mjs +1 -1
  174. package/dist/locale/nl.js +1 -1
  175. package/dist/locale/nl.min.js +1 -1
  176. package/dist/locale/nl.min.mjs +1 -1
  177. package/dist/locale/nl.mjs +1 -1
  178. package/dist/locale/no.js +1 -1
  179. package/dist/locale/no.min.js +1 -1
  180. package/dist/locale/no.min.mjs +1 -1
  181. package/dist/locale/no.mjs +1 -1
  182. package/dist/locale/pa.js +1 -1
  183. package/dist/locale/pa.min.js +1 -1
  184. package/dist/locale/pa.min.mjs +1 -1
  185. package/dist/locale/pa.mjs +1 -1
  186. package/dist/locale/pl.js +1 -1
  187. package/dist/locale/pl.min.js +1 -1
  188. package/dist/locale/pl.min.mjs +1 -1
  189. package/dist/locale/pl.mjs +1 -1
  190. package/dist/locale/pt-br.js +1 -1
  191. package/dist/locale/pt-br.min.js +1 -1
  192. package/dist/locale/pt-br.min.mjs +1 -1
  193. package/dist/locale/pt-br.mjs +1 -1
  194. package/dist/locale/pt.js +1 -1
  195. package/dist/locale/pt.min.js +1 -1
  196. package/dist/locale/pt.min.mjs +1 -1
  197. package/dist/locale/pt.mjs +1 -1
  198. package/dist/locale/ro.js +1 -1
  199. package/dist/locale/ro.min.js +1 -1
  200. package/dist/locale/ro.min.mjs +1 -1
  201. package/dist/locale/ro.mjs +1 -1
  202. package/dist/locale/ru.js +1 -1
  203. package/dist/locale/ru.min.js +1 -1
  204. package/dist/locale/ru.min.mjs +1 -1
  205. package/dist/locale/ru.mjs +1 -1
  206. package/dist/locale/sk.js +1 -1
  207. package/dist/locale/sk.min.js +1 -1
  208. package/dist/locale/sk.min.mjs +1 -1
  209. package/dist/locale/sk.mjs +1 -1
  210. package/dist/locale/sl.js +1 -1
  211. package/dist/locale/sl.min.js +1 -1
  212. package/dist/locale/sl.min.mjs +1 -1
  213. package/dist/locale/sl.mjs +1 -1
  214. package/dist/locale/sr.js +1 -1
  215. package/dist/locale/sr.min.js +1 -1
  216. package/dist/locale/sr.min.mjs +1 -1
  217. package/dist/locale/sr.mjs +1 -1
  218. package/dist/locale/sv.js +1 -1
  219. package/dist/locale/sv.min.js +1 -1
  220. package/dist/locale/sv.min.mjs +1 -1
  221. package/dist/locale/sv.mjs +1 -1
  222. package/dist/locale/sw.js +1 -1
  223. package/dist/locale/sw.min.js +1 -1
  224. package/dist/locale/sw.min.mjs +1 -1
  225. package/dist/locale/sw.mjs +1 -1
  226. package/dist/locale/ta.js +1 -1
  227. package/dist/locale/ta.min.js +1 -1
  228. package/dist/locale/ta.min.mjs +1 -1
  229. package/dist/locale/ta.mjs +1 -1
  230. package/dist/locale/te.js +1 -1
  231. package/dist/locale/te.min.js +1 -1
  232. package/dist/locale/te.min.mjs +1 -1
  233. package/dist/locale/te.mjs +1 -1
  234. package/dist/locale/th.js +1 -1
  235. package/dist/locale/th.min.js +1 -1
  236. package/dist/locale/th.min.mjs +1 -1
  237. package/dist/locale/th.mjs +1 -1
  238. package/dist/locale/tk.js +1 -1
  239. package/dist/locale/tk.min.js +1 -1
  240. package/dist/locale/tk.min.mjs +1 -1
  241. package/dist/locale/tk.mjs +1 -1
  242. package/dist/locale/tr.js +1 -1
  243. package/dist/locale/tr.min.js +1 -1
  244. package/dist/locale/tr.min.mjs +1 -1
  245. package/dist/locale/tr.mjs +1 -1
  246. package/dist/locale/ug-cn.js +1 -1
  247. package/dist/locale/ug-cn.min.js +1 -1
  248. package/dist/locale/ug-cn.min.mjs +1 -1
  249. package/dist/locale/ug-cn.mjs +1 -1
  250. package/dist/locale/uk.js +1 -1
  251. package/dist/locale/uk.min.js +1 -1
  252. package/dist/locale/uk.min.mjs +1 -1
  253. package/dist/locale/uk.mjs +1 -1
  254. package/dist/locale/uz-uz.js +1 -1
  255. package/dist/locale/uz-uz.min.js +1 -1
  256. package/dist/locale/uz-uz.min.mjs +1 -1
  257. package/dist/locale/uz-uz.mjs +1 -1
  258. package/dist/locale/vi.js +1 -1
  259. package/dist/locale/vi.min.js +1 -1
  260. package/dist/locale/vi.min.mjs +1 -1
  261. package/dist/locale/vi.mjs +1 -1
  262. package/dist/locale/zh-cn.js +1 -1
  263. package/dist/locale/zh-cn.min.js +1 -1
  264. package/dist/locale/zh-cn.min.mjs +1 -1
  265. package/dist/locale/zh-cn.mjs +1 -1
  266. package/dist/locale/zh-hk.js +1 -1
  267. package/dist/locale/zh-hk.min.js +1 -1
  268. package/dist/locale/zh-hk.min.mjs +1 -1
  269. package/dist/locale/zh-hk.mjs +1 -1
  270. package/dist/locale/zh-mo.js +1 -1
  271. package/dist/locale/zh-mo.min.js +1 -1
  272. package/dist/locale/zh-mo.min.mjs +1 -1
  273. package/dist/locale/zh-mo.mjs +1 -1
  274. package/dist/locale/zh-tw.js +1 -1
  275. package/dist/locale/zh-tw.min.js +1 -1
  276. package/dist/locale/zh-tw.min.mjs +1 -1
  277. package/dist/locale/zh-tw.mjs +1 -1
  278. package/es/components/affix/index.mjs +2 -2
  279. package/es/components/affix/src/affix.mjs +29 -153
  280. package/es/components/affix/src/affix.mjs.map +1 -1
  281. package/es/components/affix/src/affix2.mjs +153 -29
  282. package/es/components/affix/src/affix2.mjs.map +1 -1
  283. package/es/components/autocomplete/index.mjs +2 -2
  284. package/es/components/autocomplete/src/autocomplete.mjs +486 -60
  285. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  286. package/es/components/autocomplete/src/autocomplete2.mjs +60 -486
  287. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  288. package/es/components/backtop/index.mjs +2 -2
  289. package/es/components/backtop/src/backtop.mjs +61 -20
  290. package/es/components/backtop/src/backtop.mjs.map +1 -1
  291. package/es/components/backtop/src/backtop2.mjs +20 -61
  292. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  293. package/es/components/badge/index.mjs +2 -2
  294. package/es/components/badge/src/badge.mjs +31 -83
  295. package/es/components/badge/src/badge.mjs.map +1 -1
  296. package/es/components/badge/src/badge2.mjs +83 -31
  297. package/es/components/badge/src/badge2.mjs.map +1 -1
  298. package/es/components/calendar/index.mjs +2 -2
  299. package/es/components/calendar/src/calendar.mjs +15 -180
  300. package/es/components/calendar/src/calendar.mjs.map +1 -1
  301. package/es/components/calendar/src/calendar2.mjs +180 -15
  302. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  303. package/es/components/check-tag/index.mjs +2 -2
  304. package/es/components/check-tag/src/check-tag.mjs +14 -43
  305. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  306. package/es/components/check-tag/src/check-tag2.mjs +43 -14
  307. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  308. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs +1 -6
  309. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
  310. package/es/components/descriptions/index.mjs +2 -2
  311. package/es/components/descriptions/src/description.mjs +24 -169
  312. package/es/components/descriptions/src/description.mjs.map +1 -1
  313. package/es/components/descriptions/src/description2.mjs +169 -24
  314. package/es/components/descriptions/src/description2.mjs.map +1 -1
  315. package/es/components/descriptions/src/descriptions-row.mjs +6 -94
  316. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  317. package/es/components/descriptions/src/descriptions-row2.mjs +94 -6
  318. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  319. package/es/components/dialog/src/dialog-content.mjs +38 -112
  320. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  321. package/es/components/dialog/src/dialog-content2.mjs +112 -38
  322. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  323. package/es/components/dialog/src/dialog.mjs +1 -1
  324. package/es/components/dialog/src/dialog2.mjs +1 -1
  325. package/es/components/form/index.mjs +2 -2
  326. package/es/components/form/src/form.mjs +54 -174
  327. package/es/components/form/src/form.mjs.map +1 -1
  328. package/es/components/form/src/form2.mjs +174 -54
  329. package/es/components/form/src/form2.mjs.map +1 -1
  330. package/es/components/index.mjs +19 -19
  331. package/es/components/input/index.mjs +2 -2
  332. package/es/components/input/src/input.mjs +586 -124
  333. package/es/components/input/src/input.mjs.map +1 -1
  334. package/es/components/input/src/input2.mjs +124 -586
  335. package/es/components/input/src/input2.mjs.map +1 -1
  336. package/es/components/mention/src/mention.mjs +1 -1
  337. package/es/components/mention/src/mention2.mjs +1 -1
  338. package/es/components/menu/index.mjs +2 -2
  339. package/es/components/menu/src/menu-item-group.mjs +4 -51
  340. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  341. package/es/components/menu/src/menu-item-group2.mjs +51 -4
  342. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  343. package/es/components/pagination/src/components/jumper.mjs +7 -69
  344. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  345. package/es/components/pagination/src/components/jumper2.mjs +69 -7
  346. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  347. package/es/components/pagination/src/pagination.mjs +1 -1
  348. package/es/components/popover/index.mjs +2 -2
  349. package/es/components/popover/src/popover.mjs +65 -120
  350. package/es/components/popover/src/popover.mjs.map +1 -1
  351. package/es/components/popover/src/popover2.mjs +120 -65
  352. package/es/components/popover/src/popover2.mjs.map +1 -1
  353. package/es/components/rate/index.mjs +2 -2
  354. package/es/components/rate/src/rate.mjs +295 -85
  355. package/es/components/rate/src/rate.mjs.map +1 -1
  356. package/es/components/rate/src/rate2.mjs +85 -295
  357. package/es/components/rate/src/rate2.mjs.map +1 -1
  358. package/es/components/row/index.mjs +2 -2
  359. package/es/components/row/src/row.mjs +27 -43
  360. package/es/components/row/src/row.mjs.map +1 -1
  361. package/es/components/row/src/row2.mjs +43 -27
  362. package/es/components/row/src/row2.mjs.map +1 -1
  363. package/es/components/skeleton/index.mjs +2 -2
  364. package/es/components/skeleton/src/skeleton-item.mjs +27 -17
  365. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  366. package/es/components/skeleton/src/skeleton-item2.mjs +17 -27
  367. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  368. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  369. package/es/components/steps/index.mjs +2 -2
  370. package/es/components/steps/src/item.mjs +18 -257
  371. package/es/components/steps/src/item.mjs.map +1 -1
  372. package/es/components/steps/src/item2.mjs +257 -18
  373. package/es/components/steps/src/item2.mjs.map +1 -1
  374. package/es/components/tabs/src/tab-nav.mjs +4 -1
  375. package/es/components/tabs/src/tab-nav.mjs.map +1 -1
  376. package/es/components/text/index.mjs +2 -2
  377. package/es/components/text/src/text.mjs +20 -66
  378. package/es/components/text/src/text.mjs.map +1 -1
  379. package/es/components/text/src/text2.mjs +66 -20
  380. package/es/components/text/src/text2.mjs.map +1 -1
  381. package/es/components/time-select/index.mjs +2 -2
  382. package/es/components/time-select/src/time-select.mjs +66 -138
  383. package/es/components/time-select/src/time-select.mjs.map +1 -1
  384. package/es/components/time-select/src/time-select2.mjs +138 -66
  385. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  386. package/es/components/tour/index.mjs +2 -2
  387. package/es/components/tour/src/mask.mjs +82 -17
  388. package/es/components/tour/src/mask.mjs.map +1 -1
  389. package/es/components/tour/src/mask2.mjs +17 -82
  390. package/es/components/tour/src/mask2.mjs.map +1 -1
  391. package/es/components/tour/src/step.mjs +43 -255
  392. package/es/components/tour/src/step.mjs.map +1 -1
  393. package/es/components/tour/src/step2.mjs +255 -43
  394. package/es/components/tour/src/step2.mjs.map +1 -1
  395. package/es/components/tour/src/tour2.mjs +1 -1
  396. package/es/components/tree/src/model/useKeydown.mjs +2 -4
  397. package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
  398. package/es/components/upload/index.mjs +1 -1
  399. package/es/components/upload/src/upload-list.mjs +206 -27
  400. package/es/components/upload/src/upload-list.mjs.map +1 -1
  401. package/es/components/upload/src/upload-list2.mjs +27 -206
  402. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  403. package/es/components/upload/src/upload2.mjs +1 -1
  404. package/es/directives/mousewheel/index.d.ts +2 -2
  405. package/es/directives/mousewheel/index.mjs.map +1 -1
  406. package/es/index.mjs +19 -19
  407. package/es/version.d.ts +1 -1
  408. package/es/version.mjs +1 -1
  409. package/es/version.mjs.map +1 -1
  410. package/lib/components/affix/index.js +2 -2
  411. package/lib/components/affix/src/affix.js +30 -153
  412. package/lib/components/affix/src/affix.js.map +1 -1
  413. package/lib/components/affix/src/affix2.js +153 -30
  414. package/lib/components/affix/src/affix2.js.map +1 -1
  415. package/lib/components/autocomplete/index.js +2 -2
  416. package/lib/components/autocomplete/src/autocomplete.js +484 -59
  417. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  418. package/lib/components/autocomplete/src/autocomplete2.js +59 -484
  419. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  420. package/lib/components/backtop/index.js +2 -2
  421. package/lib/components/backtop/src/backtop.js +61 -21
  422. package/lib/components/backtop/src/backtop.js.map +1 -1
  423. package/lib/components/backtop/src/backtop2.js +21 -61
  424. package/lib/components/backtop/src/backtop2.js.map +1 -1
  425. package/lib/components/badge/index.js +2 -2
  426. package/lib/components/badge/src/badge.js +31 -83
  427. package/lib/components/badge/src/badge.js.map +1 -1
  428. package/lib/components/badge/src/badge2.js +83 -31
  429. package/lib/components/badge/src/badge2.js.map +1 -1
  430. package/lib/components/calendar/index.js +2 -2
  431. package/lib/components/calendar/src/calendar.js +16 -180
  432. package/lib/components/calendar/src/calendar.js.map +1 -1
  433. package/lib/components/calendar/src/calendar2.js +180 -16
  434. package/lib/components/calendar/src/calendar2.js.map +1 -1
  435. package/lib/components/check-tag/index.js +2 -2
  436. package/lib/components/check-tag/src/check-tag.js +15 -43
  437. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  438. package/lib/components/check-tag/src/check-tag2.js +43 -15
  439. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  440. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js +1 -6
  441. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
  442. package/lib/components/descriptions/index.js +2 -2
  443. package/lib/components/descriptions/src/description.js +24 -169
  444. package/lib/components/descriptions/src/description.js.map +1 -1
  445. package/lib/components/descriptions/src/description2.js +169 -24
  446. package/lib/components/descriptions/src/description2.js.map +1 -1
  447. package/lib/components/descriptions/src/descriptions-row.js +6 -94
  448. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  449. package/lib/components/descriptions/src/descriptions-row2.js +94 -6
  450. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  451. package/lib/components/dialog/src/dialog-content.js +38 -111
  452. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  453. package/lib/components/dialog/src/dialog-content2.js +111 -38
  454. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  455. package/lib/components/dialog/src/dialog.js +1 -1
  456. package/lib/components/dialog/src/dialog2.js +1 -1
  457. package/lib/components/form/index.js +2 -2
  458. package/lib/components/form/src/form.js +55 -173
  459. package/lib/components/form/src/form.js.map +1 -1
  460. package/lib/components/form/src/form2.js +173 -55
  461. package/lib/components/form/src/form2.js.map +1 -1
  462. package/lib/components/index.js +19 -19
  463. package/lib/components/input/index.js +2 -2
  464. package/lib/components/input/src/input.js +582 -121
  465. package/lib/components/input/src/input.js.map +1 -1
  466. package/lib/components/input/src/input2.js +121 -582
  467. package/lib/components/input/src/input2.js.map +1 -1
  468. package/lib/components/mention/src/mention.js +1 -1
  469. package/lib/components/mention/src/mention2.js +1 -1
  470. package/lib/components/menu/index.js +2 -2
  471. package/lib/components/menu/src/menu-item-group.js +4 -51
  472. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  473. package/lib/components/menu/src/menu-item-group2.js +51 -4
  474. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  475. package/lib/components/pagination/src/components/jumper.js +7 -69
  476. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  477. package/lib/components/pagination/src/components/jumper2.js +69 -7
  478. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  479. package/lib/components/pagination/src/pagination.js +1 -1
  480. package/lib/components/popover/index.js +2 -2
  481. package/lib/components/popover/src/popover.js +66 -120
  482. package/lib/components/popover/src/popover.js.map +1 -1
  483. package/lib/components/popover/src/popover2.js +120 -66
  484. package/lib/components/popover/src/popover2.js.map +1 -1
  485. package/lib/components/rate/index.js +2 -2
  486. package/lib/components/rate/src/rate.js +294 -85
  487. package/lib/components/rate/src/rate.js.map +1 -1
  488. package/lib/components/rate/src/rate2.js +85 -294
  489. package/lib/components/rate/src/rate2.js.map +1 -1
  490. package/lib/components/row/index.js +2 -2
  491. package/lib/components/row/src/row.js +29 -43
  492. package/lib/components/row/src/row.js.map +1 -1
  493. package/lib/components/row/src/row2.js +43 -29
  494. package/lib/components/row/src/row2.js.map +1 -1
  495. package/lib/components/skeleton/index.js +2 -2
  496. package/lib/components/skeleton/src/skeleton-item.js +27 -17
  497. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  498. package/lib/components/skeleton/src/skeleton-item2.js +17 -27
  499. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  500. package/lib/components/skeleton/src/skeleton2.js +1 -1
  501. package/lib/components/steps/index.js +2 -2
  502. package/lib/components/steps/src/item.js +18 -257
  503. package/lib/components/steps/src/item.js.map +1 -1
  504. package/lib/components/steps/src/item2.js +257 -18
  505. package/lib/components/steps/src/item2.js.map +1 -1
  506. package/lib/components/tabs/src/tab-nav.js +4 -1
  507. package/lib/components/tabs/src/tab-nav.js.map +1 -1
  508. package/lib/components/text/index.js +2 -2
  509. package/lib/components/text/src/text.js +20 -66
  510. package/lib/components/text/src/text.js.map +1 -1
  511. package/lib/components/text/src/text2.js +66 -20
  512. package/lib/components/text/src/text2.js.map +1 -1
  513. package/lib/components/time-select/index.js +2 -2
  514. package/lib/components/time-select/src/time-select.js +66 -143
  515. package/lib/components/time-select/src/time-select.js.map +1 -1
  516. package/lib/components/time-select/src/time-select2.js +143 -66
  517. package/lib/components/time-select/src/time-select2.js.map +1 -1
  518. package/lib/components/tour/index.js +2 -2
  519. package/lib/components/tour/src/mask.js +82 -17
  520. package/lib/components/tour/src/mask.js.map +1 -1
  521. package/lib/components/tour/src/mask2.js +17 -82
  522. package/lib/components/tour/src/mask2.js.map +1 -1
  523. package/lib/components/tour/src/step.js +43 -254
  524. package/lib/components/tour/src/step.js.map +1 -1
  525. package/lib/components/tour/src/step2.js +254 -43
  526. package/lib/components/tour/src/step2.js.map +1 -1
  527. package/lib/components/tour/src/tour2.js +1 -1
  528. package/lib/components/tree/src/model/useKeydown.js +2 -4
  529. package/lib/components/tree/src/model/useKeydown.js.map +1 -1
  530. package/lib/components/upload/index.js +1 -1
  531. package/lib/components/upload/src/upload-list.js +206 -28
  532. package/lib/components/upload/src/upload-list.js.map +1 -1
  533. package/lib/components/upload/src/upload-list2.js +28 -206
  534. package/lib/components/upload/src/upload-list2.js.map +1 -1
  535. package/lib/components/upload/src/upload2.js +1 -1
  536. package/lib/directives/mousewheel/index.d.ts +2 -2
  537. package/lib/directives/mousewheel/index.js.map +1 -1
  538. package/lib/index.js +19 -19
  539. package/lib/version.d.ts +1 -1
  540. package/lib/version.js +1 -1
  541. package/lib/version.js.map +1 -1
  542. package/package.json +2 -2
  543. package/tags.json +1 -1
  544. package/theme-chalk/el-checkbox.css +1 -1
  545. package/theme-chalk/el-date-picker-panel.css +1 -1
  546. package/theme-chalk/el-form-item.css +1 -0
  547. package/theme-chalk/el-form.css +1 -1
  548. package/theme-chalk/el-time-picker.css +1 -1
  549. package/theme-chalk/el-time-select.css +1 -1
  550. package/theme-chalk/index.css +1 -1
  551. package/theme-chalk/src/checkbox.scss +1 -0
  552. package/theme-chalk/src/date-picker/picker-panel.scss +5 -0
  553. package/theme-chalk/src/form-item.scss +232 -0
  554. package/theme-chalk/src/form.scss +0 -229
  555. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div :ref=\"composedDialogRef\" :class=\"dialogKls\" :style=\"style\" tabindex=\"-1\">\n <header\n ref=\"headerRef\"\n :class=\"[ns.e('header'), headerClass, { 'show-close': showClose }]\"\n >\n <slot name=\"header\">\n <span role=\"heading\" :aria-level=\"ariaLevel\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"[ns.e('body'), bodyClass]\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"[ns.e('footer'), footerClass]\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from './constants'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => !!props.draggable)\nconst overflow = computed(() => !!props.overflow)\nconst { resetPosition, updatePosition, isDragging } = useDraggable(\n dialogRef,\n headerRef,\n draggable,\n overflow\n)\n\nconst dialogKls = computed(() => [\n ns.b(),\n ns.is('fullscreen', props.fullscreen),\n ns.is('draggable', draggable.value),\n ns.is('dragging', isDragging.value),\n ns.is('align-center', !!props.alignCenter),\n { [ns.m('center')]: props.center },\n])\n\ndefineExpose({\n resetPosition,\n updatePosition,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_normalizeStyle","_createElementVNode","headerClass","showClose","_renderSlot","ariaLevel","_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AAA,aAAA;AAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nexport const dialogContentProps = buildProps({\n /**\n * @description whether to align the header and footer in center\n */\n center: Boolean,\n /**\n * @description whether to align the dialog both horizontally and vertically\n */\n alignCenter: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description enable dragging feature for Dialog\n */\n draggable: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description draggable Dialog can overflow the viewport\n */\n overflow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether the Dialog takes up full screen\n */\n fullscreen: Boolean,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title of Dialog. Can also be passed with a named slot (see the following table)\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description header's aria-level attribute\n */\n ariaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n"],"names":[],"mappings":";;;AAEO,MAAM,qBAAqB,UAAW,CAAA;AAAA,EAI3C,MAAQ,EAAA,OAAA;AAAA,EAIR,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,YAAA;AAAA,GACR;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,UAAY,EAAA,OAAA;AAAA,EAIZ,WAAa,EAAA,MAAA;AAAA,EAIb,SAAW,EAAA,MAAA;AAAA,EAIX,WAAa,EAAA,MAAA;AAAA,EAIb,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,kBAAqB,GAAA;AAAA,EAChC,OAAO,MAAM,IAAA;AACf;;;;"}
@@ -1,43 +1,117 @@
1
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
2
- import { iconPropType } from '../../../utils/vue/icon.mjs';
1
+ import { defineComponent, inject, computed, openBlock, createElementBlock, unref, normalizeClass, normalizeStyle, createElementVNode, renderSlot, toDisplayString, createVNode, withCtx, createBlock, resolveDynamicComponent, createCommentVNode } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import { dialogInjectionKey } from './constants.mjs';
4
+ import { dialogContentProps, dialogContentEmits } from './dialog-content.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { FOCUS_TRAP_INJECTION_KEY } from '../../focus-trap/src/tokens.mjs';
7
+ import { useDraggable } from '../../../hooks/use-draggable/index.mjs';
8
+ import { CloseComponents } from '../../../utils/vue/icon.mjs';
9
+ import { composeRefs } from '../../../utils/vue/refs.mjs';
10
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
3
11
 
4
- const dialogContentProps = buildProps({
5
- center: Boolean,
6
- alignCenter: {
7
- type: Boolean,
8
- default: void 0
9
- },
10
- closeIcon: {
11
- type: iconPropType
12
- },
13
- draggable: {
14
- type: Boolean,
15
- default: void 0
16
- },
17
- overflow: {
18
- type: Boolean,
19
- default: void 0
20
- },
21
- fullscreen: Boolean,
22
- headerClass: String,
23
- bodyClass: String,
24
- footerClass: String,
25
- showClose: {
26
- type: Boolean,
27
- default: true
28
- },
29
- title: {
30
- type: String,
31
- default: ""
32
- },
33
- ariaLevel: {
34
- type: String,
35
- default: "2"
12
+ const _hoisted_1 = ["aria-level"];
13
+ const _hoisted_2 = ["aria-label"];
14
+ const _hoisted_3 = ["id"];
15
+ const _sfc_main = defineComponent({
16
+ ...{ name: "ElDialogContent" },
17
+ __name: "dialog-content",
18
+ props: dialogContentProps,
19
+ emits: dialogContentEmits,
20
+ setup(__props, { expose: __expose }) {
21
+ const { t } = useLocale();
22
+ const { Close } = CloseComponents;
23
+ const props = __props;
24
+ const { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey);
25
+ const { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY);
26
+ const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
27
+ const draggable = computed(() => !!props.draggable);
28
+ const overflow = computed(() => !!props.overflow);
29
+ const { resetPosition, updatePosition, isDragging } = useDraggable(
30
+ dialogRef,
31
+ headerRef,
32
+ draggable,
33
+ overflow
34
+ );
35
+ const dialogKls = computed(() => [
36
+ ns.b(),
37
+ ns.is("fullscreen", props.fullscreen),
38
+ ns.is("draggable", draggable.value),
39
+ ns.is("dragging", isDragging.value),
40
+ ns.is("align-center", !!props.alignCenter),
41
+ { [ns.m("center")]: props.center }
42
+ ]);
43
+ __expose({
44
+ resetPosition,
45
+ updatePosition
46
+ });
47
+ return (_ctx, _cache) => {
48
+ return openBlock(), createElementBlock(
49
+ "div",
50
+ {
51
+ ref: unref(composedDialogRef),
52
+ class: normalizeClass(dialogKls.value),
53
+ style: normalizeStyle(unref(style)),
54
+ tabindex: "-1"
55
+ },
56
+ [
57
+ createElementVNode(
58
+ "header",
59
+ {
60
+ ref_key: "headerRef",
61
+ ref: headerRef,
62
+ class: normalizeClass([unref(ns).e("header"), _ctx.headerClass, { "show-close": _ctx.showClose }])
63
+ },
64
+ [
65
+ renderSlot(_ctx.$slots, "header", {}, () => [
66
+ createElementVNode("span", {
67
+ role: "heading",
68
+ "aria-level": _ctx.ariaLevel,
69
+ class: normalizeClass(unref(ns).e("title"))
70
+ }, toDisplayString(_ctx.title), 11, _hoisted_1)
71
+ ]),
72
+ _ctx.showClose ? (openBlock(), createElementBlock("button", {
73
+ key: 0,
74
+ "aria-label": unref(t)("el.dialog.close"),
75
+ class: normalizeClass(unref(ns).e("headerbtn")),
76
+ type: "button",
77
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
78
+ }, [
79
+ createVNode(unref(ElIcon), {
80
+ class: normalizeClass(unref(ns).e("close"))
81
+ }, {
82
+ default: withCtx(() => [
83
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon || unref(Close))))
84
+ ]),
85
+ _: 1
86
+ }, 8, ["class"])
87
+ ], 10, _hoisted_2)) : createCommentVNode("v-if", true)
88
+ ],
89
+ 2
90
+ ),
91
+ createElementVNode("div", {
92
+ id: unref(bodyId),
93
+ class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass])
94
+ }, [
95
+ renderSlot(_ctx.$slots, "default")
96
+ ], 10, _hoisted_3),
97
+ _ctx.$slots.footer ? (openBlock(), createElementBlock(
98
+ "footer",
99
+ {
100
+ key: 0,
101
+ class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
102
+ },
103
+ [
104
+ renderSlot(_ctx.$slots, "footer")
105
+ ],
106
+ 2
107
+ )) : createCommentVNode("v-if", true)
108
+ ],
109
+ 6
110
+ );
111
+ };
36
112
  }
37
113
  });
38
- const dialogContentEmits = {
39
- close: () => true
40
- };
114
+ var ElDialogContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);
41
115
 
42
- export { dialogContentEmits, dialogContentProps };
116
+ export { ElDialogContent as default };
43
117
  //# sourceMappingURL=dialog-content2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nexport const dialogContentProps = buildProps({\n /**\n * @description whether to align the header and footer in center\n */\n center: Boolean,\n /**\n * @description whether to align the dialog both horizontally and vertically\n */\n alignCenter: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description enable dragging feature for Dialog\n */\n draggable: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description draggable Dialog can overflow the viewport\n */\n overflow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether the Dialog takes up full screen\n */\n fullscreen: Boolean,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title of Dialog. Can also be passed with a named slot (see the following table)\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description header's aria-level attribute\n */\n ariaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n"],"names":[],"mappings":";;;AAEO,MAAM,qBAAqB,UAAW,CAAA;AAAA,EAI3C,MAAQ,EAAA,OAAA;AAAA,EAIR,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,YAAA;AAAA,GACR;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,UAAY,EAAA,OAAA;AAAA,EAIZ,WAAa,EAAA,MAAA;AAAA,EAIb,SAAW,EAAA,MAAA;AAAA,EAIX,WAAa,EAAA,MAAA;AAAA,EAIb,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,kBAAqB,GAAA;AAAA,EAChC,OAAO,MAAM,IAAA;AACf;;;;"}
1
+ {"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div :ref=\"composedDialogRef\" :class=\"dialogKls\" :style=\"style\" tabindex=\"-1\">\n <header\n ref=\"headerRef\"\n :class=\"[ns.e('header'), headerClass, { 'show-close': showClose }]\"\n >\n <slot name=\"header\">\n <span role=\"heading\" :aria-level=\"ariaLevel\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"[ns.e('body'), bodyClass]\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"[ns.e('footer'), footerClass]\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from './constants'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => !!props.draggable)\nconst overflow = computed(() => !!props.overflow)\nconst { resetPosition, updatePosition, isDragging } = useDraggable(\n dialogRef,\n headerRef,\n draggable,\n overflow\n)\n\nconst dialogKls = computed(() => [\n ns.b(),\n ns.is('fullscreen', props.fullscreen),\n ns.is('draggable', draggable.value),\n ns.is('dragging', isDragging.value),\n ns.is('align-center', !!props.alignCenter),\n { [ns.m('center')]: props.center },\n])\n\ndefineExpose({\n resetPosition,\n updatePosition,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_normalizeStyle","_createElementVNode","headerClass","showClose","_renderSlot","ariaLevel","_toDisplayString","title","$emit","_createVNode","_createBlock","_resolveDynamicComponent","closeIcon","bodyClass","$slots","footerClass"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyCM,IAAA,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAClB,IAAA,MAAA,EAAE,OAAU,GAAA,eAAA,CAAA;AAGlB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGR,IAAA,MAAA,EAAE,WAAW,SAAW,EAAA,MAAA,EAAQ,IAAI,KAAM,EAAA,GAAI,OAAO,kBAAkB,CAAA,CAAA;A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AA,CAAA,CAAA;AAAA,iBAAA,EAAA;AAAA,mCACnB,MAAsC;AAAA,qBAAtCF,SAAA,IAAAc,WAAsC,CAAAC,uBAAA,CAAtBC,KAAAA,SAAa,IAAAd,KAAA,CAAK,KAAA,CAAA,CAAA,CAAA;AAAA,mBAAA,CAAA;AAAA;;;;;;UAIxCG,mBAEM,KAAA,EAAA;AAAA,YAFA,EAAA,EAAIH,MAAA,MAAA,CAAA;AAAA,YAAS,KAAA,EAAKC,cAAA,CAAA,CAAGD,KAAG,CAAA,EAAA,CAAA,CAAA,CAAA,CAAC,SAAUe,IAAS,CAAA,SAAA,CAAA,CAAA;AAAA,WAAA,EAAA;AAAA,YAChDT,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,WAAA,EAAA,IAAA,UAAA,CAAA;AAAA,UAEIU,IAAAA,CAAAA,MAAAA,CAAO,MAArB,IAAAlB,SAAA,EAAA,EAAAC,kBAAA;AAAA,YAES,QAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAFqB,KAAA,EAAKE,cAAG,CAAA,CAAAD,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAYiB,IAAW,CAAA,WAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cAC/DX,UAAA,CAAsB,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,aAAA;AAAA;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { dialogContentProps } from './dialog-content2.mjs';
1
+ import { dialogContentProps } from './dialog-content.mjs';
2
2
  import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
3
3
  import { teleportProps } from '../../teleport/src/teleport.mjs';
4
4
  import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
@@ -2,7 +2,7 @@ import { defineComponent, useSlots, computed, ref, provide, openBlock, createBlo
2
2
  import { ElOverlay } from '../../overlay/index.mjs';
3
3
  import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
4
4
  import { ElTeleport } from '../../teleport/index.mjs';
5
- import ElDialogContent from './dialog-content.mjs';
5
+ import ElDialogContent from './dialog-content2.mjs';
6
6
  import { dialogInjectionKey } from './constants.mjs';
7
7
  import { dialogProps, dialogEmits } from './dialog.mjs';
8
8
  import { useDialog } from './use-dialog.mjs';
@@ -1,6 +1,6 @@
1
- import Form from './src/form.mjs';
1
+ import Form from './src/form2.mjs';
2
2
  import FormItem from './src/form-item2.mjs';
3
- export { formEmits, formMetaProps, formProps } from './src/form2.mjs';
3
+ export { formEmits, formMetaProps, formProps } from './src/form.mjs';
4
4
  export { formItemProps, formItemValidateStates } from './src/form-item.mjs';
5
5
  export { formContextKey, formItemContextKey } from './src/constants.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
@@ -1,180 +1,60 @@
1
- import { defineComponent, ref, reactive, computed, watch, provide, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
2
- import { formContextKey } from './constants.mjs';
3
- import { formProps, formEmits } from './form2.mjs';
4
- import { useFormLabelWidth, filterFields } from './utils.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useFormSize } from './hooks/use-form-common-props.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
- import { debugWarn } from '../../../utils/error.mjs';
9
- import { isFunction } from '@vue/shared';
1
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
2
+ import { componentSizes } from '../../../constants/size.mjs';
3
+ import { isArray, isString } from '@vue/shared';
4
+ import { isBoolean } from '../../../utils/types.mjs';
10
5
 
11
- const COMPONENT_NAME = "ElForm";
12
- const _sfc_main = defineComponent({
13
- ...{
14
- name: COMPONENT_NAME
6
+ const formMetaProps = buildProps({
7
+ size: {
8
+ type: String,
9
+ values: componentSizes
15
10
  },
16
- __name: "form",
17
- props: formProps,
18
- emits: formEmits,
19
- setup(__props, { expose: __expose, emit: __emit }) {
20
- const props = __props;
21
- const emit = __emit;
22
- const formRef = ref();
23
- const fields = reactive([]);
24
- const formSize = useFormSize();
25
- const ns = useNamespace("form");
26
- const formClasses = computed(() => {
27
- const { labelPosition, inline } = props;
28
- return [
29
- ns.b(),
30
- ns.m(formSize.value || "default"),
31
- {
32
- [ns.m(`label-${labelPosition}`)]: labelPosition,
33
- [ns.m("inline")]: inline
34
- }
35
- ];
36
- });
37
- const getField = (prop) => {
38
- return filterFields(fields, [prop])[0];
39
- };
40
- const addField = (field) => {
41
- fields.push(field);
42
- };
43
- const removeField = (field) => {
44
- if (field.prop) {
45
- fields.splice(fields.indexOf(field), 1);
46
- }
47
- };
48
- const resetFields = (properties = []) => {
49
- if (!props.model) {
50
- debugWarn(COMPONENT_NAME, "model is required for resetFields to work.");
51
- return;
52
- }
53
- filterFields(fields, properties).forEach((field) => field.resetField());
54
- };
55
- const clearValidate = (props2 = []) => {
56
- filterFields(fields, props2).forEach((field) => field.clearValidate());
57
- };
58
- const isValidatable = computed(() => {
59
- const hasModel = !!props.model;
60
- if (!hasModel) {
61
- debugWarn(COMPONENT_NAME, "model is required for validate to work.");
62
- }
63
- return hasModel;
64
- });
65
- const obtainValidateFields = (props2) => {
66
- if (fields.length === 0)
67
- return [];
68
- const filteredFields = filterFields(fields, props2);
69
- if (!filteredFields.length) {
70
- debugWarn(COMPONENT_NAME, "please pass correct props!");
71
- return [];
72
- }
73
- return filteredFields;
74
- };
75
- const validate = async (callback) => validateField(void 0, callback);
76
- const doValidateField = async (props2 = []) => {
77
- if (!isValidatable.value)
78
- return false;
79
- const fields2 = obtainValidateFields(props2);
80
- if (fields2.length === 0)
81
- return true;
82
- let validationErrors = {};
83
- for (const field of fields2) {
84
- try {
85
- await field.validate("");
86
- if (field.validateState === "error" && !field.error)
87
- field.resetField();
88
- } catch (fields3) {
89
- validationErrors = {
90
- ...validationErrors,
91
- ...fields3
92
- };
93
- }
94
- }
95
- if (Object.keys(validationErrors).length === 0)
96
- return true;
97
- return Promise.reject(validationErrors);
98
- };
99
- const validateField = async (modelProps = [], callback) => {
100
- let result = false;
101
- const shouldThrow = !isFunction(callback);
102
- try {
103
- result = await doValidateField(modelProps);
104
- if (result === true) {
105
- await (callback == null ? void 0 : callback(result));
106
- }
107
- return result;
108
- } catch (e) {
109
- if (e instanceof Error)
110
- throw e;
111
- const invalidFields = e;
112
- if (props.scrollToError) {
113
- if (formRef.value) {
114
- const formItem = formRef.value.querySelector(`.${ns.b()}-item.is-error`);
115
- formItem == null ? void 0 : formItem.scrollIntoView(props.scrollIntoViewOptions);
116
- }
117
- }
118
- !result && await (callback == null ? void 0 : callback(false, invalidFields));
119
- return shouldThrow && Promise.reject(invalidFields);
120
- }
121
- };
122
- const scrollToField = (prop) => {
123
- var _a;
124
- const field = getField(prop);
125
- if (field) {
126
- (_a = field.$el) == null ? void 0 : _a.scrollIntoView(props.scrollIntoViewOptions);
127
- }
128
- };
129
- watch(
130
- () => props.rules,
131
- () => {
132
- if (props.validateOnRuleChange) {
133
- validate().catch((err) => debugWarn(err));
134
- }
135
- },
136
- { deep: true, flush: "post" }
137
- );
138
- provide(
139
- formContextKey,
140
- reactive({
141
- ...toRefs(props),
142
- emit,
143
- resetFields,
144
- clearValidate,
145
- validateField,
146
- getField,
147
- addField,
148
- removeField,
149
- ...useFormLabelWidth()
150
- })
151
- );
152
- __expose({
153
- validate,
154
- validateField,
155
- resetFields,
156
- clearValidate,
157
- scrollToField,
158
- getField,
159
- fields
160
- });
161
- return (_ctx, _cache) => {
162
- return openBlock(), createElementBlock(
163
- "form",
164
- {
165
- ref_key: "formRef",
166
- ref: formRef,
167
- class: normalizeClass(formClasses.value)
168
- },
169
- [
170
- renderSlot(_ctx.$slots, "default")
171
- ],
172
- 2
173
- );
174
- };
11
+ disabled: Boolean
12
+ });
13
+ const formProps = buildProps({
14
+ ...formMetaProps,
15
+ model: Object,
16
+ rules: {
17
+ type: definePropType(Object)
18
+ },
19
+ labelPosition: {
20
+ type: String,
21
+ values: ["left", "right", "top"],
22
+ default: "right"
23
+ },
24
+ requireAsteriskPosition: {
25
+ type: String,
26
+ values: ["left", "right"],
27
+ default: "left"
28
+ },
29
+ labelWidth: {
30
+ type: [String, Number],
31
+ default: ""
32
+ },
33
+ labelSuffix: {
34
+ type: String,
35
+ default: ""
36
+ },
37
+ inline: Boolean,
38
+ inlineMessage: Boolean,
39
+ statusIcon: Boolean,
40
+ showMessage: {
41
+ type: Boolean,
42
+ default: true
43
+ },
44
+ validateOnRuleChange: {
45
+ type: Boolean,
46
+ default: true
47
+ },
48
+ hideRequiredAsterisk: Boolean,
49
+ scrollToError: Boolean,
50
+ scrollIntoViewOptions: {
51
+ type: definePropType([Object, Boolean]),
52
+ default: true
175
53
  }
176
54
  });
177
- var Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);
55
+ const formEmits = {
56
+ validate: (prop, isValid, message) => (isArray(prop) || isString(prop)) && isBoolean(isValid) && isString(message)
57
+ };
178
58
 
179
- export { Form as default };
59
+ export { formEmits, formMetaProps, formProps };
180
60
  //# sourceMappingURL=form.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.mjs","sources":["../../../../../../packages/components/form/src/form.vue"],"sourcesContent":["<template>\n <form ref=\"formRef\" :class=\"formClasses\">\n <slot />\n </form>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, reactive, ref, toRefs, watch } from 'vue'\nimport { debugWarn, isFunction } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from './hooks'\nimport { formContextKey } from './constants'\nimport { formEmits, formProps } from './form'\nimport { filterFields, useFormLabelWidth } from './utils'\n\nimport type { ValidateFieldsError } from 'async-validator'\nimport type { Arrayable } from '@element-plus/utils'\nimport type {\n FormContext,\n FormItemContext,\n FormValidateCallback,\n FormValidationResult,\n} from './types'\nimport type { FormItemProp } from './form-item'\n\nconst COMPONENT_NAME = 'ElForm'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(formProps)\nconst emit = defineEmits(formEmits)\n\nconst formRef = ref<HTMLElement>()\nconst fields = reactive<FormItemContext[]>([])\n\nconst formSize = useFormSize()\nconst ns = useNamespace('form')\nconst formClasses = computed(() => {\n const { labelPosition, inline } = props\n return [\n ns.b(),\n ns.m(formSize.value || 'default'),\n {\n [ns.m(`label-${labelPosition}`)]: labelPosition,\n [ns.m('inline')]: inline,\n },\n ]\n})\n\nconst getField: FormContext['getField'] = (prop) => {\n return filterFields(fields, [prop])[0]\n}\n\nconst addField: FormContext['addField'] = (field) => {\n fields.push(field)\n}\n\nconst removeField: FormContext['removeField'] = (field) => {\n if (field.prop) {\n fields.splice(fields.indexOf(field), 1)\n }\n}\n\nconst resetFields: FormContext['resetFields'] = (properties = []) => {\n if (!props.model) {\n debugWarn(COMPONENT_NAME, 'model is required for resetFields to work.')\n return\n }\n filterFields(fields, properties).forEach((field) => field.resetField())\n}\n\nconst clearValidate: FormContext['clearValidate'] = (props = []) => {\n filterFields(fields, props).forEach((field) => field.clearValidate())\n}\n\nconst isValidatable = computed(() => {\n const hasModel = !!props.model\n if (!hasModel) {\n debugWarn(COMPONENT_NAME, 'model is required for validate to work.')\n }\n return hasModel\n})\n\nconst obtainValidateFields = (props: Arrayable<FormItemProp>) => {\n if (fields.length === 0) return []\n\n const filteredFields = filterFields(fields, props)\n if (!filteredFields.length) {\n debugWarn(COMPONENT_NAME, 'please pass correct props!')\n return []\n }\n return filteredFields\n}\n\nconst validate = async (\n callback?: FormValidateCallback\n): FormValidationResult => validateField(undefined, callback)\n\nconst doValidateField = async (\n props: Arrayable<FormItemProp> = []\n): Promise<boolean> => {\n if (!isValidatable.value) return false\n\n const fields = obtainValidateFields(props)\n if (fields.length === 0) return true\n\n let validationErrors: ValidateFieldsError = {}\n for (const field of fields) {\n try {\n await field.validate('')\n if (field.validateState === 'error' && !field.error) field.resetField()\n } catch (fields) {\n validationErrors = {\n ...validationErrors,\n ...(fields as ValidateFieldsError),\n }\n }\n }\n\n if (Object.keys(validationErrors).length === 0) return true\n return Promise.reject(validationErrors)\n}\n\nconst validateField: FormContext['validateField'] = async (\n modelProps = [],\n callback\n) => {\n let result = false\n const shouldThrow = !isFunction(callback)\n try {\n result = await doValidateField(modelProps)\n // When result is false meaning that the fields are not validatable\n if (result === true) {\n await callback?.(result)\n }\n return result\n } catch (e) {\n if (e instanceof Error) throw e\n\n const invalidFields = e as ValidateFieldsError\n\n if (props.scrollToError) {\n // form-item may be dynamically rendered based on the judgment conditions, and the order in invalidFields is uncertain.\n // Therefore, the first form field with an error is determined by directly looking for the rendered element.\n if (formRef.value) {\n const formItem = formRef.value.querySelector(`.${ns.b()}-item.is-error`)\n formItem?.scrollIntoView(props.scrollIntoViewOptions)\n }\n }\n !result && (await callback?.(false, invalidFields))\n return shouldThrow && Promise.reject(invalidFields)\n }\n}\n\nconst scrollToField = (prop: FormItemProp) => {\n const field = getField(prop)\n if (field) {\n field.$el?.scrollIntoView(props.scrollIntoViewOptions)\n }\n}\n\nwatch(\n () => props.rules,\n () => {\n if (props.validateOnRuleChange) {\n validate().catch((err) => debugWarn(err))\n }\n },\n { deep: true, flush: 'post' }\n)\n\nprovide(\n formContextKey,\n reactive({\n ...toRefs(props),\n emit,\n\n resetFields,\n clearValidate,\n validateField,\n getField,\n addField,\n removeField,\n\n ...useFormLabelWidth(),\n })\n)\n\ndefineExpose({\n /**\n * @description Validate the whole form. Receives a callback or returns `Promise`.\n */\n validate,\n /**\n * @description Validate specified fields.\n */\n validateField,\n /**\n * @description Reset specified fields and remove validation result.\n */\n resetFields,\n /**\n * @description Clear validation message for specified fields.\n */\n clearValidate,\n /**\n * @description Scroll to the specified fields.\n */\n scrollToField,\n /**\n * @description Get a field context.\n */\n getField,\n /**\n * @description All fields context.\n */\n fields,\n})\n</script>\n"],"names":["props","fields","_openBlock","_createElementBlock","_normalizeClass","_renderSlot"],"mappings":";;;;;;;;;;AAyBA,MAAM,cAAiB,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C,CAAA,CAAA;AAAA,SAC1C;AAAA,OACF;AAAA,MACA,EAAE,IAAA,EAAM,IAAM,EAAA,KAAA,EAAO,MAAO,EAAA;AAAA,KAC9B,CAAA;AAEA,IAAA,OAAA;AAAA,MACE,cAAA;AAAA,MACA,QAAS,CAAA;AAAA,QACP,GAAG,OAAO,KAAK,CAAA;AAAA,QACf,IAAA;AAAA,QAEA,WAAA;AAAA,QACA,aAAA;AAAA,QACA,aAAA;AAAA,QACA,QAAA;AAAA,QACA,QAAA;AAAA,QACA,WAAA;AAAA,QAEA,GAAG,iBAAkB,EAAA;AAAA,OACtB,CAAA;AAAA,KACH,CAAA;AAEa,IAAA,QAAA,CAAA;AAAA,MAIX,QAAA;AAAA,MAIA,aAAA;AAAA,MAIA,WAAA;AAAA,MAIA,aAAA;AAAA,MAIA,aAAA;AAAA,MAIA,QAAA;AAAA,MAIA,MAAA;AAAA,KACD,CAAA,CAAA;;AAxNC,MAAA,OAAAC,WAAA,EAAAC,kBAAA;AAAA,QAEO,MAAA;AAAA,QAAA;AAAA,UAFG,OAAA,EAAA,SAAA;AAAA,UAAJ,GAAI,EAAA,OAAA;AAAA,UAAW,KAAA,EAAKC,cAAE,CAAA,WAAA,CAAW,KAAA,CAAA;AAAA,SAAA;AAAA;UACrCC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA;AAAA;;;;;;;;;"}
1
+ {"version":3,"file":"form.mjs","sources":["../../../../../../packages/components/form/src/form.ts"],"sourcesContent":["import { componentSizes } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n isArray,\n isBoolean,\n isString,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { FormItemProp } from './form-item'\nimport type { FormRules } from './types'\n\nexport const formMetaProps = buildProps({\n /**\n * @description Control the size of components in this form.\n */\n size: {\n type: String,\n values: componentSizes,\n },\n /**\n * @description Whether to disable all components in this form. If set to `true`, it will override the `disabled` prop of the inner component.\n */\n disabled: Boolean,\n} as const)\n\nexport const formProps = buildProps({\n ...formMetaProps,\n /**\n * @description Data of form component.\n */\n model: Object,\n /**\n * @description Validation rules of form.\n */\n rules: {\n type: definePropType<FormRules>(Object),\n },\n /**\n * @description Position of label. If set to `'left'` or `'right'`, `label-width` prop is also required.\n */\n labelPosition: {\n type: String,\n values: ['left', 'right', 'top'],\n default: 'right',\n },\n /**\n * @description Position of asterisk.\n */\n requireAsteriskPosition: {\n type: String,\n values: ['left', 'right'],\n default: 'left',\n },\n /**\n * @description Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported.\n */\n labelWidth: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description Suffix of the label.\n */\n labelSuffix: {\n type: String,\n default: '',\n },\n /**\n * @description Whether the form is inline.\n */\n inline: Boolean,\n /**\n * @description Whether to display the error message inline with the form item.\n */\n inlineMessage: Boolean,\n /**\n * @description Whether to display an icon indicating the validation result.\n */\n statusIcon: Boolean,\n /**\n * @description Whether to show the error message.\n */\n showMessage: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Whether to trigger validation when the `rules` prop is changed.\n */\n validateOnRuleChange: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Whether to hide required fields should have a red asterisk (star) beside their labels.\n */\n hideRequiredAsterisk: Boolean,\n /**\n * @description When validation fails, scroll to the first error form entry.\n */\n scrollToError: Boolean,\n /**\n * @description When validation fails, it scrolls to the first error item based on the scrollIntoView option.\n */\n scrollIntoViewOptions: {\n type: definePropType<ScrollIntoViewOptions | boolean>([Object, Boolean]),\n default: true,\n },\n} as const)\nexport type FormProps = ExtractPropTypes<typeof formProps>\nexport type FormPropsPublic = ExtractPublicPropTypes<typeof formProps>\n\nexport type FormMetaProps = ExtractPropTypes<typeof formMetaProps>\nexport type FormMetaPropsPublic = ExtractPublicPropTypes<typeof formMetaProps>\n\nexport const formEmits = {\n validate: (prop: FormItemProp, isValid: boolean, message: string) =>\n (isArray(prop) || isString(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