element-plus 2.3.3 → 2.3.5

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 (796) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +323 -225
  4. package/dist/index.full.min.js +18 -18
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +18 -18
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +323 -226
  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.js +1 -1
  14. package/dist/locale/ar.min.js +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/az.js +1 -1
  18. package/dist/locale/az.min.js +1 -1
  19. package/dist/locale/az.min.mjs +1 -1
  20. package/dist/locale/az.mjs +1 -1
  21. package/dist/locale/bg.js +1 -1
  22. package/dist/locale/bg.min.js +1 -1
  23. package/dist/locale/bg.min.mjs +1 -1
  24. package/dist/locale/bg.mjs +1 -1
  25. package/dist/locale/bn.js +1 -1
  26. package/dist/locale/bn.min.js +1 -1
  27. package/dist/locale/bn.min.mjs +1 -1
  28. package/dist/locale/bn.mjs +1 -1
  29. package/dist/locale/ca.js +1 -1
  30. package/dist/locale/ca.min.js +1 -1
  31. package/dist/locale/ca.min.mjs +1 -1
  32. package/dist/locale/ca.mjs +1 -1
  33. package/dist/locale/ckb.js +1 -1
  34. package/dist/locale/ckb.min.js +1 -1
  35. package/dist/locale/ckb.min.mjs +1 -1
  36. package/dist/locale/ckb.mjs +1 -1
  37. package/dist/locale/cs.js +1 -1
  38. package/dist/locale/cs.min.js +1 -1
  39. package/dist/locale/cs.min.mjs +1 -1
  40. package/dist/locale/cs.mjs +1 -1
  41. package/dist/locale/da.js +1 -1
  42. package/dist/locale/da.min.js +1 -1
  43. package/dist/locale/da.min.mjs +1 -1
  44. package/dist/locale/da.mjs +1 -1
  45. package/dist/locale/de.js +1 -1
  46. package/dist/locale/de.min.js +1 -1
  47. package/dist/locale/de.min.mjs +1 -1
  48. package/dist/locale/de.mjs +1 -1
  49. package/dist/locale/el.js +1 -1
  50. package/dist/locale/el.min.js +1 -1
  51. package/dist/locale/el.min.mjs +1 -1
  52. package/dist/locale/el.mjs +1 -1
  53. package/dist/locale/en.js +1 -1
  54. package/dist/locale/en.min.js +1 -1
  55. package/dist/locale/en.min.mjs +1 -1
  56. package/dist/locale/en.mjs +1 -1
  57. package/dist/locale/eo.js +1 -1
  58. package/dist/locale/eo.min.js +1 -1
  59. package/dist/locale/eo.min.mjs +1 -1
  60. package/dist/locale/eo.mjs +1 -1
  61. package/dist/locale/es.js +1 -1
  62. package/dist/locale/es.min.js +1 -1
  63. package/dist/locale/es.min.mjs +1 -1
  64. package/dist/locale/es.mjs +1 -1
  65. package/dist/locale/et.js +1 -1
  66. package/dist/locale/et.min.js +1 -1
  67. package/dist/locale/et.min.mjs +1 -1
  68. package/dist/locale/et.mjs +1 -1
  69. package/dist/locale/eu.js +1 -1
  70. package/dist/locale/eu.min.js +1 -1
  71. package/dist/locale/eu.min.mjs +1 -1
  72. package/dist/locale/eu.mjs +1 -1
  73. package/dist/locale/fa.js +21 -21
  74. package/dist/locale/fa.min.js +1 -1
  75. package/dist/locale/fa.min.js.map +1 -1
  76. package/dist/locale/fa.min.mjs +1 -1
  77. package/dist/locale/fa.min.mjs.map +1 -1
  78. package/dist/locale/fa.mjs +21 -21
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/nb-no.js +1 -1
  152. package/dist/locale/nb-no.min.js +1 -1
  153. package/dist/locale/nb-no.min.mjs +1 -1
  154. package/dist/locale/nb-no.mjs +1 -1
  155. package/dist/locale/nl.js +1 -1
  156. package/dist/locale/nl.min.js +1 -1
  157. package/dist/locale/nl.min.mjs +1 -1
  158. package/dist/locale/nl.mjs +1 -1
  159. package/dist/locale/pa.js +1 -1
  160. package/dist/locale/pa.min.js +1 -1
  161. package/dist/locale/pa.min.mjs +1 -1
  162. package/dist/locale/pa.mjs +1 -1
  163. package/dist/locale/pl.js +1 -1
  164. package/dist/locale/pl.min.js +1 -1
  165. package/dist/locale/pl.min.mjs +1 -1
  166. package/dist/locale/pl.mjs +1 -1
  167. package/dist/locale/pt-br.js +1 -1
  168. package/dist/locale/pt-br.min.js +1 -1
  169. package/dist/locale/pt-br.min.mjs +1 -1
  170. package/dist/locale/pt-br.mjs +1 -1
  171. package/dist/locale/pt.js +1 -1
  172. package/dist/locale/pt.min.js +1 -1
  173. package/dist/locale/pt.min.mjs +1 -1
  174. package/dist/locale/pt.mjs +1 -1
  175. package/dist/locale/ro.js +1 -1
  176. package/dist/locale/ro.min.js +1 -1
  177. package/dist/locale/ro.min.mjs +1 -1
  178. package/dist/locale/ro.mjs +1 -1
  179. package/dist/locale/ru.js +1 -1
  180. package/dist/locale/ru.min.js +1 -1
  181. package/dist/locale/ru.min.mjs +1 -1
  182. package/dist/locale/ru.mjs +1 -1
  183. package/dist/locale/sk.js +1 -1
  184. package/dist/locale/sk.min.js +1 -1
  185. package/dist/locale/sk.min.mjs +1 -1
  186. package/dist/locale/sk.mjs +1 -1
  187. package/dist/locale/sl.js +1 -1
  188. package/dist/locale/sl.min.js +1 -1
  189. package/dist/locale/sl.min.mjs +1 -1
  190. package/dist/locale/sl.mjs +1 -1
  191. package/dist/locale/sr.js +1 -1
  192. package/dist/locale/sr.min.js +1 -1
  193. package/dist/locale/sr.min.mjs +1 -1
  194. package/dist/locale/sr.mjs +1 -1
  195. package/dist/locale/sv.js +1 -1
  196. package/dist/locale/sv.min.js +1 -1
  197. package/dist/locale/sv.min.mjs +1 -1
  198. package/dist/locale/sv.mjs +1 -1
  199. package/dist/locale/ta.js +1 -1
  200. package/dist/locale/ta.min.js +1 -1
  201. package/dist/locale/ta.min.mjs +1 -1
  202. package/dist/locale/ta.mjs +1 -1
  203. package/dist/locale/th.js +1 -1
  204. package/dist/locale/th.min.js +1 -1
  205. package/dist/locale/th.min.mjs +1 -1
  206. package/dist/locale/th.mjs +1 -1
  207. package/dist/locale/tk.js +1 -1
  208. package/dist/locale/tk.min.js +1 -1
  209. package/dist/locale/tk.min.mjs +1 -1
  210. package/dist/locale/tk.mjs +1 -1
  211. package/dist/locale/tr.js +1 -1
  212. package/dist/locale/tr.min.js +1 -1
  213. package/dist/locale/tr.min.mjs +1 -1
  214. package/dist/locale/tr.mjs +1 -1
  215. package/dist/locale/ug-cn.js +1 -1
  216. package/dist/locale/ug-cn.min.js +1 -1
  217. package/dist/locale/ug-cn.min.mjs +1 -1
  218. package/dist/locale/ug-cn.mjs +1 -1
  219. package/dist/locale/uk.js +1 -1
  220. package/dist/locale/uk.min.js +1 -1
  221. package/dist/locale/uk.min.mjs +1 -1
  222. package/dist/locale/uk.mjs +1 -1
  223. package/dist/locale/uz-uz.js +1 -1
  224. package/dist/locale/uz-uz.min.js +1 -1
  225. package/dist/locale/uz-uz.min.mjs +1 -1
  226. package/dist/locale/uz-uz.mjs +1 -1
  227. package/dist/locale/vi.js +1 -1
  228. package/dist/locale/vi.min.js +1 -1
  229. package/dist/locale/vi.min.mjs +1 -1
  230. package/dist/locale/vi.mjs +1 -1
  231. package/dist/locale/zh-cn.js +1 -1
  232. package/dist/locale/zh-cn.min.js +1 -1
  233. package/dist/locale/zh-cn.min.mjs +1 -1
  234. package/dist/locale/zh-cn.mjs +1 -1
  235. package/dist/locale/zh-tw.js +1 -1
  236. package/dist/locale/zh-tw.min.js +1 -1
  237. package/dist/locale/zh-tw.min.mjs +1 -1
  238. package/dist/locale/zh-tw.mjs +1 -1
  239. package/es/components/affix/src/affix.mjs +1 -1
  240. package/es/components/avatar/src/avatar.mjs +1 -1
  241. package/es/components/avatar/src/avatar2.mjs +1 -1
  242. package/es/components/badge/src/badge2.mjs +1 -1
  243. package/es/components/button/index.d.ts +15 -0
  244. package/es/components/button/src/button.d.ts +4 -3
  245. package/es/components/button/src/button.mjs +5 -1
  246. package/es/components/button/src/button.mjs.map +1 -1
  247. package/es/components/button/src/button.vue.d.ts +15 -0
  248. package/es/components/button/src/button2.mjs +34 -35
  249. package/es/components/button/src/button2.mjs.map +1 -1
  250. package/es/components/button/src/use-button.d.ts +11 -0
  251. package/es/components/button/src/use-button.mjs +12 -0
  252. package/es/components/button/src/use-button.mjs.map +1 -1
  253. package/es/components/calendar/index.d.ts +15 -0
  254. package/es/components/calendar/src/calendar.vue.d.ts +17 -2
  255. package/es/components/carousel/index.d.ts +10 -0
  256. package/es/components/carousel/src/carousel-item.vue.d.ts +1 -0
  257. package/es/components/carousel/src/carousel-item2.mjs +7 -1
  258. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  259. package/es/components/carousel/src/carousel.mjs +1 -1
  260. package/es/components/carousel/src/carousel.vue.d.ts +8 -0
  261. package/es/components/carousel/src/carousel2.mjs +7 -2
  262. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  263. package/es/components/carousel/src/constants.d.ts +1 -0
  264. package/es/components/carousel/src/constants.mjs.map +1 -1
  265. package/es/components/carousel/src/use-carousel-item.d.ts +1 -0
  266. package/es/components/carousel/src/use-carousel-item.mjs +7 -5
  267. package/es/components/carousel/src/use-carousel-item.mjs.map +1 -1
  268. package/es/components/carousel/src/use-carousel.d.ts +8 -0
  269. package/es/components/carousel/src/use-carousel.mjs +21 -1
  270. package/es/components/carousel/src/use-carousel.mjs.map +1 -1
  271. package/es/components/cascader/index.d.ts +16 -16
  272. package/es/components/cascader/src/cascader.mjs +1 -1
  273. package/es/components/cascader/src/cascader.vue.d.ts +8 -8
  274. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  275. package/es/components/cascader-panel/src/index.mjs +1 -1
  276. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  277. package/es/components/check-tag/index.d.ts +1 -0
  278. package/es/components/check-tag/src/check-tag.mjs +1 -1
  279. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  280. package/es/components/check-tag/src/check-tag.vue.d.ts +1 -0
  281. package/es/components/check-tag/src/check-tag2.mjs +3 -2
  282. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  283. package/es/components/checkbox/src/checkbox.mjs +1 -1
  284. package/es/components/checkbox/src/composables/use-checkbox-status.mjs +1 -1
  285. package/es/components/col/src/col2.mjs +1 -1
  286. package/es/components/collapse/src/collapse.mjs +1 -1
  287. package/es/components/color-picker/index.d.ts +15 -0
  288. package/es/components/color-picker/src/color-picker.vue.d.ts +15 -0
  289. package/es/components/color-picker/src/utils/draggable.mjs +1 -0
  290. package/es/components/color-picker/src/utils/draggable.mjs.map +1 -1
  291. package/es/components/countdown/src/countdown.mjs +1 -1
  292. package/es/components/countdown/src/utils.mjs +1 -1
  293. package/es/components/date-picker/index.d.ts +173 -172
  294. package/es/components/date-picker/index.mjs +1 -0
  295. package/es/components/date-picker/index.mjs.map +1 -1
  296. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +15 -0
  297. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +15 -0
  298. package/es/components/date-picker/src/date-picker.d.ts +86 -86
  299. package/es/components/date-picker/src/date-picker.mjs +1 -5
  300. package/es/components/date-picker/src/date-picker.mjs.map +1 -1
  301. package/es/components/date-picker/src/panel-utils.d.ts +30 -0
  302. package/es/components/date-picker/src/props/date-picker.d.ts +77 -0
  303. package/es/components/date-picker/src/props/date-picker.mjs +3 -0
  304. package/es/components/date-picker/src/props/date-picker.mjs.map +1 -1
  305. package/es/components/dialog/src/dialog.mjs +1 -1
  306. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  307. package/es/components/dropdown/index.d.ts +1 -0
  308. package/es/components/dropdown/index.mjs +1 -0
  309. package/es/components/dropdown/index.mjs.map +1 -1
  310. package/es/components/dropdown/src/instance.d.ts +2 -0
  311. package/es/components/dropdown/src/instance.mjs +2 -0
  312. package/es/components/dropdown/src/instance.mjs.map +1 -0
  313. package/es/components/empty/src/empty.mjs.map +1 -1
  314. package/es/components/form/src/form-item2.mjs +2 -1
  315. package/es/components/form/src/form-item2.mjs.map +1 -1
  316. package/es/components/form/src/form.mjs +1 -1
  317. package/es/components/image/src/image.mjs +1 -1
  318. package/es/components/image/src/image2.mjs +31 -29
  319. package/es/components/image/src/image2.mjs.map +1 -1
  320. package/es/components/image-viewer/src/image-viewer.mjs +1 -1
  321. package/es/components/image-viewer/src/image-viewer2.mjs +2 -1
  322. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  323. package/es/components/index.mjs +1 -0
  324. package/es/components/index.mjs.map +1 -1
  325. package/es/components/input/src/input2.mjs.map +1 -1
  326. package/es/components/input/src/utils.mjs +1 -1
  327. package/es/components/input-number/src/input-number.mjs +1 -1
  328. package/es/components/input-number/src/input-number2.mjs +5 -3
  329. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  330. package/es/components/loading/src/loading.mjs +1 -4
  331. package/es/components/loading/src/loading.mjs.map +1 -1
  332. package/es/components/loading/src/service.mjs +4 -4
  333. package/es/components/loading/src/service.mjs.map +1 -1
  334. package/es/components/menu/src/menu.mjs +1 -1
  335. package/es/components/menu/src/menu.mjs.map +1 -1
  336. package/es/components/menu/src/sub-menu.mjs +1 -1
  337. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  338. package/es/components/message/src/message.mjs +1 -1
  339. package/es/components/message/src/message.mjs.map +1 -1
  340. package/es/components/message/src/method.mjs +2 -2
  341. package/es/components/message/src/method.mjs.map +1 -1
  342. package/es/components/message-box/src/messageBox.mjs +1 -1
  343. package/es/components/message-box/src/messageBox.mjs.map +1 -1
  344. package/es/components/notification/src/notify.mjs +1 -1
  345. package/es/components/notification/src/notify.mjs.map +1 -1
  346. package/es/components/page-header/src/page-header.mjs.map +1 -1
  347. package/es/components/pagination/src/pagination.mjs +1 -1
  348. package/es/components/popconfirm/index.d.ts +15 -0
  349. package/es/components/popconfirm/src/popconfirm.vue.d.ts +15 -0
  350. package/es/components/popover/src/popover.mjs +1 -1
  351. package/es/components/popper/src/utils.d.ts +1 -1
  352. package/es/components/popper/src/utils.mjs +1 -0
  353. package/es/components/popper/src/utils.mjs.map +1 -1
  354. package/es/components/progress/index.d.ts +8 -0
  355. package/es/components/progress/src/progress.d.ts +2 -0
  356. package/es/components/progress/src/progress.mjs +2 -0
  357. package/es/components/progress/src/progress.mjs.map +1 -1
  358. package/es/components/progress/src/progress.vue.d.ts +8 -0
  359. package/es/components/progress/src/progress2.mjs +3 -1
  360. package/es/components/progress/src/progress2.mjs.map +1 -1
  361. package/es/components/radio/src/radio.mjs +1 -1
  362. package/es/components/rate/src/rate.mjs +1 -1
  363. package/es/components/result/src/result.mjs.map +1 -1
  364. package/es/components/scrollbar/src/scrollbar.mjs +1 -1
  365. package/es/components/scrollbar/src/scrollbar2.mjs +2 -1
  366. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  367. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  368. package/es/components/select/src/select.mjs.map +1 -1
  369. package/es/components/select/src/useSelect.mjs +10 -3
  370. package/es/components/select/src/useSelect.mjs.map +1 -1
  371. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  372. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  373. package/es/components/slider/src/button.mjs +1 -1
  374. package/es/components/slider/src/slider.mjs +1 -1
  375. package/es/components/space/src/space.mjs +1 -1
  376. package/es/components/space/src/use-space.mjs +1 -1
  377. package/es/components/statistic/src/statistic2.mjs +1 -1
  378. package/es/components/steps/index.d.ts +2 -0
  379. package/es/components/steps/src/item.vue.d.ts +1 -0
  380. package/es/components/steps/src/item2.mjs +10 -7
  381. package/es/components/steps/src/item2.mjs.map +1 -1
  382. package/es/components/steps/src/steps.mjs +1 -1
  383. package/es/components/switch/src/switch.mjs +1 -1
  384. package/es/components/switch/src/switch2.mjs +1 -1
  385. package/es/components/table/src/composables/use-scrollbar.mjs +1 -1
  386. package/es/components/table/src/table-body/index.mjs +1 -1
  387. package/es/components/table/src/table-body/index.mjs.map +1 -1
  388. package/es/components/table/src/table-header/event-helper.mjs +7 -3
  389. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  390. package/es/components/table/src/table-layout.mjs +1 -1
  391. package/es/components/table/src/table-layout.mjs.map +1 -1
  392. package/es/components/table/src/util.mjs +1 -1
  393. package/es/components/table-v2/src/components/row.mjs +1 -1
  394. package/es/components/table-v2/src/composables/use-row.mjs +1 -1
  395. package/es/components/table-v2/src/composables/use-styles.mjs +1 -1
  396. package/es/components/table-v2/src/renderers/cell.mjs +1 -1
  397. package/es/components/table-v2/src/renderers/cell.mjs.map +1 -1
  398. package/es/components/table-v2/src/table-grid.mjs +1 -1
  399. package/es/components/tabs/src/tabs.mjs +1 -2
  400. package/es/components/tabs/src/tabs.mjs.map +1 -1
  401. package/es/components/tag/index.d.ts +8 -8
  402. package/es/components/tag/src/tag.d.ts +2 -2
  403. package/es/components/tag/src/tag.mjs +2 -2
  404. package/es/components/tag/src/tag.mjs.map +1 -1
  405. package/es/components/tag/src/tag.vue.d.ts +8 -8
  406. package/es/components/tag/src/tag2.mjs +3 -3
  407. package/es/components/tag/src/tag2.mjs.map +1 -1
  408. package/es/components/time-picker/src/common/props.d.ts +27 -9
  409. package/es/components/time-picker/src/common/props.mjs.map +1 -1
  410. package/es/components/time-picker/src/props/shared.mjs.map +1 -1
  411. package/es/components/time-picker/src/time-picker.d.ts +6 -0
  412. package/es/components/time-picker/src/time-picker.mjs.map +1 -1
  413. package/es/components/time-select/src/time-select.mjs.map +1 -1
  414. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  415. package/es/components/timeline/index.d.ts +38 -0
  416. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  417. package/es/components/timeline/src/timeline-item.vue.d.ts +19 -0
  418. package/es/components/timeline/src/timeline-item2.mjs +9 -7
  419. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  420. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  421. package/es/components/tooltip-v2/src/root2.mjs +2 -2
  422. package/es/components/transfer/index.d.ts +15 -0
  423. package/es/components/transfer/src/transfer.vue.d.ts +15 -0
  424. package/es/components/tree/index.d.ts +2 -2
  425. package/es/components/tree/src/model/useDragNode.mjs +2 -2
  426. package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
  427. package/es/components/tree/src/tree.mjs +9 -5
  428. package/es/components/tree/src/tree.mjs.map +1 -1
  429. package/es/components/tree/src/tree.type.d.ts +1 -1
  430. package/es/components/tree/src/tree.vue.d.ts +1 -1
  431. package/es/components/tree-select/src/tree-select.mjs.map +1 -1
  432. package/es/components/tree-select/src/tree.mjs +20 -3
  433. package/es/components/tree-select/src/tree.mjs.map +1 -1
  434. package/es/components/upload/index.d.ts +8 -0
  435. package/es/components/upload/src/upload-content2.mjs +5 -1
  436. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  437. package/es/components/upload/src/upload-list.vue.d.ts +8 -0
  438. package/es/components/upload/src/upload.vue.d.ts +8 -0
  439. package/es/components/virtual-list/src/builders/build-grid.mjs +2 -1
  440. package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
  441. package/es/components/virtual-list/src/builders/build-list.mjs +2 -1
  442. package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
  443. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +1 -2
  444. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
  445. package/es/components/virtual-list/src/components/fixed-size-grid.mjs +1 -1
  446. package/es/directives/click-outside/index.mjs +1 -1
  447. package/es/directives/click-outside/index.mjs.map +1 -1
  448. package/es/hooks/use-delayed-toggle/index.mjs +1 -1
  449. package/es/hooks/use-escape-keydown/index.mjs +2 -1
  450. package/es/hooks/use-escape-keydown/index.mjs.map +1 -1
  451. package/es/hooks/use-floating/index.mjs.map +1 -1
  452. package/es/hooks/use-id/index.mjs +1 -1
  453. package/es/hooks/use-id/index.mjs.map +1 -1
  454. package/es/hooks/use-lockscreen/index.mjs +1 -1
  455. package/es/hooks/use-lockscreen/index.mjs.map +1 -1
  456. package/es/hooks/use-model-toggle/index.mjs +2 -1
  457. package/es/hooks/use-model-toggle/index.mjs.map +1 -1
  458. package/es/hooks/use-popper-container/index.mjs +2 -1
  459. package/es/hooks/use-popper-container/index.mjs.map +1 -1
  460. package/es/hooks/use-teleport/index.mjs +1 -1
  461. package/es/hooks/use-teleport/index.mjs.map +1 -1
  462. package/es/hooks/use-z-index/index.mjs +1 -1
  463. package/es/index.mjs +1 -0
  464. package/es/index.mjs.map +1 -1
  465. package/es/locale/lang/fa.mjs +20 -20
  466. package/es/locale/lang/fa.mjs.map +1 -1
  467. package/es/utils/browser.d.ts +2 -0
  468. package/es/utils/browser.mjs +1 -0
  469. package/es/utils/browser.mjs.map +1 -1
  470. package/es/utils/dom/position.mjs +1 -0
  471. package/es/utils/dom/position.mjs.map +1 -1
  472. package/es/utils/dom/scroll.mjs +2 -1
  473. package/es/utils/dom/scroll.mjs.map +1 -1
  474. package/es/utils/dom/style.mjs +3 -2
  475. package/es/utils/dom/style.mjs.map +1 -1
  476. package/es/utils/i18n.mjs +1 -1
  477. package/es/utils/i18n.mjs.map +1 -1
  478. package/es/utils/index.mjs +2 -2
  479. package/es/utils/raf.mjs +1 -0
  480. package/es/utils/raf.mjs.map +1 -1
  481. package/es/utils/types.d.ts +2 -1
  482. package/es/utils/types.mjs +3 -2
  483. package/es/utils/types.mjs.map +1 -1
  484. package/es/utils/vue/global-node.mjs +1 -0
  485. package/es/utils/vue/global-node.mjs.map +1 -1
  486. package/es/version.d.ts +1 -1
  487. package/es/version.mjs +1 -1
  488. package/es/version.mjs.map +1 -1
  489. package/lib/components/affix/src/affix.js +3 -3
  490. package/lib/components/affix/src/affix.js.map +1 -1
  491. package/lib/components/avatar/src/avatar.js +2 -2
  492. package/lib/components/avatar/src/avatar.js.map +1 -1
  493. package/lib/components/avatar/src/avatar2.js +2 -2
  494. package/lib/components/avatar/src/avatar2.js.map +1 -1
  495. package/lib/components/badge/src/badge2.js +2 -2
  496. package/lib/components/badge/src/badge2.js.map +1 -1
  497. package/lib/components/button/index.d.ts +15 -0
  498. package/lib/components/button/src/button.d.ts +4 -3
  499. package/lib/components/button/src/button.js +4 -0
  500. package/lib/components/button/src/button.js.map +1 -1
  501. package/lib/components/button/src/button.vue.d.ts +15 -0
  502. package/lib/components/button/src/button2.js +33 -34
  503. package/lib/components/button/src/button2.js.map +1 -1
  504. package/lib/components/button/src/use-button.d.ts +11 -0
  505. package/lib/components/button/src/use-button.js +12 -0
  506. package/lib/components/button/src/use-button.js.map +1 -1
  507. package/lib/components/calendar/index.d.ts +15 -0
  508. package/lib/components/calendar/src/calendar.vue.d.ts +17 -2
  509. package/lib/components/carousel/index.d.ts +10 -0
  510. package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -0
  511. package/lib/components/carousel/src/carousel-item2.js +7 -1
  512. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  513. package/lib/components/carousel/src/carousel.js +2 -2
  514. package/lib/components/carousel/src/carousel.js.map +1 -1
  515. package/lib/components/carousel/src/carousel.vue.d.ts +8 -0
  516. package/lib/components/carousel/src/carousel2.js +7 -2
  517. package/lib/components/carousel/src/carousel2.js.map +1 -1
  518. package/lib/components/carousel/src/constants.d.ts +1 -0
  519. package/lib/components/carousel/src/constants.js.map +1 -1
  520. package/lib/components/carousel/src/use-carousel-item.d.ts +1 -0
  521. package/lib/components/carousel/src/use-carousel-item.js +7 -5
  522. package/lib/components/carousel/src/use-carousel-item.js.map +1 -1
  523. package/lib/components/carousel/src/use-carousel.d.ts +8 -0
  524. package/lib/components/carousel/src/use-carousel.js +21 -1
  525. package/lib/components/carousel/src/use-carousel.js.map +1 -1
  526. package/lib/components/cascader/index.d.ts +16 -16
  527. package/lib/components/cascader/src/cascader.js +2 -2
  528. package/lib/components/cascader/src/cascader.js.map +1 -1
  529. package/lib/components/cascader/src/cascader.vue.d.ts +8 -8
  530. package/lib/components/cascader/src/cascader2.js.map +1 -1
  531. package/lib/components/cascader-panel/src/index.js +1 -1
  532. package/lib/components/cascader-panel/src/index.js.map +1 -1
  533. package/lib/components/check-tag/index.d.ts +1 -0
  534. package/lib/components/check-tag/src/check-tag.js +3 -3
  535. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  536. package/lib/components/check-tag/src/check-tag.vue.d.ts +1 -0
  537. package/lib/components/check-tag/src/check-tag2.js +2 -1
  538. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  539. package/lib/components/checkbox/src/checkbox.js +3 -3
  540. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  541. package/lib/components/checkbox/src/composables/use-checkbox-status.js +2 -2
  542. package/lib/components/checkbox/src/composables/use-checkbox-status.js.map +1 -1
  543. package/lib/components/col/src/col2.js +3 -3
  544. package/lib/components/col/src/col2.js.map +1 -1
  545. package/lib/components/collapse/src/collapse.js +2 -2
  546. package/lib/components/collapse/src/collapse.js.map +1 -1
  547. package/lib/components/color-picker/index.d.ts +15 -0
  548. package/lib/components/color-picker/src/color-picker.vue.d.ts +15 -0
  549. package/lib/components/color-picker/src/utils/draggable.js +1 -0
  550. package/lib/components/color-picker/src/utils/draggable.js.map +1 -1
  551. package/lib/components/countdown/src/countdown.js +2 -2
  552. package/lib/components/countdown/src/countdown.js.map +1 -1
  553. package/lib/components/countdown/src/utils.js +2 -2
  554. package/lib/components/countdown/src/utils.js.map +1 -1
  555. package/lib/components/date-picker/index.d.ts +173 -172
  556. package/lib/components/date-picker/index.js +4 -2
  557. package/lib/components/date-picker/index.js.map +1 -1
  558. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +15 -0
  559. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +15 -0
  560. package/lib/components/date-picker/src/date-picker.d.ts +86 -86
  561. package/lib/components/date-picker/src/date-picker.js +1 -5
  562. package/lib/components/date-picker/src/date-picker.js.map +1 -1
  563. package/lib/components/date-picker/src/panel-utils.d.ts +30 -0
  564. package/lib/components/date-picker/src/props/date-picker.d.ts +77 -0
  565. package/lib/components/date-picker/src/props/date-picker.js +3 -0
  566. package/lib/components/date-picker/src/props/date-picker.js.map +1 -1
  567. package/lib/components/dialog/src/dialog.js +2 -2
  568. package/lib/components/dialog/src/dialog.js.map +1 -1
  569. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  570. package/lib/components/dropdown/index.d.ts +1 -0
  571. package/lib/components/dropdown/index.js +1 -0
  572. package/lib/components/dropdown/index.js.map +1 -1
  573. package/lib/components/dropdown/src/instance.d.ts +2 -0
  574. package/lib/components/dropdown/src/instance.js +3 -0
  575. package/lib/components/dropdown/src/instance.js.map +1 -0
  576. package/lib/components/empty/src/empty.js.map +1 -1
  577. package/lib/components/form/src/form-item2.js +2 -1
  578. package/lib/components/form/src/form-item2.js.map +1 -1
  579. package/lib/components/form/src/form.js +2 -2
  580. package/lib/components/form/src/form.js.map +1 -1
  581. package/lib/components/image/src/image.js +2 -2
  582. package/lib/components/image/src/image.js.map +1 -1
  583. package/lib/components/image/src/image2.js +30 -28
  584. package/lib/components/image/src/image2.js.map +1 -1
  585. package/lib/components/image-viewer/src/image-viewer.js +2 -2
  586. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  587. package/lib/components/image-viewer/src/image-viewer2.js +2 -1
  588. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  589. package/lib/components/index.js +2 -0
  590. package/lib/components/index.js.map +1 -1
  591. package/lib/components/input/src/input2.js.map +1 -1
  592. package/lib/components/input/src/utils.js +3 -3
  593. package/lib/components/input/src/utils.js.map +1 -1
  594. package/lib/components/input-number/src/input-number.js +4 -4
  595. package/lib/components/input-number/src/input-number.js.map +1 -1
  596. package/lib/components/input-number/src/input-number2.js +10 -8
  597. package/lib/components/input-number/src/input-number2.js.map +1 -1
  598. package/lib/components/loading/src/loading.js +1 -4
  599. package/lib/components/loading/src/loading.js.map +1 -1
  600. package/lib/components/loading/src/service.js +4 -4
  601. package/lib/components/loading/src/service.js.map +1 -1
  602. package/lib/components/menu/src/menu.js +1 -1
  603. package/lib/components/menu/src/menu.js.map +1 -1
  604. package/lib/components/menu/src/sub-menu.js +1 -1
  605. package/lib/components/menu/src/sub-menu.js.map +1 -1
  606. package/lib/components/message/src/message.js +1 -1
  607. package/lib/components/message/src/message.js.map +1 -1
  608. package/lib/components/message/src/method.js +2 -2
  609. package/lib/components/message/src/method.js.map +1 -1
  610. package/lib/components/message-box/src/messageBox.js +1 -1
  611. package/lib/components/message-box/src/messageBox.js.map +1 -1
  612. package/lib/components/notification/src/notify.js +1 -1
  613. package/lib/components/notification/src/notify.js.map +1 -1
  614. package/lib/components/page-header/src/page-header.js.map +1 -1
  615. package/lib/components/pagination/src/pagination.js +8 -8
  616. package/lib/components/pagination/src/pagination.js.map +1 -1
  617. package/lib/components/popconfirm/index.d.ts +15 -0
  618. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +15 -0
  619. package/lib/components/popover/src/popover.js +2 -2
  620. package/lib/components/popover/src/popover.js.map +1 -1
  621. package/lib/components/popper/src/utils.d.ts +1 -1
  622. package/lib/components/popper/src/utils.js +1 -0
  623. package/lib/components/popper/src/utils.js.map +1 -1
  624. package/lib/components/progress/index.d.ts +8 -0
  625. package/lib/components/progress/src/progress.d.ts +2 -0
  626. package/lib/components/progress/src/progress.js +2 -0
  627. package/lib/components/progress/src/progress.js.map +1 -1
  628. package/lib/components/progress/src/progress.vue.d.ts +8 -0
  629. package/lib/components/progress/src/progress2.js +3 -1
  630. package/lib/components/progress/src/progress2.js.map +1 -1
  631. package/lib/components/radio/src/radio.js +3 -3
  632. package/lib/components/radio/src/radio.js.map +1 -1
  633. package/lib/components/rate/src/rate.js +3 -3
  634. package/lib/components/rate/src/rate.js.map +1 -1
  635. package/lib/components/result/src/result.js.map +1 -1
  636. package/lib/components/scrollbar/src/scrollbar.js +2 -2
  637. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  638. package/lib/components/scrollbar/src/scrollbar2.js +4 -3
  639. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  640. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  641. package/lib/components/select/src/select.js.map +1 -1
  642. package/lib/components/select/src/useSelect.js +11 -4
  643. package/lib/components/select/src/useSelect.js.map +1 -1
  644. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  645. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  646. package/lib/components/slider/src/button.js +2 -2
  647. package/lib/components/slider/src/button.js.map +1 -1
  648. package/lib/components/slider/src/slider.js +2 -2
  649. package/lib/components/slider/src/slider.js.map +1 -1
  650. package/lib/components/space/src/space.js +3 -3
  651. package/lib/components/space/src/space.js.map +1 -1
  652. package/lib/components/space/src/use-space.js +2 -2
  653. package/lib/components/space/src/use-space.js.map +1 -1
  654. package/lib/components/statistic/src/statistic2.js +2 -2
  655. package/lib/components/statistic/src/statistic2.js.map +1 -1
  656. package/lib/components/steps/index.d.ts +2 -0
  657. package/lib/components/steps/src/item.vue.d.ts +1 -0
  658. package/lib/components/steps/src/item2.js +11 -8
  659. package/lib/components/steps/src/item2.js.map +1 -1
  660. package/lib/components/steps/src/steps.js +2 -2
  661. package/lib/components/steps/src/steps.js.map +1 -1
  662. package/lib/components/switch/src/switch.js +4 -4
  663. package/lib/components/switch/src/switch.js.map +1 -1
  664. package/lib/components/switch/src/switch2.js +4 -4
  665. package/lib/components/switch/src/switch2.js.map +1 -1
  666. package/lib/components/table/src/composables/use-scrollbar.js +2 -2
  667. package/lib/components/table/src/composables/use-scrollbar.js.map +1 -1
  668. package/lib/components/table/src/table-body/index.js +1 -1
  669. package/lib/components/table/src/table-body/index.js.map +1 -1
  670. package/lib/components/table/src/table-header/event-helper.js +7 -3
  671. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  672. package/lib/components/table/src/table-layout.js +1 -1
  673. package/lib/components/table/src/table-layout.js.map +1 -1
  674. package/lib/components/table/src/util.js +4 -4
  675. package/lib/components/table/src/util.js.map +1 -1
  676. package/lib/components/table-v2/src/components/row.js +2 -2
  677. package/lib/components/table-v2/src/components/row.js.map +1 -1
  678. package/lib/components/table-v2/src/composables/use-row.js +2 -2
  679. package/lib/components/table-v2/src/composables/use-row.js.map +1 -1
  680. package/lib/components/table-v2/src/composables/use-styles.js +3 -3
  681. package/lib/components/table-v2/src/composables/use-styles.js.map +1 -1
  682. package/lib/components/table-v2/src/renderers/cell.js +1 -1
  683. package/lib/components/table-v2/src/renderers/cell.js.map +1 -1
  684. package/lib/components/table-v2/src/table-grid.js +2 -2
  685. package/lib/components/table-v2/src/table-grid.js.map +1 -1
  686. package/lib/components/tabs/src/tabs.js +2 -3
  687. package/lib/components/tabs/src/tabs.js.map +1 -1
  688. package/lib/components/tag/index.d.ts +8 -8
  689. package/lib/components/tag/src/tag.d.ts +2 -2
  690. package/lib/components/tag/src/tag.js +2 -2
  691. package/lib/components/tag/src/tag.js.map +1 -1
  692. package/lib/components/tag/src/tag.vue.d.ts +8 -8
  693. package/lib/components/tag/src/tag2.js +3 -3
  694. package/lib/components/tag/src/tag2.js.map +1 -1
  695. package/lib/components/time-picker/src/common/props.d.ts +27 -9
  696. package/lib/components/time-picker/src/common/props.js.map +1 -1
  697. package/lib/components/time-picker/src/props/shared.js.map +1 -1
  698. package/lib/components/time-picker/src/time-picker.d.ts +6 -0
  699. package/lib/components/time-picker/src/time-picker.js.map +1 -1
  700. package/lib/components/time-select/src/time-select.js.map +1 -1
  701. package/lib/components/time-select/src/time-select2.js.map +1 -1
  702. package/lib/components/timeline/index.d.ts +38 -0
  703. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  704. package/lib/components/timeline/src/timeline-item.vue.d.ts +19 -0
  705. package/lib/components/timeline/src/timeline-item2.js +8 -6
  706. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  707. package/lib/components/tooltip/src/tooltip2.js +2 -2
  708. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  709. package/lib/components/tooltip-v2/src/root2.js +1 -1
  710. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  711. package/lib/components/transfer/index.d.ts +15 -0
  712. package/lib/components/transfer/src/transfer.vue.d.ts +15 -0
  713. package/lib/components/tree/index.d.ts +2 -2
  714. package/lib/components/tree/src/model/useDragNode.js +2 -2
  715. package/lib/components/tree/src/model/useDragNode.js.map +1 -1
  716. package/lib/components/tree/src/tree.js +8 -4
  717. package/lib/components/tree/src/tree.js.map +1 -1
  718. package/lib/components/tree/src/tree.type.d.ts +1 -1
  719. package/lib/components/tree/src/tree.vue.d.ts +1 -1
  720. package/lib/components/tree-select/src/tree-select.js.map +1 -1
  721. package/lib/components/tree-select/src/tree.js +20 -3
  722. package/lib/components/tree-select/src/tree.js.map +1 -1
  723. package/lib/components/upload/index.d.ts +8 -0
  724. package/lib/components/upload/src/upload-content2.js +4 -0
  725. package/lib/components/upload/src/upload-content2.js.map +1 -1
  726. package/lib/components/upload/src/upload-list.vue.d.ts +8 -0
  727. package/lib/components/upload/src/upload.vue.d.ts +8 -0
  728. package/lib/components/virtual-list/src/builders/build-grid.js +8 -7
  729. package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
  730. package/lib/components/virtual-list/src/builders/build-list.js +6 -5
  731. package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
  732. package/lib/components/virtual-list/src/components/dynamic-size-grid.js +2 -3
  733. package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
  734. package/lib/components/virtual-list/src/components/fixed-size-grid.js +3 -3
  735. package/lib/components/virtual-list/src/components/fixed-size-grid.js.map +1 -1
  736. package/lib/directives/click-outside/index.js +1 -1
  737. package/lib/directives/click-outside/index.js.map +1 -1
  738. package/lib/hooks/use-delayed-toggle/index.js +2 -2
  739. package/lib/hooks/use-delayed-toggle/index.js.map +1 -1
  740. package/lib/hooks/use-escape-keydown/index.js +2 -1
  741. package/lib/hooks/use-escape-keydown/index.js.map +1 -1
  742. package/lib/hooks/use-floating/index.js.map +1 -1
  743. package/lib/hooks/use-id/index.js +1 -1
  744. package/lib/hooks/use-id/index.js.map +1 -1
  745. package/lib/hooks/use-lockscreen/index.js +1 -1
  746. package/lib/hooks/use-lockscreen/index.js.map +1 -1
  747. package/lib/hooks/use-model-toggle/index.js +3 -2
  748. package/lib/hooks/use-model-toggle/index.js.map +1 -1
  749. package/lib/hooks/use-popper-container/index.js +2 -1
  750. package/lib/hooks/use-popper-container/index.js.map +1 -1
  751. package/lib/hooks/use-teleport/index.js +1 -1
  752. package/lib/hooks/use-teleport/index.js.map +1 -1
  753. package/lib/hooks/use-z-index/index.js +2 -2
  754. package/lib/hooks/use-z-index/index.js.map +1 -1
  755. package/lib/index.js +2 -0
  756. package/lib/index.js.map +1 -1
  757. package/lib/locale/lang/fa.js +20 -20
  758. package/lib/locale/lang/fa.js.map +1 -1
  759. package/lib/utils/browser.d.ts +2 -0
  760. package/lib/utils/browser.js +8 -0
  761. package/lib/utils/browser.js.map +1 -1
  762. package/lib/utils/dom/position.js +1 -0
  763. package/lib/utils/dom/position.js.map +1 -1
  764. package/lib/utils/dom/scroll.js +2 -1
  765. package/lib/utils/dom/scroll.js.map +1 -1
  766. package/lib/utils/dom/style.js +3 -2
  767. package/lib/utils/dom/style.js.map +1 -1
  768. package/lib/utils/i18n.js +1 -1
  769. package/lib/utils/i18n.js.map +1 -1
  770. package/lib/utils/index.js +11 -9
  771. package/lib/utils/index.js.map +1 -1
  772. package/lib/utils/raf.js +1 -0
  773. package/lib/utils/raf.js.map +1 -1
  774. package/lib/utils/types.d.ts +2 -1
  775. package/lib/utils/types.js +4 -9
  776. package/lib/utils/types.js.map +1 -1
  777. package/lib/utils/vue/global-node.js +1 -0
  778. package/lib/utils/vue/global-node.js.map +1 -1
  779. package/lib/version.d.ts +1 -1
  780. package/lib/version.js +1 -1
  781. package/lib/version.js.map +1 -1
  782. package/package.json +2 -2
  783. package/tags.json +1 -1
  784. package/theme-chalk/el-carousel-item.css +1 -1
  785. package/theme-chalk/el-carousel.css +1 -1
  786. package/theme-chalk/el-menu.css +1 -1
  787. package/theme-chalk/el-progress.css +1 -1
  788. package/theme-chalk/el-transfer.css +1 -1
  789. package/theme-chalk/index.css +1 -1
  790. package/theme-chalk/src/carousel-item.scss +8 -0
  791. package/theme-chalk/src/carousel.scss +9 -2
  792. package/theme-chalk/src/menu.scss +1 -0
  793. package/theme-chalk/src/progress.scss +27 -0
  794. package/theme-chalk/src/text.scss +1 -1
  795. package/theme-chalk/src/transfer.scss +1 -2
  796. package/web-types.json +1 -1
@@ -1,18 +1,18 @@
1
1
  export declare const ElTag: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
- readonly closable: BooleanConstructor;
3
2
  readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown, "", boolean>;
4
- readonly hit: BooleanConstructor;
3
+ readonly closable: BooleanConstructor;
5
4
  readonly disableTransitions: BooleanConstructor;
5
+ readonly hit: BooleanConstructor;
6
6
  readonly color: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
7
7
  readonly size: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "small" | "large", unknown, "", boolean>;
8
8
  readonly effect: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "light" | "dark" | "plain", unknown, "light", boolean>;
9
9
  readonly round: BooleanConstructor;
10
10
  }, {
11
11
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
- readonly closable: BooleanConstructor;
13
12
  readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown, "", boolean>;
14
- readonly hit: BooleanConstructor;
13
+ readonly closable: BooleanConstructor;
15
14
  readonly disableTransitions: BooleanConstructor;
15
+ readonly hit: BooleanConstructor;
16
16
  readonly color: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
17
17
  readonly size: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "small" | "large", unknown, "", boolean>;
18
18
  readonly effect: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "light" | "dark" | "plain", unknown, "light", boolean>;
@@ -41,7 +41,7 @@ export declare const ElTag: import("element-plus/es/utils").SFCWithInstall<impor
41
41
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
42
42
  cssVarBlockName: (name: string) => string;
43
43
  };
44
- classes: import("vue").ComputedRef<string[]>;
44
+ containerKls: import("vue").ComputedRef<string[]>;
45
45
  handleClose: (event: MouseEvent) => void;
46
46
  handleClick: (event: MouseEvent) => void;
47
47
  ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
@@ -112,10 +112,10 @@ export declare const ElTag: import("element-plus/es/utils").SFCWithInstall<impor
112
112
  close: (evt: MouseEvent) => boolean;
113
113
  click: (evt: MouseEvent) => boolean;
114
114
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
115
- readonly closable: BooleanConstructor;
116
115
  readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown, "", boolean>;
117
- readonly hit: BooleanConstructor;
116
+ readonly closable: BooleanConstructor;
118
117
  readonly disableTransitions: BooleanConstructor;
118
+ readonly hit: BooleanConstructor;
119
119
  readonly color: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
120
120
  readonly size: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "small" | "large", unknown, "", boolean>;
121
121
  readonly effect: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "light" | "dark" | "plain", unknown, "light", boolean>;
@@ -130,8 +130,8 @@ export declare const ElTag: import("element-plus/es/utils").SFCWithInstall<impor
130
130
  readonly size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>;
131
131
  readonly color: string;
132
132
  readonly round: boolean;
133
- readonly hit: boolean;
134
133
  readonly disableTransitions: boolean;
134
+ readonly hit: boolean;
135
135
  }>> & Record<string, any>;
136
136
  export default ElTag;
137
137
  export * from './src/tag';
@@ -1,10 +1,10 @@
1
1
  import type Tag from './tag.vue';
2
2
  import type { ExtractPropTypes } from 'vue';
3
3
  export declare const tagProps: {
4
- readonly closable: BooleanConstructor;
5
4
  readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown, "", boolean>;
6
- readonly hit: BooleanConstructor;
5
+ readonly closable: BooleanConstructor;
7
6
  readonly disableTransitions: BooleanConstructor;
7
+ readonly hit: BooleanConstructor;
8
8
  readonly color: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
9
9
  readonly size: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "small" | "large", unknown, "", boolean>;
10
10
  readonly effect: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "light" | "dark" | "plain", unknown, "light", boolean>;
@@ -4,14 +4,14 @@ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
4
  import { componentSizes } from '../../../constants/size.mjs';
5
5
 
6
6
  const tagProps = buildProps({
7
- closable: Boolean,
8
7
  type: {
9
8
  type: String,
10
9
  values: ["success", "info", "warning", "danger", ""],
11
10
  default: ""
12
11
  },
13
- hit: Boolean,
12
+ closable: Boolean,
14
13
  disableTransitions: Boolean,
14
+ hit: Boolean,
15
15
  color: {
16
16
  type: String,
17
17
  default: ""
@@ -1 +1 @@
1
- {"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n closable: Boolean,\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n hit: Boolean,\n disableTransitions: Boolean,\n color: {\n type: String,\n default: '',\n },\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
1
+ {"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: {\n type: String,\n default: '',\n },\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
@@ -1,18 +1,18 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- readonly closable: BooleanConstructor;
3
2
  readonly type: import("../../../utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown, "", boolean>;
4
- readonly hit: BooleanConstructor;
3
+ readonly closable: BooleanConstructor;
5
4
  readonly disableTransitions: BooleanConstructor;
5
+ readonly hit: BooleanConstructor;
6
6
  readonly color: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
7
7
  readonly size: import("../../../utils").EpPropFinalized<StringConstructor, "" | "default" | "small" | "large", unknown, "", boolean>;
8
8
  readonly effect: import("../../../utils").EpPropFinalized<StringConstructor, "light" | "dark" | "plain", unknown, "light", boolean>;
9
9
  readonly round: BooleanConstructor;
10
10
  }, {
11
11
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
- readonly closable: BooleanConstructor;
13
12
  readonly type: import("../../../utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown, "", boolean>;
14
- readonly hit: BooleanConstructor;
13
+ readonly closable: BooleanConstructor;
15
14
  readonly disableTransitions: BooleanConstructor;
15
+ readonly hit: BooleanConstructor;
16
16
  readonly color: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
17
17
  readonly size: import("../../../utils").EpPropFinalized<StringConstructor, "" | "default" | "small" | "large", unknown, "", boolean>;
18
18
  readonly effect: import("../../../utils").EpPropFinalized<StringConstructor, "light" | "dark" | "plain", unknown, "light", boolean>;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
42
42
  cssVarBlockName: (name: string) => string;
43
43
  };
44
- classes: import("vue").ComputedRef<string[]>;
44
+ containerKls: import("vue").ComputedRef<string[]>;
45
45
  handleClose: (event: MouseEvent) => void;
46
46
  handleClick: (event: MouseEvent) => void;
47
47
  ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
@@ -112,10 +112,10 @@ declare const _default: import("vue").DefineComponent<{
112
112
  close: (evt: MouseEvent) => boolean;
113
113
  click: (evt: MouseEvent) => boolean;
114
114
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
115
- readonly closable: BooleanConstructor;
116
115
  readonly type: import("../../../utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown, "", boolean>;
117
- readonly hit: BooleanConstructor;
116
+ readonly closable: BooleanConstructor;
118
117
  readonly disableTransitions: BooleanConstructor;
118
+ readonly hit: BooleanConstructor;
119
119
  readonly color: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
120
120
  readonly size: import("../../../utils").EpPropFinalized<StringConstructor, "" | "default" | "small" | "large", unknown, "", boolean>;
121
121
  readonly effect: import("../../../utils").EpPropFinalized<StringConstructor, "light" | "dark" | "plain", unknown, "light", boolean>;
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
130
130
  readonly size: import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>;
131
131
  readonly color: string;
132
132
  readonly round: boolean;
133
- readonly hit: boolean;
134
133
  readonly disableTransitions: boolean;
134
+ readonly hit: boolean;
135
135
  }>;
136
136
  export default _default;
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  const props = __props;
20
20
  const tagSize = useFormSize();
21
21
  const ns = useNamespace("tag");
22
- const classes = computed(() => {
22
+ const containerKls = computed(() => {
23
23
  const { type, hit, effect, closable, round } = props;
24
24
  return [
25
25
  ns.b(),
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  return (_ctx, _cache) => {
41
41
  return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
42
42
  key: 0,
43
- class: normalizeClass(unref(classes)),
43
+ class: normalizeClass(unref(containerKls)),
44
44
  style: normalizeStyle({ backgroundColor: _ctx.color }),
45
45
  onClick: handleClick
46
46
  }, [
@@ -66,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  }, {
67
67
  default: withCtx(() => [
68
68
  createElementVNode("span", {
69
- class: normalizeClass(unref(classes)),
69
+ class: normalizeClass(unref(containerKls)),
70
70
  style: normalizeStyle({ backgroundColor: _ctx.color }),
71
71
  onClick: handleClick
72
72
  }, [
@@ -1 +1 @@
1
- {"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear>\n <span\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst classes = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAuCc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,OAAA,GAAU,SAAS,MAAM;AAC7B,MAAA,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,MAAA,EAAQ,UAAU,KAAU,EAAA,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,EAAE,IAAI,CAAA;AAAA,QACT,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear>\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAuCc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,MAAA,EAAQ,UAAU,KAAU,EAAA,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,EAAE,IAAI,CAAA;AAAA,QACT,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -13,13 +13,17 @@ export declare type GetDisabledSeconds = (hour: number, minute: number, role: st
13
13
  export declare const timePickerDefaultProps: {
14
14
  readonly disabledDate: {
15
15
  readonly type: import("vue").PropType<Function>;
16
- readonly required: false;
16
+ readonly required: false; /**
17
+ * @description placeholder for the start date in range mode
18
+ */
17
19
  readonly validator: ((val: unknown) => boolean) | undefined;
18
20
  __epPropKey: true;
19
21
  };
20
22
  readonly cellClassName: {
21
23
  readonly type: import("vue").PropType<Function>;
22
- readonly required: false;
24
+ readonly required: false; /**
25
+ * @description placeholder for the start date in range mode
26
+ */
23
27
  readonly validator: ((val: unknown) => boolean) | undefined;
24
28
  __epPropKey: true;
25
29
  };
@@ -31,25 +35,33 @@ export declare const timePickerDefaultProps: {
31
35
  readonly unlinkPanels: BooleanConstructor;
32
36
  readonly disabledHours: {
33
37
  readonly type: import("vue").PropType<import("../props/shared").GetDisabledHours>;
34
- readonly required: false;
38
+ readonly required: false; /**
39
+ * @description placeholder for the start date in range mode
40
+ */
35
41
  readonly validator: ((val: unknown) => boolean) | undefined;
36
42
  __epPropKey: true;
37
43
  };
38
44
  readonly disabledMinutes: {
39
45
  readonly type: import("vue").PropType<import("../props/shared").GetDisabledMinutes>;
40
- readonly required: false;
46
+ readonly required: false; /**
47
+ * @description placeholder for the start date in range mode
48
+ */
41
49
  readonly validator: ((val: unknown) => boolean) | undefined;
42
50
  __epPropKey: true;
43
51
  };
44
52
  readonly disabledSeconds: {
45
53
  readonly type: import("vue").PropType<import("../props/shared").GetDisabledSeconds>;
46
- readonly required: false;
54
+ readonly required: false; /**
55
+ * @description placeholder for the start date in range mode
56
+ */
47
57
  readonly validator: ((val: unknown) => boolean) | undefined;
48
58
  __epPropKey: true;
49
59
  };
50
60
  readonly id: {
51
61
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>) | ((new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>))[], unknown, unknown>>;
52
- readonly required: false;
62
+ readonly required: false; /**
63
+ * @description placeholder for the start date in range mode
64
+ */
53
65
  readonly validator: ((val: unknown) => boolean) | undefined;
54
66
  __epPropKey: true;
55
67
  };
@@ -64,7 +76,9 @@ export declare const timePickerDefaultProps: {
64
76
  readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
65
77
  readonly size: {
66
78
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
67
- readonly required: false;
79
+ readonly required: false; /**
80
+ * @description placeholder for the start date in range mode
81
+ */
68
82
  readonly validator: ((val: unknown) => boolean) | undefined;
69
83
  __epPropKey: true;
70
84
  };
@@ -78,13 +92,17 @@ export declare const timePickerDefaultProps: {
78
92
  readonly endPlaceholder: StringConstructor;
79
93
  readonly defaultValue: {
80
94
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
81
- readonly required: false;
95
+ readonly required: false; /**
96
+ * @description placeholder for the start date in range mode
97
+ */
82
98
  readonly validator: ((val: unknown) => boolean) | undefined;
83
99
  __epPropKey: true;
84
100
  };
85
101
  readonly defaultTime: {
86
102
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
87
- readonly required: false;
103
+ readonly required: false; /**
104
+ * @description placeholder for the start date in range mode
105
+ */
88
106
  readonly validator: ((val: unknown) => boolean) | undefined;
89
107
  __epPropKey: true;
90
108
  };
@@ -1 +1 @@
1
- {"version":3,"file":"props.mjs","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType>\nexport type DayOrDays = SingleOrRange<Dayjs>\nexport type DateOrDates = SingleOrRange<Date>\nexport type UserInput = SingleOrRange<string | null>\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const timePickerDefaultProps = buildProps({\n id: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n },\n name: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n default: '',\n },\n popperClass: {\n type: String,\n default: '',\n },\n format: String,\n valueFormat: String,\n type: {\n type: String,\n default: '',\n },\n clearable: {\n type: Boolean,\n default: true,\n },\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: CircleClose,\n },\n editable: {\n type: Boolean,\n default: true,\n },\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n size: useSizeProp,\n readonly: {\n type: Boolean,\n default: false,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n placeholder: {\n type: String,\n default: '',\n },\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n modelValue: {\n type: definePropType<ModelValueType>([Date, Array, String, Number]),\n default: '',\n },\n rangeSeparator: {\n type: String,\n default: '-',\n },\n startPlaceholder: String,\n endPlaceholder: String,\n defaultValue: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n defaultTime: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n isRange: {\n type: Boolean,\n default: false,\n },\n ...disabledTimeListsProps,\n disabledDate: {\n type: Function,\n },\n cellClassName: {\n type: Function,\n },\n shortcuts: {\n type: Array,\n default: () => [],\n },\n arrowControl: {\n type: Boolean,\n default: false,\n },\n label: {\n type: String,\n default: undefined,\n },\n tabindex: {\n type: definePropType<string | number>([String, Number]),\n default: 0,\n },\n validateEvent: {\n type: Boolean,\n default: true,\n },\n unlinkPanels: Boolean,\n} as const)\n\nexport type TimePickerDefaultProps = ExtractPropTypes<\n typeof timePickerDefaultProps\n>\n\nexport interface PickerOptions {\n isValidValue: (date: DayOrDays) => boolean\n handleKeydownInput: (event: KeyboardEvent) => void\n parseUserInput: (value: UserInput) => DayOrDays\n formatToString: (value: DayOrDays) => UserInput\n getRangeAvailableTime: (date: DayOrDays) => DayOrDays\n getDefaultValue: () => DayOrDays\n panelReady: boolean\n handleClear: () => void\n handleFocusPicker?: () => void\n}\n"],"names":[],"mappings":";;;;;;;AAIY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc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AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,CAAC;;;;"}
1
+ {"version":3,"file":"props.mjs","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType>\nexport type DayOrDays = SingleOrRange<Dayjs>\nexport type DateOrDates = SingleOrRange<Date>\nexport type UserInput = SingleOrRange<string | null>\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const timePickerDefaultProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n },\n /**\n * @description same as `name` in native input\n */\n name: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n default: '',\n },\n /**\n * @description custom class name for TimePicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description format of the displayed value in the input box\n */\n format: String,\n /**\n * @description optional, format of binding value. If not specified, the binding value will be a Date object\n */\n valueFormat: String,\n /**\n * @description type of the picker\n */\n type: {\n type: String,\n default: '',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: CircleClose,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description whether TimePicker is read only\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * @description whether TimePicker is disabled\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * @description placeholder in non-range mode\n */\n placeholder: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n /**\n * @description binding value, if it is an array, the length should be 2\n */\n modelValue: {\n type: definePropType<ModelValueType>([Date, Array, String, Number]),\n default: '',\n },\n /**\n * @description range separator\n */\n rangeSeparator: {\n type: String,\n default: '-',\n },\n /**\n * @description placeholder for the start date in range mode\n */\n startPlaceholder: String,\n /**\n * @description placeholder for the end date in range mode\n */\n endPlaceholder: String,\n /**\n * @description optional, default date of the calendar\n */\n defaultValue: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description optional, the time value to use when selecting date range\n */\n defaultTime: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description whether to pick a time range\n */\n isRange: {\n type: Boolean,\n default: false,\n },\n ...disabledTimeListsProps,\n /**\n * @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean\n */\n disabledDate: {\n type: Function,\n },\n /**\n * @description set custom className\n */\n cellClassName: {\n type: Function,\n },\n /**\n * @description an object array to set shortcut options\n */\n shortcuts: {\n type: Array,\n default: () => [],\n },\n /**\n * @description whether to pick time using arrow buttons\n */\n arrowControl: {\n type: Boolean,\n default: false,\n },\n /**\n * @description same as `aria-label` in native input\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: definePropType<string | number>([String, Number]),\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unlink two date-panels in range-picker\n */\n unlinkPanels: Boolean,\n} as const)\n\nexport type TimePickerDefaultProps = ExtractPropTypes<\n typeof timePickerDefaultProps\n>\n\nexport interface PickerOptions {\n isValidValue: (date: DayOrDays) => boolean\n handleKeydownInput: (event: KeyboardEvent) => void\n parseUserInput: (value: UserInput) => DayOrDays\n formatToString: (value: DayOrDays) => UserInput\n getRangeAvailableTime: (date: DayOrDays) => DayOrDays\n getDefaultValue: () => DayOrDays\n panelReady: boolean\n handleClear: () => void\n handleFocusPicker?: () => void\n}\n"],"names":[],"mappings":";;;;;;;AAIY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AAC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AAE,YAAY,EAAE,OAAO;AACvB,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"shared.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/shared.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const disabledTimeListsProps = buildProps({\n disabledHours: {\n type: definePropType<GetDisabledHours>(Function),\n },\n disabledMinutes: {\n type: definePropType<GetDisabledMinutes>(Function),\n },\n disabledSeconds: {\n type: definePropType<GetDisabledSeconds>(Function),\n },\n} as const)\n\nexport type DisabledTimeListsProps = ExtractPropTypes<\n typeof disabledTimeListsProps\n>\n\nexport const timePanelSharedProps = buildProps({\n visible: Boolean,\n actualVisible: {\n type: Boolean,\n default: undefined,\n },\n format: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type TimePanelSharedProps = ExtractPropTypes<typeof timePanelSharedProps>\n"],"names":[],"mappings":";;;AACY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"shared.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/shared.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const disabledTimeListsProps = buildProps({\n /**\n * @description To specify the array of hours that cannot be selected\n */\n disabledHours: {\n type: definePropType<GetDisabledHours>(Function),\n },\n /**\n * @description To specify the array of minutes that cannot be selected\n */\n disabledMinutes: {\n type: definePropType<GetDisabledMinutes>(Function),\n },\n /**\n * @description To specify the array of seconds that cannot be selected\n */\n disabledSeconds: {\n type: definePropType<GetDisabledSeconds>(Function),\n },\n} as const)\n\nexport type DisabledTimeListsProps = ExtractPropTypes<\n typeof disabledTimeListsProps\n>\n\nexport const timePanelSharedProps = buildProps({\n visible: Boolean,\n actualVisible: {\n type: Boolean,\n default: undefined,\n },\n format: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type TimePanelSharedProps = ExtractPropTypes<typeof timePanelSharedProps>\n"],"names":[],"mappings":";;;AACY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -1,4 +1,7 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ /**
3
+ * @description whether to pick a time range
4
+ */
2
5
  isRange: {
3
6
  type: BooleanConstructor;
4
7
  default: boolean;
@@ -81,6 +84,9 @@ declare const _default: import("vue").DefineComponent<{
81
84
  __epPropKey: true;
82
85
  };
83
86
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
87
+ /**
88
+ * @description whether to pick a time range
89
+ */
84
90
  isRange: {
85
91
  type: BooleanConstructor;
86
92
  default: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"time-picker.mjs","sources":["../../../../../../packages/components/time-picker/src/time-picker.tsx"],"sourcesContent":["import { defineComponent, provide, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport { DEFAULT_FORMATS_TIME } from './constants'\nimport Picker from './common/picker.vue'\nimport TimePickPanel from './time-picker-com/panel-time-pick.vue'\nimport TimeRangePanel from './time-picker-com/panel-time-range.vue'\nimport { timePickerDefaultProps } from './common/props'\ndayjs.extend(customParseFormat)\n\nexport default defineComponent({\n name: 'ElTimePicker',\n install: null,\n props: {\n ...timePickerDefaultProps,\n isRange: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['update:modelValue'],\n setup(props, ctx) {\n const commonPicker = ref<InstanceType<typeof Picker>>()\n const [type, Panel] = props.isRange\n ? ['timerange', TimeRangePanel]\n : ['time', TimePickPanel]\n\n const modelUpdater = (value: any) => ctx.emit('update:modelValue', value)\n provide('ElPopperOptions', props.popperOptions)\n ctx.expose({\n /**\n * @description focus on the input element\n */\n focus: (e: FocusEvent | undefined) => {\n commonPicker.value?.handleFocusInput(e)\n },\n /**\n * @description blur from the input element\n */\n blur: (e: FocusEvent | undefined) => {\n commonPicker.value?.handleBlurInput(e)\n },\n /**\n * @description opens the picker element\n */\n handleOpen: () => {\n commonPicker.value?.handleOpen()\n },\n /**\n * @description closes the picker element\n */\n handleClose: () => {\n commonPicker.value?.handleClose()\n },\n })\n\n return () => {\n const format = props.format ?? DEFAULT_FORMATS_TIME\n\n return (\n <Picker\n {...props}\n ref={commonPicker}\n type={type}\n format={format}\n onUpdate:modelValue={modelUpdater}\n >\n {{\n default: (props: any) => <Panel {...props} />,\n }}\n </Picker>\n )\n }\n },\n})\n"],"names":["dayjs","extend","customParseFormat","defineComponent","name","install","props","isRange","type","default","setup","ctx","commonPicker","ref","Panel","TimeRangePanel","TimePickPanel","modelUpdater","value","provide","expose","handleFocusInput","blur","handleOpen","_createVNode","Picker","_mergeProps","handleClose"],"mappings":";;;;;;;;;AAQAA,KAAK,CAACC,MAAN,CAAaC,iBAAb,CAAA,CAAA;AAEA,iBAAeC,eAAe,CAAC;AAC7BC,EAAAA,IAAI,EAAE,cADuB;AAE7BC,EAAAA,OAAO,EAAE,IAFoB;EAG7BC,KAAK,EAAE;AAELC,IAAAA,GAAAA,sBAAS;AACPC,IAAAA,SADO;AAEPC,MAAAA,IAAAA,EAAAA,OAAS;AAFF,MAAA,OAAA,EAAA,KAAA;KALkB;GAUxB;;AACLC,EAAAA,KAAK,CAACJ,KAAD,EAAQK,GAAR,EAAa;IAChB,MAAMC,YAAY,GAAGC,GAAG,EAAxB,CAAA;AACA,IAAA,MAAM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AA,QAAA,EAAA,MAAA;AACN,QAAA,qBAAA,EAAA,YAAA;AACA,OAAA,CAAA,EAAA;AACMC,QAAAA,OAAAA,EAAW,OAAQ,KAAAH,WAAA,CAAA,KAAA,EAAA,MAAA,EAAA,IAAA,CAAA;QACjBZ,CAAY;AACb,KAAA,CAAA;;AAGH,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"time-picker.mjs","sources":["../../../../../../packages/components/time-picker/src/time-picker.tsx"],"sourcesContent":["import { defineComponent, provide, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport { DEFAULT_FORMATS_TIME } from './constants'\nimport Picker from './common/picker.vue'\nimport TimePickPanel from './time-picker-com/panel-time-pick.vue'\nimport TimeRangePanel from './time-picker-com/panel-time-range.vue'\nimport { timePickerDefaultProps } from './common/props'\ndayjs.extend(customParseFormat)\n\nexport default defineComponent({\n name: 'ElTimePicker',\n install: null,\n props: {\n ...timePickerDefaultProps,\n /**\n * @description whether to pick a time range\n */\n isRange: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['update:modelValue'],\n setup(props, ctx) {\n const commonPicker = ref<InstanceType<typeof Picker>>()\n const [type, Panel] = props.isRange\n ? ['timerange', TimeRangePanel]\n : ['time', TimePickPanel]\n\n const modelUpdater = (value: any) => ctx.emit('update:modelValue', value)\n provide('ElPopperOptions', props.popperOptions)\n ctx.expose({\n /**\n * @description focus the Input component\n */\n focus: (e: FocusEvent | undefined) => {\n commonPicker.value?.handleFocusInput(e)\n },\n /**\n * @description blur the Input component\n */\n blur: (e: FocusEvent | undefined) => {\n commonPicker.value?.handleBlurInput(e)\n },\n /**\n * @description open the TimePicker popper\n */\n handleOpen: () => {\n commonPicker.value?.handleOpen()\n },\n /**\n * @description close the TimePicker popper\n */\n handleClose: () => {\n commonPicker.value?.handleClose()\n },\n })\n\n return () => {\n const format = props.format ?? DEFAULT_FORMATS_TIME\n\n return (\n <Picker\n {...props}\n ref={commonPicker}\n type={type}\n format={format}\n onUpdate:modelValue={modelUpdater}\n >\n {{\n default: (props: any) => <Panel {...props} />,\n }}\n </Picker>\n )\n }\n },\n})\n"],"names":["dayjs","extend","customParseFormat","defineComponent","name","install","props","isRange","type","default","setup","commonPicker","modelUpdater","value","ctx","emit","provide","expose","handleFocusInput","blur","_createVNode","Picker","_mergeProps","handleOpen","handleClose"],"mappings":";;;;;;;;;AAQAA,KAAK,CAACC,MAAN,CAAaC,iBAAb,CAAA,CAAA;AAEA,iBAAeC,eAAe,CAAC;AAC7BC,EAAAA,IAAI,EAAE,cADuB;AAE7BC,EAAAA,OAAO,EAAE,IAFoB;EAG7BC,KAAK,EAAE;;AAEL,IAAA,OAAA,EAAA;AACJ,MAAA,IAAA,EAAA,OAAA;AACA,MAAA,OAAA,EAAA,KAAA;AACIC,KAAAA;AACEC,GAAAA;AACAC,EAAAA,KAAAA,EAAAA,CAAAA,mBAAS,CAAA;AAFF,EAAA,KAAA,CAAA,KAAA,EAAA,GAAA,EAAA;IARkB,MAAA,YAAA,GAAA,GAAA,EAAA,CAAA;IAaxB,MAAG,CAAA,IAAA,EAAA,KAAA,CAAA,GAAA,KAbqB,CAAA,OAAA,GAAA,CAAA,WAAA,EAAA,cAAA,CAAA,GAAA,CAAA,MAAA,EAAA,aAAA,CAAA,CAAA;;AAc7BC,IAAAA,OAAMJ,CAAAA,iBAAY,EAAA,KAAA,CAAA,aAAA,CAAA,CAAA;IAChB,GAAMK,CAAAA,MAAAA,CAAAA;AACN,MAAA,KAAOH,EAAD,CAAA,CAAA;;QAIAI,CAAAA,EAAAA,GAAAA,YAAgBC,CAAAA,KAAeC,KAAG,IAACC,GAAK,KAAA,CAAA,GAAA,EAAA,CAAA,gBAA9C,CAAA,CAAA,CAAA,CAAA;;AACAC,MAAAA,IAAAA,EAAQ,CAAD,CAAA,KAAA;QACHC,MAAJ,CAAW;AACT,QAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,eAAA,CAAA,CAAA,CAAA,CAAA;AACN,OAAA;AACA,MAAA,UAAA,EAAA,MAAA;QACW,IAAA,EAAE,CAA+B;AACpCN,QAAAA,CAAAA,EAAAA,GAAAA,YAAA,CAAoBO,KAAAA,KAAAA,IAAAA,GAApB,KAAA,CAAA,GAAA,EAAA,CAAA,UAAA,EAAA,CAAA;OALO;;AAOT,QAAA,IAAA,EAAA,CAAA;AACN,QAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,WAAA,EAAA,CAAA;AACA,OAAA;MACMC,CAAI;AACFR,IAAAA,OAAAA,MAAAA;MACD,IAZQ,EAAA,CAAA;;AAaT,MAAA,OAAAS,WAAA,CAAAC,YAAA,EAAAC,UAAA,CAAA,KAAA,EAAA;AACN,QAAA,KAAA,EAAA,YAAA;AACA,QAAA,MAAA,EAAA,IAAA;AACMC,QAAAA,QAAU,EAAE,MAAM;QAChBZ,qBAAA,EAAA,YAAA;OAjBO,CAAA,EAAA;;AAmBT,OAAA,CAAA,CAAA;AACN,KAAA,CAAA;AACA,GAAA;AACMa,CAAAA,CAAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"time-select.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { useSizeProp } from '@element-plus/hooks'\nimport type TimeSelect from './time-select.vue'\nimport type { Component, ExtractPropTypes, PropType } from 'vue'\n\nexport const timeSelectProps = buildProps({\n format: {\n type: String,\n default: 'HH:mm',\n },\n modelValue: String,\n disabled: Boolean,\n editable: {\n type: Boolean,\n default: true,\n },\n effect: {\n type: String as PropType<'light' | 'dark' | string>,\n default: 'light',\n },\n clearable: {\n type: Boolean,\n default: true,\n },\n size: useSizeProp,\n placeholder: String,\n start: {\n type: String,\n default: '09:00',\n },\n end: {\n type: String,\n default: '18:00',\n },\n step: {\n type: String,\n default: '00:30',\n },\n minTime: String,\n maxTime: String,\n name: String,\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => Clock,\n },\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => CircleClose,\n },\n} as const)\n\nexport type TimeSelectProps = ExtractPropTypes<typeof timeSelectProps>\n\nexport type TimeSelectInstance = InstanceType<typeof TimeSelect>\n"],"names":[],"mappings":";;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,KAAK;AACxB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,WAAW;AAC9B,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"time-select.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { useSizeProp } from '@element-plus/hooks'\nimport type TimeSelect from './time-select.vue'\nimport type { Component, ExtractPropTypes, PropType } from 'vue'\n\nexport const timeSelectProps = buildProps({\n /**\n * @description set format of time\n */\n format: {\n type: String,\n default: 'HH:mm',\n },\n /**\n * @description binding value\n */\n modelValue: String,\n /**\n * @description whether TimeSelect is disabled\n */\n disabled: Boolean,\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: String as PropType<'light' | 'dark' | string>,\n default: 'light',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: String,\n /**\n * @description start time\n */\n start: {\n type: String,\n default: '09:00',\n },\n /**\n * @description end time\n */\n end: {\n type: String,\n default: '18:00',\n },\n /**\n * @description time step\n */\n step: {\n type: String,\n default: '00:30',\n },\n /**\n * @description minimum time, any time before this time will be disabled\n */\n minTime: String,\n /**\n * @description maximum time, any time after this time will be disabled\n */\n maxTime: String,\n /**\n * @description same as `name` in native input\n */\n name: String,\n /**\n * @description custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => Clock,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => CircleClose,\n },\n} as const)\n\nexport type TimeSelectProps = ExtractPropTypes<typeof timeSelectProps>\n\nexport type TimeSelectInstance = InstanceType<typeof TimeSelect>\n"],"names":[],"mappings":";;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,KAAK;AACxB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,WAAW;AAC9B,GAAG;AACH,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"time-select2.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :model-value=\"value\"\n :disabled=\"_disabled\"\n :clearable=\"clearable\"\n :clear-icon=\"clearIcon\"\n :size=\"size\"\n :effect=\"effect\"\n :placeholder=\"placeholder\"\n default-first-option\n :filterable=\"editable\"\n @update:model-value=\"(event) => $emit('update:modelValue', event)\"\n @change=\"(event) => $emit('change', event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n >\n <el-option\n v-for=\"item in items\"\n :key=\"item.value\"\n :label=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n />\n <template #prefix>\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('prefix-icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </template>\n </el-select>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport ElSelect from '@element-plus/components/select'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { timeSelectProps } from './time-select'\nimport { compareTime, formatTime, nextTime, parseTime } from './utils'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits(['change', 'blur', 'focus', 'update:modelValue'])\n\nconst props = defineProps(timeSelectProps)\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() => {\n const time = parseTime(props.start)\n return time ? formatTime(time) : null\n})\n\nconst end = computed(() => {\n const time = parseTime(props.end)\n return time ? formatTime(time) : null\n})\n\nconst step = computed(() => {\n const time = parseTime(props.step)\n return time ? formatTime(time) : null\n})\n\nconst minTime = computed(() => {\n const time = parseTime(props.minTime || '')\n return time ? formatTime(time) : null\n})\n\nconst maxTime = computed(() => {\n const time = parseTime(props.maxTime || '')\n return time ? formatTime(time) : null\n})\n\nconst items = computed(() => {\n const result: { value: string; disabled: boolean }[] = []\n if (props.start && props.end && props.step) {\n let current = start.value\n let currentTime: string\n while (current && end.value && compareTime(current, end.value) <= 0) {\n currentTime = dayjs(current, 'HH:mm').format(props.format)\n result.push({\n value: currentTime,\n disabled:\n compareTime(current, minTime.value || '-1:-1') <= 0 ||\n compareTime(current, maxTime.value || '100:100') >= 0,\n })\n current = nextTime(current, step.value!)\n }\n }\n return result\n})\n\nconst blur = () => {\n select.value?.blur?.()\n}\n\nconst focus = () => {\n select.value?.focus?.()\n}\n\ndefineExpose({\n blur,\n focus,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCA+Cc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AANA,IAAA,KAAA,CAAM,OAAO,iBAAiB,CAAA,CAAA;AAE9B,IAAM,MAAA,EAAE,QAAQ,QAAa,EAAA,GAAA,QAAA,CAAA;AAU7B,IAAM,MAAA,OAAA,GAAU,aAAa,OAAO,CAAA,CAAA;AACpC,IAAA,MAAM,SAAS,GAAqB,EAAA,CAAA;AAEpC,IAAA,MAAM,YAAY,eAAgB,EAAA,CAAA;AAElC,IAAA,MAAM,KAAQ,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,UAAU,CAAA,CAAA;AAC7C,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAM,MAAA,IAAA,GAAO,SA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"time-select2.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :model-value=\"value\"\n :disabled=\"_disabled\"\n :clearable=\"clearable\"\n :clear-icon=\"clearIcon\"\n :size=\"size\"\n :effect=\"effect\"\n :placeholder=\"placeholder\"\n default-first-option\n :filterable=\"editable\"\n @update:model-value=\"(event) => $emit('update:modelValue', event)\"\n @change=\"(event) => $emit('change', event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n >\n <el-option\n v-for=\"item in items\"\n :key=\"item.value\"\n :label=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n />\n <template #prefix>\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('prefix-icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </template>\n </el-select>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport ElSelect from '@element-plus/components/select'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { timeSelectProps } from './time-select'\nimport { compareTime, formatTime, nextTime, parseTime } from './utils'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits(['change', 'blur', 'focus', 'update:modelValue'])\n\nconst props = defineProps(timeSelectProps)\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() => {\n const time = parseTime(props.start)\n return time ? formatTime(time) : null\n})\n\nconst end = computed(() => {\n const time = parseTime(props.end)\n return time ? formatTime(time) : null\n})\n\nconst step = computed(() => {\n const time = parseTime(props.step)\n return time ? formatTime(time) : null\n})\n\nconst minTime = computed(() => {\n const time = parseTime(props.minTime || '')\n return time ? formatTime(time) : null\n})\n\nconst maxTime = computed(() => {\n const time = parseTime(props.maxTime || '')\n return time ? formatTime(time) : null\n})\n\nconst items = computed(() => {\n const result: { value: string; disabled: boolean }[] = []\n if (props.start && props.end && props.step) {\n let current = start.value\n let currentTime: string\n while (current && end.value && compareTime(current, end.value) <= 0) {\n currentTime = dayjs(current, 'HH:mm').format(props.format)\n result.push({\n value: currentTime,\n disabled:\n compareTime(current, minTime.value || '-1:-1') <= 0 ||\n compareTime(current, maxTime.value || '100:100') >= 0,\n })\n current = nextTime(current, step.value!)\n }\n }\n return result\n})\n\nconst blur = () => {\n select.value?.blur?.()\n}\n\nconst focus = () => {\n select.value?.focus?.()\n}\n\ndefineExpose({\n /**\n * @description focus the Input component\n */\n blur,\n /**\n * @description blur the Input component\n */\n focus,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCA+Cc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AANA,IAAA,KAAA,CAAM,OAAO,iBAAiB,CAAA,CAAA;AAE9B,IAAM,MAAA,EAAE,QAAQ,QAAa,EAAA,GAAA,QAAA,CAAA;AAU7B,IAAM,MAAA,OAAA,GAAU,aAAa,OAAO,CAAA,CAAA;AACpC,IAAA,MAAM,SAAS,GAAqB,EAAA,CAAA;AAEpC,IAAA,MAAM,YAAY,eAAgB,EAAA,CAAA;AAElC,IAAA,MAAM,KAAQ,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,UAAU,CAAA,CAAA;AAC7C,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAM,MAAA,IAAA,GAAO,SAAU,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AAClC,MAAO,OAAA,IAAA,GAAO,UAAW,CAAA,IAAI,CAAI,GAAA,IAAA,C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ithInstall<
17
17
  };
18
18
  readonly hollow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
19
19
  }, {
20
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
21
+ readonly timestamp: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
22
+ readonly hideTimestamp: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
23
+ readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
24
+ readonly placement: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "bottom", boolean>;
25
+ readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown, "", boolean>;
26
+ readonly color: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
27
+ readonly size: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "large" | "normal", unknown, "normal", boolean>;
28
+ readonly icon: {
29
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
30
+ readonly required: false;
31
+ readonly validator: ((val: unknown) => boolean) | undefined;
32
+ __epPropKey: true;
33
+ };
34
+ readonly hollow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
35
+ }>> & {
36
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
37
+ }>>;
20
38
  ns: {
21
39
  namespace: import("vue").ComputedRef<string>;
22
40
  b: (blockSuffix?: string) => string;
@@ -35,6 +53,7 @@ export declare const ElTimeline: import("element-plus/es/utils").SFCWithInstall<
35
53
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
36
54
  cssVarBlockName: (name: string) => string;
37
55
  };
56
+ defaultNodeKls: import("vue").ComputedRef<string[]>;
38
57
  ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
39
58
  readonly size: {
40
59
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
@@ -141,6 +160,24 @@ export declare const ElTimelineItem: import("element-plus/es/utils").SFCWithInst
141
160
  };
142
161
  readonly hollow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
143
162
  }, {
163
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
164
+ readonly timestamp: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
165
+ readonly hideTimestamp: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
166
+ readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
167
+ readonly placement: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "bottom", boolean>;
168
+ readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown, "", boolean>;
169
+ readonly color: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
170
+ readonly size: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "large" | "normal", unknown, "normal", boolean>;
171
+ readonly icon: {
172
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
173
+ readonly required: false;
174
+ readonly validator: ((val: unknown) => boolean) | undefined;
175
+ __epPropKey: true;
176
+ };
177
+ readonly hollow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
178
+ }>> & {
179
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
180
+ }>>;
144
181
  ns: {
145
182
  namespace: import("vue").ComputedRef<string>;
146
183
  b: (blockSuffix?: string) => string;
@@ -159,6 +196,7 @@ export declare const ElTimelineItem: import("element-plus/es/utils").SFCWithInst
159
196
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
160
197
  cssVarBlockName: (name: string) => string;
161
198
  };
199
+ defaultNodeKls: import("vue").ComputedRef<string[]>;
162
200
  ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
163
201
  readonly size: {
164
202
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-item.mjs","sources":["../../../../../../packages/components/timeline/src/timeline-item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TimelineItem from './timeline-item.vue'\n\nexport const timelineItemProps = buildProps({\n timestamp: {\n type: String,\n default: '',\n },\n hideTimestamp: {\n type: Boolean,\n default: false,\n },\n center: {\n type: Boolean,\n default: false,\n },\n placement: {\n type: String,\n values: ['top', 'bottom'],\n default: 'bottom',\n },\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'danger', 'info'],\n default: '',\n },\n color: {\n type: String,\n default: '',\n },\n size: {\n type: String,\n values: ['normal', 'large'],\n default: 'normal',\n },\n icon: {\n type: iconPropType,\n },\n hollow: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type TimelineItemProps = ExtractPropTypes<typeof timelineItemProps>\n\nexport type TimelineItemInstance = InstanceType<typeof TimelineItem>\n"],"names":[],"mappings":";;;;AACY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC;AAC/D,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC/B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"timeline-item.mjs","sources":["../../../../../../packages/components/timeline/src/timeline-item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TimelineItem from './timeline-item.vue'\n\nexport const timelineItemProps = buildProps({\n /**\n * @description timestamp content\n */\n timestamp: {\n type: String,\n default: '',\n },\n /**\n * @description whether to show timestamp\n */\n hideTimestamp: {\n type: Boolean,\n default: false,\n },\n /**\n * @description whether vertically centered\n */\n center: {\n type: Boolean,\n default: false,\n },\n /**\n * @description position of timestamp\n */\n placement: {\n type: String,\n values: ['top', 'bottom'],\n default: 'bottom',\n },\n /**\n * @description node type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'danger', 'info'],\n default: '',\n },\n /**\n * @description background color of node\n */\n color: {\n type: String,\n default: '',\n },\n /**\n * @description node size\n */\n size: {\n type: String,\n values: ['normal', 'large'],\n default: 'normal',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description icon is hollow\n */\n hollow: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type TimelineItemProps = ExtractPropTypes<typeof timelineItemProps>\n\nexport type TimelineItemInstance = InstanceType<typeof TimelineItem>\n"],"names":[],"mappings":";;;;AACY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC;AAC/D,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC/B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
@@ -14,6 +14,24 @@ declare const _default: import("vue").DefineComponent<{
14
14
  };
15
15
  readonly hollow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
16
16
  }, {
17
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
18
+ readonly timestamp: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
19
+ readonly hideTimestamp: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
20
+ readonly center: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
21
+ readonly placement: import("../../../utils").EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "bottom", boolean>;
22
+ readonly type: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown, "", boolean>;
23
+ readonly color: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
24
+ readonly size: import("../../../utils").EpPropFinalized<StringConstructor, "large" | "normal", unknown, "normal", boolean>;
25
+ readonly icon: {
26
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
27
+ readonly required: false;
28
+ readonly validator: ((val: unknown) => boolean) | undefined;
29
+ __epPropKey: true;
30
+ };
31
+ readonly hollow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
32
+ }>> & {
33
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
34
+ }>>;
17
35
  ns: {
18
36
  namespace: import("vue").ComputedRef<string>;
19
37
  b: (blockSuffix?: string) => string;
@@ -32,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
32
50
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
33
51
  cssVarBlockName: (name: string) => string;
34
52
  };
53
+ defaultNodeKls: import("vue").ComputedRef<string[]>;
35
54
  ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
36
55
  readonly size: {
37
56
  readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString } from 'vue';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString } from 'vue';
2
2
  import { ElIcon } from '../../icon/index.mjs';
3
3
  import '../../../hooks/index.mjs';
4
4
  import { timelineItemProps } from './timeline-item.mjs';
@@ -12,7 +12,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  ...__default__,
13
13
  props: timelineItemProps,
14
14
  setup(__props) {
15
+ const props = __props;
15
16
  const ns = useNamespace("timeline-item");
17
+ const defaultNodeKls = computed(() => [
18
+ ns.e("node"),
19
+ ns.em("node", props.size || ""),
20
+ ns.em("node", props.type || ""),
21
+ ns.is("hollow", props.hollow)
22
+ ]);
16
23
  return (_ctx, _cache) => {
17
24
  return openBlock(), createElementBlock("li", {
18
25
  class: normalizeClass([unref(ns).b(), { [unref(ns).e("center")]: _ctx.center }])
@@ -22,12 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
29
  }, null, 2),
23
30
  !_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
24
31
  key: 0,
25
- class: normalizeClass([
26
- unref(ns).e("node"),
27
- unref(ns).em("node", _ctx.size || ""),
28
- unref(ns).em("node", _ctx.type || ""),
29
- unref(ns).is("hollow", _ctx.hollow)
30
- ]),
32
+ class: normalizeClass(unref(defaultNodeKls)),
31
33
  style: normalizeStyle({
32
34
  backgroundColor: _ctx.color
33
35
  })