element-plus 2.2.28 → 2.2.30

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 (576) hide show
  1. package/README.md +1 -1
  2. package/attributes.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.full.js +306 -237
  5. package/dist/index.full.min.js +14 -14
  6. package/dist/index.full.min.js.map +1 -1
  7. package/dist/index.full.min.mjs +20 -20
  8. package/dist/index.full.min.mjs.map +1 -1
  9. package/dist/index.full.mjs +307 -238
  10. package/dist/locale/af.js +1 -1
  11. package/dist/locale/af.min.js +1 -1
  12. package/dist/locale/af.min.mjs +1 -1
  13. package/dist/locale/af.mjs +1 -1
  14. package/dist/locale/ar.js +1 -1
  15. package/dist/locale/ar.min.js +1 -1
  16. package/dist/locale/ar.min.mjs +1 -1
  17. package/dist/locale/ar.mjs +1 -1
  18. package/dist/locale/az.js +1 -1
  19. package/dist/locale/az.min.js +1 -1
  20. package/dist/locale/az.min.mjs +1 -1
  21. package/dist/locale/az.mjs +1 -1
  22. package/dist/locale/bg.js +1 -1
  23. package/dist/locale/bg.min.js +1 -1
  24. package/dist/locale/bg.min.mjs +1 -1
  25. package/dist/locale/bg.mjs +1 -1
  26. package/dist/locale/bn.js +1 -1
  27. package/dist/locale/bn.min.js +1 -1
  28. package/dist/locale/bn.min.mjs +1 -1
  29. package/dist/locale/bn.mjs +1 -1
  30. package/dist/locale/ca.js +1 -1
  31. package/dist/locale/ca.min.js +1 -1
  32. package/dist/locale/ca.min.mjs +1 -1
  33. package/dist/locale/ca.mjs +1 -1
  34. package/dist/locale/ckb.js +1 -1
  35. package/dist/locale/ckb.min.js +1 -1
  36. package/dist/locale/ckb.min.mjs +1 -1
  37. package/dist/locale/ckb.mjs +1 -1
  38. package/dist/locale/cs.js +1 -1
  39. package/dist/locale/cs.min.js +1 -1
  40. package/dist/locale/cs.min.mjs +1 -1
  41. package/dist/locale/cs.mjs +1 -1
  42. package/dist/locale/da.js +1 -1
  43. package/dist/locale/da.min.js +1 -1
  44. package/dist/locale/da.min.mjs +1 -1
  45. package/dist/locale/da.mjs +1 -1
  46. package/dist/locale/de.js +1 -1
  47. package/dist/locale/de.min.js +1 -1
  48. package/dist/locale/de.min.mjs +1 -1
  49. package/dist/locale/de.mjs +1 -1
  50. package/dist/locale/el.js +1 -1
  51. package/dist/locale/el.min.js +1 -1
  52. package/dist/locale/el.min.mjs +1 -1
  53. package/dist/locale/el.mjs +1 -1
  54. package/dist/locale/en.js +1 -1
  55. package/dist/locale/en.min.js +1 -1
  56. package/dist/locale/en.min.mjs +1 -1
  57. package/dist/locale/en.mjs +1 -1
  58. package/dist/locale/eo.js +1 -1
  59. package/dist/locale/eo.min.js +1 -1
  60. package/dist/locale/eo.min.mjs +1 -1
  61. package/dist/locale/eo.mjs +1 -1
  62. package/dist/locale/es.js +1 -1
  63. package/dist/locale/es.min.js +1 -1
  64. package/dist/locale/es.min.mjs +1 -1
  65. package/dist/locale/es.mjs +1 -1
  66. package/dist/locale/et.js +1 -1
  67. package/dist/locale/et.min.js +1 -1
  68. package/dist/locale/et.min.mjs +1 -1
  69. package/dist/locale/et.mjs +1 -1
  70. package/dist/locale/eu.js +1 -1
  71. package/dist/locale/eu.min.js +1 -1
  72. package/dist/locale/eu.min.mjs +1 -1
  73. package/dist/locale/eu.mjs +1 -1
  74. package/dist/locale/fa.js +1 -1
  75. package/dist/locale/fa.min.js +1 -1
  76. package/dist/locale/fa.min.mjs +1 -1
  77. package/dist/locale/fa.mjs +1 -1
  78. package/dist/locale/fi.js +1 -1
  79. package/dist/locale/fi.min.js +1 -1
  80. package/dist/locale/fi.min.mjs +1 -1
  81. package/dist/locale/fi.mjs +1 -1
  82. package/dist/locale/fr.js +1 -1
  83. package/dist/locale/fr.min.js +1 -1
  84. package/dist/locale/fr.min.mjs +1 -1
  85. package/dist/locale/fr.mjs +1 -1
  86. package/dist/locale/he.js +1 -1
  87. package/dist/locale/he.min.js +1 -1
  88. package/dist/locale/he.min.mjs +1 -1
  89. package/dist/locale/he.mjs +1 -1
  90. package/dist/locale/hr.js +1 -1
  91. package/dist/locale/hr.min.js +1 -1
  92. package/dist/locale/hr.min.mjs +1 -1
  93. package/dist/locale/hr.mjs +1 -1
  94. package/dist/locale/hu.js +1 -1
  95. package/dist/locale/hu.min.js +1 -1
  96. package/dist/locale/hu.min.mjs +1 -1
  97. package/dist/locale/hu.mjs +1 -1
  98. package/dist/locale/hy-am.js +1 -1
  99. package/dist/locale/hy-am.min.js +1 -1
  100. package/dist/locale/hy-am.min.mjs +1 -1
  101. package/dist/locale/hy-am.mjs +1 -1
  102. package/dist/locale/id.js +1 -1
  103. package/dist/locale/id.min.js +1 -1
  104. package/dist/locale/id.min.mjs +1 -1
  105. package/dist/locale/id.mjs +1 -1
  106. package/dist/locale/it.js +1 -1
  107. package/dist/locale/it.min.js +1 -1
  108. package/dist/locale/it.min.mjs +1 -1
  109. package/dist/locale/it.mjs +1 -1
  110. package/dist/locale/ja.js +1 -1
  111. package/dist/locale/ja.min.js +1 -1
  112. package/dist/locale/ja.min.mjs +1 -1
  113. package/dist/locale/ja.mjs +1 -1
  114. package/dist/locale/kk.js +1 -1
  115. package/dist/locale/kk.min.js +1 -1
  116. package/dist/locale/kk.min.mjs +1 -1
  117. package/dist/locale/kk.mjs +1 -1
  118. package/dist/locale/km.js +1 -1
  119. package/dist/locale/km.min.js +1 -1
  120. package/dist/locale/km.min.mjs +1 -1
  121. package/dist/locale/km.mjs +1 -1
  122. package/dist/locale/ko.js +1 -1
  123. package/dist/locale/ko.min.js +1 -1
  124. package/dist/locale/ko.min.mjs +1 -1
  125. package/dist/locale/ko.mjs +1 -1
  126. package/dist/locale/ku.js +1 -1
  127. package/dist/locale/ku.min.js +1 -1
  128. package/dist/locale/ku.min.mjs +1 -1
  129. package/dist/locale/ku.mjs +1 -1
  130. package/dist/locale/ky.js +1 -1
  131. package/dist/locale/ky.min.js +1 -1
  132. package/dist/locale/ky.min.mjs +1 -1
  133. package/dist/locale/ky.mjs +1 -1
  134. package/dist/locale/lt.js +1 -1
  135. package/dist/locale/lt.min.js +1 -1
  136. package/dist/locale/lt.min.mjs +1 -1
  137. package/dist/locale/lt.mjs +1 -1
  138. package/dist/locale/lv.js +1 -1
  139. package/dist/locale/lv.min.js +1 -1
  140. package/dist/locale/lv.min.mjs +1 -1
  141. package/dist/locale/lv.mjs +1 -1
  142. package/dist/locale/mg.js +1 -1
  143. package/dist/locale/mg.min.js +1 -1
  144. package/dist/locale/mg.min.mjs +1 -1
  145. package/dist/locale/mg.mjs +1 -1
  146. package/dist/locale/mn.js +1 -1
  147. package/dist/locale/mn.min.js +1 -1
  148. package/dist/locale/mn.min.mjs +1 -1
  149. package/dist/locale/mn.mjs +1 -1
  150. package/dist/locale/nb-no.js +1 -1
  151. package/dist/locale/nb-no.min.js +1 -1
  152. package/dist/locale/nb-no.min.mjs +1 -1
  153. package/dist/locale/nb-no.mjs +1 -1
  154. package/dist/locale/nl.js +1 -1
  155. package/dist/locale/nl.min.js +1 -1
  156. package/dist/locale/nl.min.mjs +1 -1
  157. package/dist/locale/nl.mjs +1 -1
  158. package/dist/locale/pa.js +1 -1
  159. package/dist/locale/pa.min.js +1 -1
  160. package/dist/locale/pa.min.mjs +1 -1
  161. package/dist/locale/pa.mjs +1 -1
  162. package/dist/locale/pl.js +1 -1
  163. package/dist/locale/pl.min.js +1 -1
  164. package/dist/locale/pl.min.mjs +1 -1
  165. package/dist/locale/pl.mjs +1 -1
  166. package/dist/locale/pt-br.js +1 -1
  167. package/dist/locale/pt-br.min.js +1 -1
  168. package/dist/locale/pt-br.min.mjs +1 -1
  169. package/dist/locale/pt-br.mjs +1 -1
  170. package/dist/locale/pt.js +1 -1
  171. package/dist/locale/pt.min.js +1 -1
  172. package/dist/locale/pt.min.mjs +1 -1
  173. package/dist/locale/pt.mjs +1 -1
  174. package/dist/locale/ro.js +1 -1
  175. package/dist/locale/ro.min.js +1 -1
  176. package/dist/locale/ro.min.mjs +1 -1
  177. package/dist/locale/ro.mjs +1 -1
  178. package/dist/locale/ru.js +1 -1
  179. package/dist/locale/ru.min.js +1 -1
  180. package/dist/locale/ru.min.mjs +1 -1
  181. package/dist/locale/ru.mjs +1 -1
  182. package/dist/locale/sk.js +1 -1
  183. package/dist/locale/sk.min.js +1 -1
  184. package/dist/locale/sk.min.mjs +1 -1
  185. package/dist/locale/sk.mjs +1 -1
  186. package/dist/locale/sl.js +1 -1
  187. package/dist/locale/sl.min.js +1 -1
  188. package/dist/locale/sl.min.mjs +1 -1
  189. package/dist/locale/sl.mjs +1 -1
  190. package/dist/locale/sr.js +1 -1
  191. package/dist/locale/sr.min.js +1 -1
  192. package/dist/locale/sr.min.mjs +1 -1
  193. package/dist/locale/sr.mjs +1 -1
  194. package/dist/locale/sv.js +1 -1
  195. package/dist/locale/sv.min.js +1 -1
  196. package/dist/locale/sv.min.mjs +1 -1
  197. package/dist/locale/sv.mjs +1 -1
  198. package/dist/locale/ta.js +1 -1
  199. package/dist/locale/ta.min.js +1 -1
  200. package/dist/locale/ta.min.mjs +1 -1
  201. package/dist/locale/ta.mjs +1 -1
  202. package/dist/locale/th.js +13 -13
  203. package/dist/locale/th.min.js +1 -1
  204. package/dist/locale/th.min.js.map +1 -1
  205. package/dist/locale/th.min.mjs +1 -1
  206. package/dist/locale/th.min.mjs.map +1 -1
  207. package/dist/locale/th.mjs +13 -13
  208. package/dist/locale/tk.js +1 -1
  209. package/dist/locale/tk.min.js +1 -1
  210. package/dist/locale/tk.min.mjs +1 -1
  211. package/dist/locale/tk.mjs +1 -1
  212. package/dist/locale/tr.js +1 -1
  213. package/dist/locale/tr.min.js +1 -1
  214. package/dist/locale/tr.min.mjs +1 -1
  215. package/dist/locale/tr.mjs +1 -1
  216. package/dist/locale/ug-cn.js +1 -1
  217. package/dist/locale/ug-cn.min.js +1 -1
  218. package/dist/locale/ug-cn.min.mjs +1 -1
  219. package/dist/locale/ug-cn.mjs +1 -1
  220. package/dist/locale/uk.js +1 -1
  221. package/dist/locale/uk.min.js +1 -1
  222. package/dist/locale/uk.min.mjs +1 -1
  223. package/dist/locale/uk.mjs +1 -1
  224. package/dist/locale/uz-uz.js +1 -1
  225. package/dist/locale/uz-uz.min.js +1 -1
  226. package/dist/locale/uz-uz.min.mjs +1 -1
  227. package/dist/locale/uz-uz.mjs +1 -1
  228. package/dist/locale/vi.js +1 -1
  229. package/dist/locale/vi.min.js +1 -1
  230. package/dist/locale/vi.min.mjs +1 -1
  231. package/dist/locale/vi.mjs +1 -1
  232. package/dist/locale/zh-cn.js +1 -1
  233. package/dist/locale/zh-cn.min.js +1 -1
  234. package/dist/locale/zh-cn.min.mjs +1 -1
  235. package/dist/locale/zh-cn.mjs +1 -1
  236. package/dist/locale/zh-tw.js +1 -1
  237. package/dist/locale/zh-tw.min.js +1 -1
  238. package/dist/locale/zh-tw.min.mjs +1 -1
  239. package/dist/locale/zh-tw.mjs +1 -1
  240. package/es/components/autocomplete/index.d.ts +93 -120
  241. package/es/components/autocomplete/src/autocomplete.vue.d.ts +93 -120
  242. package/es/components/backtop/src/use-backtop.mjs +2 -20
  243. package/es/components/backtop/src/use-backtop.mjs.map +1 -1
  244. package/es/components/carousel/index.d.ts +1 -1
  245. package/es/components/carousel/src/carousel.vue.d.ts +1 -1
  246. package/es/components/cascader/index.d.ts +186 -240
  247. package/es/components/cascader/src/cascader.mjs +2 -2
  248. package/es/components/cascader/src/cascader.mjs.map +1 -1
  249. package/es/components/cascader/src/cascader.vue.d.ts +93 -120
  250. package/es/components/checkbox/index.d.ts +2 -2
  251. package/es/components/checkbox/src/checkbox-button.mjs +2 -2
  252. package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
  253. package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  254. package/es/components/color-picker/index.d.ts +93 -120
  255. package/es/components/color-picker/src/color-picker.vue.d.ts +93 -120
  256. package/es/components/descriptions/src/token.mjs +1 -1
  257. package/es/components/descriptions/src/token.mjs.map +1 -1
  258. package/es/components/dialog/index.d.ts +2 -2
  259. package/es/components/dialog/src/dialog.vue.d.ts +2 -2
  260. package/es/components/dropdown/index.d.ts +62 -80
  261. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  262. package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
  263. package/es/components/dropdown/src/dropdown-item.mjs +9 -7
  264. package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
  265. package/es/components/dropdown/src/dropdown-menu.mjs +3 -3
  266. package/es/components/dropdown/src/dropdown-menu.mjs.map +1 -1
  267. package/es/components/dropdown/src/dropdown.vue.d.ts +62 -80
  268. package/es/components/focus-trap/src/focus-trap.vue.d.ts +2 -2
  269. package/es/components/form/src/form-item2.mjs +2 -2
  270. package/es/components/form/src/form-item2.mjs.map +1 -1
  271. package/es/components/image/index.d.ts +0 -1
  272. package/es/components/image/src/image.vue.d.ts +0 -1
  273. package/es/components/image-viewer/index.d.ts +0 -1
  274. package/es/components/image-viewer/src/image-viewer.vue.d.ts +0 -1
  275. package/es/components/image-viewer/src/image-viewer2.mjs +6 -15
  276. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  277. package/es/components/infinite-scroll/src/index.mjs +5 -4
  278. package/es/components/infinite-scroll/src/index.mjs.map +1 -1
  279. package/es/components/input/src/input2.mjs +1 -1
  280. package/es/components/input/src/input2.mjs.map +1 -1
  281. package/es/components/message/src/instance.d.ts +1 -0
  282. package/es/components/message/src/instance.mjs +5 -1
  283. package/es/components/message/src/instance.mjs.map +1 -1
  284. package/es/components/message/src/message2.mjs +2 -2
  285. package/es/components/message/src/message2.mjs.map +1 -1
  286. package/es/components/pagination/src/components/sizes.vue.d.ts +62 -80
  287. package/es/components/popconfirm/index.d.ts +93 -120
  288. package/es/components/popconfirm/src/popconfirm.vue.d.ts +93 -120
  289. package/es/components/popover/index.d.ts +93 -120
  290. package/es/components/popover/src/popover.vue.d.ts +93 -120
  291. package/es/components/popper/src/arrow.vue.d.ts +1 -0
  292. package/es/components/popper/src/arrow2.mjs +4 -3
  293. package/es/components/popper/src/arrow2.mjs.map +1 -1
  294. package/es/components/popper/src/composables/index.d.ts +3 -0
  295. package/es/components/popper/src/composables/index.mjs +4 -0
  296. package/es/components/popper/src/composables/index.mjs.map +1 -0
  297. package/es/components/popper/src/composables/use-content-dom.d.ts +40 -0
  298. package/es/components/popper/src/composables/use-content-dom.mjs +45 -0
  299. package/es/components/popper/src/composables/use-content-dom.mjs.map +1 -0
  300. package/es/components/popper/src/composables/use-content.d.ts +77 -0
  301. package/es/components/popper/src/composables/use-content.mjs +69 -0
  302. package/es/components/popper/src/composables/use-content.mjs.map +1 -0
  303. package/es/components/popper/src/composables/use-focus-trap.d.ts +12 -0
  304. package/es/components/popper/src/composables/use-focus-trap.mjs +48 -0
  305. package/es/components/popper/src/composables/use-focus-trap.mjs.map +1 -0
  306. package/es/components/popper/src/content.vue.d.ts +30 -41
  307. package/es/components/popper/src/content2.mjs +52 -126
  308. package/es/components/popper/src/content2.mjs.map +1 -1
  309. package/es/components/popper/src/popper2.mjs +1 -1
  310. package/es/components/popper/src/popper2.mjs.map +1 -1
  311. package/es/components/popper/src/utils.d.ts +3 -7
  312. package/es/components/popper/src/utils.mjs +2 -12
  313. package/es/components/popper/src/utils.mjs.map +1 -1
  314. package/es/components/radio/src/radio-button.mjs.map +1 -1
  315. package/es/components/radio/src/radio-group.mjs.map +1 -1
  316. package/es/components/radio/src/radio.mjs.map +1 -1
  317. package/es/components/rate/index.d.ts +21 -77
  318. package/es/components/rate/src/rate.d.ts +6 -26
  319. package/es/components/rate/src/rate.mjs +7 -17
  320. package/es/components/rate/src/rate.mjs.map +1 -1
  321. package/es/components/rate/src/rate.vue.d.ts +21 -77
  322. package/es/components/rate/src/rate2.mjs +1 -1
  323. package/es/components/rate/src/rate2.mjs.map +1 -1
  324. package/es/components/select/index.d.ts +62 -80
  325. package/es/components/select/src/select.vue.d.ts +62 -80
  326. package/es/components/select/src/token.mjs +2 -2
  327. package/es/components/select/src/token.mjs.map +1 -1
  328. package/es/components/select/src/useSelect.d.ts +62 -80
  329. package/es/components/select/src/useSelect.mjs +2 -2
  330. package/es/components/select/src/useSelect.mjs.map +1 -1
  331. package/es/components/select-v2/index.d.ts +124 -160
  332. package/es/components/select-v2/src/select.vue.d.ts +62 -80
  333. package/es/components/select-v2/src/token.mjs +1 -1
  334. package/es/components/select-v2/src/token.mjs.map +1 -1
  335. package/es/components/select-v2/src/useSelect.d.ts +62 -80
  336. package/es/components/slider/index.d.ts +155 -200
  337. package/es/components/slider/src/button.vue.d.ts +31 -40
  338. package/es/components/slider/src/composables/use-slide.d.ts +124 -160
  339. package/es/components/slider/src/slider.vue.d.ts +155 -200
  340. package/es/components/table/index.d.ts +12 -2
  341. package/es/components/table/src/filter-panel.vue.d.ts +62 -80
  342. package/es/components/table/src/store/index.mjs +15 -2
  343. package/es/components/table/src/store/index.mjs.map +1 -1
  344. package/es/components/table/src/store/watcher.mjs +2 -0
  345. package/es/components/table/src/store/watcher.mjs.map +1 -1
  346. package/es/components/table/src/table/defaults.d.ts +8 -2
  347. package/es/components/table/src/table/defaults.mjs +4 -1
  348. package/es/components/table/src/table/defaults.mjs.map +1 -1
  349. package/es/components/table/src/table/key-render-helper.d.ts +2 -0
  350. package/es/components/table/src/table/key-render-helper.mjs +25 -0
  351. package/es/components/table/src/table/key-render-helper.mjs.map +1 -0
  352. package/es/components/table/src/table-column/index.mjs +4 -3
  353. package/es/components/table/src/table-column/index.mjs.map +1 -1
  354. package/es/components/table/src/table-column/render-helper.d.ts +1 -0
  355. package/es/components/table/src/table-column/render-helper.mjs +5 -1
  356. package/es/components/table/src/table-column/render-helper.mjs.map +1 -1
  357. package/es/components/table/src/table.mjs +2 -0
  358. package/es/components/table/src/table.mjs.map +1 -1
  359. package/es/components/table/src/table.vue.d.ts +12 -2
  360. package/es/components/tabs/src/tab-nav.mjs +3 -4
  361. package/es/components/tabs/src/tab-nav.mjs.map +1 -1
  362. package/es/components/time-picker/src/common/picker.vue.d.ts +93 -120
  363. package/es/components/time-select/index.d.ts +248 -320
  364. package/es/components/time-select/src/time-select.vue.d.ts +124 -160
  365. package/es/components/tooltip/index.d.ts +31 -40
  366. package/es/components/tooltip/src/content.vue.d.ts +30 -40
  367. package/es/components/tooltip/src/tooltip.vue.d.ts +31 -40
  368. package/es/components/tooltip-v2/index.d.ts +4 -4
  369. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  370. package/es/components/transfer/index.d.ts +5 -5
  371. package/es/components/transfer/src/transfer-panel.vue.d.ts +1 -1
  372. package/es/components/transfer/src/transfer.vue.d.ts +5 -5
  373. package/es/components/tree/index.d.ts +10 -10
  374. package/es/components/tree/src/model/tree-store.d.ts +3 -3
  375. package/es/components/tree/src/model/tree-store.mjs.map +1 -1
  376. package/es/components/tree/src/tree.mjs.map +1 -1
  377. package/es/components/tree/src/tree.vue.d.ts +5 -5
  378. package/es/components/tree-select/src/tree.mjs +4 -0
  379. package/es/components/tree-select/src/tree.mjs.map +1 -1
  380. package/es/components/tree-v2/index.d.ts +1 -1
  381. package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  382. package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
  383. package/es/components/virtual-list/src/builders/build-grid.mjs +2 -2
  384. package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
  385. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs +3 -6
  386. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs.map +1 -1
  387. package/es/hooks/use-popper/index.d.ts +60 -2
  388. package/es/hooks/use-popper/index.mjs +2 -2
  389. package/es/hooks/use-popper/index.mjs.map +1 -1
  390. package/es/locale/lang/th.mjs +12 -12
  391. package/es/locale/lang/th.mjs.map +1 -1
  392. package/es/tokens/popper.d.ts +2 -1
  393. package/es/tokens/popper.mjs.map +1 -1
  394. package/es/utils/index.d.ts +0 -1
  395. package/es/utils/index.mjs +0 -1
  396. package/es/utils/index.mjs.map +1 -1
  397. package/es/version.d.ts +1 -1
  398. package/es/version.mjs +1 -1
  399. package/es/version.mjs.map +1 -1
  400. package/lib/components/autocomplete/index.d.ts +93 -120
  401. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +93 -120
  402. package/lib/components/backtop/src/use-backtop.js +2 -20
  403. package/lib/components/backtop/src/use-backtop.js.map +1 -1
  404. package/lib/components/carousel/index.d.ts +1 -1
  405. package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
  406. package/lib/components/cascader/index.d.ts +186 -240
  407. package/lib/components/cascader/src/cascader.js +2 -2
  408. package/lib/components/cascader/src/cascader.js.map +1 -1
  409. package/lib/components/cascader/src/cascader.vue.d.ts +93 -120
  410. package/lib/components/checkbox/index.d.ts +2 -2
  411. package/lib/components/checkbox/src/checkbox-button.js +2 -2
  412. package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
  413. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  414. package/lib/components/color-picker/index.d.ts +93 -120
  415. package/lib/components/color-picker/src/color-picker.vue.d.ts +93 -120
  416. package/lib/components/descriptions/src/token.js +1 -1
  417. package/lib/components/descriptions/src/token.js.map +1 -1
  418. package/lib/components/dialog/index.d.ts +2 -2
  419. package/lib/components/dialog/src/dialog.vue.d.ts +2 -2
  420. package/lib/components/dropdown/index.d.ts +62 -80
  421. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  422. package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
  423. package/lib/components/dropdown/src/dropdown-item.js +9 -7
  424. package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
  425. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  426. package/lib/components/dropdown/src/dropdown-menu.js.map +1 -1
  427. package/lib/components/dropdown/src/dropdown.vue.d.ts +62 -80
  428. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +2 -2
  429. package/lib/components/form/src/form-item2.js +1 -1
  430. package/lib/components/form/src/form-item2.js.map +1 -1
  431. package/lib/components/image/index.d.ts +0 -1
  432. package/lib/components/image/src/image.vue.d.ts +0 -1
  433. package/lib/components/image-viewer/index.d.ts +0 -1
  434. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +0 -1
  435. package/lib/components/image-viewer/src/image-viewer2.js +6 -15
  436. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  437. package/lib/components/infinite-scroll/src/index.js +5 -4
  438. package/lib/components/infinite-scroll/src/index.js.map +1 -1
  439. package/lib/components/input/src/input2.js +1 -1
  440. package/lib/components/input/src/input2.js.map +1 -1
  441. package/lib/components/message/src/instance.d.ts +1 -0
  442. package/lib/components/message/src/instance.js +5 -0
  443. package/lib/components/message/src/instance.js.map +1 -1
  444. package/lib/components/message/src/message2.js +1 -1
  445. package/lib/components/message/src/message2.js.map +1 -1
  446. package/lib/components/pagination/src/components/sizes.vue.d.ts +62 -80
  447. package/lib/components/popconfirm/index.d.ts +93 -120
  448. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +93 -120
  449. package/lib/components/popover/index.d.ts +93 -120
  450. package/lib/components/popover/src/popover.vue.d.ts +93 -120
  451. package/lib/components/popper/src/arrow.vue.d.ts +1 -0
  452. package/lib/components/popper/src/arrow2.js +3 -2
  453. package/lib/components/popper/src/arrow2.js.map +1 -1
  454. package/lib/components/popper/src/composables/index.d.ts +3 -0
  455. package/lib/components/popper/src/composables/index.js +14 -0
  456. package/lib/components/popper/src/composables/index.js.map +1 -0
  457. package/lib/components/popper/src/composables/use-content-dom.d.ts +40 -0
  458. package/lib/components/popper/src/composables/use-content-dom.js +49 -0
  459. package/lib/components/popper/src/composables/use-content-dom.js.map +1 -0
  460. package/lib/components/popper/src/composables/use-content.d.ts +77 -0
  461. package/lib/components/popper/src/composables/use-content.js +73 -0
  462. package/lib/components/popper/src/composables/use-content.js.map +1 -0
  463. package/lib/components/popper/src/composables/use-focus-trap.d.ts +12 -0
  464. package/lib/components/popper/src/composables/use-focus-trap.js +52 -0
  465. package/lib/components/popper/src/composables/use-focus-trap.js.map +1 -0
  466. package/lib/components/popper/src/content.vue.d.ts +30 -41
  467. package/lib/components/popper/src/content2.js +51 -125
  468. package/lib/components/popper/src/content2.js.map +1 -1
  469. package/lib/components/popper/src/popper2.js +1 -1
  470. package/lib/components/popper/src/popper2.js.map +1 -1
  471. package/lib/components/popper/src/utils.d.ts +3 -7
  472. package/lib/components/popper/src/utils.js +2 -12
  473. package/lib/components/popper/src/utils.js.map +1 -1
  474. package/lib/components/radio/src/radio-button.js.map +1 -1
  475. package/lib/components/radio/src/radio-group.js.map +1 -1
  476. package/lib/components/radio/src/radio.js.map +1 -1
  477. package/lib/components/rate/index.d.ts +21 -77
  478. package/lib/components/rate/src/rate.d.ts +6 -26
  479. package/lib/components/rate/src/rate.js +7 -17
  480. package/lib/components/rate/src/rate.js.map +1 -1
  481. package/lib/components/rate/src/rate.vue.d.ts +21 -77
  482. package/lib/components/rate/src/rate2.js +1 -1
  483. package/lib/components/rate/src/rate2.js.map +1 -1
  484. package/lib/components/select/index.d.ts +62 -80
  485. package/lib/components/select/src/select.vue.d.ts +62 -80
  486. package/lib/components/select/src/token.js +2 -2
  487. package/lib/components/select/src/token.js.map +1 -1
  488. package/lib/components/select/src/useSelect.d.ts +62 -80
  489. package/lib/components/select/src/useSelect.js +2 -2
  490. package/lib/components/select/src/useSelect.js.map +1 -1
  491. package/lib/components/select-v2/index.d.ts +124 -160
  492. package/lib/components/select-v2/src/select.vue.d.ts +62 -80
  493. package/lib/components/select-v2/src/token.js +1 -1
  494. package/lib/components/select-v2/src/token.js.map +1 -1
  495. package/lib/components/select-v2/src/useSelect.d.ts +62 -80
  496. package/lib/components/slider/index.d.ts +155 -200
  497. package/lib/components/slider/src/button.vue.d.ts +31 -40
  498. package/lib/components/slider/src/composables/use-slide.d.ts +124 -160
  499. package/lib/components/slider/src/slider.vue.d.ts +155 -200
  500. package/lib/components/table/index.d.ts +12 -2
  501. package/lib/components/table/src/filter-panel.vue.d.ts +62 -80
  502. package/lib/components/table/src/store/index.js +15 -2
  503. package/lib/components/table/src/store/index.js.map +1 -1
  504. package/lib/components/table/src/store/watcher.js +2 -0
  505. package/lib/components/table/src/store/watcher.js.map +1 -1
  506. package/lib/components/table/src/table/defaults.d.ts +8 -2
  507. package/lib/components/table/src/table/defaults.js +4 -1
  508. package/lib/components/table/src/table/defaults.js.map +1 -1
  509. package/lib/components/table/src/table/key-render-helper.d.ts +2 -0
  510. package/lib/components/table/src/table/key-render-helper.js +29 -0
  511. package/lib/components/table/src/table/key-render-helper.js.map +1 -0
  512. package/lib/components/table/src/table-column/index.js +4 -3
  513. package/lib/components/table/src/table-column/index.js.map +1 -1
  514. package/lib/components/table/src/table-column/render-helper.d.ts +1 -0
  515. package/lib/components/table/src/table-column/render-helper.js +5 -1
  516. package/lib/components/table/src/table-column/render-helper.js.map +1 -1
  517. package/lib/components/table/src/table.js +2 -0
  518. package/lib/components/table/src/table.js.map +1 -1
  519. package/lib/components/table/src/table.vue.d.ts +12 -2
  520. package/lib/components/tabs/src/tab-nav.js +3 -4
  521. package/lib/components/tabs/src/tab-nav.js.map +1 -1
  522. package/lib/components/time-picker/src/common/picker.vue.d.ts +93 -120
  523. package/lib/components/time-select/index.d.ts +248 -320
  524. package/lib/components/time-select/src/time-select.vue.d.ts +124 -160
  525. package/lib/components/tooltip/index.d.ts +31 -40
  526. package/lib/components/tooltip/src/content.vue.d.ts +30 -40
  527. package/lib/components/tooltip/src/tooltip.vue.d.ts +31 -40
  528. package/lib/components/tooltip-v2/index.d.ts +4 -4
  529. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  530. package/lib/components/transfer/index.d.ts +5 -5
  531. package/lib/components/transfer/src/transfer-panel.vue.d.ts +1 -1
  532. package/lib/components/transfer/src/transfer.vue.d.ts +5 -5
  533. package/lib/components/tree/index.d.ts +10 -10
  534. package/lib/components/tree/src/model/tree-store.d.ts +3 -3
  535. package/lib/components/tree/src/model/tree-store.js.map +1 -1
  536. package/lib/components/tree/src/tree.js.map +1 -1
  537. package/lib/components/tree/src/tree.vue.d.ts +5 -5
  538. package/lib/components/tree-select/src/tree.js +4 -0
  539. package/lib/components/tree-select/src/tree.js.map +1 -1
  540. package/lib/components/tree-v2/index.d.ts +1 -1
  541. package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  542. package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
  543. package/lib/components/virtual-list/src/builders/build-grid.js +2 -2
  544. package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
  545. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js +3 -6
  546. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js.map +1 -1
  547. package/lib/hooks/use-popper/index.d.ts +60 -2
  548. package/lib/hooks/use-popper/index.js +2 -2
  549. package/lib/hooks/use-popper/index.js.map +1 -1
  550. package/lib/locale/lang/th.js +12 -12
  551. package/lib/locale/lang/th.js.map +1 -1
  552. package/lib/tokens/popper.d.ts +2 -1
  553. package/lib/tokens/popper.js.map +1 -1
  554. package/lib/utils/index.d.ts +0 -1
  555. package/lib/utils/index.js +0 -3
  556. package/lib/utils/index.js.map +1 -1
  557. package/lib/version.d.ts +1 -1
  558. package/lib/version.js +1 -1
  559. package/lib/version.js.map +1 -1
  560. package/package.json +2 -2
  561. package/tags.json +1 -1
  562. package/theme-chalk/el-badge.css +1 -1
  563. package/theme-chalk/el-dialog.css +1 -1
  564. package/theme-chalk/el-table.css +1 -1
  565. package/theme-chalk/index.css +1 -1
  566. package/theme-chalk/src/badge.scss +2 -0
  567. package/theme-chalk/src/dialog.scss +0 -2
  568. package/theme-chalk/src/menu.scss +4 -1
  569. package/theme-chalk/src/table.scss +1 -1
  570. package/web-types.json +1 -1
  571. package/es/utils/animation.d.ts +0 -2
  572. package/es/utils/animation.mjs +0 -7
  573. package/es/utils/animation.mjs.map +0 -1
  574. package/lib/utils/animation.d.ts +0 -2
  575. package/lib/utils/animation.js +0 -12
  576. package/lib/utils/animation.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../../packages/components/popper/src/utils.ts"],"sourcesContent":["import { isClient, unrefElement } from '@vueuse/core'\n\nimport type { ComponentPublicInstance } from 'vue'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { Measurable } from '@element-plus/tokens'\nimport type { PopperCoreConfigProps } from './content'\n\ntype ArrowProps = {\n arrowEl: HTMLElement | undefined\n arrowOffset: number | undefined\n}\n\nexport const buildPopperOptions = (\n props: PopperCoreConfigProps,\n arrowProps: ArrowProps\n) => {\n const { placement, strategy, popperOptions } = props\n const options = {\n placement,\n strategy,\n ...popperOptions,\n modifiers: genModifiers(props),\n }\n\n attachArrow(options, arrowProps)\n deriveExtraModifiers(options, popperOptions?.modifiers)\n return options\n}\n\nexport const unwrapMeasurableEl = (\n $el: MaybeRef<Measurable | undefined | ComponentPublicInstance>\n) => {\n if (!isClient) return\n return unrefElement($el as HTMLElement)\n}\n\nfunction genModifiers(options: PopperCoreConfigProps) {\n const { offset, gpuAcceleration, fallbackPlacements } = options\n return [\n {\n name: 'offset',\n options: {\n offset: [0, offset ?? 12],\n },\n },\n {\n name: 'preventOverflow',\n options: {\n padding: {\n top: 2,\n bottom: 2,\n left: 5,\n right: 5,\n },\n },\n },\n {\n name: 'flip',\n options: {\n padding: 5,\n fallbackPlacements,\n },\n },\n {\n name: 'computeStyles',\n options: {\n gpuAcceleration,\n },\n },\n ]\n}\n\nfunction attachArrow(options: any, { arrowEl, arrowOffset }: ArrowProps) {\n options.modifiers.push({\n name: 'arrow',\n options: {\n element: arrowEl,\n padding: arrowOffset ?? 5,\n },\n } as any)\n}\n\nfunction deriveExtraModifiers(\n options: any,\n modifiers: PopperCoreConfigProps['popperOptions']['modifiers']\n) {\n if (modifiers) {\n options.modifiers = [...options.modifiers, ...(modifiers ?? [])]\n }\n}\n"],"names":["isClient","unrefElement"],"mappings":";;;;;;AACY,MAAC,kBAAkB,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK;AACzD,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;AACvD,EAAE,MAAM,OAAO,GAAG;AAClB,IAAI,SAAS;AACb,IAAI,QAAQ;AACZ,IAAI,GAAG,aAAa;AACpB,IAAI,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC;AAClC,GAAG,CAAC;AACJ,EAAE,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AACnC,EAAE,oBAAoB,CAAC,OAAO,EAAE,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAC1F,EAAE,OAAO,OAAO,CAAC;AACjB,EAAE;AACU,MAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK;AAC3C,EAAE,IAAI,CAACA,aAAQ;AACf,IAAI,OAAO;AACX,EAAE,OAAOC,iBAAY,CAAC,GAAG,CAAC,CAAC;AAC3B,EAAE;AACF,SAAS,YAAY,CAAC,OAAO,EAAE;AAC/B,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;AAClE,EAAE,OAAO;AACT,IAAI;AACJ,MAAM,IAAI,EAAE,QAAQ;AACpB,MAAM,OAAO,EAAE;AACf,QAAQ,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,IAAI,IAAI,GAAG,MAAM,GAAG,EAAE,CAAC;AACjD,OAAO;AACP,KAAK;AACL,IAAI;AACJ,MAAM,IAAI,EAAE,iBAAiB;AAC7B,MAAM,OAAO,EAAE;AACf,QAAQ,OAAO,EAAE;AACjB,UAAU,GAAG,EAAE,CAAC;AAChB,UAAU,MAAM,EAAE,CAAC;AACnB,UAAU,IAAI,EAAE,CAAC;AACjB,UAAU,KAAK,EAAE,CAAC;AAClB,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI;AACJ,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE;AACf,QAAQ,OAAO,EAAE,CAAC;AAClB,QAAQ,kBAAkB;AAC1B,OAAO;AACP,KAAK;AACL,IAAI;AACJ,MAAM,IAAI,EAAE,eAAe;AAC3B,MAAM,OAAO,EAAE;AACf,QAAQ,eAAe;AACvB,OAAO;AACP,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;AACD,SAAS,WAAW,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;AACxD,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;AACzB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE;AACb,MAAM,OAAO,EAAE,OAAO;AACtB,MAAM,OAAO,EAAE,WAAW,IAAI,IAAI,GAAG,WAAW,GAAG,CAAC;AACpD,KAAK;AACL,GAAG,CAAC,CAAC;AACL,CAAC;AACD,SAAS,oBAAoB,CAAC,OAAO,EAAE,SAAS,EAAE;AAClD,EAAE,IAAI,SAAS,EAAE;AACjB,IAAI,OAAO,CAAC,SAAS,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,SAAS,IAAI,IAAI,GAAG,SAAS,GAAG,EAAE,CAAC,CAAC;AACtF,GAAG;AACH;;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../packages/components/popper/src/utils.ts"],"sourcesContent":["import { isClient, unrefElement } from '@vueuse/core'\n\nimport type { ComponentPublicInstance } from 'vue'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { Modifier } from '@popperjs/core'\nimport type { Measurable } from '@element-plus/tokens'\nimport type { PopperCoreConfigProps } from './content'\n\nexport const buildPopperOptions = (\n props: PopperCoreConfigProps,\n modifiers: Modifier<any, any>[] = []\n) => {\n const { placement, strategy, popperOptions } = props\n const options = {\n placement,\n strategy,\n ...popperOptions,\n modifiers: [...genModifiers(props), ...modifiers],\n }\n\n deriveExtraModifiers(options, popperOptions?.modifiers)\n return options\n}\n\nexport const unwrapMeasurableEl = (\n $el: MaybeRef<Measurable | undefined | ComponentPublicInstance>\n) => {\n if (!isClient) return\n return unrefElement($el as HTMLElement)\n}\n\nfunction genModifiers(options: PopperCoreConfigProps) {\n const { offset, gpuAcceleration, fallbackPlacements } = options\n return [\n {\n name: 'offset',\n options: {\n offset: [0, offset ?? 12],\n },\n },\n {\n name: 'preventOverflow',\n options: {\n padding: {\n top: 2,\n bottom: 2,\n left: 5,\n right: 5,\n },\n },\n },\n {\n name: 'flip',\n options: {\n padding: 5,\n fallbackPlacements,\n },\n },\n {\n name: 'computeStyles',\n options: {\n gpuAcceleration,\n },\n },\n ]\n}\n\nfunction deriveExtraModifiers(\n options: any,\n modifiers: PopperCoreConfigProps['popperOptions']['modifiers']\n) {\n if (modifiers) {\n options.modifiers = [...options.modifiers, ...(modifiers ?? [])]\n }\n}\n"],"names":["isClient","unrefElement"],"mappings":";;;;;;AACY,MAAC,kBAAkB,GAAG,CAAC,KAAK,EAAE,SAAS,GAAG,EAAE,KAAK;AAC7D,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;AACvD,EAAE,MAAM,OAAO,GAAG;AAClB,IAAI,SAAS;AACb,IAAI,QAAQ;AACZ,IAAI,GAAG,aAAa;AACpB,IAAI,SAAS,EAAE,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC;AACrD,GAAG,CAAC;AACJ,EAAE,oBAAoB,CAAC,OAAO,EAAE,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAC1F,EAAE,OAAO,OAAO,CAAC;AACjB,EAAE;AACU,MAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK;AAC3C,EAAE,IAAI,CAACA,aAAQ;AACf,IAAI,OAAO;AACX,EAAE,OAAOC,iBAAY,CAAC,GAAG,CAAC,CAAC;AAC3B,EAAE;AACF,SAAS,YAAY,CAAC,OAAO,EAAE;AAC/B,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;AAClE,EAAE,OAAO;AACT,IAAI;AACJ,MAAM,IAAI,EAAE,QAAQ;AACpB,MAAM,OAAO,EAAE;AACf,QAAQ,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,IAAI,IAAI,GAAG,MAAM,GAAG,EAAE,CAAC;AACjD,OAAO;AACP,KAAK;AACL,IAAI;AACJ,MAAM,IAAI,EAAE,iBAAiB;AAC7B,MAAM,OAAO,EAAE;AACf,QAAQ,OAAO,EAAE;AACjB,UAAU,GAAG,EAAE,CAAC;AAChB,UAAU,MAAM,EAAE,CAAC;AACnB,UAAU,IAAI,EAAE,CAAC;AACjB,UAAU,KAAK,EAAE,CAAC;AAClB,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI;AACJ,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE;AACf,QAAQ,OAAO,EAAE,CAAC;AAClB,QAAQ,kBAAkB;AAC1B,OAAO;AACP,KAAK;AACL,IAAI;AACJ,MAAM,IAAI,EAAE,eAAe;AAC3B,MAAM,OAAO,EAAE;AACf,QAAQ,eAAe;AACvB,OAAO;AACP,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;AACD,SAAS,oBAAoB,CAAC,OAAO,EAAE,SAAS,EAAE;AAClD,EAAE,IAAI,SAAS,EAAE;AACjB,IAAI,OAAO,CAAC,SAAS,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,SAAS,IAAI,IAAI,GAAG,SAAS,GAAG,EAAE,CAAC,CAAC;AACtF,GAAG;AACH;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.js","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n name: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":["buildProps","radioPropsBase"],"mappings":";;;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,GAAGC,oBAAc;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"radio-button.js","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":["buildProps","radioPropsBase"],"mappings":";;;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,GAAGC,oBAAc;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sources":["../../../../../../packages/components/radio/src/radio-group.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { radioEmits } from './radio'\nimport type { ExtractPropTypes } from '@vue/runtime-core'\nimport type RadioGroup from './radio-group.vue'\n\nexport const radioGroupProps = buildProps({\n id: {\n type: String,\n default: undefined,\n },\n size: useSizeProp,\n disabled: Boolean,\n modelValue: {\n type: [String, Number, Boolean],\n default: '',\n },\n fill: {\n type: String,\n default: '',\n },\n label: {\n type: String,\n default: undefined,\n },\n textColor: {\n type: String,\n default: '',\n },\n name: {\n type: String,\n default: undefined,\n },\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>\n\nexport const radioGroupEmits = radioEmits\nexport type RadioGroupEmits = typeof radioGroupEmits\nexport type RadioGroupInstance = InstanceType<typeof RadioGroup>\n"],"names":["buildProps","useSizeProp","radioEmits"],"mappings":";;;;;;;;;;AAGY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAGC;;;;;"}
1
+ {"version":3,"file":"radio-group.js","sources":["../../../../../../packages/components/radio/src/radio-group.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { radioEmits } from './radio'\nimport type { ExtractPropTypes } from '@vue/runtime-core'\nimport type RadioGroup from './radio-group.vue'\n\nexport const radioGroupProps = buildProps({\n /**\n * @description native `id` attribute\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description the size of radio buttons or bordered radios\n */\n size: useSizeProp,\n /**\n * @description whether the nesting radios are disabled\n */\n disabled: Boolean,\n /**\n * @description binding value\n */\n modelValue: {\n type: [String, Number, Boolean],\n default: '',\n },\n /**\n * @description border and background color when button is active\n */\n fill: {\n type: String,\n default: '',\n },\n /**\n * @description same as `aria-label` in RadioGroup\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description font color when button is active\n */\n textColor: {\n type: String,\n default: '',\n },\n /**\n * @description native `name` attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>\n\nexport const radioGroupEmits = radioEmits\nexport type RadioGroupEmits = typeof radioGroupEmits\nexport type RadioGroupInstance = InstanceType<typeof RadioGroup>\n"],"names":["buildProps","useSizeProp","radioEmits"],"mappings":";;;;;;;;;;AAGY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAGC;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"radio.js","sources":["../../../../../../packages/components/radio/src/radio.ts"],"sourcesContent":["import { buildProps, isBoolean, isNumber, isString } from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport type { ExtractPropTypes } from 'vue'\nimport type Radio from './radio.vue'\n\nexport const radioPropsBase = buildProps({\n size: useSizeProp,\n disabled: Boolean,\n label: {\n type: [String, Number, Boolean],\n default: '',\n },\n})\n\nexport const radioProps = buildProps({\n ...radioPropsBase,\n modelValue: {\n type: [String, Number, Boolean],\n default: '',\n },\n name: {\n type: String,\n default: '',\n },\n border: Boolean,\n} as const)\n\nexport const radioEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | number | boolean) =>\n isString(val) || isNumber(val) || isBoolean(val),\n [CHANGE_EVENT]: (val: string | number | boolean) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>\nexport type RadioEmits = typeof radioEmits\nexport type RadioInstance = InstanceType<typeof Radio>\n"],"names":["buildProps","useSizeProp","UPDATE_MODEL_EVENT","isString","isNumber","isBoolean","CHANGE_EVENT"],"mappings":";;;;;;;;;;;;;AAGY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAGD,kBAAU,CAAC;AACrC,EAAE,GAAG,cAAc;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAACE,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,aAAQ,CAAC,GAAG,CAAC,IAAIC,cAAS,CAAC,GAAG,CAAC;AACjF,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKH,eAAQ,CAAC,GAAG,CAAC,IAAIC,aAAQ,CAAC,GAAG,CAAC,IAAIC,cAAS,CAAC,GAAG,CAAC;AAC3E;;;;;;"}
1
+ {"version":3,"file":"radio.js","sources":["../../../../../../packages/components/radio/src/radio.ts"],"sourcesContent":["import { buildProps, isBoolean, isNumber, isString } from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport type { ExtractPropTypes } from 'vue'\nimport type Radio from './radio.vue'\n\nexport const radioPropsBase = buildProps({\n /**\n * @description size of the Radio\n */\n size: useSizeProp,\n /**\n * @description whether Radio is disabled\n */\n disabled: Boolean,\n /**\n * @description the value of Radio\n */\n label: {\n type: [String, Number, Boolean],\n default: '',\n },\n})\n\nexport const radioProps = buildProps({\n ...radioPropsBase,\n /**\n * @description binding value\n */\n modelValue: {\n type: [String, Number, Boolean],\n default: '',\n },\n /**\n * @description native `name` attribute\n */\n name: {\n type: String,\n default: '',\n },\n /**\n * @description whether to add a border around Radio\n */\n border: Boolean,\n} as const)\n\nexport const radioEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | number | boolean) =>\n isString(val) || isNumber(val) || isBoolean(val),\n [CHANGE_EVENT]: (val: string | number | boolean) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>\nexport type RadioEmits = typeof radioEmits\nexport type RadioInstance = InstanceType<typeof Radio>\n"],"names":["buildProps","useSizeProp","UPDATE_MODEL_EVENT","isString","isNumber","isBoolean","CHANGE_EVENT"],"mappings":";;;;;;;;;;;;;AAGY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAGD,kBAAU,CAAC;AACrC,EAAE,GAAG,cAAc;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAACE,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,aAAQ,CAAC,GAAG,CAAC,IAAIC,cAAS,CAAC,GAAG,CAAC;AACjF,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKH,eAAQ,CAAC,GAAG,CAAC,IAAIC,aAAQ,CAAC,GAAG,CAAC,IAAIC,cAAS,CAAC,GAAG,CAAC;AAC3E;;;;;;"}
@@ -10,35 +10,15 @@ export declare const ElRate: import("element-plus/es/utils").SFCWithInstall<impo
10
10
  readonly icons: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>[], boolean>;
11
11
  readonly voidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
12
12
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
13
- readonly disabled: {
14
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
15
- readonly required: false;
16
- readonly validator: ((val: unknown) => boolean) | undefined;
17
- __epPropKey: true;
18
- };
19
- readonly allowHalf: {
20
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
21
- readonly required: false;
22
- readonly validator: ((val: unknown) => boolean) | undefined;
23
- __epPropKey: true;
24
- };
25
- readonly showText: {
26
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
27
- readonly required: false;
28
- readonly validator: ((val: unknown) => boolean) | undefined;
29
- __epPropKey: true;
30
- };
31
- readonly showScore: {
32
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
33
- readonly required: false;
34
- readonly validator: ((val: unknown) => boolean) | undefined;
35
- __epPropKey: true;
36
- };
13
+ readonly disabled: BooleanConstructor;
14
+ readonly allowHalf: BooleanConstructor;
15
+ readonly showText: BooleanConstructor;
16
+ readonly showScore: BooleanConstructor;
37
17
  readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
38
18
  readonly texts: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
39
19
  readonly scoreTemplate: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
40
20
  readonly size: {
41
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
21
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
42
22
  readonly required: false;
43
23
  readonly validator: ((val: unknown) => boolean) | undefined;
44
24
  __epPropKey: true;
@@ -65,35 +45,15 @@ export declare const ElRate: import("element-plus/es/utils").SFCWithInstall<impo
65
45
  readonly icons: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>[], boolean>;
66
46
  readonly voidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
67
47
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
68
- readonly disabled: {
69
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
70
- readonly required: false;
71
- readonly validator: ((val: unknown) => boolean) | undefined;
72
- __epPropKey: true;
73
- };
74
- readonly allowHalf: {
75
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
76
- readonly required: false;
77
- readonly validator: ((val: unknown) => boolean) | undefined;
78
- __epPropKey: true;
79
- };
80
- readonly showText: {
81
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
82
- readonly required: false;
83
- readonly validator: ((val: unknown) => boolean) | undefined;
84
- __epPropKey: true;
85
- };
86
- readonly showScore: {
87
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
88
- readonly required: false;
89
- readonly validator: ((val: unknown) => boolean) | undefined;
90
- __epPropKey: true;
91
- };
48
+ readonly disabled: BooleanConstructor;
49
+ readonly allowHalf: BooleanConstructor;
50
+ readonly showText: BooleanConstructor;
51
+ readonly showScore: BooleanConstructor;
92
52
  readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
93
53
  readonly texts: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
94
54
  readonly scoreTemplate: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
95
55
  readonly size: {
96
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
56
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
97
57
  readonly required: false;
98
58
  readonly validator: ((val: unknown) => boolean) | undefined;
99
59
  __epPropKey: true;
@@ -179,11 +139,11 @@ export declare const ElRate: import("element-plus/es/utils").SFCWithInstall<impo
179
139
  __isSuspense?: undefined;
180
140
  };
181
141
  }>;
182
- showDecimalIcon: (item: number) => boolean | undefined;
142
+ showDecimalIcon: (item: number) => boolean;
183
143
  emitValue: (value: number) => void;
184
144
  selectValue: (value: number) => void;
185
145
  handleKey: (e: KeyboardEvent) => number | undefined;
186
- setCurrentValue: (value: number, event: MouseEvent) => void;
146
+ setCurrentValue: (value: number, event?: MouseEvent | undefined) => void;
187
147
  resetCurrentValue: () => void;
188
148
  ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
189
149
  readonly size: {
@@ -263,35 +223,15 @@ export declare const ElRate: import("element-plus/es/utils").SFCWithInstall<impo
263
223
  readonly icons: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>[], boolean>;
264
224
  readonly voidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
265
225
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
266
- readonly disabled: {
267
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
268
- readonly required: false;
269
- readonly validator: ((val: unknown) => boolean) | undefined;
270
- __epPropKey: true;
271
- };
272
- readonly allowHalf: {
273
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
274
- readonly required: false;
275
- readonly validator: ((val: unknown) => boolean) | undefined;
276
- __epPropKey: true;
277
- };
278
- readonly showText: {
279
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
280
- readonly required: false;
281
- readonly validator: ((val: unknown) => boolean) | undefined;
282
- __epPropKey: true;
283
- };
284
- readonly showScore: {
285
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
286
- readonly required: false;
287
- readonly validator: ((val: unknown) => boolean) | undefined;
288
- __epPropKey: true;
289
- };
226
+ readonly disabled: BooleanConstructor;
227
+ readonly allowHalf: BooleanConstructor;
228
+ readonly showText: BooleanConstructor;
229
+ readonly showScore: BooleanConstructor;
290
230
  readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
291
231
  readonly texts: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
292
232
  readonly scoreTemplate: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
293
233
  readonly size: {
294
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
234
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
295
235
  readonly required: false;
296
236
  readonly validator: ((val: unknown) => boolean) | undefined;
297
237
  __epPropKey: true;
@@ -302,6 +242,7 @@ export declare const ElRate: import("element-plus/es/utils").SFCWithInstall<impo
302
242
  onChange?: ((value: number) => any) | undefined;
303
243
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
304
244
  }, {
245
+ readonly disabled: boolean;
305
246
  readonly label: string;
306
247
  readonly modelValue: number;
307
248
  readonly max: number;
@@ -309,6 +250,7 @@ export declare const ElRate: import("element-plus/es/utils").SFCWithInstall<impo
309
250
  readonly id: string;
310
251
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
311
252
  readonly colors: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string[] | Record<number, string>) | (() => string[] | Record<number, string>) | ((new (...args: any[]) => string[] | Record<number, string>) | (() => string[] | Record<number, string>))[], unknown, unknown>;
253
+ readonly showText: boolean;
312
254
  readonly lowThreshold: number;
313
255
  readonly highThreshold: number;
314
256
  readonly voidColor: string;
@@ -318,6 +260,8 @@ export declare const ElRate: import("element-plus/es/utils").SFCWithInstall<impo
318
260
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
319
261
  readonly texts: string[];
320
262
  readonly scoreTemplate: string;
263
+ readonly allowHalf: boolean;
264
+ readonly showScore: boolean;
321
265
  }>> & Record<string, any>;
322
266
  export default ElRate;
323
267
  export * from './src/rate';
@@ -1,4 +1,4 @@
1
- import type { Component, ExtractPropTypes, PropType } from 'vue';
1
+ import type { Component, ExtractPropTypes } from 'vue';
2
2
  import type Rate from './rate.vue';
3
3
  export declare const rateProps: {
4
4
  readonly modelValue: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
@@ -12,35 +12,15 @@ export declare const rateProps: {
12
12
  readonly icons: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>[], boolean>;
13
13
  readonly voidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>, boolean>;
14
14
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>, boolean>;
15
- readonly disabled: {
16
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
17
- readonly required: false;
18
- readonly validator: ((val: unknown) => boolean) | undefined;
19
- __epPropKey: true;
20
- };
21
- readonly allowHalf: {
22
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
23
- readonly required: false;
24
- readonly validator: ((val: unknown) => boolean) | undefined;
25
- __epPropKey: true;
26
- };
27
- readonly showText: {
28
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
29
- readonly required: false;
30
- readonly validator: ((val: unknown) => boolean) | undefined;
31
- __epPropKey: true;
32
- };
33
- readonly showScore: {
34
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
35
- readonly required: false;
36
- readonly validator: ((val: unknown) => boolean) | undefined;
37
- __epPropKey: true;
38
- };
15
+ readonly disabled: BooleanConstructor;
16
+ readonly allowHalf: BooleanConstructor;
17
+ readonly showText: BooleanConstructor;
18
+ readonly showScore: BooleanConstructor;
39
19
  readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
40
20
  readonly texts: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
41
21
  readonly scoreTemplate: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
42
22
  readonly size: {
43
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
23
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
44
24
  readonly required: false;
45
25
  readonly validator: ((val: unknown) => boolean) | undefined;
46
26
  __epPropKey: true;
@@ -5,10 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var iconsVue = require('@element-plus/icons-vue');
6
6
  require('../../../constants/index.js');
7
7
  require('../../../utils/index.js');
8
+ require('../../../hooks/index.js');
8
9
  var runtime = require('../../../utils/vue/props/runtime.js');
9
10
  var typescript = require('../../../utils/typescript.js');
10
11
  var icon = require('../../../utils/vue/icon.js');
11
- var validator = require('../../../utils/vue/validator.js');
12
+ var index = require('../../../hooks/use-common-props/index.js');
12
13
  var event = require('../../../constants/event.js');
13
14
  var core = require('@vueuse/core');
14
15
 
@@ -57,18 +58,10 @@ const rateProps = runtime.buildProps({
57
58
  type: icon.iconPropType,
58
59
  default: () => iconsVue.StarFilled
59
60
  },
60
- disabled: {
61
- type: Boolean
62
- },
63
- allowHalf: {
64
- type: Boolean
65
- },
66
- showText: {
67
- type: Boolean
68
- },
69
- showScore: {
70
- type: Boolean
71
- },
61
+ disabled: Boolean,
62
+ allowHalf: Boolean,
63
+ showText: Boolean,
64
+ showScore: Boolean,
72
65
  textColor: {
73
66
  type: String,
74
67
  default: ""
@@ -87,10 +80,7 @@ const rateProps = runtime.buildProps({
87
80
  type: String,
88
81
  default: "{value}"
89
82
  },
90
- size: {
91
- type: String,
92
- validator: validator.isValidComponentSize
93
- },
83
+ size: index.useSizeProp,
94
84
  label: {
95
85
  type: String,
96
86
  default: void 0
@@ -1 +1 @@
1
- {"version":3,"file":"rate.js","sources":["../../../../../../packages/components/rate/src/rate.ts"],"sourcesContent":["import { Star, StarFilled } from '@element-plus/icons-vue'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n isValidComponentSize,\n mutable,\n} from '@element-plus/utils'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Component, ExtractPropTypes, PropType } from 'vue'\nimport type Rate from './rate.vue'\n\nexport const rateProps = buildProps({\n modelValue: {\n type: Number,\n default: 0,\n },\n id: {\n type: String,\n default: undefined,\n },\n lowThreshold: {\n type: Number,\n default: 2,\n },\n highThreshold: {\n type: Number,\n default: 4,\n },\n max: {\n type: Number,\n default: 5,\n },\n colors: {\n type: definePropType<string[] | Record<number, string>>([Array, Object]),\n default: () => mutable(['', '', ''] as const),\n },\n voidColor: {\n type: String,\n default: '',\n },\n disabledVoidColor: {\n type: String,\n default: '',\n },\n icons: {\n type: definePropType<\n Array<string | Component> | Record<number, string | Component>\n >([Array, Object]),\n default: () => [StarFilled, StarFilled, StarFilled],\n },\n voidIcon: {\n type: iconPropType,\n default: () => Star,\n },\n disabledVoidIcon: {\n type: iconPropType,\n default: () => StarFilled,\n },\n disabled: {\n type: Boolean,\n },\n allowHalf: {\n type: Boolean,\n },\n showText: {\n type: Boolean,\n },\n showScore: {\n type: Boolean,\n },\n textColor: {\n type: String,\n default: '',\n },\n texts: {\n type: definePropType<string[]>(Array),\n default: () =>\n mutable([\n 'Extremely bad',\n 'Disappointed',\n 'Fair',\n 'Satisfied',\n 'Surprise',\n ] as const),\n },\n scoreTemplate: {\n type: String,\n default: '{value}',\n },\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n label: {\n type: String,\n default: undefined,\n },\n clearable: {\n type: Boolean,\n default: false,\n },\n} as const)\n\nexport type RateProps = ExtractPropTypes<typeof rateProps>\n\nexport const rateEmits = {\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type RateEmits = typeof rateEmits\n\nexport type RateInstance = InstanceType<typeof Rate>\n"],"names":["buildProps","definePropType","mutable","StarFilled","iconPropType","Star","isValidComponentSize","CHANGE_EVENT","isNumber","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;;;;;;;;AAUY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACxC,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAED,sBAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,MAAM,CAACE,mBAAU,EAAEA,mBAAU,EAAEA,mBAAU,CAAC;AACvD,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,aAAI;AACvB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAED,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMD,mBAAU;AAC7B,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEF,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC;AAC3B,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,MAAM;AACZ,MAAM,WAAW;AACjB,MAAM,UAAU;AAChB,KAAK,CAAC;AACN,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,EAAEI,8BAAoB;AACnC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKC,aAAQ,CAAC,KAAK,CAAC;AAC5C,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKD,aAAQ,CAAC,KAAK,CAAC;AAClD;;;;;"}
1
+ {"version":3,"file":"rate.js","sources":["../../../../../../packages/components/rate/src/rate.ts"],"sourcesContent":["import { Star, StarFilled } from '@element-plus/icons-vue'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type Rate from './rate.vue'\n\nexport const rateProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: Number,\n default: 0,\n },\n /**\n * @description native `id` attribute\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description threshold value between low and medium level. The value itself will be included in low level\n */\n lowThreshold: {\n type: Number,\n default: 2,\n },\n /**\n * @description threshold value between medium and high level. The value itself will be included in high level\n */\n highThreshold: {\n type: Number,\n default: 4,\n },\n /**\n * @description max rating score\n */\n max: {\n type: Number,\n default: 5,\n },\n /**\n * @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color\n */\n colors: {\n type: definePropType<string[] | Record<number, string>>([Array, Object]),\n default: () => mutable(['', '', ''] as const),\n },\n /**\n * @description color of unselected icons\n */\n voidColor: {\n type: String,\n default: '',\n },\n /**\n * @description color of unselected read-only icons\n */\n disabledVoidColor: {\n type: String,\n default: '',\n },\n /**\n * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component\n */\n icons: {\n type: definePropType<\n Array<string | Component> | Record<number, string | Component>\n >([Array, Object]),\n default: () => [StarFilled, StarFilled, StarFilled],\n },\n /**\n * @description component of unselected icons\n */\n voidIcon: {\n type: iconPropType,\n default: () => Star,\n },\n /**\n * @description component of unselected read-only icons\n */\n disabledVoidIcon: {\n type: iconPropType,\n default: () => StarFilled,\n },\n /**\n * @description whether Rate is read-only\n */\n disabled: Boolean,\n /**\n * @description whether picking half start is allowed\n */\n allowHalf: Boolean,\n /**\n * @description whether to display texts\n */\n showText: Boolean,\n /**\n * @description whether to display current score. show-score and show-text cannot be true at the same time\n */\n showScore: Boolean,\n /**\n * @description color of texts\n */\n textColor: {\n type: String,\n default: '',\n },\n /**\n * @description text array\n */\n texts: {\n type: definePropType<string[]>(Array),\n default: () =>\n mutable([\n 'Extremely bad',\n 'Disappointed',\n 'Fair',\n 'Satisfied',\n 'Surprise',\n ] as const),\n },\n /**\n * @description score template\n */\n scoreTemplate: {\n type: String,\n default: '{value}',\n },\n /**\n * @description size of Rate\n */\n size: useSizeProp,\n /**\n * @description same as `aria-label` in Rate\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether value can be reset to `0`\n */\n clearable: {\n type: Boolean,\n default: false,\n },\n} as const)\n\nexport type RateProps = ExtractPropTypes<typeof rateProps>\n\nexport const rateEmits = {\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type RateEmits = typeof rateEmits\n\nexport type RateInstance = InstanceType<typeof Rate>\n"],"names":["buildProps","definePropType","mutable","StarFilled","iconPropType","Star","useSizeProp","CHANGE_EVENT","isNumber","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;;;;;;;;;AAUY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACxC,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAED,sBAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,MAAM,CAACE,mBAAU,EAAEA,mBAAU,EAAEA,mBAAU,CAAC;AACvD,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,aAAI;AACvB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAED,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMD,mBAAU;AAC7B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEF,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC;AAC3B,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,MAAM;AACZ,MAAM,WAAW;AACjB,MAAM,UAAU;AAChB,KAAK,CAAC;AACN,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,IAAI,EAAEI,iBAAW;AACnB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKC,aAAQ,CAAC,KAAK,CAAC;AAC5C,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKD,aAAQ,CAAC,KAAK,CAAC;AAClD;;;;;"}
@@ -11,35 +11,15 @@ declare const _default: import("vue").DefineComponent<{
11
11
  readonly icons: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>[], boolean>;
12
12
  readonly voidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
13
13
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
14
- readonly disabled: {
15
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
16
- readonly required: false;
17
- readonly validator: ((val: unknown) => boolean) | undefined;
18
- __epPropKey: true;
19
- };
20
- readonly allowHalf: {
21
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
22
- readonly required: false;
23
- readonly validator: ((val: unknown) => boolean) | undefined;
24
- __epPropKey: true;
25
- };
26
- readonly showText: {
27
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
28
- readonly required: false;
29
- readonly validator: ((val: unknown) => boolean) | undefined;
30
- __epPropKey: true;
31
- };
32
- readonly showScore: {
33
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
34
- readonly required: false;
35
- readonly validator: ((val: unknown) => boolean) | undefined;
36
- __epPropKey: true;
37
- };
14
+ readonly disabled: BooleanConstructor;
15
+ readonly allowHalf: BooleanConstructor;
16
+ readonly showText: BooleanConstructor;
17
+ readonly showScore: BooleanConstructor;
38
18
  readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
39
19
  readonly texts: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
40
20
  readonly scoreTemplate: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
41
21
  readonly size: {
42
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
22
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
43
23
  readonly required: false;
44
24
  readonly validator: ((val: unknown) => boolean) | undefined;
45
25
  __epPropKey: true;
@@ -66,35 +46,15 @@ declare const _default: import("vue").DefineComponent<{
66
46
  readonly icons: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>[], boolean>;
67
47
  readonly voidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
68
48
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
69
- readonly disabled: {
70
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
71
- readonly required: false;
72
- readonly validator: ((val: unknown) => boolean) | undefined;
73
- __epPropKey: true;
74
- };
75
- readonly allowHalf: {
76
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
77
- readonly required: false;
78
- readonly validator: ((val: unknown) => boolean) | undefined;
79
- __epPropKey: true;
80
- };
81
- readonly showText: {
82
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
83
- readonly required: false;
84
- readonly validator: ((val: unknown) => boolean) | undefined;
85
- __epPropKey: true;
86
- };
87
- readonly showScore: {
88
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
89
- readonly required: false;
90
- readonly validator: ((val: unknown) => boolean) | undefined;
91
- __epPropKey: true;
92
- };
49
+ readonly disabled: BooleanConstructor;
50
+ readonly allowHalf: BooleanConstructor;
51
+ readonly showText: BooleanConstructor;
52
+ readonly showScore: BooleanConstructor;
93
53
  readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
94
54
  readonly texts: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
95
55
  readonly scoreTemplate: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
96
56
  readonly size: {
97
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
57
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
98
58
  readonly required: false;
99
59
  readonly validator: ((val: unknown) => boolean) | undefined;
100
60
  __epPropKey: true;
@@ -180,11 +140,11 @@ declare const _default: import("vue").DefineComponent<{
180
140
  __isSuspense?: undefined;
181
141
  };
182
142
  }>;
183
- showDecimalIcon: (item: number) => boolean | undefined;
143
+ showDecimalIcon: (item: number) => boolean;
184
144
  emitValue: (value: number) => void;
185
145
  selectValue: (value: number) => void;
186
146
  handleKey: (e: KeyboardEvent) => number | undefined;
187
- setCurrentValue: (value: number, event: MouseEvent) => void;
147
+ setCurrentValue: (value: number, event?: MouseEvent | undefined) => void;
188
148
  resetCurrentValue: () => void;
189
149
  ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
190
150
  readonly size: {
@@ -264,35 +224,15 @@ declare const _default: import("vue").DefineComponent<{
264
224
  readonly icons: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>) | (() => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>)[] | Record<number, string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>[], boolean>;
265
225
  readonly voidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
266
226
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
267
- readonly disabled: {
268
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
269
- readonly required: false;
270
- readonly validator: ((val: unknown) => boolean) | undefined;
271
- __epPropKey: true;
272
- };
273
- readonly allowHalf: {
274
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
275
- readonly required: false;
276
- readonly validator: ((val: unknown) => boolean) | undefined;
277
- __epPropKey: true;
278
- };
279
- readonly showText: {
280
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
281
- readonly required: false;
282
- readonly validator: ((val: unknown) => boolean) | undefined;
283
- __epPropKey: true;
284
- };
285
- readonly showScore: {
286
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
287
- readonly required: false;
288
- readonly validator: ((val: unknown) => boolean) | undefined;
289
- __epPropKey: true;
290
- };
227
+ readonly disabled: BooleanConstructor;
228
+ readonly allowHalf: BooleanConstructor;
229
+ readonly showText: BooleanConstructor;
230
+ readonly showScore: BooleanConstructor;
291
231
  readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
292
232
  readonly texts: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
293
233
  readonly scoreTemplate: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
294
234
  readonly size: {
295
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
235
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
296
236
  readonly required: false;
297
237
  readonly validator: ((val: unknown) => boolean) | undefined;
298
238
  __epPropKey: true;
@@ -303,6 +243,7 @@ declare const _default: import("vue").DefineComponent<{
303
243
  onChange?: ((value: number) => any) | undefined;
304
244
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
305
245
  }, {
246
+ readonly disabled: boolean;
306
247
  readonly label: string;
307
248
  readonly modelValue: number;
308
249
  readonly max: number;
@@ -310,6 +251,7 @@ declare const _default: import("vue").DefineComponent<{
310
251
  readonly id: string;
311
252
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
312
253
  readonly colors: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string[] | Record<number, string>) | (() => string[] | Record<number, string>) | ((new (...args: any[]) => string[] | Record<number, string>) | (() => string[] | Record<number, string>))[], unknown, unknown>;
254
+ readonly showText: boolean;
313
255
  readonly lowThreshold: number;
314
256
  readonly highThreshold: number;
315
257
  readonly voidColor: string;
@@ -319,5 +261,7 @@ declare const _default: import("vue").DefineComponent<{
319
261
  readonly disabledVoidIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
320
262
  readonly texts: string[];
321
263
  readonly scoreTemplate: string;
264
+ readonly allowHalf: boolean;
265
+ readonly showScore: boolean;
322
266
  }>;
323
267
  export default _default;
@@ -162,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
162
162
  if (rateDisabled.value) {
163
163
  return;
164
164
  }
165
- if (props.allowHalf) {
165
+ if (props.allowHalf && event) {
166
166
  let target = event.target;
167
167
  if (style.hasClass(target, ns.e("item"))) {
168
168
  target = target.querySelector(`.${ns.e("icon")}`);