@element-plus/nightly 0.0.20240226 → 0.0.20240228

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 (874) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +1194 -856
  4. package/dist/index.full.min.js +24 -24
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +25 -25
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +1192 -858
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hr.js +1 -1
  94. package/dist/locale/hr.min.js +1 -1
  95. package/dist/locale/hr.min.mjs +1 -1
  96. package/dist/locale/hr.mjs +1 -1
  97. package/dist/locale/hu.js +1 -1
  98. package/dist/locale/hu.min.js +1 -1
  99. package/dist/locale/hu.min.mjs +1 -1
  100. package/dist/locale/hu.mjs +1 -1
  101. package/dist/locale/hy-am.js +1 -1
  102. package/dist/locale/hy-am.min.js +1 -1
  103. package/dist/locale/hy-am.min.mjs +1 -1
  104. package/dist/locale/hy-am.mjs +1 -1
  105. package/dist/locale/id.js +1 -1
  106. package/dist/locale/id.min.js +1 -1
  107. package/dist/locale/id.min.mjs +1 -1
  108. package/dist/locale/id.mjs +1 -1
  109. package/dist/locale/it.js +1 -1
  110. package/dist/locale/it.min.js +1 -1
  111. package/dist/locale/it.min.mjs +1 -1
  112. package/dist/locale/it.mjs +1 -1
  113. package/dist/locale/ja.js +1 -1
  114. package/dist/locale/ja.min.js +1 -1
  115. package/dist/locale/ja.min.mjs +1 -1
  116. package/dist/locale/ja.mjs +1 -1
  117. package/dist/locale/kk.js +1 -1
  118. package/dist/locale/kk.min.js +1 -1
  119. package/dist/locale/kk.min.mjs +1 -1
  120. package/dist/locale/kk.mjs +1 -1
  121. package/dist/locale/km.js +1 -1
  122. package/dist/locale/km.min.js +1 -1
  123. package/dist/locale/km.min.mjs +1 -1
  124. package/dist/locale/km.mjs +1 -1
  125. package/dist/locale/ko.js +1 -1
  126. package/dist/locale/ko.min.js +1 -1
  127. package/dist/locale/ko.min.mjs +1 -1
  128. package/dist/locale/ko.mjs +1 -1
  129. package/dist/locale/ku.js +1 -1
  130. package/dist/locale/ku.min.js +1 -1
  131. package/dist/locale/ku.min.mjs +1 -1
  132. package/dist/locale/ku.mjs +1 -1
  133. package/dist/locale/ky.js +1 -1
  134. package/dist/locale/ky.min.js +1 -1
  135. package/dist/locale/ky.min.mjs +1 -1
  136. package/dist/locale/ky.mjs +1 -1
  137. package/dist/locale/lt.js +1 -1
  138. package/dist/locale/lt.min.js +1 -1
  139. package/dist/locale/lt.min.mjs +1 -1
  140. package/dist/locale/lt.mjs +1 -1
  141. package/dist/locale/lv.js +1 -1
  142. package/dist/locale/lv.min.js +1 -1
  143. package/dist/locale/lv.min.mjs +1 -1
  144. package/dist/locale/lv.mjs +1 -1
  145. package/dist/locale/mg.js +1 -1
  146. package/dist/locale/mg.min.js +1 -1
  147. package/dist/locale/mg.min.mjs +1 -1
  148. package/dist/locale/mg.mjs +1 -1
  149. package/dist/locale/mn.js +1 -1
  150. package/dist/locale/mn.min.js +1 -1
  151. package/dist/locale/mn.min.mjs +1 -1
  152. package/dist/locale/mn.mjs +1 -1
  153. package/dist/locale/nb-no.js +1 -1
  154. package/dist/locale/nb-no.min.js +1 -1
  155. package/dist/locale/nb-no.min.mjs +1 -1
  156. package/dist/locale/nb-no.mjs +1 -1
  157. package/dist/locale/nl.js +1 -1
  158. package/dist/locale/nl.min.js +1 -1
  159. package/dist/locale/nl.min.mjs +1 -1
  160. package/dist/locale/nl.mjs +1 -1
  161. package/dist/locale/pa.js +1 -1
  162. package/dist/locale/pa.min.js +1 -1
  163. package/dist/locale/pa.min.mjs +1 -1
  164. package/dist/locale/pa.mjs +1 -1
  165. package/dist/locale/pl.js +1 -1
  166. package/dist/locale/pl.min.js +1 -1
  167. package/dist/locale/pl.min.mjs +1 -1
  168. package/dist/locale/pl.mjs +1 -1
  169. package/dist/locale/pt-br.js +1 -1
  170. package/dist/locale/pt-br.min.js +1 -1
  171. package/dist/locale/pt-br.min.mjs +1 -1
  172. package/dist/locale/pt-br.mjs +1 -1
  173. package/dist/locale/pt.js +1 -1
  174. package/dist/locale/pt.min.js +1 -1
  175. package/dist/locale/pt.min.mjs +1 -1
  176. package/dist/locale/pt.mjs +1 -1
  177. package/dist/locale/ro.js +1 -1
  178. package/dist/locale/ro.min.js +1 -1
  179. package/dist/locale/ro.min.mjs +1 -1
  180. package/dist/locale/ro.mjs +1 -1
  181. package/dist/locale/ru.js +1 -1
  182. package/dist/locale/ru.min.js +1 -1
  183. package/dist/locale/ru.min.mjs +1 -1
  184. package/dist/locale/ru.mjs +1 -1
  185. package/dist/locale/sk.js +1 -1
  186. package/dist/locale/sk.min.js +1 -1
  187. package/dist/locale/sk.min.mjs +1 -1
  188. package/dist/locale/sk.mjs +1 -1
  189. package/dist/locale/sl.js +1 -1
  190. package/dist/locale/sl.min.js +1 -1
  191. package/dist/locale/sl.min.mjs +1 -1
  192. package/dist/locale/sl.mjs +1 -1
  193. package/dist/locale/sr.js +1 -1
  194. package/dist/locale/sr.min.js +1 -1
  195. package/dist/locale/sr.min.mjs +1 -1
  196. package/dist/locale/sr.mjs +1 -1
  197. package/dist/locale/sv.js +1 -1
  198. package/dist/locale/sv.min.js +1 -1
  199. package/dist/locale/sv.min.mjs +1 -1
  200. package/dist/locale/sv.mjs +1 -1
  201. package/dist/locale/sw.js +1 -1
  202. package/dist/locale/sw.min.js +1 -1
  203. package/dist/locale/sw.min.mjs +1 -1
  204. package/dist/locale/sw.mjs +1 -1
  205. package/dist/locale/ta.js +1 -1
  206. package/dist/locale/ta.min.js +1 -1
  207. package/dist/locale/ta.min.mjs +1 -1
  208. package/dist/locale/ta.mjs +1 -1
  209. package/dist/locale/th.js +1 -1
  210. package/dist/locale/th.min.js +1 -1
  211. package/dist/locale/th.min.mjs +1 -1
  212. package/dist/locale/th.mjs +1 -1
  213. package/dist/locale/tk.js +1 -1
  214. package/dist/locale/tk.min.js +1 -1
  215. package/dist/locale/tk.min.mjs +1 -1
  216. package/dist/locale/tk.mjs +1 -1
  217. package/dist/locale/tr.js +1 -1
  218. package/dist/locale/tr.min.js +1 -1
  219. package/dist/locale/tr.min.mjs +1 -1
  220. package/dist/locale/tr.mjs +1 -1
  221. package/dist/locale/ug-cn.js +1 -1
  222. package/dist/locale/ug-cn.min.js +1 -1
  223. package/dist/locale/ug-cn.min.mjs +1 -1
  224. package/dist/locale/ug-cn.mjs +1 -1
  225. package/dist/locale/uk.js +1 -1
  226. package/dist/locale/uk.min.js +1 -1
  227. package/dist/locale/uk.min.mjs +1 -1
  228. package/dist/locale/uk.mjs +1 -1
  229. package/dist/locale/uz-uz.js +1 -1
  230. package/dist/locale/uz-uz.min.js +1 -1
  231. package/dist/locale/uz-uz.min.mjs +1 -1
  232. package/dist/locale/uz-uz.mjs +1 -1
  233. package/dist/locale/vi.js +1 -1
  234. package/dist/locale/vi.min.js +1 -1
  235. package/dist/locale/vi.min.mjs +1 -1
  236. package/dist/locale/vi.mjs +1 -1
  237. package/dist/locale/zh-cn.js +1 -1
  238. package/dist/locale/zh-cn.min.js +1 -1
  239. package/dist/locale/zh-cn.min.mjs +1 -1
  240. package/dist/locale/zh-cn.mjs +1 -1
  241. package/dist/locale/zh-tw.js +1 -1
  242. package/dist/locale/zh-tw.min.js +1 -1
  243. package/dist/locale/zh-tw.min.mjs +1 -1
  244. package/dist/locale/zh-tw.mjs +1 -1
  245. package/es/component.mjs +4 -1
  246. package/es/component.mjs.map +1 -1
  247. package/es/components/anchor/index.d.ts +196 -0
  248. package/es/components/anchor/index.mjs +13 -0
  249. package/es/components/anchor/index.mjs.map +1 -0
  250. package/es/components/anchor/src/anchor-link.d.ts +6 -0
  251. package/es/components/anchor/src/anchor-link.mjs +10 -0
  252. package/es/components/anchor/src/anchor-link.mjs.map +1 -0
  253. package/es/components/anchor/src/anchor-link.vue.d.ts +41 -0
  254. package/es/components/anchor/src/anchor-link2.mjs +86 -0
  255. package/es/components/anchor/src/anchor-link2.mjs.map +1 -0
  256. package/es/components/anchor/src/anchor.d.ts +23 -0
  257. package/es/components/anchor/src/anchor.mjs +196 -0
  258. package/es/components/anchor/src/anchor.mjs.map +1 -0
  259. package/es/components/anchor/src/anchor.vue.d.ts +115 -0
  260. package/es/components/anchor/src/anchor2.mjs +44 -0
  261. package/es/components/anchor/src/anchor2.mjs.map +1 -0
  262. package/es/components/anchor/src/constants.d.ts +15 -0
  263. package/es/components/anchor/src/constants.mjs +4 -0
  264. package/es/components/anchor/src/constants.mjs.map +1 -0
  265. package/es/components/anchor/style/css.d.ts +2 -0
  266. package/es/components/anchor/style/css.mjs +3 -0
  267. package/es/components/anchor/style/css.mjs.map +1 -0
  268. package/es/components/anchor/style/index.d.ts +2 -0
  269. package/es/components/anchor/style/index.mjs +3 -0
  270. package/es/components/anchor/style/index.mjs.map +1 -0
  271. package/es/components/anchor-link/style/css.d.ts +2 -0
  272. package/es/components/anchor-link/style/css.mjs +3 -0
  273. package/es/components/anchor-link/style/css.mjs.map +1 -0
  274. package/es/components/anchor-link/style/index.d.ts +2 -0
  275. package/es/components/anchor-link/style/index.mjs +3 -0
  276. package/es/components/anchor-link/style/index.mjs.map +1 -0
  277. package/es/components/autocomplete/index.d.ts +23 -23
  278. package/es/components/autocomplete/src/autocomplete.vue.d.ts +23 -23
  279. package/es/components/avatar/index.mjs +2 -2
  280. package/es/components/avatar/src/avatar.mjs +67 -32
  281. package/es/components/avatar/src/avatar.mjs.map +1 -1
  282. package/es/components/avatar/src/avatar2.mjs +32 -67
  283. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  284. package/es/components/backtop/index.mjs +2 -2
  285. package/es/components/backtop/src/backtop.mjs +21 -54
  286. package/es/components/backtop/src/backtop.mjs.map +1 -1
  287. package/es/components/backtop/src/backtop2.mjs +54 -21
  288. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  289. package/es/components/badge/index.d.ts +4 -0
  290. package/es/components/badge/src/badge.d.ts +1 -0
  291. package/es/components/badge/src/badge.mjs +4 -0
  292. package/es/components/badge/src/badge.mjs.map +1 -1
  293. package/es/components/badge/src/badge.vue.d.ts +4 -0
  294. package/es/components/badge/src/badge2.mjs +4 -1
  295. package/es/components/badge/src/badge2.mjs.map +1 -1
  296. package/es/components/calendar/index.mjs +2 -2
  297. package/es/components/calendar/src/calendar.mjs +131 -18
  298. package/es/components/calendar/src/calendar.mjs.map +1 -1
  299. package/es/components/calendar/src/calendar2.mjs +18 -131
  300. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  301. package/es/components/calendar/src/use-calendar.mjs +1 -11
  302. package/es/components/calendar/src/use-calendar.mjs.map +1 -1
  303. package/es/components/carousel/index.d.ts +9 -9
  304. package/es/components/carousel/index.mjs +2 -2
  305. package/es/components/carousel/src/carousel-item.mjs +70 -8
  306. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  307. package/es/components/carousel/src/carousel-item2.mjs +8 -70
  308. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  309. package/es/components/carousel/src/carousel.d.ts +2 -2
  310. package/es/components/carousel/src/carousel.vue.d.ts +9 -9
  311. package/es/components/cascader/index.d.ts +56 -56
  312. package/es/components/cascader/index.mjs +2 -2
  313. package/es/components/cascader/src/cascader.mjs +626 -65
  314. package/es/components/cascader/src/cascader.mjs.map +1 -1
  315. package/es/components/cascader/src/cascader.vue.d.ts +28 -28
  316. package/es/components/cascader/src/cascader2.mjs +65 -626
  317. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  318. package/es/components/checkbox/index.d.ts +120 -0
  319. package/es/components/checkbox/src/checkbox-button.mjs +5 -4
  320. package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
  321. package/es/components/checkbox/src/checkbox-button.vue.d.ts +40 -0
  322. package/es/components/checkbox/src/checkbox.d.ts +24 -1
  323. package/es/components/checkbox/src/checkbox.mjs +12 -0
  324. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  325. package/es/components/checkbox/src/checkbox.vue.d.ts +40 -0
  326. package/es/components/checkbox/src/checkbox2.mjs +5 -4
  327. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  328. package/es/components/checkbox/src/composables/use-checkbox-event.mjs +2 -2
  329. package/es/components/checkbox/src/composables/use-checkbox-event.mjs.map +1 -1
  330. package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -0
  331. package/es/components/checkbox/src/composables/use-checkbox-status.mjs +15 -8
  332. package/es/components/checkbox/src/composables/use-checkbox-status.mjs.map +1 -1
  333. package/es/components/checkbox/src/composables/use-checkbox.d.ts +1 -0
  334. package/es/components/checkbox/src/composables/use-checkbox.mjs +40 -13
  335. package/es/components/checkbox/src/composables/use-checkbox.mjs.map +1 -1
  336. package/es/components/color-picker/index.d.ts +15 -15
  337. package/es/components/color-picker/src/color-picker.vue.d.ts +15 -15
  338. package/es/components/countdown/index.mjs +2 -2
  339. package/es/components/countdown/src/countdown.mjs +23 -74
  340. package/es/components/countdown/src/countdown.mjs.map +1 -1
  341. package/es/components/countdown/src/countdown2.mjs +74 -23
  342. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  343. package/es/components/date-picker/src/composables/use-basic-date-table.mjs +1 -1
  344. package/es/components/date-picker/src/composables/use-basic-date-table.mjs.map +1 -1
  345. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +31 -31
  346. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +31 -31
  347. package/es/components/date-picker/src/panel-utils.d.ts +62 -62
  348. package/es/components/descriptions/index.d.ts +4 -4
  349. package/es/components/descriptions/src/description.d.ts +1 -1
  350. package/es/components/descriptions/src/description.vue.d.ts +4 -4
  351. package/es/components/dialog/index.d.ts +3 -3
  352. package/es/components/dialog/src/dialog.vue.d.ts +3 -3
  353. package/es/components/divider/index.d.ts +8 -8
  354. package/es/components/divider/src/divider.d.ts +2 -2
  355. package/es/components/divider/src/divider.vue.d.ts +8 -8
  356. package/es/components/drawer/index.d.ts +4 -4
  357. package/es/components/drawer/src/drawer.vue.d.ts +4 -4
  358. package/es/components/dropdown/index.d.ts +10 -10
  359. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  360. package/es/components/dropdown/src/dropdown.vue.d.ts +8 -8
  361. package/es/components/focus-trap/src/focus-trap.vue.d.ts +3 -3
  362. package/es/components/form/index.d.ts +9 -9
  363. package/es/components/form/src/form.d.ts +2 -2
  364. package/es/components/form/src/form.vue.d.ts +9 -9
  365. package/es/components/image-viewer/index.mjs +2 -2
  366. package/es/components/image-viewer/src/image-viewer.mjs +45 -401
  367. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  368. package/es/components/image-viewer/src/image-viewer2.mjs +401 -45
  369. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  370. package/es/components/index.d.ts +1 -0
  371. package/es/components/index.mjs +11 -9
  372. package/es/components/index.mjs.map +1 -1
  373. package/es/components/input/index.d.ts +3 -3
  374. package/es/components/input/src/input.d.ts +1 -1
  375. package/es/components/input/src/input.vue.d.ts +3 -3
  376. package/es/components/input-number/index.d.ts +8 -8
  377. package/es/components/input-number/src/input-number.vue.d.ts +8 -8
  378. package/es/components/input-number/src/input-number2.mjs +4 -2
  379. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  380. package/es/components/link/index.d.ts +1 -1
  381. package/es/components/link/src/link.vue.d.ts +1 -1
  382. package/es/components/menu/index.d.ts +6 -12
  383. package/es/components/menu/src/menu.d.ts +8 -8
  384. package/es/components/menu/src/sub-menu.d.ts +0 -4
  385. package/es/components/menu/src/sub-menu.mjs +2 -15
  386. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  387. package/es/components/message/src/message.vue.d.ts +5 -1
  388. package/es/components/message-box/src/index.vue.d.ts +1 -1
  389. package/es/components/notification/src/notification.vue.d.ts +2 -2
  390. package/es/components/page-header/index.d.ts +8 -8
  391. package/es/components/page-header/src/page-header.vue.d.ts +8 -8
  392. package/es/components/pagination/src/components/jumper.vue.d.ts +3 -3
  393. package/es/components/pagination/src/components/sizes.vue.d.ts +16 -19
  394. package/es/components/popconfirm/index.d.ts +12 -12
  395. package/es/components/popconfirm/src/popconfirm.vue.d.ts +12 -12
  396. package/es/components/popover/index.d.ts +12 -12
  397. package/es/components/popover/src/popover.vue.d.ts +12 -12
  398. package/es/components/popper/src/composables/use-content.d.ts +1 -1
  399. package/es/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  400. package/es/components/popper/src/content.vue.d.ts +4 -4
  401. package/es/components/popper/src/utils.d.ts +1 -1
  402. package/es/components/progress/index.d.ts +1 -1
  403. package/es/components/progress/src/progress.vue.d.ts +1 -1
  404. package/es/components/radio/index.d.ts +77 -54
  405. package/es/components/radio/src/radio-button.d.ts +4 -2
  406. package/es/components/radio/src/radio-button.mjs +1 -5
  407. package/es/components/radio/src/radio-button.mjs.map +1 -1
  408. package/es/components/radio/src/radio-button.vue.d.ts +16 -7
  409. package/es/components/radio/src/radio-button2.mjs +4 -4
  410. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  411. package/es/components/radio/src/radio-group.d.ts +3 -3
  412. package/es/components/radio/src/radio-group.mjs +1 -1
  413. package/es/components/radio/src/radio-group.mjs.map +1 -1
  414. package/es/components/radio/src/radio-group.vue.d.ts +10 -10
  415. package/es/components/radio/src/radio.d.ts +10 -6
  416. package/es/components/radio/src/radio.mjs +13 -9
  417. package/es/components/radio/src/radio.mjs.map +1 -1
  418. package/es/components/radio/src/radio.vue.d.ts +23 -18
  419. package/es/components/radio/src/radio2.mjs +4 -4
  420. package/es/components/radio/src/radio2.mjs.map +1 -1
  421. package/es/components/radio/src/use-radio.d.ts +4 -5
  422. package/es/components/radio/src/use-radio.mjs +21 -3
  423. package/es/components/radio/src/use-radio.mjs.map +1 -1
  424. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  425. package/es/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  426. package/es/components/scrollbar/index.d.ts +3 -3
  427. package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
  428. package/es/components/scrollbar/src/scrollbar.vue.d.ts +3 -3
  429. package/es/components/select/index.d.ts +16 -19
  430. package/es/components/select/src/select.d.ts +0 -1
  431. package/es/components/select/src/select.mjs +0 -4
  432. package/es/components/select/src/select.mjs.map +1 -1
  433. package/es/components/select/src/select.vue.d.ts +16 -19
  434. package/es/components/select/src/useSelect.d.ts +16 -16
  435. package/es/components/select/src/useSelect.mjs +3 -19
  436. package/es/components/select/src/useSelect.mjs.map +1 -1
  437. package/es/components/select-v2/index.d.ts +32 -32
  438. package/es/components/select-v2/src/select-dropdown.mjs +5 -10
  439. package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
  440. package/es/components/select-v2/src/select.vue.d.ts +16 -16
  441. package/es/components/select-v2/src/useSelect.d.ts +16 -16
  442. package/es/components/select-v2/src/useSelect.mjs +1 -9
  443. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  444. package/es/components/slider/index.d.ts +36 -36
  445. package/es/components/slider/src/button.vue.d.ts +5 -5
  446. package/es/components/slider/src/composables/use-slide.d.ts +22 -22
  447. package/es/components/slider/src/slider.vue.d.ts +36 -36
  448. package/es/components/space/index.d.ts +3 -3
  449. package/es/components/space/src/space.d.ts +4 -4
  450. package/es/components/steps/index.d.ts +5 -5
  451. package/es/components/steps/src/steps.d.ts +1 -1
  452. package/es/components/steps/src/steps.vue.d.ts +5 -5
  453. package/es/components/switch/index.d.ts +0 -19
  454. package/es/components/switch/index.mjs +2 -2
  455. package/es/components/switch/src/switch.d.ts +0 -4
  456. package/es/components/switch/src/switch.mjs +234 -98
  457. package/es/components/switch/src/switch.mjs.map +1 -1
  458. package/es/components/switch/src/switch.vue.d.ts +0 -19
  459. package/es/components/switch/src/switch2.mjs +82 -268
  460. package/es/components/switch/src/switch2.mjs.map +1 -1
  461. package/es/components/table/src/filter-panel.vue.d.ts +8 -8
  462. package/es/components/table-v2/src/composables/use-styles.mjs +1 -1
  463. package/es/components/table-v2/src/composables/use-styles.mjs.map +1 -1
  464. package/es/components/tabs/index.d.ts +3 -15
  465. package/es/components/tabs/src/tabs.d.ts +4 -22
  466. package/es/components/tabs/src/tabs.mjs +7 -29
  467. package/es/components/tabs/src/tabs.mjs.map +1 -1
  468. package/es/components/teleport/index.d.ts +1 -1
  469. package/es/components/teleport/src/teleport.vue.d.ts +1 -1
  470. package/es/components/time-picker/src/common/picker.vue.d.ts +15 -15
  471. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +23 -23
  472. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +28 -28
  473. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -28
  474. package/es/components/time-select/index.d.ts +64 -76
  475. package/es/components/time-select/src/time-select.vue.d.ts +32 -38
  476. package/es/components/tooltip/index.d.ts +4 -4
  477. package/es/components/tooltip/src/content.vue.d.ts +4 -4
  478. package/es/components/tooltip/src/tooltip.vue.d.ts +4 -4
  479. package/es/components/tooltip-v2/index.d.ts +20 -20
  480. package/es/components/tooltip-v2/index.mjs +1 -1
  481. package/es/components/tooltip-v2/src/content.d.ts +1 -1
  482. package/es/components/tooltip-v2/src/content.vue.d.ts +7 -7
  483. package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
  484. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  485. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +20 -20
  486. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  487. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  488. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  489. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  490. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  491. package/es/components/tour/index.d.ts +32 -31
  492. package/es/components/tour/index.mjs +2 -2
  493. package/es/components/tour/src/content.d.ts +1 -1
  494. package/es/components/tour/src/content.vue.d.ts +9 -8
  495. package/es/components/tour/src/content2.mjs +7 -1
  496. package/es/components/tour/src/content2.mjs.map +1 -1
  497. package/es/components/tour/src/helper.mjs +5 -1
  498. package/es/components/tour/src/helper.mjs.map +1 -1
  499. package/es/components/tour/src/step.d.ts +2 -2
  500. package/es/components/tour/src/step.vue.d.ts +7 -7
  501. package/es/components/tour/src/tour.d.ts +2 -2
  502. package/es/components/tour/src/tour.mjs +152 -69
  503. package/es/components/tour/src/tour.mjs.map +1 -1
  504. package/es/components/tour/src/tour.vue.d.ts +18 -17
  505. package/es/components/tour/src/tour2.mjs +69 -152
  506. package/es/components/tour/src/tour2.mjs.map +1 -1
  507. package/es/components/transfer/index.d.ts +415 -15
  508. package/es/components/transfer/src/transfer-panel.vue.d.ts +83 -3
  509. package/es/components/transfer/src/transfer.vue.d.ts +415 -15
  510. package/es/components/tree-v2/index.d.ts +84 -4
  511. package/es/components/tree-v2/src/tree-node.vue.d.ts +80 -0
  512. package/es/components/tree-v2/src/tree.vue.d.ts +84 -4
  513. package/es/components/upload/index.d.ts +1 -1
  514. package/es/components/upload/src/upload-list.vue.d.ts +1 -1
  515. package/es/components/upload/src/upload.vue.d.ts +1 -1
  516. package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  517. package/es/components/virtual-list/src/builders/build-list.d.ts +4 -4
  518. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
  519. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  520. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
  521. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  522. package/es/components/virtual-list/src/components/scrollbar.d.ts +3 -3
  523. package/es/components/virtual-list/src/props.d.ts +2 -2
  524. package/es/components/watermark/index.d.ts +1 -1
  525. package/es/components/watermark/src/watermark.vue.d.ts +1 -1
  526. package/es/hooks/use-floating/index.d.ts +2 -2
  527. package/es/hooks/use-popper/index.d.ts +1 -1
  528. package/es/index.mjs +11 -9
  529. package/es/index.mjs.map +1 -1
  530. package/es/utils/dom/element.d.ts +3 -0
  531. package/es/utils/dom/element.mjs +16 -0
  532. package/es/utils/dom/element.mjs.map +1 -0
  533. package/es/utils/dom/index.d.ts +1 -0
  534. package/es/utils/dom/index.mjs +2 -1
  535. package/es/utils/dom/index.mjs.map +1 -1
  536. package/es/utils/dom/scroll.d.ts +3 -0
  537. package/es/utils/dom/scroll.mjs +35 -1
  538. package/es/utils/dom/scroll.mjs.map +1 -1
  539. package/es/utils/easings.d.ts +1 -0
  540. package/es/utils/easings.mjs +11 -0
  541. package/es/utils/easings.mjs.map +1 -0
  542. package/es/utils/index.d.ts +2 -0
  543. package/es/utils/index.mjs +5 -2
  544. package/es/utils/index.mjs.map +1 -1
  545. package/es/utils/throttleByRaf.d.ts +4 -0
  546. package/es/utils/throttleByRaf.mjs +22 -0
  547. package/es/utils/throttleByRaf.mjs.map +1 -0
  548. package/es/utils/types.d.ts +1 -0
  549. package/es/utils/types.mjs +4 -1
  550. package/es/utils/types.mjs.map +1 -1
  551. package/es/utils/vue/vnode.d.ts +6 -6
  552. package/es/version.d.ts +1 -1
  553. package/es/version.mjs +1 -1
  554. package/es/version.mjs.map +1 -1
  555. package/lib/component.js +4 -1
  556. package/lib/component.js.map +1 -1
  557. package/lib/components/anchor/index.d.ts +196 -0
  558. package/lib/components/anchor/index.js +21 -0
  559. package/lib/components/anchor/index.js.map +1 -0
  560. package/lib/components/anchor/src/anchor-link.d.ts +6 -0
  561. package/lib/components/anchor/src/anchor-link.js +14 -0
  562. package/lib/components/anchor/src/anchor-link.js.map +1 -0
  563. package/lib/components/anchor/src/anchor-link.vue.d.ts +41 -0
  564. package/lib/components/anchor/src/anchor-link2.js +90 -0
  565. package/lib/components/anchor/src/anchor-link2.js.map +1 -0
  566. package/lib/components/anchor/src/anchor.d.ts +23 -0
  567. package/lib/components/anchor/src/anchor.js +200 -0
  568. package/lib/components/anchor/src/anchor.js.map +1 -0
  569. package/lib/components/anchor/src/anchor.vue.d.ts +115 -0
  570. package/lib/components/anchor/src/anchor2.js +49 -0
  571. package/lib/components/anchor/src/anchor2.js.map +1 -0
  572. package/lib/components/anchor/src/constants.d.ts +15 -0
  573. package/lib/components/anchor/src/constants.js +8 -0
  574. package/lib/components/anchor/src/constants.js.map +1 -0
  575. package/lib/components/anchor/style/css.d.ts +2 -0
  576. package/lib/components/anchor/style/css.js +6 -0
  577. package/lib/components/anchor/style/css.js.map +1 -0
  578. package/lib/components/anchor/style/index.d.ts +2 -0
  579. package/lib/components/anchor/style/index.js +6 -0
  580. package/lib/components/anchor/style/index.js.map +1 -0
  581. package/lib/components/anchor-link/style/css.d.ts +2 -0
  582. package/lib/components/anchor-link/style/css.js +6 -0
  583. package/lib/components/anchor-link/style/css.js.map +1 -0
  584. package/lib/components/anchor-link/style/index.d.ts +2 -0
  585. package/lib/components/anchor-link/style/index.js +6 -0
  586. package/lib/components/anchor-link/style/index.js.map +1 -0
  587. package/lib/components/autocomplete/index.d.ts +23 -23
  588. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +23 -23
  589. package/lib/components/avatar/index.js +2 -2
  590. package/lib/components/avatar/src/avatar.js +67 -33
  591. package/lib/components/avatar/src/avatar.js.map +1 -1
  592. package/lib/components/avatar/src/avatar2.js +33 -67
  593. package/lib/components/avatar/src/avatar2.js.map +1 -1
  594. package/lib/components/backtop/index.js +2 -2
  595. package/lib/components/backtop/src/backtop.js +22 -54
  596. package/lib/components/backtop/src/backtop.js.map +1 -1
  597. package/lib/components/backtop/src/backtop2.js +54 -22
  598. package/lib/components/backtop/src/backtop2.js.map +1 -1
  599. package/lib/components/badge/index.d.ts +4 -0
  600. package/lib/components/badge/src/badge.d.ts +1 -0
  601. package/lib/components/badge/src/badge.js +4 -0
  602. package/lib/components/badge/src/badge.js.map +1 -1
  603. package/lib/components/badge/src/badge.vue.d.ts +4 -0
  604. package/lib/components/badge/src/badge2.js +4 -1
  605. package/lib/components/badge/src/badge2.js.map +1 -1
  606. package/lib/components/calendar/index.js +2 -2
  607. package/lib/components/calendar/src/calendar.js +131 -19
  608. package/lib/components/calendar/src/calendar.js.map +1 -1
  609. package/lib/components/calendar/src/calendar2.js +19 -131
  610. package/lib/components/calendar/src/calendar2.js.map +1 -1
  611. package/lib/components/calendar/src/use-calendar.js +0 -10
  612. package/lib/components/calendar/src/use-calendar.js.map +1 -1
  613. package/lib/components/carousel/index.d.ts +9 -9
  614. package/lib/components/carousel/index.js +2 -2
  615. package/lib/components/carousel/src/carousel-item.js +70 -8
  616. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  617. package/lib/components/carousel/src/carousel-item2.js +8 -70
  618. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  619. package/lib/components/carousel/src/carousel.d.ts +2 -2
  620. package/lib/components/carousel/src/carousel.vue.d.ts +9 -9
  621. package/lib/components/cascader/index.d.ts +56 -56
  622. package/lib/components/cascader/index.js +2 -2
  623. package/lib/components/cascader/src/cascader.js +626 -66
  624. package/lib/components/cascader/src/cascader.js.map +1 -1
  625. package/lib/components/cascader/src/cascader.vue.d.ts +28 -28
  626. package/lib/components/cascader/src/cascader2.js +66 -626
  627. package/lib/components/cascader/src/cascader2.js.map +1 -1
  628. package/lib/components/checkbox/index.d.ts +120 -0
  629. package/lib/components/checkbox/src/checkbox-button.js +5 -4
  630. package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
  631. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +40 -0
  632. package/lib/components/checkbox/src/checkbox.d.ts +24 -1
  633. package/lib/components/checkbox/src/checkbox.js +12 -0
  634. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  635. package/lib/components/checkbox/src/checkbox.vue.d.ts +40 -0
  636. package/lib/components/checkbox/src/checkbox2.js +5 -4
  637. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  638. package/lib/components/checkbox/src/composables/use-checkbox-event.js +2 -2
  639. package/lib/components/checkbox/src/composables/use-checkbox-event.js.map +1 -1
  640. package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -0
  641. package/lib/components/checkbox/src/composables/use-checkbox-status.js +13 -6
  642. package/lib/components/checkbox/src/composables/use-checkbox-status.js.map +1 -1
  643. package/lib/components/checkbox/src/composables/use-checkbox.d.ts +1 -0
  644. package/lib/components/checkbox/src/composables/use-checkbox.js +40 -13
  645. package/lib/components/checkbox/src/composables/use-checkbox.js.map +1 -1
  646. package/lib/components/color-picker/index.d.ts +15 -15
  647. package/lib/components/color-picker/src/color-picker.vue.d.ts +15 -15
  648. package/lib/components/countdown/index.js +2 -2
  649. package/lib/components/countdown/src/countdown.js +24 -74
  650. package/lib/components/countdown/src/countdown.js.map +1 -1
  651. package/lib/components/countdown/src/countdown2.js +74 -24
  652. package/lib/components/countdown/src/countdown2.js.map +1 -1
  653. package/lib/components/date-picker/src/composables/use-basic-date-table.js +1 -1
  654. package/lib/components/date-picker/src/composables/use-basic-date-table.js.map +1 -1
  655. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +31 -31
  656. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +31 -31
  657. package/lib/components/date-picker/src/panel-utils.d.ts +62 -62
  658. package/lib/components/descriptions/index.d.ts +4 -4
  659. package/lib/components/descriptions/src/description.d.ts +1 -1
  660. package/lib/components/descriptions/src/description.vue.d.ts +4 -4
  661. package/lib/components/dialog/index.d.ts +3 -3
  662. package/lib/components/dialog/src/dialog.vue.d.ts +3 -3
  663. package/lib/components/divider/index.d.ts +8 -8
  664. package/lib/components/divider/src/divider.d.ts +2 -2
  665. package/lib/components/divider/src/divider.vue.d.ts +8 -8
  666. package/lib/components/drawer/index.d.ts +4 -4
  667. package/lib/components/drawer/src/drawer.vue.d.ts +4 -4
  668. package/lib/components/dropdown/index.d.ts +10 -10
  669. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  670. package/lib/components/dropdown/src/dropdown.vue.d.ts +8 -8
  671. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +3 -3
  672. package/lib/components/form/index.d.ts +9 -9
  673. package/lib/components/form/src/form.d.ts +2 -2
  674. package/lib/components/form/src/form.vue.d.ts +9 -9
  675. package/lib/components/image-viewer/index.js +2 -2
  676. package/lib/components/image-viewer/src/image-viewer.js +46 -401
  677. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  678. package/lib/components/image-viewer/src/image-viewer2.js +401 -46
  679. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  680. package/lib/components/index.d.ts +1 -0
  681. package/lib/components/index.js +28 -22
  682. package/lib/components/index.js.map +1 -1
  683. package/lib/components/input/index.d.ts +3 -3
  684. package/lib/components/input/src/input.d.ts +1 -1
  685. package/lib/components/input/src/input.vue.d.ts +3 -3
  686. package/lib/components/input-number/index.d.ts +8 -8
  687. package/lib/components/input-number/src/input-number.vue.d.ts +8 -8
  688. package/lib/components/input-number/src/input-number2.js +4 -2
  689. package/lib/components/input-number/src/input-number2.js.map +1 -1
  690. package/lib/components/link/index.d.ts +1 -1
  691. package/lib/components/link/src/link.vue.d.ts +1 -1
  692. package/lib/components/menu/index.d.ts +6 -12
  693. package/lib/components/menu/src/menu.d.ts +8 -8
  694. package/lib/components/menu/src/sub-menu.d.ts +0 -4
  695. package/lib/components/menu/src/sub-menu.js +10 -23
  696. package/lib/components/menu/src/sub-menu.js.map +1 -1
  697. package/lib/components/message/src/message.vue.d.ts +5 -1
  698. package/lib/components/message-box/src/index.vue.d.ts +1 -1
  699. package/lib/components/notification/src/notification.vue.d.ts +2 -2
  700. package/lib/components/page-header/index.d.ts +8 -8
  701. package/lib/components/page-header/src/page-header.vue.d.ts +8 -8
  702. package/lib/components/pagination/src/components/jumper.vue.d.ts +3 -3
  703. package/lib/components/pagination/src/components/sizes.vue.d.ts +16 -19
  704. package/lib/components/popconfirm/index.d.ts +12 -12
  705. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +12 -12
  706. package/lib/components/popover/index.d.ts +12 -12
  707. package/lib/components/popover/src/popover.vue.d.ts +12 -12
  708. package/lib/components/popper/src/composables/use-content.d.ts +1 -1
  709. package/lib/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  710. package/lib/components/popper/src/content.vue.d.ts +4 -4
  711. package/lib/components/popper/src/utils.d.ts +1 -1
  712. package/lib/components/progress/index.d.ts +1 -1
  713. package/lib/components/progress/src/progress.vue.d.ts +1 -1
  714. package/lib/components/radio/index.d.ts +77 -54
  715. package/lib/components/radio/src/radio-button.d.ts +4 -2
  716. package/lib/components/radio/src/radio-button.js +1 -5
  717. package/lib/components/radio/src/radio-button.js.map +1 -1
  718. package/lib/components/radio/src/radio-button.vue.d.ts +16 -7
  719. package/lib/components/radio/src/radio-button2.js +4 -4
  720. package/lib/components/radio/src/radio-button2.js.map +1 -1
  721. package/lib/components/radio/src/radio-group.d.ts +3 -3
  722. package/lib/components/radio/src/radio-group.js +1 -1
  723. package/lib/components/radio/src/radio-group.js.map +1 -1
  724. package/lib/components/radio/src/radio-group.vue.d.ts +10 -10
  725. package/lib/components/radio/src/radio.d.ts +10 -6
  726. package/lib/components/radio/src/radio.js +13 -9
  727. package/lib/components/radio/src/radio.js.map +1 -1
  728. package/lib/components/radio/src/radio.vue.d.ts +23 -18
  729. package/lib/components/radio/src/radio2.js +4 -4
  730. package/lib/components/radio/src/radio2.js.map +1 -1
  731. package/lib/components/radio/src/use-radio.d.ts +4 -5
  732. package/lib/components/radio/src/use-radio.js +21 -3
  733. package/lib/components/radio/src/use-radio.js.map +1 -1
  734. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  735. package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  736. package/lib/components/scrollbar/index.d.ts +3 -3
  737. package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
  738. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +3 -3
  739. package/lib/components/select/index.d.ts +16 -19
  740. package/lib/components/select/src/select.d.ts +0 -1
  741. package/lib/components/select/src/select.js +0 -4
  742. package/lib/components/select/src/select.js.map +1 -1
  743. package/lib/components/select/src/select.vue.d.ts +16 -19
  744. package/lib/components/select/src/useSelect.d.ts +16 -16
  745. package/lib/components/select/src/useSelect.js +4 -20
  746. package/lib/components/select/src/useSelect.js.map +1 -1
  747. package/lib/components/select-v2/index.d.ts +32 -32
  748. package/lib/components/select-v2/src/select-dropdown.js +5 -10
  749. package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
  750. package/lib/components/select-v2/src/select.vue.d.ts +16 -16
  751. package/lib/components/select-v2/src/useSelect.d.ts +16 -16
  752. package/lib/components/select-v2/src/useSelect.js +1 -9
  753. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  754. package/lib/components/slider/index.d.ts +36 -36
  755. package/lib/components/slider/src/button.vue.d.ts +5 -5
  756. package/lib/components/slider/src/composables/use-slide.d.ts +22 -22
  757. package/lib/components/slider/src/slider.vue.d.ts +36 -36
  758. package/lib/components/space/index.d.ts +3 -3
  759. package/lib/components/space/src/space.d.ts +4 -4
  760. package/lib/components/steps/index.d.ts +5 -5
  761. package/lib/components/steps/src/steps.d.ts +1 -1
  762. package/lib/components/steps/src/steps.vue.d.ts +5 -5
  763. package/lib/components/switch/index.d.ts +0 -19
  764. package/lib/components/switch/index.js +2 -2
  765. package/lib/components/switch/src/switch.d.ts +0 -4
  766. package/lib/components/switch/src/switch.js +233 -98
  767. package/lib/components/switch/src/switch.js.map +1 -1
  768. package/lib/components/switch/src/switch.vue.d.ts +0 -19
  769. package/lib/components/switch/src/switch2.js +82 -267
  770. package/lib/components/switch/src/switch2.js.map +1 -1
  771. package/lib/components/table/src/filter-panel.vue.d.ts +8 -8
  772. package/lib/components/table-v2/src/composables/use-styles.js +1 -1
  773. package/lib/components/table-v2/src/composables/use-styles.js.map +1 -1
  774. package/lib/components/tabs/index.d.ts +3 -15
  775. package/lib/components/tabs/src/tabs.d.ts +4 -22
  776. package/lib/components/tabs/src/tabs.js +7 -29
  777. package/lib/components/tabs/src/tabs.js.map +1 -1
  778. package/lib/components/teleport/index.d.ts +1 -1
  779. package/lib/components/teleport/src/teleport.vue.d.ts +1 -1
  780. package/lib/components/time-picker/src/common/picker.vue.d.ts +15 -15
  781. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +23 -23
  782. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +28 -28
  783. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -28
  784. package/lib/components/time-select/index.d.ts +64 -76
  785. package/lib/components/time-select/src/time-select.vue.d.ts +32 -38
  786. package/lib/components/tooltip/index.d.ts +4 -4
  787. package/lib/components/tooltip/src/content.vue.d.ts +4 -4
  788. package/lib/components/tooltip/src/tooltip.vue.d.ts +4 -4
  789. package/lib/components/tooltip-v2/index.d.ts +20 -20
  790. package/lib/components/tooltip-v2/index.js +1 -1
  791. package/lib/components/tooltip-v2/src/content.d.ts +1 -1
  792. package/lib/components/tooltip-v2/src/content.vue.d.ts +7 -7
  793. package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
  794. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  795. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +20 -20
  796. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  797. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  798. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  799. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  800. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  801. package/lib/components/tour/index.d.ts +32 -31
  802. package/lib/components/tour/index.js +2 -2
  803. package/lib/components/tour/src/content.d.ts +1 -1
  804. package/lib/components/tour/src/content.vue.d.ts +9 -8
  805. package/lib/components/tour/src/content2.js +7 -1
  806. package/lib/components/tour/src/content2.js.map +1 -1
  807. package/lib/components/tour/src/helper.js +5 -1
  808. package/lib/components/tour/src/helper.js.map +1 -1
  809. package/lib/components/tour/src/step.d.ts +2 -2
  810. package/lib/components/tour/src/step.vue.d.ts +7 -7
  811. package/lib/components/tour/src/tour.d.ts +2 -2
  812. package/lib/components/tour/src/tour.js +151 -69
  813. package/lib/components/tour/src/tour.js.map +1 -1
  814. package/lib/components/tour/src/tour.vue.d.ts +18 -17
  815. package/lib/components/tour/src/tour2.js +69 -151
  816. package/lib/components/tour/src/tour2.js.map +1 -1
  817. package/lib/components/transfer/index.d.ts +415 -15
  818. package/lib/components/transfer/src/transfer-panel.vue.d.ts +83 -3
  819. package/lib/components/transfer/src/transfer.vue.d.ts +415 -15
  820. package/lib/components/tree-v2/index.d.ts +84 -4
  821. package/lib/components/tree-v2/src/tree-node.vue.d.ts +80 -0
  822. package/lib/components/tree-v2/src/tree.vue.d.ts +84 -4
  823. package/lib/components/upload/index.d.ts +1 -1
  824. package/lib/components/upload/src/upload-list.vue.d.ts +1 -1
  825. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  826. package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  827. package/lib/components/virtual-list/src/builders/build-list.d.ts +4 -4
  828. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
  829. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  830. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
  831. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  832. package/lib/components/virtual-list/src/components/scrollbar.d.ts +3 -3
  833. package/lib/components/virtual-list/src/props.d.ts +2 -2
  834. package/lib/components/watermark/index.d.ts +1 -1
  835. package/lib/components/watermark/src/watermark.vue.d.ts +1 -1
  836. package/lib/hooks/use-floating/index.d.ts +2 -2
  837. package/lib/hooks/use-popper/index.d.ts +1 -1
  838. package/lib/index.js +119 -113
  839. package/lib/index.js.map +1 -1
  840. package/lib/utils/dom/element.d.ts +3 -0
  841. package/lib/utils/dom/element.js +20 -0
  842. package/lib/utils/dom/element.js.map +1 -0
  843. package/lib/utils/dom/index.d.ts +1 -0
  844. package/lib/utils/dom/index.js +5 -0
  845. package/lib/utils/dom/index.js.map +1 -1
  846. package/lib/utils/dom/scroll.d.ts +3 -0
  847. package/lib/utils/dom/scroll.js +37 -0
  848. package/lib/utils/dom/scroll.js.map +1 -1
  849. package/lib/utils/easings.d.ts +1 -0
  850. package/lib/utils/easings.js +15 -0
  851. package/lib/utils/easings.js.map +1 -0
  852. package/lib/utils/index.d.ts +2 -0
  853. package/lib/utils/index.js +10 -0
  854. package/lib/utils/index.js.map +1 -1
  855. package/lib/utils/throttleByRaf.d.ts +4 -0
  856. package/lib/utils/throttleByRaf.js +26 -0
  857. package/lib/utils/throttleByRaf.js.map +1 -0
  858. package/lib/utils/types.d.ts +1 -0
  859. package/lib/utils/types.js +4 -0
  860. package/lib/utils/types.js.map +1 -1
  861. package/lib/utils/vue/vnode.d.ts +6 -6
  862. package/lib/version.d.ts +1 -1
  863. package/lib/version.js +1 -1
  864. package/lib/version.js.map +1 -1
  865. package/package.json +2 -2
  866. package/tags.json +1 -1
  867. package/theme-chalk/el-anchor-link.css +1 -0
  868. package/theme-chalk/el-anchor.css +1 -0
  869. package/theme-chalk/index.css +1 -1
  870. package/theme-chalk/src/anchor-link.scss +42 -0
  871. package/theme-chalk/src/anchor.scss +93 -0
  872. package/theme-chalk/src/common/var.scss +16 -0
  873. package/theme-chalk/src/index.scss +2 -0
  874. package/web-types.json +1 -1
@@ -3043,7 +3043,7 @@ declare const _default: import("vue").DefineComponent<{
3043
3043
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
3044
3044
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
3045
3045
  }>>;
3046
- focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
3046
+ focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
3047
3047
  trapped: import("vue").Ref<boolean>;
3048
3048
  onFocusAfterReleased: (event: CustomEvent<any>) => void;
3049
3049
  onFocusAfterTrapped: () => void;
@@ -3105,7 +3105,7 @@ declare const _default: import("vue").DefineComponent<{
3105
3105
  trapped: BooleanConstructor;
3106
3106
  focusTrapEl: import("vue").PropType<HTMLElement>;
3107
3107
  focusStartEl: {
3108
- type: import("vue").PropType<HTMLElement | "first" | "container">;
3108
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
3109
3109
  default: string;
3110
3110
  };
3111
3111
  }, {
@@ -3115,7 +3115,7 @@ declare const _default: import("vue").DefineComponent<{
3115
3115
  trapped: BooleanConstructor;
3116
3116
  focusTrapEl: import("vue").PropType<HTMLElement>;
3117
3117
  focusStartEl: {
3118
- type: import("vue").PropType<HTMLElement | "first" | "container">;
3118
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
3119
3119
  default: string;
3120
3120
  };
3121
3121
  }>> & {
@@ -3128,7 +3128,7 @@ declare const _default: import("vue").DefineComponent<{
3128
3128
  }, {
3129
3129
  trapped: boolean;
3130
3130
  loop: boolean;
3131
- focusStartEl: HTMLElement | "first" | "container";
3131
+ focusStartEl: HTMLElement | "container" | "first";
3132
3132
  }>;
3133
3133
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3134
3134
  mouseenter: (evt: MouseEvent) => boolean;
@@ -5996,7 +5996,7 @@ declare const _default: import("vue").DefineComponent<{
5996
5996
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
5997
5997
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
5998
5998
  }>>;
5999
- focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
5999
+ focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
6000
6000
  trapped: import("vue").Ref<boolean>;
6001
6001
  onFocusAfterReleased: (event: CustomEvent<any>) => void;
6002
6002
  onFocusAfterTrapped: () => void;
@@ -6058,7 +6058,7 @@ declare const _default: import("vue").DefineComponent<{
6058
6058
  trapped: BooleanConstructor;
6059
6059
  focusTrapEl: import("vue").PropType<HTMLElement>;
6060
6060
  focusStartEl: {
6061
- type: import("vue").PropType<HTMLElement | "first" | "container">;
6061
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
6062
6062
  default: string;
6063
6063
  };
6064
6064
  }, {
@@ -6068,7 +6068,7 @@ declare const _default: import("vue").DefineComponent<{
6068
6068
  trapped: BooleanConstructor;
6069
6069
  focusTrapEl: import("vue").PropType<HTMLElement>;
6070
6070
  focusStartEl: {
6071
- type: import("vue").PropType<HTMLElement | "first" | "container">;
6071
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
6072
6072
  default: string;
6073
6073
  };
6074
6074
  }>> & {
@@ -6081,7 +6081,7 @@ declare const _default: import("vue").DefineComponent<{
6081
6081
  }, {
6082
6082
  trapped: boolean;
6083
6083
  loop: boolean;
6084
- focusStartEl: HTMLElement | "first" | "container";
6084
+ focusStartEl: HTMLElement | "container" | "first";
6085
6085
  }>;
6086
6086
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6087
6087
  mouseenter: (evt: MouseEvent) => boolean;
@@ -9255,7 +9255,7 @@ declare const _default: import("vue").DefineComponent<{
9255
9255
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
9256
9256
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
9257
9257
  }>>;
9258
- focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
9258
+ focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
9259
9259
  trapped: import("vue").Ref<boolean>;
9260
9260
  onFocusAfterReleased: (event: CustomEvent<any>) => void;
9261
9261
  onFocusAfterTrapped: () => void;
@@ -9317,7 +9317,7 @@ declare const _default: import("vue").DefineComponent<{
9317
9317
  trapped: BooleanConstructor;
9318
9318
  focusTrapEl: import("vue").PropType<HTMLElement>;
9319
9319
  focusStartEl: {
9320
- type: import("vue").PropType<HTMLElement | "first" | "container">;
9320
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
9321
9321
  default: string;
9322
9322
  };
9323
9323
  }, {
@@ -9327,7 +9327,7 @@ declare const _default: import("vue").DefineComponent<{
9327
9327
  trapped: BooleanConstructor;
9328
9328
  focusTrapEl: import("vue").PropType<HTMLElement>;
9329
9329
  focusStartEl: {
9330
- type: import("vue").PropType<HTMLElement | "first" | "container">;
9330
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
9331
9331
  default: string;
9332
9332
  };
9333
9333
  }>> & {
@@ -9340,7 +9340,7 @@ declare const _default: import("vue").DefineComponent<{
9340
9340
  }, {
9341
9341
  trapped: boolean;
9342
9342
  loop: boolean;
9343
- focusStartEl: HTMLElement | "first" | "container";
9343
+ focusStartEl: HTMLElement | "container" | "first";
9344
9344
  }>;
9345
9345
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9346
9346
  mouseenter: (evt: MouseEvent) => boolean;
@@ -10285,7 +10285,7 @@ declare const _default: import("vue").DefineComponent<{
10285
10285
  };
10286
10286
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
10287
10287
  readonly resize: {
10288
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
10288
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "vertical" | "horizontal" | "both", unknown>>;
10289
10289
  readonly required: false;
10290
10290
  readonly validator: ((val: unknown) => boolean) | undefined;
10291
10291
  __epPropKey: true;
@@ -10363,7 +10363,7 @@ declare const _default: import("vue").DefineComponent<{
10363
10363
  };
10364
10364
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
10365
10365
  readonly resize: {
10366
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
10366
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "vertical" | "horizontal" | "both", unknown>>;
10367
10367
  readonly required: false;
10368
10368
  readonly validator: ((val: unknown) => boolean) | undefined;
10369
10369
  __epPropKey: true;
@@ -10628,7 +10628,7 @@ declare const _default: import("vue").DefineComponent<{
10628
10628
  };
10629
10629
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
10630
10630
  readonly resize: {
10631
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
10631
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "vertical" | "horizontal" | "both", unknown>>;
10632
10632
  readonly required: false;
10633
10633
  readonly validator: ((val: unknown) => boolean) | undefined;
10634
10634
  __epPropKey: true;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var countdown$1 = require('./src/countdown.js');
7
- var countdown = require('./src/countdown2.js');
6
+ var countdown$1 = require('./src/countdown2.js');
7
+ var countdown = require('./src/countdown.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElCountdown = install.withInstall(countdown$1["default"]);
@@ -2,83 +2,33 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index = require('../../statistic/index.js');
7
5
  require('../../../utils/index.js');
8
- var countdown = require('./countdown2.js');
9
- var utils = require('./utils.js');
10
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
- var raf = require('../../../utils/raf.js');
6
+ require('../../../constants/index.js');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var event = require('../../../constants/event.js');
9
+ var types = require('../../../utils/types.js');
12
10
 
13
- const __default__ = vue.defineComponent({
14
- name: "ElCountdown"
15
- });
16
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
- ...__default__,
18
- props: countdown.countdownProps,
19
- emits: countdown.countdownEmits,
20
- setup(__props, { expose, emit }) {
21
- const props = __props;
22
- let timer;
23
- const rawValue = vue.ref(utils.getTime(props.value) - Date.now());
24
- const displayValue = vue.computed(() => utils.formatTime(rawValue.value, props.format));
25
- const formatter = (val) => utils.formatTime(val, props.format);
26
- const stopTimer = () => {
27
- if (timer) {
28
- raf.cAF(timer);
29
- timer = void 0;
30
- }
31
- };
32
- const startTimer = () => {
33
- const timestamp = utils.getTime(props.value);
34
- const frameFunc = () => {
35
- let diff = timestamp - Date.now();
36
- emit("change", diff);
37
- if (diff <= 0) {
38
- diff = 0;
39
- stopTimer();
40
- emit("finish");
41
- } else {
42
- timer = raf.rAF(frameFunc);
43
- }
44
- rawValue.value = diff;
45
- };
46
- timer = raf.rAF(frameFunc);
47
- };
48
- vue.watch(() => [props.value, props.format], () => {
49
- stopTimer();
50
- startTimer();
51
- }, {
52
- immediate: true
53
- });
54
- vue.onBeforeUnmount(() => {
55
- stopTimer();
56
- });
57
- expose({
58
- displayValue
59
- });
60
- return (_ctx, _cache) => {
61
- return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
62
- value: rawValue.value,
63
- title: _ctx.title,
64
- prefix: _ctx.prefix,
65
- suffix: _ctx.suffix,
66
- "value-style": _ctx.valueStyle,
67
- formatter
68
- }, vue.createSlots({ _: 2 }, [
69
- vue.renderList(_ctx.$slots, (_, name) => {
70
- return {
71
- name,
72
- fn: vue.withCtx(() => [
73
- vue.renderSlot(_ctx.$slots, name)
74
- ])
75
- };
76
- })
77
- ]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
78
- };
11
+ const countdownProps = runtime.buildProps({
12
+ format: {
13
+ type: String,
14
+ default: "HH:mm:ss"
15
+ },
16
+ prefix: String,
17
+ suffix: String,
18
+ title: String,
19
+ value: {
20
+ type: runtime.definePropType([Number, Object]),
21
+ default: 0
22
+ },
23
+ valueStyle: {
24
+ type: runtime.definePropType([String, Object, Array])
79
25
  }
80
26
  });
81
- var Countdown = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "countdown.vue"]]);
27
+ const countdownEmits = {
28
+ finish: () => true,
29
+ [event.CHANGE_EVENT]: (value) => types.isNumber(value)
30
+ };
82
31
 
83
- exports["default"] = Countdown;
32
+ exports.countdownEmits = countdownEmits;
33
+ exports.countdownProps = countdownProps;
84
34
  //# sourceMappingURL=countdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"countdown.js","sources":["../../../../../../packages/components/countdown/src/countdown.vue"],"sourcesContent":["<template>\n <el-statistic\n :value=\"rawValue\"\n :title=\"title\"\n :prefix=\"prefix\"\n :suffix=\"suffix\"\n :value-style=\"valueStyle\"\n :formatter=\"formatter\"\n >\n <template v-for=\"(_, name) in $slots\" #[name]>\n <slot :name=\"name\" />\n </template>\n </el-statistic>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { ElStatistic } from '@element-plus/components/statistic'\nimport { cAF, rAF } from '@element-plus/utils'\nimport { countdownEmits, countdownProps } from './countdown'\nimport { formatTime, getTime } from './utils'\n\ndefineOptions({\n name: 'ElCountdown',\n})\n\nconst props = defineProps(countdownProps)\nconst emit = defineEmits(countdownEmits)\n\nlet timer: ReturnType<typeof rAF> | undefined\nconst rawValue = ref(getTime(props.value) - Date.now())\nconst displayValue = computed(() => formatTime(rawValue.value, props.format))\n\nconst formatter = (val: number) => formatTime(val, props.format)\n\nconst stopTimer = () => {\n if (timer) {\n cAF(timer)\n timer = undefined\n }\n}\n\nconst startTimer = () => {\n const timestamp = getTime(props.value)\n const frameFunc = () => {\n let diff = timestamp - Date.now()\n emit('change', diff)\n if (diff <= 0) {\n diff = 0\n stopTimer()\n emit('finish')\n } else {\n timer = rAF(frameFunc)\n }\n rawValue.value = diff\n }\n timer = rAF(frameFunc)\n}\n\nwatch(\n () => [props.value, props.format],\n () => {\n stopTimer()\n startTimer()\n },\n {\n immediate: true,\n }\n)\n\nonBeforeUnmount(() => {\n stopTimer()\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["ref","getTime","computed","formatTime","cAF","rAF","watch","onBeforeUnmount"],"mappings":";;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,C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MAAU,SAAA,EAAA,CAAA;AACV,MAAW,UAAA,EAAA,CAAA;AAAA,KAEb,EAAA;AAAA,MACE,SAAW,EAAA,IAAA;AAAA,KAEf,CAAA,CAAA;AAEA,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"countdown.js","sources":["../../../../../../packages/components/countdown/src/countdown.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Countdown from './countdown.vue'\n\nexport const countdownProps = buildProps({\n /**\n * @description Formatting the countdown display\n */\n format: {\n type: String,\n default: 'HH:mm:ss',\n },\n /**\n * @description Sets the prefix of a countdown\n */\n prefix: String,\n /**\n * @description Sets the suffix of a countdown\n */\n suffix: String,\n /**\n * @description countdown titles\n */\n title: String,\n /**\n * @description target time\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Styles countdown values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type CountdownProps = ExtractPropTypes<typeof countdownProps>\n\nexport const countdownEmits = {\n finish: () => true,\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n}\nexport type CountdownEmits = typeof countdownEmits\n\nexport type CountdownInstance = InstanceType<typeof Countdown>\n"],"names":["buildProps","definePropType","CHANGE_EVENT","isNumber"],"mappings":";;;;;;;;;;AAEY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKC,cAAQ,CAAC,KAAK,CAAC;AAC5C;;;;;"}
@@ -2,33 +2,83 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ var index = require('../../statistic/index.js');
5
7
  require('../../../utils/index.js');
6
- require('../../../constants/index.js');
7
- var runtime = require('../../../utils/vue/props/runtime.js');
8
- var event = require('../../../constants/event.js');
9
- var types = require('../../../utils/types.js');
8
+ var countdown = require('./countdown.js');
9
+ var utils = require('./utils.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
+ var raf = require('../../../utils/raf.js');
10
12
 
11
- const countdownProps = runtime.buildProps({
12
- format: {
13
- type: String,
14
- default: "HH:mm:ss"
15
- },
16
- prefix: String,
17
- suffix: String,
18
- title: String,
19
- value: {
20
- type: runtime.definePropType([Number, Object]),
21
- default: 0
22
- },
23
- valueStyle: {
24
- type: runtime.definePropType([String, Object, Array])
13
+ const __default__ = vue.defineComponent({
14
+ name: "ElCountdown"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
+ ...__default__,
18
+ props: countdown.countdownProps,
19
+ emits: countdown.countdownEmits,
20
+ setup(__props, { expose, emit }) {
21
+ const props = __props;
22
+ let timer;
23
+ const rawValue = vue.ref(utils.getTime(props.value) - Date.now());
24
+ const displayValue = vue.computed(() => utils.formatTime(rawValue.value, props.format));
25
+ const formatter = (val) => utils.formatTime(val, props.format);
26
+ const stopTimer = () => {
27
+ if (timer) {
28
+ raf.cAF(timer);
29
+ timer = void 0;
30
+ }
31
+ };
32
+ const startTimer = () => {
33
+ const timestamp = utils.getTime(props.value);
34
+ const frameFunc = () => {
35
+ let diff = timestamp - Date.now();
36
+ emit("change", diff);
37
+ if (diff <= 0) {
38
+ diff = 0;
39
+ stopTimer();
40
+ emit("finish");
41
+ } else {
42
+ timer = raf.rAF(frameFunc);
43
+ }
44
+ rawValue.value = diff;
45
+ };
46
+ timer = raf.rAF(frameFunc);
47
+ };
48
+ vue.watch(() => [props.value, props.format], () => {
49
+ stopTimer();
50
+ startTimer();
51
+ }, {
52
+ immediate: true
53
+ });
54
+ vue.onBeforeUnmount(() => {
55
+ stopTimer();
56
+ });
57
+ expose({
58
+ displayValue
59
+ });
60
+ return (_ctx, _cache) => {
61
+ return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
62
+ value: rawValue.value,
63
+ title: _ctx.title,
64
+ prefix: _ctx.prefix,
65
+ suffix: _ctx.suffix,
66
+ "value-style": _ctx.valueStyle,
67
+ formatter
68
+ }, vue.createSlots({ _: 2 }, [
69
+ vue.renderList(_ctx.$slots, (_, name) => {
70
+ return {
71
+ name,
72
+ fn: vue.withCtx(() => [
73
+ vue.renderSlot(_ctx.$slots, name)
74
+ ])
75
+ };
76
+ })
77
+ ]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
78
+ };
25
79
  }
26
80
  });
27
- const countdownEmits = {
28
- finish: () => true,
29
- [event.CHANGE_EVENT]: (value) => types.isNumber(value)
30
- };
81
+ var Countdown = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "countdown.vue"]]);
31
82
 
32
- exports.countdownEmits = countdownEmits;
33
- exports.countdownProps = countdownProps;
83
+ exports["default"] = Countdown;
34
84
  //# sourceMappingURL=countdown2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"countdown2.js","sources":["../../../../../../packages/components/countdown/src/countdown.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Countdown from './countdown.vue'\n\nexport const countdownProps = buildProps({\n /**\n * @description Formatting the countdown display\n */\n format: {\n type: String,\n default: 'HH:mm:ss',\n },\n /**\n * @description Sets the prefix of a countdown\n */\n prefix: String,\n /**\n * @description Sets the suffix of a countdown\n */\n suffix: String,\n /**\n * @description countdown titles\n */\n title: String,\n /**\n * @description target time\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Styles countdown values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type CountdownProps = ExtractPropTypes<typeof countdownProps>\n\nexport const countdownEmits = {\n finish: () => true,\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n}\nexport type CountdownEmits = typeof countdownEmits\n\nexport type CountdownInstance = InstanceType<typeof Countdown>\n"],"names":["buildProps","definePropType","CHANGE_EVENT","isNumber"],"mappings":";;;;;;;;;;AAEY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKC,cAAQ,CAAC,KAAK,CAAC;AAC5C;;;;;"}
1
+ {"version":3,"file":"countdown2.js","sources":["../../../../../../packages/components/countdown/src/countdown.vue"],"sourcesContent":["<template>\n <el-statistic\n :value=\"rawValue\"\n :title=\"title\"\n :prefix=\"prefix\"\n :suffix=\"suffix\"\n :value-style=\"valueStyle\"\n :formatter=\"formatter\"\n >\n <template v-for=\"(_, name) in $slots\" #[name]>\n <slot :name=\"name\" />\n </template>\n </el-statistic>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { ElStatistic } from '@element-plus/components/statistic'\nimport { cAF, rAF } from '@element-plus/utils'\nimport { countdownEmits, countdownProps } from './countdown'\nimport { formatTime, getTime } from './utils'\n\ndefineOptions({\n name: 'ElCountdown',\n})\n\nconst props = defineProps(countdownProps)\nconst emit = defineEmits(countdownEmits)\n\nlet timer: ReturnType<typeof rAF> | undefined\nconst rawValue = ref(getTime(props.value) - Date.now())\nconst displayValue = computed(() => formatTime(rawValue.value, props.format))\n\nconst formatter = (val: number) => formatTime(val, props.format)\n\nconst stopTimer = () => {\n if (timer) {\n cAF(timer)\n timer = undefined\n }\n}\n\nconst startTimer = () => {\n const timestamp = getTime(props.value)\n const frameFunc = () => {\n let diff = timestamp - Date.now()\n emit('change', diff)\n if (diff <= 0) {\n diff = 0\n stopTimer()\n emit('finish')\n } else {\n timer = rAF(frameFunc)\n }\n rawValue.value = diff\n }\n timer = rAF(frameFunc)\n}\n\nwatch(\n () => [props.value, props.format],\n () => {\n stopTimer()\n startTimer()\n },\n {\n immediate: true,\n }\n)\n\nonBeforeUnmount(() => {\n stopTimer()\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["ref","getTime","computed","formatTime","cAF","rAF","watch","onBeforeUnmount"],"mappings":";;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAI,IAAA,KAAA,CAAA;AACJ,IAAM,MAAA,QAAA,GAAWA,QAAIC,aAAQ,CAAA,KAAA,CAAM,KAAK,CAAI,GAAA,IAAA,CAAK,KAAK,CAAA,CAAA;AACtD,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAMC,gBAAA,CAAW,SAAS,KAAO,EAAA,KAAA,CAAM,MAAM,CAAC,CAAA,CAAA;AAE5E,IAAA,MAAM,YAAY,CAAC,GAAA,KAAgBA,gBAAW,CAAA,GAAA,EAAK,MAAM,MAAM,CAAA,CAAA;AAE/D,IAAA,MAAM,YAAY,MAAM;AACtB,MAAA,IAAI,KAAO,EAAA;AACT,QAAAC,OAAA,CAAI,KAAK,CAAA,CAAA;AACT,QAAQ,KAAA,GAAA,KAAA,CAAA,CAAA;AAAA,OACV;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,aAAa,MAAM;AACvB,MAAM,MAAA,SAAA,GAAYH,aAAQ,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AACrC,MAAA,MAAM,YAAY,MAAM;AACtB,QAAI,IAAA,IAAA,GAAO,SAAY,GAAA,IAAA,CAAK,GAAI,EAAA,CAAA;AAChC,QAAA,IAAA,CAAK,UAAU,IAAI,CAAA,CAAA;AACnB,QAAA,IAAI,QAAQ,CAAG,EAAA;AACb,UAAO,IAAA,GAAA,CAAA,CAAA;AACP,UAAU,SAAA,EAAA,CAAA;AACV,UAAA,IAAA,CAAK,QAAQ,CAAA,CAAA;AAAA,SACR,MAAA;AACL,UAAA,KAAA,GAAQI,QAAI,SAAS,CAAA,CAAA;AAAA,SACvB;AACA,QAAA,QAAA,CAAS,KAAQ,GAAA,IAAA,CAAA;AAAA,OACnB,CAAA;AACA,MAAA,KAAA,GAAQA,QAAI,SAAS,CAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAAC,SAAA,CACE,MAAM,CAAC,KAAA,CAAM,OAAO,KAAM,CAAA,MAAM,GAChC,MAAM;AACJ,MAAU,SAAA,EAAA,CAAA;AACV,MAAW,UAAA,EAAA,CAAA;AAAA,KAEb,EAAA;AAAA,MACE,SAAW,EAAA,IAAA;AAAA,KAEf,CAAA,CAAA;AAEA,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -86,7 +86,7 @@ const useBasicDateTable = (props, emit) => {
86
86
  const _selectedDate = vue.unref(selectedDate);
87
87
  const shouldIncrement = setDateText(cell, { count, rowIndex, columnIndex });
88
88
  const cellDate = cell.dayjs.toDate();
89
- cell.selected = _selectedDate.find((d) => d.valueOf() === cell.dayjs.valueOf());
89
+ cell.selected = _selectedDate.find((d) => d.isSame(cell.dayjs, "day"));
90
90
  cell.isSelected = !!cell.selected;
91
91
  cell.isCurrent = isCurrent(cell);
92
92
  cell.disabled = disabledDate == null ? void 0 : disabledDate(cellDate);
@@ -1 +1 @@
1
- {"version":3,"file":"use-basic-date-table.js","sources":["../../../../../../../packages/components/date-picker/src/composables/use-basic-date-table.ts"],"sourcesContent":["import { computed, nextTick, ref, unref, watch } from 'vue'\nimport dayjs from 'dayjs'\nimport { flatten } from 'lodash-unified'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { castArray } from '@element-plus/utils'\nimport { buildPickerTable } from '../utils'\n\nimport type { SetupContext } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type { DateCell } from '../date-picker.type'\nimport type {\n BasicDateTableEmits,\n BasicDateTableProps,\n} from '../props/basic-date-table'\n\nconst isNormalDay = (type = '') => {\n return ['normal', 'today'].includes(type)\n}\n\nexport const useBasicDateTable = (\n props: BasicDateTableProps,\n emit: SetupContext<BasicDateTableEmits>['emit']\n) => {\n const { lang } = useLocale()\n const tbodyRef = ref<HTMLElement>()\n const currentCellRef = ref<HTMLElement>()\n // data\n const lastRow = ref<number>()\n const lastColumn = ref<number>()\n const tableRows = ref<DateCell[][]>([[], [], [], [], [], []])\n\n let focusWithClick = false\n\n // todo better way to get Day.js locale object\n const firstDayOfWeek = (props.date as any).$locale().weekStart || 7\n const WEEKS_CONSTANT = props.date\n .locale('en')\n .localeData()\n .weekdaysShort()\n .map((_) => _.toLowerCase())\n\n const offsetDay = computed(() => {\n // Sunday 7(0), cal the left and right offset days, 3217654, such as Monday is -1, the is to adjust the position of the first two rows of dates\n return firstDayOfWeek > 3 ? 7 - firstDayOfWeek : -firstDayOfWeek\n })\n\n const startDate = computed(() => {\n const startDayOfMonth = props.date.startOf('month')\n return startDayOfMonth.subtract(startDayOfMonth.day() || 7, 'day')\n })\n\n const WEEKS = computed(() => {\n return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(\n firstDayOfWeek,\n firstDayOfWeek + 7\n )\n })\n\n const hasCurrent = computed<boolean>(() => {\n return flatten(unref(rows)).some((row) => {\n return row.isCurrent\n })\n })\n\n const days = computed(() => {\n const startOfMonth = props.date.startOf('month')\n const startOfMonthDay = startOfMonth.day() || 7 // day of first day\n const dateCountOfMonth = startOfMonth.daysInMonth()\n\n const dateCountOfLastMonth = startOfMonth.subtract(1, 'month').daysInMonth()\n\n return {\n startOfMonthDay,\n dateCountOfMonth,\n dateCountOfLastMonth,\n }\n })\n\n const selectedDate = computed(() => {\n return props.selectionMode === 'dates'\n ? (castArray(props.parsedValue) as Dayjs[])\n : ([] as Dayjs[])\n })\n\n // Return value indicates should the counter be incremented\n type CellCoordinate = { columnIndex: number; rowIndex: number }\n type CellMeta = CellCoordinate & {\n count: number\n }\n const setDateText = (\n cell: DateCell,\n { count, rowIndex, columnIndex }: CellMeta\n ): boolean => {\n const { startOfMonthDay, dateCountOfMonth, dateCountOfLastMonth } =\n unref(days)\n const offset = unref(offsetDay)\n if (rowIndex >= 0 && rowIndex <= 1) {\n const numberOfDaysFromPreviousMonth =\n startOfMonthDay + offset < 0\n ? 7 + startOfMonthDay + offset\n : startOfMonthDay + offset\n\n if (columnIndex + rowIndex * 7 >= numberOfDaysFromPreviousMonth) {\n cell.text = count\n return true\n } else {\n cell.text =\n dateCountOfLastMonth -\n (numberOfDaysFromPreviousMonth - (columnIndex % 7)) +\n 1 +\n rowIndex * 7\n cell.type = 'prev-month'\n }\n } else {\n if (count <= dateCountOfMonth) {\n cell.text = count\n } else {\n cell.text = count - dateCountOfMonth\n cell.type = 'next-month'\n }\n return true\n }\n return false\n }\n\n const setCellMetadata = (\n cell: DateCell,\n { columnIndex, rowIndex }: CellCoordinate,\n count: number\n ) => {\n const { disabledDate, cellClassName } = props\n const _selectedDate = unref(selectedDate)\n const shouldIncrement = setDateText(cell, { count, rowIndex, columnIndex })\n\n const cellDate = cell.dayjs!.toDate()\n cell.selected = _selectedDate.find(\n (d) => d.valueOf() === cell.dayjs!.valueOf()\n )\n cell.isSelected = !!cell.selected\n cell.isCurrent = isCurrent(cell)\n cell.disabled = disabledDate?.(cellDate)\n cell.customClass = cellClassName?.(cellDate)\n return shouldIncrement\n }\n\n const setRowMetadata = (row: DateCell[]) => {\n if (props.selectionMode === 'week') {\n const [start, end] = props.showWeekNumber ? [1, 7] : [0, 6]\n const isActive = isWeekActive(row[start + 1])\n row[start].inRange = isActive\n row[start].start = isActive\n row[end].inRange = isActive\n row[end].end = isActive\n }\n }\n\n const rows = computed(() => {\n const { minDate, maxDate, rangeState, showWeekNumber } = props\n\n const offset = unref(offsetDay)\n const rows_ = unref(tableRows)\n const dateUnit = 'day'\n let count = 1\n\n if (showWeekNumber) {\n for (let rowIndex = 0; rowIndex < 6; rowIndex++) {\n if (!rows_[rowIndex][0]) {\n rows_[rowIndex][0] = {\n type: 'week',\n text: unref(startDate)\n .add(rowIndex * 7 + 1, dateUnit)\n .week(),\n }\n }\n }\n }\n\n buildPickerTable({ row: 6, column: 7 }, rows_, {\n startDate: minDate,\n columnIndexOffset: showWeekNumber ? 1 : 0,\n nextEndDate:\n rangeState.endDate ||\n maxDate ||\n (rangeState.selecting && minDate) ||\n null,\n now: dayjs().locale(unref(lang)).startOf(dateUnit),\n unit: dateUnit,\n relativeDateGetter: (idx: number) =>\n unref(startDate).add(idx - offset, dateUnit),\n setCellMetadata: (...args) => {\n if (setCellMetadata(...args, count)) {\n count += 1\n }\n },\n\n setRowMetadata,\n })\n\n return rows_\n })\n\n watch(\n () => props.date,\n async () => {\n if (unref(tbodyRef)?.contains(document.activeElement)) {\n await nextTick()\n await focus()\n // currentCellRef.value?.focus()\n }\n }\n )\n\n const focus = async () => unref(currentCellRef)?.focus()\n\n const isCurrent = (cell: DateCell): boolean => {\n return (\n props.selectionMode === 'date' &&\n isNormalDay(cell.type) &&\n cellMatchesDate(cell, props.parsedValue as Dayjs)\n )\n }\n\n const cellMatchesDate = (cell: DateCell, date: Dayjs) => {\n if (!date) return false\n return dayjs(date)\n .locale(unref(lang))\n .isSame(props.date.date(Number(cell.text)), 'day')\n }\n\n const getDateOfCell = (row: number, column: number) => {\n const offsetFromStart =\n row * 7 + (column - (props.showWeekNumber ? 1 : 0)) - unref(offsetDay)\n return unref(startDate).add(offsetFromStart, 'day')\n }\n\n const handleMouseMove = (event: MouseEvent) => {\n if (!props.rangeState.selecting) return\n\n let target = event.target as HTMLElement\n if (target.tagName === 'SPAN') {\n target = target.parentNode?.parentNode as HTMLElement\n }\n if (target.tagName === 'DIV') {\n target = target.parentNode as HTMLElement\n }\n if (target.tagName !== 'TD') return\n\n const row = (target.parentNode as HTMLTableRowElement).rowIndex - 1\n const column = (target as HTMLTableCellElement).cellIndex\n\n // can not select disabled date\n if (unref(rows)[row][column].disabled) return\n\n // only update rangeState when mouse moves to a new cell\n // this avoids frequent Date object creation and improves performance\n if (row !== unref(lastRow) || column !== unref(lastColumn)) {\n lastRow.value = row\n lastColumn.value = column\n emit('changerange', {\n selecting: true,\n endDate: getDateOfCell(row, column),\n })\n }\n }\n\n const isSelectedCell = (cell: DateCell) => {\n return (\n (!unref(hasCurrent) && cell?.text === 1 && cell.type === 'normal') ||\n cell.isCurrent\n )\n }\n\n const handleFocus = (event: FocusEvent) => {\n if (focusWithClick || unref(hasCurrent) || props.selectionMode !== 'date')\n return\n handlePickDate(event, true)\n }\n\n const handleMouseDown = (event: MouseEvent) => {\n const target = (event.target as HTMLElement).closest('td')\n if (!target) return\n focusWithClick = true\n }\n\n const handleMouseUp = (event: MouseEvent) => {\n const target = (event.target as HTMLElement).closest('td')\n if (!target) return\n focusWithClick = false\n }\n\n const handleRangePick = (newDate: Dayjs) => {\n if (!props.rangeState.selecting || !props.minDate) {\n emit('pick', { minDate: newDate, maxDate: null })\n emit('select', true)\n } else {\n if (newDate >= props.minDate) {\n emit('pick', { minDate: props.minDate, maxDate: newDate })\n } else {\n emit('pick', { minDate: newDate, maxDate: props.minDate })\n }\n emit('select', false)\n }\n }\n\n const handleWeekPick = (newDate: Dayjs) => {\n const weekNumber = newDate.week()\n const value = `${newDate.year()}w${weekNumber}`\n emit('pick', {\n year: newDate.year(),\n week: weekNumber,\n value,\n date: newDate.startOf('week'),\n })\n }\n\n const handleDatesPick = (newDate: Dayjs, selected: boolean) => {\n const newValue = selected\n ? castArray(props.parsedValue).filter(\n (d) => d?.valueOf() !== newDate.valueOf()\n )\n : castArray(props.parsedValue).concat([newDate])\n emit('pick', newValue)\n }\n\n const handlePickDate = (\n event: FocusEvent | MouseEvent,\n isKeyboardMovement = false\n ) => {\n const target = (event.target as HTMLElement).closest('td')\n\n if (!target) return\n\n const row = (target.parentNode as HTMLTableRowElement).rowIndex - 1\n const column = (target as HTMLTableCellElement).cellIndex\n const cell = unref(rows)[row][column]\n\n if (cell.disabled || cell.type === 'week') return\n\n const newDate = getDateOfCell(row, column)\n\n switch (props.selectionMode) {\n case 'range': {\n handleRangePick(newDate)\n break\n }\n case 'date': {\n emit('pick', newDate, isKeyboardMovement)\n break\n }\n case 'week': {\n handleWeekPick(newDate)\n break\n }\n case 'dates': {\n handleDatesPick(newDate, !!cell.selected)\n break\n }\n default: {\n break\n }\n }\n }\n\n const isWeekActive = (cell: DateCell) => {\n if (props.selectionMode !== 'week') return false\n let newDate = props.date.startOf('day')\n\n if (cell.type === 'prev-month') {\n newDate = newDate.subtract(1, 'month')\n }\n\n if (cell.type === 'next-month') {\n newDate = newDate.add(1, 'month')\n }\n\n newDate = newDate.date(Number.parseInt(cell.text as any, 10))\n\n if (props.parsedValue && !Array.isArray(props.parsedValue)) {\n const dayOffset = ((props.parsedValue.day() - firstDayOfWeek + 7) % 7) - 1\n const weekDate = props.parsedValue.subtract(dayOffset, 'day')\n return weekDate.isSame(newDate, 'day')\n }\n return false\n }\n\n return {\n WEEKS,\n rows,\n tbodyRef,\n currentCellRef,\n\n // cellMatchesDate,\n // getDateOfCell,\n focus,\n isCurrent,\n isWeekActive,\n isSelectedCell,\n\n handlePickDate,\n handleMouseUp,\n handleMouseDown,\n handleMouseMove,\n handleFocus,\n }\n}\n\nexport const useBasicDateTableDOM = (\n props: BasicDateTableProps,\n {\n isCurrent,\n isWeekActive,\n }: Pick<ReturnType<typeof useBasicDateTable>, 'isCurrent' | 'isWeekActive'>\n) => {\n const ns = useNamespace('date-table')\n const { t } = useLocale()\n\n const tableKls = computed(() => [\n ns.b(),\n { 'is-week-mode': props.selectionMode === 'week' },\n ])\n\n const tableLabel = computed(() => t('el.datepicker.dateTablePrompt'))\n const weekLabel = computed(() => t('el.datepicker.week'))\n\n const getCellClasses = (cell: DateCell) => {\n const classes: string[] = []\n if (isNormalDay(cell.type) && !cell.disabled) {\n classes.push('available')\n if (cell.type === 'today') {\n classes.push('today')\n }\n } else {\n classes.push(cell.type!)\n }\n\n if (isCurrent(cell)) {\n classes.push('current')\n }\n\n if (\n cell.inRange &&\n (isNormalDay(cell.type) || props.selectionMode === 'week')\n ) {\n classes.push('in-range')\n\n if (cell.start) {\n classes.push('start-date')\n }\n\n if (cell.end) {\n classes.push('end-date')\n }\n }\n\n if (cell.disabled) {\n classes.push('disabled')\n }\n\n if (cell.selected) {\n classes.push('selected')\n }\n\n if (cell.customClass) {\n classes.push(cell.customClass)\n }\n\n return classes.join(' ')\n }\n\n const getRowKls = (cell: DateCell) => [\n ns.e('row'),\n { current: isWeekActive(cell) },\n ]\n\n return {\n tableKls,\n tableLabel,\n weekLabel,\n\n getCellClasses,\n getRowKls,\n t,\n }\n}\n"],"names":["useLocale","ref","computed","flatten","unref","castArray","buildPickerTable","dayjs","watch","nextTick","useNamespace"],"mappings":";;;;;;;;;;;;;;;;;;AAMA,MAAM,WAAW,GAAG,CAAC,IAAI,GAAG,EAAE,KAAK;AACnC,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC;AACU,MAAC,iBAAiB,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AAClD,EAAE,MAAM,EAAE,IAAI,EAAE,GAAGA,eAAS,EAAE,CAAC;AAC/B,EAAE,MAAM,QAAQ,GAAGC,OAAG,EAAE,CAAC;AACzB,EAAE,MAAM,cAAc,GAAGA,OAAG,EAAE,CAAC;AAC/B,EAAE,MAAM,OAAO,GAAGA,OAAG,EAAE,CAAC;AACxB,EAAE,MAAM,UAAU,GAAGA,OAAG,EAAE,CAAC;AAC3B,EAAE,MAAM,SAAS,GAAGA,OAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAClD,EAAE,IAAI,cAAc,GAAG,KAAK,CAAC;AAC7B,EAAE,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC;AAC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,CAAC;AACf,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE;AACnC,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,QAAQ;AACZ,IAAI,UAAU;AACd,IAAI,SAAS;AACb,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,CAAC;AACL,GAAG,CAAC;AACJ;;;;;"}
1
+ {"version":3,"file":"use-basic-date-table.js","sources":["../../../../../../../packages/components/date-picker/src/composables/use-basic-date-table.ts"],"sourcesContent":["import { computed, nextTick, ref, unref, watch } from 'vue'\nimport dayjs from 'dayjs'\nimport { flatten } from 'lodash-unified'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { castArray } from '@element-plus/utils'\nimport { buildPickerTable } from '../utils'\n\nimport type { SetupContext } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type { DateCell } from '../date-picker.type'\nimport type {\n BasicDateTableEmits,\n BasicDateTableProps,\n} from '../props/basic-date-table'\n\nconst isNormalDay = (type = '') => {\n return ['normal', 'today'].includes(type)\n}\n\nexport const useBasicDateTable = (\n props: BasicDateTableProps,\n emit: SetupContext<BasicDateTableEmits>['emit']\n) => {\n const { lang } = useLocale()\n const tbodyRef = ref<HTMLElement>()\n const currentCellRef = ref<HTMLElement>()\n // data\n const lastRow = ref<number>()\n const lastColumn = ref<number>()\n const tableRows = ref<DateCell[][]>([[], [], [], [], [], []])\n\n let focusWithClick = false\n\n // todo better way to get Day.js locale object\n const firstDayOfWeek = (props.date as any).$locale().weekStart || 7\n const WEEKS_CONSTANT = props.date\n .locale('en')\n .localeData()\n .weekdaysShort()\n .map((_) => _.toLowerCase())\n\n const offsetDay = computed(() => {\n // Sunday 7(0), cal the left and right offset days, 3217654, such as Monday is -1, the is to adjust the position of the first two rows of dates\n return firstDayOfWeek > 3 ? 7 - firstDayOfWeek : -firstDayOfWeek\n })\n\n const startDate = computed(() => {\n const startDayOfMonth = props.date.startOf('month')\n return startDayOfMonth.subtract(startDayOfMonth.day() || 7, 'day')\n })\n\n const WEEKS = computed(() => {\n return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(\n firstDayOfWeek,\n firstDayOfWeek + 7\n )\n })\n\n const hasCurrent = computed<boolean>(() => {\n return flatten(unref(rows)).some((row) => {\n return row.isCurrent\n })\n })\n\n const days = computed(() => {\n const startOfMonth = props.date.startOf('month')\n const startOfMonthDay = startOfMonth.day() || 7 // day of first day\n const dateCountOfMonth = startOfMonth.daysInMonth()\n\n const dateCountOfLastMonth = startOfMonth.subtract(1, 'month').daysInMonth()\n\n return {\n startOfMonthDay,\n dateCountOfMonth,\n dateCountOfLastMonth,\n }\n })\n\n const selectedDate = computed(() => {\n return props.selectionMode === 'dates'\n ? (castArray(props.parsedValue) as Dayjs[])\n : ([] as Dayjs[])\n })\n\n // Return value indicates should the counter be incremented\n type CellCoordinate = { columnIndex: number; rowIndex: number }\n type CellMeta = CellCoordinate & {\n count: number\n }\n const setDateText = (\n cell: DateCell,\n { count, rowIndex, columnIndex }: CellMeta\n ): boolean => {\n const { startOfMonthDay, dateCountOfMonth, dateCountOfLastMonth } =\n unref(days)\n const offset = unref(offsetDay)\n if (rowIndex >= 0 && rowIndex <= 1) {\n const numberOfDaysFromPreviousMonth =\n startOfMonthDay + offset < 0\n ? 7 + startOfMonthDay + offset\n : startOfMonthDay + offset\n\n if (columnIndex + rowIndex * 7 >= numberOfDaysFromPreviousMonth) {\n cell.text = count\n return true\n } else {\n cell.text =\n dateCountOfLastMonth -\n (numberOfDaysFromPreviousMonth - (columnIndex % 7)) +\n 1 +\n rowIndex * 7\n cell.type = 'prev-month'\n }\n } else {\n if (count <= dateCountOfMonth) {\n cell.text = count\n } else {\n cell.text = count - dateCountOfMonth\n cell.type = 'next-month'\n }\n return true\n }\n return false\n }\n\n const setCellMetadata = (\n cell: DateCell,\n { columnIndex, rowIndex }: CellCoordinate,\n count: number\n ) => {\n const { disabledDate, cellClassName } = props\n const _selectedDate = unref(selectedDate)\n const shouldIncrement = setDateText(cell, { count, rowIndex, columnIndex })\n\n const cellDate = cell.dayjs!.toDate()\n cell.selected = _selectedDate.find((d) => d.isSame(cell.dayjs, 'day'))\n cell.isSelected = !!cell.selected\n cell.isCurrent = isCurrent(cell)\n cell.disabled = disabledDate?.(cellDate)\n cell.customClass = cellClassName?.(cellDate)\n return shouldIncrement\n }\n\n const setRowMetadata = (row: DateCell[]) => {\n if (props.selectionMode === 'week') {\n const [start, end] = props.showWeekNumber ? [1, 7] : [0, 6]\n const isActive = isWeekActive(row[start + 1])\n row[start].inRange = isActive\n row[start].start = isActive\n row[end].inRange = isActive\n row[end].end = isActive\n }\n }\n\n const rows = computed(() => {\n const { minDate, maxDate, rangeState, showWeekNumber } = props\n\n const offset = unref(offsetDay)\n const rows_ = unref(tableRows)\n const dateUnit = 'day'\n let count = 1\n\n if (showWeekNumber) {\n for (let rowIndex = 0; rowIndex < 6; rowIndex++) {\n if (!rows_[rowIndex][0]) {\n rows_[rowIndex][0] = {\n type: 'week',\n text: unref(startDate)\n .add(rowIndex * 7 + 1, dateUnit)\n .week(),\n }\n }\n }\n }\n\n buildPickerTable({ row: 6, column: 7 }, rows_, {\n startDate: minDate,\n columnIndexOffset: showWeekNumber ? 1 : 0,\n nextEndDate:\n rangeState.endDate ||\n maxDate ||\n (rangeState.selecting && minDate) ||\n null,\n now: dayjs().locale(unref(lang)).startOf(dateUnit),\n unit: dateUnit,\n relativeDateGetter: (idx: number) =>\n unref(startDate).add(idx - offset, dateUnit),\n setCellMetadata: (...args) => {\n if (setCellMetadata(...args, count)) {\n count += 1\n }\n },\n\n setRowMetadata,\n })\n\n return rows_\n })\n\n watch(\n () => props.date,\n async () => {\n if (unref(tbodyRef)?.contains(document.activeElement)) {\n await nextTick()\n await focus()\n // currentCellRef.value?.focus()\n }\n }\n )\n\n const focus = async () => unref(currentCellRef)?.focus()\n\n const isCurrent = (cell: DateCell): boolean => {\n return (\n props.selectionMode === 'date' &&\n isNormalDay(cell.type) &&\n cellMatchesDate(cell, props.parsedValue as Dayjs)\n )\n }\n\n const cellMatchesDate = (cell: DateCell, date: Dayjs) => {\n if (!date) return false\n return dayjs(date)\n .locale(unref(lang))\n .isSame(props.date.date(Number(cell.text)), 'day')\n }\n\n const getDateOfCell = (row: number, column: number) => {\n const offsetFromStart =\n row * 7 + (column - (props.showWeekNumber ? 1 : 0)) - unref(offsetDay)\n return unref(startDate).add(offsetFromStart, 'day')\n }\n\n const handleMouseMove = (event: MouseEvent) => {\n if (!props.rangeState.selecting) return\n\n let target = event.target as HTMLElement\n if (target.tagName === 'SPAN') {\n target = target.parentNode?.parentNode as HTMLElement\n }\n if (target.tagName === 'DIV') {\n target = target.parentNode as HTMLElement\n }\n if (target.tagName !== 'TD') return\n\n const row = (target.parentNode as HTMLTableRowElement).rowIndex - 1\n const column = (target as HTMLTableCellElement).cellIndex\n\n // can not select disabled date\n if (unref(rows)[row][column].disabled) return\n\n // only update rangeState when mouse moves to a new cell\n // this avoids frequent Date object creation and improves performance\n if (row !== unref(lastRow) || column !== unref(lastColumn)) {\n lastRow.value = row\n lastColumn.value = column\n emit('changerange', {\n selecting: true,\n endDate: getDateOfCell(row, column),\n })\n }\n }\n\n const isSelectedCell = (cell: DateCell) => {\n return (\n (!unref(hasCurrent) && cell?.text === 1 && cell.type === 'normal') ||\n cell.isCurrent\n )\n }\n\n const handleFocus = (event: FocusEvent) => {\n if (focusWithClick || unref(hasCurrent) || props.selectionMode !== 'date')\n return\n handlePickDate(event, true)\n }\n\n const handleMouseDown = (event: MouseEvent) => {\n const target = (event.target as HTMLElement).closest('td')\n if (!target) return\n focusWithClick = true\n }\n\n const handleMouseUp = (event: MouseEvent) => {\n const target = (event.target as HTMLElement).closest('td')\n if (!target) return\n focusWithClick = false\n }\n\n const handleRangePick = (newDate: Dayjs) => {\n if (!props.rangeState.selecting || !props.minDate) {\n emit('pick', { minDate: newDate, maxDate: null })\n emit('select', true)\n } else {\n if (newDate >= props.minDate) {\n emit('pick', { minDate: props.minDate, maxDate: newDate })\n } else {\n emit('pick', { minDate: newDate, maxDate: props.minDate })\n }\n emit('select', false)\n }\n }\n\n const handleWeekPick = (newDate: Dayjs) => {\n const weekNumber = newDate.week()\n const value = `${newDate.year()}w${weekNumber}`\n emit('pick', {\n year: newDate.year(),\n week: weekNumber,\n value,\n date: newDate.startOf('week'),\n })\n }\n\n const handleDatesPick = (newDate: Dayjs, selected: boolean) => {\n const newValue = selected\n ? castArray(props.parsedValue).filter(\n (d) => d?.valueOf() !== newDate.valueOf()\n )\n : castArray(props.parsedValue).concat([newDate])\n emit('pick', newValue)\n }\n\n const handlePickDate = (\n event: FocusEvent | MouseEvent,\n isKeyboardMovement = false\n ) => {\n const target = (event.target as HTMLElement).closest('td')\n\n if (!target) return\n\n const row = (target.parentNode as HTMLTableRowElement).rowIndex - 1\n const column = (target as HTMLTableCellElement).cellIndex\n const cell = unref(rows)[row][column]\n\n if (cell.disabled || cell.type === 'week') return\n\n const newDate = getDateOfCell(row, column)\n\n switch (props.selectionMode) {\n case 'range': {\n handleRangePick(newDate)\n break\n }\n case 'date': {\n emit('pick', newDate, isKeyboardMovement)\n break\n }\n case 'week': {\n handleWeekPick(newDate)\n break\n }\n case 'dates': {\n handleDatesPick(newDate, !!cell.selected)\n break\n }\n default: {\n break\n }\n }\n }\n\n const isWeekActive = (cell: DateCell) => {\n if (props.selectionMode !== 'week') return false\n let newDate = props.date.startOf('day')\n\n if (cell.type === 'prev-month') {\n newDate = newDate.subtract(1, 'month')\n }\n\n if (cell.type === 'next-month') {\n newDate = newDate.add(1, 'month')\n }\n\n newDate = newDate.date(Number.parseInt(cell.text as any, 10))\n\n if (props.parsedValue && !Array.isArray(props.parsedValue)) {\n const dayOffset = ((props.parsedValue.day() - firstDayOfWeek + 7) % 7) - 1\n const weekDate = props.parsedValue.subtract(dayOffset, 'day')\n return weekDate.isSame(newDate, 'day')\n }\n return false\n }\n\n return {\n WEEKS,\n rows,\n tbodyRef,\n currentCellRef,\n\n // cellMatchesDate,\n // getDateOfCell,\n focus,\n isCurrent,\n isWeekActive,\n isSelectedCell,\n\n handlePickDate,\n handleMouseUp,\n handleMouseDown,\n handleMouseMove,\n handleFocus,\n }\n}\n\nexport const useBasicDateTableDOM = (\n props: BasicDateTableProps,\n {\n isCurrent,\n isWeekActive,\n }: Pick<ReturnType<typeof useBasicDateTable>, 'isCurrent' | 'isWeekActive'>\n) => {\n const ns = useNamespace('date-table')\n const { t } = useLocale()\n\n const tableKls = computed(() => [\n ns.b(),\n { 'is-week-mode': props.selectionMode === 'week' },\n ])\n\n const tableLabel = computed(() => t('el.datepicker.dateTablePrompt'))\n const weekLabel = computed(() => t('el.datepicker.week'))\n\n const getCellClasses = (cell: DateCell) => {\n const classes: string[] = []\n if (isNormalDay(cell.type) && !cell.disabled) {\n classes.push('available')\n if (cell.type === 'today') {\n classes.push('today')\n }\n } else {\n classes.push(cell.type!)\n }\n\n if (isCurrent(cell)) {\n classes.push('current')\n }\n\n if (\n cell.inRange &&\n (isNormalDay(cell.type) || props.selectionMode === 'week')\n ) {\n classes.push('in-range')\n\n if (cell.start) {\n classes.push('start-date')\n }\n\n if (cell.end) {\n classes.push('end-date')\n }\n }\n\n if (cell.disabled) {\n classes.push('disabled')\n }\n\n if (cell.selected) {\n classes.push('selected')\n }\n\n if (cell.customClass) {\n classes.push(cell.customClass)\n }\n\n return classes.join(' ')\n }\n\n const getRowKls = (cell: DateCell) => [\n ns.e('row'),\n { current: isWeekActive(cell) },\n ]\n\n return {\n tableKls,\n tableLabel,\n weekLabel,\n\n getCellClasses,\n getRowKls,\n t,\n }\n}\n"],"names":["useLocale","ref","computed","flatten","unref","castArray","buildPickerTable","dayjs","watch","nextTick","useNamespace"],"mappings":";;;;;;;;;;;;;;;;;;AAMA,MAAM,WAAW,GAAG,CAAC,IAAI,GAAG,EAAE,KAAK;AACnC,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5C,CAA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