@element-plus/nightly 0.0.20251229 → 0.0.20251231

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 (478) hide show
  1. package/dist/index.full.js +29 -8
  2. package/dist/index.full.min.js +15 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +29 -8
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/affix/src/affix2.mjs +1 -1
  276. package/es/components/avatar/index.mjs +2 -2
  277. package/es/components/avatar/src/avatar.mjs +30 -74
  278. package/es/components/avatar/src/avatar.mjs.map +1 -1
  279. package/es/components/avatar/src/avatar2.mjs +74 -30
  280. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  281. package/es/components/breadcrumb/index.mjs +2 -2
  282. package/es/components/breadcrumb/src/breadcrumb.mjs +37 -9
  283. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  284. package/es/components/breadcrumb/src/breadcrumb2.mjs +9 -37
  285. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  286. package/es/components/cascader/src/cascader.vue.d.ts +1 -148
  287. package/es/components/cascader/src/cascader2.mjs +23 -2
  288. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  289. package/es/components/col/index.mjs +2 -2
  290. package/es/components/col/src/col.mjs +65 -42
  291. package/es/components/col/src/col.mjs.map +1 -1
  292. package/es/components/col/src/col2.mjs +42 -65
  293. package/es/components/col/src/col2.mjs.map +1 -1
  294. package/es/components/collapse/index.mjs +2 -2
  295. package/es/components/collapse/src/collapse-item.mjs +118 -17
  296. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  297. package/es/components/collapse/src/collapse-item2.mjs +17 -118
  298. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  299. package/es/components/countdown/index.mjs +2 -2
  300. package/es/components/countdown/src/countdown.mjs +83 -20
  301. package/es/components/countdown/src/countdown.mjs.map +1 -1
  302. package/es/components/countdown/src/countdown2.mjs +20 -83
  303. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  304. package/es/components/dialog/src/dialog.mjs +1 -1
  305. package/es/components/dialog/src/use-dialog.mjs +1 -0
  306. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  307. package/es/components/empty/index.mjs +2 -2
  308. package/es/components/empty/src/empty.mjs +80 -10
  309. package/es/components/empty/src/empty.mjs.map +1 -1
  310. package/es/components/empty/src/empty2.mjs +10 -80
  311. package/es/components/empty/src/empty2.mjs.map +1 -1
  312. package/es/components/form/index.mjs +4 -4
  313. package/es/components/form/src/form-item.mjs +45 -355
  314. package/es/components/form/src/form-item.mjs.map +1 -1
  315. package/es/components/form/src/form-item2.mjs +355 -45
  316. package/es/components/form/src/form-item2.mjs.map +1 -1
  317. package/es/components/form/src/form.mjs +54 -174
  318. package/es/components/form/src/form.mjs.map +1 -1
  319. package/es/components/form/src/form2.mjs +174 -54
  320. package/es/components/form/src/form2.mjs.map +1 -1
  321. package/es/components/image/index.mjs +2 -2
  322. package/es/components/image/src/image.mjs +279 -68
  323. package/es/components/image/src/image.mjs.map +1 -1
  324. package/es/components/image/src/image2.mjs +68 -279
  325. package/es/components/image/src/image2.mjs.map +1 -1
  326. package/es/components/index.mjs +13 -13
  327. package/es/components/mention/src/mention-dropdown.mjs +205 -14
  328. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  329. package/es/components/mention/src/mention-dropdown2.mjs +14 -205
  330. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  331. package/es/components/mention/src/mention2.mjs +1 -1
  332. package/es/components/message/index.mjs +1 -1
  333. package/es/components/message/src/message.mjs +107 -190
  334. package/es/components/message/src/message.mjs.map +1 -1
  335. package/es/components/message/src/message2.mjs +190 -107
  336. package/es/components/message/src/message2.mjs.map +1 -1
  337. package/es/components/message/src/method.mjs +2 -2
  338. package/es/components/pagination/src/components/next.mjs +17 -43
  339. package/es/components/pagination/src/components/next.mjs.map +1 -1
  340. package/es/components/pagination/src/components/next2.mjs +43 -17
  341. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  342. package/es/components/pagination/src/components/pager.mjs +15 -229
  343. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  344. package/es/components/pagination/src/components/pager2.mjs +229 -15
  345. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  346. package/es/components/pagination/src/pagination.mjs +2 -2
  347. package/es/components/progress/index.mjs +2 -2
  348. package/es/components/progress/src/progress.mjs +256 -52
  349. package/es/components/progress/src/progress.mjs.map +1 -1
  350. package/es/components/progress/src/progress2.mjs +52 -256
  351. package/es/components/progress/src/progress2.mjs.map +1 -1
  352. package/es/components/skeleton/index.mjs +2 -2
  353. package/es/components/skeleton/src/skeleton.mjs +17 -67
  354. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  355. package/es/components/skeleton/src/skeleton2.mjs +67 -17
  356. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  357. package/es/components/table/src/table/key-render-helper.mjs +5 -6
  358. package/es/components/table/src/table/key-render-helper.mjs.map +1 -1
  359. package/es/components/tabs/index.mjs +1 -1
  360. package/es/components/tabs/src/tab-bar.mjs +102 -10
  361. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  362. package/es/components/tabs/src/tab-bar2.mjs +10 -102
  363. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  364. package/es/components/tabs/src/tab-nav.mjs +1 -1
  365. package/es/components/teleport/index.mjs +2 -2
  366. package/es/components/teleport/src/teleport.mjs +8 -18
  367. package/es/components/teleport/src/teleport.mjs.map +1 -1
  368. package/es/components/teleport/src/teleport2.mjs +18 -8
  369. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  370. package/es/components/tooltip/src/content.mjs +1 -1
  371. package/es/components/tour/src/tour.mjs +1 -1
  372. package/es/index.mjs +13 -13
  373. package/es/version.d.ts +1 -1
  374. package/es/version.mjs +1 -1
  375. package/es/version.mjs.map +1 -1
  376. package/lib/components/affix/src/affix2.js +1 -1
  377. package/lib/components/avatar/index.js +2 -2
  378. package/lib/components/avatar/src/avatar.js +31 -74
  379. package/lib/components/avatar/src/avatar.js.map +1 -1
  380. package/lib/components/avatar/src/avatar2.js +74 -31
  381. package/lib/components/avatar/src/avatar2.js.map +1 -1
  382. package/lib/components/breadcrumb/index.js +2 -2
  383. package/lib/components/breadcrumb/src/breadcrumb.js +37 -9
  384. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  385. package/lib/components/breadcrumb/src/breadcrumb2.js +9 -37
  386. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  387. package/lib/components/cascader/src/cascader.vue.d.ts +1 -148
  388. package/lib/components/cascader/src/cascader2.js +22 -1
  389. package/lib/components/cascader/src/cascader2.js.map +1 -1
  390. package/lib/components/col/index.js +2 -2
  391. package/lib/components/col/src/col.js +65 -42
  392. package/lib/components/col/src/col.js.map +1 -1
  393. package/lib/components/col/src/col2.js +42 -65
  394. package/lib/components/col/src/col2.js.map +1 -1
  395. package/lib/components/collapse/index.js +2 -2
  396. package/lib/components/collapse/src/collapse-item.js +118 -17
  397. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  398. package/lib/components/collapse/src/collapse-item2.js +17 -118
  399. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  400. package/lib/components/countdown/index.js +2 -2
  401. package/lib/components/countdown/src/countdown.js +83 -21
  402. package/lib/components/countdown/src/countdown.js.map +1 -1
  403. package/lib/components/countdown/src/countdown2.js +21 -83
  404. package/lib/components/countdown/src/countdown2.js.map +1 -1
  405. package/lib/components/dialog/src/dialog.js +1 -1
  406. package/lib/components/dialog/src/use-dialog.js +1 -0
  407. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  408. package/lib/components/empty/index.js +2 -2
  409. package/lib/components/empty/src/empty.js +80 -10
  410. package/lib/components/empty/src/empty.js.map +1 -1
  411. package/lib/components/empty/src/empty2.js +10 -80
  412. package/lib/components/empty/src/empty2.js.map +1 -1
  413. package/lib/components/form/index.js +4 -4
  414. package/lib/components/form/src/form-item.js +46 -359
  415. package/lib/components/form/src/form-item.js.map +1 -1
  416. package/lib/components/form/src/form-item2.js +359 -46
  417. package/lib/components/form/src/form-item2.js.map +1 -1
  418. package/lib/components/form/src/form.js +55 -173
  419. package/lib/components/form/src/form.js.map +1 -1
  420. package/lib/components/form/src/form2.js +173 -55
  421. package/lib/components/form/src/form2.js.map +1 -1
  422. package/lib/components/image/index.js +2 -2
  423. package/lib/components/image/src/image.js +278 -68
  424. package/lib/components/image/src/image.js.map +1 -1
  425. package/lib/components/image/src/image2.js +68 -278
  426. package/lib/components/image/src/image2.js.map +1 -1
  427. package/lib/components/index.js +13 -13
  428. package/lib/components/mention/src/mention-dropdown.js +205 -15
  429. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  430. package/lib/components/mention/src/mention-dropdown2.js +15 -205
  431. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  432. package/lib/components/mention/src/mention2.js +1 -1
  433. package/lib/components/message/index.js +1 -1
  434. package/lib/components/message/src/message.js +111 -189
  435. package/lib/components/message/src/message.js.map +1 -1
  436. package/lib/components/message/src/message2.js +189 -111
  437. package/lib/components/message/src/message2.js.map +1 -1
  438. package/lib/components/message/src/method.js +2 -2
  439. package/lib/components/pagination/src/components/next.js +17 -43
  440. package/lib/components/pagination/src/components/next.js.map +1 -1
  441. package/lib/components/pagination/src/components/next2.js +43 -17
  442. package/lib/components/pagination/src/components/next2.js.map +1 -1
  443. package/lib/components/pagination/src/components/pager.js +15 -229
  444. package/lib/components/pagination/src/components/pager.js.map +1 -1
  445. package/lib/components/pagination/src/components/pager2.js +229 -15
  446. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  447. package/lib/components/pagination/src/pagination.js +2 -2
  448. package/lib/components/progress/index.js +2 -2
  449. package/lib/components/progress/src/progress.js +256 -52
  450. package/lib/components/progress/src/progress.js.map +1 -1
  451. package/lib/components/progress/src/progress2.js +52 -256
  452. package/lib/components/progress/src/progress2.js.map +1 -1
  453. package/lib/components/skeleton/index.js +2 -2
  454. package/lib/components/skeleton/src/skeleton.js +17 -67
  455. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  456. package/lib/components/skeleton/src/skeleton2.js +67 -17
  457. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  458. package/lib/components/table/src/table/key-render-helper.js +4 -5
  459. package/lib/components/table/src/table/key-render-helper.js.map +1 -1
  460. package/lib/components/tabs/index.js +1 -1
  461. package/lib/components/tabs/src/tab-bar.js +102 -10
  462. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  463. package/lib/components/tabs/src/tab-bar2.js +10 -102
  464. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  465. package/lib/components/tabs/src/tab-nav.js +1 -1
  466. package/lib/components/teleport/index.js +2 -2
  467. package/lib/components/teleport/src/teleport.js +8 -18
  468. package/lib/components/teleport/src/teleport.js.map +1 -1
  469. package/lib/components/teleport/src/teleport2.js +18 -8
  470. package/lib/components/teleport/src/teleport2.js.map +1 -1
  471. package/lib/components/tooltip/src/content.js +1 -1
  472. package/lib/components/tour/src/tour.js +1 -1
  473. package/lib/index.js +13 -13
  474. package/lib/version.d.ts +1 -1
  475. package/lib/version.js +1 -1
  476. package/lib/version.js.map +1 -1
  477. package/package.json +2 -2
  478. package/web-types.json +1 -1
@@ -1,20 +1,234 @@
1
- import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, unref, withKeys, createCommentVNode, createBlock, Fragment, renderList, toDisplayString } from 'vue';
2
+ import { DArrowLeft, MoreFilled, DArrowRight } from '@element-plus/icons-vue';
3
+ import { paginationPagerProps } from './pager.mjs';
4
+ import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { CHANGE_EVENT } from '../../../../constants/event.mjs';
6
+ import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
7
+ import { useLocale } from '../../../../hooks/use-locale/index.mjs';
2
8
 
3
- const paginationPagerProps = buildProps({
4
- currentPage: {
5
- type: Number,
6
- default: 1
9
+ const _hoisted_1 = ["aria-current", "aria-label", "tabindex"];
10
+ const _hoisted_2 = ["tabindex", "aria-label"];
11
+ const _hoisted_3 = ["aria-current", "aria-label", "tabindex"];
12
+ const _hoisted_4 = ["tabindex", "aria-label"];
13
+ const _hoisted_5 = ["aria-current", "aria-label", "tabindex"];
14
+ const _sfc_main = defineComponent({
15
+ ...{
16
+ name: "ElPaginationPager"
7
17
  },
8
- pageCount: {
9
- type: Number,
10
- required: true
11
- },
12
- pagerCount: {
13
- type: Number,
14
- default: 7
15
- },
16
- disabled: Boolean
18
+ __name: "pager",
19
+ props: paginationPagerProps,
20
+ emits: [CHANGE_EVENT],
21
+ setup(__props, { emit: __emit }) {
22
+ const props = __props;
23
+ const emit = __emit;
24
+ const nsPager = useNamespace("pager");
25
+ const nsIcon = useNamespace("icon");
26
+ const { t } = useLocale();
27
+ const showPrevMore = ref(false);
28
+ const showNextMore = ref(false);
29
+ const quickPrevHover = ref(false);
30
+ const quickNextHover = ref(false);
31
+ const quickPrevFocus = ref(false);
32
+ const quickNextFocus = ref(false);
33
+ const pagers = computed(() => {
34
+ const pagerCount = props.pagerCount;
35
+ const halfPagerCount = (pagerCount - 1) / 2;
36
+ const currentPage = Number(props.currentPage);
37
+ const pageCount = Number(props.pageCount);
38
+ let showPrevMore2 = false;
39
+ let showNextMore2 = false;
40
+ if (pageCount > pagerCount) {
41
+ if (currentPage > pagerCount - halfPagerCount) {
42
+ showPrevMore2 = true;
43
+ }
44
+ if (currentPage < pageCount - halfPagerCount) {
45
+ showNextMore2 = true;
46
+ }
47
+ }
48
+ const array = [];
49
+ if (showPrevMore2 && !showNextMore2) {
50
+ const startPage = pageCount - (pagerCount - 2);
51
+ for (let i = startPage; i < pageCount; i++) {
52
+ array.push(i);
53
+ }
54
+ } else if (!showPrevMore2 && showNextMore2) {
55
+ for (let i = 2; i < pagerCount; i++) {
56
+ array.push(i);
57
+ }
58
+ } else if (showPrevMore2 && showNextMore2) {
59
+ const offset = Math.floor(pagerCount / 2) - 1;
60
+ for (let i = currentPage - offset; i <= currentPage + offset; i++) {
61
+ array.push(i);
62
+ }
63
+ } else {
64
+ for (let i = 2; i < pageCount; i++) {
65
+ array.push(i);
66
+ }
67
+ }
68
+ return array;
69
+ });
70
+ const prevMoreKls = computed(() => [
71
+ "more",
72
+ "btn-quickprev",
73
+ nsIcon.b(),
74
+ nsPager.is("disabled", props.disabled)
75
+ ]);
76
+ const nextMoreKls = computed(() => [
77
+ "more",
78
+ "btn-quicknext",
79
+ nsIcon.b(),
80
+ nsPager.is("disabled", props.disabled)
81
+ ]);
82
+ const tabindex = computed(() => props.disabled ? -1 : 0);
83
+ watch(
84
+ () => [props.pageCount, props.pagerCount, props.currentPage],
85
+ ([pageCount, pagerCount, currentPage]) => {
86
+ const halfPagerCount = (pagerCount - 1) / 2;
87
+ let showPrev = false;
88
+ let showNext = false;
89
+ if (pageCount > pagerCount) {
90
+ showPrev = currentPage > pagerCount - halfPagerCount;
91
+ showNext = currentPage < pageCount - halfPagerCount;
92
+ }
93
+ quickPrevHover.value && (quickPrevHover.value = showPrev);
94
+ quickNextHover.value && (quickNextHover.value = showNext);
95
+ showPrevMore.value = showPrev;
96
+ showNextMore.value = showNext;
97
+ },
98
+ { immediate: true }
99
+ );
100
+ function onMouseEnter(forward = false) {
101
+ if (props.disabled)
102
+ return;
103
+ if (forward) {
104
+ quickPrevHover.value = true;
105
+ } else {
106
+ quickNextHover.value = true;
107
+ }
108
+ }
109
+ function onFocus(forward = false) {
110
+ if (forward) {
111
+ quickPrevFocus.value = true;
112
+ } else {
113
+ quickNextFocus.value = true;
114
+ }
115
+ }
116
+ function onEnter(e) {
117
+ const target = e.target;
118
+ if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("number")) {
119
+ const newPage = Number(target.textContent);
120
+ if (newPage !== props.currentPage) {
121
+ emit(CHANGE_EVENT, newPage);
122
+ }
123
+ } else if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("more")) {
124
+ onPagerClick(e);
125
+ }
126
+ }
127
+ function onPagerClick(event) {
128
+ const target = event.target;
129
+ if (target.tagName.toLowerCase() === "ul" || props.disabled) {
130
+ return;
131
+ }
132
+ let newPage = Number(target.textContent);
133
+ const pageCount = props.pageCount;
134
+ const currentPage = props.currentPage;
135
+ const pagerCountOffset = props.pagerCount - 2;
136
+ if (target.className.includes("more")) {
137
+ if (target.className.includes("quickprev")) {
138
+ newPage = currentPage - pagerCountOffset;
139
+ } else if (target.className.includes("quicknext")) {
140
+ newPage = currentPage + pagerCountOffset;
141
+ }
142
+ }
143
+ if (!Number.isNaN(+newPage)) {
144
+ if (newPage < 1) {
145
+ newPage = 1;
146
+ }
147
+ if (newPage > pageCount) {
148
+ newPage = pageCount;
149
+ }
150
+ }
151
+ if (newPage !== currentPage) {
152
+ emit(CHANGE_EVENT, newPage);
153
+ }
154
+ }
155
+ return (_ctx, _cache) => {
156
+ return openBlock(), createElementBlock(
157
+ "ul",
158
+ {
159
+ class: normalizeClass(unref(nsPager).b()),
160
+ onClick: onPagerClick,
161
+ onKeyup: withKeys(onEnter, ["enter"])
162
+ },
163
+ [
164
+ _ctx.pageCount > 0 ? (openBlock(), createElementBlock("li", {
165
+ key: 0,
166
+ class: normalizeClass([[
167
+ unref(nsPager).is("active", _ctx.currentPage === 1),
168
+ unref(nsPager).is("disabled", _ctx.disabled)
169
+ ], "number"]),
170
+ "aria-current": _ctx.currentPage === 1,
171
+ "aria-label": unref(t)("el.pagination.currentPage", { pager: 1 }),
172
+ tabindex: tabindex.value
173
+ }, " 1 ", 10, _hoisted_1)) : createCommentVNode("v-if", true),
174
+ showPrevMore.value ? (openBlock(), createElementBlock("li", {
175
+ key: 1,
176
+ class: normalizeClass(prevMoreKls.value),
177
+ tabindex: tabindex.value,
178
+ "aria-label": unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
179
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => onMouseEnter(true)),
180
+ onMouseleave: _cache[1] || (_cache[1] = ($event) => quickPrevHover.value = false),
181
+ onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
182
+ onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
183
+ }, [
184
+ (quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(DArrowLeft), { key: 0 })) : (openBlock(), createBlock(unref(MoreFilled), { key: 1 }))
185
+ ], 42, _hoisted_2)) : createCommentVNode("v-if", true),
186
+ (openBlock(true), createElementBlock(
187
+ Fragment,
188
+ null,
189
+ renderList(pagers.value, (pager) => {
190
+ return openBlock(), createElementBlock("li", {
191
+ key: pager,
192
+ class: normalizeClass([[
193
+ unref(nsPager).is("active", _ctx.currentPage === pager),
194
+ unref(nsPager).is("disabled", _ctx.disabled)
195
+ ], "number"]),
196
+ "aria-current": _ctx.currentPage === pager,
197
+ "aria-label": unref(t)("el.pagination.currentPage", { pager }),
198
+ tabindex: tabindex.value
199
+ }, toDisplayString(pager), 11, _hoisted_3);
200
+ }),
201
+ 128
202
+ )),
203
+ showNextMore.value ? (openBlock(), createElementBlock("li", {
204
+ key: 2,
205
+ class: normalizeClass(nextMoreKls.value),
206
+ tabindex: tabindex.value,
207
+ "aria-label": unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
208
+ onMouseenter: _cache[4] || (_cache[4] = ($event) => onMouseEnter()),
209
+ onMouseleave: _cache[5] || (_cache[5] = ($event) => quickNextHover.value = false),
210
+ onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
211
+ onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
212
+ }, [
213
+ (quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(DArrowRight), { key: 0 })) : (openBlock(), createBlock(unref(MoreFilled), { key: 1 }))
214
+ ], 42, _hoisted_4)) : createCommentVNode("v-if", true),
215
+ _ctx.pageCount > 1 ? (openBlock(), createElementBlock("li", {
216
+ key: 3,
217
+ class: normalizeClass([[
218
+ unref(nsPager).is("active", _ctx.currentPage === _ctx.pageCount),
219
+ unref(nsPager).is("disabled", _ctx.disabled)
220
+ ], "number"]),
221
+ "aria-current": _ctx.currentPage === _ctx.pageCount,
222
+ "aria-label": unref(t)("el.pagination.currentPage", { pager: _ctx.pageCount }),
223
+ tabindex: tabindex.value
224
+ }, toDisplayString(_ctx.pageCount), 11, _hoisted_5)) : createCommentVNode("v-if", true)
225
+ ],
226
+ 34
227
+ );
228
+ };
229
+ }
17
230
  });
231
+ var Pager = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);
18
232
 
19
- export { paginationPagerProps };
233
+ export { Pager as default };
20
234
  //# sourceMappingURL=pager2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pager2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/pager.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Pager from './pager.vue'\n\nexport const paginationPagerProps = buildProps({\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n required: true,\n },\n pagerCount: {\n type: Number,\n default: 7,\n },\n disabled: Boolean,\n} as const)\n\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\nexport type PaginationPagerPropsPublic = ExtractPublicPropTypes<\n typeof paginationPagerProps\n>\n\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\n"],"names":[],"mappings":";;AAKO,MAAM,uBAAuB,UAAW,CAAA;AAAA,EAC7C,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA,OAAA;AACZ,CAAU;;;;"}
1
+ {"version":3,"file":"pager2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/pager.vue"],"sourcesContent":["<template>\n <ul :class=\"nsPager.b()\" @click=\"onPagerClick\" @keyup.enter=\"onEnter\">\n <li\n v-if=\"pageCount > 0\"\n :class=\"[\n nsPager.is('active', currentPage === 1),\n nsPager.is('disabled', disabled),\n ]\"\n class=\"number\"\n :aria-current=\"currentPage === 1\"\n :aria-label=\"t('el.pagination.currentPage', { pager: 1 })\"\n :tabindex=\"tabindex\"\n >\n 1\n </li>\n <li\n v-if=\"showPrevMore\"\n :class=\"prevMoreKls\"\n :tabindex=\"tabindex\"\n :aria-label=\"t('el.pagination.prevPages', { pager: pagerCount - 2 })\"\n @mouseenter=\"onMouseEnter(true)\"\n @mouseleave=\"quickPrevHover = false\"\n @focus=\"onFocus(true)\"\n @blur=\"quickPrevFocus = false\"\n >\n <d-arrow-left v-if=\"(quickPrevHover || quickPrevFocus) && !disabled\" />\n <more-filled v-else />\n </li>\n <li\n v-for=\"pager in pagers\"\n :key=\"pager\"\n :class=\"[\n nsPager.is('active', currentPage === pager),\n nsPager.is('disabled', disabled),\n ]\"\n class=\"number\"\n :aria-current=\"currentPage === pager\"\n :aria-label=\"t('el.pagination.currentPage', { pager })\"\n :tabindex=\"tabindex\"\n >\n {{ pager }}\n </li>\n <li\n v-if=\"showNextMore\"\n :class=\"nextMoreKls\"\n :tabindex=\"tabindex\"\n :aria-label=\"t('el.pagination.nextPages', { pager: pagerCount - 2 })\"\n @mouseenter=\"onMouseEnter()\"\n @mouseleave=\"quickNextHover = false\"\n @focus=\"onFocus()\"\n @blur=\"quickNextFocus = false\"\n >\n <d-arrow-right v-if=\"(quickNextHover || quickNextFocus) && !disabled\" />\n <more-filled v-else />\n </li>\n <li\n v-if=\"pageCount > 1\"\n :class=\"[\n nsPager.is('active', currentPage === pageCount),\n nsPager.is('disabled', disabled),\n ]\"\n class=\"number\"\n :aria-current=\"currentPage === pageCount\"\n :aria-label=\"t('el.pagination.currentPage', { pager: pageCount })\"\n :tabindex=\"tabindex\"\n >\n {{ pageCount }}\n </li>\n </ul>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { DArrowLeft, DArrowRight, MoreFilled } from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { paginationPagerProps } from './pager'\n\ndefineOptions({\n name: 'ElPaginationPager',\n})\nconst props = defineProps(paginationPagerProps)\nconst emit = defineEmits([CHANGE_EVENT])\nconst nsPager = useNamespace('pager')\nconst nsIcon = useNamespace('icon')\nconst { t } = useLocale()\n\nconst showPrevMore = ref(false)\nconst showNextMore = ref(false)\nconst quickPrevHover = ref(false)\nconst quickNextHover = ref(false)\nconst quickPrevFocus = ref(false)\nconst quickNextFocus = ref(false)\nconst pagers = computed(() => {\n const pagerCount = props.pagerCount\n const halfPagerCount = (pagerCount - 1) / 2\n const currentPage = Number(props.currentPage)\n const pageCount = Number(props.pageCount)\n let showPrevMore = false\n let showNextMore = false\n if (pageCount > pagerCount) {\n if (currentPage > pagerCount - halfPagerCount) {\n showPrevMore = true\n }\n if (currentPage < pageCount - halfPagerCount) {\n showNextMore = true\n }\n }\n const array: number[] = []\n if (showPrevMore && !showNextMore) {\n const startPage = pageCount - (pagerCount - 2)\n for (let i = startPage; i < pageCount; i++) {\n array.push(i)\n }\n } else if (!showPrevMore && showNextMore) {\n for (let i = 2; i < pagerCount; i++) {\n array.push(i)\n }\n } else if (showPrevMore && showNextMore) {\n const offset = Math.floor(pagerCount / 2) - 1\n for (let i = currentPage - offset; i <= currentPage + offset; i++) {\n array.push(i)\n }\n } else {\n for (let i = 2; i < pageCount; i++) {\n array.push(i)\n }\n }\n return array\n})\n\nconst prevMoreKls = computed(() => [\n 'more',\n 'btn-quickprev',\n nsIcon.b(),\n nsPager.is('disabled', props.disabled),\n])\nconst nextMoreKls = computed(() => [\n 'more',\n 'btn-quicknext',\n nsIcon.b(),\n nsPager.is('disabled', props.disabled),\n])\n\nconst tabindex = computed(() => (props.disabled ? -1 : 0))\nwatch(\n () => [props.pageCount, props.pagerCount, props.currentPage],\n ([pageCount, pagerCount, currentPage]) => {\n const halfPagerCount = (pagerCount - 1) / 2\n let showPrev = false\n let showNext = false\n\n if (pageCount > pagerCount) {\n showPrev = currentPage > pagerCount - halfPagerCount\n showNext = currentPage < pageCount - halfPagerCount\n }\n\n quickPrevHover.value &&= showPrev\n quickNextHover.value &&= showNext\n showPrevMore.value = showPrev\n showNextMore.value = showNext\n },\n { immediate: true }\n)\nfunction onMouseEnter(forward = false) {\n if (props.disabled) return\n if (forward) {\n quickPrevHover.value = true\n } else {\n quickNextHover.value = true\n }\n}\nfunction onFocus(forward = false) {\n if (forward) {\n quickPrevFocus.value = true\n } else {\n quickNextFocus.value = true\n }\n}\nfunction onEnter(e: UIEvent) {\n const target = e.target as HTMLElement\n if (\n target.tagName.toLowerCase() === 'li' &&\n Array.from(target.classList).includes('number')\n ) {\n const newPage = Number(target.textContent)\n if (newPage !== props.currentPage) {\n emit(CHANGE_EVENT, newPage)\n }\n } else if (\n target.tagName.toLowerCase() === 'li' &&\n Array.from(target.classList).includes('more')\n ) {\n onPagerClick(e)\n }\n}\nfunction onPagerClick(event: UIEvent) {\n const target = event.target as HTMLElement\n if (target.tagName.toLowerCase() === 'ul' || props.disabled) {\n return\n }\n let newPage = Number(target.textContent)\n const pageCount = props.pageCount!\n const currentPage = props.currentPage\n const pagerCountOffset = props.pagerCount - 2\n if (target.className.includes('more')) {\n if (target.className.includes('quickprev')) {\n newPage = currentPage - pagerCountOffset\n } else if (target.className.includes('quicknext')) {\n newPage = currentPage + pagerCountOffset\n }\n }\n if (!Number.isNaN(+newPage)) {\n if (newPage < 1) {\n newPage = 1\n }\n if (newPage > pageCount) {\n newPage = pageCount\n }\n }\n if (newPage !== currentPage) {\n emit(CHANGE_EVENT, newPage)\n }\n}\n</script>\n"],"names":["showPrevMore","showNextMore","_openBlock","_createElementBlock","_normalizeClass","_unref","_withKeys","pageCount","currentPage","disabled","_createCommentVNode","pagerCount","_createBlock","_Fragment","_renderList","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACP,IAAA,MAAA,OAAA,GAAU,aAAa,OAAO,CAAA,CAAA;AAC9B,IAAA,MAAA,MAAA,GAAS,aAAa,MAAM,CAAA,CAAA;AAC5B,IAAA,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAElB,IAAA,MAAA,YAAA,GAAe,IAAI,KAAK,CAAA,CAAA;AACxB,IAAA,MAAA,YAAA,GAAe,IAAI,KAAK,CAAA,CAAA;AACxB,IAAA,MAAA,cAAA,GAAiB,IAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAA,cAAA,GAAiB,IAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAA,cAAA,GAAiB,IAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAA,cAAA,GAAiB,IAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAA,MAAM,aAAa,KAAM,CAAA,UAAA,CAAA;AACnB,MAAA,MAAA,cAAA,GAAA,CAAkB,aAAa,CAAK,IAAA,CAAA,CAAA;AACpC,MAAA,MAAA,WAAA,GAAc,MAAO,CAAA,KAAA,CAAM,WAAW,CAAA,CAAA;AACtC,MAAA,MAAA,SAAA,GAAY,MAAO,CA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,MAAA,OAAA,CAAA,CAAQ,EAAE,CAAA,UAAA,EAAaI,KAAQ,QAAA,CAAA;AAAA,aAAA,EAIpG,QAAQ,CAAA,CAAA;AAAA,YACb,cAAA,EAAcD,IAAgBD,CAAAA,WAAAA,KAAAA,IAAAA,CAAAA,SAAAA;AAAAA,YAC9B,YAAA,EAAYF,MAAC,CAAA,CAAA,CAAA,6BAAA,EAAA,KAAA,EAAuCE,IAAS,CAAA,SAAA,EAAA,CAAA;AAAA,YAC7D,UAAU,QAAA,CAAA,KAAA;AAAA,WAAA,EAAAQ,eAERR,CAAAA,IAAAA,CAAS,SAAA,CAAA,EAAA,IAAA,UAAA,CAAA,IAAAG,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA;;;;;;;;;;"}
@@ -2,11 +2,11 @@ import { defineComponent, getCurrentInstance, computed, ref, watch, provide, h }
2
2
  import { ArrowLeft, ArrowRight } from '@element-plus/icons-vue';
3
3
  import { elPaginationKey } from './constants.mjs';
4
4
  import Prev from './components/prev2.mjs';
5
- import Next from './components/next.mjs';
5
+ import Next from './components/next2.mjs';
6
6
  import Sizes from './components/sizes2.mjs';
7
7
  import Jumper from './components/jumper2.mjs';
8
8
  import Total from './components/total2.mjs';
9
- import Pager from './components/pager.mjs';
9
+ import Pager from './components/pager2.mjs';
10
10
  import { useGlobalSize, useSizeProp } from '../../../hooks/use-size/index.mjs';
11
11
  import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
12
12
  import { useLocale } from '../../../hooks/use-locale/index.mjs';
@@ -1,5 +1,5 @@
1
- import Progress from './src/progress2.mjs';
2
- export { progressProps } from './src/progress.mjs';
1
+ import Progress from './src/progress.mjs';
2
+ export { progressProps } from './src/progress2.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElProgress = withInstall(Progress);
@@ -1,58 +1,262 @@
1
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, renderSlot, toDisplayString, createCommentVNode, createBlock, withCtx, resolveDynamicComponent } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import { WarningFilled, CircleCheck, CircleClose, Check, Close } from '@element-plus/icons-vue';
4
+ import { progressProps } from './progress2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
+ import { isFunction, isString } from '@vue/shared';
2
8
 
3
- const progressProps = buildProps({
4
- type: {
5
- type: String,
6
- default: "line",
7
- values: ["line", "circle", "dashboard"]
9
+ const _hoisted_1 = ["aria-valuenow"];
10
+ const _hoisted_2 = { viewBox: "0 0 100 100" };
11
+ const _hoisted_3 = ["d", "stroke", "stroke-linecap", "stroke-width"];
12
+ const _hoisted_4 = ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"];
13
+ const _hoisted_5 = { key: 0 };
14
+ const _sfc_main = defineComponent({
15
+ ...{
16
+ name: "ElProgress"
8
17
  },
9
- percentage: {
10
- type: Number,
11
- default: 0,
12
- validator: (val) => val >= 0 && val <= 100
13
- },
14
- status: {
15
- type: String,
16
- default: "",
17
- values: ["", "success", "exception", "warning"]
18
- },
19
- indeterminate: Boolean,
20
- duration: {
21
- type: Number,
22
- default: 3
23
- },
24
- strokeWidth: {
25
- type: Number,
26
- default: 6
27
- },
28
- strokeLinecap: {
29
- type: definePropType(String),
30
- default: "round"
31
- },
32
- textInside: Boolean,
33
- width: {
34
- type: Number,
35
- default: 126
36
- },
37
- showText: {
38
- type: Boolean,
39
- default: true
40
- },
41
- color: {
42
- type: definePropType([
43
- String,
44
- Array,
45
- Function
46
- ]),
47
- default: ""
48
- },
49
- striped: Boolean,
50
- stripedFlow: Boolean,
51
- format: {
52
- type: definePropType(Function),
53
- default: (percentage) => `${percentage}%`
18
+ __name: "progress",
19
+ props: progressProps,
20
+ setup(__props) {
21
+ const STATUS_COLOR_MAP = {
22
+ success: "#13ce66",
23
+ exception: "#ff4949",
24
+ warning: "#e6a23c",
25
+ default: "#20a0ff"
26
+ };
27
+ const props = __props;
28
+ const ns = useNamespace("progress");
29
+ const barStyle = computed(() => {
30
+ const barStyle2 = {
31
+ width: `${props.percentage}%`,
32
+ animationDuration: `${props.duration}s`
33
+ };
34
+ const color = getCurrentColor(props.percentage);
35
+ if (color.includes("gradient")) {
36
+ barStyle2.background = color;
37
+ } else {
38
+ barStyle2.backgroundColor = color;
39
+ }
40
+ return barStyle2;
41
+ });
42
+ const relativeStrokeWidth = computed(
43
+ () => (props.strokeWidth / props.width * 100).toFixed(1)
44
+ );
45
+ const radius = computed(() => {
46
+ if (["circle", "dashboard"].includes(props.type)) {
47
+ return Number.parseInt(
48
+ `${50 - Number.parseFloat(relativeStrokeWidth.value) / 2}`,
49
+ 10
50
+ );
51
+ }
52
+ return 0;
53
+ });
54
+ const trackPath = computed(() => {
55
+ const r = radius.value;
56
+ const isDashboard = props.type === "dashboard";
57
+ return `
58
+ M 50 50
59
+ m 0 ${isDashboard ? "" : "-"}${r}
60
+ a ${r} ${r} 0 1 1 0 ${isDashboard ? "-" : ""}${r * 2}
61
+ a ${r} ${r} 0 1 1 0 ${isDashboard ? "" : "-"}${r * 2}
62
+ `;
63
+ });
64
+ const perimeter = computed(() => 2 * Math.PI * radius.value);
65
+ const rate = computed(() => props.type === "dashboard" ? 0.75 : 1);
66
+ const strokeDashoffset = computed(() => {
67
+ const offset = -1 * perimeter.value * (1 - rate.value) / 2;
68
+ return `${offset}px`;
69
+ });
70
+ const trailPathStyle = computed(() => ({
71
+ strokeDasharray: `${perimeter.value * rate.value}px, ${perimeter.value}px`,
72
+ strokeDashoffset: strokeDashoffset.value
73
+ }));
74
+ const circlePathStyle = computed(() => ({
75
+ strokeDasharray: `${perimeter.value * rate.value * (props.percentage / 100)}px, ${perimeter.value}px`,
76
+ strokeDashoffset: strokeDashoffset.value,
77
+ transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
78
+ }));
79
+ const stroke = computed(() => {
80
+ let ret;
81
+ if (props.color) {
82
+ ret = getCurrentColor(props.percentage);
83
+ } else {
84
+ ret = STATUS_COLOR_MAP[props.status] || STATUS_COLOR_MAP.default;
85
+ }
86
+ return ret;
87
+ });
88
+ const statusIcon = computed(() => {
89
+ if (props.status === "warning") {
90
+ return WarningFilled;
91
+ }
92
+ if (props.type === "line") {
93
+ return props.status === "success" ? CircleCheck : CircleClose;
94
+ } else {
95
+ return props.status === "success" ? Check : Close;
96
+ }
97
+ });
98
+ const progressTextSize = computed(() => {
99
+ return props.type === "line" ? 12 + props.strokeWidth * 0.4 : props.width * 0.111111 + 2;
100
+ });
101
+ const content = computed(() => props.format(props.percentage));
102
+ function getColors(color) {
103
+ const span = 100 / color.length;
104
+ const seriesColors = color.map((seriesColor, index) => {
105
+ if (isString(seriesColor)) {
106
+ return {
107
+ color: seriesColor,
108
+ percentage: (index + 1) * span
109
+ };
110
+ }
111
+ return seriesColor;
112
+ });
113
+ return seriesColors.sort((a, b) => a.percentage - b.percentage);
114
+ }
115
+ const getCurrentColor = (percentage) => {
116
+ var _a;
117
+ const { color } = props;
118
+ if (isFunction(color)) {
119
+ return color(percentage);
120
+ } else if (isString(color)) {
121
+ return color;
122
+ } else {
123
+ const colors = getColors(color);
124
+ for (const color2 of colors) {
125
+ if (color2.percentage > percentage)
126
+ return color2.color;
127
+ }
128
+ return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
129
+ }
130
+ };
131
+ return (_ctx, _cache) => {
132
+ return openBlock(), createElementBlock("div", {
133
+ class: normalizeClass([
134
+ unref(ns).b(),
135
+ unref(ns).m(_ctx.type),
136
+ unref(ns).is(_ctx.status),
137
+ {
138
+ [unref(ns).m("without-text")]: !_ctx.showText,
139
+ [unref(ns).m("text-inside")]: _ctx.textInside
140
+ }
141
+ ]),
142
+ role: "progressbar",
143
+ "aria-valuenow": _ctx.percentage,
144
+ "aria-valuemin": "0",
145
+ "aria-valuemax": "100"
146
+ }, [
147
+ _ctx.type === "line" ? (openBlock(), createElementBlock(
148
+ "div",
149
+ {
150
+ key: 0,
151
+ class: normalizeClass(unref(ns).b("bar"))
152
+ },
153
+ [
154
+ createElementVNode(
155
+ "div",
156
+ {
157
+ class: normalizeClass(unref(ns).be("bar", "outer")),
158
+ style: normalizeStyle({ height: `${_ctx.strokeWidth}px` })
159
+ },
160
+ [
161
+ createElementVNode(
162
+ "div",
163
+ {
164
+ class: normalizeClass([
165
+ unref(ns).be("bar", "inner"),
166
+ { [unref(ns).bem("bar", "inner", "indeterminate")]: _ctx.indeterminate },
167
+ { [unref(ns).bem("bar", "inner", "striped")]: _ctx.striped },
168
+ { [unref(ns).bem("bar", "inner", "striped-flow")]: _ctx.stripedFlow }
169
+ ]),
170
+ style: normalizeStyle(barStyle.value)
171
+ },
172
+ [
173
+ (_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (openBlock(), createElementBlock(
174
+ "div",
175
+ {
176
+ key: 0,
177
+ class: normalizeClass(unref(ns).be("bar", "innerText"))
178
+ },
179
+ [
180
+ renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
181
+ createElementVNode(
182
+ "span",
183
+ null,
184
+ toDisplayString(content.value),
185
+ 1
186
+ )
187
+ ])
188
+ ],
189
+ 2
190
+ )) : createCommentVNode("v-if", true)
191
+ ],
192
+ 6
193
+ )
194
+ ],
195
+ 6
196
+ )
197
+ ],
198
+ 2
199
+ )) : (openBlock(), createElementBlock(
200
+ "div",
201
+ {
202
+ key: 1,
203
+ class: normalizeClass(unref(ns).b("circle")),
204
+ style: normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
205
+ },
206
+ [
207
+ (openBlock(), createElementBlock("svg", _hoisted_2, [
208
+ createElementVNode("path", {
209
+ class: normalizeClass(unref(ns).be("circle", "track")),
210
+ d: trackPath.value,
211
+ stroke: `var(${unref(ns).cssVarName("fill-color-light")}, #e5e9f2)`,
212
+ "stroke-linecap": _ctx.strokeLinecap,
213
+ "stroke-width": relativeStrokeWidth.value,
214
+ fill: "none",
215
+ style: normalizeStyle(trailPathStyle.value)
216
+ }, null, 14, _hoisted_3),
217
+ createElementVNode("path", {
218
+ class: normalizeClass(unref(ns).be("circle", "path")),
219
+ d: trackPath.value,
220
+ stroke: stroke.value,
221
+ fill: "none",
222
+ opacity: _ctx.percentage ? 1 : 0,
223
+ "stroke-linecap": _ctx.strokeLinecap,
224
+ "stroke-width": relativeStrokeWidth.value,
225
+ style: normalizeStyle(circlePathStyle.value)
226
+ }, null, 14, _hoisted_4)
227
+ ]))
228
+ ],
229
+ 6
230
+ )),
231
+ (_ctx.showText || _ctx.$slots.default) && !_ctx.textInside ? (openBlock(), createElementBlock(
232
+ "div",
233
+ {
234
+ key: 2,
235
+ class: normalizeClass(unref(ns).e("text")),
236
+ style: normalizeStyle({ fontSize: `${progressTextSize.value}px` })
237
+ },
238
+ [
239
+ renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
240
+ !_ctx.status ? (openBlock(), createElementBlock(
241
+ "span",
242
+ _hoisted_5,
243
+ toDisplayString(content.value),
244
+ 1
245
+ )) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
246
+ default: withCtx(() => [
247
+ (openBlock(), createBlock(resolveDynamicComponent(statusIcon.value)))
248
+ ]),
249
+ _: 1
250
+ }))
251
+ ])
252
+ ],
253
+ 6
254
+ )) : createCommentVNode("v-if", true)
255
+ ], 10, _hoisted_1);
256
+ };
54
257
  }
55
258
  });
259
+ var Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);
56
260
 
57
- export { progressProps };
261
+ export { Progress as default };
58
262
  //# sourceMappingURL=progress.mjs.map