element-plus 2.7.5 → 2.7.7

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 (522) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +149 -63
  4. package/dist/index.full.min.js +22 -22
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +22 -22
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +150 -65
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +14 -9
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.js.map +1 -1
  88. package/dist/locale/fr.min.mjs +1 -1
  89. package/dist/locale/fr.min.mjs.map +1 -1
  90. package/dist/locale/fr.mjs +14 -9
  91. package/dist/locale/he.js +1 -1
  92. package/dist/locale/he.min.js +1 -1
  93. package/dist/locale/he.min.mjs +1 -1
  94. package/dist/locale/he.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lt.js +1 -1
  140. package/dist/locale/lt.min.js +1 -1
  141. package/dist/locale/lt.min.mjs +1 -1
  142. package/dist/locale/lt.mjs +1 -1
  143. package/dist/locale/lv.js +1 -1
  144. package/dist/locale/lv.min.js +1 -1
  145. package/dist/locale/lv.min.mjs +1 -1
  146. package/dist/locale/lv.mjs +1 -1
  147. package/dist/locale/mg.js +1 -1
  148. package/dist/locale/mg.min.js +1 -1
  149. package/dist/locale/mg.min.mjs +1 -1
  150. package/dist/locale/mg.mjs +1 -1
  151. package/dist/locale/mn.js +1 -1
  152. package/dist/locale/mn.min.js +1 -1
  153. package/dist/locale/mn.min.mjs +1 -1
  154. package/dist/locale/mn.mjs +1 -1
  155. package/dist/locale/nb-no.js +1 -1
  156. package/dist/locale/nb-no.min.js +1 -1
  157. package/dist/locale/nb-no.min.mjs +1 -1
  158. package/dist/locale/nb-no.mjs +1 -1
  159. package/dist/locale/nl.js +1 -1
  160. package/dist/locale/nl.min.js +1 -1
  161. package/dist/locale/nl.min.mjs +1 -1
  162. package/dist/locale/nl.mjs +1 -1
  163. package/dist/locale/pa.js +1 -1
  164. package/dist/locale/pa.min.js +1 -1
  165. package/dist/locale/pa.min.mjs +1 -1
  166. package/dist/locale/pa.mjs +1 -1
  167. package/dist/locale/pl.js +1 -1
  168. package/dist/locale/pl.min.js +1 -1
  169. package/dist/locale/pl.min.mjs +1 -1
  170. package/dist/locale/pl.mjs +1 -1
  171. package/dist/locale/pt-br.js +1 -1
  172. package/dist/locale/pt-br.min.js +1 -1
  173. package/dist/locale/pt-br.min.mjs +1 -1
  174. package/dist/locale/pt-br.mjs +1 -1
  175. package/dist/locale/pt.js +1 -1
  176. package/dist/locale/pt.min.js +1 -1
  177. package/dist/locale/pt.min.mjs +1 -1
  178. package/dist/locale/pt.mjs +1 -1
  179. package/dist/locale/ro.js +1 -1
  180. package/dist/locale/ro.min.js +1 -1
  181. package/dist/locale/ro.min.mjs +1 -1
  182. package/dist/locale/ro.mjs +1 -1
  183. package/dist/locale/ru.js +1 -1
  184. package/dist/locale/ru.min.js +1 -1
  185. package/dist/locale/ru.min.mjs +1 -1
  186. package/dist/locale/ru.mjs +1 -1
  187. package/dist/locale/sk.js +1 -1
  188. package/dist/locale/sk.min.js +1 -1
  189. package/dist/locale/sk.min.mjs +1 -1
  190. package/dist/locale/sk.mjs +1 -1
  191. package/dist/locale/sl.js +1 -1
  192. package/dist/locale/sl.min.js +1 -1
  193. package/dist/locale/sl.min.mjs +1 -1
  194. package/dist/locale/sl.mjs +1 -1
  195. package/dist/locale/sr.js +1 -1
  196. package/dist/locale/sr.min.js +1 -1
  197. package/dist/locale/sr.min.mjs +1 -1
  198. package/dist/locale/sr.mjs +1 -1
  199. package/dist/locale/sv.js +1 -1
  200. package/dist/locale/sv.min.js +1 -1
  201. package/dist/locale/sv.min.mjs +1 -1
  202. package/dist/locale/sv.mjs +1 -1
  203. package/dist/locale/sw.js +1 -1
  204. package/dist/locale/sw.min.js +1 -1
  205. package/dist/locale/sw.min.mjs +1 -1
  206. package/dist/locale/sw.mjs +1 -1
  207. package/dist/locale/ta.js +1 -1
  208. package/dist/locale/ta.min.js +1 -1
  209. package/dist/locale/ta.min.mjs +1 -1
  210. package/dist/locale/ta.mjs +1 -1
  211. package/dist/locale/th.js +1 -1
  212. package/dist/locale/th.min.js +1 -1
  213. package/dist/locale/th.min.mjs +1 -1
  214. package/dist/locale/th.mjs +1 -1
  215. package/dist/locale/tk.js +1 -1
  216. package/dist/locale/tk.min.js +1 -1
  217. package/dist/locale/tk.min.mjs +1 -1
  218. package/dist/locale/tk.mjs +1 -1
  219. package/dist/locale/tr.js +1 -1
  220. package/dist/locale/tr.min.js +1 -1
  221. package/dist/locale/tr.min.mjs +1 -1
  222. package/dist/locale/tr.mjs +1 -1
  223. package/dist/locale/ug-cn.js +1 -1
  224. package/dist/locale/ug-cn.min.js +1 -1
  225. package/dist/locale/ug-cn.min.mjs +1 -1
  226. package/dist/locale/ug-cn.mjs +1 -1
  227. package/dist/locale/uk.js +1 -1
  228. package/dist/locale/uk.min.js +1 -1
  229. package/dist/locale/uk.min.mjs +1 -1
  230. package/dist/locale/uk.mjs +1 -1
  231. package/dist/locale/uz-uz.js +1 -1
  232. package/dist/locale/uz-uz.min.js +1 -1
  233. package/dist/locale/uz-uz.min.mjs +1 -1
  234. package/dist/locale/uz-uz.mjs +1 -1
  235. package/dist/locale/vi.js +1 -1
  236. package/dist/locale/vi.min.js +1 -1
  237. package/dist/locale/vi.min.mjs +1 -1
  238. package/dist/locale/vi.mjs +1 -1
  239. package/dist/locale/zh-cn.js +1 -1
  240. package/dist/locale/zh-cn.min.js +1 -1
  241. package/dist/locale/zh-cn.min.mjs +1 -1
  242. package/dist/locale/zh-cn.mjs +1 -1
  243. package/dist/locale/zh-tw.js +1 -1
  244. package/dist/locale/zh-tw.min.js +1 -1
  245. package/dist/locale/zh-tw.min.mjs +1 -1
  246. package/dist/locale/zh-tw.mjs +1 -1
  247. package/es/components/backtop/index.mjs +2 -2
  248. package/es/components/backtop/src/backtop.mjs +21 -54
  249. package/es/components/backtop/src/backtop.mjs.map +1 -1
  250. package/es/components/backtop/src/backtop2.mjs +54 -21
  251. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  252. package/es/components/button/src/button-custom.mjs +5 -1
  253. package/es/components/button/src/button-custom.mjs.map +1 -1
  254. package/es/components/carousel/src/use-carousel.mjs +2 -0
  255. package/es/components/carousel/src/use-carousel.mjs.map +1 -1
  256. package/es/components/cascader/index.d.ts +8 -2
  257. package/es/components/cascader/src/cascader.d.ts +1 -0
  258. package/es/components/cascader/src/cascader.mjs +1 -0
  259. package/es/components/cascader/src/cascader.mjs.map +1 -1
  260. package/es/components/cascader/src/cascader.vue.d.ts +4 -1
  261. package/es/components/cascader/src/cascader2.mjs +1 -0
  262. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  263. package/es/components/color-picker/index.d.ts +8 -0
  264. package/es/components/color-picker/src/color-picker.vue.d.ts +8 -0
  265. package/es/components/color-picker/src/color-picker2.mjs +2 -1
  266. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  267. package/es/components/color-picker/src/components/predefine.mjs +5 -1
  268. package/es/components/color-picker/src/components/predefine.mjs.map +1 -1
  269. package/es/components/color-picker/src/components/predefine.vue.d.ts +8 -0
  270. package/es/components/config-provider/index.d.ts +1 -1
  271. package/es/components/config-provider/src/config-provider.d.ts +1 -1
  272. package/es/components/config-provider/src/hooks/use-global-config.mjs +5 -0
  273. package/es/components/config-provider/src/hooks/use-global-config.mjs.map +1 -1
  274. package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +12 -11
  275. package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
  276. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
  277. package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs +3 -2
  278. package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs.map +1 -1
  279. package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  280. package/es/components/date-picker/src/panel-utils.d.ts +2 -2
  281. package/es/components/dialog/src/dialog-content.mjs +26 -89
  282. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  283. package/es/components/dialog/src/dialog-content2.mjs +89 -26
  284. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  285. package/es/components/dialog/src/dialog.mjs +1 -1
  286. package/es/components/dialog/src/dialog2.mjs +1 -1
  287. package/es/components/form/index.d.ts +12 -2
  288. package/es/components/form/index.mjs +2 -2
  289. package/es/components/form/src/form-item.d.ts +1 -0
  290. package/es/components/form/src/form-item.mjs +322 -43
  291. package/es/components/form/src/form-item.mjs.map +1 -1
  292. package/es/components/form/src/form-item.vue.d.ts +6 -1
  293. package/es/components/form/src/form-item2.mjs +48 -318
  294. package/es/components/form/src/form-item2.mjs.map +1 -1
  295. package/es/components/form/src/form-label-wrap.mjs +2 -1
  296. package/es/components/form/src/form-label-wrap.mjs.map +1 -1
  297. package/es/components/image/src/image2.mjs +2 -1
  298. package/es/components/image/src/image2.mjs.map +1 -1
  299. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  300. package/es/components/index.mjs +4 -4
  301. package/es/components/input/src/input2.mjs +7 -3
  302. package/es/components/input/src/input2.mjs.map +1 -1
  303. package/es/components/message-box/src/index.mjs +7 -2
  304. package/es/components/message-box/src/index.mjs.map +1 -1
  305. package/es/components/message-box/src/index.vue.d.ts +242 -0
  306. package/es/components/message-box/src/message-box.type.d.ts +6 -0
  307. package/es/components/pagination/index.d.ts +12 -0
  308. package/es/components/pagination/src/components/sizes.vue.d.ts +16 -0
  309. package/es/components/pagination/src/pagination.d.ts +24 -0
  310. package/es/components/pagination/src/pagination.mjs +17 -5
  311. package/es/components/pagination/src/pagination.mjs.map +1 -1
  312. package/es/components/progress/index.mjs +2 -2
  313. package/es/components/progress/src/progress.mjs +59 -205
  314. package/es/components/progress/src/progress.mjs.map +1 -1
  315. package/es/components/progress/src/progress2.mjs +213 -59
  316. package/es/components/progress/src/progress2.mjs.map +1 -1
  317. package/es/components/select/index.d.ts +16 -0
  318. package/es/components/select/src/select.d.ts +7 -0
  319. package/es/components/select/src/select.mjs +1 -0
  320. package/es/components/select/src/select.mjs.map +1 -1
  321. package/es/components/select/src/select.vue.d.ts +16 -0
  322. package/es/components/select/src/select2.mjs +11 -7
  323. package/es/components/select/src/select2.mjs.map +1 -1
  324. package/es/components/select/src/useSelect.d.ts +1 -0
  325. package/es/components/select/src/useSelect.mjs +5 -1
  326. package/es/components/select/src/useSelect.mjs.map +1 -1
  327. package/es/components/select-v2/index.d.ts +30 -0
  328. package/es/components/select-v2/src/defaults.d.ts +7 -0
  329. package/es/components/select-v2/src/defaults.mjs +1 -0
  330. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  331. package/es/components/select-v2/src/select.mjs +12 -9
  332. package/es/components/select-v2/src/select.mjs.map +1 -1
  333. package/es/components/select-v2/src/select.vue.d.ts +15 -0
  334. package/es/components/table/index.d.ts +1 -0
  335. package/es/components/table/src/table-header/index.mjs +6 -1
  336. package/es/components/table/src/table-header/index.mjs.map +1 -1
  337. package/es/components/table/src/table-header/utils-helper.d.ts +1 -0
  338. package/es/components/table/src/table-header/utils-helper.mjs +1 -1
  339. package/es/components/table/src/table-header/utils-helper.mjs.map +1 -1
  340. package/es/components/table/src/table.mjs +5 -0
  341. package/es/components/table/src/table.mjs.map +1 -1
  342. package/es/components/table/src/table.vue.d.ts +7 -6
  343. package/es/components/table-v2/src/composables/use-row.mjs +1 -1
  344. package/es/components/table-v2/src/composables/use-row.mjs.map +1 -1
  345. package/es/components/time-picker/src/common/picker.mjs +2 -0
  346. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  347. package/es/components/time-picker/src/common/picker.vue.d.ts +4 -2
  348. package/es/components/time-select/index.d.ts +70 -2
  349. package/es/components/time-select/src/time-select.vue.d.ts +38 -10
  350. package/es/components/time-select/src/time-select2.mjs +3 -2
  351. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  352. package/es/components/tour/index.mjs +2 -2
  353. package/es/components/tour/src/step.mjs +44 -169
  354. package/es/components/tour/src/step.mjs.map +1 -1
  355. package/es/components/tour/src/step2.mjs +169 -44
  356. package/es/components/tour/src/step2.mjs.map +1 -1
  357. package/es/components/tree/src/tree.type.d.ts +1 -1
  358. package/es/components/tree-select/src/cache-options.mjs +3 -1
  359. package/es/components/tree-select/src/cache-options.mjs.map +1 -1
  360. package/es/components/tree-select/src/tree-select-option.mjs +6 -1
  361. package/es/components/tree-select/src/tree-select-option.mjs.map +1 -1
  362. package/es/components/tree-select/src/tree.mjs +2 -1
  363. package/es/components/tree-select/src/tree.mjs.map +1 -1
  364. package/es/hooks/index.mjs +1 -1
  365. package/es/hooks/use-empty-values/index.d.ts +5 -2
  366. package/es/hooks/use-empty-values/index.mjs +4 -8
  367. package/es/hooks/use-empty-values/index.mjs.map +1 -1
  368. package/es/index.mjs +5 -5
  369. package/es/locale/lang/fr.d.ts +5 -0
  370. package/es/locale/lang/fr.mjs +13 -8
  371. package/es/locale/lang/fr.mjs.map +1 -1
  372. package/es/version.d.ts +1 -1
  373. package/es/version.mjs +1 -1
  374. package/es/version.mjs.map +1 -1
  375. package/lib/components/backtop/index.js +2 -2
  376. package/lib/components/backtop/src/backtop.js +22 -54
  377. package/lib/components/backtop/src/backtop.js.map +1 -1
  378. package/lib/components/backtop/src/backtop2.js +54 -22
  379. package/lib/components/backtop/src/backtop2.js.map +1 -1
  380. package/lib/components/button/src/button-custom.js +5 -1
  381. package/lib/components/button/src/button-custom.js.map +1 -1
  382. package/lib/components/carousel/src/use-carousel.js +2 -0
  383. package/lib/components/carousel/src/use-carousel.js.map +1 -1
  384. package/lib/components/cascader/index.d.ts +8 -2
  385. package/lib/components/cascader/src/cascader.d.ts +1 -0
  386. package/lib/components/cascader/src/cascader.js +1 -0
  387. package/lib/components/cascader/src/cascader.js.map +1 -1
  388. package/lib/components/cascader/src/cascader.vue.d.ts +4 -1
  389. package/lib/components/cascader/src/cascader2.js +1 -0
  390. package/lib/components/cascader/src/cascader2.js.map +1 -1
  391. package/lib/components/color-picker/index.d.ts +8 -0
  392. package/lib/components/color-picker/src/color-picker.vue.d.ts +8 -0
  393. package/lib/components/color-picker/src/color-picker2.js +2 -1
  394. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  395. package/lib/components/color-picker/src/components/predefine.js +5 -1
  396. package/lib/components/color-picker/src/components/predefine.js.map +1 -1
  397. package/lib/components/color-picker/src/components/predefine.vue.d.ts +8 -0
  398. package/lib/components/config-provider/index.d.ts +1 -1
  399. package/lib/components/config-provider/src/config-provider.d.ts +1 -1
  400. package/lib/components/config-provider/src/hooks/use-global-config.js +5 -0
  401. package/lib/components/config-provider/src/hooks/use-global-config.js.map +1 -1
  402. package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +12 -11
  403. package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
  404. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
  405. package/lib/components/date-picker/src/date-picker-com/panel-month-range.js +3 -2
  406. package/lib/components/date-picker/src/date-picker-com/panel-month-range.js.map +1 -1
  407. package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  408. package/lib/components/date-picker/src/panel-utils.d.ts +2 -2
  409. package/lib/components/dialog/src/dialog-content.js +26 -88
  410. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  411. package/lib/components/dialog/src/dialog-content2.js +88 -26
  412. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  413. package/lib/components/dialog/src/dialog.js +1 -1
  414. package/lib/components/dialog/src/dialog2.js +1 -1
  415. package/lib/components/form/index.d.ts +12 -2
  416. package/lib/components/form/index.js +2 -2
  417. package/lib/components/form/src/form-item.d.ts +1 -0
  418. package/lib/components/form/src/form-item.js +326 -44
  419. package/lib/components/form/src/form-item.js.map +1 -1
  420. package/lib/components/form/src/form-item.vue.d.ts +6 -1
  421. package/lib/components/form/src/form-item2.js +49 -322
  422. package/lib/components/form/src/form-item2.js.map +1 -1
  423. package/lib/components/form/src/form-label-wrap.js +2 -1
  424. package/lib/components/form/src/form-label-wrap.js.map +1 -1
  425. package/lib/components/image/src/image2.js +2 -1
  426. package/lib/components/image/src/image2.js.map +1 -1
  427. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  428. package/lib/components/index.js +4 -4
  429. package/lib/components/input/src/input2.js +7 -3
  430. package/lib/components/input/src/input2.js.map +1 -1
  431. package/lib/components/message-box/src/index.js +7 -2
  432. package/lib/components/message-box/src/index.js.map +1 -1
  433. package/lib/components/message-box/src/index.vue.d.ts +242 -0
  434. package/lib/components/message-box/src/message-box.type.d.ts +6 -0
  435. package/lib/components/pagination/index.d.ts +12 -0
  436. package/lib/components/pagination/src/components/sizes.vue.d.ts +16 -0
  437. package/lib/components/pagination/src/pagination.d.ts +24 -0
  438. package/lib/components/pagination/src/pagination.js +21 -9
  439. package/lib/components/pagination/src/pagination.js.map +1 -1
  440. package/lib/components/progress/index.js +2 -2
  441. package/lib/components/progress/src/progress.js +59 -205
  442. package/lib/components/progress/src/progress.js.map +1 -1
  443. package/lib/components/progress/src/progress2.js +213 -59
  444. package/lib/components/progress/src/progress2.js.map +1 -1
  445. package/lib/components/select/index.d.ts +16 -0
  446. package/lib/components/select/src/select.d.ts +7 -0
  447. package/lib/components/select/src/select.js +1 -0
  448. package/lib/components/select/src/select.js.map +1 -1
  449. package/lib/components/select/src/select.vue.d.ts +16 -0
  450. package/lib/components/select/src/select2.js +10 -6
  451. package/lib/components/select/src/select2.js.map +1 -1
  452. package/lib/components/select/src/useSelect.d.ts +1 -0
  453. package/lib/components/select/src/useSelect.js +4 -0
  454. package/lib/components/select/src/useSelect.js.map +1 -1
  455. package/lib/components/select-v2/index.d.ts +30 -0
  456. package/lib/components/select-v2/src/defaults.d.ts +7 -0
  457. package/lib/components/select-v2/src/defaults.js +1 -0
  458. package/lib/components/select-v2/src/defaults.js.map +1 -1
  459. package/lib/components/select-v2/src/select.js +11 -8
  460. package/lib/components/select-v2/src/select.js.map +1 -1
  461. package/lib/components/select-v2/src/select.vue.d.ts +15 -0
  462. package/lib/components/table/index.d.ts +1 -0
  463. package/lib/components/table/src/table-header/index.js +6 -1
  464. package/lib/components/table/src/table-header/index.js.map +1 -1
  465. package/lib/components/table/src/table-header/utils-helper.d.ts +1 -0
  466. package/lib/components/table/src/table-header/utils-helper.js +1 -0
  467. package/lib/components/table/src/table-header/utils-helper.js.map +1 -1
  468. package/lib/components/table/src/table.js +5 -0
  469. package/lib/components/table/src/table.js.map +1 -1
  470. package/lib/components/table/src/table.vue.d.ts +7 -6
  471. package/lib/components/table-v2/src/composables/use-row.js +1 -1
  472. package/lib/components/table-v2/src/composables/use-row.js.map +1 -1
  473. package/lib/components/time-picker/src/common/picker.js +2 -0
  474. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  475. package/lib/components/time-picker/src/common/picker.vue.d.ts +4 -2
  476. package/lib/components/time-select/index.d.ts +70 -2
  477. package/lib/components/time-select/src/time-select.vue.d.ts +38 -10
  478. package/lib/components/time-select/src/time-select2.js +3 -2
  479. package/lib/components/time-select/src/time-select2.js.map +1 -1
  480. package/lib/components/tour/index.js +2 -2
  481. package/lib/components/tour/src/step.js +44 -168
  482. package/lib/components/tour/src/step.js.map +1 -1
  483. package/lib/components/tour/src/step2.js +168 -44
  484. package/lib/components/tour/src/step2.js.map +1 -1
  485. package/lib/components/tree/src/tree.type.d.ts +1 -1
  486. package/lib/components/tree-select/src/cache-options.js +3 -1
  487. package/lib/components/tree-select/src/cache-options.js.map +1 -1
  488. package/lib/components/tree-select/src/tree-select-option.js +5 -0
  489. package/lib/components/tree-select/src/tree-select-option.js.map +1 -1
  490. package/lib/components/tree-select/src/tree.js +2 -1
  491. package/lib/components/tree-select/src/tree.js.map +1 -1
  492. package/lib/hooks/index.js +1 -0
  493. package/lib/hooks/index.js.map +1 -1
  494. package/lib/hooks/use-empty-values/index.d.ts +5 -2
  495. package/lib/hooks/use-empty-values/index.js +3 -6
  496. package/lib/hooks/use-empty-values/index.js.map +1 -1
  497. package/lib/index.js +5 -4
  498. package/lib/index.js.map +1 -1
  499. package/lib/locale/lang/fr.d.ts +5 -0
  500. package/lib/locale/lang/fr.js +13 -8
  501. package/lib/locale/lang/fr.js.map +1 -1
  502. package/lib/version.d.ts +1 -1
  503. package/lib/version.js +1 -1
  504. package/lib/version.js.map +1 -1
  505. package/package.json +2 -2
  506. package/tags.json +1 -1
  507. package/theme-chalk/el-drawer.css +1 -1
  508. package/theme-chalk/el-form.css +1 -1
  509. package/theme-chalk/el-pagination.css +1 -1
  510. package/theme-chalk/el-select-v2.css +1 -1
  511. package/theme-chalk/el-select.css +1 -1
  512. package/theme-chalk/el-table.css +1 -1
  513. package/theme-chalk/el-upload.css +1 -1
  514. package/theme-chalk/index.css +1 -1
  515. package/theme-chalk/src/common/var.scss +2 -0
  516. package/theme-chalk/src/drawer.scss +1 -1
  517. package/theme-chalk/src/form.scss +24 -31
  518. package/theme-chalk/src/pagination.scss +13 -0
  519. package/theme-chalk/src/select.scss +4 -0
  520. package/theme-chalk/src/table.scss +25 -2
  521. package/theme-chalk/src/upload.scss +1 -1
  522. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cache-options.mjs","sources":["../../../../../../packages/components/tree-select/src/cache-options.ts"],"sourcesContent":["import { defineComponent, inject, watch } from 'vue'\nimport { selectKey } from '@element-plus/components/select'\nimport type { SelectContext } from '@element-plus/components/select'\nimport type { PropType } from 'vue'\n\n// same as el-option instance,\n// these are required for `cachedOptions`\nexport type CacheOption = {\n value: string | number | boolean | object\n currentLabel: string | number\n isDisabled: boolean\n}\n\nexport default defineComponent({\n props: {\n data: {\n type: Array as PropType<CacheOption[]>,\n default: () => [],\n },\n },\n setup(props) {\n const select = inject(selectKey) as NonNullable<SelectContext>\n\n watch(\n () => props.data,\n () => {\n props.data.forEach((item) => {\n if (!select.states.cachedOptions.has(item.value)) {\n select.states.cachedOptions.set(item.value, item)\n }\n })\n\n // fork from packages/select/src/useSelect.ts#330\n const inputs = select.selectRef?.querySelectorAll('input') || []\n if (\n !Array.from(inputs).includes(\n document.activeElement as HTMLInputElement\n )\n ) {\n select.setSelected()\n }\n },\n { flush: 'post', immediate: true }\n )\n\n return () => undefined\n },\n})\n"],"names":[],"mappings":";;;;AAEA,mBAAe,eAAe,CAAC;AAC/B,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE;AACV,MAAM,IAAI,EAAE,KAAK;AACjB,MAAM,OAAO,EAAE,MAAM,EAAE;AACvB,KAAK;AACL,GAAG;AACH,EAAE,KAAK,CAAC,KAAK,EAAE;AACf,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AACrC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,MAAM;AAClC,MAAM,IAAI,EAAE,CAAC;AACb,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AACnC,QAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AAC1D,UAAU,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC5D,SAAS;AACT,OAAO,CAAC,CAAC;AACT,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,SAAS,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;AACrG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;AAChE,QAAQ,MAAM,CAAC,WAAW,EAAE,CAAC;AAC7B,OAAO;AACP,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3C,IAAI,OAAO,MAAM,KAAK,CAAC,CAAC;AACxB,GAAG;AACH,CAAC,CAAC;;;;"}
1
+ {"version":3,"file":"cache-options.mjs","sources":["../../../../../../packages/components/tree-select/src/cache-options.ts"],"sourcesContent":["import { defineComponent, inject, watch } from 'vue'\nimport { selectKey } from '@element-plus/components/select'\nimport { isClient } from '@element-plus/utils'\nimport type { SelectContext } from '@element-plus/components/select'\nimport type { PropType } from 'vue'\n\n// same as el-option instance,\n// these are required for `cachedOptions`\nexport type CacheOption = {\n value: string | number | boolean | object\n currentLabel: string | number\n isDisabled: boolean\n}\n\nexport default defineComponent({\n props: {\n data: {\n type: Array as PropType<CacheOption[]>,\n default: () => [],\n },\n },\n setup(props) {\n const select = inject(selectKey) as NonNullable<SelectContext>\n\n watch(\n () => props.data,\n () => {\n props.data.forEach((item) => {\n if (!select.states.cachedOptions.has(item.value)) {\n select.states.cachedOptions.set(item.value, item)\n }\n })\n\n // fork from packages/select/src/useSelect.ts#330\n const inputs = select.selectRef?.querySelectorAll('input') || []\n if (\n isClient &&\n !Array.from(inputs).includes(\n document.activeElement as HTMLInputElement\n )\n ) {\n select.setSelected()\n }\n },\n { flush: 'post', immediate: true }\n )\n\n return () => undefined\n },\n})\n"],"names":[],"mappings":";;;;;;AAGA,mBAAe,eAAe,CAAC;AAC/B,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE;AACV,MAAM,IAAI,EAAE,KAAK;AACjB,MAAM,OAAO,EAAE,MAAM,EAAE;AACvB,KAAK;AACL,GAAG;AACH,EAAE,KAAK,CAAC,KAAK,EAAE;AACf,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AACrC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,MAAM;AAClC,MAAM,IAAI,EAAE,CAAC;AACb,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AACnC,QAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AAC1D,UAAU,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC5D,SAAS;AACT,OAAO,CAAC,CAAC;AACT,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,SAAS,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;AACrG,MAAM,IAAI,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;AAC5E,QAAQ,MAAM,CAAC,WAAW,EAAE,CAAC;AAC7B,OAAO;AACP,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3C,IAAI,OAAO,MAAM,KAAK,CAAC,CAAC;AACxB,GAAG;AACH,CAAC,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, getCurrentInstance, nextTick } from 'vue';
1
+ import { defineComponent, getCurrentInstance, nextTick, watch } from 'vue';
2
2
  import { ElOption } from '../../select/index.mjs';
3
3
 
4
4
  const component = defineComponent({
@@ -12,6 +12,11 @@ const component = defineComponent({
12
12
  result.select.onOptionCreate(vm);
13
13
  }
14
14
  });
15
+ watch(() => ctx.attrs.visible, (val) => {
16
+ result.states.visible = val;
17
+ }, {
18
+ immediate: true
19
+ });
15
20
  return result;
16
21
  },
17
22
  methods: {
@@ -1 +1 @@
1
- {"version":3,"file":"tree-select-option.mjs","sources":["../../../../../../packages/components/tree-select/src/tree-select-option.ts"],"sourcesContent":["import { defineComponent, getCurrentInstance, nextTick } from 'vue'\nimport { ElOption } from '@element-plus/components/select'\n\nconst component = defineComponent({\n extends: ElOption,\n setup(props, ctx) {\n const result = (ElOption.setup as NonNullable<any>)(props, ctx)\n\n // use methods.selectOptionClick\n delete result.selectOptionClick\n\n const vm = (getCurrentInstance() as NonNullable<any>).proxy\n\n // Fix: https://github.com/element-plus/element-plus/issues/7917\n // `el-option` will delete the cache before unmount,\n // This is normal for flat arrays `<el-select><el-option v-for=\"3\"></el-select>`,\n // Because the same node key does not create a difference node,\n // But in tree data, the same key at different levels will create diff nodes,\n // So the destruction of `el-option` in `nextTick` will be slower than\n // the creation of new `el-option`, which will delete the new node,\n // here restore the deleted node.\n // @link https://github.com/element-plus/element-plus/blob/6df6e49db07b38d6cc3b5e9a960782bd30879c11/packages/components/select/src/option.vue#L78\n nextTick(() => {\n if (!result.select.states.cachedOptions.get(vm.value)) {\n result.select.onOptionCreate(vm)\n }\n })\n\n return result\n },\n methods: {\n selectOptionClick() {\n // $el.parentElement => el-tree-node__content\n this.$el.parentElement.click()\n },\n },\n})\n\nexport default component\n"],"names":[],"mappings":";;;AAEK,MAAC,SAAS,GAAG,eAAe,CAAC;AAClC,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE;AACpB,IAAI,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC9C,IAAI,OAAO,MAAM,CAAC,iBAAiB,CAAC;AACpC,IAAI,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC,KAAK,CAAC;AAC1C,IAAI,QAAQ,CAAC,MAAM;AACnB,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;AAC7D,QAAQ,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO;AACP,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,iBAAiB,GAAG;AACxB,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;AACrC,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"tree-select-option.mjs","sources":["../../../../../../packages/components/tree-select/src/tree-select-option.ts"],"sourcesContent":["import { defineComponent, getCurrentInstance, nextTick, watch } from 'vue'\nimport { ElOption } from '@element-plus/components/select'\n\nconst component = defineComponent({\n extends: ElOption,\n setup(props, ctx) {\n const result = (ElOption.setup as NonNullable<any>)(props, ctx)\n\n // use methods.selectOptionClick\n delete result.selectOptionClick\n\n const vm = (getCurrentInstance() as NonNullable<any>).proxy\n\n // Fix: https://github.com/element-plus/element-plus/issues/7917\n // `el-option` will delete the cache before unmount,\n // This is normal for flat arrays `<el-select><el-option v-for=\"3\"></el-select>`,\n // Because the same node key does not create a difference node,\n // But in tree data, the same key at different levels will create diff nodes,\n // So the destruction of `el-option` in `nextTick` will be slower than\n // the creation of new `el-option`, which will delete the new node,\n // here restore the deleted node.\n // @link https://github.com/element-plus/element-plus/blob/6df6e49db07b38d6cc3b5e9a960782bd30879c11/packages/components/select/src/option.vue#L78\n nextTick(() => {\n if (!result.select.states.cachedOptions.get(vm.value)) {\n result.select.onOptionCreate(vm)\n }\n })\n\n watch(\n () => ctx.attrs.visible,\n (val) => {\n result.states.visible = val\n },\n {\n immediate: true,\n }\n )\n\n return result\n },\n methods: {\n selectOptionClick() {\n // $el.parentElement => el-tree-node__content\n this.$el.parentElement.click()\n },\n },\n})\n\nexport default component\n"],"names":[],"mappings":";;;AAEK,MAAC,SAAS,GAAG,eAAe,CAAC;AAClC,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE;AACpB,IAAI,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC9C,IAAI,OAAO,MAAM,CAAC,iBAAiB,CAAC;AACpC,IAAI,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC,KAAK,CAAC;AAC1C,IAAI,QAAQ,CAAC,MAAM;AACnB,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;AAC7D,QAAQ,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO;AACP,KAAK,CAAC,CAAC;AACP,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK;AAC5C,MAAM,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC;AAClC,KAAK,EAAE;AACP,MAAM,SAAS,EAAE,IAAI;AACrB,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,iBAAiB,GAAG;AACxB,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;AACrC,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
@@ -75,7 +75,8 @@ const useTree = (props, { attrs, slots, emit }, {
75
75
  return h(component, {
76
76
  value: getNodeValByProp("value", data),
77
77
  label: getNodeValByProp("label", data),
78
- disabled: getNodeValByProp("disabled", data)
78
+ disabled: getNodeValByProp("disabled", data),
79
+ visible: node.visible
79
80
  }, props.renderContent ? () => props.renderContent(h, { node, data, store }) : slots.default ? () => slots.default({ node, data, store }) : void 0);
80
81
  },
81
82
  filterNodeMethod: (value, data, node) => {
@@ -1 +1 @@
1
- {"version":3,"file":"tree.mjs","sources":["../../../../../../packages/components/tree-select/src/tree.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, nextTick, toRefs, watch } from 'vue'\nimport { isEqual, pick } from 'lodash-unified'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { escapeStringRegexp, isFunction } from '@element-plus/utils'\nimport ElTree from '@element-plus/components/tree'\nimport TreeSelectOption from './tree-select-option'\nimport {\n isValidArray,\n isValidValue,\n toValidArray,\n treeEach,\n treeFind,\n} from './utils'\nimport type { CacheOption } from './cache-options'\nimport type { Ref } from 'vue'\nimport type ElSelect from '@element-plus/components/select'\nimport type Node from '@element-plus/components/tree/src/model/node'\nimport type { TreeNodeData } from '@element-plus/components/tree/src/tree.type'\nimport type { TreeInstance } from '@element-plus/components/tree'\n\nexport const useTree = (\n props,\n { attrs, slots, emit },\n {\n select,\n tree,\n key,\n }: {\n select: Ref<InstanceType<typeof ElSelect> | undefined>\n tree: Ref<TreeInstance | undefined>\n key: Ref<string>\n }\n) => {\n watch(\n () => props.modelValue,\n () => {\n if (props.showCheckbox) {\n nextTick(() => {\n const treeInstance = tree.value\n if (\n treeInstance &&\n !isEqual(\n treeInstance.getCheckedKeys(),\n toValidArray(props.modelValue)\n )\n ) {\n treeInstance.setCheckedKeys(toValidArray(props.modelValue))\n }\n })\n }\n },\n {\n immediate: true,\n deep: true,\n }\n )\n\n const propsMap = computed(() => ({\n value: key.value,\n label: 'label',\n children: 'children',\n disabled: 'disabled',\n isLeaf: 'isLeaf',\n ...props.props,\n }))\n\n const getNodeValByProp = (\n prop: 'value' | 'label' | 'children' | 'disabled' | 'isLeaf',\n data: TreeNodeData\n ) => {\n const propVal = propsMap.value[prop]\n if (isFunction(propVal)) {\n return propVal(\n data,\n tree.value?.getNode(getNodeValByProp('value', data)) as Node\n )\n } else {\n return data[propVal as string]\n }\n }\n\n const defaultExpandedParentKeys = toValidArray(props.modelValue)\n .map((value) => {\n return treeFind(\n props.data || [],\n (data) => getNodeValByProp('value', data) === value,\n (data) => getNodeValByProp('children', data),\n (data, index, array, parent) =>\n parent && getNodeValByProp('value', parent)\n )\n })\n .filter((item) => isValidValue(item))\n\n const cacheOptions = computed(() => {\n if (!props.renderAfterExpand && !props.lazy) return []\n\n const options: CacheOption[] = []\n\n treeEach(\n props.data.concat(props.cacheData),\n (node) => {\n const value = getNodeValByProp('value', node)\n options.push({\n value,\n currentLabel: getNodeValByProp('label', node),\n isDisabled: getNodeValByProp('disabled', node),\n })\n },\n (data) => getNodeValByProp('children', data)\n )\n\n return options\n })\n\n return {\n ...pick(toRefs(props), Object.keys(ElTree.props)),\n ...attrs,\n nodeKey: key,\n\n // only expand on click node when the `check-strictly` is false\n expandOnClickNode: computed(() => {\n return !props.checkStrictly && props.expandOnClickNode\n }),\n\n // show current selected node only first time,\n // fix the problem of expanding multiple nodes when checking multiple nodes\n defaultExpandedKeys: computed(() => {\n return props.defaultExpandedKeys\n ? props.defaultExpandedKeys.concat(defaultExpandedParentKeys)\n : defaultExpandedParentKeys\n }),\n\n renderContent: (h, { node, data, store }) => {\n return h(\n TreeSelectOption,\n {\n value: getNodeValByProp('value', data),\n label: getNodeValByProp('label', data),\n disabled: getNodeValByProp('disabled', data),\n },\n props.renderContent\n ? () => props.renderContent(h, { node, data, store })\n : slots.default\n ? () => slots.default({ node, data, store })\n : undefined\n )\n },\n filterNodeMethod: (value, data, node) => {\n if (props.filterNodeMethod)\n return props.filterNodeMethod(value, data, node)\n if (!value) return true\n const regexp = new RegExp(escapeStringRegexp(value), 'i')\n return regexp.test(getNodeValByProp('label', data) || '')\n },\n onNodeClick: (data, node, e) => {\n attrs.onNodeClick?.(data, node, e)\n\n // `onCheck` is trigger when `checkOnClickNode`\n if (props.showCheckbox && props.checkOnClickNode) return\n\n // now `checkOnClickNode` is false, only no checkbox and `checkStrictly` or `isLeaf`\n if (!props.showCheckbox && (props.checkStrictly || node.isLeaf)) {\n if (!getNodeValByProp('disabled', data)) {\n const option = select.value?.states.options.get(\n getNodeValByProp('value', data)\n )\n select.value?.handleOptionSelect(option)\n }\n } else if (props.expandOnClickNode) {\n e.proxy.handleExpandIconClick()\n }\n select.value?.focus()\n },\n onCheck: (data, params) => {\n // ignore when no checkbox, like only `checkOnClickNode` is true\n if (!props.showCheckbox) return\n\n const dataValue = getNodeValByProp('value', data)\n const dataMap = {}\n treeEach(\n [tree.value.store.root],\n (node) => (dataMap[node.key] = node),\n (node) => node.childNodes\n )\n\n // fix: checkedKeys has not cached keys\n const uncachedCheckedKeys = params.checkedKeys\n const cachedKeys = props.multiple\n ? toValidArray(props.modelValue).filter(\n (item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item)\n )\n : []\n const checkedKeys = cachedKeys.concat(uncachedCheckedKeys)\n\n if (props.checkStrictly) {\n emit(\n UPDATE_MODEL_EVENT,\n // Checking for changes may come from `check-on-node-click`\n props.multiple\n ? checkedKeys\n : checkedKeys.includes(dataValue)\n ? dataValue\n : undefined\n )\n }\n // only can select leaf node\n else {\n if (props.multiple) {\n emit(\n UPDATE_MODEL_EVENT,\n cachedKeys.concat((tree.value as TreeInstance).getCheckedKeys(true))\n )\n } else {\n // select first leaf node when check parent\n const firstLeaf = treeFind(\n [data],\n (data) =>\n !isValidArray(getNodeValByProp('children', data)) &&\n !getNodeValByProp('disabled', data),\n (data) => getNodeValByProp('children', data)\n )\n const firstLeafKey = firstLeaf\n ? getNodeValByProp('value', firstLeaf)\n : undefined\n\n // unselect when any child checked\n const hasCheckedChild =\n isValidValue(props.modelValue) &&\n !!treeFind(\n [data],\n (data) => getNodeValByProp('value', data) === props.modelValue,\n (data) => getNodeValByProp('children', data)\n )\n\n emit(\n UPDATE_MODEL_EVENT,\n firstLeafKey === props.modelValue || hasCheckedChild\n ? undefined\n : firstLeafKey\n )\n }\n }\n\n nextTick(() => {\n const checkedKeys = toValidArray(props.modelValue)\n tree.value.setCheckedKeys(checkedKeys)\n\n attrs.onCheck?.(data, {\n checkedKeys: tree.value.getCheckedKeys(),\n checkedNodes: tree.value.getCheckedNodes(),\n halfCheckedKeys: tree.value.getHalfCheckedKeys(),\n halfCheckedNodes: tree.value.getHalfCheckedNodes(),\n })\n })\n\n select.value?.focus()\n },\n\n // else\n cacheOptions,\n }\n}\n"],"names":["ElTree","TreeSelectOption"],"mappings":";;;;;;;;;;;AAaY,MAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;AACvD,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,GAAG;AACL,CAAC,KAAK;AACN,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,UAAU,EAAE,MAAM;AACtC,IAAI,IAAI,KAAK,CAAC,YAAY,EAAE;AAC5B,MAAM,QAAQ,CAAC,MAAM;AACrB,QAAQ,MAAM,YAAY,GAAG,IAAI,CAA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,GAAG,KAAK,CAAC,OAAO,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE;AACvE,UAAU,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE;AAClD,UAAU,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE;AACpD,UAAU,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE;AAC1D,UAAU,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE;AAC5D,SAAS,CAAC,CAAC;AACX,OAAO,CAAC,CAAC;AACT,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;AACxD,KAAK;AACL,IAAI,YAAY;AAChB,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"tree.mjs","sources":["../../../../../../packages/components/tree-select/src/tree.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, nextTick, toRefs, watch } from 'vue'\nimport { isEqual, pick } from 'lodash-unified'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { escapeStringRegexp, isFunction } from '@element-plus/utils'\nimport ElTree from '@element-plus/components/tree'\nimport TreeSelectOption from './tree-select-option'\nimport {\n isValidArray,\n isValidValue,\n toValidArray,\n treeEach,\n treeFind,\n} from './utils'\nimport type { CacheOption } from './cache-options'\nimport type { Ref } from 'vue'\nimport type ElSelect from '@element-plus/components/select'\nimport type Node from '@element-plus/components/tree/src/model/node'\nimport type { TreeNodeData } from '@element-plus/components/tree/src/tree.type'\nimport type { TreeInstance } from '@element-plus/components/tree'\n\nexport const useTree = (\n props,\n { attrs, slots, emit },\n {\n select,\n tree,\n key,\n }: {\n select: Ref<InstanceType<typeof ElSelect> | undefined>\n tree: Ref<TreeInstance | undefined>\n key: Ref<string>\n }\n) => {\n watch(\n () => props.modelValue,\n () => {\n if (props.showCheckbox) {\n nextTick(() => {\n const treeInstance = tree.value\n if (\n treeInstance &&\n !isEqual(\n treeInstance.getCheckedKeys(),\n toValidArray(props.modelValue)\n )\n ) {\n treeInstance.setCheckedKeys(toValidArray(props.modelValue))\n }\n })\n }\n },\n {\n immediate: true,\n deep: true,\n }\n )\n\n const propsMap = computed(() => ({\n value: key.value,\n label: 'label',\n children: 'children',\n disabled: 'disabled',\n isLeaf: 'isLeaf',\n ...props.props,\n }))\n\n const getNodeValByProp = (\n prop: 'value' | 'label' | 'children' | 'disabled' | 'isLeaf',\n data: TreeNodeData\n ) => {\n const propVal = propsMap.value[prop]\n if (isFunction(propVal)) {\n return propVal(\n data,\n tree.value?.getNode(getNodeValByProp('value', data)) as Node\n )\n } else {\n return data[propVal as string]\n }\n }\n\n const defaultExpandedParentKeys = toValidArray(props.modelValue)\n .map((value) => {\n return treeFind(\n props.data || [],\n (data) => getNodeValByProp('value', data) === value,\n (data) => getNodeValByProp('children', data),\n (data, index, array, parent) =>\n parent && getNodeValByProp('value', parent)\n )\n })\n .filter((item) => isValidValue(item))\n\n const cacheOptions = computed(() => {\n if (!props.renderAfterExpand && !props.lazy) return []\n\n const options: CacheOption[] = []\n\n treeEach(\n props.data.concat(props.cacheData),\n (node) => {\n const value = getNodeValByProp('value', node)\n options.push({\n value,\n currentLabel: getNodeValByProp('label', node),\n isDisabled: getNodeValByProp('disabled', node),\n })\n },\n (data) => getNodeValByProp('children', data)\n )\n\n return options\n })\n\n return {\n ...pick(toRefs(props), Object.keys(ElTree.props)),\n ...attrs,\n nodeKey: key,\n\n // only expand on click node when the `check-strictly` is false\n expandOnClickNode: computed(() => {\n return !props.checkStrictly && props.expandOnClickNode\n }),\n\n // show current selected node only first time,\n // fix the problem of expanding multiple nodes when checking multiple nodes\n defaultExpandedKeys: computed(() => {\n return props.defaultExpandedKeys\n ? props.defaultExpandedKeys.concat(defaultExpandedParentKeys)\n : defaultExpandedParentKeys\n }),\n\n renderContent: (h, { node, data, store }) => {\n return h(\n TreeSelectOption,\n {\n value: getNodeValByProp('value', data),\n label: getNodeValByProp('label', data),\n disabled: getNodeValByProp('disabled', data),\n visible: node.visible,\n },\n props.renderContent\n ? () => props.renderContent(h, { node, data, store })\n : slots.default\n ? () => slots.default({ node, data, store })\n : undefined\n )\n },\n filterNodeMethod: (value, data, node) => {\n if (props.filterNodeMethod)\n return props.filterNodeMethod(value, data, node)\n if (!value) return true\n const regexp = new RegExp(escapeStringRegexp(value), 'i')\n return regexp.test(getNodeValByProp('label', data) || '')\n },\n onNodeClick: (data, node, e) => {\n attrs.onNodeClick?.(data, node, e)\n\n // `onCheck` is trigger when `checkOnClickNode`\n if (props.showCheckbox && props.checkOnClickNode) return\n\n // now `checkOnClickNode` is false, only no checkbox and `checkStrictly` or `isLeaf`\n if (!props.showCheckbox && (props.checkStrictly || node.isLeaf)) {\n if (!getNodeValByProp('disabled', data)) {\n const option = select.value?.states.options.get(\n getNodeValByProp('value', data)\n )\n select.value?.handleOptionSelect(option)\n }\n } else if (props.expandOnClickNode) {\n e.proxy.handleExpandIconClick()\n }\n select.value?.focus()\n },\n onCheck: (data, params) => {\n // ignore when no checkbox, like only `checkOnClickNode` is true\n if (!props.showCheckbox) return\n\n const dataValue = getNodeValByProp('value', data)\n const dataMap = {}\n treeEach(\n [tree.value.store.root],\n (node) => (dataMap[node.key] = node),\n (node) => node.childNodes\n )\n\n // fix: checkedKeys has not cached keys\n const uncachedCheckedKeys = params.checkedKeys\n const cachedKeys = props.multiple\n ? toValidArray(props.modelValue).filter(\n (item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item)\n )\n : []\n const checkedKeys = cachedKeys.concat(uncachedCheckedKeys)\n\n if (props.checkStrictly) {\n emit(\n UPDATE_MODEL_EVENT,\n // Checking for changes may come from `check-on-node-click`\n props.multiple\n ? checkedKeys\n : checkedKeys.includes(dataValue)\n ? dataValue\n : undefined\n )\n }\n // only can select leaf node\n else {\n if (props.multiple) {\n emit(\n UPDATE_MODEL_EVENT,\n cachedKeys.concat((tree.value as TreeInstance).getCheckedKeys(true))\n )\n } else {\n // select first leaf node when check parent\n const firstLeaf = treeFind(\n [data],\n (data) =>\n !isValidArray(getNodeValByProp('children', data)) &&\n !getNodeValByProp('disabled', data),\n (data) => getNodeValByProp('children', data)\n )\n const firstLeafKey = firstLeaf\n ? getNodeValByProp('value', firstLeaf)\n : undefined\n\n // unselect when any child checked\n const hasCheckedChild =\n isValidValue(props.modelValue) &&\n !!treeFind(\n [data],\n (data) => getNodeValByProp('value', data) === props.modelValue,\n (data) => getNodeValByProp('children', data)\n )\n\n emit(\n UPDATE_MODEL_EVENT,\n firstLeafKey === props.modelValue || hasCheckedChild\n ? undefined\n : firstLeafKey\n )\n }\n }\n\n nextTick(() => {\n const checkedKeys = toValidArray(props.modelValue)\n tree.value.setCheckedKeys(checkedKeys)\n\n attrs.onCheck?.(data, {\n checkedKeys: tree.value.getCheckedKeys(),\n checkedNodes: tree.value.getCheckedNodes(),\n halfCheckedKeys: tree.value.getHalfCheckedKeys(),\n halfCheckedNodes: tree.value.getHalfCheckedNodes(),\n })\n })\n\n select.value?.focus()\n },\n\n // else\n cacheOptions,\n }\n}\n"],"names":["ElTree","TreeSelectOption"],"mappings":";;;;;;;;;;;AAaY,MAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;AACvD,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,GAAG;AACL,CAAC,KAAK;AACN,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,UAAU,EAAE,MAAM;AACtC,IAAI,IAAI,KAAK,CAAC,YAAY,EAAE;AAC5B,MAAM,QAAQ,CAAC,MAAM;AACrB,QAAQ,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC;AACxC,QAAQ,IAAI,YAAY,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,cAAc,EAAE,EAAE,YAAY,CAAC,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GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE;AACvE,UAAU,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE;AAClD,UAAU,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE;AACpD,UAAU,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE;AAC1D,UAAU,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE;AAC5D,SAAS,CAAC,CAAC;AACX,OAAO,CAAC,CAAC;AACT,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;AACxD,KAAK;AACL,IAAI,YAAY;AAChB,GAAG,CAAC;AACJ;;;;"}
@@ -27,6 +27,6 @@ export { useCursor } from './use-cursor/index.mjs';
27
27
  export { useOrderedChildren } from './use-ordered-children/index.mjs';
28
28
  export { SIZE_INJECTION_KEY, useGlobalSize, useSizeProp, useSizeProps } from './use-size/index.mjs';
29
29
  export { useFocusController } from './use-focus-controller/index.mjs';
30
- export { DEFAULT_EMPTY_VALUES, DEFAULT_VALUE_ON_CLEAR, SCOPE, useEmptyValues, useEmptyValuesProps } from './use-empty-values/index.mjs';
30
+ export { DEFAULT_EMPTY_VALUES, DEFAULT_VALUE_ON_CLEAR, SCOPE, emptyValuesContextKey, useEmptyValues, useEmptyValuesProps } from './use-empty-values/index.mjs';
31
31
  export { ariaProps, useAriaProps } from './use-aria/index.mjs';
32
32
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,6 @@
1
- import type { ExtractPropTypes } from 'vue';
1
+ import type { ExtractPropTypes, InjectionKey, Ref } from 'vue';
2
+ declare type EmptyValuesContext = ExtractPropTypes<typeof useEmptyValuesProps>;
3
+ export declare const emptyValuesContextKey: InjectionKey<Ref<EmptyValuesContext>>;
2
4
  export declare const SCOPE = "use-empty-values";
3
5
  export declare const DEFAULT_EMPTY_VALUES: (string | null | undefined)[];
4
6
  export declare const DEFAULT_VALUE_ON_CLEAR: undefined;
@@ -6,8 +8,9 @@ export declare const useEmptyValuesProps: {
6
8
  readonly emptyValues: ArrayConstructor;
7
9
  readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
8
10
  };
9
- export declare const useEmptyValues: (props: ExtractPropTypes<typeof useEmptyValuesProps>, defaultValue?: null | undefined) => {
11
+ export declare const useEmptyValues: (props: EmptyValuesContext, defaultValue?: null | undefined) => {
10
12
  emptyValues: import("vue").ComputedRef<unknown[]>;
11
13
  valueOnClear: import("vue").ComputedRef<any>;
12
14
  isEmptyValue: (value: any) => boolean;
13
15
  };
16
+ export {};
@@ -1,11 +1,10 @@
1
- import { ref, computed } from 'vue';
2
- import '../../components/config-provider/index.mjs';
1
+ import { getCurrentInstance, inject, ref, computed } from 'vue';
3
2
  import '../../utils/index.mjs';
4
3
  import { buildProps } from '../../utils/vue/props/runtime.mjs';
5
4
  import { isFunction } from '@vue/shared';
6
- import { useGlobalConfig } from '../../components/config-provider/src/hooks/use-global-config.mjs';
7
5
  import { debugWarn } from '../../utils/error.mjs';
8
6
 
7
+ const emptyValuesContextKey = Symbol("emptyValuesContextKey");
9
8
  const SCOPE = "use-empty-values";
10
9
  const DEFAULT_EMPTY_VALUES = ["", void 0, null];
11
10
  const DEFAULT_VALUE_ON_CLEAR = void 0;
@@ -18,10 +17,7 @@ const useEmptyValuesProps = buildProps({
18
17
  }
19
18
  });
20
19
  const useEmptyValues = (props, defaultValue) => {
21
- let config = useGlobalConfig();
22
- if (!config.value) {
23
- config = ref({});
24
- }
20
+ const config = getCurrentInstance() ? inject(emptyValuesContextKey, ref({})) : ref({});
25
21
  const emptyValues = computed(() => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES);
26
22
  const valueOnClear = computed(() => {
27
23
  if (isFunction(props.valueOnClear)) {
@@ -48,5 +44,5 @@ const useEmptyValues = (props, defaultValue) => {
48
44
  };
49
45
  };
50
46
 
51
- export { DEFAULT_EMPTY_VALUES, DEFAULT_VALUE_ON_CLEAR, SCOPE, useEmptyValues, useEmptyValuesProps };
47
+ export { DEFAULT_EMPTY_VALUES, DEFAULT_VALUE_ON_CLEAR, SCOPE, emptyValuesContextKey, useEmptyValues, useEmptyValuesProps };
52
48
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-empty-values/index.ts"],"sourcesContent":["import { computed, ref } from 'vue'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { buildProps, debugWarn, isFunction } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const SCOPE = 'use-empty-values'\nexport const DEFAULT_EMPTY_VALUES = ['', undefined, null]\nexport const DEFAULT_VALUE_ON_CLEAR = undefined\n\nexport const useEmptyValuesProps = buildProps({\n /**\n * @description empty values supported by the component\n */\n emptyValues: Array,\n /**\n * @description return value when cleared, if you want to set `undefined`, use `() => undefined`\n */\n valueOnClear: {\n type: [String, Number, Boolean, Function],\n default: undefined,\n validator: (val: any) => (isFunction(val) ? !val() : !val),\n },\n} as const)\n\nexport const useEmptyValues = (\n props: ExtractPropTypes<typeof useEmptyValuesProps>,\n defaultValue?: null | undefined\n) => {\n let config = useGlobalConfig()\n if (!config.value) {\n config = ref({})\n }\n\n const emptyValues = computed(\n () => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES\n )\n\n const valueOnClear = computed(() => {\n // function is used for undefined cause undefined can't be a value of prop\n if (isFunction(props.valueOnClear)) {\n return props.valueOnClear()\n } else if (props.valueOnClear !== undefined) {\n return props.valueOnClear\n } else if (isFunction(config.value.valueOnClear)) {\n return config.value.valueOnClear()\n } else if (config.value.valueOnClear !== undefined) {\n return config.value.valueOnClear\n }\n return defaultValue !== undefined ? defaultValue : DEFAULT_VALUE_ON_CLEAR\n })\n\n const isEmptyValue = (value: any) => {\n return emptyValues.value.includes(value)\n }\n\n if (!emptyValues.value.includes(valueOnClear.value)) {\n debugWarn(SCOPE, 'value-on-clear should be a value of empty-values')\n }\n\n return {\n emptyValues,\n valueOnClear,\n isEmptyValue,\n }\n}\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,KAAK,GAAG,mBAAmB;AAC5B,MAAC,oBAAoB,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;AAC3C,MAAC,sBAAsB,GAAG,KAAK,EAAE;AACjC,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,WAAW,EAAE,KAAK;AACpB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;AAC7C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG;AACvD,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,YAAY,KAAK;AACvD,EAAE,IAAI,MAAM,GAAG,eAAe,EAAE,CAAC;AACjC,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;AACrB,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AACrB,GAAG;AACH,EAAE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC,WAAW,IAAI,MAAM,CAAC,KAAK,CAAC,WAAW,IAAI,oBAAoB,CAAC,CAAC;AAC5G,EAAE,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM;AACtC,IAAI,IAAI,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE;AACxC,MAAM,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC;AAClC,KAAK,MAAM,IAAI,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,EAAE;AAC9C,MAAM,OAAO,KAAK,CAAC,YAAY,CAAC;AAChC,KAAK,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE;AACtD,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;AACzC,KAAK,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,EAAE;AACrD,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC;AACvC,KAAK;AACL,IAAI,OAAO,YAAY,KAAK,KAAK,CAAC,GAAG,YAAY,GAAG,sBAAsB,CAAC;AAC3E,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,YAAY,GAAG,CAAC,KAAK,KAAK;AAClC,IAAI,OAAO,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC7C,GAAG,CAAC;AACJ,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;AACvD,IAAI,SAAS,CAAC,KAAK,EAAE,kDAAkD,CAAC,CAAC;AACzE,GAAG;AACH,EAAE,OAAO;AACT,IAAI,WAAW;AACf,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-empty-values/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref } from 'vue'\nimport { buildProps, debugWarn, isFunction } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, InjectionKey, Ref } from 'vue'\n\ntype EmptyValuesContext = ExtractPropTypes<typeof useEmptyValuesProps>\n\nexport const emptyValuesContextKey: InjectionKey<Ref<EmptyValuesContext>> =\n Symbol('emptyValuesContextKey')\nexport const SCOPE = 'use-empty-values'\nexport const DEFAULT_EMPTY_VALUES = ['', undefined, null]\nexport const DEFAULT_VALUE_ON_CLEAR = undefined\n\nexport const useEmptyValuesProps = buildProps({\n /**\n * @description empty values supported by the component\n */\n emptyValues: Array,\n /**\n * @description return value when cleared, if you want to set `undefined`, use `() => undefined`\n */\n valueOnClear: {\n type: [String, Number, Boolean, Function],\n default: undefined,\n validator: (val: any) => (isFunction(val) ? !val() : !val),\n },\n} as const)\n\nexport const useEmptyValues = (\n props: EmptyValuesContext,\n defaultValue?: null | undefined\n) => {\n const config = getCurrentInstance()\n ? inject(emptyValuesContextKey, ref<EmptyValuesContext>({}))\n : ref<EmptyValuesContext>({})\n\n const emptyValues = computed(\n () => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES\n )\n\n const valueOnClear = computed(() => {\n // function is used for undefined cause undefined can't be a value of prop\n if (isFunction(props.valueOnClear)) {\n return props.valueOnClear()\n } else if (props.valueOnClear !== undefined) {\n return props.valueOnClear\n } else if (isFunction(config.value.valueOnClear)) {\n return config.value.valueOnClear()\n } else if (config.value.valueOnClear !== undefined) {\n return config.value.valueOnClear\n }\n return defaultValue !== undefined ? defaultValue : DEFAULT_VALUE_ON_CLEAR\n })\n\n const isEmptyValue = (value: any) => {\n return emptyValues.value.includes(value)\n }\n\n if (!emptyValues.value.includes(valueOnClear.value)) {\n debugWarn(SCOPE, 'value-on-clear should be a value of empty-values')\n }\n\n return {\n emptyValues,\n valueOnClear,\n isEmptyValue,\n }\n}\n"],"names":[],"mappings":";;;;;;AAEY,MAAC,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,EAAE;AACzD,MAAC,KAAK,GAAG,mBAAmB;AAC5B,MAAC,oBAAoB,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;AAC3C,MAAC,sBAAsB,GAAG,KAAK,EAAE;AACjC,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,WAAW,EAAE,KAAK;AACpB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,CAA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AAC,KAAK,KAAK;AAClC,IAAI,OAAO,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC7C,GAAG,CAAC;AACJ,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;AACvD,IAAI,SAAS,CAAC,KAAK,EAAE,kDAAkD,CAAC,CAAC;AACzE,GAAG;AACH,EAAE,OAAO;AACT,IAAI,WAAW;AACf,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,GAAG,CAAC;AACJ;;;;"}
package/es/index.mjs CHANGED
@@ -14,7 +14,7 @@ export { autocompleteEmits, autocompleteProps } from './components/autocomplete/
14
14
  export { ElAutocomplete } from './components/autocomplete/index.mjs';
15
15
  export { avatarEmits, avatarProps } from './components/avatar/src/avatar.mjs';
16
16
  export { ElAvatar } from './components/avatar/index.mjs';
17
- export { backtopEmits, backtopProps } from './components/backtop/src/backtop2.mjs';
17
+ export { backtopEmits, backtopProps } from './components/backtop/src/backtop.mjs';
18
18
  export { ElBacktop } from './components/backtop/index.mjs';
19
19
  export { badgeProps } from './components/badge/src/badge.mjs';
20
20
  export { ElBadge } from './components/badge/index.mjs';
@@ -81,7 +81,7 @@ export { ElDropdown, ElDropdownItem, ElDropdownMenu } from './components/dropdow
81
81
  export { emptyProps } from './components/empty/src/empty.mjs';
82
82
  export { ElEmpty } from './components/empty/index.mjs';
83
83
  export { formEmits, formMetaProps, formProps } from './components/form/src/form.mjs';
84
- export { formItemProps, formItemValidateStates } from './components/form/src/form-item.mjs';
84
+ export { formItemProps, formItemValidateStates } from './components/form/src/form-item2.mjs';
85
85
  export { formContextKey, formItemContextKey } from './components/form/src/constants.mjs';
86
86
  export { useDisabled, useFormDisabled, useFormSize, useSize } from './components/form/src/hooks/use-form-common-props.mjs';
87
87
  export { useFormItem, useFormItemInputId } from './components/form/src/hooks/use-form-item.mjs';
@@ -121,7 +121,7 @@ export { default as ElPopperArrow } from './components/popper/src/arrow2.mjs';
121
121
  export { default as ElPopperTrigger } from './components/popper/src/trigger2.mjs';
122
122
  export { default as ElPopperContent } from './components/popper/src/content2.mjs';
123
123
  export { ElPopper } from './components/popper/index.mjs';
124
- export { progressProps } from './components/progress/src/progress2.mjs';
124
+ export { progressProps } from './components/progress/src/progress.mjs';
125
125
  export { ElProgress } from './components/progress/index.mjs';
126
126
  export { radioEmits, radioProps, radioPropsBase } from './components/radio/src/radio.mjs';
127
127
  export { radioGroupEmits, radioGroupProps } from './components/radio/src/radio-group.mjs';
@@ -212,7 +212,7 @@ export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualiz
212
212
  export { watermarkProps } from './components/watermark/src/watermark.mjs';
213
213
  export { ElWatermark } from './components/watermark/index.mjs';
214
214
  export { tourEmits, tourProps } from './components/tour/src/tour.mjs';
215
- export { tourStepEmits, tourStepProps } from './components/tour/src/step2.mjs';
215
+ export { tourStepEmits, tourStepProps } from './components/tour/src/step.mjs';
216
216
  export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './components/tour/src/content.mjs';
217
217
  export { ElTour, ElTourStep } from './components/tour/index.mjs';
218
218
  export { anchorEmits, anchorProps } from './components/anchor/src/anchor.mjs';
@@ -268,7 +268,7 @@ export { useCursor } from './hooks/use-cursor/index.mjs';
268
268
  export { useOrderedChildren } from './hooks/use-ordered-children/index.mjs';
269
269
  export { SIZE_INJECTION_KEY, useGlobalSize, useSizeProp, useSizeProps } from './hooks/use-size/index.mjs';
270
270
  export { useFocusController } from './hooks/use-focus-controller/index.mjs';
271
- export { DEFAULT_EMPTY_VALUES, DEFAULT_VALUE_ON_CLEAR, SCOPE, useEmptyValues, useEmptyValuesProps } from './hooks/use-empty-values/index.mjs';
271
+ export { DEFAULT_EMPTY_VALUES, DEFAULT_VALUE_ON_CLEAR, SCOPE, emptyValuesContextKey, useEmptyValues, useEmptyValuesProps } from './hooks/use-empty-values/index.mjs';
272
272
  export { ariaProps, useAriaProps } from './hooks/use-aria/index.mjs';
273
273
 
274
274
  const install = installer.install;
@@ -137,6 +137,11 @@ declare const _default: {
137
137
  clearFilter: string;
138
138
  sumText: string;
139
139
  };
140
+ tour: {
141
+ next: string;
142
+ previous: string;
143
+ finish: string;
144
+ };
140
145
  tree: {
141
146
  emptyText: string;
142
147
  };
@@ -2,7 +2,7 @@ var fr = {
2
2
  name: "fr",
3
3
  el: {
4
4
  breadcrumb: {
5
- label: "Breadcrumb"
5
+ label: `Fil d'Ariane`
6
6
  },
7
7
  colorpicker: {
8
8
  confirm: "OK",
@@ -99,11 +99,11 @@ var fr = {
99
99
  total: "Total {total}",
100
100
  pageClassifier: "",
101
101
  page: "Page",
102
- prev: "Go to previous page",
103
- next: "Go to next page",
102
+ prev: "Aller \xE0 la page pr\xE9c\xE9dente",
103
+ next: "Aller \xE0 la page suivante",
104
104
  currentPage: "page {pager}",
105
- prevPages: "Previous {pager} pages",
106
- nextPages: "Next {pager} pages",
105
+ prevPages: "{pager} pages pr\xE9c\xE9dentes",
106
+ nextPages: "{pager} pages suivantes",
107
107
  deprecationWarning: "Utilisations obsol\xE8tes d\xE9tect\xE9es, veuillez vous r\xE9f\xE9rer \xE0 la documentation el-pagination pour plus de d\xE9tails"
108
108
  },
109
109
  dialog: {
@@ -137,6 +137,11 @@ var fr = {
137
137
  clearFilter: "Tous",
138
138
  sumText: "Somme"
139
139
  },
140
+ tour: {
141
+ next: "suivant",
142
+ previous: "pr\xE9c\xE9dent",
143
+ finish: "fin"
144
+ },
140
145
  tree: {
141
146
  emptyText: "Aucune donn\xE9e"
142
147
  },
@@ -159,9 +164,9 @@ var fr = {
159
164
  cancelButtonText: "Non"
160
165
  },
161
166
  carousel: {
162
- leftArrow: "Carousel arrow left",
163
- rightArrow: "Carousel arrow right",
164
- indicator: "Carousel switch to index {index}"
167
+ leftArrow: "Fl\xE8che du carrousel vers la gauche",
168
+ rightArrow: "Fl\xE8che du carrousel vers la droite",
169
+ indicator: "Passer au carrousel index {index}"
165
170
  }
166
171
  }
167
172
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fr.mjs","sources":["../../../../../packages/locale/lang/fr.ts"],"sourcesContent":["export default {\n name: 'fr',\n el: {\n breadcrumb: {\n label: 'Breadcrumb', // to be translated\n },\n colorpicker: {\n confirm: 'OK',\n clear: 'Effacer',\n defaultLabel: 'color picker',\n description:\n 'La couleur actuelle est {color}. Appuyer sur Entrée pour sélectionner une nouvelle couleur.',\n },\n datepicker: {\n now: 'Maintenant',\n today: 'Auj.',\n cancel: 'Annuler',\n clear: 'Effacer',\n confirm: 'OK',\n dateTablePrompt:\n 'Utiliser les touches fléchées et appuyer sur Entrée pour sélectionner le jour du mois',\n monthTablePrompt:\n 'Utiliser les touches fléchées et appuyer sur Entrée pour sélectionner le mois',\n yearTablePrompt:\n \"Utiliser les touches fléchées et appuyer sur Entrée pour sélectionner l'année\",\n selectedDate: 'Date sélectionnée',\n selectDate: 'Choisir date',\n selectTime: 'Choisir horaire',\n startDate: 'Date début',\n startTime: 'Horaire début',\n endDate: 'Date fin',\n endTime: 'Horaire fin',\n prevYear: 'Année précédente',\n nextYear: 'Année suivante',\n prevMonth: 'Mois précédent',\n nextMonth: 'Mois suivant',\n year: '', // In french, like in english, we don't say \"Année\" after the year number.\n month1: 'Janvier',\n month2: 'Février',\n month3: 'Mars',\n month4: 'Avril',\n month5: 'Mai',\n month6: 'Juin',\n month7: 'Juillet',\n month8: 'Août',\n month9: 'Septembre',\n month10: 'Octobre',\n month11: 'Novembre',\n month12: 'Décembre',\n week: 'Semaine',\n weeks: {\n sun: 'Dim',\n mon: 'Lun',\n tue: 'Mar',\n wed: 'Mer',\n thu: 'Jeu',\n fri: 'Ven',\n sat: 'Sam',\n },\n weeksFull: {\n sun: 'Dimanche',\n mon: 'Lundi',\n tue: 'Mardi',\n wed: 'Mercredi',\n thu: 'Jeudi',\n fri: 'Vendredi',\n sat: 'Samedi',\n },\n months: {\n jan: 'Jan',\n feb: 'Fév',\n mar: 'Mar',\n apr: 'Avr',\n may: 'Mai',\n jun: 'Jun',\n jul: 'Jul',\n aug: 'Aoû',\n sep: 'Sep',\n oct: 'Oct',\n nov: 'Nov',\n dec: 'Déc',\n },\n },\n inputNumber: {\n decrease: 'décrémenter',\n increase: 'incrémenter',\n },\n select: {\n loading: 'Chargement',\n noMatch: 'Aucune correspondance',\n noData: 'Aucune donnée',\n placeholder: 'Choisir',\n },\n cascader: {\n noMatch: 'Aucune correspondance',\n loading: 'Chargement',\n placeholder: 'Choisir',\n noData: 'Aucune donnée',\n },\n pagination: {\n goto: 'Aller à',\n pagesize: '/page',\n total: 'Total {total}',\n pageClassifier: '',\n page: 'Page', // to be translated\n prev: 'Go to previous page', // to be translated\n next: 'Go to next page', // to be translated\n currentPage: 'page {pager}', // to be translated\n prevPages: 'Previous {pager} pages', // to be translated\n nextPages: 'Next {pager} pages', // to be translated\n deprecationWarning:\n 'Utilisations obsolètes détectées, veuillez vous référer à la documentation el-pagination pour plus de détails',\n },\n dialog: {\n close: 'Fermer la boîte de dialogue',\n },\n drawer: {\n close: 'Fermer la boîte de dialogue',\n },\n messagebox: {\n title: 'Message',\n confirm: 'Confirmer',\n cancel: 'Annuler',\n error: 'Erreur',\n close: 'Fermer la boîte de dialogue',\n },\n upload: {\n deleteTip: 'Cliquer sur supprimer pour retirer le fichier',\n delete: 'Supprimer',\n preview: 'Aperçu',\n continue: 'Continuer',\n },\n slider: {\n defaultLabel: 'curseur entre {min} et {max}',\n defaultRangeStartLabel: 'choisir la valeur de départ',\n defaultRangeEndLabel: 'sélectionner la valeur finale',\n },\n table: {\n emptyText: 'Aucune donnée',\n confirmFilter: 'Confirmer',\n resetFilter: 'Réinitialiser',\n clearFilter: 'Tous',\n sumText: 'Somme',\n },\n tree: {\n emptyText: 'Aucune donnée',\n },\n transfer: {\n noMatch: 'Aucune correspondance',\n noData: 'Aucune donnée',\n titles: ['Liste 1', 'Liste 2'],\n filterPlaceholder: 'Entrer un mot clef',\n noCheckedFormat: '{total} elements',\n hasCheckedFormat: '{checked}/{total} coché(s)',\n },\n image: {\n error: 'ECHEC',\n },\n pageHeader: {\n title: 'Retour',\n },\n popconfirm: {\n confirmButtonText: 'Oui',\n cancelButtonText: 'Non',\n },\n carousel: {\n leftArrow: 'Carousel arrow left', // to be translated\n rightArrow: 'Carousel arrow right', // to be translated\n indicator: 'Carousel switch to index {index}', // to be translated\n },\n },\n}\n"],"names":[],"mappings":"AAAA,SAAe;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,EAAE,EAAE;AACN,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,YAAY;AACzB,KAAK;AACL,IAAI,WAAW,EAAE;AACjB,MAAM,OAAO,EAAE,IAAI;AACnB,MAAM,KAAK,EAAE,SAAS;AACtB,MAAM,YAAY,EAAE,cAAc;AAClC,MAAM,WAAW,EAAE,mGAAmG;AACtH,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,GAAG,EAAE,YAAY;AACvB,MAAM,KAAK,EAAE,MAAM;AACnB,MAAM,MAAM,EAAE,SAAS;AACvB,MAAM,KAAK,EAAE,SAAS;AACtB,MAAM,OAAO,EAAE,IAAI;AACnB,MAAM,eAAe,EAAE,mGAAmG;AAC1H,MAAM,gBAAgB,EAAE,2FAA2F;AACnH,MAAM,eAAe,EAAE,8FAA8F;AACrH,MAAM,YAAY,EAAE,yBAAyB;AAC7C,MAAM,UAAU,EAAE,cAAc;AAChC,MAAM,UAAU,EAAE,iBAAiB;AACnC,MAAM,SAAS,EAAE,eAAe;AAChC,MAAM,SAAS,EAAE,kBAAkB;AACnC,MAAM,OAAO,EAAE,UAAU;AACzB,MAAM,OAAO,EAAE,aAAa;AAC5B,MAAM,QAAQ,EAAE,2BAA2B;AAC3C,MAAM,QAAQ,EAAE,mBAAmB;AACnC,MAAM,SAAS,EAAE,sBAAsB;AACvC,MAAM,SAAS,EAAE,cAAc;AAC/B,MAAM,IAAI,EAAE,EAAE;AACd,MAAM,MAAM,EAAE,SAAS;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"],"sourcesContent":["export default {\n name: 'fr',\n el: {\n breadcrumb: {\n label: `Fil d'Ariane`,\n },\n colorpicker: {\n confirm: 'OK',\n clear: 'Effacer',\n defaultLabel: 'color picker',\n description:\n 'La couleur actuelle est {color}. Appuyer sur Entrée pour sélectionner une nouvelle couleur.',\n },\n datepicker: {\n now: 'Maintenant',\n today: 'Auj.',\n cancel: 'Annuler',\n clear: 'Effacer',\n confirm: 'OK',\n dateTablePrompt:\n 'Utiliser les touches fléchées et appuyer sur Entrée pour sélectionner le jour du mois',\n monthTablePrompt:\n 'Utiliser les touches fléchées et appuyer sur Entrée pour sélectionner le mois',\n yearTablePrompt:\n \"Utiliser les touches fléchées et appuyer sur Entrée pour sélectionner l'année\",\n selectedDate: 'Date sélectionnée',\n selectDate: 'Choisir date',\n selectTime: 'Choisir horaire',\n startDate: 'Date début',\n startTime: 'Horaire début',\n endDate: 'Date fin',\n endTime: 'Horaire fin',\n prevYear: 'Année précédente',\n nextYear: 'Année suivante',\n prevMonth: 'Mois précédent',\n nextMonth: 'Mois suivant',\n year: '', // In french, like in english, we don't say \"Année\" after the year number.\n month1: 'Janvier',\n month2: 'Février',\n month3: 'Mars',\n month4: 'Avril',\n month5: 'Mai',\n month6: 'Juin',\n month7: 'Juillet',\n month8: 'Août',\n month9: 'Septembre',\n month10: 'Octobre',\n month11: 'Novembre',\n month12: 'Décembre',\n week: 'Semaine',\n weeks: {\n sun: 'Dim',\n mon: 'Lun',\n tue: 'Mar',\n wed: 'Mer',\n thu: 'Jeu',\n fri: 'Ven',\n sat: 'Sam',\n },\n weeksFull: {\n sun: 'Dimanche',\n mon: 'Lundi',\n tue: 'Mardi',\n wed: 'Mercredi',\n thu: 'Jeudi',\n fri: 'Vendredi',\n sat: 'Samedi',\n },\n months: {\n jan: 'Jan',\n feb: 'Fév',\n mar: 'Mar',\n apr: 'Avr',\n may: 'Mai',\n jun: 'Jun',\n jul: 'Jul',\n aug: 'Aoû',\n sep: 'Sep',\n oct: 'Oct',\n nov: 'Nov',\n dec: 'Déc',\n },\n },\n inputNumber: {\n decrease: 'décrémenter',\n increase: 'incrémenter',\n },\n select: {\n loading: 'Chargement',\n noMatch: 'Aucune correspondance',\n noData: 'Aucune donnée',\n placeholder: 'Choisir',\n },\n cascader: {\n noMatch: 'Aucune correspondance',\n loading: 'Chargement',\n placeholder: 'Choisir',\n noData: 'Aucune donnée',\n },\n pagination: {\n goto: 'Aller à',\n pagesize: '/page',\n total: 'Total {total}',\n pageClassifier: '',\n page: 'Page',\n prev: 'Aller à la page précédente',\n next: 'Aller à la page suivante',\n currentPage: 'page {pager}',\n prevPages: '{pager} pages précédentes',\n nextPages: '{pager} pages suivantes',\n deprecationWarning:\n 'Utilisations obsolètes détectées, veuillez vous référer à la documentation el-pagination pour plus de détails',\n },\n dialog: {\n close: 'Fermer la boîte de dialogue',\n },\n drawer: {\n close: 'Fermer la boîte de dialogue',\n },\n messagebox: {\n title: 'Message',\n confirm: 'Confirmer',\n cancel: 'Annuler',\n error: 'Erreur',\n close: 'Fermer la boîte de dialogue',\n },\n upload: {\n deleteTip: 'Cliquer sur supprimer pour retirer le fichier',\n delete: 'Supprimer',\n preview: 'Aperçu',\n continue: 'Continuer',\n },\n slider: {\n defaultLabel: 'curseur entre {min} et {max}',\n defaultRangeStartLabel: 'choisir la valeur de départ',\n defaultRangeEndLabel: 'sélectionner la valeur finale',\n },\n table: {\n emptyText: 'Aucune donnée',\n confirmFilter: 'Confirmer',\n resetFilter: 'Réinitialiser',\n clearFilter: 'Tous',\n sumText: 'Somme',\n },\n tour: {\n next: 'suivant',\n previous: 'précédent',\n finish: 'fin',\n },\n tree: {\n emptyText: 'Aucune donnée',\n },\n transfer: {\n noMatch: 'Aucune correspondance',\n noData: 'Aucune donnée',\n titles: ['Liste 1', 'Liste 2'],\n filterPlaceholder: 'Entrer un mot clef',\n noCheckedFormat: '{total} elements',\n hasCheckedFormat: '{checked}/{total} coché(s)',\n },\n image: {\n error: 'ECHEC',\n },\n pageHeader: {\n title: 'Retour',\n },\n popconfirm: {\n confirmButtonText: 'Oui',\n cancelButtonText: 'Non',\n },\n carousel: {\n leftArrow: 'Flèche du carrousel vers la gauche',\n rightArrow: 'Flèche du carrousel vers la droite',\n indicator: 'Passer au carrousel index {index}',\n },\n },\n}\n"],"names":[],"mappings":"AAAA,SAAe;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,EAAE,EAAE;AACN,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,CAAC,YAAY,CAAC;AAC3B,KAAK;AACL,IAAI,WAAW,EAAE;AACjB,MAAM,OAAO,EAAE,IAAI;AACnB,MAAM,KAAK,EAAE,SAAS;AACtB,MAAM,YAAY,EAAE,cAAc;AAClC,MAAM,WAAW,EAAE,mGAAmG;AACtH,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,GAAG,EAAE,YAAY;AACvB,MAAM,KAAK,EAAE,MAAM;AACnB,MAAM,MAAM,EAAE,SAAS;AACvB,MAAM,KAAK,EAAE,SAAS;AACtB,MAAM,OAAO,EAAE,IAAI;AACnB,MAAM,eAAe,EAAE,mGAAmG;AAC1H,MAAM,gBAAgB,EAAE,2FAA2F;AACnH,MAAM,eAAe,EAAE,8FAA8F;AACrH,MAAM,YAAY,EAAE,yBAAyB;AAC7C,MAAM,UAAU,EAAE,cAAc;AAChC,MAAM,UAAU,EAAE,iBAAiB;AACnC,MAAM,SAAS,EAAE,eAAe;AAChC,MAAM,SAAS,EAAE,kBAAkB;AACnC,MAAM,OAAO,EAAE,UAAU;AACzB,MAAM,OAAO,EAAE,aAAa;AAC5B,MAAM,QAAQ,EAAE,2BAA2B;AAC3C,MAAM,QAAQ,EAAE,mBAAmB;AACnC,MAAM,SAAS,EAAE,sBAAsB;AACvC,MAAM,SAAS,EAAE,cAAc;AAC/B,MAAM,IAAI,EAAE,EAAE;AACd,MAAM,MAAM,EAAE,SAAS;AACvB,MAAM,MAAM,EAAE,YAAY;AAC1B,MAAM,MAAM,EAA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AG;AACH,CAAC;;;;"}
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "2.7.5";
1
+ export declare const version = "2.7.7";
package/es/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const version = "2.7.5";
1
+ const version = "2.7.7";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '2.7.5'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '2.7.7'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var backtop$1 = require('./src/backtop.js');
7
- var backtop = require('./src/backtop2.js');
6
+ var backtop$1 = require('./src/backtop2.js');
7
+ var backtop = require('./src/backtop.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElBacktop = install.withInstall(backtop$1["default"]);
@@ -2,60 +2,28 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../icon/index.js');
7
- var iconsVue = require('@element-plus/icons-vue');
8
- require('../../../hooks/index.js');
9
- var backtop = require('./backtop2.js');
10
- var useBacktop = require('./use-backtop.js');
11
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
- var index = require('../../../hooks/use-namespace/index.js');
13
-
14
- const COMPONENT_NAME = "ElBacktop";
15
- const __default__ = vue.defineComponent({
16
- name: COMPONENT_NAME
17
- });
18
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19
- ...__default__,
20
- props: backtop.backtopProps,
21
- emits: backtop.backtopEmits,
22
- setup(__props, { emit }) {
23
- const props = __props;
24
- const ns = index.useNamespace("backtop");
25
- const { handleClick, visible } = useBacktop.useBackTop(props, emit, COMPONENT_NAME);
26
- const backTopStyle = vue.computed(() => ({
27
- right: `${props.right}px`,
28
- bottom: `${props.bottom}px`
29
- }));
30
- return (_ctx, _cache) => {
31
- return vue.openBlock(), vue.createBlock(vue.Transition, {
32
- name: `${vue.unref(ns).namespace.value}-fade-in`
33
- }, {
34
- default: vue.withCtx(() => [
35
- vue.unref(visible) ? (vue.openBlock(), vue.createElementBlock("div", {
36
- key: 0,
37
- style: vue.normalizeStyle(vue.unref(backTopStyle)),
38
- class: vue.normalizeClass(vue.unref(ns).b()),
39
- onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args), ["stop"]))
40
- }, [
41
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
42
- vue.createVNode(vue.unref(index$1.ElIcon), {
43
- class: vue.normalizeClass(vue.unref(ns).e("icon"))
44
- }, {
45
- default: vue.withCtx(() => [
46
- vue.createVNode(vue.unref(iconsVue.CaretTop))
47
- ]),
48
- _: 1
49
- }, 8, ["class"])
50
- ])
51
- ], 6)) : vue.createCommentVNode("v-if", true)
52
- ]),
53
- _: 3
54
- }, 8, ["name"]);
55
- };
5
+ const backtopProps = {
6
+ visibilityHeight: {
7
+ type: Number,
8
+ default: 200
9
+ },
10
+ target: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ right: {
15
+ type: Number,
16
+ default: 40
17
+ },
18
+ bottom: {
19
+ type: Number,
20
+ default: 40
56
21
  }
57
- });
58
- var Backtop = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "backtop.vue"]]);
22
+ };
23
+ const backtopEmits = {
24
+ click: (evt) => evt instanceof MouseEvent
25
+ };
59
26
 
60
- exports["default"] = Backtop;
27
+ exports.backtopEmits = backtopEmits;
28
+ exports.backtopProps = backtopProps;
61
29
  //# sourceMappingURL=backtop.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop.js","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":["useNamespace","useBackTop","computed"],"mappings":";;;;;;;;;;;;;;uCAyBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,EAAA,GAAYC,qBAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAeC,aAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"backtop.js","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n /**\n * @description the button will not show until the scroll height reaches this value.\n */\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n /**\n * @description the target to trigger scroll.\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description right distance.\n */\n right: {\n type: Number,\n default: 40,\n },\n /**\n * @description bottom distance.\n */\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":";;;;AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,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;AACU,MAAC,YAAY,GAAG;AAC5B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
@@ -2,28 +2,60 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const backtopProps = {
6
- visibilityHeight: {
7
- type: Number,
8
- default: 200
9
- },
10
- target: {
11
- type: String,
12
- default: ""
13
- },
14
- right: {
15
- type: Number,
16
- default: 40
17
- },
18
- bottom: {
19
- type: Number,
20
- default: 40
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
7
+ var iconsVue = require('@element-plus/icons-vue');
8
+ require('../../../hooks/index.js');
9
+ var backtop = require('./backtop.js');
10
+ var useBacktop = require('./use-backtop.js');
11
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
+ var index = require('../../../hooks/use-namespace/index.js');
13
+
14
+ const COMPONENT_NAME = "ElBacktop";
15
+ const __default__ = vue.defineComponent({
16
+ name: COMPONENT_NAME
17
+ });
18
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19
+ ...__default__,
20
+ props: backtop.backtopProps,
21
+ emits: backtop.backtopEmits,
22
+ setup(__props, { emit }) {
23
+ const props = __props;
24
+ const ns = index.useNamespace("backtop");
25
+ const { handleClick, visible } = useBacktop.useBackTop(props, emit, COMPONENT_NAME);
26
+ const backTopStyle = vue.computed(() => ({
27
+ right: `${props.right}px`,
28
+ bottom: `${props.bottom}px`
29
+ }));
30
+ return (_ctx, _cache) => {
31
+ return vue.openBlock(), vue.createBlock(vue.Transition, {
32
+ name: `${vue.unref(ns).namespace.value}-fade-in`
33
+ }, {
34
+ default: vue.withCtx(() => [
35
+ vue.unref(visible) ? (vue.openBlock(), vue.createElementBlock("div", {
36
+ key: 0,
37
+ style: vue.normalizeStyle(vue.unref(backTopStyle)),
38
+ class: vue.normalizeClass(vue.unref(ns).b()),
39
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args), ["stop"]))
40
+ }, [
41
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
42
+ vue.createVNode(vue.unref(index$1.ElIcon), {
43
+ class: vue.normalizeClass(vue.unref(ns).e("icon"))
44
+ }, {
45
+ default: vue.withCtx(() => [
46
+ vue.createVNode(vue.unref(iconsVue.CaretTop))
47
+ ]),
48
+ _: 1
49
+ }, 8, ["class"])
50
+ ])
51
+ ], 6)) : vue.createCommentVNode("v-if", true)
52
+ ]),
53
+ _: 3
54
+ }, 8, ["name"]);
55
+ };
21
56
  }
22
- };
23
- const backtopEmits = {
24
- click: (evt) => evt instanceof MouseEvent
25
- };
57
+ });
58
+ var Backtop = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "backtop.vue"]]);
26
59
 
27
- exports.backtopEmits = backtopEmits;
28
- exports.backtopProps = backtopProps;
60
+ exports["default"] = Backtop;
29
61
  //# sourceMappingURL=backtop2.js.map