@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
@@ -2,23 +2,237 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var iconsVue = require('@element-plus/icons-vue');
7
+ var pager = require('./pager.js');
8
+ var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
9
+ var event = require('../../../../constants/event.js');
10
+ var index = require('../../../../hooks/use-namespace/index.js');
11
+ var index$1 = require('../../../../hooks/use-locale/index.js');
6
12
 
7
- const paginationPagerProps = runtime.buildProps({
8
- currentPage: {
9
- type: Number,
10
- default: 1
13
+ const _hoisted_1 = ["aria-current", "aria-label", "tabindex"];
14
+ const _hoisted_2 = ["tabindex", "aria-label"];
15
+ const _hoisted_3 = ["aria-current", "aria-label", "tabindex"];
16
+ const _hoisted_4 = ["tabindex", "aria-label"];
17
+ const _hoisted_5 = ["aria-current", "aria-label", "tabindex"];
18
+ const _sfc_main = vue.defineComponent({
19
+ ...{
20
+ name: "ElPaginationPager"
11
21
  },
12
- pageCount: {
13
- type: Number,
14
- required: true
15
- },
16
- pagerCount: {
17
- type: Number,
18
- default: 7
19
- },
20
- disabled: Boolean
22
+ __name: "pager",
23
+ props: pager.paginationPagerProps,
24
+ emits: [event.CHANGE_EVENT],
25
+ setup(__props, { emit: __emit }) {
26
+ const props = __props;
27
+ const emit = __emit;
28
+ const nsPager = index.useNamespace("pager");
29
+ const nsIcon = index.useNamespace("icon");
30
+ const { t } = index$1.useLocale();
31
+ const showPrevMore = vue.ref(false);
32
+ const showNextMore = vue.ref(false);
33
+ const quickPrevHover = vue.ref(false);
34
+ const quickNextHover = vue.ref(false);
35
+ const quickPrevFocus = vue.ref(false);
36
+ const quickNextFocus = vue.ref(false);
37
+ const pagers = vue.computed(() => {
38
+ const pagerCount = props.pagerCount;
39
+ const halfPagerCount = (pagerCount - 1) / 2;
40
+ const currentPage = Number(props.currentPage);
41
+ const pageCount = Number(props.pageCount);
42
+ let showPrevMore2 = false;
43
+ let showNextMore2 = false;
44
+ if (pageCount > pagerCount) {
45
+ if (currentPage > pagerCount - halfPagerCount) {
46
+ showPrevMore2 = true;
47
+ }
48
+ if (currentPage < pageCount - halfPagerCount) {
49
+ showNextMore2 = true;
50
+ }
51
+ }
52
+ const array = [];
53
+ if (showPrevMore2 && !showNextMore2) {
54
+ const startPage = pageCount - (pagerCount - 2);
55
+ for (let i = startPage; i < pageCount; i++) {
56
+ array.push(i);
57
+ }
58
+ } else if (!showPrevMore2 && showNextMore2) {
59
+ for (let i = 2; i < pagerCount; i++) {
60
+ array.push(i);
61
+ }
62
+ } else if (showPrevMore2 && showNextMore2) {
63
+ const offset = Math.floor(pagerCount / 2) - 1;
64
+ for (let i = currentPage - offset; i <= currentPage + offset; i++) {
65
+ array.push(i);
66
+ }
67
+ } else {
68
+ for (let i = 2; i < pageCount; i++) {
69
+ array.push(i);
70
+ }
71
+ }
72
+ return array;
73
+ });
74
+ const prevMoreKls = vue.computed(() => [
75
+ "more",
76
+ "btn-quickprev",
77
+ nsIcon.b(),
78
+ nsPager.is("disabled", props.disabled)
79
+ ]);
80
+ const nextMoreKls = vue.computed(() => [
81
+ "more",
82
+ "btn-quicknext",
83
+ nsIcon.b(),
84
+ nsPager.is("disabled", props.disabled)
85
+ ]);
86
+ const tabindex = vue.computed(() => props.disabled ? -1 : 0);
87
+ vue.watch(
88
+ () => [props.pageCount, props.pagerCount, props.currentPage],
89
+ ([pageCount, pagerCount, currentPage]) => {
90
+ const halfPagerCount = (pagerCount - 1) / 2;
91
+ let showPrev = false;
92
+ let showNext = false;
93
+ if (pageCount > pagerCount) {
94
+ showPrev = currentPage > pagerCount - halfPagerCount;
95
+ showNext = currentPage < pageCount - halfPagerCount;
96
+ }
97
+ quickPrevHover.value && (quickPrevHover.value = showPrev);
98
+ quickNextHover.value && (quickNextHover.value = showNext);
99
+ showPrevMore.value = showPrev;
100
+ showNextMore.value = showNext;
101
+ },
102
+ { immediate: true }
103
+ );
104
+ function onMouseEnter(forward = false) {
105
+ if (props.disabled)
106
+ return;
107
+ if (forward) {
108
+ quickPrevHover.value = true;
109
+ } else {
110
+ quickNextHover.value = true;
111
+ }
112
+ }
113
+ function onFocus(forward = false) {
114
+ if (forward) {
115
+ quickPrevFocus.value = true;
116
+ } else {
117
+ quickNextFocus.value = true;
118
+ }
119
+ }
120
+ function onEnter(e) {
121
+ const target = e.target;
122
+ if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("number")) {
123
+ const newPage = Number(target.textContent);
124
+ if (newPage !== props.currentPage) {
125
+ emit(event.CHANGE_EVENT, newPage);
126
+ }
127
+ } else if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("more")) {
128
+ onPagerClick(e);
129
+ }
130
+ }
131
+ function onPagerClick(event$1) {
132
+ const target = event$1.target;
133
+ if (target.tagName.toLowerCase() === "ul" || props.disabled) {
134
+ return;
135
+ }
136
+ let newPage = Number(target.textContent);
137
+ const pageCount = props.pageCount;
138
+ const currentPage = props.currentPage;
139
+ const pagerCountOffset = props.pagerCount - 2;
140
+ if (target.className.includes("more")) {
141
+ if (target.className.includes("quickprev")) {
142
+ newPage = currentPage - pagerCountOffset;
143
+ } else if (target.className.includes("quicknext")) {
144
+ newPage = currentPage + pagerCountOffset;
145
+ }
146
+ }
147
+ if (!Number.isNaN(+newPage)) {
148
+ if (newPage < 1) {
149
+ newPage = 1;
150
+ }
151
+ if (newPage > pageCount) {
152
+ newPage = pageCount;
153
+ }
154
+ }
155
+ if (newPage !== currentPage) {
156
+ emit(event.CHANGE_EVENT, newPage);
157
+ }
158
+ }
159
+ return (_ctx, _cache) => {
160
+ return vue.openBlock(), vue.createElementBlock(
161
+ "ul",
162
+ {
163
+ class: vue.normalizeClass(vue.unref(nsPager).b()),
164
+ onClick: onPagerClick,
165
+ onKeyup: vue.withKeys(onEnter, ["enter"])
166
+ },
167
+ [
168
+ _ctx.pageCount > 0 ? (vue.openBlock(), vue.createElementBlock("li", {
169
+ key: 0,
170
+ class: vue.normalizeClass([[
171
+ vue.unref(nsPager).is("active", _ctx.currentPage === 1),
172
+ vue.unref(nsPager).is("disabled", _ctx.disabled)
173
+ ], "number"]),
174
+ "aria-current": _ctx.currentPage === 1,
175
+ "aria-label": vue.unref(t)("el.pagination.currentPage", { pager: 1 }),
176
+ tabindex: tabindex.value
177
+ }, " 1 ", 10, _hoisted_1)) : vue.createCommentVNode("v-if", true),
178
+ showPrevMore.value ? (vue.openBlock(), vue.createElementBlock("li", {
179
+ key: 1,
180
+ class: vue.normalizeClass(prevMoreKls.value),
181
+ tabindex: tabindex.value,
182
+ "aria-label": vue.unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
183
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => onMouseEnter(true)),
184
+ onMouseleave: _cache[1] || (_cache[1] = ($event) => quickPrevHover.value = false),
185
+ onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
186
+ onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
187
+ }, [
188
+ (quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.DArrowLeft), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.MoreFilled), { key: 1 }))
189
+ ], 42, _hoisted_2)) : vue.createCommentVNode("v-if", true),
190
+ (vue.openBlock(true), vue.createElementBlock(
191
+ vue.Fragment,
192
+ null,
193
+ vue.renderList(pagers.value, (pager) => {
194
+ return vue.openBlock(), vue.createElementBlock("li", {
195
+ key: pager,
196
+ class: vue.normalizeClass([[
197
+ vue.unref(nsPager).is("active", _ctx.currentPage === pager),
198
+ vue.unref(nsPager).is("disabled", _ctx.disabled)
199
+ ], "number"]),
200
+ "aria-current": _ctx.currentPage === pager,
201
+ "aria-label": vue.unref(t)("el.pagination.currentPage", { pager }),
202
+ tabindex: tabindex.value
203
+ }, vue.toDisplayString(pager), 11, _hoisted_3);
204
+ }),
205
+ 128
206
+ )),
207
+ showNextMore.value ? (vue.openBlock(), vue.createElementBlock("li", {
208
+ key: 2,
209
+ class: vue.normalizeClass(nextMoreKls.value),
210
+ tabindex: tabindex.value,
211
+ "aria-label": vue.unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
212
+ onMouseenter: _cache[4] || (_cache[4] = ($event) => onMouseEnter()),
213
+ onMouseleave: _cache[5] || (_cache[5] = ($event) => quickNextHover.value = false),
214
+ onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
215
+ onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
216
+ }, [
217
+ (quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.DArrowRight), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.MoreFilled), { key: 1 }))
218
+ ], 42, _hoisted_4)) : vue.createCommentVNode("v-if", true),
219
+ _ctx.pageCount > 1 ? (vue.openBlock(), vue.createElementBlock("li", {
220
+ key: 3,
221
+ class: vue.normalizeClass([[
222
+ vue.unref(nsPager).is("active", _ctx.currentPage === _ctx.pageCount),
223
+ vue.unref(nsPager).is("disabled", _ctx.disabled)
224
+ ], "number"]),
225
+ "aria-current": _ctx.currentPage === _ctx.pageCount,
226
+ "aria-label": vue.unref(t)("el.pagination.currentPage", { pager: _ctx.pageCount }),
227
+ tabindex: tabindex.value
228
+ }, vue.toDisplayString(_ctx.pageCount), 11, _hoisted_5)) : vue.createCommentVNode("v-if", true)
229
+ ],
230
+ 34
231
+ );
232
+ };
233
+ }
21
234
  });
235
+ var Pager = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);
22
236
 
23
- exports.paginationPagerProps = paginationPagerProps;
237
+ exports["default"] = Pager;
24
238
  //# sourceMappingURL=pager2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pager2.js","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":["buildProps"],"mappings":";;;;;;AAKO,MAAM,uBAAuBA,kBAAW,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.js","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":["useNamespace","useLocale","ref","computed","showPrevMore","showNextMore","watch","CHANGE_EVENT","event","_openBlock","_createElementBlock","_normalizeClass","_unref","_withKeys","pageCount","currentPage","disabled","_createCommentVNode","pagerCount","_createBlock","MoreFilled","_Fragment","_renderList","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACP,IAAA,MAAA,OAAA,GAAUA,mBAAa,OAAO,CAAA,CAAA;AAC9B,IAAA,MAAA,MAAA,GAASA,mBAAa,MAAM,CAAA,CAAA;AAC5B,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIC,iBAAU,EAAA,CAAA;AAElB,IAAA,MAAA,YAAA,GAAeC,QAAI,KAAK,CAAA,CAAA;AACxB,IAAA,MAAA,YAAA,GAAeA,QAAI,KAAK,CAAA,CAAA;AACxB,IAAA,MAAA,cAAA,GAAiBA,QAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAA,cAAA,GAAiBA,QAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAA,cAAA,GAAiBA,QAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAA,cAAA,GAA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AA,EAAA,EAAA,UAAA,CAAA,IAAAH,sBAAA,CAAA,QAAA,IAAA,CAAA;AAAA,UAGhBH,KAAAA,SAAS,GAAA,CAAA,qBADjBJ,uBAYK,IAAA,EAAA;AAAA,YAAA,GAAA,EAAA,CAAA;AAAA,YAVF,KAAA,EAAKC,mBAAA,CAAA;AAAA,cAAYC,SAAA,CAAQ,OAAA,CAAA,CAAA,EAAA,CAAE,UAAWG,IAAAA,CAAAA,WAAAA,KAAgBD,KAAS,SAAA,CAAA;AAAA,cAAWF,UAAA,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,UAAC,CAAA,CAAA,CAAA,6BAAA,EAAA,KAAA,EAAuCE,IAAS,CAAA,SAAA,EAAA,CAAA;AAAA,YAC7D,UAAU,QAAA,CAAA,KAAA;AAAA,WAAA,EAAAS,mBAERT,CAAAA,IAAAA,CAAS,SAAA,CAAA,EAAA,IAAA,UAAA,CAAA,IAAAG,sBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA;;;;;;;;;;"}
@@ -6,11 +6,11 @@ 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/next.js');
9
+ var next = require('./components/next2.js');
10
10
  var sizes = require('./components/sizes2.js');
11
11
  var jumper = require('./components/jumper2.js');
12
12
  var total = require('./components/total2.js');
13
- var pager = require('./components/pager.js');
13
+ var pager = require('./components/pager2.js');
14
14
  var index$2 = require('../../../hooks/use-size/index.js');
15
15
  var runtime = require('../../../utils/vue/props/runtime.js');
16
16
  var index = require('../../../hooks/use-locale/index.js');
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var progress$1 = require('./src/progress2.js');
6
- var progress = require('./src/progress.js');
5
+ var progress$1 = require('./src/progress.js');
6
+ var progress = require('./src/progress2.js');
7
7
  var install = require('../../utils/vue/install.js');
8
8
 
9
9
  const ElProgress = install.withInstall(progress$1["default"]);
@@ -2,61 +2,265 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
7
+ var iconsVue = require('@element-plus/icons-vue');
8
+ var progress = require('./progress2.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../hooks/use-namespace/index.js');
11
+ var shared = require('@vue/shared');
6
12
 
7
- const progressProps = runtime.buildProps({
8
- type: {
9
- type: String,
10
- default: "line",
11
- values: ["line", "circle", "dashboard"]
13
+ const _hoisted_1 = ["aria-valuenow"];
14
+ const _hoisted_2 = { viewBox: "0 0 100 100" };
15
+ const _hoisted_3 = ["d", "stroke", "stroke-linecap", "stroke-width"];
16
+ const _hoisted_4 = ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"];
17
+ const _hoisted_5 = { key: 0 };
18
+ const _sfc_main = vue.defineComponent({
19
+ ...{
20
+ name: "ElProgress"
12
21
  },
13
- percentage: {
14
- type: Number,
15
- default: 0,
16
- validator: (val) => val >= 0 && val <= 100
17
- },
18
- status: {
19
- type: String,
20
- default: "",
21
- values: ["", "success", "exception", "warning"]
22
- },
23
- indeterminate: Boolean,
24
- duration: {
25
- type: Number,
26
- default: 3
27
- },
28
- strokeWidth: {
29
- type: Number,
30
- default: 6
31
- },
32
- strokeLinecap: {
33
- type: runtime.definePropType(String),
34
- default: "round"
35
- },
36
- textInside: Boolean,
37
- width: {
38
- type: Number,
39
- default: 126
40
- },
41
- showText: {
42
- type: Boolean,
43
- default: true
44
- },
45
- color: {
46
- type: runtime.definePropType([
47
- String,
48
- Array,
49
- Function
50
- ]),
51
- default: ""
52
- },
53
- striped: Boolean,
54
- stripedFlow: Boolean,
55
- format: {
56
- type: runtime.definePropType(Function),
57
- default: (percentage) => `${percentage}%`
22
+ __name: "progress",
23
+ props: progress.progressProps,
24
+ setup(__props) {
25
+ const STATUS_COLOR_MAP = {
26
+ success: "#13ce66",
27
+ exception: "#ff4949",
28
+ warning: "#e6a23c",
29
+ default: "#20a0ff"
30
+ };
31
+ const props = __props;
32
+ const ns = index.useNamespace("progress");
33
+ const barStyle = vue.computed(() => {
34
+ const barStyle2 = {
35
+ width: `${props.percentage}%`,
36
+ animationDuration: `${props.duration}s`
37
+ };
38
+ const color = getCurrentColor(props.percentage);
39
+ if (color.includes("gradient")) {
40
+ barStyle2.background = color;
41
+ } else {
42
+ barStyle2.backgroundColor = color;
43
+ }
44
+ return barStyle2;
45
+ });
46
+ const relativeStrokeWidth = vue.computed(
47
+ () => (props.strokeWidth / props.width * 100).toFixed(1)
48
+ );
49
+ const radius = vue.computed(() => {
50
+ if (["circle", "dashboard"].includes(props.type)) {
51
+ return Number.parseInt(
52
+ `${50 - Number.parseFloat(relativeStrokeWidth.value) / 2}`,
53
+ 10
54
+ );
55
+ }
56
+ return 0;
57
+ });
58
+ const trackPath = vue.computed(() => {
59
+ const r = radius.value;
60
+ const isDashboard = props.type === "dashboard";
61
+ return `
62
+ M 50 50
63
+ m 0 ${isDashboard ? "" : "-"}${r}
64
+ a ${r} ${r} 0 1 1 0 ${isDashboard ? "-" : ""}${r * 2}
65
+ a ${r} ${r} 0 1 1 0 ${isDashboard ? "" : "-"}${r * 2}
66
+ `;
67
+ });
68
+ const perimeter = vue.computed(() => 2 * Math.PI * radius.value);
69
+ const rate = vue.computed(() => props.type === "dashboard" ? 0.75 : 1);
70
+ const strokeDashoffset = vue.computed(() => {
71
+ const offset = -1 * perimeter.value * (1 - rate.value) / 2;
72
+ return `${offset}px`;
73
+ });
74
+ const trailPathStyle = vue.computed(() => ({
75
+ strokeDasharray: `${perimeter.value * rate.value}px, ${perimeter.value}px`,
76
+ strokeDashoffset: strokeDashoffset.value
77
+ }));
78
+ const circlePathStyle = vue.computed(() => ({
79
+ strokeDasharray: `${perimeter.value * rate.value * (props.percentage / 100)}px, ${perimeter.value}px`,
80
+ strokeDashoffset: strokeDashoffset.value,
81
+ transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
82
+ }));
83
+ const stroke = vue.computed(() => {
84
+ let ret;
85
+ if (props.color) {
86
+ ret = getCurrentColor(props.percentage);
87
+ } else {
88
+ ret = STATUS_COLOR_MAP[props.status] || STATUS_COLOR_MAP.default;
89
+ }
90
+ return ret;
91
+ });
92
+ const statusIcon = vue.computed(() => {
93
+ if (props.status === "warning") {
94
+ return iconsVue.WarningFilled;
95
+ }
96
+ if (props.type === "line") {
97
+ return props.status === "success" ? iconsVue.CircleCheck : iconsVue.CircleClose;
98
+ } else {
99
+ return props.status === "success" ? iconsVue.Check : iconsVue.Close;
100
+ }
101
+ });
102
+ const progressTextSize = vue.computed(() => {
103
+ return props.type === "line" ? 12 + props.strokeWidth * 0.4 : props.width * 0.111111 + 2;
104
+ });
105
+ const content = vue.computed(() => props.format(props.percentage));
106
+ function getColors(color) {
107
+ const span = 100 / color.length;
108
+ const seriesColors = color.map((seriesColor, index) => {
109
+ if (shared.isString(seriesColor)) {
110
+ return {
111
+ color: seriesColor,
112
+ percentage: (index + 1) * span
113
+ };
114
+ }
115
+ return seriesColor;
116
+ });
117
+ return seriesColors.sort((a, b) => a.percentage - b.percentage);
118
+ }
119
+ const getCurrentColor = (percentage) => {
120
+ var _a;
121
+ const { color } = props;
122
+ if (shared.isFunction(color)) {
123
+ return color(percentage);
124
+ } else if (shared.isString(color)) {
125
+ return color;
126
+ } else {
127
+ const colors = getColors(color);
128
+ for (const color2 of colors) {
129
+ if (color2.percentage > percentage)
130
+ return color2.color;
131
+ }
132
+ return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
133
+ }
134
+ };
135
+ return (_ctx, _cache) => {
136
+ return vue.openBlock(), vue.createElementBlock("div", {
137
+ class: vue.normalizeClass([
138
+ vue.unref(ns).b(),
139
+ vue.unref(ns).m(_ctx.type),
140
+ vue.unref(ns).is(_ctx.status),
141
+ {
142
+ [vue.unref(ns).m("without-text")]: !_ctx.showText,
143
+ [vue.unref(ns).m("text-inside")]: _ctx.textInside
144
+ }
145
+ ]),
146
+ role: "progressbar",
147
+ "aria-valuenow": _ctx.percentage,
148
+ "aria-valuemin": "0",
149
+ "aria-valuemax": "100"
150
+ }, [
151
+ _ctx.type === "line" ? (vue.openBlock(), vue.createElementBlock(
152
+ "div",
153
+ {
154
+ key: 0,
155
+ class: vue.normalizeClass(vue.unref(ns).b("bar"))
156
+ },
157
+ [
158
+ vue.createElementVNode(
159
+ "div",
160
+ {
161
+ class: vue.normalizeClass(vue.unref(ns).be("bar", "outer")),
162
+ style: vue.normalizeStyle({ height: `${_ctx.strokeWidth}px` })
163
+ },
164
+ [
165
+ vue.createElementVNode(
166
+ "div",
167
+ {
168
+ class: vue.normalizeClass([
169
+ vue.unref(ns).be("bar", "inner"),
170
+ { [vue.unref(ns).bem("bar", "inner", "indeterminate")]: _ctx.indeterminate },
171
+ { [vue.unref(ns).bem("bar", "inner", "striped")]: _ctx.striped },
172
+ { [vue.unref(ns).bem("bar", "inner", "striped-flow")]: _ctx.stripedFlow }
173
+ ]),
174
+ style: vue.normalizeStyle(barStyle.value)
175
+ },
176
+ [
177
+ (_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (vue.openBlock(), vue.createElementBlock(
178
+ "div",
179
+ {
180
+ key: 0,
181
+ class: vue.normalizeClass(vue.unref(ns).be("bar", "innerText"))
182
+ },
183
+ [
184
+ vue.renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
185
+ vue.createElementVNode(
186
+ "span",
187
+ null,
188
+ vue.toDisplayString(content.value),
189
+ 1
190
+ )
191
+ ])
192
+ ],
193
+ 2
194
+ )) : vue.createCommentVNode("v-if", true)
195
+ ],
196
+ 6
197
+ )
198
+ ],
199
+ 6
200
+ )
201
+ ],
202
+ 2
203
+ )) : (vue.openBlock(), vue.createElementBlock(
204
+ "div",
205
+ {
206
+ key: 1,
207
+ class: vue.normalizeClass(vue.unref(ns).b("circle")),
208
+ style: vue.normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
209
+ },
210
+ [
211
+ (vue.openBlock(), vue.createElementBlock("svg", _hoisted_2, [
212
+ vue.createElementVNode("path", {
213
+ class: vue.normalizeClass(vue.unref(ns).be("circle", "track")),
214
+ d: trackPath.value,
215
+ stroke: `var(${vue.unref(ns).cssVarName("fill-color-light")}, #e5e9f2)`,
216
+ "stroke-linecap": _ctx.strokeLinecap,
217
+ "stroke-width": relativeStrokeWidth.value,
218
+ fill: "none",
219
+ style: vue.normalizeStyle(trailPathStyle.value)
220
+ }, null, 14, _hoisted_3),
221
+ vue.createElementVNode("path", {
222
+ class: vue.normalizeClass(vue.unref(ns).be("circle", "path")),
223
+ d: trackPath.value,
224
+ stroke: stroke.value,
225
+ fill: "none",
226
+ opacity: _ctx.percentage ? 1 : 0,
227
+ "stroke-linecap": _ctx.strokeLinecap,
228
+ "stroke-width": relativeStrokeWidth.value,
229
+ style: vue.normalizeStyle(circlePathStyle.value)
230
+ }, null, 14, _hoisted_4)
231
+ ]))
232
+ ],
233
+ 6
234
+ )),
235
+ (_ctx.showText || _ctx.$slots.default) && !_ctx.textInside ? (vue.openBlock(), vue.createElementBlock(
236
+ "div",
237
+ {
238
+ key: 2,
239
+ class: vue.normalizeClass(vue.unref(ns).e("text")),
240
+ style: vue.normalizeStyle({ fontSize: `${progressTextSize.value}px` })
241
+ },
242
+ [
243
+ vue.renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
244
+ !_ctx.status ? (vue.openBlock(), vue.createElementBlock(
245
+ "span",
246
+ _hoisted_5,
247
+ vue.toDisplayString(content.value),
248
+ 1
249
+ )) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
250
+ default: vue.withCtx(() => [
251
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(statusIcon.value)))
252
+ ]),
253
+ _: 1
254
+ }))
255
+ ])
256
+ ],
257
+ 6
258
+ )) : vue.createCommentVNode("v-if", true)
259
+ ], 10, _hoisted_1);
260
+ };
58
261
  }
59
262
  });
263
+ var Progress = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);
60
264
 
61
- exports.progressProps = progressProps;
265
+ exports["default"] = Progress;
62
266
  //# sourceMappingURL=progress.js.map