@element-plus/nightly 0.0.20250317 → 0.0.20250319

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 (920) hide show
  1. package/dist/index.full.js +29 -43
  2. package/dist/index.full.min.js +10 -10
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +10 -10
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +29 -43
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lt.js +1 -1
  140. package/dist/locale/lt.min.js +1 -1
  141. package/dist/locale/lt.min.mjs +1 -1
  142. package/dist/locale/lt.mjs +1 -1
  143. package/dist/locale/lv.js +1 -1
  144. package/dist/locale/lv.min.js +1 -1
  145. package/dist/locale/lv.min.mjs +1 -1
  146. package/dist/locale/lv.mjs +1 -1
  147. package/dist/locale/mg.js +1 -1
  148. package/dist/locale/mg.min.js +1 -1
  149. package/dist/locale/mg.min.mjs +1 -1
  150. package/dist/locale/mg.mjs +1 -1
  151. package/dist/locale/mn.js +1 -1
  152. package/dist/locale/mn.min.js +1 -1
  153. package/dist/locale/mn.min.mjs +1 -1
  154. package/dist/locale/mn.mjs +1 -1
  155. package/dist/locale/ms.js +2 -2
  156. package/dist/locale/ms.min.js +1 -1
  157. package/dist/locale/ms.min.js.map +1 -1
  158. package/dist/locale/ms.min.mjs +1 -1
  159. package/dist/locale/ms.min.mjs.map +1 -1
  160. package/dist/locale/ms.mjs +2 -2
  161. package/dist/locale/my.js +1 -1
  162. package/dist/locale/my.min.js +1 -1
  163. package/dist/locale/my.min.mjs +1 -1
  164. package/dist/locale/my.mjs +1 -1
  165. package/dist/locale/nb-no.js +1 -1
  166. package/dist/locale/nb-no.min.js +1 -1
  167. package/dist/locale/nb-no.min.mjs +1 -1
  168. package/dist/locale/nb-no.mjs +1 -1
  169. package/dist/locale/nl.js +1 -1
  170. package/dist/locale/nl.min.js +1 -1
  171. package/dist/locale/nl.min.mjs +1 -1
  172. package/dist/locale/nl.mjs +1 -1
  173. package/dist/locale/no.js +1 -1
  174. package/dist/locale/no.min.js +1 -1
  175. package/dist/locale/no.min.mjs +1 -1
  176. package/dist/locale/no.mjs +1 -1
  177. package/dist/locale/pa.js +1 -1
  178. package/dist/locale/pa.min.js +1 -1
  179. package/dist/locale/pa.min.mjs +1 -1
  180. package/dist/locale/pa.mjs +1 -1
  181. package/dist/locale/pl.js +1 -1
  182. package/dist/locale/pl.min.js +1 -1
  183. package/dist/locale/pl.min.mjs +1 -1
  184. package/dist/locale/pl.mjs +1 -1
  185. package/dist/locale/pt-br.js +1 -1
  186. package/dist/locale/pt-br.min.js +1 -1
  187. package/dist/locale/pt-br.min.mjs +1 -1
  188. package/dist/locale/pt-br.mjs +1 -1
  189. package/dist/locale/pt.js +1 -1
  190. package/dist/locale/pt.min.js +1 -1
  191. package/dist/locale/pt.min.mjs +1 -1
  192. package/dist/locale/pt.mjs +1 -1
  193. package/dist/locale/ro.js +1 -1
  194. package/dist/locale/ro.min.js +1 -1
  195. package/dist/locale/ro.min.mjs +1 -1
  196. package/dist/locale/ro.mjs +1 -1
  197. package/dist/locale/ru.js +1 -1
  198. package/dist/locale/ru.min.js +1 -1
  199. package/dist/locale/ru.min.mjs +1 -1
  200. package/dist/locale/ru.mjs +1 -1
  201. package/dist/locale/sk.js +1 -1
  202. package/dist/locale/sk.min.js +1 -1
  203. package/dist/locale/sk.min.mjs +1 -1
  204. package/dist/locale/sk.mjs +1 -1
  205. package/dist/locale/sl.js +1 -1
  206. package/dist/locale/sl.min.js +1 -1
  207. package/dist/locale/sl.min.mjs +1 -1
  208. package/dist/locale/sl.mjs +1 -1
  209. package/dist/locale/sr.js +1 -1
  210. package/dist/locale/sr.min.js +1 -1
  211. package/dist/locale/sr.min.mjs +1 -1
  212. package/dist/locale/sr.mjs +1 -1
  213. package/dist/locale/sv.js +1 -1
  214. package/dist/locale/sv.min.js +1 -1
  215. package/dist/locale/sv.min.mjs +1 -1
  216. package/dist/locale/sv.mjs +1 -1
  217. package/dist/locale/sw.js +1 -1
  218. package/dist/locale/sw.min.js +1 -1
  219. package/dist/locale/sw.min.mjs +1 -1
  220. package/dist/locale/sw.mjs +1 -1
  221. package/dist/locale/ta.js +1 -1
  222. package/dist/locale/ta.min.js +1 -1
  223. package/dist/locale/ta.min.mjs +1 -1
  224. package/dist/locale/ta.mjs +1 -1
  225. package/dist/locale/te.js +1 -1
  226. package/dist/locale/te.min.js +1 -1
  227. package/dist/locale/te.min.mjs +1 -1
  228. package/dist/locale/te.mjs +1 -1
  229. package/dist/locale/th.js +1 -1
  230. package/dist/locale/th.min.js +1 -1
  231. package/dist/locale/th.min.mjs +1 -1
  232. package/dist/locale/th.mjs +1 -1
  233. package/dist/locale/tk.js +1 -1
  234. package/dist/locale/tk.min.js +1 -1
  235. package/dist/locale/tk.min.mjs +1 -1
  236. package/dist/locale/tk.mjs +1 -1
  237. package/dist/locale/tr.js +1 -1
  238. package/dist/locale/tr.min.js +1 -1
  239. package/dist/locale/tr.min.mjs +1 -1
  240. package/dist/locale/tr.mjs +1 -1
  241. package/dist/locale/ug-cn.js +1 -1
  242. package/dist/locale/ug-cn.min.js +1 -1
  243. package/dist/locale/ug-cn.min.mjs +1 -1
  244. package/dist/locale/ug-cn.mjs +1 -1
  245. package/dist/locale/uk.js +1 -1
  246. package/dist/locale/uk.min.js +1 -1
  247. package/dist/locale/uk.min.mjs +1 -1
  248. package/dist/locale/uk.mjs +1 -1
  249. package/dist/locale/uz-uz.js +1 -1
  250. package/dist/locale/uz-uz.min.js +1 -1
  251. package/dist/locale/uz-uz.min.mjs +1 -1
  252. package/dist/locale/uz-uz.mjs +1 -1
  253. package/dist/locale/vi.js +1 -1
  254. package/dist/locale/vi.min.js +1 -1
  255. package/dist/locale/vi.min.mjs +1 -1
  256. package/dist/locale/vi.mjs +1 -1
  257. package/dist/locale/zh-cn.js +1 -1
  258. package/dist/locale/zh-cn.min.js +1 -1
  259. package/dist/locale/zh-cn.min.mjs +1 -1
  260. package/dist/locale/zh-cn.mjs +1 -1
  261. package/dist/locale/zh-hk.js +1 -1
  262. package/dist/locale/zh-hk.min.js +1 -1
  263. package/dist/locale/zh-hk.min.mjs +1 -1
  264. package/dist/locale/zh-hk.mjs +1 -1
  265. package/dist/locale/zh-mo.js +1 -1
  266. package/dist/locale/zh-mo.min.js +1 -1
  267. package/dist/locale/zh-mo.min.mjs +1 -1
  268. package/dist/locale/zh-mo.mjs +1 -1
  269. package/dist/locale/zh-tw.js +1 -1
  270. package/dist/locale/zh-tw.min.js +1 -1
  271. package/dist/locale/zh-tw.min.mjs +1 -1
  272. package/dist/locale/zh-tw.mjs +1 -1
  273. package/es/components/affix/index.mjs +2 -2
  274. package/es/components/affix/src/affix.d.ts +1 -1
  275. package/es/components/affix/src/affix.mjs +119 -24
  276. package/es/components/affix/src/affix.mjs.map +1 -1
  277. package/es/components/affix/src/affix2.mjs +24 -119
  278. package/es/components/affix/src/affix2.mjs.map +1 -1
  279. package/es/components/alert/src/instance.d.ts +1 -1
  280. package/es/components/anchor/index.mjs +2 -2
  281. package/es/components/anchor/src/anchor.d.ts +1 -1
  282. package/es/components/anchor/src/anchor.mjs +42 -193
  283. package/es/components/anchor/src/anchor.mjs.map +1 -1
  284. package/es/components/anchor/src/anchor2.mjs +193 -42
  285. package/es/components/anchor/src/anchor2.mjs.map +1 -1
  286. package/es/components/autocomplete/src/autocomplete.d.ts +1 -1
  287. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  288. package/es/components/autocomplete/src/autocomplete.vue.d.ts +25 -13
  289. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  290. package/es/components/avatar/src/instance.d.ts +1 -1
  291. package/es/components/backtop/index.mjs +2 -2
  292. package/es/components/backtop/src/backtop.mjs +53 -21
  293. package/es/components/backtop/src/backtop.mjs.map +1 -1
  294. package/es/components/backtop/src/backtop2.mjs +21 -53
  295. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  296. package/es/components/backtop/src/instance.d.ts +1 -1
  297. package/es/components/badge/src/instance.d.ts +1 -1
  298. package/es/components/breadcrumb/src/instances.d.ts +2 -2
  299. package/es/components/button/src/button.vue.d.ts +2 -2
  300. package/es/components/button/src/instance.d.ts +2 -2
  301. package/es/components/calendar/src/instance.d.ts +2 -2
  302. package/es/components/card/src/instance.d.ts +1 -1
  303. package/es/components/carousel/src/instance.d.ts +2 -2
  304. package/es/components/cascader/src/cascader.d.ts +1 -1
  305. package/es/components/cascader/src/cascader.vue.d.ts +6 -393
  306. package/es/components/cascader/src/instances.d.ts +1 -1
  307. package/es/components/cascader-panel/src/instance.d.ts +1 -1
  308. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  309. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  310. package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
  311. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  312. package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  313. package/es/components/checkbox/src/checkbox.d.ts +1 -1
  314. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  315. package/es/components/col/src/col.d.ts +1 -1
  316. package/es/components/col/src/col.mjs.map +1 -1
  317. package/es/components/collapse/src/collapse-item.vue.d.ts +3 -3
  318. package/es/components/collapse/src/instance.d.ts +2 -2
  319. package/es/components/color-picker/src/color-picker.d.ts +1 -1
  320. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  321. package/es/components/config-provider/src/config-provider.d.ts +3 -3
  322. package/es/components/config-provider/src/config-provider.mjs.map +1 -1
  323. package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  324. package/es/components/container/index.d.ts +5 -5
  325. package/es/components/container/index.mjs.map +1 -1
  326. package/es/components/countdown/src/countdown.d.ts +1 -1
  327. package/es/components/countdown/src/countdown.mjs.map +1 -1
  328. package/es/components/date-picker/src/date-picker.d.ts +9 -9
  329. package/es/components/date-picker/src/panel-utils.d.ts +34 -34
  330. package/es/components/date-picker/src/props/date-picker.d.ts +3 -3
  331. package/es/components/descriptions/src/description.d.ts +1 -1
  332. package/es/components/descriptions/src/description.mjs.map +1 -1
  333. package/es/components/descriptions/src/description2.mjs +1 -1
  334. package/es/components/descriptions/src/descriptions-row.mjs +63 -6
  335. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  336. package/es/components/descriptions/src/descriptions-row.vue.d.ts +3 -3
  337. package/es/components/descriptions/src/descriptions-row2.mjs +6 -63
  338. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  339. package/es/components/dialog/src/dialog.d.ts +1 -1
  340. package/es/components/dialog/src/dialog.mjs.map +1 -1
  341. package/es/components/dialog/src/dialog.vue.d.ts +32 -32
  342. package/es/components/divider/src/divider.d.ts +1 -1
  343. package/es/components/divider/src/divider.mjs.map +1 -1
  344. package/es/components/dropdown/src/dropdown.vue.d.ts +11 -1094
  345. package/es/components/dropdown/src/instance.d.ts +1 -1
  346. package/es/components/dropdown/src/tokens.d.ts +1 -1
  347. package/es/components/dropdown/src/tokens.mjs.map +1 -1
  348. package/es/components/empty/src/img-empty.mjs +4 -27
  349. package/es/components/empty/src/img-empty.mjs.map +1 -1
  350. package/es/components/empty/src/instance.d.ts +1 -1
  351. package/es/components/form/index.d.ts +2 -2
  352. package/es/components/form/index.mjs.map +1 -1
  353. package/es/components/icon/src/icon.d.ts +1 -1
  354. package/es/components/icon/src/icon.mjs.map +1 -1
  355. package/es/components/image/src/image.d.ts +1 -1
  356. package/es/components/image/src/image.mjs.map +1 -1
  357. package/es/components/image/src/image.vue.d.ts +1 -0
  358. package/es/components/image-viewer/src/image-viewer.d.ts +1 -1
  359. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  360. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -0
  361. package/es/components/image-viewer/src/image-viewer2.mjs +2 -1
  362. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  363. package/es/components/index.mjs +11 -11
  364. package/es/components/input/src/instance.d.ts +1 -1
  365. package/es/components/input-number/src/input-number.d.ts +1 -1
  366. package/es/components/input-number/src/input-number.mjs.map +1 -1
  367. package/es/components/input-tag/src/instance.d.ts +1 -1
  368. package/es/components/link/src/link.d.ts +1 -1
  369. package/es/components/link/src/link.mjs.map +1 -1
  370. package/es/components/mention/src/mention.d.ts +1 -1
  371. package/es/components/mention/src/mention.mjs.map +1 -1
  372. package/es/components/mention/src/mention.vue.d.ts +4 -4
  373. package/es/components/mention/src/mention2.mjs.map +1 -1
  374. package/es/components/menu/src/instance.d.ts +3 -3
  375. package/es/components/message/index.mjs +1 -1
  376. package/es/components/message/src/message.d.ts +1 -1
  377. package/es/components/message/src/message.mjs +145 -91
  378. package/es/components/message/src/message.mjs.map +1 -1
  379. package/es/components/message/src/message.vue.d.ts +1 -1
  380. package/es/components/message/src/message2.mjs +91 -145
  381. package/es/components/message/src/message2.mjs.map +1 -1
  382. package/es/components/message/src/method.mjs +2 -2
  383. package/es/components/notification/src/notification.d.ts +1 -1
  384. package/es/components/notification/src/notification.mjs.map +1 -1
  385. package/es/components/page-header/src/page-header.d.ts +1 -1
  386. package/es/components/page-header/src/page-header.mjs.map +1 -1
  387. package/es/components/pagination/src/components/jumper.d.ts +1 -1
  388. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  389. package/es/components/pagination/src/components/next.d.ts +1 -1
  390. package/es/components/pagination/src/components/next.mjs.map +1 -1
  391. package/es/components/pagination/src/components/pager.d.ts +1 -1
  392. package/es/components/pagination/src/components/pager.mjs +16 -210
  393. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  394. package/es/components/pagination/src/components/pager2.mjs +210 -16
  395. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  396. package/es/components/pagination/src/components/prev.d.ts +1 -1
  397. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  398. package/es/components/pagination/src/components/sizes.d.ts +1 -1
  399. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  400. package/es/components/pagination/src/components/total.d.ts +1 -1
  401. package/es/components/pagination/src/components/total.mjs.map +1 -1
  402. package/es/components/pagination/src/pagination.mjs +1 -1
  403. package/es/components/popconfirm/index.mjs +2 -2
  404. package/es/components/popconfirm/src/popconfirm.d.ts +1 -1
  405. package/es/components/popconfirm/src/popconfirm.mjs +45 -114
  406. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  407. package/es/components/popconfirm/src/popconfirm2.mjs +114 -45
  408. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  409. package/es/components/popover/src/popover.d.ts +4 -4
  410. package/es/components/popover/src/popover.mjs.map +1 -1
  411. package/es/components/popover/src/popover.vue.d.ts +10 -71
  412. package/es/components/popper/src/arrow.d.ts +1 -1
  413. package/es/components/popper/src/arrow.mjs.map +1 -1
  414. package/es/components/popper/src/content.d.ts +1 -1
  415. package/es/components/popper/src/content.mjs.map +1 -1
  416. package/es/components/popper/src/content.vue.d.ts +12 -12
  417. package/es/components/popper/src/popper.d.ts +1 -1
  418. package/es/components/popper/src/popper.mjs.map +1 -1
  419. package/es/components/popper/src/trigger.d.ts +1 -1
  420. package/es/components/popper/src/trigger.mjs.map +1 -1
  421. package/es/components/progress/src/progress.d.ts +1 -1
  422. package/es/components/progress/src/progress.mjs.map +1 -1
  423. package/es/components/radio/src/radio-button.d.ts +1 -1
  424. package/es/components/radio/src/radio-button.mjs.map +1 -1
  425. package/es/components/radio/src/radio-group.d.ts +1 -1
  426. package/es/components/radio/src/radio-group.mjs.map +1 -1
  427. package/es/components/radio/src/radio.d.ts +1 -1
  428. package/es/components/radio/src/radio.mjs.map +1 -1
  429. package/es/components/rate/index.mjs +2 -2
  430. package/es/components/rate/src/rate.d.ts +1 -1
  431. package/es/components/rate/src/rate.mjs +258 -83
  432. package/es/components/rate/src/rate.mjs.map +1 -1
  433. package/es/components/rate/src/rate2.mjs +83 -258
  434. package/es/components/rate/src/rate2.mjs.map +1 -1
  435. package/es/components/result/src/result.d.ts +1 -1
  436. package/es/components/result/src/result.mjs.map +1 -1
  437. package/es/components/row/src/row.d.ts +1 -1
  438. package/es/components/row/src/row.mjs.map +1 -1
  439. package/es/components/scrollbar/src/bar.d.ts +1 -1
  440. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  441. package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
  442. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  443. package/es/components/scrollbar/src/thumb.d.ts +1 -1
  444. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  445. package/es/components/segmented/src/segmented.d.ts +1 -1
  446. package/es/components/segmented/src/segmented.mjs.map +1 -1
  447. package/es/components/select/index.mjs +1 -1
  448. package/es/components/select/src/select.mjs +113 -429
  449. package/es/components/select/src/select.mjs.map +1 -1
  450. package/es/components/select/src/select.vue.d.ts +121 -71
  451. package/es/components/select/src/select2.mjs +429 -113
  452. package/es/components/select/src/select2.mjs.map +1 -1
  453. package/es/components/select/src/useSelect.d.ts +110 -63
  454. package/es/components/select/src/useSelect.mjs.map +1 -1
  455. package/es/components/select-v2/src/select.vue.d.ts +64 -25
  456. package/es/components/select-v2/src/useSelect.d.ts +86 -50
  457. package/es/components/select-v2/src/useSelect.mjs +7 -1
  458. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  459. package/es/components/skeleton/index.mjs +2 -2
  460. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  461. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  462. package/es/components/skeleton/src/skeleton.d.ts +1 -1
  463. package/es/components/skeleton/src/skeleton.mjs +21 -48
  464. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  465. package/es/components/skeleton/src/skeleton2.mjs +48 -21
  466. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  467. package/es/components/slider/src/button.mjs +91 -19
  468. package/es/components/slider/src/button.mjs.map +1 -1
  469. package/es/components/slider/src/button.vue.d.ts +3 -3
  470. package/es/components/slider/src/button2.mjs +19 -91
  471. package/es/components/slider/src/button2.mjs.map +1 -1
  472. package/es/components/slider/src/composables/use-slider-button.d.ts +5 -9
  473. package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
  474. package/es/components/slider/src/slider.d.ts +1 -1
  475. package/es/components/slider/src/slider.mjs.map +1 -1
  476. package/es/components/slider/src/slider.vue.d.ts +3 -3
  477. package/es/components/slider/src/slider2.mjs +1 -1
  478. package/es/components/space/src/item.d.ts +1 -1
  479. package/es/components/space/src/item.mjs.map +1 -1
  480. package/es/components/space/src/space.d.ts +1 -1
  481. package/es/components/space/src/space.mjs.map +1 -1
  482. package/es/components/statistic/src/statistic.d.ts +1 -1
  483. package/es/components/statistic/src/statistic.mjs.map +1 -1
  484. package/es/components/steps/index.mjs +2 -2
  485. package/es/components/steps/src/item.d.ts +1 -1
  486. package/es/components/steps/src/item.mjs +190 -19
  487. package/es/components/steps/src/item.mjs.map +1 -1
  488. package/es/components/steps/src/item2.mjs +19 -190
  489. package/es/components/steps/src/item2.mjs.map +1 -1
  490. package/es/components/steps/src/steps.d.ts +1 -1
  491. package/es/components/steps/src/steps.mjs.map +1 -1
  492. package/es/components/switch/src/switch.d.ts +1 -1
  493. package/es/components/switch/src/switch.mjs.map +1 -1
  494. package/es/components/table/index.d.ts +2 -2
  495. package/es/components/table/index.mjs.map +1 -1
  496. package/es/components/table/src/filter-panel.mjs.map +1 -1
  497. package/es/components/table/src/filter-panel.vue.d.ts +2 -1085
  498. package/es/components/table/src/table-body/index.d.ts +1 -1
  499. package/es/components/table/src/table-column/index.d.ts +1 -1
  500. package/es/components/table/src/table-column/index.mjs +1 -1
  501. package/es/components/table/src/table-column/index.mjs.map +1 -1
  502. package/es/components/table-v2/src/table-v2.d.ts +12 -12
  503. package/es/components/table-v2/src/use-table.d.ts +4 -4
  504. package/es/components/tabs/src/tab-bar.d.ts +1 -1
  505. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  506. package/es/components/tabs/src/tab-pane.d.ts +1 -1
  507. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  508. package/es/components/tag/src/tag.d.ts +1 -1
  509. package/es/components/tag/src/tag.mjs.map +1 -1
  510. package/es/components/teleport/src/teleport.d.ts +1 -1
  511. package/es/components/teleport/src/teleport.mjs.map +1 -1
  512. package/es/components/time-picker/src/props/basic-time-spinner.d.ts +3 -3
  513. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +15 -13
  514. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map +1 -1
  515. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  516. package/es/components/time-picker/src/time-picker.d.ts +9 -9
  517. package/es/components/time-select/src/time-select.d.ts +1 -1
  518. package/es/components/time-select/src/time-select.mjs.map +1 -1
  519. package/es/components/time-select/src/time-select.vue.d.ts +3 -3
  520. package/es/components/timeline/src/timeline-item.d.ts +1 -1
  521. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  522. package/es/components/timeline/src/timeline.d.ts +1 -1
  523. package/es/components/timeline/src/timeline.mjs.map +1 -1
  524. package/es/components/tooltip/src/content.d.ts +1 -1
  525. package/es/components/tooltip/src/content.mjs.map +1 -1
  526. package/es/components/tooltip/src/content.vue.d.ts +2 -847
  527. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  528. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  529. package/es/components/tooltip/src/tooltip.vue.d.ts +27 -7
  530. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  531. package/es/components/tooltip-v2/index.mjs +1 -1
  532. package/es/components/tooltip-v2/src/content.vue.d.ts +3 -3
  533. package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
  534. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  535. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
  536. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  537. package/es/components/tooltip-v2/src/trigger.mjs +89 -12
  538. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  539. package/es/components/tooltip-v2/src/trigger2.mjs +12 -89
  540. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  541. package/es/components/tour/index.mjs +1 -1
  542. package/es/components/tour/src/content.mjs +43 -67
  543. package/es/components/tour/src/content.mjs.map +1 -1
  544. package/es/components/tour/src/content2.mjs +67 -43
  545. package/es/components/tour/src/content2.mjs.map +1 -1
  546. package/es/components/tour/src/step.mjs +1 -1
  547. package/es/components/tour/src/tour.d.ts +1 -1
  548. package/es/components/tour/src/tour.mjs +1 -1
  549. package/es/components/tour/src/tour.mjs.map +1 -1
  550. package/es/components/tour/src/tour.vue.d.ts +8 -8
  551. package/es/components/tour/src/tour2.mjs +1 -1
  552. package/es/components/transfer/src/transfer-panel.d.ts +1 -1
  553. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  554. package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -18
  555. package/es/components/transfer/src/transfer.d.ts +1 -1
  556. package/es/components/transfer/src/transfer.mjs.map +1 -1
  557. package/es/components/transfer/src/transfer.vue.d.ts +5 -3
  558. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  559. package/es/components/tree/src/instance.d.ts +1 -1
  560. package/es/components/tree-v2/src/tree.vue.d.ts +17 -17
  561. package/es/components/upload/index.mjs +1 -1
  562. package/es/components/upload/src/upload-content.d.ts +1 -1
  563. package/es/components/upload/src/upload-content.mjs +33 -196
  564. package/es/components/upload/src/upload-content.mjs.map +1 -1
  565. package/es/components/upload/src/upload-content2.mjs +196 -33
  566. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  567. package/es/components/upload/src/upload-dragger.d.ts +1 -1
  568. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  569. package/es/components/upload/src/upload-list.d.ts +1 -1
  570. package/es/components/upload/src/upload-list.mjs.map +1 -1
  571. package/es/components/upload/src/upload.d.ts +1 -1
  572. package/es/components/upload/src/upload.mjs.map +1 -1
  573. package/es/components/upload/src/upload2.mjs +1 -1
  574. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  575. package/es/components/virtual-list/src/components/dynamic-size-list.mjs.map +1 -1
  576. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +13 -13
  577. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  578. package/es/components/virtual-list/src/components/fixed-size-list.mjs.map +1 -1
  579. package/es/components/watermark/index.mjs +2 -2
  580. package/es/components/watermark/src/watermark.d.ts +1 -1
  581. package/es/components/watermark/src/watermark.mjs +210 -27
  582. package/es/components/watermark/src/watermark.mjs.map +1 -1
  583. package/es/components/watermark/src/watermark2.mjs +27 -210
  584. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  585. package/es/defaults.d.ts +1 -1
  586. package/es/directives/click-outside/index.mjs +1 -1
  587. package/es/hooks/use-focus-controller/index.mjs +1 -1
  588. package/es/hooks/use-lockscreen/index.mjs +1 -1
  589. package/es/index.d.ts +1 -1
  590. package/es/index.mjs +11 -11
  591. package/es/locale/lang/ms.mjs +1 -1
  592. package/es/locale/lang/ms.mjs.map +1 -1
  593. package/es/version.d.ts +1 -1
  594. package/es/version.mjs +1 -1
  595. package/es/version.mjs.map +1 -1
  596. package/lib/components/affix/index.js +2 -2
  597. package/lib/components/affix/src/affix.d.ts +1 -1
  598. package/lib/components/affix/src/affix.js +119 -25
  599. package/lib/components/affix/src/affix.js.map +1 -1
  600. package/lib/components/affix/src/affix2.js +25 -119
  601. package/lib/components/affix/src/affix2.js.map +1 -1
  602. package/lib/components/alert/src/instance.d.ts +1 -1
  603. package/lib/components/anchor/index.js +2 -2
  604. package/lib/components/anchor/src/anchor.d.ts +1 -1
  605. package/lib/components/anchor/src/anchor.js +42 -192
  606. package/lib/components/anchor/src/anchor.js.map +1 -1
  607. package/lib/components/anchor/src/anchor2.js +192 -42
  608. package/lib/components/anchor/src/anchor2.js.map +1 -1
  609. package/lib/components/autocomplete/src/autocomplete.d.ts +1 -1
  610. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  611. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +25 -13
  612. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  613. package/lib/components/avatar/src/instance.d.ts +1 -1
  614. package/lib/components/backtop/index.js +2 -2
  615. package/lib/components/backtop/src/backtop.js +53 -22
  616. package/lib/components/backtop/src/backtop.js.map +1 -1
  617. package/lib/components/backtop/src/backtop2.js +22 -53
  618. package/lib/components/backtop/src/backtop2.js.map +1 -1
  619. package/lib/components/backtop/src/instance.d.ts +1 -1
  620. package/lib/components/badge/src/instance.d.ts +1 -1
  621. package/lib/components/breadcrumb/src/instances.d.ts +2 -2
  622. package/lib/components/button/src/button.vue.d.ts +2 -2
  623. package/lib/components/button/src/instance.d.ts +2 -2
  624. package/lib/components/calendar/src/instance.d.ts +2 -2
  625. package/lib/components/card/src/instance.d.ts +1 -1
  626. package/lib/components/carousel/src/instance.d.ts +2 -2
  627. package/lib/components/cascader/src/cascader.d.ts +1 -1
  628. package/lib/components/cascader/src/cascader.vue.d.ts +6 -393
  629. package/lib/components/cascader/src/instances.d.ts +1 -1
  630. package/lib/components/cascader-panel/src/instance.d.ts +1 -1
  631. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  632. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  633. package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
  634. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  635. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  636. package/lib/components/checkbox/src/checkbox.d.ts +1 -1
  637. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  638. package/lib/components/col/src/col.d.ts +1 -1
  639. package/lib/components/col/src/col.js.map +1 -1
  640. package/lib/components/collapse/src/collapse-item.vue.d.ts +3 -3
  641. package/lib/components/collapse/src/instance.d.ts +2 -2
  642. package/lib/components/color-picker/src/color-picker.d.ts +1 -1
  643. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  644. package/lib/components/config-provider/src/config-provider.d.ts +3 -3
  645. package/lib/components/config-provider/src/config-provider.js.map +1 -1
  646. package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  647. package/lib/components/container/index.d.ts +5 -5
  648. package/lib/components/container/index.js.map +1 -1
  649. package/lib/components/countdown/src/countdown.d.ts +1 -1
  650. package/lib/components/countdown/src/countdown.js.map +1 -1
  651. package/lib/components/date-picker/src/date-picker.d.ts +9 -9
  652. package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
  653. package/lib/components/date-picker/src/props/date-picker.d.ts +3 -3
  654. package/lib/components/descriptions/src/description.d.ts +1 -1
  655. package/lib/components/descriptions/src/description.js.map +1 -1
  656. package/lib/components/descriptions/src/description2.js +1 -1
  657. package/lib/components/descriptions/src/descriptions-row.js +63 -6
  658. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  659. package/lib/components/descriptions/src/descriptions-row.vue.d.ts +3 -3
  660. package/lib/components/descriptions/src/descriptions-row2.js +6 -63
  661. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  662. package/lib/components/dialog/src/dialog.d.ts +1 -1
  663. package/lib/components/dialog/src/dialog.js.map +1 -1
  664. package/lib/components/dialog/src/dialog.vue.d.ts +32 -32
  665. package/lib/components/divider/src/divider.d.ts +1 -1
  666. package/lib/components/divider/src/divider.js.map +1 -1
  667. package/lib/components/dropdown/src/dropdown.vue.d.ts +11 -1094
  668. package/lib/components/dropdown/src/instance.d.ts +1 -1
  669. package/lib/components/dropdown/src/tokens.d.ts +1 -1
  670. package/lib/components/dropdown/src/tokens.js.map +1 -1
  671. package/lib/components/empty/src/img-empty.js +4 -27
  672. package/lib/components/empty/src/img-empty.js.map +1 -1
  673. package/lib/components/empty/src/instance.d.ts +1 -1
  674. package/lib/components/form/index.d.ts +2 -2
  675. package/lib/components/form/index.js.map +1 -1
  676. package/lib/components/icon/src/icon.d.ts +1 -1
  677. package/lib/components/icon/src/icon.js.map +1 -1
  678. package/lib/components/image/src/image.d.ts +1 -1
  679. package/lib/components/image/src/image.js.map +1 -1
  680. package/lib/components/image/src/image.vue.d.ts +1 -0
  681. package/lib/components/image-viewer/src/image-viewer.d.ts +1 -1
  682. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  683. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -0
  684. package/lib/components/image-viewer/src/image-viewer2.js +2 -1
  685. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  686. package/lib/components/index.js +11 -11
  687. package/lib/components/input/src/instance.d.ts +1 -1
  688. package/lib/components/input-number/src/input-number.d.ts +1 -1
  689. package/lib/components/input-number/src/input-number.js.map +1 -1
  690. package/lib/components/input-tag/src/instance.d.ts +1 -1
  691. package/lib/components/link/src/link.d.ts +1 -1
  692. package/lib/components/link/src/link.js.map +1 -1
  693. package/lib/components/mention/src/mention.d.ts +1 -1
  694. package/lib/components/mention/src/mention.js.map +1 -1
  695. package/lib/components/mention/src/mention.vue.d.ts +4 -4
  696. package/lib/components/mention/src/mention2.js.map +1 -1
  697. package/lib/components/menu/src/instance.d.ts +3 -3
  698. package/lib/components/message/index.js +1 -1
  699. package/lib/components/message/src/message.d.ts +1 -1
  700. package/lib/components/message/src/message.js +144 -93
  701. package/lib/components/message/src/message.js.map +1 -1
  702. package/lib/components/message/src/message.vue.d.ts +1 -1
  703. package/lib/components/message/src/message2.js +93 -144
  704. package/lib/components/message/src/message2.js.map +1 -1
  705. package/lib/components/message/src/method.js +2 -2
  706. package/lib/components/notification/src/notification.d.ts +1 -1
  707. package/lib/components/notification/src/notification.js.map +1 -1
  708. package/lib/components/page-header/src/page-header.d.ts +1 -1
  709. package/lib/components/page-header/src/page-header.js.map +1 -1
  710. package/lib/components/pagination/src/components/jumper.d.ts +1 -1
  711. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  712. package/lib/components/pagination/src/components/next.d.ts +1 -1
  713. package/lib/components/pagination/src/components/next.js.map +1 -1
  714. package/lib/components/pagination/src/components/pager.d.ts +1 -1
  715. package/lib/components/pagination/src/components/pager.js +16 -210
  716. package/lib/components/pagination/src/components/pager.js.map +1 -1
  717. package/lib/components/pagination/src/components/pager2.js +210 -16
  718. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  719. package/lib/components/pagination/src/components/prev.d.ts +1 -1
  720. package/lib/components/pagination/src/components/prev.js.map +1 -1
  721. package/lib/components/pagination/src/components/sizes.d.ts +1 -1
  722. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  723. package/lib/components/pagination/src/components/total.d.ts +1 -1
  724. package/lib/components/pagination/src/components/total.js.map +1 -1
  725. package/lib/components/pagination/src/pagination.js +1 -1
  726. package/lib/components/popconfirm/index.js +2 -2
  727. package/lib/components/popconfirm/src/popconfirm.d.ts +1 -1
  728. package/lib/components/popconfirm/src/popconfirm.js +46 -114
  729. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  730. package/lib/components/popconfirm/src/popconfirm2.js +114 -46
  731. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  732. package/lib/components/popover/src/popover.d.ts +4 -4
  733. package/lib/components/popover/src/popover.js.map +1 -1
  734. package/lib/components/popover/src/popover.vue.d.ts +10 -71
  735. package/lib/components/popper/src/arrow.d.ts +1 -1
  736. package/lib/components/popper/src/arrow.js.map +1 -1
  737. package/lib/components/popper/src/content.d.ts +1 -1
  738. package/lib/components/popper/src/content.js.map +1 -1
  739. package/lib/components/popper/src/content.vue.d.ts +12 -12
  740. package/lib/components/popper/src/popper.d.ts +1 -1
  741. package/lib/components/popper/src/popper.js.map +1 -1
  742. package/lib/components/popper/src/trigger.d.ts +1 -1
  743. package/lib/components/popper/src/trigger.js.map +1 -1
  744. package/lib/components/progress/src/progress.d.ts +1 -1
  745. package/lib/components/progress/src/progress.js.map +1 -1
  746. package/lib/components/radio/src/radio-button.d.ts +1 -1
  747. package/lib/components/radio/src/radio-button.js.map +1 -1
  748. package/lib/components/radio/src/radio-group.d.ts +1 -1
  749. package/lib/components/radio/src/radio-group.js.map +1 -1
  750. package/lib/components/radio/src/radio.d.ts +1 -1
  751. package/lib/components/radio/src/radio.js.map +1 -1
  752. package/lib/components/rate/index.js +2 -2
  753. package/lib/components/rate/src/rate.d.ts +1 -1
  754. package/lib/components/rate/src/rate.js +257 -83
  755. package/lib/components/rate/src/rate.js.map +1 -1
  756. package/lib/components/rate/src/rate2.js +83 -257
  757. package/lib/components/rate/src/rate2.js.map +1 -1
  758. package/lib/components/result/src/result.d.ts +1 -1
  759. package/lib/components/result/src/result.js.map +1 -1
  760. package/lib/components/row/src/row.d.ts +1 -1
  761. package/lib/components/row/src/row.js.map +1 -1
  762. package/lib/components/scrollbar/src/bar.d.ts +1 -1
  763. package/lib/components/scrollbar/src/bar.js.map +1 -1
  764. package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
  765. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  766. package/lib/components/scrollbar/src/thumb.d.ts +1 -1
  767. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  768. package/lib/components/segmented/src/segmented.d.ts +1 -1
  769. package/lib/components/segmented/src/segmented.js.map +1 -1
  770. package/lib/components/select/index.js +1 -1
  771. package/lib/components/select/src/select.js +113 -429
  772. package/lib/components/select/src/select.js.map +1 -1
  773. package/lib/components/select/src/select.vue.d.ts +121 -71
  774. package/lib/components/select/src/select2.js +429 -113
  775. package/lib/components/select/src/select2.js.map +1 -1
  776. package/lib/components/select/src/useSelect.d.ts +110 -63
  777. package/lib/components/select/src/useSelect.js.map +1 -1
  778. package/lib/components/select-v2/src/select.vue.d.ts +64 -25
  779. package/lib/components/select-v2/src/useSelect.d.ts +86 -50
  780. package/lib/components/select-v2/src/useSelect.js +6 -0
  781. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  782. package/lib/components/skeleton/index.js +2 -2
  783. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  784. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  785. package/lib/components/skeleton/src/skeleton.d.ts +1 -1
  786. package/lib/components/skeleton/src/skeleton.js +21 -48
  787. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  788. package/lib/components/skeleton/src/skeleton2.js +48 -21
  789. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  790. package/lib/components/slider/src/button.js +91 -20
  791. package/lib/components/slider/src/button.js.map +1 -1
  792. package/lib/components/slider/src/button.vue.d.ts +3 -3
  793. package/lib/components/slider/src/button2.js +20 -91
  794. package/lib/components/slider/src/button2.js.map +1 -1
  795. package/lib/components/slider/src/composables/use-slider-button.d.ts +5 -9
  796. package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
  797. package/lib/components/slider/src/slider.d.ts +1 -1
  798. package/lib/components/slider/src/slider.js.map +1 -1
  799. package/lib/components/slider/src/slider.vue.d.ts +3 -3
  800. package/lib/components/slider/src/slider2.js +1 -1
  801. package/lib/components/space/src/item.d.ts +1 -1
  802. package/lib/components/space/src/item.js.map +1 -1
  803. package/lib/components/space/src/space.d.ts +1 -1
  804. package/lib/components/space/src/space.js.map +1 -1
  805. package/lib/components/statistic/src/statistic.d.ts +1 -1
  806. package/lib/components/statistic/src/statistic.js.map +1 -1
  807. package/lib/components/steps/index.js +2 -2
  808. package/lib/components/steps/src/item.d.ts +1 -1
  809. package/lib/components/steps/src/item.js +190 -19
  810. package/lib/components/steps/src/item.js.map +1 -1
  811. package/lib/components/steps/src/item2.js +19 -190
  812. package/lib/components/steps/src/item2.js.map +1 -1
  813. package/lib/components/steps/src/steps.d.ts +1 -1
  814. package/lib/components/steps/src/steps.js.map +1 -1
  815. package/lib/components/switch/src/switch.d.ts +1 -1
  816. package/lib/components/switch/src/switch.js.map +1 -1
  817. package/lib/components/table/index.d.ts +2 -2
  818. package/lib/components/table/index.js.map +1 -1
  819. package/lib/components/table/src/filter-panel.js.map +1 -1
  820. package/lib/components/table/src/filter-panel.vue.d.ts +2 -1085
  821. package/lib/components/table/src/table-body/index.d.ts +1 -1
  822. package/lib/components/table/src/table-column/index.d.ts +1 -1
  823. package/lib/components/table/src/table-column/index.js +1 -1
  824. package/lib/components/table/src/table-column/index.js.map +1 -1
  825. package/lib/components/table-v2/src/table-v2.d.ts +12 -12
  826. package/lib/components/table-v2/src/use-table.d.ts +4 -4
  827. package/lib/components/tabs/src/tab-bar.d.ts +1 -1
  828. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  829. package/lib/components/tabs/src/tab-pane.d.ts +1 -1
  830. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  831. package/lib/components/tag/src/tag.d.ts +1 -1
  832. package/lib/components/tag/src/tag.js.map +1 -1
  833. package/lib/components/teleport/src/teleport.d.ts +1 -1
  834. package/lib/components/teleport/src/teleport.js.map +1 -1
  835. package/lib/components/time-picker/src/props/basic-time-spinner.d.ts +3 -3
  836. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +14 -12
  837. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js.map +1 -1
  838. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  839. package/lib/components/time-picker/src/time-picker.d.ts +9 -9
  840. package/lib/components/time-select/src/time-select.d.ts +1 -1
  841. package/lib/components/time-select/src/time-select.js.map +1 -1
  842. package/lib/components/time-select/src/time-select.vue.d.ts +3 -3
  843. package/lib/components/timeline/src/timeline-item.d.ts +1 -1
  844. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  845. package/lib/components/timeline/src/timeline.d.ts +1 -1
  846. package/lib/components/timeline/src/timeline.js.map +1 -1
  847. package/lib/components/tooltip/src/content.d.ts +1 -1
  848. package/lib/components/tooltip/src/content.js.map +1 -1
  849. package/lib/components/tooltip/src/content.vue.d.ts +2 -847
  850. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  851. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  852. package/lib/components/tooltip/src/tooltip.vue.d.ts +27 -7
  853. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  854. package/lib/components/tooltip-v2/index.js +1 -1
  855. package/lib/components/tooltip-v2/src/content.vue.d.ts +3 -3
  856. package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
  857. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  858. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
  859. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  860. package/lib/components/tooltip-v2/src/trigger.js +89 -12
  861. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  862. package/lib/components/tooltip-v2/src/trigger2.js +12 -89
  863. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  864. package/lib/components/tour/index.js +1 -1
  865. package/lib/components/tour/src/content.js +46 -67
  866. package/lib/components/tour/src/content.js.map +1 -1
  867. package/lib/components/tour/src/content2.js +67 -46
  868. package/lib/components/tour/src/content2.js.map +1 -1
  869. package/lib/components/tour/src/step.js +1 -1
  870. package/lib/components/tour/src/tour.d.ts +1 -1
  871. package/lib/components/tour/src/tour.js +1 -1
  872. package/lib/components/tour/src/tour.js.map +1 -1
  873. package/lib/components/tour/src/tour.vue.d.ts +8 -8
  874. package/lib/components/tour/src/tour2.js +1 -1
  875. package/lib/components/transfer/src/transfer-panel.d.ts +1 -1
  876. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  877. package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -18
  878. package/lib/components/transfer/src/transfer.d.ts +1 -1
  879. package/lib/components/transfer/src/transfer.js.map +1 -1
  880. package/lib/components/transfer/src/transfer.vue.d.ts +5 -3
  881. package/lib/components/transfer/src/transfer2.js.map +1 -1
  882. package/lib/components/tree/src/instance.d.ts +1 -1
  883. package/lib/components/tree-v2/src/tree.vue.d.ts +17 -17
  884. package/lib/components/upload/index.js +1 -1
  885. package/lib/components/upload/src/upload-content.d.ts +1 -1
  886. package/lib/components/upload/src/upload-content.js +31 -194
  887. package/lib/components/upload/src/upload-content.js.map +1 -1
  888. package/lib/components/upload/src/upload-content2.js +194 -31
  889. package/lib/components/upload/src/upload-content2.js.map +1 -1
  890. package/lib/components/upload/src/upload-dragger.d.ts +1 -1
  891. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  892. package/lib/components/upload/src/upload-list.d.ts +1 -1
  893. package/lib/components/upload/src/upload-list.js.map +1 -1
  894. package/lib/components/upload/src/upload.d.ts +1 -1
  895. package/lib/components/upload/src/upload.js.map +1 -1
  896. package/lib/components/upload/src/upload2.js +1 -1
  897. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  898. package/lib/components/virtual-list/src/components/dynamic-size-list.js.map +1 -1
  899. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +13 -13
  900. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  901. package/lib/components/virtual-list/src/components/fixed-size-list.js.map +1 -1
  902. package/lib/components/watermark/index.js +2 -2
  903. package/lib/components/watermark/src/watermark.d.ts +1 -1
  904. package/lib/components/watermark/src/watermark.js +210 -27
  905. package/lib/components/watermark/src/watermark.js.map +1 -1
  906. package/lib/components/watermark/src/watermark2.js +27 -210
  907. package/lib/components/watermark/src/watermark2.js.map +1 -1
  908. package/lib/defaults.d.ts +1 -1
  909. package/lib/directives/click-outside/index.js +1 -1
  910. package/lib/hooks/use-focus-controller/index.js +1 -1
  911. package/lib/hooks/use-lockscreen/index.js +1 -1
  912. package/lib/index.d.ts +1 -1
  913. package/lib/index.js +11 -11
  914. package/lib/locale/lang/ms.js +1 -1
  915. package/lib/locale/lang/ms.js.map +1 -1
  916. package/lib/version.d.ts +1 -1
  917. package/lib/version.js +1 -1
  918. package/lib/version.js.map +1 -1
  919. package/package.json +2 -2
  920. package/web-types.json +1 -1
@@ -1,2 +1,2 @@
1
1
  import type Dropdown from './dropdown.vue';
2
- export type DropdownInstance = InstanceType<typeof Dropdown>;
2
+ export type DropdownInstance = InstanceType<typeof Dropdown> & unknown;
@@ -1,4 +1,4 @@
1
- import { PopperProps } from '@element-plus/nightly/es/element-plus';
1
+ import { PopperProps } from '@element-plus/nightly/es/components/popper';
2
2
  import type { ComputedRef, InjectionKey, Ref } from 'vue';
3
3
  export type ElDropdownInjectionContext = {
4
4
  contentRef: Ref<HTMLElement | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.mjs","sources":["../../../../../../packages/components/dropdown/src/tokens.ts"],"sourcesContent":["import { PopperProps } from '@element-plus/element-plus'\nimport type { ComputedRef, InjectionKey, Ref } from 'vue'\n\nexport type ElDropdownInjectionContext = {\n contentRef: Ref<HTMLElement | undefined>\n role: ComputedRef<PopperProps['role']>\n triggerId: ComputedRef<string>\n isUsingKeyboard: Ref<boolean>\n onItemLeave: (e: PointerEvent) => void\n onItemEnter: (e: PointerEvent) => void\n}\n\nexport const DROPDOWN_INJECTION_KEY: InjectionKey<ElDropdownInjectionContext> =\n Symbol('elDropdown')\n"],"names":[],"mappings":"AAAY,MAAC,sBAAsB,GAAG,MAAM,CAAC,YAAY;;;;"}
1
+ {"version":3,"file":"tokens.mjs","sources":["../../../../../../packages/components/dropdown/src/tokens.ts"],"sourcesContent":["import { PopperProps } from '@element-plus/components/popper'\nimport type { ComputedRef, InjectionKey, Ref } from 'vue'\n\nexport type ElDropdownInjectionContext = {\n contentRef: Ref<HTMLElement | undefined>\n role: ComputedRef<PopperProps['role']>\n triggerId: ComputedRef<string>\n isUsingKeyboard: Ref<boolean>\n onItemLeave: (e: PointerEvent) => void\n onItemEnter: (e: PointerEvent) => void\n}\n\nexport const DROPDOWN_INJECTION_KEY: InjectionKey<ElDropdownInjectionContext> =\n Symbol('elDropdown')\n"],"names":[],"mappings":"AAAY,MAAC,sBAAsB,GAAG,MAAM,CAAC,YAAY;;;;"}
@@ -60,48 +60,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
60
  }, null, 8, ["id"])
61
61
  ]),
62
62
  createElementVNode("g", {
63
- id: "Illustrations",
64
63
  stroke: "none",
65
64
  "stroke-width": "1",
66
65
  fill: "none",
67
66
  "fill-rule": "evenodd"
68
67
  }, [
69
- createElementVNode("g", {
70
- id: "B-type",
71
- transform: "translate(-1268.000000, -535.000000)"
72
- }, [
73
- createElementVNode("g", {
74
- id: "Group-2",
75
- transform: "translate(1268.000000, 535.000000)"
76
- }, [
68
+ createElementVNode("g", { transform: "translate(-1268.000000, -535.000000)" }, [
69
+ createElementVNode("g", { transform: "translate(1268.000000, 535.000000)" }, [
77
70
  createElementVNode("path", {
78
- id: "Oval-Copy-2",
79
71
  d: "M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",
80
72
  fill: `var(${unref(ns).cssVarBlockName("fill-color-3")})`
81
73
  }, null, 8, ["fill"]),
82
74
  createElementVNode("polygon", {
83
- id: "Rectangle-Copy-14",
84
75
  fill: `var(${unref(ns).cssVarBlockName("fill-color-7")})`,
85
76
  transform: "translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",
86
77
  points: "13 58 53 58 42 45 2 45"
87
78
  }, null, 8, ["fill"]),
88
- createElementVNode("g", {
89
- id: "Group-Copy",
90
- transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"
91
- }, [
79
+ createElementVNode("g", { transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)" }, [
92
80
  createElementVNode("polygon", {
93
- id: "Rectangle-Copy-10",
94
81
  fill: `var(${unref(ns).cssVarBlockName("fill-color-7")})`,
95
82
  transform: "translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",
96
83
  points: "2.84078316e-14 3 18 3 23 7 5 7"
97
84
  }, null, 8, ["fill"]),
98
85
  createElementVNode("polygon", {
99
- id: "Rectangle-Copy-11",
100
86
  fill: `var(${unref(ns).cssVarBlockName("fill-color-5")})`,
101
87
  points: "-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"
102
88
  }, null, 8, ["fill"]),
103
89
  createElementVNode("rect", {
104
- id: "Rectangle-Copy-12",
105
90
  fill: `url(#linearGradient-1-${unref(id)})`,
106
91
  transform: "translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",
107
92
  x: "38",
@@ -110,32 +95,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
95
  height: "36"
111
96
  }, null, 8, ["fill"]),
112
97
  createElementVNode("polygon", {
113
- id: "Rectangle-Copy-13",
114
98
  fill: `var(${unref(ns).cssVarBlockName("fill-color-2")})`,
115
99
  transform: "translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",
116
100
  points: "24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"
117
101
  }, null, 8, ["fill"])
118
102
  ]),
119
103
  createElementVNode("rect", {
120
- id: "Rectangle-Copy-15",
121
104
  fill: `url(#linearGradient-2-${unref(id)})`,
122
105
  x: "13",
123
106
  y: "45",
124
107
  width: "40",
125
108
  height: "36"
126
109
  }, null, 8, ["fill"]),
127
- createElementVNode("g", {
128
- id: "Rectangle-Copy-17",
129
- transform: "translate(53.000000, 45.000000)"
130
- }, [
110
+ createElementVNode("g", { transform: "translate(53.000000, 45.000000)" }, [
131
111
  createElementVNode("use", {
132
- id: "Mask",
133
112
  fill: `var(${unref(ns).cssVarBlockName("fill-color-8")})`,
134
113
  transform: "translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ",
135
114
  "xlink:href": `#path-3-${unref(id)}`
136
115
  }, null, 8, ["fill", "xlink:href"]),
137
116
  createElementVNode("polygon", {
138
- id: "Rectangle-Copy",
139
117
  fill: `var(${unref(ns).cssVarBlockName("fill-color-9")})`,
140
118
  mask: `url(#mask-4-${unref(id)})`,
141
119
  transform: "translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",
@@ -143,7 +121,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
143
121
  }, null, 8, ["fill", "mask"])
144
122
  ]),
145
123
  createElementVNode("polygon", {
146
- id: "Rectangle-Copy-18",
147
124
  fill: `var(${unref(ns).cssVarBlockName("fill-color-2")})`,
148
125
  transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
149
126
  points: "62 45 79 45 70 58 53 58"
@@ -1 +1 @@
1
- {"version":3,"file":"img-empty.mjs","sources":["../../../../../../packages/components/empty/src/img-empty.vue"],"sourcesContent":["<template>\n <svg\n viewBox=\"0 0 79 86\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <defs>\n <linearGradient\n :id=\"`linearGradient-1-${id}`\"\n x1=\"38.8503086%\"\n y1=\"0%\"\n x2=\"61.1496914%\"\n y2=\"100%\"\n >\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-1')})`\"\n offset=\"0%\"\n />\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-4')})`\"\n offset=\"100%\"\n />\n </linearGradient>\n <linearGradient\n :id=\"`linearGradient-2-${id}`\"\n x1=\"0%\"\n y1=\"9.5%\"\n x2=\"100%\"\n y2=\"90.5%\"\n >\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-1')})`\"\n offset=\"0%\"\n />\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-6')})`\"\n offset=\"100%\"\n />\n </linearGradient>\n <rect :id=\"`path-3-${id}`\" x=\"0\" y=\"0\" width=\"17\" height=\"36\" />\n </defs>\n <g\n id=\"Illustrations\"\n stroke=\"none\"\n stroke-width=\"1\"\n fill=\"none\"\n fill-rule=\"evenodd\"\n >\n <g id=\"B-type\" transform=\"translate(-1268.000000, -535.000000)\">\n <g id=\"Group-2\" transform=\"translate(1268.000000, 535.000000)\">\n <path\n id=\"Oval-Copy-2\"\n d=\"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-3')})`\"\n />\n <polygon\n id=\"Rectangle-Copy-14\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-7')})`\"\n transform=\"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) \"\n points=\"13 58 53 58 42 45 2 45\"\n />\n <g\n id=\"Group-Copy\"\n transform=\"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)\"\n >\n <polygon\n id=\"Rectangle-Copy-10\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-7')})`\"\n transform=\"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) \"\n points=\"2.84078316e-14 3 18 3 23 7 5 7\"\n />\n <polygon\n id=\"Rectangle-Copy-11\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-5')})`\"\n points=\"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43\"\n />\n <rect\n id=\"Rectangle-Copy-12\"\n :fill=\"`url(#linearGradient-1-${id})`\"\n transform=\"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) \"\n x=\"38\"\n y=\"7\"\n width=\"17\"\n height=\"36\"\n />\n <polygon\n id=\"Rectangle-Copy-13\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-2')})`\"\n transform=\"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) \"\n points=\"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12\"\n />\n </g>\n <rect\n id=\"Rectangle-Copy-15\"\n :fill=\"`url(#linearGradient-2-${id})`\"\n x=\"13\"\n y=\"45\"\n width=\"40\"\n height=\"36\"\n />\n <g id=\"Rectangle-Copy-17\" transform=\"translate(53.000000, 45.000000)\">\n <use\n id=\"Mask\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-8')})`\"\n transform=\"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) \"\n :xlink:href=\"`#path-3-${id}`\"\n />\n <polygon\n id=\"Rectangle-Copy\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-9')})`\"\n :mask=\"`url(#mask-4-${id})`\"\n transform=\"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) \"\n points=\"7 0 24 0 20 18 7 16.5\"\n />\n </g>\n <polygon\n id=\"Rectangle-Copy-18\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-2')})`\"\n transform=\"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) \"\n points=\"62 45 79 45 70 58 53 58\"\n />\n </g>\n </g>\n </g>\n </svg>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useId, useNamespace } from '@element-plus/hooks'\n\ndefineOptions({\n name: 'ImgEmpty',\n})\n\nconst ns = useNamespace('empty')\nconst id = useId()\n</script>\n"],"names":[],"mappings":";;;;;mCAmIc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;AAEA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,KAAK,KAAM,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"img-empty.mjs","sources":["../../../../../../packages/components/empty/src/img-empty.vue"],"sourcesContent":["<template>\n <svg\n viewBox=\"0 0 79 86\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <defs>\n <linearGradient\n :id=\"`linearGradient-1-${id}`\"\n x1=\"38.8503086%\"\n y1=\"0%\"\n x2=\"61.1496914%\"\n y2=\"100%\"\n >\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-1')})`\"\n offset=\"0%\"\n />\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-4')})`\"\n offset=\"100%\"\n />\n </linearGradient>\n <linearGradient\n :id=\"`linearGradient-2-${id}`\"\n x1=\"0%\"\n y1=\"9.5%\"\n x2=\"100%\"\n y2=\"90.5%\"\n >\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-1')})`\"\n offset=\"0%\"\n />\n <stop\n :stop-color=\"`var(${ns.cssVarBlockName('fill-color-6')})`\"\n offset=\"100%\"\n />\n </linearGradient>\n <rect :id=\"`path-3-${id}`\" x=\"0\" y=\"0\" width=\"17\" height=\"36\" />\n </defs>\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(-1268.000000, -535.000000)\">\n <g transform=\"translate(1268.000000, 535.000000)\">\n <path\n d=\"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z\"\n :fill=\"`var(${ns.cssVarBlockName('fill-color-3')})`\"\n />\n <polygon\n :fill=\"`var(${ns.cssVarBlockName('fill-color-7')})`\"\n transform=\"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) \"\n points=\"13 58 53 58 42 45 2 45\"\n />\n <g\n transform=\"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)\"\n >\n <polygon\n :fill=\"`var(${ns.cssVarBlockName('fill-color-7')})`\"\n transform=\"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) \"\n points=\"2.84078316e-14 3 18 3 23 7 5 7\"\n />\n <polygon\n :fill=\"`var(${ns.cssVarBlockName('fill-color-5')})`\"\n points=\"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43\"\n />\n <rect\n :fill=\"`url(#linearGradient-1-${id})`\"\n transform=\"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) \"\n x=\"38\"\n y=\"7\"\n width=\"17\"\n height=\"36\"\n />\n <polygon\n :fill=\"`var(${ns.cssVarBlockName('fill-color-2')})`\"\n transform=\"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) \"\n points=\"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12\"\n />\n </g>\n <rect\n :fill=\"`url(#linearGradient-2-${id})`\"\n x=\"13\"\n y=\"45\"\n width=\"40\"\n height=\"36\"\n />\n <g transform=\"translate(53.000000, 45.000000)\">\n <use\n :fill=\"`var(${ns.cssVarBlockName('fill-color-8')})`\"\n transform=\"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) \"\n :xlink:href=\"`#path-3-${id}`\"\n />\n <polygon\n :fill=\"`var(${ns.cssVarBlockName('fill-color-9')})`\"\n :mask=\"`url(#mask-4-${id})`\"\n transform=\"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) \"\n points=\"7 0 24 0 20 18 7 16.5\"\n />\n </g>\n <polygon\n :fill=\"`var(${ns.cssVarBlockName('fill-color-2')})`\"\n transform=\"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) \"\n points=\"62 45 79 45 70 58 53 58\"\n />\n </g>\n </g>\n </g>\n </svg>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useId, useNamespace } from '@element-plus/hooks'\n\ndefineOptions({\n name: 'ImgEmpty',\n})\n\nconst ns = useNamespace('empty')\nconst id = useId()\n</script>\n"],"names":[],"mappings":";;;;;mCAkHc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;AAEA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,KAAK,KAAM,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
1
  import type Empty from './empty.vue';
2
- export type EmptyInstance = InstanceType<typeof Empty>;
2
+ export type EmptyInstance = InstanceType<typeof Empty> & unknown;
@@ -11,5 +11,5 @@ export * from './src/form-item';
11
11
  export * from './src/types';
12
12
  export * from './src/constants';
13
13
  export * from './src/hooks';
14
- export type FormInstance = InstanceType<typeof Form>;
15
- export type FormItemInstance = InstanceType<typeof FormItem>;
14
+ export type FormInstance = InstanceType<typeof Form> & unknown;
15
+ export type FormItemInstance = InstanceType<typeof FormItem> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Form from './src/form.vue'\nimport FormItem from './src/form-item.vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElForm: SFCWithInstall<typeof Form> & {\n FormItem: typeof FormItem\n} = withInstall(Form, {\n FormItem,\n})\nexport default ElForm\nexport const ElFormItem: SFCWithInstall<typeof FormItem> =\n withNoopInstall(FormItem)\n\nexport * from './src/form'\nexport * from './src/form-item'\nexport * from './src/types'\nexport * from './src/constants'\nexport * from './src/hooks'\n\nexport type FormInstance = InstanceType<typeof Form>\nexport type FormItemInstance = InstanceType<typeof FormItem>\n"],"names":[],"mappings":";;;;;;;;;AAGY,MAAC,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE;AACxC,EAAE,QAAQ;AACV,CAAC,EAAE;AAES,MAAC,UAAU,GAAG,eAAe,CAAC,QAAQ;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Form from './src/form.vue'\nimport FormItem from './src/form-item.vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElForm: SFCWithInstall<typeof Form> & {\n FormItem: typeof FormItem\n} = withInstall(Form, {\n FormItem,\n})\nexport default ElForm\nexport const ElFormItem: SFCWithInstall<typeof FormItem> =\n withNoopInstall(FormItem)\n\nexport * from './src/form'\nexport * from './src/form-item'\nexport * from './src/types'\nexport * from './src/constants'\nexport * from './src/hooks'\n\nexport type FormInstance = InstanceType<typeof Form> & unknown\nexport type FormItemInstance = InstanceType<typeof FormItem> & unknown\n"],"names":[],"mappings":";;;;;;;;;AAGY,MAAC,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE;AACxC,EAAE,QAAQ;AACV,CAAC,EAAE;AAES,MAAC,UAAU,GAAG,eAAe,CAAC,QAAQ;;;;"}
@@ -15,4 +15,4 @@ export declare const iconProps: {
15
15
  };
16
16
  };
17
17
  export type IconProps = ExtractPropTypes<typeof iconProps>;
18
- export type IconInstance = InstanceType<typeof Icon>;
18
+ export type IconInstance = InstanceType<typeof Icon> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"icon.mjs","sources":["../../../../../../packages/components/icon/src/icon.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Icon from './icon.vue'\n\nexport const iconProps = buildProps({\n /**\n * @description SVG icon size, size x size\n */\n size: {\n type: definePropType<number | string>([Number, String]),\n },\n /**\n * @description SVG tag's fill attribute\n */\n color: {\n type: String,\n },\n} as const)\nexport type IconProps = ExtractPropTypes<typeof iconProps>\nexport type IconInstance = InstanceType<typeof Icon>\n"],"names":[],"mappings":";;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"icon.mjs","sources":["../../../../../../packages/components/icon/src/icon.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Icon from './icon.vue'\n\nexport const iconProps = buildProps({\n /**\n * @description SVG icon size, size x size\n */\n size: {\n type: definePropType<number | string>([Number, String]),\n },\n /**\n * @description SVG tag's fill attribute\n */\n color: {\n type: String,\n },\n} as const)\nexport type IconProps = ExtractPropTypes<typeof iconProps>\nexport type IconInstance = InstanceType<typeof Icon> & unknown\n"],"names":[],"mappings":";;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
@@ -48,4 +48,4 @@ export declare const imageEmits: {
48
48
  show: () => boolean;
49
49
  };
50
50
  export type ImageEmits = typeof imageEmits;
51
- export type ImageInstance = InstanceType<typeof Image>;
51
+ export type ImageInstance = InstanceType<typeof Image> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"image.mjs","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Image from './image.vue'\n\nexport const imageProps = buildProps({\n /**\n * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.\n */\n hideOnClickModal: Boolean,\n /**\n * @description image source, same as native.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).\n */\n fit: {\n type: String,\n values: ['', 'contain', 'cover', 'fill', 'none', 'scale-down'],\n default: '',\n },\n /**\n * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)\n */\n loading: {\n type: String,\n values: ['eager', 'lazy'],\n },\n /**\n * @description whether to use lazy load.\n */\n lazy: Boolean,\n /**\n * @description the container to add scroll listener when using lazy load.\n */\n scrollContainer: {\n type: definePropType<string | HTMLElement | undefined>([String, Object]),\n },\n /**\n * @description allow big image preview.\n */\n previewSrcList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n previewTeleported: Boolean,\n /**\n * @description set image preview z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description initial preview image index, less than the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether the viewer preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description show preview image progress content.\n */\n showProgress: {\n type: Boolean,\n default: false,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\nexport type ImageProps = ExtractPropTypes<typeof imageProps>\n\nexport const imageEmits = {\n load: (evt: Event) => evt instanceof Event,\n error: (evt: Event) => evt instanceof Event,\n switch: (val: number) => isNumber(val),\n close: () => true,\n show: () => true,\n}\nexport type ImageEmits = typeof imageEmits\nexport type ImageInstance = InstanceType<typeof Image>\n"],"names":[],"mappings":";;;;AAMY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;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;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;"}
1
+ {"version":3,"file":"image.mjs","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Image from './image.vue'\n\nexport const imageProps = buildProps({\n /**\n * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.\n */\n hideOnClickModal: Boolean,\n /**\n * @description image source, same as native.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).\n */\n fit: {\n type: String,\n values: ['', 'contain', 'cover', 'fill', 'none', 'scale-down'],\n default: '',\n },\n /**\n * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)\n */\n loading: {\n type: String,\n values: ['eager', 'lazy'],\n },\n /**\n * @description whether to use lazy load.\n */\n lazy: Boolean,\n /**\n * @description the container to add scroll listener when using lazy load.\n */\n scrollContainer: {\n type: definePropType<string | HTMLElement | undefined>([String, Object]),\n },\n /**\n * @description allow big image preview.\n */\n previewSrcList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n previewTeleported: Boolean,\n /**\n * @description set image preview z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description initial preview image index, less than the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether the viewer preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description show preview image progress content.\n */\n showProgress: {\n type: Boolean,\n default: false,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\nexport type ImageProps = ExtractPropTypes<typeof imageProps>\n\nexport const imageEmits = {\n load: (evt: Event) => evt instanceof Event,\n error: (evt: Event) => evt instanceof Event,\n switch: (val: number) => isNumber(val),\n close: () => true,\n show: () => true,\n}\nexport type ImageEmits = typeof imageEmits\nexport type ImageInstance = InstanceType<typeof Image> & unknown\n"],"names":[],"mappings":";;;;AAMY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAA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AClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;"}
@@ -13,6 +13,7 @@ declare function __VLS_template(): {
13
13
  next: () => void;
14
14
  reset: () => void;
15
15
  activeIndex: number;
16
+ setActiveItem: (index: number) => void;
16
17
  }): any;
17
18
  };
18
19
  declare const __VLS_component: import("vue").DefineComponent<{
@@ -36,4 +36,4 @@ export interface ImageViewerMode {
36
36
  name: string;
37
37
  icon: Component;
38
38
  }
39
- export type ImageViewerInstance = InstanceType<typeof ImageViewer>;
39
+ export type ImageViewerInstance = InstanceType<typeof ImageViewer> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"image-viewer.mjs","sources":["../../../../../../packages/components/image-viewer/src/image-viewer.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type ImageViewer from './image-viewer.vue'\n\nexport type ImageViewerAction =\n | 'zoomIn'\n | 'zoomOut'\n | 'clockwise'\n | 'anticlockwise'\n\nexport const imageViewerProps = buildProps({\n /**\n * @description preview link list.\n */\n urlList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description preview backdrop z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description the initial preview image index, less than or equal to the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether user can emit close event when clicking backdrop.\n */\n hideOnClickModal: Boolean,\n /**\n * @description whether to append image itself to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n teleported: Boolean,\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event.\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description show preview image progress content.\n */\n showProgress: {\n type: Boolean,\n default: false,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\nexport type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>\n\nexport const imageViewerEmits = {\n close: () => true,\n switch: (index: number) => isNumber(index),\n rotate: (deg: number) => isNumber(deg),\n}\nexport type ImageViewerEmits = typeof imageViewerEmits\n\nexport interface ImageViewerMode {\n name: string\n icon: Component\n}\n\nexport type ImageViewerInstance = InstanceType<typeof ImageViewer>\n"],"names":[],"mappings":";;;;AAMY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACpC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC;;;;"}
1
+ {"version":3,"file":"image-viewer.mjs","sources":["../../../../../../packages/components/image-viewer/src/image-viewer.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type ImageViewer from './image-viewer.vue'\n\nexport type ImageViewerAction =\n | 'zoomIn'\n | 'zoomOut'\n | 'clockwise'\n | 'anticlockwise'\n\nexport const imageViewerProps = buildProps({\n /**\n * @description preview link list.\n */\n urlList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description preview backdrop z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description the initial preview image index, less than or equal to the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether user can emit close event when clicking backdrop.\n */\n hideOnClickModal: Boolean,\n /**\n * @description whether to append image itself to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n teleported: Boolean,\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event.\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description show preview image progress content.\n */\n showProgress: {\n type: Boolean,\n default: false,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\nexport type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>\n\nexport const imageViewerEmits = {\n close: () => true,\n switch: (index: number) => isNumber(index),\n rotate: (deg: number) => isNumber(deg),\n}\nexport type ImageViewerEmits = typeof imageViewerEmits\n\nexport interface ImageViewerMode {\n name: string\n icon: Component\n}\n\nexport type ImageViewerInstance = InstanceType<typeof ImageViewer> & unknown\n"],"names":[],"mappings":";;;;AAMY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACpC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC;;;;"}
@@ -15,6 +15,7 @@ declare function __VLS_template(): {
15
15
  next: typeof next;
16
16
  reset: typeof toggleMode;
17
17
  activeIndex: number;
18
+ setActiveItem: typeof setActiveItem;
18
19
  }): any;
19
20
  default?(_: {}): any;
20
21
  };
@@ -361,7 +361,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
361
361
  prev,
362
362
  next,
363
363
  reset: toggleMode,
364
- activeIndex: activeIndex.value
364
+ activeIndex: activeIndex.value,
365
+ setActiveItem
365
366
  }, () => [
366
367
  createVNode(unref(ElIcon), {
367
368
  onClick: ($event) => handleActions("zoomOut")
@@ -1 +1 @@
1
- {"version":3,"file":"image-viewer2.mjs","sources":["../../../../../../packages/components/image-viewer/src/image-viewer.vue"],"sourcesContent":["<template>\n <el-teleport to=\"body\" :disabled=\"!teleported\">\n <transition name=\"viewer-fade\" appear>\n <div\n ref=\"wrapper\"\n :tabindex=\"-1\"\n :class=\"ns.e('wrapper')\"\n :style=\"{ zIndex }\"\n >\n <el-focus-trap\n loop\n trapped\n :focus-trap-el=\"wrapper\"\n focus-start-el=\"container\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <div :class=\"ns.e('mask')\" @click.self=\"hideOnClickModal && hide()\" />\n\n <!-- CLOSE -->\n <span :class=\"[ns.e('btn'), ns.e('close')]\" @click=\"hide\">\n <el-icon>\n <Close />\n </el-icon>\n </span>\n\n <!-- ARROW -->\n <template v-if=\"!isSingle\">\n <span :class=\"arrowPrevKls\" @click=\"prev\">\n <el-icon>\n <ArrowLeft />\n </el-icon>\n </span>\n <span :class=\"arrowNextKls\" @click=\"next\">\n <el-icon>\n <ArrowRight />\n </el-icon>\n </span>\n </template>\n <div v-if=\"showProgress\" :class=\"[ns.e('btn'), ns.e('progress')]\">\n <slot\n name=\"progress\"\n :active-index=\"activeIndex\"\n :total=\"urlList.length\"\n >\n {{ progress }}\n </slot>\n </div>\n <!-- ACTIONS -->\n <div :class=\"[ns.e('btn'), ns.e('actions')]\">\n <div :class=\"ns.e('actions__inner')\">\n <slot\n name=\"toolbar\"\n :actions=\"handleActions\"\n :prev=\"prev\"\n :next=\"next\"\n :reset=\"toggleMode\"\n :active-index=\"activeIndex\"\n >\n <el-icon @click=\"handleActions('zoomOut')\">\n <ZoomOut />\n </el-icon>\n <el-icon @click=\"handleActions('zoomIn')\">\n <ZoomIn />\n </el-icon>\n <i :class=\"ns.e('actions__divider')\" />\n <el-icon @click=\"toggleMode\">\n <component :is=\"mode.icon\" />\n </el-icon>\n <i :class=\"ns.e('actions__divider')\" />\n <el-icon @click=\"handleActions('anticlockwise')\">\n <RefreshLeft />\n </el-icon>\n <el-icon @click=\"handleActions('clockwise')\">\n <RefreshRight />\n </el-icon>\n </slot>\n </div>\n </div>\n <!-- CANVAS -->\n <div :class=\"ns.e('canvas')\">\n <img\n v-for=\"(url, i) in urlList\"\n v-show=\"i === activeIndex\"\n :ref=\"(el) => (imgRefs[i] = el as HTMLImageElement)\"\n :key=\"url\"\n :src=\"url\"\n :style=\"imgStyle\"\n :class=\"ns.e('img')\"\n :crossorigin=\"crossorigin\"\n @load=\"handleImgLoad\"\n @error=\"handleImgError\"\n @mousedown=\"handleMouseDown\"\n />\n </div>\n <slot />\n </el-focus-trap>\n </div>\n </transition>\n </el-teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n effectScope,\n markRaw,\n nextTick,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport { useEventListener } from '@vueuse/core'\nimport { throttle } from 'lodash-unified'\nimport { useLocale, useNamespace, useZIndex } from '@element-plus/hooks'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { keysOf } from '@element-plus/utils'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElTeleport from '@element-plus/components/teleport'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n ArrowLeft,\n ArrowRight,\n Close,\n FullScreen,\n RefreshLeft,\n RefreshRight,\n ScaleToOriginal,\n ZoomIn,\n ZoomOut,\n} from '@element-plus/icons-vue'\nimport { imageViewerEmits, imageViewerProps } from './image-viewer'\n\nimport type { CSSProperties } from 'vue'\nimport type { ImageViewerAction, ImageViewerMode } from './image-viewer'\n\nconst modes: Record<'CONTAIN' | 'ORIGINAL', ImageViewerMode> = {\n CONTAIN: {\n name: 'contain',\n icon: markRaw(FullScreen),\n },\n ORIGINAL: {\n name: 'original',\n icon: markRaw(ScaleToOriginal),\n },\n}\n\ndefineOptions({\n name: 'ElImageViewer',\n})\n\nconst props = defineProps(imageViewerProps)\nconst emit = defineEmits(imageViewerEmits)\n\nlet stopWheelListener: (() => void) | undefined\nlet prevOverflow = ''\n\nconst { t } = useLocale()\nconst ns = useNamespace('image-viewer')\nconst { nextZIndex } = useZIndex()\nconst wrapper = ref<HTMLDivElement>()\nconst imgRefs = ref<HTMLImageElement[]>([])\n\nconst scopeEventListener = effectScope()\n\nconst loading = ref(true)\nconst activeIndex = ref(props.initialIndex)\nconst mode = shallowRef<ImageViewerMode>(modes.CONTAIN)\nconst transform = ref({\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false,\n})\nconst zIndex = ref(props.zIndex ?? nextZIndex())\n\nconst isSingle = computed(() => {\n const { urlList } = props\n return urlList.length <= 1\n})\n\nconst isFirst = computed(() => activeIndex.value === 0)\n\nconst isLast = computed(() => activeIndex.value === props.urlList.length - 1)\n\nconst currentImg = computed(() => props.urlList[activeIndex.value])\n\nconst arrowPrevKls = computed(() => [\n ns.e('btn'),\n ns.e('prev'),\n ns.is('disabled', !props.infinite && isFirst.value),\n])\n\nconst arrowNextKls = computed(() => [\n ns.e('btn'),\n ns.e('next'),\n ns.is('disabled', !props.infinite && isLast.value),\n])\n\nconst imgStyle = computed(() => {\n const { scale, deg, offsetX, offsetY, enableTransition } = transform.value\n let translateX = offsetX / scale\n let translateY = offsetY / scale\n\n const radian = (deg * Math.PI) / 180\n const cosRadian = Math.cos(radian)\n const sinRadian = Math.sin(radian)\n translateX = translateX * cosRadian + translateY * sinRadian\n translateY = translateY * cosRadian - (offsetX / scale) * sinRadian\n\n const style: CSSProperties = {\n transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,\n transition: enableTransition ? 'transform .3s' : '',\n }\n if (mode.value.name === modes.CONTAIN.name) {\n style.maxWidth = style.maxHeight = '100%'\n }\n return style\n})\n\nconst progress = computed(\n () => `${activeIndex.value + 1} / ${props.urlList.length}`\n)\n\nfunction hide() {\n unregisterEventListener()\n stopWheelListener?.()\n document.body.style.overflow = prevOverflow\n emit('close')\n}\n\nfunction registerEventListener() {\n const keydownHandler = throttle((e: KeyboardEvent) => {\n switch (e.code) {\n // ESC\n case EVENT_CODE.esc:\n props.closeOnPressEscape && hide()\n break\n // SPACE\n case EVENT_CODE.space:\n toggleMode()\n break\n // LEFT_ARROW\n case EVENT_CODE.left:\n prev()\n break\n // UP_ARROW\n case EVENT_CODE.up:\n handleActions('zoomIn')\n break\n // RIGHT_ARROW\n case EVENT_CODE.right:\n next()\n break\n // DOWN_ARROW\n case EVENT_CODE.down:\n handleActions('zoomOut')\n break\n }\n })\n const mousewheelHandler = throttle((e: WheelEvent) => {\n const delta = e.deltaY || e.deltaX\n handleActions(delta < 0 ? 'zoomIn' : 'zoomOut', {\n zoomRate: props.zoomRate,\n enableTransition: false,\n })\n })\n\n scopeEventListener.run(() => {\n useEventListener(document, 'keydown', keydownHandler)\n useEventListener(document, 'wheel', mousewheelHandler)\n })\n}\n\nfunction unregisterEventListener() {\n scopeEventListener.stop()\n}\n\nfunction handleImgLoad() {\n loading.value = false\n}\n\nfunction handleImgError(e: Event) {\n loading.value = false\n ;(e.target as HTMLImageElement).alt = t('el.image.error')\n}\n\nfunction handleMouseDown(e: MouseEvent) {\n if (loading.value || e.button !== 0 || !wrapper.value) return\n transform.value.enableTransition = false\n\n const { offsetX, offsetY } = transform.value\n const startX = e.pageX\n const startY = e.pageY\n\n const dragHandler = throttle((ev: MouseEvent) => {\n transform.value = {\n ...transform.value,\n offsetX: offsetX + ev.pageX - startX,\n offsetY: offsetY + ev.pageY - startY,\n }\n })\n const removeMousemove = useEventListener(document, 'mousemove', dragHandler)\n useEventListener(document, 'mouseup', () => {\n removeMousemove()\n })\n\n e.preventDefault()\n}\n\nfunction reset() {\n transform.value = {\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false,\n }\n}\n\nfunction toggleMode() {\n if (loading.value) return\n\n const modeNames = keysOf(modes)\n const modeValues = Object.values(modes)\n const currentMode = mode.value.name\n const index = modeValues.findIndex((i) => i.name === currentMode)\n const nextIndex = (index + 1) % modeNames.length\n mode.value = modes[modeNames[nextIndex]]\n reset()\n}\n\nfunction setActiveItem(index: number) {\n const len = props.urlList.length\n activeIndex.value = (index + len) % len\n}\n\nfunction prev() {\n if (isFirst.value && !props.infinite) return\n setActiveItem(activeIndex.value - 1)\n}\n\nfunction next() {\n if (isLast.value && !props.infinite) return\n setActiveItem(activeIndex.value + 1)\n}\n\nfunction handleActions(action: ImageViewerAction, options = {}) {\n if (loading.value) return\n const { minScale, maxScale } = props\n const { zoomRate, rotateDeg, enableTransition } = {\n zoomRate: props.zoomRate,\n rotateDeg: 90,\n enableTransition: true,\n ...options,\n }\n switch (action) {\n case 'zoomOut':\n if (transform.value.scale > minScale) {\n transform.value.scale = Number.parseFloat(\n (transform.value.scale / zoomRate).toFixed(3)\n )\n }\n break\n case 'zoomIn':\n if (transform.value.scale < maxScale) {\n transform.value.scale = Number.parseFloat(\n (transform.value.scale * zoomRate).toFixed(3)\n )\n }\n break\n case 'clockwise':\n transform.value.deg += rotateDeg\n emit('rotate', transform.value.deg)\n break\n case 'anticlockwise':\n transform.value.deg -= rotateDeg\n emit('rotate', transform.value.deg)\n break\n }\n transform.value.enableTransition = enableTransition\n}\n\nfunction onFocusoutPrevented(event: CustomEvent) {\n if (event.detail?.focusReason === 'pointer') {\n event.preventDefault()\n }\n}\n\nfunction onCloseRequested() {\n if (props.closeOnPressEscape) {\n hide()\n }\n}\n\nfunction wheelHandler(e: WheelEvent) {\n if (!e.ctrlKey) return\n\n if (e.deltaY < 0) {\n e.preventDefault()\n return false\n } else if (e.deltaY > 0) {\n e.preventDefault()\n return false\n }\n}\n\nwatch(currentImg, () => {\n nextTick(() => {\n const $img = imgRefs.value[0]\n if (!$img?.complete) {\n loading.value = true\n }\n })\n})\n\nwatch(activeIndex, (val) => {\n reset()\n emit('switch', val)\n})\n\nonMounted(() => {\n registerEventListener()\n\n stopWheelListener = useEventListener('wheel', wheelHandler, {\n passive: false,\n })\n\n // prevent body scroll\n prevOverflow = document.body.style.overflow\n document.body.style.overflow = 'hidden'\n})\n\ndefineExpose({\n /**\n * @description manually switch image\n */\n setActiveItem,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;mCAoJc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAbA,IAAA,MAAM,KAAyD,GAAA,OAAA,CAAA;AAAA,IAAA,MACpD,KAAA,GAAA;AAAA,MAAA,OACD,EAAA;AAAA,QACN,IAAA,EAAM,SAAkB;AAAA,QAC1B,IAAA,EAAA,OAAA,CAAA,UAAA,CAAA;AAAA,OACU;AAAA,MAAA,QACF,EAAA;AAAA,QACN,IAAA,EAAM,UAAuB;AAAA,QAC/B,IAAA,EAAA,OAAA,CAAA,eAAA,CAAA;AAAA,OACF;AASA,KAAI,CAAA;AACJ,IAAA,IAAI,iBAAe,CAAA;AAEnB,IAAM,IAAA,YAAkB,GAAA,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,CAAA,EAAK,cAA2B,CAAA;AACtC,IAAM,MAAA,EAAE,GAAW,YAAI,CAAU,cAAA,CAAA,CAAA;AACjC,IAAA,MAAM,YAA8B,EAAA,GAAA,SAAA,EAAA,CAAA;AACpC,IAAM,MAAA,OAAA,GAAU,GAAwB,EAAC,CAAC;AAE1C,IAAA,MAAM;AAEN,IAAM,MAAA,kBAAkB,GAAA,WAAA,EAAA,CAAA;AACxB,IAAM,MAAA,OAAA,GAAA,GAAA,CAAc,IAAI,CAAA,CAAA;AACxB,IAAM,MAAA,WAAmC,GAAA,GAAA,CAAA,KAAA,CAAM,YAAO,CAAA,CAAA;AACtD,IAAA,MAAM,iBAAgB,CAAA,KAAA,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"image-viewer2.mjs","sources":["../../../../../../packages/components/image-viewer/src/image-viewer.vue"],"sourcesContent":["<template>\n <el-teleport to=\"body\" :disabled=\"!teleported\">\n <transition name=\"viewer-fade\" appear>\n <div\n ref=\"wrapper\"\n :tabindex=\"-1\"\n :class=\"ns.e('wrapper')\"\n :style=\"{ zIndex }\"\n >\n <el-focus-trap\n loop\n trapped\n :focus-trap-el=\"wrapper\"\n focus-start-el=\"container\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <div :class=\"ns.e('mask')\" @click.self=\"hideOnClickModal && hide()\" />\n\n <!-- CLOSE -->\n <span :class=\"[ns.e('btn'), ns.e('close')]\" @click=\"hide\">\n <el-icon>\n <Close />\n </el-icon>\n </span>\n\n <!-- ARROW -->\n <template v-if=\"!isSingle\">\n <span :class=\"arrowPrevKls\" @click=\"prev\">\n <el-icon>\n <ArrowLeft />\n </el-icon>\n </span>\n <span :class=\"arrowNextKls\" @click=\"next\">\n <el-icon>\n <ArrowRight />\n </el-icon>\n </span>\n </template>\n <div v-if=\"showProgress\" :class=\"[ns.e('btn'), ns.e('progress')]\">\n <slot\n name=\"progress\"\n :active-index=\"activeIndex\"\n :total=\"urlList.length\"\n >\n {{ progress }}\n </slot>\n </div>\n <!-- ACTIONS -->\n <div :class=\"[ns.e('btn'), ns.e('actions')]\">\n <div :class=\"ns.e('actions__inner')\">\n <slot\n name=\"toolbar\"\n :actions=\"handleActions\"\n :prev=\"prev\"\n :next=\"next\"\n :reset=\"toggleMode\"\n :active-index=\"activeIndex\"\n :set-active-item=\"setActiveItem\"\n >\n <el-icon @click=\"handleActions('zoomOut')\">\n <ZoomOut />\n </el-icon>\n <el-icon @click=\"handleActions('zoomIn')\">\n <ZoomIn />\n </el-icon>\n <i :class=\"ns.e('actions__divider')\" />\n <el-icon @click=\"toggleMode\">\n <component :is=\"mode.icon\" />\n </el-icon>\n <i :class=\"ns.e('actions__divider')\" />\n <el-icon @click=\"handleActions('anticlockwise')\">\n <RefreshLeft />\n </el-icon>\n <el-icon @click=\"handleActions('clockwise')\">\n <RefreshRight />\n </el-icon>\n </slot>\n </div>\n </div>\n <!-- CANVAS -->\n <div :class=\"ns.e('canvas')\">\n <img\n v-for=\"(url, i) in urlList\"\n v-show=\"i === activeIndex\"\n :ref=\"(el) => (imgRefs[i] = el as HTMLImageElement)\"\n :key=\"url\"\n :src=\"url\"\n :style=\"imgStyle\"\n :class=\"ns.e('img')\"\n :crossorigin=\"crossorigin\"\n @load=\"handleImgLoad\"\n @error=\"handleImgError\"\n @mousedown=\"handleMouseDown\"\n />\n </div>\n <slot />\n </el-focus-trap>\n </div>\n </transition>\n </el-teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n effectScope,\n markRaw,\n nextTick,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport { useEventListener } from '@vueuse/core'\nimport { throttle } from 'lodash-unified'\nimport { useLocale, useNamespace, useZIndex } from '@element-plus/hooks'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { keysOf } from '@element-plus/utils'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElTeleport from '@element-plus/components/teleport'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n ArrowLeft,\n ArrowRight,\n Close,\n FullScreen,\n RefreshLeft,\n RefreshRight,\n ScaleToOriginal,\n ZoomIn,\n ZoomOut,\n} from '@element-plus/icons-vue'\nimport { imageViewerEmits, imageViewerProps } from './image-viewer'\n\nimport type { CSSProperties } from 'vue'\nimport type { ImageViewerAction, ImageViewerMode } from './image-viewer'\n\nconst modes: Record<'CONTAIN' | 'ORIGINAL', ImageViewerMode> = {\n CONTAIN: {\n name: 'contain',\n icon: markRaw(FullScreen),\n },\n ORIGINAL: {\n name: 'original',\n icon: markRaw(ScaleToOriginal),\n },\n}\n\ndefineOptions({\n name: 'ElImageViewer',\n})\n\nconst props = defineProps(imageViewerProps)\nconst emit = defineEmits(imageViewerEmits)\n\nlet stopWheelListener: (() => void) | undefined\nlet prevOverflow = ''\n\nconst { t } = useLocale()\nconst ns = useNamespace('image-viewer')\nconst { nextZIndex } = useZIndex()\nconst wrapper = ref<HTMLDivElement>()\nconst imgRefs = ref<HTMLImageElement[]>([])\n\nconst scopeEventListener = effectScope()\n\nconst loading = ref(true)\nconst activeIndex = ref(props.initialIndex)\nconst mode = shallowRef<ImageViewerMode>(modes.CONTAIN)\nconst transform = ref({\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false,\n})\nconst zIndex = ref(props.zIndex ?? nextZIndex())\n\nconst isSingle = computed(() => {\n const { urlList } = props\n return urlList.length <= 1\n})\n\nconst isFirst = computed(() => activeIndex.value === 0)\n\nconst isLast = computed(() => activeIndex.value === props.urlList.length - 1)\n\nconst currentImg = computed(() => props.urlList[activeIndex.value])\n\nconst arrowPrevKls = computed(() => [\n ns.e('btn'),\n ns.e('prev'),\n ns.is('disabled', !props.infinite && isFirst.value),\n])\n\nconst arrowNextKls = computed(() => [\n ns.e('btn'),\n ns.e('next'),\n ns.is('disabled', !props.infinite && isLast.value),\n])\n\nconst imgStyle = computed(() => {\n const { scale, deg, offsetX, offsetY, enableTransition } = transform.value\n let translateX = offsetX / scale\n let translateY = offsetY / scale\n\n const radian = (deg * Math.PI) / 180\n const cosRadian = Math.cos(radian)\n const sinRadian = Math.sin(radian)\n translateX = translateX * cosRadian + translateY * sinRadian\n translateY = translateY * cosRadian - (offsetX / scale) * sinRadian\n\n const style: CSSProperties = {\n transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,\n transition: enableTransition ? 'transform .3s' : '',\n }\n if (mode.value.name === modes.CONTAIN.name) {\n style.maxWidth = style.maxHeight = '100%'\n }\n return style\n})\n\nconst progress = computed(\n () => `${activeIndex.value + 1} / ${props.urlList.length}`\n)\n\nfunction hide() {\n unregisterEventListener()\n stopWheelListener?.()\n document.body.style.overflow = prevOverflow\n emit('close')\n}\n\nfunction registerEventListener() {\n const keydownHandler = throttle((e: KeyboardEvent) => {\n switch (e.code) {\n // ESC\n case EVENT_CODE.esc:\n props.closeOnPressEscape && hide()\n break\n // SPACE\n case EVENT_CODE.space:\n toggleMode()\n break\n // LEFT_ARROW\n case EVENT_CODE.left:\n prev()\n break\n // UP_ARROW\n case EVENT_CODE.up:\n handleActions('zoomIn')\n break\n // RIGHT_ARROW\n case EVENT_CODE.right:\n next()\n break\n // DOWN_ARROW\n case EVENT_CODE.down:\n handleActions('zoomOut')\n break\n }\n })\n const mousewheelHandler = throttle((e: WheelEvent) => {\n const delta = e.deltaY || e.deltaX\n handleActions(delta < 0 ? 'zoomIn' : 'zoomOut', {\n zoomRate: props.zoomRate,\n enableTransition: false,\n })\n })\n\n scopeEventListener.run(() => {\n useEventListener(document, 'keydown', keydownHandler)\n useEventListener(document, 'wheel', mousewheelHandler)\n })\n}\n\nfunction unregisterEventListener() {\n scopeEventListener.stop()\n}\n\nfunction handleImgLoad() {\n loading.value = false\n}\n\nfunction handleImgError(e: Event) {\n loading.value = false\n ;(e.target as HTMLImageElement).alt = t('el.image.error')\n}\n\nfunction handleMouseDown(e: MouseEvent) {\n if (loading.value || e.button !== 0 || !wrapper.value) return\n transform.value.enableTransition = false\n\n const { offsetX, offsetY } = transform.value\n const startX = e.pageX\n const startY = e.pageY\n\n const dragHandler = throttle((ev: MouseEvent) => {\n transform.value = {\n ...transform.value,\n offsetX: offsetX + ev.pageX - startX,\n offsetY: offsetY + ev.pageY - startY,\n }\n })\n const removeMousemove = useEventListener(document, 'mousemove', dragHandler)\n useEventListener(document, 'mouseup', () => {\n removeMousemove()\n })\n\n e.preventDefault()\n}\n\nfunction reset() {\n transform.value = {\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false,\n }\n}\n\nfunction toggleMode() {\n if (loading.value) return\n\n const modeNames = keysOf(modes)\n const modeValues = Object.values(modes)\n const currentMode = mode.value.name\n const index = modeValues.findIndex((i) => i.name === currentMode)\n const nextIndex = (index + 1) % modeNames.length\n mode.value = modes[modeNames[nextIndex]]\n reset()\n}\n\nfunction setActiveItem(index: number) {\n const len = props.urlList.length\n activeIndex.value = (index + len) % len\n}\n\nfunction prev() {\n if (isFirst.value && !props.infinite) return\n setActiveItem(activeIndex.value - 1)\n}\n\nfunction next() {\n if (isLast.value && !props.infinite) return\n setActiveItem(activeIndex.value + 1)\n}\n\nfunction handleActions(action: ImageViewerAction, options = {}) {\n if (loading.value) return\n const { minScale, maxScale } = props\n const { zoomRate, rotateDeg, enableTransition } = {\n zoomRate: props.zoomRate,\n rotateDeg: 90,\n enableTransition: true,\n ...options,\n }\n switch (action) {\n case 'zoomOut':\n if (transform.value.scale > minScale) {\n transform.value.scale = Number.parseFloat(\n (transform.value.scale / zoomRate).toFixed(3)\n )\n }\n break\n case 'zoomIn':\n if (transform.value.scale < maxScale) {\n transform.value.scale = Number.parseFloat(\n (transform.value.scale * zoomRate).toFixed(3)\n )\n }\n break\n case 'clockwise':\n transform.value.deg += rotateDeg\n emit('rotate', transform.value.deg)\n break\n case 'anticlockwise':\n transform.value.deg -= rotateDeg\n emit('rotate', transform.value.deg)\n break\n }\n transform.value.enableTransition = enableTransition\n}\n\nfunction onFocusoutPrevented(event: CustomEvent) {\n if (event.detail?.focusReason === 'pointer') {\n event.preventDefault()\n }\n}\n\nfunction onCloseRequested() {\n if (props.closeOnPressEscape) {\n hide()\n }\n}\n\nfunction wheelHandler(e: WheelEvent) {\n if (!e.ctrlKey) return\n\n if (e.deltaY < 0) {\n e.preventDefault()\n return false\n } else if (e.deltaY > 0) {\n e.preventDefault()\n return false\n }\n}\n\nwatch(currentImg, () => {\n nextTick(() => {\n const $img = imgRefs.value[0]\n if (!$img?.complete) {\n loading.value = true\n }\n })\n})\n\nwatch(activeIndex, (val) => {\n reset()\n emit('switch', val)\n})\n\nonMounted(() => {\n registerEventListener()\n\n stopWheelListener = useEventListener('wheel', wheelHandler, {\n passive: false,\n })\n\n // prevent body scroll\n prevOverflow = document.body.style.overflow\n document.body.style.overflow = 'hidden'\n})\n\ndefineExpose({\n /**\n * @description manually switch image\n */\n setActiveItem,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;mCAqJc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAbA,IAAA,MAAM,KAAyD,GAAA,OAAA,CAAA;AAAA,IAAA,MACpD,KAAA,GAAA;AAAA,MAAA,OACD,EAAA;AAAA,QACN,IAAA,EAAM,SAAkB;AAAA,QAC1B,IAAA,EAAA,OAAA,CAAA,UAAA,CAAA;AAAA,OACU;AAAA,MAAA,QACF,EAAA;AAAA,QACN,IAAA,EAAM,UAAuB;AAAA,QAC/B,IAAA,EAAA,OAAA,CAAA,eAAA,CAAA;AAAA,OACF;AASA,KAAI,CAAA;AACJ,IAAA,IAAI,iBAAe,CAAA;AAEnB,IAAM,IAAA,YAAkB,GAAA,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,CAAA,EAAK,cAA2B,CAAA;AACtC,IAAM,MAAA,EAAE,GAAW,YAAI,CAAU,cAAA,CAAA,CAAA;AACjC,IAAA,MAAM,YAA8B,EAAA,GAAA,SAAA,EAAA,CAAA;AACpC,IAAM,MAAA,OAAA,GAAU,GAAwB,EAAC,CAAC;AAE1C,IAAA,MAAM;AAEN,IAAM,MAAA,kBAAkB,GAAA,WAAA,EAAA,CAAA;AACxB,IAAM,MAAA,OAAA,GAAA,GAAA,CAAc,IAAI,CAAA,CAAA;AACxB,IAAM,MAAA,WAAmC,GAAA,GAAA,CAAA,KAAA,CAAM,YAAO,CAAA,CAAA;AACtD,IAAA,MAAM,iBAAgB,CAAA,KAAA,CAAA,OAAA,CAAA,CAAA;AAAA,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -82,11 +82,11 @@ export { ElNotification } from './notification/index.mjs';
82
82
  export { ElPopover, ElPopoverDirective } from './popover/index.mjs';
83
83
  export { default as FixedSizeGrid } from './virtual-list/src/components/fixed-size-grid.mjs';
84
84
  export { default as DynamicSizeGrid } from './virtual-list/src/components/dynamic-size-grid.mjs';
85
- export { affixEmits, affixProps } from './affix/src/affix.mjs';
85
+ export { affixEmits, affixProps } from './affix/src/affix2.mjs';
86
86
  export { alertEffects, alertEmits, alertProps } from './alert/src/alert.mjs';
87
87
  export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocomplete.mjs';
88
88
  export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
89
- export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
89
+ export { backtopEmits, backtopProps } from './backtop/src/backtop2.mjs';
90
90
  export { badgeProps } from './badge/src/badge.mjs';
91
91
  export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
92
92
  export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
@@ -147,7 +147,7 @@ export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
147
147
  export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header.mjs';
148
148
  export { paginationEmits, paginationProps } from './pagination/src/pagination.mjs';
149
149
  export { elPaginationKey } from './pagination/src/constants.mjs';
150
- export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm2.mjs';
150
+ export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mjs';
151
151
  export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
152
152
  export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
153
153
  export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
@@ -161,7 +161,7 @@ export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio.mjs';
161
161
  export { radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
162
162
  export { radioButtonProps } from './radio/src/radio-button.mjs';
163
163
  export { radioGroupKey } from './radio/src/constants.mjs';
164
- export { rateEmits, rateProps } from './rate/src/rate.mjs';
164
+ export { rateEmits, rateProps } from './rate/src/rate2.mjs';
165
165
  export { IconComponentMap, IconMap, resultProps } from './result/src/result.mjs';
166
166
  export { RowAlign, RowJustify, rowProps } from './row/src/row.mjs';
167
167
  export { rowContextKey } from './row/src/constants.mjs';
@@ -171,7 +171,7 @@ export { thumbProps } from './scrollbar/src/thumb.mjs';
171
171
  export { scrollbarContextKey } from './scrollbar/src/constants.mjs';
172
172
  export { selectGroupKey, selectKey } from './select/src/token.mjs';
173
173
  export { selectV2InjectionKey } from './select-v2/src/token.mjs';
174
- export { skeletonProps } from './skeleton/src/skeleton2.mjs';
174
+ export { skeletonProps } from './skeleton/src/skeleton.mjs';
175
175
  export { skeletonItemProps } from './skeleton/src/skeleton-item.mjs';
176
176
  export { sliderEmits, sliderProps } from './slider/src/slider.mjs';
177
177
  export { sliderContextKey } from './slider/src/constants.mjs';
@@ -179,7 +179,7 @@ export { spaceProps } from './space/src/space.mjs';
179
179
  export { spaceItemProps } from './space/src/item.mjs';
180
180
  export { useSpace } from './space/src/use-space.mjs';
181
181
  export { statisticProps } from './statistic/src/statistic.mjs';
182
- export { stepProps } from './steps/src/item.mjs';
182
+ export { stepProps } from './steps/src/item2.mjs';
183
183
  export { stepsEmits, stepsProps } from './steps/src/steps.mjs';
184
184
  export { switchEmits, switchProps } from './switch/src/switch.mjs';
185
185
  export { Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, SortOrder as TableV2SortOrder } from './table-v2/src/constants.mjs';
@@ -208,23 +208,23 @@ export { useTooltipContentProps } from './tooltip/src/content.mjs';
208
208
  export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
209
209
  export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
210
210
  export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/upload.mjs';
211
- export { uploadContentProps } from './upload/src/upload-content2.mjs';
211
+ export { uploadContentProps } from './upload/src/upload-content.mjs';
212
212
  export { uploadListEmits, uploadListProps } from './upload/src/upload-list.mjs';
213
213
  export { uploadDraggerEmits, uploadDraggerProps } from './upload/src/upload-dragger.mjs';
214
214
  export { uploadContextKey } from './upload/src/constants.mjs';
215
215
  export { default as FixedSizeList } from './virtual-list/src/components/fixed-size-list.mjs';
216
216
  export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
217
217
  export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
218
- export { watermarkProps } from './watermark/src/watermark.mjs';
218
+ export { watermarkProps } from './watermark/src/watermark2.mjs';
219
219
  export { tourEmits, tourProps } from './tour/src/tour.mjs';
220
220
  export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
221
- export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content2.mjs';
222
- export { anchorEmits, anchorProps } from './anchor/src/anchor2.mjs';
221
+ export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
222
+ export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
223
223
  export { segmentedEmits, segmentedProps } from './segmented/src/segmented.mjs';
224
224
  export { mentionEmits, mentionProps } from './mention/src/mention.mjs';
225
225
  export { vLoading as ElLoadingDirective, vLoading } from './loading/src/directive.mjs';
226
226
  export { Loading as ElLoadingService } from './loading/src/service.mjs';
227
- export { messageDefaults, messageEmits, messageProps, messageTypes } from './message/src/message.mjs';
227
+ export { messageDefaults, messageEmits, messageProps, messageTypes } from './message/src/message2.mjs';
228
228
  export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
229
229
  export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
230
230
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
1
  import type Input from './input.vue';
2
- export type InputInstance = InstanceType<typeof Input>;
2
+ export type InputInstance = InstanceType<typeof Input> & unknown;
@@ -38,4 +38,4 @@ export declare const inputNumberEmits: {
38
38
  "update:modelValue": (val: number | undefined) => boolean;
39
39
  };
40
40
  export type InputNumberEmits = typeof inputNumberEmits;
41
- export type InputNumberInstance = InstanceType<typeof InputNumber>;
41
+ export type InputNumberInstance = InstanceType<typeof InputNumber> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"input-number.mjs","sources":["../../../../../../packages/components/input-number/src/input-number.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type InputNumber from './input-number.vue'\n\nexport const inputNumberProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description incremental step\n */\n step: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether input value can only be multiple of step\n */\n stepStrictly: Boolean,\n /**\n * @description the maximum allowed value\n */\n max: {\n type: Number,\n default: Number.POSITIVE_INFINITY,\n },\n /**\n * @description the minimum allowed value\n */\n min: {\n type: Number,\n default: Number.NEGATIVE_INFINITY,\n },\n /**\n * @description binding value\n */\n modelValue: Number,\n /**\n * @description same as `readonly` in native input\n */\n readonly: Boolean,\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description size of the component\n */\n size: useSizeProp,\n /**\n * @description whether to enable the control buttons\n */\n controls: {\n type: Boolean,\n default: true,\n },\n /**\n * @description position of the control buttons\n */\n controlsPosition: {\n type: String,\n default: '',\n values: ['', 'right'],\n },\n /**\n * @description value should be set when input box is cleared\n */\n valueOnClear: {\n type: [String, Number, null],\n validator: (val: 'min' | 'max' | number | null) =>\n val === null || isNumber(val) || ['min', 'max'].includes(val),\n default: null,\n },\n /**\n * @description same as `name` in native input\n */\n name: String,\n /**\n * @description same as `placeholder` in native input\n */\n placeholder: String,\n /**\n * @description precision of input value\n */\n precision: {\n type: Number,\n validator: (val: number) =>\n val >= 0 && val === Number.parseInt(`${val}`, 10),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>\n\nexport const inputNumberEmits = {\n [CHANGE_EVENT]: (cur: number | undefined, prev: number | undefined) =>\n prev !== cur,\n blur: (e: FocusEvent) => e instanceof FocusEvent,\n focus: (e: FocusEvent) => e instanceof FocusEvent,\n [INPUT_EVENT]: (val: number | null | undefined) =>\n isNumber(val) || isNil(val),\n [UPDATE_MODEL_EVENT]: (val: number | undefined) =>\n isNumber(val) || isNil(val),\n}\nexport type InputNumberEmits = typeof inputNumberEmits\n\nexport type InputNumberInstance = InstanceType<typeof InputNumber>\n"],"names":[],"mappings":";;;;;;;AAQY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM,CAAC,iBAAiB;AACrC,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAA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KAAK,GAAG;AAC7C,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACtC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACvC,EAAE,CAAC,WAAW,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AACrD,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AAC5D;;;;"}
1
+ {"version":3,"file":"input-number.mjs","sources":["../../../../../../packages/components/input-number/src/input-number.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type InputNumber from './input-number.vue'\n\nexport const inputNumberProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description incremental step\n */\n step: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether input value can only be multiple of step\n */\n stepStrictly: Boolean,\n /**\n * @description the maximum allowed value\n */\n max: {\n type: Number,\n default: Number.POSITIVE_INFINITY,\n },\n /**\n * @description the minimum allowed value\n */\n min: {\n type: Number,\n default: Number.NEGATIVE_INFINITY,\n },\n /**\n * @description binding value\n */\n modelValue: Number,\n /**\n * @description same as `readonly` in native input\n */\n readonly: Boolean,\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description size of the component\n */\n size: useSizeProp,\n /**\n * @description whether to enable the control buttons\n */\n controls: {\n type: Boolean,\n default: true,\n },\n /**\n * @description position of the control buttons\n */\n controlsPosition: {\n type: String,\n default: '',\n values: ['', 'right'],\n },\n /**\n * @description value should be set when input box is cleared\n */\n valueOnClear: {\n type: [String, Number, null],\n validator: (val: 'min' | 'max' | number | null) =>\n val === null || isNumber(val) || ['min', 'max'].includes(val),\n default: null,\n },\n /**\n * @description same as `name` in native input\n */\n name: String,\n /**\n * @description same as `placeholder` in native input\n */\n placeholder: String,\n /**\n * @description precision of input value\n */\n precision: {\n type: Number,\n validator: (val: number) =>\n val >= 0 && val === Number.parseInt(`${val}`, 10),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>\n\nexport const inputNumberEmits = {\n [CHANGE_EVENT]: (cur: number | undefined, prev: number | undefined) =>\n prev !== cur,\n blur: (e: FocusEvent) => e instanceof FocusEvent,\n focus: (e: FocusEvent) => e instanceof FocusEvent,\n [INPUT_EVENT]: (val: number | null | undefined) =>\n isNumber(val) || isNil(val),\n [UPDATE_MODEL_EVENT]: (val: number | undefined) =>\n isNumber(val) || isNil(val),\n}\nexport type InputNumberEmits = typeof inputNumberEmits\n\nexport type InputNumberInstance = InstanceType<typeof InputNumber> & unknown\n"],"names":[],"mappings":";;;;;;;AAQY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM,CAAC,iBAAiB;AACrC,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM,CAAC,iBAAiB;AACrC,GAAG;AACH,EAAE,UAA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CAAC,YAAY,UAAU;AACtC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACvC,EAAE,CAAC,WAAW,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AACrD,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AAC5D;;;;"}
@@ -1,2 +1,2 @@
1
1
  import type InputTag from './input-tag.vue';
2
- export type InputTagInstance = InstanceType<typeof InputTag>;
2
+ export type InputTagInstance = InstanceType<typeof InputTag> & unknown;
@@ -18,4 +18,4 @@ export declare const linkEmits: {
18
18
  click: (evt: MouseEvent) => boolean;
19
19
  };
20
20
  export type LinkEmits = typeof linkEmits;
21
- export type LinkInstance = InstanceType<typeof Link>;
21
+ export type LinkInstance = InstanceType<typeof Link> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"link.mjs","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Link from './link.vue'\n\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: 'default',\n },\n /**\n * @description whether the component has underline\n */\n underline: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\nexport type LinkProps = ExtractPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link>\n"],"names":[],"mappings":";;;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;AAC1E,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
1
+ {"version":3,"file":"link.mjs","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Link from './link.vue'\n\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: 'default',\n },\n /**\n * @description whether the component has underline\n */\n underline: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\nexport type LinkProps = ExtractPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link> & unknown\n"],"names":[],"mappings":";;;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;AAC1E,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
@@ -113,5 +113,5 @@ export declare const mentionEmits: {
113
113
  };
114
114
  export type MentionEmits = typeof mentionEmits;
115
115
  export type MentionProps = ExtractPropTypes<typeof mentionProps>;
116
- export type MentionInstance = InstanceType<typeof Mention>;
116
+ export type MentionInstance = InstanceType<typeof Mention> & unknown;
117
117
  export type { MentionOption } from './types';
@@ -1 +1 @@
1
- {"version":3,"file":"mention.mjs","sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\n\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({} as Partial<Options>),\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isString(option.value) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\nexport type MentionProps = ExtractPropTypes<typeof mentionProps>\nexport type MentionInstance = InstanceType<typeof Mention>\n\nexport type { MentionOption } from './types'\n"],"names":[],"mappings":";;;;;;AASY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,GAAG,UAAU;AACf,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,GAAG;AAChB,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK;AACxB,MAAM,IAAI,QAAQ,CAAC,GAAG,CAAC;AACvB,QAAQ,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;AAChC,MAAM,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AAC7D,KAAK;AACL,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,MAAM,KAAK,CAAC;AACxC,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,QAAQ,C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,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C;;;;"}
1
+ {"version":3,"file":"mention.mjs","sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\n\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({} as Partial<Options>),\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isString(option.value) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\nexport type MentionProps = ExtractPropTypes<typeof mentionProps>\nexport type MentionInstance = InstanceType<typeof Mention> & unknown\n\nexport type { MentionOption } from './types'\n"],"names":[],"mappings":";;;;;;AASY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,GAAG,UAAU;AACf,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,GAAG;AAChB,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK;AACxB,MAAM,IAAI,QAAQ,CAAC,GAAG,CAAC;AACvB,QAAQ,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;AAChC,MAAM,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AAC7D,KAAK;AACL,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;A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