element-plus-secondary 0.4.5 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (721) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/affix/index.d.ts +1 -1
  3. package/es/components/affix/src/affix.vue.d.ts +1 -1
  4. package/es/components/alert/index.d.ts +2 -2
  5. package/es/components/alert/src/alert.vue.d.ts +2 -2
  6. package/es/components/autocomplete/index.d.ts +134 -134
  7. package/es/components/autocomplete/index.mjs +2 -2
  8. package/es/components/autocomplete/src/autocomplete.mjs +353 -71
  9. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  10. package/es/components/autocomplete/src/autocomplete.vue.d.ts +134 -134
  11. package/es/components/autocomplete/src/autocomplete2.mjs +71 -353
  12. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  13. package/es/components/breadcrumb/index.d.ts +2 -2
  14. package/es/components/breadcrumb/index.mjs +2 -2
  15. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -57
  16. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  17. package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
  18. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +57 -11
  19. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  20. package/es/components/button/index.mjs +1 -1
  21. package/es/components/button/src/button-group.mjs +31 -6
  22. package/es/components/button/src/button-group.mjs.map +1 -1
  23. package/es/components/button/src/button-group2.mjs +6 -31
  24. package/es/components/button/src/button-group2.mjs.map +1 -1
  25. package/es/components/calendar/index.mjs +2 -2
  26. package/es/components/calendar/src/calendar.mjs +18 -131
  27. package/es/components/calendar/src/calendar.mjs.map +1 -1
  28. package/es/components/calendar/src/calendar2.mjs +131 -18
  29. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  30. package/es/components/calendar/src/date-table.mjs +87 -33
  31. package/es/components/calendar/src/date-table.mjs.map +1 -1
  32. package/es/components/calendar/src/date-table2.mjs +33 -87
  33. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  34. package/es/components/calendar/src/use-date-table.mjs +1 -1
  35. package/es/components/carousel/index.d.ts +2 -2
  36. package/es/components/carousel/src/carousel.vue.d.ts +2 -2
  37. package/es/components/cascader/index.d.ts +186 -186
  38. package/es/components/cascader/src/index.vue.d.ts +93 -93
  39. package/es/components/cascader-panel/index.d.ts +2 -2
  40. package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
  41. package/es/components/check-tag/index.mjs +2 -2
  42. package/es/components/check-tag/src/check-tag.mjs +30 -12
  43. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  44. package/es/components/check-tag/src/check-tag2.mjs +12 -30
  45. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  46. package/es/components/checkbox/index.d.ts +10 -10
  47. package/es/components/checkbox/index.mjs +2 -2
  48. package/es/components/checkbox/src/checkbox-button.vue.d.ts +2 -2
  49. package/es/components/checkbox/src/checkbox-group.mjs +28 -72
  50. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  51. package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  52. package/es/components/checkbox/src/checkbox-group2.mjs +72 -28
  53. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  54. package/es/components/checkbox/src/checkbox.vue.d.ts +2 -2
  55. package/es/components/collapse/index.d.ts +2 -2
  56. package/es/components/collapse/src/collapse.vue.d.ts +2 -2
  57. package/es/components/color-picker/index.d.ts +170 -170
  58. package/es/components/color-picker/src/color-picker.vue.d.ts +170 -170
  59. package/es/components/color-picker/src/components/alpha-slider.vue.d.ts +16 -16
  60. package/es/components/date-picker/index.d.ts +2 -2
  61. package/es/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
  62. package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +6 -6
  63. package/es/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +1 -1
  64. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +38 -38
  65. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +36 -36
  66. package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +7 -7
  67. package/es/components/date-picker/src/date-picker.d.ts +1 -1
  68. package/es/components/date-picker/src/panel-utils.d.ts +81 -81
  69. package/es/components/descriptions/index.d.ts +3 -3
  70. package/es/components/descriptions/src/description-item.d.ts +1 -1
  71. package/es/components/descriptions/src/description.mjs +1 -1
  72. package/es/components/descriptions/src/description.vue.d.ts +1 -1
  73. package/es/components/descriptions/src/descriptions-row.mjs +7 -64
  74. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  75. package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
  76. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  77. package/es/components/dialog/index.d.ts +2 -2
  78. package/es/components/dialog/index.mjs +2 -2
  79. package/es/components/dialog/src/dialog-content.mjs +37 -87
  80. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  81. package/es/components/dialog/src/dialog-content2.mjs +87 -37
  82. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  83. package/es/components/dialog/src/dialog.mjs +70 -170
  84. package/es/components/dialog/src/dialog.mjs.map +1 -1
  85. package/es/components/dialog/src/dialog.vue.d.ts +2 -2
  86. package/es/components/dialog/src/dialog2.mjs +170 -70
  87. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  88. package/es/components/divider/index.mjs +2 -2
  89. package/es/components/divider/src/divider.mjs +17 -35
  90. package/es/components/divider/src/divider.mjs.map +1 -1
  91. package/es/components/divider/src/divider2.mjs +35 -17
  92. package/es/components/divider/src/divider2.mjs.map +1 -1
  93. package/es/components/drawer/index.d.ts +2 -2
  94. package/es/components/drawer/index.mjs +2 -2
  95. package/es/components/drawer/src/drawer.mjs +165 -22
  96. package/es/components/drawer/src/drawer.mjs.map +1 -1
  97. package/es/components/drawer/src/drawer.vue.d.ts +2 -2
  98. package/es/components/drawer/src/drawer2.mjs +22 -165
  99. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  100. package/es/components/dropdown/index.d.ts +77 -77
  101. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  102. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  103. package/es/components/dropdown/src/dropdown.mjs +1 -1
  104. package/es/components/dropdown/src/dropdown.vue.d.ts +77 -77
  105. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  106. package/es/components/empty/index.d.ts +1 -1
  107. package/es/components/empty/index.mjs +2 -2
  108. package/es/components/empty/src/empty.mjs +11 -56
  109. package/es/components/empty/src/empty.mjs.map +1 -1
  110. package/es/components/empty/src/empty.vue.d.ts +1 -1
  111. package/es/components/empty/src/empty2.mjs +56 -11
  112. package/es/components/empty/src/empty2.mjs.map +1 -1
  113. package/es/components/form/index.mjs +2 -2
  114. package/es/components/form/src/form.mjs +53 -150
  115. package/es/components/form/src/form.mjs.map +1 -1
  116. package/es/components/form/src/form2.mjs +150 -53
  117. package/es/components/form/src/form2.mjs.map +1 -1
  118. package/es/components/icon/index.mjs +2 -2
  119. package/es/components/icon/src/icon.mjs +8 -36
  120. package/es/components/icon/src/icon.mjs.map +1 -1
  121. package/es/components/icon/src/icon2.mjs +36 -8
  122. package/es/components/icon/src/icon2.mjs.map +1 -1
  123. package/es/components/image/index.d.ts +8 -8
  124. package/es/components/image/index.mjs +2 -2
  125. package/es/components/image/src/image.d.ts +1 -1
  126. package/es/components/image/src/image.mjs +58 -219
  127. package/es/components/image/src/image.mjs.map +1 -1
  128. package/es/components/image/src/image.vue.d.ts +8 -8
  129. package/es/components/image/src/image2.mjs +219 -58
  130. package/es/components/image/src/image2.mjs.map +1 -1
  131. package/es/components/image-viewer/index.d.ts +1 -1
  132. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  133. package/es/components/index.mjs +26 -26
  134. package/es/components/input/index.d.ts +4 -4
  135. package/es/components/input/index.mjs +2 -2
  136. package/es/components/input/src/input.mjs +116 -442
  137. package/es/components/input/src/input.mjs.map +1 -1
  138. package/es/components/input/src/input.vue.d.ts +4 -4
  139. package/es/components/input/src/input2.mjs +442 -116
  140. package/es/components/input/src/input2.mjs.map +1 -1
  141. package/es/components/input-number/index.d.ts +16 -16
  142. package/es/components/input-number/src/input-number.vue.d.ts +16 -16
  143. package/es/components/loading/index.d.ts +1 -1
  144. package/es/components/menu/index.d.ts +2 -2
  145. package/es/components/menu/src/menu.d.ts +2 -2
  146. package/es/components/notification/index.mjs +1 -1
  147. package/es/components/notification/src/notification.mjs +69 -145
  148. package/es/components/notification/src/notification.mjs.map +1 -1
  149. package/es/components/notification/src/notification.vue.d.ts +1 -1
  150. package/es/components/notification/src/notification2.mjs +145 -69
  151. package/es/components/notification/src/notification2.mjs.map +1 -1
  152. package/es/components/notification/src/notify.mjs +2 -2
  153. package/es/components/pagination/index.d.ts +1 -1
  154. package/es/components/pagination/src/components/jumper.vue.d.ts +4 -4
  155. package/es/components/pagination/src/components/prev.mjs +34 -18
  156. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  157. package/es/components/pagination/src/components/prev2.mjs +18 -34
  158. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  159. package/es/components/pagination/src/components/sizes.vue.d.ts +79 -79
  160. package/es/components/pagination/src/pagination.d.ts +1 -1
  161. package/es/components/pagination/src/pagination.mjs +1 -1
  162. package/es/components/popconfirm/index.d.ts +114 -114
  163. package/es/components/popconfirm/index.mjs +2 -2
  164. package/es/components/popconfirm/src/popconfirm.mjs +49 -111
  165. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  166. package/es/components/popconfirm/src/popconfirm.vue.d.ts +114 -114
  167. package/es/components/popconfirm/src/popconfirm2.mjs +111 -49
  168. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  169. package/es/components/popover/index.d.ts +124 -124
  170. package/es/components/popover/src/popover.mjs +1 -1
  171. package/es/components/popover/src/popover.vue.d.ts +124 -124
  172. package/es/components/popper/index.d.ts +5 -5
  173. package/es/components/popper/src/content.d.ts +4 -4
  174. package/es/components/popper/src/content.vue.d.ts +8 -8
  175. package/es/components/popper/src/popper.d.ts +2 -2
  176. package/es/components/popper/src/popper.vue.d.ts +5 -5
  177. package/es/components/popper/src/trigger.vue.d.ts +1 -1
  178. package/es/components/popper/src/utils.d.ts +1 -1
  179. package/es/components/progress/index.d.ts +4 -4
  180. package/es/components/progress/src/progress.d.ts +1 -1
  181. package/es/components/progress/src/progress.vue.d.ts +4 -4
  182. package/es/components/radio/index.d.ts +6 -6
  183. package/es/components/radio/index.mjs +2 -2
  184. package/es/components/radio/src/radio-button.mjs +9 -68
  185. package/es/components/radio/src/radio-button.mjs.map +1 -1
  186. package/es/components/radio/src/radio-button2.mjs +68 -9
  187. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  188. package/es/components/radio/src/radio-group.vue.d.ts +2 -2
  189. package/es/components/radio/src/radio.vue.d.ts +2 -2
  190. package/es/components/rate/index.d.ts +2 -2
  191. package/es/components/rate/src/rate.vue.d.ts +2 -2
  192. package/es/components/roving-focus-group/index.mjs +3 -3
  193. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  194. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +1 -1
  195. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  196. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  197. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  198. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  199. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  200. package/es/components/row/index.d.ts +4 -4
  201. package/es/components/row/src/row.d.ts +1 -1
  202. package/es/components/row/src/row.vue.d.ts +4 -4
  203. package/es/components/scrollbar/index.d.ts +1 -1
  204. package/es/components/scrollbar/index.mjs +2 -2
  205. package/es/components/scrollbar/src/bar.mjs +42 -17
  206. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  207. package/es/components/scrollbar/src/bar2.mjs +17 -42
  208. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  209. package/es/components/scrollbar/src/scrollbar.mjs +175 -47
  210. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  211. package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  212. package/es/components/scrollbar/src/scrollbar2.mjs +47 -175
  213. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  214. package/es/components/select/index.d.ts +79 -79
  215. package/es/components/select/src/select.vue.d.ts +79 -79
  216. package/es/components/select/src/useSelect.d.ts +75 -75
  217. package/es/components/select-v2/index.d.ts +160 -160
  218. package/es/components/select-v2/src/select.vue.d.ts +80 -80
  219. package/es/components/select-v2/src/useSelect.d.ts +75 -75
  220. package/es/components/skeleton/index.d.ts +9 -9
  221. package/es/components/skeleton/index.mjs +4 -4
  222. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  223. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  224. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  225. package/es/components/skeleton/src/skeleton-item.vue.d.ts +3 -3
  226. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  227. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  228. package/es/components/skeleton/src/skeleton.mjs +49 -22
  229. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  230. package/es/components/skeleton/src/skeleton.vue.d.ts +3 -3
  231. package/es/components/skeleton/src/skeleton2.mjs +22 -49
  232. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  233. package/es/components/slider/index.d.ts +217 -208
  234. package/es/components/slider/index.mjs +2 -2
  235. package/es/components/slider/src/button.mjs +3 -1
  236. package/es/components/slider/src/button.mjs.map +1 -1
  237. package/es/components/slider/src/button.vue.d.ts +39 -38
  238. package/es/components/slider/src/composables/use-slide.d.ts +156 -152
  239. package/es/components/slider/src/composables/use-slider-button.d.ts +1 -0
  240. package/es/components/slider/src/composables/use-slider-button.mjs +2 -0
  241. package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
  242. package/es/components/slider/src/slider.d.ts +1 -0
  243. package/es/components/slider/src/slider.mjs +95 -233
  244. package/es/components/slider/src/slider.mjs.map +1 -1
  245. package/es/components/slider/src/slider.vue.d.ts +217 -208
  246. package/es/components/slider/src/slider2.mjs +233 -91
  247. package/es/components/slider/src/slider2.mjs.map +1 -1
  248. package/es/components/space/index.d.ts +2 -2
  249. package/es/components/space/src/space.d.ts +2 -2
  250. package/es/components/steps/index.d.ts +1 -1
  251. package/es/components/steps/index.mjs +2 -2
  252. package/es/components/steps/src/steps.mjs +36 -34
  253. package/es/components/steps/src/steps.mjs.map +1 -1
  254. package/es/components/steps/src/steps.vue.d.ts +1 -1
  255. package/es/components/steps/src/steps2.mjs +34 -36
  256. package/es/components/steps/src/steps2.mjs.map +1 -1
  257. package/es/components/switch/index.d.ts +3 -3
  258. package/es/components/switch/src/switch.vue.d.ts +3 -3
  259. package/es/components/table/index.d.ts +2 -2
  260. package/es/components/table/src/filter-panel.vue.d.ts +75 -75
  261. package/es/components/table/src/table.vue.d.ts +2 -2
  262. package/es/components/table/src/util.d.ts +9 -9
  263. package/es/components/tabs/index.mjs +1 -1
  264. package/es/components/tabs/src/tab-bar.mjs +81 -7
  265. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  266. package/es/components/tabs/src/tab-bar2.mjs +7 -81
  267. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  268. package/es/components/tabs/src/tab-nav.mjs +1 -1
  269. package/es/components/tag/index.d.ts +2 -2
  270. package/es/components/tag/src/tag.vue.d.ts +2 -2
  271. package/es/components/time-picker/index.d.ts +2 -2
  272. package/es/components/time-picker/src/common/picker.vue.d.ts +120 -120
  273. package/es/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
  274. package/es/components/time-picker/src/props/basic-time-spinner.d.ts +1 -1
  275. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +17 -17
  276. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +23 -23
  277. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +23 -23
  278. package/es/components/time-picker/src/time-picker.d.ts +1 -1
  279. package/es/components/time-select/index.d.ts +324 -324
  280. package/es/components/time-select/index.mjs +1 -1
  281. package/es/components/time-select/src/time-select.mjs +117 -48
  282. package/es/components/time-select/src/time-select.mjs.map +1 -1
  283. package/es/components/time-select/src/time-select.vue.d.ts +162 -162
  284. package/es/components/time-select/src/time-select2.mjs +48 -117
  285. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  286. package/es/components/tooltip/index.d.ts +38 -38
  287. package/es/components/tooltip/index.mjs +1 -1
  288. package/es/components/tooltip/src/content.d.ts +1 -1
  289. package/es/components/tooltip/src/content.vue.d.ts +17 -17
  290. package/es/components/tooltip/src/tooltip.d.ts +2 -2
  291. package/es/components/tooltip/src/tooltip.mjs +1 -1
  292. package/es/components/tooltip/src/tooltip.vue.d.ts +38 -38
  293. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  294. package/es/components/tooltip/src/trigger.mjs +16 -74
  295. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  296. package/es/components/tooltip/src/trigger.vue.d.ts +2 -2
  297. package/es/components/tooltip/src/trigger2.mjs +74 -16
  298. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  299. package/es/components/tooltip-v2/index.d.ts +36 -36
  300. package/es/components/tooltip-v2/index.mjs +2 -2
  301. package/es/components/tooltip-v2/src/arrow.vue.d.ts +1 -1
  302. package/es/components/tooltip-v2/src/content.d.ts +1 -1
  303. package/es/components/tooltip-v2/src/content.vue.d.ts +6 -6
  304. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  305. package/es/components/tooltip-v2/src/root.mjs +81 -17
  306. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  307. package/es/components/tooltip-v2/src/root2.mjs +17 -81
  308. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  309. package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
  310. package/es/components/tooltip-v2/src/tooltip.mjs +4 -4
  311. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +36 -36
  312. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  313. package/es/components/tooltip-v2/src/trigger.mjs +12 -90
  314. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  315. package/es/components/tooltip-v2/src/trigger2.mjs +90 -12
  316. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  317. package/es/components/transfer/index.d.ts +62 -62
  318. package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  319. package/es/components/transfer/src/transfer.vue.d.ts +62 -62
  320. package/es/components/tree/index.d.ts +4 -4
  321. package/es/components/tree/src/tree-node.vue.d.ts +1 -1
  322. package/es/components/tree/src/tree.vue.d.ts +2 -2
  323. package/es/components/tree-v2/index.d.ts +9 -9
  324. package/es/components/tree-v2/src/tree-node.vue.d.ts +6 -6
  325. package/es/components/tree-v2/src/tree.vue.d.ts +9 -9
  326. package/es/components/upload/index.d.ts +10 -10
  327. package/es/components/upload/index.mjs +4 -4
  328. package/es/components/upload/src/upload-content.mjs +170 -33
  329. package/es/components/upload/src/upload-content.mjs.map +1 -1
  330. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  331. package/es/components/upload/src/upload-content2.mjs +33 -170
  332. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  333. package/es/components/upload/src/upload-list.mjs +170 -26
  334. package/es/components/upload/src/upload-list.mjs.map +1 -1
  335. package/es/components/upload/src/upload-list.vue.d.ts +4 -4
  336. package/es/components/upload/src/upload-list2.mjs +26 -170
  337. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  338. package/es/components/upload/src/upload.mjs +120 -105
  339. package/es/components/upload/src/upload.mjs.map +1 -1
  340. package/es/components/upload/src/upload.vue.d.ts +10 -10
  341. package/es/components/upload/src/upload2.mjs +105 -120
  342. package/es/components/upload/src/upload2.mjs.map +1 -1
  343. package/es/components/upload/src/use-handlers.mjs +1 -1
  344. package/es/components/virtual-list/src/builders/build-grid.d.ts +2 -2
  345. package/es/components/virtual-list/src/builders/build-list.d.ts +3 -3
  346. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -2
  347. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
  348. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -2
  349. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
  350. package/es/components/visual-hidden/index.mjs +3 -3
  351. package/es/components/visual-hidden/src/visual-hidden.mjs +7 -35
  352. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  353. package/es/components/visual-hidden/src/visual-hidden2.mjs +35 -7
  354. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  355. package/es/index.mjs +26 -26
  356. package/es/utils/vue/vnode.d.ts +6 -6
  357. package/lib/components/affix/index.d.ts +1 -1
  358. package/lib/components/affix/src/affix.vue.d.ts +1 -1
  359. package/lib/components/alert/index.d.ts +2 -2
  360. package/lib/components/alert/src/alert.vue.d.ts +2 -2
  361. package/lib/components/autocomplete/index.d.ts +134 -134
  362. package/lib/components/autocomplete/index.js +2 -2
  363. package/lib/components/autocomplete/src/autocomplete.js +352 -71
  364. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  365. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +134 -134
  366. package/lib/components/autocomplete/src/autocomplete2.js +71 -352
  367. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  368. package/lib/components/breadcrumb/index.d.ts +2 -2
  369. package/lib/components/breadcrumb/index.js +2 -2
  370. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -57
  371. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  372. package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
  373. package/lib/components/breadcrumb/src/breadcrumb-item2.js +57 -11
  374. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  375. package/lib/components/button/index.js +1 -1
  376. package/lib/components/button/src/button-group.js +31 -6
  377. package/lib/components/button/src/button-group.js.map +1 -1
  378. package/lib/components/button/src/button-group2.js +6 -31
  379. package/lib/components/button/src/button-group2.js.map +1 -1
  380. package/lib/components/calendar/index.js +2 -2
  381. package/lib/components/calendar/src/calendar.js +19 -131
  382. package/lib/components/calendar/src/calendar.js.map +1 -1
  383. package/lib/components/calendar/src/calendar2.js +131 -19
  384. package/lib/components/calendar/src/calendar2.js.map +1 -1
  385. package/lib/components/calendar/src/date-table.js +87 -37
  386. package/lib/components/calendar/src/date-table.js.map +1 -1
  387. package/lib/components/calendar/src/date-table2.js +37 -87
  388. package/lib/components/calendar/src/date-table2.js.map +1 -1
  389. package/lib/components/calendar/src/use-date-table.js +1 -1
  390. package/lib/components/carousel/index.d.ts +2 -2
  391. package/lib/components/carousel/src/carousel.vue.d.ts +2 -2
  392. package/lib/components/cascader/index.d.ts +186 -186
  393. package/lib/components/cascader/src/index.vue.d.ts +93 -93
  394. package/lib/components/cascader-panel/index.d.ts +2 -2
  395. package/lib/components/cascader-panel/src/index.vue.d.ts +1 -1
  396. package/lib/components/check-tag/index.js +2 -2
  397. package/lib/components/check-tag/src/check-tag.js +30 -13
  398. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  399. package/lib/components/check-tag/src/check-tag2.js +13 -30
  400. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  401. package/lib/components/checkbox/index.d.ts +10 -10
  402. package/lib/components/checkbox/index.js +2 -2
  403. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +2 -2
  404. package/lib/components/checkbox/src/checkbox-group.js +29 -72
  405. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  406. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  407. package/lib/components/checkbox/src/checkbox-group2.js +72 -29
  408. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  409. package/lib/components/checkbox/src/checkbox.vue.d.ts +2 -2
  410. package/lib/components/collapse/index.d.ts +2 -2
  411. package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
  412. package/lib/components/color-picker/index.d.ts +170 -170
  413. package/lib/components/color-picker/src/color-picker.vue.d.ts +170 -170
  414. package/lib/components/color-picker/src/components/alpha-slider.vue.d.ts +16 -16
  415. package/lib/components/date-picker/index.d.ts +2 -2
  416. package/lib/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
  417. package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +6 -6
  418. package/lib/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +1 -1
  419. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +38 -38
  420. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +36 -36
  421. package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +7 -7
  422. package/lib/components/date-picker/src/date-picker.d.ts +1 -1
  423. package/lib/components/date-picker/src/panel-utils.d.ts +81 -81
  424. package/lib/components/descriptions/index.d.ts +3 -3
  425. package/lib/components/descriptions/src/description-item.d.ts +1 -1
  426. package/lib/components/descriptions/src/description.js +1 -1
  427. package/lib/components/descriptions/src/description.vue.d.ts +1 -1
  428. package/lib/components/descriptions/src/descriptions-row.js +7 -64
  429. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  430. package/lib/components/descriptions/src/descriptions-row2.js +64 -7
  431. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  432. package/lib/components/dialog/index.d.ts +2 -2
  433. package/lib/components/dialog/index.js +2 -2
  434. package/lib/components/dialog/src/dialog-content.js +37 -86
  435. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  436. package/lib/components/dialog/src/dialog-content2.js +86 -37
  437. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  438. package/lib/components/dialog/src/dialog.js +70 -169
  439. package/lib/components/dialog/src/dialog.js.map +1 -1
  440. package/lib/components/dialog/src/dialog.vue.d.ts +2 -2
  441. package/lib/components/dialog/src/dialog2.js +169 -70
  442. package/lib/components/dialog/src/dialog2.js.map +1 -1
  443. package/lib/components/divider/index.js +2 -2
  444. package/lib/components/divider/src/divider.js +17 -35
  445. package/lib/components/divider/src/divider.js.map +1 -1
  446. package/lib/components/divider/src/divider2.js +35 -17
  447. package/lib/components/divider/src/divider2.js.map +1 -1
  448. package/lib/components/drawer/index.d.ts +2 -2
  449. package/lib/components/drawer/index.js +2 -2
  450. package/lib/components/drawer/src/drawer.js +165 -23
  451. package/lib/components/drawer/src/drawer.js.map +1 -1
  452. package/lib/components/drawer/src/drawer.vue.d.ts +2 -2
  453. package/lib/components/drawer/src/drawer2.js +23 -165
  454. package/lib/components/drawer/src/drawer2.js.map +1 -1
  455. package/lib/components/dropdown/index.d.ts +77 -77
  456. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  457. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  458. package/lib/components/dropdown/src/dropdown.js +1 -1
  459. package/lib/components/dropdown/src/dropdown.vue.d.ts +77 -77
  460. package/lib/components/dropdown/src/dropdown2.js +1 -1
  461. package/lib/components/empty/index.d.ts +1 -1
  462. package/lib/components/empty/index.js +2 -2
  463. package/lib/components/empty/src/empty.js +11 -56
  464. package/lib/components/empty/src/empty.js.map +1 -1
  465. package/lib/components/empty/src/empty.vue.d.ts +1 -1
  466. package/lib/components/empty/src/empty2.js +56 -11
  467. package/lib/components/empty/src/empty2.js.map +1 -1
  468. package/lib/components/form/index.js +2 -2
  469. package/lib/components/form/src/form.js +53 -149
  470. package/lib/components/form/src/form.js.map +1 -1
  471. package/lib/components/form/src/form2.js +149 -53
  472. package/lib/components/form/src/form2.js.map +1 -1
  473. package/lib/components/icon/index.js +2 -2
  474. package/lib/components/icon/src/icon.js +8 -36
  475. package/lib/components/icon/src/icon.js.map +1 -1
  476. package/lib/components/icon/src/icon2.js +36 -8
  477. package/lib/components/icon/src/icon2.js.map +1 -1
  478. package/lib/components/image/index.d.ts +8 -8
  479. package/lib/components/image/index.js +2 -2
  480. package/lib/components/image/src/image.d.ts +1 -1
  481. package/lib/components/image/src/image.js +59 -219
  482. package/lib/components/image/src/image.js.map +1 -1
  483. package/lib/components/image/src/image.vue.d.ts +8 -8
  484. package/lib/components/image/src/image2.js +219 -59
  485. package/lib/components/image/src/image2.js.map +1 -1
  486. package/lib/components/image-viewer/index.d.ts +1 -1
  487. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  488. package/lib/components/index.js +26 -26
  489. package/lib/components/input/index.d.ts +4 -4
  490. package/lib/components/input/index.js +2 -2
  491. package/lib/components/input/src/input.js +116 -441
  492. package/lib/components/input/src/input.js.map +1 -1
  493. package/lib/components/input/src/input.vue.d.ts +4 -4
  494. package/lib/components/input/src/input2.js +441 -116
  495. package/lib/components/input/src/input2.js.map +1 -1
  496. package/lib/components/input-number/index.d.ts +16 -16
  497. package/lib/components/input-number/src/input-number.vue.d.ts +16 -16
  498. package/lib/components/loading/index.d.ts +1 -1
  499. package/lib/components/menu/index.d.ts +2 -2
  500. package/lib/components/menu/src/menu.d.ts +2 -2
  501. package/lib/components/notification/index.js +1 -1
  502. package/lib/components/notification/src/notification.js +70 -144
  503. package/lib/components/notification/src/notification.js.map +1 -1
  504. package/lib/components/notification/src/notification.vue.d.ts +1 -1
  505. package/lib/components/notification/src/notification2.js +144 -70
  506. package/lib/components/notification/src/notification2.js.map +1 -1
  507. package/lib/components/notification/src/notify.js +2 -2
  508. package/lib/components/pagination/index.d.ts +1 -1
  509. package/lib/components/pagination/src/components/jumper.vue.d.ts +4 -4
  510. package/lib/components/pagination/src/components/prev.js +34 -19
  511. package/lib/components/pagination/src/components/prev.js.map +1 -1
  512. package/lib/components/pagination/src/components/prev2.js +19 -34
  513. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  514. package/lib/components/pagination/src/components/sizes.vue.d.ts +79 -79
  515. package/lib/components/pagination/src/pagination.d.ts +1 -1
  516. package/lib/components/pagination/src/pagination.js +1 -1
  517. package/lib/components/popconfirm/index.d.ts +114 -114
  518. package/lib/components/popconfirm/index.js +2 -2
  519. package/lib/components/popconfirm/src/popconfirm.js +49 -111
  520. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  521. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +114 -114
  522. package/lib/components/popconfirm/src/popconfirm2.js +111 -49
  523. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  524. package/lib/components/popover/index.d.ts +124 -124
  525. package/lib/components/popover/src/popover.js +1 -1
  526. package/lib/components/popover/src/popover.vue.d.ts +124 -124
  527. package/lib/components/popper/index.d.ts +5 -5
  528. package/lib/components/popper/src/content.d.ts +4 -4
  529. package/lib/components/popper/src/content.vue.d.ts +8 -8
  530. package/lib/components/popper/src/popper.d.ts +2 -2
  531. package/lib/components/popper/src/popper.vue.d.ts +5 -5
  532. package/lib/components/popper/src/trigger.vue.d.ts +1 -1
  533. package/lib/components/popper/src/utils.d.ts +1 -1
  534. package/lib/components/progress/index.d.ts +4 -4
  535. package/lib/components/progress/src/progress.d.ts +1 -1
  536. package/lib/components/progress/src/progress.vue.d.ts +4 -4
  537. package/lib/components/radio/index.d.ts +6 -6
  538. package/lib/components/radio/index.js +2 -2
  539. package/lib/components/radio/src/radio-button.js +9 -68
  540. package/lib/components/radio/src/radio-button.js.map +1 -1
  541. package/lib/components/radio/src/radio-button2.js +68 -9
  542. package/lib/components/radio/src/radio-button2.js.map +1 -1
  543. package/lib/components/radio/src/radio-group.vue.d.ts +2 -2
  544. package/lib/components/radio/src/radio.vue.d.ts +2 -2
  545. package/lib/components/rate/index.d.ts +2 -2
  546. package/lib/components/rate/src/rate.vue.d.ts +2 -2
  547. package/lib/components/roving-focus-group/index.js +2 -2
  548. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  549. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +1 -1
  550. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  551. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  552. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  553. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  554. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  555. package/lib/components/row/index.d.ts +4 -4
  556. package/lib/components/row/src/row.d.ts +1 -1
  557. package/lib/components/row/src/row.vue.d.ts +4 -4
  558. package/lib/components/scrollbar/index.d.ts +1 -1
  559. package/lib/components/scrollbar/index.js +2 -2
  560. package/lib/components/scrollbar/src/bar.js +42 -17
  561. package/lib/components/scrollbar/src/bar.js.map +1 -1
  562. package/lib/components/scrollbar/src/bar2.js +17 -42
  563. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  564. package/lib/components/scrollbar/src/scrollbar.js +175 -48
  565. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  566. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  567. package/lib/components/scrollbar/src/scrollbar2.js +48 -175
  568. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  569. package/lib/components/select/index.d.ts +79 -79
  570. package/lib/components/select/src/select.vue.d.ts +79 -79
  571. package/lib/components/select/src/useSelect.d.ts +75 -75
  572. package/lib/components/select-v2/index.d.ts +160 -160
  573. package/lib/components/select-v2/src/select.vue.d.ts +80 -80
  574. package/lib/components/select-v2/src/useSelect.d.ts +75 -75
  575. package/lib/components/skeleton/index.d.ts +9 -9
  576. package/lib/components/skeleton/index.js +4 -4
  577. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  578. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  579. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  580. package/lib/components/skeleton/src/skeleton-item.vue.d.ts +3 -3
  581. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  582. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  583. package/lib/components/skeleton/src/skeleton.js +49 -22
  584. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  585. package/lib/components/skeleton/src/skeleton.vue.d.ts +3 -3
  586. package/lib/components/skeleton/src/skeleton2.js +22 -49
  587. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  588. package/lib/components/slider/index.d.ts +217 -208
  589. package/lib/components/slider/index.js +2 -2
  590. package/lib/components/slider/src/button.js +3 -1
  591. package/lib/components/slider/src/button.js.map +1 -1
  592. package/lib/components/slider/src/button.vue.d.ts +39 -38
  593. package/lib/components/slider/src/composables/use-slide.d.ts +156 -152
  594. package/lib/components/slider/src/composables/use-slider-button.d.ts +1 -0
  595. package/lib/components/slider/src/composables/use-slider-button.js +2 -0
  596. package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
  597. package/lib/components/slider/src/slider.d.ts +1 -0
  598. package/lib/components/slider/src/slider.js +96 -233
  599. package/lib/components/slider/src/slider.js.map +1 -1
  600. package/lib/components/slider/src/slider.vue.d.ts +217 -208
  601. package/lib/components/slider/src/slider2.js +233 -92
  602. package/lib/components/slider/src/slider2.js.map +1 -1
  603. package/lib/components/space/index.d.ts +2 -2
  604. package/lib/components/space/src/space.d.ts +2 -2
  605. package/lib/components/steps/index.d.ts +1 -1
  606. package/lib/components/steps/index.js +2 -2
  607. package/lib/components/steps/src/steps.js +37 -34
  608. package/lib/components/steps/src/steps.js.map +1 -1
  609. package/lib/components/steps/src/steps.vue.d.ts +1 -1
  610. package/lib/components/steps/src/steps2.js +34 -37
  611. package/lib/components/steps/src/steps2.js.map +1 -1
  612. package/lib/components/switch/index.d.ts +3 -3
  613. package/lib/components/switch/src/switch.vue.d.ts +3 -3
  614. package/lib/components/table/index.d.ts +2 -2
  615. package/lib/components/table/src/filter-panel.vue.d.ts +75 -75
  616. package/lib/components/table/src/table.vue.d.ts +2 -2
  617. package/lib/components/table/src/util.d.ts +9 -9
  618. package/lib/components/tabs/index.js +1 -1
  619. package/lib/components/tabs/src/tab-bar.js +81 -7
  620. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  621. package/lib/components/tabs/src/tab-bar2.js +7 -81
  622. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  623. package/lib/components/tabs/src/tab-nav.js +1 -1
  624. package/lib/components/tag/index.d.ts +2 -2
  625. package/lib/components/tag/src/tag.vue.d.ts +2 -2
  626. package/lib/components/time-picker/index.d.ts +2 -2
  627. package/lib/components/time-picker/src/common/picker.vue.d.ts +120 -120
  628. package/lib/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
  629. package/lib/components/time-picker/src/props/basic-time-spinner.d.ts +1 -1
  630. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +17 -17
  631. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +23 -23
  632. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +23 -23
  633. package/lib/components/time-picker/src/time-picker.d.ts +1 -1
  634. package/lib/components/time-select/index.d.ts +324 -324
  635. package/lib/components/time-select/index.js +1 -1
  636. package/lib/components/time-select/src/time-select.js +122 -48
  637. package/lib/components/time-select/src/time-select.js.map +1 -1
  638. package/lib/components/time-select/src/time-select.vue.d.ts +162 -162
  639. package/lib/components/time-select/src/time-select2.js +48 -122
  640. package/lib/components/time-select/src/time-select2.js.map +1 -1
  641. package/lib/components/tooltip/index.d.ts +38 -38
  642. package/lib/components/tooltip/index.js +1 -1
  643. package/lib/components/tooltip/src/content.d.ts +1 -1
  644. package/lib/components/tooltip/src/content.vue.d.ts +17 -17
  645. package/lib/components/tooltip/src/tooltip.d.ts +2 -2
  646. package/lib/components/tooltip/src/tooltip.js +1 -1
  647. package/lib/components/tooltip/src/tooltip.vue.d.ts +38 -38
  648. package/lib/components/tooltip/src/tooltip2.js +1 -1
  649. package/lib/components/tooltip/src/trigger.js +16 -74
  650. package/lib/components/tooltip/src/trigger.js.map +1 -1
  651. package/lib/components/tooltip/src/trigger.vue.d.ts +2 -2
  652. package/lib/components/tooltip/src/trigger2.js +74 -16
  653. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  654. package/lib/components/tooltip-v2/index.d.ts +36 -36
  655. package/lib/components/tooltip-v2/index.js +2 -2
  656. package/lib/components/tooltip-v2/src/arrow.vue.d.ts +1 -1
  657. package/lib/components/tooltip-v2/src/content.d.ts +1 -1
  658. package/lib/components/tooltip-v2/src/content.vue.d.ts +6 -6
  659. package/lib/components/tooltip-v2/src/content2.js +1 -1
  660. package/lib/components/tooltip-v2/src/root.js +81 -17
  661. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  662. package/lib/components/tooltip-v2/src/root2.js +17 -81
  663. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  664. package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
  665. package/lib/components/tooltip-v2/src/tooltip.js +4 -4
  666. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +36 -36
  667. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  668. package/lib/components/tooltip-v2/src/trigger.js +12 -90
  669. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  670. package/lib/components/tooltip-v2/src/trigger2.js +90 -12
  671. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  672. package/lib/components/transfer/index.d.ts +62 -62
  673. package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  674. package/lib/components/transfer/src/transfer.vue.d.ts +62 -62
  675. package/lib/components/tree/index.d.ts +4 -4
  676. package/lib/components/tree/src/tree-node.vue.d.ts +1 -1
  677. package/lib/components/tree/src/tree.vue.d.ts +2 -2
  678. package/lib/components/tree-v2/index.d.ts +9 -9
  679. package/lib/components/tree-v2/src/tree-node.vue.d.ts +6 -6
  680. package/lib/components/tree-v2/src/tree.vue.d.ts +9 -9
  681. package/lib/components/upload/index.d.ts +10 -10
  682. package/lib/components/upload/index.js +4 -4
  683. package/lib/components/upload/src/upload-content.js +170 -33
  684. package/lib/components/upload/src/upload-content.js.map +1 -1
  685. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  686. package/lib/components/upload/src/upload-content2.js +33 -170
  687. package/lib/components/upload/src/upload-content2.js.map +1 -1
  688. package/lib/components/upload/src/upload-list.js +170 -27
  689. package/lib/components/upload/src/upload-list.js.map +1 -1
  690. package/lib/components/upload/src/upload-list.vue.d.ts +4 -4
  691. package/lib/components/upload/src/upload-list2.js +27 -170
  692. package/lib/components/upload/src/upload-list2.js.map +1 -1
  693. package/lib/components/upload/src/upload.js +120 -108
  694. package/lib/components/upload/src/upload.js.map +1 -1
  695. package/lib/components/upload/src/upload.vue.d.ts +10 -10
  696. package/lib/components/upload/src/upload2.js +108 -120
  697. package/lib/components/upload/src/upload2.js.map +1 -1
  698. package/lib/components/upload/src/use-handlers.js +1 -1
  699. package/lib/components/virtual-list/src/builders/build-grid.d.ts +2 -2
  700. package/lib/components/virtual-list/src/builders/build-list.d.ts +3 -3
  701. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -2
  702. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
  703. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -2
  704. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
  705. package/lib/components/visual-hidden/index.js +2 -2
  706. package/lib/components/visual-hidden/src/visual-hidden.js +7 -35
  707. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  708. package/lib/components/visual-hidden/src/visual-hidden2.js +35 -7
  709. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  710. package/lib/index.js +26 -26
  711. package/lib/utils/vue/vnode.d.ts +6 -6
  712. package/package.json +1 -1
  713. package/theme-chalk/el-button.css +1 -1
  714. package/theme-chalk/el-form.css +1 -1
  715. package/theme-chalk/el-input-number.css +1 -1
  716. package/theme-chalk/el-input.css +1 -1
  717. package/theme-chalk/index.css +1 -1
  718. package/theme-chalk/src/button.scss +1 -1
  719. package/theme-chalk/src/form.scss +1 -1
  720. package/theme-chalk/src/input-number.scss +1 -1
  721. package/theme-chalk/src/input.scss +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"root.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/root.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\ntype StateUpdater = (state: boolean) => void\n\nexport const tooltipV2RootProps = buildProps({\n delayDuration: {\n type: Number,\n default: 300,\n },\n defaultOpen: Boolean,\n open: {\n type: Boolean,\n default: undefined,\n },\n onOpenChange: {\n type: definePropType<StateUpdater>(Function),\n },\n 'onUpdate:open': {\n type: definePropType<StateUpdater>(Function),\n },\n} as const)\n\nexport type TooltipV2RootProps = ExtractPropTypes<typeof tooltipV2RootProps>\n"],"names":[],"mappings":";;;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"root.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/root.vue"],"sourcesContent":["<template>\n <slot :open=\"open\" />\n</template>\n\n<script setup lang=\"ts\">\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n unref,\n watch,\n} from 'vue'\nimport { useTimeoutFn } from '@vueuse/core'\nimport { useId, useNamespace } from '@element-plus/hooks'\nimport { isNumber, isPropAbsent } from '@element-plus/utils'\nimport { TOOLTIP_V2_OPEN, tooltipV2RootKey } from '@element-plus/tokens'\nimport { tooltipV2RootProps } from './root'\n\ndefineOptions({\n name: 'ElTooltipV2Root',\n})\n\nconst props = defineProps(tooltipV2RootProps)\n\n/**\n * internal open state, when no model value was provided, use this as indicator instead\n */\nconst _open = ref(props.defaultOpen)\nconst triggerRef = ref<HTMLElement | null>(null)\n\nconst open = computed<boolean>({\n get: () => (isPropAbsent(props.open) ? _open.value : props.open),\n set: (open) => {\n _open.value = open\n props['onUpdate:open']?.(open)\n },\n})\n\nconst isOpenDelayed = computed(\n () => isNumber(props.delayDuration) && props.delayDuration > 0\n)\n\nconst { start: onDelayedOpen, stop: clearTimer } = useTimeoutFn(\n () => {\n open.value = true\n },\n computed(() => props.delayDuration),\n {\n immediate: false,\n }\n)\n\nconst ns = useNamespace('tooltip-v2')\n\nconst contentId = useId()\n\nconst onNormalOpen = () => {\n clearTimer()\n open.value = true\n}\n\nconst onDelayOpen = () => {\n unref(isOpenDelayed) ? onDelayedOpen() : onNormalOpen()\n}\n\nconst onOpen = onNormalOpen\n\nconst onClose = () => {\n clearTimer()\n open.value = false\n}\n\nconst onChange = (open: boolean) => {\n if (open) {\n document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN))\n onOpen()\n }\n\n props.onOpenChange?.(open)\n}\n\nwatch(open, onChange)\n\nonMounted(() => {\n // Keeps only 1 tooltip open at a time\n document.addEventListener(TOOLTIP_V2_OPEN, onClose)\n})\n\nonBeforeUnmount(() => {\n clearTimer()\n document.removeEventListener(TOOLTIP_V2_OPEN, onClose)\n})\n\nprovide(tooltipV2RootKey, {\n contentId,\n triggerRef,\n ns,\n\n onClose,\n onDelayOpen,\n onOpen,\n})\n\ndefineExpose({\n /**\n * @description open tooltip programmatically\n */\n onOpen,\n\n /**\n * @description close tooltip programmatically\n */\n onClose,\n})\n</script>\n"],"names":[],"mappings":"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"}
@@ -1,87 +1,23 @@
1
- import { defineComponent, ref, computed, unref, watch, onMounted, onBeforeUnmount, provide, renderSlot } from 'vue';
2
- import { isNumber, useTimeoutFn } from '@vueuse/core';
3
- import '../../../hooks/index.mjs';
4
1
  import '../../../utils/index.mjs';
5
- import '../../../tokens/index.mjs';
6
- import { tooltipV2RootProps } from './root.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { isPropAbsent } from '../../../utils/types.mjs';
9
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
10
- import { useId } from '../../../hooks/use-id/index.mjs';
11
- import { TOOLTIP_V2_OPEN, tooltipV2RootKey } from '../../../tokens/tooltip-v2.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
12
3
 
13
- const __default__ = defineComponent({
14
- name: "ElTooltipV2Root"
15
- });
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- ...__default__,
18
- props: tooltipV2RootProps,
19
- setup(__props, { expose }) {
20
- const props = __props;
21
- const _open = ref(props.defaultOpen);
22
- const triggerRef = ref(null);
23
- const open = computed({
24
- get: () => isPropAbsent(props.open) ? _open.value : props.open,
25
- set: (open2) => {
26
- var _a;
27
- _open.value = open2;
28
- (_a = props["onUpdate:open"]) == null ? void 0 : _a.call(props, open2);
29
- }
30
- });
31
- const isOpenDelayed = computed(() => isNumber(props.delayDuration) && props.delayDuration > 0);
32
- const { start: onDelayedOpen, stop: clearTimer } = useTimeoutFn(() => {
33
- open.value = true;
34
- }, computed(() => props.delayDuration), {
35
- immediate: false
36
- });
37
- const ns = useNamespace("tooltip-v2");
38
- const contentId = useId();
39
- const onNormalOpen = () => {
40
- clearTimer();
41
- open.value = true;
42
- };
43
- const onDelayOpen = () => {
44
- unref(isOpenDelayed) ? onDelayedOpen() : onNormalOpen();
45
- };
46
- const onOpen = onNormalOpen;
47
- const onClose = () => {
48
- clearTimer();
49
- open.value = false;
50
- };
51
- const onChange = (open2) => {
52
- var _a;
53
- if (open2) {
54
- document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN));
55
- onOpen();
56
- }
57
- (_a = props.onOpenChange) == null ? void 0 : _a.call(props, open2);
58
- };
59
- watch(open, onChange);
60
- onMounted(() => {
61
- document.addEventListener(TOOLTIP_V2_OPEN, onClose);
62
- });
63
- onBeforeUnmount(() => {
64
- clearTimer();
65
- document.removeEventListener(TOOLTIP_V2_OPEN, onClose);
66
- });
67
- provide(tooltipV2RootKey, {
68
- contentId,
69
- triggerRef,
70
- ns,
71
- onClose,
72
- onDelayOpen,
73
- onOpen
74
- });
75
- expose({
76
- onOpen,
77
- onClose
78
- });
79
- return (_ctx, _cache) => {
80
- return renderSlot(_ctx.$slots, "default", { open: unref(open) });
81
- };
4
+ const tooltipV2RootProps = buildProps({
5
+ delayDuration: {
6
+ type: Number,
7
+ default: 300
8
+ },
9
+ defaultOpen: Boolean,
10
+ open: {
11
+ type: Boolean,
12
+ default: void 0
13
+ },
14
+ onOpenChange: {
15
+ type: definePropType(Function)
16
+ },
17
+ "onUpdate:open": {
18
+ type: definePropType(Function)
82
19
  }
83
20
  });
84
- var TooltipV2Root = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/tooltip-v2/src/root.vue"]]);
85
21
 
86
- export { TooltipV2Root as default };
22
+ export { tooltipV2RootProps };
87
23
  //# sourceMappingURL=root2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"root2.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/root.vue"],"sourcesContent":["<template>\n <slot :open=\"open\" />\n</template>\n\n<script setup lang=\"ts\">\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n unref,\n watch,\n} from 'vue'\nimport { useTimeoutFn } from '@vueuse/core'\nimport { useId, useNamespace } from '@element-plus/hooks'\nimport { isNumber, isPropAbsent } from '@element-plus/utils'\nimport { TOOLTIP_V2_OPEN, tooltipV2RootKey } from '@element-plus/tokens'\nimport { tooltipV2RootProps } from './root'\n\ndefineOptions({\n name: 'ElTooltipV2Root',\n})\n\nconst props = defineProps(tooltipV2RootProps)\n\n/**\n * internal open state, when no model value was provided, use this as indicator instead\n */\nconst _open = ref(props.defaultOpen)\nconst triggerRef = ref<HTMLElement | null>(null)\n\nconst open = computed<boolean>({\n get: () => (isPropAbsent(props.open) ? _open.value : props.open),\n set: (open) => {\n _open.value = open\n props['onUpdate:open']?.(open)\n },\n})\n\nconst isOpenDelayed = computed(\n () => isNumber(props.delayDuration) && props.delayDuration > 0\n)\n\nconst { start: onDelayedOpen, stop: clearTimer } = useTimeoutFn(\n () => {\n open.value = true\n },\n computed(() => props.delayDuration),\n {\n immediate: false,\n }\n)\n\nconst ns = useNamespace('tooltip-v2')\n\nconst contentId = useId()\n\nconst onNormalOpen = () => {\n clearTimer()\n open.value = true\n}\n\nconst onDelayOpen = () => {\n unref(isOpenDelayed) ? onDelayedOpen() : onNormalOpen()\n}\n\nconst onOpen = onNormalOpen\n\nconst onClose = () => {\n clearTimer()\n open.value = false\n}\n\nconst onChange = (open: boolean) => {\n if (open) {\n document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN))\n onOpen()\n }\n\n props.onOpenChange?.(open)\n}\n\nwatch(open, onChange)\n\nonMounted(() => {\n // Keeps only 1 tooltip open at a time\n document.addEventListener(TOOLTIP_V2_OPEN, onClose)\n})\n\nonBeforeUnmount(() => {\n clearTimer()\n document.removeEventListener(TOOLTIP_V2_OPEN, onClose)\n})\n\nprovide(tooltipV2RootKey, {\n contentId,\n triggerRef,\n ns,\n\n onClose,\n onDelayOpen,\n onOpen,\n})\n\ndefineExpose({\n /**\n * @description open tooltip programmatically\n */\n onOpen,\n\n /**\n * @description close tooltip programmatically\n */\n onClose,\n})\n</script>\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"root2.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/root.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\ntype StateUpdater = (state: boolean) => void\n\nexport const tooltipV2RootProps = buildProps({\n delayDuration: {\n type: Number,\n default: 300,\n },\n defaultOpen: Boolean,\n open: {\n type: Boolean,\n default: undefined,\n },\n onOpenChange: {\n type: definePropType<StateUpdater>(Function),\n },\n 'onUpdate:open': {\n type: definePropType<StateUpdater>(Function),\n },\n} as const)\n\nexport type TooltipV2RootProps = ExtractPropTypes<typeof tooltipV2RootProps>\n"],"names":[],"mappings":";;;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,CAAC;;;;"}
@@ -12,7 +12,7 @@ export declare const tooltipV2Props: {
12
12
  readonly placement: import("element-plus-secondary/es/utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
13
13
  readonly reference: import("element-plus-secondary/es/utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
14
14
  readonly offset: import("element-plus-secondary/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
15
- readonly strategy: import("element-plus-secondary/es/utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
15
+ readonly strategy: import("element-plus-secondary/es/utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
16
16
  readonly showArrow: import("element-plus-secondary/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
17
17
  readonly onBlur: {
18
18
  readonly type: import("vue").PropType<(e: Event) => boolean | void>;
@@ -2,13 +2,13 @@ import { defineComponent, toRefs, reactive, openBlock, createBlock, normalizePro
2
2
  import { pick } from 'lodash-unified';
3
3
  import { tooltipV2ArrowProps } from './arrow.mjs';
4
4
  import { tooltipV2ContentProps } from './content.mjs';
5
- import { tooltipV2RootProps } from './root.mjs';
5
+ import { tooltipV2RootProps } from './root2.mjs';
6
6
  import { tooltipV2Props } from './tooltip2.mjs';
7
- import { tooltipV2TriggerProps } from './trigger2.mjs';
8
- import TooltipV2Root from './root2.mjs';
7
+ import { tooltipV2TriggerProps } from './trigger.mjs';
8
+ import TooltipV2Root from './root.mjs';
9
9
  import TooltipV2Arrow from './arrow2.mjs';
10
10
  import TooltipV2Content from './content2.mjs';
11
- import TooltipV2Trigger from './trigger.mjs';
11
+ import TooltipV2Trigger from './trigger2.mjs';
12
12
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
13
13
 
14
14
  const __default__ = defineComponent({
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  readonly placement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
12
12
  readonly reference: import("../../../utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
13
13
  readonly offset: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
14
- readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
14
+ readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
15
15
  readonly showArrow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
16
16
  readonly onBlur: {
17
17
  readonly type: import("vue").PropType<(e: Event) => boolean | void>;
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
81
81
  readonly placement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
82
82
  readonly reference: import("../../../utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
83
83
  readonly offset: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
84
- readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
84
+ readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
85
85
  readonly showArrow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
86
86
  readonly onBlur: {
87
87
  readonly type: import("vue").PropType<(e: Event) => boolean | void>;
@@ -153,7 +153,7 @@ declare const _default: import("vue").DefineComponent<{
153
153
  readonly placement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
154
154
  readonly reference: import("../../../utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
155
155
  readonly offset: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
156
- readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
156
+ readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
157
157
  readonly showArrow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
158
158
  readonly onBlur: {
159
159
  readonly type: import("vue").PropType<(e: Event) => boolean | void>;
@@ -216,19 +216,19 @@ declare const _default: import("vue").DefineComponent<{
216
216
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
217
217
  readonly placement?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown> | undefined;
218
218
  readonly height?: number | undefined;
219
- readonly offset?: number | undefined;
219
+ readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
220
+ readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
221
+ readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
222
+ readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown> | undefined;
220
223
  readonly width?: number | undefined;
224
+ readonly offset?: number | undefined;
221
225
  readonly effect?: string | undefined;
222
- readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown> | undefined;
223
- readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
224
226
  readonly ariaLabel?: string | undefined;
225
227
  readonly teleported?: boolean | undefined;
226
228
  readonly onFocus?: ((e: Event) => boolean | void) | undefined;
227
229
  readonly onBlur?: ((e: Event) => boolean | void) | undefined;
228
- readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
229
230
  readonly onClick?: ((e: Event) => boolean | void) | undefined;
230
231
  readonly showArrow?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
231
- readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
232
232
  readonly reference?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown> | undefined;
233
233
  readonly alwaysOn?: boolean | undefined;
234
234
  readonly delayDuration?: number | undefined;
@@ -247,19 +247,19 @@ declare const _default: import("vue").DefineComponent<{
247
247
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
248
248
  readonly placement?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown> | undefined;
249
249
  readonly height?: number | undefined;
250
- readonly offset?: number | undefined;
250
+ readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
251
+ readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
252
+ readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
253
+ readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown> | undefined;
251
254
  readonly width?: number | undefined;
255
+ readonly offset?: number | undefined;
252
256
  readonly effect?: string | undefined;
253
- readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown> | undefined;
254
- readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
255
257
  readonly ariaLabel?: string | undefined;
256
258
  readonly teleported?: boolean | undefined;
257
259
  readonly onFocus?: ((e: Event) => boolean | void) | undefined;
258
260
  readonly onBlur?: ((e: Event) => boolean | void) | undefined;
259
- readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
260
261
  readonly onClick?: ((e: Event) => boolean | void) | undefined;
261
262
  readonly showArrow?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
262
- readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
263
263
  readonly reference?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown> | undefined;
264
264
  readonly alwaysOn?: boolean | undefined;
265
265
  readonly delayDuration?: number | undefined;
@@ -278,19 +278,19 @@ declare const _default: import("vue").DefineComponent<{
278
278
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
279
279
  readonly placement?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown> | undefined;
280
280
  readonly height?: number | undefined;
281
- readonly offset?: number | undefined;
281
+ readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
282
+ readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
283
+ readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
284
+ readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown> | undefined;
282
285
  readonly width?: number | undefined;
286
+ readonly offset?: number | undefined;
283
287
  readonly effect?: string | undefined;
284
- readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown> | undefined;
285
- readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
286
288
  readonly ariaLabel?: string | undefined;
287
289
  readonly teleported?: boolean | undefined;
288
290
  readonly onFocus?: ((e: Event) => boolean | void) | undefined;
289
291
  readonly onBlur?: ((e: Event) => boolean | void) | undefined;
290
- readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
291
292
  readonly onClick?: ((e: Event) => boolean | void) | undefined;
292
293
  readonly showArrow?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
293
- readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
294
294
  readonly reference?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown> | undefined;
295
295
  readonly alwaysOn?: boolean | undefined;
296
296
  readonly delayDuration?: number | undefined;
@@ -309,19 +309,19 @@ declare const _default: import("vue").DefineComponent<{
309
309
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
310
310
  readonly placement?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown> | undefined;
311
311
  readonly height?: number | undefined;
312
- readonly offset?: number | undefined;
312
+ readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
313
+ readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
314
+ readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
315
+ readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown> | undefined;
313
316
  readonly width?: number | undefined;
317
+ readonly offset?: number | undefined;
314
318
  readonly effect?: string | undefined;
315
- readonly strategy?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown> | undefined;
316
- readonly style?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown> | undefined;
317
319
  readonly ariaLabel?: string | undefined;
318
320
  readonly teleported?: boolean | undefined;
319
321
  readonly onFocus?: ((e: Event) => boolean | void) | undefined;
320
322
  readonly onBlur?: ((e: Event) => boolean | void) | undefined;
321
- readonly open?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
322
323
  readonly onClick?: ((e: Event) => boolean | void) | undefined;
323
324
  readonly showArrow?: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
324
- readonly to?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
325
325
  readonly reference?: import("../../../utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown> | undefined;
326
326
  readonly alwaysOn?: boolean | undefined;
327
327
  readonly delayDuration?: number | undefined;
@@ -479,8 +479,8 @@ declare const _default: import("vue").DefineComponent<{
479
479
  style: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown, null, boolean>;
480
480
  }>>, {
481
481
  height: number;
482
- width: number;
483
482
  style: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown>;
483
+ width: number;
484
484
  }>;
485
485
  TooltipV2Content: import("vue").DefineComponent<{
486
486
  nowrap: BooleanConstructor;
@@ -491,7 +491,7 @@ declare const _default: import("vue").DefineComponent<{
491
491
  placement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
492
492
  reference: import("../../../utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
493
493
  offset: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
494
- strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
494
+ strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
495
495
  showArrow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
496
496
  }, {
497
497
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -503,7 +503,7 @@ declare const _default: import("vue").DefineComponent<{
503
503
  placement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
504
504
  reference: import("../../../utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
505
505
  offset: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
506
- strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
506
+ strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
507
507
  showArrow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
508
508
  }>> & {
509
509
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
@@ -511,7 +511,7 @@ declare const _default: import("vue").DefineComponent<{
511
511
  triggerRef: import("vue").Ref<HTMLElement | null>;
512
512
  contentId: import("vue").Ref<string>;
513
513
  placement: import("vue").Ref<import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown>>;
514
- strategy: import("vue").Ref<import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown>>;
514
+ strategy: import("vue").Ref<import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown>>;
515
515
  arrowRef: import("vue").Ref<HTMLElement | null>;
516
516
  referenceRef: import("vue").Ref<HTMLElement | import("@floating-ui/dom").VirtualElement | undefined>;
517
517
  contentRef: import("vue").Ref<HTMLElement | undefined>;
@@ -610,14 +610,14 @@ declare const _default: import("vue").DefineComponent<{
610
610
  placement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
611
611
  reference: import("../../../utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
612
612
  offset: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
613
- strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
613
+ strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
614
614
  showArrow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
615
615
  }>>, {
616
616
  placement: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown>;
617
+ strategy: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown>;
617
618
  offset: number;
618
- effect: string;
619
- strategy: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown>;
620
619
  nowrap: boolean;
620
+ effect: string;
621
621
  showArrow: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
622
622
  reference: import("../../../utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown>;
623
623
  arrowPadding: number;
@@ -798,7 +798,7 @@ declare const _default: import("vue").DefineComponent<{
798
798
  readonly placement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
799
799
  readonly reference: import("../../../utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
800
800
  readonly offset: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 8, boolean>;
801
- readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown, "absolute", boolean>;
801
+ readonly strategy: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown, "absolute", boolean>;
802
802
  readonly showArrow: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
803
803
  readonly onBlur: {
804
804
  readonly type: import("vue").PropType<(e: Event) => boolean | void>;
@@ -857,15 +857,15 @@ declare const _default: import("vue").DefineComponent<{
857
857
  }>>, {
858
858
  readonly placement: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown>;
859
859
  readonly height: number;
860
- readonly offset: number;
860
+ readonly to: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
861
+ readonly style: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown>;
862
+ readonly open: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
863
+ readonly strategy: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "absolute" | "fixed", unknown>;
861
864
  readonly width: number;
865
+ readonly offset: number;
862
866
  readonly effect: string;
863
- readonly strategy: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => import("@floating-ui/core").Strategy & {}) | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown>;
864
- readonly style: import("../../../utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | null))[], unknown, unknown>;
865
867
  readonly teleported: boolean;
866
- readonly open: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
867
868
  readonly showArrow: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
868
- readonly to: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => (string | import("vue").RendererElement | null | undefined) & {}) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown>;
869
869
  readonly reference: import("../../../utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown>;
870
870
  readonly alwaysOn: boolean;
871
871
  readonly delayDuration: number;
@@ -1,6 +1,6 @@
1
1
  import '../../../utils/index.mjs';
2
- import { tooltipV2RootProps } from './root.mjs';
3
- import { tooltipV2TriggerProps } from './trigger2.mjs';
2
+ import { tooltipV2RootProps } from './root2.mjs';
3
+ import { tooltipV2TriggerProps } from './trigger.mjs';
4
4
  import { tooltipV2ArrowProps } from './arrow.mjs';
5
5
  import { tooltipV2ContentProps } from './content.mjs';
6
6
  import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
@@ -1,95 +1,17 @@
1
- import { defineComponent, inject, watch, onBeforeUnmount, openBlock, createBlock, unref, withCtx, renderSlot, createElementBlock, mergeProps } from 'vue';
2
1
  import '../../../utils/index.mjs';
3
- import '../../../tokens/index.mjs';
4
- import ForwardRef from './forward-ref.mjs';
5
- import { tooltipV2TriggerProps } from './trigger2.mjs';
6
- import { tooltipV2CommonProps } from './common.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { tooltipV2RootKey } from '../../../tokens/tooltip-v2.mjs';
9
- import { composeEventHandlers } from '../../../utils/dom/event.mjs';
2
+ import { definePropType, buildProps } from '../../../utils/vue/props/runtime.mjs';
10
3
 
11
- const __default__ = defineComponent({
12
- name: "ElTooltipV2Trigger"
4
+ const EventHandler = {
5
+ type: definePropType(Function)
6
+ };
7
+ const tooltipV2TriggerProps = buildProps({
8
+ onBlur: EventHandler,
9
+ onClick: EventHandler,
10
+ onFocus: EventHandler,
11
+ onMouseDown: EventHandler,
12
+ onMouseEnter: EventHandler,
13
+ onMouseLeave: EventHandler
13
14
  });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: {
17
- ...tooltipV2CommonProps,
18
- ...tooltipV2TriggerProps
19
- },
20
- setup(__props) {
21
- const props = __props;
22
- const { onClose, onOpen, onDelayOpen, triggerRef, contentId } = inject(tooltipV2RootKey);
23
- let isMousedown = false;
24
- const setTriggerRef = (el) => {
25
- triggerRef.value = el;
26
- };
27
- const onMouseup = () => {
28
- isMousedown = false;
29
- };
30
- const onMouseenter = composeEventHandlers(props.onMouseEnter, onDelayOpen);
31
- const onMouseleave = composeEventHandlers(props.onMouseLeave, onClose);
32
- const onMousedown = composeEventHandlers(props.onMouseDown, () => {
33
- onClose();
34
- isMousedown = true;
35
- document.addEventListener("mouseup", onMouseup, { once: true });
36
- });
37
- const onFocus = composeEventHandlers(props.onFocus, () => {
38
- if (!isMousedown)
39
- onOpen();
40
- });
41
- const onBlur = composeEventHandlers(props.onBlur, onClose);
42
- const onClick = composeEventHandlers(props.onClick, (e) => {
43
- if (e.detail === 0)
44
- onClose();
45
- });
46
- const events = {
47
- blur: onBlur,
48
- click: onClick,
49
- focus: onFocus,
50
- mousedown: onMousedown,
51
- mouseenter: onMouseenter,
52
- mouseleave: onMouseleave
53
- };
54
- const setEvents = (el, events2, type) => {
55
- if (el) {
56
- Object.entries(events2).forEach(([name, handler]) => {
57
- el[type](name, handler);
58
- });
59
- }
60
- };
61
- watch(triggerRef, (triggerEl, previousTriggerEl) => {
62
- setEvents(triggerEl, events, "addEventListener");
63
- setEvents(previousTriggerEl, events, "removeEventListener");
64
- if (triggerEl) {
65
- triggerEl.setAttribute("aria-describedby", contentId.value);
66
- }
67
- });
68
- onBeforeUnmount(() => {
69
- setEvents(triggerRef.value, events, "removeEventListener");
70
- document.removeEventListener("mouseup", onMouseup);
71
- });
72
- return (_ctx, _cache) => {
73
- return _ctx.nowrap ? (openBlock(), createBlock(unref(ForwardRef), {
74
- key: 0,
75
- "set-ref": setTriggerRef,
76
- "only-child": ""
77
- }, {
78
- default: withCtx(() => [
79
- renderSlot(_ctx.$slots, "default")
80
- ]),
81
- _: 3
82
- })) : (openBlock(), createElementBlock("button", mergeProps({
83
- key: 1,
84
- ref_key: "triggerRef",
85
- ref: triggerRef
86
- }, _ctx.$attrs), [
87
- renderSlot(_ctx.$slots, "default")
88
- ], 16));
89
- };
90
- }
91
- });
92
- var TooltipV2Trigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/tooltip-v2/src/trigger.vue"]]);
93
15
 
94
- export { TooltipV2Trigger as default };
16
+ export { tooltipV2TriggerProps };
95
17
  //# sourceMappingURL=trigger.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/trigger.vue"],"sourcesContent":["<template>\n <forward-ref v-if=\"nowrap\" :set-ref=\"setTriggerRef\" only-child>\n <slot />\n </forward-ref>\n <button v-else ref=\"triggerRef\" v-bind=\"$attrs\">\n <slot />\n </button>\n</template>\n\n<script setup lang=\"ts\">\nimport { inject, onBeforeUnmount, watch } from 'vue'\nimport { composeEventHandlers } from '@element-plus/utils'\nimport { tooltipV2RootKey } from '@element-plus/tokens'\nimport ForwardRef from './forward-ref'\nimport { tooltipV2TriggerProps } from './trigger'\nimport { tooltipV2CommonProps } from './common'\n\ndefineOptions({\n name: 'ElTooltipV2Trigger',\n})\n\nconst props = defineProps({\n ...tooltipV2CommonProps,\n ...tooltipV2TriggerProps,\n})\n\n/**\n * onOpen opens the tooltip instantly, onTrigger acts a lil bit differently,\n * it will check if delayDuration is set to greater than 0 and based on that result,\n * if true, it opens the tooltip after delayDuration, otherwise it opens it instantly.\n */\nconst { onClose, onOpen, onDelayOpen, triggerRef, contentId } =\n inject(tooltipV2RootKey)!\n\nlet isMousedown = false\n\nconst setTriggerRef = (el: HTMLElement | null) => {\n triggerRef.value = el\n}\n\nconst onMouseup = () => {\n isMousedown = false\n}\n\nconst onMouseenter = composeEventHandlers(props.onMouseEnter, onDelayOpen)\n\nconst onMouseleave = composeEventHandlers(props.onMouseLeave, onClose)\n\nconst onMousedown = composeEventHandlers(props.onMouseDown, () => {\n onClose()\n isMousedown = true\n document.addEventListener('mouseup', onMouseup, { once: true })\n})\n\nconst onFocus = composeEventHandlers(props.onFocus, () => {\n if (!isMousedown) onOpen()\n})\n\nconst onBlur = composeEventHandlers(props.onBlur, onClose)\n\nconst onClick = composeEventHandlers(props.onClick, (e) => {\n if ((e as MouseEvent).detail === 0) onClose()\n})\n\nconst events = {\n blur: onBlur,\n click: onClick,\n focus: onFocus,\n mousedown: onMousedown,\n mouseenter: onMouseenter,\n mouseleave: onMouseleave,\n}\n\nconst setEvents = <T extends (e: Event) => void>(\n el: HTMLElement | null | undefined,\n events: Record<string, T>,\n type: 'addEventListener' | 'removeEventListener'\n) => {\n if (el) {\n Object.entries(events).forEach(([name, handler]) => {\n el[type](name, handler)\n })\n }\n}\n\nwatch(triggerRef, (triggerEl, previousTriggerEl) => {\n setEvents(triggerEl, events, 'addEventListener')\n setEvents(previousTriggerEl, events, 'removeEventListener')\n\n if (triggerEl) {\n triggerEl.setAttribute('aria-describedby', contentId.value)\n }\n})\n\nonBeforeUnmount(() => {\n setEvents(triggerRef.value, events, 'removeEventListener')\n document.removeEventListener('mouseup', onMouseup)\n})\n</script>\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/trigger.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nconst EventHandler = {\n type: definePropType<(e: Event) => boolean | void>(Function),\n} as const\n\nexport const tooltipV2TriggerProps = buildProps({\n onBlur: EventHandler,\n onClick: EventHandler,\n onFocus: EventHandler,\n onMouseDown: EventHandler,\n onMouseEnter: EventHandler,\n onMouseLeave: EventHandler,\n} as const)\n\nexport type TooltipV2TriggerProps = ExtractPropTypes<\n typeof tooltipV2TriggerProps\n>\n"],"names":[],"mappings":";;;AACA,MAAM,YAAY,GAAG;AACrB,EAAE,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAChC,CAAC,CAAC;AACU,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,MAAM,EAAE,YAAY;AACtB,EAAE,OAAO,EAAE,YAAY;AACvB,EAAE,OAAO,EAAE,YAAY;AACvB,EAAE,WAAW,EAAE,YAAY;AAC3B,EAAE,YAAY,EAAE,YAAY;AAC5B,EAAE,YAAY,EAAE,YAAY;AAC5B,CAAC;;;;"}