@element-plus/nightly 0.0.20250420 → 0.0.20250421

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 (663) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +24 -7
  4. package/dist/index.full.min.js +9 -9
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +9 -9
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +24 -7
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hi.js +1 -1
  94. package/dist/locale/hi.min.js +1 -1
  95. package/dist/locale/hi.min.mjs +1 -1
  96. package/dist/locale/hi.mjs +1 -1
  97. package/dist/locale/hr.js +1 -1
  98. package/dist/locale/hr.min.js +1 -1
  99. package/dist/locale/hr.min.mjs +1 -1
  100. package/dist/locale/hr.mjs +1 -1
  101. package/dist/locale/hu.js +1 -1
  102. package/dist/locale/hu.min.js +1 -1
  103. package/dist/locale/hu.min.mjs +1 -1
  104. package/dist/locale/hu.mjs +1 -1
  105. package/dist/locale/hy-am.js +1 -1
  106. package/dist/locale/hy-am.min.js +1 -1
  107. package/dist/locale/hy-am.min.mjs +1 -1
  108. package/dist/locale/hy-am.mjs +1 -1
  109. package/dist/locale/id.js +1 -1
  110. package/dist/locale/id.min.js +1 -1
  111. package/dist/locale/id.min.mjs +1 -1
  112. package/dist/locale/id.mjs +1 -1
  113. package/dist/locale/it.js +1 -1
  114. package/dist/locale/it.min.js +1 -1
  115. package/dist/locale/it.min.mjs +1 -1
  116. package/dist/locale/it.mjs +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ja.min.js +1 -1
  119. package/dist/locale/ja.min.mjs +1 -1
  120. package/dist/locale/ja.mjs +1 -1
  121. package/dist/locale/kk.js +1 -1
  122. package/dist/locale/kk.min.js +1 -1
  123. package/dist/locale/kk.min.mjs +1 -1
  124. package/dist/locale/kk.mjs +1 -1
  125. package/dist/locale/km.js +1 -1
  126. package/dist/locale/km.min.js +1 -1
  127. package/dist/locale/km.min.mjs +1 -1
  128. package/dist/locale/km.mjs +1 -1
  129. package/dist/locale/ko.js +1 -1
  130. package/dist/locale/ko.min.js +1 -1
  131. package/dist/locale/ko.min.mjs +1 -1
  132. package/dist/locale/ko.mjs +1 -1
  133. package/dist/locale/ku.js +1 -1
  134. package/dist/locale/ku.min.js +1 -1
  135. package/dist/locale/ku.min.mjs +1 -1
  136. package/dist/locale/ku.mjs +1 -1
  137. package/dist/locale/ky.js +1 -1
  138. package/dist/locale/ky.min.js +1 -1
  139. package/dist/locale/ky.min.mjs +1 -1
  140. package/dist/locale/ky.mjs +1 -1
  141. package/dist/locale/lo.js +1 -1
  142. package/dist/locale/lo.min.js +1 -1
  143. package/dist/locale/lo.min.mjs +1 -1
  144. package/dist/locale/lo.mjs +1 -1
  145. package/dist/locale/lt.js +1 -1
  146. package/dist/locale/lt.min.js +1 -1
  147. package/dist/locale/lt.min.mjs +1 -1
  148. package/dist/locale/lt.mjs +1 -1
  149. package/dist/locale/lv.js +1 -1
  150. package/dist/locale/lv.min.js +1 -1
  151. package/dist/locale/lv.min.mjs +1 -1
  152. package/dist/locale/lv.mjs +1 -1
  153. package/dist/locale/mg.js +1 -1
  154. package/dist/locale/mg.min.js +1 -1
  155. package/dist/locale/mg.min.mjs +1 -1
  156. package/dist/locale/mg.mjs +1 -1
  157. package/dist/locale/mn.js +1 -1
  158. package/dist/locale/mn.min.js +1 -1
  159. package/dist/locale/mn.min.mjs +1 -1
  160. package/dist/locale/mn.mjs +1 -1
  161. package/dist/locale/ms.js +1 -1
  162. package/dist/locale/ms.min.js +1 -1
  163. package/dist/locale/ms.min.mjs +1 -1
  164. package/dist/locale/ms.mjs +1 -1
  165. package/dist/locale/my.js +1 -1
  166. package/dist/locale/my.min.js +1 -1
  167. package/dist/locale/my.min.mjs +1 -1
  168. package/dist/locale/my.mjs +1 -1
  169. package/dist/locale/nb-no.js +1 -1
  170. package/dist/locale/nb-no.min.js +1 -1
  171. package/dist/locale/nb-no.min.mjs +1 -1
  172. package/dist/locale/nb-no.mjs +1 -1
  173. package/dist/locale/nl.js +1 -1
  174. package/dist/locale/nl.min.js +1 -1
  175. package/dist/locale/nl.min.mjs +1 -1
  176. package/dist/locale/nl.mjs +1 -1
  177. package/dist/locale/no.js +1 -1
  178. package/dist/locale/no.min.js +1 -1
  179. package/dist/locale/no.min.mjs +1 -1
  180. package/dist/locale/no.mjs +1 -1
  181. package/dist/locale/pa.js +1 -1
  182. package/dist/locale/pa.min.js +1 -1
  183. package/dist/locale/pa.min.mjs +1 -1
  184. package/dist/locale/pa.mjs +1 -1
  185. package/dist/locale/pl.js +1 -1
  186. package/dist/locale/pl.min.js +1 -1
  187. package/dist/locale/pl.min.mjs +1 -1
  188. package/dist/locale/pl.mjs +1 -1
  189. package/dist/locale/pt-br.js +1 -1
  190. package/dist/locale/pt-br.min.js +1 -1
  191. package/dist/locale/pt-br.min.mjs +1 -1
  192. package/dist/locale/pt-br.mjs +1 -1
  193. package/dist/locale/pt.js +1 -1
  194. package/dist/locale/pt.min.js +1 -1
  195. package/dist/locale/pt.min.mjs +1 -1
  196. package/dist/locale/pt.mjs +1 -1
  197. package/dist/locale/ro.js +1 -1
  198. package/dist/locale/ro.min.js +1 -1
  199. package/dist/locale/ro.min.mjs +1 -1
  200. package/dist/locale/ro.mjs +1 -1
  201. package/dist/locale/ru.js +1 -1
  202. package/dist/locale/ru.min.js +1 -1
  203. package/dist/locale/ru.min.mjs +1 -1
  204. package/dist/locale/ru.mjs +1 -1
  205. package/dist/locale/sk.js +1 -1
  206. package/dist/locale/sk.min.js +1 -1
  207. package/dist/locale/sk.min.mjs +1 -1
  208. package/dist/locale/sk.mjs +1 -1
  209. package/dist/locale/sl.js +1 -1
  210. package/dist/locale/sl.min.js +1 -1
  211. package/dist/locale/sl.min.mjs +1 -1
  212. package/dist/locale/sl.mjs +1 -1
  213. package/dist/locale/sr.js +1 -1
  214. package/dist/locale/sr.min.js +1 -1
  215. package/dist/locale/sr.min.mjs +1 -1
  216. package/dist/locale/sr.mjs +1 -1
  217. package/dist/locale/sv.js +1 -1
  218. package/dist/locale/sv.min.js +1 -1
  219. package/dist/locale/sv.min.mjs +1 -1
  220. package/dist/locale/sv.mjs +1 -1
  221. package/dist/locale/sw.js +1 -1
  222. package/dist/locale/sw.min.js +1 -1
  223. package/dist/locale/sw.min.mjs +1 -1
  224. package/dist/locale/sw.mjs +1 -1
  225. package/dist/locale/ta.js +1 -1
  226. package/dist/locale/ta.min.js +1 -1
  227. package/dist/locale/ta.min.mjs +1 -1
  228. package/dist/locale/ta.mjs +1 -1
  229. package/dist/locale/te.js +1 -1
  230. package/dist/locale/te.min.js +1 -1
  231. package/dist/locale/te.min.mjs +1 -1
  232. package/dist/locale/te.mjs +1 -1
  233. package/dist/locale/th.js +1 -1
  234. package/dist/locale/th.min.js +1 -1
  235. package/dist/locale/th.min.mjs +1 -1
  236. package/dist/locale/th.mjs +1 -1
  237. package/dist/locale/tk.js +1 -1
  238. package/dist/locale/tk.min.js +1 -1
  239. package/dist/locale/tk.min.mjs +1 -1
  240. package/dist/locale/tk.mjs +1 -1
  241. package/dist/locale/tr.js +1 -1
  242. package/dist/locale/tr.min.js +1 -1
  243. package/dist/locale/tr.min.mjs +1 -1
  244. package/dist/locale/tr.mjs +1 -1
  245. package/dist/locale/ug-cn.js +1 -1
  246. package/dist/locale/ug-cn.min.js +1 -1
  247. package/dist/locale/ug-cn.min.mjs +1 -1
  248. package/dist/locale/ug-cn.mjs +1 -1
  249. package/dist/locale/uk.js +1 -1
  250. package/dist/locale/uk.min.js +1 -1
  251. package/dist/locale/uk.min.mjs +1 -1
  252. package/dist/locale/uk.mjs +1 -1
  253. package/dist/locale/uz-uz.js +1 -1
  254. package/dist/locale/uz-uz.min.js +1 -1
  255. package/dist/locale/uz-uz.min.mjs +1 -1
  256. package/dist/locale/uz-uz.mjs +1 -1
  257. package/dist/locale/vi.js +1 -1
  258. package/dist/locale/vi.min.js +1 -1
  259. package/dist/locale/vi.min.mjs +1 -1
  260. package/dist/locale/vi.mjs +1 -1
  261. package/dist/locale/zh-cn.js +1 -1
  262. package/dist/locale/zh-cn.min.js +1 -1
  263. package/dist/locale/zh-cn.min.mjs +1 -1
  264. package/dist/locale/zh-cn.mjs +1 -1
  265. package/dist/locale/zh-hk.js +1 -1
  266. package/dist/locale/zh-hk.min.js +1 -1
  267. package/dist/locale/zh-hk.min.mjs +1 -1
  268. package/dist/locale/zh-hk.mjs +1 -1
  269. package/dist/locale/zh-mo.js +1 -1
  270. package/dist/locale/zh-mo.min.js +1 -1
  271. package/dist/locale/zh-mo.min.mjs +1 -1
  272. package/dist/locale/zh-mo.mjs +1 -1
  273. package/dist/locale/zh-tw.js +1 -1
  274. package/dist/locale/zh-tw.min.js +1 -1
  275. package/dist/locale/zh-tw.min.mjs +1 -1
  276. package/dist/locale/zh-tw.mjs +1 -1
  277. package/es/components/autocomplete/index.mjs +2 -2
  278. package/es/components/autocomplete/src/autocomplete.mjs +370 -80
  279. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  280. package/es/components/autocomplete/src/autocomplete2.mjs +80 -370
  281. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  282. package/es/components/breadcrumb/index.mjs +2 -2
  283. package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
  284. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  285. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
  286. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  287. package/es/components/button/index.mjs +3 -3
  288. package/es/components/button/src/button-group.mjs +29 -6
  289. package/es/components/button/src/button-group.mjs.map +1 -1
  290. package/es/components/button/src/button-group2.mjs +6 -29
  291. package/es/components/button/src/button-group2.mjs.map +1 -1
  292. package/es/components/button/src/button.mjs +77 -56
  293. package/es/components/button/src/button.mjs.map +1 -1
  294. package/es/components/button/src/button2.mjs +56 -77
  295. package/es/components/button/src/button2.mjs.map +1 -1
  296. package/es/components/calendar/index.mjs +2 -2
  297. package/es/components/calendar/src/calendar.mjs +16 -134
  298. package/es/components/calendar/src/calendar.mjs.map +1 -1
  299. package/es/components/calendar/src/calendar2.mjs +134 -16
  300. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  301. package/es/components/calendar/src/date-table.mjs +89 -31
  302. package/es/components/calendar/src/date-table.mjs.map +1 -1
  303. package/es/components/calendar/src/date-table2.mjs +31 -89
  304. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  305. package/es/components/calendar/src/use-date-table.mjs +1 -1
  306. package/es/components/cascader/index.mjs +2 -2
  307. package/es/components/cascader/src/cascader.mjs +80 -637
  308. package/es/components/cascader/src/cascader.mjs.map +1 -1
  309. package/es/components/cascader/src/cascader2.mjs +637 -80
  310. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  311. package/es/components/cascader-panel/src/index.mjs +1 -1
  312. package/es/components/cascader-panel/src/menu.mjs +1 -1
  313. package/es/components/cascader-panel/src/node.mjs +115 -206
  314. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  315. package/es/components/cascader-panel/src/node2.mjs +206 -115
  316. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  317. package/es/components/cascader-panel/src/store.mjs +1 -1
  318. package/es/components/checkbox/index.mjs +2 -2
  319. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  320. package/es/components/checkbox/src/checkbox.mjs +59 -119
  321. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  322. package/es/components/checkbox/src/checkbox2.mjs +119 -59
  323. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  324. package/es/components/color-picker/src/color-picker.mjs +1 -1
  325. package/es/components/countdown/index.mjs +2 -2
  326. package/es/components/countdown/src/countdown.mjs +21 -79
  327. package/es/components/countdown/src/countdown.mjs.map +1 -1
  328. package/es/components/countdown/src/countdown2.mjs +79 -21
  329. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  330. package/es/components/descriptions/index.mjs +2 -2
  331. package/es/components/descriptions/src/description.mjs +26 -127
  332. package/es/components/descriptions/src/description.mjs.map +1 -1
  333. package/es/components/descriptions/src/description2.mjs +127 -26
  334. package/es/components/descriptions/src/description2.mjs.map +1 -1
  335. package/es/components/descriptions/src/descriptions-row.mjs +63 -6
  336. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  337. package/es/components/descriptions/src/descriptions-row2.mjs +6 -63
  338. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  339. package/es/components/dropdown/index.mjs +2 -2
  340. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  341. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  342. package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
  343. package/es/components/dropdown/src/dropdown.mjs +299 -108
  344. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  345. package/es/components/dropdown/src/dropdown2.mjs +108 -299
  346. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  347. package/es/components/index.mjs +28 -28
  348. package/es/components/input-number/index.mjs +2 -2
  349. package/es/components/input-number/src/input-number.mjs +60 -349
  350. package/es/components/input-number/src/input-number.mjs.map +1 -1
  351. package/es/components/input-number/src/input-number2.mjs +349 -60
  352. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  353. package/es/components/link/index.mjs +2 -2
  354. package/es/components/link/src/link.d.ts +1 -1
  355. package/es/components/link/src/link.mjs +25 -49
  356. package/es/components/link/src/link.mjs.map +1 -1
  357. package/es/components/link/src/link.vue.d.ts +3 -3
  358. package/es/components/link/src/link2.mjs +65 -24
  359. package/es/components/link/src/link2.mjs.map +1 -1
  360. package/es/components/menu/index.mjs +4 -4
  361. package/es/components/menu/src/menu-item-group.mjs +4 -33
  362. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  363. package/es/components/menu/src/menu-item-group2.mjs +33 -4
  364. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  365. package/es/components/menu/src/menu-item.mjs +15 -97
  366. package/es/components/menu/src/menu-item.mjs.map +1 -1
  367. package/es/components/menu/src/menu-item2.mjs +97 -15
  368. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  369. package/es/components/pagination/src/components/prev.mjs +35 -17
  370. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  371. package/es/components/pagination/src/components/prev2.mjs +17 -35
  372. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  373. package/es/components/pagination/src/components/sizes.mjs +23 -71
  374. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  375. package/es/components/pagination/src/components/sizes2.mjs +71 -23
  376. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  377. package/es/components/pagination/src/pagination.mjs +2 -2
  378. package/es/components/popconfirm/src/popconfirm.mjs +2 -2
  379. package/es/components/popover/src/popover.mjs +2 -2
  380. package/es/components/popper/index.mjs +8 -8
  381. package/es/components/popper/src/arrow.mjs +7 -36
  382. package/es/components/popper/src/arrow.mjs.map +1 -1
  383. package/es/components/popper/src/arrow2.mjs +36 -7
  384. package/es/components/popper/src/arrow2.mjs.map +1 -1
  385. package/es/components/popper/src/content.mjs +92 -132
  386. package/es/components/popper/src/content.mjs.map +1 -1
  387. package/es/components/popper/src/content2.mjs +132 -92
  388. package/es/components/popper/src/content2.mjs.map +1 -1
  389. package/es/components/popper/src/popper.mjs +22 -32
  390. package/es/components/popper/src/popper.mjs.map +1 -1
  391. package/es/components/popper/src/popper2.mjs +32 -22
  392. package/es/components/popper/src/popper2.mjs.map +1 -1
  393. package/es/components/popper/src/trigger.mjs +127 -31
  394. package/es/components/popper/src/trigger.mjs.map +1 -1
  395. package/es/components/popper/src/trigger2.mjs +31 -127
  396. package/es/components/popper/src/trigger2.mjs.map +1 -1
  397. package/es/components/radio/index.mjs +2 -2
  398. package/es/components/radio/src/radio-button.mjs +5 -65
  399. package/es/components/radio/src/radio-button.mjs.map +1 -1
  400. package/es/components/radio/src/radio-button2.mjs +65 -5
  401. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  402. package/es/components/roving-focus-group/index.mjs +3 -3
  403. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  404. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
  405. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  406. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
  407. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  408. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  409. package/es/components/scrollbar/index.mjs +2 -2
  410. package/es/components/scrollbar/src/scrollbar.mjs +55 -170
  411. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  412. package/es/components/scrollbar/src/scrollbar2.mjs +170 -55
  413. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  414. package/es/components/select/index.mjs +2 -2
  415. package/es/components/select/src/select.mjs +130 -428
  416. package/es/components/select/src/select.mjs.map +1 -1
  417. package/es/components/select/src/select2.mjs +428 -130
  418. package/es/components/select/src/select2.mjs.map +1 -1
  419. package/es/components/select-v2/src/defaults.mjs +1 -1
  420. package/es/components/skeleton/index.mjs +2 -2
  421. package/es/components/skeleton/src/skeleton.mjs +21 -48
  422. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  423. package/es/components/skeleton/src/skeleton2.mjs +48 -21
  424. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  425. package/es/components/steps/index.mjs +2 -2
  426. package/es/components/steps/src/steps.mjs +35 -38
  427. package/es/components/steps/src/steps.mjs.map +1 -1
  428. package/es/components/steps/src/steps2.mjs +38 -35
  429. package/es/components/steps/src/steps2.mjs.map +1 -1
  430. package/es/components/switch/index.mjs +2 -2
  431. package/es/components/switch/src/switch.mjs +72 -228
  432. package/es/components/switch/src/switch.mjs.map +1 -1
  433. package/es/components/switch/src/switch2.mjs +228 -72
  434. package/es/components/switch/src/switch2.mjs.map +1 -1
  435. package/es/components/teleport/index.mjs +2 -2
  436. package/es/components/teleport/src/teleport.mjs +8 -18
  437. package/es/components/teleport/src/teleport.mjs.map +1 -1
  438. package/es/components/teleport/src/teleport2.mjs +18 -8
  439. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  440. package/es/components/tooltip/index.mjs +3 -3
  441. package/es/components/tooltip/src/content.mjs +192 -28
  442. package/es/components/tooltip/src/content.mjs.map +1 -1
  443. package/es/components/tooltip/src/content2.mjs +28 -192
  444. package/es/components/tooltip/src/content2.mjs.map +1 -1
  445. package/es/components/tooltip/src/tooltip.mjs +30 -166
  446. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  447. package/es/components/tooltip/src/tooltip2.mjs +166 -30
  448. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  449. package/es/components/tooltip/src/trigger.mjs +1 -1
  450. package/es/components/tooltip/src/trigger2.mjs +1 -1
  451. package/es/components/tooltip-v2/index.mjs +2 -2
  452. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  453. package/es/components/tooltip-v2/src/tooltip.mjs +77 -19
  454. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  455. package/es/components/tooltip-v2/src/tooltip2.mjs +19 -77
  456. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  457. package/es/components/tree/src/tree-node.mjs +4 -2
  458. package/es/components/tree/src/tree-node.mjs.map +1 -1
  459. package/es/components/visual-hidden/index.mjs +3 -3
  460. package/es/components/visual-hidden/src/visual-hidden.mjs +6 -35
  461. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  462. package/es/components/visual-hidden/src/visual-hidden2.mjs +35 -6
  463. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  464. package/es/index.mjs +28 -28
  465. package/es/version.d.ts +1 -1
  466. package/es/version.mjs +1 -1
  467. package/es/version.mjs.map +1 -1
  468. package/lib/components/autocomplete/index.js +2 -2
  469. package/lib/components/autocomplete/src/autocomplete.js +368 -79
  470. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  471. package/lib/components/autocomplete/src/autocomplete2.js +79 -368
  472. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  473. package/lib/components/breadcrumb/index.js +2 -2
  474. package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
  475. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  476. package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
  477. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  478. package/lib/components/button/index.js +3 -3
  479. package/lib/components/button/src/button-group.js +29 -6
  480. package/lib/components/button/src/button-group.js.map +1 -1
  481. package/lib/components/button/src/button-group2.js +6 -29
  482. package/lib/components/button/src/button-group2.js.map +1 -1
  483. package/lib/components/button/src/button.js +77 -59
  484. package/lib/components/button/src/button.js.map +1 -1
  485. package/lib/components/button/src/button2.js +59 -77
  486. package/lib/components/button/src/button2.js.map +1 -1
  487. package/lib/components/calendar/index.js +2 -2
  488. package/lib/components/calendar/src/calendar.js +17 -134
  489. package/lib/components/calendar/src/calendar.js.map +1 -1
  490. package/lib/components/calendar/src/calendar2.js +134 -17
  491. package/lib/components/calendar/src/calendar2.js.map +1 -1
  492. package/lib/components/calendar/src/date-table.js +89 -35
  493. package/lib/components/calendar/src/date-table.js.map +1 -1
  494. package/lib/components/calendar/src/date-table2.js +35 -89
  495. package/lib/components/calendar/src/date-table2.js.map +1 -1
  496. package/lib/components/calendar/src/use-date-table.js +1 -1
  497. package/lib/components/cascader/index.js +2 -2
  498. package/lib/components/cascader/src/cascader.js +81 -637
  499. package/lib/components/cascader/src/cascader.js.map +1 -1
  500. package/lib/components/cascader/src/cascader2.js +637 -81
  501. package/lib/components/cascader/src/cascader2.js.map +1 -1
  502. package/lib/components/cascader-panel/src/index.js +1 -1
  503. package/lib/components/cascader-panel/src/menu.js +1 -1
  504. package/lib/components/cascader-panel/src/node.js +115 -206
  505. package/lib/components/cascader-panel/src/node.js.map +1 -1
  506. package/lib/components/cascader-panel/src/node2.js +206 -115
  507. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  508. package/lib/components/cascader-panel/src/store.js +1 -1
  509. package/lib/components/checkbox/index.js +2 -2
  510. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  511. package/lib/components/checkbox/src/checkbox.js +60 -119
  512. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  513. package/lib/components/checkbox/src/checkbox2.js +119 -60
  514. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  515. package/lib/components/color-picker/src/color-picker.js +1 -1
  516. package/lib/components/countdown/index.js +2 -2
  517. package/lib/components/countdown/src/countdown.js +22 -79
  518. package/lib/components/countdown/src/countdown.js.map +1 -1
  519. package/lib/components/countdown/src/countdown2.js +79 -22
  520. package/lib/components/countdown/src/countdown2.js.map +1 -1
  521. package/lib/components/descriptions/index.js +2 -2
  522. package/lib/components/descriptions/src/description.js +26 -127
  523. package/lib/components/descriptions/src/description.js.map +1 -1
  524. package/lib/components/descriptions/src/description2.js +127 -26
  525. package/lib/components/descriptions/src/description2.js.map +1 -1
  526. package/lib/components/descriptions/src/descriptions-row.js +63 -6
  527. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  528. package/lib/components/descriptions/src/descriptions-row2.js +6 -63
  529. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  530. package/lib/components/dropdown/index.js +2 -2
  531. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  532. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  533. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  534. package/lib/components/dropdown/src/dropdown.js +299 -117
  535. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  536. package/lib/components/dropdown/src/dropdown2.js +117 -299
  537. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  538. package/lib/components/index.js +28 -28
  539. package/lib/components/input-number/index.js +2 -2
  540. package/lib/components/input-number/src/input-number.js +59 -347
  541. package/lib/components/input-number/src/input-number.js.map +1 -1
  542. package/lib/components/input-number/src/input-number2.js +347 -59
  543. package/lib/components/input-number/src/input-number2.js.map +1 -1
  544. package/lib/components/link/index.js +2 -2
  545. package/lib/components/link/src/link.d.ts +1 -1
  546. package/lib/components/link/src/link.js +26 -49
  547. package/lib/components/link/src/link.js.map +1 -1
  548. package/lib/components/link/src/link.vue.d.ts +3 -3
  549. package/lib/components/link/src/link2.js +65 -25
  550. package/lib/components/link/src/link2.js.map +1 -1
  551. package/lib/components/menu/index.js +4 -4
  552. package/lib/components/menu/src/menu-item-group.js +4 -33
  553. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  554. package/lib/components/menu/src/menu-item-group2.js +33 -4
  555. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  556. package/lib/components/menu/src/menu-item.js +16 -97
  557. package/lib/components/menu/src/menu-item.js.map +1 -1
  558. package/lib/components/menu/src/menu-item2.js +97 -16
  559. package/lib/components/menu/src/menu-item2.js.map +1 -1
  560. package/lib/components/pagination/src/components/prev.js +35 -18
  561. package/lib/components/pagination/src/components/prev.js.map +1 -1
  562. package/lib/components/pagination/src/components/prev2.js +18 -35
  563. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  564. package/lib/components/pagination/src/components/sizes.js +23 -71
  565. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  566. package/lib/components/pagination/src/components/sizes2.js +71 -23
  567. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  568. package/lib/components/pagination/src/pagination.js +2 -2
  569. package/lib/components/popconfirm/src/popconfirm.js +2 -2
  570. package/lib/components/popover/src/popover.js +2 -2
  571. package/lib/components/popper/index.js +8 -8
  572. package/lib/components/popper/src/arrow.js +8 -36
  573. package/lib/components/popper/src/arrow.js.map +1 -1
  574. package/lib/components/popper/src/arrow2.js +36 -8
  575. package/lib/components/popper/src/arrow2.js.map +1 -1
  576. package/lib/components/popper/src/content.js +97 -132
  577. package/lib/components/popper/src/content.js.map +1 -1
  578. package/lib/components/popper/src/content2.js +132 -97
  579. package/lib/components/popper/src/content2.js.map +1 -1
  580. package/lib/components/popper/src/popper.js +25 -32
  581. package/lib/components/popper/src/popper.js.map +1 -1
  582. package/lib/components/popper/src/popper2.js +32 -25
  583. package/lib/components/popper/src/popper2.js.map +1 -1
  584. package/lib/components/popper/src/trigger.js +127 -32
  585. package/lib/components/popper/src/trigger.js.map +1 -1
  586. package/lib/components/popper/src/trigger2.js +32 -127
  587. package/lib/components/popper/src/trigger2.js.map +1 -1
  588. package/lib/components/radio/index.js +2 -2
  589. package/lib/components/radio/src/radio-button.js +5 -65
  590. package/lib/components/radio/src/radio-button.js.map +1 -1
  591. package/lib/components/radio/src/radio-button2.js +65 -5
  592. package/lib/components/radio/src/radio-button2.js.map +1 -1
  593. package/lib/components/roving-focus-group/index.js +2 -2
  594. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  595. package/lib/components/roving-focus-group/src/roving-focus-group.js +31 -27
  596. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  597. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -31
  598. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  599. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  600. package/lib/components/scrollbar/index.js +2 -2
  601. package/lib/components/scrollbar/src/scrollbar.js +56 -170
  602. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  603. package/lib/components/scrollbar/src/scrollbar2.js +170 -56
  604. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  605. package/lib/components/select/index.js +2 -2
  606. package/lib/components/select/src/select.js +131 -428
  607. package/lib/components/select/src/select.js.map +1 -1
  608. package/lib/components/select/src/select2.js +428 -131
  609. package/lib/components/select/src/select2.js.map +1 -1
  610. package/lib/components/select-v2/src/defaults.js +1 -1
  611. package/lib/components/skeleton/index.js +2 -2
  612. package/lib/components/skeleton/src/skeleton.js +21 -48
  613. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  614. package/lib/components/skeleton/src/skeleton2.js +48 -21
  615. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  616. package/lib/components/steps/index.js +2 -2
  617. package/lib/components/steps/src/steps.js +36 -38
  618. package/lib/components/steps/src/steps.js.map +1 -1
  619. package/lib/components/steps/src/steps2.js +38 -36
  620. package/lib/components/steps/src/steps2.js.map +1 -1
  621. package/lib/components/switch/index.js +2 -2
  622. package/lib/components/switch/src/switch.js +72 -227
  623. package/lib/components/switch/src/switch.js.map +1 -1
  624. package/lib/components/switch/src/switch2.js +227 -72
  625. package/lib/components/switch/src/switch2.js.map +1 -1
  626. package/lib/components/teleport/index.js +2 -2
  627. package/lib/components/teleport/src/teleport.js +8 -18
  628. package/lib/components/teleport/src/teleport.js.map +1 -1
  629. package/lib/components/teleport/src/teleport2.js +18 -8
  630. package/lib/components/teleport/src/teleport2.js.map +1 -1
  631. package/lib/components/tooltip/index.js +3 -3
  632. package/lib/components/tooltip/src/content.js +192 -28
  633. package/lib/components/tooltip/src/content.js.map +1 -1
  634. package/lib/components/tooltip/src/content2.js +28 -192
  635. package/lib/components/tooltip/src/content2.js.map +1 -1
  636. package/lib/components/tooltip/src/tooltip.js +32 -164
  637. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  638. package/lib/components/tooltip/src/tooltip2.js +164 -32
  639. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  640. package/lib/components/tooltip/src/trigger.js +1 -1
  641. package/lib/components/tooltip/src/trigger2.js +1 -1
  642. package/lib/components/tooltip-v2/index.js +2 -2
  643. package/lib/components/tooltip-v2/src/content2.js +1 -1
  644. package/lib/components/tooltip-v2/src/tooltip.js +77 -19
  645. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  646. package/lib/components/tooltip-v2/src/tooltip2.js +19 -77
  647. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  648. package/lib/components/tree/src/tree-node.js +4 -2
  649. package/lib/components/tree/src/tree-node.js.map +1 -1
  650. package/lib/components/visual-hidden/index.js +2 -2
  651. package/lib/components/visual-hidden/src/visual-hidden.js +6 -35
  652. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  653. package/lib/components/visual-hidden/src/visual-hidden2.js +35 -6
  654. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  655. package/lib/index.js +28 -28
  656. package/lib/version.d.ts +1 -1
  657. package/lib/version.js +1 -1
  658. package/lib/version.js.map +1 -1
  659. package/package.json +2 -2
  660. package/theme-chalk/el-link.css +1 -1
  661. package/theme-chalk/index.css +1 -1
  662. package/theme-chalk/src/link.scss +25 -22
  663. package/web-types.json +1 -1
@@ -1,69 +1,9 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, withDirectives, createElementVNode, isRef, withModifiers, vModelRadio, normalizeStyle, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
- import { useRadio } from './use-radio.mjs';
3
- import { radioButtonProps } from './radio-button2.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { radioPropsBase } from './radio.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
6
3
 
7
- const __default__ = defineComponent({
8
- name: "ElRadioButton"
4
+ const radioButtonProps = buildProps({
5
+ ...radioPropsBase
9
6
  });
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- ...__default__,
12
- props: radioButtonProps,
13
- setup(__props) {
14
- const props = __props;
15
- const ns = useNamespace("radio");
16
- const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio(props);
17
- const activeStyle = computed(() => {
18
- return {
19
- backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
20
- borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
21
- boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
22
- color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
23
- };
24
- });
25
- return (_ctx, _cache) => {
26
- var _a;
27
- return openBlock(), createElementBlock("label", {
28
- class: normalizeClass([
29
- unref(ns).b("button"),
30
- unref(ns).is("active", unref(modelValue) === unref(actualValue)),
31
- unref(ns).is("disabled", unref(disabled)),
32
- unref(ns).is("focus", unref(focus)),
33
- unref(ns).bm("button", unref(size))
34
- ])
35
- }, [
36
- withDirectives(createElementVNode("input", {
37
- ref_key: "radioRef",
38
- ref: radioRef,
39
- "onUpdate:modelValue": ($event) => isRef(modelValue) ? modelValue.value = $event : null,
40
- class: normalizeClass(unref(ns).be("button", "original-radio")),
41
- value: unref(actualValue),
42
- type: "radio",
43
- name: _ctx.name || ((_a = unref(radioGroup)) == null ? void 0 : _a.name),
44
- disabled: unref(disabled),
45
- onFocus: ($event) => focus.value = true,
46
- onBlur: ($event) => focus.value = false,
47
- onClick: withModifiers(() => {
48
- }, ["stop"])
49
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
50
- [vModelRadio, unref(modelValue)]
51
- ]),
52
- createElementVNode("span", {
53
- class: normalizeClass(unref(ns).be("button", "inner")),
54
- style: normalizeStyle(unref(modelValue) === unref(actualValue) ? unref(activeStyle) : {}),
55
- onKeydown: withModifiers(() => {
56
- }, ["stop"])
57
- }, [
58
- renderSlot(_ctx.$slots, "default", {}, () => [
59
- createTextVNode(toDisplayString(_ctx.label), 1)
60
- ])
61
- ], 46, ["onKeydown"])
62
- ], 2);
63
- };
64
- }
65
- });
66
- var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "radio-button.vue"]]);
67
7
 
68
- export { RadioButton as default };
8
+ export { radioButtonProps };
69
9
  //# sourceMappingURL=radio-button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.mjs","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === actualValue),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"actualValue\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === actualValue ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = defineProps(radioButtonProps)\n\nconst ns = useNamespace('radio')\nconst { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } =\n useRadio(props)\n\nconst activeStyle = computed<CSSProperties>(() => {\n return {\n backgroundColor: radioGroup?.fill || '',\n borderColor: radioGroup?.fill || '',\n boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : '',\n color: radioGroup?.textColor || '',\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCAyCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,QAAU,EAAA,KAAA,EAAO,IAAM,EAAA,QAAA,EAAU,YAAY,UAAY,EAAA,WAAA,EAC/D,GAAA,QAAA,CAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAc,SAAwB,MAAM;AAChD,MAAO,OAAA;AAAA,QACL,eAAA,EAAiB,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACrC,WAAA,EAAa,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACjC,WAAW,CAAY,UAAA,IAAA,IAAO,GAAc,KAAA,CAAA,GAAA,UAAA,CAAA,QAAoB,CAAA,WAAA,EAAA,UAAA,CAAA,IAAA,CAAA,CAAA,GAAA,EAAA;AAAA,QAChE,KAAA,EAAO,eAAyB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,SAAA,KAAA,EAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-button.mjs","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton> & unknown\n"],"names":[],"mappings":";;;AAEY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,GAAG,cAAc;AACnB,CAAC;;;;"}
@@ -1,9 +1,69 @@
1
- import { radioPropsBase } from './radio.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, withDirectives, createElementVNode, isRef, withModifiers, vModelRadio, normalizeStyle, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
+ import { useRadio } from './use-radio.mjs';
3
+ import { radioButtonProps } from './radio-button.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
3
6
 
4
- const radioButtonProps = buildProps({
5
- ...radioPropsBase
7
+ const __default__ = defineComponent({
8
+ name: "ElRadioButton"
6
9
  });
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...__default__,
12
+ props: radioButtonProps,
13
+ setup(__props) {
14
+ const props = __props;
15
+ const ns = useNamespace("radio");
16
+ const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio(props);
17
+ const activeStyle = computed(() => {
18
+ return {
19
+ backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
20
+ borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
21
+ boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
22
+ color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
23
+ };
24
+ });
25
+ return (_ctx, _cache) => {
26
+ var _a;
27
+ return openBlock(), createElementBlock("label", {
28
+ class: normalizeClass([
29
+ unref(ns).b("button"),
30
+ unref(ns).is("active", unref(modelValue) === unref(actualValue)),
31
+ unref(ns).is("disabled", unref(disabled)),
32
+ unref(ns).is("focus", unref(focus)),
33
+ unref(ns).bm("button", unref(size))
34
+ ])
35
+ }, [
36
+ withDirectives(createElementVNode("input", {
37
+ ref_key: "radioRef",
38
+ ref: radioRef,
39
+ "onUpdate:modelValue": ($event) => isRef(modelValue) ? modelValue.value = $event : null,
40
+ class: normalizeClass(unref(ns).be("button", "original-radio")),
41
+ value: unref(actualValue),
42
+ type: "radio",
43
+ name: _ctx.name || ((_a = unref(radioGroup)) == null ? void 0 : _a.name),
44
+ disabled: unref(disabled),
45
+ onFocus: ($event) => focus.value = true,
46
+ onBlur: ($event) => focus.value = false,
47
+ onClick: withModifiers(() => {
48
+ }, ["stop"])
49
+ }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
50
+ [vModelRadio, unref(modelValue)]
51
+ ]),
52
+ createElementVNode("span", {
53
+ class: normalizeClass(unref(ns).be("button", "inner")),
54
+ style: normalizeStyle(unref(modelValue) === unref(actualValue) ? unref(activeStyle) : {}),
55
+ onKeydown: withModifiers(() => {
56
+ }, ["stop"])
57
+ }, [
58
+ renderSlot(_ctx.$slots, "default", {}, () => [
59
+ createTextVNode(toDisplayString(_ctx.label), 1)
60
+ ])
61
+ ], 46, ["onKeydown"])
62
+ ], 2);
63
+ };
64
+ }
65
+ });
66
+ var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "radio-button.vue"]]);
7
67
 
8
- export { radioButtonProps };
68
+ export { RadioButton as default };
9
69
  //# sourceMappingURL=radio-button2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button2.mjs","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton> & unknown\n"],"names":[],"mappings":";;;AAEY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,GAAG,cAAc;AACnB,CAAC;;;;"}
1
+ {"version":3,"file":"radio-button2.mjs","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === actualValue),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"actualValue\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === actualValue ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = defineProps(radioButtonProps)\n\nconst ns = useNamespace('radio')\nconst { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } =\n useRadio(props)\n\nconst activeStyle = computed<CSSProperties>(() => {\n return {\n backgroundColor: radioGroup?.fill || '',\n borderColor: radioGroup?.fill || '',\n boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : '',\n color: radioGroup?.textColor || '',\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCAyCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,QAAU,EAAA,KAAA,EAAO,IAAM,EAAA,QAAA,EAAU,YAAY,UAAY,EAAA,WAAA,EAC/D,GAAA,QAAA,CAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAc,SAAwB,MAAM;AAChD,MAAO,OAAA;AAAA,QACL,eAAA,EAAiB,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACrC,WAAA,EAAa,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACjC,WAAW,CAAY,UAAA,IAAA,IAAO,GAAc,KAAA,CAAA,GAAA,UAAA,CAAA,QAAoB,CAAA,WAAA,EAAA,UAAA,CAAA,IAAA,CAAA,CAAA,GAAA,EAAA;AAAA,QAChE,KAAA,EAAO,eAAyB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,SAAA,KAAA,EAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
- import ElRovingFocusGroup from './src/roving-focus-group.mjs';
2
- export { default as ElRovingFocusGroup, default } from './src/roving-focus-group.mjs';
1
+ import ElRovingFocusGroup from './src/roving-focus-group2.mjs';
2
+ export { default as ElRovingFocusGroup, default } from './src/roving-focus-group2.mjs';
3
3
  export { default as ElRovingFocusItem } from './src/roving-focus-item.mjs';
4
4
  export { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './src/tokens.mjs';
5
5
  export { focusFirst, getFocusIntent, reorderArray } from './src/utils.mjs';
6
- export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group2.mjs';
6
+ export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group.mjs';
7
7
  //# sourceMappingURL=index.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, inject, computed, provide, readonly, toRef, unref, watch, renderSlot } from 'vue';
2
2
  import { useEventListener } from '@vueuse/core';
3
- import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group2.mjs';
3
+ import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';
4
4
  import { ROVING_FOCUS_GROUP_INJECTION_KEY } from './tokens.mjs';
5
5
  import { focusFirst } from './utils.mjs';
6
6
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,31 +1,31 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
- import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
- import { ElCollection } from './roving-focus-group2.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import { createCollectionWithScope } from '../../collection/src/collection.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
5
3
 
6
- const _sfc_main = defineComponent({
7
- name: "ElRovingFocusGroup",
8
- components: {
9
- ElFocusGroupCollection: ElCollection,
10
- ElRovingFocusGroupImpl
11
- }
4
+ const rovingFocusGroupProps = buildProps({
5
+ style: { type: definePropType([String, Array, Object]) },
6
+ currentTabId: {
7
+ type: definePropType(String)
8
+ },
9
+ defaultCurrentTabId: String,
10
+ loop: Boolean,
11
+ dir: {
12
+ type: String,
13
+ values: ["ltr", "rtl"],
14
+ default: "ltr"
15
+ },
16
+ orientation: {
17
+ type: definePropType(String)
18
+ },
19
+ onBlur: Function,
20
+ onFocus: Function,
21
+ onMousedown: Function
12
22
  });
13
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
- const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
- const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
- return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
- default: withCtx(() => [
18
- createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
- default: withCtx(() => [
20
- renderSlot(_ctx.$slots, "default")
21
- ]),
22
- _: 3
23
- }, 16)
24
- ]),
25
- _: 3
26
- });
27
- }
28
- var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "roving-focus-group.vue"]]);
23
+ const {
24
+ ElCollection,
25
+ ElCollectionItem,
26
+ COLLECTION_INJECTION_KEY,
27
+ COLLECTION_ITEM_INJECTION_KEY
28
+ } = createCollectionWithScope("RovingFocusGroup");
29
29
 
30
- export { ElRovingFocusGroup as default };
30
+ export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
31
31
  //# sourceMappingURL=roving-focus-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.vue"],"sourcesContent":["<template>\n <el-focus-group-collection>\n <el-roving-focus-group-impl v-bind=\"$attrs\">\n <slot />\n </el-roving-focus-group-impl>\n </el-focus-group-collection>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.vue'\nimport { ElCollection as ElFocusGroupCollection } from './roving-focus-group'\n\nexport default defineComponent({\n name: 'ElRovingFocusGroup',\n components: {\n ElFocusGroupCollection,\n ElRovingFocusGroupImpl,\n },\n})\n</script>\n"],"names":["ElFocusGroupCollection","_createBlock","_withCtx","_createVNode","_normalizeProps","_guardReactiveProps","_renderSlot"],"mappings":";;;;;AAaA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVA,YAAA;AAAA,IACA,sBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;sBAlBCC,WAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CAH1B,MAE6B;AAAA,MAF7BC,WAAA,CAAA,qCAAA,EAAAC,cAAA,CAAAC,kBAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAE6B,OAAA,EAAAH,OAAA,CAAA,MAAA;AAAA,UAAAI,UAAA,CAAA,IAAA,CAAA,MAAA,EAAA,SAFO,CAAM;AAAA,SAAA,CAAA;AAAA,QAAA,CAAA,EAAA,CAAA;AAChC,OAAA,EAAA,EAAA,CAAR;AAAQ,KAAA,CAAA;;;;;;;;"}
1
+ {"version":3,"file":"roving-focus-group.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\n\nexport const rovingFocusGroupProps = buildProps({\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n currentTabId: {\n type: definePropType<string | null>(String),\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String, // left for direction support\n values: ['ltr', 'rtl'],\n default: 'ltr',\n },\n orientation: {\n // left for orientation support\n type: definePropType<HTMLAttributes['aria-orientation']>(String),\n },\n\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function,\n})\n\nexport type ElRovingFocusGroupProps = ExtractPropTypes<\n typeof rovingFocusGroupProps\n>\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('RovingFocusGroup')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n}\n"],"names":[],"mappings":";;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}
@@ -1,31 +1,31 @@
1
- import { createCollectionWithScope } from '../../collection/src/collection.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
+ import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
+ import { ElCollection } from './roving-focus-group.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
3
5
 
4
- const rovingFocusGroupProps = buildProps({
5
- style: { type: definePropType([String, Array, Object]) },
6
- currentTabId: {
7
- type: definePropType(String)
8
- },
9
- defaultCurrentTabId: String,
10
- loop: Boolean,
11
- dir: {
12
- type: String,
13
- values: ["ltr", "rtl"],
14
- default: "ltr"
15
- },
16
- orientation: {
17
- type: definePropType(String)
18
- },
19
- onBlur: Function,
20
- onFocus: Function,
21
- onMousedown: Function
6
+ const _sfc_main = defineComponent({
7
+ name: "ElRovingFocusGroup",
8
+ components: {
9
+ ElFocusGroupCollection: ElCollection,
10
+ ElRovingFocusGroupImpl
11
+ }
22
12
  });
23
- const {
24
- ElCollection,
25
- ElCollectionItem,
26
- COLLECTION_INJECTION_KEY,
27
- COLLECTION_ITEM_INJECTION_KEY
28
- } = createCollectionWithScope("RovingFocusGroup");
13
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
+ const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
+ const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
+ return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
+ default: withCtx(() => [
18
+ createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
+ default: withCtx(() => [
20
+ renderSlot(_ctx.$slots, "default")
21
+ ]),
22
+ _: 3
23
+ }, 16)
24
+ ]),
25
+ _: 3
26
+ });
27
+ }
28
+ var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "roving-focus-group.vue"]]);
29
29
 
30
- export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
30
+ export { ElRovingFocusGroup as default };
31
31
  //# sourceMappingURL=roving-focus-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group2.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\n\nexport const rovingFocusGroupProps = buildProps({\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n currentTabId: {\n type: definePropType<string | null>(String),\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String, // left for direction support\n values: ['ltr', 'rtl'],\n default: 'ltr',\n },\n orientation: {\n // left for orientation support\n type: definePropType<HTMLAttributes['aria-orientation']>(String),\n },\n\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function,\n})\n\nexport type ElRovingFocusGroupProps = ExtractPropTypes<\n typeof rovingFocusGroupProps\n>\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('RovingFocusGroup')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n}\n"],"names":[],"mappings":";;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}
1
+ {"version":3,"file":"roving-focus-group2.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.vue"],"sourcesContent":["<template>\n <el-focus-group-collection>\n <el-roving-focus-group-impl v-bind=\"$attrs\">\n <slot />\n </el-roving-focus-group-impl>\n </el-focus-group-collection>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.vue'\nimport { ElCollection as ElFocusGroupCollection } from './roving-focus-group'\n\nexport default defineComponent({\n name: 'ElRovingFocusGroup',\n components: {\n ElFocusGroupCollection,\n ElRovingFocusGroupImpl,\n },\n})\n</script>\n"],"names":["ElFocusGroupCollection","_createBlock","_withCtx","_createVNode","_normalizeProps","_guardReactiveProps","_renderSlot"],"mappings":";;;;;AAaA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVA,YAAA;AAAA,IACA,sBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;sBAlBCC,WAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CAH1B,MAE6B;AAAA,MAF7BC,WAAA,CAAA,qCAAA,EAAAC,cAAA,CAAAC,kBAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAE6B,OAAA,EAAAH,OAAA,CAAA,MAAA;AAAA,UAAAI,UAAA,CAAA,IAAA,CAAA,MAAA,EAAA,SAFO,CAAM;AAAA,SAAA,CAAA;AAAA,QAAA,CAAA,EAAA,CAAA;AAChC,OAAA,EAAA,EAAA,CAAR;AAAQ,KAAA,CAAA;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, ref, computed, unref, provide, nextTick, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from 'vue';
2
- import { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group2.mjs';
2
+ import { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';
3
3
  import { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './tokens.mjs';
4
4
  import { getFocusIntent, reorderArray, focusFirst } from './utils.mjs';
5
5
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,6 +1,6 @@
1
- import Scrollbar from './src/scrollbar.mjs';
1
+ import Scrollbar from './src/scrollbar2.mjs';
2
2
  export { BAR_MAP, GAP, renderThumbStyle } from './src/util.mjs';
3
- export { scrollbarEmits, scrollbarProps } from './src/scrollbar2.mjs';
3
+ export { scrollbarEmits, scrollbarProps } from './src/scrollbar.mjs';
4
4
  export { thumbProps } from './src/thumb.mjs';
5
5
  export { scrollbarContextKey } from './src/constants.mjs';
6
6
  import { withInstall } from '../../utils/vue/install.mjs';
@@ -1,175 +1,60 @@
1
- import { defineComponent, ref, computed, watch, nextTick, provide, reactive, onActivated, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createCommentVNode } from 'vue';
2
- import { useResizeObserver, useEventListener } from '@vueuse/core';
3
- import Bar from './bar2.mjs';
4
- import { scrollbarContextKey } from './constants.mjs';
5
- import { scrollbarProps, scrollbarEmits } from './scrollbar2.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
- import { addUnit } from '../../../utils/dom/style.mjs';
9
- import { isObject } from '@vue/shared';
1
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
2
+ import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
10
3
  import { isNumber } from '../../../utils/types.mjs';
11
- import { debugWarn } from '../../../utils/error.mjs';
12
4
 
13
- const COMPONENT_NAME = "ElScrollbar";
14
- const __default__ = defineComponent({
15
- name: COMPONENT_NAME
5
+ const scrollbarProps = buildProps({
6
+ height: {
7
+ type: [String, Number],
8
+ default: ""
9
+ },
10
+ maxHeight: {
11
+ type: [String, Number],
12
+ default: ""
13
+ },
14
+ native: {
15
+ type: Boolean,
16
+ default: false
17
+ },
18
+ wrapStyle: {
19
+ type: definePropType([String, Object, Array]),
20
+ default: ""
21
+ },
22
+ wrapClass: {
23
+ type: [String, Array],
24
+ default: ""
25
+ },
26
+ viewClass: {
27
+ type: [String, Array],
28
+ default: ""
29
+ },
30
+ viewStyle: {
31
+ type: [String, Array, Object],
32
+ default: ""
33
+ },
34
+ noresize: Boolean,
35
+ tag: {
36
+ type: String,
37
+ default: "div"
38
+ },
39
+ always: Boolean,
40
+ minSize: {
41
+ type: Number,
42
+ default: 20
43
+ },
44
+ tabindex: {
45
+ type: [String, Number],
46
+ default: void 0
47
+ },
48
+ id: String,
49
+ role: String,
50
+ ...useAriaProps(["ariaLabel", "ariaOrientation"])
16
51
  });
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- ...__default__,
19
- props: scrollbarProps,
20
- emits: scrollbarEmits,
21
- setup(__props, { expose, emit }) {
22
- const props = __props;
23
- const ns = useNamespace("scrollbar");
24
- let stopResizeObserver = void 0;
25
- let stopResizeListener = void 0;
26
- let wrapScrollTop = 0;
27
- let wrapScrollLeft = 0;
28
- const scrollbarRef = ref();
29
- const wrapRef = ref();
30
- const resizeRef = ref();
31
- const barRef = ref();
32
- const wrapStyle = computed(() => {
33
- const style = {};
34
- if (props.height)
35
- style.height = addUnit(props.height);
36
- if (props.maxHeight)
37
- style.maxHeight = addUnit(props.maxHeight);
38
- return [props.wrapStyle, style];
39
- });
40
- const wrapKls = computed(() => {
41
- return [
42
- props.wrapClass,
43
- ns.e("wrap"),
44
- { [ns.em("wrap", "hidden-default")]: !props.native }
45
- ];
46
- });
47
- const resizeKls = computed(() => {
48
- return [ns.e("view"), props.viewClass];
49
- });
50
- const handleScroll = () => {
51
- var _a;
52
- if (wrapRef.value) {
53
- (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
54
- wrapScrollTop = wrapRef.value.scrollTop;
55
- wrapScrollLeft = wrapRef.value.scrollLeft;
56
- emit("scroll", {
57
- scrollTop: wrapRef.value.scrollTop,
58
- scrollLeft: wrapRef.value.scrollLeft
59
- });
60
- }
61
- };
62
- function scrollTo(arg1, arg2) {
63
- if (isObject(arg1)) {
64
- wrapRef.value.scrollTo(arg1);
65
- } else if (isNumber(arg1) && isNumber(arg2)) {
66
- wrapRef.value.scrollTo(arg1, arg2);
67
- }
68
- }
69
- const setScrollTop = (value) => {
70
- if (!isNumber(value)) {
71
- debugWarn(COMPONENT_NAME, "value must be a number");
72
- return;
73
- }
74
- wrapRef.value.scrollTop = value;
75
- };
76
- const setScrollLeft = (value) => {
77
- if (!isNumber(value)) {
78
- debugWarn(COMPONENT_NAME, "value must be a number");
79
- return;
80
- }
81
- wrapRef.value.scrollLeft = value;
82
- };
83
- const update = () => {
84
- var _a;
85
- (_a = barRef.value) == null ? void 0 : _a.update();
86
- };
87
- watch(() => props.noresize, (noresize) => {
88
- if (noresize) {
89
- stopResizeObserver == null ? void 0 : stopResizeObserver();
90
- stopResizeListener == null ? void 0 : stopResizeListener();
91
- } else {
92
- ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
93
- stopResizeListener = useEventListener("resize", update);
94
- }
95
- }, { immediate: true });
96
- watch(() => [props.maxHeight, props.height], () => {
97
- if (!props.native)
98
- nextTick(() => {
99
- var _a;
100
- update();
101
- if (wrapRef.value) {
102
- (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
103
- }
104
- });
105
- });
106
- provide(scrollbarContextKey, reactive({
107
- scrollbarElement: scrollbarRef,
108
- wrapElement: wrapRef
109
- }));
110
- onActivated(() => {
111
- if (wrapRef.value) {
112
- wrapRef.value.scrollTop = wrapScrollTop;
113
- wrapRef.value.scrollLeft = wrapScrollLeft;
114
- }
115
- });
116
- onMounted(() => {
117
- if (!props.native)
118
- nextTick(() => {
119
- update();
120
- });
121
- });
122
- onUpdated(() => update());
123
- expose({
124
- wrapRef,
125
- update,
126
- scrollTo,
127
- setScrollTop,
128
- setScrollLeft,
129
- handleScroll
130
- });
131
- return (_ctx, _cache) => {
132
- return openBlock(), createElementBlock("div", {
133
- ref_key: "scrollbarRef",
134
- ref: scrollbarRef,
135
- class: normalizeClass(unref(ns).b())
136
- }, [
137
- createElementVNode("div", {
138
- ref_key: "wrapRef",
139
- ref: wrapRef,
140
- class: normalizeClass(unref(wrapKls)),
141
- style: normalizeStyle(unref(wrapStyle)),
142
- tabindex: _ctx.tabindex,
143
- onScroll: handleScroll
144
- }, [
145
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
146
- id: _ctx.id,
147
- ref_key: "resizeRef",
148
- ref: resizeRef,
149
- class: normalizeClass(unref(resizeKls)),
150
- style: normalizeStyle(_ctx.viewStyle),
151
- role: _ctx.role,
152
- "aria-label": _ctx.ariaLabel,
153
- "aria-orientation": _ctx.ariaOrientation
154
- }, {
155
- default: withCtx(() => [
156
- renderSlot(_ctx.$slots, "default")
157
- ]),
158
- _: 3
159
- }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
160
- ], 46, ["tabindex"]),
161
- !_ctx.native ? (openBlock(), createBlock(Bar, {
162
- key: 0,
163
- ref_key: "barRef",
164
- ref: barRef,
165
- always: _ctx.always,
166
- "min-size": _ctx.minSize
167
- }, null, 8, ["always", "min-size"])) : createCommentVNode("v-if", true)
168
- ], 2);
169
- };
170
- }
171
- });
172
- var Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "scrollbar.vue"]]);
52
+ const scrollbarEmits = {
53
+ scroll: ({
54
+ scrollTop,
55
+ scrollLeft
56
+ }) => [scrollTop, scrollLeft].every(isNumber)
57
+ };
173
58
 
174
- export { Scrollbar as default };
59
+ export { scrollbarEmits, scrollbarProps };
175
60
  //# sourceMappingURL=scrollbar.mjs.map