@element-plus/nightly 0.0.20260422 → 0.0.20260424

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 (706) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +4761 -4444
  4. package/dist/index.full.min.js +11 -11
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +10 -10
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +4760 -4445
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hi.js +1 -1
  94. package/dist/locale/hi.min.js +1 -1
  95. package/dist/locale/hi.min.mjs +1 -1
  96. package/dist/locale/hi.mjs +1 -1
  97. package/dist/locale/hr.js +1 -1
  98. package/dist/locale/hr.min.js +1 -1
  99. package/dist/locale/hr.min.mjs +1 -1
  100. package/dist/locale/hr.mjs +1 -1
  101. package/dist/locale/hu.js +1 -1
  102. package/dist/locale/hu.min.js +1 -1
  103. package/dist/locale/hu.min.mjs +1 -1
  104. package/dist/locale/hu.mjs +1 -1
  105. package/dist/locale/hy-am.js +1 -1
  106. package/dist/locale/hy-am.min.js +1 -1
  107. package/dist/locale/hy-am.min.mjs +1 -1
  108. package/dist/locale/hy-am.mjs +1 -1
  109. package/dist/locale/id.js +1 -1
  110. package/dist/locale/id.min.js +1 -1
  111. package/dist/locale/id.min.mjs +1 -1
  112. package/dist/locale/id.mjs +1 -1
  113. package/dist/locale/it.js +1 -1
  114. package/dist/locale/it.min.js +1 -1
  115. package/dist/locale/it.min.mjs +1 -1
  116. package/dist/locale/it.mjs +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ja.min.js +1 -1
  119. package/dist/locale/ja.min.mjs +1 -1
  120. package/dist/locale/ja.mjs +1 -1
  121. package/dist/locale/kk.js +1 -1
  122. package/dist/locale/kk.min.js +1 -1
  123. package/dist/locale/kk.min.mjs +1 -1
  124. package/dist/locale/kk.mjs +1 -1
  125. package/dist/locale/km.js +1 -1
  126. package/dist/locale/km.min.js +1 -1
  127. package/dist/locale/km.min.mjs +1 -1
  128. package/dist/locale/km.mjs +1 -1
  129. package/dist/locale/ko.js +1 -1
  130. package/dist/locale/ko.min.js +1 -1
  131. package/dist/locale/ko.min.mjs +1 -1
  132. package/dist/locale/ko.mjs +1 -1
  133. package/dist/locale/ku.js +1 -1
  134. package/dist/locale/ku.min.js +1 -1
  135. package/dist/locale/ku.min.mjs +1 -1
  136. package/dist/locale/ku.mjs +1 -1
  137. package/dist/locale/ky.js +1 -1
  138. package/dist/locale/ky.min.js +1 -1
  139. package/dist/locale/ky.min.mjs +1 -1
  140. package/dist/locale/ky.mjs +1 -1
  141. package/dist/locale/lo.js +1 -1
  142. package/dist/locale/lo.min.js +1 -1
  143. package/dist/locale/lo.min.mjs +1 -1
  144. package/dist/locale/lo.mjs +1 -1
  145. package/dist/locale/lt.js +1 -1
  146. package/dist/locale/lt.min.js +1 -1
  147. package/dist/locale/lt.min.mjs +1 -1
  148. package/dist/locale/lt.mjs +1 -1
  149. package/dist/locale/lv.js +1 -1
  150. package/dist/locale/lv.min.js +1 -1
  151. package/dist/locale/lv.min.mjs +1 -1
  152. package/dist/locale/lv.mjs +1 -1
  153. package/dist/locale/mg.js +1 -1
  154. package/dist/locale/mg.min.js +1 -1
  155. package/dist/locale/mg.min.mjs +1 -1
  156. package/dist/locale/mg.mjs +1 -1
  157. package/dist/locale/mn.js +1 -1
  158. package/dist/locale/mn.min.js +1 -1
  159. package/dist/locale/mn.min.mjs +1 -1
  160. package/dist/locale/mn.mjs +1 -1
  161. package/dist/locale/ms.js +1 -1
  162. package/dist/locale/ms.min.js +1 -1
  163. package/dist/locale/ms.min.mjs +1 -1
  164. package/dist/locale/ms.mjs +1 -1
  165. package/dist/locale/my.js +1 -1
  166. package/dist/locale/my.min.js +1 -1
  167. package/dist/locale/my.min.mjs +1 -1
  168. package/dist/locale/my.mjs +1 -1
  169. package/dist/locale/nb-no.js +1 -1
  170. package/dist/locale/nb-no.min.js +1 -1
  171. package/dist/locale/nb-no.min.mjs +1 -1
  172. package/dist/locale/nb-no.mjs +1 -1
  173. package/dist/locale/nl.js +1 -1
  174. package/dist/locale/nl.min.js +1 -1
  175. package/dist/locale/nl.min.mjs +1 -1
  176. package/dist/locale/nl.mjs +1 -1
  177. package/dist/locale/no.js +1 -1
  178. package/dist/locale/no.min.js +1 -1
  179. package/dist/locale/no.min.mjs +1 -1
  180. package/dist/locale/no.mjs +1 -1
  181. package/dist/locale/pa.js +1 -1
  182. package/dist/locale/pa.min.js +1 -1
  183. package/dist/locale/pa.min.mjs +1 -1
  184. package/dist/locale/pa.mjs +1 -1
  185. package/dist/locale/pl.js +1 -1
  186. package/dist/locale/pl.min.js +1 -1
  187. package/dist/locale/pl.min.mjs +1 -1
  188. package/dist/locale/pl.mjs +1 -1
  189. package/dist/locale/pt-br.js +1 -1
  190. package/dist/locale/pt-br.min.js +1 -1
  191. package/dist/locale/pt-br.min.mjs +1 -1
  192. package/dist/locale/pt-br.mjs +1 -1
  193. package/dist/locale/pt.js +1 -1
  194. package/dist/locale/pt.min.js +1 -1
  195. package/dist/locale/pt.min.mjs +1 -1
  196. package/dist/locale/pt.mjs +1 -1
  197. package/dist/locale/ro.js +1 -1
  198. package/dist/locale/ro.min.js +1 -1
  199. package/dist/locale/ro.min.mjs +1 -1
  200. package/dist/locale/ro.mjs +1 -1
  201. package/dist/locale/ru.js +1 -1
  202. package/dist/locale/ru.min.js +1 -1
  203. package/dist/locale/ru.min.mjs +1 -1
  204. package/dist/locale/ru.mjs +1 -1
  205. package/dist/locale/sk.js +1 -1
  206. package/dist/locale/sk.min.js +1 -1
  207. package/dist/locale/sk.min.mjs +1 -1
  208. package/dist/locale/sk.mjs +1 -1
  209. package/dist/locale/sl.js +1 -1
  210. package/dist/locale/sl.min.js +1 -1
  211. package/dist/locale/sl.min.mjs +1 -1
  212. package/dist/locale/sl.mjs +1 -1
  213. package/dist/locale/sr.js +1 -1
  214. package/dist/locale/sr.min.js +1 -1
  215. package/dist/locale/sr.min.mjs +1 -1
  216. package/dist/locale/sr.mjs +1 -1
  217. package/dist/locale/sv.js +1 -1
  218. package/dist/locale/sv.min.js +1 -1
  219. package/dist/locale/sv.min.mjs +1 -1
  220. package/dist/locale/sv.mjs +1 -1
  221. package/dist/locale/sw.js +1 -1
  222. package/dist/locale/sw.min.js +1 -1
  223. package/dist/locale/sw.min.mjs +1 -1
  224. package/dist/locale/sw.mjs +1 -1
  225. package/dist/locale/ta.js +1 -1
  226. package/dist/locale/ta.min.js +1 -1
  227. package/dist/locale/ta.min.mjs +1 -1
  228. package/dist/locale/ta.mjs +1 -1
  229. package/dist/locale/te.js +1 -1
  230. package/dist/locale/te.min.js +1 -1
  231. package/dist/locale/te.min.mjs +1 -1
  232. package/dist/locale/te.mjs +1 -1
  233. package/dist/locale/th.js +1 -1
  234. package/dist/locale/th.min.js +1 -1
  235. package/dist/locale/th.min.mjs +1 -1
  236. package/dist/locale/th.mjs +1 -1
  237. package/dist/locale/tk.js +1 -1
  238. package/dist/locale/tk.min.js +1 -1
  239. package/dist/locale/tk.min.mjs +1 -1
  240. package/dist/locale/tk.mjs +1 -1
  241. package/dist/locale/tr.js +1 -1
  242. package/dist/locale/tr.min.js +1 -1
  243. package/dist/locale/tr.min.mjs +1 -1
  244. package/dist/locale/tr.mjs +1 -1
  245. package/dist/locale/ug-cn.js +1 -1
  246. package/dist/locale/ug-cn.min.js +1 -1
  247. package/dist/locale/ug-cn.min.mjs +1 -1
  248. package/dist/locale/ug-cn.mjs +1 -1
  249. package/dist/locale/uk.js +1 -1
  250. package/dist/locale/uk.min.js +1 -1
  251. package/dist/locale/uk.min.mjs +1 -1
  252. package/dist/locale/uk.mjs +1 -1
  253. package/dist/locale/uz-uz.js +1 -1
  254. package/dist/locale/uz-uz.min.js +1 -1
  255. package/dist/locale/uz-uz.min.mjs +1 -1
  256. package/dist/locale/uz-uz.mjs +1 -1
  257. package/dist/locale/vi.js +1 -1
  258. package/dist/locale/vi.min.js +1 -1
  259. package/dist/locale/vi.min.mjs +1 -1
  260. package/dist/locale/vi.mjs +1 -1
  261. package/dist/locale/zh-cn.js +1 -1
  262. package/dist/locale/zh-cn.min.js +1 -1
  263. package/dist/locale/zh-cn.min.mjs +1 -1
  264. package/dist/locale/zh-cn.mjs +1 -1
  265. package/dist/locale/zh-hk.js +1 -1
  266. package/dist/locale/zh-hk.min.js +1 -1
  267. package/dist/locale/zh-hk.min.mjs +1 -1
  268. package/dist/locale/zh-hk.mjs +1 -1
  269. package/dist/locale/zh-mo.js +1 -1
  270. package/dist/locale/zh-mo.min.js +1 -1
  271. package/dist/locale/zh-mo.min.mjs +1 -1
  272. package/dist/locale/zh-mo.mjs +1 -1
  273. package/dist/locale/zh-tw.js +1 -1
  274. package/dist/locale/zh-tw.min.js +1 -1
  275. package/dist/locale/zh-tw.min.mjs +1 -1
  276. package/dist/locale/zh-tw.mjs +1 -1
  277. package/es/components/affix/src/affix.vue.d.ts +1 -1
  278. package/es/components/alert/src/alert.d.ts +1 -1
  279. package/es/components/alert/src/alert.vue.d.ts +1 -1
  280. package/es/components/anchor/src/anchor.d.ts +1 -1
  281. package/es/components/anchor/src/anchor.vue.d.ts +2 -2
  282. package/es/components/autocomplete/src/autocomplete.d.ts +5 -5
  283. package/es/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
  284. package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
  285. package/es/components/avatar/src/avatar-group.d.ts +3 -3
  286. package/es/components/avatar/src/avatar.d.ts +2 -2
  287. package/es/components/avatar/src/avatar.vue.d.ts +1 -1
  288. package/es/components/badge/src/badge.d.ts +1 -1
  289. package/es/components/badge/src/badge.vue.d.ts +1 -1
  290. package/es/components/button/src/button-group.vue.d.ts +1 -1
  291. package/es/components/button/src/button.d.ts +2 -2
  292. package/es/components/button/src/button.vue.d.ts +4 -4
  293. package/es/components/calendar/src/calendar.d.ts +1 -1
  294. package/es/components/calendar/src/calendar.vue.d.ts +1 -1
  295. package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
  296. package/es/components/carousel/src/carousel.vue.d.ts +1 -1
  297. package/es/components/cascader/src/cascader.d.ts +12 -4
  298. package/es/components/cascader/src/cascader.mjs +4 -0
  299. package/es/components/cascader/src/cascader.mjs.map +1 -1
  300. package/es/components/cascader/src/cascader.vue.d.ts +177 -22
  301. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +155 -29
  302. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  303. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  304. package/es/components/cascader-panel/index.d.ts +2 -2
  305. package/es/components/cascader-panel/index.mjs +2 -2
  306. package/es/components/cascader-panel/src/config.d.ts +27 -1
  307. package/es/components/cascader-panel/src/config.mjs +18 -1
  308. package/es/components/cascader-panel/src/config.mjs.map +1 -1
  309. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  310. package/es/components/cascader-panel/src/index.vue.d.ts +8 -6
  311. package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +44 -5
  312. package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  313. package/es/components/cascader-panel/src/menu.mjs.map +1 -1
  314. package/es/components/cascader-panel/src/menu.vue.d.ts +23 -22
  315. package/es/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.mjs +120 -6
  316. package/es/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  317. package/es/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.mjs +4 -1
  318. package/es/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  319. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  320. package/es/components/cascader-panel/src/types.d.ts +3 -0
  321. package/es/components/cascader-panel/src/types.mjs.map +1 -1
  322. package/es/components/cascader-panel/style/css.mjs +1 -1
  323. package/es/components/cascader-panel/style/index.mjs +1 -1
  324. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  325. package/es/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  326. package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
  327. package/es/components/checkbox/src/checkbox-group.vue.d.ts +5 -5
  328. package/es/components/checkbox/src/checkbox.d.ts +9 -9
  329. package/es/components/checkbox/src/checkbox.vue.d.ts +6 -6
  330. package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
  331. package/es/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
  332. package/es/components/col/src/col.vue.d.ts +1 -1
  333. package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
  334. package/es/components/collapse/src/collapse.vue.d.ts +2 -2
  335. package/es/components/color-picker/src/color-picker.d.ts +1 -1
  336. package/es/components/color-picker/src/color-picker.vue.d.ts +12 -12
  337. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +2 -2
  338. package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
  339. package/es/components/config-provider/src/config-provider.d.ts +2 -2
  340. package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  341. package/es/components/countdown/src/countdown.vue.d.ts +1 -1
  342. package/es/components/date-picker/src/date-picker.d.ts +16 -16
  343. package/es/components/date-picker/src/props.d.ts +3 -3
  344. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
  345. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  346. package/es/components/descriptions/src/description-item.d.ts +12 -12
  347. package/es/components/descriptions/src/description.d.ts +1 -1
  348. package/es/components/descriptions/src/description.vue.d.ts +1 -1
  349. package/es/components/dialog/src/dialog.vue.d.ts +4 -4
  350. package/es/components/drawer/src/drawer.vue.d.ts +4 -4
  351. package/es/components/dropdown/src/dropdown-item.vue.d.ts +10 -10
  352. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  353. package/es/components/dropdown/src/dropdown.d.ts +3 -3
  354. package/es/components/dropdown/src/dropdown.vue.d.ts +55 -55
  355. package/es/components/form/src/form-item.d.ts +2 -2
  356. package/es/components/form/src/form-item.vue.d.ts +2 -2
  357. package/es/components/form/src/form.d.ts +2 -2
  358. package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
  359. package/es/components/image/src/image.d.ts +1 -1
  360. package/es/components/image/src/image.vue.d.ts +11 -11
  361. package/es/components/image-viewer/src/image-viewer.vue.d.ts +6 -6
  362. package/es/components/index.d.ts +11 -11
  363. package/es/components/index.mjs +7 -7
  364. package/es/components/input/src/input.d.ts +4 -4
  365. package/es/components/input/src/input.vue.d.ts +20 -20
  366. package/es/components/input-number/src/input-number.d.ts +2 -2
  367. package/es/components/input-number/src/input-number.vue.d.ts +11 -11
  368. package/es/components/input-otp/src/input-otp.vue.d.ts +8 -8
  369. package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
  370. package/es/components/input-tag/src/input-tag.d.ts +3 -3
  371. package/es/components/input-tag/src/input-tag.vue.d.ts +16 -16
  372. package/es/components/link/src/link.d.ts +1 -1
  373. package/es/components/mention/src/mention.d.ts +4 -4
  374. package/es/components/mention/src/mention.vue.d.ts +6 -6
  375. package/es/components/menu/src/menu.d.ts +5 -5
  376. package/es/components/message/src/message.d.ts +1 -1
  377. package/es/components/message/src/message.vue.d.ts +4 -4
  378. package/es/components/message-box/index.d.ts +2 -2
  379. package/es/components/message-box/src/message-box.type.d.ts +9 -3
  380. package/es/components/message-box/src/messageBox.mjs +9 -1
  381. package/es/components/message-box/src/messageBox.mjs.map +1 -1
  382. package/es/components/notification/src/notification.d.ts +1 -1
  383. package/es/components/notification/src/notification.vue.d.ts +4 -4
  384. package/es/components/pagination/src/pagination.d.ts +6 -6
  385. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  386. package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  387. package/es/components/popover/src/popover.d.ts +2 -2
  388. package/es/components/popover/src/popover.vue.d.ts +7 -7
  389. package/es/components/popper/src/composables/use-content.d.ts +1 -1
  390. package/es/components/popper/src/content.vue.d.ts +7 -7
  391. package/es/components/popper/src/popper.d.ts +2 -2
  392. package/es/components/progress/src/progress.d.ts +1 -1
  393. package/es/components/progress/src/progress.vue.d.ts +2 -2
  394. package/es/components/radio/src/radio-button.d.ts +4 -4
  395. package/es/components/radio/src/radio-button.vue.d.ts +2 -2
  396. package/es/components/radio/src/radio-group.d.ts +1 -1
  397. package/es/components/radio/src/radio-group.vue.d.ts +7 -7
  398. package/es/components/radio/src/radio.d.ts +8 -8
  399. package/es/components/radio/src/radio.vue.d.ts +5 -5
  400. package/es/components/rate/src/rate.d.ts +1 -1
  401. package/es/components/rate/src/rate.vue.d.ts +4 -4
  402. package/es/components/result/src/result.d.ts +1 -1
  403. package/es/components/result/src/result.vue.d.ts +1 -1
  404. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +2 -2
  405. package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  406. package/es/components/segmented/index.d.ts +4 -4
  407. package/es/components/segmented/src/segmented.d.ts +2 -2
  408. package/es/components/segmented/src/segmented.vue.d.ts +2 -2
  409. package/es/components/select/src/option.d.ts +2 -2
  410. package/es/components/select/src/option.vue.d.ts +5 -5
  411. package/es/components/select/src/select.d.ts +5 -5
  412. package/es/components/select/src/select.vue.d.ts +74 -74
  413. package/es/components/select-v2/src/defaults.d.ts +3 -3
  414. package/es/components/select-v2/src/select-dropdown.d.ts +2 -2
  415. package/es/components/select-v2/src/select.vue.d.ts +58 -58
  416. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  417. package/es/components/slider/src/button.vue.d.ts +1 -1
  418. package/es/components/slider/src/slider.d.ts +2 -2
  419. package/es/components/slider/src/slider.vue.d.ts +12 -12
  420. package/es/components/space/src/space.d.ts +4 -4
  421. package/es/components/splitter/src/splitter.vue.d.ts +2 -2
  422. package/es/components/steps/src/item.d.ts +1 -1
  423. package/es/components/steps/src/item.vue.d.ts +2 -2
  424. package/es/components/steps/src/steps.d.ts +2 -2
  425. package/es/components/steps/src/steps.vue.d.ts +1 -1
  426. package/es/components/switch/src/switch.d.ts +1 -1
  427. package/es/components/switch/src/switch.vue.d.ts +6 -6
  428. package/es/components/table/src/table-column/index.d.ts +25 -25
  429. package/es/components/table/src/table-footer/index.d.ts +1 -1
  430. package/es/components/table/src/table-header/index.d.ts +20 -20
  431. package/es/components/table/src/table-layout.d.ts +1 -0
  432. package/es/components/table/src/table-layout.mjs +5 -1
  433. package/es/components/table/src/table-layout.mjs.map +1 -1
  434. package/es/components/table/src/table.vue.d.ts +46 -46
  435. package/es/components/table-v2/src/components/row.d.ts +1 -1
  436. package/es/components/table-v2/src/table-grid.d.ts +3 -3
  437. package/es/components/table-v2/src/table-v2.d.ts +3 -3
  438. package/es/components/table-v2/style/css.mjs +1 -1
  439. package/es/components/table-v2/style/index.mjs +1 -1
  440. package/es/components/tabs/src/tabs.d.ts +2 -2
  441. package/es/components/tag/src/tag.d.ts +2 -2
  442. package/es/components/tag/src/tag.vue.d.ts +1 -1
  443. package/es/components/text/src/text.d.ts +2 -2
  444. package/es/components/text/src/text.vue.d.ts +1 -1
  445. package/es/components/time-picker/src/common/picker.vue.d.ts +24 -24
  446. package/es/components/time-picker/src/common/props.d.ts +3 -3
  447. package/es/components/time-picker/src/time-picker.d.ts +16 -16
  448. package/es/components/time-select/src/time-select.d.ts +1 -1
  449. package/es/components/time-select/src/time-select.vue.d.ts +14 -14
  450. package/es/components/timeline/src/timeline-item.d.ts +1 -1
  451. package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
  452. package/es/components/tooltip/src/content.vue.d.ts +3 -3
  453. package/es/components/tooltip/src/tooltip.d.ts +2 -2
  454. package/es/components/tooltip/src/tooltip.vue.d.ts +8 -8
  455. package/es/components/tooltip/src/trigger.d.ts +1 -1
  456. package/es/components/tour/src/content.d.ts +1 -1
  457. package/es/components/tour/src/step.d.ts +1 -1
  458. package/es/components/tour/src/tour.d.ts +1 -1
  459. package/es/components/tour/src/tour.vue.d.ts +5 -5
  460. package/es/components/transfer/src/transfer.vue.d.ts +2 -2
  461. package/es/components/tree/src/tree.vue.d.ts +26 -26
  462. package/es/components/tree-select/src/tree-select.vue.d.ts +41 -41
  463. package/es/components/tree-v2/src/tree.vue.d.ts +4 -4
  464. package/es/components/tree-v2/src/types.d.ts +7 -2
  465. package/es/components/tree-v2/src/virtual-tree.d.ts +129 -3
  466. package/es/components/upload/src/upload-content.d.ts +1 -1
  467. package/es/components/upload/src/upload-content.vue.d.ts +3 -3
  468. package/es/components/upload/src/upload-list.d.ts +1 -1
  469. package/es/components/upload/src/upload.d.ts +2 -2
  470. package/es/components/upload/src/upload.vue.d.ts +4 -4
  471. package/es/components/virtual-list/src/builders/build-grid.d.ts +14 -2
  472. package/es/components/virtual-list/src/builders/build-list.mjs +2 -1
  473. package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
  474. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +14 -2
  475. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -4
  476. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +14 -2
  477. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +16 -4
  478. package/es/components/virtual-list/src/props.d.ts +18 -0
  479. package/es/components/virtual-list/src/props.mjs +4 -0
  480. package/es/components/virtual-list/src/props.mjs.map +1 -1
  481. package/es/hooks/use-popper/index.d.ts +1 -1
  482. package/es/hooks/use-size/index.d.ts +3 -3
  483. package/es/index.d.ts +10 -10
  484. package/es/index.mjs +7 -7
  485. package/es/utils/vue/vnode.d.ts +4 -4
  486. package/es/version.mjs +1 -1
  487. package/es/version.mjs.map +1 -1
  488. package/lib/components/affix/src/affix.vue.d.ts +1 -1
  489. package/lib/components/alert/src/alert.d.ts +1 -1
  490. package/lib/components/alert/src/alert.vue.d.ts +1 -1
  491. package/lib/components/anchor/src/anchor.d.ts +1 -1
  492. package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
  493. package/lib/components/autocomplete/src/autocomplete.d.ts +5 -5
  494. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
  495. package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
  496. package/lib/components/avatar/src/avatar-group.d.ts +3 -3
  497. package/lib/components/avatar/src/avatar.d.ts +2 -2
  498. package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
  499. package/lib/components/badge/src/badge.d.ts +1 -1
  500. package/lib/components/badge/src/badge.vue.d.ts +1 -1
  501. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  502. package/lib/components/button/src/button.d.ts +2 -2
  503. package/lib/components/button/src/button.vue.d.ts +4 -4
  504. package/lib/components/calendar/src/calendar.d.ts +1 -1
  505. package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
  506. package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
  507. package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
  508. package/lib/components/cascader/src/cascader.d.ts +12 -4
  509. package/lib/components/cascader/src/cascader.js +4 -0
  510. package/lib/components/cascader/src/cascader.js.map +1 -1
  511. package/lib/components/cascader/src/cascader.vue.d.ts +177 -22
  512. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +154 -27
  513. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  514. package/lib/components/cascader/src/cascader2.js.map +1 -1
  515. package/lib/components/cascader-panel/index.d.ts +2 -2
  516. package/lib/components/cascader-panel/index.js +2 -0
  517. package/lib/components/cascader-panel/src/config.d.ts +27 -1
  518. package/lib/components/cascader-panel/src/config.js +19 -0
  519. package/lib/components/cascader-panel/src/config.js.map +1 -1
  520. package/lib/components/cascader-panel/src/index.js.map +1 -1
  521. package/lib/components/cascader-panel/src/index.vue.d.ts +8 -6
  522. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +44 -5
  523. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
  524. package/lib/components/cascader-panel/src/menu.js.map +1 -1
  525. package/lib/components/cascader-panel/src/menu.vue.d.ts +23 -22
  526. package/lib/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.js +119 -5
  527. package/lib/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  528. package/lib/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.js +4 -1
  529. package/lib/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.js.map +1 -1
  530. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  531. package/lib/components/cascader-panel/src/types.d.ts +3 -0
  532. package/lib/components/cascader-panel/src/types.js.map +1 -1
  533. package/lib/components/cascader-panel/style/css.js +1 -1
  534. package/lib/components/cascader-panel/style/index.js +1 -1
  535. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  536. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  537. package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
  538. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +5 -5
  539. package/lib/components/checkbox/src/checkbox.d.ts +9 -9
  540. package/lib/components/checkbox/src/checkbox.vue.d.ts +6 -6
  541. package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
  542. package/lib/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
  543. package/lib/components/col/src/col.vue.d.ts +1 -1
  544. package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
  545. package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
  546. package/lib/components/color-picker/src/color-picker.d.ts +1 -1
  547. package/lib/components/color-picker/src/color-picker.vue.d.ts +12 -12
  548. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +2 -2
  549. package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
  550. package/lib/components/config-provider/src/config-provider.d.ts +2 -2
  551. package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  552. package/lib/components/countdown/src/countdown.vue.d.ts +1 -1
  553. package/lib/components/date-picker/src/date-picker.d.ts +16 -16
  554. package/lib/components/date-picker/src/props.d.ts +3 -3
  555. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
  556. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  557. package/lib/components/descriptions/src/description-item.d.ts +12 -12
  558. package/lib/components/descriptions/src/description.d.ts +1 -1
  559. package/lib/components/descriptions/src/description.vue.d.ts +1 -1
  560. package/lib/components/dialog/src/dialog.vue.d.ts +4 -4
  561. package/lib/components/drawer/src/drawer.vue.d.ts +4 -4
  562. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +10 -10
  563. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  564. package/lib/components/dropdown/src/dropdown.d.ts +3 -3
  565. package/lib/components/dropdown/src/dropdown.vue.d.ts +55 -55
  566. package/lib/components/form/src/form-item.d.ts +2 -2
  567. package/lib/components/form/src/form-item.vue.d.ts +2 -2
  568. package/lib/components/form/src/form.d.ts +2 -2
  569. package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
  570. package/lib/components/image/src/image.d.ts +1 -1
  571. package/lib/components/image/src/image.vue.d.ts +11 -11
  572. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +6 -6
  573. package/lib/components/index.d.ts +11 -11
  574. package/lib/components/index.js +13 -11
  575. package/lib/components/input/src/input.d.ts +4 -4
  576. package/lib/components/input/src/input.vue.d.ts +20 -20
  577. package/lib/components/input-number/src/input-number.d.ts +2 -2
  578. package/lib/components/input-number/src/input-number.vue.d.ts +11 -11
  579. package/lib/components/input-otp/src/input-otp.vue.d.ts +8 -8
  580. package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
  581. package/lib/components/input-tag/src/input-tag.d.ts +3 -3
  582. package/lib/components/input-tag/src/input-tag.vue.d.ts +16 -16
  583. package/lib/components/link/src/link.d.ts +1 -1
  584. package/lib/components/mention/src/mention.d.ts +4 -4
  585. package/lib/components/mention/src/mention.vue.d.ts +6 -6
  586. package/lib/components/menu/src/menu.d.ts +5 -5
  587. package/lib/components/message/src/message.d.ts +1 -1
  588. package/lib/components/message/src/message.vue.d.ts +4 -4
  589. package/lib/components/message-box/index.d.ts +2 -2
  590. package/lib/components/message-box/src/message-box.type.d.ts +9 -3
  591. package/lib/components/message-box/src/messageBox.js +9 -1
  592. package/lib/components/message-box/src/messageBox.js.map +1 -1
  593. package/lib/components/notification/src/notification.d.ts +1 -1
  594. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  595. package/lib/components/pagination/src/pagination.d.ts +6 -6
  596. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  597. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  598. package/lib/components/popover/src/popover.d.ts +2 -2
  599. package/lib/components/popover/src/popover.vue.d.ts +7 -7
  600. package/lib/components/popper/src/composables/use-content.d.ts +1 -1
  601. package/lib/components/popper/src/content.vue.d.ts +7 -7
  602. package/lib/components/popper/src/popper.d.ts +2 -2
  603. package/lib/components/progress/src/progress.d.ts +1 -1
  604. package/lib/components/progress/src/progress.vue.d.ts +2 -2
  605. package/lib/components/radio/src/radio-button.d.ts +4 -4
  606. package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
  607. package/lib/components/radio/src/radio-group.d.ts +1 -1
  608. package/lib/components/radio/src/radio-group.vue.d.ts +7 -7
  609. package/lib/components/radio/src/radio.d.ts +8 -8
  610. package/lib/components/radio/src/radio.vue.d.ts +5 -5
  611. package/lib/components/rate/src/rate.d.ts +1 -1
  612. package/lib/components/rate/src/rate.vue.d.ts +4 -4
  613. package/lib/components/result/src/result.d.ts +1 -1
  614. package/lib/components/result/src/result.vue.d.ts +1 -1
  615. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +2 -2
  616. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  617. package/lib/components/segmented/index.d.ts +4 -4
  618. package/lib/components/segmented/src/segmented.d.ts +2 -2
  619. package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
  620. package/lib/components/select/src/option.d.ts +2 -2
  621. package/lib/components/select/src/option.vue.d.ts +5 -5
  622. package/lib/components/select/src/select.d.ts +5 -5
  623. package/lib/components/select/src/select.vue.d.ts +74 -74
  624. package/lib/components/select-v2/src/defaults.d.ts +3 -3
  625. package/lib/components/select-v2/src/select-dropdown.d.ts +2 -2
  626. package/lib/components/select-v2/src/select.vue.d.ts +58 -58
  627. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  628. package/lib/components/slider/src/button.vue.d.ts +1 -1
  629. package/lib/components/slider/src/slider.d.ts +2 -2
  630. package/lib/components/slider/src/slider.vue.d.ts +12 -12
  631. package/lib/components/space/src/space.d.ts +4 -4
  632. package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
  633. package/lib/components/steps/src/item.d.ts +1 -1
  634. package/lib/components/steps/src/item.vue.d.ts +2 -2
  635. package/lib/components/steps/src/steps.d.ts +2 -2
  636. package/lib/components/steps/src/steps.vue.d.ts +1 -1
  637. package/lib/components/switch/src/switch.d.ts +1 -1
  638. package/lib/components/switch/src/switch.vue.d.ts +6 -6
  639. package/lib/components/table/src/table-column/index.d.ts +25 -25
  640. package/lib/components/table/src/table-footer/index.d.ts +1 -1
  641. package/lib/components/table/src/table-header/index.d.ts +20 -20
  642. package/lib/components/table/src/table-layout.d.ts +1 -0
  643. package/lib/components/table/src/table-layout.js +5 -1
  644. package/lib/components/table/src/table-layout.js.map +1 -1
  645. package/lib/components/table/src/table.vue.d.ts +46 -46
  646. package/lib/components/table-v2/src/components/row.d.ts +1 -1
  647. package/lib/components/table-v2/src/table-grid.d.ts +3 -3
  648. package/lib/components/table-v2/src/table-v2.d.ts +3 -3
  649. package/lib/components/table-v2/style/css.js +1 -1
  650. package/lib/components/table-v2/style/index.js +1 -1
  651. package/lib/components/tabs/src/tabs.d.ts +2 -2
  652. package/lib/components/tag/src/tag.d.ts +2 -2
  653. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  654. package/lib/components/text/src/text.d.ts +2 -2
  655. package/lib/components/text/src/text.vue.d.ts +1 -1
  656. package/lib/components/time-picker/src/common/picker.vue.d.ts +24 -24
  657. package/lib/components/time-picker/src/common/props.d.ts +3 -3
  658. package/lib/components/time-picker/src/time-picker.d.ts +16 -16
  659. package/lib/components/time-select/src/time-select.d.ts +1 -1
  660. package/lib/components/time-select/src/time-select.vue.d.ts +14 -14
  661. package/lib/components/timeline/src/timeline-item.d.ts +1 -1
  662. package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
  663. package/lib/components/tooltip/src/content.vue.d.ts +3 -3
  664. package/lib/components/tooltip/src/tooltip.d.ts +2 -2
  665. package/lib/components/tooltip/src/tooltip.vue.d.ts +8 -8
  666. package/lib/components/tooltip/src/trigger.d.ts +1 -1
  667. package/lib/components/tour/src/content.d.ts +1 -1
  668. package/lib/components/tour/src/step.d.ts +1 -1
  669. package/lib/components/tour/src/tour.d.ts +1 -1
  670. package/lib/components/tour/src/tour.vue.d.ts +5 -5
  671. package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
  672. package/lib/components/tree/src/tree.vue.d.ts +26 -26
  673. package/lib/components/tree-select/src/tree-select.vue.d.ts +41 -41
  674. package/lib/components/tree-v2/src/tree.vue.d.ts +4 -4
  675. package/lib/components/tree-v2/src/types.d.ts +7 -2
  676. package/lib/components/tree-v2/src/virtual-tree.d.ts +129 -3
  677. package/lib/components/upload/src/upload-content.d.ts +1 -1
  678. package/lib/components/upload/src/upload-content.vue.d.ts +3 -3
  679. package/lib/components/upload/src/upload-list.d.ts +1 -1
  680. package/lib/components/upload/src/upload.d.ts +2 -2
  681. package/lib/components/upload/src/upload.vue.d.ts +4 -4
  682. package/lib/components/virtual-list/src/builders/build-grid.d.ts +14 -2
  683. package/lib/components/virtual-list/src/builders/build-list.js +2 -1
  684. package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
  685. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +14 -2
  686. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -4
  687. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +14 -2
  688. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +16 -4
  689. package/lib/components/virtual-list/src/props.d.ts +18 -0
  690. package/lib/components/virtual-list/src/props.js +4 -0
  691. package/lib/components/virtual-list/src/props.js.map +1 -1
  692. package/lib/hooks/use-popper/index.d.ts +1 -1
  693. package/lib/hooks/use-size/index.d.ts +3 -3
  694. package/lib/index.d.ts +10 -10
  695. package/lib/index.js +13 -11
  696. package/lib/utils/vue/vnode.d.ts +4 -4
  697. package/lib/version.js +1 -1
  698. package/lib/version.js.map +1 -1
  699. package/package.json +2 -2
  700. package/tags.json +1 -1
  701. package/theme-chalk/el-cascader-panel.css +1 -1
  702. package/theme-chalk/el-cascader.css +1 -1
  703. package/theme-chalk/index.css +1 -1
  704. package/theme-chalk/src/cascader-panel.scss +11 -0
  705. package/theme-chalk/src/cascader.scss +28 -1
  706. package/web-types.json +1 -1
@@ -50,6 +50,12 @@ declare const createGrid: ({
50
50
  readonly validator: ((val: unknown) => boolean) | undefined;
51
51
  __epPropKey: true;
52
52
  };
53
+ readonly innerWidth: {
54
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
55
+ readonly required: false;
56
+ readonly validator: ((val: unknown) => boolean) | undefined;
57
+ __epPropKey: true;
58
+ };
53
59
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
54
60
  readonly scrollbarAlwaysOn: BooleanConstructor;
55
61
  readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -140,6 +146,12 @@ declare const createGrid: ({
140
146
  readonly validator: ((val: unknown) => boolean) | undefined;
141
147
  __epPropKey: true;
142
148
  };
149
+ readonly innerWidth: {
150
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
151
+ readonly required: false;
152
+ readonly validator: ((val: unknown) => boolean) | undefined;
153
+ __epPropKey: true;
154
+ };
143
155
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
144
156
  readonly scrollbarAlwaysOn: BooleanConstructor;
145
157
  readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -209,12 +221,12 @@ declare const createGrid: ({
209
221
  readonly data: any[];
210
222
  readonly className: string;
211
223
  readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
212
- readonly scrollbarAlwaysOn: boolean;
213
- readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
214
224
  readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
215
225
  readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
216
226
  readonly innerProps: Record<string, unknown>;
227
+ readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
217
228
  readonly useIsScrolling: boolean;
229
+ readonly scrollbarAlwaysOn: boolean;
218
230
  readonly itemKey: GridItemKeyGetter;
219
231
  readonly columnCache: number;
220
232
  readonly initScrollLeft: number;
@@ -77,10 +77,11 @@ const createList = ({ name, getOffset, getItemSize, getItemOffset, getEstimatedT
77
77
  const innerStyle = computed(() => {
78
78
  const size = unref(estimatedTotalSize);
79
79
  const horizontal = unref(_isHorizontal);
80
+ const innerWidth = props.innerWidth;
80
81
  return {
81
82
  height: horizontal ? "100%" : `${size}px`,
82
83
  pointerEvents: unref(states).isScrolling ? "none" : void 0,
83
- width: horizontal ? `${size}px` : "100%",
84
+ width: horizontal ? `${size}px` : innerWidth !== void 0 ? isNumber(innerWidth) ? `${innerWidth}px` : innerWidth : "100%",
84
85
  margin: 0,
85
86
  boxSizing: "border-box"
86
87
  };
@@ -1 +1 @@
1
- {"version":3,"file":"build-list.mjs","names":["isClient","Scrollbar"],"sources":["../../../../../../../packages/components/virtual-list/src/builders/build-list.ts"],"sourcesContent":["import {\n Fragment,\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n mergeProps,\n nextTick,\n onActivated,\n onMounted,\n onUpdated,\n ref,\n resolveDynamicComponent,\n unref,\n watch,\n} from 'vue'\nimport { clamp, useEventListener } from '@vueuse/core'\nimport {\n hasOwn,\n isClient,\n isGreaterThan,\n isNumber,\n isString,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useCache } from '../hooks/use-cache'\nimport useWheel from '../hooks/use-wheel'\nimport Scrollbar from '../components/scrollbar'\nimport { getRTLOffsetType, getScrollDir, isHorizontal } from '../utils'\nimport { virtualizedListProps } from '../props'\nimport {\n AUTO_ALIGNMENT,\n BACKWARD,\n END_REACHED_EVT,\n FORWARD,\n HORIZONTAL,\n ITEM_RENDER_EVT,\n RTL,\n RTL_OFFSET_NAG,\n RTL_OFFSET_POS_ASC,\n RTL_OFFSET_POS_DESC,\n SCROLL_EVT,\n} from '../defaults'\n\nimport type { CSSProperties, Slot, VNode, VNodeChild } from 'vue'\nimport type { Alignment, ListConstructorProps, ScrollDirection } from '../types'\nimport type { VirtualizedListProps } from '../props'\n\nconst createList = ({\n name,\n getOffset,\n getItemSize,\n getItemOffset,\n getEstimatedTotalSize,\n getStartIndexForOffset,\n getStopIndexForStartIndex,\n initCache,\n clearCache,\n validateProps,\n}: ListConstructorProps<VirtualizedListProps>) => {\n return defineComponent({\n name: name ?? 'ElVirtualList',\n props: virtualizedListProps,\n emits: [ITEM_RENDER_EVT, SCROLL_EVT, END_REACHED_EVT],\n setup(props, { emit, expose }) {\n validateProps(props)\n const instance = getCurrentInstance()!\n\n const ns = useNamespace('vl')\n\n const dynamicSizeCache = ref(initCache(props, instance))\n\n const getItemStyleCache = useCache<CSSProperties>()\n // refs\n // here windowRef and innerRef can be type of HTMLElement\n // or user defined component type, depends on the type passed\n // by user\n const windowRef = ref<HTMLElement>()\n const innerRef = ref<HTMLElement>()\n const scrollbarRef = ref()\n const states = ref({\n isScrolling: false,\n scrollDir: FORWARD as ScrollDirection,\n scrollOffset: isNumber(props.initScrollOffset)\n ? props.initScrollOffset\n : 0,\n updateRequested: false,\n isScrollbarDragging: false,\n })\n\n // computed\n const itemsToRender = computed(() => {\n const { total, cache } = props\n const { isScrolling, scrollDir, scrollOffset } = unref(states)\n\n if (total === 0) {\n return [0, 0, 0, 0]\n }\n\n const startIndex = getStartIndexForOffset(\n props,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n const stopIndex = getStopIndexForStartIndex(\n props,\n startIndex,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n\n const cacheBackward =\n !isScrolling || scrollDir === BACKWARD ? Math.max(1, cache) : 1\n const cacheForward =\n !isScrolling || scrollDir === FORWARD ? Math.max(1, cache) : 1\n\n return [\n Math.max(0, startIndex - cacheBackward),\n Math.max(0, Math.min(total! - 1, stopIndex + cacheForward)),\n startIndex,\n stopIndex,\n ]\n })\n\n const estimatedTotalSize = computed(() =>\n getEstimatedTotalSize(props, unref(dynamicSizeCache))\n )\n\n const _isHorizontal = computed(() => isHorizontal(props.layout))\n\n const windowStyle = computed(() => [\n {\n position: 'relative',\n [`overflow-${_isHorizontal.value ? 'x' : 'y'}`]: 'scroll',\n WebkitOverflowScrolling: 'touch',\n willChange: 'transform',\n },\n {\n direction: props.direction,\n height: isNumber(props.height) ? `${props.height}px` : props.height,\n width: isNumber(props.width) ? `${props.width}px` : props.width,\n },\n props.style,\n ])\n\n const innerStyle = computed(() => {\n const size = unref(estimatedTotalSize)\n const horizontal = unref(_isHorizontal)\n return {\n height: horizontal ? '100%' : `${size}px`,\n pointerEvents: unref(states).isScrolling ? 'none' : undefined,\n width: horizontal ? `${size}px` : '100%',\n\n // fix scrolling issues in Firefox.\n margin: 0,\n boxSizing: 'border-box',\n }\n })\n\n const clientSize = computed(() =>\n _isHorizontal.value ? props.width : props.height\n )\n\n const maxOffset = computed(() =>\n Math.max(0, estimatedTotalSize.value - (clientSize.value as number))\n )\n\n const normalizeOffset = (offset: number) =>\n clamp(offset, 0, maxOffset.value)\n\n // Tolerance must cover sub-pixel differences that arise when the\n // browser's actual scrollHeight−clientHeight (affected by DPR\n // rounding) doesn't exactly match our computed maxOffset.\n // Without this, the native scroll event after onUpdated resets\n // edgeState and causes a duplicate end-reached emission.\n const EDGE_TOLERANCE = 1\n\n const getEdgeState = (normalizedOffset: number) => ({\n start: !isGreaterThan(normalizedOffset, 0, EDGE_TOLERANCE),\n end: !isGreaterThan(maxOffset.value, normalizedOffset, EDGE_TOLERANCE),\n })\n\n const normalizedScrollOffset = computed(() =>\n normalizeOffset(states.value.scrollOffset)\n )\n const currentEdgeState = computed(() =>\n getEdgeState(normalizedScrollOffset.value)\n )\n\n let edgeState = currentEdgeState.value\n\n const startEdgeReached = computed(() => currentEdgeState.value.start)\n const endEdgeReached = computed(() => currentEdgeState.value.end)\n\n // methods\n const { onWheel } = useWheel(\n {\n atStartEdge: startEdgeReached,\n atEndEdge: endEdgeReached,\n layout: computed(() => props.layout),\n },\n (offset) => {\n ;(\n scrollbarRef.value as {\n onMouseUp: () => void\n }\n ).onMouseUp?.()\n scrollTo(\n Math.min(states.value.scrollOffset + offset, maxOffset.value)\n )\n }\n )\n\n useEventListener(windowRef, 'wheel', onWheel, {\n passive: false,\n })\n\n const emitEvents = () => {\n const { total } = props\n\n if (total! > 0) {\n const [cacheStart, cacheEnd, visibleStart, visibleEnd] =\n unref(itemsToRender)\n emit(ITEM_RENDER_EVT, cacheStart, cacheEnd, visibleStart, visibleEnd)\n }\n\n const { scrollDir, scrollOffset, updateRequested } = unref(states)\n emit(SCROLL_EVT, scrollDir, scrollOffset, updateRequested)\n }\n\n const emitEndReached = (direction: ScrollDirection, offset: number) => {\n const nextEdgeState = getEdgeState(offset)\n const horizontalEnd = props.direction === RTL ? 'left' : 'right'\n const horizontalStart = props.direction === RTL ? 'right' : 'left'\n\n if (direction === FORWARD && nextEdgeState.end && !edgeState.end) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalEnd : 'bottom')\n }\n\n if (direction === BACKWARD && nextEdgeState.start && !edgeState.start) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalStart : 'top')\n }\n\n edgeState = nextEdgeState\n }\n\n const updateScrollOffset = (\n offset: number,\n {\n isScrolling,\n updateRequested,\n }: {\n isScrolling: boolean\n updateRequested: boolean\n }\n ) => {\n const currentState = unref(states)\n const nextOffset = Math.max(offset, 0)\n\n if (nextOffset === currentState.scrollOffset) {\n return\n }\n\n const scrollDir = getScrollDir(currentState.scrollOffset, nextOffset)\n\n states.value = {\n ...currentState,\n isScrolling,\n scrollDir,\n scrollOffset: nextOffset,\n updateRequested,\n }\n emitEndReached(scrollDir, normalizeOffset(nextOffset))\n\n nextTick(resetIsScrolling)\n }\n\n const scrollVertically = (e: Event) => {\n const { clientHeight, scrollHeight, scrollTop } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n if (_states.scrollOffset === scrollTop) {\n return\n }\n\n updateScrollOffset(Math.min(scrollTop, scrollHeight - clientHeight), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const scrollHorizontally = (e: Event) => {\n const { clientWidth, scrollLeft, scrollWidth } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n\n if (_states.scrollOffset === scrollLeft) {\n return\n }\n\n const { direction } = props\n\n let scrollOffset = scrollLeft\n\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n scrollOffset = -scrollLeft\n break\n }\n case RTL_OFFSET_POS_DESC: {\n scrollOffset = scrollWidth - clientWidth - scrollLeft\n break\n }\n }\n }\n\n updateScrollOffset(Math.min(scrollOffset, scrollWidth - clientWidth), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const onScroll = (e: Event) => {\n unref(_isHorizontal) ? scrollHorizontally(e) : scrollVertically(e)\n emitEvents()\n }\n\n const onScrollbarScroll = (distanceToGo: number, totalSteps: number) => {\n const offset = (maxOffset.value / totalSteps) * distanceToGo\n scrollTo(Math.min(maxOffset.value, offset))\n }\n\n const scrollTo = (offset: number) => {\n updateScrollOffset(offset, {\n isScrolling: unref(states).isScrolling,\n updateRequested: true,\n })\n }\n\n const scrollToItem = (\n idx: number,\n alignment: Alignment = AUTO_ALIGNMENT\n ) => {\n const { scrollOffset } = unref(states)\n\n idx = Math.max(0, Math.min(idx, props.total! - 1))\n scrollTo(\n getOffset(\n props,\n idx,\n alignment,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n )\n }\n\n const getItemStyle = (idx: number) => {\n const { direction, itemSize, layout } = props\n\n const itemStyleCache = getItemStyleCache.value(\n clearCache && itemSize,\n clearCache && layout,\n clearCache && direction\n )\n\n let style: CSSProperties\n if (hasOwn(itemStyleCache, String(idx))) {\n style = itemStyleCache[idx]\n } else {\n const offset = getItemOffset(props, idx, unref(dynamicSizeCache))\n const size = getItemSize(props, idx, unref(dynamicSizeCache))\n const horizontal = unref(_isHorizontal)\n\n const isRtl = direction === RTL\n const offsetHorizontal = horizontal ? offset : 0\n itemStyleCache[idx] = style = {\n position: 'absolute',\n left: isRtl ? undefined : `${offsetHorizontal}px`,\n right: isRtl ? `${offsetHorizontal}px` : undefined,\n top: !horizontal ? `${offset}px` : 0,\n height: !horizontal ? `${size}px` : '100%',\n width: horizontal ? `${size}px` : '100%',\n }\n }\n\n return style\n }\n\n // TODO: perf optimization here, reset isScrolling with debounce.\n\n const resetIsScrolling = () => {\n states.value.isScrolling = false\n nextTick(() => {\n getItemStyleCache.value(-1, null, null)\n })\n }\n\n const resetScrollTop = () => {\n const window = windowRef.value\n if (window) {\n window.scrollTop = 0\n }\n }\n\n // life cycles\n onMounted(() => {\n if (!isClient) return\n const { initScrollOffset } = props\n const windowElement = unref(windowRef)\n if (isNumber(initScrollOffset) && windowElement) {\n if (unref(_isHorizontal)) {\n windowElement.scrollLeft = initScrollOffset\n } else {\n windowElement.scrollTop = initScrollOffset\n }\n }\n\n emitEvents()\n })\n\n onUpdated(() => {\n const { direction, layout } = props\n const { scrollOffset, updateRequested } = unref(states)\n const windowElement = unref(windowRef)\n\n if (updateRequested && windowElement) {\n if (layout === HORIZONTAL) {\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // So we need to determine which browser behavior we're dealing with, and mimic it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n windowElement.scrollLeft = -scrollOffset\n break\n }\n case RTL_OFFSET_POS_ASC: {\n windowElement.scrollLeft = scrollOffset\n break\n }\n default: {\n const { clientWidth, scrollWidth } = windowElement\n windowElement.scrollLeft =\n scrollWidth - clientWidth - scrollOffset\n break\n }\n }\n } else {\n windowElement.scrollLeft = scrollOffset\n }\n } else {\n windowElement.scrollTop = scrollOffset\n }\n }\n })\n\n onActivated(() => {\n unref(windowRef)!.scrollTop = unref(states).scrollOffset\n })\n\n watch(maxOffset, () => {\n edgeState = currentEdgeState.value\n })\n\n const api = {\n ns,\n clientSize,\n estimatedTotalSize,\n windowStyle,\n windowRef,\n innerRef,\n innerStyle,\n itemsToRender,\n scrollbarRef,\n states,\n getItemStyle,\n onScroll,\n onScrollbarScroll,\n onWheel,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n }\n\n expose({\n windowRef,\n innerRef,\n getItemStyleCache,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n states,\n })\n\n return api\n },\n\n render(ctx: any) {\n const {\n $slots,\n className,\n clientSize,\n containerElement,\n data,\n getItemStyle,\n innerElement,\n itemsToRender,\n innerStyle,\n layout,\n scrollbarAlwaysOn,\n total,\n onScroll,\n onScrollbarScroll,\n states,\n useIsScrolling,\n windowStyle,\n ns,\n } = ctx\n\n const [start, end] = itemsToRender\n\n const Container = resolveDynamicComponent(containerElement)\n const Inner = resolveDynamicComponent(innerElement)\n\n const children = [] as VNodeChild[]\n\n if (total > 0) {\n for (let i = start; i <= end; i++) {\n children.push(\n h(\n Fragment,\n { key: i },\n ($slots.default as Slot)?.({\n data,\n index: i,\n isScrolling: useIsScrolling ? states.isScrolling : undefined,\n style: getItemStyle(i),\n })\n )\n )\n }\n }\n\n const InnerNode = [\n h(\n Inner as VNode,\n mergeProps(ctx.innerProps, {\n style: innerStyle,\n ref: 'innerRef',\n }),\n !isString(Inner)\n ? {\n default: () => children,\n }\n : children\n ),\n ]\n\n const scrollbar = h(Scrollbar, {\n ref: 'scrollbarRef',\n clientSize,\n layout,\n onScroll: onScrollbarScroll,\n ratio: (clientSize * 100) / this.estimatedTotalSize,\n scrollFrom:\n states.scrollOffset / (this.estimatedTotalSize - clientSize),\n total,\n alwaysOn: scrollbarAlwaysOn,\n })\n\n const listContainer = h(\n Container as VNode,\n {\n class: [ns.e('window'), className],\n style: windowStyle,\n onScroll,\n ref: 'windowRef',\n key: 0,\n },\n !isString(Container) ? { default: () => [InnerNode] } : [InnerNode]\n )\n\n return h(\n 'div',\n {\n key: 0,\n class: [ns.e('wrapper'), scrollbarAlwaysOn ? 'always-on' : ''],\n },\n [listContainer, scrollbar]\n )\n },\n })\n}\n\nexport default createList\n"],"mappings":";;;;;;;;;;;;;;;AAgDA,MAAM,cAAc,EAClB,MACA,WACA,aACA,eACA,uBACA,wBACA,2BACA,WACA,YACA,oBACgD;AAChD,QAAO,gBAAgB;EACrB,MAAM,QAAQ;EACd,OAAO;EACP,OAAO;GAAC;GAAiB;GAAY;GAAgB;EACrD,MAAM,OAAO,EAAE,MAAM,UAAU;AAC7B,iBAAc,MAAM;GACpB,MAAM,WAAW,oBAAoB;GAErC,MAAM,KAAK,aAAa,KAAK;GAE7B,MAAM,mBAAmB,IAAI,UAAU,OAAO,SAAS,CAAC;GAExD,MAAM,oBAAoB,UAAyB;GAKnD,MAAM,YAAY,KAAkB;GACpC,MAAM,WAAW,KAAkB;GACnC,MAAM,eAAe,KAAK;GAC1B,MAAM,SAAS,IAAI;IACjB,aAAa;IACb,WAAW;IACX,cAAc,SAAS,MAAM,iBAAiB,GAC1C,MAAM,mBACN;IACJ,iBAAiB;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B,OAAI,QAAQ,EACV,MAAK,IAAI,IAAI,OAAO,KAAK,KAAK,IAC5B,UAAS,KACP,EACE,UACA,EAAE,KAAK,GAAG,EACT,OAAO,UAAmB;IACzB;IACA,OAAO;IACP,aAAa,iBAAiB,OAAO,cAAc;IACnD,OAAO,aAAa,EAAE;IACvB,CAAC,CACH,CACF;GAIL,MAAM,YAAY,CAChB,EACE,OACA,WAAW,IAAI,YAAY;IACzB,OAAO;IACP,KAAK;IACN,CAAC,EACF,CAAC,SAAS,MAAM,GACZ,EACE,eAAe,UAChB,GACD,SACL,CACF;GAED,MAAM,YAAY,EAAEC,WAAW;IAC7B,KAAK;IACL;IACA;IACA,UAAU;IACV,OAAQ,aAAa,MAAO,KAAK;IACjC,YACE,OAAO,gBAAgB,KAAK,qBAAqB;IACnD;IACA,UAAU;IACX,CAAC;GAEF,MAAM,gBAAgB,EACpB,WACA;IACE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU;IAClC,OAAO;IACP;IACA,KAAK;IACL,KAAK;IACN,EACD,CAAC,SAAS,UAAU,GAAG,EAAE,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CACpE;AAED,UAAO,EACL,OACA;IACE,KAAK;IACL,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,oBAAoB,cAAc,GAAG;IAC/D,EACD,CAAC,eAAe,UAAU,CAC3B;;EAEJ,CAAC"}
1
+ {"version":3,"file":"build-list.mjs","names":["isClient","Scrollbar"],"sources":["../../../../../../../packages/components/virtual-list/src/builders/build-list.ts"],"sourcesContent":["import {\n Fragment,\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n mergeProps,\n nextTick,\n onActivated,\n onMounted,\n onUpdated,\n ref,\n resolveDynamicComponent,\n unref,\n watch,\n} from 'vue'\nimport { clamp, useEventListener } from '@vueuse/core'\nimport {\n hasOwn,\n isClient,\n isGreaterThan,\n isNumber,\n isString,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useCache } from '../hooks/use-cache'\nimport useWheel from '../hooks/use-wheel'\nimport Scrollbar from '../components/scrollbar'\nimport { getRTLOffsetType, getScrollDir, isHorizontal } from '../utils'\nimport { virtualizedListProps } from '../props'\nimport {\n AUTO_ALIGNMENT,\n BACKWARD,\n END_REACHED_EVT,\n FORWARD,\n HORIZONTAL,\n ITEM_RENDER_EVT,\n RTL,\n RTL_OFFSET_NAG,\n RTL_OFFSET_POS_ASC,\n RTL_OFFSET_POS_DESC,\n SCROLL_EVT,\n} from '../defaults'\n\nimport type { CSSProperties, Slot, VNode, VNodeChild } from 'vue'\nimport type { Alignment, ListConstructorProps, ScrollDirection } from '../types'\nimport type { VirtualizedListProps } from '../props'\n\nconst createList = ({\n name,\n getOffset,\n getItemSize,\n getItemOffset,\n getEstimatedTotalSize,\n getStartIndexForOffset,\n getStopIndexForStartIndex,\n initCache,\n clearCache,\n validateProps,\n}: ListConstructorProps<VirtualizedListProps>) => {\n return defineComponent({\n name: name ?? 'ElVirtualList',\n props: virtualizedListProps,\n emits: [ITEM_RENDER_EVT, SCROLL_EVT, END_REACHED_EVT],\n setup(props, { emit, expose }) {\n validateProps(props)\n const instance = getCurrentInstance()!\n\n const ns = useNamespace('vl')\n\n const dynamicSizeCache = ref(initCache(props, instance))\n\n const getItemStyleCache = useCache<CSSProperties>()\n // refs\n // here windowRef and innerRef can be type of HTMLElement\n // or user defined component type, depends on the type passed\n // by user\n const windowRef = ref<HTMLElement>()\n const innerRef = ref<HTMLElement>()\n const scrollbarRef = ref()\n const states = ref({\n isScrolling: false,\n scrollDir: FORWARD as ScrollDirection,\n scrollOffset: isNumber(props.initScrollOffset)\n ? props.initScrollOffset\n : 0,\n updateRequested: false,\n isScrollbarDragging: false,\n })\n\n // computed\n const itemsToRender = computed(() => {\n const { total, cache } = props\n const { isScrolling, scrollDir, scrollOffset } = unref(states)\n\n if (total === 0) {\n return [0, 0, 0, 0]\n }\n\n const startIndex = getStartIndexForOffset(\n props,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n const stopIndex = getStopIndexForStartIndex(\n props,\n startIndex,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n\n const cacheBackward =\n !isScrolling || scrollDir === BACKWARD ? Math.max(1, cache) : 1\n const cacheForward =\n !isScrolling || scrollDir === FORWARD ? Math.max(1, cache) : 1\n\n return [\n Math.max(0, startIndex - cacheBackward),\n Math.max(0, Math.min(total! - 1, stopIndex + cacheForward)),\n startIndex,\n stopIndex,\n ]\n })\n\n const estimatedTotalSize = computed(() =>\n getEstimatedTotalSize(props, unref(dynamicSizeCache))\n )\n\n const _isHorizontal = computed(() => isHorizontal(props.layout))\n\n const windowStyle = computed(() => [\n {\n position: 'relative',\n [`overflow-${_isHorizontal.value ? 'x' : 'y'}`]: 'scroll',\n WebkitOverflowScrolling: 'touch',\n willChange: 'transform',\n },\n {\n direction: props.direction,\n height: isNumber(props.height) ? `${props.height}px` : props.height,\n width: isNumber(props.width) ? `${props.width}px` : props.width,\n },\n props.style,\n ])\n\n const innerStyle = computed(() => {\n const size = unref(estimatedTotalSize)\n const horizontal = unref(_isHorizontal)\n const innerWidth = props.innerWidth\n return {\n height: horizontal ? '100%' : `${size}px`,\n pointerEvents: unref(states).isScrolling ? 'none' : undefined,\n width: horizontal\n ? `${size}px`\n : innerWidth !== undefined\n ? isNumber(innerWidth)\n ? `${innerWidth}px`\n : innerWidth\n : '100%',\n\n // fix scrolling issues in Firefox.\n margin: 0,\n boxSizing: 'border-box',\n }\n })\n\n const clientSize = computed(() =>\n _isHorizontal.value ? props.width : props.height\n )\n\n const maxOffset = computed(() =>\n Math.max(0, estimatedTotalSize.value - (clientSize.value as number))\n )\n\n const normalizeOffset = (offset: number) =>\n clamp(offset, 0, maxOffset.value)\n\n // Tolerance must cover sub-pixel differences that arise when the\n // browser's actual scrollHeight−clientHeight (affected by DPR\n // rounding) doesn't exactly match our computed maxOffset.\n // Without this, the native scroll event after onUpdated resets\n // edgeState and causes a duplicate end-reached emission.\n const EDGE_TOLERANCE = 1\n\n const getEdgeState = (normalizedOffset: number) => ({\n start: !isGreaterThan(normalizedOffset, 0, EDGE_TOLERANCE),\n end: !isGreaterThan(maxOffset.value, normalizedOffset, EDGE_TOLERANCE),\n })\n\n const normalizedScrollOffset = computed(() =>\n normalizeOffset(states.value.scrollOffset)\n )\n const currentEdgeState = computed(() =>\n getEdgeState(normalizedScrollOffset.value)\n )\n\n let edgeState = currentEdgeState.value\n\n const startEdgeReached = computed(() => currentEdgeState.value.start)\n const endEdgeReached = computed(() => currentEdgeState.value.end)\n\n // methods\n const { onWheel } = useWheel(\n {\n atStartEdge: startEdgeReached,\n atEndEdge: endEdgeReached,\n layout: computed(() => props.layout),\n },\n (offset) => {\n ;(\n scrollbarRef.value as {\n onMouseUp: () => void\n }\n ).onMouseUp?.()\n scrollTo(\n Math.min(states.value.scrollOffset + offset, maxOffset.value)\n )\n }\n )\n\n useEventListener(windowRef, 'wheel', onWheel, {\n passive: false,\n })\n\n const emitEvents = () => {\n const { total } = props\n\n if (total! > 0) {\n const [cacheStart, cacheEnd, visibleStart, visibleEnd] =\n unref(itemsToRender)\n emit(ITEM_RENDER_EVT, cacheStart, cacheEnd, visibleStart, visibleEnd)\n }\n\n const { scrollDir, scrollOffset, updateRequested } = unref(states)\n emit(SCROLL_EVT, scrollDir, scrollOffset, updateRequested)\n }\n\n const emitEndReached = (direction: ScrollDirection, offset: number) => {\n const nextEdgeState = getEdgeState(offset)\n const horizontalEnd = props.direction === RTL ? 'left' : 'right'\n const horizontalStart = props.direction === RTL ? 'right' : 'left'\n\n if (direction === FORWARD && nextEdgeState.end && !edgeState.end) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalEnd : 'bottom')\n }\n\n if (direction === BACKWARD && nextEdgeState.start && !edgeState.start) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalStart : 'top')\n }\n\n edgeState = nextEdgeState\n }\n\n const updateScrollOffset = (\n offset: number,\n {\n isScrolling,\n updateRequested,\n }: {\n isScrolling: boolean\n updateRequested: boolean\n }\n ) => {\n const currentState = unref(states)\n const nextOffset = Math.max(offset, 0)\n\n if (nextOffset === currentState.scrollOffset) {\n return\n }\n\n const scrollDir = getScrollDir(currentState.scrollOffset, nextOffset)\n\n states.value = {\n ...currentState,\n isScrolling,\n scrollDir,\n scrollOffset: nextOffset,\n updateRequested,\n }\n emitEndReached(scrollDir, normalizeOffset(nextOffset))\n\n nextTick(resetIsScrolling)\n }\n\n const scrollVertically = (e: Event) => {\n const { clientHeight, scrollHeight, scrollTop } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n if (_states.scrollOffset === scrollTop) {\n return\n }\n\n updateScrollOffset(Math.min(scrollTop, scrollHeight - clientHeight), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const scrollHorizontally = (e: Event) => {\n const { clientWidth, scrollLeft, scrollWidth } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n\n if (_states.scrollOffset === scrollLeft) {\n return\n }\n\n const { direction } = props\n\n let scrollOffset = scrollLeft\n\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n scrollOffset = -scrollLeft\n break\n }\n case RTL_OFFSET_POS_DESC: {\n scrollOffset = scrollWidth - clientWidth - scrollLeft\n break\n }\n }\n }\n\n updateScrollOffset(Math.min(scrollOffset, scrollWidth - clientWidth), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const onScroll = (e: Event) => {\n unref(_isHorizontal) ? scrollHorizontally(e) : scrollVertically(e)\n emitEvents()\n }\n\n const onScrollbarScroll = (distanceToGo: number, totalSteps: number) => {\n const offset = (maxOffset.value / totalSteps) * distanceToGo\n scrollTo(Math.min(maxOffset.value, offset))\n }\n\n const scrollTo = (offset: number) => {\n updateScrollOffset(offset, {\n isScrolling: unref(states).isScrolling,\n updateRequested: true,\n })\n }\n\n const scrollToItem = (\n idx: number,\n alignment: Alignment = AUTO_ALIGNMENT\n ) => {\n const { scrollOffset } = unref(states)\n\n idx = Math.max(0, Math.min(idx, props.total! - 1))\n scrollTo(\n getOffset(\n props,\n idx,\n alignment,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n )\n }\n\n const getItemStyle = (idx: number) => {\n const { direction, itemSize, layout } = props\n\n const itemStyleCache = getItemStyleCache.value(\n clearCache && itemSize,\n clearCache && layout,\n clearCache && direction\n )\n\n let style: CSSProperties\n if (hasOwn(itemStyleCache, String(idx))) {\n style = itemStyleCache[idx]\n } else {\n const offset = getItemOffset(props, idx, unref(dynamicSizeCache))\n const size = getItemSize(props, idx, unref(dynamicSizeCache))\n const horizontal = unref(_isHorizontal)\n\n const isRtl = direction === RTL\n const offsetHorizontal = horizontal ? offset : 0\n itemStyleCache[idx] = style = {\n position: 'absolute',\n left: isRtl ? undefined : `${offsetHorizontal}px`,\n right: isRtl ? `${offsetHorizontal}px` : undefined,\n top: !horizontal ? `${offset}px` : 0,\n height: !horizontal ? `${size}px` : '100%',\n width: horizontal ? `${size}px` : '100%',\n }\n }\n\n return style\n }\n\n // TODO: perf optimization here, reset isScrolling with debounce.\n\n const resetIsScrolling = () => {\n states.value.isScrolling = false\n nextTick(() => {\n getItemStyleCache.value(-1, null, null)\n })\n }\n\n const resetScrollTop = () => {\n const window = windowRef.value\n if (window) {\n window.scrollTop = 0\n }\n }\n\n // life cycles\n onMounted(() => {\n if (!isClient) return\n const { initScrollOffset } = props\n const windowElement = unref(windowRef)\n if (isNumber(initScrollOffset) && windowElement) {\n if (unref(_isHorizontal)) {\n windowElement.scrollLeft = initScrollOffset\n } else {\n windowElement.scrollTop = initScrollOffset\n }\n }\n\n emitEvents()\n })\n\n onUpdated(() => {\n const { direction, layout } = props\n const { scrollOffset, updateRequested } = unref(states)\n const windowElement = unref(windowRef)\n\n if (updateRequested && windowElement) {\n if (layout === HORIZONTAL) {\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // So we need to determine which browser behavior we're dealing with, and mimic it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n windowElement.scrollLeft = -scrollOffset\n break\n }\n case RTL_OFFSET_POS_ASC: {\n windowElement.scrollLeft = scrollOffset\n break\n }\n default: {\n const { clientWidth, scrollWidth } = windowElement\n windowElement.scrollLeft =\n scrollWidth - clientWidth - scrollOffset\n break\n }\n }\n } else {\n windowElement.scrollLeft = scrollOffset\n }\n } else {\n windowElement.scrollTop = scrollOffset\n }\n }\n })\n\n onActivated(() => {\n unref(windowRef)!.scrollTop = unref(states).scrollOffset\n })\n\n watch(maxOffset, () => {\n edgeState = currentEdgeState.value\n })\n\n const api = {\n ns,\n clientSize,\n estimatedTotalSize,\n windowStyle,\n windowRef,\n innerRef,\n innerStyle,\n itemsToRender,\n scrollbarRef,\n states,\n getItemStyle,\n onScroll,\n onScrollbarScroll,\n onWheel,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n }\n\n expose({\n windowRef,\n innerRef,\n getItemStyleCache,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n states,\n })\n\n return api\n },\n\n render(ctx: any) {\n const {\n $slots,\n className,\n clientSize,\n containerElement,\n data,\n getItemStyle,\n innerElement,\n itemsToRender,\n innerStyle,\n layout,\n scrollbarAlwaysOn,\n total,\n onScroll,\n onScrollbarScroll,\n states,\n useIsScrolling,\n windowStyle,\n ns,\n } = ctx\n\n const [start, end] = itemsToRender\n\n const Container = resolveDynamicComponent(containerElement)\n const Inner = resolveDynamicComponent(innerElement)\n\n const children = [] as VNodeChild[]\n\n if (total > 0) {\n for (let i = start; i <= end; i++) {\n children.push(\n h(\n Fragment,\n { key: i },\n ($slots.default as Slot)?.({\n data,\n index: i,\n isScrolling: useIsScrolling ? states.isScrolling : undefined,\n style: getItemStyle(i),\n })\n )\n )\n }\n }\n\n const InnerNode = [\n h(\n Inner as VNode,\n mergeProps(ctx.innerProps, {\n style: innerStyle,\n ref: 'innerRef',\n }),\n !isString(Inner)\n ? {\n default: () => children,\n }\n : children\n ),\n ]\n\n const scrollbar = h(Scrollbar, {\n ref: 'scrollbarRef',\n clientSize,\n layout,\n onScroll: onScrollbarScroll,\n ratio: (clientSize * 100) / this.estimatedTotalSize,\n scrollFrom:\n states.scrollOffset / (this.estimatedTotalSize - clientSize),\n total,\n alwaysOn: scrollbarAlwaysOn,\n })\n\n const listContainer = h(\n Container as VNode,\n {\n class: [ns.e('window'), className],\n style: windowStyle,\n onScroll,\n ref: 'windowRef',\n key: 0,\n },\n !isString(Container) ? { default: () => [InnerNode] } : [InnerNode]\n )\n\n return h(\n 'div',\n {\n key: 0,\n class: [ns.e('wrapper'), scrollbarAlwaysOn ? 'always-on' : ''],\n },\n [listContainer, scrollbar]\n )\n },\n })\n}\n\nexport default createList\n"],"mappings":";;;;;;;;;;;;;;;AAgDA,MAAM,cAAc,EAClB,MACA,WACA,aACA,eACA,uBACA,wBACA,2BACA,WACA,YACA,oBACgD;AAChD,QAAO,gBAAgB;EACrB,MAAM,QAAQ;EACd,OAAO;EACP,OAAO;GAAC;GAAiB;GAAY;GAAgB;EACrD,MAAM,OAAO,EAAE,MAAM,UAAU;AAC7B,iBAAc,MAAM;GACpB,MAAM,WAAW,oBAAoB;GAErC,MAAM,KAAK,aAAa,KAAK;GAE7B,MAAM,mBAAmB,IAAI,UAAU,OAAO,SAAS,CAAC;GAExD,MAAM,oBAAoB,UAAyB;GAKnD,MAAM,YAAY,KAAkB;GACpC,MAAM,WAAW,KAAkB;GACnC,MAAM,eAAe,KAAK;GAC1B,MAAM,SAAS,IAAI;IACjB,aAAa;IACb,WAAW;IACX,cAAc,SAAS,MAAM,iBAAiB,GAC1C,MAAM,mBACN;IACJ,iBAAiB;IACjB,qBAAqB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MAAM,QAAQ,wBAAwB,aAAa;GAEnD,MAAM,WAAW,EAAE;AAEnB,OAAI,QAAQ,EACV,MAAK,IAAI,IAAI,OAAO,KAAK,KAAK,IAC5B,UAAS,KACP,EACE,UACA,EAAE,KAAK,GAAG,EACT,OAAO,UAAmB;IACzB;IACA,OAAO;IACP,aAAa,iBAAiB,OAAO,cAAc;IACnD,OAAO,aAAa,EAAE;IACvB,CAAC,CACH,CACF;GAIL,MAAM,YAAY,CAChB,EACE,OACA,WAAW,IAAI,YAAY;IACzB,OAAO;IACP,KAAK;IACN,CAAC,EACF,CAAC,SAAS,MAAM,GACZ,EACE,eAAe,UAChB,GACD,SACL,CACF;GAED,MAAM,YAAY,EAAEC,WAAW;IAC7B,KAAK;IACL;IACA;IACA,UAAU;IACV,OAAQ,aAAa,MAAO,KAAK;IACjC,YACE,OAAO,gBAAgB,KAAK,qBAAqB;IACnD;IACA,UAAU;IACX,CAAC;GAEF,MAAM,gBAAgB,EACpB,WACA;IACE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU;IAClC,OAAO;IACP;IACA,KAAK;IACL,KAAK;IACN,EACD,CAAC,SAAS,UAAU,GAAG,EAAE,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CACpE;AAED,UAAO,EACL,OACA;IACE,KAAK;IACL,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,oBAAoB,cAAc,GAAG;IAC/D,EACD,CAAC,eAAe,UAAU,CAC3B;;EAEJ,CAAC"}
@@ -36,6 +36,12 @@ declare const DynamicSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
36
36
  readonly validator: ((val: unknown) => boolean) | undefined;
37
37
  __epPropKey: true;
38
38
  };
39
+ readonly innerWidth: {
40
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
41
+ readonly required: false;
42
+ readonly validator: ((val: unknown) => boolean) | undefined;
43
+ __epPropKey: true;
44
+ };
39
45
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
40
46
  readonly scrollbarAlwaysOn: BooleanConstructor;
41
47
  readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -126,6 +132,12 @@ declare const DynamicSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
126
132
  readonly validator: ((val: unknown) => boolean) | undefined;
127
133
  __epPropKey: true;
128
134
  };
135
+ readonly innerWidth: {
136
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
137
+ readonly required: false;
138
+ readonly validator: ((val: unknown) => boolean) | undefined;
139
+ __epPropKey: true;
140
+ };
129
141
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
130
142
  readonly scrollbarAlwaysOn: BooleanConstructor;
131
143
  readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -195,12 +207,12 @@ declare const DynamicSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
195
207
  readonly data: any[];
196
208
  readonly className: string;
197
209
  readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
198
- readonly scrollbarAlwaysOn: boolean;
199
- readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
200
210
  readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
201
211
  readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
202
212
  readonly innerProps: Record<string, unknown>;
213
+ readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
203
214
  readonly useIsScrolling: boolean;
215
+ readonly scrollbarAlwaysOn: boolean;
204
216
  readonly itemKey: GridItemKeyGetter;
205
217
  readonly columnCache: number;
206
218
  readonly initScrollLeft: number;
@@ -31,6 +31,12 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
31
31
  readonly validator: ((val: unknown) => boolean) | undefined;
32
32
  __epPropKey: true;
33
33
  };
34
+ readonly innerWidth: {
35
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
34
40
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
35
41
  readonly scrollbarAlwaysOn: BooleanConstructor;
36
42
  readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -118,7 +124,7 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
118
124
  scrollTo: (offset: number) => void;
119
125
  scrollToItem: (idx: number, alignment?: Alignment) => void;
120
126
  resetScrollTop: () => void;
121
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "end-reached" | "itemRendered")[], "scroll" | "end-reached" | "itemRendered", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
127
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "itemRendered" | "end-reached")[], "scroll" | "itemRendered" | "end-reached", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
122
128
  readonly className: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
123
129
  readonly containerElement: EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
124
130
  readonly data: EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
@@ -144,6 +150,12 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
144
150
  readonly validator: ((val: unknown) => boolean) | undefined;
145
151
  __epPropKey: true;
146
152
  };
153
+ readonly innerWidth: {
154
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
155
+ readonly required: false;
156
+ readonly validator: ((val: unknown) => boolean) | undefined;
157
+ __epPropKey: true;
158
+ };
147
159
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
148
160
  readonly scrollbarAlwaysOn: BooleanConstructor;
149
161
  readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -169,19 +181,19 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
169
181
  };
170
182
  }>> & Readonly<{
171
183
  onScroll?: ((...args: any[]) => any) | undefined;
172
- "onEnd-reached"?: ((...args: any[]) => any) | undefined;
173
184
  onItemRendered?: ((...args: any[]) => any) | undefined;
185
+ "onEnd-reached"?: ((...args: any[]) => any) | undefined;
174
186
  }>, {
175
187
  readonly data: any[];
176
188
  readonly className: string;
177
189
  readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
178
190
  readonly layout: EpPropMergeType<StringConstructor, "horizontal" | "vertical", never>;
179
- readonly scrollbarAlwaysOn: boolean;
180
- readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
181
191
  readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
182
192
  readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
183
193
  readonly innerProps: Record<string, unknown>;
194
+ readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
184
195
  readonly useIsScrolling: boolean;
196
+ readonly scrollbarAlwaysOn: boolean;
185
197
  readonly cache: number;
186
198
  readonly initScrollOffset: number;
187
199
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -31,6 +31,12 @@ declare const FixedSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
31
31
  readonly validator: ((val: unknown) => boolean) | undefined;
32
32
  __epPropKey: true;
33
33
  };
34
+ readonly innerWidth: {
35
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
34
40
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
35
41
  readonly scrollbarAlwaysOn: BooleanConstructor;
36
42
  readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -121,6 +127,12 @@ declare const FixedSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
121
127
  readonly validator: ((val: unknown) => boolean) | undefined;
122
128
  __epPropKey: true;
123
129
  };
130
+ readonly innerWidth: {
131
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
132
+ readonly required: false;
133
+ readonly validator: ((val: unknown) => boolean) | undefined;
134
+ __epPropKey: true;
135
+ };
124
136
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
125
137
  readonly scrollbarAlwaysOn: BooleanConstructor;
126
138
  readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -190,12 +202,12 @@ declare const FixedSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
190
202
  readonly data: any[];
191
203
  readonly className: string;
192
204
  readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
193
- readonly scrollbarAlwaysOn: boolean;
194
- readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
195
205
  readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
196
206
  readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
197
207
  readonly innerProps: Record<string, unknown>;
208
+ readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
198
209
  readonly useIsScrolling: boolean;
210
+ readonly scrollbarAlwaysOn: boolean;
199
211
  readonly itemKey: GridItemKeyGetter;
200
212
  readonly columnCache: number;
201
213
  readonly initScrollLeft: number;
@@ -31,6 +31,12 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
31
31
  readonly validator: ((val: unknown) => boolean) | undefined;
32
32
  __epPropKey: true;
33
33
  };
34
+ readonly innerWidth: {
35
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
34
40
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
35
41
  readonly scrollbarAlwaysOn: BooleanConstructor;
36
42
  readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -118,7 +124,7 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
118
124
  scrollTo: (offset: number) => void;
119
125
  scrollToItem: (idx: number, alignment?: Alignment) => void;
120
126
  resetScrollTop: () => void;
121
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "end-reached" | "itemRendered")[], "scroll" | "end-reached" | "itemRendered", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
127
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "itemRendered" | "end-reached")[], "scroll" | "itemRendered" | "end-reached", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
122
128
  readonly className: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
123
129
  readonly containerElement: EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
124
130
  readonly data: EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
@@ -144,6 +150,12 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
144
150
  readonly validator: ((val: unknown) => boolean) | undefined;
145
151
  __epPropKey: true;
146
152
  };
153
+ readonly innerWidth: {
154
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
155
+ readonly required: false;
156
+ readonly validator: ((val: unknown) => boolean) | undefined;
157
+ __epPropKey: true;
158
+ };
147
159
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
148
160
  readonly scrollbarAlwaysOn: BooleanConstructor;
149
161
  readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -169,19 +181,19 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
169
181
  };
170
182
  }>> & Readonly<{
171
183
  onScroll?: ((...args: any[]) => any) | undefined;
172
- "onEnd-reached"?: ((...args: any[]) => any) | undefined;
173
184
  onItemRendered?: ((...args: any[]) => any) | undefined;
185
+ "onEnd-reached"?: ((...args: any[]) => any) | undefined;
174
186
  }>, {
175
187
  readonly data: any[];
176
188
  readonly className: string;
177
189
  readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
178
190
  readonly layout: EpPropMergeType<StringConstructor, "horizontal" | "vertical", never>;
179
- readonly scrollbarAlwaysOn: boolean;
180
- readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
181
191
  readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
182
192
  readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
183
193
  readonly innerProps: Record<string, unknown>;
194
+ readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
184
195
  readonly useIsScrolling: boolean;
196
+ readonly scrollbarAlwaysOn: boolean;
185
197
  readonly cache: number;
186
198
  readonly initScrollOffset: number;
187
199
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -31,6 +31,12 @@ declare const virtualizedProps: {
31
31
  readonly validator: ((val: unknown) => boolean) | undefined;
32
32
  __epPropKey: true;
33
33
  };
34
+ readonly innerWidth: {
35
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
34
40
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
35
41
  readonly scrollbarAlwaysOn: BooleanConstructor;
36
42
  };
@@ -60,6 +66,12 @@ declare const virtualizedListProps: {
60
66
  readonly validator: ((val: unknown) => boolean) | undefined;
61
67
  __epPropKey: true;
62
68
  };
69
+ readonly innerWidth: {
70
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
71
+ readonly required: false;
72
+ readonly validator: ((val: unknown) => boolean) | undefined;
73
+ __epPropKey: true;
74
+ };
63
75
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
64
76
  readonly scrollbarAlwaysOn: BooleanConstructor;
65
77
  readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -110,6 +122,12 @@ declare const virtualizedGridProps: {
110
122
  readonly validator: ((val: unknown) => boolean) | undefined;
111
123
  __epPropKey: true;
112
124
  };
125
+ readonly innerWidth: {
126
+ readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
127
+ readonly required: false;
128
+ readonly validator: ((val: unknown) => boolean) | undefined;
129
+ __epPropKey: true;
130
+ };
113
131
  readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
114
132
  readonly scrollbarAlwaysOn: BooleanConstructor;
115
133
  readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
@@ -66,6 +66,10 @@ const virtualizedProps = buildProps({
66
66
  type: [Number, String],
67
67
  required: false
68
68
  },
69
+ innerWidth: {
70
+ type: [Number, String],
71
+ required: false
72
+ },
69
73
  perfMode: {
70
74
  type: Boolean,
71
75
  default: true
@@ -1 +1 @@
1
- {"version":3,"file":"props.mjs","names":[],"sources":["../../../../../../packages/components/virtual-list/src/props.ts"],"sourcesContent":["import {\n buildProp,\n buildProps,\n definePropType,\n mutable,\n} from '@element-plus/utils'\nimport { VERTICAL } from './defaults'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { GridItemKeyGetter, ItemSize } from './types'\n\nconst itemSize = buildProp({\n type: definePropType<number | ItemSize>([Number, Function]),\n required: true,\n} as const)\n\nconst estimatedItemSize = buildProp({\n type: Number,\n} as const)\n\nconst cache = buildProp({\n type: Number,\n default: 2,\n} as const)\n\nconst direction = buildProp({\n type: String,\n values: ['ltr', 'rtl'],\n default: 'ltr',\n} as const)\n\nconst initScrollOffset = buildProp({\n type: Number,\n default: 0,\n} as const)\n\nconst total = buildProp({\n type: Number,\n required: true,\n} as const)\n\nconst layout = buildProp({\n type: String,\n values: ['horizontal', 'vertical'],\n default: VERTICAL,\n} as const)\n\nexport const virtualizedProps = buildProps({\n className: {\n type: String,\n default: '',\n },\n\n containerElement: {\n type: definePropType<string | Element>([String, Object]),\n default: 'div',\n },\n\n data: {\n type: definePropType<any[]>(Array),\n default: () => mutable([] as const),\n },\n\n /**\n * @description controls the horizontal direction.\n */\n direction,\n\n height: {\n type: [String, Number],\n required: true,\n },\n\n innerElement: {\n type: [String, Object],\n default: 'div',\n },\n\n innerProps: {\n type: definePropType<Record<string, unknown>>(Object),\n default: () => ({}),\n },\n\n style: {\n type: definePropType<StyleValue>([Object, String, Array]),\n },\n\n useIsScrolling: Boolean,\n\n width: {\n type: [Number, String],\n required: false,\n },\n\n perfMode: {\n type: Boolean,\n default: true,\n },\n scrollbarAlwaysOn: Boolean,\n} as const)\n\nexport const virtualizedListProps = buildProps({\n /**\n * @description describes how many items should be pre rendered to the head\n * and the tail of the window\n */\n cache,\n\n estimatedItemSize,\n\n /**\n * @description controls the list's orientation\n */\n layout,\n\n initScrollOffset,\n\n /**\n * @description describes the total number of the list.\n */\n total,\n\n itemSize,\n ...virtualizedProps,\n} as const)\n\nconst scrollbarSize = {\n type: Number,\n default: 6,\n} as const\n\nconst startGap = { type: Number, default: 0 } as const\nconst endGap = { type: Number, default: 2 } as const\n\nexport const virtualizedGridProps = buildProps({\n columnCache: cache,\n columnWidth: itemSize,\n estimatedColumnWidth: estimatedItemSize,\n estimatedRowHeight: estimatedItemSize,\n initScrollLeft: initScrollOffset,\n initScrollTop: initScrollOffset,\n itemKey: {\n type: definePropType<GridItemKeyGetter>(Function),\n default: ({\n columnIndex,\n rowIndex,\n }: {\n columnIndex: number\n rowIndex: number\n }) => `${rowIndex}:${columnIndex}`,\n },\n rowCache: cache,\n rowHeight: itemSize,\n totalColumn: total,\n totalRow: total,\n hScrollbarSize: scrollbarSize,\n vScrollbarSize: scrollbarSize,\n scrollbarStartGap: startGap,\n scrollbarEndGap: endGap,\n role: String,\n ...virtualizedProps,\n} as const)\n\nexport const virtualizedScrollbarProps = buildProps({\n alwaysOn: Boolean,\n class: String,\n layout,\n total,\n ratio: {\n type: Number,\n required: true,\n },\n clientSize: {\n type: Number,\n required: true,\n },\n scrollFrom: {\n type: Number,\n required: true,\n },\n scrollbarSize,\n startGap,\n endGap,\n\n visible: Boolean,\n} as const)\n\nexport type VirtualizedProps = ExtractPropTypes<typeof virtualizedProps>\nexport type VirtualizedPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedProps\n>\nexport type VirtualizedListProps = ExtractPropTypes<typeof virtualizedListProps>\nexport type VirtualizedListPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedListProps\n>\nexport type VirtualizedGridProps = ExtractPropTypes<typeof virtualizedGridProps>\nexport type VirtualizedGridPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedGridProps\n>\n\nexport type VirtualizedScrollbarProps = ExtractPropTypes<\n typeof virtualizedScrollbarProps\n>\nexport type VirtualizedScrollbarPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedScrollbarProps\n>\n"],"mappings":";;;;;AAWA,MAAM,WAAW,UAAU;CACzB,MAAM,eAAkC,CAAC,QAAQ,SAAS,CAAC;CAC3D,UAAU;CACX,CAAU;AAEX,MAAM,oBAAoB,UAAU,EAClC,MAAM,QACP,CAAU;AAEX,MAAM,QAAQ,UAAU;CACtB,MAAM;CACN,SAAS;CACV,CAAU;AAEX,MAAM,YAAY,UAAU;CAC1B,MAAM;CACN,QAAQ,CAAC,OAAO,MAAM;CACtB,SAAS;CACV,CAAU;AAEX,MAAM,mBAAmB,UAAU;CACjC,MAAM;CACN,SAAS;CACV,CAAU;AAEX,MAAM,QAAQ,UAAU;CACtB,MAAM;CACN,UAAU;CACX,CAAU;AAEX,MAAM,SAAS,UAAU;CACvB,MAAM;CACN,QAAQ,CAAC,cAAc,WAAW;CAClC,SAAS;CACV,CAAU;AAEX,MAAa,mBAAmB,WAAW;CACzC,WAAW;EACT,MAAM;EACN,SAAS;EACV;CAED,kBAAkB;EAChB,MAAM,eAAiC,CAAC,QAAQ,OAAO,CAAC;EACxD,SAAS;EACV;CAED,MAAM;EACJ,MAAM,eAAsB,MAAM;EAClC,eAAe,QAAQ,EAAE,CAAU;EACpC;CAKD;CAEA,QAAQ;EACN,MAAM,CAAC,QAAQ,OAAO;EACtB,UAAU;EACX;CAED,cAAc;EACZ,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;CAED,YAAY;EACV,MAAM,eAAwC,OAAO;EACrD,gBAAgB,EAAE;EACnB;CAED,OAAO,EACL,MAAM,eAA2B;EAAC;EAAQ;EAAQ;EAAM,CAAC,EAC1D;CAED,gBAAgB;CAEhB,OAAO;EACL,MAAM,CAAC,QAAQ,OAAO;EACtB,UAAU;EACX;CAED,UAAU;EACR,MAAM;EACN,SAAS;EACV;CACD,mBAAmB;CACpB,CAAU;AAEX,MAAa,uBAAuB,WAAW;CAK7C;CAEA;CAKA;CAEA;CAKA;CAEA;CACA,GAAG;CACJ,CAAU;AAEX,MAAM,gBAAgB;CACpB,MAAM;CACN,SAAS;CACV;AAED,MAAM,WAAW;CAAE,MAAM;CAAQ,SAAS;CAAG;AAC7C,MAAM,SAAS;CAAE,MAAM;CAAQ,SAAS;CAAG;AAE3C,MAAa,uBAAuB,WAAW;CAC7C,aAAa;CACb,aAAa;CACb,sBAAsB;CACtB,oBAAoB;CACpB,gBAAgB;CAChB,eAAe;CACf,SAAS;EACP,MAAM,eAAkC,SAAS;EACjD,UAAU,EACR,aACA,eAII,GAAG,SAAS,GAAG;EACtB;CACD,UAAU;CACV,WAAW;CACX,aAAa;CACb,UAAU;CACV,gBAAgB;CAChB,gBAAgB;CAChB,mBAAmB;CACnB,iBAAiB;CACjB,MAAM;CACN,GAAG;CACJ,CAAU;AAEX,MAAa,4BAA4B,WAAW;CAClD,UAAU;CACV,OAAO;CACP;CACA;CACA,OAAO;EACL,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD;CACA;CACA;CAEA,SAAS;CACV,CAAU"}
1
+ {"version":3,"file":"props.mjs","names":[],"sources":["../../../../../../packages/components/virtual-list/src/props.ts"],"sourcesContent":["import {\n buildProp,\n buildProps,\n definePropType,\n mutable,\n} from '@element-plus/utils'\nimport { VERTICAL } from './defaults'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { GridItemKeyGetter, ItemSize } from './types'\n\nconst itemSize = buildProp({\n type: definePropType<number | ItemSize>([Number, Function]),\n required: true,\n} as const)\n\nconst estimatedItemSize = buildProp({\n type: Number,\n} as const)\n\nconst cache = buildProp({\n type: Number,\n default: 2,\n} as const)\n\nconst direction = buildProp({\n type: String,\n values: ['ltr', 'rtl'],\n default: 'ltr',\n} as const)\n\nconst initScrollOffset = buildProp({\n type: Number,\n default: 0,\n} as const)\n\nconst total = buildProp({\n type: Number,\n required: true,\n} as const)\n\nconst layout = buildProp({\n type: String,\n values: ['horizontal', 'vertical'],\n default: VERTICAL,\n} as const)\n\nexport const virtualizedProps = buildProps({\n className: {\n type: String,\n default: '',\n },\n\n containerElement: {\n type: definePropType<string | Element>([String, Object]),\n default: 'div',\n },\n\n data: {\n type: definePropType<any[]>(Array),\n default: () => mutable([] as const),\n },\n\n /**\n * @description controls the horizontal direction.\n */\n direction,\n\n height: {\n type: [String, Number],\n required: true,\n },\n\n innerElement: {\n type: [String, Object],\n default: 'div',\n },\n\n innerProps: {\n type: definePropType<Record<string, unknown>>(Object),\n default: () => ({}),\n },\n\n style: {\n type: definePropType<StyleValue>([Object, String, Array]),\n },\n\n useIsScrolling: Boolean,\n\n width: {\n type: [Number, String],\n required: false,\n },\n\n innerWidth: {\n type: [Number, String],\n required: false,\n },\n\n perfMode: {\n type: Boolean,\n default: true,\n },\n scrollbarAlwaysOn: Boolean,\n} as const)\n\nexport const virtualizedListProps = buildProps({\n /**\n * @description describes how many items should be pre rendered to the head\n * and the tail of the window\n */\n cache,\n\n estimatedItemSize,\n\n /**\n * @description controls the list's orientation\n */\n layout,\n\n initScrollOffset,\n\n /**\n * @description describes the total number of the list.\n */\n total,\n\n itemSize,\n ...virtualizedProps,\n} as const)\n\nconst scrollbarSize = {\n type: Number,\n default: 6,\n} as const\n\nconst startGap = { type: Number, default: 0 } as const\nconst endGap = { type: Number, default: 2 } as const\n\nexport const virtualizedGridProps = buildProps({\n columnCache: cache,\n columnWidth: itemSize,\n estimatedColumnWidth: estimatedItemSize,\n estimatedRowHeight: estimatedItemSize,\n initScrollLeft: initScrollOffset,\n initScrollTop: initScrollOffset,\n itemKey: {\n type: definePropType<GridItemKeyGetter>(Function),\n default: ({\n columnIndex,\n rowIndex,\n }: {\n columnIndex: number\n rowIndex: number\n }) => `${rowIndex}:${columnIndex}`,\n },\n rowCache: cache,\n rowHeight: itemSize,\n totalColumn: total,\n totalRow: total,\n hScrollbarSize: scrollbarSize,\n vScrollbarSize: scrollbarSize,\n scrollbarStartGap: startGap,\n scrollbarEndGap: endGap,\n role: String,\n ...virtualizedProps,\n} as const)\n\nexport const virtualizedScrollbarProps = buildProps({\n alwaysOn: Boolean,\n class: String,\n layout,\n total,\n ratio: {\n type: Number,\n required: true,\n },\n clientSize: {\n type: Number,\n required: true,\n },\n scrollFrom: {\n type: Number,\n required: true,\n },\n scrollbarSize,\n startGap,\n endGap,\n\n visible: Boolean,\n} as const)\n\nexport type VirtualizedProps = ExtractPropTypes<typeof virtualizedProps>\nexport type VirtualizedPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedProps\n>\nexport type VirtualizedListProps = ExtractPropTypes<typeof virtualizedListProps>\nexport type VirtualizedListPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedListProps\n>\nexport type VirtualizedGridProps = ExtractPropTypes<typeof virtualizedGridProps>\nexport type VirtualizedGridPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedGridProps\n>\n\nexport type VirtualizedScrollbarProps = ExtractPropTypes<\n typeof virtualizedScrollbarProps\n>\nexport type VirtualizedScrollbarPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedScrollbarProps\n>\n"],"mappings":";;;;;AAWA,MAAM,WAAW,UAAU;CACzB,MAAM,eAAkC,CAAC,QAAQ,SAAS,CAAC;CAC3D,UAAU;CACX,CAAU;AAEX,MAAM,oBAAoB,UAAU,EAClC,MAAM,QACP,CAAU;AAEX,MAAM,QAAQ,UAAU;CACtB,MAAM;CACN,SAAS;CACV,CAAU;AAEX,MAAM,YAAY,UAAU;CAC1B,MAAM;CACN,QAAQ,CAAC,OAAO,MAAM;CACtB,SAAS;CACV,CAAU;AAEX,MAAM,mBAAmB,UAAU;CACjC,MAAM;CACN,SAAS;CACV,CAAU;AAEX,MAAM,QAAQ,UAAU;CACtB,MAAM;CACN,UAAU;CACX,CAAU;AAEX,MAAM,SAAS,UAAU;CACvB,MAAM;C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AAiB;CACjB,MAAM;CACN,GAAG;CACJ,CAAU;AAEX,MAAa,4BAA4B,WAAW;CAClD,UAAU;CACV,OAAO;CACP;CACA;CACA,OAAO;EACL,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD;CACA;CACA;CAEA,SAAS;CACV,CAAU"}
@@ -47,7 +47,6 @@ declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, popperElem
47
47
  popperEscapeOffsets: _popperjs_core0.SideObject;
48
48
  };
49
49
  offset?: {
50
- "bottom-start"?: _popperjs_core0.Offsets | undefined;
51
50
  bottom?: _popperjs_core0.Offsets | undefined;
52
51
  auto?: _popperjs_core0.Offsets | undefined;
53
52
  "auto-start"?: _popperjs_core0.Offsets | undefined;
@@ -57,6 +56,7 @@ declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, popperElem
57
56
  left?: _popperjs_core0.Offsets | undefined;
58
57
  "top-start"?: _popperjs_core0.Offsets | undefined;
59
58
  "top-end"?: _popperjs_core0.Offsets | undefined;
59
+ "bottom-start"?: _popperjs_core0.Offsets | undefined;
60
60
  "bottom-end"?: _popperjs_core0.Offsets | undefined;
61
61
  "right-start"?: _popperjs_core0.Offsets | undefined;
62
62
  "right-end"?: _popperjs_core0.Offsets | undefined;
@@ -6,14 +6,14 @@ import { InjectionKey, Ref } from "vue";
6
6
 
7
7
  //#region ../../packages/hooks/use-size/index.d.ts
8
8
  declare const useSizeProp: {
9
- readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
9
+ readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
10
10
  readonly required: false;
11
11
  readonly validator: ((val: unknown) => boolean) | undefined;
12
12
  __epPropKey: true;
13
13
  };
14
14
  declare const useSizeProps: {
15
15
  size: {
16
- readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
16
+ readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
17
17
  readonly required: false;
18
18
  readonly validator: ((val: unknown) => boolean) | undefined;
19
19
  __epPropKey: true;
@@ -23,6 +23,6 @@ interface SizeContext {
23
23
  size: Ref<ComponentSize>;
24
24
  }
25
25
  declare const SIZE_INJECTION_KEY: InjectionKey<SizeContext>;
26
- declare const useGlobalSize: () => vue.ComputedRef<"" | "default" | "large" | "small">;
26
+ declare const useGlobalSize: () => vue.ComputedRef<"" | "default" | "small" | "large">;
27
27
  //#endregion
28
28
  export { SIZE_INJECTION_KEY, SizeContext, useGlobalSize, useSizeProp, useSizeProps };