@element-plus/nightly 0.0.20220322 → 0.0.20220325

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 (1209) hide show
  1. package/README.md +5 -0
  2. package/attributes.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.full.js +1596 -802
  5. package/dist/index.full.min.js +7 -7
  6. package/dist/index.full.min.js.map +1 -1
  7. package/dist/index.full.min.mjs +9 -9
  8. package/dist/index.full.min.mjs.map +1 -1
  9. package/dist/index.full.mjs +1589 -804
  10. package/dist/locale/af.js +1 -1
  11. package/dist/locale/af.min.js +1 -1
  12. package/dist/locale/af.min.mjs +1 -1
  13. package/dist/locale/af.mjs +1 -1
  14. package/dist/locale/ar.js +1 -1
  15. package/dist/locale/ar.min.js +1 -1
  16. package/dist/locale/ar.min.mjs +1 -1
  17. package/dist/locale/ar.mjs +1 -1
  18. package/dist/locale/bg.js +1 -1
  19. package/dist/locale/bg.min.js +1 -1
  20. package/dist/locale/bg.min.mjs +1 -1
  21. package/dist/locale/bg.mjs +1 -1
  22. package/dist/locale/bn.js +1 -1
  23. package/dist/locale/bn.min.js +1 -1
  24. package/dist/locale/bn.min.mjs +1 -1
  25. package/dist/locale/bn.mjs +1 -1
  26. package/dist/locale/ca.js +1 -1
  27. package/dist/locale/ca.min.js +1 -1
  28. package/dist/locale/ca.min.mjs +1 -1
  29. package/dist/locale/ca.mjs +1 -1
  30. package/dist/locale/cs.js +1 -1
  31. package/dist/locale/cs.min.js +1 -1
  32. package/dist/locale/cs.min.mjs +1 -1
  33. package/dist/locale/cs.mjs +1 -1
  34. package/dist/locale/da.js +1 -1
  35. package/dist/locale/da.min.js +1 -1
  36. package/dist/locale/da.min.mjs +1 -1
  37. package/dist/locale/da.mjs +1 -1
  38. package/dist/locale/de.js +1 -1
  39. package/dist/locale/de.min.js +1 -1
  40. package/dist/locale/de.min.mjs +1 -1
  41. package/dist/locale/de.mjs +1 -1
  42. package/dist/locale/el.js +1 -1
  43. package/dist/locale/el.min.js +1 -1
  44. package/dist/locale/el.min.mjs +1 -1
  45. package/dist/locale/el.mjs +1 -1
  46. package/dist/locale/en.js +1 -1
  47. package/dist/locale/en.min.js +1 -1
  48. package/dist/locale/en.min.mjs +1 -1
  49. package/dist/locale/en.mjs +1 -1
  50. package/dist/locale/eo.js +1 -1
  51. package/dist/locale/eo.min.js +1 -1
  52. package/dist/locale/eo.min.mjs +1 -1
  53. package/dist/locale/eo.mjs +1 -1
  54. package/dist/locale/es.js +1 -1
  55. package/dist/locale/es.min.js +1 -1
  56. package/dist/locale/es.min.mjs +1 -1
  57. package/dist/locale/es.mjs +1 -1
  58. package/dist/locale/et.js +1 -1
  59. package/dist/locale/et.min.js +1 -1
  60. package/dist/locale/et.min.mjs +1 -1
  61. package/dist/locale/et.mjs +1 -1
  62. package/dist/locale/eu.js +1 -1
  63. package/dist/locale/eu.min.js +1 -1
  64. package/dist/locale/eu.min.mjs +1 -1
  65. package/dist/locale/eu.mjs +1 -1
  66. package/dist/locale/fa.js +1 -1
  67. package/dist/locale/fa.min.js +1 -1
  68. package/dist/locale/fa.min.mjs +1 -1
  69. package/dist/locale/fa.mjs +1 -1
  70. package/dist/locale/fi.js +1 -1
  71. package/dist/locale/fi.min.js +1 -1
  72. package/dist/locale/fi.min.mjs +1 -1
  73. package/dist/locale/fi.mjs +1 -1
  74. package/dist/locale/fr.js +1 -1
  75. package/dist/locale/fr.min.js +1 -1
  76. package/dist/locale/fr.min.mjs +1 -1
  77. package/dist/locale/fr.mjs +1 -1
  78. package/dist/locale/he.js +1 -1
  79. package/dist/locale/he.min.js +1 -1
  80. package/dist/locale/he.min.mjs +1 -1
  81. package/dist/locale/he.mjs +1 -1
  82. package/dist/locale/hr.js +1 -1
  83. package/dist/locale/hr.min.js +1 -1
  84. package/dist/locale/hr.min.mjs +1 -1
  85. package/dist/locale/hr.mjs +1 -1
  86. package/dist/locale/hu.js +1 -1
  87. package/dist/locale/hu.min.js +1 -1
  88. package/dist/locale/hu.min.mjs +1 -1
  89. package/dist/locale/hu.mjs +1 -1
  90. package/dist/locale/hy-am.js +1 -1
  91. package/dist/locale/hy-am.min.js +1 -1
  92. package/dist/locale/hy-am.min.mjs +1 -1
  93. package/dist/locale/hy-am.mjs +1 -1
  94. package/dist/locale/id.js +1 -1
  95. package/dist/locale/id.min.js +1 -1
  96. package/dist/locale/id.min.mjs +1 -1
  97. package/dist/locale/id.mjs +1 -1
  98. package/dist/locale/it.js +1 -1
  99. package/dist/locale/it.min.js +1 -1
  100. package/dist/locale/it.min.mjs +1 -1
  101. package/dist/locale/it.mjs +1 -1
  102. package/dist/locale/ja.js +1 -1
  103. package/dist/locale/ja.min.js +1 -1
  104. package/dist/locale/ja.min.mjs +1 -1
  105. package/dist/locale/ja.mjs +1 -1
  106. package/dist/locale/kk.js +1 -1
  107. package/dist/locale/kk.min.js +1 -1
  108. package/dist/locale/kk.min.mjs +1 -1
  109. package/dist/locale/kk.mjs +1 -1
  110. package/dist/locale/km.js +1 -1
  111. package/dist/locale/km.min.js +1 -1
  112. package/dist/locale/km.min.mjs +1 -1
  113. package/dist/locale/km.mjs +1 -1
  114. package/dist/locale/ko.js +1 -1
  115. package/dist/locale/ko.min.js +1 -1
  116. package/dist/locale/ko.min.mjs +1 -1
  117. package/dist/locale/ko.mjs +1 -1
  118. package/dist/locale/ku.js +1 -1
  119. package/dist/locale/ku.min.js +1 -1
  120. package/dist/locale/ku.min.mjs +1 -1
  121. package/dist/locale/ku.mjs +1 -1
  122. package/dist/locale/ky.js +1 -1
  123. package/dist/locale/ky.min.js +1 -1
  124. package/dist/locale/ky.min.mjs +1 -1
  125. package/dist/locale/ky.mjs +1 -1
  126. package/dist/locale/lt.js +1 -1
  127. package/dist/locale/lt.min.js +1 -1
  128. package/dist/locale/lt.min.mjs +1 -1
  129. package/dist/locale/lt.mjs +1 -1
  130. package/dist/locale/lv.js +1 -1
  131. package/dist/locale/lv.min.js +1 -1
  132. package/dist/locale/lv.min.mjs +1 -1
  133. package/dist/locale/lv.mjs +1 -1
  134. package/dist/locale/mg.js +1 -1
  135. package/dist/locale/mg.min.js +1 -1
  136. package/dist/locale/mg.min.mjs +1 -1
  137. package/dist/locale/mg.mjs +1 -1
  138. package/dist/locale/mn.js +1 -1
  139. package/dist/locale/mn.min.js +1 -1
  140. package/dist/locale/mn.min.mjs +1 -1
  141. package/dist/locale/mn.mjs +1 -1
  142. package/dist/locale/nb-no.js +1 -1
  143. package/dist/locale/nb-no.min.js +1 -1
  144. package/dist/locale/nb-no.min.mjs +1 -1
  145. package/dist/locale/nb-no.mjs +1 -1
  146. package/dist/locale/nl.js +1 -1
  147. package/dist/locale/nl.min.js +1 -1
  148. package/dist/locale/nl.min.mjs +1 -1
  149. package/dist/locale/nl.mjs +1 -1
  150. package/dist/locale/pa.js +1 -1
  151. package/dist/locale/pa.min.js +1 -1
  152. package/dist/locale/pa.min.mjs +1 -1
  153. package/dist/locale/pa.mjs +1 -1
  154. package/dist/locale/pl.js +1 -1
  155. package/dist/locale/pl.min.js +1 -1
  156. package/dist/locale/pl.min.mjs +1 -1
  157. package/dist/locale/pl.mjs +1 -1
  158. package/dist/locale/pt-br.js +1 -1
  159. package/dist/locale/pt-br.min.js +1 -1
  160. package/dist/locale/pt-br.min.mjs +1 -1
  161. package/dist/locale/pt-br.mjs +1 -1
  162. package/dist/locale/pt.js +1 -1
  163. package/dist/locale/pt.min.js +1 -1
  164. package/dist/locale/pt.min.mjs +1 -1
  165. package/dist/locale/pt.mjs +1 -1
  166. package/dist/locale/ro.js +1 -1
  167. package/dist/locale/ro.min.js +1 -1
  168. package/dist/locale/ro.min.mjs +1 -1
  169. package/dist/locale/ro.mjs +1 -1
  170. package/dist/locale/ru.js +1 -1
  171. package/dist/locale/ru.min.js +1 -1
  172. package/dist/locale/ru.min.mjs +1 -1
  173. package/dist/locale/ru.mjs +1 -1
  174. package/dist/locale/sk.js +1 -1
  175. package/dist/locale/sk.min.js +1 -1
  176. package/dist/locale/sk.min.mjs +1 -1
  177. package/dist/locale/sk.mjs +1 -1
  178. package/dist/locale/sl.js +1 -1
  179. package/dist/locale/sl.min.js +1 -1
  180. package/dist/locale/sl.min.mjs +1 -1
  181. package/dist/locale/sl.mjs +1 -1
  182. package/dist/locale/sr.js +1 -1
  183. package/dist/locale/sr.min.js +1 -1
  184. package/dist/locale/sr.min.mjs +1 -1
  185. package/dist/locale/sr.mjs +1 -1
  186. package/dist/locale/sv.js +1 -1
  187. package/dist/locale/sv.min.js +1 -1
  188. package/dist/locale/sv.min.mjs +1 -1
  189. package/dist/locale/sv.mjs +1 -1
  190. package/dist/locale/ta.js +1 -1
  191. package/dist/locale/ta.min.js +1 -1
  192. package/dist/locale/ta.min.mjs +1 -1
  193. package/dist/locale/ta.mjs +1 -1
  194. package/dist/locale/th.js +1 -1
  195. package/dist/locale/th.min.js +1 -1
  196. package/dist/locale/th.min.mjs +1 -1
  197. package/dist/locale/th.mjs +1 -1
  198. package/dist/locale/tk.js +1 -1
  199. package/dist/locale/tk.min.js +1 -1
  200. package/dist/locale/tk.min.mjs +1 -1
  201. package/dist/locale/tk.mjs +1 -1
  202. package/dist/locale/tr.js +1 -1
  203. package/dist/locale/tr.min.js +1 -1
  204. package/dist/locale/tr.min.mjs +1 -1
  205. package/dist/locale/tr.mjs +1 -1
  206. package/dist/locale/ug-cn.js +1 -1
  207. package/dist/locale/ug-cn.min.js +1 -1
  208. package/dist/locale/ug-cn.min.mjs +1 -1
  209. package/dist/locale/ug-cn.mjs +1 -1
  210. package/dist/locale/uk.js +1 -1
  211. package/dist/locale/uk.min.js +1 -1
  212. package/dist/locale/uk.min.mjs +1 -1
  213. package/dist/locale/uk.mjs +1 -1
  214. package/dist/locale/uz-uz.js +1 -1
  215. package/dist/locale/uz-uz.min.js +1 -1
  216. package/dist/locale/uz-uz.min.mjs +1 -1
  217. package/dist/locale/uz-uz.mjs +1 -1
  218. package/dist/locale/vi.js +1 -1
  219. package/dist/locale/vi.min.js +1 -1
  220. package/dist/locale/vi.min.mjs +1 -1
  221. package/dist/locale/vi.mjs +1 -1
  222. package/dist/locale/zh-cn.js +1 -1
  223. package/dist/locale/zh-cn.min.js +1 -1
  224. package/dist/locale/zh-cn.min.mjs +1 -1
  225. package/dist/locale/zh-cn.mjs +1 -1
  226. package/dist/locale/zh-tw.js +1 -1
  227. package/dist/locale/zh-tw.min.js +1 -1
  228. package/dist/locale/zh-tw.min.mjs +1 -1
  229. package/dist/locale/zh-tw.mjs +1 -1
  230. package/es/component.mjs.map +1 -1
  231. package/es/components/affix/src/affix2.mjs.map +1 -1
  232. package/es/components/alert/src/alert2.mjs.map +1 -1
  233. package/es/components/autocomplete/index.d.ts +324 -240
  234. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  235. package/es/components/autocomplete/src/autocomplete.vue.d.ts +324 -240
  236. package/es/components/autocomplete/src/autocomplete2.mjs +1 -0
  237. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  238. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  239. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  240. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  241. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  242. package/es/components/button/index.d.ts +14 -14
  243. package/es/components/button/src/button-group.d.ts +1 -1
  244. package/es/components/button/src/button-group.vue.d.ts +4 -4
  245. package/es/components/button/src/button.d.ts +1 -1
  246. package/es/components/button/src/button.vue.d.ts +6 -6
  247. package/es/components/button/src/button2.mjs.map +1 -1
  248. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  249. package/es/components/calendar/src/date-table2.mjs +1 -1
  250. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  251. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  252. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  253. package/es/components/cascader/index.d.ts +416 -310
  254. package/es/components/cascader/src/index.mjs.map +1 -1
  255. package/es/components/cascader/src/index.vue.d.ts +209 -156
  256. package/es/components/cascader-panel/src/config.d.ts +1 -1
  257. package/es/components/cascader-panel/src/config.mjs.map +1 -1
  258. package/es/components/cascader-panel/src/index.mjs +1 -1
  259. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  260. package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
  261. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  262. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  263. package/es/components/cascader-panel/src/store.d.ts +1 -1
  264. package/es/components/cascader-panel/src/store.mjs.map +1 -1
  265. package/es/components/cascader-panel/src/types.d.ts +1 -1
  266. package/es/components/cascader-panel/src/types.mjs.map +1 -1
  267. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  268. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  269. package/es/components/checkbox/index.d.ts +10 -10
  270. package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
  271. package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  272. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  273. package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  274. package/es/components/checkbox/src/checkbox.vue.d.ts +4 -4
  275. package/es/components/checkbox/src/useCheckbox.d.ts +3 -3
  276. package/es/components/checkbox/src/useCheckbox.mjs.map +1 -1
  277. package/es/components/col/src/col.mjs.map +1 -1
  278. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  279. package/es/components/collapse/src/collapse.mjs.map +1 -1
  280. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  281. package/es/components/collection/src/collection.d.ts +2 -2
  282. package/es/components/collection/src/collection.mjs.map +1 -1
  283. package/es/components/color-picker/index.d.ts +6 -6
  284. package/es/components/color-picker/src/components/alpha-slider.mjs.map +1 -1
  285. package/es/components/color-picker/src/components/hue-slider.mjs.map +1 -1
  286. package/es/components/color-picker/src/components/predefine.mjs.map +1 -1
  287. package/es/components/color-picker/src/components/sv-panel.mjs.map +1 -1
  288. package/es/components/color-picker/src/draggable.mjs.map +1 -1
  289. package/es/components/color-picker/src/index.mjs.map +1 -1
  290. package/es/components/color-picker/src/index.vue.d.ts +3 -3
  291. package/es/components/config-provider/index.d.ts +12 -3
  292. package/es/components/config-provider/src/config-provider.d.ts +20 -5
  293. package/es/components/config-provider/src/config-provider.mjs +12 -1
  294. package/es/components/config-provider/src/config-provider.mjs.map +1 -1
  295. package/es/components/container/src/container.mjs.map +1 -1
  296. package/es/components/date-picker/index.d.ts +4 -4
  297. package/es/components/date-picker/src/date-picker-com/basic-cell-render.mjs.map +1 -1
  298. package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
  299. package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs.map +1 -1
  300. package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs.map +1 -1
  301. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
  302. package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
  303. package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs.map +1 -1
  304. package/es/components/date-picker/src/date-picker.d.ts +2 -2
  305. package/es/components/date-picker/src/date-picker.mjs +8 -8
  306. package/es/components/date-picker/src/date-picker.mjs.map +1 -1
  307. package/es/components/descriptions/index.d.ts +2 -2
  308. package/es/components/descriptions/src/index.mjs.map +1 -1
  309. package/es/components/descriptions/src/index.vue.d.ts +2 -2
  310. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  311. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  312. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  313. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  314. package/es/components/drawer/src/drawer.mjs.map +1 -1
  315. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  316. package/es/components/dropdown/index.d.ts +199 -143
  317. package/es/components/dropdown/src/dropdown-menu.mjs.map +1 -1
  318. package/es/components/dropdown/src/dropdown.d.ts +4 -2
  319. package/es/components/dropdown/src/dropdown.mjs +3 -0
  320. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  321. package/es/components/dropdown/src/dropdown.vue.d.ts +199 -143
  322. package/es/components/dropdown/src/dropdown2.mjs +8 -10
  323. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  324. package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
  325. package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
  326. package/es/components/form/index.d.ts +19 -15
  327. package/es/components/form/src/form-item.d.ts +1 -1
  328. package/es/components/form/src/form-item.vue.d.ts +7 -5
  329. package/es/components/form/src/form-item2.mjs +18 -6
  330. package/es/components/form/src/form-item2.mjs.map +1 -1
  331. package/es/components/form/src/form-label-wrap.mjs.map +1 -1
  332. package/es/components/form/src/form.d.ts +1 -1
  333. package/es/components/form/src/form.mjs.map +1 -1
  334. package/es/components/form/src/form.vue.d.ts +5 -5
  335. package/es/components/form/src/form2.mjs +1 -1
  336. package/es/components/form/src/form2.mjs.map +1 -1
  337. package/es/components/icon/src/icon.mjs.map +1 -1
  338. package/es/components/icon/src/icon2.mjs.map +1 -1
  339. package/es/components/image/src/image.mjs.map +1 -1
  340. package/es/components/image/src/image2.mjs.map +1 -1
  341. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  342. package/es/components/index.mjs +7 -5
  343. package/es/components/index.mjs.map +1 -1
  344. package/es/components/infinite-scroll/src/index.d.ts +1 -1
  345. package/es/components/infinite-scroll/src/index.mjs.map +1 -1
  346. package/es/components/input/index.d.ts +5 -5
  347. package/es/components/input/src/input.d.ts +2 -2
  348. package/es/components/input/src/input.mjs.map +1 -1
  349. package/es/components/input/src/input.vue.d.ts +5 -5
  350. package/es/components/input/src/input2.mjs.map +1 -1
  351. package/es/components/input-number/index.d.ts +20 -20
  352. package/es/components/input-number/src/input-number.d.ts +3 -3
  353. package/es/components/input-number/src/input-number.mjs.map +1 -1
  354. package/es/components/input-number/src/input-number.vue.d.ts +20 -20
  355. package/es/components/input-number/src/input-number2.mjs +35 -54
  356. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  357. package/es/components/link/src/link2.mjs.map +1 -1
  358. package/es/components/loading/src/directive.mjs.map +1 -1
  359. package/es/components/loading/src/loading.mjs.map +1 -1
  360. package/es/components/menu/src/menu-collapse-transition.mjs.map +1 -1
  361. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  362. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  363. package/es/components/menu/src/menu.d.ts +1 -1
  364. package/es/components/menu/src/menu.mjs.map +1 -1
  365. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  366. package/es/components/menu/src/use-menu.d.ts +1 -1
  367. package/es/components/menu/src/use-menu.mjs.map +1 -1
  368. package/es/components/message/src/message-method.mjs.map +1 -1
  369. package/es/components/message/src/message.d.ts +1 -1
  370. package/es/components/message/src/message.mjs.map +1 -1
  371. package/es/components/message/src/message2.mjs.map +1 -1
  372. package/es/components/message-box/src/index.mjs +3 -2
  373. package/es/components/message-box/src/index.mjs.map +1 -1
  374. package/es/components/message-box/src/index.vue.d.ts +5 -5
  375. package/es/components/message-box/src/message-box.type.d.ts +1 -1
  376. package/es/components/message-box/src/messageBox.mjs.map +1 -1
  377. package/es/components/notification/src/notification.d.ts +1 -1
  378. package/es/components/notification/src/notification.mjs.map +1 -1
  379. package/es/components/notification/src/notification2.mjs.map +1 -1
  380. package/es/components/notification/src/notify.mjs.map +1 -1
  381. package/es/components/overlay/src/overlay.mjs.map +1 -1
  382. package/es/components/page-header/src/page-header.mjs.map +1 -1
  383. package/es/components/pagination/src/components/next.mjs.map +1 -1
  384. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  385. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  386. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  387. package/es/components/pagination/src/pagination.d.ts +1 -1
  388. package/es/components/pagination/src/pagination.mjs.map +1 -1
  389. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  390. package/es/components/popover/index.d.ts +542 -368
  391. package/es/components/popover/src/index.mjs.map +1 -1
  392. package/es/components/popover/src/index.vue.d.ts +271 -184
  393. package/es/components/popover/src/popover.d.ts +12 -12
  394. package/es/components/popper/index.d.ts +17 -5
  395. package/es/components/popper/index.mjs +9 -7
  396. package/es/components/popper/index.mjs.map +1 -1
  397. package/es/components/popper/src/arrow.d.ts +5 -0
  398. package/es/components/popper/src/arrow.mjs +7 -35
  399. package/es/components/popper/src/arrow.mjs.map +1 -1
  400. package/es/components/popper/src/arrow.vue.d.ts +7 -1
  401. package/es/components/popper/src/arrow2.mjs +40 -0
  402. package/es/components/popper/src/arrow2.mjs.map +1 -0
  403. package/es/components/popper/src/content.d.ts +36 -0
  404. package/es/components/popper/src/content.mjs +64 -114
  405. package/es/components/popper/src/content.mjs.map +1 -1
  406. package/es/components/popper/src/content.vue.d.ts +189 -83
  407. package/es/components/popper/src/content2.mjs +116 -0
  408. package/es/components/popper/src/content2.mjs.map +1 -0
  409. package/es/components/popper/src/popper.d.ts +1 -44
  410. package/es/components/popper/src/popper.mjs +2 -82
  411. package/es/components/popper/src/popper.mjs.map +1 -1
  412. package/es/components/popper/src/popper.vue.d.ts +9 -2
  413. package/es/components/popper/src/popper2.mjs +22 -15
  414. package/es/components/popper/src/popper2.mjs.map +1 -1
  415. package/es/components/popper/src/trigger.d.ts +15 -0
  416. package/es/components/popper/src/trigger.mjs +15 -77
  417. package/es/components/popper/src/trigger.mjs.map +1 -1
  418. package/es/components/popper/src/trigger.vue.d.ts +43 -25
  419. package/es/components/popper/src/trigger2.mjs +74 -0
  420. package/es/components/popper/src/trigger2.mjs.map +1 -0
  421. package/es/components/popper/src/utils.d.ts +7 -5
  422. package/es/components/popper/src/utils.mjs +3 -13
  423. package/es/components/popper/src/utils.mjs.map +1 -1
  424. package/es/components/progress/src/progress.mjs.map +1 -1
  425. package/es/components/progress/src/progress2.mjs.map +1 -1
  426. package/es/components/radio/index.d.ts +18 -18
  427. package/es/components/radio/src/radio-button.d.ts +1 -1
  428. package/es/components/radio/src/radio-button.vue.d.ts +4 -4
  429. package/es/components/radio/src/radio-group.d.ts +1 -1
  430. package/es/components/radio/src/radio-group.vue.d.ts +3 -3
  431. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  432. package/es/components/radio/src/radio.d.ts +3 -3
  433. package/es/components/radio/src/radio.mjs.map +1 -1
  434. package/es/components/radio/src/radio.vue.d.ts +4 -4
  435. package/es/components/radio/src/radio2.mjs.map +1 -1
  436. package/es/components/rate/index.d.ts +5 -5
  437. package/es/components/rate/src/rate.d.ts +1 -1
  438. package/es/components/rate/src/rate.mjs.map +1 -1
  439. package/es/components/rate/src/rate.vue.d.ts +5 -5
  440. package/es/components/rate/src/rate2.mjs.map +1 -1
  441. package/es/components/result/src/result.mjs.map +1 -1
  442. package/es/components/result/src/result2.mjs.map +1 -1
  443. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
  444. package/es/components/roving-focus-group/src/roving-focus-group.d.ts +2 -2
  445. package/es/components/roving-focus-group/src/roving-focus-item.mjs.map +1 -1
  446. package/es/components/roving-focus-group/src/tokens.d.ts +1 -1
  447. package/es/components/roving-focus-group/src/tokens.mjs.map +1 -1
  448. package/es/components/row/src/row.mjs.map +1 -1
  449. package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
  450. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  451. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  452. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  453. package/es/components/select/index.d.ts +199 -146
  454. package/es/components/select/src/option-group.mjs.map +1 -1
  455. package/es/components/select/src/option.mjs.map +1 -1
  456. package/es/components/select/src/select-dropdown.mjs.map +1 -1
  457. package/es/components/select/src/select.mjs.map +1 -1
  458. package/es/components/select/src/select.vue.d.ts +200 -147
  459. package/es/components/select/src/useOption.mjs.map +1 -1
  460. package/es/components/select/src/useSelect.d.ts +196 -143
  461. package/es/components/select/src/useSelect.mjs +2 -0
  462. package/es/components/select/src/useSelect.mjs.map +1 -1
  463. package/es/components/select-v2/index.d.ts +398 -292
  464. package/es/components/select-v2/src/defaults.d.ts +2 -2
  465. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  466. package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
  467. package/es/components/select-v2/src/select.mjs.map +1 -1
  468. package/es/components/select-v2/src/select.vue.d.ts +199 -146
  469. package/es/components/select-v2/src/useSelect.d.ts +198 -145
  470. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  471. package/es/components/slider/index.d.ts +12 -12
  472. package/es/components/slider/src/index.mjs.map +1 -1
  473. package/es/components/slider/src/index.vue.d.ts +6 -6
  474. package/es/components/slider/src/slider.type.d.ts +1 -1
  475. package/es/components/slider/src/useSlide.mjs.map +1 -1
  476. package/es/components/slider/src/useSliderButton.d.ts +1 -1
  477. package/es/components/slider/src/useSliderButton.mjs.map +1 -1
  478. package/es/components/slider/src/useStops.mjs.map +1 -1
  479. package/es/components/slot/src/only-child.d.ts +1 -1
  480. package/es/components/slot/src/only-child.mjs.map +1 -1
  481. package/es/components/space/index.d.ts +3 -3
  482. package/es/components/space/src/item.mjs.map +1 -1
  483. package/es/components/space/src/space.d.ts +5 -5
  484. package/es/components/space/src/space.mjs.map +1 -1
  485. package/es/components/space/src/use-space.mjs.map +1 -1
  486. package/es/components/steps/src/index.mjs.map +1 -1
  487. package/es/components/steps/src/item.mjs.map +1 -1
  488. package/es/components/steps/src/item.vue.d.ts +1 -1
  489. package/es/components/switch/index.d.ts +3 -3
  490. package/es/components/switch/src/switch.d.ts +1 -1
  491. package/es/components/switch/src/switch.mjs.map +1 -1
  492. package/es/components/switch/src/switch.vue.d.ts +3 -3
  493. package/es/components/switch/src/switch2.mjs.map +1 -1
  494. package/es/components/table/index.d.ts +1 -1
  495. package/es/components/table/src/filter-panel.mjs.map +1 -1
  496. package/es/components/table/src/filter-panel.vue.d.ts +197 -144
  497. package/es/components/table/src/layout-observer.mjs.map +1 -1
  498. package/es/components/table/src/store/current.mjs.map +1 -1
  499. package/es/components/table/src/store/expand.mjs.map +1 -1
  500. package/es/components/table/src/store/index.mjs.map +1 -1
  501. package/es/components/table/src/store/tree.mjs.map +1 -1
  502. package/es/components/table/src/store/watcher.mjs.map +1 -1
  503. package/es/components/table/src/table/defaults.d.ts +1 -1
  504. package/es/components/table/src/table/defaults.mjs.map +1 -1
  505. package/es/components/table/src/table/style-helper.d.ts +1 -1
  506. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  507. package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
  508. package/es/components/table/src/table-body/index.mjs.map +1 -1
  509. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  510. package/es/components/table/src/table-body/styles-helper.mjs +1 -1
  511. package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
  512. package/es/components/table/src/table-column/defaults.d.ts +1 -1
  513. package/es/components/table/src/table-column/defaults.mjs.map +1 -1
  514. package/es/components/table/src/table-column/index.mjs.map +1 -1
  515. package/es/components/table/src/table-column/render-helper.mjs +3 -2
  516. package/es/components/table/src/table-column/render-helper.mjs.map +1 -1
  517. package/es/components/table/src/table-column/watcher-helper.mjs.map +1 -1
  518. package/es/components/table/src/table-footer/style-helper.mjs.map +1 -1
  519. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  520. package/es/components/table/src/table-header/index.d.ts +1 -1
  521. package/es/components/table/src/table-header/index.mjs +1 -1
  522. package/es/components/table/src/table-header/index.mjs.map +1 -1
  523. package/es/components/table/src/table-header/style.helper.mjs +1 -1
  524. package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
  525. package/es/components/table/src/table-layout.mjs +6 -3
  526. package/es/components/table/src/table-layout.mjs.map +1 -1
  527. package/es/components/table/src/table.mjs.map +1 -1
  528. package/es/components/table/src/table.vue.d.ts +1 -1
  529. package/es/components/table/src/util.mjs.map +1 -1
  530. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  531. package/es/components/tabs/src/tab-nav.mjs.map +1 -1
  532. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  533. package/es/components/tabs/src/tabs.d.ts +1 -1
  534. package/es/components/tabs/src/tabs.mjs.map +1 -1
  535. package/es/components/tag/index.d.ts +1 -1
  536. package/es/components/tag/src/tag.vue.d.ts +1 -1
  537. package/es/components/tag/src/tag2.mjs.map +1 -1
  538. package/es/components/time-picker/index.d.ts +4 -4
  539. package/es/components/time-picker/src/common/picker.mjs +44 -29
  540. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  541. package/es/components/time-picker/src/common/picker.vue.d.ts +241 -146
  542. package/es/components/time-picker/src/common/props.d.ts +2 -2
  543. package/es/components/time-picker/src/common/props.mjs.map +1 -1
  544. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +40 -25
  545. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map +1 -1
  546. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +14 -0
  547. package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs +21 -16
  548. package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs.map +1 -1
  549. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +15 -1
  550. package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +50 -30
  551. package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
  552. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -0
  553. package/es/components/time-picker/src/time-picker.d.ts +2 -2
  554. package/es/components/time-picker/src/time-picker.mjs +1 -1
  555. package/es/components/time-picker/src/time-picker.mjs.map +1 -1
  556. package/es/components/time-select/index.d.ts +6 -6
  557. package/es/components/time-select/src/time-select.mjs +1 -1
  558. package/es/components/time-select/src/time-select.mjs.map +1 -1
  559. package/es/components/time-select/src/time-select.vue.d.ts +4 -4
  560. package/es/components/timeline/src/timeline.mjs.map +1 -1
  561. package/es/components/tooltip/index.d.ts +115 -84
  562. package/es/components/tooltip/src/content.mjs +2 -2
  563. package/es/components/tooltip/src/content.mjs.map +1 -1
  564. package/es/components/tooltip/src/content.vue.d.ts +429 -217
  565. package/es/components/tooltip/src/tooltip.d.ts +36 -27
  566. package/es/components/tooltip/src/tooltip.mjs +2 -1
  567. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  568. package/es/components/tooltip/src/tooltip.vue.d.ts +115 -84
  569. package/es/components/tooltip/src/tooltip2.mjs +3 -3
  570. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  571. package/es/components/tooltip/src/trigger.mjs +2 -2
  572. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  573. package/es/components/tooltip/src/trigger.vue.d.ts +25 -6
  574. package/es/components/transfer/src/index.mjs.map +1 -1
  575. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  576. package/es/components/transfer/src/useCheck.d.ts +1 -1
  577. package/es/components/transfer/src/useCheck.mjs.map +1 -1
  578. package/es/components/transfer/src/useCheckedChange.d.ts +1 -1
  579. package/es/components/transfer/src/useCheckedChange.mjs.map +1 -1
  580. package/es/components/transfer/src/useMove.d.ts +1 -1
  581. package/es/components/transfer/src/useMove.mjs.map +1 -1
  582. package/es/components/tree/src/model/node.d.ts +1 -1
  583. package/es/components/tree/src/model/node.mjs.map +1 -1
  584. package/es/components/tree/src/model/tree-store.d.ts +1 -1
  585. package/es/components/tree/src/model/tree-store.mjs.map +1 -1
  586. package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
  587. package/es/components/tree/src/tree-node-content.mjs.map +1 -1
  588. package/es/components/tree/src/tree-node.mjs.map +1 -1
  589. package/es/components/tree/src/tree-node.vue.d.ts +1 -1
  590. package/es/components/tree/src/tree.mjs.map +1 -1
  591. package/es/components/tree/src/tree.type.d.ts +1 -1
  592. package/es/components/tree/src/tree.vue.d.ts +2 -2
  593. package/es/components/tree-v2/src/composables/useCheck.d.ts +1 -1
  594. package/es/components/tree-v2/src/composables/useCheck.mjs +1 -0
  595. package/es/components/tree-v2/src/composables/useCheck.mjs.map +1 -1
  596. package/es/components/tree-v2/src/composables/useFilter.d.ts +1 -1
  597. package/es/components/tree-v2/src/composables/useFilter.mjs.map +1 -1
  598. package/es/components/tree-v2/src/composables/useTree.d.ts +1 -1
  599. package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
  600. package/es/components/tree-v2/src/tree-node-content.mjs.map +1 -1
  601. package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
  602. package/es/components/tree-v2/src/types.d.ts +2 -2
  603. package/es/components/tree-v2/src/virtual-tree.d.ts +1 -1
  604. package/es/components/tree-v2/src/virtual-tree.mjs.map +1 -1
  605. package/es/components/upload/index.d.ts +33 -33
  606. package/es/components/upload/src/ajax.mjs.map +1 -1
  607. package/es/components/upload/src/upload-content.d.ts +3 -3
  608. package/es/components/upload/src/upload-content.mjs.map +1 -1
  609. package/es/components/upload/src/upload-content.vue.d.ts +9 -9
  610. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  611. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  612. package/es/components/upload/src/upload-list.mjs.map +1 -1
  613. package/es/components/upload/src/upload-list.vue.d.ts +4 -4
  614. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  615. package/es/components/upload/src/upload.d.ts +2 -2
  616. package/es/components/upload/src/upload.mjs.map +1 -1
  617. package/es/components/upload/src/upload.vue.d.ts +61 -62
  618. package/es/components/upload/src/upload2.mjs +10 -28
  619. package/es/components/upload/src/upload2.mjs.map +1 -1
  620. package/es/components/upload/src/use-handlers.d.ts +1 -1
  621. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  622. package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  623. package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
  624. package/es/components/virtual-list/src/builders/build-list.d.ts +1 -1
  625. package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
  626. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
  627. package/es/components/virtual-list/src/components/dynamic-size-list.mjs.map +1 -1
  628. package/es/components/virtual-list/src/components/fixed-size-grid.mjs.map +1 -1
  629. package/es/components/virtual-list/src/components/fixed-size-list.mjs.map +1 -1
  630. package/es/components/virtual-list/src/components/scrollbar.mjs.map +1 -1
  631. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs.map +1 -1
  632. package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
  633. package/es/components/virtual-list/src/utils.d.ts +1 -1
  634. package/es/components/virtual-list/src/utils.mjs.map +1 -1
  635. package/es/constants/size.d.ts +1 -1
  636. package/es/constants/size.mjs +1 -1
  637. package/es/constants/size.mjs.map +1 -1
  638. package/es/defaults.d.ts +5 -2
  639. package/es/directives/mousewheel/index.mjs.map +1 -1
  640. package/es/directives/repeat-click/index.mjs.map +1 -1
  641. package/es/directives/resize/index.mjs.map +1 -1
  642. package/es/directives/trap-focus/index.mjs.map +1 -1
  643. package/es/hooks/index.d.ts +1 -0
  644. package/es/hooks/index.mjs +1 -0
  645. package/es/hooks/index.mjs.map +1 -1
  646. package/es/hooks/use-attrs/index.mjs.map +1 -1
  647. package/es/hooks/use-common-props/index.d.ts +2 -2
  648. package/es/hooks/use-common-props/index.mjs +1 -1
  649. package/es/hooks/use-common-props/index.mjs.map +1 -1
  650. package/es/hooks/use-delayed-toggle/index.d.ts +1 -1
  651. package/es/hooks/use-delayed-toggle/index.mjs.map +1 -1
  652. package/es/hooks/use-draggable/index.d.ts +1 -1
  653. package/es/hooks/use-draggable/index.mjs.map +1 -1
  654. package/es/hooks/use-escape-keydown/index.mjs.map +1 -1
  655. package/es/hooks/use-floating/index.d.ts +69 -0
  656. package/es/hooks/use-floating/index.mjs +90 -0
  657. package/es/hooks/use-floating/index.mjs.map +1 -0
  658. package/es/hooks/use-global-config/index.d.ts +5 -2
  659. package/es/hooks/use-global-config/index.mjs.map +1 -1
  660. package/es/hooks/use-intermediate-render/index.mjs.map +1 -1
  661. package/es/hooks/use-locale/index.mjs.map +1 -1
  662. package/es/hooks/use-lockscreen/index.mjs.map +1 -1
  663. package/es/hooks/use-model-toggle/index.d.ts +1 -1
  664. package/es/hooks/use-model-toggle/index.mjs.map +1 -1
  665. package/es/hooks/use-namespace/index.mjs.map +1 -1
  666. package/es/hooks/use-prop/index.mjs.map +1 -1
  667. package/es/hooks/use-teleport/index.d.ts +1 -1
  668. package/es/hooks/use-teleport/index.mjs.map +1 -1
  669. package/es/hooks/use-z-index/index.mjs.map +1 -1
  670. package/es/index.d.ts +6 -2
  671. package/es/index.mjs +14 -6
  672. package/es/index.mjs.map +1 -1
  673. package/es/make-installer.d.ts +11 -2
  674. package/es/make-installer.mjs +3 -2
  675. package/es/make-installer.mjs.map +1 -1
  676. package/es/tokens/config-provider.d.ts +1 -1
  677. package/es/tokens/config-provider.mjs.map +1 -1
  678. package/es/tokens/dialog.d.ts +1 -1
  679. package/es/tokens/dialog.mjs.map +1 -1
  680. package/es/tokens/experimental-features.d.ts +1 -0
  681. package/es/tokens/experimental-features.mjs +2 -0
  682. package/es/tokens/experimental-features.mjs.map +1 -0
  683. package/es/tokens/form.d.ts +1 -1
  684. package/es/tokens/form.mjs.map +1 -1
  685. package/es/tokens/index.d.ts +2 -0
  686. package/es/tokens/index.mjs +2 -0
  687. package/es/tokens/index.mjs.map +1 -1
  688. package/es/tokens/pagination.d.ts +1 -1
  689. package/es/tokens/pagination.mjs.map +1 -1
  690. package/es/tokens/popper.d.ts +22 -0
  691. package/es/tokens/popper.mjs +5 -0
  692. package/es/tokens/popper.mjs.map +1 -0
  693. package/es/tokens/tabs.d.ts +2 -2
  694. package/es/tokens/tabs.mjs.map +1 -1
  695. package/es/utils/vue/icon.mjs.map +1 -1
  696. package/es/utils/vue/install.d.ts +1 -1
  697. package/es/utils/vue/install.mjs.map +1 -1
  698. package/es/utils/vue/style.mjs.map +1 -1
  699. package/es/utils/vue/vnode.mjs.map +1 -1
  700. package/es/version.d.ts +1 -1
  701. package/es/version.mjs +1 -1
  702. package/es/version.mjs.map +1 -1
  703. package/lib/component.js.map +1 -1
  704. package/lib/components/affix/src/affix2.js.map +1 -1
  705. package/lib/components/alert/src/alert2.js.map +1 -1
  706. package/lib/components/autocomplete/index.d.ts +324 -240
  707. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  708. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +324 -240
  709. package/lib/components/autocomplete/src/autocomplete2.js +1 -0
  710. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  711. package/lib/components/avatar/src/avatar2.js.map +1 -1
  712. package/lib/components/backtop/src/backtop2.js.map +1 -1
  713. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  714. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  715. package/lib/components/button/index.d.ts +14 -14
  716. package/lib/components/button/src/button-group.d.ts +1 -1
  717. package/lib/components/button/src/button-group.vue.d.ts +4 -4
  718. package/lib/components/button/src/button.d.ts +1 -1
  719. package/lib/components/button/src/button.vue.d.ts +6 -6
  720. package/lib/components/button/src/button2.js.map +1 -1
  721. package/lib/components/calendar/src/calendar2.js.map +1 -1
  722. package/lib/components/calendar/src/date-table2.js +1 -1
  723. package/lib/components/calendar/src/date-table2.js.map +1 -1
  724. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  725. package/lib/components/carousel/src/carousel2.js.map +1 -1
  726. package/lib/components/cascader/index.d.ts +416 -310
  727. package/lib/components/cascader/src/index.js.map +1 -1
  728. package/lib/components/cascader/src/index.vue.d.ts +209 -156
  729. package/lib/components/cascader-panel/src/config.d.ts +1 -1
  730. package/lib/components/cascader-panel/src/config.js.map +1 -1
  731. package/lib/components/cascader-panel/src/index.js +1 -1
  732. package/lib/components/cascader-panel/src/index.js.map +1 -1
  733. package/lib/components/cascader-panel/src/index.vue.d.ts +1 -1
  734. package/lib/components/cascader-panel/src/node.js.map +1 -1
  735. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  736. package/lib/components/cascader-panel/src/store.d.ts +1 -1
  737. package/lib/components/cascader-panel/src/store.js.map +1 -1
  738. package/lib/components/cascader-panel/src/types.d.ts +1 -1
  739. package/lib/components/cascader-panel/src/types.js.map +1 -1
  740. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  741. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  742. package/lib/components/checkbox/index.d.ts +10 -10
  743. package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
  744. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  745. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  746. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  747. package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
  748. package/lib/components/checkbox/src/useCheckbox.d.ts +3 -3
  749. package/lib/components/checkbox/src/useCheckbox.js.map +1 -1
  750. package/lib/components/col/src/col.js.map +1 -1
  751. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  752. package/lib/components/collapse/src/collapse.js.map +1 -1
  753. package/lib/components/collapse/src/collapse2.js.map +1 -1
  754. package/lib/components/collection/src/collection.d.ts +2 -2
  755. package/lib/components/collection/src/collection.js.map +1 -1
  756. package/lib/components/color-picker/index.d.ts +6 -6
  757. package/lib/components/color-picker/src/components/alpha-slider.js.map +1 -1
  758. package/lib/components/color-picker/src/components/hue-slider.js.map +1 -1
  759. package/lib/components/color-picker/src/components/predefine.js.map +1 -1
  760. package/lib/components/color-picker/src/components/sv-panel.js.map +1 -1
  761. package/lib/components/color-picker/src/draggable.js.map +1 -1
  762. package/lib/components/color-picker/src/index.js.map +1 -1
  763. package/lib/components/color-picker/src/index.vue.d.ts +3 -3
  764. package/lib/components/config-provider/index.d.ts +12 -3
  765. package/lib/components/config-provider/src/config-provider.d.ts +20 -5
  766. package/lib/components/config-provider/src/config-provider.js +12 -1
  767. package/lib/components/config-provider/src/config-provider.js.map +1 -1
  768. package/lib/components/container/src/container.js.map +1 -1
  769. package/lib/components/date-picker/index.d.ts +4 -4
  770. package/lib/components/date-picker/src/date-picker-com/basic-cell-render.js.map +1 -1
  771. package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
  772. package/lib/components/date-picker/src/date-picker-com/basic-month-table.js.map +1 -1
  773. package/lib/components/date-picker/src/date-picker-com/basic-year-table.js.map +1 -1
  774. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
  775. package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
  776. package/lib/components/date-picker/src/date-picker-com/panel-month-range.js.map +1 -1
  777. package/lib/components/date-picker/src/date-picker.d.ts +2 -2
  778. package/lib/components/date-picker/src/date-picker.js +8 -8
  779. package/lib/components/date-picker/src/date-picker.js.map +1 -1
  780. package/lib/components/descriptions/index.d.ts +2 -2
  781. package/lib/components/descriptions/src/index.js.map +1 -1
  782. package/lib/components/descriptions/src/index.vue.d.ts +2 -2
  783. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  784. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  785. package/lib/components/dialog/src/dialog2.js.map +1 -1
  786. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  787. package/lib/components/drawer/src/drawer.js.map +1 -1
  788. package/lib/components/drawer/src/drawer2.js.map +1 -1
  789. package/lib/components/dropdown/index.d.ts +199 -143
  790. package/lib/components/dropdown/src/dropdown-menu.js.map +1 -1
  791. package/lib/components/dropdown/src/dropdown.d.ts +4 -2
  792. package/lib/components/dropdown/src/dropdown.js +3 -0
  793. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  794. package/lib/components/dropdown/src/dropdown.vue.d.ts +199 -143
  795. package/lib/components/dropdown/src/dropdown2.js +7 -9
  796. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  797. package/lib/components/dropdown/src/useDropdown.js.map +1 -1
  798. package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
  799. package/lib/components/form/index.d.ts +19 -15
  800. package/lib/components/form/src/form-item.d.ts +1 -1
  801. package/lib/components/form/src/form-item.vue.d.ts +7 -5
  802. package/lib/components/form/src/form-item2.js +17 -5
  803. package/lib/components/form/src/form-item2.js.map +1 -1
  804. package/lib/components/form/src/form-label-wrap.js.map +1 -1
  805. package/lib/components/form/src/form.d.ts +1 -1
  806. package/lib/components/form/src/form.js.map +1 -1
  807. package/lib/components/form/src/form.vue.d.ts +5 -5
  808. package/lib/components/form/src/form2.js +1 -1
  809. package/lib/components/form/src/form2.js.map +1 -1
  810. package/lib/components/icon/src/icon.js.map +1 -1
  811. package/lib/components/icon/src/icon2.js.map +1 -1
  812. package/lib/components/image/src/image.js.map +1 -1
  813. package/lib/components/image/src/image2.js.map +1 -1
  814. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  815. package/lib/components/index.js +15 -15
  816. package/lib/components/infinite-scroll/src/index.d.ts +1 -1
  817. package/lib/components/infinite-scroll/src/index.js.map +1 -1
  818. package/lib/components/input/index.d.ts +5 -5
  819. package/lib/components/input/src/input.d.ts +2 -2
  820. package/lib/components/input/src/input.js.map +1 -1
  821. package/lib/components/input/src/input.vue.d.ts +5 -5
  822. package/lib/components/input/src/input2.js.map +1 -1
  823. package/lib/components/input-number/index.d.ts +20 -20
  824. package/lib/components/input-number/src/input-number.d.ts +3 -3
  825. package/lib/components/input-number/src/input-number.js.map +1 -1
  826. package/lib/components/input-number/src/input-number.vue.d.ts +20 -20
  827. package/lib/components/input-number/src/input-number2.js +35 -54
  828. package/lib/components/input-number/src/input-number2.js.map +1 -1
  829. package/lib/components/link/src/link2.js.map +1 -1
  830. package/lib/components/loading/src/directive.js.map +1 -1
  831. package/lib/components/loading/src/loading.js.map +1 -1
  832. package/lib/components/menu/src/menu-collapse-transition.js.map +1 -1
  833. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  834. package/lib/components/menu/src/menu-item2.js.map +1 -1
  835. package/lib/components/menu/src/menu.d.ts +1 -1
  836. package/lib/components/menu/src/menu.js.map +1 -1
  837. package/lib/components/menu/src/sub-menu.js.map +1 -1
  838. package/lib/components/menu/src/use-menu.d.ts +1 -1
  839. package/lib/components/menu/src/use-menu.js.map +1 -1
  840. package/lib/components/message/src/message-method.js.map +1 -1
  841. package/lib/components/message/src/message.d.ts +1 -1
  842. package/lib/components/message/src/message.js.map +1 -1
  843. package/lib/components/message/src/message2.js.map +1 -1
  844. package/lib/components/message-box/src/index.js +3 -2
  845. package/lib/components/message-box/src/index.js.map +1 -1
  846. package/lib/components/message-box/src/index.vue.d.ts +5 -5
  847. package/lib/components/message-box/src/message-box.type.d.ts +1 -1
  848. package/lib/components/message-box/src/messageBox.js.map +1 -1
  849. package/lib/components/notification/src/notification.d.ts +1 -1
  850. package/lib/components/notification/src/notification.js.map +1 -1
  851. package/lib/components/notification/src/notification2.js.map +1 -1
  852. package/lib/components/notification/src/notify.js.map +1 -1
  853. package/lib/components/overlay/src/overlay.js.map +1 -1
  854. package/lib/components/page-header/src/page-header.js.map +1 -1
  855. package/lib/components/pagination/src/components/next.js.map +1 -1
  856. package/lib/components/pagination/src/components/pager.js.map +1 -1
  857. package/lib/components/pagination/src/components/prev.js.map +1 -1
  858. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  859. package/lib/components/pagination/src/pagination.d.ts +1 -1
  860. package/lib/components/pagination/src/pagination.js.map +1 -1
  861. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  862. package/lib/components/popover/index.d.ts +542 -368
  863. package/lib/components/popover/src/index.js.map +1 -1
  864. package/lib/components/popover/src/index.vue.d.ts +271 -184
  865. package/lib/components/popover/src/popover.d.ts +12 -12
  866. package/lib/components/popper/index.d.ts +17 -5
  867. package/lib/components/popper/index.js +10 -10
  868. package/lib/components/popper/index.js.map +1 -1
  869. package/lib/components/popper/src/arrow.d.ts +5 -0
  870. package/lib/components/popper/src/arrow.js +7 -35
  871. package/lib/components/popper/src/arrow.js.map +1 -1
  872. package/lib/components/popper/src/arrow.vue.d.ts +7 -1
  873. package/lib/components/popper/src/arrow2.js +44 -0
  874. package/lib/components/popper/src/arrow2.js.map +1 -0
  875. package/lib/components/popper/src/content.d.ts +36 -0
  876. package/lib/components/popper/src/content.js +64 -113
  877. package/lib/components/popper/src/content.js.map +1 -1
  878. package/lib/components/popper/src/content.vue.d.ts +189 -83
  879. package/lib/components/popper/src/content2.js +120 -0
  880. package/lib/components/popper/src/content2.js.map +1 -0
  881. package/lib/components/popper/src/popper.d.ts +1 -44
  882. package/lib/components/popper/src/popper.js +0 -84
  883. package/lib/components/popper/src/popper.js.map +1 -1
  884. package/lib/components/popper/src/popper.vue.d.ts +9 -2
  885. package/lib/components/popper/src/popper2.js +23 -16
  886. package/lib/components/popper/src/popper2.js.map +1 -1
  887. package/lib/components/popper/src/trigger.d.ts +15 -0
  888. package/lib/components/popper/src/trigger.js +15 -77
  889. package/lib/components/popper/src/trigger.js.map +1 -1
  890. package/lib/components/popper/src/trigger.vue.d.ts +43 -25
  891. package/lib/components/popper/src/trigger2.js +78 -0
  892. package/lib/components/popper/src/trigger2.js.map +1 -0
  893. package/lib/components/popper/src/utils.d.ts +7 -5
  894. package/lib/components/popper/src/utils.js +2 -12
  895. package/lib/components/popper/src/utils.js.map +1 -1
  896. package/lib/components/progress/src/progress.js.map +1 -1
  897. package/lib/components/progress/src/progress2.js.map +1 -1
  898. package/lib/components/radio/index.d.ts +18 -18
  899. package/lib/components/radio/src/radio-button.d.ts +1 -1
  900. package/lib/components/radio/src/radio-button.vue.d.ts +4 -4
  901. package/lib/components/radio/src/radio-group.d.ts +1 -1
  902. package/lib/components/radio/src/radio-group.vue.d.ts +3 -3
  903. package/lib/components/radio/src/radio-group2.js.map +1 -1
  904. package/lib/components/radio/src/radio.d.ts +3 -3
  905. package/lib/components/radio/src/radio.js.map +1 -1
  906. package/lib/components/radio/src/radio.vue.d.ts +4 -4
  907. package/lib/components/radio/src/radio2.js.map +1 -1
  908. package/lib/components/rate/index.d.ts +5 -5
  909. package/lib/components/rate/src/rate.d.ts +1 -1
  910. package/lib/components/rate/src/rate.js.map +1 -1
  911. package/lib/components/rate/src/rate.vue.d.ts +5 -5
  912. package/lib/components/rate/src/rate2.js.map +1 -1
  913. package/lib/components/result/src/result.js.map +1 -1
  914. package/lib/components/result/src/result2.js.map +1 -1
  915. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
  916. package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +2 -2
  917. package/lib/components/roving-focus-group/src/roving-focus-item.js.map +1 -1
  918. package/lib/components/roving-focus-group/src/tokens.d.ts +1 -1
  919. package/lib/components/roving-focus-group/src/tokens.js.map +1 -1
  920. package/lib/components/row/src/row.js.map +1 -1
  921. package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
  922. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  923. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  924. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  925. package/lib/components/select/index.d.ts +199 -146
  926. package/lib/components/select/src/option-group.js.map +1 -1
  927. package/lib/components/select/src/option.js.map +1 -1
  928. package/lib/components/select/src/select-dropdown.js.map +1 -1
  929. package/lib/components/select/src/select.js.map +1 -1
  930. package/lib/components/select/src/select.vue.d.ts +200 -147
  931. package/lib/components/select/src/useOption.js.map +1 -1
  932. package/lib/components/select/src/useSelect.d.ts +196 -143
  933. package/lib/components/select/src/useSelect.js +2 -0
  934. package/lib/components/select/src/useSelect.js.map +1 -1
  935. package/lib/components/select-v2/index.d.ts +398 -292
  936. package/lib/components/select-v2/src/defaults.d.ts +2 -2
  937. package/lib/components/select-v2/src/defaults.js.map +1 -1
  938. package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
  939. package/lib/components/select-v2/src/select.js.map +1 -1
  940. package/lib/components/select-v2/src/select.vue.d.ts +199 -146
  941. package/lib/components/select-v2/src/useSelect.d.ts +198 -145
  942. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  943. package/lib/components/slider/index.d.ts +12 -12
  944. package/lib/components/slider/src/index.js.map +1 -1
  945. package/lib/components/slider/src/index.vue.d.ts +6 -6
  946. package/lib/components/slider/src/slider.type.d.ts +1 -1
  947. package/lib/components/slider/src/useSlide.js.map +1 -1
  948. package/lib/components/slider/src/useSliderButton.d.ts +1 -1
  949. package/lib/components/slider/src/useSliderButton.js.map +1 -1
  950. package/lib/components/slider/src/useStops.js.map +1 -1
  951. package/lib/components/slot/src/only-child.d.ts +1 -1
  952. package/lib/components/slot/src/only-child.js.map +1 -1
  953. package/lib/components/space/index.d.ts +3 -3
  954. package/lib/components/space/src/item.js.map +1 -1
  955. package/lib/components/space/src/space.d.ts +5 -5
  956. package/lib/components/space/src/space.js.map +1 -1
  957. package/lib/components/space/src/use-space.js.map +1 -1
  958. package/lib/components/steps/src/index.js.map +1 -1
  959. package/lib/components/steps/src/item.js.map +1 -1
  960. package/lib/components/steps/src/item.vue.d.ts +1 -1
  961. package/lib/components/switch/index.d.ts +3 -3
  962. package/lib/components/switch/src/switch.d.ts +1 -1
  963. package/lib/components/switch/src/switch.js.map +1 -1
  964. package/lib/components/switch/src/switch.vue.d.ts +3 -3
  965. package/lib/components/switch/src/switch2.js.map +1 -1
  966. package/lib/components/table/index.d.ts +1 -1
  967. package/lib/components/table/src/filter-panel.js.map +1 -1
  968. package/lib/components/table/src/filter-panel.vue.d.ts +197 -144
  969. package/lib/components/table/src/layout-observer.js.map +1 -1
  970. package/lib/components/table/src/store/current.js.map +1 -1
  971. package/lib/components/table/src/store/expand.js.map +1 -1
  972. package/lib/components/table/src/store/index.js.map +1 -1
  973. package/lib/components/table/src/store/tree.js.map +1 -1
  974. package/lib/components/table/src/store/watcher.js.map +1 -1
  975. package/lib/components/table/src/table/defaults.d.ts +1 -1
  976. package/lib/components/table/src/table/defaults.js.map +1 -1
  977. package/lib/components/table/src/table/style-helper.d.ts +1 -1
  978. package/lib/components/table/src/table/style-helper.js.map +1 -1
  979. package/lib/components/table/src/table-body/events-helper.js.map +1 -1
  980. package/lib/components/table/src/table-body/index.js.map +1 -1
  981. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  982. package/lib/components/table/src/table-body/styles-helper.js +1 -1
  983. package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
  984. package/lib/components/table/src/table-column/defaults.d.ts +1 -1
  985. package/lib/components/table/src/table-column/defaults.js.map +1 -1
  986. package/lib/components/table/src/table-column/index.js.map +1 -1
  987. package/lib/components/table/src/table-column/render-helper.js +2 -1
  988. package/lib/components/table/src/table-column/render-helper.js.map +1 -1
  989. package/lib/components/table/src/table-column/watcher-helper.js.map +1 -1
  990. package/lib/components/table/src/table-footer/style-helper.js.map +1 -1
  991. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  992. package/lib/components/table/src/table-header/index.d.ts +1 -1
  993. package/lib/components/table/src/table-header/index.js +1 -1
  994. package/lib/components/table/src/table-header/index.js.map +1 -1
  995. package/lib/components/table/src/table-header/style.helper.js +1 -1
  996. package/lib/components/table/src/table-header/style.helper.js.map +1 -1
  997. package/lib/components/table/src/table-layout.js +6 -3
  998. package/lib/components/table/src/table-layout.js.map +1 -1
  999. package/lib/components/table/src/table.js.map +1 -1
  1000. package/lib/components/table/src/table.vue.d.ts +1 -1
  1001. package/lib/components/table/src/util.js.map +1 -1
  1002. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  1003. package/lib/components/tabs/src/tab-nav.js.map +1 -1
  1004. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  1005. package/lib/components/tabs/src/tabs.d.ts +1 -1
  1006. package/lib/components/tabs/src/tabs.js.map +1 -1
  1007. package/lib/components/tag/index.d.ts +1 -1
  1008. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  1009. package/lib/components/tag/src/tag2.js.map +1 -1
  1010. package/lib/components/time-picker/index.d.ts +4 -4
  1011. package/lib/components/time-picker/src/common/picker.js +46 -31
  1012. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  1013. package/lib/components/time-picker/src/common/picker.vue.d.ts +241 -146
  1014. package/lib/components/time-picker/src/common/props.d.ts +2 -2
  1015. package/lib/components/time-picker/src/common/props.js.map +1 -1
  1016. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +40 -25
  1017. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js.map +1 -1
  1018. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +14 -0
  1019. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js +22 -17
  1020. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js.map +1 -1
  1021. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +15 -1
  1022. package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +49 -29
  1023. package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
  1024. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -0
  1025. package/lib/components/time-picker/src/time-picker.d.ts +2 -2
  1026. package/lib/components/time-picker/src/time-picker.js +1 -1
  1027. package/lib/components/time-picker/src/time-picker.js.map +1 -1
  1028. package/lib/components/time-select/index.d.ts +6 -6
  1029. package/lib/components/time-select/src/time-select.js +1 -1
  1030. package/lib/components/time-select/src/time-select.js.map +1 -1
  1031. package/lib/components/time-select/src/time-select.vue.d.ts +4 -4
  1032. package/lib/components/timeline/src/timeline.js.map +1 -1
  1033. package/lib/components/tooltip/index.d.ts +115 -84
  1034. package/lib/components/tooltip/src/content.js +1 -1
  1035. package/lib/components/tooltip/src/content.vue.d.ts +429 -217
  1036. package/lib/components/tooltip/src/tooltip.d.ts +36 -27
  1037. package/lib/components/tooltip/src/tooltip.js +4 -3
  1038. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  1039. package/lib/components/tooltip/src/tooltip.vue.d.ts +115 -84
  1040. package/lib/components/tooltip/src/tooltip2.js +3 -3
  1041. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  1042. package/lib/components/tooltip/src/trigger.js +1 -1
  1043. package/lib/components/tooltip/src/trigger.js.map +1 -1
  1044. package/lib/components/tooltip/src/trigger.vue.d.ts +25 -6
  1045. package/lib/components/transfer/src/index.js.map +1 -1
  1046. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  1047. package/lib/components/transfer/src/useCheck.d.ts +1 -1
  1048. package/lib/components/transfer/src/useCheck.js.map +1 -1
  1049. package/lib/components/transfer/src/useCheckedChange.d.ts +1 -1
  1050. package/lib/components/transfer/src/useCheckedChange.js.map +1 -1
  1051. package/lib/components/transfer/src/useMove.d.ts +1 -1
  1052. package/lib/components/transfer/src/useMove.js.map +1 -1
  1053. package/lib/components/tree/src/model/node.d.ts +1 -1
  1054. package/lib/components/tree/src/model/node.js.map +1 -1
  1055. package/lib/components/tree/src/model/tree-store.d.ts +1 -1
  1056. package/lib/components/tree/src/model/tree-store.js.map +1 -1
  1057. package/lib/components/tree/src/model/useKeydown.js.map +1 -1
  1058. package/lib/components/tree/src/tree-node-content.js.map +1 -1
  1059. package/lib/components/tree/src/tree-node.js.map +1 -1
  1060. package/lib/components/tree/src/tree-node.vue.d.ts +1 -1
  1061. package/lib/components/tree/src/tree.js.map +1 -1
  1062. package/lib/components/tree/src/tree.type.d.ts +1 -1
  1063. package/lib/components/tree/src/tree.vue.d.ts +2 -2
  1064. package/lib/components/tree-v2/src/composables/useCheck.d.ts +1 -1
  1065. package/lib/components/tree-v2/src/composables/useCheck.js +1 -0
  1066. package/lib/components/tree-v2/src/composables/useCheck.js.map +1 -1
  1067. package/lib/components/tree-v2/src/composables/useFilter.d.ts +1 -1
  1068. package/lib/components/tree-v2/src/composables/useFilter.js.map +1 -1
  1069. package/lib/components/tree-v2/src/composables/useTree.d.ts +1 -1
  1070. package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
  1071. package/lib/components/tree-v2/src/tree-node-content.js.map +1 -1
  1072. package/lib/components/tree-v2/src/tree-node.js.map +1 -1
  1073. package/lib/components/tree-v2/src/types.d.ts +2 -2
  1074. package/lib/components/tree-v2/src/virtual-tree.d.ts +1 -1
  1075. package/lib/components/tree-v2/src/virtual-tree.js.map +1 -1
  1076. package/lib/components/upload/index.d.ts +33 -33
  1077. package/lib/components/upload/src/ajax.js.map +1 -1
  1078. package/lib/components/upload/src/upload-content.d.ts +3 -3
  1079. package/lib/components/upload/src/upload-content.js.map +1 -1
  1080. package/lib/components/upload/src/upload-content.vue.d.ts +9 -9
  1081. package/lib/components/upload/src/upload-content2.js.map +1 -1
  1082. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  1083. package/lib/components/upload/src/upload-list.js.map +1 -1
  1084. package/lib/components/upload/src/upload-list.vue.d.ts +4 -4
  1085. package/lib/components/upload/src/upload-list2.js.map +1 -1
  1086. package/lib/components/upload/src/upload.d.ts +2 -2
  1087. package/lib/components/upload/src/upload.js.map +1 -1
  1088. package/lib/components/upload/src/upload.vue.d.ts +61 -62
  1089. package/lib/components/upload/src/upload2.js +9 -27
  1090. package/lib/components/upload/src/upload2.js.map +1 -1
  1091. package/lib/components/upload/src/use-handlers.d.ts +1 -1
  1092. package/lib/components/upload/src/use-handlers.js.map +1 -1
  1093. package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  1094. package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
  1095. package/lib/components/virtual-list/src/builders/build-list.d.ts +1 -1
  1096. package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
  1097. package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
  1098. package/lib/components/virtual-list/src/components/dynamic-size-list.js.map +1 -1
  1099. package/lib/components/virtual-list/src/components/fixed-size-grid.js.map +1 -1
  1100. package/lib/components/virtual-list/src/components/fixed-size-list.js.map +1 -1
  1101. package/lib/components/virtual-list/src/components/scrollbar.js.map +1 -1
  1102. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js.map +1 -1
  1103. package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
  1104. package/lib/components/virtual-list/src/utils.d.ts +1 -1
  1105. package/lib/components/virtual-list/src/utils.js.map +1 -1
  1106. package/lib/constants/size.d.ts +1 -1
  1107. package/lib/constants/size.js +1 -1
  1108. package/lib/constants/size.js.map +1 -1
  1109. package/lib/defaults.d.ts +5 -2
  1110. package/lib/directives/mousewheel/index.js.map +1 -1
  1111. package/lib/directives/repeat-click/index.js.map +1 -1
  1112. package/lib/directives/resize/index.js.map +1 -1
  1113. package/lib/directives/trap-focus/index.js.map +1 -1
  1114. package/lib/hooks/index.d.ts +1 -0
  1115. package/lib/hooks/index.js +5 -0
  1116. package/lib/hooks/index.js.map +1 -1
  1117. package/lib/hooks/use-attrs/index.js.map +1 -1
  1118. package/lib/hooks/use-common-props/index.d.ts +2 -2
  1119. package/lib/hooks/use-common-props/index.js +1 -1
  1120. package/lib/hooks/use-common-props/index.js.map +1 -1
  1121. package/lib/hooks/use-delayed-toggle/index.d.ts +1 -1
  1122. package/lib/hooks/use-delayed-toggle/index.js.map +1 -1
  1123. package/lib/hooks/use-draggable/index.d.ts +1 -1
  1124. package/lib/hooks/use-draggable/index.js.map +1 -1
  1125. package/lib/hooks/use-escape-keydown/index.js.map +1 -1
  1126. package/lib/hooks/use-floating/index.d.ts +69 -0
  1127. package/lib/hooks/use-floating/index.js +97 -0
  1128. package/lib/hooks/use-floating/index.js.map +1 -0
  1129. package/lib/hooks/use-global-config/index.d.ts +5 -2
  1130. package/lib/hooks/use-global-config/index.js.map +1 -1
  1131. package/lib/hooks/use-intermediate-render/index.js.map +1 -1
  1132. package/lib/hooks/use-locale/index.js.map +1 -1
  1133. package/lib/hooks/use-lockscreen/index.js.map +1 -1
  1134. package/lib/hooks/use-model-toggle/index.d.ts +1 -1
  1135. package/lib/hooks/use-model-toggle/index.js.map +1 -1
  1136. package/lib/hooks/use-namespace/index.js.map +1 -1
  1137. package/lib/hooks/use-prop/index.js.map +1 -1
  1138. package/lib/hooks/use-teleport/index.d.ts +1 -1
  1139. package/lib/hooks/use-teleport/index.js.map +1 -1
  1140. package/lib/hooks/use-z-index/index.js.map +1 -1
  1141. package/lib/index.d.ts +6 -2
  1142. package/lib/index.js +32 -15
  1143. package/lib/index.js.map +1 -1
  1144. package/lib/make-installer.d.ts +11 -2
  1145. package/lib/make-installer.js +3 -2
  1146. package/lib/make-installer.js.map +1 -1
  1147. package/lib/tokens/config-provider.d.ts +1 -1
  1148. package/lib/tokens/config-provider.js.map +1 -1
  1149. package/lib/tokens/dialog.d.ts +1 -1
  1150. package/lib/tokens/dialog.js.map +1 -1
  1151. package/lib/tokens/experimental-features.d.ts +1 -0
  1152. package/lib/tokens/experimental-features.js +3 -0
  1153. package/lib/tokens/experimental-features.js.map +1 -0
  1154. package/lib/tokens/form.d.ts +1 -1
  1155. package/lib/tokens/form.js.map +1 -1
  1156. package/lib/tokens/index.d.ts +2 -0
  1157. package/lib/tokens/index.js +4 -0
  1158. package/lib/tokens/index.js.map +1 -1
  1159. package/lib/tokens/pagination.d.ts +1 -1
  1160. package/lib/tokens/pagination.js.map +1 -1
  1161. package/lib/tokens/popper.d.ts +22 -0
  1162. package/lib/{components/popper/src/tokens.js → tokens/popper.js} +3 -3
  1163. package/lib/tokens/popper.js.map +1 -0
  1164. package/lib/tokens/tabs.d.ts +2 -2
  1165. package/lib/tokens/tabs.js.map +1 -1
  1166. package/lib/utils/vue/icon.js.map +1 -1
  1167. package/lib/utils/vue/install.d.ts +1 -1
  1168. package/lib/utils/vue/install.js.map +1 -1
  1169. package/lib/utils/vue/style.js.map +1 -1
  1170. package/lib/utils/vue/vnode.js.map +1 -1
  1171. package/lib/version.d.ts +1 -1
  1172. package/lib/version.js +1 -1
  1173. package/lib/version.js.map +1 -1
  1174. package/package.json +3 -2
  1175. package/tags.json +1 -1
  1176. package/theme-chalk/base.css +1 -1
  1177. package/theme-chalk/el-button.css +1 -1
  1178. package/theme-chalk/el-card.css +1 -1
  1179. package/theme-chalk/el-cascader-panel.css +1 -1
  1180. package/theme-chalk/el-checkbox-button.css +1 -1
  1181. package/theme-chalk/el-checkbox.css +1 -1
  1182. package/theme-chalk/el-date-picker.css +1 -1
  1183. package/theme-chalk/el-empty.css +1 -1
  1184. package/theme-chalk/el-input.css +1 -1
  1185. package/theme-chalk/el-radio-button.css +1 -1
  1186. package/theme-chalk/el-radio.css +1 -1
  1187. package/theme-chalk/el-reset.css +1 -1
  1188. package/theme-chalk/el-skeleton-item.css +1 -1
  1189. package/theme-chalk/el-table.css +1 -1
  1190. package/theme-chalk/el-tag.css +1 -1
  1191. package/theme-chalk/el-time-picker.css +1 -1
  1192. package/theme-chalk/el-var.css +1 -1
  1193. package/theme-chalk/index.css +1 -1
  1194. package/theme-chalk/src/button.scss +40 -77
  1195. package/theme-chalk/src/cascader-panel.scss +6 -1
  1196. package/theme-chalk/src/common/var.scss +201 -194
  1197. package/theme-chalk/src/date-picker/time-spinner.scss +5 -6
  1198. package/theme-chalk/src/empty.scss +2 -1
  1199. package/theme-chalk/src/input.scss +1 -0
  1200. package/theme-chalk/src/mixins/_button.scss +2 -6
  1201. package/theme-chalk/src/reset.scss +3 -3
  1202. package/theme-chalk/src/skeleton-item.scss +2 -1
  1203. package/theme-chalk/src/tag.scss +3 -2
  1204. package/web-types.json +1 -1
  1205. package/es/components/popper/src/tokens.d.ts +0 -14
  1206. package/es/components/popper/src/tokens.mjs +0 -5
  1207. package/es/components/popper/src/tokens.mjs.map +0 -1
  1208. package/lib/components/popper/src/tokens.d.ts +0 -14
  1209. package/lib/components/popper/src/tokens.js.map +0 -1
@@ -0,0 +1,90 @@
1
+ import { ref, unref, watch, onMounted } from 'vue';
2
+ import { isClient, unrefElement } from '@vueuse/core';
3
+ import { isNil } from 'lodash-unified';
4
+ import { computePosition, arrow } from '@floating-ui/dom';
5
+ import '../../utils/index.mjs';
6
+ import { buildProps } from '../../utils/vue/props.mjs';
7
+
8
+ const useFloatingProps = buildProps({});
9
+ const unrefReference = (elRef) => {
10
+ if (!isClient)
11
+ return;
12
+ if (!elRef)
13
+ return elRef;
14
+ const unrefEl = unrefElement(elRef);
15
+ if (unrefEl)
16
+ return unrefEl;
17
+ return elRef;
18
+ };
19
+ const getPositionDataWithUnit = (record, key) => {
20
+ const value = record == null ? void 0 : record[key];
21
+ return isNil(value) ? "" : `${value}px`;
22
+ };
23
+ const useFloating = ({
24
+ middleware,
25
+ placement,
26
+ strategy
27
+ }) => {
28
+ const referenceRef = ref();
29
+ const contentRef = ref();
30
+ const x = ref();
31
+ const y = ref();
32
+ const middlewareData = ref({});
33
+ const states = {
34
+ x,
35
+ y,
36
+ placement,
37
+ strategy,
38
+ middlewareData
39
+ };
40
+ const update = async () => {
41
+ if (!isClient)
42
+ return;
43
+ const referenceEl = unrefReference(referenceRef);
44
+ const contentEl = unrefElement(contentRef);
45
+ if (!referenceEl || !contentEl)
46
+ return;
47
+ const data = await computePosition(referenceEl, contentEl, {
48
+ placement: unref(placement),
49
+ strategy: unref(strategy),
50
+ middleware: unref(middleware)
51
+ });
52
+ ["x", "y"].forEach((key) => data[key] = getPositionDataWithUnit(data, key));
53
+ Object.keys(states).forEach((key) => {
54
+ states[key].value = data[key];
55
+ });
56
+ };
57
+ watch(referenceRef, () => update());
58
+ watch(contentRef, () => update());
59
+ onMounted(() => update());
60
+ return {
61
+ ...states,
62
+ update,
63
+ referenceRef,
64
+ contentRef
65
+ };
66
+ };
67
+ const arrowMiddleware = ({
68
+ arrowRef,
69
+ padding
70
+ }) => {
71
+ return {
72
+ name: "arrow",
73
+ options: {
74
+ element: arrowRef,
75
+ padding
76
+ },
77
+ fn(args) {
78
+ const arrowEl = unref(arrowRef);
79
+ if (!arrowEl)
80
+ return {};
81
+ return arrow({
82
+ element: arrowEl,
83
+ padding
84
+ }).fn(args);
85
+ }
86
+ };
87
+ };
88
+
89
+ export { arrowMiddleware, getPositionDataWithUnit, useFloating, useFloatingProps };
90
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-floating/index.ts"],"sourcesContent":["import { onMounted, ref, unref, watch } from 'vue'\nimport { isClient, unrefElement } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport { arrow as arrowCore, computePosition } from '@floating-ui/dom'\n\nimport { buildProps } from '@element-plus/utils'\n\nimport type { Ref, ToRefs } from 'vue'\nimport type {\n ComputePositionReturn,\n Middleware,\n Placement,\n SideObject,\n Strategy,\n VirtualElement,\n} from '@floating-ui/dom'\n\nexport const useFloatingProps = buildProps({} as const)\n\nexport type UseFloatingProps = ToRefs<{\n middleware: Array<Middleware>\n placement: Placement\n strategy: Strategy\n}>\n\ntype ElementRef = Parameters<typeof unrefElement>['0']\n\nconst unrefReference = (\n elRef: ElementRef | Ref<VirtualElement | undefined>\n) => {\n if (!isClient) return\n if (!elRef) return elRef\n const unrefEl = unrefElement(elRef as ElementRef)\n if (unrefEl) return unrefEl\n return elRef as VirtualElement\n}\n\nexport const getPositionDataWithUnit = <T extends Record<string, number>>(\n record: T | undefined,\n key: keyof T\n) => {\n const value = record?.[key]\n return isNil(value) ? '' : `${value}px`\n}\n\nexport const useFloating = ({\n middleware,\n placement,\n strategy,\n}: UseFloatingProps) => {\n const referenceRef = ref<HTMLElement | VirtualElement>()\n const contentRef = ref<HTMLElement>()\n const x = ref<string>()\n const y = ref<string>()\n const middlewareData = ref<ComputePositionReturn['middlewareData']>({})\n\n const states = {\n x,\n y,\n placement,\n strategy,\n middlewareData,\n } as const\n\n const update = async () => {\n if (!isClient) return\n\n const referenceEl = unrefReference(referenceRef)\n const contentEl = unrefElement(contentRef)\n\n if (!referenceEl || !contentEl) return\n\n const data = await computePosition(referenceEl, contentEl, {\n placement: unref(placement),\n strategy: unref(strategy),\n middleware: unref(middleware),\n })\n\n ;['x', 'y'].forEach(\n (key) => (data[key] = getPositionDataWithUnit(data as any, key))\n )\n\n Object.keys(states).forEach((key) => {\n states[key].value = data[key]\n })\n }\n\n watch(referenceRef, () => update())\n\n watch(contentRef, () => update())\n\n onMounted(() => update())\n\n return {\n ...states,\n update,\n referenceRef,\n contentRef,\n }\n}\n\nexport type ArrowMiddlewareProps = {\n arrowRef: Ref<HTMLElement | undefined>\n padding?: number | SideObject\n}\n\nexport const arrowMiddleware = ({\n arrowRef,\n padding,\n}: ArrowMiddlewareProps): Middleware => {\n return {\n name: 'arrow',\n options: {\n element: arrowRef,\n padding,\n },\n\n fn(args) {\n const arrowEl = unref(arrowRef)\n if (!arrowEl) return {}\n\n return arrowCore({\n element: arrowEl,\n padding,\n }).fn(args)\n },\n }\n}\n"],"names":["arrowCore"],"mappings":";;;;;;;AAKY,MAAC,gBAAgB,GAAG,UAAU,CAAC,EAAE,EAAE;AAC/C,MAAM,cAAc,GAAG,CAAC,KAAK,KAAK;AAClC,EAAE,IAAI,CAAC,QAAQ;AACf,IAAI,OAAO;AACX,EAAE,IAAI,CAAC,KAAK;AACZ,IAAI,OAAO,KAAK,CAAC;AACjB,EAAE,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,EAAE,IAAI,OAAO;AACb,IAAI,OAAO,OAAO,CAAC;AACnB,EAAE,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AACU,MAAC,uBAAuB,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK;AACxD,EAAE,MAAM,KAAK,GAAG,MAAM,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACtD,EAAE,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;AAC1C,EAAE;AACU,MAAC,WAAW,GAAG,CAAC;AAC5B,EAAE,UAAU;AACZ,EAAE,SAAS;AACX,EAAE,QAAQ;AACV,CAAC,KAAK;AACN,EAAE,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AAC7B,EAAE,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC;AAC3B,EAAE,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;AAClB,EAAE,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;AAClB,EAAE,MAAM,cAAc,GAAG,GAAG,CAAC,EAAE,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OAAO;AACT,IAAI,GAAG,MAAM;AACb,IAAI,MAAM;AACV,IAAI,YAAY;AAChB,IAAI,UAAU;AACd,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,eAAe,GAAG,CAAC;AAChC,EAAE,QAAQ;AACV,EAAE,OAAO;AACT,CAAC,KAAK;AACN,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE;AACb,MAAM,OAAO,EAAE,QAAQ;AACvB,MAAM,OAAO;AACb,KAAK;AACL,IAAI,EAAE,CAAC,IAAI,EAAE;AACb,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;AACtC,MAAM,IAAI,CAAC,OAAO;AAClB,QAAQ,OAAO,EAAE,CAAC;AAClB,MAAM,OAAOA,KAAS,CAAC;AACvB,QAAQ,OAAO,EAAE,OAAO;AACxB,QAAQ,OAAO;AACf,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AAClB,KAAK;AACL,GAAG,CAAC;AACJ;;;;"}
@@ -1,12 +1,15 @@
1
1
  import type { MaybeRef } from '@vueuse/core';
2
- import type { Ref, App } from 'vue';
2
+ import type { App, Ref } from 'vue';
3
3
  import type { ConfigProviderContext } from 'element-plus/es/tokens';
4
4
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
5
5
  export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
6
6
  export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContext>, app?: App<any> | undefined, global?: boolean) => import("vue").ComputedRef<Partial<import("vue").ExtractPropTypes<{
7
+ readonly a11y: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
7
8
  readonly locale: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("../../locale").Language>, unknown, unknown, unknown, unknown>;
8
- readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "default" | "small" | "large", unknown>;
9
+ readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "large", unknown>;
9
10
  readonly button: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("../..").ButtonConfigContext>, unknown, unknown, unknown, unknown>;
11
+ readonly experimentalFeatures: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("element-plus/es/tokens").ExperimentalFeatures>, unknown, unknown, unknown, unknown>;
12
+ readonly keyboardNavigation: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
10
13
  readonly message: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("../..").MessageConfigContext>, unknown, unknown, unknown, unknown>;
11
14
  readonly zIndex: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, unknown, unknown, unknown, unknown>;
12
15
  readonly namespace: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "el", unknown, unknown, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-global-config/index.ts"],"sourcesContent":["import { inject, ref, computed, unref, provide, getCurrentInstance } from 'vue'\nimport { configProviderContextKey } from '@element-plus/tokens'\nimport { debugWarn, keysOf } from '@element-plus/utils'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { Ref, App } from 'vue'\nimport type { ConfigProviderContext } from '@element-plus/tokens'\n\n// this is meant to fix global methods like `ElMessage(opts)`, this way we can inject current locale\n// into the component as default injection value.\n// refer to: https://github.com/element-plus/element-plus/issues/2610#issuecomment-887965266\nconst globalConfig = ref<ConfigProviderContext>()\n\nexport function useGlobalConfig<\n K extends keyof ConfigProviderContext,\n D extends ConfigProviderContext[K]\n>(\n key: K,\n defaultValue?: D\n): Ref<Exclude<ConfigProviderContext[K], undefined> | D>\nexport function useGlobalConfig(): Ref<ConfigProviderContext>\nexport function useGlobalConfig(\n key?: keyof ConfigProviderContext,\n defaultValue = undefined\n) {\n const config = getCurrentInstance()\n ? inject(configProviderContextKey, globalConfig)\n : globalConfig\n if (key) {\n return computed(() => config.value?.[key] ?? defaultValue)\n } else {\n return config\n }\n}\n\nexport const provideGlobalConfig = (\n config: MaybeRef<ConfigProviderContext>,\n app?: App,\n global = false\n) => {\n const inSetup = !!getCurrentInstance()\n const oldConfig = inSetup ? useGlobalConfig() : undefined\n\n const provideFn = app?.provide ?? (inSetup ? provide : undefined)\n if (!provideFn) {\n debugWarn(\n 'provideGlobalConfig',\n 'provideGlobalConfig() can only be used inside setup().'\n )\n return\n }\n\n const context = computed(() => {\n const cfg = unref(config)\n if (!oldConfig?.value) return cfg\n return mergeConfig(oldConfig.value, cfg)\n })\n provideFn(configProviderContextKey, context)\n if (global || !globalConfig.value) {\n globalConfig.value = context.value\n }\n return context\n}\n\nconst mergeConfig = (\n a: ConfigProviderContext,\n b: ConfigProviderContext\n): ConfigProviderContext => {\n const keys = [...new Set([...keysOf(a), ...keysOf(b)])]\n const obj = {}\n for (const key of keys) {\n obj[key] = b[key] ?? a[key]\n }\n return obj\n}\n"],"names":[],"mappings":";;;;;;;AAGA,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AACpB,SAAS,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,KAAK,CAAC,EAAE;AAC5D,EAAE,MAAM,MAAM,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC,wBAAwB,EAAE,YAAY,CAAC,GAAG,YAAY,CAAC;AACtG,EAAE,IAAI,GAAG,EAAE;AACX,IAAI,OAAO,QAAQ,CAAC,MAAM;AAC1B,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;AACjB,MAAM,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAA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AAW,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC9B,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,MAAM,IAAI,GAAG,CAAC,mBAAmB,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC;AACjB,EAAE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC1B,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AACnD,GAAG;AACH,EAAE,OAAO,GAAG,CAAC;AACb,CAAC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-global-config/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, provide, ref, unref } from 'vue'\nimport { configProviderContextKey } from '@element-plus/tokens'\nimport { debugWarn, keysOf } from '@element-plus/utils'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { App, Ref } from 'vue'\nimport type { ConfigProviderContext } from '@element-plus/tokens'\n\n// this is meant to fix global methods like `ElMessage(opts)`, this way we can inject current locale\n// into the component as default injection value.\n// refer to: https://github.com/element-plus/element-plus/issues/2610#issuecomment-887965266\nconst globalConfig = ref<ConfigProviderContext>()\n\nexport function useGlobalConfig<\n K extends keyof ConfigProviderContext,\n D extends ConfigProviderContext[K]\n>(\n key: K,\n defaultValue?: D\n): Ref<Exclude<ConfigProviderContext[K], undefined> | D>\nexport function useGlobalConfig(): Ref<ConfigProviderContext>\nexport function useGlobalConfig(\n key?: keyof ConfigProviderContext,\n defaultValue = undefined\n) {\n const config = getCurrentInstance()\n ? inject(configProviderContextKey, globalConfig)\n : globalConfig\n if (key) {\n return computed(() => config.value?.[key] ?? defaultValue)\n } else {\n return config\n }\n}\n\nexport const provideGlobalConfig = (\n config: MaybeRef<ConfigProviderContext>,\n app?: App,\n global = false\n) => {\n const inSetup = !!getCurrentInstance()\n const oldConfig = inSetup ? useGlobalConfig() : undefined\n\n const provideFn = app?.provide ?? (inSetup ? provide : undefined)\n if (!provideFn) {\n debugWarn(\n 'provideGlobalConfig',\n 'provideGlobalConfig() can only be used inside setup().'\n )\n return\n }\n\n const context = computed(() => {\n const cfg = unref(config)\n if (!oldConfig?.value) return cfg\n return mergeConfig(oldConfig.value, cfg)\n })\n provideFn(configProviderContextKey, context)\n if (global || !globalConfig.value) {\n globalConfig.value = context.value\n }\n return context\n}\n\nconst mergeConfig = (\n a: ConfigProviderContext,\n b: ConfigProviderContext\n): ConfigProviderContext => {\n const keys = [...new Set([...keysOf(a), ...keysOf(b)])]\n const obj = {}\n for (const key of keys) {\n obj[key] = b[key] ?? a[key]\n }\n return obj\n}\n"],"names":[],"mappings":";;;;;;;AAGA,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AACpB,SAAS,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,KAAK,CAAC,EAAE;AAC5D,EAAE,MAAM,MAAM,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC,wBAAwB,EAAE,YAAY,CAAC,GAAG,YAAY,CAAC;AACtG,EAAE,IAAI,GAAG,EAAE;AACX,IAAI,OAAO,QAAQ,CAAC,MAAM;AAC1B,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;AACjB,MAAM,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,YAAY,CAAC;AAC/F,KAAK,CAAC,CAAC;AACP,GAAG,MAAM;AACT,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG;AACH,CAAC;AACW,MAAC,mBAAmB,GAAG,CAAC,MAAM,EAAE,GAAG,EA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AC,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC;AACjB,EAAE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC1B,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AACnD,GAAG;AACH,EAAE,OAAO,GAAG,CAAC;AACb,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-intermediate-render/index.ts"],"sourcesContent":["import { nextTick, watch, unref } from 'vue'\n\nimport type { Ref } from 'vue'\n\nexport type UseDelayedRenderProps = {\n indicator: Ref<boolean>\n intermediateIndicator: Ref<boolean>\n shouldSetIntermediate?: (step: 'show' | 'hide') => boolean\n beforeShow?: () => void\n beforeHide?: () => void\n afterShow?: () => void\n afterHide?: () => void\n}\n\nexport const useDelayedRender = ({\n indicator,\n intermediateIndicator,\n shouldSetIntermediate = () => true,\n beforeShow,\n afterShow,\n afterHide,\n beforeHide,\n}: UseDelayedRenderProps) => {\n watch(\n () => unref(indicator),\n (val) => {\n if (val) {\n beforeShow?.()\n nextTick(() => {\n if (!unref(indicator)) return\n if (shouldSetIntermediate('show')) {\n intermediateIndicator.value = true\n }\n })\n } else {\n beforeHide?.()\n nextTick(() => {\n if (unref(indicator)) return\n\n if (shouldSetIntermediate('hide')) {\n intermediateIndicator.value = false\n }\n })\n }\n }\n )\n\n // because we don't always set the value ourselves, so that we\n // simply watch the value's state, then invoke the corresponding hook.\n watch(\n () => intermediateIndicator.value,\n (val) => {\n if (val) {\n afterShow?.()\n } else {\n afterHide?.()\n }\n }\n )\n}\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG,CAAC;AACjC,EAAE,SAAS;AACX,EAAE,qBAAqB;A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s","sources":["../../../../../packages/hooks/use-intermediate-render/index.ts"],"sourcesContent":["import { nextTick, unref, watch } from 'vue'\n\nimport type { Ref } from 'vue'\n\nexport type UseDelayedRenderProps = {\n indicator: Ref<boolean>\n intermediateIndicator: Ref<boolean>\n shouldSetIntermediate?: (step: 'show' | 'hide') => boolean\n beforeShow?: () => void\n beforeHide?: () => void\n afterShow?: () => void\n afterHide?: () => void\n}\n\nexport const useDelayedRender = ({\n indicator,\n intermediateIndicator,\n shouldSetIntermediate = () => true,\n beforeShow,\n afterShow,\n afterHide,\n beforeHide,\n}: UseDelayedRenderProps) => {\n watch(\n () => unref(indicator),\n (val) => {\n if (val) {\n beforeShow?.()\n nextTick(() => {\n if (!unref(indicator)) return\n if (shouldSetIntermediate('show')) {\n intermediateIndicator.value = true\n }\n })\n } else {\n beforeHide?.()\n nextTick(() => {\n if (unref(indicator)) return\n\n if (shouldSetIntermediate('hide')) {\n intermediateIndicator.value = false\n }\n })\n }\n }\n )\n\n // because we don't always set the value ourselves, so that we\n // simply watch the value's state, then invoke the corresponding hook.\n watch(\n () => intermediateIndicator.value,\n (val) => {\n if (val) {\n afterShow?.()\n } else {\n afterHide?.()\n }\n }\n )\n}\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG,CAAC;AACjC,EAAE,SAAS;AACX,EAAE,qBAAqB;AACvB,EAAE,qBAAqB,GAAG,MAAM,IAAI;AACpC,EAAE,UAAU;AACZ,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,UAAU;AACZ,CAAC,KAAK;AACN,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,KAAK;AACzC,IAAI,IAAI,GAAG,EAAE;AACb,MAAM,UAAU,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;AACjD,MAAM,QAAQ,CAAC,MAAM;AACrB,QAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;AAC7B,UAAU,OAAO;AACjB,QAAQ,IAAI,qBAAqB,CAAC,MAAM,CAAC,EAAE;AAC3C,UAAU,qBAAqB,CAAC,KAAK,GAAG,IAAI,CAAC;AAC7C,SAAS;AACT,OAAO,CAAC,CAAC;AACT,KAAK,MAAM;AACX,MAAM,UAAU,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;AACjD,MAAM,QAAQ,CAAC,MAAM;AACrB,QAAQ,IAAI,KAAK,CAAC,SAAS,CAAC;AAC5B,UAAU,OAAO;AACjB,QAAQ,IAAI,qBAAqB,CAAC,MAAM,CAAC,EAAE;AAC3C,UAAU,qBAAqB,CAAC,KAAK,GAAG,KAAK,CAAC;AAC9C,SAAS;AACT,OAAO,CAAC,CAAC;AACT,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,KAAK,CAAC,MAAM,qBAAqB,CAAC,KAAK,EAAE,CAAC,GAAG,KAAK;AACpD,IAAI,IAAI,GAAG,EAAE;AACb,MAAM,SAAS,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,SAAS,EAAE,CAAC;AAC/C,KAAK,MAAM;AACX,MAAM,SAAS,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,SAAS,EAAE,CAAC;AAC/C,KAAK;AACL,GAAG,CAAC,CAAC;AACL;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-locale/index.ts"],"sourcesContent":["import { computed, ref, unref, isRef } from 'vue'\nimport { get } from 'lodash-unified'\nimport English from '@element-plus/locale/lang/en'\nimport { useGlobalConfig } from '../use-global-config'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { Ref } from 'vue'\nimport type { Language } from '@element-plus/locale'\n\nexport type TranslatorOption = Record<string, string | number>\nexport type Translator = (path: string, option?: TranslatorOption) => string\nexport type LocaleContext = {\n locale: Ref<Language>\n lang: Ref<string>\n t: Translator\n}\n\nexport const buildTranslator =\n (locale: MaybeRef<Language>): Translator =>\n (path, option) =>\n translate(path, option, unref(locale))\n\nexport const translate = (\n path: string,\n option: undefined | TranslatorOption,\n locale: Language\n): string =>\n (get(locale, path, path) as string).replace(\n /\\{(\\w+)\\}/g,\n (_, key) => `${option?.[key] ?? `{${key}}`}`\n )\n\nexport const buildLocaleContext = (\n locale: MaybeRef<Language>\n): LocaleContext => {\n const lang = computed(() => unref(locale).name)\n const localeRef = isRef(locale) ? locale : ref(locale)\n return {\n lang,\n locale: localeRef,\n t: buildTranslator(locale),\n }\n}\n\nexport const useLocale = () => {\n const locale = useGlobalConfig('locale')\n return buildLocaleContext(computed(() => locale.value || English))\n}\n"],"names":[],"mappings":";;;;;AAIY,MAAC,eAAe,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;AACxF,MAAC,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK;AAC7G,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,MAAM,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG,CAAC,MAAM,KAAK;AAC9C,EAAE,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAClD,EAAE,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,EAAE,OAAO;AACT,IAAI,IAAI;AACR,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC;AAC9B,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,SAAS,GAAG,MAAM;AAC/B,EAAE,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAC3C,EAAE,OAAO,kBAAkB,CAAC,QAAQ,CAAC,MAAM,MAAM,CAAC,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;AACrE;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-locale/index.ts"],"sourcesContent":["import { computed, isRef, ref, unref } from 'vue'\nimport { get } from 'lodash-unified'\nimport English from '@element-plus/locale/lang/en'\nimport { useGlobalConfig } from '../use-global-config'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { Ref } from 'vue'\nimport type { Language } from '@element-plus/locale'\n\nexport type TranslatorOption = Record<string, string | number>\nexport type Translator = (path: string, option?: TranslatorOption) => string\nexport type LocaleContext = {\n locale: Ref<Language>\n lang: Ref<string>\n t: Translator\n}\n\nexport const buildTranslator =\n (locale: MaybeRef<Language>): Translator =>\n (path, option) =>\n translate(path, option, unref(locale))\n\nexport const translate = (\n path: string,\n option: undefined | TranslatorOption,\n locale: Language\n): string =>\n (get(locale, path, path) as string).replace(\n /\\{(\\w+)\\}/g,\n (_, key) => `${option?.[key] ?? `{${key}}`}`\n )\n\nexport const buildLocaleContext = (\n locale: MaybeRef<Language>\n): LocaleContext => {\n const lang = computed(() => unref(locale).name)\n const localeRef = isRef(locale) ? locale : ref(locale)\n return {\n lang,\n locale: localeRef,\n t: buildTranslator(locale),\n }\n}\n\nexport const useLocale = () => {\n const locale = useGlobalConfig('locale')\n return buildLocaleContext(computed(() => locale.value || English))\n}\n"],"names":[],"mappings":";;;;;AAIY,MAAC,eAAe,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;AACxF,MAAC,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK;AAC7G,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,MAAM,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG,CAAC,MAAM,KAAK;AAC9C,EAAE,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAClD,EAAE,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,EAAE,OAAO;AACT,IAAI,IAAI;AACR,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC;AAC9B,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,SAAS,GAAG,MAAM;AAC/B,EAAE,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAC3C,EAAE,OAAO,kBAAkB,CAAC,QAAQ,CAAC,MAAM,MAAM,CAAC,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;AACrE;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import { watch, isRef, onScopeDispose } from 'vue'\n\nimport { isClient } from '@vueuse/core'\nimport {\n throwError,\n addClass,\n removeClass,\n hasClass,\n getStyle,\n getScrollBarWidth,\n} from '@element-plus/utils'\n\nimport type { Ref } from 'vue'\n\n/**\n * Hook that monitoring the ref value to lock or unlock the screen.\n * When the trigger became true, it assumes modal is now opened and vice versa.\n * @param trigger {Ref<boolean>}\n */\nexport const useLockscreen = (trigger: Ref<boolean>) => {\n if (!isRef(trigger)) {\n throwError(\n '[useLockscreen]',\n 'You need to pass a ref param to this function'\n )\n }\n if (!isClient || hasClass(document.body, 'el-popup-parent--hidden')) {\n return\n }\n\n let scrollBarWidth = 0\n let withoutHiddenClass = false\n let bodyPaddingRight = '0'\n let computedBodyPaddingRight = 0\n\n const cleanup = () => {\n removeClass(document.body, 'el-popup-parent--hidden')\n if (withoutHiddenClass) {\n document.body.style.paddingRight = bodyPaddingRight\n }\n }\n watch(trigger, (val) => {\n if (!val) {\n cleanup()\n return\n }\n\n withoutHiddenClass = !hasClass(document.body, 'el-popup-parent--hidden')\n if (withoutHiddenClass) {\n bodyPaddingRight = document.body.style.paddingRight\n computedBodyPaddingRight = Number.parseInt(\n getStyle(document.body, 'paddingRight'),\n 10\n )\n }\n scrollBarWidth = getScrollBarWidth()\n const bodyHasOverflow =\n document.documentElement.clientHeight < document.body.scrollHeight\n const bodyOverflowY = getStyle(document.body, 'overflowY')\n if (\n scrollBarWidth > 0 &&\n (bodyHasOverflow || bodyOverflowY === 'scroll') &&\n withoutHiddenClass\n ) {\n document.body.style.paddingRight = `${\n computedBodyPaddingRight + scrollBarWidth\n }px`\n }\n addClass(document.body, 'el-popup-parent--hidden')\n })\n onScopeDispose(() => cleanup())\n}\n"],"names":[],"mappings":";;;;;;;AAUY,MAAC,aAAa,GAAG,CAAC,OAAO,KAAK;AAC1C,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;AACvB,IAAI,UAAU,CAAC,iBAAiB,EAAE,+CAA+C,CAAC,CAAC;AACnF,GAAG;AACH,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CA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,cAAc,GAAG,CAAC,KAAK,eAAe,IAAI,aAAa,KAAK,QAAQ,CAAC,IAAI,kBAAkB,EAAE;AACrG,MAAM,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,EAAE,wBAAwB,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;AACvD,GAAG,CAAC,CAAC;AACL,EAAE,cAAc,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC;AAClC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import { isRef, onScopeDispose, watch } from 'vue'\n\nimport { isClient } from '@vueuse/core'\nimport {\n addClass,\n getScrollBarWidth,\n getStyle,\n hasClass,\n removeClass,\n throwError,\n} from '@element-plus/utils'\n\nimport type { Ref } from 'vue'\n\n/**\n * Hook that monitoring the ref value to lock or unlock the screen.\n * When the trigger became true, it assumes modal is now opened and vice versa.\n * @param trigger {Ref<boolean>}\n */\nexport const useLockscreen = (trigger: Ref<boolean>) => {\n if (!isRef(trigger)) {\n throwError(\n '[useLockscreen]',\n 'You need to pass a ref param to this function'\n )\n }\n if (!isClient || hasClass(document.body, 'el-popup-parent--hidden')) {\n return\n }\n\n let scrollBarWidth = 0\n let withoutHiddenClass = false\n let bodyPaddingRight = '0'\n let computedBodyPaddingRight = 0\n\n const cleanup = () => {\n removeClass(document.body, 'el-popup-parent--hidden')\n if (withoutHiddenClass) {\n document.body.style.paddingRight = bodyPaddingRight\n }\n }\n watch(trigger, (val) => {\n if (!val) {\n cleanup()\n return\n }\n\n withoutHiddenClass = !hasClass(document.body, 'el-popup-parent--hidden')\n if (withoutHiddenClass) {\n bodyPaddingRight = document.body.style.paddingRight\n computedBodyPaddingRight = Number.parseInt(\n getStyle(document.body, 'paddingRight'),\n 10\n )\n }\n scrollBarWidth = getScrollBarWidth()\n const bodyHasOverflow =\n document.documentElement.clientHeight < document.body.scrollHeight\n const bodyOverflowY = getStyle(document.body, 'overflowY')\n if (\n scrollBarWidth > 0 &&\n (bodyHasOverflow || bodyOverflowY === 'scroll') &&\n withoutHiddenClass\n ) {\n document.body.style.paddingRight = `${\n computedBodyPaddingRight + scrollBarWidth\n }px`\n }\n addClass(document.body, 'el-popup-parent--hidden')\n })\n onScopeDispose(() => cleanup())\n}\n"],"names":[],"mappings":";;;;;;;AAUY,MAAC,aAAa,GAAG,CAAC,OAAO,KAAK;AAC1C,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;AACvB,IAAI,UAAU,CAAC,iBAAiB,EAAE,+CAA+C,CAAC,CAAC;AACnF,GAAG;AACH,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC,EAAE;AACvE,IAAI,OAAO;AACX,GAAG;AACH,EAAE,IAAI,cAAc,GAAG,CAAC,CAAC;AACzB,EAAE,IAAI,kBAAkB,GAAG,KAAK,CAAC;AACjC,EAAE,IAAI,gBAAgB,GAAG,GAAG,CAAC;AAC7B,EAAE,IAAI,wBAAwB,GAAG,CAAC,CAAC;AACnC,EAAE,MAAM,OAAO,GAAG,MAAM;AACxB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;AAC1D,IAAI,IAAI,kBAAkB,EAAE;AAC5B,MAAM,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAC1D,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK;AAC1B,IAAI,IAAI,CAAC,GAAG,EAAE;AACd,MAAM,OAAO,EAAE,CAAC;AAChB,MAAM,OAAO;AACb,KAAK;AACL,IAAI,kBAAkB,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;AAC7E,IAAI,IAAI,kBAAkB,EAAE;AAC5B,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;AAC1D,MAAM,wBAAwB,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,EAAE,CAAC,CAAC;AAC9F,KAAK;AACL,IAAI,cAAc,GAAG,iBAAiB,EAAE,CAAC;AACzC,IAAI,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;AAC/F,IAAI,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC/D,IAAI,IAAI,cAAc,GAAG,CAAC,KAAK,eAAe,IAAI,aAAa,KAAK,QAAQ,CAAC,IAAI,kBAAkB,EAAE;AACrG,MAAM,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,EAAE,wBAAwB,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;AACvD,GAAG,CAAC,CAAC;AACL,EAAE,cAAc,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC;AAClC;;;;"}
@@ -1,4 +1,4 @@
1
- import type { Ref, ExtractPropTypes } from 'vue';
1
+ import type { ExtractPropTypes, Ref } from 'vue';
2
2
  declare const _prop: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<boolean | null>, null, false, never, never>;
3
3
  declare const _event: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<(val: boolean) => void>, never, false, never, never>;
4
4
  declare type _UseModelToggleProps<T extends string> = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-model-toggle/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, watch, onMounted } from 'vue'\nimport { isFunction } from '@vue/shared'\nimport { isClient } from '@vueuse/core'\nimport { isBoolean, definePropType, buildProp } from '@element-plus/utils'\nimport type { RouteLocationNormalizedLoaded } from 'vue-router'\n\nimport type { Ref, ComponentPublicInstance, ExtractPropTypes } from 'vue'\n\nconst _prop = buildProp({\n type: definePropType<boolean | null>(Boolean),\n default: null,\n} as const)\nconst _event = buildProp({\n type: definePropType<(val: boolean) => void>(Function),\n} as const)\n\ntype _UseModelToggleProps<T extends string> = {\n [K in T]: typeof _prop\n} & {\n [K in `onUpdate:${T}`]: typeof _event\n}\n\nexport const createModelToggleComposable = <T extends string>(name: T) => {\n const useModelToggleProps = {\n [name]: _prop,\n [`onUpdate:${name}`]: _event,\n } as _UseModelToggleProps<T>\n\n const useModelToggleEmits = [`update:${name}`]\n\n const useModelToggle = ({\n indicator,\n shouldHideWhenRouteChanges,\n shouldProceed,\n onShow,\n onHide,\n }: ModelToggleParams) => {\n const instance = getCurrentInstance()!\n const props = instance.props as _UseModelToggleProps<T> & {\n disabled: boolean\n }\n const { emit } = instance\n\n const updateEventKey = `update:${name}`\n\n const hasUpdateHandler = computed(() =>\n isFunction(props[`onUpdate:${name}`])\n )\n // when it matches the default value we say this is absent\n // though this could be mistakenly passed from the user but we need to rule out that\n // condition\n const isModelBindingAbsent = computed(() => props[name] === null)\n\n const doShow = () => {\n if (indicator.value === true) {\n return\n }\n\n indicator.value = true\n if (isFunction(onShow)) {\n onShow()\n }\n }\n\n const doHide = () => {\n if (indicator.value === false) {\n return\n }\n\n indicator.value = false\n\n if (isFunction(onHide)) {\n onHide()\n }\n }\n\n const show = () => {\n if (\n props.disabled === true ||\n (isFunction(shouldProceed) && !shouldProceed())\n )\n return\n\n const shouldEmit = hasUpdateHandler.value && isClient\n\n if (shouldEmit) {\n emit(updateEventKey, true)\n }\n\n if (isModelBindingAbsent.value || !shouldEmit) {\n doShow()\n }\n }\n\n const hide = () => {\n if (props.disabled === true || !isClient) return\n\n const shouldEmit = hasUpdateHandler.value && isClient\n\n if (shouldEmit) {\n emit(updateEventKey, false)\n }\n\n if (isModelBindingAbsent.value || !shouldEmit) {\n doHide()\n }\n }\n\n const onChange = (val: boolean) => {\n if (!isBoolean(val)) return\n if (props.disabled && val) {\n if (hasUpdateHandler.value) {\n emit(updateEventKey, false)\n }\n } else if (indicator.value !== val) {\n if (val) {\n doShow()\n } else {\n doHide()\n }\n }\n }\n\n const toggle = () => {\n if (indicator.value) {\n hide()\n } else {\n show()\n }\n }\n\n watch(() => props[name], onChange as any)\n\n if (\n shouldHideWhenRouteChanges &&\n instance.appContext.config.globalProperties.$route !== undefined\n ) {\n watch(\n () => ({\n ...(\n instance.proxy as ComponentPublicInstance<{\n $route: RouteLocationNormalizedLoaded\n }>\n ).$route,\n }),\n () => {\n if (shouldHideWhenRouteChanges.value && indicator.value) {\n hide()\n }\n }\n )\n }\n\n onMounted(() => {\n onChange(props[name] as boolean)\n })\n\n return {\n hide,\n show,\n toggle,\n }\n }\n\n return {\n useModelToggle,\n useModelToggleProps,\n useModelToggleEmits,\n }\n}\n\nconst { useModelToggle, useModelToggleProps, useModelToggleEmits } =\n createModelToggleComposable('modelValue')\n\nexport { useModelToggle, useModelToggleEmits, useModelToggleProps }\n\nexport type UseModelToggleProps = ExtractPropTypes<typeof useModelToggleProps>\n\nexport type ModelToggleParams = {\n indicator: Ref<boolean>\n shouldHideWhenRouteChanges?: Ref<boolean>\n shouldProceed?: () => boolean\n onShow?: () => void\n onHide?: () => void\n}\n"],"names":[],"mappings":";;;;;;AAIA,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC;AAC/B,EAAE,OAAO,EAAE,IAAI;AACf,CAAC,CAAC,CAAC;AACH,MAAM,MAAM,GAAG,SAAS,CAAC;AACzB,EAAE,IAAI,EAAE,cAAc,CAAC,QAA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,EAAE,OAAO;AACT,IAAI,cAAc,EAAE,eAAe;AACnC,IAAI,mBAAmB,EAAE,oBAAoB;AAC7C,IAAI,mBAAmB,EAAE,oBAAoB;AAC7C,GAAG,CAAC;AACJ,EAAE;AACG,MAAC,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,2BAA2B,CAAC,YAAY;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-model-toggle/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, onMounted, watch } from 'vue'\nimport { isFunction } from '@vue/shared'\nimport { isClient } from '@vueuse/core'\nimport { buildProp, definePropType, isBoolean } from '@element-plus/utils'\nimport type { RouteLocationNormalizedLoaded } from 'vue-router'\n\nimport type { ComponentPublicInstance, ExtractPropTypes, Ref } from 'vue'\n\nconst _prop = buildProp({\n type: definePropType<boolean | null>(Boolean),\n default: null,\n} as const)\nconst _event = buildProp({\n type: definePropType<(val: boolean) => void>(Function),\n} as const)\n\ntype _UseModelToggleProps<T extends string> = {\n [K in T]: typeof _prop\n} & {\n [K in `onUpdate:${T}`]: typeof _event\n}\n\nexport const createModelToggleComposable = <T extends string>(name: T) => {\n const useModelToggleProps = {\n [name]: _prop,\n [`onUpdate:${name}`]: _event,\n } as _UseModelToggleProps<T>\n\n const useModelToggleEmits = [`update:${name}`]\n\n const useModelToggle = ({\n indicator,\n shouldHideWhenRouteChanges,\n shouldProceed,\n onShow,\n onHide,\n }: ModelToggleParams) => {\n const instance = getCurrentInstance()!\n const props = instance.props as _UseModelToggleProps<T> & {\n disabled: boolean\n }\n const { emit } = instance\n\n const updateEventKey = `update:${name}`\n\n const hasUpdateHandler = computed(() =>\n isFunction(props[`onUpdate:${name}`])\n )\n // when it matches the default value we say this is absent\n // though this could be mistakenly passed from the user but we need to rule out that\n // condition\n const isModelBindingAbsent = computed(() => props[name] === null)\n\n const doShow = () => {\n if (indicator.value === true) {\n return\n }\n\n indicator.value = true\n if (isFunction(onShow)) {\n onShow()\n }\n }\n\n const doHide = () => {\n if (indicator.value === false) {\n return\n }\n\n indicator.value = false\n\n if (isFunction(onHide)) {\n onHide()\n }\n }\n\n const show = () => {\n if (\n props.disabled === true ||\n (isFunction(shouldProceed) && !shouldProceed())\n )\n return\n\n const shouldEmit = hasUpdateHandler.value && isClient\n\n if (shouldEmit) {\n emit(updateEventKey, true)\n }\n\n if (isModelBindingAbsent.value || !shouldEmit) {\n doShow()\n }\n }\n\n const hide = () => {\n if (props.disabled === true || !isClient) return\n\n const shouldEmit = hasUpdateHandler.value && isClient\n\n if (shouldEmit) {\n emit(updateEventKey, false)\n }\n\n if (isModelBindingAbsent.value || !shouldEmit) {\n doHide()\n }\n }\n\n const onChange = (val: boolean) => {\n if (!isBoolean(val)) return\n if (props.disabled && val) {\n if (hasUpdateHandler.value) {\n emit(updateEventKey, false)\n }\n } else if (indicator.value !== val) {\n if (val) {\n doShow()\n } else {\n doHide()\n }\n }\n }\n\n const toggle = () => {\n if (indicator.value) {\n hide()\n } else {\n show()\n }\n }\n\n watch(() => props[name], onChange as any)\n\n if (\n shouldHideWhenRouteChanges &&\n instance.appContext.config.globalProperties.$route !== undefined\n ) {\n watch(\n () => ({\n ...(\n instance.proxy as ComponentPublicInstance<{\n $route: RouteLocationNormalizedLoaded\n }>\n ).$route,\n }),\n () => {\n if (shouldHideWhenRouteChanges.value && indicator.value) {\n hide()\n }\n }\n )\n }\n\n onMounted(() => {\n onChange(props[name] as boolean)\n })\n\n return {\n hide,\n show,\n toggle,\n }\n }\n\n return {\n useModelToggle,\n useModelToggleProps,\n useModelToggleEmits,\n }\n}\n\nconst { useModelToggle, useModelToggleProps, useModelToggleEmits } =\n createModelToggleComposable('modelValue')\n\nexport { useModelToggle, useModelToggleEmits, useModelToggleProps }\n\nexport type UseModelToggleProps = ExtractPropTypes<typeof useModelToggleProps>\n\nexport type ModelToggleParams = {\n indicator: Ref<boolean>\n shouldHideWhenRouteChanges?: Ref<boolean>\n shouldProceed?: () => boolean\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,SAAS;AACT,OAAO,CAAC,CAAC;AACT,KAAK;AACL,IAAI,SAAS,CAAC,MAAM;AACpB,MAAM,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5B,KAAK,CAAC,CAAC;AACP,IAAI,OAAO;AACX,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,cAAc,EAAE,eAAe;AACnC,IAAI,mBAAmB,EAAE,oBAAoB;AAC7C,IAAI,mBAAmB,EAAE,oBAAoB;AAC7C,GAAG,CAAC;AACJ,EAAE;AACG,MAAC,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,2BAA2B,CAAC,YAAY;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { unref, computed } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst defaultNamespace = 'el'\nconst statePrefix = 'is-'\n\nconst _bem = (\n namespace: string,\n block: string,\n blockSuffix: string,\n element: string,\n modifier: string\n) => {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const useNamespace = (block: string) => {\n const globalConfig = useGlobalConfig('namespace')\n const namespace = computed(() => globalConfig.value || defaultNamespace)\n const b = (blockSuffix = '') =>\n _bem(unref(namespace), block, blockSuffix, '', '')\n const e = (element?: string) =>\n element ? _bem(unref(namespace), block, '', element, '') : ''\n const m = (modifier?: string) =>\n modifier ? _bem(unref(namespace), block, '', '', modifier) : ''\n const be = (blockSuffix?: string, element?: string) =>\n blockSuffix && element\n ? _bem(unref(namespace), block, blockSuffix, element, '')\n : ''\n const em = (element?: string, modifier?: string) =>\n element && modifier\n ? _bem(unref(namespace), block, '', element, modifier)\n : ''\n const bm = (blockSuffix?: string, modifier?: string) =>\n blockSuffix && modifier\n ? _bem(unref(namespace), block, blockSuffix, '', modifier)\n : ''\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier\n ? _bem(unref(namespace), block, blockSuffix, element, modifier)\n : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${statePrefix}${name}` : ''\n }\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,WAAW,GAAG,KAAK,CAAC;AAC1B,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,KAAK;AACnE,EAAE,IAAI,GAAG,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AACpC,EAAE,IAAI,WAAW,EAAE;AACnB,IAAI,GAAG,IAAI,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;AAC7B,GAAG;AACH,EAAE,IAAI,OAAO,EAAE;AACf,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,QAAQ,EAAE;AAChB,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC3B,GAAG;AACH,EAAE,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AACU,MAAC,YAAY,GAAG,CAAC,KAAK,KAAK;AACvC,EAAE,MAAM,YAAY,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AACpD,EAAE,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,YAAY,CAAC,KAAK,IAAI,gBAAgB,CAAC,CAAC;AAC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E,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC;AAC1J,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,KAAK;AAChC,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AACpD,IAAI,OAAO,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;AACxD,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,SAAS;AACb,IAAI,CAAC;AACL,IAAI,CAAC;AACL,IAAI,CAAC;AACL,IAAI,EAAE;AACN,IAAI,EAAE;AACN,IAAI,EAAE;AACN,IAAI,GAAG;AACP,IAAI,EAAE;AACN,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, unref } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst defaultNamespace = 'el'\nconst statePrefix = 'is-'\n\nconst _bem = (\n namespace: string,\n block: string,\n blockSuffix: string,\n element: string,\n modifier: string\n) => {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const useNamespace = (block: string) => {\n const globalConfig = useGlobalConfig('namespace')\n const namespace = computed(() => globalConfig.value || defaultNamespace)\n const b = (blockSuffix = '') =>\n _bem(unref(namespace), block, blockSuffix, '', '')\n const e = (element?: string) =>\n element ? _bem(unref(namespace), block, '', element, '') : ''\n const m = (modifier?: string) =>\n modifier ? _bem(unref(namespace), block, '', '', modifier) : ''\n const be = (blockSuffix?: string, element?: string) =>\n blockSuffix && element\n ? _bem(unref(namespace), block, blockSuffix, element, '')\n : ''\n const em = (element?: string, modifier?: string) =>\n element && modifier\n ? _bem(unref(namespace), block, '', element, modifier)\n : ''\n const bm = (blockSuffix?: string, modifier?: string) =>\n blockSuffix && modifier\n ? _bem(unref(namespace), block, blockSuffix, '', modifier)\n : ''\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier\n ? _bem(unref(namespace), block, blockSuffix, element, modifier)\n : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${statePrefix}${name}` : ''\n }\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,WAAW,GAAG,KAAK,CAAC;AAC1B,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,KAAK;AACnE,EAAE,IAAI,GAAG,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AACpC,EAAE,IAAI,WAAW,EAAE;AACnB,IAAI,GAAG,IAAI,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;AAC7B,GAAG;AACH,EAAE,IAAI,OAAO,EAAE;AACf,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,QAAQ,EAAE;AAChB,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC3B,GAAG;AACH,EAAE,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AACU,MAAC,YAAY,GAAG,CAAC,KAAK,KAAK;AACvC,EAAE,MAAM,YAAY,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AACpD,EAAE,MAAM,SAAS,GAAG,QAAQ,C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IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC;AAC1J,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,KAAK;AAChC,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AACpD,IAAI,OAAO,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;AACxD,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,SAAS;AACb,IAAI,CAAC;AACL,IAAI,CAAC;AACL,IAAI,CAAC;AACL,IAAI,EAAE;AACN,IAAI,EAAE;AACN,IAAI,EAAE;AACN,IAAI,GAAG;AACP,IAAI,EAAE;AACN,GAAG,CAAC;AACJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-prop/index.ts"],"sourcesContent":["import { getCurrentInstance, computed } from 'vue'\nimport type { ComputedRef } from 'vue'\n\nexport const useProp = <T>(name: string): ComputedRef<T | undefined> => {\n const vm = getCurrentInstance()!\n return computed(() => vm.proxy?.$props[name] ?? undefined)\n}\n"],"names":[],"mappings":";;AACY,MAAC,OAAO,GAAG,CAAC,IAAI,KAAK;AACjC,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;AAClC,EAAE,OAAO,QAAQ,CAAC,MAAM;AACxB,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AACf,IAAI,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC;AAC3F,GAAG,CAAC,CAAC;AACL;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-prop/index.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport type { ComputedRef } from 'vue'\n\nexport const useProp = <T>(name: string): ComputedRef<T | undefined> => {\n const vm = getCurrentInstance()!\n return computed(() => vm.proxy?.$props[name] ?? undefined)\n}\n"],"names":[],"mappings":";;AACY,MAAC,OAAO,GAAG,CAAC,IAAI,KAAK;AACjC,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;AAClC,EAAE,OAAO,QAAQ,CAAC,MAAM;AACxB,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AACf,IAAI,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC;AAC3F,GAAG,CAAC,CAAC;AACL;;;;"}
@@ -1,4 +1,4 @@
1
- import type { VNode, Ref } from 'vue';
1
+ import type { Ref, VNode } from 'vue';
2
2
  export declare const useTeleport: (contentRenderer: () => VNode, appendToBody: Ref<boolean>) => {
3
3
  isTeleportVisible: Ref<boolean>;
4
4
  showTeleport: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-teleport/index.ts"],"sourcesContent":["import { h, ref, Teleport, onUnmounted } from 'vue'\nimport { NOOP } from '@vue/shared'\nimport { isClient } from '@vueuse/core'\nimport { createGlobalNode, removeGlobalNode } from '@element-plus/utils'\n\nimport type { VNode, Ref } from 'vue'\n\nexport const useTeleport = (\n contentRenderer: () => VNode,\n appendToBody: Ref<boolean>\n) => {\n const isTeleportVisible = ref(false)\n\n if (!isClient) {\n return {\n isTeleportVisible,\n showTeleport: NOOP,\n hideTeleport: NOOP,\n renderTeleport: NOOP,\n }\n }\n\n let $el: HTMLElement | null = null\n\n const showTeleport = () => {\n isTeleportVisible.value = true\n // this allows the delayed showing strategy since the the content itself could be enterable\n // e.g. el-popper\n if ($el !== null) return\n\n $el = createGlobalNode()\n }\n\n const hideTeleport = () => {\n isTeleportVisible.value = false\n if ($el !== null) {\n removeGlobalNode($el)\n $el = null\n }\n }\n\n const renderTeleport = () => {\n return appendToBody.value !== true\n ? contentRenderer()\n : isTeleportVisible.value\n ? [h(Teleport, { to: $el }, contentRenderer())]\n : undefined\n }\n\n onUnmounted(hideTeleport)\n\n return {\n isTeleportVisible,\n showTeleport,\n hideTeleport,\n renderTeleport,\n }\n}\n"],"names":[],"mappings":";;;;;;AAIY,MAAC,WAAW,GAAG,CAAC,eAAe,EAAE,YAAY,KAAK;AAC9D,EAAE,MAAM,iBAAiB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AACvC,EAAE,IAAI,CAAC,QAAQ,EAAE;AACjB,IAAI,OAAO;AACX,MAAM,iBAAiB;AACvB,MAAM,YAAY,EAAE,IAAI;AACxB,MAAM,YAAY,EAAE,IAAI;AACxB,MAAM,cAAc,EAAE,IAAI;AAC1B,KAAK,CAAC;AACN,GAAG;AACH,EAAE,IAAI,GAAG,GAAG,IAAI,CAAC;AACjB,EAAE,MAAM,YAAY,GAAG,MAAM;AAC7B,IAAI,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC;AACnC,IAAI,IAAI,GAAG,KAAK,IAAI;AACpB,MAAM,OAAO;AACb,IAAI,GAAG,GAAG,gBAAgB,EAAE,CAAC;AAC7B,GAAG,CAAC;AACJ,EAAE,MAAM,YAAY,GAAG,MAAM;AAC7B,IAAI,iBAAiB,CAAC,KAAK,GAAG,KAAK,CAAC;AACpC,IAAI,IAAI,GAAG,KAAK,IAAI,EAAE;AACtB,MAAM,gBAAgB,CAAC,GAAG,CAAC,CAAC;AAC5B,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,MAAM,cAAc,GAAG,MAAM;AAC/B,IAAI,OAAO,YAAY,CAAC,KAAK,KAAK,IAAI,GAAG,eAAe,EAAE,GAAG,iBAAiB,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;AAC9I,GAAG,CAAC;AACJ,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;AAC5B,EAAE,OAAO;AACT,IAAI,iBAAiB;AACrB,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-teleport/index.ts"],"sourcesContent":["import { Teleport, h, onUnmounted, ref } from 'vue'\nimport { NOOP } from '@vue/shared'\nimport { isClient } from '@vueuse/core'\nimport { createGlobalNode, removeGlobalNode } from '@element-plus/utils'\n\nimport type { Ref, VNode } from 'vue'\n\nexport const useTeleport = (\n contentRenderer: () => VNode,\n appendToBody: Ref<boolean>\n) => {\n const isTeleportVisible = ref(false)\n\n if (!isClient) {\n return {\n isTeleportVisible,\n showTeleport: NOOP,\n hideTeleport: NOOP,\n renderTeleport: NOOP,\n }\n }\n\n let $el: HTMLElement | null = null\n\n const showTeleport = () => {\n isTeleportVisible.value = true\n // this allows the delayed showing strategy since the the content itself could be enterable\n // e.g. el-popper\n if ($el !== null) return\n\n $el = createGlobalNode()\n }\n\n const hideTeleport = () => {\n isTeleportVisible.value = false\n if ($el !== null) {\n removeGlobalNode($el)\n $el = null\n }\n }\n\n const renderTeleport = () => {\n return appendToBody.value !== true\n ? contentRenderer()\n : isTeleportVisible.value\n ? [h(Teleport, { to: $el }, contentRenderer())]\n : undefined\n }\n\n onUnmounted(hideTeleport)\n\n return {\n isTeleportVisible,\n showTeleport,\n hideTeleport,\n renderTeleport,\n }\n}\n"],"names":[],"mappings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ACJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-z-index/index.ts"],"sourcesContent":["import { ref, computed } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst zIndex = ref(0)\n\nexport const useZIndex = () => {\n const initialZIndex = useGlobalConfig('zIndex', 2000) // TODO: move to @element-plus/constants\n const currentZIndex = computed(() => initialZIndex.value + zIndex.value)\n\n const nextZIndex = () => {\n zIndex.value++\n return currentZIndex.value\n }\n\n return {\n initialZIndex,\n currentZIndex,\n nextZIndex,\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AACV,MAAC,SAAS,GAAG,MAAM;AAC/B,EAAE,MAAM,aAAa,GAAG,eAAe,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACvD,EAAE,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,aAAa,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3E,EAAE,MAAM,UAAU,GAAG,MAAM;AAC3B,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;AACnB,IAAI,OAAO,aAAa,CAAC,KAAK,CAAC;AAC/B,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,UAAU;AACd,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-z-index/index.ts"],"sourcesContent":["import { computed, ref } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst zIndex = ref(0)\n\nexport const useZIndex = () => {\n const initialZIndex = useGlobalConfig('zIndex', 2000) // TODO: move to @element-plus/constants\n const currentZIndex = computed(() => initialZIndex.value + zIndex.value)\n\n const nextZIndex = () => {\n zIndex.value++\n return currentZIndex.value\n }\n\n return {\n initialZIndex,\n currentZIndex,\n nextZIndex,\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AACV,MAAC,SAAS,GAAG,MAAM;AAC/B,EAAE,MAAM,aAAa,GAAG,eAAe,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACvD,EAAE,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,aAAa,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3E,EAAE,MAAM,UAAU,GAAG,MAAM;AAC3B,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;AACnB,IAAI,OAAO,aAAa,CAAC,KAAK,CAAC;AAC/B,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,UAAU;AACd,GAAG,CAAC;AACJ;;;;"}
package/es/index.d.ts CHANGED
@@ -1,17 +1,21 @@
1
1
  import installer from './defaults';
2
2
  export * from 'element-plus/es/components';
3
+ export * from 'element-plus/es/constants';
3
4
  export * from 'element-plus/es/directives';
4
5
  export * from 'element-plus/es/hooks';
5
6
  export * from 'element-plus/es/tokens';
6
7
  export { makeInstaller } from './make-installer';
7
8
  export declare const install: (app: import("vue").App<any>, options?: Partial<import("vue").ExtractPropTypes<{
9
+ readonly a11y: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
8
10
  readonly locale: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./locale").Language>, unknown, unknown, unknown, unknown>;
9
- readonly size: import("./utils").BuildPropReturn<StringConstructor, unknown, unknown, "default" | "small" | "large", unknown>;
11
+ readonly size: import("./utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "large", unknown>;
10
12
  readonly button: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/components").ButtonConfigContext>, unknown, unknown, unknown, unknown>;
13
+ readonly experimentalFeatures: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/tokens").ExperimentalFeatures>, unknown, unknown, unknown, unknown>;
14
+ readonly keyboardNavigation: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
11
15
  readonly message: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/components").MessageConfigContext>, unknown, unknown, unknown, unknown>;
12
16
  readonly zIndex: import("./utils").BuildPropReturn<NumberConstructor, unknown, unknown, unknown, unknown>;
13
17
  readonly namespace: import("./utils").BuildPropReturn<StringConstructor, "el", unknown, unknown, unknown>;
14
- }>>) => void;
18
+ }>> | undefined) => void;
15
19
  export declare const version: string;
16
20
  export default installer;
17
21
  export { default as dayjs } from 'dayjs';
package/es/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import installer from './defaults.mjs';
2
2
  export { default } from './defaults.mjs';
3
3
  import './components/index.mjs';
4
+ import './constants/index.mjs';
4
5
  import './directives/index.mjs';
5
6
  import './hooks/index.mjs';
6
7
  import './tokens/index.mjs';
@@ -89,12 +90,14 @@ export { paginationEmits, paginationProps } from './components/pagination/src/pa
89
90
  export { ElPagination } from './components/pagination/index.mjs';
90
91
  export { popconfirmProps } from './components/popconfirm/src/popconfirm.mjs';
91
92
  export { ElPopconfirm } from './components/popconfirm/index.mjs';
92
- export { default as ElPopperArrow } from './components/popper/src/arrow.mjs';
93
- export { default as ElPopperTrigger } from './components/popper/src/trigger.mjs';
94
- export { default as ElPopperContent } from './components/popper/src/content.mjs';
95
93
  export { useDeprecateAppendToBody } from './components/popper/src/deprecation.mjs';
96
- export { Effect, usePopperArrowProps, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps } from './components/popper/src/popper.mjs';
97
- export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './components/popper/src/tokens.mjs';
94
+ export { Effect, usePopperProps } from './components/popper/src/popper.mjs';
95
+ export { usePopperTriggerProps } from './components/popper/src/trigger.mjs';
96
+ export { usePopperContentProps, usePopperCoreConfigProps } from './components/popper/src/content.mjs';
97
+ export { usePopperArrowProps } from './components/popper/src/arrow.mjs';
98
+ export { default as ElPopperArrow } from './components/popper/src/arrow2.mjs';
99
+ export { default as ElPopperTrigger } from './components/popper/src/trigger2.mjs';
100
+ export { default as ElPopperContent } from './components/popper/src/content2.mjs';
98
101
  export { ElPopper } from './components/popper/index.mjs';
99
102
  export { progressProps } from './components/progress/src/progress.mjs';
100
103
  export { ElProgress } from './components/progress/index.mjs';
@@ -146,7 +149,7 @@ export { ElTimeline, ElTimelineItem } from './components/timeline/index.mjs';
146
149
  export { useTooltipContentProps, useTooltipProps, useTooltipTriggerProps } from './components/tooltip/src/tooltip.mjs';
147
150
  export { TOOLTIP_INJECTION_KEY } from './components/tooltip/src/tokens.mjs';
148
151
  export { ElTooltip } from './components/tooltip/index.mjs';
149
- export { CHANGE_EVENT } from './constants/event.mjs';
152
+ export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from './constants/event.mjs';
150
153
  export { ElTransfer } from './components/transfer/index.mjs';
151
154
  export { ElTree } from './components/tree/index.mjs';
152
155
  export { ElTreeV2 } from './components/tree-v2/index.mjs';
@@ -170,6 +173,9 @@ export { ElMessageBox } from './components/message-box/index.mjs';
170
173
  export { notificationEmits, notificationProps, notificationTypes } from './components/notification/src/notification.mjs';
171
174
  export { ElNotification } from './components/notification/index.mjs';
172
175
  export { ElPopover, ElPopoverDirective } from './components/popover/index.mjs';
176
+ export { EVENT_CODE } from './constants/aria.mjs';
177
+ export { datePickTypes } from './constants/date-pick.mjs';
178
+ export { componentSizes } from './constants/size.mjs';
173
179
  export { default as ClickOutside } from './directives/click-outside/index.mjs';
174
180
  export { default as RepeatClick } from './directives/repeat-click/index.mjs';
175
181
  export { default as TrapFocus } from './directives/trap-focus/index.mjs';
@@ -202,6 +208,7 @@ export { useDelayedToggle, useDelayedToggleProps } from './hooks/use-delayed-tog
202
208
  export { FORWARD_REF_INJECTION_KEY, useForwardRef, useForwardRefDirective } from './hooks/use-forward-ref/index.mjs';
203
209
  export { useNamespace } from './hooks/use-namespace/index.mjs';
204
210
  export { useZIndex } from './hooks/use-z-index/index.mjs';
211
+ export { arrowMiddleware, getPositionDataWithUnit, useFloating, useFloatingProps } from './hooks/use-floating/index.mjs';
205
212
  export { breadcrumbKey } from './tokens/breadcrumb.mjs';
206
213
  export { buttonGroupContextKey } from './tokens/button.mjs';
207
214
  export { carouselContextKey } from './tokens/carousel.mjs';
@@ -215,6 +222,7 @@ export { rowContextKey } from './tokens/row.mjs';
215
222
  export { scrollbarContextKey } from './tokens/scrollbar.mjs';
216
223
  export { tabsRootContextKey } from './tokens/tabs.mjs';
217
224
  export { uploadContextKey } from './tokens/upload.mjs';
225
+ export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './tokens/popper.mjs';
218
226
 
219
227
  const install = installer.install;
220
228
  const version = installer.version;
package/es/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@element-plus/components'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from '@element-plus/tokens'\nexport { makeInstaller } from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@element-plus/components'\nexport * from '@element-plus/constants'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from '@element-plus/tokens'\nexport { makeInstaller } from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
@@ -1,6 +1,15 @@
1
1
  import type { App, Plugin } from 'vue';
2
- import type { ConfigProviderContext } from 'element-plus/es/tokens';
3
2
  export declare const makeInstaller: (components?: Plugin[]) => {
4
3
  version: string;
5
- install: (app: App, options?: ConfigProviderContext) => void;
4
+ install: (app: App, options?: Partial<import("vue").ExtractPropTypes<{
5
+ readonly a11y: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
6
+ readonly locale: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./locale").Language>, unknown, unknown, unknown, unknown>;
7
+ readonly size: import("./utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "large", unknown>;
8
+ readonly button: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./components").ButtonConfigContext>, unknown, unknown, unknown, unknown>;
9
+ readonly experimentalFeatures: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/tokens").ExperimentalFeatures>, unknown, unknown, unknown, unknown>;
10
+ readonly keyboardNavigation: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
11
+ readonly message: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./components").MessageConfigContext>, unknown, unknown, unknown, unknown>;
12
+ readonly zIndex: import("./utils").BuildPropReturn<NumberConstructor, unknown, unknown, unknown, unknown>;
13
+ readonly namespace: import("./utils").BuildPropReturn<StringConstructor, "el", unknown, unknown, unknown>;
14
+ }>> | undefined) => void;
6
15
  };
@@ -4,12 +4,13 @@ import { provideGlobalConfig } from './hooks/use-global-config/index.mjs';
4
4
 
5
5
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
6
6
  const makeInstaller = (components = []) => {
7
- const install = (app, options = {}) => {
7
+ const install = (app, options) => {
8
8
  if (app[INSTALLED_KEY])
9
9
  return;
10
10
  app[INSTALLED_KEY] = true;
11
11
  components.forEach((c) => app.use(c));
12
- provideGlobalConfig(options, app, true);
12
+ if (options)
13
+ provideGlobalConfig(options, app, true);
13
14
  };
14
15
  return {
15
16
  version,
@@ -1 +1 @@
1
- {"version":3,"file":"make-installer.mjs","sources":["../../../packages/element-plus/make-installer.ts"],"sourcesContent":["import { provideGlobalConfig } from '@element-plus/hooks'\nimport { version } from './version'\nimport type { App, Plugin } from 'vue'\nimport type { ConfigProviderContext } from '@element-plus/tokens'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nexport const makeInstaller = (components: Plugin[] = []) => {\n const install = (app: App, options: ConfigProviderContext = {}) => {\n if (app[INSTALLED_KEY]) return\n\n app[INSTALLED_KEY] = true\n components.forEach((c) => app.use(c))\n provideGlobalConfig(options, app, true)\n }\n\n return {\n version,\n install,\n }\n}\n"],"names":[],"mappings":";;;;AAEA,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAClC,MAAC,aAAa,GAAG,CAAC,UAAU,GAAG,EAAE,KAAK;AAClD,EAAE,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,EAAE,KAAK;AACzC,IAAI,IAAI,GAAG,CAAC,aAAa,CAAC;AAC1B,MAAM,OAAO;AACb,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;AAC9B,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,IAAI,mBAAmB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AAC5C,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,OAAO;AACX,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"make-installer.mjs","sources":["../../../packages/element-plus/make-installer.ts"],"sourcesContent":["import { provideGlobalConfig } from '@element-plus/hooks'\nimport { version } from './version'\nimport type { App, Plugin } from 'vue'\nimport type { ConfigProviderContext } from '@element-plus/tokens'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nexport const makeInstaller = (components: Plugin[] = []) => {\n const install = (app: App, options?: ConfigProviderContext) => {\n if (app[INSTALLED_KEY]) return\n\n app[INSTALLED_KEY] = true\n components.forEach((c) => app.use(c))\n\n if (options) provideGlobalConfig(options, app, true)\n }\n\n return {\n version,\n install,\n }\n}\n"],"names":[],"mappings":";;;;AAEA,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAClC,MAAC,aAAa,GAAG,CAAC,UAAU,GAAG,EAAE,KAAK;AAClD,EAAE,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AACpC,IAAI,IAAI,GAAG,CAAC,aAAa,CAAC;AAC1B,MAAM,OAAO;AACb,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;AAC9B,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,IAAI,IAAI,OAAO;AACf,MAAM,mBAAmB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AAC9C,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,OAAO;AACX,GAAG,CAAC;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
1
  import type { configProviderProps } from 'element-plus/es/components/config-provider';
2
- import type { InjectionKey, ExtractPropTypes, Ref } from 'vue';
2
+ import type { ExtractPropTypes, InjectionKey, Ref } from 'vue';
3
3
  export declare type ConfigProviderContext = Partial<ExtractPropTypes<typeof configProviderProps>>;
4
4
  export declare const configProviderContextKey: InjectionKey<Ref<ConfigProviderContext>>;
@@ -1 +1 @@
1
- {"version":3,"file":"config-provider.mjs","sources":["../../../../packages/tokens/config-provider.ts"],"sourcesContent":["import type { configProviderProps } from '@element-plus/components/config-provider'\nimport type { InjectionKey, ExtractPropTypes, Ref } from 'vue'\n\nexport type ConfigProviderContext = Partial<\n ExtractPropTypes<typeof configProviderProps>\n>\n\nexport const configProviderContextKey: InjectionKey<\n Ref<ConfigProviderContext>\n> = Symbol()\n"],"names":[],"mappings":"AAAY,MAAC,wBAAwB,GAAG,MAAM;;;;"}
1
+ {"version":3,"file":"config-provider.mjs","sources":["../../../../packages/tokens/config-provider.ts"],"sourcesContent":["import type { configProviderProps } from '@element-plus/components/config-provider'\nimport type { ExtractPropTypes, InjectionKey, Ref } from 'vue'\n\nexport type ConfigProviderContext = Partial<\n ExtractPropTypes<typeof configProviderProps>\n>\n\nexport const configProviderContextKey: InjectionKey<\n Ref<ConfigProviderContext>\n> = Symbol()\n"],"names":[],"mappings":"AAAY,MAAC,wBAAwB,GAAG,MAAM;;;;"}
@@ -1,4 +1,4 @@
1
- import type { ComputedRef, CSSProperties, InjectionKey, Ref } from 'vue';
1
+ import type { CSSProperties, ComputedRef, InjectionKey, Ref } from 'vue';
2
2
  import type { useNamespace } from 'element-plus/es/hooks';
3
3
  export declare type DialogContext = {
4
4
  dialogRef: Ref<HTMLElement | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.mjs","sources":["../../../../packages/tokens/dialog.ts"],"sourcesContent":["import type { ComputedRef, CSSProperties, InjectionKey, Ref } from 'vue'\nimport type { useNamespace } from '@element-plus/hooks'\n\nexport type DialogContext = {\n dialogRef: Ref<HTMLElement | undefined>\n headerRef: Ref<HTMLElement | undefined>\n ns: ReturnType<typeof useNamespace>\n rendered: Ref<boolean>\n style: ComputedRef<CSSProperties>\n}\n\nexport const dialogInjectionKey: InjectionKey<DialogContext> =\n Symbol('dialogInjectionKey')\n"],"names":[],"mappings":"AAAY,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"dialog.mjs","sources":["../../../../packages/tokens/dialog.ts"],"sourcesContent":["import type { CSSProperties, ComputedRef, InjectionKey, Ref } from 'vue'\nimport type { useNamespace } from '@element-plus/hooks'\n\nexport type DialogContext = {\n dialogRef: Ref<HTMLElement | undefined>\n headerRef: Ref<HTMLElement | undefined>\n ns: ReturnType<typeof useNamespace>\n rendered: Ref<boolean>\n style: ComputedRef<CSSProperties>\n}\n\nexport const dialogInjectionKey: InjectionKey<DialogContext> =\n Symbol('dialogInjectionKey')\n"],"names":[],"mappings":"AAAY,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
@@ -0,0 +1 @@
1
+ export declare type ExperimentalFeatures = {};
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=experimental-features.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experimental-features.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import type { InjectionKey, SetupContext, UnwrapRef } from 'vue';
2
2
  import type { RuleItem, ValidateError, ValidateFieldsError } from 'async-validator';
3
3
  import type { ComponentSize } from 'element-plus/es/constants';
4
- import type { FormProps, FormEmits, FormItemProp, FormItemProps, FormLabelWidthContext } from 'element-plus/es/components/form';
4
+ import type { FormEmits, FormItemProp, FormItemProps, FormLabelWidthContext, FormProps } from 'element-plus/es/components/form';
5
5
  import type { Arrayable } from 'element-plus/es/utils';
6
6
  export interface FormItemRule extends RuleItem {
7
7
  trigger?: Arrayable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"form.mjs","sources":["../../../../packages/tokens/form.ts"],"sourcesContent":["import type { InjectionKey, SetupContext, UnwrapRef } from 'vue'\nimport type {\n RuleItem,\n ValidateError,\n ValidateFieldsError,\n} from 'async-validator'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type {\n FormProps,\n FormEmits,\n FormItemProp,\n FormItemProps,\n FormLabelWidthContext,\n} from '@element-plus/components/form'\nimport type { Arrayable } from '@element-plus/utils'\n\nexport interface FormItemRule extends RuleItem {\n trigger?: Arrayable<string>\n}\nexport type FormRules = Partial<Record<string, Arrayable<FormItemRule>>>\n\nexport type FormValidationResult = Promise<boolean>\nexport type FormValidateCallback = (\n isValid: boolean,\n invalidFields?: ValidateFieldsError\n) => void\nexport interface FormValidateFailure {\n errors: ValidateError[] | null\n fields: ValidateFieldsError\n}\n\nexport type FormContext = FormProps &\n UnwrapRef<FormLabelWidthContext> & {\n emit: SetupContext<FormEmits>['emit']\n\n // expose\n addField: (field: FormItemContext) => void\n removeField: (field: FormItemContext) => void\n resetFields: (props?: Arrayable<FormItemProp>) => void\n clearValidate: (props?: Arrayable<FormItemProp>) => void\n validateField: (\n props?: Arrayable<FormItemProp>,\n callback?: FormValidateCallback\n ) => FormValidationResult\n }\n\nexport interface FormItemContext extends FormItemProps {\n $el: HTMLDivElement | undefined\n size: ComponentSize\n validateState: string\n validate: (\n trigger: string,\n callback?: FormValidateCallback\n ) => FormValidationResult\n resetField(): void\n clearValidate(): void\n}\n\nexport const formContextKey: InjectionKey<FormContext> =\n Symbol('formContextKey')\nexport const formItemContextKey: InjectionKey<FormItemContext> =\n Symbol('formItemContextKey')\n"],"names":[],"mappings":"AAAY,MAAC,cAAc,GAAG,MAAM,CAAC,gBAAgB,EAAE;AAC3C,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"form.mjs","sources":["../../../../packages/tokens/form.ts"],"sourcesContent":["import type { InjectionKey, SetupContext, UnwrapRef } from 'vue'\nimport type {\n RuleItem,\n ValidateError,\n ValidateFieldsError,\n} from 'async-validator'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type {\n FormEmits,\n FormItemProp,\n FormItemProps,\n FormLabelWidthContext,\n FormProps,\n} from '@element-plus/components/form'\nimport type { Arrayable } from '@element-plus/utils'\n\nexport interface FormItemRule extends RuleItem {\n trigger?: Arrayable<string>\n}\nexport type FormRules = Partial<Record<string, Arrayable<FormItemRule>>>\n\nexport type FormValidationResult = Promise<boolean>\nexport type FormValidateCallback = (\n isValid: boolean,\n invalidFields?: ValidateFieldsError\n) => void\nexport interface FormValidateFailure {\n errors: ValidateError[] | null\n fields: ValidateFieldsError\n}\n\nexport type FormContext = FormProps &\n UnwrapRef<FormLabelWidthContext> & {\n emit: SetupContext<FormEmits>['emit']\n\n // expose\n addField: (field: FormItemContext) => void\n removeField: (field: FormItemContext) => void\n resetFields: (props?: Arrayable<FormItemProp>) => void\n clearValidate: (props?: Arrayable<FormItemProp>) => void\n validateField: (\n props?: Arrayable<FormItemProp>,\n callback?: FormValidateCallback\n ) => FormValidationResult\n }\n\nexport interface FormItemContext extends FormItemProps {\n $el: HTMLDivElement | undefined\n size: ComponentSize\n validateState: string\n validate: (\n trigger: string,\n callback?: FormValidateCallback\n ) => FormValidationResult\n resetField(): void\n clearValidate(): void\n}\n\nexport const formContextKey: InjectionKey<FormContext> =\n Symbol('formContextKey')\nexport const formItemContextKey: InjectionKey<FormItemContext> =\n Symbol('formItemContextKey')\n"],"names":[],"mappings":"AAAY,MAAC,cAAc,GAAG,MAAM,CAAC,gBAAgB,EAAE;AAC3C,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
@@ -11,3 +11,5 @@ export * from './row';
11
11
  export * from './scrollbar';
12
12
  export * from './tabs';
13
13
  export * from './upload';
14
+ export * from './experimental-features';
15
+ export * from './popper';
@@ -11,4 +11,6 @@ export { rowContextKey } from './row.mjs';
11
11
  export { scrollbarContextKey } from './scrollbar.mjs';
12
12
  export { tabsRootContextKey } from './tabs.mjs';
13
13
  export { uploadContextKey } from './upload.mjs';
14
+ import './experimental-features.mjs';
15
+ export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper.mjs';
14
16
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import type { InjectionKey, ComputedRef, WritableComputedRef } from 'vue';
1
+ import type { ComputedRef, InjectionKey, WritableComputedRef } from 'vue';
2
2
  export interface ElPaginationContext {
3
3
  currentPage?: WritableComputedRef<number>;
4
4
  pageCount?: ComputedRef<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.mjs","sources":["../../../../packages/tokens/pagination.ts"],"sourcesContent":["import type { InjectionKey, ComputedRef, WritableComputedRef } from 'vue'\n\nexport interface ElPaginationContext {\n currentPage?: WritableComputedRef<number>\n pageCount?: ComputedRef<number>\n disabled?: ComputedRef<boolean>\n changeEvent?: (val: number) => void\n handleSizeChange?: (val: number) => void\n}\n\nexport const elPaginationKey: InjectionKey<ElPaginationContext> =\n Symbol('elPaginationKey')\n"],"names":[],"mappings":"AAAY,MAAC,eAAe,GAAG,MAAM,CAAC,iBAAiB;;;;"}
1
+ {"version":3,"file":"pagination.mjs","sources":["../../../../packages/tokens/pagination.ts"],"sourcesContent":["import type { ComputedRef, InjectionKey, WritableComputedRef } from 'vue'\n\nexport interface ElPaginationContext {\n currentPage?: WritableComputedRef<number>\n pageCount?: ComputedRef<number>\n disabled?: ComputedRef<boolean>\n changeEvent?: (val: number) => void\n handleSizeChange?: (val: number) => void\n}\n\nexport const elPaginationKey: InjectionKey<ElPaginationContext> =\n Symbol('elPaginationKey')\n"],"names":[],"mappings":"AAAY,MAAC,eAAe,GAAG,MAAM,CAAC,iBAAiB;;;;"}
@@ -0,0 +1,22 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ import type { Instance } from '@popperjs/core';
3
+ export declare type Measurable = {
4
+ getBoundingClientRect: () => DOMRect;
5
+ };
6
+ /**
7
+ * triggerRef indicates the element that triggers popper
8
+ * contentRef indicates the element of popper content
9
+ * referenceRef indicates the element that popper content relative with
10
+ */
11
+ export declare type ElPopperInjectionContext = {
12
+ triggerRef: Ref<Measurable | undefined>;
13
+ contentRef: Ref<HTMLElement | undefined>;
14
+ popperInstanceRef: Ref<Instance | undefined>;
15
+ referenceRef: Ref<Measurable | undefined>;
16
+ };
17
+ export declare type ElPopperContentInjectionContext = {
18
+ arrowRef: Ref<HTMLElement | undefined>;
19
+ arrowOffset: Ref<number | undefined>;
20
+ };
21
+ export declare const POPPER_INJECTION_KEY: InjectionKey<ElPopperInjectionContext>;
22
+ export declare const POPPER_CONTENT_INJECTION_KEY: InjectionKey<ElPopperContentInjectionContext>;
@@ -0,0 +1,5 @@
1
+ const POPPER_INJECTION_KEY = Symbol("popper");
2
+ const POPPER_CONTENT_INJECTION_KEY = Symbol("popperContent");
3
+
4
+ export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY };
5
+ //# sourceMappingURL=popper.mjs.map