@element-plus/nightly 0.0.20231122 → 0.0.20231123

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 (368) hide show
  1. package/dist/index.full.js +2 -2
  2. package/dist/index.full.min.js +2 -2
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +2 -2
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +2 -2
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/ckb.js +1 -1
  32. package/dist/locale/ckb.min.js +1 -1
  33. package/dist/locale/ckb.min.mjs +1 -1
  34. package/dist/locale/ckb.mjs +1 -1
  35. package/dist/locale/cs.js +1 -1
  36. package/dist/locale/cs.min.js +1 -1
  37. package/dist/locale/cs.min.mjs +1 -1
  38. package/dist/locale/cs.mjs +1 -1
  39. package/dist/locale/da.js +1 -1
  40. package/dist/locale/da.min.js +1 -1
  41. package/dist/locale/da.min.mjs +1 -1
  42. package/dist/locale/da.mjs +1 -1
  43. package/dist/locale/de.js +1 -1
  44. package/dist/locale/de.min.js +1 -1
  45. package/dist/locale/de.min.mjs +1 -1
  46. package/dist/locale/de.mjs +1 -1
  47. package/dist/locale/el.js +1 -1
  48. package/dist/locale/el.min.js +1 -1
  49. package/dist/locale/el.min.mjs +1 -1
  50. package/dist/locale/el.mjs +1 -1
  51. package/dist/locale/en.js +1 -1
  52. package/dist/locale/en.min.js +1 -1
  53. package/dist/locale/en.min.mjs +1 -1
  54. package/dist/locale/en.mjs +1 -1
  55. package/dist/locale/eo.js +1 -1
  56. package/dist/locale/eo.min.js +1 -1
  57. package/dist/locale/eo.min.mjs +1 -1
  58. package/dist/locale/eo.mjs +1 -1
  59. package/dist/locale/es.js +1 -1
  60. package/dist/locale/es.min.js +1 -1
  61. package/dist/locale/es.min.mjs +1 -1
  62. package/dist/locale/es.mjs +1 -1
  63. package/dist/locale/et.js +1 -1
  64. package/dist/locale/et.min.js +1 -1
  65. package/dist/locale/et.min.mjs +1 -1
  66. package/dist/locale/et.mjs +1 -1
  67. package/dist/locale/eu.js +1 -1
  68. package/dist/locale/eu.min.js +1 -1
  69. package/dist/locale/eu.min.mjs +1 -1
  70. package/dist/locale/eu.mjs +1 -1
  71. package/dist/locale/fa.js +1 -1
  72. package/dist/locale/fa.min.js +1 -1
  73. package/dist/locale/fa.min.mjs +1 -1
  74. package/dist/locale/fa.mjs +1 -1
  75. package/dist/locale/fi.js +1 -1
  76. package/dist/locale/fi.min.js +1 -1
  77. package/dist/locale/fi.min.mjs +1 -1
  78. package/dist/locale/fi.mjs +1 -1
  79. package/dist/locale/fr.js +1 -1
  80. package/dist/locale/fr.min.js +1 -1
  81. package/dist/locale/fr.min.mjs +1 -1
  82. package/dist/locale/fr.mjs +1 -1
  83. package/dist/locale/he.js +1 -1
  84. package/dist/locale/he.min.js +1 -1
  85. package/dist/locale/he.min.mjs +1 -1
  86. package/dist/locale/he.mjs +1 -1
  87. package/dist/locale/hr.js +1 -1
  88. package/dist/locale/hr.min.js +1 -1
  89. package/dist/locale/hr.min.mjs +1 -1
  90. package/dist/locale/hr.mjs +1 -1
  91. package/dist/locale/hu.js +1 -1
  92. package/dist/locale/hu.min.js +1 -1
  93. package/dist/locale/hu.min.mjs +1 -1
  94. package/dist/locale/hu.mjs +1 -1
  95. package/dist/locale/hy-am.js +1 -1
  96. package/dist/locale/hy-am.min.js +1 -1
  97. package/dist/locale/hy-am.min.mjs +1 -1
  98. package/dist/locale/hy-am.mjs +1 -1
  99. package/dist/locale/id.js +1 -1
  100. package/dist/locale/id.min.js +1 -1
  101. package/dist/locale/id.min.mjs +1 -1
  102. package/dist/locale/id.mjs +1 -1
  103. package/dist/locale/it.js +1 -1
  104. package/dist/locale/it.min.js +1 -1
  105. package/dist/locale/it.min.mjs +1 -1
  106. package/dist/locale/it.mjs +1 -1
  107. package/dist/locale/ja.js +1 -1
  108. package/dist/locale/ja.min.js +1 -1
  109. package/dist/locale/ja.min.mjs +1 -1
  110. package/dist/locale/ja.mjs +1 -1
  111. package/dist/locale/kk.js +1 -1
  112. package/dist/locale/kk.min.js +1 -1
  113. package/dist/locale/kk.min.mjs +1 -1
  114. package/dist/locale/kk.mjs +1 -1
  115. package/dist/locale/km.js +1 -1
  116. package/dist/locale/km.min.js +1 -1
  117. package/dist/locale/km.min.mjs +1 -1
  118. package/dist/locale/km.mjs +1 -1
  119. package/dist/locale/ko.js +1 -1
  120. package/dist/locale/ko.min.js +1 -1
  121. package/dist/locale/ko.min.mjs +1 -1
  122. package/dist/locale/ko.mjs +1 -1
  123. package/dist/locale/ku.js +1 -1
  124. package/dist/locale/ku.min.js +1 -1
  125. package/dist/locale/ku.min.mjs +1 -1
  126. package/dist/locale/ku.mjs +1 -1
  127. package/dist/locale/ky.js +1 -1
  128. package/dist/locale/ky.min.js +1 -1
  129. package/dist/locale/ky.min.mjs +1 -1
  130. package/dist/locale/ky.mjs +1 -1
  131. package/dist/locale/lt.js +1 -1
  132. package/dist/locale/lt.min.js +1 -1
  133. package/dist/locale/lt.min.mjs +1 -1
  134. package/dist/locale/lt.mjs +1 -1
  135. package/dist/locale/lv.js +1 -1
  136. package/dist/locale/lv.min.js +1 -1
  137. package/dist/locale/lv.min.mjs +1 -1
  138. package/dist/locale/lv.mjs +1 -1
  139. package/dist/locale/mg.js +1 -1
  140. package/dist/locale/mg.min.js +1 -1
  141. package/dist/locale/mg.min.mjs +1 -1
  142. package/dist/locale/mg.mjs +1 -1
  143. package/dist/locale/mn.js +1 -1
  144. package/dist/locale/mn.min.js +1 -1
  145. package/dist/locale/mn.min.mjs +1 -1
  146. package/dist/locale/mn.mjs +1 -1
  147. package/dist/locale/nb-no.js +1 -1
  148. package/dist/locale/nb-no.min.js +1 -1
  149. package/dist/locale/nb-no.min.mjs +1 -1
  150. package/dist/locale/nb-no.mjs +1 -1
  151. package/dist/locale/nl.js +1 -1
  152. package/dist/locale/nl.min.js +1 -1
  153. package/dist/locale/nl.min.mjs +1 -1
  154. package/dist/locale/nl.mjs +1 -1
  155. package/dist/locale/pa.js +1 -1
  156. package/dist/locale/pa.min.js +1 -1
  157. package/dist/locale/pa.min.mjs +1 -1
  158. package/dist/locale/pa.mjs +1 -1
  159. package/dist/locale/pl.js +1 -1
  160. package/dist/locale/pl.min.js +1 -1
  161. package/dist/locale/pl.min.mjs +1 -1
  162. package/dist/locale/pl.mjs +1 -1
  163. package/dist/locale/pt-br.js +1 -1
  164. package/dist/locale/pt-br.min.js +1 -1
  165. package/dist/locale/pt-br.min.mjs +1 -1
  166. package/dist/locale/pt-br.mjs +1 -1
  167. package/dist/locale/pt.js +1 -1
  168. package/dist/locale/pt.min.js +1 -1
  169. package/dist/locale/pt.min.mjs +1 -1
  170. package/dist/locale/pt.mjs +1 -1
  171. package/dist/locale/ro.js +1 -1
  172. package/dist/locale/ro.min.js +1 -1
  173. package/dist/locale/ro.min.mjs +1 -1
  174. package/dist/locale/ro.mjs +1 -1
  175. package/dist/locale/ru.js +1 -1
  176. package/dist/locale/ru.min.js +1 -1
  177. package/dist/locale/ru.min.mjs +1 -1
  178. package/dist/locale/ru.mjs +1 -1
  179. package/dist/locale/sk.js +1 -1
  180. package/dist/locale/sk.min.js +1 -1
  181. package/dist/locale/sk.min.mjs +1 -1
  182. package/dist/locale/sk.mjs +1 -1
  183. package/dist/locale/sl.js +1 -1
  184. package/dist/locale/sl.min.js +1 -1
  185. package/dist/locale/sl.min.mjs +1 -1
  186. package/dist/locale/sl.mjs +1 -1
  187. package/dist/locale/sr.js +1 -1
  188. package/dist/locale/sr.min.js +1 -1
  189. package/dist/locale/sr.min.mjs +1 -1
  190. package/dist/locale/sr.mjs +1 -1
  191. package/dist/locale/sv.js +1 -1
  192. package/dist/locale/sv.min.js +1 -1
  193. package/dist/locale/sv.min.mjs +1 -1
  194. package/dist/locale/sv.mjs +1 -1
  195. package/dist/locale/sw.js +1 -1
  196. package/dist/locale/sw.min.js +1 -1
  197. package/dist/locale/sw.min.mjs +1 -1
  198. package/dist/locale/sw.mjs +1 -1
  199. package/dist/locale/ta.js +1 -1
  200. package/dist/locale/ta.min.js +1 -1
  201. package/dist/locale/ta.min.mjs +1 -1
  202. package/dist/locale/ta.mjs +1 -1
  203. package/dist/locale/th.js +1 -1
  204. package/dist/locale/th.min.js +1 -1
  205. package/dist/locale/th.min.mjs +1 -1
  206. package/dist/locale/th.mjs +1 -1
  207. package/dist/locale/tk.js +1 -1
  208. package/dist/locale/tk.min.js +1 -1
  209. package/dist/locale/tk.min.mjs +1 -1
  210. package/dist/locale/tk.mjs +1 -1
  211. package/dist/locale/tr.js +1 -1
  212. package/dist/locale/tr.min.js +1 -1
  213. package/dist/locale/tr.min.mjs +1 -1
  214. package/dist/locale/tr.mjs +1 -1
  215. package/dist/locale/ug-cn.js +1 -1
  216. package/dist/locale/ug-cn.min.js +1 -1
  217. package/dist/locale/ug-cn.min.mjs +1 -1
  218. package/dist/locale/ug-cn.mjs +1 -1
  219. package/dist/locale/uk.js +1 -1
  220. package/dist/locale/uk.min.js +1 -1
  221. package/dist/locale/uk.min.mjs +1 -1
  222. package/dist/locale/uk.mjs +1 -1
  223. package/dist/locale/uz-uz.js +1 -1
  224. package/dist/locale/uz-uz.min.js +1 -1
  225. package/dist/locale/uz-uz.min.mjs +1 -1
  226. package/dist/locale/uz-uz.mjs +1 -1
  227. package/dist/locale/vi.js +1 -1
  228. package/dist/locale/vi.min.js +1 -1
  229. package/dist/locale/vi.min.mjs +1 -1
  230. package/dist/locale/vi.mjs +1 -1
  231. package/dist/locale/zh-cn.js +1 -1
  232. package/dist/locale/zh-cn.min.js +1 -1
  233. package/dist/locale/zh-cn.min.mjs +1 -1
  234. package/dist/locale/zh-cn.mjs +1 -1
  235. package/dist/locale/zh-tw.js +1 -1
  236. package/dist/locale/zh-tw.min.js +1 -1
  237. package/dist/locale/zh-tw.min.mjs +1 -1
  238. package/dist/locale/zh-tw.mjs +1 -1
  239. package/es/components/autocomplete/src/autocomplete.mjs +1 -1
  240. package/es/components/cascader/src/cascader.mjs +1 -1
  241. package/es/components/checkbox/index.mjs +2 -2
  242. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  243. package/es/components/checkbox/src/checkbox.mjs +50 -117
  244. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  245. package/es/components/checkbox/src/checkbox2.mjs +117 -50
  246. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  247. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  248. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  249. package/es/components/dropdown/src/dropdown.mjs +1 -1
  250. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  251. package/es/components/empty/index.mjs +2 -2
  252. package/es/components/empty/src/empty.mjs +55 -11
  253. package/es/components/empty/src/empty.mjs.map +1 -1
  254. package/es/components/empty/src/empty2.mjs +11 -55
  255. package/es/components/empty/src/empty2.mjs.map +1 -1
  256. package/es/components/index.mjs +7 -7
  257. package/es/components/page-header/index.mjs +2 -2
  258. package/es/components/page-header/src/page-header.mjs +103 -17
  259. package/es/components/page-header/src/page-header.mjs.map +1 -1
  260. package/es/components/page-header/src/page-header2.mjs +17 -103
  261. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  262. package/es/components/popconfirm/src/popconfirm.mjs +1 -1
  263. package/es/components/popover/src/popover.mjs +1 -1
  264. package/es/components/popper/index.mjs +2 -2
  265. package/es/components/popper/src/trigger.mjs +119 -31
  266. package/es/components/popper/src/trigger.mjs.map +1 -1
  267. package/es/components/popper/src/trigger2.mjs +31 -119
  268. package/es/components/popper/src/trigger2.mjs.map +1 -1
  269. package/es/components/roving-focus-group/index.mjs +3 -3
  270. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  271. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  272. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  273. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  274. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  275. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  276. package/es/components/select/src/select.mjs +1 -1
  277. package/es/components/select-v2/src/defaults.mjs +1 -1
  278. package/es/components/switch/index.mjs +2 -2
  279. package/es/components/switch/src/switch.mjs +98 -264
  280. package/es/components/switch/src/switch.mjs.map +1 -1
  281. package/es/components/switch/src/switch2.mjs +264 -98
  282. package/es/components/switch/src/switch2.mjs.map +1 -1
  283. package/es/components/tooltip/index.mjs +1 -1
  284. package/es/components/tooltip/src/content.mjs +177 -31
  285. package/es/components/tooltip/src/content.mjs.map +1 -1
  286. package/es/components/tooltip/src/content2.mjs +31 -177
  287. package/es/components/tooltip/src/content2.mjs.map +1 -1
  288. package/es/components/tooltip/src/tooltip.mjs +1 -1
  289. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  290. package/es/components/tooltip/src/trigger.mjs +1 -1
  291. package/es/components/tooltip/src/trigger2.mjs +1 -1
  292. package/es/components/tooltip-v2/index.mjs +1 -1
  293. package/es/components/tooltip-v2/src/arrow.mjs +22 -37
  294. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  295. package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
  296. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  297. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  298. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  299. package/es/index.mjs +7 -7
  300. package/es/version.d.ts +1 -1
  301. package/es/version.mjs +1 -1
  302. package/es/version.mjs.map +1 -1
  303. package/lib/components/autocomplete/src/autocomplete.js +1 -1
  304. package/lib/components/cascader/src/cascader.js +1 -1
  305. package/lib/components/checkbox/index.js +2 -2
  306. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  307. package/lib/components/checkbox/src/checkbox.js +51 -117
  308. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  309. package/lib/components/checkbox/src/checkbox2.js +117 -51
  310. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  311. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  312. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  313. package/lib/components/dropdown/src/dropdown.js +1 -1
  314. package/lib/components/dropdown/src/dropdown2.js +1 -1
  315. package/lib/components/empty/index.js +2 -2
  316. package/lib/components/empty/src/empty.js +55 -11
  317. package/lib/components/empty/src/empty.js.map +1 -1
  318. package/lib/components/empty/src/empty2.js +11 -55
  319. package/lib/components/empty/src/empty2.js.map +1 -1
  320. package/lib/components/index.js +7 -7
  321. package/lib/components/page-header/index.js +2 -2
  322. package/lib/components/page-header/src/page-header.js +103 -18
  323. package/lib/components/page-header/src/page-header.js.map +1 -1
  324. package/lib/components/page-header/src/page-header2.js +18 -103
  325. package/lib/components/page-header/src/page-header2.js.map +1 -1
  326. package/lib/components/popconfirm/src/popconfirm.js +1 -1
  327. package/lib/components/popover/src/popover.js +1 -1
  328. package/lib/components/popper/index.js +2 -2
  329. package/lib/components/popper/src/trigger.js +119 -32
  330. package/lib/components/popper/src/trigger.js.map +1 -1
  331. package/lib/components/popper/src/trigger2.js +32 -119
  332. package/lib/components/popper/src/trigger2.js.map +1 -1
  333. package/lib/components/roving-focus-group/index.js +2 -2
  334. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  335. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  336. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  337. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  338. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  339. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  340. package/lib/components/select/src/select.js +1 -1
  341. package/lib/components/select-v2/src/defaults.js +1 -1
  342. package/lib/components/switch/index.js +2 -2
  343. package/lib/components/switch/src/switch.js +98 -263
  344. package/lib/components/switch/src/switch.js.map +1 -1
  345. package/lib/components/switch/src/switch2.js +263 -98
  346. package/lib/components/switch/src/switch2.js.map +1 -1
  347. package/lib/components/tooltip/index.js +1 -1
  348. package/lib/components/tooltip/src/content.js +177 -31
  349. package/lib/components/tooltip/src/content.js.map +1 -1
  350. package/lib/components/tooltip/src/content2.js +31 -177
  351. package/lib/components/tooltip/src/content2.js.map +1 -1
  352. package/lib/components/tooltip/src/tooltip.js +1 -1
  353. package/lib/components/tooltip/src/tooltip2.js +1 -1
  354. package/lib/components/tooltip/src/trigger.js +1 -1
  355. package/lib/components/tooltip/src/trigger2.js +1 -1
  356. package/lib/components/tooltip-v2/index.js +1 -1
  357. package/lib/components/tooltip-v2/src/arrow.js +23 -37
  358. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  359. package/lib/components/tooltip-v2/src/arrow2.js +37 -23
  360. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  361. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  362. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  363. package/lib/index.js +7 -7
  364. package/lib/version.d.ts +1 -1
  365. package/lib/version.js +1 -1
  366. package/lib/version.js.map +1 -1
  367. package/package.json +1 -1
  368. package/web-types.json +1 -1
@@ -1,55 +1,122 @@
1
- import '../../../constants/index.mjs';
1
+ import { defineComponent, useSlots, computed, openBlock, createBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, createElementVNode, withDirectives, createElementBlock, isRef, withModifiers, vModelCheckbox, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
2
2
  import '../../../hooks/index.mjs';
3
- import '../../../utils/index.mjs';
4
- import { useSizeProp } from '../../../hooks/use-size/index.mjs';
5
- import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
6
- import { isString } from '@vue/shared';
7
- import { isNumber, isBoolean } from '../../../utils/types.mjs';
3
+ import { checkboxProps, checkboxEmits } from './checkbox.mjs';
4
+ import './composables/index.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useCheckbox } from './composables/use-checkbox.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
8
 
9
- const checkboxProps = {
10
- modelValue: {
11
- type: [Number, String, Boolean],
12
- default: void 0
13
- },
14
- label: {
15
- type: [String, Boolean, Number, Object],
16
- default: void 0
17
- },
18
- indeterminate: Boolean,
19
- disabled: Boolean,
20
- checked: Boolean,
21
- name: {
22
- type: String,
23
- default: void 0
24
- },
25
- trueLabel: {
26
- type: [String, Number],
27
- default: void 0
28
- },
29
- falseLabel: {
30
- type: [String, Number],
31
- default: void 0
32
- },
33
- id: {
34
- type: String,
35
- default: void 0
36
- },
37
- controls: {
38
- type: String,
39
- default: void 0
40
- },
41
- border: Boolean,
42
- size: useSizeProp,
43
- tabindex: [String, Number],
44
- validateEvent: {
45
- type: Boolean,
46
- default: true
9
+ const _hoisted_1 = ["id", "indeterminate", "name", "tabindex", "disabled", "true-value", "false-value"];
10
+ const _hoisted_2 = ["id", "indeterminate", "disabled", "value", "name", "tabindex"];
11
+ const __default__ = defineComponent({
12
+ name: "ElCheckbox"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: checkboxProps,
17
+ emits: checkboxEmits,
18
+ setup(__props) {
19
+ const props = __props;
20
+ const slots = useSlots();
21
+ const {
22
+ inputId,
23
+ isLabeledByFormItem,
24
+ isChecked,
25
+ isDisabled,
26
+ isFocused,
27
+ checkboxSize,
28
+ hasOwnLabel,
29
+ model,
30
+ handleChange,
31
+ onClickRoot
32
+ } = useCheckbox(props, slots);
33
+ const ns = useNamespace("checkbox");
34
+ const compKls = computed(() => {
35
+ return [
36
+ ns.b(),
37
+ ns.m(checkboxSize.value),
38
+ ns.is("disabled", isDisabled.value),
39
+ ns.is("bordered", props.border),
40
+ ns.is("checked", isChecked.value)
41
+ ];
42
+ });
43
+ const spanKls = computed(() => {
44
+ return [
45
+ ns.e("input"),
46
+ ns.is("disabled", isDisabled.value),
47
+ ns.is("checked", isChecked.value),
48
+ ns.is("indeterminate", props.indeterminate),
49
+ ns.is("focus", isFocused.value)
50
+ ];
51
+ });
52
+ return (_ctx, _cache) => {
53
+ return openBlock(), createBlock(resolveDynamicComponent(!unref(hasOwnLabel) && unref(isLabeledByFormItem) ? "span" : "label"), {
54
+ class: normalizeClass(unref(compKls)),
55
+ "aria-controls": _ctx.indeterminate ? _ctx.controls : null,
56
+ onClick: unref(onClickRoot)
57
+ }, {
58
+ default: withCtx(() => [
59
+ createElementVNode("span", {
60
+ class: normalizeClass(unref(spanKls))
61
+ }, [
62
+ _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
63
+ key: 0,
64
+ id: unref(inputId),
65
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
66
+ class: normalizeClass(unref(ns).e("original")),
67
+ type: "checkbox",
68
+ indeterminate: _ctx.indeterminate,
69
+ name: _ctx.name,
70
+ tabindex: _ctx.tabindex,
71
+ disabled: unref(isDisabled),
72
+ "true-value": _ctx.trueLabel,
73
+ "false-value": _ctx.falseLabel,
74
+ onChange: _cache[1] || (_cache[1] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
75
+ onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
76
+ onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
77
+ onClick: _cache[4] || (_cache[4] = withModifiers(() => {
78
+ }, ["stop"]))
79
+ }, null, 42, _hoisted_1)), [
80
+ [vModelCheckbox, unref(model)]
81
+ ]) : withDirectives((openBlock(), createElementBlock("input", {
82
+ key: 1,
83
+ id: unref(inputId),
84
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(model) ? model.value = $event : null),
85
+ class: normalizeClass(unref(ns).e("original")),
86
+ type: "checkbox",
87
+ indeterminate: _ctx.indeterminate,
88
+ disabled: unref(isDisabled),
89
+ value: _ctx.label,
90
+ name: _ctx.name,
91
+ tabindex: _ctx.tabindex,
92
+ onChange: _cache[6] || (_cache[6] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
93
+ onFocus: _cache[7] || (_cache[7] = ($event) => isFocused.value = true),
94
+ onBlur: _cache[8] || (_cache[8] = ($event) => isFocused.value = false),
95
+ onClick: _cache[9] || (_cache[9] = withModifiers(() => {
96
+ }, ["stop"]))
97
+ }, null, 42, _hoisted_2)), [
98
+ [vModelCheckbox, unref(model)]
99
+ ]),
100
+ createElementVNode("span", {
101
+ class: normalizeClass(unref(ns).e("inner"))
102
+ }, null, 2)
103
+ ], 2),
104
+ unref(hasOwnLabel) ? (openBlock(), createElementBlock("span", {
105
+ key: 0,
106
+ class: normalizeClass(unref(ns).e("label"))
107
+ }, [
108
+ renderSlot(_ctx.$slots, "default"),
109
+ !_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
110
+ createTextVNode(toDisplayString(_ctx.label), 1)
111
+ ], 64)) : createCommentVNode("v-if", true)
112
+ ], 2)) : createCommentVNode("v-if", true)
113
+ ]),
114
+ _: 3
115
+ }, 8, ["class", "aria-controls", "onClick"]);
116
+ };
47
117
  }
48
- };
49
- const checkboxEmits = {
50
- [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber(val) || isBoolean(val),
51
- change: (val) => isString(val) || isNumber(val) || isBoolean(val)
52
- };
118
+ });
119
+ var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);
53
120
 
54
- export { checkboxEmits, checkboxProps };
121
+ export { Checkbox as default };
55
122
  //# sourceMappingURL=checkbox2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox2.mjs","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":[],"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,EAAE,WAAW;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,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACjF,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACnE;;;;"}
1
+ {"version":3,"file":"checkbox2.mjs","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":[],"mappings":";;;;;;;;;;mCAwDc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,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,GAAA,WAAA,CAAY,OAAO,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,OAAA,GAAU,SAAS,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,GAAU,SAAS,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -9,7 +9,7 @@ import { dropdownItemProps, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY as COLLECTION
9
9
  import { DROPDOWN_INJECTION_KEY } from './tokens.mjs';
10
10
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
11
11
  import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
12
- import { ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group.mjs';
12
+ import { ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group2.mjs';
13
13
  import { ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';
14
14
  import { composeRefs } from '../../../utils/vue/refs.mjs';
15
15
  import { composeEventHandlers } from '../../../utils/dom/event.mjs';
@@ -11,7 +11,7 @@ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
11
11
  import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
12
12
  import { FOCUS_TRAP_INJECTION_KEY } from '../../focus-trap/src/tokens.mjs';
13
13
  import { ROVING_FOCUS_GROUP_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';
14
- import { ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group.mjs';
14
+ import { ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group2.mjs';
15
15
  import { composeRefs } from '../../../utils/vue/refs.mjs';
16
16
  import { composeEventHandlers } from '../../../utils/dom/event.mjs';
17
17
  import { EVENT_CODE } from '../../../constants/aria.mjs';
@@ -4,7 +4,7 @@ import '../../collection/index.mjs';
4
4
  import '../../tooltip/index.mjs';
5
5
  import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
6
6
  import { useTooltipTriggerProps } from '../../tooltip/src/trigger.mjs';
7
- import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
7
+ import { useTooltipContentProps } from '../../tooltip/src/content2.mjs';
8
8
  import { iconPropType } from '../../../utils/vue/icon.mjs';
9
9
  import { EVENT_CODE } from '../../../constants/aria.mjs';
10
10
  import { createCollectionWithScope } from '../../collection/src/collection.mjs';
@@ -13,7 +13,7 @@ import '../../../hooks/index.mjs';
13
13
  import { ElCollection, dropdownProps } from './dropdown.mjs';
14
14
  import { DROPDOWN_INJECTION_KEY } from './tokens.mjs';
15
15
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
16
- import ElRovingFocusGroup from '../../roving-focus-group/src/roving-focus-group2.mjs';
16
+ import ElRovingFocusGroup from '../../roving-focus-group/src/roving-focus-group.mjs';
17
17
  import { OnlyChild } from '../../slot/src/only-child.mjs';
18
18
  import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
19
19
  import { useLocale } from '../../../hooks/use-locale/index.mjs';
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Empty from './src/empty2.mjs';
3
- export { emptyProps } from './src/empty.mjs';
2
+ import Empty from './src/empty.mjs';
3
+ export { emptyProps } from './src/empty2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElEmpty = withInstall(Empty);
@@ -1,17 +1,61 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, renderSlot, createVNode, toDisplayString, createCommentVNode } from 'vue';
2
+ import '../../../hooks/index.mjs';
1
3
  import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
+ import ImgEmpty from './img-empty.mjs';
5
+ import { emptyProps } from './empty2.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
8
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
+ import { addUnit } from '../../../utils/dom/style.mjs';
3
10
 
4
- const emptyProps = buildProps({
5
- image: {
6
- type: String,
7
- default: ""
8
- },
9
- imageSize: Number,
10
- description: {
11
- type: String,
12
- default: ""
11
+ const _hoisted_1 = ["src"];
12
+ const _hoisted_2 = { key: 1 };
13
+ const __default__ = defineComponent({
14
+ name: "ElEmpty"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ ...__default__,
18
+ props: emptyProps,
19
+ setup(__props) {
20
+ const props = __props;
21
+ const { t } = useLocale();
22
+ const ns = useNamespace("empty");
23
+ const emptyDescription = computed(() => props.description || t("el.table.emptyText"));
24
+ const imageStyle = computed(() => ({
25
+ width: addUnit(props.imageSize)
26
+ }));
27
+ return (_ctx, _cache) => {
28
+ return openBlock(), createElementBlock("div", {
29
+ class: normalizeClass(unref(ns).b())
30
+ }, [
31
+ createElementVNode("div", {
32
+ class: normalizeClass(unref(ns).e("image")),
33
+ style: normalizeStyle(unref(imageStyle))
34
+ }, [
35
+ _ctx.image ? (openBlock(), createElementBlock("img", {
36
+ key: 0,
37
+ src: _ctx.image,
38
+ ondragstart: "return false"
39
+ }, null, 8, _hoisted_1)) : renderSlot(_ctx.$slots, "image", { key: 1 }, () => [
40
+ createVNode(ImgEmpty)
41
+ ])
42
+ ], 6),
43
+ createElementVNode("div", {
44
+ class: normalizeClass(unref(ns).e("description"))
45
+ }, [
46
+ _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(unref(emptyDescription)), 1))
47
+ ], 2),
48
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
49
+ key: 0,
50
+ class: normalizeClass(unref(ns).e("bottom"))
51
+ }, [
52
+ renderSlot(_ctx.$slots, "default")
53
+ ], 2)) : createCommentVNode("v-if", true)
54
+ ], 2);
55
+ };
13
56
  }
14
57
  });
58
+ var Empty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);
15
59
 
16
- export { emptyProps };
60
+ export { Empty as default };
17
61
  //# sourceMappingURL=empty.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty.mjs","sources":["../../../../../../packages/components/empty/src/empty.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const emptyProps = buildProps({\n /**\n * @description image URL of empty\n */\n image: {\n type: String,\n default: '',\n },\n /**\n * @description image size (width) of empty\n */\n imageSize: Number,\n /**\n * @description description of empty\n */\n description: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type EmptyProps = ExtractPropTypes<typeof emptyProps>\n"],"names":[],"mappings":";;;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"empty.mjs","sources":["../../../../../../packages/components/empty/src/empty.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('image')\" :style=\"imageStyle\">\n <img v-if=\"image\" :src=\"image\" ondragstart=\"return false\" />\n <slot v-else name=\"image\">\n <img-empty />\n </slot>\n </div>\n <div :class=\"ns.e('description')\">\n <slot v-if=\"$slots.description\" name=\"description\" />\n <p v-else>{{ emptyDescription }}</p>\n </div>\n <div v-if=\"$slots.default\" :class=\"ns.e('bottom')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { addUnit } from '@element-plus/utils'\nimport ImgEmpty from './img-empty.vue'\nimport { emptyProps } from './empty'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElEmpty',\n})\n\nconst props = defineProps(emptyProps)\n\nconst { t } = useLocale()\nconst ns = useNamespace('empty')\nconst emptyDescription = computed(\n () => props.description || t('el.table.emptyText')\n)\nconst imageStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.imageSize),\n}))\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,mBAAmB,QACvB,CAAA,MAAM,MAAM,WAAe,IAAA,CAAA,CAAE,oBAAoB,CACnD,CAAA,CAAA;AACA,IAAM,MAAA,UAAA,GAAa,SAAwB,OAAO;AAAA,MAChD,KAAA,EAAO,OAAQ,CAAA,KAAA,CAAM,SAAS,CAAA;AAAA,KAC9B,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,61 +1,17 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, renderSlot, createVNode, toDisplayString, createCommentVNode } from 'vue';
2
- import '../../../hooks/index.mjs';
3
1
  import '../../../utils/index.mjs';
4
- import ImgEmpty from './img-empty.mjs';
5
- import { emptyProps } from './empty.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useLocale } from '../../../hooks/use-locale/index.mjs';
8
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
- import { addUnit } from '../../../utils/dom/style.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
10
3
 
11
- const _hoisted_1 = ["src"];
12
- const _hoisted_2 = { key: 1 };
13
- const __default__ = defineComponent({
14
- name: "ElEmpty"
15
- });
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- ...__default__,
18
- props: emptyProps,
19
- setup(__props) {
20
- const props = __props;
21
- const { t } = useLocale();
22
- const ns = useNamespace("empty");
23
- const emptyDescription = computed(() => props.description || t("el.table.emptyText"));
24
- const imageStyle = computed(() => ({
25
- width: addUnit(props.imageSize)
26
- }));
27
- return (_ctx, _cache) => {
28
- return openBlock(), createElementBlock("div", {
29
- class: normalizeClass(unref(ns).b())
30
- }, [
31
- createElementVNode("div", {
32
- class: normalizeClass(unref(ns).e("image")),
33
- style: normalizeStyle(unref(imageStyle))
34
- }, [
35
- _ctx.image ? (openBlock(), createElementBlock("img", {
36
- key: 0,
37
- src: _ctx.image,
38
- ondragstart: "return false"
39
- }, null, 8, _hoisted_1)) : renderSlot(_ctx.$slots, "image", { key: 1 }, () => [
40
- createVNode(ImgEmpty)
41
- ])
42
- ], 6),
43
- createElementVNode("div", {
44
- class: normalizeClass(unref(ns).e("description"))
45
- }, [
46
- _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(unref(emptyDescription)), 1))
47
- ], 2),
48
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
49
- key: 0,
50
- class: normalizeClass(unref(ns).e("bottom"))
51
- }, [
52
- renderSlot(_ctx.$slots, "default")
53
- ], 2)) : createCommentVNode("v-if", true)
54
- ], 2);
55
- };
4
+ const emptyProps = buildProps({
5
+ image: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ imageSize: Number,
10
+ description: {
11
+ type: String,
12
+ default: ""
56
13
  }
57
14
  });
58
- var Empty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);
59
15
 
60
- export { Empty as default };
16
+ export { emptyProps };
61
17
  //# sourceMappingURL=empty2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty2.mjs","sources":["../../../../../../packages/components/empty/src/empty.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('image')\" :style=\"imageStyle\">\n <img v-if=\"image\" :src=\"image\" ondragstart=\"return false\" />\n <slot v-else name=\"image\">\n <img-empty />\n </slot>\n </div>\n <div :class=\"ns.e('description')\">\n <slot v-if=\"$slots.description\" name=\"description\" />\n <p v-else>{{ emptyDescription }}</p>\n </div>\n <div v-if=\"$slots.default\" :class=\"ns.e('bottom')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { addUnit } from '@element-plus/utils'\nimport ImgEmpty from './img-empty.vue'\nimport { emptyProps } from './empty'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElEmpty',\n})\n\nconst props = defineProps(emptyProps)\n\nconst { t } = useLocale()\nconst ns = useNamespace('empty')\nconst emptyDescription = computed(\n () => props.description || t('el.table.emptyText')\n)\nconst imageStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.imageSize),\n}))\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,mBAAmB,QACvB,CAAA,MAAM,MAAM,WAAe,IAAA,CAAA,CAAE,oBAAoB,CACnD,CAAA,CAAA;AACA,IAAM,MAAA,UAAA,GAAa,SAAwB,OAAO;AAAA,MAChD,KAAA,EAAO,OAAQ,CAAA,KAAA,CAAM,SAAS,CAAA;AAAA,KAC9B,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"empty2.mjs","sources":["../../../../../../packages/components/empty/src/empty.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const emptyProps = buildProps({\n /**\n * @description image URL of empty\n */\n image: {\n type: String,\n default: '',\n },\n /**\n * @description image size (width) of empty\n */\n imageSize: Number,\n /**\n * @description description of empty\n */\n description: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type EmptyProps = ExtractPropTypes<typeof emptyProps>\n"],"names":[],"mappings":";;;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -97,7 +97,7 @@ export { CASCADER_PANEL_INJECTION_KEY } from './cascader-panel/src/types.mjs';
97
97
  export { CommonProps, DefaultProps, useCascaderConfig } from './cascader-panel/src/config.mjs';
98
98
  export { checkTagEmits, checkTagProps } from './check-tag/src/check-tag.mjs';
99
99
  export { checkboxGroupEmits, checkboxGroupProps } from './checkbox/src/checkbox-group.mjs';
100
- export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox2.mjs';
100
+ export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
101
101
  export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
102
102
  export { colProps } from './col/src/col.mjs';
103
103
  export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
@@ -119,7 +119,7 @@ export { dividerProps } from './divider/src/divider.mjs';
119
119
  export { drawerEmits, drawerProps } from './drawer/src/drawer.mjs';
120
120
  export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './dropdown/src/dropdown.mjs';
121
121
  export { DROPDOWN_INJECTION_KEY } from './dropdown/src/tokens.mjs';
122
- export { emptyProps } from './empty/src/empty.mjs';
122
+ export { emptyProps } from './empty/src/empty2.mjs';
123
123
  export { formEmits, formProps } from './form/src/form.mjs';
124
124
  export { formItemProps, formItemValidateStates } from './form/src/form-item.mjs';
125
125
  export { formContextKey, formItemContextKey } from './form/src/constants.mjs';
@@ -136,17 +136,17 @@ export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
136
136
  export { menuItemGroupProps } from './menu/src/menu-item-group.mjs';
137
137
  export { subMenuProps } from './menu/src/sub-menu.mjs';
138
138
  export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
139
- export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header.mjs';
139
+ export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header2.mjs';
140
140
  export { paginationEmits, paginationProps } from './pagination/src/pagination.mjs';
141
141
  export { elPaginationKey } from './pagination/src/constants.mjs';
142
142
  export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mjs';
143
143
  export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
144
- export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
144
+ export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger2.mjs';
145
145
  export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
146
146
  export { popperArrowProps, usePopperArrowProps } from './popper/src/arrow.mjs';
147
147
  export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper/src/constants.mjs';
148
148
  export { default as ElPopperArrow } from './popper/src/arrow2.mjs';
149
- export { default as ElPopperTrigger } from './popper/src/trigger2.mjs';
149
+ export { default as ElPopperTrigger } from './popper/src/trigger.mjs';
150
150
  export { default as ElPopperContent } from './popper/src/content2.mjs';
151
151
  export { progressProps } from './progress/src/progress.mjs';
152
152
  export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio.mjs';
@@ -172,7 +172,7 @@ export { useSpace } from './space/src/use-space.mjs';
172
172
  export { statisticProps } from './statistic/src/statistic.mjs';
173
173
  export { stepProps } from './steps/src/item.mjs';
174
174
  export { stepsEmits, stepsProps } from './steps/src/steps.mjs';
175
- export { switchEmits, switchProps } from './switch/src/switch2.mjs';
175
+ export { switchEmits, switchProps } from './switch/src/switch.mjs';
176
176
  export { Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, SortOrder as TableV2SortOrder } from './table-v2/src/constants.mjs';
177
177
  export { default as TableV2 } from './table-v2/src/table-v2.mjs';
178
178
  export { placeholderSign as TableV2Placeholder } from './table-v2/src/private.mjs';
@@ -194,7 +194,7 @@ export { default as TimePickPanel } from './time-picker/src/time-picker-com/pane
194
194
  export { timelineItemProps } from './timeline/src/timeline-item.mjs';
195
195
  export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
196
196
  export { useTooltipTriggerProps } from './tooltip/src/trigger.mjs';
197
- export { useTooltipContentProps } from './tooltip/src/content.mjs';
197
+ export { useTooltipContentProps } from './tooltip/src/content2.mjs';
198
198
  export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
199
199
  export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
200
200
  export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/upload.mjs';
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import PageHeader from './src/page-header2.mjs';
3
- export { pageHeaderEmits, pageHeaderProps } from './src/page-header.mjs';
2
+ import PageHeader from './src/page-header.mjs';
3
+ export { pageHeaderEmits, pageHeaderProps } from './src/page-header2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElPageHeader = withInstall(PageHeader);