element-plus 2.14.1 → 2.14.2

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 (727) hide show
  1. package/README.md +10 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +76 -49
  4. package/dist/index.full.min.js +5 -5
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +8 -8
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +75 -50
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hi.js +1 -1
  94. package/dist/locale/hi.min.js +1 -1
  95. package/dist/locale/hi.min.mjs +1 -1
  96. package/dist/locale/hi.mjs +1 -1
  97. package/dist/locale/hr.js +1 -1
  98. package/dist/locale/hr.min.js +1 -1
  99. package/dist/locale/hr.min.mjs +1 -1
  100. package/dist/locale/hr.mjs +1 -1
  101. package/dist/locale/hu.js +1 -1
  102. package/dist/locale/hu.min.js +1 -1
  103. package/dist/locale/hu.min.mjs +1 -1
  104. package/dist/locale/hu.mjs +1 -1
  105. package/dist/locale/hy-am.js +1 -1
  106. package/dist/locale/hy-am.min.js +1 -1
  107. package/dist/locale/hy-am.min.mjs +1 -1
  108. package/dist/locale/hy-am.mjs +1 -1
  109. package/dist/locale/id.js +1 -1
  110. package/dist/locale/id.min.js +1 -1
  111. package/dist/locale/id.min.mjs +1 -1
  112. package/dist/locale/id.mjs +1 -1
  113. package/dist/locale/it.js +1 -1
  114. package/dist/locale/it.min.js +1 -1
  115. package/dist/locale/it.min.mjs +1 -1
  116. package/dist/locale/it.mjs +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ja.min.js +1 -1
  119. package/dist/locale/ja.min.mjs +1 -1
  120. package/dist/locale/ja.mjs +1 -1
  121. package/dist/locale/kk.js +1 -1
  122. package/dist/locale/kk.min.js +1 -1
  123. package/dist/locale/kk.min.mjs +1 -1
  124. package/dist/locale/kk.mjs +1 -1
  125. package/dist/locale/km.js +1 -1
  126. package/dist/locale/km.min.js +1 -1
  127. package/dist/locale/km.min.mjs +1 -1
  128. package/dist/locale/km.mjs +1 -1
  129. package/dist/locale/ko.js +1 -1
  130. package/dist/locale/ko.min.js +1 -1
  131. package/dist/locale/ko.min.mjs +1 -1
  132. package/dist/locale/ko.mjs +1 -1
  133. package/dist/locale/ku.js +1 -1
  134. package/dist/locale/ku.min.js +1 -1
  135. package/dist/locale/ku.min.mjs +1 -1
  136. package/dist/locale/ku.mjs +1 -1
  137. package/dist/locale/ky.js +1 -1
  138. package/dist/locale/ky.min.js +1 -1
  139. package/dist/locale/ky.min.mjs +1 -1
  140. package/dist/locale/ky.mjs +1 -1
  141. package/dist/locale/lo.js +1 -1
  142. package/dist/locale/lo.min.js +1 -1
  143. package/dist/locale/lo.min.mjs +1 -1
  144. package/dist/locale/lo.mjs +1 -1
  145. package/dist/locale/lt.js +1 -1
  146. package/dist/locale/lt.min.js +1 -1
  147. package/dist/locale/lt.min.mjs +1 -1
  148. package/dist/locale/lt.mjs +1 -1
  149. package/dist/locale/lv.js +1 -1
  150. package/dist/locale/lv.min.js +1 -1
  151. package/dist/locale/lv.min.mjs +1 -1
  152. package/dist/locale/lv.mjs +1 -1
  153. package/dist/locale/mg.js +1 -1
  154. package/dist/locale/mg.min.js +1 -1
  155. package/dist/locale/mg.min.mjs +1 -1
  156. package/dist/locale/mg.mjs +1 -1
  157. package/dist/locale/mn.js +1 -1
  158. package/dist/locale/mn.min.js +1 -1
  159. package/dist/locale/mn.min.mjs +1 -1
  160. package/dist/locale/mn.mjs +1 -1
  161. package/dist/locale/ms.js +1 -1
  162. package/dist/locale/ms.min.js +1 -1
  163. package/dist/locale/ms.min.mjs +1 -1
  164. package/dist/locale/ms.mjs +1 -1
  165. package/dist/locale/my.js +1 -1
  166. package/dist/locale/my.min.js +1 -1
  167. package/dist/locale/my.min.mjs +1 -1
  168. package/dist/locale/my.mjs +1 -1
  169. package/dist/locale/nb-no.js +1 -1
  170. package/dist/locale/nb-no.min.js +1 -1
  171. package/dist/locale/nb-no.min.mjs +1 -1
  172. package/dist/locale/nb-no.mjs +1 -1
  173. package/dist/locale/nl.js +1 -1
  174. package/dist/locale/nl.min.js +1 -1
  175. package/dist/locale/nl.min.mjs +1 -1
  176. package/dist/locale/nl.mjs +1 -1
  177. package/dist/locale/no.js +1 -1
  178. package/dist/locale/no.min.js +1 -1
  179. package/dist/locale/no.min.mjs +1 -1
  180. package/dist/locale/no.mjs +1 -1
  181. package/dist/locale/pa.js +1 -1
  182. package/dist/locale/pa.min.js +1 -1
  183. package/dist/locale/pa.min.mjs +1 -1
  184. package/dist/locale/pa.mjs +1 -1
  185. package/dist/locale/pl.js +1 -1
  186. package/dist/locale/pl.min.js +1 -1
  187. package/dist/locale/pl.min.mjs +1 -1
  188. package/dist/locale/pl.mjs +1 -1
  189. package/dist/locale/pt-br.js +1 -1
  190. package/dist/locale/pt-br.min.js +1 -1
  191. package/dist/locale/pt-br.min.mjs +1 -1
  192. package/dist/locale/pt-br.mjs +1 -1
  193. package/dist/locale/pt.js +1 -1
  194. package/dist/locale/pt.min.js +1 -1
  195. package/dist/locale/pt.min.mjs +1 -1
  196. package/dist/locale/pt.mjs +1 -1
  197. package/dist/locale/ro.js +1 -1
  198. package/dist/locale/ro.min.js +1 -1
  199. package/dist/locale/ro.min.mjs +1 -1
  200. package/dist/locale/ro.mjs +1 -1
  201. package/dist/locale/ru.js +1 -1
  202. package/dist/locale/ru.min.js +1 -1
  203. package/dist/locale/ru.min.mjs +1 -1
  204. package/dist/locale/ru.mjs +1 -1
  205. package/dist/locale/sk.js +1 -1
  206. package/dist/locale/sk.min.js +1 -1
  207. package/dist/locale/sk.min.mjs +1 -1
  208. package/dist/locale/sk.mjs +1 -1
  209. package/dist/locale/sl.js +1 -1
  210. package/dist/locale/sl.min.js +1 -1
  211. package/dist/locale/sl.min.mjs +1 -1
  212. package/dist/locale/sl.mjs +1 -1
  213. package/dist/locale/sr.js +1 -1
  214. package/dist/locale/sr.min.js +1 -1
  215. package/dist/locale/sr.min.mjs +1 -1
  216. package/dist/locale/sr.mjs +1 -1
  217. package/dist/locale/sv.js +1 -1
  218. package/dist/locale/sv.min.js +1 -1
  219. package/dist/locale/sv.min.mjs +1 -1
  220. package/dist/locale/sv.mjs +1 -1
  221. package/dist/locale/sw.js +1 -1
  222. package/dist/locale/sw.min.js +1 -1
  223. package/dist/locale/sw.min.mjs +1 -1
  224. package/dist/locale/sw.mjs +1 -1
  225. package/dist/locale/ta.js +1 -1
  226. package/dist/locale/ta.min.js +1 -1
  227. package/dist/locale/ta.min.mjs +1 -1
  228. package/dist/locale/ta.mjs +1 -1
  229. package/dist/locale/te.js +1 -1
  230. package/dist/locale/te.min.js +1 -1
  231. package/dist/locale/te.min.mjs +1 -1
  232. package/dist/locale/te.mjs +1 -1
  233. package/dist/locale/th.js +1 -1
  234. package/dist/locale/th.min.js +1 -1
  235. package/dist/locale/th.min.mjs +1 -1
  236. package/dist/locale/th.mjs +1 -1
  237. package/dist/locale/tk.js +1 -1
  238. package/dist/locale/tk.min.js +1 -1
  239. package/dist/locale/tk.min.mjs +1 -1
  240. package/dist/locale/tk.mjs +1 -1
  241. package/dist/locale/tr.js +1 -1
  242. package/dist/locale/tr.min.js +1 -1
  243. package/dist/locale/tr.min.mjs +1 -1
  244. package/dist/locale/tr.mjs +1 -1
  245. package/dist/locale/ug-cn.js +1 -1
  246. package/dist/locale/ug-cn.min.js +1 -1
  247. package/dist/locale/ug-cn.min.mjs +1 -1
  248. package/dist/locale/ug-cn.mjs +1 -1
  249. package/dist/locale/uk.js +1 -1
  250. package/dist/locale/uk.min.js +1 -1
  251. package/dist/locale/uk.min.mjs +1 -1
  252. package/dist/locale/uk.mjs +1 -1
  253. package/dist/locale/uz-uz.js +1 -1
  254. package/dist/locale/uz-uz.min.js +1 -1
  255. package/dist/locale/uz-uz.min.mjs +1 -1
  256. package/dist/locale/uz-uz.mjs +1 -1
  257. package/dist/locale/vi.js +1 -1
  258. package/dist/locale/vi.min.js +1 -1
  259. package/dist/locale/vi.min.mjs +1 -1
  260. package/dist/locale/vi.mjs +1 -1
  261. package/dist/locale/zh-cn.js +1 -1
  262. package/dist/locale/zh-cn.min.js +1 -1
  263. package/dist/locale/zh-cn.min.mjs +1 -1
  264. package/dist/locale/zh-cn.mjs +1 -1
  265. package/dist/locale/zh-hk.js +1 -1
  266. package/dist/locale/zh-hk.min.js +1 -1
  267. package/dist/locale/zh-hk.min.mjs +1 -1
  268. package/dist/locale/zh-hk.mjs +1 -1
  269. package/dist/locale/zh-mo.js +1 -1
  270. package/dist/locale/zh-mo.min.js +1 -1
  271. package/dist/locale/zh-mo.min.mjs +1 -1
  272. package/dist/locale/zh-mo.mjs +1 -1
  273. package/dist/locale/zh-tw.js +1 -1
  274. package/dist/locale/zh-tw.min.js +1 -1
  275. package/dist/locale/zh-tw.min.mjs +1 -1
  276. package/dist/locale/zh-tw.mjs +1 -1
  277. package/es/components/affix/src/affix.d.ts +1 -1
  278. package/es/components/affix/src/affix.vue.d.ts +2 -2
  279. package/es/components/alert/src/alert.vue.d.ts +1 -1
  280. package/es/components/anchor/src/anchor.vue.d.ts +3 -3
  281. package/es/components/autocomplete/src/autocomplete.d.ts +5 -5
  282. package/es/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  283. package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
  284. package/es/components/avatar/src/avatar-group.d.ts +3 -3
  285. package/es/components/avatar/src/avatar.d.ts +2 -2
  286. package/es/components/badge/src/badge.vue.d.ts +1 -1
  287. package/es/components/button/src/button-group.d.ts +2 -2
  288. package/es/components/button/src/button-group.vue.d.ts +1 -1
  289. package/es/components/button/src/button.d.ts +2 -2
  290. package/es/components/button/src/button.vue.d.ts +4 -4
  291. package/es/components/button/src/use-button.d.ts +2 -2
  292. package/es/components/calendar/src/use-calendar.mjs +1 -1
  293. package/es/components/calendar/src/use-calendar.mjs.map +1 -1
  294. package/es/components/carousel/src/carousel.d.ts +1 -1
  295. package/es/components/cascader/src/cascader.d.ts +2 -2
  296. package/es/components/cascader/src/cascader.vue.d.ts +15 -15
  297. package/es/components/cascader-panel/src/index.vue.d.ts +3 -3
  298. package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
  299. package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  300. package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
  301. package/es/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
  302. package/es/components/checkbox/src/checkbox.d.ts +3 -3
  303. package/es/components/checkbox/src/checkbox.vue.d.ts +1 -1
  304. package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
  305. package/es/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
  306. package/es/components/color-picker/src/color-picker.d.ts +1 -1
  307. package/es/components/color-picker/src/color-picker.vue.d.ts +8 -8
  308. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  309. package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
  310. package/es/components/config-provider/src/config-provider.d.ts +3 -3
  311. package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  312. package/es/components/countdown/src/countdown.vue.d.ts +1 -1
  313. package/es/components/date-picker/src/date-picker.d.ts +21 -21
  314. package/es/components/date-picker/src/props.d.ts +4 -4
  315. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  316. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -3
  317. package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  318. package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  319. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +9 -9
  320. package/es/components/date-picker-panel/src/panel-utils.d.ts +15 -15
  321. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  322. package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  323. package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  324. package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
  325. package/es/components/descriptions/src/description-item.d.ts +8 -8
  326. package/es/components/descriptions/src/description.d.ts +1 -1
  327. package/es/components/descriptions/src/description.vue.d.ts +1 -1
  328. package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
  329. package/es/components/dialog/src/dialog.vue.d.ts +5 -5
  330. package/es/components/divider/src/divider.d.ts +1 -1
  331. package/es/components/drawer/src/drawer.vue.d.ts +8 -8
  332. package/es/components/dropdown/src/dropdown.d.ts +3 -3
  333. package/es/components/dropdown/src/dropdown.vue.d.ts +88 -88
  334. package/es/components/form/src/form-item.d.ts +1 -1
  335. package/es/components/form/src/form-item.vue.d.ts +1 -1
  336. package/es/components/form/src/form.d.ts +2 -2
  337. package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
  338. package/es/components/image/src/image.d.ts +1 -1
  339. package/es/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
  340. package/es/components/index.d.ts +2 -2
  341. package/es/components/index.mjs +2 -2
  342. package/es/components/input/src/input.d.ts +4 -4
  343. package/es/components/input/src/input.vue.d.ts +16 -16
  344. package/es/components/input-number/src/input-number.d.ts +4 -4
  345. package/es/components/input-number/src/input-number.vue.d.ts +7 -7
  346. package/es/components/input-otp/src/input-otp.vue.d.ts +6 -6
  347. package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
  348. package/es/components/input-tag/src/input-tag.d.ts +2 -2
  349. package/es/components/input-tag/src/input-tag.vue.d.ts +9 -9
  350. package/es/components/mention/src/mention.d.ts +5 -5
  351. package/es/components/mention/src/mention.vue.d.ts +3 -3
  352. package/es/components/menu/src/menu.d.ts +4 -4
  353. package/es/components/message/src/instance.d.ts +1 -1
  354. package/es/components/message/src/message.d.ts +1 -1
  355. package/es/components/message/src/message.vue.d.ts +3 -3
  356. package/es/components/message-box/src/index.vue.d.ts +59 -59
  357. package/es/components/notification/src/notification.vue.d.ts +4 -4
  358. package/es/components/pagination/src/components/jumper.d.ts +1 -1
  359. package/es/components/pagination/src/components/jumper.vue.d.ts +2 -2
  360. package/es/components/pagination/src/components/sizes.d.ts +1 -1
  361. package/es/components/pagination/src/components/sizes.vue.d.ts +2 -2
  362. package/es/components/pagination/src/pagination.d.ts +7 -7
  363. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  364. package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
  365. package/es/components/popover/src/popover.d.ts +2 -2
  366. package/es/components/popover/src/popover.vue.d.ts +9 -9
  367. package/es/components/popper/src/composables/use-content.d.ts +2 -2
  368. package/es/components/popper/src/content.vue.d.ts +14 -14
  369. package/es/components/progress/src/progress.vue.d.ts +1 -1
  370. package/es/components/radio/src/radio-button.d.ts +1 -1
  371. package/es/components/radio/src/radio-button.vue.d.ts +1 -1
  372. package/es/components/radio/src/radio-group.d.ts +1 -1
  373. package/es/components/radio/src/radio-group.vue.d.ts +4 -4
  374. package/es/components/radio/src/radio.d.ts +2 -2
  375. package/es/components/radio/src/radio.vue.d.ts +2 -2
  376. package/es/components/radio/src/use-radio.d.ts +1 -1
  377. package/es/components/rate/src/rate.d.ts +1 -1
  378. package/es/components/row/src/row.d.ts +2 -2
  379. package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  380. package/es/components/segmented/index.d.ts +2 -2
  381. package/es/components/segmented/src/segmented.d.ts +1 -1
  382. package/es/components/select/src/option.d.ts +1 -1
  383. package/es/components/select/src/option.vue.d.ts +2 -2
  384. package/es/components/select/src/select.d.ts +3 -3
  385. package/es/components/select/src/select.vue.d.ts +90 -90
  386. package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
  387. package/es/components/select/src/select2.mjs +1 -1
  388. package/es/components/select/src/select2.mjs.map +1 -1
  389. package/es/components/select/src/useSelect.d.ts +6 -6
  390. package/es/components/select-v2/src/defaults.d.ts +2 -2
  391. package/es/components/select-v2/src/select.mjs +1 -1
  392. package/es/components/select-v2/src/select.mjs.map +1 -1
  393. package/es/components/select-v2/src/select.vue.d.ts +79 -79
  394. package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs.map +1 -1
  395. package/es/components/select-v2/src/useSelect.d.ts +1 -1
  396. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  397. package/es/components/slider/src/button.vue.d.ts +1 -1
  398. package/es/components/slider/src/slider.d.ts +2 -2
  399. package/es/components/slider/src/slider.vue.d.ts +9 -9
  400. package/es/components/space/src/space.d.ts +6 -6
  401. package/es/components/splitter/src/splitter.vue.d.ts +2 -2
  402. package/es/components/steps/src/steps.vue.d.ts +1 -1
  403. package/es/components/switch/src/switch.d.ts +1 -1
  404. package/es/components/switch/src/switch.vue.d.ts +3 -3
  405. package/es/components/switch/src/switch.vue_vue_type_script_setup_true_lang.mjs +1 -0
  406. package/es/components/switch/src/switch.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  407. package/es/components/switch/src/switch2.mjs.map +1 -1
  408. package/es/components/table/src/filter-panel.vue.d.ts +66 -66
  409. package/es/components/table/src/store/helper.d.ts +1 -0
  410. package/es/components/table/src/store/index.d.ts +2 -0
  411. package/es/components/table/src/store/watcher.d.ts +1 -0
  412. package/es/components/table/src/store/watcher.mjs +17 -3
  413. package/es/components/table/src/store/watcher.mjs.map +1 -1
  414. package/es/components/table/src/table/defaults.d.ts +1 -1
  415. package/es/components/table/src/table/style-helper.d.ts +1 -1
  416. package/es/components/table/src/table/utils-helper.d.ts +1 -0
  417. package/es/components/table/src/table/utils-helper.mjs +4 -0
  418. package/es/components/table/src/table/utils-helper.mjs.map +1 -1
  419. package/es/components/table/src/table-header/index.d.ts +4 -4
  420. package/es/components/table/src/table.mjs.map +1 -1
  421. package/es/components/table/src/table.vue.d.ts +7 -2
  422. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +5 -1
  423. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  424. package/es/components/table-v2/src/components/row.d.ts +1 -1
  425. package/es/components/table-v2/src/table-grid.d.ts +4 -4
  426. package/es/components/table-v2/src/table-v2.d.ts +7 -7
  427. package/es/components/tabs/src/tab-nav.d.ts +1 -1
  428. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  429. package/es/components/tabs/src/tabs.d.ts +6 -6
  430. package/es/components/tag/src/tag.d.ts +1 -1
  431. package/es/components/tag/src/tag.vue.d.ts +2 -2
  432. package/es/components/text/src/text.d.ts +1 -1
  433. package/es/components/text/src/text.vue.d.ts +1 -1
  434. package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  435. package/es/components/time-picker/src/common/picker.vue.d.ts +27 -27
  436. package/es/components/time-picker/src/common/props.d.ts +3 -3
  437. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  438. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  439. package/es/components/time-picker/src/time-picker.d.ts +19 -19
  440. package/es/components/time-select/index.d.ts +2 -2
  441. package/es/components/time-select/index.mjs +2 -2
  442. package/es/components/time-select/src/time-select.d.ts +4 -2
  443. package/es/components/time-select/src/time-select.mjs +5 -3
  444. package/es/components/time-select/src/time-select.mjs.map +1 -1
  445. package/es/components/time-select/src/time-select.vue.d.ts +12 -12
  446. package/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs +18 -25
  447. package/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  448. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  449. package/es/components/time-select/src/utils.d.ts +2 -1
  450. package/es/components/time-select/src/utils.mjs +3 -1
  451. package/es/components/time-select/src/utils.mjs.map +1 -1
  452. package/es/components/timeline/src/timeline-item.d.ts +2 -2
  453. package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
  454. package/es/components/timeline/src/timeline.d.ts +4 -4
  455. package/es/components/tooltip/src/content.vue.d.ts +14 -14
  456. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  457. package/es/components/tooltip/src/tooltip.vue.d.ts +17 -17
  458. package/es/components/tooltip/src/trigger.d.ts +1 -1
  459. package/es/components/tour/src/content.d.ts +1 -1
  460. package/es/components/tour/src/helper.d.ts +0 -1
  461. package/es/components/tour/src/helper.mjs.map +1 -1
  462. package/es/components/tour/src/step.d.ts +1 -1
  463. package/es/components/tour/src/step.vue.d.ts +1 -1
  464. package/es/components/tour/src/step.vue_vue_type_script_setup_true_lang.mjs +1 -3
  465. package/es/components/tour/src/step.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  466. package/es/components/tour/src/step2.mjs.map +1 -1
  467. package/es/components/tour/src/tour.d.ts +7 -2
  468. package/es/components/tour/src/tour.mjs +1 -4
  469. package/es/components/tour/src/tour.mjs.map +1 -1
  470. package/es/components/tour/src/tour.vue.d.ts +3 -4
  471. package/es/components/tour/src/tour.vue_vue_type_script_setup_true_lang.mjs +21 -9
  472. package/es/components/tour/src/tour.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  473. package/es/components/tour/src/tour2.mjs.map +1 -1
  474. package/es/components/tree/src/tree-node.vue.d.ts +4 -4
  475. package/es/components/tree/src/tree.vue.d.ts +4 -4
  476. package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
  477. package/es/components/tree-select/src/tree-select.vue.d.ts +21 -21
  478. package/es/components/tree-v2/src/composables/useTree.d.ts +4 -4
  479. package/es/components/tree-v2/src/composables/useTree.mjs +1 -1
  480. package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
  481. package/es/components/tree-v2/src/tree.vue.d.ts +3 -3
  482. package/es/components/upload/src/upload-content.vue.d.ts +2 -2
  483. package/es/components/upload/src/upload.vue.d.ts +2 -2
  484. package/es/components/virtual-list/src/builders/build-grid.d.ts +3 -3
  485. package/es/components/virtual-list/src/builders/build-list.d.ts +2 -2
  486. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
  487. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
  488. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
  489. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
  490. package/es/components/virtual-list/src/components/scrollbar.d.ts +1 -1
  491. package/es/components/watermark/src/watermark.vue.d.ts +1 -1
  492. package/es/hooks/use-floating/index.d.ts +4 -4
  493. package/es/hooks/use-popper/index.d.ts +2 -2
  494. package/es/hooks/use-size/index.d.ts +3 -3
  495. package/es/index.d.ts +2 -2
  496. package/es/index.mjs +2 -2
  497. package/es/version.d.ts +1 -1
  498. package/es/version.mjs +1 -1
  499. package/es/version.mjs.map +1 -1
  500. package/lib/components/affix/src/affix.d.ts +1 -1
  501. package/lib/components/affix/src/affix.vue.d.ts +2 -2
  502. package/lib/components/alert/src/alert.vue.d.ts +1 -1
  503. package/lib/components/anchor/src/anchor.vue.d.ts +3 -3
  504. package/lib/components/autocomplete/src/autocomplete.d.ts +5 -5
  505. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  506. package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
  507. package/lib/components/avatar/src/avatar-group.d.ts +3 -3
  508. package/lib/components/avatar/src/avatar.d.ts +2 -2
  509. package/lib/components/badge/src/badge.vue.d.ts +1 -1
  510. package/lib/components/button/src/button-group.d.ts +2 -2
  511. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  512. package/lib/components/button/src/button.d.ts +2 -2
  513. package/lib/components/button/src/button.vue.d.ts +4 -4
  514. package/lib/components/button/src/use-button.d.ts +2 -2
  515. package/lib/components/calendar/src/use-calendar.js +1 -1
  516. package/lib/components/calendar/src/use-calendar.js.map +1 -1
  517. package/lib/components/carousel/src/carousel.d.ts +1 -1
  518. package/lib/components/cascader/src/cascader.d.ts +2 -2
  519. package/lib/components/cascader/src/cascader.vue.d.ts +15 -15
  520. package/lib/components/cascader-panel/src/index.vue.d.ts +3 -3
  521. package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
  522. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  523. package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
  524. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
  525. package/lib/components/checkbox/src/checkbox.d.ts +3 -3
  526. package/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
  527. package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
  528. package/lib/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
  529. package/lib/components/color-picker/src/color-picker.d.ts +1 -1
  530. package/lib/components/color-picker/src/color-picker.vue.d.ts +8 -8
  531. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  532. package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
  533. package/lib/components/config-provider/src/config-provider.d.ts +3 -3
  534. package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  535. package/lib/components/countdown/src/countdown.vue.d.ts +1 -1
  536. package/lib/components/date-picker/src/date-picker.d.ts +21 -21
  537. package/lib/components/date-picker/src/props.d.ts +4 -4
  538. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  539. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -3
  540. package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  541. package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  542. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +9 -9
  543. package/lib/components/date-picker-panel/src/panel-utils.d.ts +15 -15
  544. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  545. package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  546. package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  547. package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
  548. package/lib/components/descriptions/src/description-item.d.ts +8 -8
  549. package/lib/components/descriptions/src/description.d.ts +1 -1
  550. package/lib/components/descriptions/src/description.vue.d.ts +1 -1
  551. package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
  552. package/lib/components/dialog/src/dialog.vue.d.ts +5 -5
  553. package/lib/components/divider/src/divider.d.ts +1 -1
  554. package/lib/components/drawer/src/drawer.vue.d.ts +8 -8
  555. package/lib/components/dropdown/src/dropdown.d.ts +3 -3
  556. package/lib/components/dropdown/src/dropdown.vue.d.ts +88 -88
  557. package/lib/components/form/src/form-item.d.ts +1 -1
  558. package/lib/components/form/src/form-item.vue.d.ts +1 -1
  559. package/lib/components/form/src/form.d.ts +2 -2
  560. package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
  561. package/lib/components/image/src/image.d.ts +1 -1
  562. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
  563. package/lib/components/index.d.ts +2 -2
  564. package/lib/components/index.js +2 -0
  565. package/lib/components/input/src/input.d.ts +4 -4
  566. package/lib/components/input/src/input.vue.d.ts +16 -16
  567. package/lib/components/input-number/src/input-number.d.ts +4 -4
  568. package/lib/components/input-number/src/input-number.vue.d.ts +7 -7
  569. package/lib/components/input-otp/src/input-otp.vue.d.ts +6 -6
  570. package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
  571. package/lib/components/input-tag/src/input-tag.d.ts +2 -2
  572. package/lib/components/input-tag/src/input-tag.vue.d.ts +9 -9
  573. package/lib/components/mention/src/mention.d.ts +5 -5
  574. package/lib/components/mention/src/mention.vue.d.ts +3 -3
  575. package/lib/components/menu/src/menu.d.ts +4 -4
  576. package/lib/components/message/src/instance.d.ts +1 -1
  577. package/lib/components/message/src/message.d.ts +1 -1
  578. package/lib/components/message/src/message.vue.d.ts +3 -3
  579. package/lib/components/message-box/src/index.vue.d.ts +59 -59
  580. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  581. package/lib/components/pagination/src/components/jumper.d.ts +1 -1
  582. package/lib/components/pagination/src/components/jumper.vue.d.ts +2 -2
  583. package/lib/components/pagination/src/components/sizes.d.ts +1 -1
  584. package/lib/components/pagination/src/components/sizes.vue.d.ts +2 -2
  585. package/lib/components/pagination/src/pagination.d.ts +7 -7
  586. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  587. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
  588. package/lib/components/popover/src/popover.d.ts +2 -2
  589. package/lib/components/popover/src/popover.vue.d.ts +9 -9
  590. package/lib/components/popper/src/composables/use-content.d.ts +2 -2
  591. package/lib/components/popper/src/content.vue.d.ts +14 -14
  592. package/lib/components/progress/src/progress.vue.d.ts +1 -1
  593. package/lib/components/radio/src/radio-button.d.ts +1 -1
  594. package/lib/components/radio/src/radio-button.vue.d.ts +1 -1
  595. package/lib/components/radio/src/radio-group.d.ts +1 -1
  596. package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
  597. package/lib/components/radio/src/radio.d.ts +2 -2
  598. package/lib/components/radio/src/radio.vue.d.ts +2 -2
  599. package/lib/components/radio/src/use-radio.d.ts +1 -1
  600. package/lib/components/rate/src/rate.d.ts +1 -1
  601. package/lib/components/row/src/row.d.ts +2 -2
  602. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  603. package/lib/components/segmented/index.d.ts +2 -2
  604. package/lib/components/segmented/src/segmented.d.ts +1 -1
  605. package/lib/components/select/src/option.d.ts +1 -1
  606. package/lib/components/select/src/option.vue.d.ts +2 -2
  607. package/lib/components/select/src/select.d.ts +3 -3
  608. package/lib/components/select/src/select.vue.d.ts +90 -90
  609. package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
  610. package/lib/components/select/src/select2.js +1 -1
  611. package/lib/components/select/src/select2.js.map +1 -1
  612. package/lib/components/select/src/useSelect.d.ts +6 -6
  613. package/lib/components/select-v2/src/defaults.d.ts +2 -2
  614. package/lib/components/select-v2/src/select.js +1 -1
  615. package/lib/components/select-v2/src/select.js.map +1 -1
  616. package/lib/components/select-v2/src/select.vue.d.ts +79 -79
  617. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
  618. package/lib/components/select-v2/src/useSelect.d.ts +1 -1
  619. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  620. package/lib/components/slider/src/button.vue.d.ts +1 -1
  621. package/lib/components/slider/src/slider.d.ts +2 -2
  622. package/lib/components/slider/src/slider.vue.d.ts +9 -9
  623. package/lib/components/space/src/space.d.ts +6 -6
  624. package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
  625. package/lib/components/steps/src/steps.vue.d.ts +1 -1
  626. package/lib/components/switch/src/switch.d.ts +1 -1
  627. package/lib/components/switch/src/switch.vue.d.ts +3 -3
  628. package/lib/components/switch/src/switch.vue_vue_type_script_setup_true_lang.js +1 -0
  629. package/lib/components/switch/src/switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  630. package/lib/components/switch/src/switch2.js.map +1 -1
  631. package/lib/components/table/src/filter-panel.vue.d.ts +66 -66
  632. package/lib/components/table/src/store/helper.d.ts +1 -0
  633. package/lib/components/table/src/store/index.d.ts +2 -0
  634. package/lib/components/table/src/store/watcher.d.ts +1 -0
  635. package/lib/components/table/src/store/watcher.js +17 -3
  636. package/lib/components/table/src/store/watcher.js.map +1 -1
  637. package/lib/components/table/src/table/defaults.d.ts +1 -1
  638. package/lib/components/table/src/table/style-helper.d.ts +1 -1
  639. package/lib/components/table/src/table/utils-helper.d.ts +1 -0
  640. package/lib/components/table/src/table/utils-helper.js +4 -0
  641. package/lib/components/table/src/table/utils-helper.js.map +1 -1
  642. package/lib/components/table/src/table-header/index.d.ts +4 -4
  643. package/lib/components/table/src/table.js.map +1 -1
  644. package/lib/components/table/src/table.vue.d.ts +7 -2
  645. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js +5 -1
  646. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js.map +1 -1
  647. package/lib/components/table-v2/src/components/row.d.ts +1 -1
  648. package/lib/components/table-v2/src/table-grid.d.ts +4 -4
  649. package/lib/components/table-v2/src/table-v2.d.ts +7 -7
  650. package/lib/components/tabs/src/tab-nav.d.ts +1 -1
  651. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  652. package/lib/components/tabs/src/tabs.d.ts +6 -6
  653. package/lib/components/tag/src/tag.d.ts +1 -1
  654. package/lib/components/tag/src/tag.vue.d.ts +2 -2
  655. package/lib/components/text/src/text.d.ts +1 -1
  656. package/lib/components/text/src/text.vue.d.ts +1 -1
  657. package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  658. package/lib/components/time-picker/src/common/picker.vue.d.ts +27 -27
  659. package/lib/components/time-picker/src/common/props.d.ts +3 -3
  660. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  661. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  662. package/lib/components/time-picker/src/time-picker.d.ts +19 -19
  663. package/lib/components/time-select/index.d.ts +2 -2
  664. package/lib/components/time-select/index.js +2 -0
  665. package/lib/components/time-select/src/time-select.d.ts +4 -2
  666. package/lib/components/time-select/src/time-select.js +6 -2
  667. package/lib/components/time-select/src/time-select.js.map +1 -1
  668. package/lib/components/time-select/src/time-select.vue.d.ts +12 -12
  669. package/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js +16 -23
  670. package/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js.map +1 -1
  671. package/lib/components/time-select/src/time-select2.js.map +1 -1
  672. package/lib/components/time-select/src/utils.d.ts +2 -1
  673. package/lib/components/time-select/src/utils.js +3 -0
  674. package/lib/components/time-select/src/utils.js.map +1 -1
  675. package/lib/components/timeline/src/timeline-item.d.ts +2 -2
  676. package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
  677. package/lib/components/timeline/src/timeline.d.ts +4 -4
  678. package/lib/components/tooltip/src/content.vue.d.ts +14 -14
  679. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  680. package/lib/components/tooltip/src/tooltip.vue.d.ts +17 -17
  681. package/lib/components/tooltip/src/trigger.d.ts +1 -1
  682. package/lib/components/tour/src/content.d.ts +1 -1
  683. package/lib/components/tour/src/helper.d.ts +0 -1
  684. package/lib/components/tour/src/helper.js.map +1 -1
  685. package/lib/components/tour/src/step.d.ts +1 -1
  686. package/lib/components/tour/src/step.vue.d.ts +1 -1
  687. package/lib/components/tour/src/step.vue_vue_type_script_setup_true_lang.js +1 -3
  688. package/lib/components/tour/src/step.vue_vue_type_script_setup_true_lang.js.map +1 -1
  689. package/lib/components/tour/src/step2.js.map +1 -1
  690. package/lib/components/tour/src/tour.d.ts +7 -2
  691. package/lib/components/tour/src/tour.js +1 -4
  692. package/lib/components/tour/src/tour.js.map +1 -1
  693. package/lib/components/tour/src/tour.vue.d.ts +3 -4
  694. package/lib/components/tour/src/tour.vue_vue_type_script_setup_true_lang.js +20 -8
  695. package/lib/components/tour/src/tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
  696. package/lib/components/tour/src/tour2.js.map +1 -1
  697. package/lib/components/tree/src/tree-node.vue.d.ts +4 -4
  698. package/lib/components/tree/src/tree.vue.d.ts +4 -4
  699. package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
  700. package/lib/components/tree-select/src/tree-select.vue.d.ts +21 -21
  701. package/lib/components/tree-v2/src/composables/useTree.d.ts +4 -4
  702. package/lib/components/tree-v2/src/composables/useTree.js +1 -1
  703. package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
  704. package/lib/components/tree-v2/src/tree.vue.d.ts +3 -3
  705. package/lib/components/upload/src/upload-content.vue.d.ts +2 -2
  706. package/lib/components/upload/src/upload.vue.d.ts +2 -2
  707. package/lib/components/virtual-list/src/builders/build-grid.d.ts +3 -3
  708. package/lib/components/virtual-list/src/builders/build-list.d.ts +2 -2
  709. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
  710. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
  711. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
  712. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
  713. package/lib/components/virtual-list/src/components/scrollbar.d.ts +1 -1
  714. package/lib/components/watermark/src/watermark.vue.d.ts +1 -1
  715. package/lib/hooks/use-floating/index.d.ts +4 -4
  716. package/lib/hooks/use-popper/index.d.ts +2 -2
  717. package/lib/hooks/use-size/index.d.ts +3 -3
  718. package/lib/index.d.ts +2 -2
  719. package/lib/index.js +2 -0
  720. package/lib/version.d.ts +1 -1
  721. package/lib/version.js +1 -1
  722. package/lib/version.js.map +1 -1
  723. package/package.json +5 -4
  724. package/theme-chalk/el-input-otp.css +1 -1
  725. package/theme-chalk/index.css +1 -1
  726. package/theme-chalk/src/input-otp.scss +30 -12
  727. package/web-types.json +1 -1
@@ -14,29 +14,29 @@ declare const __VLS_export: _$vue.DefineComponent<TimeSelectProps, {
14
14
  */
15
15
  focus: () => void;
16
16
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
17
- "update:modelValue": (...args: any[]) => void;
18
- change: (...args: any[]) => void;
17
+ clear: (...args: any[]) => void;
19
18
  focus: (...args: any[]) => void;
20
19
  blur: (...args: any[]) => void;
21
- clear: (...args: any[]) => void;
20
+ "update:modelValue": (...args: any[]) => void;
21
+ change: (...args: any[]) => void;
22
22
  }, string, _$vue.PublicProps, Readonly<TimeSelectProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
- onChange?: ((...args: any[]) => any) | undefined;
23
+ onClear?: ((...args: any[]) => any) | undefined;
25
24
  onFocus?: ((...args: any[]) => any) | undefined;
26
25
  onBlur?: ((...args: any[]) => any) | undefined;
27
- onClear?: ((...args: any[]) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
+ onChange?: ((...args: any[]) => any) | undefined;
28
28
  }>, {
29
- disabled: boolean;
30
- clearable: boolean;
31
- clearIcon: IconPropType;
32
- prefixIcon: IconPropType;
33
- end: string;
34
29
  start: string;
35
- valueOnClear: string | number | boolean | Function | null;
30
+ end: string;
31
+ disabled: boolean;
36
32
  effect: PopperEffect;
37
33
  popperClass: string;
38
34
  popperStyle: string | _$vue.CSSProperties;
35
+ clearable: boolean;
36
+ clearIcon: IconPropType;
39
37
  editable: boolean;
38
+ prefixIcon: IconPropType;
39
+ valueOnClear: string | number | boolean | Function | null;
40
40
  format: string;
41
41
  step: string;
42
42
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -5,8 +5,8 @@ import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
5
5
  import { ElIcon } from "../../icon/index.mjs";
6
6
  import { useFormDisabled } from "../../form/src/hooks/use-form-common-props.mjs";
7
7
  import { ElSelect } from "../../select/index.mjs";
8
- import { DEFAULT_STEP, timeSelectProps } from "./time-select.mjs";
9
- import { compareTime, formatTime, nextTime, parseTime } from "./utils.mjs";
8
+ import { DEFAULT_END, DEFAULT_START, DEFAULT_STEP, timeSelectProps } from "./time-select.mjs";
9
+ import { compareTime, formatTime, isValidTime, nextTime, parseTime } from "./utils.mjs";
10
10
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, ref, renderList, resolveDynamicComponent, unref, withCtx } from "vue";
11
11
  import dayjs from "dayjs";
12
12
  import customParseFormat from "dayjs/plugin/customParseFormat.js";
@@ -30,15 +30,17 @@ var time_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ de
30
30
  const select = ref();
31
31
  const _disabled = useFormDisabled();
32
32
  const { lang } = useLocale();
33
+ const getValidTimeOrDefault = (value, propName, defaultValue, allowZero = true) => {
34
+ const time = parseTime(value);
35
+ if (!isValidTime(time) || !allowZero && time.hours === 0 && time.minutes === 0) {
36
+ debugWarn("ElTimeSelect", `invalid ${propName}, fallback to default ${propName} (${defaultValue}).`);
37
+ return defaultValue;
38
+ }
39
+ return formatTime(time);
40
+ };
33
41
  const value = computed(() => props.modelValue);
34
- const start = computed(() => {
35
- const time = parseTime(props.start);
36
- return time ? formatTime(time) : null;
37
- });
38
- const end = computed(() => {
39
- const time = parseTime(props.end);
40
- return time ? formatTime(time) : null;
41
- });
42
+ const start = computed(() => getValidTimeOrDefault(props.start, "start", DEFAULT_START));
43
+ const end = computed(() => getValidTimeOrDefault(props.end, "end", DEFAULT_END));
42
44
  const minTime = computed(() => {
43
45
  const time = parseTime(props.minTime || "");
44
46
  return time ? formatTime(time) : null;
@@ -47,12 +49,7 @@ var time_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ de
47
49
  const time = parseTime(props.maxTime || "");
48
50
  return time ? formatTime(time) : null;
49
51
  });
50
- const step = computed(() => {
51
- const time = parseTime(props.step);
52
- const isInvalidStep = !time || time.hours < 0 || time.minutes < 0 || Number.isNaN(time.hours) || Number.isNaN(time.minutes) || time.hours === 0 && time.minutes === 0;
53
- if (isInvalidStep) debugWarn("ElTimeSelect", `invalid step, fallback to default step (${DEFAULT_STEP}).`);
54
- return !isInvalidStep ? formatTime(time) : DEFAULT_STEP;
55
- });
52
+ const step = computed(() => getValidTimeOrDefault(props.step, "step", DEFAULT_STEP, false));
56
53
  const items = computed(() => {
57
54
  const result = [];
58
55
  const push = (formattedValue, rawValue) => {
@@ -62,16 +59,12 @@ var time_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ de
62
59
  disabled: compareTime(rawValue, minTime.value || "-1:-1") <= 0 || compareTime(rawValue, maxTime.value || "100:100") >= 0
63
60
  });
64
61
  };
65
- if (props.start && props.end && props.step) {
66
- let current = start.value;
67
- let currentTime;
68
- while (current && end.value && compareTime(current, end.value) <= 0) {
69
- currentTime = dayjs(current, "HH:mm").locale(lang.value).format(props.format);
70
- push(currentTime, current);
71
- current = nextTime(current, step.value);
72
- }
73
- if (props.includeEndTime && end.value && result[result.length - 1]?.rawValue !== end.value) push(dayjs(end.value, "HH:mm").locale(lang.value).format(props.format), end.value);
62
+ let current = start.value;
63
+ while (compareTime(current, end.value) <= 0) {
64
+ push(dayjs(current, "HH:mm").locale(lang.value).format(props.format), current);
65
+ current = nextTime(current, step.value);
74
66
  }
67
+ if (props.includeEndTime && result[result.length - 1]?.rawValue !== end.value) push(dayjs(end.value, "HH:mm").locale(lang.value).format(props.format), end.value);
75
68
  return result;
76
69
  });
77
70
  const blur = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"time-select.vue_vue_type_script_setup_true_lang.mjs","names":["$emit"],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\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 :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\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 { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { compareTime, formatTime, nextTime, parseTime } from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: '09:00',\n end: '18:00',\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\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 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 step = computed(() => {\n const time = parseTime(props.step)\n const isInvalidStep =\n !time ||\n time.hours < 0 ||\n time.minutes < 0 ||\n Number.isNaN(time.hours) ||\n Number.isNaN(time.minutes) ||\n (time.hours === 0 && time.minutes === 0)\n if (isInvalidStep) {\n debugWarn(\n 'ElTimeSelect',\n `invalid step, fallback to default step (${DEFAULT_STEP}).`\n )\n }\n return !isInvalidStep ? formatTime(time) : DEFAULT_STEP\n})\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\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')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value!)\n }\n if (\n props.includeEndTime &&\n end.value &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.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 blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAsDA,MAAM,OAAO,kBAAiB;EAE9B,MAAM,EAAE,QAAQ,aAAa;EAQ7B,MAAM,QAAQ;EAgBd,MAAM,UAAU,aAAa,QAAO;EACpC,MAAM,SAAS,KAAqB;EAEpC,MAAM,YAAY,iBAAgB;EAClC,MAAM,EAAE,SAAS,WAAU;EAE3B,MAAM,QAAQ,eAAe,MAAM,WAAU;EAC7C,MAAM,QAAQ,eAAe;GAC3B,MAAM,OAAO,UAAU,MAAM,MAAK;GAClC,OAAO,OAAO,WAAW,KAAK,GAAG;IAClC;EAED,MAAM,MAAM,eAAe;GACzB,MAAM,OAAO,UAAU,MAAM,IAAG;GAChC,OAAO,OAAO,WAAW,KAAK,GAAG;IAClC;EAED,MAAM,UAAU,eAAe;GAC7B,MAAM,OAAO,UAAU,MAAM,WAAW,GAAE;GAC1C,OAAO,OAAO,WAAW,KAAK,GAAG;IAClC;EAED,MAAM,UAAU,eAAe;GAC7B,MAAM,OAAO,UAAU,MAAM,WAAW,GAAE;GAC1C,OAAO,OAAO,WAAW,KAAK,GAAG;IAClC;EAED,MAAM,OAAO,eAAe;GAC1B,MAAM,OAAO,UAAU,MAAM,KAAI;GACjC,MAAM,gBACJ,CAAC,QACD,KAAK,QAAQ,KACb,KAAK,UAAU,KACf,OAAO,MAAM,KAAK,MAAM,IACxB,OAAO,MAAM,KAAK,QAAQ,IACzB,KAAK,UAAU,KAAK,KAAK,YAA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;IACd,gBAAc,QAAA;IACd,uBAAkB,OAAA,OAAA,OAAA,MAAG,UAAUA,KAAAA,MAAM,MAAA,oBAAkB,EAAE,MAAK;IAC9D,UAAM,OAAA,OAAA,OAAA,MAAG,UAAUA,KAAAA,MAAM,MAAA,SAAY,EAAE,MAAK;IAC5C,QAAI,OAAA,OAAA,OAAA,MAAG,UAAUA,KAAAA,MAAK,QAAS,MAAK;IACpC,SAAK,OAAA,OAAA,OAAA,MAAG,UAAUA,KAAAA,MAAK,SAAU,MAAK;IACtC,SAAK,OAAA,OAAA,OAAA,WAAQA,KAAAA,MAAK,QAAA;;IASR,QAAM,cAGL,CAFK,QAAA,cAAA,WAAA,EAAf,YAEU,MAAA,OAAA,EAAA;;KAFkB,OAAK,eAAE,MAAA,QAAO,CAAC,EAAC,cAAA,CAAA;;4BACZ,EAAA,WAAA,EAA9B,YAA8B,wBAAd,QAAA,WAAU,CAAA,EAAA,CAAA;;;2BARP,EAAA,UAAA,KAAA,EADvB,mBAME,UAAA,MAAA,WALe,MAAA,QAAR,SAAI;yBADb,YAME,MAAA,SAAA,EAAA;MAJC,KAAK,KAAK;MACV,OAAO,KAAK;MACZ,OAAO,KAAK;MACZ,UAAU,KAAK"}
1
+ {"version":3,"file":"time-select.vue_vue_type_script_setup_true_lang.mjs","names":["$emit"],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\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 :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\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 { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport {\n compareTime,\n formatTime,\n isValidTime,\n nextTime,\n parseTime,\n} from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_END, DEFAULT_START, DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: DEFAULT_START,\n end: DEFAULT_END,\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\n\nconst getValidTimeOrDefault = (\n value: string,\n propName: 'start' | 'end' | 'step',\n defaultValue: string,\n allowZero = true\n) => {\n const time = parseTime(value)\n if (\n !isValidTime(time) ||\n (!allowZero && time.hours === 0 && time.minutes === 0)\n ) {\n debugWarn(\n 'ElTimeSelect',\n `invalid ${propName}, fallback to default ${propName} (${defaultValue}).`\n )\n return defaultValue\n }\n return formatTime(time)\n}\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() =>\n getValidTimeOrDefault(props.start, 'start', DEFAULT_START)\n)\n\nconst end = computed(() => getValidTimeOrDefault(props.end, 'end', DEFAULT_END))\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 step = computed(() =>\n getValidTimeOrDefault(props.step, 'step', DEFAULT_STEP, false)\n)\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\n let current = start.value\n while (compareTime(current, end.value) <= 0) {\n const currentTime = dayjs(current, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value)\n }\n if (\n props.includeEndTime &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.value)\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 blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EA4DA,MAAM,OAAO,kBAAiB;EAE9B,MAAM,EAAE,QAAQ,aAAa;EAQ7B,MAAM,QAAQ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,mBAME,UAAA,MAAA,WALe,MAAA,QAAR,SAAI;yBADb,YAME,MAAA,SAAA,EAAA;MAJC,KAAK,KAAK;MACV,OAAO,KAAK;MACZ,OAAO,KAAK;MACZ,UAAU,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"time-select2.mjs","names":[],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\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 :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\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 { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { compareTime, formatTime, nextTime, parseTime } from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: '09:00',\n end: '18:00',\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\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 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 step = computed(() => {\n const time = parseTime(props.step)\n const isInvalidStep =\n !time ||\n time.hours < 0 ||\n time.minutes < 0 ||\n Number.isNaN(time.hours) ||\n Number.isNaN(time.minutes) ||\n (time.hours === 0 && time.minutes === 0)\n if (isInvalidStep) {\n debugWarn(\n 'ElTimeSelect',\n `invalid step, fallback to default step (${DEFAULT_STEP}).`\n )\n }\n return !isInvalidStep ? formatTime(time) : DEFAULT_STEP\n})\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\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')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value!)\n }\n if (\n props.includeEndTime &&\n end.value &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.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 blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":""}
1
+ {"version":3,"file":"time-select2.mjs","names":[],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\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 :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\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 { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport {\n compareTime,\n formatTime,\n isValidTime,\n nextTime,\n parseTime,\n} from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_END, DEFAULT_START, DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: DEFAULT_START,\n end: DEFAULT_END,\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\n\nconst getValidTimeOrDefault = (\n value: string,\n propName: 'start' | 'end' | 'step',\n defaultValue: string,\n allowZero = true\n) => {\n const time = parseTime(value)\n if (\n !isValidTime(time) ||\n (!allowZero && time.hours === 0 && time.minutes === 0)\n ) {\n debugWarn(\n 'ElTimeSelect',\n `invalid ${propName}, fallback to default ${propName} (${defaultValue}).`\n )\n return defaultValue\n }\n return formatTime(time)\n}\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() =>\n getValidTimeOrDefault(props.start, 'start', DEFAULT_START)\n)\n\nconst end = computed(() => getValidTimeOrDefault(props.end, 'end', DEFAULT_END))\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 step = computed(() =>\n getValidTimeOrDefault(props.step, 'step', DEFAULT_STEP, false)\n)\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\n let current = start.value\n while (compareTime(current, end.value) <= 0) {\n const currentTime = dayjs(current, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value)\n }\n if (\n props.includeEndTime &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.value)\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 blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":""}
@@ -4,9 +4,10 @@ interface Time {
4
4
  minutes: number;
5
5
  }
6
6
  declare const parseTime: (time: string) => null | Time;
7
+ declare const isValidTime: (time: null | Time) => time is Time;
7
8
  declare const compareTime: (time1: string, time2: string) => number;
8
9
  declare const padTime: (time: number | string) => string;
9
10
  declare const formatTime: (time: Time) => string;
10
11
  declare const nextTime: (time: string, step: string) => string;
11
12
  //#endregion
12
- export { compareTime, formatTime, nextTime, padTime, parseTime };
13
+ export { compareTime, formatTime, isValidTime, nextTime, padTime, parseTime };
@@ -4,6 +4,7 @@ const parseTime = (time) => {
4
4
  if (values.length >= 2) {
5
5
  let hours = Number.parseInt(values[0], 10);
6
6
  const minutes = Number.parseInt(values[1], 10);
7
+ if (Number.isNaN(hours) || Number.isNaN(minutes)) return null;
7
8
  const timeUpper = time.toUpperCase();
8
9
  if (timeUpper.includes("AM") && hours === 12) hours = 0;
9
10
  else if (timeUpper.includes("PM") && hours !== 12) hours += 12;
@@ -14,6 +15,7 @@ const parseTime = (time) => {
14
15
  }
15
16
  return null;
16
17
  };
18
+ const isValidTime = (time) => !!time && time.hours >= 0 && time.minutes >= 0 && !Number.isNaN(time.hours) && !Number.isNaN(time.minutes);
17
19
  const compareTime = (time1, time2) => {
18
20
  const value1 = parseTime(time1);
19
21
  if (!value1) return -1;
@@ -46,6 +48,6 @@ const nextTime = (time, step) => {
46
48
  return formatTime(next);
47
49
  };
48
50
  //#endregion
49
- export { compareTime, formatTime, nextTime, padTime, parseTime };
51
+ export { compareTime, formatTime, isValidTime, nextTime, padTime, parseTime };
50
52
 
51
53
  //# sourceMappingURL=utils.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","names":[],"sources":["../../../../../../packages/components/time-select/src/utils.ts"],"sourcesContent":["interface Time {\n hours: number\n minutes: number\n}\n\nexport const parseTime = (time: string): null | Time => {\n const values = (time || '').split(':')\n if (values.length >= 2) {\n let hours = Number.parseInt(values[0], 10)\n const minutes = Number.parseInt(values[1], 10)\n const timeUpper = time.toUpperCase()\n if (timeUpper.includes('AM') && hours === 12) {\n hours = 0\n } else if (timeUpper.includes('PM') && hours !== 12) {\n hours += 12\n }\n return {\n hours,\n minutes,\n }\n }\n\n return null\n}\n\nexport const compareTime = (time1: string, time2: string): number => {\n const value1 = parseTime(time1)\n if (!value1) return -1\n const value2 = parseTime(time2)\n if (!value2) return -1\n const minutes1 = value1.minutes + value1.hours * 60\n const minutes2 = value2.minutes + value2.hours * 60\n if (minutes1 === minutes2) {\n return 0\n }\n return minutes1 > minutes2 ? 1 : -1\n}\n\nexport const padTime = (time: number | string) => {\n return `${time}`.padStart(2, '0')\n}\nexport const formatTime = (time: Time): string => {\n return `${padTime(time.hours)}:${padTime(time.minutes)}`\n}\n\nexport const nextTime = (time: string, step: string): string => {\n const timeValue = parseTime(time)\n if (!timeValue) return ''\n\n const stepValue = parseTime(step)\n if (!stepValue) return ''\n\n const next = {\n hours: timeValue.hours,\n minutes: timeValue.minutes,\n }\n next.minutes += stepValue.minutes\n next.hours += stepValue.hours\n next.hours += Math.floor(next.minutes / 60)\n next.minutes = next.minutes % 60\n return formatTime(next)\n}\n"],"mappings":";AAKA,MAAa,aAAa,SAA8B;CACtD,MAAM,UAAU,QAAQ,IAAI,MAAM,IAAI;CACtC,IAAI,OAAO,UAAU,GAAG;EACtB,IAAI,QAAQ,OAAO,SAAS,OAAO,IAAI,GAAG;EAC1C,MAAM,UAAU,OAAO,SAAS,OAAO,IAAI,GAAG;EAC9C,MAAM,YAAY,KAAK,aAAa;EACpC,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IACxC,QAAQ;OACH,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IAC/C,SAAS;EAEX,OAAO;GACL;GACA;GACD;;CAGH,OAAO;;AAGT,MAAa,eAAe,OAAe,UAA0B;CACnE,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,IAAI,aAAa,UACf,OAAO;CAET,OAAO,WAAW,WAAW,IAAI;;AAGnC,MAAa,WAAW,SAA0B;CAChD,OAAO,GAAG,OAAO,SAAS,GAAG,IAAI;;AAEnC,MAAa,cAAc,SAAuB;CAChD,OAAO,GAAG,QAAQ,KAAK,MAAM,CAAC,GAAG,QAAQ,KAAK,QAAQ;;AAGxD,MAAa,YAAY,MAAc,SAAyB;CAC9D,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,OAAO;EACX,OAAO,UAAU;EACjB,SAAS,UAAU;EACpB;CACD,KAAK,WAAW,UAAU;CAC1B,KAAK,SAAS,UAAU;CACxB,KAAK,SAAS,KAAK,MAAM,KAAK,UAAU,GAAG;CAC3C,KAAK,UAAU,KAAK,UAAU;CAC9B,OAAO,WAAW,KAAK"}
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../../../../../../packages/components/time-select/src/utils.ts"],"sourcesContent":["interface Time {\n hours: number\n minutes: number\n}\n\nexport const parseTime = (time: string): null | Time => {\n const values = (time || '').split(':')\n if (values.length >= 2) {\n let hours = Number.parseInt(values[0], 10)\n const minutes = Number.parseInt(values[1], 10)\n if (Number.isNaN(hours) || Number.isNaN(minutes)) return null\n\n const timeUpper = time.toUpperCase()\n if (timeUpper.includes('AM') && hours === 12) {\n hours = 0\n } else if (timeUpper.includes('PM') && hours !== 12) {\n hours += 12\n }\n return {\n hours,\n minutes,\n }\n }\n\n return null\n}\n\nexport const isValidTime = (time: null | Time): time is Time =>\n !!time &&\n time.hours >= 0 &&\n time.minutes >= 0 &&\n !Number.isNaN(time.hours) &&\n !Number.isNaN(time.minutes)\n\nexport const compareTime = (time1: string, time2: string): number => {\n const value1 = parseTime(time1)\n if (!value1) return -1\n const value2 = parseTime(time2)\n if (!value2) return -1\n const minutes1 = value1.minutes + value1.hours * 60\n const minutes2 = value2.minutes + value2.hours * 60\n if (minutes1 === minutes2) {\n return 0\n }\n return minutes1 > minutes2 ? 1 : -1\n}\n\nexport const padTime = (time: number | string) => {\n return `${time}`.padStart(2, '0')\n}\nexport const formatTime = (time: Time): string => {\n return `${padTime(time.hours)}:${padTime(time.minutes)}`\n}\n\nexport const nextTime = (time: string, step: string): string => {\n const timeValue = parseTime(time)\n if (!timeValue) return ''\n\n const stepValue = parseTime(step)\n if (!stepValue) return ''\n\n const next = {\n hours: timeValue.hours,\n minutes: timeValue.minutes,\n }\n next.minutes += stepValue.minutes\n next.hours += stepValue.hours\n next.hours += Math.floor(next.minutes / 60)\n next.minutes = next.minutes % 60\n return formatTime(next)\n}\n"],"mappings":";AAKA,MAAa,aAAa,SAA8B;CACtD,MAAM,UAAU,QAAQ,IAAI,MAAM,IAAI;CACtC,IAAI,OAAO,UAAU,GAAG;EACtB,IAAI,QAAQ,OAAO,SAAS,OAAO,IAAI,GAAG;EAC1C,MAAM,UAAU,OAAO,SAAS,OAAO,IAAI,GAAG;EAC9C,IAAI,OAAO,MAAM,MAAM,IAAI,OAAO,MAAM,QAAQ,EAAE,OAAO;EAEzD,MAAM,YAAY,KAAK,aAAa;EACpC,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IACxC,QAAQ;OACH,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IAC/C,SAAS;EAEX,OAAO;GACL;GACA;GACD;;CAGH,OAAO;;AAGT,MAAa,eAAe,SAC1B,CAAC,CAAC,QACF,KAAK,SAAS,KACd,KAAK,WAAW,KAChB,CAAC,OAAO,MAAM,KAAK,MAAM,IACzB,CAAC,OAAO,MAAM,KAAK,QAAQ;AAE7B,MAAa,eAAe,OAAe,UAA0B;CACnE,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,IAAI,aAAa,UACf,OAAO;CAET,OAAO,WAAW,WAAW,IAAI;;AAGnC,MAAa,WAAW,SAA0B;CAChD,OAAO,GAAG,OAAO,SAAS,GAAG,IAAI;;AAEnC,MAAa,cAAc,SAAuB;CAChD,OAAO,GAAG,QAAQ,KAAK,MAAM,CAAC,GAAG,QAAQ,KAAK,QAAQ;;AAGxD,MAAa,YAAY,MAAc,SAAyB;CAC9D,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,OAAO;EACX,OAAO,UAAU;EACjB,SAAS,UAAU;EACpB;CACD,KAAK,WAAW,UAAU;CAC1B,KAAK,SAAS,UAAU;CACxB,KAAK,SAAS,KAAK,MAAM,KAAK,UAAU,GAAG;CAC3C,KAAK,UAAU,KAAK,UAAU;CAC9B,OAAO,WAAW,KAAK"}
@@ -50,10 +50,10 @@ declare const timelineItemProps: {
50
50
  readonly timestamp: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
51
51
  readonly hideTimestamp: BooleanConstructor;
52
52
  readonly center: BooleanConstructor;
53
- readonly placement: EpPropFinalized<StringConstructor, "bottom" | "top", unknown, "bottom", boolean>;
53
+ readonly placement: EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "bottom", boolean>;
54
54
  readonly type: EpPropFinalized<StringConstructor, "info" | "primary" | "success" | "warning" | "danger", unknown, "", boolean>;
55
55
  readonly color: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
56
- readonly size: EpPropFinalized<StringConstructor, "large" | "normal", unknown, "normal", boolean>;
56
+ readonly size: EpPropFinalized<StringConstructor, "normal" | "large", unknown, "normal", boolean>;
57
57
  readonly icon: {
58
58
  readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
59
59
  readonly required: false;
@@ -9,8 +9,8 @@ type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_14) => any;
10
10
  };
11
11
  declare const __VLS_base: _$vue.DefineComponent<TimelineItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
12
- size: "normal" | "large";
13
12
  type: "primary" | "success" | "warning" | "danger" | "info" | "";
13
+ size: "normal" | "large";
14
14
  color: string;
15
15
  placement: "top" | "bottom";
16
16
  timestamp: string;
@@ -4,22 +4,22 @@ import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
4
4
 
5
5
  //#region ../../packages/components/timeline/src/timeline.d.ts
6
6
  declare const timelineProps: {
7
- readonly mode: EpPropFinalized<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
7
+ readonly mode: EpPropFinalized<StringConstructor, "start" | "end" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
8
8
  readonly reverse: BooleanConstructor;
9
9
  };
10
10
  type TimelineProps = ExtractPropTypes<typeof timelineProps>;
11
11
  type TimelinePropsPublic = ExtractPublicPropTypes<typeof timelineProps>;
12
12
  declare const Timeline: _$vue.DefineComponent<ExtractPropTypes<{
13
- readonly mode: EpPropFinalized<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
13
+ readonly mode: EpPropFinalized<StringConstructor, "start" | "end" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
14
14
  readonly reverse: BooleanConstructor;
15
15
  }>, () => _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
16
16
  [key: string]: any;
17
17
  }>, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ExtractPropTypes<{
18
- readonly mode: EpPropFinalized<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
18
+ readonly mode: EpPropFinalized<StringConstructor, "start" | "end" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
19
19
  readonly reverse: BooleanConstructor;
20
20
  }>> & Readonly<{}>, {
21
21
  readonly reverse: boolean;
22
- readonly mode: EpPropMergeType<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown>;
22
+ readonly mode: EpPropMergeType<StringConstructor, "start" | "end" | "alternate" | "alternate-reverse", unknown>;
23
23
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
24
24
  type TimelineInstance = InstanceType<typeof Timeline> & unknown;
25
25
  //#endregion
@@ -19,29 +19,29 @@ declare const __VLS_base: _$vue.DefineComponent<ElTooltipContentProps, {
19
19
  */
20
20
  isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
21
21
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ElTooltipContentProps> & Readonly<{}>, {
22
+ style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
22
23
  visible: boolean | null;
23
24
  content: string;
24
- style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
25
25
  offset: number;
26
- teleported: boolean;
27
- effect: PopperEffect;
28
- enterable: boolean;
29
- pure: boolean;
30
- focusOnShow: boolean;
31
- trapping: boolean;
32
- popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
33
- stopPopperMouseEvent: boolean;
34
- virtualTriggering: boolean;
35
- loop: boolean;
26
+ showAfter: number;
27
+ hideAfter: number;
28
+ autoClose: number;
36
29
  boundariesPadding: number;
37
30
  gpuAcceleration: boolean;
38
31
  placement: Placement;
39
32
  popperOptions: Partial<Options>;
40
33
  strategy: "fixed" | "absolute";
41
34
  arrowOffset: number;
42
- showAfter: number;
43
- hideAfter: number;
44
- autoClose: number;
35
+ effect: PopperEffect;
36
+ enterable: boolean;
37
+ popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
38
+ stopPopperMouseEvent: boolean;
39
+ loop: boolean;
40
+ pure: boolean;
41
+ focusOnShow: boolean;
42
+ trapping: boolean;
43
+ virtualTriggering: boolean;
44
+ teleported: boolean;
45
45
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
46
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
47
  declare const _default: typeof __VLS_export;
@@ -39,7 +39,7 @@ declare const useTooltipProps: {
39
39
  showArrow: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
40
40
  arrowOffset: EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
41
41
  disabled: BooleanConstructor;
42
- trigger: EpPropFinalized<(new (...args: any[]) => "focus" | "hover" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | (((new (...args: any[]) => "focus" | "hover" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>)) | null)[], unknown, unknown, "hover", boolean>;
42
+ trigger: EpPropFinalized<(new (...args: any[]) => "click" | "focus" | "hover" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | (((new (...args: any[]) => "click" | "focus" | "hover" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>)) | null)[], unknown, unknown, "hover", boolean>;
43
43
  triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
44
44
  focusOnTarget: BooleanConstructor;
45
45
  virtualRef: {
@@ -46,44 +46,44 @@ declare const __VLS_base: _$vue.DefineComponent<UseTooltipProps, {
46
46
  hide: (...args: any[]) => void;
47
47
  show: (...args: any[]) => void;
48
48
  open: (...args: any[]) => void;
49
- close: (...args: any[]) => void;
50
49
  "update:visible": (...args: any[]) => void;
51
50
  "before-show": (...args: any[]) => void;
52
51
  "before-hide": (...args: any[]) => void;
52
+ close: (...args: any[]) => void;
53
53
  }, string, _$vue.PublicProps, Readonly<UseTooltipProps> & Readonly<{
54
54
  onHide?: ((...args: any[]) => any) | undefined;
55
55
  onShow?: ((...args: any[]) => any) | undefined;
56
56
  onOpen?: ((...args: any[]) => any) | undefined;
57
- onClose?: ((...args: any[]) => any) | undefined;
58
57
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
59
58
  "onBefore-show"?: ((...args: any[]) => any) | undefined;
60
59
  "onBefore-hide"?: ((...args: any[]) => any) | undefined;
60
+ onClose?: ((...args: any[]) => any) | undefined;
61
61
  }>, {
62
- visible: boolean | null;
63
- content: string;
64
62
  style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
65
63
  role: typeof roleTypes[number];
64
+ visible: boolean | null;
65
+ content: string;
66
66
  offset: number;
67
- teleported: boolean;
68
- effect: PopperEffect;
69
- enterable: boolean;
70
- pure: boolean;
71
- focusOnShow: boolean;
72
- trapping: boolean;
73
- popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
74
- stopPopperMouseEvent: boolean;
75
- virtualTriggering: boolean;
76
- loop: boolean;
67
+ showAfter: number;
68
+ hideAfter: number;
69
+ autoClose: number;
77
70
  boundariesPadding: number;
78
71
  gpuAcceleration: boolean;
79
72
  placement: Placement;
80
73
  popperOptions: Partial<Options>;
81
74
  strategy: "fixed" | "absolute";
82
75
  arrowOffset: number;
76
+ effect: PopperEffect;
77
+ enterable: boolean;
78
+ popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
79
+ stopPopperMouseEvent: boolean;
80
+ loop: boolean;
81
+ pure: boolean;
82
+ focusOnShow: boolean;
83
+ trapping: boolean;
84
+ virtualTriggering: boolean;
85
+ teleported: boolean;
83
86
  showArrow: boolean;
84
- showAfter: number;
85
- hideAfter: number;
86
- autoClose: number;
87
87
  trigger: Arrayable<TooltipTriggerType>;
88
88
  triggerKeys: string[];
89
89
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -34,7 +34,7 @@ declare const useTooltipTriggerPropsDefaults: {
34
34
  */
35
35
  declare const useTooltipTriggerProps: {
36
36
  readonly disabled: BooleanConstructor;
37
- readonly trigger: EpPropFinalized<(new (...args: any[]) => "focus" | "hover" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | (((new (...args: any[]) => "focus" | "hover" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>)) | null)[], unknown, unknown, "hover", boolean>;
37
+ readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "focus" | "hover" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | (((new (...args: any[]) => "click" | "focus" | "hover" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>)) | null)[], unknown, unknown, "hover", boolean>;
38
38
  readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
39
39
  readonly focusOnTarget: BooleanConstructor;
40
40
  readonly virtualRef: {
@@ -35,7 +35,7 @@ interface TourContentProps {
35
35
  * @deprecated Removed after 3.0.0, Use `TourContentProps` instead.
36
36
  */
37
37
  declare const tourContentProps: {
38
- placement: EpPropFinalized<(new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
38
+ placement: EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
39
39
  reference: EpPropFinalized<(new (...args: any[]) => HTMLElement | VirtualElement) | (() => HTMLElement | VirtualElement | null) | (((new (...args: any[]) => HTMLElement | VirtualElement) | (() => HTMLElement | VirtualElement | null)) | null)[], unknown, unknown, null, boolean>;
40
40
  strategy: EpPropFinalized<(new (...args: any[]) => "fixed" | "absolute") | (() => Strategy) | (((new (...args: any[]) => "fixed" | "absolute") | (() => Strategy)) | null)[], "fixed" | "absolute", unknown, string, boolean>;
41
41
  offset: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
@@ -30,7 +30,6 @@ interface TourContext {
30
30
  updateModelValue(modelValue: boolean): void;
31
31
  onClose(): void;
32
32
  onFinish(): void;
33
- onChange(): void;
34
33
  }
35
34
  declare const tourKey: InjectionKey<TourContext>;
36
35
  declare const useFloating: (referenceRef: Ref<HTMLElement | VirtualElement | null>, contentRef: Ref<HTMLElement | null>, arrowRef: Ref<HTMLElement | null>, placement: Ref<Placement | undefined>, strategy: Ref<Strategy>, offset: Ref<number>, zIndex: Ref<number>, showArrow: Ref<boolean>) => {
@@ -1 +1 @@
1
- {"version":3,"file":"helper.mjs","names":["offsetMiddleware","offset"],"sources":["../../../../../../packages/components/tour/src/helper.ts"],"sourcesContent":["import {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n unref,\n watch,\n watchEffect,\n} from 'vue'\nimport {\n arrow,\n autoUpdate,\n computePosition,\n detectOverflow,\n flip,\n offset as offsetMiddleware,\n shift,\n} from '@floating-ui/dom'\nimport {\n isArray,\n isClient,\n isFunction,\n isString,\n keysOf,\n} from '@element-plus/utils'\n\nimport type {\n CSSProperties,\n Component,\n InjectionKey,\n Ref,\n SetupContext,\n} from 'vue'\nimport type { UseNamespaceReturn } from '@element-plus/hooks'\nimport type { PosInfo, TourGap, TourMask } from './types'\nimport type {\n ComputePositionReturn,\n Middleware,\n Placement,\n Strategy,\n VirtualElement,\n} from '@floating-ui/dom'\nimport type { TourStepProps } from './step'\n\nexport const useTarget = (\n target: Ref<\n string | HTMLElement | (() => HTMLElement | null) | null | undefined\n >,\n open: Ref<boolean>,\n gap: Ref<TourGap>,\n mergedMask: Ref<TourMask>,\n scrollIntoViewOptions: Ref<boolean | ScrollIntoViewOptions>\n) => {\n const posInfo: Ref<PosInfo | null> = ref(null)\n\n const getTargetEl = () => {\n let targetEl: HTMLElement | null | undefined\n if (isString(target.value)) {\n targetEl = document.querySelector<HTMLElement>(target.value)\n } else if (isFunction(target.value)) {\n targetEl = target.value()\n } else {\n targetEl = target.value\n }\n return targetEl\n }\n\n const updatePosInfo = () => {\n const targetEl = getTargetEl()\n if (!targetEl || !open.value) {\n posInfo.value = null\n return\n }\n if (!isInViewPort(targetEl)) {\n targetEl.scrollIntoView(scrollIntoViewOptions.value)\n }\n const { left, top, width, height } = targetEl.getBoundingClientRect()\n posInfo.value = {\n left,\n top,\n width,\n height,\n radius: 0,\n }\n }\n\n onMounted(() => {\n watch(\n [open, target],\n () => {\n updatePosInfo()\n },\n {\n immediate: true,\n }\n )\n window.addEventListener('resize', updatePosInfo)\n })\n\n onBeforeUnmount(() => {\n window.removeEventListener('resize', updatePosInfo)\n })\n\n const getGapOffset = (index: number) =>\n (isArray(gap.value.offset) ? gap.value.offset[index] : gap.value.offset) ??\n 6\n\n const mergedPosInfo = computed(() => {\n if (!posInfo.value) return posInfo.value\n\n const gapOffsetX = getGapOffset(0)\n const gapOffsetY = getGapOffset(1)\n const gapRadius = gap.value?.radius || 2\n\n return {\n left: posInfo.value.left - gapOffsetX,\n top: posInfo.value.top - gapOffsetY,\n width: posInfo.value.width + gapOffsetX * 2,\n height: posInfo.value.height + gapOffsetY * 2,\n radius: gapRadius,\n }\n })\n\n const triggerTarget = computed(() => {\n const targetEl = getTargetEl()\n if (!mergedMask.value || !targetEl || !window.DOMRect) {\n return targetEl || undefined\n }\n\n return {\n getBoundingClientRect() {\n return window.DOMRect.fromRect({\n width: mergedPosInfo.value?.width || 0,\n height: mergedPosInfo.value?.height || 0,\n x: mergedPosInfo.value?.left || 0,\n y: mergedPosInfo.value?.top || 0,\n })\n },\n }\n })\n\n return {\n mergedPosInfo,\n triggerTarget,\n }\n}\n\nexport interface TourContext {\n currentStep: Ref<TourStepProps | undefined>\n current: Ref<number>\n total: Ref<number>\n showClose: Ref<boolean>\n closeIcon: Ref<string | Component | undefined>\n mergedType: Ref<'default' | 'primary' | undefined>\n ns: UseNamespaceReturn\n slots: SetupContext['slots']\n updateModelValue(modelValue: boolean): void\n onClose(): void\n onFinish(): void\n onChange(): void\n}\n\nexport const tourKey: InjectionKey<TourContext> = Symbol('ElTour')\n\nfunction isInViewPort(element: HTMLElement) {\n const viewWidth = window.innerWidth || document.documentElement.clientWidth\n const viewHeight = window.innerHeight || document.documentElement.clientHeight\n const { top, right, bottom, left } = element.getBoundingClientRect()\n\n return top >= 0 && left >= 0 && right <= viewWidth && bottom <= viewHeight\n}\n\nexport const useFloating = (\n referenceRef: Ref<HTMLElement | VirtualElement | null>,\n contentRef: Ref<HTMLElement | null>,\n arrowRef: Ref<HTMLElement | null>,\n placement: Ref<Placement | undefined>,\n strategy: Ref<Strategy>,\n offset: Ref<number>,\n zIndex: Ref<number>,\n showArrow: Ref<boolean>\n) => {\n const x = ref<number>()\n const y = ref<number>()\n const middlewareData = ref<ComputePositionReturn['middlewareData']>({})\n\n const states = {\n x,\n y,\n placement,\n strategy,\n middlewareData,\n } as const\n\n const middleware = computed(() => {\n const _middleware: Middleware[] = [\n offsetMiddleware(unref(offset)),\n flip(),\n shift(),\n overflowMiddleware(),\n ]\n\n if (unref(showArrow) && unref(arrowRef)) {\n _middleware.push(\n arrow({\n element: unref(arrowRef)!,\n })\n )\n }\n return _middleware\n })\n\n const update = async () => {\n if (!isClient) return\n\n const referenceEl = unref(referenceRef)\n const contentEl = unref(contentRef)\n if (!referenceEl || !contentEl) return\n\n const data = await computePosition(referenceEl, contentEl, {\n placement: unref(placement),\n strategy: unref(strategy),\n middleware: unref(middleware),\n })\n\n keysOf(states).forEach((key) => {\n states[key].value = data[key]\n })\n }\n\n const contentStyle = computed<CSSProperties>(() => {\n if (!unref(referenceRef)) {\n return {\n position: 'fixed',\n top: '50%',\n left: '50%',\n transform: 'translate3d(-50%, -50%, 0)',\n maxWidth: '100vw',\n zIndex: unref(zIndex),\n }\n }\n\n const { overflow } = unref(middlewareData)\n\n return {\n position: unref(strategy),\n zIndex: unref(zIndex),\n top: unref(y) != null ? `${unref(y)}px` : '',\n left: unref(x) != null ? `${unref(x)}px` : '',\n maxWidth: overflow?.maxWidth ? `${overflow?.maxWidth}px` : '',\n }\n })\n\n const arrowStyle = computed<CSSProperties>(() => {\n if (!unref(showArrow)) return {}\n\n const { arrow } = unref(middlewareData)\n return {\n left: arrow?.x != null ? `${arrow?.x}px` : '',\n top: arrow?.y != null ? `${arrow?.y}px` : '',\n }\n })\n\n let cleanup: any\n onMounted(() => {\n const referenceEl = unref(referenceRef)\n const contentEl = unref(contentRef)\n if (referenceEl && contentEl) {\n cleanup = autoUpdate(referenceEl, contentEl, update)\n }\n\n watchEffect(() => {\n update()\n })\n })\n\n onBeforeUnmount(() => {\n cleanup && cleanup()\n })\n\n return {\n update,\n contentStyle,\n arrowStyle,\n }\n}\n\nconst overflowMiddleware = (): Middleware => {\n return {\n name: 'overflow',\n async fn(state) {\n const overflow = await detectOverflow(state)\n let overWidth = 0\n if (overflow.left > 0) overWidth = overflow.left\n if (overflow.right > 0) overWidth = overflow.right\n const floatingWidth = state.rects.floating.width\n return {\n data: {\n maxWidth: floatingWidth - overWidth,\n },\n }\n },\n }\n}\n"],"mappings":";;;;;;AA4CA,MAAa,aACX,QAGA,MACA,KACA,YACA,0BACG;CACH,MAAM,UAA+B,IAAI,KAAK;CAE9C,MAAM,oBAAoB;EACxB,IAAI;EACJ,IAAI,SAAS,OAAO,MAAM,EACxB,WAAW,SAAS,cAA2B,OAAO,MAAM;OACvD,IAAI,WAAW,OAAO,MAAM,EACjC,WAAW,OAAO,OAAO;OAEzB,WAAW,OAAO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V,QAAQ,MAAM,OAAO;GACtB;EAGH,MAAM,EAAE,aAAa,MAAM,eAAe;EAE1C,OAAO;GACL,UAAU,MAAM,SAAS;GACzB,QAAQ,MAAM,OAAO;GACrB,KAAK,MAAM,EAAE,IAAI,OAAO,GAAG,MAAM,EAAE,CAAC,MAAM;GAC1C,MAAM,MAAM,EAAE,IAAI,OAAO,GAAG,MAAM,EAAE,CAAC,MAAM;GAC3C,UAAU,UAAU,WAAW,GAAG,UAAU,SAAS,MAAM;GAC5D;GACD;CAEF,MAAM,aAAa,eAA8B;EAC/C,IAAI,CAAC,MAAM,UAAU,EAAE,OAAO,EAAE;EAEhC,MAAM,EAAE,UAAU,MAAM,eAAe;EACvC,OAAO;GACL,MAAM,OAAO,KAAK,OAAO,GAAG,OAAO,EAAE,MAAM;GAC3C,KAAK,OAAO,KAAK,OAAO,GAAG,OAAO,EAAE,MAAM;GAC3C;GACD;CAEF,IAAI;CACJ,gBAAgB;EACd,MAAM,cAAc,MAAM,aAAa;EACvC,MAAM,YAAY,MAAM,WAAW;EACnC,IAAI,eAAe,WACjB,UAAU,WAAW,aAAa,WAAW,OAAO;EAGtD,kBAAkB;GAChB,QAAQ;IACR;GACF;CAEF,sBAAsB;EACpB,WAAW,SAAS;GACpB;CAEF,OAAO;EACL;EACA;EACA;EACD;;AAGH,MAAM,2BAAuC;CAC3C,OAAO;EACL,MAAM;EACN,MAAM,GAAG,OAAO;GACd,MAAM,WAAW,MAAM,eAAe,MAAM;GAC5C,IAAI,YAAY;GAChB,IAAI,SAAS,OAAO,GAAG,YAAY,SAAS;GAC5C,IAAI,SAAS,QAAQ,GAAG,YAAY,SAAS;GAE7C,OAAO,EACL,MAAM,EACJ,UAHkB,MAAM,MAAM,SAAS,QAGb,WAC3B,EACF;;EAEJ"}
1
+ {"version":3,"file":"helper.mjs","names":["offsetMiddleware","offset"],"sources":["../../../../../../packages/components/tour/src/helper.ts"],"sourcesContent":["import {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n unref,\n watch,\n watchEffect,\n} from 'vue'\nimport {\n arrow,\n autoUpdate,\n computePosition,\n detectOverflow,\n flip,\n offset as offsetMiddleware,\n shift,\n} from '@floating-ui/dom'\nimport {\n isArray,\n isClient,\n isFunction,\n isString,\n keysOf,\n} from '@element-plus/utils'\n\nimport type {\n CSSProperties,\n Component,\n InjectionKey,\n Ref,\n SetupContext,\n} from 'vue'\nimport type { UseNamespaceReturn } from '@element-plus/hooks'\nimport type { PosInfo, TourGap, TourMask } from './types'\nimport type {\n ComputePositionReturn,\n Middleware,\n Placement,\n Strategy,\n VirtualElement,\n} from '@floating-ui/dom'\nimport type { TourStepProps } from './step'\n\nexport const useTarget = (\n target: Ref<\n string | HTMLElement | (() => HTMLElement | null) | null | undefined\n >,\n open: Ref<boolean>,\n gap: Ref<TourGap>,\n mergedMask: Ref<TourMask>,\n scrollIntoViewOptions: Ref<boolean | ScrollIntoViewOptions>\n) => {\n const posInfo: Ref<PosInfo | null> = ref(null)\n\n const getTargetEl = () => {\n let targetEl: HTMLElement | null | undefined\n if (isString(target.value)) {\n targetEl = document.querySelector<HTMLElement>(target.value)\n } else if (isFunction(target.value)) {\n targetEl = target.value()\n } else {\n targetEl = target.value\n }\n return targetEl\n }\n\n const updatePosInfo = () => {\n const targetEl = getTargetEl()\n if (!targetEl || !open.value) {\n posInfo.value = null\n return\n }\n if (!isInViewPort(targetEl)) {\n targetEl.scrollIntoView(scrollIntoViewOptions.value)\n }\n const { left, top, width, height } = targetEl.getBoundingClientRect()\n posInfo.value = {\n left,\n top,\n width,\n height,\n radius: 0,\n }\n }\n\n onMounted(() => {\n watch(\n [open, target],\n () => {\n updatePosInfo()\n },\n {\n immediate: true,\n }\n )\n window.addEventListener('resize', updatePosInfo)\n })\n\n onBeforeUnmount(() => {\n window.removeEventListener('resize', updatePosInfo)\n })\n\n const getGapOffset = (index: number) =>\n (isArray(gap.value.offset) ? gap.value.offset[index] : gap.value.offset) ??\n 6\n\n const mergedPosInfo = computed(() => {\n if (!posInfo.value) return posInfo.value\n\n const gapOffsetX = getGapOffset(0)\n const gapOffsetY = getGapOffset(1)\n const gapRadius = gap.value?.radius || 2\n\n return {\n left: posInfo.value.left - gapOffsetX,\n top: posInfo.value.top - gapOffsetY,\n width: posInfo.value.width + gapOffsetX * 2,\n height: posInfo.value.height + gapOffsetY * 2,\n radius: gapRadius,\n }\n })\n\n const triggerTarget = computed(() => {\n const targetEl = getTargetEl()\n if (!mergedMask.value || !targetEl || !window.DOMRect) {\n return targetEl || undefined\n }\n\n return {\n getBoundingClientRect() {\n return window.DOMRect.fromRect({\n width: mergedPosInfo.value?.width || 0,\n height: mergedPosInfo.value?.height || 0,\n x: mergedPosInfo.value?.left || 0,\n y: mergedPosInfo.value?.top || 0,\n })\n },\n }\n })\n\n return {\n mergedPosInfo,\n triggerTarget,\n }\n}\n\nexport interface TourContext {\n currentStep: Ref<TourStepProps | undefined>\n current: Ref<number>\n total: Ref<number>\n showClose: Ref<boolean>\n closeIcon: Ref<string | Component | undefined>\n mergedType: Ref<'default' | 'primary' | undefined>\n ns: UseNamespaceReturn\n slots: SetupContext['slots']\n updateModelValue(modelValue: boolean): void\n onClose(): void\n onFinish(): void\n}\n\nexport const tourKey: InjectionKey<TourContext> = Symbol('ElTour')\n\nfunction isInViewPort(element: HTMLElement) {\n const viewWidth = window.innerWidth || document.documentElement.clientWidth\n const viewHeight = window.innerHeight || document.documentElement.clientHeight\n const { top, right, bottom, left } = element.getBoundingClientRect()\n\n return top >= 0 && left >= 0 && right <= viewWidth && bottom <= viewHeight\n}\n\nexport const useFloating = (\n referenceRef: Ref<HTMLElement | VirtualElement | null>,\n contentRef: Ref<HTMLElement | null>,\n arrowRef: Ref<HTMLElement | null>,\n placement: Ref<Placement | undefined>,\n strategy: Ref<Strategy>,\n offset: Ref<number>,\n zIndex: Ref<number>,\n showArrow: Ref<boolean>\n) => {\n const x = ref<number>()\n const y = ref<number>()\n const middlewareData = ref<ComputePositionReturn['middlewareData']>({})\n\n const states = {\n x,\n y,\n placement,\n strategy,\n middlewareData,\n } as const\n\n const middleware = computed(() => {\n const _middleware: Middleware[] = [\n offsetMiddleware(unref(offset)),\n flip(),\n shift(),\n overflowMiddleware(),\n ]\n\n if (unref(showArrow) && unref(arrowRef)) {\n _middleware.push(\n arrow({\n element: unref(arrowRef)!,\n })\n )\n }\n return _middleware\n })\n\n const update = async () => {\n if (!isClient) return\n\n const referenceEl = unref(referenceRef)\n const contentEl = unref(contentRef)\n if (!referenceEl || !contentEl) return\n\n const data = await computePosition(referenceEl, contentEl, {\n placement: unref(placement),\n strategy: unref(strategy),\n middleware: unref(middleware),\n })\n\n keysOf(states).forEach((key) => {\n states[key].value = data[key]\n })\n }\n\n const contentStyle = computed<CSSProperties>(() => {\n if (!unref(referenceRef)) {\n return {\n position: 'fixed',\n top: '50%',\n left: '50%',\n transform: 'translate3d(-50%, -50%, 0)',\n maxWidth: '100vw',\n zIndex: unref(zIndex),\n }\n }\n\n const { overflow } = unref(middlewareData)\n\n return {\n position: unref(strategy),\n zIndex: unref(zIndex),\n top: unref(y) != null ? `${unref(y)}px` : '',\n left: unref(x) != null ? `${unref(x)}px` : '',\n maxWidth: overflow?.maxWidth ? `${overflow?.maxWidth}px` : '',\n }\n })\n\n const arrowStyle = computed<CSSProperties>(() => {\n if (!unref(showArrow)) return {}\n\n const { arrow } = unref(middlewareData)\n return {\n left: arrow?.x != null ? `${arrow?.x}px` : '',\n top: arrow?.y != null ? `${arrow?.y}px` : '',\n }\n })\n\n let cleanup: any\n onMounted(() => {\n const referenceEl = unref(referenceRef)\n const contentEl = unref(contentRef)\n if (referenceEl && contentEl) {\n cleanup = autoUpdate(referenceEl, contentEl, update)\n }\n\n watchEffect(() => {\n update()\n })\n })\n\n onBeforeUnmount(() => {\n cleanup && cleanup()\n })\n\n return {\n update,\n contentStyle,\n arrowStyle,\n }\n}\n\nconst overflowMiddleware = (): Middleware => {\n return {\n name: 'overflow',\n async fn(state) {\n const overflow = await detectOverflow(state)\n let overWidth = 0\n if (overflow.left > 0) overWidth = overflow.left\n if (overflow.right > 0) overWidth = overflow.right\n const floatingWidth = state.rects.floating.width\n return {\n data: {\n maxWidth: floatingWidth - overWidth,\n },\n }\n },\n }\n}\n"],"mappings":";;;;;;AA4CA,MAAa,aACX,QAGA,MACA,KACA,YACA,0BACG;CACH,MAAM,UAA+B,IAAI,KAAK;CAE9C,MAAM,oBAAoB;EACxB,IAAI;EACJ,IAAI,SAAS,OAAO,MAAM,EACxB,WAAW,SAAS,cAA2B,OAAO,MAAM;OACvD,IAAI,WAAW,OAAO,MAAM,EACjC,WAAW,OAAO,OAAO;OAEzB,WAAW,OAAO;EAEpB,OAAO;;CAGT,MAAM,sBAAsB;EAC1B,MAAM,WAAW,aAAa;EAC9B,IAAI,CAAC,YAAY,CAAC,KAAK,OAAO;GAC5B,QAAQ,QAAQ;GAChB;;EAEF,IAAI,CAAC,aAAa,SAAS,EACzB,SAAS,eAAe,sBAAsB,MAAM;EAEtD,MAAM,EAAE,MAAM,KAAK,OAAO,WAAW,SAAS,uBAAuB;EACrE,QAAQ,QAAQ;GACd;GACA;GACA;GACA;GACA,QAAQ;GACT;;CAGH,gBAAgB;EACd,MACE,CAAC,MAAM,OAAO,QACR;GACJ,eAAe;KAEjB,EACE,WAAW,MACZ,CACF;EACD,OAAO,iBAAiB,UAAU,cAAc;GAChD;CAEF,sBAAsB;EACpB,OAAO,oBAAoB,UAAU,cAAc;GACnD;CAEF,MAAM,gBAAgB,WACnB,QAAQ,IAAI,MAAM,OAAO,GAAG,IAAI,MAAM,OAAO,SAAS,IAAI,MAAM,WACjE;CAEF,MAAM,gBAAgB,eAAe;EACnC,IAAI,CAAC,QAAQ,OAAO,OAAO,QAAQ;EAEnC,MAAM,aAAa,aAAa,EAAE;EAClC,MAAM,aAAa,aAAa,EAAE;EAClC,MAAM,YAAY,IAAI,OAAO,UAAU;EAEvC,OAAO;GACL,MAAM,QAAQ,MAAM,OAAO;GAC3B,KAAK,QAAQ,MAA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2BAAuC;CAC3C,OAAO;EACL,MAAM;EACN,MAAM,GAAG,OAAO;GACd,MAAM,WAAW,MAAM,eAAe,MAAM;GAC5C,IAAI,YAAY;GAChB,IAAI,SAAS,OAAO,GAAG,YAAY,SAAS;GAC5C,IAAI,SAAS,QAAQ,GAAG,YAAY,SAAS;GAE7C,OAAO,EACL,MAAM,EACJ,UAHkB,MAAM,MAAM,SAAS,QAGb,WAC3B,EACF;;EAEJ"}
@@ -81,7 +81,7 @@ declare const tourStepProps: {
81
81
  __epPropKey: true;
82
82
  };
83
83
  showArrow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
84
- placement: EpPropFinalized<(new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => _$_floating_ui_dom0.Placement) | (((new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => _$_floating_ui_dom0.Placement)) | null)[], "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
84
+ placement: EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => _$_floating_ui_dom0.Placement) | (((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => _$_floating_ui_dom0.Placement)) | null)[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
85
85
  mask: EpPropFinalized<(new (...args: any[]) => boolean | {
86
86
  style?: CSSProperties;
87
87
  color?: string;
@@ -15,9 +15,9 @@ declare const __VLS_base: _$vue.DefineComponent<TourStepProps, {}, {}, {}, {}, _
15
15
  }, string, _$vue.PublicProps, Readonly<TourStepProps> & Readonly<{
16
16
  onClose?: (() => any) | undefined;
17
17
  }>, {
18
+ mask: TourMask;
18
19
  placement: _$_floating_ui_dom0.Placement;
19
20
  showArrow: boolean;
20
- mask: TourMask;
21
21
  showClose: boolean;
22
22
  scrollIntoViewOptions: boolean | ScrollIntoViewOptions;
23
23
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -20,7 +20,7 @@ var step_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
20
20
  const emit = __emit;
21
21
  const { Close } = CloseComponents;
22
22
  const { t } = useLocale();
23
- const { currentStep, current, total, showClose, closeIcon, mergedType, ns, slots: tourSlots, updateModelValue, onClose: tourOnClose, onFinish: tourOnFinish, onChange } = inject(tourKey);
23
+ const { currentStep, current, total, showClose, closeIcon, mergedType, ns, slots: tourSlots, updateModelValue, onClose: tourOnClose, onFinish: tourOnFinish } = inject(tourKey);
24
24
  watch(props, (val) => {
25
25
  currentStep.value = val;
26
26
  }, { immediate: true });
@@ -33,13 +33,11 @@ var step_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
33
33
  const onPrev = () => {
34
34
  current.value -= 1;
35
35
  if (props.prevButtonProps?.onClick) props.prevButtonProps?.onClick();
36
- onChange();
37
36
  };
38
37
  const onNext = () => {
39
38
  if (current.value >= total.value - 1) onFinish();
40
39
  else current.value += 1;
41
40
  if (props.nextButtonProps?.onClick) props.nextButtonProps.onClick();
42
- onChange();
43
41
  };
44
42
  const onFinish = () => {
45
43
  onClose();
@@ -1 +1 @@
1
- {"version":3,"file":"step.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../../../packages/components/tour/src/step.vue"],"sourcesContent":["<template>\n <button\n v-if=\"mergedShowClose\"\n :aria-label=\"t('el.tour.close')\"\n :class=\"ns.e('closebtn')\"\n type=\"button\"\n @click=\"onClose\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"mergedCloseIcon\" />\n </el-icon>\n </button>\n <header :class=\"[ns.e('header'), { 'show-close': showClose }]\">\n <slot name=\"header\">\n <span role=\"heading\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n </header>\n <div :class=\"ns.e('body')\">\n <slot>\n <span>{{ description }}</span>\n </slot>\n </div>\n <footer :class=\"ns.e('footer')\">\n <div :class=\"ns.b('indicators')\">\n <component\n :is=\"tourSlots.indicators\"\n v-if=\"tourSlots.indicators\"\n :current=\"current\"\n :total=\"total\"\n />\n <template v-else>\n <span\n v-for=\"(item, index) in total\"\n :key=\"item\"\n :class=\"[ns.b('indicator'), ns.is('active', index === current)]\"\n />\n </template>\n </div>\n <div :class=\"ns.b('buttons')\">\n <el-button\n v-if=\"current > 0\"\n size=\"small\"\n :type=\"mergedType\"\n v-bind=\"filterButtonProps(prevButtonProps)\"\n @click=\"onPrev\"\n >\n {{ prevButtonProps?.children ?? t('el.tour.previous') }}\n </el-button>\n <el-button\n v-if=\"current <= total - 1\"\n size=\"small\"\n :type=\"mergedType === 'primary' ? 'default' : 'primary'\"\n v-bind=\"filterButtonProps(nextButtonProps)\"\n @click=\"onNext\"\n >\n {{\n nextButtonProps?.children ??\n (current === total - 1 ? t('el.tour.finish') : t('el.tour.next'))\n }}\n </el-button>\n </div>\n </footer>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, onBeforeUnmount, onMounted, watch } from 'vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { omit } from 'lodash-unified'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CloseComponents, getEventCode } from '@element-plus/utils'\nimport { useLocale } from '@element-plus/hooks'\nimport { tourStepEmits } from './step'\nimport { tourKey } from './helper'\n\nimport type { TourBtnProps } from './types'\nimport type { TourStepProps } from './step'\n\ndefineOptions({\n name: 'ElTourStep',\n})\n\nconst props = withDefaults(defineProps<TourStepProps>(), {\n showClose: undefined,\n showArrow: undefined,\n placement: 'bottom',\n mask: undefined,\n scrollIntoViewOptions: undefined,\n})\nconst emit = defineEmits(tourStepEmits)\n\nconst { Close } = CloseComponents\n\nconst { t } = useLocale()\n\nconst {\n currentStep,\n current,\n total,\n showClose,\n closeIcon,\n mergedType,\n ns,\n slots: tourSlots,\n updateModelValue,\n onClose: tourOnClose,\n onFinish: tourOnFinish,\n onChange,\n} = inject(tourKey)!\n\nwatch(\n props,\n (val) => {\n currentStep.value = val\n },\n {\n immediate: true,\n }\n)\n\nconst mergedShowClose = computed(() => props.showClose ?? showClose.value)\nconst mergedCloseIcon = computed(\n () => props.closeIcon ?? closeIcon.value ?? Close\n)\n\nconst filterButtonProps = (btnProps?: TourBtnProps) => {\n if (!btnProps) return\n return omit(btnProps, ['children', 'onClick'])\n}\n\nconst onPrev = () => {\n current.value -= 1\n if (props.prevButtonProps?.onClick) {\n props.prevButtonProps?.onClick()\n }\n onChange()\n}\n\nconst onNext = () => {\n if (current.value >= total.value - 1) {\n onFinish()\n } else {\n current.value += 1\n }\n if (props.nextButtonProps?.onClick) {\n props.nextButtonProps.onClick()\n }\n onChange()\n}\n\nconst onFinish = () => {\n onClose()\n tourOnFinish()\n}\n\nconst onClose = () => {\n updateModelValue(false)\n tourOnClose()\n emit('close')\n}\n\nconst handleKeydown = (e: KeyboardEvent) => {\n const target = e.target as HTMLElement | null\n if (target?.isContentEditable) return\n const code = getEventCode(e)\n\n switch (code) {\n case EVENT_CODE.left:\n e.preventDefault()\n current.value > 0 && onPrev()\n break\n case EVENT_CODE.right:\n e.preventDefault()\n onNext()\n break\n }\n}\n\nonMounted(() => {\n window.addEventListener('keydown', handleKeydown)\n})\n\nonBeforeUnmount(() => {\n window.removeEventListener('keydown', handleKeydown)\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAoFA,MAAM,QAAQ;EAOd,MAAM,OAAO;EAEb,MAAM,EAAE,UAAU;EAElB,MAAM,EAAE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AAE,CAAC,GAAE,UAAW,UAAU,MAAA,QAAO,CAAA,CAAA,CAAA;;oBAInE,mBAsBM,OAAA,EAtBA,OAAK,eAAE,MAAA,GAAE,CAAC,EAAC,UAAA,CAAA,EAAA,EAAA,CAEP,MAAA,QAAO,GAAA,KAAA,WAAA,EADf,YAQY,MAAA,SAAA,EARZ,WAQY;;KANV,MAAK;KACJ,MAAM,MAAA,WAAA;OACC,kBAAkB,QAAA,gBAAe,EAAA,EACxC,SAAO,QAAM,CAAA,EAAA;4BAE0C,CAAA,gBAAA,gBAArD,QAAA,iBAAiB,YAAY,MAAA,EAAC,CAAA,mBAAA,CAAA,EAAA,EAAA,CAAA,CAAA;;0DAG3B,MAAA,QAAO,IAAI,MAAA,MAAK,GAAA,KAAA,WAAA,EADxB,YAWY,MAAA,SAAA,EAXZ,WAWY;;KATV,MAAK;KACJ,MAAM,MAAA,WAAU,KAAA,YAAA,YAAA;OACT,kBAAkB,QAAA,gBAAe,EAAA,EACxC,SAAO,QAAM,CAAA,EAAA;4BAKZ,CAAA,gBAAA,gBAFA,QAAA,iBAAiB,aAAuB,MAAA,QAAO,KAAK,MAAA,MAAK,GAAA,IAAO,MAAA,EAAC,CAAA,iBAAA,GAAqB,MAAA,EAAC,CAAA,eAAA,EAAA,EAAA,EAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"step.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../../../packages/components/tour/src/step.vue"],"sourcesContent":["<template>\n <button\n v-if=\"mergedShowClose\"\n :aria-label=\"t('el.tour.close')\"\n :class=\"ns.e('closebtn')\"\n type=\"button\"\n @click=\"onClose\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"mergedCloseIcon\" />\n </el-icon>\n </button>\n <header :class=\"[ns.e('header'), { 'show-close': showClose }]\">\n <slot name=\"header\">\n <span role=\"heading\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n </header>\n <div :class=\"ns.e('body')\">\n <slot>\n <span>{{ description }}</span>\n </slot>\n </div>\n <footer :class=\"ns.e('footer')\">\n <div :class=\"ns.b('indicators')\">\n <component\n :is=\"tourSlots.indicators\"\n v-if=\"tourSlots.indicators\"\n :current=\"current\"\n :total=\"total\"\n />\n <template v-else>\n <span\n v-for=\"(item, index) in total\"\n :key=\"item\"\n :class=\"[ns.b('indicator'), ns.is('active', index === current)]\"\n />\n </template>\n </div>\n <div :class=\"ns.b('buttons')\">\n <el-button\n v-if=\"current > 0\"\n size=\"small\"\n :type=\"mergedType\"\n v-bind=\"filterButtonProps(prevButtonProps)\"\n @click=\"onPrev\"\n >\n {{ prevButtonProps?.children ?? t('el.tour.previous') }}\n </el-button>\n <el-button\n v-if=\"current <= total - 1\"\n size=\"small\"\n :type=\"mergedType === 'primary' ? 'default' : 'primary'\"\n v-bind=\"filterButtonProps(nextButtonProps)\"\n @click=\"onNext\"\n >\n {{\n nextButtonProps?.children ??\n (current === total - 1 ? t('el.tour.finish') : t('el.tour.next'))\n }}\n </el-button>\n </div>\n </footer>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, onBeforeUnmount, onMounted, watch } from 'vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { omit } from 'lodash-unified'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CloseComponents, getEventCode } from '@element-plus/utils'\nimport { useLocale } from '@element-plus/hooks'\nimport { tourStepEmits } from './step'\nimport { tourKey } from './helper'\n\nimport type { TourBtnProps } from './types'\nimport type { TourStepProps } from './step'\n\ndefineOptions({\n name: 'ElTourStep',\n})\n\nconst props = withDefaults(defineProps<TourStepProps>(), {\n showClose: undefined,\n showArrow: undefined,\n placement: 'bottom',\n mask: undefined,\n scrollIntoViewOptions: undefined,\n})\nconst emit = defineEmits(tourStepEmits)\n\nconst { Close } = CloseComponents\n\nconst { t } = useLocale()\n\nconst {\n currentStep,\n current,\n total,\n showClose,\n closeIcon,\n mergedType,\n ns,\n slots: tourSlots,\n updateModelValue,\n onClose: tourOnClose,\n onFinish: tourOnFinish,\n} = inject(tourKey)!\n\nwatch(\n props,\n (val) => {\n currentStep.value = val\n },\n {\n immediate: true,\n }\n)\n\nconst mergedShowClose = computed(() => props.showClose ?? showClose.value)\nconst mergedCloseIcon = computed(\n () => props.closeIcon ?? closeIcon.value ?? Close\n)\n\nconst filterButtonProps = (btnProps?: TourBtnProps) => {\n if (!btnProps) return\n return omit(btnProps, ['children', 'onClick'])\n}\n\nconst onPrev = () => {\n current.value -= 1\n if (props.prevButtonProps?.onClick) {\n props.prevButtonProps?.onClick()\n }\n}\n\nconst onNext = () => {\n if (current.value >= total.value - 1) {\n onFinish()\n } else {\n current.value += 1\n }\n if (props.nextButtonProps?.onClick) {\n props.nextButtonProps.onClick()\n }\n}\n\nconst onFinish = () => {\n onClose()\n tourOnFinish()\n}\n\nconst onClose = () => {\n updateModelValue(false)\n tourOnClose()\n emit('close')\n}\n\nconst handleKeydown = (e: KeyboardEvent) => {\n const target = e.target as HTMLElement | null\n if (target?.isContentEditable) return\n const code = getEventCode(e)\n\n switch (code) {\n case EVENT_CODE.left:\n e.preventDefault()\n current.value > 0 && onPrev()\n break\n case EVENT_CODE.right:\n e.preventDefault()\n onNext()\n break\n }\n}\n\nonMounted(() => {\n window.addEventListener('keydown', handleKeydown)\n})\n\nonBeforeUnmount(() => {\n window.removeEventListener('keydown', handleKeydown)\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAoFA,MAAM,QAAQ;EAOd,MAAM,OAAO;EAEb,MAAM,EAAE,UAAU;EAElB,MAAM,EAAE,MAAM,WAAU;EAExB,MAAM,EACJ,aACA,SACA,OACA,WACA,WACA,YACA,IACA,OAAO,WACP,kBACA,SAAS,aACT,UAAU,iBACR,OAAO,QAAQ;EAEnB,MACE,QACC,QAAQ;GACP,YAAY,QAAQ;KAEtB,EACE,WAAW,MACb,CACF;EAEA,MAAM,kBAAkB,eAAe,MAAM,aAAa,UAAU,MAAK;EACzE,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