@element-plus/nightly 0.0.20240715 → 0.0.20240718

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 (348) hide show
  1. package/dist/index.full.js +5 -5
  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 +5 -5
  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/nb-no.js +1 -1
  152. package/dist/locale/nb-no.min.js +1 -1
  153. package/dist/locale/nb-no.min.mjs +1 -1
  154. package/dist/locale/nb-no.mjs +1 -1
  155. package/dist/locale/nl.js +1 -1
  156. package/dist/locale/nl.min.js +1 -1
  157. package/dist/locale/nl.min.mjs +1 -1
  158. package/dist/locale/nl.mjs +1 -1
  159. package/dist/locale/pa.js +1 -1
  160. package/dist/locale/pa.min.js +1 -1
  161. package/dist/locale/pa.min.mjs +1 -1
  162. package/dist/locale/pa.mjs +1 -1
  163. package/dist/locale/pl.js +1 -1
  164. package/dist/locale/pl.min.js +1 -1
  165. package/dist/locale/pl.min.mjs +1 -1
  166. package/dist/locale/pl.mjs +1 -1
  167. package/dist/locale/pt-br.js +1 -1
  168. package/dist/locale/pt-br.min.js +1 -1
  169. package/dist/locale/pt-br.min.mjs +1 -1
  170. package/dist/locale/pt-br.mjs +1 -1
  171. package/dist/locale/pt.js +1 -1
  172. package/dist/locale/pt.min.js +1 -1
  173. package/dist/locale/pt.min.mjs +1 -1
  174. package/dist/locale/pt.mjs +1 -1
  175. package/dist/locale/ro.js +1 -1
  176. package/dist/locale/ro.min.js +1 -1
  177. package/dist/locale/ro.min.mjs +1 -1
  178. package/dist/locale/ro.mjs +1 -1
  179. package/dist/locale/ru.js +1 -1
  180. package/dist/locale/ru.min.js +1 -1
  181. package/dist/locale/ru.min.mjs +1 -1
  182. package/dist/locale/ru.mjs +1 -1
  183. package/dist/locale/sk.js +1 -1
  184. package/dist/locale/sk.min.js +1 -1
  185. package/dist/locale/sk.min.mjs +1 -1
  186. package/dist/locale/sk.mjs +1 -1
  187. package/dist/locale/sl.js +1 -1
  188. package/dist/locale/sl.min.js +1 -1
  189. package/dist/locale/sl.min.mjs +1 -1
  190. package/dist/locale/sl.mjs +1 -1
  191. package/dist/locale/sr.js +1 -1
  192. package/dist/locale/sr.min.js +1 -1
  193. package/dist/locale/sr.min.mjs +1 -1
  194. package/dist/locale/sr.mjs +1 -1
  195. package/dist/locale/sv.js +1 -1
  196. package/dist/locale/sv.min.js +1 -1
  197. package/dist/locale/sv.min.mjs +1 -1
  198. package/dist/locale/sv.mjs +1 -1
  199. package/dist/locale/sw.js +1 -1
  200. package/dist/locale/sw.min.js +1 -1
  201. package/dist/locale/sw.min.mjs +1 -1
  202. package/dist/locale/sw.mjs +1 -1
  203. package/dist/locale/ta.js +1 -1
  204. package/dist/locale/ta.min.js +1 -1
  205. package/dist/locale/ta.min.mjs +1 -1
  206. package/dist/locale/ta.mjs +1 -1
  207. package/dist/locale/th.js +1 -1
  208. package/dist/locale/th.min.js +1 -1
  209. package/dist/locale/th.min.mjs +1 -1
  210. package/dist/locale/th.mjs +1 -1
  211. package/dist/locale/tk.js +1 -1
  212. package/dist/locale/tk.min.js +1 -1
  213. package/dist/locale/tk.min.mjs +1 -1
  214. package/dist/locale/tk.mjs +1 -1
  215. package/dist/locale/tr.js +1 -1
  216. package/dist/locale/tr.min.js +1 -1
  217. package/dist/locale/tr.min.mjs +1 -1
  218. package/dist/locale/tr.mjs +1 -1
  219. package/dist/locale/ug-cn.js +1 -1
  220. package/dist/locale/ug-cn.min.js +1 -1
  221. package/dist/locale/ug-cn.min.mjs +1 -1
  222. package/dist/locale/ug-cn.mjs +1 -1
  223. package/dist/locale/uk.js +1 -1
  224. package/dist/locale/uk.min.js +1 -1
  225. package/dist/locale/uk.min.mjs +1 -1
  226. package/dist/locale/uk.mjs +1 -1
  227. package/dist/locale/uz-uz.js +1 -1
  228. package/dist/locale/uz-uz.min.js +1 -1
  229. package/dist/locale/uz-uz.min.mjs +1 -1
  230. package/dist/locale/uz-uz.mjs +1 -1
  231. package/dist/locale/vi.js +1 -1
  232. package/dist/locale/vi.min.js +1 -1
  233. package/dist/locale/vi.min.mjs +1 -1
  234. package/dist/locale/vi.mjs +1 -1
  235. package/dist/locale/zh-cn.js +1 -1
  236. package/dist/locale/zh-cn.min.js +1 -1
  237. package/dist/locale/zh-cn.min.mjs +1 -1
  238. package/dist/locale/zh-cn.mjs +1 -1
  239. package/dist/locale/zh-tw.js +1 -1
  240. package/dist/locale/zh-tw.min.js +1 -1
  241. package/dist/locale/zh-tw.min.mjs +1 -1
  242. package/dist/locale/zh-tw.mjs +1 -1
  243. package/es/components/breadcrumb/index.mjs +2 -2
  244. package/es/components/breadcrumb/src/breadcrumb.mjs +39 -11
  245. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  246. package/es/components/breadcrumb/src/breadcrumb2.mjs +11 -39
  247. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  248. package/es/components/color-picker/index.d.ts +7 -7
  249. package/es/components/color-picker/src/color-picker.d.ts +2 -2
  250. package/es/components/color-picker/src/color-picker.mjs +2 -2
  251. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  252. package/es/components/color-picker/src/color-picker.vue.d.ts +7 -7
  253. package/es/components/index.mjs +5 -5
  254. package/es/components/skeleton/index.mjs +2 -2
  255. package/es/components/skeleton/src/skeleton.mjs +49 -22
  256. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  257. package/es/components/skeleton/src/skeleton2.mjs +22 -49
  258. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  259. package/es/components/slider/src/button.mjs +21 -93
  260. package/es/components/slider/src/button.mjs.map +1 -1
  261. package/es/components/slider/src/button2.mjs +93 -21
  262. package/es/components/slider/src/button2.mjs.map +1 -1
  263. package/es/components/slider/src/slider2.mjs +1 -1
  264. package/es/components/steps/index.mjs +2 -2
  265. package/es/components/steps/src/item.mjs +19 -191
  266. package/es/components/steps/src/item.mjs.map +1 -1
  267. package/es/components/steps/src/item2.mjs +191 -19
  268. package/es/components/steps/src/item2.mjs.map +1 -1
  269. package/es/components/switch/index.mjs +2 -2
  270. package/es/components/switch/src/switch.mjs +85 -242
  271. package/es/components/switch/src/switch.mjs.map +1 -1
  272. package/es/components/switch/src/switch2.mjs +242 -85
  273. package/es/components/switch/src/switch2.mjs.map +1 -1
  274. package/es/components/tooltip-v2/index.mjs +1 -1
  275. package/es/components/tooltip-v2/src/arrow.mjs +22 -37
  276. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  277. package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
  278. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  279. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  280. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  281. package/es/components/tree-v2/index.d.ts +4 -4
  282. package/es/components/tree-v2/src/tree.vue.d.ts +4 -4
  283. package/es/components/tree-v2/src/virtual-tree.d.ts +1 -1
  284. package/es/components/tree-v2/src/virtual-tree.mjs +1 -1
  285. package/es/components/tree-v2/src/virtual-tree.mjs.map +1 -1
  286. package/es/components/watermark/index.mjs +2 -2
  287. package/es/components/watermark/src/watermark.mjs +209 -28
  288. package/es/components/watermark/src/watermark.mjs.map +1 -1
  289. package/es/components/watermark/src/watermark2.mjs +28 -209
  290. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  291. package/es/index.mjs +5 -5
  292. package/es/version.d.ts +1 -1
  293. package/es/version.mjs +1 -1
  294. package/es/version.mjs.map +1 -1
  295. package/lib/components/breadcrumb/index.js +2 -2
  296. package/lib/components/breadcrumb/src/breadcrumb.js +39 -11
  297. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  298. package/lib/components/breadcrumb/src/breadcrumb2.js +11 -39
  299. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  300. package/lib/components/color-picker/index.d.ts +7 -7
  301. package/lib/components/color-picker/src/color-picker.d.ts +2 -2
  302. package/lib/components/color-picker/src/color-picker.js +2 -2
  303. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  304. package/lib/components/color-picker/src/color-picker.vue.d.ts +7 -7
  305. package/lib/components/index.js +5 -5
  306. package/lib/components/skeleton/index.js +2 -2
  307. package/lib/components/skeleton/src/skeleton.js +49 -22
  308. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  309. package/lib/components/skeleton/src/skeleton2.js +22 -49
  310. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  311. package/lib/components/slider/src/button.js +22 -93
  312. package/lib/components/slider/src/button.js.map +1 -1
  313. package/lib/components/slider/src/button2.js +93 -22
  314. package/lib/components/slider/src/button2.js.map +1 -1
  315. package/lib/components/slider/src/slider2.js +1 -1
  316. package/lib/components/steps/index.js +2 -2
  317. package/lib/components/steps/src/item.js +19 -191
  318. package/lib/components/steps/src/item.js.map +1 -1
  319. package/lib/components/steps/src/item2.js +191 -19
  320. package/lib/components/steps/src/item2.js.map +1 -1
  321. package/lib/components/switch/index.js +2 -2
  322. package/lib/components/switch/src/switch.js +85 -241
  323. package/lib/components/switch/src/switch.js.map +1 -1
  324. package/lib/components/switch/src/switch2.js +241 -85
  325. package/lib/components/switch/src/switch2.js.map +1 -1
  326. package/lib/components/tooltip-v2/index.js +1 -1
  327. package/lib/components/tooltip-v2/src/arrow.js +23 -37
  328. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  329. package/lib/components/tooltip-v2/src/arrow2.js +37 -23
  330. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  331. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  332. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  333. package/lib/components/tree-v2/index.d.ts +4 -4
  334. package/lib/components/tree-v2/src/tree.vue.d.ts +4 -4
  335. package/lib/components/tree-v2/src/virtual-tree.d.ts +1 -1
  336. package/lib/components/tree-v2/src/virtual-tree.js +1 -1
  337. package/lib/components/tree-v2/src/virtual-tree.js.map +1 -1
  338. package/lib/components/watermark/index.js +2 -2
  339. package/lib/components/watermark/src/watermark.js +209 -28
  340. package/lib/components/watermark/src/watermark.js.map +1 -1
  341. package/lib/components/watermark/src/watermark2.js +28 -209
  342. package/lib/components/watermark/src/watermark2.js.map +1 -1
  343. package/lib/index.js +5 -5
  344. package/lib/version.d.ts +1 -1
  345. package/lib/version.js +1 -1
  346. package/lib/version.js.map +1 -1
  347. package/package.json +2 -2
  348. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const breadcrumbProps = buildProps({\n /**\n * @description separator character\n */\n separator: {\n type: String,\n default: '/',\n },\n /**\n * @description icon component of icon separator\n */\n separatorIcon: {\n type: iconPropType,\n },\n} as const)\nexport type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>\n"],"names":[],"mappings":";;;;AACY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"breadcrumb.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n <div\n ref=\"breadcrumb\"\n :class=\"ns.b()\"\n :aria-label=\"t('el.breadcrumb.label')\"\n role=\"navigation\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { onMounted, provide, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'ElBreadcrumb',\n})\n\nconst { t } = useLocale()\nconst props = defineProps(breadcrumbProps)\n\nconst ns = useNamespace('breadcrumb')\nconst breadcrumb = ref<HTMLDivElement>()\n\nprovide(breadcrumbKey, props)\n\nonMounted(() => {\n const items = breadcrumb.value!.querySelectorAll(`.${ns.e('item')}`)\n if (items.length) {\n items[items.length - 1].setAttribute('aria-current', 'page')\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AAGxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,GAAoB,EAAA,CAAA;AAEvC,IAAA,OAAA,CAAQ,eAAe,KAAK,CAAA,CAAA;AAE5B,IAAA,SAAA,CAAU,MAAM;AACd,MAAM,MAAA,KAAA,GAAQ,WAAW,KAAO,CAAA,gBAAA,CAAiB,IAAI,EAAG,CAAA,CAAA,CAAE,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA;AACnE,MAAA,IAAI,MAAM,MAAQ,EAAA;AAChB,QAAA,KAAA,CAAM,KAAM,CAAA,MAAA,GAAS,CAAG,CAAA,CAAA,YAAA,CAAa,gBAAgB,MAAM,CAAA,CAAA;AAAA,OAC7D;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
@@ -1,44 +1,16 @@
1
- import { defineComponent, ref, provide, onMounted, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { breadcrumbKey } from './constants.mjs';
4
- import { breadcrumbProps } from './breadcrumb.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useLocale } from '../../../hooks/use-locale/index.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
3
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
8
4
 
9
- const _hoisted_1 = ["aria-label"];
10
- const __default__ = defineComponent({
11
- name: "ElBreadcrumb"
12
- });
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- ...__default__,
15
- props: breadcrumbProps,
16
- setup(__props) {
17
- const props = __props;
18
- const { t } = useLocale();
19
- const ns = useNamespace("breadcrumb");
20
- const breadcrumb = ref();
21
- provide(breadcrumbKey, props);
22
- onMounted(() => {
23
- const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
24
- if (items.length) {
25
- items[items.length - 1].setAttribute("aria-current", "page");
26
- }
27
- });
28
- return (_ctx, _cache) => {
29
- return openBlock(), createElementBlock("div", {
30
- ref_key: "breadcrumb",
31
- ref: breadcrumb,
32
- class: normalizeClass(unref(ns).b()),
33
- "aria-label": unref(t)("el.breadcrumb.label"),
34
- role: "navigation"
35
- }, [
36
- renderSlot(_ctx.$slots, "default")
37
- ], 10, _hoisted_1);
38
- };
5
+ const breadcrumbProps = buildProps({
6
+ separator: {
7
+ type: String,
8
+ default: "/"
9
+ },
10
+ separatorIcon: {
11
+ type: iconPropType
39
12
  }
40
13
  });
41
- var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb.vue"]]);
42
14
 
43
- export { Breadcrumb as default };
15
+ export { breadcrumbProps };
44
16
  //# sourceMappingURL=breadcrumb2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n <div\n ref=\"breadcrumb\"\n :class=\"ns.b()\"\n :aria-label=\"t('el.breadcrumb.label')\"\n role=\"navigation\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { onMounted, provide, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'ElBreadcrumb',\n})\n\nconst { t } = useLocale()\nconst props = defineProps(breadcrumbProps)\n\nconst ns = useNamespace('breadcrumb')\nconst breadcrumb = ref<HTMLDivElement>()\n\nprovide(breadcrumbKey, props)\n\nonMounted(() => {\n const items = breadcrumb.value!.querySelectorAll(`.${ns.e('item')}`)\n if (items.length) {\n items[items.length - 1].setAttribute('aria-current', 'page')\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AAGxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,GAAoB,EAAA,CAAA;AAEvC,IAAA,OAAA,CAAQ,eAAe,KAAK,CAAA,CAAA;AAE5B,IAAA,SAAA,CAAU,MAAM;AACd,MAAM,MAAA,KAAA,GAAQ,WAAW,KAAO,CAAA,gBAAA,CAAiB,IAAI,EAAG,CAAA,CAAA,CAAE,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA;AACnE,MAAA,IAAI,MAAM,MAAQ,EAAA;AAChB,QAAA,KAAA,CAAM,KAAM,CAAA,MAAA,GAAS,CAAG,CAAA,CAAA,YAAA,CAAa,gBAAgB,MAAM,CAAA,CAAA;AAAA,OAC7D;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"breadcrumb2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const breadcrumbProps = buildProps({\n /**\n * @description separator character\n */\n separator: {\n type: String,\n default: '/',\n },\n /**\n * @description icon component of icon separator\n */\n separatorIcon: {\n type: iconPropType,\n },\n} as const)\nexport type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>\n"],"names":[],"mappings":";;;;AACY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC;;;;"}
@@ -50,11 +50,11 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
50
50
  }>> & {
51
51
  onChange?: ((val: string | null) => any) | undefined;
52
52
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
53
- onFocus?: ((event: FocusEvent) => any) | undefined;
54
- onBlur?: ((event: FocusEvent) => any) | undefined;
53
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
54
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
55
55
  onActiveChange?: ((val: string | null) => any) | undefined;
56
56
  }>>;
57
- emit: ((event: "update:modelValue", val: string | null) => void) & ((event: "change", val: string | null) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "activeChange", val: string | null) => void);
57
+ emit: ((event: "update:modelValue", val: string | null) => void) & ((event: "change", val: string | null) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "activeChange", val: string | null) => void);
58
58
  t: import("../..").Translator;
59
59
  ns: {
60
60
  namespace: import("vue").ComputedRef<string>;
@@ -10896,8 +10896,8 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
10896
10896
  "update:modelValue": (val: string | null) => boolean;
10897
10897
  change: (val: string | null) => boolean;
10898
10898
  activeChange: (val: string | null) => boolean;
10899
- focus: (event: FocusEvent) => boolean;
10900
- blur: (event: FocusEvent) => boolean;
10899
+ focus: (evt: FocusEvent) => boolean;
10900
+ blur: (evt: FocusEvent) => boolean;
10901
10901
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10902
10902
  readonly ariaLabel: StringConstructor;
10903
10903
  readonly modelValue: StringConstructor;
@@ -10925,8 +10925,8 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
10925
10925
  }>> & {
10926
10926
  onChange?: ((val: string | null) => any) | undefined;
10927
10927
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
10928
- onFocus?: ((event: FocusEvent) => any) | undefined;
10929
- onBlur?: ((event: FocusEvent) => any) | undefined;
10928
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
10929
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
10930
10930
  onActiveChange?: ((val: string | null) => any) | undefined;
10931
10931
  }, {
10932
10932
  readonly popperClass: string;
@@ -29,8 +29,8 @@ export declare const colorPickerEmits: {
29
29
  "update:modelValue": (val: string | null) => boolean;
30
30
  change: (val: string | null) => boolean;
31
31
  activeChange: (val: string | null) => boolean;
32
- focus: (event: FocusEvent) => boolean;
33
- blur: (event: FocusEvent) => boolean;
32
+ focus: (evt: FocusEvent) => boolean;
33
+ blur: (evt: FocusEvent) => boolean;
34
34
  };
35
35
  export declare type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>;
36
36
  export declare type ColorPickerEmits = typeof colorPickerEmits;
@@ -43,8 +43,8 @@ const colorPickerEmits = {
43
43
  [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil(val),
44
44
  [CHANGE_EVENT]: (val) => isString(val) || isNil(val),
45
45
  activeChange: (val) => isString(val) || isNil(val),
46
- focus: (event) => event instanceof FocusEvent,
47
- blur: (event) => event instanceof FocusEvent
46
+ focus: (evt) => evt instanceof FocusEvent,
47
+ blur: (evt) => evt instanceof FocusEvent
48
48
  };
49
49
  const colorPickerContextKey = Symbol("colorPickerContextKey");
50
50
 
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker.mjs","sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ComputedRef, ExtractPropTypes, InjectionKey } from 'vue'\nimport type ColorPicker from './color-picker.vue'\n\nexport const colorPickerProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: String,\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: Boolean,\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @deprecated ColorPicker aria-label\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n focus: (event: FocusEvent) => event instanceof FocusEvent,\n blur: (event: FocusEvent) => event instanceof FocusEvent,\n}\n\nexport type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker>\n\nexport interface ColorPickerContext {\n currentColor: ComputedRef<string>\n}\n\nexport const colorPickerContextKey: InjectionKey<ColorPickerContext> = Symbol(\n 'colorPickerContextKey'\n)\n"],"names":[],"mappings":";;;;;;;;;;;;AAKY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAG,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AAC5D,EAAE,CAAC,YAAY,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AACtD,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AACpD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,KAAK,YAAY,UAAU;AAC/C,EAAE,IAAI,EAAE,CAAC,KAAK,KAAK,KAAK,YAAY,UAAU;AAC9C,EAAE;AACU,MAAC,qBAAqB,GAAG,MAAM,CAAC,uBAAuB;;;;"}
1
+ {"version":3,"file":"color-picker.mjs","sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ComputedRef, ExtractPropTypes, InjectionKey } from 'vue'\nimport type ColorPicker from './color-picker.vue'\n\nexport const colorPickerProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: String,\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: Boolean,\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @deprecated ColorPicker aria-label\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker>\n\nexport interface ColorPickerContext {\n currentColor: ComputedRef<string>\n}\n\nexport const colorPickerContextKey: InjectionKey<ColorPickerContext> = Symbol(\n 'colorPickerContextKey'\n)\n"],"names":[],"mappings":";;;;;;;;;;;;AAKY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAG,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AAC5D,EAAE,CAAC,YAAY,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AACtD,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AACpD,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C,EAAE;AACU,MAAC,qBAAqB,GAAG,MAAM,CAAC,uBAAuB;;;;"}
@@ -52,11 +52,11 @@ declare const _default: import("vue").DefineComponent<{
52
52
  }>> & {
53
53
  onChange?: ((val: string | null) => any) | undefined;
54
54
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
55
- onFocus?: ((event: FocusEvent) => any) | undefined;
56
- onBlur?: ((event: FocusEvent) => any) | undefined;
55
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
56
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
57
57
  onActiveChange?: ((val: string | null) => any) | undefined;
58
58
  }>>;
59
- emit: ((event: "update:modelValue", val: string | null) => void) & ((event: "change", val: string | null) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "activeChange", val: string | null) => void);
59
+ emit: ((event: "update:modelValue", val: string | null) => void) & ((event: "change", val: string | null) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "activeChange", val: string | null) => void);
60
60
  t: import("@element-plus/nightly/es/hooks").Translator;
61
61
  ns: {
62
62
  namespace: import("vue").ComputedRef<string>;
@@ -10898,8 +10898,8 @@ declare const _default: import("vue").DefineComponent<{
10898
10898
  "update:modelValue": (val: string | null) => boolean;
10899
10899
  change: (val: string | null) => boolean;
10900
10900
  activeChange: (val: string | null) => boolean;
10901
- focus: (event: FocusEvent) => boolean;
10902
- blur: (event: FocusEvent) => boolean;
10901
+ focus: (evt: FocusEvent) => boolean;
10902
+ blur: (evt: FocusEvent) => boolean;
10903
10903
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10904
10904
  readonly ariaLabel: StringConstructor;
10905
10905
  readonly modelValue: StringConstructor;
@@ -10927,8 +10927,8 @@ declare const _default: import("vue").DefineComponent<{
10927
10927
  }>> & {
10928
10928
  onChange?: ((val: string | null) => any) | undefined;
10929
10929
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
10930
- onFocus?: ((event: FocusEvent) => any) | undefined;
10931
- onBlur?: ((event: FocusEvent) => any) | undefined;
10930
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
10931
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
10932
10932
  onActiveChange?: ((val: string | null) => any) | undefined;
10933
10933
  }, {
10934
10934
  readonly popperClass: string;
@@ -85,7 +85,7 @@ export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocom
85
85
  export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
86
86
  export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
87
87
  export { badgeProps } from './badge/src/badge.mjs';
88
- export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
88
+ export { breadcrumbProps } from './breadcrumb/src/breadcrumb2.mjs';
89
89
  export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
90
90
  export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
91
91
  export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './button/src/button.mjs';
@@ -167,7 +167,7 @@ export { thumbProps } from './scrollbar/src/thumb.mjs';
167
167
  export { scrollbarContextKey } from './scrollbar/src/constants.mjs';
168
168
  export { selectGroupKey, selectKey } from './select/src/token.mjs';
169
169
  export { selectV2InjectionKey } from './select-v2/src/token.mjs';
170
- export { skeletonProps } from './skeleton/src/skeleton.mjs';
170
+ export { skeletonProps } from './skeleton/src/skeleton2.mjs';
171
171
  export { skeletonItemProps } from './skeleton/src/skeleton-item.mjs';
172
172
  export { sliderEmits, sliderProps } from './slider/src/slider.mjs';
173
173
  export { sliderContextKey } from './slider/src/constants.mjs';
@@ -175,9 +175,9 @@ export { spaceProps } from './space/src/space.mjs';
175
175
  export { spaceItemProps } from './space/src/item.mjs';
176
176
  export { useSpace } from './space/src/use-space.mjs';
177
177
  export { statisticProps } from './statistic/src/statistic.mjs';
178
- export { stepProps } from './steps/src/item2.mjs';
178
+ export { stepProps } from './steps/src/item.mjs';
179
179
  export { stepsEmits, stepsProps } from './steps/src/steps.mjs';
180
- export { switchEmits, switchProps } from './switch/src/switch2.mjs';
180
+ export { switchEmits, switchProps } from './switch/src/switch.mjs';
181
181
  export { Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, SortOrder as TableV2SortOrder } from './table-v2/src/constants.mjs';
182
182
  export { default as TableV2 } from './table-v2/src/table-v2.mjs';
183
183
  export { placeholderSign as TableV2Placeholder } from './table-v2/src/private.mjs';
@@ -212,7 +212,7 @@ export { default as DynamicSizeList } from './virtual-list/src/components/dynami
212
212
  export { default as FixedSizeGrid } from './virtual-list/src/components/fixed-size-grid.mjs';
213
213
  export { default as DynamicSizeGrid } from './virtual-list/src/components/dynamic-size-grid.mjs';
214
214
  export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
215
- export { watermarkProps } from './watermark/src/watermark.mjs';
215
+ export { watermarkProps } from './watermark/src/watermark2.mjs';
216
216
  export { tourEmits, tourProps } from './tour/src/tour.mjs';
217
217
  export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
218
218
  export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
@@ -1,7 +1,7 @@
1
1
  import '../../utils/index.mjs';
2
- import Skeleton from './src/skeleton2.mjs';
2
+ import Skeleton from './src/skeleton.mjs';
3
3
  import SkeletonItem from './src/skeleton-item2.mjs';
4
- export { skeletonProps } from './src/skeleton.mjs';
4
+ export { skeletonProps } from './src/skeleton2.mjs';
5
5
  export { skeletonItemProps } from './src/skeleton-item.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
@@ -1,27 +1,54 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, toRef, unref, openBlock, createElementBlock, mergeProps, Fragment, renderList, renderSlot, createVNode, normalizeClass, createBlock, createCommentVNode, normalizeProps } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { skeletonProps } from './skeleton2.mjs';
4
+ import SkeletonItem from './skeleton-item2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
+ import { useThrottleRender } from '../../../hooks/use-throttle-render/index.mjs';
3
8
 
4
- const skeletonProps = buildProps({
5
- animated: {
6
- type: Boolean,
7
- default: false
8
- },
9
- count: {
10
- type: Number,
11
- default: 1
12
- },
13
- rows: {
14
- type: Number,
15
- default: 3
16
- },
17
- loading: {
18
- type: Boolean,
19
- default: true
20
- },
21
- throttle: {
22
- type: Number
9
+ const __default__ = defineComponent({
10
+ name: "ElSkeleton"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: skeletonProps,
15
+ setup(__props, { expose }) {
16
+ const props = __props;
17
+ const ns = useNamespace("skeleton");
18
+ const uiLoading = useThrottleRender(toRef(props, "loading"), props.throttle);
19
+ expose({
20
+ uiLoading
21
+ });
22
+ return (_ctx, _cache) => {
23
+ return unref(uiLoading) ? (openBlock(), createElementBlock("div", mergeProps({
24
+ key: 0,
25
+ class: [unref(ns).b(), unref(ns).is("animated", _ctx.animated)]
26
+ }, _ctx.$attrs), [
27
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (i) => {
28
+ return openBlock(), createElementBlock(Fragment, { key: i }, [
29
+ _ctx.loading ? renderSlot(_ctx.$slots, "template", { key: i }, () => [
30
+ createVNode(SkeletonItem, {
31
+ class: normalizeClass(unref(ns).is("first")),
32
+ variant: "p"
33
+ }, null, 8, ["class"]),
34
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rows, (item) => {
35
+ return openBlock(), createBlock(SkeletonItem, {
36
+ key: item,
37
+ class: normalizeClass([
38
+ unref(ns).e("paragraph"),
39
+ unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
40
+ ]),
41
+ variant: "p"
42
+ }, null, 8, ["class"]);
43
+ }), 128))
44
+ ]) : createCommentVNode("v-if", true)
45
+ ], 64);
46
+ }), 128))
47
+ ], 16)) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)));
48
+ };
23
49
  }
24
50
  });
51
+ var Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "skeleton.vue"]]);
25
52
 
26
- export { skeletonProps };
53
+ export { Skeleton as default };
27
54
  //# sourceMappingURL=skeleton.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: {\n type: Boolean,\n default: false,\n },\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether showing the real DOM\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: Number,\n },\n} as const)\nexport type SkeletonProps = ExtractPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton>\n"],"names":[],"mappings":";;;AACY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"skeleton.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.vue"],"sourcesContent":["<template>\n <template v-if=\"uiLoading\">\n <div :class=\"[ns.b(), ns.is('animated', animated)]\" v-bind=\"$attrs\">\n <template v-for=\"i in count\" :key=\"i\">\n <slot v-if=\"loading\" :key=\"i\" name=\"template\">\n <el-skeleton-item :class=\"ns.is('first')\" variant=\"p\" />\n <el-skeleton-item\n v-for=\"item in rows\"\n :key=\"item\"\n :class=\"[\n ns.e('paragraph'),\n ns.is('last', item === rows && rows > 1),\n ]\"\n variant=\"p\"\n />\n </slot>\n </template>\n </div>\n </template>\n <template v-else>\n <slot v-bind=\"$attrs\" />\n </template>\n</template>\n\n<script lang=\"ts\" setup>\nimport { toRef } from 'vue'\nimport { useNamespace, useThrottleRender } from '@element-plus/hooks'\nimport { skeletonProps } from './skeleton'\nimport ElSkeletonItem from './skeleton-item.vue'\n\ndefineOptions({\n name: 'ElSkeleton',\n})\nconst props = defineProps(skeletonProps)\n\nconst ns = useNamespace('skeleton')\nconst uiLoading = useThrottleRender(toRef(props, 'loading'), props.throttle)\n\ndefineExpose({\n /** @description loading state */\n uiLoading,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;mCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAClC,IAAA,MAAM,YAAY,iBAAkB,CAAA,KAAA,CAAM,OAAO,SAAS,CAAA,EAAG,MAAM,QAAQ,CAAA,CAAA;AAE3E,IAAa,MAAA,CAAA;AAAA,MAEX,SAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,54 +1,27 @@
1
- import { defineComponent, toRef, unref, openBlock, createElementBlock, mergeProps, Fragment, renderList, renderSlot, createVNode, normalizeClass, createBlock, createCommentVNode, normalizeProps } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { skeletonProps } from './skeleton.mjs';
4
- import SkeletonItem from './skeleton-item2.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
- import { useThrottleRender } from '../../../hooks/use-throttle-render/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
8
3
 
9
- const __default__ = defineComponent({
10
- name: "ElSkeleton"
11
- });
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: skeletonProps,
15
- setup(__props, { expose }) {
16
- const props = __props;
17
- const ns = useNamespace("skeleton");
18
- const uiLoading = useThrottleRender(toRef(props, "loading"), props.throttle);
19
- expose({
20
- uiLoading
21
- });
22
- return (_ctx, _cache) => {
23
- return unref(uiLoading) ? (openBlock(), createElementBlock("div", mergeProps({
24
- key: 0,
25
- class: [unref(ns).b(), unref(ns).is("animated", _ctx.animated)]
26
- }, _ctx.$attrs), [
27
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (i) => {
28
- return openBlock(), createElementBlock(Fragment, { key: i }, [
29
- _ctx.loading ? renderSlot(_ctx.$slots, "template", { key: i }, () => [
30
- createVNode(SkeletonItem, {
31
- class: normalizeClass(unref(ns).is("first")),
32
- variant: "p"
33
- }, null, 8, ["class"]),
34
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rows, (item) => {
35
- return openBlock(), createBlock(SkeletonItem, {
36
- key: item,
37
- class: normalizeClass([
38
- unref(ns).e("paragraph"),
39
- unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
40
- ]),
41
- variant: "p"
42
- }, null, 8, ["class"]);
43
- }), 128))
44
- ]) : createCommentVNode("v-if", true)
45
- ], 64);
46
- }), 128))
47
- ], 16)) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)));
48
- };
4
+ const skeletonProps = buildProps({
5
+ animated: {
6
+ type: Boolean,
7
+ default: false
8
+ },
9
+ count: {
10
+ type: Number,
11
+ default: 1
12
+ },
13
+ rows: {
14
+ type: Number,
15
+ default: 3
16
+ },
17
+ loading: {
18
+ type: Boolean,
19
+ default: true
20
+ },
21
+ throttle: {
22
+ type: Number
49
23
  }
50
24
  });
51
- var Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "skeleton.vue"]]);
52
25
 
53
- export { Skeleton as default };
26
+ export { skeletonProps };
54
27
  //# sourceMappingURL=skeleton2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton2.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.vue"],"sourcesContent":["<template>\n <template v-if=\"uiLoading\">\n <div :class=\"[ns.b(), ns.is('animated', animated)]\" v-bind=\"$attrs\">\n <template v-for=\"i in count\" :key=\"i\">\n <slot v-if=\"loading\" :key=\"i\" name=\"template\">\n <el-skeleton-item :class=\"ns.is('first')\" variant=\"p\" />\n <el-skeleton-item\n v-for=\"item in rows\"\n :key=\"item\"\n :class=\"[\n ns.e('paragraph'),\n ns.is('last', item === rows && rows > 1),\n ]\"\n variant=\"p\"\n />\n </slot>\n </template>\n </div>\n </template>\n <template v-else>\n <slot v-bind=\"$attrs\" />\n </template>\n</template>\n\n<script lang=\"ts\" setup>\nimport { toRef } from 'vue'\nimport { useNamespace, useThrottleRender } from '@element-plus/hooks'\nimport { skeletonProps } from './skeleton'\nimport ElSkeletonItem from './skeleton-item.vue'\n\ndefineOptions({\n name: 'ElSkeleton',\n})\nconst props = defineProps(skeletonProps)\n\nconst ns = useNamespace('skeleton')\nconst uiLoading = useThrottleRender(toRef(props, 'loading'), props.throttle)\n\ndefineExpose({\n /** @description loading state */\n uiLoading,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;mCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAClC,IAAA,MAAM,YAAY,iBAAkB,CAAA,KAAA,CAAM,OAAO,SAAS,CAAA,EAAG,MAAM,QAAQ,CAAA,CAAA;AAE3E,IAAa,MAAA,CAAA;AAAA,MAEX,SAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"skeleton2.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: {\n type: Boolean,\n default: false,\n },\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether showing the real DOM\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: Number,\n },\n} as const)\nexport type SkeletonProps = ExtractPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton>\n"],"names":[],"mappings":";;;AACY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
@@ -1,98 +1,26 @@
1
- import { defineComponent, reactive, toRefs, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createVNode, withCtx, createElementVNode, toDisplayString } from 'vue';
2
- import { ElTooltip } from '../../tooltip/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import './composables/index.mjs';
5
- import { sliderButtonProps, sliderButtonEmits } from './button2.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
- import { useSliderButton } from './composables/use-slider-button.mjs';
1
+ import { placements } from '@popperjs/core';
2
+ import '../../../utils/index.mjs';
3
+ import '../../../constants/index.mjs';
4
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
+ import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
6
+ import { isNumber } from '../../../utils/types.mjs';
9
7
 
10
- const _hoisted_1 = ["tabindex"];
11
- const __default__ = defineComponent({
12
- name: "ElSliderButton"
13
- });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: sliderButtonProps,
17
- emits: sliderButtonEmits,
18
- setup(__props, { expose, emit }) {
19
- const props = __props;
20
- const ns = useNamespace("slider");
21
- const initData = reactive({
22
- hovering: false,
23
- dragging: false,
24
- isClick: false,
25
- startX: 0,
26
- currentX: 0,
27
- startY: 0,
28
- currentY: 0,
29
- startPosition: 0,
30
- newPosition: 0,
31
- oldValue: props.modelValue
32
- });
33
- const {
34
- disabled,
35
- button,
36
- tooltip,
37
- showTooltip,
38
- tooltipVisible,
39
- wrapperStyle,
40
- formatValue,
41
- handleMouseEnter,
42
- handleMouseLeave,
43
- onButtonDown,
44
- onKeyDown,
45
- setPosition
46
- } = useSliderButton(props, initData, emit);
47
- const { hovering, dragging } = toRefs(initData);
48
- expose({
49
- onButtonDown,
50
- onKeyDown,
51
- setPosition,
52
- hovering,
53
- dragging
54
- });
55
- return (_ctx, _cache) => {
56
- return openBlock(), createElementBlock("div", {
57
- ref_key: "button",
58
- ref: button,
59
- class: normalizeClass([unref(ns).e("button-wrapper"), { hover: unref(hovering), dragging: unref(dragging) }]),
60
- style: normalizeStyle(unref(wrapperStyle)),
61
- tabindex: unref(disabled) ? -1 : 0,
62
- onMouseenter: _cache[0] || (_cache[0] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
63
- onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
64
- onMousedown: _cache[2] || (_cache[2] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
65
- onTouchstart: _cache[3] || (_cache[3] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
66
- onFocus: _cache[4] || (_cache[4] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
67
- onBlur: _cache[5] || (_cache[5] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
68
- onKeydown: _cache[6] || (_cache[6] = (...args) => unref(onKeyDown) && unref(onKeyDown)(...args))
69
- }, [
70
- createVNode(unref(ElTooltip), {
71
- ref_key: "tooltip",
72
- ref: tooltip,
73
- visible: unref(tooltipVisible),
74
- placement: _ctx.placement,
75
- "fallback-placements": ["top", "bottom", "right", "left"],
76
- "stop-popper-mouse-event": false,
77
- "popper-class": _ctx.tooltipClass,
78
- disabled: !unref(showTooltip),
79
- persistent: ""
80
- }, {
81
- content: withCtx(() => [
82
- createElementVNode("span", null, toDisplayString(unref(formatValue)), 1)
83
- ]),
84
- default: withCtx(() => [
85
- createElementVNode("div", {
86
- class: normalizeClass([unref(ns).e("button"), { hover: unref(hovering), dragging: unref(dragging) }])
87
- }, null, 2)
88
- ]),
89
- _: 1
90
- }, 8, ["visible", "placement", "popper-class", "disabled"])
91
- ], 46, _hoisted_1);
92
- };
8
+ const sliderButtonProps = buildProps({
9
+ modelValue: {
10
+ type: Number,
11
+ default: 0
12
+ },
13
+ vertical: Boolean,
14
+ tooltipClass: String,
15
+ placement: {
16
+ type: String,
17
+ values: placements,
18
+ default: "top"
93
19
  }
94
20
  });
95
- var SliderButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "button.vue"]]);
21
+ const sliderButtonEmits = {
22
+ [UPDATE_MODEL_EVENT]: (value) => isNumber(value)
23
+ };
96
24
 
97
- export { SliderButton as default };
25
+ export { sliderButtonEmits, sliderButtonProps };
98
26
  //# sourceMappingURL=button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/slider/src/button.vue"],"sourcesContent":["<template>\n <div\n ref=\"button\"\n :class=\"[ns.e('button-wrapper'), { hover: hovering, dragging }]\"\n :style=\"wrapperStyle\"\n :tabindex=\"disabled ? -1 : 0\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n @mousedown=\"onButtonDown\"\n @touchstart=\"onButtonDown\"\n @focus=\"handleMouseEnter\"\n @blur=\"handleMouseLeave\"\n @keydown=\"onKeyDown\"\n >\n <el-tooltip\n ref=\"tooltip\"\n :visible=\"tooltipVisible\"\n :placement=\"placement\"\n :fallback-placements=\"['top', 'bottom', 'right', 'left']\"\n :stop-popper-mouse-event=\"false\"\n :popper-class=\"tooltipClass\"\n :disabled=\"!showTooltip\"\n persistent\n >\n <template #content>\n <span>{{ formatValue }}</span>\n </template>\n <div :class=\"[ns.e('button'), { hover: hovering, dragging }]\" />\n </el-tooltip>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { reactive, toRefs } from 'vue'\nimport { ElTooltip } from '@element-plus/components/tooltip'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useSliderButton } from './composables'\nimport { sliderButtonEmits, sliderButtonProps } from './button'\nimport type { SliderButtonInitData } from './button'\n\ndefineOptions({\n name: 'ElSliderButton',\n})\n\nconst props = defineProps(sliderButtonProps)\nconst emit = defineEmits(sliderButtonEmits)\n\nconst ns = useNamespace('slider')\n\nconst initData = reactive<SliderButtonInitData>({\n hovering: false,\n dragging: false,\n isClick: false,\n startX: 0,\n currentX: 0,\n startY: 0,\n currentY: 0,\n startPosition: 0,\n newPosition: 0,\n oldValue: props.modelValue,\n})\n\nconst {\n disabled,\n button,\n tooltip,\n showTooltip,\n tooltipVisible,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onKeyDown,\n setPosition,\n} = useSliderButton(props, initData, emit)\n\nconst { hovering, dragging } = toRefs(initData)\n\ndefineExpose({\n onButtonDown,\n onKeyDown,\n setPosition,\n hovering,\n dragging,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAwCc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAA,MAAM,WAAW,QAA+B,CAAA;AAAA,MAC9C,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,KAAA;AAAA,MACV,OAAS,EAAA,KAAA;AAAA,MACT,MAAQ,EAAA,CAAA;AAAA,MACR,QAAU,EAAA,CAAA;AAAA,MACV,MAAQ,EAAA,CAAA;AAAA,MACR,QAAU,EAAA,CAAA;AAAA,MACV,aAAe,EAAA,CAAA;AAAA,MACf,WAAa,EAAA,CAAA;AAAA,MACb,UAAU,KAAM,CAAA,UAAA;AAAA,KACjB,CAAA,CAAA;AAED,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,MAAA;AAAA,MACA,OAAA;AAAA,MACA,WAAA;AAAA,MACA,cAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,MACA,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,YAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAA,eAAA,CAAgB,KAAO,EAAA,QAAA,EAAU,IAAI,CAAA,CAAA;AAEzC,IAAA,MAAM,EAAE,QAAA,EAAU,QAAa,EAAA,GAAA,MAAA,CAAO,QAAQ,CAAA,CAAA;AAE9C,IAAa,MAAA,CAAA;AAAA,MACX,YAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/slider/src/button.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes, Ref } from 'vue'\nimport type Button from './button.vue'\n\nexport const sliderButtonProps = buildProps({\n modelValue: {\n type: Number,\n default: 0,\n },\n vertical: Boolean,\n tooltipClass: String,\n placement: {\n type: String,\n values: placements,\n default: 'top',\n },\n} as const)\nexport type SliderButtonProps = ExtractPropTypes<typeof sliderButtonProps>\n\nexport const sliderButtonEmits = {\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type SliderButtonEmits = typeof sliderButtonEmits\n\nexport type SliderButtonInstance = InstanceType<typeof Button>\n\nexport type ButtonRefs = Record<\n 'firstButton' | 'secondButton',\n Ref<SliderButtonInstance | undefined>\n>\n\nexport interface SliderButtonInitData {\n hovering: boolean\n dragging: boolean\n isClick: boolean\n startX: number\n currentX: number\n startY: number\n currentY: number\n startPosition: number\n newPosition: number\n oldValue: number\n}\n"],"names":[],"mappings":";;;;;;;AAGY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,YAAY,EAAE,MAAM;AACtB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,UAAU;AACtB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClD;;;;"}