ep-craft 0.1.37 → 0.1.39

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 (506) hide show
  1. package/README.md +4 -4
  2. package/dist/components/affix/affix.d.ts +18 -18
  3. package/dist/components/alert/alert.d.ts +22 -22
  4. package/dist/components/anchor/anchor.d.ts +17 -17
  5. package/dist/components/anchor/constants.d.ts +1 -1
  6. package/dist/components/autocomplete/EpAutocomplete.d.ts +90 -90
  7. package/dist/components/autocomplete/autocomplete.d.ts +40 -40
  8. package/dist/components/avatar/avatar.d.ts +7 -7
  9. package/dist/components/badge/badge.d.ts +6 -6
  10. package/dist/components/badge/index.js +6 -5
  11. package/dist/components/breadcrumb/breadcrumb.d.ts +3 -3
  12. package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  13. package/dist/components/calendar/EpCalendar.vue.d.ts +50 -0
  14. package/dist/components/calendar/EpCalendar.vue.js +154 -0
  15. package/dist/components/calendar/EpCalendar2.vue.js +4 -0
  16. package/dist/components/calendar/EpDateTable.vue.d.ts +27 -0
  17. package/dist/components/calendar/EpDateTable.vue.js +89 -0
  18. package/dist/components/calendar/EpDateTable2.vue.js +4 -0
  19. package/dist/components/calendar/EpSelectController.vue.d.ts +8 -0
  20. package/dist/components/calendar/EpSelectController.vue.js +88 -0
  21. package/dist/components/calendar/EpSelectController2.vue.js +4 -0
  22. package/dist/components/calendar/calendar.d.ts +54 -0
  23. package/dist/components/calendar/calendar.js +45 -0
  24. package/dist/components/calendar/date-table.d.ts +53 -0
  25. package/dist/components/calendar/date-table.js +41 -0
  26. package/dist/components/calendar/index.d.ts +13 -2
  27. package/dist/components/calendar/index.js +9 -4
  28. package/dist/components/calendar/instance.d.ts +5 -0
  29. package/dist/components/calendar/select-controller.d.ts +31 -0
  30. package/dist/components/calendar/select-controller.js +21 -0
  31. package/dist/components/calendar/use-calendar.d.ts +13 -0
  32. package/dist/components/calendar/use-calendar.js +84 -0
  33. package/dist/components/calendar/use-date-table.d.ts +18 -0
  34. package/dist/components/calendar/use-date-table.js +99 -0
  35. package/dist/components/card/card.d.ts +4 -4
  36. package/dist/components/carousel/EpCarousel.vue.d.ts +1 -1
  37. package/dist/components/carousel/carousel.d.ts +12 -12
  38. package/dist/components/carousel/use-carousel.d.ts +1 -1
  39. package/dist/components/carousel-item/carousel-item.d.ts +2 -2
  40. package/dist/components/cascader/EpCascader.vue.d.ts +33 -33
  41. package/dist/components/cascader/cascader.d.ts +35 -35
  42. package/dist/components/cascader-panel/EpCascaderMenu.vue.d.ts +1 -1
  43. package/dist/components/cascader-panel/config.d.ts +11 -11
  44. package/dist/components/cascader-panel/store.d.ts +1 -1
  45. package/dist/components/cascader-panel/types.d.ts +1 -1
  46. package/dist/components/checkbox/src/checkbox.d.ts +3 -3
  47. package/dist/components/checkbox/src/composables/use-checkbox-event.d.ts +1 -1
  48. package/dist/components/checkbox-group/EpCheckboxGroup.vue.d.ts +16 -16
  49. package/dist/components/checkbox-group/src/checkbox-group.d.ts +9 -9
  50. package/dist/components/col/col.d.ts +10 -10
  51. package/dist/components/collapse/collapse.d.ts +3 -3
  52. package/dist/components/collapse-item/collapse-item.d.ts +4 -4
  53. package/dist/components/collapse-transition/index.d.ts +1 -1
  54. package/dist/components/color-picker/EpColorPicker.vue.d.ts +1 -1
  55. package/dist/components/color-picker/color-picker.d.ts +16 -16
  56. package/dist/components/color-picker-panel/EpColorPickerPanel.vue.d.ts +34 -34
  57. package/dist/components/color-picker-panel/color-picker-panel.d.ts +6 -6
  58. package/dist/components/color-picker-panel/props/predefine.d.ts +1 -1
  59. package/dist/components/config-provider/index.d.ts +25 -25
  60. package/dist/components/config-provider/index.js +5 -4
  61. package/dist/components/config-provider/src/config-provider-props.d.ts +9 -12
  62. package/dist/components/config-provider/src/config-provider-props.js +1 -1
  63. package/dist/components/config-provider/src/constants.d.ts +3 -3
  64. package/dist/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  65. package/dist/components/config-provider/src/hooks/use-global-config.js +75 -47
  66. package/dist/components/countdown/countdown.d.ts +3 -3
  67. package/dist/components/date-picker/src/date-picker.d.ts +22 -22
  68. package/dist/components/date-picker/src/props.d.ts +33 -33
  69. package/dist/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +2 -2
  70. package/dist/components/date-picker-panel/src/composables/use-range-picker.d.ts +1 -1
  71. package/dist/components/date-picker-panel/src/composables/use-shortcut.d.ts +1 -1
  72. package/dist/components/date-picker-panel/src/constants.d.ts +1 -1
  73. package/dist/components/date-picker-panel/src/date-picker-com/basic-month-table.vue.d.ts +10 -10
  74. package/dist/components/date-picker-panel/src/date-picker-com/basic-year-table.vue.d.ts +10 -10
  75. package/dist/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +18 -18
  76. package/dist/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
  77. package/dist/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
  78. package/dist/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
  79. package/dist/components/date-picker-panel/src/date-picker-panel.d.ts +34 -34
  80. package/dist/components/date-picker-panel/src/props/basic-date-table.d.ts +5 -5
  81. package/dist/components/date-picker-panel/src/props/basic-month-table.d.ts +5 -5
  82. package/dist/components/date-picker-panel/src/props/basic-year-table.d.ts +5 -5
  83. package/dist/components/date-picker-panel/src/props/date-picker-panel.d.ts +14 -14
  84. package/dist/components/date-picker-panel/src/props/panel-date-pick.d.ts +8 -8
  85. package/dist/components/date-picker-panel/src/props/panel-date-range.d.ts +6 -6
  86. package/dist/components/date-picker-panel/src/props/panel-month-range.d.ts +3 -3
  87. package/dist/components/date-picker-panel/src/props/panel-year-range.d.ts +3 -3
  88. package/dist/components/date-picker-panel/src/props/shared.d.ts +12 -12
  89. package/dist/components/descriptions/description.d.ts +7 -7
  90. package/dist/components/descriptions/descriptions-row.d.ts +1 -1
  91. package/dist/components/descriptions/descriptions.type.d.ts +1 -1
  92. package/dist/components/descriptions-item/description-item.d.ts +33 -33
  93. package/dist/components/dialog/EpDialog.vue.d.ts +61 -0
  94. package/dist/components/dialog/EpDialog.vue.js +214 -0
  95. package/dist/components/dialog/EpDialog2.vue.js +4 -0
  96. package/dist/components/dialog/EpDialogContent.vue.d.ts +31 -0
  97. package/dist/components/dialog/EpDialogContent.vue.js +108 -0
  98. package/dist/components/dialog/EpDialogContent2.vue.js +4 -0
  99. package/dist/components/dialog/constants.d.ts +12 -0
  100. package/dist/components/dialog/constants.js +5 -0
  101. package/dist/components/dialog/dialog-content.d.ts +84 -0
  102. package/dist/components/dialog/dialog-content.js +90 -0
  103. package/dist/components/dialog/dialog.d.ts +173 -0
  104. package/dist/components/dialog/dialog.js +156 -0
  105. package/dist/components/dialog/index.d.ts +20 -2
  106. package/dist/components/dialog/index.js +24 -4
  107. package/dist/components/dialog/instance.d.ts +2 -0
  108. package/dist/components/dialog/use-dialog.d.ts +35 -0
  109. package/dist/components/dialog/use-dialog.js +176 -0
  110. package/dist/components/divider/src/divider.d.ts +3 -3
  111. package/dist/components/drawer/EpDrawer.vue.d.ts +67 -0
  112. package/dist/components/drawer/EpDrawer.vue.js +234 -0
  113. package/dist/components/drawer/EpDrawer2.vue.js +4 -0
  114. package/dist/components/drawer/drawer.d.ts +105 -0
  115. package/dist/components/drawer/drawer.js +42 -0
  116. package/dist/components/drawer/index.d.ts +14 -2
  117. package/dist/components/drawer/index.js +9 -4
  118. package/dist/components/drawer/instance.d.ts +2 -0
  119. package/dist/components/drawer/useResizable.d.ts +7 -0
  120. package/dist/components/drawer/useResizable.js +50 -0
  121. package/dist/components/dropdown/index.d.ts +24 -24
  122. package/dist/components/dropdown/src/dropdown-item-impl.vue.d.ts +9 -9
  123. package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +2 -2
  124. package/dist/components/dropdown/src/dropdown-item.vue.d.ts +13 -13
  125. package/dist/components/dropdown/src/dropdown-item2.vue.js +2 -2
  126. package/dist/components/dropdown/src/dropdown-menu2.vue.js +2 -2
  127. package/dist/components/dropdown/src/dropdown.d.ts +25 -25
  128. package/dist/components/dropdown/src/dropdown.vue.d.ts +138 -138
  129. package/dist/components/dropdown/src/dropdown2.vue.js +2 -2
  130. package/dist/components/dropdown/src/tokens.d.ts +1 -1
  131. package/dist/components/empty/empty.d.ts +2 -2
  132. package/dist/components/empty/index.js +2 -1
  133. package/dist/components/form/EpForm.vue.d.ts +1 -1
  134. package/dist/components/form/index.js +11 -9
  135. package/dist/components/form/src/form-item.d.ts +11 -11
  136. package/dist/components/form/src/form-item.js +5 -5
  137. package/dist/components/form/src/form.d.ts +11 -11
  138. package/dist/components/form/src/form.js +5 -6
  139. package/dist/components/form/src/hooks/use-form-common-props.d.ts +1 -1
  140. package/dist/components/form/src/types.d.ts +2 -2
  141. package/dist/components/form/src/utils.d.ts +1 -1
  142. package/dist/components/form-item/index.js +6 -5
  143. package/dist/components/icon/index.d.ts +1 -1
  144. package/dist/components/icon/src/icon.d.ts +1 -1
  145. package/dist/components/image/image.d.ts +13 -13
  146. package/dist/components/image-viewer/image-viewer.d.ts +9 -9
  147. package/dist/components/infinite-scroll/index.d.ts +26 -0
  148. package/dist/components/infinite-scroll/index.js +15 -0
  149. package/dist/components/infinite-scroll/src/index.d.ts +20 -0
  150. package/dist/components/infinite-scroll/src/index.js +109 -0
  151. package/dist/components/input/EpInput.vue.d.ts +1 -1
  152. package/dist/components/input/input.d.ts +24 -24
  153. package/dist/components/input-number/input-number.d.ts +16 -16
  154. package/dist/components/link/link.d.ts +6 -6
  155. package/dist/components/loading/index.d.ts +15 -0
  156. package/dist/components/loading/index.js +13 -0
  157. package/dist/components/loading/src/directive.d.ts +13 -0
  158. package/dist/components/loading/src/directive.js +62 -0
  159. package/dist/components/loading/src/loading.d.ts +34 -0
  160. package/dist/components/loading/src/loading.js +121 -0
  161. package/dist/components/loading/src/service.d.ts +8 -0
  162. package/dist/components/loading/src/service.js +67 -0
  163. package/dist/components/loading/src/types.d.ts +47 -0
  164. package/dist/components/mention/EpMention.vue.d.ts +35 -35
  165. package/dist/components/mention/mention-dropdown.d.ts +1 -1
  166. package/dist/components/mention/mention.d.ts +36 -36
  167. package/dist/components/menu/menu.d.ts +46 -46
  168. package/dist/components/message/index.d.ts +3 -0
  169. package/dist/components/message/index.js +18 -0
  170. package/dist/components/message/src/instance.d.ts +18 -0
  171. package/dist/components/message/src/instance.js +18 -0
  172. package/dist/components/message/src/message.d.ts +175 -0
  173. package/dist/components/message/src/message.js +160 -0
  174. package/dist/components/message/src/message.vue.d.ts +38 -0
  175. package/dist/components/message/src/message.vue.js +156 -0
  176. package/dist/components/message/src/message2.vue.js +4 -0
  177. package/dist/components/message/src/method.d.ts +5 -0
  178. package/dist/components/message/src/method.js +123 -0
  179. package/dist/components/message-box/index.d.ts +6 -0
  180. package/dist/components/message-box/index.js +9 -0
  181. package/dist/components/message-box/src/index.vue.d.ts +5517 -0
  182. package/dist/components/message-box/src/index.vue.js +203 -0
  183. package/dist/components/message-box/src/index2.vue.js +237 -0
  184. package/dist/components/message-box/src/message-box.type.d.ts +167 -0
  185. package/dist/components/message-box/src/messageBox.d.ts +3 -0
  186. package/dist/components/message-box/src/messageBox.js +102 -0
  187. package/dist/components/notification/index.d.ts +3 -0
  188. package/dist/components/notification/index.js +15 -0
  189. package/dist/components/notification/src/notification.d.ts +157 -0
  190. package/dist/components/notification/src/notification.js +127 -0
  191. package/dist/components/notification/src/notification.vue.d.ts +34 -0
  192. package/dist/components/notification/src/notification.vue.js +146 -0
  193. package/dist/components/notification/src/notification2.vue.js +4 -0
  194. package/dist/components/notification/src/notify.d.ts +15 -0
  195. package/dist/components/notification/src/notify.js +100 -0
  196. package/dist/components/option/index.js +3 -3
  197. package/dist/components/overlay/index.d.ts +8 -0
  198. package/dist/components/overlay/overlay.d.ts +73 -0
  199. package/dist/components/overlay/overlay.js +80 -0
  200. package/dist/components/page-header/EpPageHeader.vue.d.ts +30 -0
  201. package/dist/components/page-header/EpPageHeader.vue.js +109 -0
  202. package/dist/components/page-header/EpPageHeader2.vue.js +4 -0
  203. package/dist/components/page-header/index.d.ts +13 -2
  204. package/dist/components/page-header/index.js +9 -4
  205. package/dist/components/page-header/instance.d.ts +2 -0
  206. package/dist/components/page-header/page-header.d.ts +26 -0
  207. package/dist/components/page-header/page-header.js +33 -0
  208. package/dist/components/pagination/src/components/jumper.d.ts +1 -1
  209. package/dist/components/pagination/src/components/next.d.ts +3 -3
  210. package/dist/components/pagination/src/components/pager.d.ts +2 -2
  211. package/dist/components/pagination/src/components/prev.d.ts +2 -2
  212. package/dist/components/pagination/src/components/sizes.d.ts +3 -3
  213. package/dist/components/pagination/src/components/sizes.vue.d.ts +6 -6
  214. package/dist/components/pagination/src/components/total.d.ts +1 -1
  215. package/dist/components/pagination/src/pagination.d.ts +36 -36
  216. package/dist/components/popconfirm/EpPopconfirm.vue.d.ts +36 -0
  217. package/dist/components/popconfirm/EpPopconfirm.vue.js +146 -0
  218. package/dist/components/popconfirm/EpPopconfirm2.vue.js +4 -0
  219. package/dist/components/popconfirm/index.d.ts +14 -2
  220. package/dist/components/popconfirm/index.js +9 -4
  221. package/dist/components/popconfirm/instance.d.ts +2 -0
  222. package/dist/components/popconfirm/popconfirm.d.ts +106 -0
  223. package/dist/components/popconfirm/popconfirm.js +103 -0
  224. package/dist/components/popover/index.d.ts +6 -6
  225. package/dist/components/popover/src/popover.d.ts +22 -22
  226. package/dist/components/popover/src/popover.vue.d.ts +3 -3
  227. package/dist/components/popper/index.d.ts +1 -1
  228. package/dist/components/popper/src/arrow.d.ts +2 -2
  229. package/dist/components/popper/src/composables/use-content-dom.d.ts +1 -1
  230. package/dist/components/popper/src/composables/use-content.d.ts +1 -1
  231. package/dist/components/popper/src/content.d.ts +44 -44
  232. package/dist/components/popper/src/content.vue.d.ts +2 -2
  233. package/dist/components/popper/src/popper.d.ts +2 -2
  234. package/dist/components/popper/src/utils.d.ts +2 -2
  235. package/dist/components/progress/src/progress.d.ts +10 -10
  236. package/dist/components/progress/src/progress.vue.d.ts +1 -1
  237. package/dist/components/radio/constants.d.ts +1 -1
  238. package/dist/components/radio/radio.d.ts +29 -29
  239. package/dist/components/radio-button/radio-button.d.ts +22 -22
  240. package/dist/components/radio-group/radio-group.d.ts +35 -35
  241. package/dist/components/rate/EpRate.vue.d.ts +3 -3
  242. package/dist/components/rate/rate.d.ts +18 -18
  243. package/dist/components/result/result.d.ts +3 -3
  244. package/dist/components/roving-focus-group/index.js +2 -2
  245. package/dist/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +8 -8
  246. package/dist/components/roving-focus-group/src/roving-focus-group.d.ts +5 -5
  247. package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +19 -11
  248. package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +11 -19
  249. package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +76 -18
  250. package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +18 -76
  251. package/dist/components/row/row.d.ts +4 -4
  252. package/dist/components/scrollbar/index.d.ts +46 -46
  253. package/dist/components/scrollbar/src/bar.d.ts +1 -1
  254. package/dist/components/scrollbar/src/scrollbar.d.ts +10 -10
  255. package/dist/components/scrollbar/src/scrollbar.vue.d.ts +25 -25
  256. package/dist/components/segmented/segmented.d.ts +8 -8
  257. package/dist/components/select/index.d.ts +51 -51
  258. package/dist/components/select/select.d.ts +34 -34
  259. package/dist/components/select/select.vue.d.ts +175 -175
  260. package/dist/components/select/select2.vue.js +12 -12
  261. package/dist/components/select/src/option.d.ts +2 -2
  262. package/dist/components/select/src/option.vue.d.ts +5 -5
  263. package/dist/components/select/src/option.vue.js +5 -5
  264. package/dist/components/select/src/useOption.d.ts +2 -2
  265. package/dist/components/select/src/useSelect.d.ts +7 -7
  266. package/dist/components/select-v2/src/defaults.d.ts +37 -37
  267. package/dist/components/select-v2/src/select-dropdown.d.ts +2 -2
  268. package/dist/components/select-v2/src/select.vue.d.ts +121 -121
  269. package/dist/components/select-v2/src/token.d.ts +1 -1
  270. package/dist/components/select-v2/src/useSelect.d.ts +3 -3
  271. package/dist/components/skeleton/skeleton.d.ts +5 -5
  272. package/dist/components/skeleton-item/skeleton-item.d.ts +1 -1
  273. package/dist/components/slider/EpSlider.vue.d.ts +52 -52
  274. package/dist/components/slider/EpSliderButton.vue.d.ts +3 -3
  275. package/dist/components/slider/button.d.ts +2 -2
  276. package/dist/components/slider/composables/use-slide.d.ts +1 -1
  277. package/dist/components/slider/composables/use-slider-button.d.ts +3 -3
  278. package/dist/components/slider/composables/use-watch.d.ts +1 -1
  279. package/dist/components/slider/marker.d.ts +4 -4
  280. package/dist/components/slider/slider.d.ts +19 -19
  281. package/dist/components/space/space.d.ts +26 -26
  282. package/dist/components/space/use-space.d.ts +1 -1
  283. package/dist/components/statistic/statistic.d.ts +5 -5
  284. package/dist/components/step/EpStep.vue.d.ts +1 -1
  285. package/dist/components/step/step.d.ts +5 -5
  286. package/dist/components/steps/steps.d.ts +7 -7
  287. package/dist/components/sub-menu/sub-menu.d.ts +19 -19
  288. package/dist/components/switch/switch.d.ts +17 -17
  289. package/dist/components/tab-pane/tab-pane.d.ts +10 -10
  290. package/dist/components/table/src/filter-panel.vue.d.ts +140 -140
  291. package/dist/components/table/src/store/index.d.ts +2 -2
  292. package/dist/components/table/src/table/defaults.d.ts +3 -3
  293. package/dist/components/table/src/table-header/event-helper.d.ts +1 -1
  294. package/dist/components/table/src/table-header/index.d.ts +11 -11
  295. package/dist/components/table/src/table.vue.d.ts +2 -2
  296. package/dist/components/table/src/util.d.ts +1 -1
  297. package/dist/components/table-v2/index.d.ts +21 -2
  298. package/dist/components/table-v2/index.js +11 -4
  299. package/dist/components/table-v2/src/EpTableV2.d.ts +359 -0
  300. package/dist/components/table-v2/src/EpTableV2.js +287 -0
  301. package/dist/components/table-v2/src/cell.d.ts +27 -0
  302. package/dist/components/table-v2/src/common.d.ts +42 -0
  303. package/dist/components/table-v2/src/common.js +38 -0
  304. package/dist/components/table-v2/src/components/cell.d.ts +4 -0
  305. package/dist/components/table-v2/src/components/cell.js +20 -0
  306. package/dist/components/table-v2/src/components/expand-icon.d.ts +15 -0
  307. package/dist/components/table-v2/src/components/expand-icon.js +30 -0
  308. package/dist/components/table-v2/src/components/header-cell.d.ts +4 -0
  309. package/dist/components/table-v2/src/components/header-cell.js +15 -0
  310. package/dist/components/table-v2/src/components/header-row.d.ts +59 -0
  311. package/dist/components/table-v2/src/components/header-row.js +41 -0
  312. package/dist/components/table-v2/src/components/header.d.ts +105 -0
  313. package/dist/components/table-v2/src/components/header.js +98 -0
  314. package/dist/components/table-v2/src/components/index.d.ts +11 -0
  315. package/dist/components/table-v2/src/components/row.d.ts +166 -0
  316. package/dist/components/table-v2/src/components/row.js +176 -0
  317. package/dist/components/table-v2/src/components/sort-icon.d.ts +9 -0
  318. package/dist/components/table-v2/src/components/sort-icon.js +21 -0
  319. package/dist/components/table-v2/src/composables/index.d.ts +11 -0
  320. package/dist/components/table-v2/src/composables/use-columns.d.ts +128 -0
  321. package/dist/components/table-v2/src/composables/use-columns.js +73 -0
  322. package/dist/components/table-v2/src/composables/use-data.d.ts +14 -0
  323. package/dist/components/table-v2/src/composables/use-data.js +33 -0
  324. package/dist/components/table-v2/src/composables/use-row.d.ts +31 -0
  325. package/dist/components/table-v2/src/composables/use-row.js +83 -0
  326. package/dist/components/table-v2/src/composables/use-scrollbar.d.ts +31 -0
  327. package/dist/components/table-v2/src/composables/use-scrollbar.js +53 -0
  328. package/dist/components/table-v2/src/composables/use-styles.d.ts +23 -0
  329. package/dist/components/table-v2/src/composables/use-styles.js +66 -0
  330. package/dist/components/table-v2/src/composables/utils.d.ts +3 -0
  331. package/dist/components/table-v2/src/composables/utils.js +19 -0
  332. package/dist/components/table-v2/src/constants.d.ts +18 -0
  333. package/dist/components/table-v2/src/constants.js +12 -0
  334. package/dist/components/table-v2/src/grid.d.ts +105 -0
  335. package/dist/components/table-v2/src/grid.js +56 -0
  336. package/dist/components/table-v2/src/header-cell.d.ts +13 -0
  337. package/dist/components/table-v2/src/header-row.d.ts +26 -0
  338. package/dist/components/table-v2/src/header-row.js +20 -0
  339. package/dist/components/table-v2/src/header.d.ts +44 -0
  340. package/dist/components/table-v2/src/header.js +35 -0
  341. package/dist/components/table-v2/src/private.d.ts +1 -0
  342. package/dist/components/table-v2/src/private.js +4 -0
  343. package/dist/components/table-v2/src/renderers/cell.d.ts +11 -0
  344. package/dist/components/table-v2/src/renderers/cell.js +101 -0
  345. package/dist/components/table-v2/src/renderers/empty.d.ts +7 -0
  346. package/dist/components/table-v2/src/renderers/empty.js +15 -0
  347. package/dist/components/table-v2/src/renderers/footer.d.ts +7 -0
  348. package/dist/components/table-v2/src/renderers/footer.js +14 -0
  349. package/dist/components/table-v2/src/renderers/header-cell.d.ts +14 -0
  350. package/dist/components/table-v2/src/renderers/header-cell.js +77 -0
  351. package/dist/components/table-v2/src/renderers/header.d.ts +9 -0
  352. package/dist/components/table-v2/src/renderers/header.js +53 -0
  353. package/dist/components/table-v2/src/renderers/left-table.d.ts +8 -0
  354. package/dist/components/table-v2/src/renderers/left-table.js +22 -0
  355. package/dist/components/table-v2/src/renderers/main-table.d.ts +8 -0
  356. package/dist/components/table-v2/src/renderers/main-table.js +21 -0
  357. package/dist/components/table-v2/src/renderers/overlay.d.ts +3 -0
  358. package/dist/components/table-v2/src/renderers/overlay.js +14 -0
  359. package/dist/components/table-v2/src/renderers/right-table.d.ts +8 -0
  360. package/dist/components/table-v2/src/renderers/right-table.js +22 -0
  361. package/dist/components/table-v2/src/renderers/row.d.ts +11 -0
  362. package/dist/components/table-v2/src/renderers/row.js +98 -0
  363. package/dist/components/table-v2/src/row.d.ts +101 -0
  364. package/dist/components/table-v2/src/row.js +53 -0
  365. package/dist/components/table-v2/src/table-grid.d.ts +236 -0
  366. package/dist/components/table-v2/src/table-grid.js +240 -0
  367. package/dist/components/table-v2/src/table.d.ts +194 -0
  368. package/dist/components/table-v2/src/table.js +134 -0
  369. package/dist/components/table-v2/src/tokens.d.ts +9 -0
  370. package/dist/components/table-v2/src/tokens.js +5 -0
  371. package/dist/components/table-v2/src/types.d.ts +99 -0
  372. package/dist/components/table-v2/src/use-table.d.ts +98 -0
  373. package/dist/components/table-v2/src/use-table.js +162 -0
  374. package/dist/components/table-v2/src/utils.d.ts +8 -0
  375. package/dist/components/table-v2/src/utils.js +15 -0
  376. package/dist/components/tabs/tab-bar.d.ts +3 -3
  377. package/dist/components/tabs/tab-nav.d.ts +15 -15
  378. package/dist/components/tabs/tabs.d.ts +22 -22
  379. package/dist/components/text/src/text.d.ts +5 -5
  380. package/dist/components/time-picker/src/common/picker.vue.d.ts +76 -76
  381. package/dist/components/time-picker/src/common/props.d.ts +33 -33
  382. package/dist/components/time-picker/src/props/basic-time-spinner.d.ts +2 -2
  383. package/dist/components/time-picker/src/props/panel-time-picker.d.ts +2 -2
  384. package/dist/components/time-picker/src/props/panel-time-range.d.ts +2 -2
  385. package/dist/components/time-picker/src/props/shared.d.ts +2 -2
  386. package/dist/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  387. package/dist/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +7 -7
  388. package/dist/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +7 -7
  389. package/dist/components/time-picker/src/time-picker.d.ts +9 -9
  390. package/dist/components/time-select/EpTimeSelect.vue.d.ts +2 -2
  391. package/dist/components/time-select/time-select.d.ts +21 -21
  392. package/dist/components/timeline/timeline.d.ts +4 -4
  393. package/dist/components/timeline-item/timeline-item.d.ts +7 -7
  394. package/dist/components/tooltip/index.d.ts +10 -10
  395. package/dist/components/tooltip/src/constants.d.ts +1 -1
  396. package/dist/components/tooltip/src/content.d.ts +24 -24
  397. package/dist/components/tooltip/src/content.vue.d.ts +4 -4
  398. package/dist/components/tooltip/src/tooltip.d.ts +29 -29
  399. package/dist/components/tooltip/src/tooltip.vue.d.ts +6 -6
  400. package/dist/components/tooltip/src/trigger.d.ts +5 -5
  401. package/dist/components/tooltip/src/trigger.vue.d.ts +2 -2
  402. package/dist/components/tooltip/src/utils.d.ts +1 -1
  403. package/dist/components/tour/EpTour.vue.d.ts +1 -1
  404. package/dist/components/tour/content.d.ts +5 -5
  405. package/dist/components/tour/helper.d.ts +1 -1
  406. package/dist/components/tour/mask.d.ts +4 -4
  407. package/dist/components/tour/tour.d.ts +12 -12
  408. package/dist/components/tour-step/step.d.ts +9 -9
  409. package/dist/components/transfer/composables/use-check.d.ts +80 -80
  410. package/dist/components/transfer/transfer-panel.d.ts +5 -5
  411. package/dist/components/transfer/transfer.d.ts +11 -11
  412. package/dist/components/tree/src/model/node.d.ts +1 -1
  413. package/dist/components/tree/src/tree-node.vue.d.ts +8 -8
  414. package/dist/components/tree/src/tree.d.ts +10 -10
  415. package/dist/components/tree/src/tree.vue.d.ts +28 -28
  416. package/dist/components/tree-select/src/select.d.ts +2 -2
  417. package/dist/components/tree-select/src/tree-select-option.d.ts +6 -6
  418. package/dist/components/tree-select/src/tree-select.vue.d.ts +42 -42
  419. package/dist/components/tree-select/src/tree.d.ts +2 -2
  420. package/dist/components/tree-select/src/utils.d.ts +1 -1
  421. package/dist/components/tree-v2/EpTreeNode.vue.d.ts +17 -0
  422. package/dist/components/tree-v2/EpTreeNode.vue.js +127 -0
  423. package/dist/components/tree-v2/EpTreeNode2.vue.js +4 -0
  424. package/dist/components/tree-v2/EpTreeV2.vue.d.ts +61 -0
  425. package/dist/components/tree-v2/EpTreeV2.vue.js +168 -0
  426. package/dist/components/tree-v2/EpTreeV22.vue.js +4 -0
  427. package/dist/components/tree-v2/composables/useCheck.d.ts +15 -0
  428. package/dist/components/tree-v2/composables/useCheck.js +142 -0
  429. package/dist/components/tree-v2/composables/useFilter.d.ts +8 -0
  430. package/dist/components/tree-v2/composables/useFilter.js +50 -0
  431. package/dist/components/tree-v2/composables/useTree.d.ts +404 -0
  432. package/dist/components/tree-v2/composables/useTree.js +228 -0
  433. package/dist/components/tree-v2/index.d.ts +11 -2
  434. package/dist/components/tree-v2/index.js +5 -2
  435. package/dist/components/tree-v2/instance.d.ts +2 -0
  436. package/dist/components/tree-v2/tree-node-content.d.ts +20 -0
  437. package/dist/components/tree-v2/tree-node-content.js +33 -0
  438. package/dist/components/tree-v2/types.d.ts +97 -0
  439. package/dist/components/tree-v2/virtual-tree.d.ts +122 -0
  440. package/dist/components/tree-v2/virtual-tree.js +140 -0
  441. package/dist/components/upload/src/upload-content.d.ts +23 -23
  442. package/dist/components/upload/src/upload-content.vue.d.ts +1 -1
  443. package/dist/components/upload/src/upload-dragger.d.ts +1 -1
  444. package/dist/components/upload/src/upload-list.d.ts +5 -5
  445. package/dist/components/upload/src/upload.d.ts +34 -34
  446. package/dist/components/virtual-list/src/builders/build-grid.d.ts +211 -0
  447. package/dist/components/virtual-list/src/builders/build-grid.js +449 -0
  448. package/dist/components/virtual-list/src/builders/build-list.d.ts +35 -35
  449. package/dist/components/virtual-list/src/components/dynamic-size-grid.d.ts +212 -0
  450. package/dist/components/virtual-list/src/components/dynamic-size-grid.js +200 -0
  451. package/dist/components/virtual-list/src/components/dynamic-size-list.d.ts +35 -35
  452. package/dist/components/virtual-list/src/components/fixed-size-grid.d.ts +199 -0
  453. package/dist/components/virtual-list/src/components/fixed-size-grid.js +126 -0
  454. package/dist/components/virtual-list/src/components/fixed-size-list.d.ts +35 -35
  455. package/dist/components/virtual-list/src/components/scrollbar.d.ts +9 -9
  456. package/dist/components/virtual-list/src/hooks/use-grid-touch.d.ts +8 -0
  457. package/dist/components/virtual-list/src/hooks/use-grid-touch.js +40 -0
  458. package/dist/components/virtual-list/src/hooks/use-grid-wheel.d.ts +13 -0
  459. package/dist/components/virtual-list/src/hooks/use-grid-wheel.js +30 -0
  460. package/dist/components/virtual-list/src/props.d.ts +52 -52
  461. package/dist/components/virtual-list/src/props.js +16 -17
  462. package/dist/components/virtual-list/src/utils.js +14 -13
  463. package/dist/components/watermark/EpWatermark.vue.d.ts +18 -0
  464. package/dist/components/watermark/EpWatermark.vue.js +174 -0
  465. package/dist/components/watermark/EpWatermark2.vue.js +4 -0
  466. package/dist/components/watermark/index.d.ts +13 -2
  467. package/dist/components/watermark/index.js +8 -4
  468. package/dist/components/watermark/instance.d.ts +2 -0
  469. package/dist/components/watermark/useClips.d.ts +6 -0
  470. package/dist/components/watermark/useClips.js +91 -0
  471. package/dist/components/watermark/utils.d.ts +8 -0
  472. package/dist/components/watermark/utils.js +21 -0
  473. package/dist/components/watermark/watermark.d.ts +71 -0
  474. package/dist/components/watermark/watermark.js +60 -0
  475. package/dist/constants/date.js +9 -0
  476. package/dist/directives/index.d.ts +11 -0
  477. package/dist/directives/index.js +25 -0
  478. package/dist/directives/trap-focus/index.js +40 -0
  479. package/dist/ep-craft.js +410 -374
  480. package/dist/hooks/index.d.ts +2 -0
  481. package/dist/hooks/use-delayed-toggle/index.d.ts +3 -3
  482. package/dist/hooks/use-draggable/index.d.ts +6 -0
  483. package/dist/hooks/use-draggable/index.js +51 -0
  484. package/dist/hooks/use-empty-values/index.d.ts +1 -1
  485. package/dist/hooks/use-locale/index.d.ts +3 -3
  486. package/dist/hooks/use-locale/index.js +12 -12
  487. package/dist/hooks/use-model-toggle/index.d.ts +2 -2
  488. package/dist/hooks/use-namespace/index.js +23 -23
  489. package/dist/hooks/use-popper/index.d.ts +1 -1
  490. package/dist/hooks/use-same-target/index.d.ts +5 -0
  491. package/dist/hooks/use-same-target/index.js +20 -0
  492. package/dist/hooks/use-size/index.d.ts +3 -3
  493. package/dist/hooks/use-z-index/index.js +15 -15
  494. package/dist/index.d.ts +52 -72
  495. package/dist/public-components.d.ts +10 -0
  496. package/dist/public-components.js +113 -0
  497. package/dist/resolver.d.ts +1 -1
  498. package/dist/resolver.js +12 -17
  499. package/dist/utils/dom/aria.js +16 -12
  500. package/dist/utils/vue/icon.js +10 -6
  501. package/dist/utils/vue/install.js +23 -20
  502. package/dist/utils/vue/size.d.ts +1 -1
  503. package/dist/utils/vue/validator.d.ts +1 -1
  504. package/dist/vendored-components.d.ts +1 -1
  505. package/package.json +7 -6
  506. package/dist/vendored-components.js +0 -194
@@ -0,0 +1,404 @@
1
+ import type { Alignment as ScrollStrategy } from '../../virtual-list';
2
+ import type { SetupContext } from 'vue';
3
+ import type { treeEmits } from '../virtual-tree';
4
+ import type { CheckboxValueType } from '../../checkbox';
5
+ import type { Tree, TreeData, TreeKey, TreeNode, TreeNodeData, TreeProps } from '../types';
6
+ export declare function useTree(props: TreeProps, emit: SetupContext<typeof treeEmits>['emit']): {
7
+ tree: import("vue").ShallowRef<Tree | undefined, Tree | undefined>;
8
+ flattenTree: import("vue").ComputedRef<TreeNode[]>;
9
+ isNotEmpty: import("vue").ComputedRef<boolean>;
10
+ listRef: import("vue").Ref<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
+ readonly className: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
12
+ readonly containerElement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
13
+ readonly data: import("../../../utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
14
+ readonly direction: import("../../../utils").EpPropFinalized<StringConstructor, "ltr" | "rtl", never, "ltr", false>;
15
+ readonly height: {
16
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
17
+ readonly required: true;
18
+ readonly validator: ((val: unknown) => boolean) | undefined;
19
+ __epPropKey: true;
20
+ };
21
+ readonly innerElement: import("../../../utils").EpPropFinalized<readonly [StringConstructor, ObjectConstructor], unknown, unknown, "div", boolean>;
22
+ readonly innerProps: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>) | (((new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>)) | null)[], unknown, unknown, () => {}, boolean>;
23
+ readonly style: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
24
+ readonly useIsScrolling: BooleanConstructor;
25
+ readonly width: {
26
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
27
+ readonly required: false;
28
+ readonly validator: ((val: unknown) => boolean) | undefined;
29
+ __epPropKey: true;
30
+ };
31
+ readonly innerWidth: {
32
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
33
+ readonly required: false;
34
+ readonly validator: ((val: unknown) => boolean) | undefined;
35
+ __epPropKey: true;
36
+ };
37
+ readonly perfMode: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
38
+ readonly scrollbarAlwaysOn: BooleanConstructor;
39
+ readonly cache: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 2, false>;
40
+ readonly estimatedItemSize: {
41
+ readonly type: import("vue").PropType<number>;
42
+ readonly required: false;
43
+ readonly validator: ((val: unknown) => boolean) | undefined;
44
+ __epPropKey: true;
45
+ };
46
+ readonly layout: import("../../../utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", never, "vertical", false>;
47
+ readonly initScrollOffset: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 0, false>;
48
+ readonly total: {
49
+ readonly type: import("vue").PropType<number>;
50
+ readonly required: true;
51
+ readonly validator: ((val: unknown) => boolean) | undefined;
52
+ __epPropKey: true;
53
+ };
54
+ readonly itemSize: {
55
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize) | (((new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize)) | null)[], never, never>>;
56
+ readonly required: true;
57
+ readonly validator: ((val: unknown) => boolean) | undefined;
58
+ __epPropKey: true;
59
+ };
60
+ }>, {
61
+ ns: {
62
+ namespace: import("vue").ComputedRef<string>;
63
+ b: (blockSuffix?: string) => string;
64
+ e: (element?: string) => string;
65
+ m: (modifier?: string) => string;
66
+ be: (blockSuffix?: string, element?: string) => string;
67
+ em: (element?: string, modifier?: string) => string;
68
+ bm: (blockSuffix?: string, modifier?: string) => string;
69
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
70
+ is: {
71
+ (name: string, state: boolean | undefined): string;
72
+ (name: string): string;
73
+ };
74
+ cssVar: (object: Record<string, string>) => Record<string, string>;
75
+ cssVarName: (name: string) => string;
76
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
77
+ cssVarBlockName: (name: string) => string;
78
+ };
79
+ clientSize: import("vue").ComputedRef<string | number | undefined>;
80
+ estimatedTotalSize: import("vue").ComputedRef<number>;
81
+ windowStyle: import("vue").ComputedRef<(string | false | import("vue").CSSProperties | import("vue").StyleValue[] | {
82
+ [x: string]: string;
83
+ position: string;
84
+ WebkitOverflowScrolling: string;
85
+ willChange: string;
86
+ } | null | undefined)[]>;
87
+ windowRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
88
+ innerRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
89
+ innerStyle: import("vue").ComputedRef<{
90
+ height: string;
91
+ pointerEvents: string | undefined;
92
+ width: string;
93
+ margin: number;
94
+ boxSizing: string;
95
+ }>;
96
+ itemsToRender: import("vue").ComputedRef<number[]>;
97
+ scrollbarRef: import("vue").Ref<any, any>;
98
+ states: import("vue").Ref<{
99
+ isScrolling: boolean;
100
+ scrollDir: import("../../virtual-list").ScrollDirection;
101
+ scrollOffset: number;
102
+ updateRequested: boolean;
103
+ isScrollbarDragging: boolean;
104
+ }, {
105
+ isScrolling: boolean;
106
+ scrollDir: import("../../virtual-list").ScrollDirection;
107
+ scrollOffset: number;
108
+ updateRequested: boolean;
109
+ isScrollbarDragging: boolean;
110
+ } | {
111
+ isScrolling: boolean;
112
+ scrollDir: import("../../virtual-list").ScrollDirection;
113
+ scrollOffset: number;
114
+ updateRequested: boolean;
115
+ isScrollbarDragging: boolean;
116
+ }>;
117
+ getItemStyle: (idx: number) => import("vue").CSSProperties;
118
+ onScroll: (e: Event) => void;
119
+ onScrollbarScroll: (distanceToGo: number, totalSteps: number) => void;
120
+ onWheel: (e: WheelEvent) => void;
121
+ scrollTo: (offset: number) => void;
122
+ scrollToItem: (idx: number, alignment?: ScrollStrategy) => void;
123
+ resetScrollTop: () => void;
124
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "itemRendered" | "end-reached")[], "scroll" | "itemRendered" | "end-reached", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
125
+ readonly className: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
126
+ readonly containerElement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
127
+ readonly data: import("../../../utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
128
+ readonly direction: import("../../../utils").EpPropFinalized<StringConstructor, "ltr" | "rtl", never, "ltr", false>;
129
+ readonly height: {
130
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
131
+ readonly required: true;
132
+ readonly validator: ((val: unknown) => boolean) | undefined;
133
+ __epPropKey: true;
134
+ };
135
+ readonly innerElement: import("../../../utils").EpPropFinalized<readonly [StringConstructor, ObjectConstructor], unknown, unknown, "div", boolean>;
136
+ readonly innerProps: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>) | (((new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>)) | null)[], unknown, unknown, () => {}, boolean>;
137
+ readonly style: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
138
+ readonly useIsScrolling: BooleanConstructor;
139
+ readonly width: {
140
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
141
+ readonly required: false;
142
+ readonly validator: ((val: unknown) => boolean) | undefined;
143
+ __epPropKey: true;
144
+ };
145
+ readonly innerWidth: {
146
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
147
+ readonly required: false;
148
+ readonly validator: ((val: unknown) => boolean) | undefined;
149
+ __epPropKey: true;
150
+ };
151
+ readonly perfMode: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
152
+ readonly scrollbarAlwaysOn: BooleanConstructor;
153
+ readonly cache: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 2, false>;
154
+ readonly estimatedItemSize: {
155
+ readonly type: import("vue").PropType<number>;
156
+ readonly required: false;
157
+ readonly validator: ((val: unknown) => boolean) | undefined;
158
+ __epPropKey: true;
159
+ };
160
+ readonly layout: import("../../../utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", never, "vertical", false>;
161
+ readonly initScrollOffset: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 0, false>;
162
+ readonly total: {
163
+ readonly type: import("vue").PropType<number>;
164
+ readonly required: true;
165
+ readonly validator: ((val: unknown) => boolean) | undefined;
166
+ __epPropKey: true;
167
+ };
168
+ readonly itemSize: {
169
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize) | (((new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize)) | null)[], never, never>>;
170
+ readonly required: true;
171
+ readonly validator: ((val: unknown) => boolean) | undefined;
172
+ __epPropKey: true;
173
+ };
174
+ }>> & Readonly<{
175
+ onScroll?: ((...args: any[]) => any) | undefined;
176
+ "onEnd-reached"?: ((...args: any[]) => any) | undefined;
177
+ onItemRendered?: ((...args: any[]) => any) | undefined;
178
+ }>, {
179
+ readonly data: any[];
180
+ readonly layout: import("../../../utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", never>;
181
+ readonly style: import("vue").StyleValue;
182
+ readonly direction: import("../../../utils").EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
183
+ readonly className: string;
184
+ readonly containerElement: import("../../../utils").EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
185
+ readonly innerElement: import("../../../utils").EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
186
+ readonly innerProps: Record<string, unknown>;
187
+ readonly perfMode: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
188
+ readonly useIsScrolling: boolean;
189
+ readonly scrollbarAlwaysOn: boolean;
190
+ readonly cache: number;
191
+ readonly initScrollOffset: number;
192
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any> | undefined, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
193
+ readonly className: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
194
+ readonly containerElement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
195
+ readonly data: import("../../../utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
196
+ readonly direction: import("../../../utils").EpPropFinalized<StringConstructor, "ltr" | "rtl", never, "ltr", false>;
197
+ readonly height: {
198
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
199
+ readonly required: true;
200
+ readonly validator: ((val: unknown) => boolean) | undefined;
201
+ __epPropKey: true;
202
+ };
203
+ readonly innerElement: import("../../../utils").EpPropFinalized<readonly [StringConstructor, ObjectConstructor], unknown, unknown, "div", boolean>;
204
+ readonly innerProps: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>) | (((new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>)) | null)[], unknown, unknown, () => {}, boolean>;
205
+ readonly style: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
206
+ readonly useIsScrolling: BooleanConstructor;
207
+ readonly width: {
208
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
209
+ readonly required: false;
210
+ readonly validator: ((val: unknown) => boolean) | undefined;
211
+ __epPropKey: true;
212
+ };
213
+ readonly innerWidth: {
214
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
215
+ readonly required: false;
216
+ readonly validator: ((val: unknown) => boolean) | undefined;
217
+ __epPropKey: true;
218
+ };
219
+ readonly perfMode: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
220
+ readonly scrollbarAlwaysOn: BooleanConstructor;
221
+ readonly cache: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 2, false>;
222
+ readonly estimatedItemSize: {
223
+ readonly type: import("vue").PropType<number>;
224
+ readonly required: false;
225
+ readonly validator: ((val: unknown) => boolean) | undefined;
226
+ __epPropKey: true;
227
+ };
228
+ readonly layout: import("../../../utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", never, "vertical", false>;
229
+ readonly initScrollOffset: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 0, false>;
230
+ readonly total: {
231
+ readonly type: import("vue").PropType<number>;
232
+ readonly required: true;
233
+ readonly validator: ((val: unknown) => boolean) | undefined;
234
+ __epPropKey: true;
235
+ };
236
+ readonly itemSize: {
237
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize) | (((new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize)) | null)[], never, never>>;
238
+ readonly required: true;
239
+ readonly validator: ((val: unknown) => boolean) | undefined;
240
+ __epPropKey: true;
241
+ };
242
+ }>, {
243
+ ns: {
244
+ namespace: import("vue").ComputedRef<string>;
245
+ b: (blockSuffix?: string) => string;
246
+ e: (element?: string) => string;
247
+ m: (modifier?: string) => string;
248
+ be: (blockSuffix?: string, element?: string) => string;
249
+ em: (element?: string, modifier?: string) => string;
250
+ bm: (blockSuffix?: string, modifier?: string) => string;
251
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
252
+ is: {
253
+ (name: string, state: boolean | undefined): string;
254
+ (name: string): string;
255
+ };
256
+ cssVar: (object: Record<string, string>) => Record<string, string>;
257
+ cssVarName: (name: string) => string;
258
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
259
+ cssVarBlockName: (name: string) => string;
260
+ };
261
+ clientSize: import("vue").ComputedRef<string | number | undefined>;
262
+ estimatedTotalSize: import("vue").ComputedRef<number>;
263
+ windowStyle: import("vue").ComputedRef<(string | false | import("vue").CSSProperties | import("vue").StyleValue[] | {
264
+ [x: string]: string;
265
+ position: string;
266
+ WebkitOverflowScrolling: string;
267
+ willChange: string;
268
+ } | null | undefined)[]>;
269
+ windowRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
270
+ innerRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
271
+ innerStyle: import("vue").ComputedRef<{
272
+ height: string;
273
+ pointerEvents: string | undefined;
274
+ width: string;
275
+ margin: number;
276
+ boxSizing: string;
277
+ }>;
278
+ itemsToRender: import("vue").ComputedRef<number[]>;
279
+ scrollbarRef: import("vue").Ref<any, any>;
280
+ states: import("vue").Ref<{
281
+ isScrolling: boolean;
282
+ scrollDir: import("../../virtual-list").ScrollDirection;
283
+ scrollOffset: number;
284
+ updateRequested: boolean;
285
+ isScrollbarDragging: boolean;
286
+ }, {
287
+ isScrolling: boolean;
288
+ scrollDir: import("../../virtual-list").ScrollDirection;
289
+ scrollOffset: number;
290
+ updateRequested: boolean;
291
+ isScrollbarDragging: boolean;
292
+ } | {
293
+ isScrolling: boolean;
294
+ scrollDir: import("../../virtual-list").ScrollDirection;
295
+ scrollOffset: number;
296
+ updateRequested: boolean;
297
+ isScrollbarDragging: boolean;
298
+ }>;
299
+ getItemStyle: (idx: number) => import("vue").CSSProperties;
300
+ onScroll: (e: Event) => void;
301
+ onScrollbarScroll: (distanceToGo: number, totalSteps: number) => void;
302
+ onWheel: (e: WheelEvent) => void;
303
+ scrollTo: (offset: number) => void;
304
+ scrollToItem: (idx: number, alignment?: ScrollStrategy) => void;
305
+ resetScrollTop: () => void;
306
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "itemRendered" | "end-reached")[], "scroll" | "itemRendered" | "end-reached", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
307
+ readonly className: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
308
+ readonly containerElement: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
309
+ readonly data: import("../../../utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
310
+ readonly direction: import("../../../utils").EpPropFinalized<StringConstructor, "ltr" | "rtl", never, "ltr", false>;
311
+ readonly height: {
312
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
313
+ readonly required: true;
314
+ readonly validator: ((val: unknown) => boolean) | undefined;
315
+ __epPropKey: true;
316
+ };
317
+ readonly innerElement: import("../../../utils").EpPropFinalized<readonly [StringConstructor, ObjectConstructor], unknown, unknown, "div", boolean>;
318
+ readonly innerProps: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>) | (((new (...args: any[]) => Record<string, unknown>) | (() => Record<string, unknown>)) | null)[], unknown, unknown, () => {}, boolean>;
319
+ readonly style: import("../../../utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
320
+ readonly useIsScrolling: BooleanConstructor;
321
+ readonly width: {
322
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
323
+ readonly required: false;
324
+ readonly validator: ((val: unknown) => boolean) | undefined;
325
+ __epPropKey: true;
326
+ };
327
+ readonly innerWidth: {
328
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
329
+ readonly required: false;
330
+ readonly validator: ((val: unknown) => boolean) | undefined;
331
+ __epPropKey: true;
332
+ };
333
+ readonly perfMode: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
334
+ readonly scrollbarAlwaysOn: BooleanConstructor;
335
+ readonly cache: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 2, false>;
336
+ readonly estimatedItemSize: {
337
+ readonly type: import("vue").PropType<number>;
338
+ readonly required: false;
339
+ readonly validator: ((val: unknown) => boolean) | undefined;
340
+ __epPropKey: true;
341
+ };
342
+ readonly layout: import("../../../utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", never, "vertical", false>;
343
+ readonly initScrollOffset: import("../../../utils").EpPropFinalized<NumberConstructor, never, never, 0, false>;
344
+ readonly total: {
345
+ readonly type: import("vue").PropType<number>;
346
+ readonly required: true;
347
+ readonly validator: ((val: unknown) => boolean) | undefined;
348
+ __epPropKey: true;
349
+ };
350
+ readonly itemSize: {
351
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize) | (((new (...args: any[]) => number | import("../../virtual-list").ItemSize) | (() => number | import("../../virtual-list").ItemSize)) | null)[], never, never>>;
352
+ readonly required: true;
353
+ readonly validator: ((val: unknown) => boolean) | undefined;
354
+ __epPropKey: true;
355
+ };
356
+ }>> & Readonly<{
357
+ onScroll?: ((...args: any[]) => any) | undefined;
358
+ "onEnd-reached"?: ((...args: any[]) => any) | undefined;
359
+ onItemRendered?: ((...args: any[]) => any) | undefined;
360
+ }>, {
361
+ readonly data: any[];
362
+ readonly layout: import("../../../utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", never>;
363
+ readonly style: import("vue").StyleValue;
364
+ readonly direction: import("../../../utils").EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
365
+ readonly className: string;
366
+ readonly containerElement: import("../../../utils").EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
367
+ readonly innerElement: import("../../../utils").EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
368
+ readonly innerProps: Record<string, unknown>;
369
+ readonly perfMode: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
370
+ readonly useIsScrolling: boolean;
371
+ readonly scrollbarAlwaysOn: boolean;
372
+ readonly cache: number;
373
+ readonly initScrollOffset: number;
374
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any> | undefined>;
375
+ getKey: (node: TreeNodeData) => TreeKey;
376
+ getChildren: (node: TreeNodeData) => TreeNodeData[];
377
+ toggleExpand: (node: TreeNode) => void;
378
+ toggleCheckbox: (node: TreeNode, isChecked: CheckboxValueType, nodeClick?: boolean, immediateUpdate?: boolean, deep?: boolean) => void;
379
+ isChecked: (node: TreeNode) => boolean;
380
+ isIndeterminate: (node: TreeNode) => boolean;
381
+ isDisabled: (node: TreeNode) => boolean;
382
+ isCurrent: (node: TreeNode) => boolean;
383
+ isForceHiddenExpandIcon: (node: TreeNode) => boolean;
384
+ handleNodeClick: (node: TreeNode, e: MouseEvent) => void;
385
+ handleNodeDrop: (node: TreeNode, e: DragEvent) => void;
386
+ handleNodeCheck: (node: TreeNode, checked: CheckboxValueType) => void;
387
+ getCurrentNode: () => TreeNodeData | undefined;
388
+ getCurrentKey: () => TreeKey | undefined;
389
+ setCurrentKey: (key: TreeKey) => void;
390
+ getCheckedKeys: (leafOnly?: boolean) => TreeKey[];
391
+ getCheckedNodes: (leafOnly?: boolean) => TreeNodeData[];
392
+ getHalfCheckedKeys: () => TreeKey[];
393
+ getHalfCheckedNodes: () => TreeNodeData[];
394
+ setChecked: (key: TreeKey, isChecked: boolean, deep?: boolean) => void;
395
+ setCheckedKeys: (keys: TreeKey[]) => void;
396
+ filter: (query: string) => void;
397
+ setData: (data: TreeData) => void;
398
+ getNode: (data: TreeKey | TreeNodeData) => TreeNode | undefined;
399
+ expandNode: (node: TreeNode) => void;
400
+ collapseNode: (node: TreeNode) => void;
401
+ setExpandedKeys: (keys: TreeKey[]) => void;
402
+ scrollToNode: (key: TreeKey, strategy?: ScrollStrategy) => void;
403
+ scrollTo: (offset: number) => void;
404
+ };
@@ -0,0 +1,228 @@
1
+ import { ref as b, shallowRef as fe, computed as h, watch as D } from "vue";
2
+ import { isObject as he } from "@vue/shared";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import "@element-plus/icons-vue";
6
+ import { TreeOptionsEnum as g, NODE_COLLAPSE as ve, NODE_EXPAND as ye, NODE_DROP as ke, NODE_CLICK as Ne, CURRENT_CHANGE as pe } from "../virtual-tree.js";
7
+ import { useCheck as ge } from "./useCheck.js";
8
+ import { useFilter as Ce } from "./useFilter.js";
9
+ function we(o, v) {
10
+ const s = b(/* @__PURE__ */ new Set()), f = b(), u = fe(), N = b(), {
11
+ isIndeterminate: A,
12
+ isChecked: L,
13
+ toggleCheckbox: C,
14
+ getCheckedKeys: H,
15
+ getCheckedNodes: F,
16
+ getHalfCheckedKeys: P,
17
+ getHalfCheckedNodes: B,
18
+ setChecked: j,
19
+ setCheckedKeys: G
20
+ } = ge(o, u), { doFilter: U, hiddenNodeKeySet: X, isForceHiddenExpandIcon: Y } = Ce(
21
+ o,
22
+ u
23
+ ), q = h(() => {
24
+ var e;
25
+ return ((e = o.props) == null ? void 0 : e.value) || g.KEY;
26
+ }), z = h(() => {
27
+ var e;
28
+ return ((e = o.props) == null ? void 0 : e.children) || g.CHILDREN;
29
+ }), J = h(() => {
30
+ var e;
31
+ return ((e = o.props) == null ? void 0 : e.disabled) || g.DISABLED;
32
+ }), Q = h(() => {
33
+ var e;
34
+ return ((e = o.props) == null ? void 0 : e.label) || g.LABEL;
35
+ }), K = h(() => {
36
+ var i;
37
+ const e = s.value, t = X.value, n = [], c = ((i = u.value) == null ? void 0 : i.treeNodes) || [], a = [];
38
+ for (let r = c.length - 1; r >= 0; --r)
39
+ a.push(c[r]);
40
+ for (; a.length; ) {
41
+ const r = a.pop();
42
+ if (!t.has(r.key) && (n.push(r), r.children && e.has(r.key)))
43
+ for (let d = r.children.length - 1; d >= 0; --d)
44
+ a.push(r.children[d]);
45
+ }
46
+ return n;
47
+ }), V = h(() => K.value.length > 0);
48
+ function W(e) {
49
+ const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
50
+ let c = 1;
51
+ function a(r, d = 1, se = void 0) {
52
+ var R;
53
+ const I = [];
54
+ for (const y of r) {
55
+ const m = x(y), l = {
56
+ level: d,
57
+ key: m,
58
+ data: y
59
+ };
60
+ l.label = ee(y), l.parent = se;
61
+ const k = O(y);
62
+ l.disabled = $(y), l.isLeaf = !k || k.length === 0, l.expanded = s.value.has(m), k && k.length && (l.children = a(k, d + 1, l)), I.push(l), t.set(m, l), n.has(d) || n.set(d, []), (R = n.get(d)) == null || R.push(l);
63
+ }
64
+ return d > c && (c = d), I;
65
+ }
66
+ const i = a(e);
67
+ return {
68
+ treeNodeMap: t,
69
+ levelTreeNodeMap: n,
70
+ maxLevel: c,
71
+ treeNodes: i
72
+ };
73
+ }
74
+ function Z(e) {
75
+ const t = U(e);
76
+ t && (s.value = t);
77
+ }
78
+ function O(e) {
79
+ return e[z.value];
80
+ }
81
+ function x(e) {
82
+ return e ? e[q.value] : "";
83
+ }
84
+ function $(e) {
85
+ return e[J.value];
86
+ }
87
+ function ee(e) {
88
+ return e[Q.value];
89
+ }
90
+ function w(e) {
91
+ s.value.has(e.key) ? M(e) : T(e);
92
+ }
93
+ function E(e) {
94
+ const t = /* @__PURE__ */ new Set(), n = u.value.treeNodeMap;
95
+ s.value.forEach((c) => {
96
+ const a = n.get(c);
97
+ a && (a.expanded = !1);
98
+ }), e.forEach((c) => {
99
+ let a = n.get(c);
100
+ for (; a && !t.has(a.key); )
101
+ t.add(a.key), a.expanded = !0, a = a.parent;
102
+ }), s.value = t;
103
+ }
104
+ function te(e, t) {
105
+ ae(e), v(Ne, e.data, e, t), o.expandOnClickNode && w(e), o.showCheckbox && (o.checkOnClickNode || e.isLeaf && o.checkOnClickLeaf) && !e.disabled && C(e, !L(e), !0);
106
+ }
107
+ function ne(e, t) {
108
+ v(ke, e.data, e, t);
109
+ }
110
+ function ae(e) {
111
+ S(e) || (f.value = e.key, v(pe, e.data, e));
112
+ }
113
+ function oe(e, t) {
114
+ C(e, t);
115
+ }
116
+ function T(e) {
117
+ const t = s.value;
118
+ if (u.value && o.accordion) {
119
+ const { treeNodeMap: c } = u.value;
120
+ t.forEach((a) => {
121
+ const i = c.get(a);
122
+ e && e.level === (i == null ? void 0 : i.level) && (t.delete(a), i.expanded = !1);
123
+ });
124
+ }
125
+ t.add(e.key);
126
+ const n = p(e.key);
127
+ n && (n.expanded = !0, v(ye, n.data, n));
128
+ }
129
+ function M(e) {
130
+ s.value.delete(e.key);
131
+ const t = p(e.key);
132
+ t && (t.expanded = !1, v(ve, t.data, t));
133
+ }
134
+ function ce(e) {
135
+ return !!e.disabled;
136
+ }
137
+ function S(e) {
138
+ const t = f.value;
139
+ return t !== void 0 && t === e.key;
140
+ }
141
+ function re() {
142
+ var e, t;
143
+ if (f.value !== void 0)
144
+ return (t = (e = u.value) == null ? void 0 : e.treeNodeMap.get(f.value)) == null ? void 0 : t.data;
145
+ }
146
+ function de() {
147
+ return f.value;
148
+ }
149
+ function ue(e) {
150
+ f.value = e;
151
+ }
152
+ function _(e) {
153
+ u.value = W(e);
154
+ }
155
+ function p(e) {
156
+ var n;
157
+ const t = he(e) ? x(e) : e;
158
+ return (n = u.value) == null ? void 0 : n.treeNodeMap.get(t);
159
+ }
160
+ function le(e, t = "auto") {
161
+ const n = p(e);
162
+ n && N.value && N.value.scrollToItem(K.value.indexOf(n), t);
163
+ }
164
+ function ie(e) {
165
+ var t;
166
+ (t = N.value) == null || t.scrollTo(e);
167
+ }
168
+ return D(
169
+ () => o.currentNodeKey,
170
+ (e) => {
171
+ f.value = e;
172
+ },
173
+ {
174
+ immediate: !0
175
+ }
176
+ ), D(
177
+ () => o.defaultExpandedKeys,
178
+ (e) => {
179
+ E(e || []);
180
+ }
181
+ ), D(
182
+ () => o.data,
183
+ (e) => {
184
+ _(e), E(o.defaultExpandedKeys || []);
185
+ },
186
+ {
187
+ immediate: !0
188
+ }
189
+ ), {
190
+ tree: u,
191
+ flattenTree: K,
192
+ isNotEmpty: V,
193
+ listRef: N,
194
+ getKey: x,
195
+ getChildren: O,
196
+ toggleExpand: w,
197
+ toggleCheckbox: C,
198
+ isChecked: L,
199
+ isIndeterminate: A,
200
+ isDisabled: ce,
201
+ isCurrent: S,
202
+ isForceHiddenExpandIcon: Y,
203
+ handleNodeClick: te,
204
+ handleNodeDrop: ne,
205
+ handleNodeCheck: oe,
206
+ // expose
207
+ getCurrentNode: re,
208
+ getCurrentKey: de,
209
+ setCurrentKey: ue,
210
+ getCheckedKeys: H,
211
+ getCheckedNodes: F,
212
+ getHalfCheckedKeys: P,
213
+ getHalfCheckedNodes: B,
214
+ setChecked: j,
215
+ setCheckedKeys: G,
216
+ filter: Z,
217
+ setData: _,
218
+ getNode: p,
219
+ expandNode: T,
220
+ collapseNode: M,
221
+ setExpandedKeys: E,
222
+ scrollToNode: le,
223
+ scrollTo: ie
224
+ };
225
+ }
226
+ export {
227
+ we as useTree
228
+ };
@@ -1,4 +1,13 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElTreeV2 } from 'element-plus';
3
- export declare const EpTreeV2: typeof ElTreeV2 & Plugin;
2
+ import _EpTreeV2 from './EpTreeV2.vue';
3
+ /**
4
+ * tree-v2 自持 barrel:用本地安装辅助把搬运来的虚拟树本体注册为 `ep-tree-v2`。
5
+ *
6
+ * - 必须使用 `../../utils/with-install`(本地版):第二参是显式注册名。
7
+ * - 不导出 `ElTreeV2` 别名;公开面只保留 `EpTreeV2` 与 `TreeV2Instance`。
8
+ * - 节点上下文里的 `formItemContextKey` 已改为本地 Symbol,树节点不继承
9
+ * 父级表单项的 `disabled` / `size`。
10
+ */
11
+ export declare const EpTreeV2: typeof _EpTreeV2 & Plugin;
4
12
  export default EpTreeV2;
13
+ export type { TreeV2Instance } from './instance';
@@ -1,6 +1,9 @@
1
- import { ElTreeV2 as e } from "element-plus";
2
1
  import { withInstall as r } from "../../utils/with-install.js";
3
- const t = Object.assign({}, e, { name: "EpTreeV2" }), m = r(t, "ep-tree-v2");
2
+ import t from "./EpTreeV2.vue.js";
3
+ const m = r(
4
+ t,
5
+ "ep-tree-v2"
6
+ );
4
7
  export {
5
8
  m as EpTreeV2
6
9
  };