element-plus 2.3.14 → 2.4.1

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 (673) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +1631 -1090
  4. package/dist/index.full.min.js +17 -17
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +17 -17
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +1630 -1091
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar.js +1 -1
  14. package/dist/locale/ar.min.js +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/az.js +1 -1
  18. package/dist/locale/az.min.js +1 -1
  19. package/dist/locale/az.min.mjs +1 -1
  20. package/dist/locale/az.mjs +1 -1
  21. package/dist/locale/bg.js +1 -1
  22. package/dist/locale/bg.min.js +1 -1
  23. package/dist/locale/bg.min.mjs +1 -1
  24. package/dist/locale/bg.mjs +1 -1
  25. package/dist/locale/bn.js +1 -1
  26. package/dist/locale/bn.min.js +1 -1
  27. package/dist/locale/bn.min.mjs +1 -1
  28. package/dist/locale/bn.mjs +1 -1
  29. package/dist/locale/ca.js +1 -1
  30. package/dist/locale/ca.min.js +1 -1
  31. package/dist/locale/ca.min.mjs +1 -1
  32. package/dist/locale/ca.mjs +1 -1
  33. package/dist/locale/ckb.js +1 -1
  34. package/dist/locale/ckb.min.js +1 -1
  35. package/dist/locale/ckb.min.mjs +1 -1
  36. package/dist/locale/ckb.mjs +1 -1
  37. package/dist/locale/cs.js +1 -1
  38. package/dist/locale/cs.min.js +1 -1
  39. package/dist/locale/cs.min.mjs +1 -1
  40. package/dist/locale/cs.mjs +1 -1
  41. package/dist/locale/da.js +1 -1
  42. package/dist/locale/da.min.js +1 -1
  43. package/dist/locale/da.min.mjs +1 -1
  44. package/dist/locale/da.mjs +1 -1
  45. package/dist/locale/de.js +1 -1
  46. package/dist/locale/de.min.js +1 -1
  47. package/dist/locale/de.min.mjs +1 -1
  48. package/dist/locale/de.mjs +1 -1
  49. package/dist/locale/el.js +1 -1
  50. package/dist/locale/el.min.js +1 -1
  51. package/dist/locale/el.min.mjs +1 -1
  52. package/dist/locale/el.mjs +1 -1
  53. package/dist/locale/en.js +1 -1
  54. package/dist/locale/en.min.js +1 -1
  55. package/dist/locale/en.min.mjs +1 -1
  56. package/dist/locale/en.mjs +1 -1
  57. package/dist/locale/eo.js +1 -1
  58. package/dist/locale/eo.min.js +1 -1
  59. package/dist/locale/eo.min.mjs +1 -1
  60. package/dist/locale/eo.mjs +1 -1
  61. package/dist/locale/es.js +1 -1
  62. package/dist/locale/es.min.js +1 -1
  63. package/dist/locale/es.min.mjs +1 -1
  64. package/dist/locale/es.mjs +1 -1
  65. package/dist/locale/et.js +1 -1
  66. package/dist/locale/et.min.js +1 -1
  67. package/dist/locale/et.min.mjs +1 -1
  68. package/dist/locale/et.mjs +1 -1
  69. package/dist/locale/eu.js +1 -1
  70. package/dist/locale/eu.min.js +1 -1
  71. package/dist/locale/eu.min.mjs +1 -1
  72. package/dist/locale/eu.mjs +1 -1
  73. package/dist/locale/fa.js +1 -1
  74. package/dist/locale/fa.min.js +1 -1
  75. package/dist/locale/fa.min.mjs +1 -1
  76. package/dist/locale/fa.mjs +1 -1
  77. package/dist/locale/fi.js +1 -1
  78. package/dist/locale/fi.min.js +1 -1
  79. package/dist/locale/fi.min.mjs +1 -1
  80. package/dist/locale/fi.mjs +1 -1
  81. package/dist/locale/fr.js +1 -1
  82. package/dist/locale/fr.min.js +1 -1
  83. package/dist/locale/fr.min.mjs +1 -1
  84. package/dist/locale/fr.mjs +1 -1
  85. package/dist/locale/he.js +1 -1
  86. package/dist/locale/he.min.js +1 -1
  87. package/dist/locale/he.min.mjs +1 -1
  88. package/dist/locale/he.mjs +1 -1
  89. package/dist/locale/hr.js +1 -1
  90. package/dist/locale/hr.min.js +1 -1
  91. package/dist/locale/hr.min.mjs +1 -1
  92. package/dist/locale/hr.mjs +1 -1
  93. package/dist/locale/hu.js +1 -1
  94. package/dist/locale/hu.min.js +1 -1
  95. package/dist/locale/hu.min.mjs +1 -1
  96. package/dist/locale/hu.mjs +1 -1
  97. package/dist/locale/hy-am.js +1 -1
  98. package/dist/locale/hy-am.min.js +1 -1
  99. package/dist/locale/hy-am.min.mjs +1 -1
  100. package/dist/locale/hy-am.mjs +1 -1
  101. package/dist/locale/id.js +1 -1
  102. package/dist/locale/id.min.js +1 -1
  103. package/dist/locale/id.min.mjs +1 -1
  104. package/dist/locale/id.mjs +1 -1
  105. package/dist/locale/it.js +1 -1
  106. package/dist/locale/it.min.js +1 -1
  107. package/dist/locale/it.min.mjs +1 -1
  108. package/dist/locale/it.mjs +1 -1
  109. package/dist/locale/ja.js +1 -1
  110. package/dist/locale/ja.min.js +1 -1
  111. package/dist/locale/ja.min.mjs +1 -1
  112. package/dist/locale/ja.mjs +1 -1
  113. package/dist/locale/kk.js +1 -1
  114. package/dist/locale/kk.min.js +1 -1
  115. package/dist/locale/kk.min.mjs +1 -1
  116. package/dist/locale/kk.mjs +1 -1
  117. package/dist/locale/km.js +1 -1
  118. package/dist/locale/km.min.js +1 -1
  119. package/dist/locale/km.min.mjs +1 -1
  120. package/dist/locale/km.mjs +1 -1
  121. package/dist/locale/ko.js +1 -1
  122. package/dist/locale/ko.min.js +1 -1
  123. package/dist/locale/ko.min.mjs +1 -1
  124. package/dist/locale/ko.mjs +1 -1
  125. package/dist/locale/ku.js +1 -1
  126. package/dist/locale/ku.min.js +1 -1
  127. package/dist/locale/ku.min.mjs +1 -1
  128. package/dist/locale/ku.mjs +1 -1
  129. package/dist/locale/ky.js +1 -1
  130. package/dist/locale/ky.min.js +1 -1
  131. package/dist/locale/ky.min.mjs +1 -1
  132. package/dist/locale/ky.mjs +1 -1
  133. package/dist/locale/lt.js +1 -1
  134. package/dist/locale/lt.min.js +1 -1
  135. package/dist/locale/lt.min.mjs +1 -1
  136. package/dist/locale/lt.mjs +1 -1
  137. package/dist/locale/lv.js +1 -1
  138. package/dist/locale/lv.min.js +1 -1
  139. package/dist/locale/lv.min.mjs +1 -1
  140. package/dist/locale/lv.mjs +1 -1
  141. package/dist/locale/mg.js +1 -1
  142. package/dist/locale/mg.min.js +1 -1
  143. package/dist/locale/mg.min.mjs +1 -1
  144. package/dist/locale/mg.mjs +1 -1
  145. package/dist/locale/mn.js +1 -1
  146. package/dist/locale/mn.min.js +1 -1
  147. package/dist/locale/mn.min.mjs +1 -1
  148. package/dist/locale/mn.mjs +1 -1
  149. package/dist/locale/nb-no.js +1 -1
  150. package/dist/locale/nb-no.min.js +1 -1
  151. package/dist/locale/nb-no.min.mjs +1 -1
  152. package/dist/locale/nb-no.mjs +1 -1
  153. package/dist/locale/nl.js +1 -1
  154. package/dist/locale/nl.min.js +1 -1
  155. package/dist/locale/nl.min.mjs +1 -1
  156. package/dist/locale/nl.mjs +1 -1
  157. package/dist/locale/pa.js +1 -1
  158. package/dist/locale/pa.min.js +1 -1
  159. package/dist/locale/pa.min.mjs +1 -1
  160. package/dist/locale/pa.mjs +1 -1
  161. package/dist/locale/pl.js +1 -1
  162. package/dist/locale/pl.min.js +1 -1
  163. package/dist/locale/pl.min.mjs +1 -1
  164. package/dist/locale/pl.mjs +1 -1
  165. package/dist/locale/pt-br.js +1 -1
  166. package/dist/locale/pt-br.min.js +1 -1
  167. package/dist/locale/pt-br.min.mjs +1 -1
  168. package/dist/locale/pt-br.mjs +1 -1
  169. package/dist/locale/pt.js +1 -1
  170. package/dist/locale/pt.min.js +1 -1
  171. package/dist/locale/pt.min.mjs +1 -1
  172. package/dist/locale/pt.mjs +1 -1
  173. package/dist/locale/ro.js +1 -1
  174. package/dist/locale/ro.min.js +1 -1
  175. package/dist/locale/ro.min.mjs +1 -1
  176. package/dist/locale/ro.mjs +1 -1
  177. package/dist/locale/ru.js +1 -1
  178. package/dist/locale/ru.min.js +1 -1
  179. package/dist/locale/ru.min.mjs +1 -1
  180. package/dist/locale/ru.mjs +1 -1
  181. package/dist/locale/sk.js +1 -1
  182. package/dist/locale/sk.min.js +1 -1
  183. package/dist/locale/sk.min.mjs +1 -1
  184. package/dist/locale/sk.mjs +1 -1
  185. package/dist/locale/sl.js +1 -1
  186. package/dist/locale/sl.min.js +1 -1
  187. package/dist/locale/sl.min.mjs +1 -1
  188. package/dist/locale/sl.mjs +1 -1
  189. package/dist/locale/sr.js +1 -1
  190. package/dist/locale/sr.min.js +1 -1
  191. package/dist/locale/sr.min.mjs +1 -1
  192. package/dist/locale/sr.mjs +1 -1
  193. package/dist/locale/sv.js +1 -1
  194. package/dist/locale/sv.min.js +1 -1
  195. package/dist/locale/sv.min.mjs +1 -1
  196. package/dist/locale/sv.mjs +1 -1
  197. package/dist/locale/ta.js +1 -1
  198. package/dist/locale/ta.min.js +1 -1
  199. package/dist/locale/ta.min.mjs +1 -1
  200. package/dist/locale/ta.mjs +1 -1
  201. package/dist/locale/th.js +1 -1
  202. package/dist/locale/th.min.js +1 -1
  203. package/dist/locale/th.min.mjs +1 -1
  204. package/dist/locale/th.mjs +1 -1
  205. package/dist/locale/tk.js +1 -1
  206. package/dist/locale/tk.min.js +1 -1
  207. package/dist/locale/tk.min.mjs +1 -1
  208. package/dist/locale/tk.mjs +1 -1
  209. package/dist/locale/tr.js +1 -1
  210. package/dist/locale/tr.min.js +1 -1
  211. package/dist/locale/tr.min.mjs +1 -1
  212. package/dist/locale/tr.mjs +1 -1
  213. package/dist/locale/ug-cn.js +1 -1
  214. package/dist/locale/ug-cn.min.js +1 -1
  215. package/dist/locale/ug-cn.min.mjs +1 -1
  216. package/dist/locale/ug-cn.mjs +1 -1
  217. package/dist/locale/uk.js +1 -1
  218. package/dist/locale/uk.min.js +1 -1
  219. package/dist/locale/uk.min.mjs +1 -1
  220. package/dist/locale/uk.mjs +1 -1
  221. package/dist/locale/uz-uz.js +1 -1
  222. package/dist/locale/uz-uz.min.js +1 -1
  223. package/dist/locale/uz-uz.min.mjs +1 -1
  224. package/dist/locale/uz-uz.mjs +1 -1
  225. package/dist/locale/vi.js +1 -1
  226. package/dist/locale/vi.min.js +1 -1
  227. package/dist/locale/vi.min.mjs +1 -1
  228. package/dist/locale/vi.mjs +1 -1
  229. package/dist/locale/zh-cn.js +1 -1
  230. package/dist/locale/zh-cn.min.js +1 -1
  231. package/dist/locale/zh-cn.min.mjs +1 -1
  232. package/dist/locale/zh-cn.mjs +1 -1
  233. package/dist/locale/zh-tw.js +1 -1
  234. package/dist/locale/zh-tw.min.js +1 -1
  235. package/dist/locale/zh-tw.min.mjs +1 -1
  236. package/dist/locale/zh-tw.mjs +1 -1
  237. package/es/component.mjs +3 -1
  238. package/es/component.mjs.map +1 -1
  239. package/es/components/autocomplete/index.d.ts +28 -1
  240. package/es/components/autocomplete/src/autocomplete.vue.d.ts +28 -1
  241. package/es/components/carousel/index.d.ts +5 -0
  242. package/es/components/carousel/src/carousel.vue.d.ts +5 -0
  243. package/es/components/carousel/src/carousel2.mjs +7 -2
  244. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  245. package/es/components/carousel/src/use-carousel.d.ts +6 -0
  246. package/es/components/carousel/src/use-carousel.mjs +41 -6
  247. package/es/components/carousel/src/use-carousel.mjs.map +1 -1
  248. package/es/components/cascader/index.d.ts +150 -6
  249. package/es/components/cascader/src/cascader.vue.d.ts +75 -3
  250. package/es/components/checkbox/index.d.ts +12 -0
  251. package/es/components/checkbox/src/checkbox-button.vue.d.ts +4 -0
  252. package/es/components/checkbox/src/checkbox.d.ts +1 -0
  253. package/es/components/checkbox/src/checkbox.mjs +2 -1
  254. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  255. package/es/components/checkbox/src/checkbox.vue.d.ts +4 -0
  256. package/es/components/checkbox/src/checkbox2.mjs +8 -12
  257. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  258. package/es/components/checkbox/src/composables/use-checkbox-status.mjs +2 -2
  259. package/es/components/checkbox/src/composables/use-checkbox-status.mjs.map +1 -1
  260. package/es/components/collapse/src/collapse-item2.mjs +1 -0
  261. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  262. package/es/components/color-picker/index.d.ts +19 -2
  263. package/es/components/color-picker/src/color-picker.d.ts +2 -0
  264. package/es/components/color-picker/src/color-picker.mjs +3 -1
  265. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  266. package/es/components/color-picker/src/color-picker.vue.d.ts +19 -2
  267. package/es/components/color-picker/src/color-picker2.mjs +84 -12
  268. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  269. package/es/components/date-picker/index.d.ts +8 -0
  270. package/es/components/date-picker/src/date-picker-com/basic-cell-render.mjs +1 -1
  271. package/es/components/date-picker/src/date-picker-com/basic-cell-render.mjs.map +1 -1
  272. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +2 -2
  273. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
  274. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +269 -11
  275. package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +2 -2
  276. package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
  277. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +269 -11
  278. package/es/components/date-picker/src/date-picker.d.ts +4 -0
  279. package/es/components/date-picker/src/panel-utils.d.ts +538 -22
  280. package/es/components/date-picker/src/props/date-picker.d.ts +2 -0
  281. package/es/components/date-picker/src/props/panel-date-pick.d.ts +2 -0
  282. package/es/components/date-picker/src/props/panel-date-range.d.ts +2 -0
  283. package/es/components/date-picker/src/props/shared.d.ts +2 -0
  284. package/es/components/date-picker/src/props/shared.mjs +3 -1
  285. package/es/components/date-picker/src/props/shared.mjs.map +1 -1
  286. package/es/components/descriptions/index.d.ts +48 -140
  287. package/es/components/descriptions/index.mjs +3 -3
  288. package/es/components/descriptions/index.mjs.map +1 -1
  289. package/es/components/descriptions/src/description-item.d.ts +39 -69
  290. package/es/components/descriptions/src/description-item.mjs +39 -36
  291. package/es/components/descriptions/src/description-item.mjs.map +1 -1
  292. package/es/components/descriptions/src/description.mjs.map +1 -1
  293. package/es/components/descriptions/src/description.vue.d.ts +16 -10
  294. package/es/components/descriptions/src/description2.mjs +9 -8
  295. package/es/components/descriptions/src/description2.mjs.map +1 -1
  296. package/es/components/descriptions/src/descriptions-cell.d.ts +9 -3
  297. package/es/components/descriptions/src/descriptions-cell.mjs +16 -11
  298. package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
  299. package/es/components/descriptions/src/descriptions-row.d.ts +2 -1
  300. package/es/components/descriptions/src/descriptions-row.mjs +2 -2
  301. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  302. package/es/components/descriptions/src/descriptions-row.vue.d.ts +10 -6
  303. package/es/components/descriptions/src/descriptions-row2.mjs +6 -6
  304. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  305. package/es/components/form/src/form-item2.mjs +1 -1
  306. package/es/components/form/src/form-item2.mjs.map +1 -1
  307. package/es/components/image/index.d.ts +16 -0
  308. package/es/components/image/src/image.d.ts +2 -0
  309. package/es/components/image/src/image.mjs +8 -0
  310. package/es/components/image/src/image.mjs.map +1 -1
  311. package/es/components/image/src/image.vue.d.ts +16 -0
  312. package/es/components/image/src/image2.mjs +3 -1
  313. package/es/components/image/src/image2.mjs.map +1 -1
  314. package/es/components/image-viewer/index.d.ts +8 -0
  315. package/es/components/image-viewer/src/image-viewer.d.ts +2 -0
  316. package/es/components/image-viewer/src/image-viewer.mjs +8 -0
  317. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  318. package/es/components/image-viewer/src/image-viewer.vue.d.ts +8 -0
  319. package/es/components/image-viewer/src/image-viewer2.mjs +3 -2
  320. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  321. package/es/components/index.d.ts +1 -0
  322. package/es/components/index.mjs +2 -0
  323. package/es/components/index.mjs.map +1 -1
  324. package/es/components/menu/index.d.ts +1 -0
  325. package/es/components/menu/index.mjs +1 -0
  326. package/es/components/menu/index.mjs.map +1 -1
  327. package/es/components/menu/src/instance.d.ts +12 -0
  328. package/es/components/menu/src/instance.mjs +2 -0
  329. package/es/components/menu/src/instance.mjs.map +1 -0
  330. package/es/components/menu/src/sub-menu.mjs +0 -22
  331. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  332. package/es/components/pagination/src/components/sizes.vue.d.ts +4 -0
  333. package/es/components/popper/src/composables/use-content-dom.mjs +4 -2
  334. package/es/components/popper/src/composables/use-content-dom.mjs.map +1 -1
  335. package/es/components/scrollbar/index.d.ts +28 -1
  336. package/es/components/scrollbar/src/scrollbar.d.ts +9 -0
  337. package/es/components/scrollbar/src/scrollbar.mjs +7 -0
  338. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  339. package/es/components/scrollbar/src/scrollbar.vue.d.ts +28 -1
  340. package/es/components/scrollbar/src/scrollbar2.mjs +12 -8
  341. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  342. package/es/components/select/index.d.ts +4 -0
  343. package/es/components/select/src/option.mjs +9 -1
  344. package/es/components/select/src/option.mjs.map +1 -1
  345. package/es/components/select/src/option.vue.d.ts +1 -0
  346. package/es/components/select/src/select.mjs +251 -228
  347. package/es/components/select/src/select.mjs.map +1 -1
  348. package/es/components/select/src/select.vue.d.ts +98 -98
  349. package/es/components/select/src/useOption.mjs +6 -7
  350. package/es/components/select/src/useOption.mjs.map +1 -1
  351. package/es/components/select/src/useSelect.d.ts +1 -0
  352. package/es/components/select/src/useSelect.mjs +4 -2
  353. package/es/components/select/src/useSelect.mjs.map +1 -1
  354. package/es/components/select-v2/index.d.ts +2 -2
  355. package/es/components/select-v2/src/select-dropdown.mjs +4 -7
  356. package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
  357. package/es/components/select-v2/src/select.vue.d.ts +1 -1
  358. package/es/components/select-v2/src/useSelect.d.ts +1 -1
  359. package/es/components/select-v2/src/useSelect.mjs +16 -15
  360. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  361. package/es/components/switch/index.d.ts +4 -0
  362. package/es/components/switch/src/switch.d.ts +1 -0
  363. package/es/components/switch/src/switch.mjs +4 -0
  364. package/es/components/switch/src/switch.mjs.map +1 -1
  365. package/es/components/switch/src/switch.vue.d.ts +4 -0
  366. package/es/components/switch/src/switch2.mjs +2 -1
  367. package/es/components/switch/src/switch2.mjs.map +1 -1
  368. package/es/components/table/src/table-footer/index.mjs +15 -33
  369. package/es/components/table/src/table-footer/index.mjs.map +1 -1
  370. package/es/components/table/src/table-header/index.mjs.map +1 -1
  371. package/es/components/table/src/table.mjs +33 -12
  372. package/es/components/table/src/table.mjs.map +1 -1
  373. package/es/components/tabs/src/tab-nav.d.ts +4 -1
  374. package/es/components/tabs/src/tab-nav.mjs.map +1 -1
  375. package/es/components/tabs/src/tabs.d.ts +16 -29
  376. package/es/components/tabs/src/tabs.mjs +10 -10
  377. package/es/components/tabs/src/tabs.mjs.map +1 -1
  378. package/es/components/text/index.d.ts +18 -0
  379. package/es/components/text/src/text.d.ts +6 -2
  380. package/es/components/text/src/text.mjs +3 -0
  381. package/es/components/text/src/text.mjs.map +1 -1
  382. package/es/components/text/src/text.vue.d.ts +32 -14
  383. package/es/components/text/src/text2.mjs +8 -4
  384. package/es/components/text/src/text2.mjs.map +1 -1
  385. package/es/components/time-picker/index.d.ts +8 -0
  386. package/es/components/time-picker/src/common/picker.mjs +2 -0
  387. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  388. package/es/components/time-picker/src/common/picker.vue.d.ts +6 -0
  389. package/es/components/time-picker/src/common/props.d.ts +29 -18
  390. package/es/components/time-picker/src/common/props.mjs +2 -0
  391. package/es/components/time-picker/src/common/props.mjs.map +1 -1
  392. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +216 -9
  393. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +263 -11
  394. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +263 -11
  395. package/es/components/time-picker/src/time-picker.d.ts +4 -0
  396. package/es/components/time-select/index.d.ts +16 -0
  397. package/es/components/time-select/src/time-select.vue.d.ts +17 -3
  398. package/es/components/time-select/src/time-select2.mjs +3 -1
  399. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  400. package/es/components/transfer/index.d.ts +40 -0
  401. package/es/components/transfer/src/transfer-panel.vue.d.ts +8 -0
  402. package/es/components/transfer/src/transfer.vue.d.ts +40 -0
  403. package/es/components/tree-select/src/tree-select-option.d.ts +6 -0
  404. package/es/components/tree-v2/index.d.ts +8 -0
  405. package/es/components/tree-v2/src/tree-node.vue.d.ts +8 -0
  406. package/es/components/tree-v2/src/tree.vue.d.ts +8 -0
  407. package/es/components/upload/index.d.ts +18 -16
  408. package/es/components/upload/src/upload-content.d.ts +0 -1
  409. package/es/components/upload/src/upload-content.vue.d.ts +0 -4
  410. package/es/components/upload/src/upload-list.vue.d.ts +17 -0
  411. package/es/components/upload/src/upload-list2.mjs +8 -6
  412. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  413. package/es/components/upload/src/upload.d.ts +9 -5
  414. package/es/components/upload/src/upload.mjs +0 -4
  415. package/es/components/upload/src/upload.mjs.map +1 -1
  416. package/es/components/upload/src/upload.vue.d.ts +18 -16
  417. package/es/components/watermark/index.d.ts +94 -0
  418. package/es/components/watermark/index.mjs +9 -0
  419. package/es/components/watermark/index.mjs.map +1 -0
  420. package/es/components/watermark/src/useClips.d.ts +7 -0
  421. package/es/components/watermark/src/useClips.mjs +82 -0
  422. package/es/components/watermark/src/useClips.mjs.map +1 -0
  423. package/es/components/watermark/src/utils.d.ts +8 -0
  424. package/es/components/watermark/src/utils.mjs +22 -0
  425. package/es/components/watermark/src/utils.mjs.map +1 -0
  426. package/es/components/watermark/src/watermark.d.ts +32 -0
  427. package/es/components/watermark/src/watermark.mjs +33 -0
  428. package/es/components/watermark/src/watermark.mjs.map +1 -0
  429. package/es/components/watermark/src/watermark.vue.d.ts +94 -0
  430. package/es/components/watermark/src/watermark2.mjs +202 -0
  431. package/es/components/watermark/src/watermark2.mjs.map +1 -0
  432. package/es/components/watermark/style/css.d.ts +0 -0
  433. package/es/components/watermark/style/css.mjs +2 -0
  434. package/es/components/watermark/style/css.mjs.map +1 -0
  435. package/es/components/watermark/style/index.d.ts +0 -0
  436. package/es/components/watermark/style/index.mjs +2 -0
  437. package/es/components/watermark/style/index.mjs.map +1 -0
  438. package/es/hooks/use-focus-controller/index.d.ts +6 -1
  439. package/es/hooks/use-focus-controller/index.mjs +5 -2
  440. package/es/hooks/use-focus-controller/index.mjs.map +1 -1
  441. package/es/index.mjs +2 -0
  442. package/es/index.mjs.map +1 -1
  443. package/es/version.d.ts +1 -1
  444. package/es/version.mjs +1 -1
  445. package/es/version.mjs.map +1 -1
  446. package/global.d.ts +1 -0
  447. package/lib/component.js +3 -1
  448. package/lib/component.js.map +1 -1
  449. package/lib/components/autocomplete/index.d.ts +28 -1
  450. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +28 -1
  451. package/lib/components/carousel/index.d.ts +5 -0
  452. package/lib/components/carousel/src/carousel.vue.d.ts +5 -0
  453. package/lib/components/carousel/src/carousel2.js +7 -2
  454. package/lib/components/carousel/src/carousel2.js.map +1 -1
  455. package/lib/components/carousel/src/use-carousel.d.ts +6 -0
  456. package/lib/components/carousel/src/use-carousel.js +40 -5
  457. package/lib/components/carousel/src/use-carousel.js.map +1 -1
  458. package/lib/components/cascader/index.d.ts +150 -6
  459. package/lib/components/cascader/src/cascader.vue.d.ts +75 -3
  460. package/lib/components/checkbox/index.d.ts +12 -0
  461. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +4 -0
  462. package/lib/components/checkbox/src/checkbox.d.ts +1 -0
  463. package/lib/components/checkbox/src/checkbox.js +2 -1
  464. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  465. package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -0
  466. package/lib/components/checkbox/src/checkbox2.js +8 -12
  467. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  468. package/lib/components/checkbox/src/composables/use-checkbox-status.js +1 -1
  469. package/lib/components/checkbox/src/composables/use-checkbox-status.js.map +1 -1
  470. package/lib/components/collapse/src/collapse-item2.js +1 -0
  471. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  472. package/lib/components/color-picker/index.d.ts +19 -2
  473. package/lib/components/color-picker/src/color-picker.d.ts +2 -0
  474. package/lib/components/color-picker/src/color-picker.js +3 -1
  475. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  476. package/lib/components/color-picker/src/color-picker.vue.d.ts +19 -2
  477. package/lib/components/color-picker/src/color-picker2.js +94 -22
  478. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  479. package/lib/components/date-picker/index.d.ts +8 -0
  480. package/lib/components/date-picker/src/date-picker-com/basic-cell-render.js +1 -1
  481. package/lib/components/date-picker/src/date-picker-com/basic-cell-render.js.map +1 -1
  482. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +2 -2
  483. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
  484. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +269 -11
  485. package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +2 -2
  486. package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
  487. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +269 -11
  488. package/lib/components/date-picker/src/date-picker.d.ts +4 -0
  489. package/lib/components/date-picker/src/panel-utils.d.ts +538 -22
  490. package/lib/components/date-picker/src/props/date-picker.d.ts +2 -0
  491. package/lib/components/date-picker/src/props/panel-date-pick.d.ts +2 -0
  492. package/lib/components/date-picker/src/props/panel-date-range.d.ts +2 -0
  493. package/lib/components/date-picker/src/props/shared.d.ts +2 -0
  494. package/lib/components/date-picker/src/props/shared.js +3 -1
  495. package/lib/components/date-picker/src/props/shared.js.map +1 -1
  496. package/lib/components/descriptions/index.d.ts +48 -140
  497. package/lib/components/descriptions/src/description-item.d.ts +39 -69
  498. package/lib/components/descriptions/src/description-item.js +39 -36
  499. package/lib/components/descriptions/src/description-item.js.map +1 -1
  500. package/lib/components/descriptions/src/description.js.map +1 -1
  501. package/lib/components/descriptions/src/description.vue.d.ts +16 -10
  502. package/lib/components/descriptions/src/description2.js +9 -8
  503. package/lib/components/descriptions/src/description2.js.map +1 -1
  504. package/lib/components/descriptions/src/descriptions-cell.d.ts +9 -3
  505. package/lib/components/descriptions/src/descriptions-cell.js +15 -10
  506. package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
  507. package/lib/components/descriptions/src/descriptions-row.d.ts +2 -1
  508. package/lib/components/descriptions/src/descriptions-row.js +1 -1
  509. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  510. package/lib/components/descriptions/src/descriptions-row.vue.d.ts +10 -6
  511. package/lib/components/descriptions/src/descriptions-row2.js +6 -6
  512. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  513. package/lib/components/form/src/form-item2.js +1 -1
  514. package/lib/components/form/src/form-item2.js.map +1 -1
  515. package/lib/components/image/index.d.ts +16 -0
  516. package/lib/components/image/src/image.d.ts +2 -0
  517. package/lib/components/image/src/image.js +8 -0
  518. package/lib/components/image/src/image.js.map +1 -1
  519. package/lib/components/image/src/image.vue.d.ts +16 -0
  520. package/lib/components/image/src/image2.js +3 -1
  521. package/lib/components/image/src/image2.js.map +1 -1
  522. package/lib/components/image-viewer/index.d.ts +8 -0
  523. package/lib/components/image-viewer/src/image-viewer.d.ts +2 -0
  524. package/lib/components/image-viewer/src/image-viewer.js +8 -0
  525. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  526. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +8 -0
  527. package/lib/components/image-viewer/src/image-viewer2.js +3 -2
  528. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  529. package/lib/components/index.d.ts +1 -0
  530. package/lib/components/index.js +17 -13
  531. package/lib/components/index.js.map +1 -1
  532. package/lib/components/menu/index.d.ts +1 -0
  533. package/lib/components/menu/index.js +1 -0
  534. package/lib/components/menu/index.js.map +1 -1
  535. package/lib/components/menu/src/instance.d.ts +12 -0
  536. package/lib/components/menu/src/instance.js +3 -0
  537. package/lib/components/menu/src/instance.js.map +1 -0
  538. package/lib/components/menu/src/sub-menu.js +0 -22
  539. package/lib/components/menu/src/sub-menu.js.map +1 -1
  540. package/lib/components/pagination/src/components/sizes.vue.d.ts +4 -0
  541. package/lib/components/popper/src/composables/use-content-dom.js +4 -2
  542. package/lib/components/popper/src/composables/use-content-dom.js.map +1 -1
  543. package/lib/components/scrollbar/index.d.ts +28 -1
  544. package/lib/components/scrollbar/src/scrollbar.d.ts +9 -0
  545. package/lib/components/scrollbar/src/scrollbar.js +7 -0
  546. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  547. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +28 -1
  548. package/lib/components/scrollbar/src/scrollbar2.js +12 -8
  549. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  550. package/lib/components/select/index.d.ts +4 -0
  551. package/lib/components/select/src/option.js +9 -1
  552. package/lib/components/select/src/option.js.map +1 -1
  553. package/lib/components/select/src/option.vue.d.ts +1 -0
  554. package/lib/components/select/src/select.js +251 -228
  555. package/lib/components/select/src/select.js.map +1 -1
  556. package/lib/components/select/src/select.vue.d.ts +98 -98
  557. package/lib/components/select/src/useOption.js +3 -4
  558. package/lib/components/select/src/useOption.js.map +1 -1
  559. package/lib/components/select/src/useSelect.d.ts +1 -0
  560. package/lib/components/select/src/useSelect.js +4 -2
  561. package/lib/components/select/src/useSelect.js.map +1 -1
  562. package/lib/components/select-v2/index.d.ts +2 -2
  563. package/lib/components/select-v2/src/select-dropdown.js +3 -6
  564. package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
  565. package/lib/components/select-v2/src/select.vue.d.ts +1 -1
  566. package/lib/components/select-v2/src/useSelect.d.ts +1 -1
  567. package/lib/components/select-v2/src/useSelect.js +16 -15
  568. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  569. package/lib/components/switch/index.d.ts +4 -0
  570. package/lib/components/switch/src/switch.d.ts +1 -0
  571. package/lib/components/switch/src/switch.js +4 -0
  572. package/lib/components/switch/src/switch.js.map +1 -1
  573. package/lib/components/switch/src/switch.vue.d.ts +4 -0
  574. package/lib/components/switch/src/switch2.js +2 -1
  575. package/lib/components/switch/src/switch2.js.map +1 -1
  576. package/lib/components/table/src/table-footer/index.js +15 -33
  577. package/lib/components/table/src/table-footer/index.js.map +1 -1
  578. package/lib/components/table/src/table-header/index.js.map +1 -1
  579. package/lib/components/table/src/table.js +33 -12
  580. package/lib/components/table/src/table.js.map +1 -1
  581. package/lib/components/tabs/src/tab-nav.d.ts +4 -1
  582. package/lib/components/tabs/src/tab-nav.js.map +1 -1
  583. package/lib/components/tabs/src/tabs.d.ts +16 -29
  584. package/lib/components/tabs/src/tabs.js +10 -10
  585. package/lib/components/tabs/src/tabs.js.map +1 -1
  586. package/lib/components/text/index.d.ts +18 -0
  587. package/lib/components/text/src/text.d.ts +6 -2
  588. package/lib/components/text/src/text.js +3 -0
  589. package/lib/components/text/src/text.js.map +1 -1
  590. package/lib/components/text/src/text.vue.d.ts +32 -14
  591. package/lib/components/text/src/text2.js +7 -3
  592. package/lib/components/text/src/text2.js.map +1 -1
  593. package/lib/components/time-picker/index.d.ts +8 -0
  594. package/lib/components/time-picker/src/common/picker.js +2 -0
  595. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  596. package/lib/components/time-picker/src/common/picker.vue.d.ts +6 -0
  597. package/lib/components/time-picker/src/common/props.d.ts +29 -18
  598. package/lib/components/time-picker/src/common/props.js +2 -0
  599. package/lib/components/time-picker/src/common/props.js.map +1 -1
  600. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +216 -9
  601. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +263 -11
  602. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +263 -11
  603. package/lib/components/time-picker/src/time-picker.d.ts +4 -0
  604. package/lib/components/time-select/index.d.ts +16 -0
  605. package/lib/components/time-select/src/time-select.vue.d.ts +17 -3
  606. package/lib/components/time-select/src/time-select2.js +5 -3
  607. package/lib/components/time-select/src/time-select2.js.map +1 -1
  608. package/lib/components/transfer/index.d.ts +40 -0
  609. package/lib/components/transfer/src/transfer-panel.vue.d.ts +8 -0
  610. package/lib/components/transfer/src/transfer.vue.d.ts +40 -0
  611. package/lib/components/tree-select/src/tree-select-option.d.ts +6 -0
  612. package/lib/components/tree-v2/index.d.ts +8 -0
  613. package/lib/components/tree-v2/src/tree-node.vue.d.ts +8 -0
  614. package/lib/components/tree-v2/src/tree.vue.d.ts +8 -0
  615. package/lib/components/upload/index.d.ts +18 -16
  616. package/lib/components/upload/src/upload-content.d.ts +0 -1
  617. package/lib/components/upload/src/upload-content.vue.d.ts +0 -4
  618. package/lib/components/upload/src/upload-list.vue.d.ts +17 -0
  619. package/lib/components/upload/src/upload-list2.js +7 -5
  620. package/lib/components/upload/src/upload-list2.js.map +1 -1
  621. package/lib/components/upload/src/upload.d.ts +9 -5
  622. package/lib/components/upload/src/upload.js +0 -4
  623. package/lib/components/upload/src/upload.js.map +1 -1
  624. package/lib/components/upload/src/upload.vue.d.ts +18 -16
  625. package/lib/components/watermark/index.d.ts +94 -0
  626. package/lib/components/watermark/index.js +15 -0
  627. package/lib/components/watermark/index.js.map +1 -0
  628. package/lib/components/watermark/src/useClips.d.ts +7 -0
  629. package/lib/components/watermark/src/useClips.js +87 -0
  630. package/lib/components/watermark/src/useClips.js.map +1 -0
  631. package/lib/components/watermark/src/utils.d.ts +8 -0
  632. package/lib/components/watermark/src/utils.js +29 -0
  633. package/lib/components/watermark/src/utils.js.map +1 -0
  634. package/lib/components/watermark/src/watermark.d.ts +32 -0
  635. package/lib/components/watermark/src/watermark.js +37 -0
  636. package/lib/components/watermark/src/watermark.js.map +1 -0
  637. package/lib/components/watermark/src/watermark.vue.d.ts +94 -0
  638. package/lib/components/watermark/src/watermark2.js +206 -0
  639. package/lib/components/watermark/src/watermark2.js.map +1 -0
  640. package/lib/components/watermark/style/css.d.ts +0 -0
  641. package/lib/components/watermark/style/css.js +3 -0
  642. package/lib/components/watermark/style/css.js.map +1 -0
  643. package/lib/components/watermark/style/index.d.ts +0 -0
  644. package/lib/components/watermark/style/index.js +3 -0
  645. package/lib/components/watermark/style/index.js.map +1 -0
  646. package/lib/hooks/use-focus-controller/index.d.ts +6 -1
  647. package/lib/hooks/use-focus-controller/index.js +5 -2
  648. package/lib/hooks/use-focus-controller/index.js.map +1 -1
  649. package/lib/index.js +108 -104
  650. package/lib/index.js.map +1 -1
  651. package/lib/version.d.ts +1 -1
  652. package/lib/version.js +1 -1
  653. package/lib/version.js.map +1 -1
  654. package/package.json +5 -2
  655. package/tags.json +1 -1
  656. package/theme-chalk/el-button.css +1 -1
  657. package/theme-chalk/el-color-picker.css +1 -1
  658. package/theme-chalk/el-menu.css +1 -1
  659. package/theme-chalk/el-message-box.css +1 -1
  660. package/theme-chalk/el-table-v2.css +1 -1
  661. package/theme-chalk/el-table.css +1 -1
  662. package/theme-chalk/el-text.css +1 -1
  663. package/theme-chalk/el-upload.css +1 -1
  664. package/theme-chalk/index.css +1 -1
  665. package/theme-chalk/src/button.scss +1 -0
  666. package/theme-chalk/src/color-picker.scss +8 -2
  667. package/theme-chalk/src/common/var.scss +3 -1
  668. package/theme-chalk/src/menu.scss +14 -4
  669. package/theme-chalk/src/message-box.scss +0 -12
  670. package/theme-chalk/src/table.scss +38 -15
  671. package/theme-chalk/src/text.scss +6 -0
  672. package/theme-chalk/src/upload.scss +1 -1
  673. package/web-types.json +1 -1
@@ -7611,6 +7611,15 @@ declare const _default: import("vue").DefineComponent<{
7611
7611
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
7612
7612
  readonly always: BooleanConstructor;
7613
7613
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
7614
+ readonly id: StringConstructor;
7615
+ readonly role: StringConstructor;
7616
+ readonly ariaLabel: StringConstructor;
7617
+ readonly ariaOrientation: {
7618
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
7619
+ readonly required: false;
7620
+ readonly validator: ((val: unknown) => boolean) | undefined;
7621
+ __epPropKey: true;
7622
+ };
7614
7623
  }>> & {
7615
7624
  onScroll?: ((args_0: {
7616
7625
  scrollTop: number;
@@ -7645,6 +7654,15 @@ declare const _default: import("vue").DefineComponent<{
7645
7654
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
7646
7655
  readonly always: BooleanConstructor;
7647
7656
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
7657
+ readonly id: StringConstructor;
7658
+ readonly role: StringConstructor;
7659
+ readonly ariaLabel: StringConstructor;
7660
+ readonly ariaOrientation: {
7661
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
7662
+ readonly required: false;
7663
+ readonly validator: ((val: unknown) => boolean) | undefined;
7664
+ __epPropKey: true;
7665
+ };
7648
7666
  }>> & {
7649
7667
  onScroll?: ((args_0: {
7650
7668
  scrollTop: number;
@@ -7664,6 +7682,15 @@ declare const _default: import("vue").DefineComponent<{
7664
7682
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
7665
7683
  readonly always: BooleanConstructor;
7666
7684
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
7685
+ readonly id: StringConstructor;
7686
+ readonly role: StringConstructor;
7687
+ readonly ariaLabel: StringConstructor;
7688
+ readonly ariaOrientation: {
7689
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
7690
+ readonly required: false;
7691
+ readonly validator: ((val: unknown) => boolean) | undefined;
7692
+ __epPropKey: true;
7693
+ };
7667
7694
  }>> & {
7668
7695
  onScroll?: ((args_0: {
7669
7696
  scrollTop: number;
@@ -7991,7 +8018,7 @@ declare const _default: import("vue").DefineComponent<{
7991
8018
  }> & {} & import("vue").ComponentCustomProperties) | undefined>;
7992
8019
  ratioY: Ref<number>;
7993
8020
  ratioX: Ref<number>;
7994
- style: ComputedRef<StyleValue>;
8021
+ wrapStyle: ComputedRef<StyleValue>;
7995
8022
  wrapKls: ComputedRef<(string | unknown[] | {
7996
8023
  [x: string]: boolean;
7997
8024
  })[]>;
@@ -8180,6 +8207,15 @@ declare const _default: import("vue").DefineComponent<{
8180
8207
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
8181
8208
  readonly always: BooleanConstructor;
8182
8209
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
8210
+ readonly id: StringConstructor;
8211
+ readonly role: StringConstructor;
8212
+ readonly ariaLabel: StringConstructor;
8213
+ readonly ariaOrientation: {
8214
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
8215
+ readonly required: false;
8216
+ readonly validator: ((val: unknown) => boolean) | undefined;
8217
+ __epPropKey: true;
8218
+ };
8183
8219
  }>> & {
8184
8220
  onScroll?: ((args_0: {
8185
8221
  scrollTop: number;
@@ -8199,6 +8235,15 @@ declare const _default: import("vue").DefineComponent<{
8199
8235
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
8200
8236
  readonly always: BooleanConstructor;
8201
8237
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
8238
+ readonly id: StringConstructor;
8239
+ readonly role: StringConstructor;
8240
+ readonly ariaLabel: StringConstructor;
8241
+ readonly ariaOrientation: {
8242
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
8243
+ readonly required: false;
8244
+ readonly validator: ((val: unknown) => boolean) | undefined;
8245
+ __epPropKey: true;
8246
+ };
8202
8247
  }>> & {
8203
8248
  onScroll?: ((args_0: {
8204
8249
  scrollTop: number;
@@ -8526,7 +8571,7 @@ declare const _default: import("vue").DefineComponent<{
8526
8571
  }> & {} & import("vue").ComponentCustomProperties) | undefined>;
8527
8572
  ratioY: Ref<number>;
8528
8573
  ratioX: Ref<number>;
8529
- style: ComputedRef<StyleValue>;
8574
+ wrapStyle: ComputedRef<StyleValue>;
8530
8575
  wrapKls: ComputedRef<(string | unknown[] | {
8531
8576
  [x: string]: boolean;
8532
8577
  })[]>;
@@ -12581,6 +12626,15 @@ declare const _default: import("vue").DefineComponent<{
12581
12626
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
12582
12627
  readonly always: BooleanConstructor;
12583
12628
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
12629
+ readonly id: StringConstructor;
12630
+ readonly role: StringConstructor;
12631
+ readonly ariaLabel: StringConstructor;
12632
+ readonly ariaOrientation: {
12633
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
12634
+ readonly required: false;
12635
+ readonly validator: ((val: unknown) => boolean) | undefined;
12636
+ __epPropKey: true;
12637
+ };
12584
12638
  }, {
12585
12639
  COMPONENT_NAME: string;
12586
12640
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -12595,6 +12649,15 @@ declare const _default: import("vue").DefineComponent<{
12595
12649
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
12596
12650
  readonly always: BooleanConstructor;
12597
12651
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
12652
+ readonly id: StringConstructor;
12653
+ readonly role: StringConstructor;
12654
+ readonly ariaLabel: StringConstructor;
12655
+ readonly ariaOrientation: {
12656
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
12657
+ readonly required: false;
12658
+ readonly validator: ((val: unknown) => boolean) | undefined;
12659
+ __epPropKey: true;
12660
+ };
12598
12661
  }>> & {
12599
12662
  onScroll?: ((args_0: {
12600
12663
  scrollTop: number;
@@ -12922,7 +12985,7 @@ declare const _default: import("vue").DefineComponent<{
12922
12985
  }> & {} & import("vue").ComponentCustomProperties) | undefined>;
12923
12986
  ratioY: Ref<number>;
12924
12987
  ratioX: Ref<number>;
12925
- style: ComputedRef<StyleValue>;
12988
+ wrapStyle: ComputedRef<StyleValue>;
12926
12989
  wrapKls: ComputedRef<(string | unknown[] | {
12927
12990
  [x: string]: boolean;
12928
12991
  })[]>;
@@ -13079,6 +13142,15 @@ declare const _default: import("vue").DefineComponent<{
13079
13142
  readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
13080
13143
  readonly always: BooleanConstructor;
13081
13144
  readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
13145
+ readonly id: StringConstructor;
13146
+ readonly role: StringConstructor;
13147
+ readonly ariaLabel: StringConstructor;
13148
+ readonly ariaOrientation: {
13149
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>>;
13150
+ readonly required: false;
13151
+ readonly validator: ((val: unknown) => boolean) | undefined;
13152
+ __epPropKey: true;
13153
+ };
13082
13154
  }>> & {
13083
13155
  onScroll?: ((args_0: {
13084
13156
  scrollTop: number;
@@ -5,6 +5,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
5
5
  };
6
6
  label: {
7
7
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
8
+ default: undefined;
8
9
  };
9
10
  indeterminate: BooleanConstructor;
10
11
  disabled: BooleanConstructor;
@@ -49,6 +50,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
49
50
  };
50
51
  label: {
51
52
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
53
+ default: undefined;
52
54
  };
53
55
  indeterminate: BooleanConstructor;
54
56
  disabled: BooleanConstructor;
@@ -132,6 +134,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
132
134
  };
133
135
  label: {
134
136
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
137
+ default: undefined;
135
138
  };
136
139
  indeterminate: BooleanConstructor;
137
140
  disabled: BooleanConstructor;
@@ -173,6 +176,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
173
176
  "onUpdate:modelValue"?: ((val: import("./src/checkbox").CheckboxValueType) => any) | undefined;
174
177
  }, {
175
178
  modelValue: string | number | boolean;
179
+ label: string | number | boolean | Record<string, any>;
176
180
  id: string;
177
181
  disabled: boolean;
178
182
  name: string;
@@ -191,6 +195,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
191
195
  };
192
196
  label: {
193
197
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
198
+ default: undefined;
194
199
  };
195
200
  indeterminate: BooleanConstructor;
196
201
  disabled: BooleanConstructor;
@@ -235,6 +240,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
235
240
  };
236
241
  label: {
237
242
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
243
+ default: undefined;
238
244
  };
239
245
  indeterminate: BooleanConstructor;
240
246
  disabled: BooleanConstructor;
@@ -318,6 +324,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
318
324
  };
319
325
  label: {
320
326
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
327
+ default: undefined;
321
328
  };
322
329
  indeterminate: BooleanConstructor;
323
330
  disabled: BooleanConstructor;
@@ -359,6 +366,7 @@ export declare const ElCheckbox: import("element-plus/es/utils").SFCWithInstall<
359
366
  "onUpdate:modelValue"?: ((val: import("./src/checkbox").CheckboxValueType) => any) | undefined;
360
367
  }, {
361
368
  modelValue: string | number | boolean;
369
+ label: string | number | boolean | Record<string, any>;
362
370
  id: string;
363
371
  disabled: boolean;
364
372
  name: string;
@@ -468,6 +476,7 @@ export declare const ElCheckboxButton: import("element-plus/es/utils").SFCWithIn
468
476
  };
469
477
  label: {
470
478
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
479
+ default: undefined;
471
480
  };
472
481
  indeterminate: BooleanConstructor;
473
482
  disabled: BooleanConstructor;
@@ -512,6 +521,7 @@ export declare const ElCheckboxButton: import("element-plus/es/utils").SFCWithIn
512
521
  };
513
522
  label: {
514
523
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
524
+ default: undefined;
515
525
  };
516
526
  indeterminate: BooleanConstructor;
517
527
  disabled: BooleanConstructor;
@@ -595,6 +605,7 @@ export declare const ElCheckboxButton: import("element-plus/es/utils").SFCWithIn
595
605
  };
596
606
  label: {
597
607
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
608
+ default: undefined;
598
609
  };
599
610
  indeterminate: BooleanConstructor;
600
611
  disabled: BooleanConstructor;
@@ -636,6 +647,7 @@ export declare const ElCheckboxButton: import("element-plus/es/utils").SFCWithIn
636
647
  "onUpdate:modelValue"?: ((val: import("./src/checkbox").CheckboxValueType) => any) | undefined;
637
648
  }, {
638
649
  modelValue: string | number | boolean;
650
+ label: string | number | boolean | Record<string, any>;
639
651
  id: string;
640
652
  disabled: boolean;
641
653
  name: string;
@@ -6,6 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  };
7
7
  label: {
8
8
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
9
+ default: undefined;
9
10
  };
10
11
  indeterminate: BooleanConstructor;
11
12
  disabled: BooleanConstructor;
@@ -50,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
50
51
  };
51
52
  label: {
52
53
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
54
+ default: undefined;
53
55
  };
54
56
  indeterminate: BooleanConstructor;
55
57
  disabled: BooleanConstructor;
@@ -133,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
133
135
  };
134
136
  label: {
135
137
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
138
+ default: undefined;
136
139
  };
137
140
  indeterminate: BooleanConstructor;
138
141
  disabled: BooleanConstructor;
@@ -174,6 +177,7 @@ declare const _default: import("vue").DefineComponent<{
174
177
  "onUpdate:modelValue"?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
175
178
  }, {
176
179
  modelValue: string | number | boolean;
180
+ label: string | number | boolean | Record<string, any>;
177
181
  id: string;
178
182
  disabled: boolean;
179
183
  name: string;
@@ -14,6 +14,7 @@ export declare const checkboxProps: {
14
14
  */
15
15
  label: {
16
16
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
17
+ default: undefined;
17
18
  };
18
19
  /**
19
20
  * @description Set indeterminate state, only responsible for style control
@@ -16,7 +16,8 @@ const checkboxProps = {
16
16
  default: void 0
17
17
  },
18
18
  label: {
19
- type: [String, Boolean, Number, Object]
19
+ type: [String, Boolean, Number, Object],
20
+ default: void 0
20
21
  },
21
22
  indeterminate: Boolean,
22
23
  disabled: Boolean,
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.js","sources":["../../../../../../packages/components/checkbox/src/checkbox.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { isBoolean, isNumber, isString } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Checkbox from './checkbox.vue'\n\nexport type CheckboxValueType = string | number | boolean\n\nexport const checkboxProps = {\n /**\n * @description binding value\n */\n modelValue: {\n type: [Number, String, Boolean],\n default: undefined,\n },\n /**\n * @description value of the Checkbox when used inside a `checkbox-group`\n */\n label: {\n type: [String, Boolean, Number, Object],\n },\n /**\n * @description Set indeterminate state, only responsible for style control\n */\n indeterminate: Boolean,\n /**\n * @description whether the Checkbox is disabled\n */\n disabled: Boolean,\n /**\n * @description if the Checkbox is checked\n */\n checked: Boolean,\n /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's checked\n */\n trueLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's not checked\n */\n falseLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description same as [aria-controls](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls), takes effect when `indeterminate` is `true`\n */\n controls: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to add a border around Checkbox\n */\n border: Boolean,\n /**\n * @description size of the Checkbox\n */\n size: useSizeProp,\n /**\n * @description input tabindex\n */\n tabindex: [String, Number],\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n}\n\nexport const checkboxEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n change: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>\nexport type CheckboxEmits = typeof checkboxEmits\nexport type CheckboxInstance = InstanceType<typeof Checkbox>\n"],"names":["useSizeProp","UPDATE_MODEL_EVENT","isString","isNumber","isBoolean"],"mappings":";;;;;;;;;;;;AAGY,MAAC,aAAa,GAAG;AAC7B,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AAC3C,GAAG;AACH,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,IAAI,EAAEA,iBAAW;AACnB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC5B,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AACjF,EAAE,MAAM,EAAE,CAAC,GAAG,KAAKF,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AACnE;;;;;"}
1
+ {"version":3,"file":"checkbox.js","sources":["../../../../../../packages/components/checkbox/src/checkbox.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { isBoolean, isNumber, isString } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Checkbox from './checkbox.vue'\n\nexport type CheckboxValueType = string | number | boolean\n\nexport const checkboxProps = {\n /**\n * @description binding value\n */\n modelValue: {\n type: [Number, String, Boolean],\n default: undefined,\n },\n /**\n * @description value of the Checkbox when used inside a `checkbox-group`\n */\n label: {\n type: [String, Boolean, Number, Object],\n default: undefined,\n },\n /**\n * @description Set indeterminate state, only responsible for style control\n */\n indeterminate: Boolean,\n /**\n * @description whether the Checkbox is disabled\n */\n disabled: Boolean,\n /**\n * @description if the Checkbox is checked\n */\n checked: Boolean,\n /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's checked\n */\n trueLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's not checked\n */\n falseLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description same as [aria-controls](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls), takes effect when `indeterminate` is `true`\n */\n controls: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to add a border around Checkbox\n */\n border: Boolean,\n /**\n * @description size of the Checkbox\n */\n size: useSizeProp,\n /**\n * @description input tabindex\n */\n tabindex: [String, Number],\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n}\n\nexport const checkboxEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n change: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>\nexport type CheckboxEmits = typeof checkboxEmits\nexport type CheckboxInstance = InstanceType<typeof Checkbox>\n"],"names":["useSizeProp","UPDATE_MODEL_EVENT","isString","isNumber","isBoolean"],"mappings":";;;;;;;;;;;;AAGY,MAAC,aAAa,GAAG;AAC7B,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,IAAI,EAAEA,iBAAW;AACnB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC5B,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AACjF,EAAE,MAAM,EAAE,CAAC,GAAG,KAAKF,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AACnE;;;;;"}
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  };
6
6
  label: {
7
7
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
8
+ default: undefined;
8
9
  };
9
10
  indeterminate: BooleanConstructor;
10
11
  disabled: BooleanConstructor;
@@ -49,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
49
50
  };
50
51
  label: {
51
52
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
53
+ default: undefined;
52
54
  };
53
55
  indeterminate: BooleanConstructor;
54
56
  disabled: BooleanConstructor;
@@ -132,6 +134,7 @@ declare const _default: import("vue").DefineComponent<{
132
134
  };
133
135
  label: {
134
136
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
137
+ default: undefined;
135
138
  };
136
139
  indeterminate: BooleanConstructor;
137
140
  disabled: BooleanConstructor;
@@ -173,6 +176,7 @@ declare const _default: import("vue").DefineComponent<{
173
176
  "onUpdate:modelValue"?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
174
177
  }, {
175
178
  modelValue: string | number | boolean;
179
+ label: string | number | boolean | Record<string, any>;
176
180
  id: string;
177
181
  disabled: boolean;
178
182
  name: string;
@@ -10,9 +10,8 @@ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper
10
10
  var useCheckbox = require('./composables/use-checkbox.js');
11
11
  var index = require('../../../hooks/use-namespace/index.js');
12
12
 
13
- const _hoisted_1 = ["tabindex", "role", "aria-checked"];
14
- const _hoisted_2 = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
15
- const _hoisted_3 = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"];
13
+ const _hoisted_1 = ["id", "indeterminate", "name", "tabindex", "disabled", "true-value", "false-value"];
14
+ const _hoisted_2 = ["id", "indeterminate", "disabled", "value", "name", "tabindex"];
16
15
  const __default__ = vue.defineComponent({
17
16
  name: "ElCheckbox"
18
17
  });
@@ -62,10 +61,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
62
61
  }, {
63
62
  default: vue.withCtx(() => [
64
63
  vue.createElementVNode("span", {
65
- class: vue.normalizeClass(vue.unref(spanKls)),
66
- tabindex: _ctx.indeterminate ? 0 : void 0,
67
- role: _ctx.indeterminate ? "checkbox" : void 0,
68
- "aria-checked": _ctx.indeterminate ? "mixed" : void 0
64
+ class: vue.normalizeClass(vue.unref(spanKls))
69
65
  }, [
70
66
  _ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
71
67
  key: 0,
@@ -73,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
73
69
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(model) ? model.value = $event : null),
74
70
  class: vue.normalizeClass(vue.unref(ns).e("original")),
75
71
  type: "checkbox",
76
- "aria-hidden": _ctx.indeterminate ? "true" : "false",
72
+ indeterminate: _ctx.indeterminate,
77
73
  name: _ctx.name,
78
74
  tabindex: _ctx.tabindex,
79
75
  disabled: vue.unref(isDisabled),
@@ -84,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
84
80
  onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
85
81
  onClick: _cache[4] || (_cache[4] = vue.withModifiers(() => {
86
82
  }, ["stop"]))
87
- }, null, 42, _hoisted_2)), [
83
+ }, null, 42, _hoisted_1)), [
88
84
  [vue.vModelCheckbox, vue.unref(model)]
89
85
  ]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
90
86
  key: 1,
@@ -92,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
92
88
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(model) ? model.value = $event : null),
93
89
  class: vue.normalizeClass(vue.unref(ns).e("original")),
94
90
  type: "checkbox",
95
- "aria-hidden": _ctx.indeterminate ? "true" : "false",
91
+ indeterminate: _ctx.indeterminate,
96
92
  disabled: vue.unref(isDisabled),
97
93
  value: _ctx.label,
98
94
  name: _ctx.name,
@@ -102,13 +98,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
102
98
  onBlur: _cache[8] || (_cache[8] = ($event) => isFocused.value = false),
103
99
  onClick: _cache[9] || (_cache[9] = vue.withModifiers(() => {
104
100
  }, ["stop"]))
105
- }, null, 42, _hoisted_3)), [
101
+ }, null, 42, _hoisted_2)), [
106
102
  [vue.vModelCheckbox, vue.unref(model)]
107
103
  ]),
108
104
  vue.createElementVNode("span", {
109
105
  class: vue.normalizeClass(vue.unref(ns).e("inner"))
110
106
  }, null, 2)
111
- ], 10, _hoisted_1),
107
+ ], 2),
112
108
  vue.unref(hasOwnLabel) ? (vue.openBlock(), vue.createElementBlock("span", {
113
109
  key: 0,
114
110
  class: vue.normalizeClass(vue.unref(ns).e("label"))
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox2.js","sources":["../../../../../../packages/components/checkbox/src/checkbox.vue"],"sourcesContent":["<template>\n <component\n :is=\"!hasOwnLabel && isLabeledByFormItem ? 'span' : 'label'\"\n :class=\"compKls\"\n :aria-controls=\"indeterminate ? controls : null\"\n @click=\"onClickRoot\"\n >\n <span\n :class=\"spanKls\"\n :tabindex=\"indeterminate ? 0 : undefined\"\n :role=\"indeterminate ? 'checkbox' : undefined\"\n :aria-checked=\"indeterminate ? 'mixed' : undefined\"\n >\n <input\n v-if=\"trueLabel || falseLabel\"\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :aria-hidden=\"indeterminate ? 'true' : 'false'\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n :disabled=\"isDisabled\"\n :true-value=\"trueLabel\"\n :false-value=\"falseLabel\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <input\n v-else\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :aria-hidden=\"indeterminate ? 'true' : 'false'\"\n :disabled=\"isDisabled\"\n :value=\"label\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <span :class=\"ns.e('inner')\" />\n </span>\n <span v-if=\"hasOwnLabel\" :class=\"ns.e('label')\">\n <slot />\n <template v-if=\"!$slots.default\">{{ label }}</template>\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkboxEmits, checkboxProps } from './checkbox'\nimport { useCheckbox } from './composables'\n\ndefineOptions({\n name: 'ElCheckbox',\n})\n\nconst props = defineProps(checkboxProps)\ndefineEmits(checkboxEmits)\nconst slots = useSlots()\n\nconst {\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n model,\n handleChange,\n onClickRoot,\n} = useCheckbox(props, slots)\n\nconst ns = useNamespace('checkbox')\n\nconst compKls = computed(() => {\n return [\n ns.b(),\n ns.m(checkboxSize.value),\n ns.is('disabled', isDisabled.value),\n ns.is('bordered', props.border),\n ns.is('checked', isChecked.value),\n ]\n})\n\nconst spanKls = computed(() => {\n return [\n ns.e('input'),\n ns.is('disabled', isDisabled.value),\n ns.is('checked', isChecked.value),\n ns.is('indeterminate', props.indeterminate),\n ns.is('focus', isFocused.value),\n ]\n})\n</script>\n"],"names":["useSlots","useCheckbox","useNamespace","computed"],"mappings":";;;;;;;;;;;;;;;uCA6Dc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA;AAAA,MACJ,OAAA;AAAA,MACA,mBAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAAC,uBAAA,CAAY,OAAO,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,EAAA,GAAKC,mBAAa,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAC7B,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,CAAE,CAAA,YAAA,CAAa,KAAK,CAAA;AAAA,QACvB,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,UAAA,CAAW,KAAK,CAAA;AAAA,QAClC,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,KAAA,CAAM,MAAM,CAAA;AAAA,QAC9B,EAAG,CAAA,EAAA,CAAG,SAAW,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,OAAA,GAAUA,aAAS,MAAM;AAC7B,MAAO,OAAA;AAAA,QACL,EAAA,CAAG,EAAE,OAAO,CAAA;AAAA,QACZ,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,UAAA,CAAW,KAAK,CAAA;AAAA,QAClC,EAAG,CAAA,EAAA,CAAG,SAAW,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,QAChC,EAAG,CAAA,EAAA,CAAG,eAAiB,EAAA,KAAA,CAAM,aAAa,CAAA;AAAA,QAC1C,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,OAChC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"checkbox2.js","sources":["../../../../../../packages/components/checkbox/src/checkbox.vue"],"sourcesContent":["<template>\n <component\n :is=\"!hasOwnLabel && isLabeledByFormItem ? 'span' : 'label'\"\n :class=\"compKls\"\n :aria-controls=\"indeterminate ? controls : null\"\n @click=\"onClickRoot\"\n >\n <span :class=\"spanKls\">\n <input\n v-if=\"trueLabel || falseLabel\"\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :indeterminate=\"indeterminate\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n :disabled=\"isDisabled\"\n :true-value=\"trueLabel\"\n :false-value=\"falseLabel\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <input\n v-else\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :indeterminate=\"indeterminate\"\n :disabled=\"isDisabled\"\n :value=\"label\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <span :class=\"ns.e('inner')\" />\n </span>\n <span v-if=\"hasOwnLabel\" :class=\"ns.e('label')\">\n <slot />\n <template v-if=\"!$slots.default\">{{ label }}</template>\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkboxEmits, checkboxProps } from './checkbox'\nimport { useCheckbox } from './composables'\n\ndefineOptions({\n name: 'ElCheckbox',\n})\n\nconst props = defineProps(checkboxProps)\ndefineEmits(checkboxEmits)\nconst slots = useSlots()\n\nconst {\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n model,\n handleChange,\n onClickRoot,\n} = useCheckbox(props, slots)\n\nconst ns = useNamespace('checkbox')\n\nconst compKls = computed(() => {\n return [\n ns.b(),\n ns.m(checkboxSize.value),\n ns.is('disabled', isDisabled.value),\n ns.is('bordered', props.border),\n ns.is('checked', isChecked.value),\n ]\n})\n\nconst spanKls = computed(() => {\n return [\n ns.e('input'),\n ns.is('disabled', isDisabled.value),\n ns.is('checked', isChecked.value),\n ns.is('indeterminate', props.indeterminate),\n ns.is('focus', isFocused.value),\n ]\n})\n</script>\n"],"names":["useSlots","useCheckbox","useNamespace","computed"],"mappings":";;;;;;;;;;;;;;uCAwDc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA;AAAA,MACJ,OAAA;AAAA,MACA,mBAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAAC,uBAAA,CAAY,OAAO,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,EAAA,GAAKC,mBAAa,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAC7B,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,CAAE,CAAA,YAAA,CAAa,KAAK,CAAA;AAAA,QACvB,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,UAAA,CAAW,KAAK,CAAA;AAAA,QAClC,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,KAAA,CAAM,MAAM,CAAA;AAAA,QAC9B,EAAG,CAAA,EAAA,CAAG,SAAW,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,OAAA,GAAUA,aAAS,MAAM;AAC7B,MAAO,OAAA;AAAA,QACL,EAAA,CAAG,EAAE,OAAO,CAAA;AAAA,QACZ,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,UAAA,CAAW,KAAK,CAAA;AAAA,QAClC,EAAG,CAAA,EAAA,CAAG,SAAW,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,QAChC,EAAG,CAAA,EAAA,CAAG,eAAiB,EAAA,KAAA,CAAM,aAAa,CAAA;AAAA,QAC1C,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,OAChC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -41,7 +41,7 @@ const useCheckboxStatus = (props, slots, { model }) => {
41
41
  return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
42
42
  }));
43
43
  const hasOwnLabel = vue.computed(() => {
44
- return !!(slots.default || props.label);
44
+ return !!slots.default || !lodashUnified.isNil(props.label);
45
45
  });
46
46
  return {
47
47
  checkboxButtonSize,
@@ -1 +1 @@
1
- {"version":3,"file":"use-checkbox-status.js","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-status.ts"],"sourcesContent":["import { computed, inject, ref, toRaw } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isArray, isBoolean, isObject } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { ComponentInternalInstance } from 'vue'\nimport type { CheckboxProps } from '../checkbox'\nimport type { CheckboxModel } from '../composables'\n\nexport const useCheckboxStatus = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots'],\n { model }: Pick<CheckboxModel, 'model'>\n) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const isFocused = ref(false)\n const isChecked = computed<boolean>(() => {\n const value = model.value\n if (isBoolean(value)) {\n return value\n } else if (isArray(value)) {\n if (isObject(props.label)) {\n return value.map(toRaw).some((o) => isEqual(o, props.label))\n } else {\n return value.map(toRaw).includes(props.label)\n }\n } else if (value !== null && value !== undefined) {\n return value === props.trueLabel\n } else {\n return !!value\n }\n })\n\n const checkboxButtonSize = useFormSize(\n computed(() => checkboxGroup?.size?.value),\n {\n prop: true,\n }\n )\n const checkboxSize = useFormSize(computed(() => checkboxGroup?.size?.value))\n\n const hasOwnLabel = computed<boolean>(() => {\n return !!(slots.default || props.label)\n })\n\n return {\n checkboxButtonSize,\n isChecked,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n }\n}\n\nexport type CheckboxStatus = ReturnType<typeof useCheckboxStatus>\n"],"names":["inject","checkboxGroupContextKey","ref","computed","isBoolean","isArray","isObject","toRaw","isEqual","useFormSize"],"mappings":";;;;;;;;;;;;;AAKY,MAAC,iBAAiB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK;AAC9D,EAAE,MAAM,aAAa,GAAGA,UAAM,CAACC,iCAAuB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,EAAE,MAAM,SAAS,GAAGC,OAAG,CAAC,KAAK,CAAC,CAAC;AAC/B,EAAE,MAAM,SAAS,GAAGC,YAAQ,CAAC,MAAM;AACnC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AAC9B,IAAI,IAAIC,eAAS,CAAC,KAAK,CAAC,EAAE;AAC1B,MAAM,OAAO,KAAK,CAAC;AACnB,KAAK,MAAM,IAAIC,cAAO,CAAC,KAAK,CAAC,EAAE;AAC/B,MAAM,IAAIC,eAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;AACjC,QAAQ,OAAO,KAAK,CAAC,GAAG,CAACC,SAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAKC,qBAAO,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AACrE,OAAO,MAAM;AACb,QAAQ,OAAO,KAAK,CAAC,GAAG,CAACD,SAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACtD,OAAO;AACP,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,EAAE;AACnD,MAAM,OAAO,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;AACvC,KAAK,MAAM;AACX,MAAM,OAAO,CAAC,CAAC,KAAK,CAAC;AACrB,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,kBAAkB,GAAGE,8BAAW,CAACN,YAAQ,CAAC,MAAM;AACxD,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,OAAO,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,EAAE;AACN,IAAI,IAAI,EAAE,IAAI;AACd,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,YAAY,GAAGM,8BAAW,CAACN,YAAQ,CAAC,MAAM;AAClD,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,OAAO,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,CAAC,CAAC;AACN,EAAE,MAAM,WAAW,GAAGA,YAAQ,CAAC,MAAM;AACrC,IAAI,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"use-checkbox-status.js","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-status.ts"],"sourcesContent":["import { computed, inject, ref, toRaw } from 'vue'\nimport { isEqual, isNil } from 'lodash-unified'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isArray, isBoolean, isObject } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { ComponentInternalInstance } from 'vue'\nimport type { CheckboxProps } from '../checkbox'\nimport type { CheckboxModel } from '../composables'\n\nexport const useCheckboxStatus = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots'],\n { model }: Pick<CheckboxModel, 'model'>\n) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const isFocused = ref(false)\n const isChecked = computed<boolean>(() => {\n const value = model.value\n if (isBoolean(value)) {\n return value\n } else if (isArray(value)) {\n if (isObject(props.label)) {\n return value.map(toRaw).some((o) => isEqual(o, props.label))\n } else {\n return value.map(toRaw).includes(props.label)\n }\n } else if (value !== null && value !== undefined) {\n return value === props.trueLabel\n } else {\n return !!value\n }\n })\n\n const checkboxButtonSize = useFormSize(\n computed(() => checkboxGroup?.size?.value),\n {\n prop: true,\n }\n )\n const checkboxSize = useFormSize(computed(() => checkboxGroup?.size?.value))\n\n const hasOwnLabel = computed<boolean>(() => {\n return !!slots.default || !isNil(props.label)\n })\n\n return {\n checkboxButtonSize,\n isChecked,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n }\n}\n\nexport type CheckboxStatus = ReturnType<typeof useCheckboxStatus>\n"],"names":["inject","checkboxGroupContextKey","ref","computed","isBoolean","isArray","isObject","toRaw","isEqual","useFormSize","isNil"],"mappings":";;;;;;;;;;;;;AAKY,MAAC,iBAAiB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK;AAC9D,EAAE,MAAM,aAAa,GAAGA,UAAM,CAACC,iCAAuB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,EAAE,MAAM,SAAS,GAAGC,OAAG,CAAC,KAAK,CAAC,CAAC;AAC/B,EAAE,MAAM,SAAS,GAAGC,YAAQ,CAAC,MAAM;AACnC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AAC9B,IAAI,IAAIC,eAAS,CAAC,KAAK,CAAC,EAAE;AAC1B,MAAM,OAAO,KAAK,CAAC;AACnB,KAAK,MAAM,IAAIC,cAAO,CAAC,KAAK,CAAC,EAAE;AAC/B,MAAM,IAAIC,eAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;AACjC,QAAQ,OAAO,KAAK,CAAC,GAAG,CAACC,SAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAKC,qBAAO,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AACrE,OAAO,MAAM;AACb,QAAQ,OAAO,KAAK,CAAC,GAAG,CAACD,SAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACtD,OAAO;AACP,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,EAAE;AACnD,MAAM,OAAO,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;AACvC,KAAK,MAAM;AACX,MAAM,OAAO,CAAC,CAAC,KAAK,CAAC;AACrB,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,kBAAkB,GAAGE,8BAAW,CAACN,YAAQ,CAAC,MAAM;AACxD,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,OAAO,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,EAAE;AACN,IAAI,IAAI,EAAE,IAAI;AACd,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,YAAY,GAAGM,8BAAW,CAACN,YAAQ,CAAC,MAAM;AAClD,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,OAAO,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,CAAC,CAAC;AACN,EAAE,MAAM,WAAW,GAAGA,YAAQ,CAAC,MAAM;AACrC,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAACO,mBAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClD,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
@@ -51,6 +51,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
51
51
  "aria-controls": vue.unref(scopedContentId),
52
52
  "aria-describedby": vue.unref(scopedContentId),
53
53
  tabindex: _ctx.disabled ? -1 : 0,
54
+ type: "button",
54
55
  onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(handleHeaderClick) && vue.unref(handleHeaderClick)(...args)),
55
56
  onKeydown: _cache[1] || (_cache[1] = vue.withKeys(vue.withModifiers((...args) => vue.unref(handleEnterClick) && vue.unref(handleEnterClick)(...args), ["stop", "prevent"]), ["space", "enter"])),
56
57
  onFocus: _cache[2] || (_cache[2] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
@@ -1 +1 @@
1
- {"version":3,"file":"collapse-item2.js","sources":["../../../../../../packages/components/collapse/src/collapse-item.vue"],"sourcesContent":["<template>\n <div :class=\"rootKls\">\n <button\n :id=\"scopedHeadId\"\n :class=\"headKls\"\n :aria-expanded=\"isActive\"\n :aria-controls=\"scopedContentId\"\n :aria-describedby=\"scopedContentId\"\n :tabindex=\"disabled ? -1 : 0\"\n @click=\"handleHeaderClick\"\n @keydown.space.enter.stop.prevent=\"handleEnterClick\"\n @focus=\"handleFocus\"\n @blur=\"focusing = false\"\n >\n <slot name=\"title\">{{ title }}</slot>\n <el-icon :class=\"arrowKls\">\n <arrow-right />\n </el-icon>\n </button>\n\n <el-collapse-transition>\n <div\n v-show=\"isActive\"\n :id=\"scopedContentId\"\n role=\"region\"\n :class=\"itemWrapperKls\"\n :aria-hidden=\"!isActive\"\n :aria-labelledby=\"scopedHeadId\"\n >\n <div :class=\"itemContentKls\">\n <slot />\n </div>\n </div>\n </el-collapse-transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport ElCollapseTransition from '@element-plus/components/collapse-transition'\nimport ElIcon from '@element-plus/components/icon'\nimport { ArrowRight } from '@element-plus/icons-vue'\nimport { collapseItemProps } from './collapse-item'\nimport { useCollapseItem, useCollapseItemDOM } from './use-collapse-item'\n\ndefineOptions({\n name: 'ElCollapseItem',\n})\n\nconst props = defineProps(collapseItemProps)\nconst {\n focusing,\n id,\n isActive,\n handleFocus,\n handleHeaderClick,\n handleEnterClick,\n} = useCollapseItem(props)\n\nconst {\n arrowKls,\n headKls,\n rootKls,\n itemWrapperKls,\n itemContentKls,\n scopedContentId,\n scopedHeadId,\n} = useCollapseItemDOM(props, { focusing, isActive, id })\n\ndefineExpose({\n /** @description current collapse-item whether active */\n isActive,\n})\n</script>\n"],"names":["useCollapseItem","useCollapseItemDOM"],"mappings":";;;;;;;;;;;;;;uCA4Cc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,EAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA,iBAAA;AAAA,MACA,gBAAA;AAAA,KAAA,GACEA,gCAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,OAAA;AAAA,MACA,OAAA;AAAA,MACA,cAAA;AAAA,MACA,cAAA;AAAA,MACA,eAAA;AAAA,MACA,YAAA;AAAA,KAAA,GACEC,mCAAmB,KAAO,EAAA,EAAE,QAAU,EAAA,QAAA,EAAU,IAAI,CAAA,CAAA;AAExD,IAAa,MAAA,CAAA;AAAA,MAEX,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"collapse-item2.js","sources":["../../../../../../packages/components/collapse/src/collapse-item.vue"],"sourcesContent":["<template>\n <div :class=\"rootKls\">\n <button\n :id=\"scopedHeadId\"\n :class=\"headKls\"\n :aria-expanded=\"isActive\"\n :aria-controls=\"scopedContentId\"\n :aria-describedby=\"scopedContentId\"\n :tabindex=\"disabled ? -1 : 0\"\n type=\"button\"\n @click=\"handleHeaderClick\"\n @keydown.space.enter.stop.prevent=\"handleEnterClick\"\n @focus=\"handleFocus\"\n @blur=\"focusing = false\"\n >\n <slot name=\"title\">{{ title }}</slot>\n <el-icon :class=\"arrowKls\">\n <arrow-right />\n </el-icon>\n </button>\n\n <el-collapse-transition>\n <div\n v-show=\"isActive\"\n :id=\"scopedContentId\"\n role=\"region\"\n :class=\"itemWrapperKls\"\n :aria-hidden=\"!isActive\"\n :aria-labelledby=\"scopedHeadId\"\n >\n <div :class=\"itemContentKls\">\n <slot />\n </div>\n </div>\n </el-collapse-transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport ElCollapseTransition from '@element-plus/components/collapse-transition'\nimport ElIcon from '@element-plus/components/icon'\nimport { ArrowRight } from '@element-plus/icons-vue'\nimport { collapseItemProps } from './collapse-item'\nimport { useCollapseItem, useCollapseItemDOM } from './use-collapse-item'\n\ndefineOptions({\n name: 'ElCollapseItem',\n})\n\nconst props = defineProps(collapseItemProps)\nconst {\n focusing,\n id,\n isActive,\n handleFocus,\n handleHeaderClick,\n handleEnterClick,\n} = useCollapseItem(props)\n\nconst {\n arrowKls,\n headKls,\n rootKls,\n itemWrapperKls,\n itemContentKls,\n scopedContentId,\n scopedHeadId,\n} = useCollapseItemDOM(props, { focusing, isActive, id })\n\ndefineExpose({\n /** @description current collapse-item whether active */\n isActive,\n})\n</script>\n"],"names":["useCollapseItem","useCollapseItemDOM"],"mappings":";;;;;;;;;;;;;;uCA6Cc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,EAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA,iBAAA;AAAA,MACA,gBAAA;AAAA,KAAA,GACEA,gCAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,OAAA;AAAA,MACA,OAAA;AAAA,MACA,cAAA;AAAA,MACA,cAAA;AAAA,MACA,eAAA;AAAA,MACA,YAAA;AAAA,KAAA,GACEC,mCAAmB,KAAO,EAAA,EAAE,QAAU,EAAA,QAAA,EAAU,IAAI,CAAA,CAAA;AAExD,IAAa,MAAA,CAAA;AAAA,MAEX,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -46,9 +46,11 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
46
46
  }>> & {
47
47
  onChange?: ((val: string | null) => any) | undefined;
48
48
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
49
+ onFocus?: ((event: FocusEvent) => any) | undefined;
50
+ onBlur?: ((event: FocusEvent) => any) | undefined;
49
51
  onActiveChange?: ((val: string | null) => any) | undefined;
50
52
  }>>;
51
- emit: ((event: "update:modelValue", val: string | null) => void) & ((event: "change", val: string | null) => void) & ((event: "activeChange", val: string | null) => void);
53
+ emit: ((event: "update:modelValue", val: string | null) => void) & ((event: "change", val: string | null) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "activeChange", val: string | null) => void);
52
54
  t: import("../..").Translator;
53
55
  ns: {
54
56
  namespace: import("vue").ComputedRef<string>;
@@ -6644,6 +6646,12 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
6644
6646
  readonly disabled: boolean;
6645
6647
  }>;
6646
6648
  }> & {} & import("vue").ComponentCustomProperties) | undefined>;
6649
+ triggerRef: import("vue").Ref<any>;
6650
+ inputRef: import("vue").Ref<any>;
6651
+ isFocused: import("vue").Ref<boolean>;
6652
+ _handleFocus: (event: FocusEvent) => void;
6653
+ handleBlur: (event: FocusEvent) => void;
6654
+ handleFocus: (event: FocusEvent) => void;
6647
6655
  shouldActiveChange: boolean;
6648
6656
  color: import("./src/utils/color").default;
6649
6657
  showPicker: import("vue").Ref<boolean>;
@@ -6656,7 +6664,7 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
6656
6664
  btnKls: import("vue").ComputedRef<string[]>;
6657
6665
  displayedRgb: (color: import("./src/utils/color").default, showAlpha: boolean) => string;
6658
6666
  setShowPicker: (value: boolean) => void;
6659
- debounceSetShowPicker: import("lodash").DebouncedFunc<(value: boolean) => void>;
6667
+ debounceSetShowPicker: import("lodash").DebouncedFuncLeading<(value: boolean) => void>;
6660
6668
  show: () => void;
6661
6669
  hide: () => void;
6662
6670
  resetColor: () => void;
@@ -6664,6 +6672,11 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
6664
6672
  handleConfirm: () => void;
6665
6673
  confirmValue: () => void;
6666
6674
  clear: () => void;
6675
+ handleClickOutside: (event: Event) => void;
6676
+ handleEsc: (event: KeyboardEvent) => void;
6677
+ handleKeyDown: (event: KeyboardEvent) => void;
6678
+ focus: () => void;
6679
+ blur: () => void;
6667
6680
  ElButton: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
6668
6681
  readonly size: {
6669
6682
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
@@ -10834,6 +10847,8 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
10834
10847
  "update:modelValue": (val: string | null) => boolean;
10835
10848
  change: (val: string | null) => boolean;
10836
10849
  activeChange: (val: string | null) => boolean;
10850
+ focus: (event: FocusEvent) => boolean;
10851
+ blur: (event: FocusEvent) => boolean;
10837
10852
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10838
10853
  readonly modelValue: StringConstructor;
10839
10854
  readonly id: StringConstructor;
@@ -10859,6 +10874,8 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
10859
10874
  }>> & {
10860
10875
  onChange?: ((val: string | null) => any) | undefined;
10861
10876
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
10877
+ onFocus?: ((event: FocusEvent) => any) | undefined;
10878
+ onBlur?: ((event: FocusEvent) => any) | undefined;
10862
10879
  onActiveChange?: ((val: string | null) => any) | undefined;
10863
10880
  }, {
10864
10881
  readonly popperClass: string;
@@ -27,6 +27,8 @@ export declare const colorPickerEmits: {
27
27
  "update:modelValue": (val: string | null) => boolean;
28
28
  change: (val: string | null) => boolean;
29
29
  activeChange: (val: string | null) => boolean;
30
+ focus: (event: FocusEvent) => boolean;
31
+ blur: (event: FocusEvent) => boolean;
30
32
  };
31
33
  export declare type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>;
32
34
  export declare type ColorPickerEmits = typeof colorPickerEmits;
@@ -41,7 +41,9 @@ const colorPickerProps = runtime.buildProps({
41
41
  const colorPickerEmits = {
42
42
  [event.UPDATE_MODEL_EVENT]: (val) => shared.isString(val) || lodashUnified.isNil(val),
43
43
  [event.CHANGE_EVENT]: (val) => shared.isString(val) || lodashUnified.isNil(val),
44
- activeChange: (val) => shared.isString(val) || lodashUnified.isNil(val)
44
+ activeChange: (val) => shared.isString(val) || lodashUnified.isNil(val),
45
+ focus: (event) => event instanceof FocusEvent,
46
+ blur: (event) => event instanceof FocusEvent
45
47
  };
46
48
  const colorPickerContextKey = Symbol("colorPickerContextKey");
47
49
 
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker.js","sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ComputedRef, ExtractPropTypes, InjectionKey } from 'vue'\nimport type ColorPicker from './color-picker.vue'\n\nexport const colorPickerProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: String,\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: Boolean,\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description ColorPicker aria-label\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n}\n\nexport type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker>\n\nexport interface ColorPickerContext {\n currentColor: ComputedRef<string>\n}\n\nexport const colorPickerContextKey: InjectionKey<ColorPickerContext> = Symbol(\n 'colorPickerContextKey'\n)\n"],"names":["buildProps","useSizeProp","definePropType","UPDATE_MODEL_EVENT","isString","isNil","CHANGE_EVENT"],"mappings":";;;;;;;;;;;;;AAIY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,WAAW,EAAE;AACf,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,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,mBAAK,CAAC,GAAG,CAAC;AAC5D,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKF,eAAQ,CAAC,GAAG,CAAC,IAAIC,mBAAK,CAAC,GAAG,CAAC;AACtD,EAAE,YAAY,EAAE,CAAC,GAAG,KAAKD,eAAQ,CAAC,GAAG,CAAC,IAAIC,mBAAK,CAAC,GAAG,CAAC;AACpD,EAAE;AACU,MAAC,qBAAqB,GAAG,MAAM,CAAC,uBAAuB;;;;;;"}
1
+ {"version":3,"file":"color-picker.js","sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ComputedRef, ExtractPropTypes, InjectionKey } from 'vue'\nimport type ColorPicker from './color-picker.vue'\n\nexport const colorPickerProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: String,\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: Boolean,\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description ColorPicker aria-label\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n focus: (event: FocusEvent) => event instanceof FocusEvent,\n blur: (event: FocusEvent) => event instanceof FocusEvent,\n}\n\nexport type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker>\n\nexport interface ColorPickerContext {\n currentColor: ComputedRef<string>\n}\n\nexport const colorPickerContextKey: InjectionKey<ColorPickerContext> = Symbol(\n 'colorPickerContextKey'\n)\n"],"names":["buildProps","useSizeProp","definePropType","UPDATE_MODEL_EVENT","isString","isNil","CHANGE_EVENT"],"mappings":";;;;;;;;;;;;;AAIY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,WAAW,EAAE;AACf,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,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,mBAAK,CAAC,GAAG,CAAC;AAC5D,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKF,eAAQ,CAAC,GAAG,CAAC,IAAIC,mBAAK,CAAC,GAAG,CAAC;AACtD,EAAE,YAAY,EAAE,CAAC,GAAG,KAAKD,eAAQ,CAAC,GAAG,CAAC,IAAIC,mBAAK,CAAC,GAAG,CAAC;AACpD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,KAAK,YAAY,UAAU;AAC/C,EAAE,IAAI,EAAE,CAAC,KAAK,KAAK,KAAK,YAAY,UAAU;AAC9C,EAAE;AACU,MAAC,qBAAqB,GAAG,MAAM,CAAC,uBAAuB;;;;;;"}