@element-plus/nightly 0.0.20250609 → 0.0.20250611

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 (588) hide show
  1. package/dist/index.full.js +134 -124
  2. package/dist/index.full.min.js +16 -16
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +16 -16
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +134 -124
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/autocomplete/src/autocomplete.mjs +1 -1
  276. package/es/components/cascader/src/cascader.mjs +1 -1
  277. package/es/components/cascader-panel/src/index.mjs +1 -1
  278. package/es/components/cascader-panel/src/menu.mjs +1 -1
  279. package/es/components/cascader-panel/src/node.mjs +206 -115
  280. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  281. package/es/components/cascader-panel/src/node2.mjs +115 -206
  282. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  283. package/es/components/cascader-panel/src/store.mjs +1 -1
  284. package/es/components/check-tag/index.mjs +2 -2
  285. package/es/components/check-tag/src/check-tag.mjs +38 -14
  286. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  287. package/es/components/check-tag/src/check-tag2.mjs +14 -38
  288. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  289. package/es/components/col/index.mjs +2 -2
  290. package/es/components/col/src/col.mjs +64 -43
  291. package/es/components/col/src/col.mjs.map +1 -1
  292. package/es/components/col/src/col2.mjs +43 -64
  293. package/es/components/col/src/col2.mjs.map +1 -1
  294. package/es/components/collection/index.mjs +1 -1
  295. package/es/components/collection/src/collection.mjs +62 -10
  296. package/es/components/collection/src/collection.mjs.map +1 -1
  297. package/es/components/collection/src/collection2.mjs +10 -62
  298. package/es/components/collection/src/collection2.mjs.map +1 -1
  299. package/es/components/color-picker/src/color-picker.mjs +1 -1
  300. package/es/components/countdown/index.mjs +2 -2
  301. package/es/components/countdown/src/countdown.mjs +79 -21
  302. package/es/components/countdown/src/countdown.mjs.map +1 -1
  303. package/es/components/countdown/src/countdown2.mjs +21 -79
  304. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  305. package/es/components/date-picker/src/composables/use-range-picker.d.ts +2 -1
  306. package/es/components/date-picker/src/composables/use-range-picker.mjs +2 -0
  307. package/es/components/date-picker/src/composables/use-range-picker.mjs.map +1 -1
  308. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
  309. package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs +9 -2
  310. package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs.map +1 -1
  311. package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -0
  312. package/es/components/date-picker/src/date-picker-com/panel-year-range.mjs +77 -107
  313. package/es/components/date-picker/src/date-picker-com/panel-year-range.mjs.map +1 -1
  314. package/es/components/date-picker/src/date-picker-com/panel-year-range.vue.d.ts +3 -0
  315. package/es/components/date-picker/src/panel-utils.d.ts +12 -5
  316. package/es/components/date-picker/src/props/panel-date-range.d.ts +1 -1
  317. package/es/components/date-picker/src/props/panel-date-range.mjs +1 -2
  318. package/es/components/date-picker/src/props/panel-date-range.mjs.map +1 -1
  319. package/es/components/date-picker/src/props/panel-month-range.d.ts +1 -0
  320. package/es/components/date-picker/src/props/panel-year-range.d.ts +1 -0
  321. package/es/components/date-picker/src/props/shared.d.ts +1 -0
  322. package/es/components/date-picker/src/props/shared.mjs +1 -0
  323. package/es/components/date-picker/src/props/shared.mjs.map +1 -1
  324. package/es/components/date-picker/src/utils.d.ts +2 -1
  325. package/es/components/date-picker/src/utils.mjs +3 -3
  326. package/es/components/date-picker/src/utils.mjs.map +1 -1
  327. package/es/components/dialog/src/dialog-content.mjs +29 -88
  328. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  329. package/es/components/dialog/src/dialog-content2.mjs +88 -29
  330. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  331. package/es/components/dialog/src/dialog.mjs +1 -1
  332. package/es/components/dialog/src/dialog2.mjs +1 -1
  333. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  334. package/es/components/dropdown/src/dropdown.mjs +3 -3
  335. package/es/components/index.mjs +16 -16
  336. package/es/components/link/index.mjs +2 -2
  337. package/es/components/link/src/link.mjs +25 -71
  338. package/es/components/link/src/link.mjs.map +1 -1
  339. package/es/components/link/src/link2.mjs +71 -25
  340. package/es/components/link/src/link2.mjs.map +1 -1
  341. package/es/components/pagination/src/components/jumper.mjs +7 -58
  342. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  343. package/es/components/pagination/src/components/jumper2.mjs +58 -7
  344. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  345. package/es/components/pagination/src/components/next.mjs +35 -18
  346. package/es/components/pagination/src/components/next.mjs.map +1 -1
  347. package/es/components/pagination/src/components/next2.mjs +18 -35
  348. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  349. package/es/components/pagination/src/pagination.mjs +2 -2
  350. package/es/components/popconfirm/index.mjs +2 -2
  351. package/es/components/popconfirm/src/popconfirm.mjs +45 -114
  352. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  353. package/es/components/popconfirm/src/popconfirm2.mjs +114 -45
  354. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  355. package/es/components/popover/src/popover.mjs +1 -1
  356. package/es/components/popper/index.mjs +4 -4
  357. package/es/components/popper/src/content.mjs +130 -94
  358. package/es/components/popper/src/content.mjs.map +1 -1
  359. package/es/components/popper/src/content2.mjs +94 -130
  360. package/es/components/popper/src/content2.mjs.map +1 -1
  361. package/es/components/popper/src/popper.mjs +32 -22
  362. package/es/components/popper/src/popper.mjs.map +1 -1
  363. package/es/components/popper/src/popper2.mjs +22 -32
  364. package/es/components/popper/src/popper2.mjs.map +1 -1
  365. package/es/components/radio/index.mjs +2 -2
  366. package/es/components/radio/src/radio-button.mjs +1 -1
  367. package/es/components/radio/src/radio-group.mjs +1 -1
  368. package/es/components/radio/src/radio.mjs +74 -32
  369. package/es/components/radio/src/radio.mjs.map +1 -1
  370. package/es/components/radio/src/radio2.mjs +32 -74
  371. package/es/components/radio/src/radio2.mjs.map +1 -1
  372. package/es/components/result/index.mjs +2 -2
  373. package/es/components/result/src/result.mjs +62 -30
  374. package/es/components/result/src/result.mjs.map +1 -1
  375. package/es/components/result/src/result2.mjs +30 -62
  376. package/es/components/result/src/result2.mjs.map +1 -1
  377. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  378. package/es/components/scrollbar/index.mjs +1 -1
  379. package/es/components/scrollbar/src/bar2.mjs +1 -1
  380. package/es/components/scrollbar/src/thumb.mjs +139 -11
  381. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  382. package/es/components/scrollbar/src/thumb2.mjs +11 -139
  383. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  384. package/es/components/select/src/select.mjs +1 -1
  385. package/es/components/select/src/select2.mjs +45 -15
  386. package/es/components/select/src/select2.mjs.map +1 -1
  387. package/es/components/select-v2/src/defaults.mjs +1 -1
  388. package/es/components/skeleton/index.mjs +2 -2
  389. package/es/components/skeleton/src/skeleton-item.mjs +22 -17
  390. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  391. package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
  392. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  393. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  394. package/es/components/splitter/index.mjs +2 -2
  395. package/es/components/splitter/src/splitter.mjs +7 -77
  396. package/es/components/splitter/src/splitter.mjs.map +1 -1
  397. package/es/components/splitter/src/splitter2.mjs +77 -7
  398. package/es/components/splitter/src/splitter2.mjs.map +1 -1
  399. package/es/components/switch/index.mjs +2 -2
  400. package/es/components/switch/src/switch.mjs +228 -72
  401. package/es/components/switch/src/switch.mjs.map +1 -1
  402. package/es/components/switch/src/switch2.mjs +72 -228
  403. package/es/components/switch/src/switch2.mjs.map +1 -1
  404. package/es/components/table/src/filter-panel.mjs +1 -1
  405. package/es/components/tooltip/index.mjs +1 -1
  406. package/es/components/tooltip/src/content.mjs +196 -29
  407. package/es/components/tooltip/src/content.mjs.map +1 -1
  408. package/es/components/tooltip/src/content2.mjs +29 -196
  409. package/es/components/tooltip/src/content2.mjs.map +1 -1
  410. package/es/components/tooltip/src/tooltip.mjs +2 -2
  411. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  412. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  413. package/es/components/transfer/src/transfer-panel.mjs +130 -19
  414. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  415. package/es/components/transfer/src/transfer-panel2.mjs +19 -130
  416. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  417. package/es/components/transfer/src/transfer2.mjs +1 -1
  418. package/es/components/upload/index.mjs +1 -1
  419. package/es/components/upload/src/upload-list.mjs +28 -173
  420. package/es/components/upload/src/upload-list.mjs.map +1 -1
  421. package/es/components/upload/src/upload-list2.mjs +173 -28
  422. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  423. package/es/components/upload/src/upload2.mjs +1 -1
  424. package/es/directives/click-outside/index.mjs +1 -1
  425. package/es/hooks/use-focus-controller/index.mjs +1 -1
  426. package/es/hooks/use-lockscreen/index.mjs +1 -1
  427. package/es/index.mjs +16 -16
  428. package/es/version.d.ts +1 -1
  429. package/es/version.mjs +1 -1
  430. package/es/version.mjs.map +1 -1
  431. package/lib/components/autocomplete/src/autocomplete.js +1 -1
  432. package/lib/components/cascader/src/cascader.js +1 -1
  433. package/lib/components/cascader-panel/src/index.js +1 -1
  434. package/lib/components/cascader-panel/src/menu.js +1 -1
  435. package/lib/components/cascader-panel/src/node.js +206 -115
  436. package/lib/components/cascader-panel/src/node.js.map +1 -1
  437. package/lib/components/cascader-panel/src/node2.js +115 -206
  438. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  439. package/lib/components/cascader-panel/src/store.js +1 -1
  440. package/lib/components/check-tag/index.js +2 -2
  441. package/lib/components/check-tag/src/check-tag.js +38 -15
  442. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  443. package/lib/components/check-tag/src/check-tag2.js +15 -38
  444. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  445. package/lib/components/col/index.js +2 -2
  446. package/lib/components/col/src/col.js +64 -43
  447. package/lib/components/col/src/col.js.map +1 -1
  448. package/lib/components/col/src/col2.js +43 -64
  449. package/lib/components/col/src/col2.js.map +1 -1
  450. package/lib/components/collection/index.js +1 -1
  451. package/lib/components/collection/src/collection.js +62 -9
  452. package/lib/components/collection/src/collection.js.map +1 -1
  453. package/lib/components/collection/src/collection2.js +9 -62
  454. package/lib/components/collection/src/collection2.js.map +1 -1
  455. package/lib/components/color-picker/src/color-picker.js +1 -1
  456. package/lib/components/countdown/index.js +2 -2
  457. package/lib/components/countdown/src/countdown.js +79 -22
  458. package/lib/components/countdown/src/countdown.js.map +1 -1
  459. package/lib/components/countdown/src/countdown2.js +22 -79
  460. package/lib/components/countdown/src/countdown2.js.map +1 -1
  461. package/lib/components/date-picker/src/composables/use-range-picker.d.ts +2 -1
  462. package/lib/components/date-picker/src/composables/use-range-picker.js +2 -0
  463. package/lib/components/date-picker/src/composables/use-range-picker.js.map +1 -1
  464. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
  465. package/lib/components/date-picker/src/date-picker-com/panel-month-range.js +8 -1
  466. package/lib/components/date-picker/src/date-picker-com/panel-month-range.js.map +1 -1
  467. package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -0
  468. package/lib/components/date-picker/src/date-picker-com/panel-year-range.js +79 -109
  469. package/lib/components/date-picker/src/date-picker-com/panel-year-range.js.map +1 -1
  470. package/lib/components/date-picker/src/date-picker-com/panel-year-range.vue.d.ts +3 -0
  471. package/lib/components/date-picker/src/panel-utils.d.ts +12 -5
  472. package/lib/components/date-picker/src/props/panel-date-range.d.ts +1 -1
  473. package/lib/components/date-picker/src/props/panel-date-range.js +1 -2
  474. package/lib/components/date-picker/src/props/panel-date-range.js.map +1 -1
  475. package/lib/components/date-picker/src/props/panel-month-range.d.ts +1 -0
  476. package/lib/components/date-picker/src/props/panel-year-range.d.ts +1 -0
  477. package/lib/components/date-picker/src/props/shared.d.ts +1 -0
  478. package/lib/components/date-picker/src/props/shared.js +1 -0
  479. package/lib/components/date-picker/src/props/shared.js.map +1 -1
  480. package/lib/components/date-picker/src/utils.d.ts +2 -1
  481. package/lib/components/date-picker/src/utils.js +3 -3
  482. package/lib/components/date-picker/src/utils.js.map +1 -1
  483. package/lib/components/dialog/src/dialog-content.js +29 -87
  484. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  485. package/lib/components/dialog/src/dialog-content2.js +87 -29
  486. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  487. package/lib/components/dialog/src/dialog.js +1 -1
  488. package/lib/components/dialog/src/dialog2.js +1 -1
  489. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  490. package/lib/components/dropdown/src/dropdown.js +3 -3
  491. package/lib/components/index.js +16 -16
  492. package/lib/components/link/index.js +2 -2
  493. package/lib/components/link/src/link.js +26 -71
  494. package/lib/components/link/src/link.js.map +1 -1
  495. package/lib/components/link/src/link2.js +71 -26
  496. package/lib/components/link/src/link2.js.map +1 -1
  497. package/lib/components/pagination/src/components/jumper.js +7 -58
  498. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  499. package/lib/components/pagination/src/components/jumper2.js +58 -7
  500. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  501. package/lib/components/pagination/src/components/next.js +35 -18
  502. package/lib/components/pagination/src/components/next.js.map +1 -1
  503. package/lib/components/pagination/src/components/next2.js +18 -35
  504. package/lib/components/pagination/src/components/next2.js.map +1 -1
  505. package/lib/components/pagination/src/pagination.js +2 -2
  506. package/lib/components/popconfirm/index.js +2 -2
  507. package/lib/components/popconfirm/src/popconfirm.js +46 -114
  508. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  509. package/lib/components/popconfirm/src/popconfirm2.js +114 -46
  510. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  511. package/lib/components/popover/src/popover.js +1 -1
  512. package/lib/components/popper/index.js +4 -4
  513. package/lib/components/popper/src/content.js +130 -99
  514. package/lib/components/popper/src/content.js.map +1 -1
  515. package/lib/components/popper/src/content2.js +99 -130
  516. package/lib/components/popper/src/content2.js.map +1 -1
  517. package/lib/components/popper/src/popper.js +32 -25
  518. package/lib/components/popper/src/popper.js.map +1 -1
  519. package/lib/components/popper/src/popper2.js +25 -32
  520. package/lib/components/popper/src/popper2.js.map +1 -1
  521. package/lib/components/radio/index.js +2 -2
  522. package/lib/components/radio/src/radio-button.js +1 -1
  523. package/lib/components/radio/src/radio-group.js +1 -1
  524. package/lib/components/radio/src/radio.js +73 -33
  525. package/lib/components/radio/src/radio.js.map +1 -1
  526. package/lib/components/radio/src/radio2.js +33 -73
  527. package/lib/components/radio/src/radio2.js.map +1 -1
  528. package/lib/components/result/index.js +2 -2
  529. package/lib/components/result/src/result.js +62 -32
  530. package/lib/components/result/src/result.js.map +1 -1
  531. package/lib/components/result/src/result2.js +32 -62
  532. package/lib/components/result/src/result2.js.map +1 -1
  533. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  534. package/lib/components/scrollbar/index.js +1 -1
  535. package/lib/components/scrollbar/src/bar2.js +1 -1
  536. package/lib/components/scrollbar/src/thumb.js +139 -11
  537. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  538. package/lib/components/scrollbar/src/thumb2.js +11 -139
  539. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  540. package/lib/components/select/src/select.js +1 -1
  541. package/lib/components/select/src/select2.js +44 -14
  542. package/lib/components/select/src/select2.js.map +1 -1
  543. package/lib/components/select-v2/src/defaults.js +1 -1
  544. package/lib/components/skeleton/index.js +2 -2
  545. package/lib/components/skeleton/src/skeleton-item.js +22 -17
  546. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  547. package/lib/components/skeleton/src/skeleton-item2.js +17 -22
  548. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  549. package/lib/components/skeleton/src/skeleton2.js +1 -1
  550. package/lib/components/splitter/index.js +2 -2
  551. package/lib/components/splitter/src/splitter.js +7 -77
  552. package/lib/components/splitter/src/splitter.js.map +1 -1
  553. package/lib/components/splitter/src/splitter2.js +77 -7
  554. package/lib/components/splitter/src/splitter2.js.map +1 -1
  555. package/lib/components/switch/index.js +2 -2
  556. package/lib/components/switch/src/switch.js +227 -72
  557. package/lib/components/switch/src/switch.js.map +1 -1
  558. package/lib/components/switch/src/switch2.js +72 -227
  559. package/lib/components/switch/src/switch2.js.map +1 -1
  560. package/lib/components/table/src/filter-panel.js +1 -1
  561. package/lib/components/tooltip/index.js +1 -1
  562. package/lib/components/tooltip/src/content.js +196 -29
  563. package/lib/components/tooltip/src/content.js.map +1 -1
  564. package/lib/components/tooltip/src/content2.js +29 -196
  565. package/lib/components/tooltip/src/content2.js.map +1 -1
  566. package/lib/components/tooltip/src/tooltip.js +2 -2
  567. package/lib/components/tooltip/src/tooltip2.js +1 -1
  568. package/lib/components/transfer/src/composables/use-check.js +1 -1
  569. package/lib/components/transfer/src/transfer-panel.js +130 -21
  570. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  571. package/lib/components/transfer/src/transfer-panel2.js +21 -130
  572. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  573. package/lib/components/transfer/src/transfer2.js +1 -1
  574. package/lib/components/upload/index.js +1 -1
  575. package/lib/components/upload/src/upload-list.js +29 -173
  576. package/lib/components/upload/src/upload-list.js.map +1 -1
  577. package/lib/components/upload/src/upload-list2.js +173 -29
  578. package/lib/components/upload/src/upload-list2.js.map +1 -1
  579. package/lib/components/upload/src/upload2.js +1 -1
  580. package/lib/directives/click-outside/index.js +1 -1
  581. package/lib/hooks/use-focus-controller/index.js +1 -1
  582. package/lib/hooks/use-lockscreen/index.js +1 -1
  583. package/lib/index.js +16 -16
  584. package/lib/version.d.ts +1 -1
  585. package/lib/version.js +1 -1
  586. package/lib/version.js.map +1 -1
  587. package/package.json +2 -2
  588. package/web-types.json +1 -1
@@ -2,79 +2,34 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$2 = require('../../icon/index.js');
7
- var link = require('./link2.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
- var useGlobalConfig = require('../../config-provider/src/hooks/use-global-config.js');
10
- var index = require('../../../hooks/use-deprecated/index.js');
11
- var types = require('../../../utils/types.js');
12
- var index$1 = require('../../../hooks/use-namespace/index.js');
5
+ var runtime = require('../../../utils/vue/props/runtime.js');
6
+ var icon = require('../../../utils/vue/icon.js');
13
7
 
14
- const __default__ = vue.defineComponent({
15
- name: "ElLink"
16
- });
17
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
- ...__default__,
19
- props: link.linkProps,
20
- emits: link.linkEmits,
21
- setup(__props, { emit }) {
22
- const props = __props;
23
- const globalConfig = useGlobalConfig.useGlobalConfig("link");
24
- index.useDeprecated({
25
- scope: "el-link",
26
- from: "The underline option (boolean)",
27
- replacement: "'always' | 'hover' | 'never'",
28
- version: "3.0.0",
29
- ref: "https://element-plus.org/en-US/component/link.html#underline"
30
- }, vue.computed(() => types.isBoolean(props.underline)));
31
- const ns = index$1.useNamespace("link");
32
- const linkKls = vue.computed(() => {
33
- var _a, _b, _c;
34
- return [
35
- ns.b(),
36
- ns.m((_c = (_b = props.type) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.type) != null ? _c : "default"),
37
- ns.is("disabled", props.disabled),
38
- ns.is("underline", underline.value === "always"),
39
- ns.is("hover-underline", underline.value === "hover" && !props.disabled)
40
- ];
41
- });
42
- const underline = vue.computed(() => {
43
- var _a, _b, _c;
44
- if (types.isBoolean(props.underline)) {
45
- return props.underline ? "hover" : "never";
46
- } else
47
- return (_c = (_b = props.underline) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.underline) != null ? _c : "hover";
48
- });
49
- function handleClick(event) {
50
- if (!props.disabled)
51
- emit("click", event);
52
- }
53
- return (_ctx, _cache) => {
54
- return vue.openBlock(), vue.createElementBlock("a", {
55
- class: vue.normalizeClass(vue.unref(linkKls)),
56
- href: _ctx.disabled || !_ctx.href ? void 0 : _ctx.href,
57
- target: _ctx.disabled || !_ctx.href ? void 0 : _ctx.target,
58
- onClick: handleClick
59
- }, [
60
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
61
- default: vue.withCtx(() => [
62
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
63
- ]),
64
- _: 1
65
- })) : vue.createCommentVNode("v-if", true),
66
- _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
67
- key: 1,
68
- class: vue.normalizeClass(vue.unref(ns).e("inner"))
69
- }, [
70
- vue.renderSlot(_ctx.$slots, "default")
71
- ], 2)) : vue.createCommentVNode("v-if", true),
72
- _ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 2 }) : vue.createCommentVNode("v-if", true)
73
- ], 10, ["href", "target"]);
74
- };
8
+ const linkProps = runtime.buildProps({
9
+ type: {
10
+ type: String,
11
+ values: ["primary", "success", "warning", "info", "danger", "default"],
12
+ default: void 0
13
+ },
14
+ underline: {
15
+ type: [Boolean, String],
16
+ values: [true, false, "always", "never", "hover"],
17
+ default: void 0
18
+ },
19
+ disabled: Boolean,
20
+ href: { type: String, default: "" },
21
+ target: {
22
+ type: String,
23
+ default: "_self"
24
+ },
25
+ icon: {
26
+ type: icon.iconPropType
75
27
  }
76
28
  });
77
- var Link = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "link.vue"]]);
29
+ const linkEmits = {
30
+ click: (evt) => evt instanceof MouseEvent
31
+ };
78
32
 
79
- exports["default"] = Link;
33
+ exports.linkEmits = linkEmits;
34
+ exports.linkProps = linkProps;
80
35
  //# sourceMappingURL=link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.vue"],"sourcesContent":["<template>\n <a\n :class=\"linkKls\"\n :href=\"disabled || !href ? undefined : href\"\n :target=\"disabled || !href ? undefined : target\"\n @click=\"handleClick\"\n >\n <el-icon v-if=\"icon\"><component :is=\"icon\" /></el-icon>\n <span v-if=\"$slots.default\" :class=\"ns.e('inner')\">\n <slot />\n </span>\n\n <slot v-if=\"$slots.icon\" name=\"icon\" />\n </a>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { useDeprecated, useNamespace } from '@element-plus/hooks'\nimport { isBoolean } from '@element-plus/utils'\nimport { linkEmits, linkProps } from './link'\n\ndefineOptions({\n name: 'ElLink',\n})\nconst props = defineProps(linkProps)\nconst emit = defineEmits(linkEmits)\nconst globalConfig = useGlobalConfig('link')\n\nuseDeprecated(\n {\n scope: 'el-link',\n from: 'The underline option (boolean)',\n replacement: \"'always' | 'hover' | 'never'\",\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/link.html#underline',\n },\n computed(() => isBoolean(props.underline))\n)\n\nconst ns = useNamespace('link')\n\nconst linkKls = computed(() => [\n ns.b(),\n ns.m(props.type ?? globalConfig.value?.type ?? 'default'),\n ns.is('disabled', props.disabled),\n ns.is('underline', underline.value === 'always'),\n ns.is('hover-underline', underline.value === 'hover' && !props.disabled),\n])\n\n// Boolean compatibility\nconst underline = computed(() => {\n if (isBoolean(props.underline)) {\n return props.underline ? 'hover' : 'never'\n } else return props.underline ?? globalConfig.value?.underline ?? 'hover'\n})\n\nfunction handleClick(event: MouseEvent) {\n if (!props.disabled) emit('click', event)\n}\n</script>\n"],"names":["useGlobalConfig","useDeprecated","computed","isBoolean","useNamespace"],"mappings":";;;;;;;;;;;;;uCAwBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAGA,IAAM,MAAA,YAAA,GAAeA,gCAAgB,MAAM,CAAA,CAAA;AAE3C,IAAAC,mBAAA,CAAA;AAAA,MACE,KAAA,EAAA,SAAA;AAAA,MAAA,IACS,EAAA,gCAAA;AAAA,MAAA,WACD,EAAA,8BAAA;AAAA,MAAA,OACO,EAAA,OAAA;AAAA,MAAA,GACJ,EAAA,8DAAA;AAAA,KAAA,EAAAC,YACJ,CAAA,MAAAC,eAAA,CAAA,KAAA,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;AAAA,IACP,MAAA,EAAA,GAAAC,oBAAA,CAAA,MAAA,CAAA,CAAA;AAAA,IAAA,MACS,OAAA,GAAAF,YAAgB,CAAA,MAAA;AAAgB,MAC3C,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AAEA,MAAM,OAAA;AAEN,QAAM,EAAA,CAAA,CAAA,EAAA;AAAyB,UACxB,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,SAAA,CAAA;AAAA,UACA,CAAA,EAAA,CAAA,YAA2B,KAAA,CAAA,QAAA,CAAA;AAAwB,QACrD,EAAA,CAAA,EAAe,CAAA,WAAA,EAAA,SAAc,CAAA,KAAA,KAAA,QAAA,CAAA;AAAA,QAC7B,EAAA,CAAA,EAAgB,CAAA,iBAAA,EAAA,eAA4B,KAAA,OAAA,IAAA,CAAA,KAAA,CAAA,QAAA,CAAA;AAAA,OAC/C,CAAA;AAAuE,KACxE,CAAA,CAAA;AAGD,IAAM,MAAA,SAAA,GAAYA,aAAS,MAAM;AAC/B,MAAI,IAAA,EAAA,EAAA,EAAA,EAAA,EAAU,CAAM;AAClB,MAAO,IAAAC,eAAA,CAAA,eAA4B,CAAA,EAAA;AAAA,eACvB,KAAA,CAAA,SAAmB,GAAA,OAAA,GAAA,OAAA,CAAA;AAAiC,OACnE;AAED,QAAA,mBAAwC,KAAA,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,OAAA,CAAA;AACtC,KAAA,CAAA,CAAA;AAAwC,IAC1C,SAAA,WAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Link from './link.vue'\n\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: undefined,\n },\n /**\n * @description when underlines should appear\n */\n underline: {\n type: [Boolean, String],\n values: [true, false, 'always', 'never', 'hover'],\n default: undefined,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\nexport type LinkProps = ExtractPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link> & unknown\nexport interface LinkConfigContext {\n type?: string\n underline?: string | boolean\n}\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;AAC1E,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC3B,IAAI,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACrD,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
@@ -2,34 +2,79 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
6
- var icon = require('../../../utils/vue/icon.js');
5
+ var vue = require('vue');
6
+ var index$2 = require('../../icon/index.js');
7
+ var link = require('./link.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
+ var useGlobalConfig = require('../../config-provider/src/hooks/use-global-config.js');
10
+ var index = require('../../../hooks/use-deprecated/index.js');
11
+ var types = require('../../../utils/types.js');
12
+ var index$1 = require('../../../hooks/use-namespace/index.js');
7
13
 
8
- const linkProps = runtime.buildProps({
9
- type: {
10
- type: String,
11
- values: ["primary", "success", "warning", "info", "danger", "default"],
12
- default: void 0
13
- },
14
- underline: {
15
- type: [Boolean, String],
16
- values: [true, false, "always", "never", "hover"],
17
- default: void 0
18
- },
19
- disabled: Boolean,
20
- href: { type: String, default: "" },
21
- target: {
22
- type: String,
23
- default: "_self"
24
- },
25
- icon: {
26
- type: icon.iconPropType
14
+ const __default__ = vue.defineComponent({
15
+ name: "ElLink"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: link.linkProps,
20
+ emits: link.linkEmits,
21
+ setup(__props, { emit }) {
22
+ const props = __props;
23
+ const globalConfig = useGlobalConfig.useGlobalConfig("link");
24
+ index.useDeprecated({
25
+ scope: "el-link",
26
+ from: "The underline option (boolean)",
27
+ replacement: "'always' | 'hover' | 'never'",
28
+ version: "3.0.0",
29
+ ref: "https://element-plus.org/en-US/component/link.html#underline"
30
+ }, vue.computed(() => types.isBoolean(props.underline)));
31
+ const ns = index$1.useNamespace("link");
32
+ const linkKls = vue.computed(() => {
33
+ var _a, _b, _c;
34
+ return [
35
+ ns.b(),
36
+ ns.m((_c = (_b = props.type) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.type) != null ? _c : "default"),
37
+ ns.is("disabled", props.disabled),
38
+ ns.is("underline", underline.value === "always"),
39
+ ns.is("hover-underline", underline.value === "hover" && !props.disabled)
40
+ ];
41
+ });
42
+ const underline = vue.computed(() => {
43
+ var _a, _b, _c;
44
+ if (types.isBoolean(props.underline)) {
45
+ return props.underline ? "hover" : "never";
46
+ } else
47
+ return (_c = (_b = props.underline) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.underline) != null ? _c : "hover";
48
+ });
49
+ function handleClick(event) {
50
+ if (!props.disabled)
51
+ emit("click", event);
52
+ }
53
+ return (_ctx, _cache) => {
54
+ return vue.openBlock(), vue.createElementBlock("a", {
55
+ class: vue.normalizeClass(vue.unref(linkKls)),
56
+ href: _ctx.disabled || !_ctx.href ? void 0 : _ctx.href,
57
+ target: _ctx.disabled || !_ctx.href ? void 0 : _ctx.target,
58
+ onClick: handleClick
59
+ }, [
60
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
61
+ default: vue.withCtx(() => [
62
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
63
+ ]),
64
+ _: 1
65
+ })) : vue.createCommentVNode("v-if", true),
66
+ _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
67
+ key: 1,
68
+ class: vue.normalizeClass(vue.unref(ns).e("inner"))
69
+ }, [
70
+ vue.renderSlot(_ctx.$slots, "default")
71
+ ], 2)) : vue.createCommentVNode("v-if", true),
72
+ _ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 2 }) : vue.createCommentVNode("v-if", true)
73
+ ], 10, ["href", "target"]);
74
+ };
27
75
  }
28
76
  });
29
- const linkEmits = {
30
- click: (evt) => evt instanceof MouseEvent
31
- };
77
+ var Link = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "link.vue"]]);
32
78
 
33
- exports.linkEmits = linkEmits;
34
- exports.linkProps = linkProps;
79
+ exports["default"] = Link;
35
80
  //# sourceMappingURL=link2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link2.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Link from './link.vue'\n\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: undefined,\n },\n /**\n * @description when underlines should appear\n */\n underline: {\n type: [Boolean, String],\n values: [true, false, 'always', 'never', 'hover'],\n default: undefined,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\nexport type LinkProps = ExtractPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link> & unknown\nexport interface LinkConfigContext {\n type?: string\n underline?: string | boolean\n}\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;AAC1E,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC3B,IAAI,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACrD,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
1
+ {"version":3,"file":"link2.js","sources":["../../../../../../packages/components/link/src/link.vue"],"sourcesContent":["<template>\n <a\n :class=\"linkKls\"\n :href=\"disabled || !href ? undefined : href\"\n :target=\"disabled || !href ? undefined : target\"\n @click=\"handleClick\"\n >\n <el-icon v-if=\"icon\"><component :is=\"icon\" /></el-icon>\n <span v-if=\"$slots.default\" :class=\"ns.e('inner')\">\n <slot />\n </span>\n\n <slot v-if=\"$slots.icon\" name=\"icon\" />\n </a>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { useDeprecated, useNamespace } from '@element-plus/hooks'\nimport { isBoolean } from '@element-plus/utils'\nimport { linkEmits, linkProps } from './link'\n\ndefineOptions({\n name: 'ElLink',\n})\nconst props = defineProps(linkProps)\nconst emit = defineEmits(linkEmits)\nconst globalConfig = useGlobalConfig('link')\n\nuseDeprecated(\n {\n scope: 'el-link',\n from: 'The underline option (boolean)',\n replacement: \"'always' | 'hover' | 'never'\",\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/link.html#underline',\n },\n computed(() => isBoolean(props.underline))\n)\n\nconst ns = useNamespace('link')\n\nconst linkKls = computed(() => [\n ns.b(),\n ns.m(props.type ?? globalConfig.value?.type ?? 'default'),\n ns.is('disabled', props.disabled),\n ns.is('underline', underline.value === 'always'),\n ns.is('hover-underline', underline.value === 'hover' && !props.disabled),\n])\n\n// Boolean compatibility\nconst underline = computed(() => {\n if (isBoolean(props.underline)) {\n return props.underline ? 'hover' : 'never'\n } else return props.underline ?? globalConfig.value?.underline ?? 'hover'\n})\n\nfunction handleClick(event: MouseEvent) {\n if (!props.disabled) emit('click', event)\n}\n</script>\n"],"names":["useGlobalConfig","useDeprecated","computed","isBoolean","useNamespace"],"mappings":";;;;;;;;;;;;;uCAwBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAGA,IAAM,MAAA,YAAA,GAAeA,gCAAgB,MAAM,CAAA,CAAA;AAE3C,IAAAC,mBAAA,CAAA;AAAA,MACE,KAAA,EAAA,SAAA;AAAA,MAAA,IACS,EAAA,gCAAA;AAAA,MAAA,WACD,EAAA,8BAAA;AAAA,MAAA,OACO,EAAA,OAAA;AAAA,MAAA,GACJ,EAAA,8DAAA;AAAA,KAAA,EAAAC,YACJ,CAAA,MAAAC,eAAA,CAAA,KAAA,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;AAAA,IACP,MAAA,EAAA,GAAAC,oBAAA,CAAA,MAAA,CAAA,CAAA;AAAA,IAAA,MACS,OAAA,GAAAF,YAAgB,CAAA,MAAA;AAAgB,MAC3C,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AAEA,MAAM,OAAA;AAEN,QAAM,EAAA,CAAA,CAAA,EAAA;AAAyB,UACxB,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,SAAA,CAAA;AAAA,UACA,CAAA,EAAA,CAAA,YAA2B,KAAA,CAAA,QAAA,CAAA;AAAwB,QACrD,EAAA,CAAA,EAAe,CAAA,WAAA,EAAA,SAAc,CAAA,KAAA,KAAA,QAAA,CAAA;AAAA,QAC7B,EAAA,CAAA,EAAgB,CAAA,iBAAA,EAAA,eAA4B,KAAA,OAAA,IAAA,CAAA,KAAA,CAAA,QAAA,CAAA;AAAA,OAC/C,CAAA;AAAuE,KACxE,CAAA,CAAA;AAGD,IAAM,MAAA,SAAA,GAAYA,aAAS,MAAM;AAC/B,MAAI,IAAA,EAAA,EAAA,EAAA,EAAA,EAAU,CAAM;AAClB,MAAO,IAAAC,eAAA,CAAA,eAA4B,CAAA,EAAA;AAAA,eACvB,KAAA,CAAA,SAAmB,GAAA,OAAA,GAAA,OAAA,CAAA;AAAiC,OACnE;AAED,QAAA,mBAAwC,KAAA,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,OAAA,CAAA;AACtC,KAAA,CAAA,CAAA;AAAwC,IAC1C,SAAA,WAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,66 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$2 = require('../../../input/index.js');
7
- var usePagination = require('../usePagination.js');
8
- var jumper = require('./jumper2.js');
9
- var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
10
- var index = require('../../../../hooks/use-locale/index.js');
11
- var index$1 = require('../../../../hooks/use-namespace/index.js');
5
+ var runtime = require('../../../../utils/vue/props/runtime.js');
6
+ var size = require('../../../../constants/size.js');
12
7
 
13
- const __default__ = vue.defineComponent({
14
- name: "ElPaginationJumper"
15
- });
16
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
- ...__default__,
18
- props: jumper.paginationJumperProps,
19
- setup(__props) {
20
- const { t } = index.useLocale();
21
- const ns = index$1.useNamespace("pagination");
22
- const { pageCount, disabled, currentPage, changeEvent } = usePagination.usePagination();
23
- const userInput = vue.ref();
24
- const innerValue = vue.computed(() => {
25
- var _a;
26
- return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
27
- });
28
- function handleInput(val) {
29
- userInput.value = val ? +val : "";
30
- }
31
- function handleChange(val) {
32
- val = Math.trunc(+val);
33
- changeEvent == null ? void 0 : changeEvent(val);
34
- userInput.value = void 0;
35
- }
36
- return (_ctx, _cache) => {
37
- return vue.openBlock(), vue.createElementBlock("span", {
38
- class: vue.normalizeClass(vue.unref(ns).e("jump")),
39
- disabled: vue.unref(disabled)
40
- }, [
41
- vue.createElementVNode("span", {
42
- class: vue.normalizeClass([vue.unref(ns).e("goto")])
43
- }, vue.toDisplayString(vue.unref(t)("el.pagination.goto")), 3),
44
- vue.createVNode(vue.unref(index$2.ElInput), {
45
- size: _ctx.size,
46
- class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
47
- min: 1,
48
- max: vue.unref(pageCount),
49
- disabled: vue.unref(disabled),
50
- "model-value": vue.unref(innerValue),
51
- "validate-event": false,
52
- "aria-label": vue.unref(t)("el.pagination.page"),
53
- type: "number",
54
- "onUpdate:modelValue": handleInput,
55
- onChange: handleChange
56
- }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
57
- vue.createElementVNode("span", {
58
- class: vue.normalizeClass([vue.unref(ns).e("classifier")])
59
- }, vue.toDisplayString(vue.unref(t)("el.pagination.pageClassifier")), 3)
60
- ], 10, ["disabled"]);
61
- };
8
+ const paginationJumperProps = runtime.buildProps({
9
+ size: {
10
+ type: String,
11
+ values: size.componentSizes
62
12
  }
63
13
  });
64
- var Jumper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "jumper.vue"]]);
65
14
 
66
- exports["default"] = Jumper;
15
+ exports.paginationJumperProps = paginationJumperProps;
67
16
  //# sourceMappingURL=jumper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jumper.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('jump')\" :disabled=\"disabled\">\n <span :class=\"[ns.e('goto')]\">{{ t('el.pagination.goto') }}</span>\n <el-input\n :size=\"size\"\n :class=\"[ns.e('editor'), ns.is('in-pagination')]\"\n :min=\"1\"\n :max=\"pageCount\"\n :disabled=\"disabled\"\n :model-value=\"innerValue\"\n :validate-event=\"false\"\n :aria-label=\"t('el.pagination.page')\"\n type=\"number\"\n @update:model-value=\"handleInput\"\n @change=\"handleChange\"\n />\n <span :class=\"[ns.e('classifier')]\">{{\n t('el.pagination.pageClassifier')\n }}</span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport { usePagination } from '../usePagination'\nimport { paginationJumperProps } from './jumper'\n\ndefineOptions({\n name: 'ElPaginationJumper',\n})\n\ndefineProps(paginationJumperProps)\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { pageCount, disabled, currentPage, changeEvent } = usePagination()\nconst userInput = ref<number | string>()\nconst innerValue = computed(() => userInput.value ?? currentPage?.value)\n\nfunction handleInput(val: number | string) {\n userInput.value = val ? +val : ''\n}\n\nfunction handleChange(val: number | string) {\n val = Math.trunc(+val)\n changeEvent?.(val)\n userInput.value = undefined\n}\n</script>\n"],"names":["useLocale","useNamespace","usePagination","ref","computed"],"mappings":";;;;;;;;;;;;uCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,oBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAGA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,WAAa,EAAA,WAAA,KAAgBC,2BAAc,EAAA,CAAA;AACxE,IAAA,MAAM,YAAYC,OAAqB,EAAA,CAAA;AACvC,IAAA,MAAM,aAAaC,YAAS,CAAA,MAAM;AAElC,MAAA,IAAA,EAAA,CAAS;AACP,MAAU,OAAA,CAAA,EAAA,GAAA,SAAc,CAAA,KAAO,KAAA,IAAA,GAAA,EAAA,GAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,KAAA,CAAA;AAAA,KACjC,CAAA,CAAA;AAEA,IAAA,SAAS,eAAmC,EAAA;AAC1C,MAAM,SAAA,CAAA,KAAW,GAAC,GAAG,GAAA,CAAA,GAAA,GAAA,EAAA,CAAA;AACrB,KAAA;AACA,IAAA,SAAA,YAAkB,CAAA,GAAA,EAAA;AAAA,MACpB,GAAA,GAAA,IAAA,CAAA,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"jumper.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;AAEY,MAAC,qBAAqB,GAAGA,kBAAU,CAAC;AAChD,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,mBAAc;AAC1B,GAAG;AACH,CAAC;;;;"}
@@ -2,15 +2,66 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../../utils/vue/props/runtime.js');
6
- var size = require('../../../../constants/size.js');
5
+ var vue = require('vue');
6
+ var index$2 = require('../../../input/index.js');
7
+ var usePagination = require('../usePagination.js');
8
+ var jumper = require('./jumper.js');
9
+ var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../../hooks/use-locale/index.js');
11
+ var index$1 = require('../../../../hooks/use-namespace/index.js');
7
12
 
8
- const paginationJumperProps = runtime.buildProps({
9
- size: {
10
- type: String,
11
- values: size.componentSizes
13
+ const __default__ = vue.defineComponent({
14
+ name: "ElPaginationJumper"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
+ ...__default__,
18
+ props: jumper.paginationJumperProps,
19
+ setup(__props) {
20
+ const { t } = index.useLocale();
21
+ const ns = index$1.useNamespace("pagination");
22
+ const { pageCount, disabled, currentPage, changeEvent } = usePagination.usePagination();
23
+ const userInput = vue.ref();
24
+ const innerValue = vue.computed(() => {
25
+ var _a;
26
+ return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
27
+ });
28
+ function handleInput(val) {
29
+ userInput.value = val ? +val : "";
30
+ }
31
+ function handleChange(val) {
32
+ val = Math.trunc(+val);
33
+ changeEvent == null ? void 0 : changeEvent(val);
34
+ userInput.value = void 0;
35
+ }
36
+ return (_ctx, _cache) => {
37
+ return vue.openBlock(), vue.createElementBlock("span", {
38
+ class: vue.normalizeClass(vue.unref(ns).e("jump")),
39
+ disabled: vue.unref(disabled)
40
+ }, [
41
+ vue.createElementVNode("span", {
42
+ class: vue.normalizeClass([vue.unref(ns).e("goto")])
43
+ }, vue.toDisplayString(vue.unref(t)("el.pagination.goto")), 3),
44
+ vue.createVNode(vue.unref(index$2.ElInput), {
45
+ size: _ctx.size,
46
+ class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
47
+ min: 1,
48
+ max: vue.unref(pageCount),
49
+ disabled: vue.unref(disabled),
50
+ "model-value": vue.unref(innerValue),
51
+ "validate-event": false,
52
+ "aria-label": vue.unref(t)("el.pagination.page"),
53
+ type: "number",
54
+ "onUpdate:modelValue": handleInput,
55
+ onChange: handleChange
56
+ }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
57
+ vue.createElementVNode("span", {
58
+ class: vue.normalizeClass([vue.unref(ns).e("classifier")])
59
+ }, vue.toDisplayString(vue.unref(t)("el.pagination.pageClassifier")), 3)
60
+ ], 10, ["disabled"]);
61
+ };
12
62
  }
13
63
  });
64
+ var Jumper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "jumper.vue"]]);
14
65
 
15
- exports.paginationJumperProps = paginationJumperProps;
66
+ exports["default"] = Jumper;
16
67
  //# sourceMappingURL=jumper2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jumper2.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;AAEY,MAAC,qBAAqB,GAAGA,kBAAU,CAAC;AAChD,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,mBAAc;AAC1B,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"jumper2.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('jump')\" :disabled=\"disabled\">\n <span :class=\"[ns.e('goto')]\">{{ t('el.pagination.goto') }}</span>\n <el-input\n :size=\"size\"\n :class=\"[ns.e('editor'), ns.is('in-pagination')]\"\n :min=\"1\"\n :max=\"pageCount\"\n :disabled=\"disabled\"\n :model-value=\"innerValue\"\n :validate-event=\"false\"\n :aria-label=\"t('el.pagination.page')\"\n type=\"number\"\n @update:model-value=\"handleInput\"\n @change=\"handleChange\"\n />\n <span :class=\"[ns.e('classifier')]\">{{\n t('el.pagination.pageClassifier')\n }}</span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport { usePagination } from '../usePagination'\nimport { paginationJumperProps } from './jumper'\n\ndefineOptions({\n name: 'ElPaginationJumper',\n})\n\ndefineProps(paginationJumperProps)\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { pageCount, disabled, currentPage, changeEvent } = usePagination()\nconst userInput = ref<number | string>()\nconst innerValue = computed(() => userInput.value ?? currentPage?.value)\n\nfunction handleInput(val: number | string) {\n userInput.value = val ? +val : ''\n}\n\nfunction handleChange(val: number | string) {\n val = Math.trunc(+val)\n changeEvent?.(val)\n userInput.value = undefined\n}\n</script>\n"],"names":["useLocale","useNamespace","usePagination","ref","computed"],"mappings":";;;;;;;;;;;;uCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,oBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAGA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,WAAa,EAAA,WAAA,KAAgBC,2BAAc,EAAA,CAAA;AACxE,IAAA,MAAM,YAAYC,OAAqB,EAAA,CAAA;AACvC,IAAA,MAAM,aAAaC,YAAS,CAAA,MAAM;AAElC,MAAA,IAAA,EAAA,CAAS;AACP,MAAU,OAAA,CAAA,EAAA,GAAA,SAAc,CAAA,KAAO,KAAA,IAAA,GAAA,EAAA,GAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,KAAA,CAAA;AAAA,KACjC,CAAA,CAAA;AAEA,IAAA,SAAS,eAAmC,EAAA;AAC1C,MAAM,SAAA,CAAA,KAAW,GAAC,GAAG,GAAA,CAAA,GAAA,GAAA,EAAA,CAAA;AACrB,KAAA;AACA,IAAA,SAAA,YAAkB,CAAA,GAAA,EAAA;AAAA,MACpB,GAAA,GAAA,IAAA,CAAA,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,26 +2,43 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../../utils/vue/props/runtime.js');
6
- var icon = require('../../../../utils/vue/icon.js');
5
+ var vue = require('vue');
6
+ var index$1 = require('../../../icon/index.js');
7
+ var next = require('./next2.js');
8
+ var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
9
+ var index = require('../../../../hooks/use-locale/index.js');
7
10
 
8
- const paginationNextProps = runtime.buildProps({
9
- disabled: Boolean,
10
- currentPage: {
11
- type: Number,
12
- default: 1
13
- },
14
- pageCount: {
15
- type: Number,
16
- default: 50
17
- },
18
- nextText: {
19
- type: String
20
- },
21
- nextIcon: {
22
- type: icon.iconPropType
11
+ const __default__ = vue.defineComponent({
12
+ name: "ElPaginationNext"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ ...__default__,
16
+ props: next.paginationNextProps,
17
+ emits: ["click"],
18
+ setup(__props) {
19
+ const props = __props;
20
+ const { t } = index.useLocale();
21
+ const internalDisabled = vue.computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
22
+ return (_ctx, _cache) => {
23
+ return vue.openBlock(), vue.createElementBlock("button", {
24
+ type: "button",
25
+ class: "btn-next",
26
+ disabled: vue.unref(internalDisabled),
27
+ "aria-label": _ctx.nextText || vue.unref(t)("el.pagination.next"),
28
+ "aria-disabled": vue.unref(internalDisabled),
29
+ onClick: ($event) => _ctx.$emit("click", $event)
30
+ }, [
31
+ _ctx.nextText ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.nextText), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
32
+ default: vue.withCtx(() => [
33
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.nextIcon)))
34
+ ]),
35
+ _: 1
36
+ }))
37
+ ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
38
+ };
23
39
  }
24
40
  });
41
+ var Next = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "next.vue"]]);
25
42
 
26
- exports.paginationNextProps = paginationNextProps;
43
+ exports["default"] = Next;
27
44
  //# sourceMappingURL=next.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sources":["../../../../../../../packages/components/pagination/src/components/next.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"next.js","sources":["../../../../../../../packages/components/pagination/src/components/next.vue"],"sourcesContent":["<template>\n <button\n type=\"button\"\n class=\"btn-next\"\n :disabled=\"internalDisabled\"\n :aria-label=\"nextText || t('el.pagination.next')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"nextText\">{{ nextText }}</span>\n <el-icon v-else>\n <component :is=\"nextIcon\" />\n </el-icon>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { paginationNextProps } from './next'\n\ndefineOptions({\n name: 'ElPaginationNext',\n})\n\nconst props = defineProps(paginationNextProps)\n\ndefineEmits(['click'])\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () =>\n props.disabled ||\n props.currentPage === props.pageCount ||\n props.pageCount === 0\n)\n</script>\n"],"names":["useLocale","computed","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAExB,IAAA,MAAM,gBAAmB,GAAAC,YAAA,CAAA,MAAA,KAAA,CAAA,QAAA,IAAA,KAAA,CAAA,WAAA,KAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,SAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACvB,OAAA,CACE,MAAM,MACN,KAAA;AACoB,MACxB,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,43 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../../icon/index.js');
7
- var next = require('./next.js');
8
- var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
9
- var index = require('../../../../hooks/use-locale/index.js');
5
+ var runtime = require('../../../../utils/vue/props/runtime.js');
6
+ var icon = require('../../../../utils/vue/icon.js');
10
7
 
11
- const __default__ = vue.defineComponent({
12
- name: "ElPaginationNext"
13
- });
14
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
- ...__default__,
16
- props: next.paginationNextProps,
17
- emits: ["click"],
18
- setup(__props) {
19
- const props = __props;
20
- const { t } = index.useLocale();
21
- const internalDisabled = vue.computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
22
- return (_ctx, _cache) => {
23
- return vue.openBlock(), vue.createElementBlock("button", {
24
- type: "button",
25
- class: "btn-next",
26
- disabled: vue.unref(internalDisabled),
27
- "aria-label": _ctx.nextText || vue.unref(t)("el.pagination.next"),
28
- "aria-disabled": vue.unref(internalDisabled),
29
- onClick: ($event) => _ctx.$emit("click", $event)
30
- }, [
31
- _ctx.nextText ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.nextText), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
32
- default: vue.withCtx(() => [
33
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.nextIcon)))
34
- ]),
35
- _: 1
36
- }))
37
- ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
38
- };
8
+ const paginationNextProps = runtime.buildProps({
9
+ disabled: Boolean,
10
+ currentPage: {
11
+ type: Number,
12
+ default: 1
13
+ },
14
+ pageCount: {
15
+ type: Number,
16
+ default: 50
17
+ },
18
+ nextText: {
19
+ type: String
20
+ },
21
+ nextIcon: {
22
+ type: icon.iconPropType
39
23
  }
40
24
  });
41
- var Next = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "next.vue"]]);
42
25
 
43
- exports["default"] = Next;
26
+ exports.paginationNextProps = paginationNextProps;
44
27
  //# sourceMappingURL=next2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next2.js","sources":["../../../../../../../packages/components/pagination/src/components/next.vue"],"sourcesContent":["<template>\n <button\n type=\"button\"\n class=\"btn-next\"\n :disabled=\"internalDisabled\"\n :aria-label=\"nextText || t('el.pagination.next')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"nextText\">{{ nextText }}</span>\n <el-icon v-else>\n <component :is=\"nextIcon\" />\n </el-icon>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { paginationNextProps } from './next'\n\ndefineOptions({\n name: 'ElPaginationNext',\n})\n\nconst props = defineProps(paginationNextProps)\n\ndefineEmits(['click'])\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () =>\n props.disabled ||\n props.currentPage === props.pageCount ||\n props.pageCount === 0\n)\n</script>\n"],"names":["useLocale","computed","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAExB,IAAA,MAAM,gBAAmB,GAAAC,YAAA,CAAA,MAAA,KAAA,CAAA,QAAA,IAAA,KAAA,CAAA,WAAA,KAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,SAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACvB,OAAA,CACE,MAAM,MACN,KAAA;AACoB,MACxB,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"next2.js","sources":["../../../../../../../packages/components/pagination/src/components/next.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC;;;;"}
@@ -6,9 +6,9 @@ var vue = require('vue');
6
6
  var iconsVue = require('@element-plus/icons-vue');
7
7
  var constants = require('./constants.js');
8
8
  var prev = require('./components/prev2.js');
9
- var next = require('./components/next2.js');
9
+ var next = require('./components/next.js');
10
10
  var sizes = require('./components/sizes2.js');
11
- var jumper = require('./components/jumper.js');
11
+ var jumper = require('./components/jumper2.js');
12
12
  var total = require('./components/total2.js');
13
13
  var pager = require('./components/pager2.js');
14
14
  var index = require('../../../hooks/use-size/index.js');