@element-plus/nightly 0.0.20241122 → 0.0.20241124

Sign up to get free protection for your applications and to get access to all the features.
Files changed (366) hide show
  1. package/dist/index.full.js +26 -12
  2. package/dist/index.full.min.js +15 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +26 -13
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/ms.js +1 -1
  152. package/dist/locale/ms.min.js +1 -1
  153. package/dist/locale/ms.min.mjs +1 -1
  154. package/dist/locale/ms.mjs +1 -1
  155. package/dist/locale/my.js +1 -1
  156. package/dist/locale/my.min.js +1 -1
  157. package/dist/locale/my.min.mjs +1 -1
  158. package/dist/locale/my.mjs +1 -1
  159. package/dist/locale/nb-no.js +1 -1
  160. package/dist/locale/nb-no.min.js +1 -1
  161. package/dist/locale/nb-no.min.mjs +1 -1
  162. package/dist/locale/nb-no.mjs +1 -1
  163. package/dist/locale/nl.js +1 -1
  164. package/dist/locale/nl.min.js +1 -1
  165. package/dist/locale/nl.min.mjs +1 -1
  166. package/dist/locale/nl.mjs +1 -1
  167. package/dist/locale/pa.js +1 -1
  168. package/dist/locale/pa.min.js +1 -1
  169. package/dist/locale/pa.min.mjs +1 -1
  170. package/dist/locale/pa.mjs +1 -1
  171. package/dist/locale/pl.js +1 -1
  172. package/dist/locale/pl.min.js +1 -1
  173. package/dist/locale/pl.min.mjs +1 -1
  174. package/dist/locale/pl.mjs +1 -1
  175. package/dist/locale/pt-br.js +1 -1
  176. package/dist/locale/pt-br.min.js +1 -1
  177. package/dist/locale/pt-br.min.mjs +1 -1
  178. package/dist/locale/pt-br.mjs +1 -1
  179. package/dist/locale/pt.js +1 -1
  180. package/dist/locale/pt.min.js +1 -1
  181. package/dist/locale/pt.min.mjs +1 -1
  182. package/dist/locale/pt.mjs +1 -1
  183. package/dist/locale/ro.js +1 -1
  184. package/dist/locale/ro.min.js +1 -1
  185. package/dist/locale/ro.min.mjs +1 -1
  186. package/dist/locale/ro.mjs +1 -1
  187. package/dist/locale/ru.js +1 -1
  188. package/dist/locale/ru.min.js +1 -1
  189. package/dist/locale/ru.min.mjs +1 -1
  190. package/dist/locale/ru.mjs +1 -1
  191. package/dist/locale/sk.js +1 -1
  192. package/dist/locale/sk.min.js +1 -1
  193. package/dist/locale/sk.min.mjs +1 -1
  194. package/dist/locale/sk.mjs +1 -1
  195. package/dist/locale/sl.js +1 -1
  196. package/dist/locale/sl.min.js +1 -1
  197. package/dist/locale/sl.min.mjs +1 -1
  198. package/dist/locale/sl.mjs +1 -1
  199. package/dist/locale/sr.js +1 -1
  200. package/dist/locale/sr.min.js +1 -1
  201. package/dist/locale/sr.min.mjs +1 -1
  202. package/dist/locale/sr.mjs +1 -1
  203. package/dist/locale/sv.js +1 -1
  204. package/dist/locale/sv.min.js +1 -1
  205. package/dist/locale/sv.min.mjs +1 -1
  206. package/dist/locale/sv.mjs +1 -1
  207. package/dist/locale/sw.js +1 -1
  208. package/dist/locale/sw.min.js +1 -1
  209. package/dist/locale/sw.min.mjs +1 -1
  210. package/dist/locale/sw.mjs +1 -1
  211. package/dist/locale/ta.js +1 -1
  212. package/dist/locale/ta.min.js +1 -1
  213. package/dist/locale/ta.min.mjs +1 -1
  214. package/dist/locale/ta.mjs +1 -1
  215. package/dist/locale/th.js +1 -1
  216. package/dist/locale/th.min.js +1 -1
  217. package/dist/locale/th.min.mjs +1 -1
  218. package/dist/locale/th.mjs +1 -1
  219. package/dist/locale/tk.js +1 -1
  220. package/dist/locale/tk.min.js +1 -1
  221. package/dist/locale/tk.min.mjs +1 -1
  222. package/dist/locale/tk.mjs +1 -1
  223. package/dist/locale/tr.js +1 -1
  224. package/dist/locale/tr.min.js +1 -1
  225. package/dist/locale/tr.min.mjs +1 -1
  226. package/dist/locale/tr.mjs +1 -1
  227. package/dist/locale/ug-cn.js +1 -1
  228. package/dist/locale/ug-cn.min.js +1 -1
  229. package/dist/locale/ug-cn.min.mjs +1 -1
  230. package/dist/locale/ug-cn.mjs +1 -1
  231. package/dist/locale/uk.js +1 -1
  232. package/dist/locale/uk.min.js +1 -1
  233. package/dist/locale/uk.min.mjs +1 -1
  234. package/dist/locale/uk.mjs +1 -1
  235. package/dist/locale/uz-uz.js +1 -1
  236. package/dist/locale/uz-uz.min.js +1 -1
  237. package/dist/locale/uz-uz.min.mjs +1 -1
  238. package/dist/locale/uz-uz.mjs +1 -1
  239. package/dist/locale/vi.js +1 -1
  240. package/dist/locale/vi.min.js +1 -1
  241. package/dist/locale/vi.min.mjs +1 -1
  242. package/dist/locale/vi.mjs +1 -1
  243. package/dist/locale/zh-cn.js +1 -1
  244. package/dist/locale/zh-cn.min.js +1 -1
  245. package/dist/locale/zh-cn.min.mjs +1 -1
  246. package/dist/locale/zh-cn.mjs +1 -1
  247. package/dist/locale/zh-tw.js +1 -1
  248. package/dist/locale/zh-tw.min.js +1 -1
  249. package/dist/locale/zh-tw.min.mjs +1 -1
  250. package/dist/locale/zh-tw.mjs +1 -1
  251. package/es/components/autocomplete/src/autocomplete.vue.d.ts +2 -2
  252. package/es/components/card/index.mjs +2 -2
  253. package/es/components/card/src/card.mjs +43 -21
  254. package/es/components/card/src/card.mjs.map +1 -1
  255. package/es/components/card/src/card2.mjs +21 -43
  256. package/es/components/card/src/card2.mjs.map +1 -1
  257. package/es/components/checkbox/index.mjs +2 -2
  258. package/es/components/checkbox/src/checkbox-group.mjs +30 -73
  259. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  260. package/es/components/checkbox/src/checkbox-group2.mjs +73 -30
  261. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  262. package/es/components/date-picker/src/date-picker.d.ts +12 -11
  263. package/es/components/date-picker/src/date-picker.mjs.map +1 -1
  264. package/es/components/index.mjs +6 -6
  265. package/es/components/input/src/input.vue.d.ts +1 -1
  266. package/es/components/input/src/input2.mjs +4 -4
  267. package/es/components/input/src/input2.mjs.map +1 -1
  268. package/es/components/mention/src/mention-dropdown.mjs +167 -15
  269. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  270. package/es/components/mention/src/mention-dropdown2.mjs +15 -167
  271. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  272. package/es/components/mention/src/mention.vue.d.ts +2 -2
  273. package/es/components/mention/src/mention2.mjs +1 -1
  274. package/es/components/menu/index.mjs +2 -2
  275. package/es/components/menu/src/menu-item.mjs +97 -14
  276. package/es/components/menu/src/menu-item.mjs.map +1 -1
  277. package/es/components/menu/src/menu-item2.mjs +14 -97
  278. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  279. package/es/components/segmented/index.mjs +2 -2
  280. package/es/components/segmented/src/segmented.mjs +169 -34
  281. package/es/components/segmented/src/segmented.mjs.map +1 -1
  282. package/es/components/segmented/src/segmented2.mjs +34 -169
  283. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  284. package/es/components/skeleton/index.mjs +2 -2
  285. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  286. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  287. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  288. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  289. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  290. package/es/components/time-picker/index.mjs +1 -1
  291. package/es/components/time-picker/src/common/picker.mjs +5 -5
  292. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  293. package/es/components/time-picker/src/utils.d.ts +2 -0
  294. package/es/components/time-picker/src/utils.mjs +4 -1
  295. package/es/components/time-picker/src/utils.mjs.map +1 -1
  296. package/es/components/transfer/src/transfer-panel.vue.d.ts +1 -0
  297. package/es/components/transfer/src/transfer-panel2.mjs +6 -2
  298. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  299. package/es/components/transfer/src/transfer.vue.d.ts +4 -0
  300. package/es/components/transfer/src/transfer2.mjs +6 -0
  301. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  302. package/es/index.mjs +6 -6
  303. package/es/version.d.ts +1 -1
  304. package/es/version.mjs +1 -1
  305. package/es/version.mjs.map +1 -1
  306. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +2 -2
  307. package/lib/components/card/index.js +2 -2
  308. package/lib/components/card/src/card.js +43 -21
  309. package/lib/components/card/src/card.js.map +1 -1
  310. package/lib/components/card/src/card2.js +21 -43
  311. package/lib/components/card/src/card2.js.map +1 -1
  312. package/lib/components/checkbox/index.js +2 -2
  313. package/lib/components/checkbox/src/checkbox-group.js +31 -73
  314. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  315. package/lib/components/checkbox/src/checkbox-group2.js +73 -31
  316. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  317. package/lib/components/date-picker/src/date-picker.d.ts +12 -11
  318. package/lib/components/date-picker/src/date-picker.js.map +1 -1
  319. package/lib/components/index.js +6 -5
  320. package/lib/components/index.js.map +1 -1
  321. package/lib/components/input/src/input.vue.d.ts +1 -1
  322. package/lib/components/input/src/input2.js +4 -4
  323. package/lib/components/input/src/input2.js.map +1 -1
  324. package/lib/components/mention/src/mention-dropdown.js +167 -16
  325. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  326. package/lib/components/mention/src/mention-dropdown2.js +16 -167
  327. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  328. package/lib/components/mention/src/mention.vue.d.ts +2 -2
  329. package/lib/components/mention/src/mention2.js +1 -1
  330. package/lib/components/menu/index.js +2 -2
  331. package/lib/components/menu/src/menu-item.js +97 -15
  332. package/lib/components/menu/src/menu-item.js.map +1 -1
  333. package/lib/components/menu/src/menu-item2.js +15 -97
  334. package/lib/components/menu/src/menu-item2.js.map +1 -1
  335. package/lib/components/segmented/index.js +2 -2
  336. package/lib/components/segmented/src/segmented.js +168 -34
  337. package/lib/components/segmented/src/segmented.js.map +1 -1
  338. package/lib/components/segmented/src/segmented2.js +34 -168
  339. package/lib/components/segmented/src/segmented2.js.map +1 -1
  340. package/lib/components/skeleton/index.js +2 -2
  341. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  342. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  343. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  344. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  345. package/lib/components/skeleton/src/skeleton2.js +1 -1
  346. package/lib/components/time-picker/index.js +1 -0
  347. package/lib/components/time-picker/index.js.map +1 -1
  348. package/lib/components/time-picker/src/common/picker.js +4 -4
  349. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  350. package/lib/components/time-picker/src/utils.d.ts +2 -0
  351. package/lib/components/time-picker/src/utils.js +4 -0
  352. package/lib/components/time-picker/src/utils.js.map +1 -1
  353. package/lib/components/transfer/src/transfer-panel.vue.d.ts +1 -0
  354. package/lib/components/transfer/src/transfer-panel2.js +6 -2
  355. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  356. package/lib/components/transfer/src/transfer.vue.d.ts +4 -0
  357. package/lib/components/transfer/src/transfer2.js +6 -0
  358. package/lib/components/transfer/src/transfer2.js.map +1 -1
  359. package/lib/index.js +6 -5
  360. package/lib/index.js.map +1 -1
  361. package/lib/version.d.ts +1 -1
  362. package/lib/version.js +1 -1
  363. package/lib/version.js.map +1 -1
  364. package/package.json +2 -2
  365. package/theme-chalk/src/segmented.scss +1 -1
  366. package/web-types.json +1 -1
@@ -2,51 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- require('../../../hooks/index.js');
7
- var card = require('./card.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
- var index = require('../../../hooks/use-namespace/index.js');
5
+ require('../../../utils/index.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
10
7
 
11
- const __default__ = vue.defineComponent({
12
- name: "ElCard"
13
- });
14
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
- ...__default__,
16
- props: card.cardProps,
17
- setup(__props) {
18
- const ns = index.useNamespace("card");
19
- return (_ctx, _cache) => {
20
- return vue.openBlock(), vue.createElementBlock("div", {
21
- class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).is(`${_ctx.shadow}-shadow`)])
22
- }, [
23
- _ctx.$slots.header || _ctx.header ? (vue.openBlock(), vue.createElementBlock("div", {
24
- key: 0,
25
- class: vue.normalizeClass(vue.unref(ns).e("header"))
26
- }, [
27
- vue.renderSlot(_ctx.$slots, "header", {}, () => [
28
- vue.createTextVNode(vue.toDisplayString(_ctx.header), 1)
29
- ])
30
- ], 2)) : vue.createCommentVNode("v-if", true),
31
- vue.createElementVNode("div", {
32
- class: vue.normalizeClass([vue.unref(ns).e("body"), _ctx.bodyClass]),
33
- style: vue.normalizeStyle(_ctx.bodyStyle)
34
- }, [
35
- vue.renderSlot(_ctx.$slots, "default")
36
- ], 6),
37
- _ctx.$slots.footer || _ctx.footer ? (vue.openBlock(), vue.createElementBlock("div", {
38
- key: 1,
39
- class: vue.normalizeClass(vue.unref(ns).e("footer"))
40
- }, [
41
- vue.renderSlot(_ctx.$slots, "footer", {}, () => [
42
- vue.createTextVNode(vue.toDisplayString(_ctx.footer), 1)
43
- ])
44
- ], 2)) : vue.createCommentVNode("v-if", true)
45
- ], 2);
46
- };
8
+ const cardProps = runtime.buildProps({
9
+ header: {
10
+ type: String,
11
+ default: ""
12
+ },
13
+ footer: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ bodyStyle: {
18
+ type: runtime.definePropType([String, Object, Array]),
19
+ default: ""
20
+ },
21
+ bodyClass: String,
22
+ shadow: {
23
+ type: String,
24
+ values: ["always", "hover", "never"],
25
+ default: "always"
47
26
  }
48
27
  });
49
- var Card = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "card.vue"]]);
50
28
 
51
- exports["default"] = Card;
29
+ exports.cardProps = cardProps;
52
30
  //# sourceMappingURL=card2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card2.js","sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.is(`${shadow}-shadow`)]\">\n <div v-if=\"$slots.header || header\" :class=\"ns.e('header')\">\n <slot name=\"header\">{{ header }}</slot>\n </div>\n <div :class=\"[ns.e('body'), bodyClass]\" :style=\"bodyStyle\">\n <slot />\n </div>\n <div v-if=\"$slots.footer || footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\">{{ footer }}</slot>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { cardProps } from './card'\n\ndefineOptions({\n name: 'ElCard',\n})\n\ndefineProps(cardProps)\n\nconst ns = useNamespace('card')\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;uCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,MAAM,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"card2.js","sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\n\nexport const cardProps = buildProps({\n /**\n * @description title of the card. Also accepts a DOM passed by `slot#header`\n */\n header: {\n type: String,\n default: '',\n },\n footer: {\n type: String,\n default: '',\n },\n /**\n * @description CSS style of card body\n */\n bodyStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description custom class name of card body\n */\n bodyClass: String,\n /**\n * @description when to show card shadows\n */\n shadow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: 'always',\n },\n} as const)\nexport type CardProps = ExtractPropTypes<typeof cardProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACxC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC;;;;"}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  require('../../utils/index.js');
6
6
  var checkbox$1 = require('./src/checkbox2.js');
7
7
  var checkboxButton = require('./src/checkbox-button.js');
8
- var checkboxGroup$1 = require('./src/checkbox-group.js');
9
- var checkboxGroup = require('./src/checkbox-group2.js');
8
+ var checkboxGroup$1 = require('./src/checkbox-group2.js');
9
+ var checkboxGroup = require('./src/checkbox-group.js');
10
10
  var checkbox = require('./src/checkbox.js');
11
11
  var constants = require('./src/constants.js');
12
12
  var install = require('../../utils/vue/install.js');
@@ -2,83 +2,41 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var lodashUnified = require('lodash-unified');
7
5
  require('../../../constants/index.js');
8
- require('../../../utils/index.js');
9
6
  require('../../../hooks/index.js');
10
- require('../../form/index.js');
11
- var checkboxGroup = require('./checkbox-group2.js');
12
- var constants = require('./constants.js');
13
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
14
- var index = require('../../../hooks/use-namespace/index.js');
15
- var useFormItem = require('../../form/src/hooks/use-form-item.js');
7
+ require('../../../utils/index.js');
8
+ var runtime = require('../../../utils/vue/props/runtime.js');
9
+ var index = require('../../../hooks/use-size/index.js');
10
+ var index$1 = require('../../../hooks/use-aria/index.js');
16
11
  var event = require('../../../constants/event.js');
17
- var error = require('../../../utils/error.js');
12
+ var shared = require('@vue/shared');
18
13
 
19
- const __default__ = vue.defineComponent({
20
- name: "ElCheckboxGroup"
21
- });
22
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
- ...__default__,
24
- props: checkboxGroup.checkboxGroupProps,
25
- emits: checkboxGroup.checkboxGroupEmits,
26
- setup(__props, { emit }) {
27
- const props = __props;
28
- const ns = index.useNamespace("checkbox");
29
- const { formItem } = useFormItem.useFormItem();
30
- const { inputId: groupId, isLabeledByFormItem } = useFormItem.useFormItemInputId(props, {
31
- formItemContext: formItem
32
- });
33
- const changeEvent = async (value) => {
34
- emit(event.UPDATE_MODEL_EVENT, value);
35
- await vue.nextTick();
36
- emit("change", value);
37
- };
38
- const modelValue = vue.computed({
39
- get() {
40
- return props.modelValue;
41
- },
42
- set(val) {
43
- changeEvent(val);
44
- }
45
- });
46
- vue.provide(constants.checkboxGroupContextKey, {
47
- ...lodashUnified.pick(vue.toRefs(props), [
48
- "size",
49
- "min",
50
- "max",
51
- "disabled",
52
- "validateEvent",
53
- "fill",
54
- "textColor"
55
- ]),
56
- modelValue,
57
- changeEvent
58
- });
59
- vue.watch(() => props.modelValue, () => {
60
- if (props.validateEvent) {
61
- formItem == null ? void 0 : formItem.validate("change").catch((err) => error.debugWarn(err));
62
- }
63
- });
64
- return (_ctx, _cache) => {
65
- var _a;
66
- return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
67
- id: vue.unref(groupId),
68
- class: vue.normalizeClass(vue.unref(ns).b("group")),
69
- role: "group",
70
- "aria-label": !vue.unref(isLabeledByFormItem) ? _ctx.ariaLabel || "checkbox-group" : void 0,
71
- "aria-labelledby": vue.unref(isLabeledByFormItem) ? (_a = vue.unref(formItem)) == null ? void 0 : _a.labelId : void 0
72
- }, {
73
- default: vue.withCtx(() => [
74
- vue.renderSlot(_ctx.$slots, "default")
75
- ]),
76
- _: 3
77
- }, 8, ["id", "class", "aria-label", "aria-labelledby"]);
78
- };
79
- }
14
+ const checkboxGroupProps = runtime.buildProps({
15
+ modelValue: {
16
+ type: runtime.definePropType(Array),
17
+ default: () => []
18
+ },
19
+ disabled: Boolean,
20
+ min: Number,
21
+ max: Number,
22
+ size: index.useSizeProp,
23
+ fill: String,
24
+ textColor: String,
25
+ tag: {
26
+ type: String,
27
+ default: "div"
28
+ },
29
+ validateEvent: {
30
+ type: Boolean,
31
+ default: true
32
+ },
33
+ ...index$1.useAriaProps(["ariaLabel"])
80
34
  });
81
- var CheckboxGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "checkbox-group.vue"]]);
35
+ const checkboxGroupEmits = {
36
+ [event.UPDATE_MODEL_EVENT]: (val) => shared.isArray(val),
37
+ change: (val) => shared.isArray(val)
38
+ };
82
39
 
83
- exports["default"] = CheckboxGroup;
40
+ exports.checkboxGroupEmits = checkboxGroupEmits;
41
+ exports.checkboxGroupProps = checkboxGroupProps;
84
42
  //# sourceMappingURL=checkbox-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-group.js","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :id=\"groupId\"\n :class=\"ns.b('group')\"\n role=\"group\"\n :aria-label=\"\n !isLabeledByFormItem ? ariaLabel || 'checkbox-group' : undefined\n \"\n :aria-labelledby=\"isLabeledByFormItem ? formItem?.labelId : undefined\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, provide, toRefs, watch } from 'vue'\nimport { pick } from 'lodash-unified'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { debugWarn } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { checkboxGroupEmits, checkboxGroupProps } from './checkbox-group'\nimport { checkboxGroupContextKey } from './constants'\n\nimport type { CheckboxGroupValueType } from './checkbox-group'\n\ndefineOptions({\n name: 'ElCheckboxGroup',\n})\n\nconst props = defineProps(checkboxGroupProps)\nconst emit = defineEmits(checkboxGroupEmits)\nconst ns = useNamespace('checkbox')\n\nconst { formItem } = useFormItem()\nconst { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst changeEvent = async (value: CheckboxGroupValueType) => {\n emit(UPDATE_MODEL_EVENT, value)\n await nextTick()\n emit('change', value)\n}\n\nconst modelValue = computed({\n get() {\n return props.modelValue\n },\n set(val: CheckboxGroupValueType) {\n changeEvent(val)\n },\n})\n\nprovide(checkboxGroupContextKey, {\n ...pick(toRefs(props), [\n 'size',\n 'min',\n 'max',\n 'disabled',\n 'validateEvent',\n 'fill',\n 'textColor',\n ]),\n modelValue,\n changeEvent,\n})\n\nwatch(\n () => props.modelValue,\n () => {\n if (props.validateEvent) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n)\n</script>\n"],"names":["useNamespace","useFormItem","useFormItemInputId","UPDATE_MODEL_EVENT","nextTick","computed","provide","checkboxGroupContextKey","pick","toRefs","watch","debugWarn","_openBlock","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;uCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,EAAE,QAAS,EAAA,GAAIC,uBAAY,EAAA,CAAA;AACjC,IAAA,MAAM,EAAE,OAAS,EAAA,OAAA,EAAS,mBAAoB,EAAA,GAAIC,+BAAmB,KAAO,EAAA;AAAA,MAC1E,eAAiB,EAAA,QAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,OAAO,KAAkC,KAAA;AAC3D,MAAA,IAAA,CAAKC,0BAAoB,KAAK,CAAA,CAAA;AAC9B,MAAA,MAAMC,YAAS,EAAA,CAAA;AACf,MAAA,IAAA,CAAK,UAAU,KAAK,CAAA,CAAA;AAAA,KACtB,CAAA;AAEA,IAAA,MAAM,aAAaC,YAAS,CAAA;AAAA,MAC1B,GAAM,GAAA;AACJ,QAAA,OAAO,KAAM,CAAA,UAAA,CAAA;AAAA,OACf;AAAA,MACA,IAAI,GAA6B,EAAA;AAC/B,QAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAAA,OACjB;AAAA,KACD,CAAA,CAAA;AAED,IAAAC,WAAA,CAAQC,iCAAyB,EAAA;AAAA,MAC/B,GAAGC,kBAAA,CAAKC,UAAO,CAAA,KAAK,CAAG,EAAA;AAAA,QACrB,MAAA;AAAA,QACA,KAAA;AAAA,QACA,KAAA;AAAA,QACA,UAAA;AAAA,QACA,eAAA;AAAA,QACA,MAAA;AAAA,QACA,WAAA;AAAA,OACD,CAAA;AAAA,MACD,UAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAAC,SAAA,CAAA,MAAA,KAAA,CAAA,UAAA,EAAA,MAAA;AAAA,MACE,SAAY,CAAA,aAAA,EAAA;AAAA,QACN,QAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,QAAA,CAAA,QAAA,CAAA,QAAA,CAAA,CAAA,KAAA,CAAA,CAAA,GAAA,KAAAC,eAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AACJ,OAAA;AACE,KAAU,CAAA,CAAA;AAAgD,IAC5D,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACF,IAAA,EAAA,CAAA;AAAA,MACF,OAAAC,aAAA,EAAA,EAAAC,eAAA,CAAAC,2BAAA,CAAA,IAAA,CAAA,GAAA,CAAA,EAAA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"checkbox-group.js","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, isArray } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type checkboxGroup from './checkbox-group.vue'\nimport type { CheckboxValueType } from './checkbox'\n\nexport type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[]\n\nexport const checkboxGroupProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<CheckboxGroupValueType>(Array),\n default: () => [],\n },\n /**\n * @description whether the nesting checkboxes are disabled\n */\n disabled: Boolean,\n /**\n * @description minimum number of checkbox checked\n */\n min: Number,\n /**\n * @description maximum number of checkbox checked\n */\n max: Number,\n /**\n * @description size of checkbox\n */\n size: useSizeProp,\n /**\n * @description border and background color when button is active\n */\n fill: String,\n /**\n * @description font color when button is active\n */\n textColor: String,\n /**\n * @description element tag of the checkbox group\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport const checkboxGroupEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxGroupValueType) => isArray(val),\n change: (val: CheckboxValueType[]) => isArray(val),\n}\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits\nexport type CheckboxGroupInstance = InstanceType<typeof checkboxGroup>\n"],"names":["buildProps","definePropType","useSizeProp","useAriaProps","UPDATE_MODEL_EVENT","isArray"],"mappings":";;;;;;;;;;;;;AAGY,MAAC,kBAAkB,GAAGA,kBAAU,CAAC;AAC7C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAGC,oBAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,cAAO,CAAC,GAAG,CAAC;AAC7C,EAAE,MAAM,EAAE,CAAC,GAAG,KAAKA,cAAO,CAAC,GAAG,CAAC;AAC/B;;;;;"}
@@ -2,41 +2,83 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ var lodashUnified = require('lodash-unified');
5
7
  require('../../../constants/index.js');
6
- require('../../../hooks/index.js');
7
8
  require('../../../utils/index.js');
8
- var runtime = require('../../../utils/vue/props/runtime.js');
9
- var index = require('../../../hooks/use-size/index.js');
10
- var index$1 = require('../../../hooks/use-aria/index.js');
9
+ require('../../../hooks/index.js');
10
+ require('../../form/index.js');
11
+ var checkboxGroup = require('./checkbox-group.js');
12
+ var constants = require('./constants.js');
13
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
14
+ var index = require('../../../hooks/use-namespace/index.js');
15
+ var useFormItem = require('../../form/src/hooks/use-form-item.js');
11
16
  var event = require('../../../constants/event.js');
12
- var shared = require('@vue/shared');
17
+ var error = require('../../../utils/error.js');
13
18
 
14
- const checkboxGroupProps = runtime.buildProps({
15
- modelValue: {
16
- type: runtime.definePropType(Array),
17
- default: () => []
18
- },
19
- disabled: Boolean,
20
- min: Number,
21
- max: Number,
22
- size: index.useSizeProp,
23
- fill: String,
24
- textColor: String,
25
- tag: {
26
- type: String,
27
- default: "div"
28
- },
29
- validateEvent: {
30
- type: Boolean,
31
- default: true
32
- },
33
- ...index$1.useAriaProps(["ariaLabel"])
19
+ const __default__ = vue.defineComponent({
20
+ name: "ElCheckboxGroup"
21
+ });
22
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
+ ...__default__,
24
+ props: checkboxGroup.checkboxGroupProps,
25
+ emits: checkboxGroup.checkboxGroupEmits,
26
+ setup(__props, { emit }) {
27
+ const props = __props;
28
+ const ns = index.useNamespace("checkbox");
29
+ const { formItem } = useFormItem.useFormItem();
30
+ const { inputId: groupId, isLabeledByFormItem } = useFormItem.useFormItemInputId(props, {
31
+ formItemContext: formItem
32
+ });
33
+ const changeEvent = async (value) => {
34
+ emit(event.UPDATE_MODEL_EVENT, value);
35
+ await vue.nextTick();
36
+ emit("change", value);
37
+ };
38
+ const modelValue = vue.computed({
39
+ get() {
40
+ return props.modelValue;
41
+ },
42
+ set(val) {
43
+ changeEvent(val);
44
+ }
45
+ });
46
+ vue.provide(constants.checkboxGroupContextKey, {
47
+ ...lodashUnified.pick(vue.toRefs(props), [
48
+ "size",
49
+ "min",
50
+ "max",
51
+ "disabled",
52
+ "validateEvent",
53
+ "fill",
54
+ "textColor"
55
+ ]),
56
+ modelValue,
57
+ changeEvent
58
+ });
59
+ vue.watch(() => props.modelValue, () => {
60
+ if (props.validateEvent) {
61
+ formItem == null ? void 0 : formItem.validate("change").catch((err) => error.debugWarn(err));
62
+ }
63
+ });
64
+ return (_ctx, _cache) => {
65
+ var _a;
66
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
67
+ id: vue.unref(groupId),
68
+ class: vue.normalizeClass(vue.unref(ns).b("group")),
69
+ role: "group",
70
+ "aria-label": !vue.unref(isLabeledByFormItem) ? _ctx.ariaLabel || "checkbox-group" : void 0,
71
+ "aria-labelledby": vue.unref(isLabeledByFormItem) ? (_a = vue.unref(formItem)) == null ? void 0 : _a.labelId : void 0
72
+ }, {
73
+ default: vue.withCtx(() => [
74
+ vue.renderSlot(_ctx.$slots, "default")
75
+ ]),
76
+ _: 3
77
+ }, 8, ["id", "class", "aria-label", "aria-labelledby"]);
78
+ };
79
+ }
34
80
  });
35
- const checkboxGroupEmits = {
36
- [event.UPDATE_MODEL_EVENT]: (val) => shared.isArray(val),
37
- change: (val) => shared.isArray(val)
38
- };
81
+ var CheckboxGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "checkbox-group.vue"]]);
39
82
 
40
- exports.checkboxGroupEmits = checkboxGroupEmits;
41
- exports.checkboxGroupProps = checkboxGroupProps;
83
+ exports["default"] = CheckboxGroup;
42
84
  //# sourceMappingURL=checkbox-group2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-group2.js","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, isArray } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type checkboxGroup from './checkbox-group.vue'\nimport type { CheckboxValueType } from './checkbox'\n\nexport type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[]\n\nexport const checkboxGroupProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<CheckboxGroupValueType>(Array),\n default: () => [],\n },\n /**\n * @description whether the nesting checkboxes are disabled\n */\n disabled: Boolean,\n /**\n * @description minimum number of checkbox checked\n */\n min: Number,\n /**\n * @description maximum number of checkbox checked\n */\n max: Number,\n /**\n * @description size of checkbox\n */\n size: useSizeProp,\n /**\n * @description border and background color when button is active\n */\n fill: String,\n /**\n * @description font color when button is active\n */\n textColor: String,\n /**\n * @description element tag of the checkbox group\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport const checkboxGroupEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxGroupValueType) => isArray(val),\n change: (val: CheckboxValueType[]) => isArray(val),\n}\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits\nexport type CheckboxGroupInstance = InstanceType<typeof checkboxGroup>\n"],"names":["buildProps","definePropType","useSizeProp","useAriaProps","UPDATE_MODEL_EVENT","isArray"],"mappings":";;;;;;;;;;;;;AAGY,MAAC,kBAAkB,GAAGA,kBAAU,CAAC;AAC7C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAGC,oBAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,cAAO,CAAC,GAAG,CAAC;AAC7C,EAAE,MAAM,EAAE,CAAC,GAAG,KAAKA,cAAO,CAAC,GAAG,CAAC;AAC/B;;;;;"}
1
+ {"version":3,"file":"checkbox-group2.js","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :id=\"groupId\"\n :class=\"ns.b('group')\"\n role=\"group\"\n :aria-label=\"\n !isLabeledByFormItem ? ariaLabel || 'checkbox-group' : undefined\n \"\n :aria-labelledby=\"isLabeledByFormItem ? formItem?.labelId : undefined\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, provide, toRefs, watch } from 'vue'\nimport { pick } from 'lodash-unified'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { debugWarn } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { checkboxGroupEmits, checkboxGroupProps } from './checkbox-group'\nimport { checkboxGroupContextKey } from './constants'\n\nimport type { CheckboxGroupValueType } from './checkbox-group'\n\ndefineOptions({\n name: 'ElCheckboxGroup',\n})\n\nconst props = defineProps(checkboxGroupProps)\nconst emit = defineEmits(checkboxGroupEmits)\nconst ns = useNamespace('checkbox')\n\nconst { formItem } = useFormItem()\nconst { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst changeEvent = async (value: CheckboxGroupValueType) => {\n emit(UPDATE_MODEL_EVENT, value)\n await nextTick()\n emit('change', value)\n}\n\nconst modelValue = computed({\n get() {\n return props.modelValue\n },\n set(val: CheckboxGroupValueType) {\n changeEvent(val)\n },\n})\n\nprovide(checkboxGroupContextKey, {\n ...pick(toRefs(props), [\n 'size',\n 'min',\n 'max',\n 'disabled',\n 'validateEvent',\n 'fill',\n 'textColor',\n ]),\n modelValue,\n changeEvent,\n})\n\nwatch(\n () => props.modelValue,\n () => {\n if (props.validateEvent) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n)\n</script>\n"],"names":["useNamespace","useFormItem","useFormItemInputId","UPDATE_MODEL_EVENT","nextTick","computed","provide","checkboxGroupContextKey","pick","toRefs","watch","debugWarn","_openBlock","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;uCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,EAAE,QAAS,EAAA,GAAIC,uBAAY,EAAA,CAAA;AACjC,IAAA,MAAM,EAAE,OAAS,EAAA,OAAA,EAAS,mBAAoB,EAAA,GAAIC,+BAAmB,KAAO,EAAA;AAAA,MAC1E,eAAiB,EAAA,QAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,OAAO,KAAkC,KAAA;AAC3D,MAAA,IAAA,CAAKC,0BAAoB,KAAK,CAAA,CAAA;AAC9B,MAAA,MAAMC,YAAS,EAAA,CAAA;AACf,MAAA,IAAA,CAAK,UAAU,KAAK,CAAA,CAAA;AAAA,KACtB,CAAA;AAEA,IAAA,MAAM,aAAaC,YAAS,CAAA;AAAA,MAC1B,GAAM,GAAA;AACJ,QAAA,OAAO,KAAM,CAAA,UAAA,CAAA;AAAA,OACf;AAAA,MACA,IAAI,GAA6B,EAAA;AAC/B,QAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAAA,OACjB;AAAA,KACD,CAAA,CAAA;AAED,IAAAC,WAAA,CAAQC,iCAAyB,EAAA;AAAA,MAC/B,GAAGC,kBAAA,CAAKC,UAAO,CAAA,KAAK,CAAG,EAAA;AAAA,QACrB,MAAA;AAAA,QACA,KAAA;AAAA,QACA,KAAA;AAAA,QACA,UAAA;AAAA,QACA,eAAA;AAAA,QACA,MAAA;AAAA,QACA,WAAA;AAAA,OACD,CAAA;AAAA,MACD,UAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAAC,SAAA,CAAA,MAAA,KAAA,CAAA,UAAA,EAAA,MAAA;AAAA,MACE,SAAY,CAAA,aAAA,EAAA;AAAA,QACN,QAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,QAAA,CAAA,QAAA,CAAA,QAAA,CAAA,CAAA,KAAA,CAAA,CAAA,GAAA,KAAAC,eAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AACJ,OAAA;AACE,KAAU,CAAA,CAAA;AAAgD,IAC5D,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACF,IAAA,EAAA,CAAA;AAAA,MACF,OAAAC,aAAA,EAAA,EAAAC,eAAA,CAAAC,2BAAA,CAAA,IAAA,CAAA,GAAA,CAAA,EAAA;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,4 @@
1
+ import { type DateModelType, type SingleOrRange } from '@element-plus/nightly/es/components/time-picker';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("./date-picker.type").IDatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("./date-picker.type").IDatePickerType))[], unknown, unknown, "date", boolean>;
3
4
  readonly showNow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
@@ -42,13 +43,13 @@ declare const _default: import("vue").DefineComponent<{
42
43
  __epPropKey: true;
43
44
  };
44
45
  readonly id: {
45
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
46
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>))[], unknown, unknown>>;
46
47
  readonly required: false;
47
48
  readonly validator: ((val: unknown) => boolean) | undefined;
48
49
  __epPropKey: true;
49
50
  };
50
51
  readonly name: {
51
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
52
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>))[], unknown, unknown>>;
52
53
  readonly required: false;
53
54
  readonly validator: ((val: unknown) => boolean) | undefined;
54
55
  __epPropKey: true;
@@ -77,18 +78,18 @@ declare const _default: import("vue").DefineComponent<{
77
78
  readonly disabled: BooleanConstructor;
78
79
  readonly placeholder: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
79
80
  readonly popperOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
80
- readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("@element-plus/nightly/es/components/time-picker").DateModelType, import("@element-plus/nightly/es/components/time-picker").DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("@element-plus/nightly/es/components/time-picker").DateModelType, import("@element-plus/nightly/es/components/time-picker").DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType))[], unknown, unknown, "", boolean>;
81
+ readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType))[], unknown, unknown, "", boolean>;
81
82
  readonly rangeSeparator: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
82
83
  readonly startPlaceholder: StringConstructor;
83
84
  readonly endPlaceholder: StringConstructor;
84
85
  readonly defaultValue: {
85
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
86
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
86
87
  readonly required: false;
87
88
  readonly validator: ((val: unknown) => boolean) | undefined;
88
89
  __epPropKey: true;
89
90
  };
90
91
  readonly defaultTime: {
91
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
92
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
92
93
  readonly required: false;
93
94
  readonly validator: ((val: unknown) => boolean) | undefined;
94
95
  __epPropKey: true;
@@ -138,13 +139,13 @@ declare const _default: import("vue").DefineComponent<{
138
139
  __epPropKey: true;
139
140
  };
140
141
  readonly id: {
141
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
142
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>))[], unknown, unknown>>;
142
143
  readonly required: false;
143
144
  readonly validator: ((val: unknown) => boolean) | undefined;
144
145
  __epPropKey: true;
145
146
  };
146
147
  readonly name: {
147
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
148
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>))[], unknown, unknown>>;
148
149
  readonly required: false;
149
150
  readonly validator: ((val: unknown) => boolean) | undefined;
150
151
  __epPropKey: true;
@@ -173,18 +174,18 @@ declare const _default: import("vue").DefineComponent<{
173
174
  readonly disabled: BooleanConstructor;
174
175
  readonly placeholder: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
175
176
  readonly popperOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
176
- readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("@element-plus/nightly/es/components/time-picker").DateModelType, import("@element-plus/nightly/es/components/time-picker").DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("@element-plus/nightly/es/components/time-picker").DateModelType, import("@element-plus/nightly/es/components/time-picker").DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType))[], unknown, unknown, "", boolean>;
177
+ readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType))[], unknown, unknown, "", boolean>;
177
178
  readonly rangeSeparator: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
178
179
  readonly startPlaceholder: StringConstructor;
179
180
  readonly endPlaceholder: StringConstructor;
180
181
  readonly defaultValue: {
181
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
182
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
182
183
  readonly required: false;
183
184
  readonly validator: ((val: unknown) => boolean) | undefined;
184
185
  __epPropKey: true;
185
186
  };
186
187
  readonly defaultTime: {
187
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("@element-plus/nightly/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
188
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
188
189
  readonly required: false;
189
190
  readonly validator: ((val: unknown) => boolean) | undefined;
190
191
  __epPropKey: true;
@@ -196,7 +197,7 @@ declare const _default: import("vue").DefineComponent<{
196
197
  readonly disabled: boolean;
197
198
  readonly type: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("./date-picker.type").IDatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("./date-picker.type").IDatePickerType))[], unknown, unknown>;
198
199
  readonly placeholder: string;
199
- readonly modelValue: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("@element-plus/nightly/es/components/time-picker").DateModelType, import("@element-plus/nightly/es/components/time-picker").DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("@element-plus/nightly/es/components/time-picker").DateModelType, import("@element-plus/nightly/es/components/time-picker").DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType))[], unknown, unknown>;
200
+ readonly modelValue: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("@element-plus/nightly/es/components/time-picker").ModelValueType))[], unknown, unknown>;
200
201
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], import("@popperjs/core").Placement, unknown>;
201
202
  readonly tabindex: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
202
203
  readonly valueOnClear: import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.js","sources":["../../../../../../packages/components/date-picker/src/date-picker.tsx"],"sourcesContent":["import { defineComponent, provide, reactive, ref, toRef } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport advancedFormat from 'dayjs/plugin/advancedFormat.js'\nimport localeData from 'dayjs/plugin/localeData.js'\nimport weekOfYear from 'dayjs/plugin/weekOfYear.js'\nimport weekYear from 'dayjs/plugin/weekYear.js'\nimport dayOfYear from 'dayjs/plugin/dayOfYear.js'\nimport isSameOrAfter from 'dayjs/plugin/isSameOrAfter.js'\nimport isSameOrBefore from 'dayjs/plugin/isSameOrBefore.js'\nimport { useNamespace } from '@element-plus/hooks'\nimport {\n CommonPicker,\n DEFAULT_FORMATS_DATE,\n DEFAULT_FORMATS_DATEPICKER,\n} from '@element-plus/components/time-picker'\nimport { ROOT_PICKER_INJECTION_KEY } from './constants'\n\nimport { datePickerProps } from './props/date-picker'\nimport { getPanel } from './panel-utils'\nimport type { DatePickerExpose } from './instance'\n\ndayjs.extend(localeData)\ndayjs.extend(advancedFormat)\ndayjs.extend(customParseFormat)\ndayjs.extend(weekOfYear)\ndayjs.extend(weekYear)\ndayjs.extend(dayOfYear)\ndayjs.extend(isSameOrAfter)\ndayjs.extend(isSameOrBefore)\n\nexport default defineComponent({\n name: 'ElDatePicker',\n install: null,\n props: datePickerProps,\n emits: ['update:modelValue'],\n setup(props, { expose, emit, slots }) {\n const ns = useNamespace('picker-panel')\n\n provide('ElPopperOptions', reactive(toRef(props, 'popperOptions')))\n provide(ROOT_PICKER_INJECTION_KEY, {\n slots,\n pickerNs: ns,\n })\n\n const commonPicker = ref<InstanceType<typeof CommonPicker>>()\n const refProps: DatePickerExpose = {\n focus: () => {\n commonPicker.value?.focus()\n },\n blur: () => {\n commonPicker.value?.blur()\n },\n handleOpen: () => {\n commonPicker.value?.handleOpen()\n },\n handleClose: () => {\n commonPicker.value?.handleClose()\n },\n }\n\n expose(refProps)\n\n const onModelValueUpdated = (val: any) => {\n emit('update:modelValue', val)\n }\n\n return () => {\n // since props always have all defined keys on it, {format, ...props} will always overwrite format\n // pick props.format or provide default value here before spreading\n const format =\n props.format ??\n (DEFAULT_FORMATS_DATEPICKER[props.type] || DEFAULT_FORMATS_DATE)\n\n const Component = getPanel(props.type)\n\n return (\n <CommonPicker\n {...props}\n format={format}\n type={props.type}\n ref={commonPicker}\n onUpdate:modelValue={onModelValueUpdated}\n >\n {{\n default: (scopedProps: /**FIXME: remove any type */ any) => (\n <Component {...scopedProps}>\n {{\n 'prev-month': slots['prev-month'],\n 'next-month': slots['next-month'],\n 'prev-year': slots['prev-year'],\n 'next-year': slots['next-year'],\n }}\n </Component>\n ),\n 'range-separator': slots['range-separator'],\n }}\n </CommonPicker>\n )\n }\n },\n})\n"],"names":["dayjs","extend","localeData","advancedFormat","customParseFormat","weekOfYear","weekYear","dayOfYear","isSameOrAfter","isSameOrBefore","defineComponent","name","install","props","datePickerProps","emits","expose","emit","slots","useNamespace","provide","ROOT_PICKER_INJECTION_KEY","reactive","pickerNs","ref","commonPicker","focus","blur","handleOpen","handleClose","refProps","onModelValueUpdated","format","DEFAULT_FORMATS_DATEPICKER","Component","getPanel","type","_createVNode","CommonPicker","_mergeProps","default","scopedProps"],"mappings":"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"}
1
+ {"version":3,"file":"date-picker.js","sources":["../../../../../../packages/components/date-picker/src/date-picker.tsx"],"sourcesContent":["import { defineComponent, provide, reactive, ref, toRef } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport advancedFormat from 'dayjs/plugin/advancedFormat.js'\nimport localeData from 'dayjs/plugin/localeData.js'\nimport weekOfYear from 'dayjs/plugin/weekOfYear.js'\nimport weekYear from 'dayjs/plugin/weekYear.js'\nimport dayOfYear from 'dayjs/plugin/dayOfYear.js'\nimport isSameOrAfter from 'dayjs/plugin/isSameOrAfter.js'\nimport isSameOrBefore from 'dayjs/plugin/isSameOrBefore.js'\nimport { useNamespace } from '@element-plus/hooks'\nimport {\n CommonPicker,\n DEFAULT_FORMATS_DATE,\n DEFAULT_FORMATS_DATEPICKER,\n type DateModelType,\n type SingleOrRange,\n} from '@element-plus/components/time-picker'\nimport { ROOT_PICKER_INJECTION_KEY } from './constants'\n\nimport { datePickerProps } from './props/date-picker'\nimport { getPanel } from './panel-utils'\nimport type { DatePickerExpose } from './instance'\n\ndayjs.extend(localeData)\ndayjs.extend(advancedFormat)\ndayjs.extend(customParseFormat)\ndayjs.extend(weekOfYear)\ndayjs.extend(weekYear)\ndayjs.extend(dayOfYear)\ndayjs.extend(isSameOrAfter)\ndayjs.extend(isSameOrBefore)\n\nexport default defineComponent({\n name: 'ElDatePicker',\n install: null,\n props: datePickerProps,\n emits: ['update:modelValue'],\n setup(props, { expose, emit, slots }) {\n const ns = useNamespace('picker-panel')\n\n provide('ElPopperOptions', reactive(toRef(props, 'popperOptions')))\n provide(ROOT_PICKER_INJECTION_KEY, {\n slots,\n pickerNs: ns,\n })\n\n const commonPicker = ref<InstanceType<typeof CommonPicker>>()\n const refProps: DatePickerExpose = {\n focus: () => {\n commonPicker.value?.focus()\n },\n blur: () => {\n commonPicker.value?.blur()\n },\n handleOpen: () => {\n commonPicker.value?.handleOpen()\n },\n handleClose: () => {\n commonPicker.value?.handleClose()\n },\n }\n\n expose(refProps)\n\n const onModelValueUpdated = (val: SingleOrRange<DateModelType> | null) => {\n emit('update:modelValue', val)\n }\n\n return () => {\n // since props always have all defined keys on it, {format, ...props} will always overwrite format\n // pick props.format or provide default value here before spreading\n const format =\n props.format ??\n (DEFAULT_FORMATS_DATEPICKER[props.type] || DEFAULT_FORMATS_DATE)\n\n const Component = getPanel(props.type)\n\n return (\n <CommonPicker\n {...props}\n format={format}\n type={props.type}\n ref={commonPicker}\n onUpdate:modelValue={onModelValueUpdated}\n >\n {{\n default: (scopedProps: /**FIXME: remove any type */ any) => (\n <Component {...scopedProps}>\n {{\n 'prev-month': slots['prev-month'],\n 'next-month': slots['next-month'],\n 'prev-year': slots['prev-year'],\n 'next-year': slots['next-year'],\n }}\n </Component>\n ),\n 'range-separator': slots['range-separator'],\n }}\n </CommonPicker>\n )\n }\n },\n})\n"],"names":["dayjs","extend","localeData","advancedFormat","customParseFormat","weekOfYear","weekYear","dayOfYear","isSameOrAfter","isSameOrBefore","defineComponent","name","install","props","datePickerProps","emits","expose","emit","slots","useNamespace","provide","ROOT_PICKER_INJECTION_KEY","reactive","pickerNs","ref","commonPicker","focus","blur","handleOpen","handleClose","refProps","onModelValueUpdated","format","DEFAULT_FORMATS_DATEPICKER","Component","getPanel","type","_createVNode","CommonPicker","_mergeProps","default","scopedProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBAA,yBAAK,CAACC,MAAN,CAAaC,8BAAb,CAAA,CAAA;AACAF,yBAAK,CAACC,MAAN,CAAaE,kCAAb,CAAA,CAAA;AACAH,yBAAK,CAACC,MAAN,CAAaG,qCAAb,CAAA,CAAA;AACAJ,yBAAK,CAACC,MAAN,CAAaI,8BAAb,CAAA,CAAA;AACAL,yBAAK,CAACC,MAAN,CAAaK,4BAAb,CAAA,CAAA;AACAN,yBAAK,CAACC,MAAN,CAAaM,6BAAb,CAAA,CAAA;AACAP,yBAAK,CAACC,MAAN,CAAaO,iCAAb,CAAA,CAAA;AACAR,yBAAK,CAACC,MAAN,CAAaQ,kCAAb,CAAA,CAAA;AAEA,iBAAeC,mBAAe,CAAC;AAC7BC,EAAAA,IAAI,EAAE,cADuB;AAE7BC,EAAAA,OAAO,EAAE,IAFoB;AAG7BC,EAAAA,KAAK,EAAEC,0BAHsB;EAI7BC,KAAK,EAAE,CAAC,mBAAD,CAJsB;;IAKxB;IAAUC,IAAF;IAAUC,KAAV;AAAgBC,GAAAA,EAAAA;AAAhB,IAAyB,MAAA,EAAA,GAAAC,kBAAA,CAAA,cAAA,CAAA,CAAA;AACpC,IAAAC,WAAQ,CAAA,yCAAR,CAAA,KAAA,EAAA,eAAA,CAAA,CAAA,CAAA,CAAA;AAEAA,IAAAA,WAAO,CAACC,mCAAmBC,EAAQ;MAC5B,KAAA;MACLJ,QADiC,EAAA,EAAA;AAEjCK,KAAAA,CAAAA,CAAAA;AAFiC,IAAA,MAAnC,YAAA,GAAAC,OAAA,EAAA,CAAA;IAKA,MAAMC,QAAAA,GAAAA;AACN,MAAA,aAAmC;AACjCC,QAAAA,MAAa,CAAA;QACXD,CAAY,EAAA,GAAA,YAAZ,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,EAAA,CAAA;OAF+B;AAIjCE,MAAAA,IAAI,EAAE,MAAM;QACVF,IAAY,EAAA,CAAA;QALmB,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,EAAA,CAAA;AAOjCG,OAAAA;gBACc,EAAA,MAAZ;QAR+B,IAAA,EAAA,CAAA;AAUjCC,QAAAA,CAAAA,EAAAA,GAAAA,YAAmB,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,UAAA,EAAA,CAAA;;AAElB,MAAA,WAAA,EAAA,MAAA;QAZH,IAAA,EAAA,CAAA;QAeM,CAAA,EAACC,eAAP,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,WAAA,EAAA,CAAA;;KAEMC,CAAAA;AACJd,IAAAA,MAAI,CAAC,QAAA,CAAA,CAAA;IACN,MAFD,mBAAA,GAAA,CAAA,GAAA,KAAA;;AAIA,KAAA,CAAA;AACE,IAAA,OAAA,MAAA;AACA,MAAA,IAAA,EAAA,CAAA;AACA,MAAA,MAAMe,MAAM,GACVnB,CAAK,EAAA,GAACmB,MAAN,MACCC,KAAAA,IAAAA,GAAAA,EAAAA,GAAAA,sFAFH,CAAA;AAIA,MAAA,MAAMC,SAAS,GAAGC,mBAAQ,CAACtB,KAAK,CAACuB,IAAP,CAA1B,CAAA;AAEA,MAAA,OAAAC,eAAA,CAAAC,iBAAA,EAAAC,cAAA,CAEQ1B,KAFR,EAAA;AAAA,QAAA,QAAA,EAGYmB,MAHZ;QAAA,MAIUnB,EAAAA,KAAK,CAACuB,IAJhB;AAAA,QAAA,KAAA,EAKSX,YALT;QAAA,qBAMyBM,EAAAA,mBAAAA;AANzB,OAAA,CAAA,EAAA;QASMS,OAAO,EAAGC,CAAD,WAAA,KAAAJ,eAAA,CAAA,SACQI,EADR,WAAA,EAAA;UAGH,YAAcvB,EAAAA,KAAK,CAAC,YAAD,CAHhB;UAIH,YAAcA,EAAAA,KAAK,CAAC,YAAD,CAJhB;UAKH,WAAaA,EAAAA,KAAK,CAAC,WAAD,CALf;UAMH,WAAaA,EAAAA,KAAK,CAAC,WAAD,CAAA;SAf9B,CAAA;QAmBM,iBAAmBA,EAAAA,KAAK,CAAC,iBAAD,CAAA;AAnB9B,OAAA,CAAA,CAAA;KATF,CAAA;AAiCD,GAAA;;;;;"}
@@ -96,7 +96,7 @@ var constants = require('./breadcrumb/src/constants.js');
96
96
  var button = require('./button/src/button.js');
97
97
  var constants$1 = require('./button/src/constants.js');
98
98
  var calendar = require('./calendar/src/calendar.js');
99
- var card = require('./card/src/card.js');
99
+ var card = require('./card/src/card2.js');
100
100
  var carousel = require('./carousel/src/carousel.js');
101
101
  var carouselItem = require('./carousel/src/carousel-item.js');
102
102
  var constants$2 = require('./carousel/src/constants.js');
@@ -104,7 +104,7 @@ var cascader = require('./cascader/src/cascader.js');
104
104
  var types = require('./cascader-panel/src/types.js');
105
105
  var config = require('./cascader-panel/src/config.js');
106
106
  var checkTag = require('./check-tag/src/check-tag.js');
107
- var checkboxGroup = require('./checkbox/src/checkbox-group2.js');
107
+ var checkboxGroup = require('./checkbox/src/checkbox-group.js');
108
108
  var checkbox = require('./checkbox/src/checkbox.js');
109
109
  var constants$3 = require('./checkbox/src/constants.js');
110
110
  var col = require('./col/src/col.js');
@@ -141,7 +141,7 @@ var input = require('./input/src/input.js');
141
141
  var inputNumber = require('./input-number/src/input-number.js');
142
142
  var link = require('./link/src/link.js');
143
143
  var menu = require('./menu/src/menu.js');
144
- var menuItem = require('./menu/src/menu-item.js');
144
+ var menuItem = require('./menu/src/menu-item2.js');
145
145
  var menuItemGroup = require('./menu/src/menu-item-group.js');
146
146
  var subMenu = require('./menu/src/sub-menu.js');
147
147
  var overlay = require('./overlay/src/overlay.js');
@@ -173,7 +173,7 @@ var constants$d = require('./scrollbar/src/constants.js');
173
173
  var token = require('./select/src/token.js');
174
174
  var token$1 = require('./select-v2/src/token.js');
175
175
  var skeleton = require('./skeleton/src/skeleton.js');
176
- var skeletonItem = require('./skeleton/src/skeleton-item2.js');
176
+ var skeletonItem = require('./skeleton/src/skeleton-item.js');
177
177
  var slider = require('./slider/src/slider.js');
178
178
  var constants$e = require('./slider/src/constants.js');
179
179
  var space = require('./space/src/space.js');
@@ -223,7 +223,7 @@ var tour = require('./tour/src/tour.js');
223
223
  var step = require('./tour/src/step.js');
224
224
  var content$3 = require('./tour/src/content.js');
225
225
  var anchor = require('./anchor/src/anchor.js');
226
- var segmented = require('./segmented/src/segmented.js');
226
+ var segmented = require('./segmented/src/segmented2.js');
227
227
  var mention = require('./mention/src/mention.js');
228
228
  var directive = require('./loading/src/directive.js');
229
229
  var service = require('./loading/src/service.js');
@@ -544,6 +544,7 @@ exports.tagProps = tag.tagProps;
544
544
  exports.textProps = text.textProps;
545
545
  exports.buildTimeList = utils.buildTimeList;
546
546
  exports.dateEquals = utils.dateEquals;
547
+ exports.dayOrDaysToDate = utils.dayOrDaysToDate;
547
548
  exports.extractDateFormat = utils.extractDateFormat;
548
549
  exports.extractTimeFormat = utils.extractTimeFormat;
549
550
  exports.formatter = utils.formatter;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -103,7 +103,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
103
103
  /** @description is input composing */
104
104
  isComposing: import("vue").Ref<boolean>;
105
105
  /** @description HTML input element native method */
106
- focus: () => Promise<void>;
106
+ focus: () => void | undefined;
107
107
  /** @description HTML input element native method */
108
108
  blur: () => void | undefined;
109
109
  /** @description HTML input element native method */