@element-plus/nightly 0.0.20240724 → 0.0.20240725

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 (616) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.full.js +37 -105
  3. package/dist/index.full.min.js +6 -6
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +6 -6
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +37 -105
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hr.js +1 -1
  93. package/dist/locale/hr.min.js +1 -1
  94. package/dist/locale/hr.min.mjs +1 -1
  95. package/dist/locale/hr.mjs +1 -1
  96. package/dist/locale/hu.js +1 -1
  97. package/dist/locale/hu.min.js +1 -1
  98. package/dist/locale/hu.min.mjs +1 -1
  99. package/dist/locale/hu.mjs +1 -1
  100. package/dist/locale/hy-am.js +1 -1
  101. package/dist/locale/hy-am.min.js +1 -1
  102. package/dist/locale/hy-am.min.mjs +1 -1
  103. package/dist/locale/hy-am.mjs +1 -1
  104. package/dist/locale/id.js +1 -1
  105. package/dist/locale/id.min.js +1 -1
  106. package/dist/locale/id.min.mjs +1 -1
  107. package/dist/locale/id.mjs +1 -1
  108. package/dist/locale/it.js +1 -1
  109. package/dist/locale/it.min.js +1 -1
  110. package/dist/locale/it.min.mjs +1 -1
  111. package/dist/locale/it.mjs +1 -1
  112. package/dist/locale/ja.js +1 -1
  113. package/dist/locale/ja.min.js +1 -1
  114. package/dist/locale/ja.min.mjs +1 -1
  115. package/dist/locale/ja.mjs +1 -1
  116. package/dist/locale/kk.js +1 -1
  117. package/dist/locale/kk.min.js +1 -1
  118. package/dist/locale/kk.min.mjs +1 -1
  119. package/dist/locale/kk.mjs +1 -1
  120. package/dist/locale/km.js +1 -1
  121. package/dist/locale/km.min.js +1 -1
  122. package/dist/locale/km.min.mjs +1 -1
  123. package/dist/locale/km.mjs +1 -1
  124. package/dist/locale/ko.js +1 -1
  125. package/dist/locale/ko.min.js +1 -1
  126. package/dist/locale/ko.min.mjs +1 -1
  127. package/dist/locale/ko.mjs +1 -1
  128. package/dist/locale/ku.js +1 -1
  129. package/dist/locale/ku.min.js +1 -1
  130. package/dist/locale/ku.min.mjs +1 -1
  131. package/dist/locale/ku.mjs +1 -1
  132. package/dist/locale/ky.js +1 -1
  133. package/dist/locale/ky.min.js +1 -1
  134. package/dist/locale/ky.min.mjs +1 -1
  135. package/dist/locale/ky.mjs +1 -1
  136. package/dist/locale/lt.js +1 -1
  137. package/dist/locale/lt.min.js +1 -1
  138. package/dist/locale/lt.min.mjs +1 -1
  139. package/dist/locale/lt.mjs +1 -1
  140. package/dist/locale/lv.js +1 -1
  141. package/dist/locale/lv.min.js +1 -1
  142. package/dist/locale/lv.min.mjs +1 -1
  143. package/dist/locale/lv.mjs +1 -1
  144. package/dist/locale/mg.js +1 -1
  145. package/dist/locale/mg.min.js +1 -1
  146. package/dist/locale/mg.min.mjs +1 -1
  147. package/dist/locale/mg.mjs +1 -1
  148. package/dist/locale/mn.js +1 -1
  149. package/dist/locale/mn.min.js +1 -1
  150. package/dist/locale/mn.min.mjs +1 -1
  151. package/dist/locale/mn.mjs +1 -1
  152. package/dist/locale/nb-no.js +1 -1
  153. package/dist/locale/nb-no.min.js +1 -1
  154. package/dist/locale/nb-no.min.mjs +1 -1
  155. package/dist/locale/nb-no.mjs +1 -1
  156. package/dist/locale/nl.js +1 -1
  157. package/dist/locale/nl.min.js +1 -1
  158. package/dist/locale/nl.min.mjs +1 -1
  159. package/dist/locale/nl.mjs +1 -1
  160. package/dist/locale/pa.js +1 -1
  161. package/dist/locale/pa.min.js +1 -1
  162. package/dist/locale/pa.min.mjs +1 -1
  163. package/dist/locale/pa.mjs +1 -1
  164. package/dist/locale/pl.js +1 -1
  165. package/dist/locale/pl.min.js +1 -1
  166. package/dist/locale/pl.min.mjs +1 -1
  167. package/dist/locale/pl.mjs +1 -1
  168. package/dist/locale/pt-br.js +1 -1
  169. package/dist/locale/pt-br.min.js +1 -1
  170. package/dist/locale/pt-br.min.mjs +1 -1
  171. package/dist/locale/pt-br.mjs +1 -1
  172. package/dist/locale/pt.js +1 -1
  173. package/dist/locale/pt.min.js +1 -1
  174. package/dist/locale/pt.min.mjs +1 -1
  175. package/dist/locale/pt.mjs +1 -1
  176. package/dist/locale/ro.js +1 -1
  177. package/dist/locale/ro.min.js +1 -1
  178. package/dist/locale/ro.min.mjs +1 -1
  179. package/dist/locale/ro.mjs +1 -1
  180. package/dist/locale/ru.js +1 -1
  181. package/dist/locale/ru.min.js +1 -1
  182. package/dist/locale/ru.min.mjs +1 -1
  183. package/dist/locale/ru.mjs +1 -1
  184. package/dist/locale/sk.js +1 -1
  185. package/dist/locale/sk.min.js +1 -1
  186. package/dist/locale/sk.min.mjs +1 -1
  187. package/dist/locale/sk.mjs +1 -1
  188. package/dist/locale/sl.js +1 -1
  189. package/dist/locale/sl.min.js +1 -1
  190. package/dist/locale/sl.min.mjs +1 -1
  191. package/dist/locale/sl.mjs +1 -1
  192. package/dist/locale/sr.js +1 -1
  193. package/dist/locale/sr.min.js +1 -1
  194. package/dist/locale/sr.min.mjs +1 -1
  195. package/dist/locale/sr.mjs +1 -1
  196. package/dist/locale/sv.js +1 -1
  197. package/dist/locale/sv.min.js +1 -1
  198. package/dist/locale/sv.min.mjs +1 -1
  199. package/dist/locale/sv.mjs +1 -1
  200. package/dist/locale/sw.js +1 -1
  201. package/dist/locale/sw.min.js +1 -1
  202. package/dist/locale/sw.min.mjs +1 -1
  203. package/dist/locale/sw.mjs +1 -1
  204. package/dist/locale/ta.js +1 -1
  205. package/dist/locale/ta.min.js +1 -1
  206. package/dist/locale/ta.min.mjs +1 -1
  207. package/dist/locale/ta.mjs +1 -1
  208. package/dist/locale/th.js +1 -1
  209. package/dist/locale/th.min.js +1 -1
  210. package/dist/locale/th.min.mjs +1 -1
  211. package/dist/locale/th.mjs +1 -1
  212. package/dist/locale/tk.js +1 -1
  213. package/dist/locale/tk.min.js +1 -1
  214. package/dist/locale/tk.min.mjs +1 -1
  215. package/dist/locale/tk.mjs +1 -1
  216. package/dist/locale/tr.js +1 -1
  217. package/dist/locale/tr.min.js +1 -1
  218. package/dist/locale/tr.min.mjs +1 -1
  219. package/dist/locale/tr.mjs +1 -1
  220. package/dist/locale/ug-cn.js +1 -1
  221. package/dist/locale/ug-cn.min.js +1 -1
  222. package/dist/locale/ug-cn.min.mjs +1 -1
  223. package/dist/locale/ug-cn.mjs +1 -1
  224. package/dist/locale/uk.js +1 -1
  225. package/dist/locale/uk.min.js +1 -1
  226. package/dist/locale/uk.min.mjs +1 -1
  227. package/dist/locale/uk.mjs +1 -1
  228. package/dist/locale/uz-uz.js +1 -1
  229. package/dist/locale/uz-uz.min.js +1 -1
  230. package/dist/locale/uz-uz.min.mjs +1 -1
  231. package/dist/locale/uz-uz.mjs +1 -1
  232. package/dist/locale/vi.js +1 -1
  233. package/dist/locale/vi.min.js +1 -1
  234. package/dist/locale/vi.min.mjs +1 -1
  235. package/dist/locale/vi.mjs +1 -1
  236. package/dist/locale/zh-cn.js +1 -1
  237. package/dist/locale/zh-cn.min.js +1 -1
  238. package/dist/locale/zh-cn.min.mjs +1 -1
  239. package/dist/locale/zh-cn.mjs +1 -1
  240. package/dist/locale/zh-tw.js +1 -1
  241. package/dist/locale/zh-tw.min.js +1 -1
  242. package/dist/locale/zh-tw.min.mjs +1 -1
  243. package/dist/locale/zh-tw.mjs +1 -1
  244. package/es/components/autocomplete/index.d.ts +80 -80
  245. package/es/components/autocomplete/src/autocomplete.vue.d.ts +80 -80
  246. package/es/components/backtop/index.mjs +2 -2
  247. package/es/components/backtop/src/backtop.mjs +21 -54
  248. package/es/components/backtop/src/backtop.mjs.map +1 -1
  249. package/es/components/backtop/src/backtop2.mjs +54 -21
  250. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  251. package/es/components/badge/index.mjs +2 -2
  252. package/es/components/badge/src/badge.mjs +38 -89
  253. package/es/components/badge/src/badge.mjs.map +1 -1
  254. package/es/components/badge/src/badge2.mjs +89 -38
  255. package/es/components/badge/src/badge2.mjs.map +1 -1
  256. package/es/components/breadcrumb/index.d.ts +8 -8
  257. package/es/components/breadcrumb/src/breadcrumb-item.d.ts +1 -1
  258. package/es/components/breadcrumb/src/breadcrumb-item.mjs +1 -4
  259. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  260. package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -4
  261. package/es/components/button/index.mjs +2 -2
  262. package/es/components/button/src/button-group.mjs +1 -1
  263. package/es/components/button/src/button.mjs +57 -77
  264. package/es/components/button/src/button.mjs.map +1 -1
  265. package/es/components/button/src/button2.mjs +77 -57
  266. package/es/components/button/src/button2.mjs.map +1 -1
  267. package/es/components/calendar/src/calendar2.mjs +1 -1
  268. package/es/components/calendar/src/date-table.mjs +87 -33
  269. package/es/components/calendar/src/date-table.mjs.map +1 -1
  270. package/es/components/calendar/src/date-table2.mjs +33 -87
  271. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  272. package/es/components/calendar/src/use-date-table.mjs +1 -1
  273. package/es/components/carousel/index.d.ts +4 -0
  274. package/es/components/carousel/src/carousel.d.ts +1 -0
  275. package/es/components/carousel/src/carousel.mjs +4 -0
  276. package/es/components/carousel/src/carousel.mjs.map +1 -1
  277. package/es/components/carousel/src/carousel.vue.d.ts +4 -0
  278. package/es/components/carousel/src/constants.d.ts +1 -0
  279. package/es/components/carousel/src/constants.mjs.map +1 -1
  280. package/es/components/carousel/src/use-carousel-item.mjs +5 -6
  281. package/es/components/carousel/src/use-carousel-item.mjs.map +1 -1
  282. package/es/components/carousel/src/use-carousel.mjs +1 -0
  283. package/es/components/carousel/src/use-carousel.mjs.map +1 -1
  284. package/es/components/cascader/index.d.ts +160 -160
  285. package/es/components/cascader/src/cascader.vue.d.ts +80 -80
  286. package/es/components/cascader/src/cascader2.mjs +1 -1
  287. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  288. package/es/components/check-tag/index.d.ts +4 -4
  289. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  290. package/es/components/check-tag/src/check-tag.mjs +1 -4
  291. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  292. package/es/components/check-tag/src/check-tag.vue.d.ts +4 -4
  293. package/es/components/color-picker/index.d.ts +44 -44
  294. package/es/components/color-picker/src/color-picker.vue.d.ts +44 -44
  295. package/es/components/countdown/index.mjs +2 -2
  296. package/es/components/countdown/src/countdown.mjs +23 -77
  297. package/es/components/countdown/src/countdown.mjs.map +1 -1
  298. package/es/components/countdown/src/countdown2.mjs +77 -23
  299. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  300. package/es/components/date-picker/index.d.ts +2 -2
  301. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +20 -20
  302. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +20 -20
  303. package/es/components/date-picker/src/date-picker.d.ts +1 -1
  304. package/es/components/date-picker/src/panel-utils.d.ts +40 -40
  305. package/es/components/descriptions/index.d.ts +4 -4
  306. package/es/components/descriptions/src/description.d.ts +1 -1
  307. package/es/components/descriptions/src/description.mjs +1 -4
  308. package/es/components/descriptions/src/description.mjs.map +1 -1
  309. package/es/components/descriptions/src/description.vue.d.ts +4 -4
  310. package/es/components/dialog/index.d.ts +7 -7
  311. package/es/components/dialog/src/dialog.d.ts +1 -1
  312. package/es/components/dialog/src/dialog.mjs +1 -4
  313. package/es/components/dialog/src/dialog.mjs.map +1 -1
  314. package/es/components/dialog/src/dialog.vue.d.ts +7 -7
  315. package/es/components/drawer/index.d.ts +7 -7
  316. package/es/components/drawer/index.mjs +2 -2
  317. package/es/components/drawer/src/drawer.d.ts +1 -1
  318. package/es/components/drawer/src/drawer.mjs +27 -181
  319. package/es/components/drawer/src/drawer.mjs.map +1 -1
  320. package/es/components/drawer/src/drawer.vue.d.ts +7 -7
  321. package/es/components/drawer/src/drawer2.mjs +181 -27
  322. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  323. package/es/components/dropdown/index.d.ts +16 -16
  324. package/es/components/dropdown/src/dropdown.vue.d.ts +16 -16
  325. package/es/components/index.mjs +6 -6
  326. package/es/components/input/index.d.ts +20 -20
  327. package/es/components/input/src/input.d.ts +5 -5
  328. package/es/components/input/src/input.mjs +5 -20
  329. package/es/components/input/src/input.mjs.map +1 -1
  330. package/es/components/input/src/input.vue.d.ts +20 -20
  331. package/es/components/input-number/index.d.ts +57 -57
  332. package/es/components/input-number/src/input-number.vue.d.ts +57 -57
  333. package/es/components/notification/src/notification.d.ts +1 -1
  334. package/es/components/notification/src/notification.mjs +1 -4
  335. package/es/components/notification/src/notification.mjs.map +1 -1
  336. package/es/components/notification/src/notification.vue.d.ts +4 -4
  337. package/es/components/overlay/index.d.ts +3 -3
  338. package/es/components/overlay/src/overlay.d.ts +4 -4
  339. package/es/components/overlay/src/overlay.mjs +1 -4
  340. package/es/components/overlay/src/overlay.mjs.map +1 -1
  341. package/es/components/pagination/src/components/jumper.vue.d.ts +20 -20
  342. package/es/components/pagination/src/components/sizes.vue.d.ts +32 -32
  343. package/es/components/popconfirm/index.d.ts +24 -24
  344. package/es/components/popconfirm/src/popconfirm.mjs +1 -1
  345. package/es/components/popconfirm/src/popconfirm.vue.d.ts +24 -24
  346. package/es/components/popover/index.d.ts +24 -24
  347. package/es/components/popover/src/popover.vue.d.ts +24 -24
  348. package/es/components/progress/index.d.ts +8 -8
  349. package/es/components/progress/src/progress.d.ts +2 -2
  350. package/es/components/progress/src/progress.mjs +2 -8
  351. package/es/components/progress/src/progress.mjs.map +1 -1
  352. package/es/components/progress/src/progress.vue.d.ts +8 -8
  353. package/es/components/rate/index.d.ts +4 -4
  354. package/es/components/rate/src/rate.d.ts +1 -1
  355. package/es/components/rate/src/rate.mjs +1 -4
  356. package/es/components/rate/src/rate.mjs.map +1 -1
  357. package/es/components/rate/src/rate.vue.d.ts +4 -4
  358. package/es/components/select/index.d.ts +32 -32
  359. package/es/components/select/src/select.vue.d.ts +32 -32
  360. package/es/components/select/src/useSelect.d.ts +32 -32
  361. package/es/components/select-v2/index.d.ts +64 -64
  362. package/es/components/select-v2/src/select.vue.d.ts +32 -32
  363. package/es/components/select-v2/src/useSelect.d.ts +32 -32
  364. package/es/components/slider/index.d.ts +97 -97
  365. package/es/components/slider/src/button.vue.d.ts +8 -8
  366. package/es/components/slider/src/composables/use-slide.d.ts +32 -32
  367. package/es/components/slider/src/slider.vue.d.ts +97 -97
  368. package/es/components/steps/index.mjs +2 -2
  369. package/es/components/steps/src/item.mjs +19 -191
  370. package/es/components/steps/src/item.mjs.map +1 -1
  371. package/es/components/steps/src/item2.mjs +191 -19
  372. package/es/components/steps/src/item2.mjs.map +1 -1
  373. package/es/components/switch/index.d.ts +12 -12
  374. package/es/components/switch/src/switch.d.ts +3 -3
  375. package/es/components/switch/src/switch.mjs +3 -12
  376. package/es/components/switch/src/switch.mjs.map +1 -1
  377. package/es/components/switch/src/switch.vue.d.ts +12 -12
  378. package/es/components/table/src/filter-panel.vue.d.ts +16 -16
  379. package/es/components/teleport/index.d.ts +4 -4
  380. package/es/components/teleport/src/teleport.d.ts +1 -1
  381. package/es/components/teleport/src/teleport.mjs +1 -4
  382. package/es/components/teleport/src/teleport.mjs.map +1 -1
  383. package/es/components/teleport/src/teleport.vue.d.ts +4 -4
  384. package/es/components/time-picker/index.d.ts +2 -2
  385. package/es/components/time-picker/src/common/picker.vue.d.ts +45 -45
  386. package/es/components/time-picker/src/time-picker.d.ts +1 -1
  387. package/es/components/time-select/index.d.ts +64 -64
  388. package/es/components/time-select/src/time-select.vue.d.ts +64 -64
  389. package/es/components/timeline/index.d.ts +24 -24
  390. package/es/components/timeline/src/timeline-item.d.ts +3 -3
  391. package/es/components/timeline/src/timeline-item.mjs +3 -12
  392. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  393. package/es/components/timeline/src/timeline-item.vue.d.ts +12 -12
  394. package/es/components/tooltip/index.d.ts +8 -8
  395. package/es/components/tooltip/src/content.d.ts +1 -1
  396. package/es/components/tooltip/src/content.mjs +1 -4
  397. package/es/components/tooltip/src/content.mjs.map +1 -1
  398. package/es/components/tooltip/src/content.vue.d.ts +4 -4
  399. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  400. package/es/components/tooltip/src/tooltip.vue.d.ts +8 -8
  401. package/es/components/tooltip-v2/index.d.ts +13 -13
  402. package/es/components/tooltip-v2/src/content.d.ts +1 -1
  403. package/es/components/tooltip-v2/src/content.mjs +1 -4
  404. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  405. package/es/components/tooltip-v2/src/content.vue.d.ts +4 -4
  406. package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
  407. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +13 -13
  408. package/es/components/transfer/index.d.ts +100 -100
  409. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  410. package/es/components/transfer/src/transfer-panel.mjs +19 -128
  411. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  412. package/es/components/transfer/src/transfer-panel.vue.d.ts +20 -20
  413. package/es/components/transfer/src/transfer-panel2.mjs +128 -19
  414. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  415. package/es/components/transfer/src/transfer.vue.d.ts +100 -100
  416. package/es/components/transfer/src/transfer2.mjs +1 -1
  417. package/es/components/upload/index.d.ts +38 -38
  418. package/es/components/upload/src/upload-content.d.ts +2 -2
  419. package/es/components/upload/src/upload-content.vue.d.ts +8 -8
  420. package/es/components/upload/src/upload-list.vue.d.ts +8 -8
  421. package/es/components/upload/src/upload.d.ts +8 -16
  422. package/es/components/upload/src/upload.mjs +2 -8
  423. package/es/components/upload/src/upload.mjs.map +1 -1
  424. package/es/components/upload/src/upload.vue.d.ts +38 -38
  425. package/es/index.mjs +6 -6
  426. package/es/version.d.ts +1 -1
  427. package/es/version.mjs +1 -1
  428. package/es/version.mjs.map +1 -1
  429. package/lib/components/autocomplete/index.d.ts +80 -80
  430. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +80 -80
  431. package/lib/components/backtop/index.js +2 -2
  432. package/lib/components/backtop/src/backtop.js +22 -54
  433. package/lib/components/backtop/src/backtop.js.map +1 -1
  434. package/lib/components/backtop/src/backtop2.js +54 -22
  435. package/lib/components/backtop/src/backtop2.js.map +1 -1
  436. package/lib/components/badge/index.js +2 -2
  437. package/lib/components/badge/src/badge.js +38 -89
  438. package/lib/components/badge/src/badge.js.map +1 -1
  439. package/lib/components/badge/src/badge2.js +89 -38
  440. package/lib/components/badge/src/badge2.js.map +1 -1
  441. package/lib/components/breadcrumb/index.d.ts +8 -8
  442. package/lib/components/breadcrumb/src/breadcrumb-item.d.ts +1 -1
  443. package/lib/components/breadcrumb/src/breadcrumb-item.js +1 -4
  444. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  445. package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -4
  446. package/lib/components/button/index.js +2 -2
  447. package/lib/components/button/src/button-group.js +1 -1
  448. package/lib/components/button/src/button.js +60 -77
  449. package/lib/components/button/src/button.js.map +1 -1
  450. package/lib/components/button/src/button2.js +77 -60
  451. package/lib/components/button/src/button2.js.map +1 -1
  452. package/lib/components/calendar/src/calendar2.js +1 -1
  453. package/lib/components/calendar/src/date-table.js +87 -37
  454. package/lib/components/calendar/src/date-table.js.map +1 -1
  455. package/lib/components/calendar/src/date-table2.js +37 -87
  456. package/lib/components/calendar/src/date-table2.js.map +1 -1
  457. package/lib/components/calendar/src/use-date-table.js +1 -1
  458. package/lib/components/carousel/index.d.ts +4 -0
  459. package/lib/components/carousel/src/carousel.d.ts +1 -0
  460. package/lib/components/carousel/src/carousel.js +4 -0
  461. package/lib/components/carousel/src/carousel.js.map +1 -1
  462. package/lib/components/carousel/src/carousel.vue.d.ts +4 -0
  463. package/lib/components/carousel/src/constants.d.ts +1 -0
  464. package/lib/components/carousel/src/constants.js.map +1 -1
  465. package/lib/components/carousel/src/use-carousel-item.js +5 -6
  466. package/lib/components/carousel/src/use-carousel-item.js.map +1 -1
  467. package/lib/components/carousel/src/use-carousel.js +1 -0
  468. package/lib/components/carousel/src/use-carousel.js.map +1 -1
  469. package/lib/components/cascader/index.d.ts +160 -160
  470. package/lib/components/cascader/src/cascader.vue.d.ts +80 -80
  471. package/lib/components/cascader/src/cascader2.js +1 -1
  472. package/lib/components/cascader/src/cascader2.js.map +1 -1
  473. package/lib/components/check-tag/index.d.ts +4 -4
  474. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  475. package/lib/components/check-tag/src/check-tag.js +1 -4
  476. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  477. package/lib/components/check-tag/src/check-tag.vue.d.ts +4 -4
  478. package/lib/components/color-picker/index.d.ts +44 -44
  479. package/lib/components/color-picker/src/color-picker.vue.d.ts +44 -44
  480. package/lib/components/countdown/index.js +2 -2
  481. package/lib/components/countdown/src/countdown.js +24 -77
  482. package/lib/components/countdown/src/countdown.js.map +1 -1
  483. package/lib/components/countdown/src/countdown2.js +77 -24
  484. package/lib/components/countdown/src/countdown2.js.map +1 -1
  485. package/lib/components/date-picker/index.d.ts +2 -2
  486. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +20 -20
  487. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +20 -20
  488. package/lib/components/date-picker/src/date-picker.d.ts +1 -1
  489. package/lib/components/date-picker/src/panel-utils.d.ts +40 -40
  490. package/lib/components/descriptions/index.d.ts +4 -4
  491. package/lib/components/descriptions/src/description.d.ts +1 -1
  492. package/lib/components/descriptions/src/description.js +1 -4
  493. package/lib/components/descriptions/src/description.js.map +1 -1
  494. package/lib/components/descriptions/src/description.vue.d.ts +4 -4
  495. package/lib/components/dialog/index.d.ts +7 -7
  496. package/lib/components/dialog/src/dialog.d.ts +1 -1
  497. package/lib/components/dialog/src/dialog.js +1 -4
  498. package/lib/components/dialog/src/dialog.js.map +1 -1
  499. package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
  500. package/lib/components/drawer/index.d.ts +7 -7
  501. package/lib/components/drawer/index.js +2 -2
  502. package/lib/components/drawer/src/drawer.d.ts +1 -1
  503. package/lib/components/drawer/src/drawer.js +28 -181
  504. package/lib/components/drawer/src/drawer.js.map +1 -1
  505. package/lib/components/drawer/src/drawer.vue.d.ts +7 -7
  506. package/lib/components/drawer/src/drawer2.js +181 -28
  507. package/lib/components/drawer/src/drawer2.js.map +1 -1
  508. package/lib/components/dropdown/index.d.ts +16 -16
  509. package/lib/components/dropdown/src/dropdown.vue.d.ts +16 -16
  510. package/lib/components/index.js +6 -6
  511. package/lib/components/input/index.d.ts +20 -20
  512. package/lib/components/input/src/input.d.ts +5 -5
  513. package/lib/components/input/src/input.js +5 -20
  514. package/lib/components/input/src/input.js.map +1 -1
  515. package/lib/components/input/src/input.vue.d.ts +20 -20
  516. package/lib/components/input-number/index.d.ts +57 -57
  517. package/lib/components/input-number/src/input-number.vue.d.ts +57 -57
  518. package/lib/components/notification/src/notification.d.ts +1 -1
  519. package/lib/components/notification/src/notification.js +1 -4
  520. package/lib/components/notification/src/notification.js.map +1 -1
  521. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  522. package/lib/components/overlay/index.d.ts +3 -3
  523. package/lib/components/overlay/src/overlay.d.ts +4 -4
  524. package/lib/components/overlay/src/overlay.js +1 -4
  525. package/lib/components/overlay/src/overlay.js.map +1 -1
  526. package/lib/components/pagination/src/components/jumper.vue.d.ts +20 -20
  527. package/lib/components/pagination/src/components/sizes.vue.d.ts +32 -32
  528. package/lib/components/popconfirm/index.d.ts +24 -24
  529. package/lib/components/popconfirm/src/popconfirm.js +1 -1
  530. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +24 -24
  531. package/lib/components/popover/index.d.ts +24 -24
  532. package/lib/components/popover/src/popover.vue.d.ts +24 -24
  533. package/lib/components/progress/index.d.ts +8 -8
  534. package/lib/components/progress/src/progress.d.ts +2 -2
  535. package/lib/components/progress/src/progress.js +2 -8
  536. package/lib/components/progress/src/progress.js.map +1 -1
  537. package/lib/components/progress/src/progress.vue.d.ts +8 -8
  538. package/lib/components/rate/index.d.ts +4 -4
  539. package/lib/components/rate/src/rate.d.ts +1 -1
  540. package/lib/components/rate/src/rate.js +1 -4
  541. package/lib/components/rate/src/rate.js.map +1 -1
  542. package/lib/components/rate/src/rate.vue.d.ts +4 -4
  543. package/lib/components/select/index.d.ts +32 -32
  544. package/lib/components/select/src/select.vue.d.ts +32 -32
  545. package/lib/components/select/src/useSelect.d.ts +32 -32
  546. package/lib/components/select-v2/index.d.ts +64 -64
  547. package/lib/components/select-v2/src/select.vue.d.ts +32 -32
  548. package/lib/components/select-v2/src/useSelect.d.ts +32 -32
  549. package/lib/components/slider/index.d.ts +97 -97
  550. package/lib/components/slider/src/button.vue.d.ts +8 -8
  551. package/lib/components/slider/src/composables/use-slide.d.ts +32 -32
  552. package/lib/components/slider/src/slider.vue.d.ts +97 -97
  553. package/lib/components/steps/index.js +2 -2
  554. package/lib/components/steps/src/item.js +19 -191
  555. package/lib/components/steps/src/item.js.map +1 -1
  556. package/lib/components/steps/src/item2.js +191 -19
  557. package/lib/components/steps/src/item2.js.map +1 -1
  558. package/lib/components/switch/index.d.ts +12 -12
  559. package/lib/components/switch/src/switch.d.ts +3 -3
  560. package/lib/components/switch/src/switch.js +3 -12
  561. package/lib/components/switch/src/switch.js.map +1 -1
  562. package/lib/components/switch/src/switch.vue.d.ts +12 -12
  563. package/lib/components/table/src/filter-panel.vue.d.ts +16 -16
  564. package/lib/components/teleport/index.d.ts +4 -4
  565. package/lib/components/teleport/src/teleport.d.ts +1 -1
  566. package/lib/components/teleport/src/teleport.js +1 -4
  567. package/lib/components/teleport/src/teleport.js.map +1 -1
  568. package/lib/components/teleport/src/teleport.vue.d.ts +4 -4
  569. package/lib/components/time-picker/index.d.ts +2 -2
  570. package/lib/components/time-picker/src/common/picker.vue.d.ts +45 -45
  571. package/lib/components/time-picker/src/time-picker.d.ts +1 -1
  572. package/lib/components/time-select/index.d.ts +64 -64
  573. package/lib/components/time-select/src/time-select.vue.d.ts +64 -64
  574. package/lib/components/timeline/index.d.ts +24 -24
  575. package/lib/components/timeline/src/timeline-item.d.ts +3 -3
  576. package/lib/components/timeline/src/timeline-item.js +3 -12
  577. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  578. package/lib/components/timeline/src/timeline-item.vue.d.ts +12 -12
  579. package/lib/components/tooltip/index.d.ts +8 -8
  580. package/lib/components/tooltip/src/content.d.ts +1 -1
  581. package/lib/components/tooltip/src/content.js +1 -4
  582. package/lib/components/tooltip/src/content.js.map +1 -1
  583. package/lib/components/tooltip/src/content.vue.d.ts +4 -4
  584. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  585. package/lib/components/tooltip/src/tooltip.vue.d.ts +8 -8
  586. package/lib/components/tooltip-v2/index.d.ts +13 -13
  587. package/lib/components/tooltip-v2/src/content.d.ts +1 -1
  588. package/lib/components/tooltip-v2/src/content.js +1 -4
  589. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  590. package/lib/components/tooltip-v2/src/content.vue.d.ts +4 -4
  591. package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
  592. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +13 -13
  593. package/lib/components/transfer/index.d.ts +100 -100
  594. package/lib/components/transfer/src/composables/use-check.js +1 -1
  595. package/lib/components/transfer/src/transfer-panel.js +21 -128
  596. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  597. package/lib/components/transfer/src/transfer-panel.vue.d.ts +20 -20
  598. package/lib/components/transfer/src/transfer-panel2.js +128 -21
  599. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  600. package/lib/components/transfer/src/transfer.vue.d.ts +100 -100
  601. package/lib/components/transfer/src/transfer2.js +1 -1
  602. package/lib/components/upload/index.d.ts +38 -38
  603. package/lib/components/upload/src/upload-content.d.ts +2 -2
  604. package/lib/components/upload/src/upload-content.vue.d.ts +8 -8
  605. package/lib/components/upload/src/upload-list.vue.d.ts +8 -8
  606. package/lib/components/upload/src/upload.d.ts +8 -16
  607. package/lib/components/upload/src/upload.js +2 -8
  608. package/lib/components/upload/src/upload.js.map +1 -1
  609. package/lib/components/upload/src/upload.vue.d.ts +38 -38
  610. package/lib/index.js +6 -6
  611. package/lib/version.d.ts +1 -1
  612. package/lib/version.js +1 -1
  613. package/lib/version.js.map +1 -1
  614. package/package.json +2 -2
  615. package/tags.json +1 -1
  616. package/web-types.json +1 -1
@@ -34,7 +34,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
34
34
  readonly validator: ((val: unknown) => boolean) | undefined;
35
35
  __epPropKey: true;
36
36
  };
37
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
37
+ readonly trapFocus: BooleanConstructor;
38
38
  readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
39
39
  readonly center: BooleanConstructor;
40
40
  readonly alignCenter: BooleanConstructor;
@@ -87,7 +87,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
87
87
  readonly validator: ((val: unknown) => boolean) | undefined;
88
88
  __epPropKey: true;
89
89
  };
90
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
90
+ readonly trapFocus: BooleanConstructor;
91
91
  readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
92
92
  readonly center: BooleanConstructor;
93
93
  readonly alignCenter: BooleanConstructor;
@@ -160,7 +160,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
160
160
  draggable: import("vue").ComputedRef<boolean>;
161
161
  ElOverlay: import("vue").DefineComponent<{
162
162
  readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
163
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
163
+ readonly customMaskEvent: BooleanConstructor;
164
164
  readonly overlayClass: {
165
165
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
166
166
  readonly required: false;
@@ -179,7 +179,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
179
179
  click: (evt: MouseEvent) => boolean;
180
180
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
181
181
  readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
182
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
182
+ readonly customMaskEvent: BooleanConstructor;
183
183
  readonly overlayClass: {
184
184
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
185
185
  readonly required: false;
@@ -196,7 +196,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
196
196
  onClick?: ((evt: MouseEvent) => any) | undefined;
197
197
  }, {
198
198
  readonly mask: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
199
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
199
+ readonly customMaskEvent: boolean;
200
200
  }>;
201
201
  ElFocusTrap: import("vue").DefineComponent<{
202
202
  loop: BooleanConstructor;
@@ -429,7 +429,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
429
429
  readonly validator: ((val: unknown) => boolean) | undefined;
430
430
  __epPropKey: true;
431
431
  };
432
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
432
+ readonly trapFocus: BooleanConstructor;
433
433
  readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
434
434
  readonly center: BooleanConstructor;
435
435
  readonly alignCenter: BooleanConstructor;
@@ -470,10 +470,10 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
470
470
  readonly modal: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
471
471
  readonly openDelay: number;
472
472
  readonly closeDelay: number;
473
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
474
473
  readonly headerAriaLevel: string;
475
474
  readonly appendToBody: boolean;
476
475
  readonly destroyOnClose: boolean;
476
+ readonly trapFocus: boolean;
477
477
  }>> & Record<string, any>;
478
478
  export default ElDialog;
479
479
  export * from './src/use-dialog';
@@ -37,7 +37,7 @@ export declare const dialogProps: {
37
37
  readonly validator: ((val: unknown) => boolean) | undefined;
38
38
  __epPropKey: true;
39
39
  };
40
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
40
+ readonly trapFocus: BooleanConstructor;
41
41
  readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
42
42
  readonly center: BooleanConstructor;
43
43
  readonly alignCenter: BooleanConstructor;
@@ -55,10 +55,7 @@ const dialogProps = runtime.buildProps({
55
55
  zIndex: {
56
56
  type: Number
57
57
  },
58
- trapFocus: {
59
- type: Boolean,
60
- default: false
61
- },
58
+ trapFocus: Boolean,
62
59
  headerAriaLevel: {
63
60
  type: String,
64
61
  default: "2"
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { dialogContentProps } from './dialog-content'\n\nimport type { ExtractPropTypes } from 'vue'\n\ntype DoneFn = (cancel?: boolean) => void\nexport type DialogBeforeCloseFn = (done: DoneFn) => void\n\nexport const dialogProps = buildProps({\n ...dialogContentProps,\n /**\n * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`\n */\n appendToBody: Boolean,\n /**\n * @description which element the Dialog appends to\n */\n appendTo: {\n type: definePropType<string>(String),\n default: 'body',\n },\n /**\n * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog\n */\n beforeClose: {\n type: definePropType<DialogBeforeCloseFn>(Function),\n },\n /**\n * @description destroy elements in Dialog when closed\n */\n destroyOnClose: Boolean,\n /**\n * @description whether the Dialog can be closed by clicking the mask\n */\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the Dialog can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether scroll of body is disabled while Dialog is displayed\n */\n lockScroll: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether a mask is displayed\n */\n modal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the Time(milliseconds) before open\n */\n openDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description the Time(milliseconds) before close\n */\n closeDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description value for `margin-top` of Dialog CSS, default is 15vh\n */\n top: {\n type: String,\n },\n /**\n * @description visibility of Dialog\n */\n modelValue: Boolean,\n /**\n * @description custom class names for mask\n */\n modalClass: String,\n /**\n * @description width of Dialog, default is 50%\n */\n width: {\n type: [String, Number],\n },\n /**\n * @description same as z-index in native CSS, z-order of dialog\n */\n zIndex: {\n type: Number,\n },\n trapFocus: {\n type: Boolean,\n default: false,\n },\n /**\n * @description header's aria-level attribute\n */\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => isBoolean(value),\n openAutoFocus: () => true,\n closeAutoFocus: () => true,\n}\nexport type DialogEmits = typeof dialogEmits\n"],"names":["buildProps","dialogContentProps","definePropType","UPDATE_MODEL_EVENT","isBoolean"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,GAAGC,gCAAkB;AACvB,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAS,CAAC,KAAK,CAAC;AACnD,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B;;;;;"}
1
+ {"version":3,"file":"dialog.js","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { dialogContentProps } from './dialog-content'\n\nimport type { ExtractPropTypes } from 'vue'\n\ntype DoneFn = (cancel?: boolean) => void\nexport type DialogBeforeCloseFn = (done: DoneFn) => void\n\nexport const dialogProps = buildProps({\n ...dialogContentProps,\n /**\n * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`\n */\n appendToBody: Boolean,\n /**\n * @description which element the Dialog appends to\n */\n appendTo: {\n type: definePropType<string>(String),\n default: 'body',\n },\n /**\n * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog\n */\n beforeClose: {\n type: definePropType<DialogBeforeCloseFn>(Function),\n },\n /**\n * @description destroy elements in Dialog when closed\n */\n destroyOnClose: Boolean,\n /**\n * @description whether the Dialog can be closed by clicking the mask\n */\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the Dialog can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether scroll of body is disabled while Dialog is displayed\n */\n lockScroll: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether a mask is displayed\n */\n modal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the Time(milliseconds) before open\n */\n openDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description the Time(milliseconds) before close\n */\n closeDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description value for `margin-top` of Dialog CSS, default is 15vh\n */\n top: {\n type: String,\n },\n /**\n * @description visibility of Dialog\n */\n modelValue: Boolean,\n /**\n * @description custom class names for mask\n */\n modalClass: String,\n /**\n * @description width of Dialog, default is 50%\n */\n width: {\n type: [String, Number],\n },\n /**\n * @description same as z-index in native CSS, z-order of dialog\n */\n zIndex: {\n type: Number,\n },\n trapFocus: Boolean,\n /**\n * @description header's aria-level attribute\n */\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => isBoolean(value),\n openAutoFocus: () => true,\n closeAutoFocus: () => true,\n}\nexport type DialogEmits = typeof dialogEmits\n"],"names":["buildProps","dialogContentProps","definePropType","UPDATE_MODEL_EVENT","isBoolean"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,GAAGC,gCAAkB;AACvB,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAS,CAAC,KAAK,CAAC;AACnD,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B;;;;;"}
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
34
34
  readonly validator: ((val: unknown) => boolean) | undefined;
35
35
  __epPropKey: true;
36
36
  };
37
- readonly trapFocus: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
37
+ readonly trapFocus: BooleanConstructor;
38
38
  readonly headerAriaLevel: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
39
39
  readonly center: BooleanConstructor;
40
40
  readonly alignCenter: BooleanConstructor;
@@ -87,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
87
87
  readonly validator: ((val: unknown) => boolean) | undefined;
88
88
  __epPropKey: true;
89
89
  };
90
- readonly trapFocus: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
90
+ readonly trapFocus: BooleanConstructor;
91
91
  readonly headerAriaLevel: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
92
92
  readonly center: BooleanConstructor;
93
93
  readonly alignCenter: BooleanConstructor;
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<{
160
160
  draggable: import("vue").ComputedRef<boolean>;
161
161
  ElOverlay: import("vue").DefineComponent<{
162
162
  readonly mask: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
163
- readonly customMaskEvent: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
163
+ readonly customMaskEvent: BooleanConstructor;
164
164
  readonly overlayClass: {
165
165
  readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
166
166
  readonly required: false;
@@ -179,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
179
179
  click: (evt: MouseEvent) => boolean;
180
180
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
181
181
  readonly mask: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
182
- readonly customMaskEvent: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
182
+ readonly customMaskEvent: BooleanConstructor;
183
183
  readonly overlayClass: {
184
184
  readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
185
185
  readonly required: false;
@@ -196,7 +196,7 @@ declare const _default: import("vue").DefineComponent<{
196
196
  onClick?: ((evt: MouseEvent) => any) | undefined;
197
197
  }, {
198
198
  readonly mask: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
199
- readonly customMaskEvent: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
199
+ readonly customMaskEvent: boolean;
200
200
  }>;
201
201
  ElFocusTrap: import("vue").DefineComponent<{
202
202
  loop: BooleanConstructor;
@@ -429,7 +429,7 @@ declare const _default: import("vue").DefineComponent<{
429
429
  readonly validator: ((val: unknown) => boolean) | undefined;
430
430
  __epPropKey: true;
431
431
  };
432
- readonly trapFocus: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
432
+ readonly trapFocus: BooleanConstructor;
433
433
  readonly headerAriaLevel: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
434
434
  readonly center: BooleanConstructor;
435
435
  readonly alignCenter: BooleanConstructor;
@@ -470,9 +470,9 @@ declare const _default: import("vue").DefineComponent<{
470
470
  readonly modal: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
471
471
  readonly openDelay: number;
472
472
  readonly closeDelay: number;
473
- readonly trapFocus: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
474
473
  readonly headerAriaLevel: string;
475
474
  readonly appendToBody: boolean;
476
475
  readonly destroyOnClose: boolean;
476
+ readonly trapFocus: boolean;
477
477
  }>;
478
478
  export default _default;
@@ -39,7 +39,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
39
39
  readonly validator: ((val: unknown) => boolean) | undefined;
40
40
  __epPropKey: true;
41
41
  };
42
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
42
+ readonly trapFocus: BooleanConstructor;
43
43
  readonly center: BooleanConstructor;
44
44
  readonly alignCenter: BooleanConstructor;
45
45
  readonly closeIcon: {
@@ -96,7 +96,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
96
96
  readonly validator: ((val: unknown) => boolean) | undefined;
97
97
  __epPropKey: true;
98
98
  };
99
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
99
+ readonly trapFocus: BooleanConstructor;
100
100
  readonly center: BooleanConstructor;
101
101
  readonly alignCenter: BooleanConstructor;
102
102
  readonly closeIcon: {
@@ -163,7 +163,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
163
163
  Close: any;
164
164
  ElOverlay: import("vue").DefineComponent<{
165
165
  readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
166
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
166
+ readonly customMaskEvent: BooleanConstructor;
167
167
  readonly overlayClass: {
168
168
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
169
169
  readonly required: false;
@@ -182,7 +182,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
182
182
  click: (evt: MouseEvent) => boolean;
183
183
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
184
184
  readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
185
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
185
+ readonly customMaskEvent: BooleanConstructor;
186
186
  readonly overlayClass: {
187
187
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
188
188
  readonly required: false;
@@ -199,7 +199,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
199
199
  onClick?: ((evt: MouseEvent) => any) | undefined;
200
200
  }, {
201
201
  readonly mask: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
202
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
202
+ readonly customMaskEvent: boolean;
203
203
  }>;
204
204
  ElFocusTrap: import("vue").DefineComponent<{
205
205
  loop: BooleanConstructor;
@@ -343,7 +343,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
343
343
  readonly validator: ((val: unknown) => boolean) | undefined;
344
344
  __epPropKey: true;
345
345
  };
346
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
346
+ readonly trapFocus: BooleanConstructor;
347
347
  readonly center: BooleanConstructor;
348
348
  readonly alignCenter: BooleanConstructor;
349
349
  readonly closeIcon: {
@@ -385,10 +385,10 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
385
385
  readonly modal: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
386
386
  readonly openDelay: number;
387
387
  readonly closeDelay: number;
388
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
389
388
  readonly headerAriaLevel: string;
390
389
  readonly appendToBody: boolean;
391
390
  readonly destroyOnClose: boolean;
391
+ readonly trapFocus: boolean;
392
392
  readonly withHeader: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
393
393
  readonly modalFade: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
394
394
  }>> & Record<string, any>;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var drawer$1 = require('./src/drawer.js');
7
- var drawer = require('./src/drawer2.js');
6
+ var drawer$1 = require('./src/drawer2.js');
7
+ var drawer = require('./src/drawer.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElDrawer = install.withInstall(drawer$1["default"]);
@@ -40,7 +40,7 @@ export declare const drawerProps: {
40
40
  readonly validator: ((val: unknown) => boolean) | undefined;
41
41
  __epPropKey: true;
42
42
  };
43
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
43
+ readonly trapFocus: BooleanConstructor;
44
44
  readonly center: BooleanConstructor;
45
45
  readonly alignCenter: BooleanConstructor;
46
46
  readonly closeIcon: {
@@ -2,190 +2,37 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var iconsVue = require('@element-plus/icons-vue');
7
- var index$3 = require('../../overlay/index.js');
8
- require('../../focus-trap/index.js');
9
- require('../../dialog/index.js');
10
5
  require('../../../utils/index.js');
11
- var index$4 = require('../../icon/index.js');
12
- require('../../../hooks/index.js');
13
- var drawer = require('./drawer2.js');
14
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
15
- var index = require('../../../hooks/use-deprecated/index.js');
16
- var index$1 = require('../../../hooks/use-namespace/index.js');
17
- var index$2 = require('../../../hooks/use-locale/index.js');
18
- var useDialog = require('../../dialog/src/use-dialog.js');
19
- var style = require('../../../utils/dom/style.js');
20
- var focusTrap = require('../../focus-trap/src/focus-trap.js');
6
+ require('../../dialog/index.js');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var dialog = require('../../dialog/src/dialog.js');
21
9
 
22
- const _hoisted_1 = ["aria-label", "aria-labelledby", "aria-describedby"];
23
- const _hoisted_2 = ["id", "aria-level"];
24
- const _hoisted_3 = ["aria-label"];
25
- const _hoisted_4 = ["id"];
26
- const __default__ = vue.defineComponent({
27
- name: "ElDrawer",
28
- inheritAttrs: false
29
- });
30
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
- ...__default__,
32
- props: drawer.drawerProps,
33
- emits: drawer.drawerEmits,
34
- setup(__props, { expose }) {
35
- const props = __props;
36
- const slots = vue.useSlots();
37
- index.useDeprecated({
38
- scope: "el-drawer",
39
- from: "the title slot",
40
- replacement: "the header slot",
41
- version: "3.0.0",
42
- ref: "https://element-plus.org/en-US/component/drawer.html#slots"
43
- }, vue.computed(() => !!slots.title));
44
- const drawerRef = vue.ref();
45
- const focusStartRef = vue.ref();
46
- const ns = index$1.useNamespace("drawer");
47
- const { t } = index$2.useLocale();
48
- const {
49
- afterEnter,
50
- afterLeave,
51
- beforeLeave,
52
- visible,
53
- rendered,
54
- titleId,
55
- bodyId,
56
- zIndex,
57
- onModalClick,
58
- onOpenAutoFocus,
59
- onCloseAutoFocus,
60
- onFocusoutPrevented,
61
- onCloseRequested,
62
- handleClose
63
- } = useDialog.useDialog(props, drawerRef);
64
- const isHorizontal = vue.computed(() => props.direction === "rtl" || props.direction === "ltr");
65
- const drawerSize = vue.computed(() => style.addUnit(props.size));
66
- expose({
67
- handleClose,
68
- afterEnter,
69
- afterLeave
70
- });
71
- return (_ctx, _cache) => {
72
- return vue.openBlock(), vue.createBlock(vue.Teleport, {
73
- to: "body",
74
- disabled: !_ctx.appendToBody
75
- }, [
76
- vue.createVNode(vue.Transition, {
77
- name: vue.unref(ns).b("fade"),
78
- onAfterEnter: vue.unref(afterEnter),
79
- onAfterLeave: vue.unref(afterLeave),
80
- onBeforeLeave: vue.unref(beforeLeave),
81
- persisted: ""
82
- }, {
83
- default: vue.withCtx(() => [
84
- vue.withDirectives(vue.createVNode(vue.unref(index$3.ElOverlay), {
85
- mask: _ctx.modal,
86
- "overlay-class": _ctx.modalClass,
87
- "z-index": vue.unref(zIndex),
88
- onClick: vue.unref(onModalClick)
89
- }, {
90
- default: vue.withCtx(() => [
91
- vue.createVNode(vue.unref(focusTrap["default"]), {
92
- loop: "",
93
- trapped: vue.unref(visible),
94
- "focus-trap-el": drawerRef.value,
95
- "focus-start-el": focusStartRef.value,
96
- onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
97
- onFocusAfterReleased: vue.unref(onCloseAutoFocus),
98
- onFocusoutPrevented: vue.unref(onFocusoutPrevented),
99
- onReleaseRequested: vue.unref(onCloseRequested)
100
- }, {
101
- default: vue.withCtx(() => [
102
- vue.createElementVNode("div", vue.mergeProps({
103
- ref_key: "drawerRef",
104
- ref: drawerRef,
105
- "aria-modal": "true",
106
- "aria-label": _ctx.title || void 0,
107
- "aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
108
- "aria-describedby": vue.unref(bodyId)
109
- }, _ctx.$attrs, {
110
- class: [vue.unref(ns).b(), _ctx.direction, vue.unref(visible) && "open"],
111
- style: vue.unref(isHorizontal) ? "width: " + vue.unref(drawerSize) : "height: " + vue.unref(drawerSize),
112
- role: "dialog",
113
- onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
114
- }, ["stop"]))
115
- }), [
116
- vue.createElementVNode("span", {
117
- ref_key: "focusStartRef",
118
- ref: focusStartRef,
119
- class: vue.normalizeClass(vue.unref(ns).e("sr-focus")),
120
- tabindex: "-1"
121
- }, null, 2),
122
- _ctx.withHeader ? (vue.openBlock(), vue.createElementBlock("header", {
123
- key: 0,
124
- class: vue.normalizeClass(vue.unref(ns).e("header"))
125
- }, [
126
- !_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
127
- key: 0,
128
- close: vue.unref(handleClose),
129
- titleId: vue.unref(titleId),
130
- titleClass: vue.unref(ns).e("title")
131
- }, () => [
132
- !_ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
133
- key: 0,
134
- id: vue.unref(titleId),
135
- role: "heading",
136
- "aria-level": _ctx.headerAriaLevel,
137
- class: vue.normalizeClass(vue.unref(ns).e("title"))
138
- }, vue.toDisplayString(_ctx.title), 11, _hoisted_2)) : vue.createCommentVNode("v-if", true)
139
- ]) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
140
- vue.createCommentVNode(" DEPRECATED SLOT ")
141
- ]),
142
- _ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
143
- key: 2,
144
- "aria-label": vue.unref(t)("el.drawer.close"),
145
- class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
146
- type: "button",
147
- onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(handleClose) && vue.unref(handleClose)(...args))
148
- }, [
149
- vue.createVNode(vue.unref(index$4.ElIcon), {
150
- class: vue.normalizeClass(vue.unref(ns).e("close"))
151
- }, {
152
- default: vue.withCtx(() => [
153
- vue.createVNode(vue.unref(iconsVue.Close))
154
- ]),
155
- _: 1
156
- }, 8, ["class"])
157
- ], 10, _hoisted_3)) : vue.createCommentVNode("v-if", true)
158
- ], 2)) : vue.createCommentVNode("v-if", true),
159
- vue.unref(rendered) ? (vue.openBlock(), vue.createElementBlock("div", {
160
- key: 1,
161
- id: vue.unref(bodyId),
162
- class: vue.normalizeClass(vue.unref(ns).e("body"))
163
- }, [
164
- vue.renderSlot(_ctx.$slots, "default")
165
- ], 10, _hoisted_4)) : vue.createCommentVNode("v-if", true),
166
- _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
167
- key: 2,
168
- class: vue.normalizeClass(vue.unref(ns).e("footer"))
169
- }, [
170
- vue.renderSlot(_ctx.$slots, "footer")
171
- ], 2)) : vue.createCommentVNode("v-if", true)
172
- ], 16, _hoisted_1)
173
- ]),
174
- _: 3
175
- }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
176
- ]),
177
- _: 3
178
- }, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
179
- [vue.vShow, vue.unref(visible)]
180
- ])
181
- ]),
182
- _: 3
183
- }, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
184
- ], 8, ["disabled"]);
185
- };
10
+ const drawerProps = runtime.buildProps({
11
+ ...dialog.dialogProps,
12
+ direction: {
13
+ type: String,
14
+ default: "rtl",
15
+ values: ["ltr", "rtl", "ttb", "btt"]
16
+ },
17
+ size: {
18
+ type: [String, Number],
19
+ default: "30%"
20
+ },
21
+ withHeader: {
22
+ type: Boolean,
23
+ default: true
24
+ },
25
+ modalFade: {
26
+ type: Boolean,
27
+ default: true
28
+ },
29
+ headerAriaLevel: {
30
+ type: String,
31
+ default: "2"
186
32
  }
187
33
  });
188
- var Drawer = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "drawer.vue"]]);
34
+ const drawerEmits = dialog.dialogEmits;
189
35
 
190
- exports["default"] = Drawer;
36
+ exports.drawerEmits = drawerEmits;
37
+ exports.drawerProps = drawerProps;
191
38
  //# sourceMappingURL=drawer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.js","sources":["../../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n :name=\"ns.b('fade')\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n @click=\"onModalClick\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n :focus-trap-el=\"drawerRef\"\n :focus-start-el=\"focusStartRef\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <div\n ref=\"drawerRef\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n v-bind=\"$attrs\"\n :class=\"[ns.b(), direction, visible && 'open']\"\n :style=\"\n isHorizontal ? 'width: ' + drawerSize : 'height: ' + drawerSize\n \"\n role=\"dialog\"\n @click.stop\n >\n <span ref=\"focusStartRef\" :class=\"ns.e('sr-focus')\" tabindex=\"-1\" />\n <header v-if=\"withHeader\" :class=\"ns.e('header')\">\n <slot\n v-if=\"!$slots.title\"\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n >\n <span\n v-if=\"!$slots.title\"\n :id=\"titleId\"\n role=\"heading\"\n :aria-level=\"headerAriaLevel\"\n :class=\"ns.e('title')\"\n >\n {{ title }}\n </span>\n </slot>\n <slot v-else name=\"title\">\n <!-- DEPRECATED SLOT -->\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.drawer.close')\"\n :class=\"ns.e('close-btn')\"\n type=\"button\"\n @click=\"handleClose\"\n >\n <el-icon :class=\"ns.e('close')\"><close /></el-icon>\n </button>\n </header>\n <template v-if=\"rendered\">\n <div :id=\"bodyId\" :class=\"ns.e('body')\">\n <slot />\n </div>\n </template>\n <div v-if=\"$slots.footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\" />\n </div>\n </div>\n </el-focus-trap>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { Close } from '@element-plus/icons-vue'\n\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport { useDialog } from '@element-plus/components/dialog'\nimport { addUnit } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport { useDeprecated, useLocale, useNamespace } from '@element-plus/hooks'\nimport { drawerEmits, drawerProps } from './drawer'\n\ndefineOptions({\n name: 'ElDrawer',\n inheritAttrs: false,\n})\n\nconst props = defineProps(drawerProps)\ndefineEmits(drawerEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-drawer',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/drawer.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nconst drawerRef = ref<HTMLElement>()\nconst focusStartRef = ref<HTMLElement>()\nconst ns = useNamespace('drawer')\nconst { t } = useLocale()\nconst {\n afterEnter,\n afterLeave,\n beforeLeave,\n visible,\n rendered,\n titleId,\n bodyId,\n zIndex,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onFocusoutPrevented,\n onCloseRequested,\n handleClose,\n} = useDialog(props, drawerRef)\n\nconst isHorizontal = computed(\n () => props.direction === 'rtl' || props.direction === 'ltr'\n)\nconst drawerSize = computed(() => addUnit(props.size))\n\ndefineExpose({\n handleClose,\n afterEnter,\n afterLeave,\n})\n</script>\n"],"names":["useSlots","useDeprecated","computed","ref","useNamespace","useLocale","useDialog","addUnit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;uCAkGc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IACEC,mBAAA,CAAA;AAAA,MACE,KAAO,EAAA,WAAA;AAAA,MACP,IAAM,EAAA,gBAAA;AAAA,MACN,WAAa,EAAA,iBAAA;AAAA,MACb,OAAS,EAAA,OAAA;AAAA,MACT,GAAK,EAAA,4DAAA;AAAA,OAEPC,YAAS,CAAA,MAAM,CAAC,CAAC,KAAA,CAAM,KAAK,CAC9B,CAAA,CAAA;AAEA,IAAA,MAAM,YAAYC,OAAiB,EAAA,CAAA;AACnC,IAAA,MAAM,gBAAgBA,OAAiB,EAAA,CAAA;AACvC,IAAM,MAAA,EAAA,GAAKC,qBAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,MAAMC,iBAAU,EAAA,CAAA;AACxB,IAAM,MAAA;AAAA,MACJ,UAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,OAAA;AAAA,MACA,QAAA;AAAA,MACA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,YAAA;AAAA,MACA,eAAA;AAAA,MACA,gBAAA;AAAA,MACA,mBAAA;AAAA,MACA,gBAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAAC,mBAAA,CAAU,OAAO,SAAS,CAAA,CAAA;AAE9B,IAAM,MAAA,YAAA,GAAeJ,aACnB,MAAM,KAAA,CAAM,cAAc,KAAS,IAAA,KAAA,CAAM,cAAc,KACzD,CAAA,CAAA;AACA,IAAA,MAAM,aAAaA,YAAS,CAAA,MAAMK,aAAQ,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAErD,IAAa,MAAA,CAAA;AAAA,MACX,WAAA;AAAA,MACA,UAAA;AAAA,MACA,UAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"drawer.js","sources":["../../../../../../packages/components/drawer/src/drawer.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { dialogEmits, dialogProps } from '@element-plus/components/dialog'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const drawerProps = buildProps({\n ...dialogProps,\n direction: {\n type: String,\n default: 'rtl',\n values: ['ltr', 'rtl', 'ttb', 'btt'],\n },\n size: {\n type: [String, Number],\n default: '30%',\n },\n withHeader: {\n type: Boolean,\n default: true,\n },\n modalFade: {\n type: Boolean,\n default: true,\n },\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport type DrawerProps = ExtractPropTypes<typeof drawerProps>\n\nexport const drawerEmits = dialogEmits\n"],"names":["buildProps","dialogProps","dialogEmits"],"mappings":";;;;;;;;;AAEY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,GAAGC,kBAAW;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AACxC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAGC;;;;;"}
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  readonly validator: ((val: unknown) => boolean) | undefined;
40
40
  __epPropKey: true;
41
41
  };
42
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
42
+ readonly trapFocus: BooleanConstructor;
43
43
  readonly center: BooleanConstructor;
44
44
  readonly alignCenter: BooleanConstructor;
45
45
  readonly closeIcon: {
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
96
96
  readonly validator: ((val: unknown) => boolean) | undefined;
97
97
  __epPropKey: true;
98
98
  };
99
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
99
+ readonly trapFocus: BooleanConstructor;
100
100
  readonly center: BooleanConstructor;
101
101
  readonly alignCenter: BooleanConstructor;
102
102
  readonly closeIcon: {
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<{
163
163
  Close: any;
164
164
  ElOverlay: import("vue").DefineComponent<{
165
165
  readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
166
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
166
+ readonly customMaskEvent: BooleanConstructor;
167
167
  readonly overlayClass: {
168
168
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
169
169
  readonly required: false;
@@ -182,7 +182,7 @@ declare const _default: import("vue").DefineComponent<{
182
182
  click: (evt: MouseEvent) => boolean;
183
183
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
184
184
  readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
185
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
185
+ readonly customMaskEvent: BooleanConstructor;
186
186
  readonly overlayClass: {
187
187
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
188
188
  readonly required: false;
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<{
199
199
  onClick?: ((evt: MouseEvent) => any) | undefined;
200
200
  }, {
201
201
  readonly mask: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
202
- readonly customMaskEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
202
+ readonly customMaskEvent: boolean;
203
203
  }>;
204
204
  ElFocusTrap: import("vue").DefineComponent<{
205
205
  loop: BooleanConstructor;
@@ -343,7 +343,7 @@ declare const _default: import("vue").DefineComponent<{
343
343
  readonly validator: ((val: unknown) => boolean) | undefined;
344
344
  __epPropKey: true;
345
345
  };
346
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
346
+ readonly trapFocus: BooleanConstructor;
347
347
  readonly center: BooleanConstructor;
348
348
  readonly alignCenter: BooleanConstructor;
349
349
  readonly closeIcon: {
@@ -385,10 +385,10 @@ declare const _default: import("vue").DefineComponent<{
385
385
  readonly modal: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
386
386
  readonly openDelay: number;
387
387
  readonly closeDelay: number;
388
- readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
389
388
  readonly headerAriaLevel: string;
390
389
  readonly appendToBody: boolean;
391
390
  readonly destroyOnClose: boolean;
391
+ readonly trapFocus: boolean;
392
392
  readonly withHeader: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
393
393
  readonly modalFade: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
394
394
  }>;